(()=>{var e={};e.id=9203,e.ids=[9203],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")},12976:(e,r,s)=>{"use strict";s.r(r),s.d(r,{GlobalError:()=>n.a,__next_app__:()=>c,originalPathname:()=>p,pages:()=>u,routeModule:()=>m,tree:()=>d}),s(50240),s(30935),s(26083),s(96560);var a=s(23191),t=s(88716),o=s(37922),n=s.n(o),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:["rewrite-password",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,50240)),"/Users/ferlando/Desktop/baboon-nextjs/app/password/rewrite-password/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/rewrite-password/page.tsx"],p="/password/rewrite-password/page",c={require:s,loadChunk:()=>Promise.resolve()},m=new a.AppPageRouteModule({definition:{kind:t.x.APP_PAGE,page:"/password/rewrite-password/page",pathname:"/password/rewrite-password",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},35265:(e,r,s)=>{Promise.resolve().then(s.bind(s,11191))},11191:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>l});var a=s(10326),t=s(17577),o=s(35047),n=s(6162),i=s(62257);function l(){let[e,r]=(0,t.useState)(""),[s,l]=(0,t.useState)(""),[d,u]=(0,t.useState)(""),p=(0,o.useRouter)(),c=(0,o.useSearchParams)(),m=c.get("phone")||"",x=c.get("code")||"",g=(0,n.T)(),[f,{isLoading:h}]=(0,i.$h)();async function w(r){if(r.preventDefault(),u(""),e!==s){u(g("password_mismatch",{defaultValue:"Fjalekalimi nuk perputhet."}));return}if(e.length<6){u(g("password_too_short",{defaultValue:"Fjalekalimi duhet te kete te pakten 6 karaktere."}));return}try{let r=await f({phone:m,code:x,newPassword:e}).unwrap();r.success?p.push("/login"):u(r.message||g("password_change_error",{defaultValue:"Ndryshimi i fjalekalimit deshtoi."}))}catch{u(g("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:g("new_password",{defaultValue:"Fjalekalim i Ri"})}),(0,a.jsxs)("div",{className:"bg-white rounded-xl p-8 shadow-sm",children:[d&&a.jsx("div",{className:"bg-red-50 text-red-600 p-3 rounded-lg mb-4 text-sm",children:d}),(0,a.jsxs)("form",{onSubmit:w,className:"space-y-4",children:[(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:g("new_password",{defaultValue:"Fjalekalimi i ri"})}),a.jsx("input",{type:"password",value:e,onChange:e=>r(e.target.value),required:!0,minLength:6,className:"w-full border border-gray-300 rounded-lg px-4 py-2 focus:ring-2 focus:ring-orange-500 focus:border-transparent outline-none"})]}),(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:g("confirm_password",{defaultValue:"Konfirmo fjalekalimin"})}),a.jsx("input",{type:"password",value:s,onChange:e=>l(e.target.value),required:!0,minLength:6,className:"w-full border border-gray-300 rounded-lg px-4 py-2 focus:ring-2 focus:ring-orange-500 focus:border-transparent outline-none"})]}),a.jsx("button",{type:"submit",disabled:h,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:h?g("saving",{defaultValue:"Duke ruajtur..."}):g("save_password",{defaultValue:"Ruaj Fjalekalimin"})})]})]})]})})}},50240:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>a});let a=(0,s(68570).createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/app/password/rewrite-password/page.tsx#default`)}};var r=require("../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[8948,3314,9929,5099],()=>s(12976));module.exports=a})();