PageSourceSearch

https://portal.wibernet.co.za/dist/dist-portal-login/VerifyCode.DuKPVKF_.js

js wibernet.co.za collected 2026-10-09 22:42:37 UTC 4,890 bytes, 3 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 E,f as V,g as k,a as l,r as i,d as u,c as P}from"./app.6-zBPm55.js";import{r as c,d as h,e as T,w as f,u as o,x as r,D as _,y as p,f as w,h as y,H as I,C,z as m}from"./vendor.kmuNf4Gr.js";/* empty css               */P(["VerifyCode.beforeMount"]);const S={name:"VerifyCode",data(){return{code:"",resetPasswordType:"",hasError:!1,newCodeSent:!1,countdown:0,countdownInterval:null}},beforeMount(...t){return i("VerifyCode.beforeMount",()=>new Promise(e=>{u({url:`/portal/reset-password--get-page-data?entry_for_reset_password=${this.$route.query.entryForResetPassword}`}).then(n=>{if(this.resetPasswordType=n.reset_password_type,n.resend_code_delay===0){e();return}this.startCountdown(n.resend_code_delay),e()}).catch(()=>{e()})}),this,t)},methods:{asterisksPhone:k,asterisksEmail:V,verifyCode(...t){return i("VerifyCode.verifyCode",()=>{u({url:"/portal/reset-password--verify-check-code",method:"POST",data:{random_code:this.code}}).then(e=>{e.result?(this.$showSuccess(e.message,4),setTimeout(()=>{let n=this.code;this.code="",this.$router.push(`/portal/reset-password--set-new-password?code=${n}`)},1e3)):(this.hasError=!0,this.$showError(e.message,4))})},this,t)},startCountdown(...t){return i("VerifyCode.startCountdown",e=>{this.countdown=e,this.newCodeSent=!0,this.countdownInterval=setInterval(()=>{this.countdown>0?this.countdown--:(clearInterval(this.countdownInterval),this.newCodeSent=!1)},1e3)},this,t)},resendCode(...t){return i("VerifyCode.resendCode",()=>{u({url:"/portal/reset-password--resend-code",method:"POST",data:{entry_for_reset_password:this.$route.query.entryForResetPassword}}).then(e=>{if(e.result){if(this.$showSuccess(e.message,4),e.options.resend_code_delay===0)return;this.startCountdown(e.options.resend_code_delay)}else this.$showError(e.message,4)})},this,t)},changeModelValue(...t){return i("VerifyCode.changeModelValue",()=>{this.hasError=!1},this,t)}},computed:{resetPasswordInfo(){let t="",e="";switch(this.resetPasswordType){case"email":return t=this.asterisksEmail(this.$route.query.resetTarget,!0),this.$t("portal","A verification code has been sent to your email address ({email})",{email:t});case"sms":return e=this.asterisksPhone(this.$route.query.resetTarget,!0),this.$t("portal","A verification code has been sent to your phone number ({sms})",{sms:e});default:return""}}},components:{ResetPasswordLayout:m(()=>l(()=>import("./ResetPasswordLayout.16sOcwQV.js"),__vite__mapDeps([0,1,2,3]))),XForm:m(()=>l(()=>import("./index.CKGmuCIR.js"),__vite__mapDeps([4,1,2,3]))),XTextField:m(()=>l(()=>import("./index.CmYDeezW.js"),__vite__mapDeps([5,1,2,3,6])))}},$={class:"login-portal-form"},x={class:"login-portal-heading"},R={class:"login-portal-info"},M={key:0,class:"text-danger"},A={class:"form-holder"},q={class:"form-input-group"},D={class:"col-form-label"},L={class:"login-footer"},O=["value"],B=["disabled"],F={key:0,"date-test-selector":"resend-code-countdown-text",class:"text-secondary"};function N(t,e,n,z,s,d){const v=c("x-text-field"),b=c("x-form"),g=c("reset-password-layout");return h(),T(g,null,{default:f(()=>[o("div",$,[o("div",x,r(t.$t("portal","Enter the verification code")),1),o("div",R,[_(r(d.resetPasswordInfo)+" ",1),e[3]||(e[3]=o("br",null,null,-1)),_(" "+r(t.$t("portal","Please enter the code below to continue.")),1),e[4]||(e[4]=o("br",null,null,-1)),s.newCodeSent?(h(),p("span",M,r(t.$t("portal","It may take up to two minutes to arrive.")),1)):w("",!0)]),o("div",A,[y(b,{id:"admin_enter_check_code_form",ref:"form","check-unsaved-data-before-leave-page":!1,class:I(["form-signin",{"has-error":s.hasError}]),role:"form"},{default:f(()=>[o("div",q,[o("label",D,r(t.$t("portal","Code")),1),y(v,{"model-value":s.code,options:{id:"admin_random_code",placeholder:t.$t("portal","Enter the verification code"),autofocus:!0,required:!0,name:"random_code",autocomplete:"off"},"onUpdate:modelValue":e[0]||(e[0]=a=>s.code=a),onInput:d.changeModelValue}
2,null,8,["model-value","options","onInput"])]),o("div",L,[o("input",{id:"adminEnterCheckCodeSubmit",type:"submit",class:"btn btn-primary",value:t.$t("portal","Submit"),onClick:e[1]||(e[1]=C((...a)=>d.verifyCode&&d.verifyCode(...a),["prevent"]))},null,8,O),o("button",{id:"adminResendCode",class:"btn btn-link-secondary",disabled:s.newCodeSent,onClick:e[2]||(e[2]=C((...a)=>d.resendCode&&d.resendCode(...a),["prevent"]))},r(t.$t("portal","Resend code")),9,B)]),s.newCodeSent?(h(),p("small",F,r(t.$t("portal"," You can resend the code in {countdown} seconds",{countdown:s.countdown})),1)):w("",!0)]),_:1},8,["class"])])])]),_:1})}const W=E(S,[["render",N]]);export{W as default};
3//# sourceMappingURL=VerifyCode.DuKPVKF_.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.