1import{u as x,K as h,i,c as v,a as r,e as s,f as t,z as b,d as _,A as p,B as c,v as y,s as k,o as n}from"./Do1nZpFk.js";import"./BM5aYONo.js";const P={class:"mt-6 flex min-h-full flex-1 flex-col px-6 py-12 lg:mt-12 lg:justify-center lg:px-8"},C={class:"mt-10 overflow-hidden rounded-lg bg-white font-[Inter] sm:mx-auto sm:w-full lg:max-w-[426px] lg:border"},B={key:0,class:"position-relative d-flex flex-column align-items-center login-form justify-center rounded bg-white px-4 py-6 lg:p-10"},N={class:"w-100 rounded-lg bg-white py-[24px] font-[Inter]"},S={class:"form-group"},V=["disabled"],j={class:"form-group"},D=["disabled"],L=["textContent"],M=["disabled"],R={key:0},q={key:1},z={key:1,class:"position-relative flex min-h-[338px] flex-col items-center justify-center gap-3 text-center"},Y={__name:"auth-reset",setup(A){const{authStore:m}=x(),w=h(),a=i(!1),l=i(""),o=i({password:"",password_confirmation:""}),u=i(!1),f=v(()=>o.value.password.length&&o.value.password_confirmation.length&&o.value.password===o.value.password_confirmation),g=()=>{f.value===!0&&(l.value="",a.value=!0,m.resetPassword(w.currentRoute.value.query.token,o.value.password).then(()=>{u.value=!0}))};return(E,e)=>(n(),r("div",P,[e[7]||(e[7]=s("div",{class:"-z-1 fixed inset-0 h-screen w-screen bg-neutral-100"},null,-1)),s("div",C,[t(u)?(n(),r("div",z,e[6]||(e[6]=[k('<svg width="37" height="28" viewBox="0 0 37 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 17L11 26L35 2" stroke="#3D82EA" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><h2 class="text-center text-[19px] font-[700] leading-9 tracking-tight text-[#363636]"> Your Password Has Been Reset </h2><p class="text-[15px] text-[#777D82]"> You can now <a class="text-primary cursor-pinter font-[600]" href="/">login</a></p>',3)]))):(n(),r("div",B,[s("div",N,[e[5]||(e[5]=s("h3",{class:"login-title mb-4 text-center"},"Create a New Password",-1)),s("form",{onSubmit:b(g,["prevent"])},[s("div",S,[e[2]||(e[2]=s("label",{class:"mb-2"},"New Password",-1)),p(s("input",{class:"rounded border",disabled:t(a),placeholder:"New Password","onUpdate:modelValue":e[0]||(e[0]=d=>t(o).password=d),id:"password",name:"password",type:"password",autocomplete:"password",minlength:"6",required:""},null,8,V),[[c,t(o).password]])]),s("div",j,[e[3]||(e[3]=s("label",{class:"mb-2"},"Please Confirm Password",-1)),p(s("input",{class:"rounded border",disabled:t(a),placeholder:"Password Confirmation","onUpdate:modelValue":e[1]||(e[1]=d=>t(o).password_confirmation=d),id:"password",name:"password-confirmation",type:"password",autocomplete:"password",minlength:"6",required:""},null,8,D),[[c,t(o).password_confirmation]])]),t(l).length?(n(),r("div",{key:0,class:"error-message my-2 text-center",textContent:y(t(l))},null,8,L)):_("",!0),s("button",{class:"login-btn transition-colors",disabled:t(a),type:"submit"},[t(a)?(n(),r("span",R," Loading... ")):(n(),r("span",q,"Reset Password"))],8,M),e[4]||(e[4]=s("a",{class:"secondary-btn mt-3 transition-colors",href:"/"},[s("span",null,"Login")],-1))],32)])]))])]))}};export{Y 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.