"use strict";(()=>{var e={};e.id=5091,e.ids=[5091],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")},5126:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>b,requestAsyncStorage:()=>y,routeModule:()=>l,serverHooks:()=>m,staticGenerationAsyncStorage:()=>x});var n={};r.r(n),r.d(n,{GET:()=>c});var s=r(49303),i=r(88716),o=r(60670),a=r(87070),u=r(90455),p=r(64900),d=r(56089);async function c(){let e=(0,u.I2)(),{latitude:t,longitude:r,cityId:n}=(0,p.yt)(),s=await (0,d.iM)({latitude:t,longitude:r,token:e,cityId:n});return a.NextResponse.json(s?.businessTypes??[])}let l=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/business-types/route",pathname:"/api/business-types",filename:"route",bundlePath:"app/api/business-types/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/api/business-types/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:y,staticGenerationAsyncStorage:x,serverHooks:m}=l,g="/api/business-types/route";function b(){return(0,o.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:x})}},64900:(e,t,r)=>{r.d(t,{cO:()=>i,yt:()=>o});var n=r(47090);let s={1:"tirana",2:"prishtina",3:"durres",4:"vlora",5:"elbasan",6:"shkoder",7:"fier",8:"korce"};function i(e){return s[e]||"tirana"}function o(e,t,r){let s="XK"===r?{...n.pH.XK}:{...n.pH.AL},i=e?Number(e):null,o=t?Number(t):null;return i&&o&&!isNaN(i)&&!isNaN(o)?{latitude:i,longitude:o,cityId:s.cityId,countryId:s.countryId}:{latitude:s.latitude,longitude:s.longitude,cityId:s.cityId,countryId:s.countryId}}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8948,3314,8632,5972,5476],()=>r(5126));module.exports=n})();