PageSourceSearch

https://portal.wibernet.co.za/dist/dist-portal-login/ResetPassword.B2bFaLvd.js

js wibernet.co.za collected 2026-10-09 22:42:36 UTC 6,267 bytes, 4 lines download raw bytes

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