1import{m,u as b,n as g,r as d,_ as x,i,j as s,q as y,t as h,v as u,x as c,z as p,o as w}from"./index-ggDzekTY.js";const _=m({__name:"ResetPasswordView",setup(f,{expose:o}){o(),b({title:"Reset Password",meta:[{name:"robots",content:"noindex, nofollow"}]});const r=g(),e=d(""),a=d(""),n=d(!1),l={authStore:r,password:e,confirmPassword:a,showPassword:n,handleSubmit:async()=>{if(e.value!==a.value){r.error="Passwords do not match";return}try{await r.resetPassword(e.value)}catch{}}};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),v={class:"min-h-screen flex items-center justify-center bg-gray-50 px-4"},P={class:"max-w-md w-full space-y-8"},S={key:0,class:"bg-red-50 border border-red-200 text-red-600 px-4 py-3 rounded-lg text-sm"},k={class:"mt-1 relative"},V=["type"],R=["type"],j=["disabled"];function C(f,o,r,e,a,n){return w(),i("div",v,[s("div",P,[o[4]||(o[4]=s("div",{class:"text-center"},[s("h1",{class:"text-3xl font-bold text-gray-900"},"Set new password"),s("p",{class:"mt-2 text-gray-600"},"Enter your new password below")],-1)),s("form",{onSubmit:y(e.handleSubmit,["prevent"]),class:"mt-8 space-y-6 bg-white p-8 rounded-xl shadow-sm"},[e.authStore.error?(w(),i("div",S,u(e.authStore.error),1)):h("v-if",!0),s("div",null,[o[2]||(o[2]=s("label",{for:"password",class:"block text-sm font-medium text-gray-700"},"New Password",-1)),s("div",k,[c(s("input",{id:"password","onUpdate:modelValue":o[0]||(o[0]=t=>e.password=t),type:e.showPassword?"text":"password",required:"",minlength:"8",class:"block w-full px-3 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-purple-500",placeholder:"At least 8 characters"},null,8,V),[[p,e.password]])])]),s("div",null,[o[3]||(o[3]=s("label",{for:"confirmPassword",class:"block text-sm font-medium text-gray-700"},"Confirm Password",-1)),c(s("input",{id:"confirmPassword","onUpdate:modelValue":o[1]||(o[1]=t=>e.confirmPassword=t),type:e.showPassword?"text":"password",required:"",class:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-lg shadow-sm focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-purple-500",placeholder:"Confirm your password"},null,8,R),[[p,e.confirmPassword]])]),s("button",{type:"submit",disabled:e.authStore.isLoading,class:"w-full flex justify-center py-3 px-4 border border-transparent rounded-lg shadow-sm text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 disabled:opacity-50 disabled:cursor-not-allowed"},u(e.authStore.isLoading?"Resetting...":"Reset password"),9,j)],32)])])}const B=x(_,[["render",C],["__file","/Users/stefangimeson/smartpost_frontend/src/views/auth/ResetPasswordView.vue"]]);export{B as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.