"use strict";(()=>{var e={};e.id=6652,e.ids=[6652],e.modules={53524:e=>{e.exports=require("@prisma/client")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},23072:(e,t,r)=>{r.r(t),r.d(t,{headerHooks:()=>m,originalPathname:()=>f,patchFetch:()=>x,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>g,staticGenerationAsyncStorage:()=>h,staticGenerationBailout:()=>v});var a={};r.r(a),r.d(a,{GET:()=>c});var o=r(95419),s=r(69108),n=r(99678),i=r(78070),p=r(6632),u=r(27251);async function c(){try{let e=await (0,p.FE)("homepage_content"),t={sections:u.B.sections.map(t=>{let r=e?.sections?.find(e=>e.id===t.id);return r?{...t,...r}:t})};return t.sections.sort((e,t)=>e.order-t.order),i.Z.json(t,{headers:{"Cache-Control":"public, s-maxage=60, stale-while-revalidate=300"}})}catch(e){return console.error("[homepage] Failed to fetch content:",e),i.Z.json(u.B)}}let d=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/settings/homepage/route",pathname:"/api/settings/homepage",filename:"route",bundlePath:"app/api/settings/homepage/route"},resolvedPagePath:"C:\\test2\\pagecraft-ai\\src\\app\\api\\settings\\homepage\\route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:l,staticGenerationAsyncStorage:h,serverHooks:g,headerHooks:m,staticGenerationBailout:v}=d,f="/api/settings/homepage/route";function x(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:h})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[1638,6206,6632],()=>r(23072));module.exports=a})();