"use strict";(()=>{var e={};e.id=9413,e.ids=[9413],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},41120:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>c,routeModule:()=>l,serverHooks:()=>g,staticGenerationAsyncStorage:()=>d});var s={};t.r(s),t.d(s,{GET:()=>o});var a=t(49303),i=t(88716),u=t(60670),n=t(87070),p=t(8194);async function o(e,{params:r}){try{let{slug:e}=await r,t=await p._.cmsPage.findUnique({where:{slug:e}});if(!t||!t.isPublished)return n.NextResponse.json({error:"Halaman tidak ditemukan"},{status:404});return n.NextResponse.json({page:t})}catch{return n.NextResponse.json({error:"Server error"},{status:500})}}let l=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/public/pages/[slug]/route",pathname:"/api/public/pages/[slug]",filename:"route",bundlePath:"app/api/public/pages/[slug]/route"},resolvedPagePath:"D:\\PROJECT\\resto-saas\\src\\app\\api\\public\\pages\\[slug]\\route.ts",nextConfigOutput:"",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:g}=l,m="/api/public/pages/[slug]/route";function h(){return(0,u.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:d})}},8194:(e,r,t)=>{t.d(r,{_:()=>a});let s=require("@prisma/client"),a=globalThis.prisma??new s.PrismaClient}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8948,5972],()=>t(41120));module.exports=s})();