1(self.webpackChunkuaenl=self.webpackChunkuaenl||[]).push([[1981],{55539:function(e,t,o){o.r(t),o.d(t,{default:function(){return s}}),o(9711),o(51725);var r=o(463),i=o(31389),a=o(33250),n=o(70475),s=(t=(o(23508),{name:"verifyPhone",props:{otherUserinfo:{}},data(){return{otherCode:"",accountForm:{phone:"",countryInfo:"",email:""},verifyWayArr:[{key:"phone",text:"Mobile"},{key:"email",text:"Email"}],countryList:"",rules:{phone:r.A.phone,email:r.A.email,verifyCode:r.A.code},changeDisStartInterval:null,codeOverdueTime:0,disStartSecond:0,googleCode:"",getGoogleTimer:null,grecaptchaWidgetId1:"",errorText:""}},components:{},watch:{googleClientSecret(e){this.$nextTick(()=>{e&&!this.getGoogleTimer&&this.initGrecaptcha()})}},computed:{googleClientSecret(){return i.A.getGlobalState("googleClientSecret")},countryCode(){var e;return(null==(e=this.accountForm.countryInfo)?void 0:e.split("_")[0])||""},countryId(){var e;return(null==(e=this.accountForm.countryInfo)?void 0:e.split("_")[1])||""}},beforeDestroy(){clearTimeout(this.getGoogleTimer),clearInterval(this.changeDisStartInterval)},created(){},mounted(){this.init()},methods:{close(){this.$emit("close")},changeShow(e){this.$refs.dialog.changeShow(e)},countrySelectFinish(){!this.accountForm.countryInfo&&this.otherCode&&(this.accountForm.countryInfo=this.$refs.countrySelect.findOtherCountryInfo(this.otherCode))},init(){this.accountForm.phone=this.otherUserinfo.noneCodePhone,this.accountForm.email=this.otherUserinfo.realMail,this.otherUserinfo.countryId?this.accountForm.countryInfo=this.otherUserinfo.code+"_"+this.otherUserinfo.countryId:this.otherCode=this.otherUserinfo.code,this.changeShow(!0),this.$nextTick(()=>{this.initGrecaptcha()})},phoneInput(){this.accountForm.phone=this.accountForm.phone.replace(/\D/g,"")},async submitForm(){this.$refs.loginForm.validate(e=>{if(!e)return!1;this.confirmHandler()})},async confirmHandler(){this.errorText="";var e=this.countryCode+this.accountForm.phone,t={data:{account:e,type:"20",verifyCode:this.accountForm.verifyCode}};e={account:e,countryId:this.countryId,verifyCodeType:20,verifyCode:this.accountForm.verifyCode};this.$toast.loading({duration:0,forbidClick:!0,loadingType:"circular",className:"planet-toast-loading"});let o=!0;if(this.otherUserinfo.phoneValidStatus||await this.$store.dispatch("bindMobileOrEmail",e).then(e=>{0!==e.code&&(o=!1,this.errorText=e.message)}),!o)return!1;e=await this.$command.post("hapi","001013",{message:a.A.encode(JSON.stringify(t))},{hideToastCommon:1}),this.$toast.clear(),0===e.code?this.$emit("handleCheckCode",this.accountForm.verifyCode):this.errorText=e.message},sendOTP(){this.$refs.loginForm.validateField("phone",e=>!e&&(!this.googleCode&&this.googleClientSecret?(this.$message.error(this.$t("withdraw.verifyPhoneCard.enterCaptcha")),!1):!(e=this.codeOverdueTime)||0<=Date.now()-e?(this.codeOverdueTime=Date.now()+6e4,this.changeDisTime(),this.handleGetVerifyCode(),!1):void this.changeDisTime()))},async handleGetVerifyCode(){var e={clientInfo:{platform:(0,n.RV)(),product:(0,n.hD)()},data:{type:20,sendType:"1",phone:this.countryCode+this.accountForm.phone,googleCode:this.googleCode}};e=await this.$command.post("hapi","001001",{message:a.A.encode(JSON.stringify(e))},{hideToastCommon:1});this.googleCode="",grecaptcha.reset(this.grecaptchaWidgetId1),0===e.code&&e.data&&e.data.checkCode?200!==e.data.checkCode&&(this.codeOverdueTime=Date.now(),this.errorText=this.$t("withdraw.verifyPhoneCard.internetError")):(this.codeOverdueTime=Date.now(),this.errorText=e.message||this.$t("global.validationFailed"))},changeDisTime(){clearInterval(this.changeDisStartInterval);let e=()=>{this.disStartSecond=Math.round((this.codeOverdueTime-Date.now())/1e3),this.disStartSecond<0&&(this.disStartSecond=0)};e(),this.changeDisStartInterval=setInterval(()=>{0===this.disStartSecond?clearInterval(this.changeDisStartInterval):e()},1e3)},async initGrecaptcha(){let e,t=()=>{this.googleClientSecret&&(this.googleCode="",this.grecaptchaWidgetId1=grecaptcha.render("grecaptcha",{sitekey:this.googleClientSecret,callback:e=>{this.googleCode=e},"expired-callback":()=>{this.googleCode=""}}))};document.querySelector(".grecaptcha-script")?t():((e=document.createElement("script")).setAttribute("class","grecaptcha-script"),e.src="https://www.recaptcha.net/recaptcha/api.js?render=explicit",e.src="https://www.google.com/recaptcha/api.js?render=explicit",document.head.appendChild(e),e.onload=()=>{let e=0,o=()=>{this.getGoogleTimer=setTimeout(()=>{clearTimeout(this.getGoogleTimer),this.getGoogleTimer=null,"function"==typeof grecaptcha.render?t():++e<5&&o()},500)};o()})}}}),(0,o(81656).A)(t,function(){var e=this,t=e._self._c;return t("div",{staticClass:"profileVerifyPhone"},[t("a-nl-dialog",e._g({ref:"dialog",attrs:{attach:".profileVerifyPhone"},on:{close:e.close},scopedSlots:e._u([{key:"contentTitle",fn:function(){return[e._v(e._s(e.$t("withdraw.verifyPhoneCard.title")))]},proxy:!0},{key:"subtitle",fn:function(){return[e._v(" "+e._s(e.$t("withdraw.verifyPhoneCard.subtitle"))+" ")]},proxy:!0},{key:"content",fn:function(){return[t("div",{staticClass:"form-content",class:e.$vuetify.breakpoint.name},[t("a-nl-alert",{attrs:{errorText:e.errorText},on:{close:function(t){e.errorText=""}}}),e.otherUserinfo.phoneValidStatus?t("div",{staticClass:"phone-wrap"},[e._v(" "+e._s(e.$t("withdraw.verifyPhoneCard.mobileNo"))+" "+e._s(e.otherUserinfo.phone)+" ")]):e._e(
1),t("a-form-model",{ref:"loginForm",attrs:{model:e.accountForm,rules:e.rules}},[t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!e.otherUserinfo.phoneValidStatus,expression:"!otherUserinfo.phoneValidStatus"}],key:"phone",ref:"phoneFormItem",staticClass:"phoneSelect",attrs:{autoLink:!1,prop:"phone"}},[t("a-input-group",{staticStyle:{display:"flex"},attrs:{compact:""}},[t("nl-country-select",{ref:"countrySelect",on:{finish:e.countrySelectFinish},model:{value:e.accountForm.countryInfo,callback:function(t){e.$set(e.accountForm,"countryInfo",t)},expression:"accountForm.countryInfo"}}),t("a-input",{directives:[{name:"inputLtr",rawName:"v-inputLtr"}],staticClass:"ant-custom",staticStyle:{width:"auto",flex:"1"},attrs:{allowClear:"",inputmode:"numeric",placeholder:e.$t("withdraw.verifyPhoneCard.mobileNumber")},on:{blur:()=>{e.$refs.phoneFormItem.onFieldBlur()},change:()=>{e.$refs.phoneFormItem.onFieldChange()},input:e.phoneInput},model:{value:e.accountForm.phone,callback:function(t){e.$set(e.accountForm,"phone",t)},expression:"accountForm.phone"}})],1)],1),t("div",{staticClass:"grecaptcha-wrap",staticStyle:{"min-height":"75px"},attrs:{id:"grecaptcha-wrap"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.googleClientSecret,expression:"googleClientSecret"}],staticClass:"g-recaptcha",attrs:{id:"grecaptcha"}})]),t("a-form-model-item",{attrs:{prop:"verifyCode"}},[t("a-input",{staticClass:"ant-custom code",attrs:{placeholder:e.$t("withdraw.verifyPhoneCard.verificationCode")},model:{value:e.accountForm.verifyCode,callback:function(t){e.$set(e.accountForm,"verifyCode",t)},expression:"accountForm.verifyCode"}},[t("div",{staticClass:"get-code sensors-mobilenumberverification-otp",class:{number:0<e.disStartSecond},attrs:{slot:"addonAfter"},on:{click:function(t){return t.stopPropagation(),e.sendOTP.apply(null,arguments)}},slot:"addonAfter"},[e._v(" "+e._s(0<e.disStartSecond?"".concat(e.disStartSecond,"s"):e.$t("withdraw.verifyPhoneCard.sendOTP"))+" ")])])],1),t("div",{staticClass:"form-footer-btn"},[t("a-nl-button",{staticClass:"sensors-mobilenumberverification-confirm",attrs:{size:"big",type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("withdraw.verifyPhoneCard.confirm"))+" ")])],1)],1)],1)]},proxy:!0}])},e.$listeners))],1)},[],!1,null,"dfc50c60",null).exports)},463:function(e,t,o){o.d(t,{G:function(){return i}}),o(30587),o(51725);var r=o(40735);let i={special:/[\\ï¼ï¼_+ãã%`!$^()=:;,\[\].<>ãã/?~ï¼@#ï¿¥â¦â¦&*ï¼ï¼ââ|{}ããâï¼ï¼ââ'ãï¼ãï¼-]/,nameSpecial:/[\\ï¼ï¼_+ãã%`!$^()=:;,\[\].<>ãã/?~ï¼@#ï¿¥â¦â¦&*ï¼ï¼ââ|{}ããâï¼ï¼ââãï¼ãï¼-]/,email:/^([a-zA-Z]|[0-9])(\w|\-|\.)+@[a-zA-Z0-9\.]+\.([a-zA-Z]{2,4})$/},a=/^[a-zA-Z\s']*$/;t.A={phone:[{required:!0,message:r.Ay.t("login.formRules.enterPhoneNo")},{validator:(e,t,o,i,a)=>{/^[0]/.test(t)?o(new Error(r.Ay.t("login.formRules.startWith"))):o()},trigger:"blur"}],email:[{required:!0,message:r.Ay.t("login.formRules.enterEmail")},{validator:(e,t,o,a,n)=>{i.email.test(t)?o():o(new Error(r.Ay.t("login.formRules.invalidEmail")))},trigger:"blur"}],code:[{required:!0,message:r.Ay.t("login.formRules.enterCode")},{validator:(e,t,o,i,a)=>{4!==t.length?o(new Error(r.Ay.t("login.formRules.incorrectCode"))):o()},trigger:"blur"}],firstName:[{required:!0,message:r.Ay.t("login.formRules.enterFirstName")},{validator:(e,t,o,i,n)=>{t=t.replace(/\s+/g,""),1===t.length?o(new Error(r.Ay.t("login.formRules.enterFirstName"))):a.test(t)?o():o(new Error(r.Ay.t("login.formRules.onlyEnglishWords")))},trigger:"blur"}],lastName:[{required:!0,message:r.Ay.t("login.formRules.enterLastName")},{validator:(e,t,o,i,n)=>{t=t.replace(/\s+/g,""),1===t.length?o(new Error(r.Ay.t("login.formRules.enterLastName"))):a.test(t)?o():o(new Error(r.Ay.t("login.formRules.onlyEnglishWords")))},trigger:"blur"}],idCard:[{required:!0,message:r.Ay.t("login.formRules.enterID")},{validator:(e,t,o,r,i)=>{o()}}]}}}]);
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.