PageSourceSearch

https://billing1.tecinfo.net/dist/dist-portal-login/ResetPassword.CCjIM4f-.js

js tecinfo.net collected 2026-10-07 21:12:42 UTC 6,619 bytes, 4 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["ResetPasswordLayout.ZIZ7OFu9.js","app.C9rH3Nfe.js","vendor.kmuNf4Gr.js","css/styles.BuZ8GZAp.css","index.zeRBWPW7.js","index.CRLvso-D.js","input-mixin.BU399U4z.js"])))=>i.map(i=>d[i]);
2import{_ as x,a as h,r as s,d as f,c as b}from"./app.C9rH3Nfe.js";import{r as i,d as p,e as k,w as u,u as r,x as l,E as w,G as y,h as d,H as T,y as g,f as P,D as v,C as F,z as _}from"./vendor.kmuNf4Gr.js";/* empty css               */b(["ResetPassword.beforeMount"]);const I="email",L={name:"ResetPassword",data(){return{entry:"",captcha:"",userHash:"",showForm:!0,resetPasswordType:"email",hasError:!1,captchaInvalid:!1,captchaUrl:"",entryErrorText:""}},beforeMount(...e){return s("ResetPassword.beforeMount",()=>new Promise(t=>{f({method:"GET",url:"/portal/reset-password--get-page-data"}).then(c=>{this.resetPasswordType=c.reset_password_type,this.userHash=c.user_hash,this.captchaUrl=`/portal/reset-password--captcha?hash=${this.userHash}`,t()})}),this,e)},computed:{loginInfoText(...e){return s("ResetPassword.loginInfoText",()=>this.t("portal","Enter your {entry}, and we'll send you {sendEntity}",{entry:this.entryText,sendEntity:this.resetPasswordType===I?"a link to reset your password.":"a reset code via SMS."}),this,e)},sendButtonTitle(...e){return s("ResetPassword.sendButtonTitle",()=>this.isEmailType?this.t("portal","Send reset link"):this.t("portal","Send reset code"),this,e)},entryText(...e){return s("ResetPassword.entryText",()=>this.isEmailType?this.$t("portal","email address or login"):this.$t("portal","phone number or login"),this,e)},entryTextForPlaceholder(...e){return s("ResetPassword.entryTextForPlaceholder",()=>this.isEmailType?this.$t("portal","email or login"):this.$t("portal","phone number or login"),this,e)},entryPlaceholderText(...e){return s("ResetPassword.entryPlaceholderText",()=>`${this.$t("portal","Enter")} ${this.entryTextForPlaceholder}`,this,e)},entryLabelText(...e){return s("ResetPassword.entryLabelText",()=>`${this.$t("portal","Your")} ${this.entryTextForPlaceholder}`,this,e)},isEmailType(...e){return s("ResetPassword.isEmailType",()=>this.resetPasswordType==="email",this,e)}},methods:{openCheckCodePage(...e){return s("ResetPassword.openCheckCodePage",t=>{this.$router.push({path:"/portal/reset-password--verify-check-code",query:{resetTarget:btoa(t.reset_target),entryForResetPassword:this.entry}})},this,e)},sendForm(...e){return s("ResetPassword.sendForm",()=>{f({url:"/portal/reset-password--process-reset-password",method:"POST",data:{entry_for_reset_password:this.entry,captcha:this.captcha,hash:this.userHash}}).then(t=>{this.entryErrorText="",t.result?(this.$showSuccess(t.message,4),setTimeout(()=>{this.showForm=!1,this.openCheckCodePage(t.options)},3e3)):(t.invalid_code?this.captchaInvalid=!0:this.hasError=!0,Array.isArray(t.message)&&(this.entryErrorText+=t.message.join(`
3`)),this.reloadCaptcha(),this.$showError(t.message,4))})},this,e)},urlForCaptcha(...e){return s("ResetPassword.urlForCaptcha",()=>{const t=new Date().getTime();return`${this.captchaUrl}&t=${t}`},this,e)},reloadCaptcha(...e){return s("ResetPassword.reloadCaptcha",()=>{this.$refs.captcha.src=this.urlForCaptcha(),this.captcha=""},this,e)},clearError(...e){return s("ResetPassword.clearError",()=>{this.captchaInvalid=!1},this,e)},changeModelValue(...e){return s("ResetPassword.changeModelValue",()=>{this.hasError=!1},this,e)}},components:{ResetPasswordLayout:_(()=>h(()=>import("./ResetPasswordLayout.ZIZ7OFu9.js"),__vite__mapDeps([0,1,2,3]))),XForm:_(()=>h(()=>import("./index.zeRBWPW7.js"),__vite__mapDeps([4,1,2,3]))),XTextField:_(()=>h(()=>import("./index.CRLvso-D.js"),__vite__mapDeps([5,1,2,3,6])))}},V={class:"login-portal-form"},A={class:"login-portal-heading"},M=["innerHTML"],H={class:"form-holder"},S={class:"col-form-label"},B={key:0,class:"error-text"},D={class:"captcha-group"},$={class:"form-input-group"},U={class:"col-form-label"},N=["src","alt"],O={class:"col-form-label"},q={key:0,class:"error-text"},z={class:"login-footer"},G=["value"];function X(e,t,c,Y,o,a){const m=i("x-text-field"),E=i("RouterLink"),C=i("x-form"),R=i("reset-password-layout");return p(),k(R,null,{default:u(()=>[r("div",V,[r("div",A,l(e.$t("portal","Reset customer password")),1),w(r("div",{class:"login-portal-info",innerHTML:a.loginInfoText},null,8,M),[[y,o.showForm]]),r("div",H,[w(d(C,{id:"admin_reset_password_form",ref:"form","check-unsaved-data-before-leave-page":!1,class:"form-signin",role:"form"},{default:u(()=>[r("div",{"data-test-selector":"entry-input-group",class:T(["form-input-group",{"invalid-input":o.hasError}])},[r("label",S,l(a.entryLabelText),1),d(m,{id:"entry_for_reset_password","model-value":o.entry,options:{placeholder:a.entryPlaceholderText,autofocus:!0,required:!0,name:"ResetPassword[entry_for_reset_password]"},"onUpdate:modelValue":t[0]||(t[0]=n=>o.entry=n),onInput:a.changeModelValue}
3,null,8,["model-value","options","onInput"]),o.hasError?(p(),g("span",B,l(o.entryErrorText),1)):P("",!0)],2),r("div",D,[r("div",$,[r("label",U,l(e.$t("portal","CAPTCHA")),1),r("div",null,[r("img",{id:"captcha_img_for_reset_password",ref:"captcha",class:"captcha-img",src:o.captchaUrl,alt:e.$t("portal","Verification code")},null,8,N),r("a",{class:"btn btn-link update-captcha","data-test-selector":"update-captcha-button",onClick:t[1]||(t[1]=(...n)=>a.reloadCaptcha&&a.reloadCaptcha(...n))},[t[4]||(t[4]=r("i",{class:"icon-ic_fluent_arrow_clockwise_24_regular"},null,-1)),v(" "+l(e.$t("portal","New code")),1)])])]),r("div",{"data-test-selector":"captcha-input-group",class:T(["form-input-group",{"invalid-input":o.captchaInvalid}])},[r("label",O,l(e.$t("portal","Code from CAPTCHA")),1),d(m,{id:"captcha_for_reset_password","model-value":o.captcha,options:{autocomplete:"off",placeholder:e.$t("portal","Enter code"),required:!0,name:"ResetPassword[captcha_for_reset_password]"},"onUpdate:modelValue":t[2]||(t[2]=n=>{o.captcha=n,a.clearError()})},null,8,["model-value","options"]),o.captchaInvalid?(p(),g("span",q,l(e.$t("portal","Code is invalid!")),1)):P("",!0)],2)]),t[5]||(t[5]=r("div",{id:"message"},null,-1)),r("div",z,[r("input",{id:"admin_reset_password_submit",class:"btn btn-primary",type:"submit",value:a.sendButtonTitle,onClick:t[3]||(t[3]=F((...n)=>a.sendForm&&a.sendForm(...n),["prevent"]))},null,8,G),d(E,{id:"admin_reset_password_back_to_sign_button",to:{name:"portal.login"},class:"link"},{default:u(()=>[v(l(e.$t("portal","Back to sign in page")),1)]),_:1})])]),_:1},512),[[y,o.showForm]])])])]),_:1})}const K=x(L,[["render",X]]);export{K as default};
4//# sourceMappingURL=ResetPassword.CCjIM4f-.js.map

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.