"use strict";(()=>{var e={};e.id=1053,e.ids=[1053],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},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")},6005:e=>{e.exports=require("node:crypto")},48304:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>y,requestAsyncStorage:()=>m,routeModule:()=>c,serverHooks:()=>x,staticGenerationAsyncStorage:()=>l});var a={};r.r(a),r.d(a,{GET:()=>d});var o=r(49303),n=r(88716),s=r(60670),i=r(87070),u=r(70446),p=r(90455),g=r(56089);async function d(e){let t=await (0,u.Gg)(),r=(0,p.LP)(t)||(0,p.I2)(),a=e.nextUrl.searchParams,o=a.get("categoryId");if(!o)return i.NextResponse.json({error:"categoryId is required"},{status:400});let n=Math.min(50,Math.max(1,Number(a.get("limit"))||20)),s=Math.max(0,Number(a.get("offset"))||0),d=Number(a.get("latitude"))||t.storageLatitude||41.327546,c=Number(a.get("longitude"))||t.storageLongitude||19.818698,m=t.langCode||"al",l=Number(a.get("cityId"))||t.cityId,x=Number(a.get("businessTypeId"))||void 0,h=await (0,g.rx)(o,d,c,r,m,n,s,l,x),y=h?.restaurants??[];return i.NextResponse.json({restaurants:y,hasMore:y.length>=n})}let c=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/homepage/marketing-category/route",pathname:"/api/homepage/marketing-category",filename:"route",bundlePath:"app/api/homepage/marketing-category/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/api/homepage/marketing-category/route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:m,staticGenerationAsyncStorage:l,serverHooks:x}=c,h="/api/homepage/marketing-category/route";function y(){return(0,s.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:l})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,3314,8632,5972,5476],()=>r(48304));module.exports=a})();