1import{_ as C}from"./BvWtaWD2.js";import{d as D,u as V,E as S,k as r,B as N,l as T,w as d,b2 as U,j as x,r as M,o as g,a as e,g as v,h as a,b as h,t as i,a9 as E,L as I,m as L,R as A,c as K,n as R,e as j,U as q,i as z}from"./CYMs3uwY.js";import{_ as F}from"./8KjhSp8x.js";import{_ as P}from"./kVt-Vln3.js";import{u as G}from"./1oPIvFso.js";import{u as H}from"./DDsDBead.js";import"./CFprKcbD.js";const J={class:"fg-password-top"},O={class:"fg-password-center"},Q={class:"input-panel"},W={class:"username-content"},X={class:"label"},Y={key:0,class:"error-message"},Z={class:"btn-panel"},ee={class:"message-tips-panel"},se={class:"img-container"},ae={class:"right-triangle",src:F,alt:"right-triangle"},te=D({__name:"index",setup(oe){const{t:l}=V(),m=S(),f=G(),y=H(),t=r(""),c=r(""),o=r(!1);N(t,async()=>{try{await y.isUsername(t.value),c.value="",o.value=!0}catch(s){c.value=`${l("username")} ${s.message}`,o.value=!1}});const u=r(!1),p=async()=>{o.value&&(u.value=!0,await f.forgetPassword(t.value).then(s=>{s.code===200&&m.handleSuccess({message:s.msg,duration:2e4})}).catch(s=>{m.handleError({message:s.msg})}),u.value=!1)},w=r({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(s,n)=>{const $=C,b=x("DynaButton"),k=U,B=M("motion");return g(),T(k,{name:"login-panel","show-top-right-element":!0},{center:d(()=>[h($,{title:s.$t("forgot-password")},null,8,["title"]),e("div",J,[e("span",null,i(s.$t("forgot-your-password")),1),e("span",null,i(s.$t("we-can-help-with-that-enter-your-account-username-below-and-well-email-you-instructions-to-reset-your-password")),1)]),e("div",O,[e("div",Q,[e("div",W,[e("div",X,[e("span",null,i(a(l)("username")),1)]),e("div",null,[v(e("input",{"onUpdate:modelValue":n[0]||(n[0]=_=>L(t)?t.value=_:null),type:"text",class:I({invalid:!a(o)&&a(t)!==""}),onKeyup:E(p,["enter"])},null,34),[[A,a(t)]])]),a(o)?R("",!0):(g(),K("span",Y,i(s.$t(a(c))),1))])]),e("div",Z,[h(b,{type:"dark",shape:"round","icon-right":"icon-transition fa-regular fa-arrow-right",disabled:!a(o),loading:a(u),onClick:p},{default:d(()=>[j(i(s.$t("reset-password")),1)]),_:1},8,["disabled","loading"])]),e("div",ee,[e("span",{onClick:n[1]||(n[1]=_=>("navigateTo"in s?s.navigateTo:a(q))("/contact-us"))},i(a(l)("contact-us-if-you-require-additional-assistance")),1)])])]),right:d(()=>[e("div",se,[v(e("img",ae,null,512),[[B,a(w)]]),n[2]||(n[2]=e("img",{class:"right-halo",src:P,alt:"right-halo"},null,-1))])]),_:1})}}}),pe=z(te,[["__scopeId","data-v-34039bc1"]]);export{pe 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.