1import{aV as v,bh as w,bs as b,aA as P,ax as k,as as f,by as q,aW as _,aX as x,aY as n,a$ as i,b0 as l,b1 as a,aZ as m,bJ as R,b9 as T,b3 as c,b7 as Q,bd as e,bH as V}from"./index.669f8fae.js";import{Q as B}from"./QForm.50782878.js";import{Q as A}from"./QPage.d8e0c727.js";const C={style:{"max-width":"600px"}},S={class:"text-h5"},$={class:"q-py-md"},j=v({__name:"ResetPassword",setup(N){const t=w(),h=b(),o=P(),y=k(),d=f(!1),p=f(!1);q(()=>{var r;o.oneTimeToken=void 0,t.currentRoute.value.query.token&&(Array.isArray(t.currentRoute.value.query.token)?t.currentRoute.value.query.token.length>0&&(o.oneTimeToken=(r=t.currentRoute.value.query.token[0])==null?void 0:r.toString()):o.oneTimeToken=t.currentRoute.value.query.token),t.push({query:{}})});const g=async()=>{p.value=!0;const r=h.notify({type:"ongoing",color:"accent",message:e("auth.resetPasswordPage.resetting"),timeout:0,position:"top",spinner:!0});await y.resetPassword();const s=o.authenticationState==="authenticated";await V(1),p.value=!1,s?(o.oneTimeToken=void 0,r({type:"positive",color:"positive",message:e("auth.resetPasswordPage.success"),html:!0,timeout:5e3,spinner:!1}),t.push({name:"home",params:t.currentRoute.value.params})):r({type:"negative",color:"negative",message:e("auth.resetPasswordPage.error"),html:!0,timeout:0,spinner:!1,closeBtn:e("common.close")})};return(r,s)=>(_(),x(A,{padding:"",class:"row justify-center"},{default:n(()=>[i("div",C,[i("div",S,l(a(e)("auth.resetPasswordPage.heading")),1),i("div",$,l(a(e)("auth.resetPasswordPage.text")),1),m(B,{class:"q-pr-md q-gutter-md full-width",onSubmit:g},{default:n(()=>[m(R,{modelValue:a(o).password,"onUpdate:modelValue":s[1]||(s[1]=u=>a(o).password=u),name:"password",autocomplete:"password",filled:"",eager:"",type:d.value?"text":"password","label-slot":"","lazy-rules":"",rules:[u=>u&&u.length>=6||a(e)("auth.errorPassword")]},{append:n(()=>[m(T,{class:"cursor-pointer",name:d.value?"mdi-eye-off":"mdi-eye",onClick:s[0]||(s[0]=u=>d.value=!d.value)},null,8,["name"])]),label:n(()=>[c(l(a(e)("auth.passwordLabel")),1)]),hint:n(()=>[c(l(a(e)("auth.passwordHint")),1)]),_:1},8,["modelValue","type","rules"]),s[2]||(s[2]=i("br",null,null,-1)),i("div",null,[m(Q,{type:"submit",color:"primary",disable:p.value},{default:n(()=>[c(l(a(e)("auth.submitCaption")),1)]),_:1},8,["disable"])])]),_:1})])]),_:1}))}});export{j 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.