"use strict";(()=>{var e={};e.id=2270,e.ids=[2270],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")},10279:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>h,patchFetch:()=>b,requestAsyncStorage:()=>m,routeModule:()=>g,serverHooks:()=>x,staticGenerationAsyncStorage:()=>l});var r={};s.r(r),s.d(r,{GET:()=>c});var a=s(49303),n=s(88716),o=s(60670),i=s(87070),u=s(70446),p=s(90455),d=s(56089);async function c(e){let t=await (0,u.Gg)(),s=(0,p.LP)(t)||(0,p.I2)(),r=e.nextUrl.searchParams,a=Math.min(50,Math.max(1,Number(r.get("limit"))||20)),n=Math.max(0,Number(r.get("offset"))||0),o=Number(r.get("latitude"))||t.storageLatitude||41.327546,c=Number(r.get("longitude"))||t.storageLongitude||19.818698,g=t.langCode||"al",m=Number(r.get("cityId"))||t.cityId||1,l=Number(r.get("businessTypeId"))||0,x=await (0,d.rx)(-5,o,c,s,g,a,n,m,l),h=x?.restaurants??[];return i.NextResponse.json({restaurants:h,hasMore:h.length>=a})}let g=new a.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/homepage/businesses/route",pathname:"/api/homepage/businesses",filename:"route",bundlePath:"app/api/homepage/businesses/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/api/homepage/businesses/route.ts",nextConfigOutput:"standalone",userland:r}),{requestAsyncStorage:m,staticGenerationAsyncStorage:l,serverHooks:x}=g,h="/api/homepage/businesses/route";function b(){return(0,o.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:l})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8948,3314,8632,5972,5476],()=>s(10279));module.exports=r})();