1import{_ as F}from"./BvWtaWD2.js";import{d as J,u as G,$ as H,E as K,k as l,B as b,v as m,l as O,w as _,b2 as Q,j as W,r as X,o as w,a as s,g as h,h as t,b as V,t as r,L as B,m as C,R as P,c as D,n as E,e as Y,U as S,i as Z}from"./CYMs3uwY.js";import{_ as x}from"./8KjhSp8x.js";import{_ as ss}from"./kVt-Vln3.js";import{u as es}from"./1oPIvFso.js";import{u as ts}from"./DDsDBead.js";import"./CFprKcbD.js";const as={class:"reset-name-title"},os={class:"reset-name-center"},ns={class:"password-input-container"},rs={class:"password-content"},is={class:"label"},ls={key:0,class:"error-message"},ds={class:"confirm-password-content"},cs={class:"label"},us={key:0,class:"error-message"},ms={class:"btn-content"},ps={class:"other"},vs={class:"img-container"},_s={class:"right-triangle",src:x,alt:"right-triangle"},ws=J({__name:"[token]",setup(hs){const{t:c}=G(),N=H().params.token,p=K(),M=ts(),T=es(),a=l(""),o=l(""),d=l(""),i=l(""),g=async()=>{try{await M.isPassword(a.value),d.value=""}catch(e){d.value=`${c("password")} ${e.message}`}},f=()=>{o.value.trim()===""?i.value=c("confirm-password")+c("is-required"):a.value!==o.value?i.value=c("passwords-do-not-match"):i.value=""};b(a,g),b([a,o],f);const y=m(()=>a.value.trim()!==""&&!d.value),I=m(()=>o.value.trim()!==""&&!i.value),$=m(()=>a.value===o.value),k=m(()=>y.value&&I.value&&$.value),v=l(!1),L=async()=>{if(k.value){v.value=!0;try{const e=await T.resetPassword({token:N,password:a.value});e.code===200&&(e.data?(p.handleSuccess({message:e.msg,duration:1e3}),setTimeout(()=>{S({path:"/signin"})},1e3)):p.handleError({message:e.msg}))}catch(e){p.handleError({message:e.msg})}v.value=!1}},R=e=>S({path:e}),U=l({initial:{opacity:0,y:-50,rotate:0},enter:{opacity:1,y:0,rotate:-360,transition:{delay:500,opacity:{duration:3e3,ease:"ease-in-out"},y:{duration:3e3,ease:"ease-in-out"},rotate:{duration:2e5,repeat:1/0,ease:"linear"}}}});return(e,n)=>{const q=F,A=W("DynaButton"),j=Q,z=X("motion");return w(),O(j,{name:"login-panel","show-top-right-element":!0},{center:_(()=>[V(q,{title:e.$t("reset-password")},null,8,["title"]),s("div",as,[s("span",null,r(e.$t("reset-your-password")),1),s("span",null,r(e.$t("we-can-help-with-that-enter-your-account-username-below-and-well-email-you-instructions-to-reset-your-password")),1)]),s("div",os,[s("div",ns,[s("div",rs,[s("div",is,[s("span",null,r(e.$t("password")),1)]),s("div",null,[h(s("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>C(a)?a.value=u:null),type:"password",class:B({invalid:!t(y)&&t(a)!==""}),onBlur:g},null,34),[[P,t(a)]])]),t(d)?(w(),D("span",ls,r(e.$t(t(d))),1)):E("",!0)]),s("div",ds,[s("div",cs,[s("span",null,r(e.$t("confirm-password")),1)]),s("div",null,[h(s("input",{"onUpdate:modelValue":n[1]||(n[1]=u=>C(o)?o.value=u:null),type:"password",class:B({invalid:!t($)&&t(o)!==""}),onBlur:f},null,34),[[P,t(o)]])]),t(i)?(w(),D("span",us,r(e.$t(t(i))),1)):E("",!0)])]),s("div",ms,[V(A,{type:"dark",shape:"round","icon-right":"icon-transition fa-regular fa-arrow-right",disabled:!t(k),loading:t(v),onClick:L},{default:_(()=>[Y(r(e.$t("submit")),1)]),_:1},8,["disabled","loading"])]),s("div",ps,[s("span",{onClick:n[2]||(n[2]=u=>R("/contact-us"))},r(e.$t("contact-us-if-you-require-additional-assistance")),1)])])]),right:_(()=>[s("div",vs,[h(s("img",_s,null,512),[[z,t(U)]]),n[3]||(n[3]=s("img",{class:"right-halo",src:ss,alt:"right-halo"},null,-1))])]),_:1})}}}),Cs=Z(ws,[["__scopeId","data-v-c4a73533"]]);export{Cs 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.