(()=>{var e={};e.id=2955,e.ids=[2955],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},55315:e=>{"use strict";e.exports=require("path")},17360:e=>{"use strict";e.exports=require("url")},90172:(e,r,s)=>{"use strict";s.r(r),s.d(r,{GlobalError:()=>o.a,__next_app__:()=>c,originalPathname:()=>p,pages:()=>u,routeModule:()=>x,tree:()=>d}),s(45219),s(30935),s(26083),s(96560);var t=s(23191),a=s(88716),n=s(37922),o=s.n(n),i=s(95231),l={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>i[e]);s.d(r,l);let d=["",{children:["password",{children:["reset",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,45219)),"/Users/ferlando/Desktop/baboon-nextjs/app/password/reset/page.tsx"]}]},{}]},{metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,24697))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(s.bind(s,30935)),"/Users/ferlando/Desktop/baboon-nextjs/app/layout.tsx"],error:[()=>Promise.resolve().then(s.bind(s,26083)),"/Users/ferlando/Desktop/baboon-nextjs/app/error.tsx"],"not-found":[()=>Promise.resolve().then(s.bind(s,96560)),"/Users/ferlando/Desktop/baboon-nextjs/app/not-found.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,24697))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],u=["/Users/ferlando/Desktop/baboon-nextjs/app/password/reset/page.tsx"],p="/password/reset/page",c={require:s,loadChunk:()=>Promise.resolve()},x=new t.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/password/reset/page",pathname:"/password/reset",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},45269:(e,r,s)=>{Promise.resolve().then(s.bind(s,16012))},16012:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>l});var t=s(10326),a=s(17577),n=s(35047),o=s(6162),i=s(62257);function l(){let[e,r]=(0,a.useState)(""),[s,l]=(0,a.useState)("+355"),[d,u]=(0,a.useState)(""),p=(0,n.useRouter)(),c=(0,o.T)(),[x,{isLoading:m}]=(0,i.s)();async function g(r){r.preventDefault(),u("");try{let r=await x({phone:s+e}).unwrap();r.success?p.push(`/password/code-verification?phone=${encodeURIComponent(s+e)}`):u(r.message||c("sms_error",{defaultValue:"Numri nuk u gjet. Provo perseri."}))}catch{u(c("generic_error",{defaultValue:"Ndodhi nje gabim."}))}}return t.jsx("div",{className:"min-h-[60vh] flex items-center justify-center px-4 py-12",children:(0,t.jsxs)("div",{className:"w-full max-w-md",children:[t.jsx("h1",{className:"text-2xl font-bold text-center mb-6",children:c("reset_password",{defaultValue:"Rivendos Fjalekalimin"})}),(0,t.jsxs)("div",{className:"bg-white rounded-xl p-8 shadow-sm",children:[t.jsx("p",{className:"text-gray-600 text-sm mb-6",children:c("reset_password_desc",{defaultValue:"Shkruaj numrin e telefonit dhe do te marresh nje kod verifikimi me SMS."})}),d&&t.jsx("div",{className:"bg-red-50 text-red-600 p-3 rounded-lg mb-4 text-sm",children:d}),(0,t.jsxs)("form",{onSubmit:g,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{value:s,onChange:e=>l(e.target.value),className:"border border-gray-300 rounded-lg px-3 py-2 focus:ring-2 focus:ring-orange-500 outline-none",children:[t.jsx("option",{value:"+355",children:"+355"}),t.jsx("option",{value:"+383",children:"+383"}),t.jsx("option",{value:"+389",children:"+389"})]}),t.jsx("input",{type:"tel",value:e,onChange:e=>r(e.target.value),placeholder:c("phone_number",{defaultValue:"Numri i telefonit"}),required:!0,className:"flex-1 border border-gray-300 rounded-lg px-4 py-2 focus:ring-2 focus:ring-orange-500 focus:border-transparent outline-none"})]}),t.jsx("button",{type:"submit",disabled:m,className:"w-full bg-orange-500 hover:bg-orange-600 disabled:bg-orange-300 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:m?c("sending",{defaultValue:"Duke derguar..."}):c("send_code",{defaultValue:"Dergo Kodin"})})]})]})]})})}},45219:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>t});let t=(0,s(68570).createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/app/password/reset/page.tsx#default`)}};var r=require("../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[8948,3314,9929,5099],()=>s(90172));module.exports=t})();