1import{_ as y}from"./D4YlYyGv.js";import{c as b}from"./Co-U_lSM.js";import{_ as h}from"./Cjh3iXT8.js";import{g as k,l as C,m as S,r as B,n as E,c as V,o as _,a as r,b as t,q as F,w as s,d as m,s as a,t as R,v as I,_ as N,k as q}from"./C3o-dxgs.js";import{u as A,a as g}from"./K4YrelRL.js";import{g as $}from"./CgGfWNkm.js";import{u as M}from"./yI27ztut.js";import{V as P}from"./G38F5vAK.js";import{V as T}from"./BnUg99_H.js";import{V as j}from"./B4ezHV1x.js";import{V as L}from"./qkL7RbLT.js";import{_ as U}from"./Clab22Aa.js";import{V as W}from"./D2MVlC3I.js";import{V as z,a as D}from"./DsA_phF2.js";import{V as O,a as G}from"./DdPAPswp.js";import"./CaQjiwav.js";import"./ZetWVCfF.js";import"./xouxNj0P.js";import"./DG6o5MLb.js";import"./C-GTDzx5.js";import"./COi4YWfD.js";import"./DP_pbLDp.js";const H=b(h),J={class:"pb-3"},K={key:0,class:"mt-2"},Q=k({__name:"ResetForm",setup(v){const n=M(),u=C(),d=S(()=>{var o;return((o=u.query.userId)==null?void 0:o.toString())??""}),{handleSubmit:p}=A({validationSchema:{email(o){return o?!0:"E-mail is required"},token(o){return o?!0:"Altcha validation must pass"}}}),l=B(""),c=g("email",void 0,{initialValue:d}),f=g("token"),x=p(async o=>{try{if(l.value="",!n.checkWait())throw Error("Please wait 1 minute before sending another e-mail.");await n.init(o.email,o.token),await E({path:"/auth/password-reset",query:{userId:o.email}})}catch(e){l.value=$(e),f.setValue("",!0)}});return(o,e)=>{const w=H;return _(),V("form",{onSubmit:e[2]||(e[2]=I((...i)=>a(x)&&a(x)(...i),["prevent"]))},[e[5]||(e[5]=r("div",{class:"d-flex align-center text-center mb-6"},[r("div",{class:"text-h6 w-100 px-5 font-weight-regular auth-divider position-relative"},[r("span",{class:"px-5 py-3 position-relative upper"},"Forgot Password")])],-1)),e[6]||(e[6]=r("p",{class:"text-subtitle-1 text-center mt-2 text-13"}," Please enter the email address associated with your account and We will email you a link to reset your password. ",-1)),t(P,{class:"text-subtitle-1 font-weight-medium pb-3"},{default:s(()=>e[3]||(e[3]=[m("E-mail Address")])),_:1}),t(T,{modelValue:a(c).value.value,"onUpdate:modelValue":e[0]||(e[0]=i=>a(c).value.value=i),"error-messages":a(c).errorMessage.value,autocomplete:"username"},null,8,["modelValue","error-messages"]),r("div",J,[t(w,{modelValue:a(f).value.value,"onUpdate:modelValue":e[1]||(e[1]=i=>a(f).value.value=i)},null,8,["modelValue"])]),t(j,{size:"large",class:"mt-2",rounded:"xl",color:"primary",block:"",type:"submit",flat:""},{default:s(()=>e[4]||(e[4]=[m(" Send e-mail ")])),_:1}),a(l)?(_(),V("div",K,[t(L,{type:"error",variant:"tonal"},{default:s(()=>[m(R(a(l)),1)]),_:1})])):F("",!0)],32)}}}),X={},Y={class:"text-body-1 text-medium-emphasis d-flex justify-center align-center mt-6"};function Z(v,n){const u=y,d=Q,p=U;return _(),q(W,{fluid:"",class:"pa-10 login"},{default:s(()=>[t(u),t(z,{class:"h-100vh d-flex justify-center align-center mt-10"},{default:s(()=>[t(D,{cols:"12",class:"d-flex align-center"},{default:s(()=>[t(O,{rounded:"md",elevation:"10",class:"px-sm-1 px-0 mx-auto front",width:"450"},{default:s(()=>[t(G,{class:"pa-sm-8"},{default:s(()=>[t(d),r("h6",Y,[t(p,{to:"/auth/login",class:"pl-2 text-accent text-decoration-none text-body-1 opacity-1 font-weight-medium"},{default:s(()=>n[0]||(n[0]=[m(" Back to login ")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const be=N(X,[["render",Z]]);export{be 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.