"use strict";(()=>{var e={};e.id=9265,e.ids=[9265],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")},24009:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>g,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>c,staticGenerationAsyncStorage:()=>m});var n={};r.r(n),r.d(n,{GET:()=>p});var o=r(49303),a=r(88716),s=r(60670),u=r(87070),i=r(8194);async function p(e,{params:t}){try{let{menuCode:e}=await t,r=await i._.store.findFirst({where:{menuCode:e,isActive:!0},include:{tenant:{select:{slug:!0,name:!0,logo:!0,isActive:!0}}}});if(!r||!r.tenant.isActive)return u.NextResponse.json({error:"Menu tidak ditemukan"},{status:404});return u.NextResponse.json({tenantSlug:r.tenant.slug,storeSlug:r.slug,tenantName:r.tenant.name,tenantLogo:r.tenant.logo,storeName:r.name,menuCode:r.menuCode})}catch{return u.NextResponse.json({error:"Server error"},{status:500})}}let l=new o.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/public/resolve-menu/[menuCode]/route",pathname:"/api/public/resolve-menu/[menuCode]",filename:"route",bundlePath:"app/api/public/resolve-menu/[menuCode]/route"},resolvedPagePath:"D:\\PROJECT\\resto-saas\\src\\app\\api\\public\\resolve-menu\\[menuCode]\\route.ts",nextConfigOutput:"",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:m,serverHooks:c}=l,v="/api/public/resolve-menu/[menuCode]/route";function g(){return(0,s.patchFetch)({serverHooks:c,staticGenerationAsyncStorage:m})}},8194:(e,t,r)=>{r.d(t,{_:()=>o});let n=require("@prisma/client"),o=globalThis.prisma??new n.PrismaClient}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8948,5972],()=>r(24009));module.exports=n})();