1import{_ as y}from"./DMEh0pQe.js";import{_ as x}from"./BZWlHCx0.js";import{d as E,a as S,i as z,D as B,E as N,o as P,l as T,b as t,t as o,e as a,w as l,p as i,r as u,H as L}from"./CyOz8q9n.js";import{_ as c}from"./CFuktNVM.js";import"./DxoIywBh.js";import"./DSedljvs.js";const V={class:"auth-wrapper"},C={class:"auth-container create-account-flow"},F={class:"mb-5 text-3xl text-center font-semibold"},I={class:"text-base text-muted text-center mb-5"},U={class:"w-full space-y-4"},D={class:"space-y-2"},J=E({__name:"forgot-email",setup(A){const{t:d}=S(),f=z(),p=B(),g=N(),{forgotEmail:_}=g,r=u(null),n=u(!1),s=u({});function b(e){return e===null||typeof e>"u"?null:String(e)}function h(){n.value=!0,s.value={},_({bignumber:r.value}).then(e=>{p.add({title:e.data.message?e.data.message:d("forgotPassword.usernameSuccessMessage"),color:"success",duration:6e3}),v()}).catch(e=>{e.response?.status===422&&(s.value=L(e.response.data?.errors))}).finally(()=>{n.value=!1})}function v(){f.push({name:"login"})}return(e,m)=>{const w=y,k=x;return P(),T("div",V,[t("div",C,[t("h3",F,o(e.$t("forgotEmail.title")),1),t("p",I,o(e.$t("forgotEmail.subTitle")),1),t("div",U,[a(k,{error:s.value.bignumber?s.value.bignumber:null,label:e.$t("forgotEmail.usernameLabel")},{default:l(()=>[a(w,{"model-value":r.value??void 0,type:"text",name:"username",placeholder:e.$t("verifyProfile.bigNumber.placeholder"),size:"xl",class:"w-full","onUpdate:modelValue":m[0]||(m[0]=$=>r.value=b($))},null,8,["model-value","placeholder"])]),_:1},8,["error","label"]),t("div",D,[a(c,{color:"primary",block:"",size:"xl",loading:n.value,class:"w-full",onClick:h},{default:l(()=>[i(o(e.$t("forgotPassword.submitBtn")),1)]),_:1},8,["loading"]),a(c,{tag:"router-link",size:"xl",block:"",variant:"outline",to:{name:"forgot-password"},color:"primary",class:"w-full"},{default:l(()=>[i(o(e.$t("forgotEmail.forgotPassword")),1)]),_:1}),a(c,{tag:"router-link",size:"xl",block:"",to:{name:"login"},variant:"ghost",class:"w-full"},{default:l(()=>[i(o(e.$t("forgotPassword.backToLoginLink")),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.