1"use strict";(self.webpackChunkpwa=self.webpackChunkpwa||[]).push([[1621],{3636:function(e,t,s){s.a(e,async function(e,a){try{s.d(t,{A:function(){return i.A}});var i=s(7907),r=e([i]);i=(r.then?(await r)():r)[0],a()}catch(e){a(e)}})},6099:function(e,t){t.A={methods:{imageVerificationSuccess(){return this.$route.query.successAfterImageVerify&&("true"==this.$route.query.successAfterImageVerify||1==this.$route.query.successAfterImageVerify)},imageVerificationFail(){return this.$route.query.successAfterImageVerify&&("false"==this.$route.query.successAfterImageVerify||0==this.$route.query.successAfterImageVerify)},pinVerificationSuccess(){return this.$route.query.successAfterPINVerify&&("true"==this.$route.query.successAfterPINVerify||1==this.$route.query.successAfterPINVerify)},pinVerificationFail(){return this.$route.query.successAfterPINVerify&&("false"==this.$route.query.successAfterPINVerify||0==this.$route.query.successAfterPINVerify)},otpVerificationSuccess(){return this.$route.query.successAfterOTPVerify&&"true"===this.$route.query.successAfterOTPVerify},otpVerificationFail(){return this.$route.query.successAfterOTPVerify&&"false"===this.$route.query.successAfterOTPVerify},pinOrImageVerificationSuccess(){return this.imageVerificationSuccess()||this.pinVerificationSuccess()}}}},7486:function(e,t,s){s.d(t,{X:function(){return B}});var a=s(20641),i=s(90033),r=s(53751),n=s(46612),l=s(31664),o=s(28138);const c={class:"md:max-w-md tablet:mx-8"},u={key:0,class:"px-6 pt-6 tablet:pt-12 tablet:px-0 min-h-screen"},d={key:1,class:"px-6 pt-6 tablet:pt-12 tablet:px-0"},p={class:"mb-6"},m={key:0,class:"pt-2"},h={class:"text-xs text-red font-thin"},b={class:"mb-6"},v={key:0,class:"pt-2"},f={class:"text-xs text-red font-thin"},y={class:"mb-6"},g={key:0,class:"pt-2"},k={class:"text-xs text-red font-thin"},L={class:"mb-6"},_={key:0,class:"pt-2"},P={class:"text-xs text-red font-thin"},x={key:0,class:"mb-6"},w={class:"input-wrapper input-has-content"},A=["value"],C={key:1,class:"mb-6"},V={class:"input-wrapper input-has-content"},$=["value"],R={class:"px-6 mb-6 md:px-0"},E={class:"label-wrapper addressPredictions_container"},q={key:0,class:"pt-2"},I={class:"text-xs text-red font-thin"},X=["onClick"],F={class:"mb-6"},S={key:0,class:"pt-2"},j={class:"text-xs text-red font-thin"},N={class:"flex mb-6"},U={class:"w-1/2"},T={key:0,class:"pt-2"},Y={class:"text-xs text-red font-thin"},Q={class:"ml-4 label-wrapper w-1/2"},J={key:0,class:"pt-2"},O={class:"text-xs text-red font-thin"},K={class:"mb-6"},D=["value","selected"],z={key:0,class:"pt-2"},M={class:"text-xs text-red font-thin"},W={class:"pjn-btn-box"};function B(e,t,s,B,Z,G){return(0,a.uX)(),(0,a.CE)("div",c,[B.customer&&"true"===B.customer.can_edit_profile?((0,a.uX)(),(0,a.CE)("div",d,[(0,a.Lk)("div",p,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper-with-error":B.errors.firstname&&Z.submit,"input-wrapper":!B.errors.firstname||!Z.submit,"input-has-content":B.firstname})},[t[19]||(t[19]=(0,a.Lk)("label",{for:"first-name"},"First Names",-1)),(0,a.bo)((0,a.Lk)("input",{onKeypress:t[0]||(t[0]=e=>G.onlyForLetters(e)),class:"input lg:text-base",type:"text",name:"first-name","onUpdate:modelValue":t[1]||(t[1]=e=>B.firstname=e)},null,544),[[r.Jo,B.firstname]])],2),B.errors.firstname&&Z.submit?((0,a.uX)(),(0,a.CE)("div",m,[(0,a.Lk)("span",h,(0,i.v_)(B.errors.firstname),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",b,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper-with-error":B.errors.lastname&&Z.submit,"input-wrapper":!B.errors.lastname||!Z.submit,"input-has-content":B.lastname})},[t[20]||(t[20]=(0,a.Lk)("label",{for:"last-name"},"Last Names",-1)),(0,a.bo)((0,a.Lk)("input",{onKeypress:t[2]||(t[2]=e=>G.onlyForLetters(e)),class:"input lg:text-base",type:"text",name:"last-name","onUpdate:modelValue":t[3]||(t[3]=e=>B.lastname=e)},null,544),[[r.Jo,B.lastname]])],2),B.errors.lastname&&Z.submit?((0,a.uX)(),(0,a.CE)("div",v,[(0,a.Lk)("span",f,(0,i.v_)(B.errors.lastname),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",y,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper":!Z.submit||!B.errors.email,"input-wrapper-with-error":B.errors.email&&Z.submit,"input-has-content":B.email})},[t[21]||(t[21]=(0,a.Lk)("label",{for:"email"},"Email",-1)),(0,a.bo)((0,a.Lk)("input",{id:"email",class:"input input-disabled",type:"email",name:"email","onUpdate:modelValue":t[4]||(t[4]=e=>B.email=e),disabled:""},null,512),[[r.Jo,B.email]])],2),B.errors.email&&Z.submit?((0,a.uX)(),(0,a.CE)("div",g,[(0,a.Lk)("span",k,(0,i.v_)(B.errors.email),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",L,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper":!Z.submit||!B.errors.mobilenumber,"input-wrapper-with-error":B.errors.mobilenumber&&Z.submit,"input-has-content":B.mobilenumber})},[t[22]||(t[22]=(0,a.Lk)("label",{for:"mobile-number"},"Mobile Number",-1)),(0,a.bo)((0,a.Lk)("input",{id:"mobile-number",class:"input",type:"tel",name:"mobile-number",placeholder:"E.g. 0831234567","onUpdate:modelValue":t[5]||(t[5]=e=>B.mobilenumber=e),ref:"mobile_number"},null,512),[[r.Jo,B.mobilenumber]])],2),B.errors.mobilenumber&&Z.submit?((0,a.uX)(),(0,a.CE)("div",_,[(0,a.Lk)("span",P,(0,i.v_)(B.errors.mobilenumber),1)])):(0,a.Q3)("",!0)]),B.netincomerange?((0,a.uX)(),(0,a.CE)("div",x,[(0,a.Lk)("div",w,[t[23]||(t[23]=(0,a.Lk)("label",{for:"income-range"},"Net Income Range",-1)),(0,a.bo)((0,a.Lk)("select",{class:"select",name:"incomerange",id:"incomerange","onUpdate:modelValue":t[6]||(t[6]=e=>B.netincomerange=e)},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(Z.incomeranges,e=>((0,a.uX)(),(0,a.CE)("option",{key:e.value,value:e.value},(0,i.v_)(e.label),9,A))),128))],512),[[r.u1,B.netincomerange]]),t[24]||(t[24]=(0,a.Lk)("div",{class:"pointer-events-none absolute pin-y pin-r flex items-center px-4"},[(0,a.Lk)("img",{src:n,alt:"dropdown"})],-1))])])):(0,a.Q3)("",!0),B.paydate?((0,a.uX)(),(0,a.CE)("div",C,[(0,a.Lk)("div",V,[t[25]||(t[25]=(0,a.Lk)("label",{for:"income-range"},"Instalment Date",-1)),(0,a.bo)((0,a.Lk)("select",{class:"select",name:"paydate",id:"paydate","onUpdate:modelValue":t[7]||(t[7]=e=>B.paydate=e)},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(Z.paydays,e=>((0,a.uX)(),(0,a.CE)("option",{key:e.value,value:e.value},(0,i.v_)(e.label),9,$))),128))],512),[[r.u1,B.paydate]]),t[26]||(t[26]=(0,a.Lk)("div",{class:"pointer-events-none absolute pin-y pin-r flex items-center px-4"},[(0,a.Lk)("img",{src:n,alt:"dropdown"})],-1))])])):(0,a.Q3)("",!0)])):((0,a.uX)(),(0,a.CE)("div",u,t[18]||(t[18]=[(0,a.Lk)("div",{class:"flex justify-center items-center h-64"},null,-1)]))),(0,a.Lk)("div",R,[(0,a.Lk)("div",E,[(0,a.Lk)("div",{class:(0,i.C4)(["mb-6",{"input-wrapper":!Z.submit||!B.errors.line_1,"input-wrapper-with-error":Z.submit&&B.errors.line_1,"input-has-content":B.line_1}])},[t[27]||(t[27]=(0,a.Lk)("label",{for:"address"},[(0,a.eW)(" Residential Address "),(0,a.Lk)("small",null,"(line 1)")],-1)),(0,a.bo)((0,a.Lk)("input",{id:"address",class:"input",type:"text",name:"line-1",placeholder:"Line 1","onUpdate:modelValue":t[8]||(t[8]=e=>B.line_1=e),ref:"address_line_1",onInput:t[9]||(t[9]=e=>G.onAddressChange(e)),onFocus:t[10]||(t[10]=e=>Z.showAddressPredictions=!0)},null,544),[[r.Jo,B.line_1]])],2),B.errors.line_1&&Z.submit?((0,a.uX)(),(0,a.CE)("div",q,[(0,a.Lk)("span",I,(0,i.v_)(B.errors.line_1),1)])):(0,a.Q3)("",!0),Z.showAddressPredictions&&Z.addressPredictions.length>0?((0,a.uX)(),(0,a.CE)("div",{key:1,class:(0,i.C4)([{loading:Z.addressPredictionsLoading},"addressPredictions"])},[(0,a.Lk)("button",{class:"addressPredictions__close",onClick:t[11]||(t[11]=e=>Z.showAddressPredictions=!1)},t[28]||(t[28]=[(0,a.Lk)("img",{src:l,alt:"close",class:"close-icon"},null,-1)])),t[29]||(t[29]=(0,a.Lk)("div",{class:"addressPredictions__loader"},[(0,a.Lk)("img",{src:o,alt:"close",class:"close-icon"})],-1)),((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(Z.addressPredictions,(e,t)=>((0,a.uX)(),(0,a.CE)("div",{class:"addressPredictions__item",key:t,onClick:e=>G.chooseAddress(t)},(0,i.v_)(e.Text),9,X))),128))],2)):(0,a.Q3)("",!0)]),(0,a.Lk)("div",F,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper":!Z.submit||!B.errors.line_2,"input-wrapper-with-error":Z.submit&&B.errors.line_2,"input-has-content":B.line_2})},[t[30]||(t[30]=(0,a.Lk)("label",{for:"address"},[(0,a.eW)(" Residential Address "),(0,a.Lk)("small",null,"(line 2)")],-1)),(0,a.bo)((0,a.Lk)("input",{class:"input",type:"text",name:"line-2",placeholder:"Line 2","onUpdate:modelValue":t[12]||(t[12]=e=>B.line_2=e),ref:"address_line_2"},null,512),[[r.Jo,B.line_2]])],2),B.errors.line_2&&Z.submit?((0,a.uX)(),(0,a.CE)("div",S,[(0,a.Lk)("span",j,(0,i.v_)(B.errors.line_2),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",N,[(0,a.Lk)("div",U,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper":!Z.submit||!B.errors.cityval,"input-wrapper-with-error":Z.submit&&B.errors.cityval,"input-has-content":B.cityval})},[t[31]||(t[31]=(0,a.Lk)("label",{for:"city"},"City",-1)),(0,a.bo)((0,a.Lk)("input",{id:"city",class:"input",type:"text",name:"city",placeholder:"E.g. Cape Town","onUpdate:modelValue":t[13]||(t[13]=e=>B.cityval=e),ref:"city"},null,512),[[r.Jo,B.cityval]])],2),B.errors.cityval&&Z.submit?((0,a.uX)(),(0,a.CE)("div",T,[(0,a.Lk)("span",Y,(0,i.v_)(B.errors.cityval),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",Q,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper":!Z.submit||!B.errors.postalcode,"input-wrapper-with-error":Z.submit&&B.errors.postalcode,"input-has-content":B.postalcode})},[t[32]||(t[32]=(0,a.Lk)("label",{for:"postal-code"},"Postal code",-1)),(0,a.bo)((0,a.Lk)("input",{id:"postal-code",class:"input",type:"tel",name:"postal-code",placeholder:"E.g. 8000","onUpdate:modelValue":t[14]||(t[14]=e=>B.postalcode=e),ref:"postal_code"},null,512),[[r.Jo,B.postalcode]])],2),B.errors.postalcode&&Z.submit?((0,a.uX)(),(0,a.CE)("div",J,[(0,a.Lk)("span",O,(0,i.v_)(B.errors.postalcode),1)])):(0,a.Q3)("",!0)])]),(0,a.Lk)("div",K,[(0,a.Lk)("div",{class:(0,i.C4)({"input-wrapper":!Z.submit||!B.errors.province,"input-wrapper-with-error":Z.submit&&B.errors.province,"input-has-content":B.province})},[t[33]||(t[33]=(0,a.Lk)("label",{for:"postal-code"},"Province",-1)),(0,a.bo)((0,a.Lk)("select",{class:"select",name:"province",id:"province","onUpdate:modelValue":t[15]||(t[15]=e=>B.province=e),ref:"province_id"},[((0,a.uX)(!0),(0,a.CE)(a.FK,null,(0,a.pI)(Z.provinces,e=>((0,a.uX)(),(0,a.CE)("option",{key:e.id,value:e.id,selected:e.id===B.province?"selected":""},(0,i.v_)(e.name),9,D))),128))],512),[[r.u1,B.province]]),t[34]||(t[34]=(0,a.Lk)("div",{class:"pointer-events-none absolute pin-y pin-r flex items-center px-4"},[(0,a.Lk)("img",{src:n,alt:"dropdown"})],-1))],2),B.errors.province&&Z.submit?((0,a.uX)(),(0,a.CE)("div",z,[(0,a.Lk)("span",M,
1(0,i.v_)(B.errors.province),1)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",W,[(0,a.Lk)("button",{class:"pjn-btn pjn-btn--dark-border",onClick:t[16]||(t[16]=(...e)=>G.closeUserProfile&&G.closeUserProfile(...e))},"Cancel"),(0,a.Lk)("button",{class:"pjn-btn",onClick:t[17]||(t[17]=(...e)=>G.updateProfile&&G.updateProfile(...e))},"Save")])])])}},7907:function(e,t,s){s.a(e,async function(e,a){try{s(44114);var i=s(24058),r=s(56222),n=(s(90075),s(43279)),l=s(36544),o=s(12664),c=s(74103),u=s(2977),d=s(12610),p=s(51406),m=s(79342),h=s(6099),b=s(30323),v=e([n,l,p,m]);[n,l,p,m]=v.then?(await v)():v,t.A={mixins:[h.A,n.A],setup(){const e=(0,u.Pj)(),{values:t,errors:s,defineField:a,setFieldValue:i}=(0,c.mN)({validationSchema:o.Ik({email:o.Yj().label("Email address").email("Please enter a valid email address").required(),firstname:o.Yj().label("First name").required().nameSurnameValidator().matches(/^[A-Za-z\-\' ]+$/,"First name may only contain letters and hyphens"),lastname:o.Yj().label("Last name").required().nameSurnameValidator().matches(/^[A-Za-z\-\' ]+$/,"Last name may only contain letters and hyphens"),mobilenumber:o.Yj().label("Mobile number").required().matches(/^[0-9]{10}$/,"Mobile number must be 10 digits"),paydate:o.Yj().label("Pay day").required(),line_1:o.Yj().label("Line 1").required(),line_2:o.Yj().label("Line 2").required(),cityval:o.Yj().label("City").required(),postalcode:o.Yj().label("Postal code").required().matches(/^[0-9]{4}$/,"Postal code must be 4 digits"),province:o.Yj().label("Province").required(),netincomerange:o.Yj().label("Net income range").required()}),initialValues:{paydate:null}}),[r,n]=a("email"),[l,d]=a("firstname"),[p,m]=a("lastname"),[h,b]=a("mobilenumber"),[v,f]=a("netincomerange"),[y,g]=a("paydate"),[k,L]=a("line_1"),[_,P]=a("line_2"),[x,w]=a("cityval"),[A,C]=a("postalcode"),[V,$]=a("province"),R=e.getters.user;R&&(l.value=R.first_name||"",p.value=R.last_name||"",r.value=R.email||"",h.value=R.mobile_number||"",v.value=R.netincomerange||"5001,7500",y.value=R.paydate||"",k.value=R?.address?.address_line_1||"",_.value=R?.address?.address_line_2||"",x.value=R?.address?.city||"",A.value=R?.address?.postal_code||"",V.value=R?.address?.province_id||"");return{email:r,emailProps:n,firstname:l,firstnameProps:d,lastname:p,lastnameProps:m,mobilenumber:h,mobilenumberProps:b,paydate:y,paydateProps:g,line_1:k,line_1Props:L,line_2:_,line_2Props:P,cityval:x,cityProps:w,postalcode:A,postalcodeProps:C,province:V,provinceProps:$,netincomerange:v,netincomerangeProps:f,values:t,errors:s,customer:R,changeFieldValue:(e,t)=>{i(e,t)}}},data(){return{incomeranges:[],provinces:[],paydays:[{label:"1st",value:1},{label:"2nd",value:2},{label:"3rd",value:3},{label:"4th",value:4},{label:"5th",value:5},{label:"6th",value:6},{label:"7th",value:7},{label:"8th",value:8},{label:"9th",value:9},{label:"10th",value:10},{label:"11th",value:11},{label:"12th",value:12},{label:"13th",value:13},{label:"14th",value:14},{label:"15th",value:15},{label:"16th",value:16},{label:"17th",value:17},{label:"18th",value:18},{label:"19th",value:19},{label:"20th",value:20},{label:"21st",value:21},{label:"22nd",value:22},{label:"23rd",value:23},{label:"24th",value:24},{label:"25th",value:25},{label:"26th",value:26},{label:"27th",value:27},{label:"28th",value:28},{label:"29th",value:29},{label:"30th",value:30},{label:"31st",value:31}],submit:!1,addressPredictions:[],showAddressPredictions:!1,addressPredictionsLoading:!1,addressPredictionsLock:!1}},created(){if(this.otpVerificationSuccess()||this.imageVerificationSuccess()){if(this.customer?.first_name&&this.customer?.last_name)try{(0,b.Ag)(this.customer.first_name,this.customer.last_name)}catch(e){}this.navigateAfterSuccess()}else if("true"===this.customer.can_edit_profile)this.incomeranges=[{label:"R5,001 - R7,500",value:"5001,7500"},{label:"R7,501 - R10,000",value:"7501,10000"},{label:"R10,001 - R15,000",value:"10001,15000"},{label:"R15,001 - R20,000",value:"15001,20000"},{label:"R20,001 - R30,000",value:"20001,30000"},{label:"R30,001 - R40,000",value:"30001,40000"},{label:"R40,001 - R50,000",value:"40001,50000"},{label:"R50,001 - R65,000",value:"50001,65000"},{label:"R65,001 - R80,000",value:"65001,80000"},{label:"R80,001 - R100,000",value:"80001,100000"},{label:"R100,000+",value:"100000"}],l.A.get("/v1/app/provinces").then(e=>{this.provinces=e.data,this.$store.dispatch(i.Af,!0)}).catch(e=>{this.$store.dispatch(i.Af,!0)}),this.$store.dispatch(i.DN,"Profile");else{if(this.pinVerificationFail())return this.cancel();this.openuserProfile()}}
1,methods:{navigateAfterSuccess(){return this.$notify({title:"Success!",text:"Your details have been updated",group:"top",type:"success"}),this.$router.push({name:"my-account"})},updateProfile(){this.submit=!0;const e={first_name:this.firstname.trim(),last_name:this.lastname.trim(),email:this.email,mobile_number:this.mobilenumber,netincomerange:this.netincomerange,paydate:this.paydate,address:{address_line_1:this.line_1,address_line_2:this.line_2,city:this.cityval,postal_code:this.postalcode,province_id:this.province}};0===Object.keys(this.errors).length&&(this.$store.dispatch(i.Af,!1),this.$store.dispatch(r.Wl,e).then(()=>{this.$store.dispatch(i.Af,!0).then(()=>{this.navigateAfterSuccess()})}).catch(e=>{let t=!1;if(413===e.response?.status)return void this.$store.commit(r.fn,this.mobilenumber);let s="There has been an error, please try again";403!==e.response?.status&&429!==e.response?.status||(s=e.response.data.message),e.message?.includes("User needs to be authenticated")&&(s="Your session has expired, please log in again.",t=!0),this.$store.dispatch(i.Af,!0).then(()=>{if(this.$notify({title:"Oops!",text:s,group:"top",type:"error"}),t)return(0,d.y)(p.M,m.A,"")})}))},openuserProfile(){this.$store.dispatch(r.NR).then(e=>{}).catch(e=>{})},closeUserProfile(){this.$store.dispatch(r.hi).then(e=>{}).catch(e=>{}).finally(()=>this.cancel())},cancel(){return this.$router.push({name:"my-account"})},onAddressChange:_.debounce(function(e){(e&&"insertText"===e.inputType&&e.target.value.length>2||e&&"input"===e.type&&e.target.value.length>2)&&this.getAutoCompleteData(e.target.value)},800),getAutoCompleteData(e){this.addressPredictionsLoading=!0;let t={Authorization:"Bearer "+localStorage.getItem("token")};l.A.get("/v2/app/get-address-autocomplete?input="+e,"",t).then(e=>{e.Results&&e.Results.length>0&&(this.addressPredictions=e.Results),this.addressPredictionsLoading=!1}).catch(e=>{this.addressPredictionsLoading=!1})},chooseAddress(e){if(this.addressPredictions&&this.addressPredictions.length>0&&this.addressPredictions[e]){this.addressPredictionsLoading=!0;const t=this.addressPredictions[e].Text.split(", ");if(t&&t.length>2){const e=!!t[t.length-2].match("^[0-9]{4}$"),s=t[0],a=t.length>3?t[1]:"",i=void 0!==t[t.length-4]?t[t.length-4]:"",r=e?t[t.length-2]:"";let n=null;this.changeFieldValue("line_1",s),this.changeFieldValue("line_2",a),this.changeFieldValue("cityval",i),this.changeFieldValue("postalcode",r);for(let s of this.provinces)s.name===t[t.length-(e?3:2)]&&(n=s.id);this.changeFieldValue("province",n)}this.showAddressPredictions=!1,this.addressPredictionsLoading=!1}},onlyForLetters(e){let t=e.keyCode?e.keyCode:e.which;(t<65||t>90)&&(t<97||t>122)&&32!==t&&45!==t&&39!==t&&e.preventDefault()}}},a()}catch(e){a(e)}})},28138:function(e,t,s){e.exports=s.p+"img/loader.eff1cc81.svg"},31664:function(e,t,s){e.exports=s.p+"img/close--black.3f914363.svg"},37581:function(){},43279:function(e,t,s){s.a(e,async function(e,a){try{s(44114);var i=s(77598),r=s(24058),n=s(36544),l=e([n]);n=(l.then?(await l)():l)[0],t.A={methods:{sendOTP(e){this.$store.dispatch(r.Af,!1).then(()=>{let t={Authorization:"Bearer "+localStorage.getItem("register_token")};n.A.get(`/v2/app/register/resend-otp/${e.id}`,"",t).then(()=>{this.$store.dispatch(r.Af,!0).then(()=>(this.$notify({title:"Success!",text:`A new one-time PIN has been sent to ${e.mobile_number}`,group:"top",type:"success"}),this.$router.push({name:"register",params:{page:"confirm-mobile-number",id:e.id}})))}).catch(e=>{this.$store.dispatch(r.Af,!0)})})},setProfile(e){},redirectToRegistrationStep(e,t=null){let s={name:"login"};switch(e.customer_registration_status){case i.qE:1==e.email_verified&&t?(this.$notify({title:"Sorry!",text:"It looks like you have already signed up!",group:"top",type:"error"}),s={name:"login"}):s={name:"register",params:{page:"complete-profile",id:e.id}};break;case i.R:s={name:"register",params:{page:"confirm-email",id:e.id}};break;case i.Tn:s={name:"register",params:{page:"confirm-mobile-number",id:e.id}};break;case i.EC:case i.Rp:s={name:"register",params:{page:"security-check",id:e.id}};break;default:break;case i.ij:s={name:"register",params:{page:"complete-profile",id:e.id}}}return this.$router.push(s)}}},a()}catch(e){a(e)}})},46612:function(e,t,s){e.exports=s.p+"img/dropdown.951f1c6c.svg"},71621:function(e,t,s){s.a(e,async function(e,a){try{s.r(t);var i=s(7486),r=s(3636),n=(s(37581),s(66262)),l=e([r]);r=(l.then?(await l)():l)[0];const o=(0,n.A)(r.A,[["render",i.X],["__scopeId","data-v-229500cc"]]);t.default=o,a()}catch(e){a(e)}})},77598:function(e,t,s){s.d(t,{EC:function(){return l},R:function(){return a},Rp:function(){return o},Tn:function(){return r},ij:function(){return n},qE:function(){return i}});const a="awaiting email confirmation",i="force login",r="awaiting mobile confirmation",n="awaiting profile confirmation",l="email confirmed",o="awaiting credit check"}}]);
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.