(()=>{var e={};e.id=5565,e.ids=[5565],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")},83209:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>n.a,__next_app__:()=>c,originalPathname:()=>p,pages:()=>u,routeModule:()=>x,tree:()=>l}),r(6329),r(30935),r(26083),r(96560);var a=r(23191),s=r(88716),o=r(37922),n=r.n(o),i=r(95231),d={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>i[e]);r.d(t,d);let l=["",{children:["password",{children:["code-verification",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,6329)),"/Users/ferlando/Desktop/baboon-nextjs/app/password/code-verification/page.tsx"]}]},{}]},{metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,24697))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,30935)),"/Users/ferlando/Desktop/baboon-nextjs/app/layout.tsx"],error:[()=>Promise.resolve().then(r.bind(r,26083)),"/Users/ferlando/Desktop/baboon-nextjs/app/error.tsx"],"not-found":[()=>Promise.resolve().then(r.bind(r,96560)),"/Users/ferlando/Desktop/baboon-nextjs/app/not-found.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,24697))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],u=["/Users/ferlando/Desktop/baboon-nextjs/app/password/code-verification/page.tsx"],p="/password/code-verification/page",c={require:r,loadChunk:()=>Promise.resolve()},x=new a.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/password/code-verification/page",pathname:"/password/code-verification",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},86809:(e,t,r)=>{Promise.resolve().then(r.bind(r,88771))},88771:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var a=r(10326),s=r(17577),o=r(35047),n=r(6162),i=r(62257);function d(){let[e,t]=(0,s.useState)(""),[r,d]=(0,s.useState)(""),l=(0,o.useRouter)(),u=(0,o.useSearchParams)().get("phone")||"",p=(0,n.T)(),[c,{isLoading:x}]=(0,i.oq)();async function f(t){t.preventDefault(),d("");try{let t=await c({phone:u,code:e}).unwrap();t.success?l.push(`/password/rewrite-password?phone=${encodeURIComponent(u)}&code=${encodeURIComponent(e)}`):d(t.message||p("invalid_code",{defaultValue:"Kodi eshte i gabuar."}))}catch{d(p("generic_error",{defaultValue:"Ndodhi nje gabim."}))}}return a.jsx("div",{className:"min-h-[60vh] flex items-center justify-center px-4 py-12",children:(0,a.jsxs)("div",{className:"w-full max-w-md",children:[a.jsx("h1",{className:"text-2xl font-bold text-center mb-6",children:p("verify_code",{defaultValue:"Verifiko Kodin"})}),(0,a.jsxs)("div",{className:"bg-white rounded-xl p-8 shadow-sm",children:[a.jsx("p",{className:"text-gray-600 text-sm mb-6",children:p("verify_code_desc",{defaultValue:"Shkruaj kodin qe mor\xebt me SMS ne numrin e telefonit tuaj."})}),r&&a.jsx("div",{className:"bg-red-50 text-red-600 p-3 rounded-lg mb-4 text-sm",children:r}),(0,a.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[a.jsx("div",{children:a.jsx("input",{type:"text",value:e,onChange:e=>t(e.target.value),placeholder:p("enter_code",{defaultValue:"Shkruaj kodin"}),required:!0,maxLength:6,className:"w-full border border-gray-300 rounded-lg px-4 py-3 text-center text-2xl tracking-widest focus:ring-2 focus:ring-orange-500 focus:border-transparent outline-none"})}),a.jsx("button",{type:"submit",disabled:x,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:x?p("verifying",{defaultValue:"Duke verifikuar..."}):p("verify",{defaultValue:"Verifiko"})})]})]})]})})}},6329:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});let a=(0,r(68570).createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/app/password/code-verification/page.tsx#default`)}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,3314,9929,5099],()=>r(83209));module.exports=a})();