module.exports=[76573,a=>{"use strict";let b="https://cms.akarya.id".replace(/\/+$/,""),c=Number("60"),d=Number.isFinite(c)?c:10,e=a=>new Promise(b=>setTimeout(b,a)),f=0,g=[];async function h(){if(f<3){f+=1;return}await new Promise(a=>g.push(a)),f+=1}async function i(a){await h();try{let c=await fetch(`${b}/api/v1${a}`,{headers:{Accept:"application/json"},next:{revalidate:d}});if(!c.ok)throw Error(`Content API request failed (${c.status}) for ${a}`);let e=await c.json(),f=e&&"object"==typeof e&&"data"in e?e.data:e;return function a(c){return Array.isArray(c)?c.map(a):c&&"object"==typeof c?Object.fromEntries(Object.entries(c).map(([c,d])=>[c,"url"===c&&"string"==typeof d&&d.startsWith("/")&&!d.startsWith("//")?`${b}${d}`:a(d)])):c}(f)}finally{f-=1,g.shift()?.()}}async function j(a){for(let b=1;;b+=1)try{return await i(a)}catch(c){if(b>=6)throw c instanceof Error?c:Error(`Content API request failed for ${a}`);await e(Math.min(300*2**(b-1),5e3))}}let k="phase-production-build"===process.env.NEXT_PHASE,l=new Map;function m(a){if(!k)return j(a);let b=l.get(a);return b||(b=j(a),l.set(a,b)),b}async function n(){let[a,b]=await Promise.all([m("/site-settings"),m("/homepage")]);return{...a,homepageHeroSlides:b.heroSlides??[],homepageOverview:b.overview,homepageShowcase:b.showcase,homepageProducts:b.products,roomDesignerPage:b.roomDesigner}}async function o(){return m("/solutions")}async function p(){return m("/products")}async function q(){return m("/industries")}async function r(){return(await m("/case-studies")).map(a=>({...a,productsOrTechnologiesUsed:Array.isArray(a.productsOrTechnologiesUsed)?a.productsOrTechnologiesUsed:a.productsOrTechnologiesUsed?.en??a.productsOrTechnologiesUsed?.id??[]}))}async function s(){return m("/partner-brands")}async function t(){return[...await m("/blog-posts")].sort((a,b)=>new Date(b.publishedAt).getTime()-new Date(a.publishedAt).getTime())}a.s(["getBlogPosts",0,t,"getCaseStudies",0,r,"getIndustries",0,q,"getPartnerBrands",0,s,"getProducts",0,p,"getSiteSettings",0,n,"getSolutions",0,o])},21540,a=>{a.v({className:"inter_f6b4a64c-module__jWsb6a__className",variable:"inter_f6b4a64c-module__jWsb6a__variable"})},33290,a=>{"use strict";var b=a.i(24847),c=a.i(21540);let d={className:c.default.className,style:{fontFamily:"'inter', 'inter Fallback'"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(76573);async function f(){let a=await (0,e.getSiteSettings)();return{metadataBase:new URL("https://test.akarya.id"),title:{default:a.defaultSeoTitle.en,template:"%s"},description:a.defaultSeoDescription.en,icons:{icon:"/logos/akarya/akarya-logo-simple-blue.png",apple:"/logos/akarya/akarya-logo-simple-blue.png"}}}a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",children:(0,b.jsx)("body",{className:d.variable,children:a})})},"generateMetadata",0,f],33290)},70864,a=>{a.n(a.i(33290))}];

//# sourceMappingURL=_0ve1-wi._.js.map