"use strict";(()=>{var e={};e.id=9436,e.ids=[9436],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")},17201:(e,t,s)=>{s.r(t),s.d(t,{originalPathname:()=>h,patchFetch:()=>y,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>l});var o={};s.r(o),s.d(o,{POST:()=>c});var a=s(49303),n=s(88716),r=s(60670),i=s(87070),u=s(19191);async function c(e){let{email:t}=await e.json();if(!t)return i.NextResponse.json({success:!1,message:"Email eshte i detyrueshem"},{status:400});let s=process.env.BABOON_APP_BUSINESS_TOKEN||"";try{let e=await (0,u.F)("/authenticationuser/v2/reset_password",{apiBase:"mobile",method:"POST",token:s,body:{email:t,userType:1}}),o=await e.json();if(e.ok||o.statusMessage?.status===200)return i.NextResponse.json({success:!0});return i.NextResponse.json({success:!1,message:"Nuk u gjet llogaria me kete email"},{status:404})}catch{return i.NextResponse.json({success:!1,message:"Ndodhi nje gabim. Provo perseri."},{status:500})}}let p=new a.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/auth/reset-password/route",pathname:"/api/auth/reset-password",filename:"route",bundlePath:"app/api/auth/reset-password/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/api/auth/reset-password/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:m}=p,h="/api/auth/reset-password/route";function y(){return(0,r.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:l})}},19191:(e,t,s)=>{s.d(t,{F:()=>r,q:()=>n});var o=s(47090),a=s(70446);async function n(e,t={}){let{apiBase:s="mobile",method:n="GET",body:r,token:i,langCode:u,notificationToken:c,headers:p={},revalidate:d,cache:l}=t,m=o.Y8[s],h=`${m}${e.startsWith("/")?e:"/"+e}`,y={"Content-Type":"application/json","User-Agent":"BaboonWeb",...p};i&&(y.Authorization=i),u&&(y.langCode=u);let g=c;if(!g)try{g=(await (0,a.Gg)()).fcmToken}catch{}g&&(y.notificationToken=g);let x={method:n,headers:y};r&&"GET"!==n&&(x.body=JSON.stringify(r)),void 0!==d&&(x.next={revalidate:d}),l&&(x.cache=l);let f=await fetch(h,x);if(!f.ok)throw Error(`API request failed: ${f.status} ${f.statusText}`);return f.json()}async function r(e,t={}){let{apiBase:s="mobile",method:n="GET",body:r,token:i,langCode:u,notificationToken:c,headers:p={}}=t,d=o.Y8[s],l=`${d}${e.startsWith("/")?e:"/"+e}`,m={"Content-Type":"application/json","User-Agent":"BaboonWeb",...p};i&&(m.Authorization=i),u&&(m.langCode=u);let h=c;if(!h)try{h=(await (0,a.Gg)()).fcmToken}catch{}h&&(m.notificationToken=h);let y={method:n,headers:m};return r&&"GET"!==n&&(y.body=JSON.stringify(r)),fetch(l,y)}},47090:(e,t,s)=>{s.d(t,{RF:()=>o,Y8:()=>n,pH:()=>a});let o=["al","en","it"],a={AL:{latitude:41.327546,longitude:19.818698,cityId:1,countryId:1},XK:{latitude:42.662914,longitude:21.165503,cityId:2,countryId:2}},n={mobile:process.env.BABOON_API_MOBILE_URL,legacy:process.env.BABOON_API_URL,sysadmin:process.env.BABOON_API_SYSADMIN_URL,payment:process.env.BABOON_API_PAYMENT_URL}},70446:(e,t,s)=>{s.d(t,{Gg:()=>i,dx:()=>n,l7:()=>r,yK:()=>u});var o=s(78632),a=s(71615);let n={password:process.env.SESSION_SECRET,cookieName:"baboon-session",cookieOptions:{secure:!0,httpOnly:!0,sameSite:"lax",maxAge:604800}},r={...n,cookieName:"baboon-admin-session"};async function i(){let e=await (0,a.cookies)();return(0,o.iW)(e,n)}async function u(){let e=await (0,a.cookies)();return(0,o.iW)(e,r)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),o=t.X(0,[8948,3314,8632,5972],()=>s(17201));module.exports=o})();