PageSourceSearch

https://qqbetwin.com/chunk-7VUPMEEH.js

js qqbetwin.com collected 2026-10-05 01:18:49 UTC 86,934 bytes, 1 lines download raw bytes

1import{a as gt}from"./chunk-GNSVSSEC.js";import{a as bt}from"./chunk-Z6YKEPQR.js";import"./chunk-RBT7V6O6.js";import{a as _t,b as Ae,c as E}from"./chunk-4ZUV4ZKP.js";import"./chunk-WTEBCJXP.js";import{a as ut}from"./chunk-AAEX34ES.js";import"./chunk-FFTXNXI6.js";import"./chunk-MFY6GL67.js";import"./chunk-FD55Q7R4.js";import{b as ft}from"./chunk-WH22GQDU.js";import{b as ht}from"./chunk-5LWFT2LT.js";import{a as pt}from"./chunk-O5RKV2DG.js";import"./chunk-WQGKT4QG.js";import"./chunk-LBFZVMBI.js";import{b as W,n as mt}from"./chunk-SQXH55RY.js";import{A as Q,B as oe,b as at,c as z,e as P,g as q,h as Y,l as rt,m as ee,o as lt,q as te,r as ie,s as Pe,t as Ee,u as Ne,x as st,y as ct,z as ne}from"./chunk-FZLMV5FP.js";import{O as ue,r as Ue,x as H}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{C as ot,e as me,h as ye,i as L,j as R,k as X,p as j,q as pe,qa as dt,r as U,ra as Me,sa as G,v as $,x as De,z as Be}from"./chunk-LKIBVTZY.js";import{b as nt}from"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{$ as Ze,$a as de,A as b,B as v,Da as s,Fa as Se,Ia as l,Ja as r,K as xe,Ka as I,La as A,Ma as F,Oa as k,Ra as S,Sa as d,Va as Ye,Za as se,_a as ce,aa as Je,ab as et,bb as m,cb as _,db as w,eb as ae,ga as o,ha as C,jb as Ie,kb as ke,lb as we,ma as Xe,mb as J,nb as O,ob as B,p as T,pb as y,qb as K,rb as tt,sb as u,tb as f,ub as je,xa as g,xb as it,z as Ce}from"./chunk-LZGEQQYD.js";import{_b as ve,b as Ke,ka as be}from"./chunk-BW2TMJN6.js";import{a as Qe,b as He,j as M}from"./chunk-RNQ7BUHW.js";var Nt=n=>({"no-border":n}),Mt=n=>({verify:n}),At=n=>({cursor:n}),Ft=()=>({cursor:"not-allowed"}),Vt=()=>({paddingTop:"0px"}),Tt=()=>({}),Ot=(n,c)=>({"min-width":n,cursor:c});function Lt(n,c){n&1&&(l(0,"strong",8),m(1),u(2,"translate"),A(3),m(4),u(5,"translate"),F(),r()),n&2&&(o(),w(" ",f(2,2,"profilePage.phoneNumberIDR"),""),o(3),w(" (",f(5,4,"signUpPage.phoneIDR"),")"))}function Rt(n,c){n&1&&(l(0,"strong",8),m(1),u(2,"translate"),A(3),m(4),u(5,"translate"),F(),r()),n&2&&(o(),w(" ",f(2,2,"profilePage.phoneNumber"),""),o(3),w(" (",f(5,4,"signUpPage.phoneNotIDR"),")"))}function jt(n,c){n&1&&(l(0,"span",11),m(1),u(2,"translate"),r()),n&2&&(o(),_(f(2,1,"edit")))}function Ut(n,c){if(n&1){let e=k();l(0,"button",9),S("click",function(){b(e);let t=d(2);return t.editPhoneNumber=!t.editPhoneNumber,v(t.accountInfoService.showUserInfoButtons())}),g(1,jt,3,3,"span",10),r()}if(n&2){let e=d(2);o(),s("ngIf",!e.globalData.isMobileStyle)}}function Gt(n,c){if(n&1&&(A(0),g(1,Lt,6,6,"strong",5)(2,Rt,6,6,"strong",5),l(3,"strong",6),m(4),u(5,"translate"),r(),g(6,Ut,2,1,"button",7),F()),n&2){let e=d();o(),s("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)==="IDR"),o(),s("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)!=="IDR"),o(2),_(e.securedPhoneNumber||(e.accountInfoService.notAllowEditPhone?"":f(5,4,"profilePage.pleaseEnter"))),o(2),s("ngIf",e.isShowEditBtn()&&!e.accountInfoService.notAllowEditPhone)}}function Wt(n,c){n&1&&(A(0),l(1,"select",23)(2,"option",24),m(3,"+62"),r()(),F()),n&2&&(o(),s("ngStyle",B(1,Ft)))}function $t(n,c){if(n&1&&(A(0),l(1,"option",28),m(2),r(),F()),n&2){let e=c.$implicit;o(),s("value",e.phoneCode),o(),w(" +",e.phoneCode," ")}}function zt(n,c){if(n&1&&(l(0,"select",25)(1,"option",26),m(2),u(3,"translate"),r(),g(4,$t,3,2,"ng-container",27),r()),n&2){let e=d(2);o(2),w(" ",f(3,2,"profilePage.countryCode")," "),o(2),s("ngForOf",e.contactCountryList)}}function qt(n,c){if(n&1&&(l(0,"p",29),m(1),r()),n&2){let e=d(2);s("ngStyle",e.globalData.isMobileStyle?B(3,Tt):B(2,Vt)),o(),w(" ",e.phoneNumberCtrl.errors.message," ")}}function Qt(n,c){if(n&1&&(l(0,"div",30)(1,"span",31),m(2),u(3,"translate"),r(),l(4,"span",32),m(5),u(6,"translate"),r()()),n&2){let e=d(2);o(2),ae("",e.phoneTimer," ",f(3,3,"fastLoginPage.second"),""),o(3),_(f(6,5,"fastLoginPage.resendLater"))}}function Ht(n,c){if(n&1){let e=k();l(0,"button",33),S("click",function(){b(e);let t=d(2);return v(t.sendVerificationCode())}),m(1),u(2,"translate"),r()}if(n&2){let e=d(2);s("ngStyle",K(6,Ot,e.langService.language==="ko-KR"||e.langService.language==="vi-VN"?"130px":"",e.isPhoneSendCodeBtnDisabled()?"not-allowed":"pointer"))("ngClass",e.countryCodeCtrl.valid&&e.phoneNumberCtrl.valid?"submit":"btn-default")("disabled",e.isPhoneSendCodeBtnDisabled()),o(),_(f(2,4,e.isShowPhoneCodeResetBtn?"fastLoginPage.resendLater":"profilePage.sendActivationCode"))}}function Kt(n,c){if(n&1){let e=k();l(0,"div",12)(1,"strong",8),m(2),u(3,"translate"),u(4,"translate"),r(),l(5,"div",13)(6,"div",14),g(7,Wt,4,2,"ng-container",15)(8,zt,5,4,"ng-template",null,0,it),r(),I(10,"input",16),u(11,"translate"),r(),g(12,qt,2,4,"p",17),l(13,"strong",8),m(14),u(15,"translate"),r(),l(16,"div",18),I(17,"input",19),g(18,Qt,7,7,"div",20)(19,Ht,3,9,"button",21),r(),l(20,"button",22),S("click",function(){b(e);let t=d();return v(t.submitNewPhone())}),m(21),u(22,"translate"),r()()}if(n&2){let e=et(9),i=d();o(2),ae("",f(3,13,"profilePage.newPhoneNumber")," (",f(4,15,"promotionPage.MEMBER")," E-Wallet)"),o(5),s("ngIf",(i.globalData.acctInfo==null?null:i.globalData.acctInfo.currency)==="IDR")("ngIfElse",e),o(3),s("placeholder",f(11,17,"depositPage.phone")),o(2),s("ngIf",i.phoneNumberCtrl.errors&&(i.phoneNumberCtrl.touched||i.phoneNumberCtrl.dirty)),o(2),w("",f(15,19,"profilePage.activationCode")," "),o(4),s("ngIf",!i.isShowPhoneSendCodeBtn&&!i.isShowPhoneCodeResetBtn),o(),s("ngIf",i.isShowPhoneSendCodeBtn||i.isShowPhoneCodeResetBtn),o(),s("ngClass",y(23,Mt,i.countryCodeCtrl.valid&&i.phoneNumberCtrl.valid&&i.otpCtrl.valid))("ngStyle",y(25,At,i.isPhoneVerifyBtnDisabled()?"not-allowed":"pointer"))("disabled",i.isPhoneVerifyBtnDisabled()),o(),_(f(22,21,"fastLoginPage.verificationOtp"))}}var Te=(()=>{let c=class c{constructor(i,t,a,p,h,x,D){this.globalData=i,this.formValidators=t,this.fb=a,this.langService=p,this.httpService=h,this.accountInfoService=x,this.storageService=D,this.showMsgEvent=ne
1w xe,this.contactCountryList=[],this.editPhoneNumber=!1,this.defaultCountryCode="",this.securedPhoneNumber="",this.isComponentAlive=!0,this.RESEND_INTERVAL=180,this.phoneTimer=this.RESEND_INTERVAL,this.isShowPhoneCodeResetBtn=!1,this.isShowPhoneSendCodeBtn=!0,this.oriContactNumber=""}ngOnInit(){var i;this.contactCountryList=this.accountInfoService.contactCountryList,this.defaultCountryCode=ft().get((i=this.globalData.acctInfo)==null?void 0:i.currency)||"60",this.createPhoneForm(),this.accountInfoService.isAccountDetailsOpenAll$.subscribe(t=>{this.editPhoneNumber=t,t||(this.initPhoneNumber(),this.reset())})}ngOnChanges(i){var t;(t=i.memInfo)!=null&&t.currentValue&&this.initPhoneNumber()}setTimer(){clearInterval(this.phoneTimerId),this.phoneTimerId=setInterval(()=>{this.phoneTimer=this.phoneTimer-1,this.phoneTimer===0&&(clearInterval(this.phoneTimerId),this.isShowPhoneCodeResetBtn=!0)},1e3)}backToCount(){this.isShowPhoneCodeResetBtn=!1,this.phoneTimer=this.RESEND_INTERVAL,this.setTimer(),this.globalData.loading=!1}createPhoneForm(){this.phoneForm=this.fb.group({countryCode:[this.defaultCountryCode,[P.required]],phoneNumber:["",[P.required]],otp:["",[P.required,P.pattern("[0-9]{6}")]]})}initPhoneNumber(){var i,t,a,p;if(this.memInfo){let{contactCountry:h,contactNumber:x}=this.memInfo;(i=this.phoneNumberCtrl)==null||i.reset(),this.securedPhoneNumber=x?"+".concat(h,"-").concat(x):this.globalData.translateString("profilePage.pleaseEnter"),x&&((t=this.countryCodeCtrl)==null||t.setValue(h),(a=this.phoneNumberCtrl)==null||a.setValue(x)),this.oriContactNumber=x,(p=this.phoneNumberCtrl)==null||p.setValidators(this.formValidators.createPhoneNumberValidator(this.oriContactNumber))}}get countryCodeCtrl(){var i;return(i=this.phoneForm)==null?void 0:i.controls.countryCode}get phoneNumberCtrl(){var i;return(i=this.phoneForm)==null?void 0:i.controls.phoneNumber}get otpCtrl(){var i;return(i=this.phoneForm)==null?void 0:i.controls.otp}isShowEditBtn(){return this.onProfile==!0||this.accountInfoService.notAllowEditPhone?!1:!this.editPhoneNumber}isShowContent(){return this.onProfile==!0||this.accountInfoService.notAllowEditPhone?!1:(this.editPhoneNumber&&Ue.addListener("phoneNumber"),this.editPhoneNumber)}isPhoneSendCodeBtnDisabled(){var i,t,a;return!((i=this.countryCodeCtrl)!=null&&i.valid&&((t=this.phoneNumberCtrl)!=null&&t.valid)&&((a=this.phoneNumberCtrl)!=null&&a.value))}isPhoneVerifyBtnDisabled(){var i,t,a;return!((i=this.countryCodeCtrl)!=null&&i.valid)||!((t=this.phoneNumberCtrl)!=null&&t.valid)||!((a=this.otpCtrl)!=null&&a.valid)}sendVerificationCode(){this.globalData.loading=!0,this.phoneNumberVerifyCode()}updateMemInfo(){return M(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData,this.initPhoneNumber()})}reset(){var i;clearInterval(this.phoneTimerId),(i=this.otpCtrl)==null||i.setValue(""),this.editPhoneNumber=!1,this.isShowPhoneSendCodeBtn=!0,this.isShowPhoneCodeResetBtn=!1,this.phoneTimer=this.RESEND_INTERVAL}phoneNumberVerifyCode(){let{countryCode:i,phoneNumber:t}=this.phoneForm.value,a=t;t===this.oriContactNumber&&(t="");let p={contactCountry:i,contactNumber:t};this.globalData.loading=!0,this.httpService.sendVerificationCode(p).subscribe(h=>{h.code===0?(this.isShowPhoneSendCodeBtn=!1,this.backToCount(),this.showMsgEvent.emit(this.globalData.translateString("fastLoginPage.verifyPhoneNumberSent")+" +".concat(i,"-").concat(a))):this.globalData.showAlert(h.code),this.globalData.loading=!1})}submitNewPhone(){let{countryCode:i,phoneNumber:t,otp:a}=this.phoneForm.value;t===this.oriContactNumber&&(t="");let p={Sendphone:String(a),ContactCountry:i,ContactNumber:t,Act:"SAVE"};this.globalData.loading=!0,this.httpService.editMemberPhone(p).subscribe(h=>{h.code===0?(this.showMsgEvent.emit(this.globalData.translateString("fastLoginPage.phoneNumberVerified")),this.reset(),setTimeout(()=>{this.updateMemInfo()},1e3)):h.code===1440433?this.globalData.showAlert(h.code,0,()=>window.location.reload()):this.globalData.showAlert(h.code,2),this.globalData.loading=!1})}ngOnDestroy(){this.isComponentAlive=!1,clearInterval(this.phoneTimerId),Ue.removeListener("phoneNumber")}};c.\u0275fac=function(t){return new(t||c)(C(G),C(E),C(ne),C(X),C(H),
1C(W),C(me))},c.\u0275cmp=T({type:c,selectors:[["app-account-phone-details"]],inputs:{memInfo:"memInfo",onProfile:"onProfile"},outputs:{showMsgEvent:"showMsgEvent"},standalone:!0,features:[J([E]),Ce,O],decls:4,vars:6,consts:[["otherCode",""],[1,"grid"],["id","profile4",1,"profile-item",3,"formGroup","ngClass"],[4,"ngIf"],["class","form under-type","style","overflow: 'hidden'",4,"ngIf"],["class","title",4,"ngIf"],[1,"user-content"],["class","edit-btn",3,"click",4,"ngIf"],[1,"title"],[1,"edit-btn",3,"click"],["data-show","web-window","class","tooltip",4,"ngIf"],["data-show","web-window",1,"tooltip"],[1,"form","under-type",2,"overflow","'hidden'"],[1,"mobile-input-group"],[1,"select-box"],[4,"ngIf","ngIfElse"],["id","phoneNumber","type","text","inputmode","numeric","pattern","[0-9\\*]+","formControlName","phoneNumber",3,"placeholder"],["class","popup-note","style","color: red",3,"ngStyle",4,"ngIf"],[1,"code-input"],["type","text","name","fVCode","placeholder","OTP","formControlName","otp"],["class","otp-count",4,"ngIf"],["class","input-btn",3,"ngStyle","ngClass","disabled","click",4,"ngIf"],[1,"btn-default",3,"click","ngClass","ngStyle","disabled"],["disabled","",3,"ngStyle"],["value","62","selected",""],["formControlName","countryCode"],["value","undefined","disabled",""],[4,"ngFor","ngForOf"],[3,"value"],[1,"popup-note",2,"color","red",3,"ngStyle"],[1,"otp-count"],[1,"time"],[1,"text"],[1,"input-btn",3,"click","ngStyle","ngClass","disabled"]],template:function(t,a){t&1&&(l(0,"div",1)(1,"form",2),g(2,Gt,7,6,"ng-container",3)(3,Kt,23,27,"div",4),r()()),t&2&&(o(),s("formGroup",a.phoneForm)("ngClass",y(4,Nt,a.isShowContent())),o(),s("ngIf",!a.isShowContent()),o(),s("ngIf",a.isShowContent()))},dependencies:[Q,ee,Ee,Ne,z,Pe,q,Y,ct,oe,te,ie,j,U,pe,$,R,L],encapsulation:2});let n=c;return n})();var Zt=n=>({"no-border":n}),Jt=n=>({paddingRight:n}),Ct=n=>({cursor:n}),Xt=()=>({paddingTop:"0px"}),Yt=()=>({}),ei=n=>({verify:n}),ti=(n,c)=>({width:n,cursor:c});function ii(n,c){if(n&1){let e=k();A(0),l(1,"strong",4),m(2),u(3,"translate"),r(),l(4,"button",5),S("click",function(){b(e);let t=d();return t.editEmail=!t.editEmail,v(t.accountInfoService.showUserInfoButtons())}),l(5,"span",6),m(6),u(7,"translate"),r()(),F()}if(n&2){let e=d();o(2),_((e.memInfo==null?null:e.memInfo.memEmail)||f(3,2,"profilePage.pleaseEnter")),o(4),_(f(7,4,"edit"))}}function ni(n,c){if(n&1){let e=k();l(0,"button",12),S("click",function(){b(e);let t=d(2);return v(t.sendVerificationCode())}),m(1),u(2,"translate"),r()}if(n&2){let e=d(2);s("ngStyle",y(6,Ct,e.isEmailSendCodeBtnDisabled()?"not-allowed":"pointer"))("ngClass",e.emailCtrl.valid?"submit":"input-btn")("disabled",e.isEmailSendCodeBtnDisabled()),o(),w("",f(2,4,"fastLoginPage.send")+" OTP"," ")}}function oi(n,c){if(n&1&&(l(0,"p",13),m(1),r()),n&2){let e=d(2);s("ngStyle",e.globalData.isMobileStyle?B(3,Yt):B(2,Xt)),o(),w(" ",e.emailCtrl.errors.message," ")}}function ai(n,c){if(n&1&&(l(0,"div",17)(1,"span",18),m(2),u(3,"translate"),r()()),n&2){let e=d(3);o(2),ae("",e.emailTimer," ",f(3,2,"fastLoginPage.second"),"")}}function ri(n,c){if(n&1){let e=k();l(0,"button",12),S("click",function(){b(e);let t=d(3);return v(t.sendVerificationCode())}),m(1),u(2,"translate"),r()}if(n&2){let e=d(3);s("ngStyle",K(6,ti,e.langService.language==="ko-KR"||e.langService.language==="vi-VN"?"130px":"",e.isEmailSendCodeBtnDisabled()?"not-allowed":"pointer"))("ngClass",e.emailCtrl.valid?"submit":"btn-default")("disabled",e.isEmailSendCodeBtnDisabled()),o(),w("",f(2,4,"fastLoginPage.resendLater")," ")}}function li(n,c){if(n&1){let e=k();A(0),l(1,"strong",1),m(2),u(3,"translate"),r(),l(4,"div",8),I(5,"input",14),g(6,ai,4,4,"div",15)(7,ri,3,9,"button",10),r(),l(8,"button",16),S("click",function(){b(e);let t=d(2);return v(t.submitNewEmail())}),m(9),u(10,"translate"),r(),F()}if(n&2){let e=d(2);o(2),_(f(3,7,"profilePage.activationCode")),o(4),s("ngIf",!e.isShowEamilCodeResetBtn),o(),s("ngIf",e.isShowEamilCodeResetBtn),o(),s("ngClass",y(11,ei,e.emailOtpCtrl.valid))("disabled",e.isEmailVerifyBtnDisabled())("ngStyle",y(13,Ct,e.isEmailVerifyBtnDisabled()?"not-allowed":"pointer")),o(),w("",f(10,9,"fastLoginPage.verificationEmail")," ")}}function si(n,c){if(n&1&&(l(0,"div",7)(1,"div",8),I(2,"input",9),u(3,"translate"),g(4,
1ni,3,8,"button",10),r(),g(5,oi,2,4,"p",11)(6,li,11,15,"ng-container",2),r()),n&2){let e=d();o(2),s("placeholder",(e.memInfo==null?null:e.memInfo.memEmail)||f(3,7,"profilePage.pleaseEnter"))("readOnly",!e.isShowEmailSendCodeBtn)("disabled",!e.isShowEmailSendCodeBtn)("ngStyle",y(9,Jt,e.isShowEmailSendCodeBtn?"90px":"0px")),o(2),s("ngIf",e.isShowEmailSendCodeBtn),o(),s("ngIf",e.emailCtrl.errors&&(e.emailCtrl.touched||e.emailCtrl.dirty)),o(),s("ngIf",!e.isShowEmailSendCodeBtn)}}var xt=(()=>{let c=class c{constructor(i,t,a,p,h,x,D){this.globalData=i,this.formValidators=t,this.storageService=a,this.fb=p,this.langService=h,this.httpService=x,this.accountInfoService=D,this.showMsgEvent=new xe,this.editEmail=!1,this.isComponentAlive=!0,this.RESEND_INTERVAL=600,this.emailTimer=this.RESEND_INTERVAL,this.isShowEamilCodeResetBtn=!1,this.isShowEmailSendCodeBtn=!0}ngOnInit(){var i;this.globalData.isApp?this.template=(i=this.storageService.getLocalStorage("cmsSetting"))==null?void 0:i.template:this.template=window.merchantConfig.template,this.createEmailForm(),this.accountInfoService.isAccountDetailsOpenAll$.subscribe(t=>{this.editEmail=t,t||(this.initEmail(),this.reset())})}ngOnChanges(i){var t;(t=i.memInfo)!=null&&t.currentValue&&this.initEmail()}setTimer(){clearInterval(this.emailTimerId),this.emailTimerId=setInterval(()=>{this.emailTimer=this.emailTimer-1,this.emailTimer===0&&(clearInterval(this.emailTimerId),this.isShowEamilCodeResetBtn=!0,this.emailCtrl.enable())},1e3)}backToCount(){this.isShowEamilCodeResetBtn=!1,this.emailTimer=this.RESEND_INTERVAL,this.setTimer(),this.globalData.loading=!1}createEmailForm(){this.emailForm=this.fb.group({email:["",[P.required,this.formValidators.createEmailValidator()]],emailOtp:["",[P.required,P.pattern("[0-9]{6}")]]})}initEmail(){var i;(i=this.memInfo)!=null&&i.memEmail&&this.emailCtrl.setValue(this.memInfo.memEmail)}updateMemInfo(){return M(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData,this.initEmail()})}get emailCtrl(){return this.emailForm.controls.email}get emailOtpCtrl(){return this.emailForm.controls.emailOtp}isEmailSendCodeBtnDisabled(){return!this.emailCtrl.valid}isEmailVerifyBtnDisabled(){return!this.emailOtpCtrl.valid}sendVerificationCode(){this.globalData.loading=!0,this.emailVerifyCode()}reset(){clearInterval(this.emailTimerId),this.emailOtpCtrl.setValue(""),this.editEmail=!1,this.isShowEmailSendCodeBtn=!0,this.isShowEamilCodeResetBtn=!1,this.emailTimer=this.RESEND_INTERVAL}emailVerifyCode(){var t,a,p;let{email:i}=this.emailForm.value;if((t=this.memInfo)!=null&&t.memEmail&&((a=this.memInfo)==null?void 0:a.memEmail.toLowerCase())==i.toLowerCase()&&((p=this.memInfo)!=null&&p.emailVerify))this.showMsgEvent.emit(this.globalData.translateString("reportPage.success")),this.globalData.loading=!1;else{let h={MailTo:i};this.httpService.sendEmailToVerifyCode(h).subscribe(x=>{x.code===0?(this.isShowEmailSendCodeBtn=!1,this.backToCount(),this.showMsgEvent.emit(this.globalData.translateString("fastLoginPage.verifyEmailSent")+" ".concat(i))):this.globalData.showAlert(x.code,0),this.globalData.loading=!1})}}submitNewEmail(){let{email:i,emailOtp:t}=this.emailForm.value,a={MemEmail:i,ActivationCode:String(t)};this.globalData.loading=!0,this.httpService.editMemberEmail(a).subscribe(p=>{p.code===0?(this.memInfo=He(Qe({},this.memInfo),{memEmail:i}),this.storageService.setMemberInCookie(this.memInfo),this.showMsgEvent.emit(this.globalData.translateString("fastLoginPage.emailVerified")),this.reset(),setTimeout(()=>{this.updateMemInfo()},1e3)):p.code===1430074?this.globalData.showDirectAlert("accountDetailsPage.emailUnderVerify",0,()=>window.location.reload(),1430074):this.globalData.showAlert(p.code,0),this.globalData.loading=!1})}ngOnDestroy(){this.isComponentAlive=!1,clearInterval(this.emailTimerId)}};c.\u0275fac=function(t){return new(t||c)(C(G),C(E),C(me),C(ne),C(X),C(H),C(W))},c.\u0275cmp=T({type:c,selectors:[["app-account-email-details"]],inputs:{memInfo:"memInfo"},outputs:{showMsgEvent:"showMsgEvent"},standalone:!0,features:[J([E]),Ce,O],decls:6,vars:9,consts:[[1,"profile-item",3,"formGroup","ngClass"],[1,"title"],[4,"ngIf"],["class","form","data-edit","show","style","overflow: 'hidden'",4,"ngIf"],["data-edit","hidden",1,"user-content"],["data-edit","hidden",1,"edit-btn",3,"click"],["data-show","web-window",1,"tooltip"],["data-edit","show",1,"form",2,"overflow","'hidden'"],[1,"code-input"],["formControlName","email","type","text",3,"placeholder","readOnly","disabled","ngStyle"],["class","input-btn",3,"ngStyle","ngClass","disabled","click",4,"ngIf"],["class","popup-note","style","color: red",3,"ngStyle",4,"ngIf"],[1,"input-btn",3,"click","ngStyle","ngClass","disabled"],[1,"popup-note",2,"color","red",3,"ngStyle"],["type","text","placeholder","Enter OTP","formControlName","emailOtp"],["class","otp-count",4,"ngIf"],[1,"btn-default",3,"click","ngClass","disabled","ngStyle"],[1,"otp-count"],[1,"time"]],template:function(t,a){t&1&&(l(0,"form",0)(1,"strong",1),m(2),u(3,"translate"),r(),g(4,ii,8,6,"ng-container",2)(5,si,7,11,"div",3),r()),t&2&&(s("formGroup",a.emailForm)("ngClass",y(7,Zt,a.editEmail)),o(2),_(f(3,5,"contactPage.email")),o(2),s("ngIf",!a.editEmail),o(),s("ngIf",a.editEmail))},dependencies:[Q,ee,z,q,Y,oe,te,ie,j,U,$,R,L],encapsulation:2});let n=c;return n})();var di=["BulmaCalendar"],mi=["auto"],St=n=>({"no-border":n}),pi=(n,c)=>({height:n,visibility:c}
1),ui=()=>({paddingTop:"16px"}),fi=()=>({}),hi=n=>({inactive:n}),gi=n=>({cursor:n});function _i(n,c){if(n&1){let e=k();l(0,"button",25),S("click",function(){b(e);let t=d(2);return t.editGender=!t.editGender,v(t.accountInfoService.showUserInfoButtons())}),l(1,"span",26),m(2),u(3,"translate"),r()()}n&2&&(o(2),_(f(3,1,"edit")))}function bi(n,c){if(n&1&&(A(0),l(1,"strong",23),m(2),u(3,"translate"),r(),g(4,_i,4,3,"button",24),F()),n&2){let e=d();o(2),_(f(3,2,e.showGender())),o(2),s("ngIf",(e.memInfo==null?null:e.memInfo.genderModifyDate)===null)}}function vi(n,c){n&1&&(l(0,"div",27)(1,"ul")(2,"li"),I(3,"input",28),l(4,"label",29),m(5),u(6,"translate"),r()(),l(7,"li"),I(8,"input",30),l(9,"label",31),m(10),u(11,"translate"),r()()()()),n&2&&(o(5),_(f(6,2,"accountDetailsPage.male")),o(5),_(f(11,4,"accountDetailsPage.female")))}function Ci(n,c){if(n&1){let e=k();l(0,"button",25),S("click",function(){b(e);let t=d(2);return t.editBirthday=!t.editBirthday,v(t.accountInfoService.showUserInfoButtons())}),l(1,"span",26),m(2),u(3,"translate"),r()()}n&2&&(o(2),_(f(3,1,"edit")))}function xi(n,c){if(n&1&&(A(0),l(1,"strong",23),m(2),u(3,"translate"),r(),g(4,Ci,4,3,"button",24),F()),n&2){let e=d();o(2),_(e.birthdayService.displayBirthday||f(3,2,"profilePage.pleaseEnter")),o(2),s("ngIf",(e.memInfo==null?null:e.memInfo.dateOfBirthModifyDate)===null)}}function Si(n,c){if(n&1&&(l(0,"p",32),m(1),r()),n&2){let e=d();s("ngStyle",e.globalData.isMobileStyle?B(3,fi):B(2,ui)),o(),w(" ",e.birthdayForm.errors.message," ")}}function Ii(n,c){n&1&&(l(0,"div",40),I(1,"i",41),m(2),u(3,"translate"),r()),n&2&&(o(2),w(" ",f(3,1,"accountDetailsPage.bound")," "))}function ki(n,c){if(n&1){let e=k();l(0,"button",42),S("click",function(){b(e);let t=d(2);return v(t.onSocialClick())}),m(1),u(2,"translate"),r()}n&2&&(o(),_(f(2,1,"accountDetailsPage.unbound")))}function wi(n,c){if(n&1&&(l(0,"div",11)(1,"div",33)(2,"strong",13),m(3),u(4,"translate"),r(),l(5,"div",34)(6,"div",35),I(7,"i",36),l(8,"strong",37),m(9,"Line"),r(),g(10,Ii,4,3,"div",38)(11,ki,3,3,"button",39),r()()()()),n&2){let e=d();o(3),_(f(4,4,"accountDetailsPage.socialMedia")),o(4),s("ngClass",y(6,hi,!e.isLineBinded)),o(3),s("ngIf",e.isLineBinded),o(),s("ngIf",!e.isLineBinded)}}function yi(n,c){if(n&1){let e=k();l(0,"div",43)(1,"button",44),S("click",function(){b(e);let t=d();return v(t.onCancel())}),m(2),u(3,"translate"),r(),l(4,"button",45),S("click",function(){b(e);let t=d();return v(t.onSubmit())}),m(5),u(6,"translate"),u(7,"titlecase"),r()()}if(n&2){let e=d();o(2),_(f(3,5,"cancel")),o(2),s("ngClass",e.isSubmitBtnValid()?"btn-submit":"btn-cancel")("ngStyle",y(11,gi,e.isSubmitBtnValid()?"pointer":"not-allowed"))("disabled",!e.isSubmitBtnValid()),o(),w("",f(7,9,f(6,7,"submit"))," ")}}function Di(n,c){if(n&1&&(l(0,"p",46),m(1),r()),n&2){let e=d();o(),_(e.msg)}}var kt=(()=>{let c=class c{constructor(i,t,a,p,h,x,D,N,Z,V,re,le,Et){var ze,qe;this.globalData=i,this.formValidators=t,this.accountInfoService=a,this.storageService=p,this.fb=h,this.langService=x,this.httpService=D,this.birthdayService=N,this.cmsService=Z,this.translateService=V,this.iab=re,this.screenOrientation=le,this.swalDialog=Et,this.showMsg=!1,this.msg="",this.editGender=!1,this.editBirthday=!1,this.editNationality=!1,this.editCountry=!1,this.editGenderupdated=!1,this.editBirthdayupdated=!1,this.editNationalityupdated=!1,this.editCountryupdated=!1,this.editSourceIncome=!1,this.editOccupation=!1,this.isComponentAlive=!0,this.isEditAll=!1,this.isLineBinded=!1,this.counter=0,this.intervalId=null,this.nationalityList=[],this.acctDetailDisplay={},this.accountInfoService.showUserInfoButtons$.next(!1),this.acctDetailDisplay=(qe=(ze=this.cmsService)==null?void 0:ze.cmsSetting)==null?void 0:qe.acctDetailDisplay}ngOnInit(){var i;this.createForms(),this.birthdayForm.setValidators(this.formValidators.createBirthdayValidator(!0)),this.birthdayService.initCalendar(this.birthdayCtrl),this.initFieldValues(),this.listenOpenAll(),this.isLineBinded=(i=this.accountInfoService.memData)==null?void 0:i.isLineBinded}ngAfterViewInit(){this.birthdayService.initBulmaCalendar(this.bCalendar,this.birthdayCtrl,!1,!1,this.memInfo)}listenOpenAll(){this.accountInfoService.isAccountDetailsOpenAll$.next(!1),this.accountInfoService.isAccountDetailsOpenAll$.subscribe(i=>{var t,a,p,h,x,D;this.editGender=(t=this.memInfo)!=null&&t.genderModifyDate?!1:i,this.editBirthday=(a=this.memInfo)!=null&&a.dateOfBirthModifyDate?!1:i,this.editNationality=(p=this.memInfo)!=null&&p.nationalityName?!1:i,this.editCountry=(h=this.memInfo)!=null&&h.countryName?!1:i,this.editSourceIncome=(x=this.memInfo)!=null&&x.sourceIncome?!1:i,this.editOccupation=(D=this.memInfo)!=null&&D.occupation?!1:i})}createForms(){this.createGenderForm(),this.createBirthdayForm(),this.createNationalityForm(),this.createCountryForm(),this.createSourceIncomeForm(),this.createOccupationForm()}updateMemInfo(){return M(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData})}initFieldValues(){return M(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData,this.initGender(),this.birthdayService.initBirthday(this.birthdayCtrl,this.memInfo),this.initNationalityAndCountry(),this.initSourceIncome(),this.initOccupation()})}initGender(){let{gender:i}=this.memInfo;this.genderCtrl.setValue(i||"M")}initSourceIncome(){let{sourceIncome:i}=this.memInfo;this.sourceIncomeCtrl.setValue(i||"")}initOccupation(){let{occupation:i}=this.memInfo;this.occupationCtrl.setValue(i||"")}initNationalityAndCountry(){let{nationalityName:i,countryName:t}=this.memInfo;(!i||!t)&&this.httpService.getCountryDropdownList().subscribe(a=>{a.code===0&&(this.nationalityList=a.data.list)}),this.nationalityCtrl.setValue(i||""),this.countryCtrl.setValue(t||"")}showMessage(i){this.showMsg=!1,this.msg=i,this.showMsg=!0,be(5e3).pipe(ve(()=>!!this.isComponentAlive)).subscribe(()=>{this.showMsg=!1,this.msg=""})}createGenderForm(){this.genderForm=this.fb.group({gender:["",[P.required]]})}createBirthdayForm(){this.birthdayForm=this.fb.group({birthday:["",[P.required]]})}createNationalityForm(){this.nationalityForm=this.fb.group({nationality:[""]})}createCountryForm(){this.countryForm=this.fb.group({country:[""]})}createSourceIncomeForm(){this.sourceIncomeForm=this.fb.group({sourceIncome:[""]})}createOccupationForm(){this.occupationForm=this.fb.group({occupation:[""]})}get genderCtrl(){return this.genderForm.controls.gender}get birthdayCtrl(){return this.birthdayForm.controls.birthday}get nationalityCtrl(){return this.nationalityForm.controls.nationality}get countryCtrl(){return this.countryForm.controls.country}get sourceIncomeCtrl(){return this.sourceIncomeForm.controls.sourceIncome}get occupationCtrl(){return this.occupationForm.controls.occupation}showGender(){return this.genderCtrl.value?this.genderCtrl.value==="M"?"accountDetailsPage.male":"accountDetailsPage.female":""}isGenderValid(){return this.editGender?this.genderForm.valid:!0}isBirthdayValid(){return this.editBirthday?!this.birthdayService.isBirthdaySubmitBtnDisabled(this.birthdayForm,this.birthdayCtrl,this.memInfo):!0}isNationalityValid(){return this.editNationality?this.nationalityForm.valid:!0}isCountryValid(){return this.editCountry?this.countryForm.valid:!0}isSourceIncomeValid(){var i;return(i=this.acctDetailDisplay)!=null&&i.isShowSourceIncome&&this.editSourceIncome?this.sourceIncomeForm.valid:!0}isOccupationValid(){var i;return(i=this.acctDetailDisplay)!=null&&i.isShowOccupation&&this.editOccupation?this.occupationForm.valid:!0}isSubmitBtnValid(){return this.editGender||this.editBirthday||this.editNationality||this.editCountry||this.editSourceIncome||this.editOccupation?this.isGenderValid()&&this.isBirthdayValid():!1}reset(){let{genderModifyDate:i,dateOfBirthModifyDate:t,nationalityName:a,countryName:p,sourceIncome:h,occupation:x}=this.memInfo;i||this.initGender(),t||this.birthdayService.clearbuttons[0].click(),(!a||!p)&&this.initNationalityAndCountry(),h||this.initSourceIncome(),x||this.initOccupation()}onSubmit(){return M(this,null,function*(){let{genderModifyDate:i,dateOfBirthModifyDate:t,nationalityName:a,countryName:p,sourceIncome:h,occupation:x}=this.memInfo,{isShowSourceIncome:D,isShowOccupation:N}=this.acctDetailDisplay,Z={gender:i||!this.editGender?"":this.genderCtrl.value,dob:t||!this.editBirthday?"":this.birthdayService.convertBirthdayValue(this.birthdayForm),nationality:a||!this.editNationality?"":this.nationalityCtrl.value,country:p||!this.editCountry?"":this.countryCtrl.value,sourceIncome:!D||h||!this.editSourceIncome?"":this.sourceIncomeCtrl.value,occupation:!N||x||!this.editOccupation?"":this.occupationCtrl.value};this.globalData.loading=!0,this.httpService.editMemberAcctDetails(Z).subscribe(V=>{V.code===0?(this.showMessage(this.globalData.translateString("accountDetailsPage.updatedSuccessfully")),this.accountInfoService.isAccountDetailsOpenAll$.next(!1),this.accountInfoService.showUserInfoButtons$.next(!1),setTimeout(()=>M(this,null,function*(){yield this.updateMemInfo(),this.reset()}),1e3)):V.code===1470010||V.code===1470012?this.globalData.showAlert(V.code,0,()=>window.location.reload()):this.globalData.showAlert(V.code),this.globalData.loading=!1})})}toggleEditAll(i){this.accountInfoService.isAccountDetailsOpenAll$.next(i.target.checked),this.accountInfoService.showUserInfoButtons$.next(i.target.checked),i.target.checked||this.reset()}onCancel(){this.accountInfoService.isAccountDetailsOpenAll$.next(!1),this.editAllBtn.nativeElement.checked=!1,this.accountInfoService.showUserInfoButtons$.next(!1),this.reset()}getTranslatedName(i,t){let a=i.find(p=>p.code===t);return a?this.translateService.instant(a.key):null}onSocialClick(){var t;this.globalData.isApp||open("","lineLogin");let i={merchantId:this.cmsService.cmsSetting.merchantCode,loginId:(t=this.globalData.acctInfo)==null?void 0:t.loginId};this.httpService.getLineLoginUrl(i).subscribe(a=>{if(a.code===0){let h=a.data.loginUrl;if(this.globalData.isApp){window.scroll(0,0);var p=this.iab.create(h);p.on("loadstop").subscribe(x=>{this.screenOrientation.unlock()}),p.on("exit").subscribe(x=>{this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT)}),this.startPooling(5,9e3,a.data.state,p)}else{let x=this.globalData.openLineLoginPage(h);this.startPooling(5,9e3,a.data.state,x)}}})}startPooling(i,t,a,p){this.intervalId&&(clearInterval(this.intervalId),this.counter=0,this.intervalId=null),this.intervalId=setInterval(()=>{this.checkLineLogin(a,p),this.counter++,this.counter>=i&&(clearInterval(this.intervalId),this.closeWindowOrBrowser(p))},t)}checkLineLogin(i,t){let a={state:i};this.httpService.checkLineLogin(a).subscribe(p=>{p.code===0?p.data.isLineCallbackFinished&&(this.isLineBinded=!0,clearInterval(this.intervalId),this.closeWindowOrBrowser(t),p.data.lineUserId||this.swalDialog.popMessage(this.globalData.translateString("reportPage.success"),1)):(clearInterval(this.intervalId),this.closeWindowOrBrowser(t))})}closeWindowOrBrowser(i){i&&i.close()}ngOnDestroy(){this.isComponentAlive=!1}};c.\u0275fac=function(t){return new(t||c)(C(G),C(E),C(W),C(me),C(ne),C(X),C(H),
1C(bt),C(ue),C(ye),C(dt,8),C(mt,8),C(Me))},c.\u0275cmp=T({type:c,selectors:[["app-account-details"]],viewQuery:function(t,a){if(t&1&&(se(di,5),se(mi,5)),t&2){let p;ce(p=de())&&(a.bCalendar=p.first),ce(p=de())&&(a.editAllBtn=p.first)}},standalone:!0,features:[J([E]),O],decls:36,vars:35,consts:[["auto",""],["BulmaCalendar",""],[1,"acc-block","under-topic"],[1,"acc-info-box","rwd"],[1,"info-title"],[1,"edit-all"],[1,"edit-all-title"],[1,"switch-btn"],["type","checkbox","id","auto",3,"change"],["for","auto",1,"switch"],[1,"wrap"],[1,"grid"],[1,"profile-item",3,"formGroup","ngClass"],[1,"title"],[4,"ngIf"],["class","currency-choice","data-edit","show",4,"ngIf"],["data-edit","show",1,"form","account-calendar",3,"ngStyle"],["type","text","formControlName","birthday","name","birthday",1,"profile-input"],["class","popup-note","style","color: red",3,"ngStyle",4,"ngIf"],[3,"showMsgEvent","memInfo"],["class","grid",4,"ngIf"],["class","btn-group full-width",4,"ngIf"],["class","success-msg fade-out",4,"ngIf"],["data-edit","hidden",1,"user-content"],["class","edit-btn","data-edit","hidden",3,"click",4,"ngIf"],["data-edit","hidden",1,"edit-btn",3,"click"],["data-show","web-window",1,"tooltip"],["data-edit","show",1,"currency-choice"],["formControlName","gender","type","radio","name","gender","value","M","id","Mr","checked",""],["for","Mr"],["formControlName","gender","type","radio","name","gender","value","F","id","Mrs"],["for","Mrs"],[1,"popup-note",2,"color","red",3,"ngStyle"],[1,"profile-item","no-border"],[1,"profile-social-group"],[1,"profile-social-item"],[1,"icon-line",3,"ngClass"],[1,"social-title"],["class","profile-status",4,"ngIf"],["class","btn-profile",3,"click",4,"ngIf"],[1,"profile-status"],[1,"check"],[1,"btn-profile",3,"click"],[1,"btn-group","full-width"],[1,"btn-cancel",3,"click"],[3,"click","ngClass","ngStyle","disabled"],[1,"success-msg","fade-out"]],template:function(t,a){if(t&1){let p=k();l(0,"div",2)(1,"div",3)(2,"h4",4),m(3),u(4,"translate"),r(),l(5,"div",5)(6,"strong",6),m(7),u(8,"translate"),r(),l(9,"div",7)(10,"input",8,0),S("change",function(x){return b(p),v(a.toggleEditAll(x))}),r(),I(12,"label",9),r()(),l(13,"div",10)(14,"div",11)(15,"form",12)(16,"strong",13),m(17),u(18,"translate"),r(),g(19,bi,5,4,"ng-container",14)(20,vi,12,6,"div",15),r(),l(21,"form",12)(22,"strong",13),m(23),u(24,"translate"),r(),g(25,xi,5,4,"ng-container",14),l(26,"div",16),I(27,"input",17,1),g(29,Si,2,4,"p",18),r()(),l(30,"app-account-email-details",19),S("showMsgEvent",function(x){return b(p),v(a.showMessage(x))}),r(),l(31,"app-account-phone-details",19),S("showMsgEvent",function(x){return b(p),v(a.showMessage(x))}),r()(),g(32,wi,12,8,"div",20),r()(),g(33,yi,8,13,"div",21),u(34,"async"),g(35,Di,2,1,"p",22),r()}t&2&&(o(3),_(f(4,18,"accountDetailsPage.accountDetails")),o(4),_(f(8,20,"accountDetailsPage.editAll")),o(8),s("formGroup",a.genderForm)("ngClass",y(28,St,a.editGender)),o(2),_(f(18,22,"accountDetailsPage.gender")),o(2),s("ngIf",!a.editGender),o(),s("ngIf",a.editGender),o(),s("formGroup",a.birthdayForm)("ngClass",y(30,St,a.editBirthday)),o(2),_(f(24,24,"accountDetailsPage.dateOfBirth")),o(2),s("ngIf",!a.editBirthday),o(),s("ngStyle",K(32,pi,a.editBirthday?"":"0px",a.editBirthday?"visible":"hidden")),o(3),s("ngIf",a.birthdayForm.errors),o(),s("memInfo",a.memInfo),o(),s("memInfo",a.memInfo),o(),s("ngIf",a.accountInfoService.memData==null?null:a.accountInfoService.memData.isLineLoginActive),o(),s("ngIf",f(34,26,a.accountInfoService.showUserInfoButtons$)),o(2),s("ngIf",a.showMsg))},dependencies:[Q,ee,z,lt,q,Y,oe,te,ie,j,U,$,xt,Te,Be,R,L,De]});let n=c;return n})();var Bi=n=>({cursor:n});function Pi(n,c){if(n&1){let e=k();l(0,"div",3)(1,"div",4)(2,"label",5),m(3),u(4,"translate"),r(),l(5,"div",6),S("click",function(){b(e);let t=d();return v(t.accountInfoService.canSetByMember?t.switchTransferMode():null)}),l(6,"input",7),we("ngModelChange",function(t){b(e);let a=d();return ke(a.accountInfoService.memSettingForm.transferMode,t)||(a.accountInfoService.memSettingForm.transferMode=t),v(t)}),r(),I(7,"label",8),r()()()}if(n&2){let e=d();o(3),_(f(4,4,"profilePage.autoTransfer")),o(3),Ie("ngModel",e.accountInfoService.memSettingForm.transferMode),s("checked",e.accountInfoService.memSettingForm.transferMode)("disabled",!e.accountInfoService.canSetByMember)}}function Ei(n,c){if(n&1&&(l(0,"div",4),I(1,"img",15),l(2,"label",16),m(3),u(4,"translate"),r()()),n&2){let e=d(2);o(),s("src",e.accountInfoService.qrCode,Je),o(2),_(f(4,2,"profilePage.twoFactorApp"))}}function Ni(n,c){if(n&1){let e=k();l(0,"div",17)(1,"div",18)(2,"label"),m(3),u(4,"translate"),r(),l(5,"div",19)(6,"input",20),u(7,"translate"),we("ngModelChange",function(t){b(e);let a=d(2);return ke(a.TwoFaCode,t)||(a.TwoFaCode=t),v(t)}
1),S("keyup",function(){b(e);let t=d(2);return v(t.twoFaNemberCheck())})("mousedown",function(){b(e);let t=d(2);return v(t.twoFaNemberCheck())}),r(),l(8,"button",21),S("click",function(){b(e);let t=d(2);return v(t.TwoFASend())}),m(9),u(10,"translate"),r()()()()}if(n&2){let e=d(2);o(3),_(f(4,7,"profilePage.activationCode")),o(3),Ye("placeholder",f(7,9,"profilePage.2facode")),Ie("ngModel",e.TwoFaCode),o(2),s("ngStyle",y(13,Bi,e.isValidTwoFaCodeCheck()?"pointer":"not-allowed"))("ngClass",e.isValidTwoFaCodeCheck()?"submit":"btn-default")("disabled",!e.isValidTwoFaCodeCheck()),o(),_(f(10,11,"profilePage.verify"))}}function Mi(n,c){n&1&&(l(0,"div",22)(1,"label",16),m(2),u(3,"translate"),r()()),n&2&&(o(2),_(f(3,1,"profilePage.recommendedAuthAPP")))}function Ai(n,c){if(n&1){let e=k();l(0,"div",3)(1,"div",4)(2,"label",9),m(3),u(4,"translate"),r(),l(5,"div",6),S("click",function(){b(e);let t=d();return v(t.switchTwoFactorMode())}),l(6,"input",10),S("change",function(){b(e);let t=d();return v(t.accountInfoService.memSettingForm.is2FaActive=!t.accountInfoService.memSettingForm.is2FaActive)}),r(),I(7,"label",11),r()(),g(8,Ei,5,4,"div",12)(9,Ni,11,15,"div",13)(10,Mi,4,3,"div",14),r()}if(n&2){let e=d();o(3),_(f(4,5,"profilePage.twoFactor")),o(3),s("checked",e.accountInfoService.memSettingForm.is2FaActive),o(2),s("ngIf",e.accountInfoService.memSettingForm.is2FaActive),o(),s("ngIf",e.accountInfoService.memSettingForm.is2FaActive&&!e.accountInfoService.isVerificationSuccessful),o(),s("ngIf",e.accountInfoService.memSettingForm.is2FaActive)}}function Fi(n,c){if(n&1){let e=k();l(0,"div",3)(1,"div",4)(2,"label",23),m(3),u(4,"translate"),r(),l(5,"div",6),S("click",function(){b(e);let t=d();return v(t.switchloginWithTwoFactor())}),l(6,"input",24),we("ngModelChange",function(t){b(e);let a=d();return ke(a.accountInfoService.memSettingForm.loginWithTwoFactorAuth,t)||(a.accountInfoService.memSettingForm.loginWithTwoFactorAuth=t),v(t)}),r(),I(7,"label",25),r()()()}if(n&2){let e=d();o(3),_(f(4,3,"profilePage.loginWithTwoFactor")),o(3),Ie("ngModel",e.accountInfoService.memSettingForm.loginWithTwoFactorAuth),s("checked",e.accountInfoService.memSettingForm.loginWithTwoFactorAuth)}}var wt=(()=>{let c=class c{constructor(i,t,a,p){this.globalData=i,this.httpService=t,this.accountInfoService=a,this.cmsService=p,this.TwoFaCode="",this.isValidTwoFaCode=!1,this.accountInfoService.showUserInfoButtons$.next(!1)}ngOnInit(){this.accountInfoService.loadProfileData()}saveSetting(){let i={canSetByMember:this.accountInfoService.canSetByMember,transferMode:this.accountInfoService.memSettingForm.transferMode,showPromotion:!1};this.globalData.loading=!0,this.httpService.setMemberSetting(i).subscribe(t=>{t.code===0&&(this.cmsService.cmsSetting.isAutoTransfer=i.transferMode,this.cmsService.cmsSetting.isShowPromoteList=i.showPromotion,this.accountInfoService.getBalance(),window.opener&&window.opener.parent.postMessage("reload","*"));let a=[];this.cmsService.cmsSetting.isAutoTransfer?a=["transfer"]:a=["getpromotion"],this.cmsService.bottomMenuBubble=this.cmsService.bottomMenuList.filter(p=>!a.includes(p.name)),this.cmsService.accountMenu=this.cmsService.accountMenuList.filter(p=>!a.includes(p.name)),this.globalData.loading=!1})}switchTransferMode(){this.accountInfoService.canSetByMember&&(this.accountInfoService.memSettingForm.transferMode=!this.accountInfoService.memSettingForm.transferMode),this.globalData.loading=!0,this.saveSetting()}switchTwoFactorMode(){var t;this.accountInfoService.isVerificationSuccessful=!1;let i=!this.accountInfoService.memSettingForm.is2FaActive;this.accountInfoService.memSettingForm.is2FaActive=i,i?this.accountInfoService.allowTwoFaChanges(i,(t=this.globalData.acctInfo)==null?void 0:t.loginId):this.accountInfoService.updateTwoFaAuthStatus(i,!1)}switchloginWithTwoFactor(){if(!this.accountInfoService.memSettingForm.is2FaActive)return;let i=!this.accountInfoService.memSettingForm.loginWithTwoFactorAuth;this.accountInfoService.memSettingForm.loginWithTwoFactorAuth=i,this.accountInfoService.updateTwoFaAuthStatus(this.accountInfoService.memSettingForm.is2FaActive,i)}twoFaNemberCheck(){this.TwoFaCode.trim().length>0?/^(([0-9]{1}\d*))?$/.test(this.TwoFaCode)||(this.TwoFaCode=this.TwoFaCode.replace(/[^0-9]+|^\s+|\s+$/g,"")):this.TwoFaCode=""}isValidTwoFaCodeCheck(){return/^[0-9]{6,}$/.test(this.TwoFaCode)}TwoFASend(){this.accountInfoService.verifyMember2FaCode(this.TwoFaCode),this.TwoFaCode=""}};c.\u0275fac=function(t){return new(t||c)(C(G),C(H),C(W),C(ue))},c.\u0275cmp=T({type:c,selectors:[["app-setting"]],standalone:!0,features:[O],decls:10,vars:3,consts:[[1,"acc-block","under-topic"],[1,"col"],["class","acc-info-box",4,"ngIf"],[1,"acc-info-box"],[1,"one-line-form"],["for","fTransMode"],[1,"switch-btn",3,"click"],["type","checkbox","name","fTransMode",3,"ngModelChange","ngModel","checked","disabled"],["for","fTransMode",1,"switch"],["for","fTwoFactorMode"],["type","checkbox","name","fTwoFactorMode",3,"change","checked"],["for","fTwoFactorMode",1,"switch"],["class","one-line-form",4,"ngIf"],["class","one-line-form profile-item",4,"ngIf"],["class","one-line-form","style","padding: 0;",4,"ngIf"],[2,"width","120px","margin","5px 10px 5px 10px",3,"src"],[2,"font-size","14px"],[1,"one-line-form","profile-item"],[1,"one-2fa",2,"width","100%"],[1,"form","code-input",2,"margin","5px 0 0","width","100%"],["type","text","name","2FACode",3,"ngModelChange","keyup","mousedown","placeholder","ngModel"],[1,"input-btn",3,"click","ngStyle","ngClass","disabled"],[1,"one-line-form",2,"padding","0"],["for","fLoginWithTwoFactor"],["type","checkbox","name","fLoginWithTwoFactor",3,"ngModelChange","ngModel","checked"],["for","fLoginWithTwoFactor",1,"switch"]],template:function(t,a){t&1&&(l(0,"div",0)(1,"div",1),g(2,Pi,8,6,"div",2),l(3,"div"),m(4,"\xA0"),r(),l(5,"div",1),g(6,Ai,11,7,"div",2),r(),l(7,"div"),m(8,"\xA0"),r(),g(9,Fi,8,5,"div",2),r()()),t&2&&(o(2),s("ngIf",a.accountInfoService.accountData),o(4),s("ngIf",a.accountInfoService.accountData),o(3),s("ngIf",a.accountInfoService.accountData&&a.accountInfoService.memSettingForm.is2FaActive&&a.accountInfoService.isVerificationSuccessful))},dependencies:[U,Q,z,at,q,rt,R,L,j,$],encapsulation:2});let n=c;return n})();var Vi=["rectangleRef"],Ti=["bankBlock"],Oi=(n,c)=>({"list-mode":n,mobile:c}
1),Li=(n,c,e)=>({mobile:n,"carousel-mode":c,"list-mode":e}),Ri=(n,c)=>({carousel:n,list:c}),ji=n=>({active:n}),yt=n=>({disabled:n}),$e=()=>({"no-border":!0}),Oe=n=>({error:n}),Bt=()=>({cursor:"not-allowed"}),Le=()=>({paddingTop:"16px"}),Re=()=>({}),Dt=n=>({"no-border":n});function Ui(n,c){if(n&1){let e=k();l(0,"button",25),S("click",function(){b(e);let t=d(3);return v(t.toggleView("list"))}),l(1,"span",26),I(2,"span"),r()()}if(n&2){let e=d(3);s("ngClass",e.globalData.isMobileStyle?"mobile":"")}}function Gi(n,c){if(n&1){let e=k();l(0,"button",27),S("click",function(){b(e);let t=d(3);return v(t.toggleView("carousel"))}),I(1,"i",28),r()}if(n&2){let e=d(3);s("ngClass",e.globalData.isMobileStyle?"mobile":"")}}function Wi(n,c){if(n&1){let e=k();l(0,"button",29),S("click",function(){b(e);let t=d(3);return v(t.toggleView("list"))}),l(1,"span",26),I(2,"span"),r()()}if(n&2){let e=d(3);s("ngClass",e.globalData.isMobileStyle?"mobile":"")}}function $i(n,c){if(n&1){let e=k();l(0,"button",30),S("click",function(){b(e);let t=d(3);return v(t.toggleView("carousel"))}),I(1,"i",28),r()}if(n&2){let e=d(3);s("ngClass",e.globalData.isMobileStyle?"mobile":"")}}function zi(n,c){if(n&1){let e=k();l(0,"button",43),S("click",function(){b(e);let t=d().index,a=d(3);return v(a.edit_profile_bank(t))}),I(1,"img",44),l(2,"span",45),m(3),u(4,"translate"),r()()}if(n&2){let e=d().$implicit,i=d(3);Se("active",i.isBankActive(e))("inactive",!i.isBankActive(e)),o(3),_(f(4,5,"edit"))}}function qi(n,c){if(n&1){let e=k();l(0,"div",46),S("click",function(){b(e);let t=d().index,a=d(3);return v(a.delete_profile_bank(t))}),I(1,"i",47),r()}}function Qi(n,c){if(n&1&&(l(0,"div",31)(1,"div",32),I(2,"img",33),r(),l(3,"div",34)(4,"span",35),m(5),u(6,"translate"),r(),g(7,zi,5,7,"button",36),r(),l(8,"div",37)(9,"span",38),m(10),r()(),l(11,"div",39)(12,"span",40),m(13),r(),I(14,"br"),l(15,"span",41),m(16),u(17,"translate"),r()(),g(18,qi,2,0,"div",42),r()),n&2){let e=c.$implicit,i=c.index,t=d(3);Se("active",t.isBankActive(e))("inactive",!t.isBankActive(e))("item",!0)("shown",t.isCarousel&&i===t.currentIndex),o(2),s("ngClass",y(25,ji,(t.profileData==null||t.profileData.memInfoBankList==null?null:t.profileData.memInfoBankList.length)>0&&e.bankId.length>0&&e.bankId!="-"&&e.bankAcctNo.length>0&&e.bankAcctNo!="\u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022"||(t.bankAccountNumberCtrl.value==null?null:t.bankAccountNumberCtrl.value.trim())&&(t.bankNameCtrl.value==null?null:t.bankNameCtrl.value.trim()))),o(3),w(" ",f(6,21,t.globalData.isUSDT()?"bankInformationPage.walletInformation":"bankInformationPage.bankInformation")," "),o(2),s("ngIf",t.isShowEditBtn(i)),o(),Se("active",t.isBankActive(e))("inactive",!t.isBankActive(e))("long-name",((e.bankName==null?null:e.bankName.length)||0)>18),o(2),w(" ",e.bankName," "),o(3),w(" ",e.bankAcctNo," "),o(3),_(f(17,23,t.globalData.isUSDT()?"depositPage.walletAddress":t.memInfo==null?null:t.memInfo.memName)),o(2),s("ngIf",t.isShowDeleteBtn())}}function Hi(n,c){if(n&1){let e=k();l(0,"div",48),S("click",function(){b(e);let t=d(3);return v(t.plus_profile_bank())}),I(1,"i",49),r()}}function Ki(n,c){if(n&1){let e=k();l(0,"div",53)(1,"button",54),S("click",function(){b(e);let t=d(4);return v(t.prevCard())}),m(2,"\u276E"),r(),l(3,"button",55),S("click",function(){b(e);let t=d(4);return v(t.nextCard())}),m(4,"\u276F"),r()()}if(n&2){let e=d(4);o(),s("disabled",e.isFirstCard)("ngClass",y(4,yt,e.isFirstCard)),o(2),s("disabled",e.isLastCard)("ngClass",y(6,yt,e.isLastCard))}}function Zi(n,c){if(n&1&&(l(0,"div",50)(1,"span",51),m(2),u(3,"number"),u(4,"number"),r(),g(5,Ki,5,8,"div",52),r()),n&2){let e=d(3);o(2),ae("",je(3,3,e.currentIndex+1,"2.0")," / ",je(4,6,e.memberBanks.length,"2.0"),""),o(3),s("ngIf",e.memberBanks.length>1)}}function Ji(n,c){if(n&1&&(l(0,"option",76),m(1),r()),n&2){let e=c.$implicit;s("value",e.bankId),o(),w(" ",e.bankName," ")}}function Xi(n,c){if(n&1&&(l(0,"p",77),m(1),r()),n&2){let e=d(4);s("ngStyle",e.globalData.isMobileStyle?B(3,Re):B(2,Le)),o(),w(" ",e.bankNameCtrl.errors.message," ")}}function Yi(n,c){if(n&1&&(l(0,"p",77),m(1),r()),n&2){let e=d(4);s("ngStyle",e.globalData.isMobileStyle?B(3,Re):B(2,Le)),o(),w(" ",e.bankAccountNumberCtrl.errors.message," ")}}function en(n,c){if(n&1){let e=k();l(0,"form",56)(1,"div",57)(2,"label",58)(3,"strong",59),m(4),u(5,"translate"),l(6,"span"),m(7,"*"),r()()(),l(8,"div",60)(9,"select",61),S("blur",function(){b(e);let t=d(3);
1return v(t.resetBankErrorFormBackground())}),l(10,"option",62),m(11),u(12,"translate"),r(),g(13,Ji,2,2,"option",63),r(),g(14,Xi,2,4,"p",64),r()(),l(15,"div",65)(16,"label",66)(17,"strong",59),m(18),u(19,"translate"),l(20,"span"),m(21,"*"),r()()(),l(22,"div")(23,"input",67),u(24,"translate"),S("blur",function(){b(e);let t=d(3);return v(t.resetBankErrorFormBackground())}),r(),l(25,"div",68),I(26,"span",69),u(27,"translate"),r(),g(28,Yi,2,4,"p",64),r()(),l(29,"div",70)(30,"label",71)(31,"strong",59),m(32),u(33,"translate"),l(34,"span"),m(35,"*"),r()()(),l(36,"div")(37,"input",72),u(38,"translate"),S("keyup",function(t){b(e);let a=d(3);return v(a.filterSymbols(t))})("change",function(t){b(e);let a=d(3);return v(a.filterSymbols(t))}),r()()(),l(39,"div",73)(40,"button",74),S("click",function(){b(e);let t=d(3);return v(t.cancel_profile_bank())}),m(41),u(42,"translate"),r(),l(43,"button",75),S("click",function(){b(e);let t=d(3);return v(t.submit_profile_bank())}),m(44),u(45,"translate"),u(46,"titlecase"),r()()()}if(n&2){let e=d(3);s("formGroup",e.bankForm),o(),s("ngClass",B(42,$e)),o(3),w("",f(5,22,"profilePage.bankName")," "),o(5),s("ngClass",y(43,Oe,e.bankNameCtrl.invalid&&(e.bankNameCtrl.touched||e.bankNameCtrl.dirty))),o(2),_(f(12,24,"depositPage.pleaseSelect")),o(2),s("ngForOf",e.bankList),o(),s("ngIf",e.bankNameCtrl.errors&&(e.bankNameCtrl.touched||e.bankNameCtrl.dirty)),o(),s("ngClass",B(45,$e)),o(3),w("",f(19,26,"profilePage.bankAccountNumber")," "),o(5),s("placeholder",f(24,28,"profilePage.pleaseEnter"))("ngClass",y(46,Oe,e.bankAccountNumberCtrl.invalid&&(e.bankAccountNumberCtrl.touched||e.bankAccountNumberCtrl.dirty))),o(3),s("innerHTML",f(27,30,"toolTips.bmtTip"),Ze),o(2),s("ngIf",e.bankAccountNumberCtrl.errors&&(e.bankAccountNumberCtrl.touched||e.bankAccountNumberCtrl.dirty)),o(),s("ngClass",B(48,$e)),o(3),w("",f(33,32,"profilePage.bankAccountName")," "),o(5),s("placeholder",f(38,34,"profilePage.pleaseEnter"))("readonly",e.memInfo==null?null:e.memInfo.memName),o(4),w(" ",f(42,36,"cancel")," "),o(2),s("ngClass",e.isBankValid()?"btn-submit":"btn-cancel")("disabled",!e.isBankValid())("ngStyle",e.isBankValid()?null:B(49,Bt)),o(),w("",f(46,40,f(45,38,"submit"))," ")}}function tn(n,c){if(n&1&&(l(0,"div",10),g(1,Ui,3,1,"button",15)(2,Gi,2,1,"button",16),l(3,"div",17,0),g(5,Wi,3,1,"button",18)(6,$i,2,1,"button",19),l(7,"div",20,1)(9,"div",21),g(10,Qi,19,27,"div",22)(11,Hi,2,0,"div",23),r(),g(12,Zi,6,9,"div",24)(13,en,47,50,"form",14),r()()()),n&2){let e=d(2);o(),s("ngIf",e.globalData.isMobileStyle&&e.isCarousel),o(),s("ngIf",e.globalData.isMobileStyle&&!e.isCarousel),o(),s("ngClass",K(11,Oi,!e.isCarousel&&e.memberBanks.length>3,e.globalData.isMobileStyle)),o(2),s("ngIf",!e.globalData.isMobileStyle&&e.isCarousel),o(),s("ngIf",!e.globalData.isMobileStyle&&!e.isCarousel),o(),s("ngClass",tt(14,Li,e.globalData.isMobileStyle,e.isCarousel,!e.isCarousel)),o(2),s("ngClass",K(18,Ri,e.isCarousel,!e.isCarousel)),o(),s("ngForOf",e.memberBanks),o(),s("ngIf",e.isShowPlusBtn()),o(),s("ngIf",e.isCarousel&&e.editingIndex==null),o(),s("ngIf",e.editingIndex!==null&&!e.globalData.isUSDT())}}function nn(n,c){if(n&1){let e=k();l(0,"div",10)(1,"div",78)(2,"span",59),m(3),u(4,"translate"),r(),l(5,"strong",79),m(6),r()(),l(7,"app-account-phone-details",80),S("showMsgEvent",function(t){b(e);let a=d(2);return v(a.showMessage(t))}),r()()}if(n&2){let e=d(2);o(3),_(f(4,4,"profilePage.username")),o(3),_(e.memInfo.loginId),o(),s("memInfo",e.memInfo)("onProfile",e.onProfile)}}function on(n,c){if(n&1&&(l(0,"div",78)(1,"strong",59),m(2),u(3,"translate"),r(),l(4,"strong",79),m(5),r()()),n&2){let e=d(2);o(2),_(f(3,2,"profilePage.username")),o(3),_(e.memInfo.loginId)}}function an(n,c){if(n&1){let e=k();l(0,"app-account-phone-details",80),S("showMsgEvent",function(t){b(e);let a=d(2);return v(a.showMessage(t))}),r()}if(n&2){let e=d(2);s("memInfo",e.memInfo)("onProfile",e.onProfile)}}function rn(n,c){n&1&&(l(0,"span",45),m(1),u(2,"translate"),r()),n&2&&(o(),_(f(2,1,"copy")))}function ln(n,c){if(n&1){let e=k();l(0,"div",81)(1,"strong",59),m(2),u(3,"translate"),r(),l(4,"strong",79,2),m(6),r(),l(7,"button",82),S("click",function(){b(e);let t=d(2);return v(t.copyReferralUrl())}),I(8,"i",83),g(9,rn,3,3,"span",84),r()()}if(n&2){let e=d(2);o(2),_(f(3,3,"profilePage.referralCode")),o(4),_(e.memInfo.referralCode),o(3),s("ngIf",!e.globalData.isMobileStyle)}}function sn(n,c){if(n&1&&(l(0,"strong",79),m(1),u(2,"translate"),r()),n&2){let e,i=d(3);o(),w("",(e=i.memInfo==null?null:i.memInfo.network)!==null&&e!==void 0?e:i.accountInfoService.n
1otAllowEditWalletAddress?"":f(2,1,"profilePage.pleaseEnter")," ")}}function cn(n,c){n&1&&(l(0,"span",45),m(1),u(2,"translate"),r()),n&2&&(o(),_(f(2,1,"edit")))}function dn(n,c){if(n&1){let e=k();l(0,"button",90),S("click",function(){b(e);let t=d(3);return t.isCryptoDetailsEdit=!0,v(t.accountInfoService.showUserInfoButtons())}),g(1,cn,3,3,"span",84),r()}if(n&2){let e=d(3);o(),s("ngIf",!e.globalData.isMobileStyle)}}function mn(n,c){if(n&1&&(l(0,"option",76),m(1),r()),n&2){let e=c.$implicit;s("value",e.code),o(),w(" ",e.label," ")}}function pn(n,c){if(n&1&&(l(0,"p",77),m(1),r()),n&2){let e=d(4);s("ngStyle",e.globalData.isMobileStyle?B(3,Re):B(2,Le)),o(),w(" ",e.networkCtrl.errors.message," ")}}function un(n,c){if(n&1&&(l(0,"div",91)(1,"select",92)(2,"option",62),m(3),u(4,"translate"),r(),g(5,mn,2,2,"option",63),r(),g(6,pn,2,4,"p",64),r()),n&2){let e=d(3);o(),s("ngClass",y(6,Oe,e.networkCtrl.invalid&&(e.networkCtrl.touched||e.networkCtrl.dirty))),o(2),_(f(4,4,"signUpPage.selectNetwork")),o(2),s("ngForOf",e.networkList),o(),s("ngIf",e.networkCtrl.errors&&(e.networkCtrl.touched||e.networkCtrl.dirty))}}function fn(n,c){if(n&1&&(l(0,"strong",79),m(1),u(2,"translate"),r()),n&2){let e,i=d(3);o(),w("",(e=i.memInfo==null?null:i.memInfo.walletAddress)!==null&&e!==void 0?e:i.accountInfoService.notAllowEditWalletAddress?"":f(2,1,"profilePage.pleaseEnter")," ")}}function hn(n,c){if(n&1&&(l(0,"p",77),m(1),r()),n&2){let e=d(4);s("ngStyle",e.globalData.isMobileStyle?B(3,Re):B(2,Le)),o(),w(" ",e.walletAddressCtrl.errors.message," ")}}function gn(n,c){if(n&1&&(l(0,"div",93),I(1,"input",94),u(2,"translate"),g(3,hn,2,4,"p",64),r()),n&2){let e=d(3);o(),s("placeholder",f(2,3,"profilePage.pleaseEnter"))("ngClass",y(5,Oe,e.walletAddressCtrl.invalid&&(e.walletAddressCtrl.touched||e.walletAddressCtrl.dirty))),o(2),s("ngIf",e.walletAddressCtrl.errors&&(e.walletAddressCtrl.touched||e.walletAddressCtrl.dirty))}}function _n(n,c){if(n&1&&(l(0,"form",56)(1,"div",81)(2,"strong",59),m(3),u(4,"translate"),r(),l(5,"strong",79),m(6,"USDT"),r()(),l(7,"div",85)(8,"strong",59),m(9),u(10,"translate"),r(),g(11,sn,3,3,"strong",86)(12,dn,2,1,"button",87)(13,un,7,8,"div",88),r(),l(14,"div",85)(15,"strong",59),m(16),u(17,"translate"),r(),g(18,fn,3,3,"strong",86)(19,gn,4,7,"div",89),r()()),n&2){let e=d(2);s("formGroup",e.walletForm),o(3),_(f(4,11,"paymentSetting.crypto")),o(4),s("ngClass",y(17,Dt,e.isCryptoDetailsEdit)),o(2),_(f(10,13,"signUpPage.network")),o(2),s("ngIf",!e.isCryptoDetailsEdit),o(),s("ngIf",e.editingIndex==null&&!e.isCryptoDetailsEdit&&!(e.memInfo!=null&&e.memInfo.walletAddressModifyDate)&&!e.accountInfoService.notAllowEditWalletAddress),o(),s("ngIf",e.isCryptoDetailsEdit),o(),s("ngClass",y(19,Dt,e.isCryptoDetailsEdit)),o(2),_(f(17,15,"withdrawPage.walletAddress")),o(2),s("ngIf",!e.isCryptoDetailsEdit),o(),s("ngIf",e.isCryptoDetailsEdit)}}function bn(n,c){if(n&1&&(l(0,"div",8),g(1,tn,14,21,"div",9)(2,nn,8,6,"div",9),l(3,"div",10),g(4,on,6,4,"div",11)(5,an,1,2,"app-account-phone-details",12)(6,ln,10,5,"div",13)(7,_n,20,21,"form",14),r()()),n&2){let e=d();o(),s("ngIf",!e.globalData.isUSDT()),o(),s("ngIf",e.globalData.isUSDT()),o(2),s("ngIf",!e.globalData.isUSDT()),o(),s("ngIf",!e.globalData.isUSDT()),o(),s("ngIf",!(e.globalData.acctInfo!=null&&e.globalData.acctInfo.isAffiliateAccount)&&e.cmsService.cmsSetting.supportReferral&&e.memInfo.isReferralAccount),o(),s("ngIf",e.cmsService.cmsSetting.isShowCryptoInfo)}}function vn(n,c){if(n&1){let e=k();l(0,"div",95)(1,"button",96),S("click",function(){b(e);let t=d();return v(t.onCancel())}),m(2),u(3,"translate"),r(),l(4,"button",75),S("click",function(){b(e);let t=d();return v(t.submit())}),m(5),u(6,"translate"),u(7,"titlecase"),r()()}if(n&2){let e=d();o(2),_(f(3,5,"cancel")),o(2),s("ngClass",e.isRightFormValid()?"btn-submit":"btn-cancel")("disabled",!e.isRightFormValid())("ngStyle",e.isRightFormValid()?null:B(11,Bt)),o(),w("",f(7,9,f(6,7,"submit"))," ")}}function Cn(n,c){if(n&1&&(l(0,"p",97),m(1),r()),n&2){let e=d();o(),_(e.msg)}}var Pt=(()=>{let c=class c{constructor(i,t,a,p,h,x,D,N,Z,V,re,le){this.globalData=i,this.httpService=t,this.accountInfoService=a,this.clipboard=p,this.fb=h,this.formValidators=x,this.appConfigService=D,this.langService=N,this.cmsService=Z,this.swalDialog=V,this.translate=re,this.renderer=le,this.memInfo=null,this.profileData=null,this.onProfile=!1,this.showMsg=!1,this.msg="",this.isCryptoDetail
1sEdit=!1,this.networkList=[],this.isComponentAlive=!0,this.filterSymbols=_t,this.filterEventSymbols=Ae,this.isShowCarousel=!0,this.memberBanks=[],this.isEditBank=!1,this.subscriptions=new Ke,this.editingIndex=null,this.viewMode="carousel",this.currentIndex=0,this.initialize(),this.accountInfoService.showUserInfoButtons$.next(!1)}initialize(){return M(this,null,function*(){yield this.updateMemInfo(),yield this.updateProfileData(),yield this.initMemberBanksData()})}ngOnInit(){this.onProfile=!0,this.createBankFormGroup(),this.createWalletFormGroup(),this.getBankDetails()}updateMemInfo(){return M(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData,this.initNetworkAndWalletAddressData()})}updateProfileData(){return M(this,null,function*(){yield this.accountInfoService.loadProfileData(),this.profileData=this.accountInfoService.accountData})}initMemberBanksData(){return M(this,null,function*(){var i,t,a,p;this.memberBanks=[],((t=(i=this.profileData)==null?void 0:i.memInfoBankList)==null?void 0:t.length)>0&&this.profileData.memInfoBankList.forEach(h=>{this.memberBanks.push({id:h.id,bankId:h.bankId,bankName:h.bankName,bankAcctNo:h.bankAcctNo,bankAcctName:this.memInfo.memName,isMemtranPending:h.isMemtranPending,verifiedDate:h.verifiedDate})}),((p=(a=this.profileData)==null?void 0:a.memInfoBankList)==null?void 0:p.length)==0&&(this.memberBanks.push({id:0,bankId:"-",bankName:"-",bankAcctNo:"\u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022",bankAcctName:this.memInfo.memName,isMemtranPending:!1,verifiedDate:""}),this.bankAccountNumberCtrl.setValue(""),this.bankNameCtrl.setValue(""),this.resetBankFormBackgroun
1d()),this.currentIndex=0})}get isCarousel(){return this.viewMode==="carousel"}get isFirstCard(){return this.currentIndex===0}get isLastCard(){return this.currentIndex===this.memberBanks.length-1}toggleView(i){this.viewMode=i,this.editingIndex=null,i==="list"?(this.initMemberBanksData(),this.renderer.setStyle(this.bankBlockRef.nativeElement,"height",this.memberBanks.length*170+"px"),this.globalData.isMobileStyle&&this.rectangleRef.nativeElement.style.setProperty("--dynamic-height",this.memberBanks.length*160+"px"),this.memberBanks.length>3&&(this.renderer.setStyle(this.bankBlockRef.nativeElement,"padding-right","5px"),this.globalData.isMobileStyle&&this.rectangleRef.nativeElement.style.setProperty("--dynamic-height","586px"))):(this.renderer.setStyle(this.bankBlockRef.nativeElement,"height","auto"),this.renderer.removeStyle(this.bankBlockRef.nativeElement,"padding-right"),this.resetBankFormBackground())}prevCard(){this.currentIndex>0&&(this.currentIndex--,this.editingIndex=null)}nextCard(){this.currentIndex<this.memberBanks.length-1&&(this.currentIndex++,this.editingIndex=null)}isBankActive(i){var t,a,p,h;return((a=(t=this.profileData)==null?void 0:t.memInfoBankList)==null?void 0:a.length)>0&&i.bankId.length>0&&i.bankId!="-"&&i.bankAcctNo.length>0&&i.bankAcctNo!="\u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022"||((p=this.bankAccountNumberCtrl.value)==null?void 0:p.trim())&&((h=this.bankNameCtrl.value)==null?void 0:h.trim())}isShowEditBtn(i){var p;if(this.editingIndex!=null)return!1;let t=(p=this.profileData)==null?void 0:p.memInfoBankList;if(!t||t.length===0)return!0;let a=t[i];return(a==null?void 0:a.verifiedDate)==null&&(a==null?void 0:a.isMemtranPending)===!1}isShowDeleteBtn(){var a;if(!this.isCarousel||this.editingIndex==null)return!1;let i=(a=this.profileData)==null?void 0:a.memInfoBankList,t=i==null?void 0:i[this.editingIndex];return(i==null?void 0:i.length)>0&&(t==null?void 0:t.verifiedDate)==null&&(t==null?void 0:t.isMemtranPending)===!1}isShowPlusBtn(){var a,p,h;if(!this.isCarousel||this.editingIndex!=null)return!1;let i=(a=this.profileData)==null?void 0:a.memInfoBankList,t=(h=(p=this.profileData)==null?void 0:p.bankAccountCountLimit)!=null?h:0;return(i==null?void 0:i.length)>0&&i.length<t}delete_profile_bank(i){let t={id:this.memberBanks[i].id};this.swalDialog.popConfirmNoCancel("<br><br>"+this.translate.instant("profilePage.confirmDeleteBank").replace("{0}",this.memberBanks[i].bankName),a=>{a&&(this.globalData.loading=!0,this.deleteMemInfoBank(t).then(()=>{this.memberBanks.splice(this.editingIndex,1),this.memberBanks.length<1?(this.bankAccountNumberCtrl.setValue(""),this.memberBanks.push({id:0,bankId:"-",bankName:"-",bankAcctNo:"\u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022",bankAcctName:this.memInfo.memName,isMemtranPending:!1,verifiedDate:""}),this.bankNameCtrl.setValue(""),this.updateProfileData()):this.initialize(),this.resetBankFormBackgroun
1d(),this.editingIndex=null,this.globalData.loading=!1}))})}plus_profile_bank(){var t,a,p,h,x,D,N,Z,V,re;if(this.initNetworkAndWalletAddressData(),this.resetFormStates(),this.resetBankFormBackground(),this.memberBanks.push({id:((a=(t=this.profileData)==null?void 0:t.memInfoBankList)==null?void 0:a.length)==0?0:(h=(p=this.profileData)==null?void 0:p.memInfoBankList)==null?void 0:h.length,bankId:"-",bankName:"-",bankAcctNo:"\u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022",bankAcctName:this.memInfo.memName,isMemtranPending:!1,verifiedDate:""}),this.bankAccountNumberCtrl.setValue(""),this.bankNameCtrl.setValue(""),this.memInfo)var{memName:i}=this.memInfo;i&&this.bankAccountNameCtrl.setValue(i),this.isEditBank=!1,this.editingIndex=((D=(x=this.profileData)==null?void 0:x.memInfoBankList)==null?void 0:D.length)==0?0:(Z=(N=this.profileData)==null?void 0:N.memInfoBankList)==null?void 0:Z.length,this.currentIndex=this.editingIndex,this.subscriptions.add((V=this.bankForm.get("bankName"))==null?void 0:V.valueChanges.subscribe(le=>{this.memberBanks[this.editingIndex]&&(this.memberBanks[this.editingIndex].bankId=this.getSelectedBankId(),this.memberBanks[this.editingIndex].bankName=this.getSelectedBankName()),this.resetBankErrorFormBackgroun
1d()})),this.subscriptions.add((re=this.bankForm.get("bankAccountNumber"))==null?void 0:re.valueChanges.subscribe(le=>{this.memberBanks[this.editingIndex]&&(this.memberBanks[this.editingIndex].bankAcctNo=le),this.resetBankErrorFormBackground()}))}edit_profile_bank(i){var t,a,p,h;this.resetBankFormBackground(),this.editingIndex=i,this.viewMode=="list"&&(this.viewMode="carousel",this.renderer.setStyle(this.bankBlockRef.nativeElement,"height","auto"),this.currentIndex=i),this.initBankData(),this.initNetworkAndWalletAddressData(),this.resetFormStates(),this.isEditBank=!0,((a=(t=this.profileData)==null?void 0:t.memInfoBankList)==null?void 0:a.length)==0&&(this.isEditBank=!1),this.subscriptions.add((p=this.bankForm.get("bankName"))==null?void 0:p.valueChanges.subscribe(x=>{this.memberBanks[this.editingIndex]&&(this.memberBanks[this.editingIndex].bankId=this.getSelectedBankId(),this.memberBanks[this.editingIndex].bankName=this.getSelectedBankName()),this.resetBankErrorFormBackground()})),this.subscriptions.add((h=this.bankForm.get("bankAccountNumber"))==null?void 0:h.valueChanges.subscribe(x=>{this.memberBanks[this.editingIndex]&&(this.memberBanks[this.editingIndex].bankAcctNo=x),this.resetBankErrorFormBackgroun
1d()}))}cancel_profile_bank(){if(this.resetBankFormBackground(),this.isEditBank){this.memberBanks[this.editingIndex].bankId=this.profileData.memInfoBankList[this.editingIndex].bankId,this.memberBanks[this.editingIndex].bankName=this.profileData.memInfoBankList[this.editingIndex].bankName,this.memberBanks[this.editingIndex].bankAcctNo=this.profileData.memInfoBankList[this.editingIndex].bankAcctNo,this.editingIndex=null;return}this.currentIndex=0,this.resetFormStates(),this.editingIndex=null,this.initMemberBanksData()}submit_profile_bank(){return M(this,null,function*(){this.globalData.loading=!0;let i=this.getAddBankPostData(),t=this.getEditBankPostData();this.isEditBank?yield this.editMemInfoBank(t):yield this.addMemInfoBank(i),setTimeout(()=>{this.initialize()},1e3),this.globalData.loading=!1})}editMemInfoBank(i){return new Promise(t=>{this.httpService.editMemInfoBank(i).subscribe(a=>{var p;a.code===0?(this.resetBankFormBackground(),this.resetFormStates(),this.editingIndex=null,this.globalData.showDirectAlert("codeMessage.0",1),t(!0)):a.code===1430071?this.globalData.showDirectAlert(this.globalData.translateString("fastLoginPage.accounNumberMemExisted")+" ("+this.globalData.translateString("profilePage.bankName")+":"+((p=this.memberBanks[this.editingIndex])==null?void 0:p.bankName)+", "+this.globalData.translateString("profilePage.bankAccountNumber")+":"+i.BankAcctNo+")",3):a.code===1440147?this.globalData.showAlert(a.code,0,()=>window.location.reload()):this.globalData.showAlert(a.code,3)})})}addMemInfoBank(i){return new Promise(t=>{this.httpService.addMemInfoBank(i).subscribe(a=>{var p;
1a.code===0?(this.resetBankFormBackground(),this.resetFormStates(),this.editingIndex=null,this.globalData.showDirectAlert("codeMessage.0",1),setTimeout(()=>{this.initialize()},1e3),t(!0)):a.code===1430071?this.globalData.showDirectAlert(this.globalData.translateString("fastLoginPage.accounNumberMemExisted")+" ("+this.globalData.translateString("profilePage.bankName")+":"+((p=this.memberBanks[this.editingIndex])==null?void 0:p.bankName)+", "+this.globalData.translateString("profilePage.bankAccountNumber")+":"+i.BankAcctNo+")",3):this.globalData.showAlert(a.code)})})}deleteMemInfoBank(i){return new Promise(t=>{this.httpService.deleteMemInfoBank(i).subscribe(a=>{a.code===0?(this.globalData.showDirectAlert("codeMessage.0",1),t(!0)):this.globalData.showAlert(a.code)})})}resetBankFormBackground(){this.globalData.isMobileStyle&&new ResizeObserver(t=>{let a=t[0].contentRect.height;this.rectangleRef.nativeElement.style.setProperty("--dynamic-height","".concat(a,"px"))}).observe(this.bankBlockRef.nativeElement)}resetBankErrorFormBackgroun
1d(){var i;this.globalData.isMobileStyle&&((i=this.rectangleRef)!=null&&i.nativeElement)&&(this.bankAccountNumberCtrl.errors&&(this.bankAccountNumberCtrl.touched||this.bankAccountNumberCtrl.dirty)&&!(this.bankNameCtrl.errors&&(this.bankNameCtrl.touched||this.bankNameCtrl.dirty))||!(this.bankAccountNumberCtrl.errors&&(this.bankAccountNumberCtrl.touched||this.bankAccountNumberCtrl.dirty))&&this.bankNameCtrl.errors&&(this.bankNameCtrl.touched||this.bankNameCtrl.dirty)?this.rectangleRef.nativeElement.style.setProperty("--dynamic-height","545px"):this.bankAccountNumberCtrl.errors&&(this.bankAccountNumberCtrl.touched||this.bankAccountNumberCtrl.dirty)&&this.bankNameCtrl.errors&&(this.bankNameCtrl.touched||this.bankNameCtrl.dirty)?this.rectangleRef.nativeElement.style.setProperty("--dynamic-height","580px"):this.resetBankFormBackground())}getBankDetails(){var t;let i=(t=this.globalData.acctInfo)==null?void 0:t.currency;this.httpService.getBankInfoList({currId:i}).subscribe(a=>{a.code===0&&(this.bankList=a.data)}),this.httpService.getNetworkList({}).subscribe(a=>{a.code===0&&(this.networkList=a.data.networkList)})}getSelectedBankId(){var t;let i=(t=this.bankList)==null?void 0:t.find(a=>a.bankId===this.bankNameCtrl.value);return i?i.bankId:"-"}getSelectedBankName(){var t;let i=(t=this.bankList)==null?void 0:t.find(a=>a.bankId===this.bankNameCtrl.value);return i?i.bankName:"-"}createBankFormGroup(){this.bankForm=this.fb.group({bankName:["",[P.required,this.formValidators.createBankNameValidator()]],bankAccountNumber:["",[P.required,this.formValidators.createBankAccountNumberValidator()]],bankAccountName:["",[P.required,this.formValidators.createBankAccountNameValidator()]]})}createWalletFormGroup(){this.walletForm=this.fb.group({network:["",[P.required,this.formValidators.createNetwork()]],walletAddress:["",[P.required,this.formValidators.createWalletAddress()]]})}initBankData(){var p,h,x,D;let i=(p=this.memberBanks[this.editingIndex])==null?void 0:p.bankId,t=this.bankList.some(N=>N.bankId===i);if(i&&i!="-"&&t?this.bankNameCtrl.setValue((h=this.memberBanks[this.editingIndex])==null?void 0:h.bankId):this.bankNameCtrl.setValue(""),((x=this.memberBanks[this.editingIndex])==null?void 0:x.bankAcctNo)!="\u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022  \u2022\u2022\u2022\u2022"&&this.bankAccountNumberCtrl.setValue((D=this.memberBanks[this.editingIndex])==null?void 0:D.bankAcctNo),this.memInfo)var{memName:a}=this.memInfo;a&&this.bankAccountNameCtrl.setValue(a)}initNetworkAndWalletAddressData(){if(this.walletForm.reset(),this.memInfo)var{network:i,walletAddress:t}=this.memInfo;i?this.networkCtrl.setValue(i):this.networkCtrl.setValue(""),t&&this.walletAddressCtrl.setValue(t)}get bankNameCtrl(){return this.bankForm.controls.bankName}get bankAccountNumberCtrl(){return this.bankForm.controls.bankAccountNumber}get bankAccountNameCtrl(){return this.bankForm.controls.bankAccountName}get networkCtrl(){return this.walletForm.controls.network}get walletAddressCtrl(){return this.walletForm.controls.walletAddress}showMessage(i){this.msg=i,this.showMsg=!0,be(5e3).pipe(ve(()=>!!this.isComponentAlive)).subscribe(()=>{this.showMsg=!1,this.msg=""})}copyReferralUrl(){this.showMessage(this.globalData.translateString("profilePage.referralIDCopied"));let i=this.appConfigService.getConfig("hostUrl");this.globalData.isApp||this.setCopyContent(i);let t={language:this.langService.language};this.httpService.getRegisterData(t).subscribe(a=>{a.code===0&&this.setCopyContent(i)})}setCopyContent(i){this.clipboard.copy("".concat(i,"/Member/StreamlinedRegister?R=").concat(this.cmsService.cmsSetting.referralCode))}isBankDataNoChanged(){var t,a,p,h;let i=this.bankList.find(x=>{var D,N;return x.bankId==((N=(D=this.profileData)==null?void 0:D.memInfoBankList[this.editingIndex])==null?void 0:N.bankId)});return this.bankNameCtrl.value==(i==null?void 0:i.bankName)&&this.bankAccountNumberCtrl.value==((a=(t=this.profileData)==null?void 0:t.memInfoBankList[this.editingIndex])==null?void 0:a.bankAcctNo)&&this.bankAccountNameCtrl.value==((h=(p=this.profileData)==null?void 0:p.memInfoBankList[this.editingIndex])==null?void 0:h.bankAcctName)}isWalletAddressNoChanged(){let{walletAddress:i,network:t}=this.memInfo;return this.walletAddressCtrl.value==i&&this.networkCtrl.value==t}isBankValid(){var a;let i=new RegExp("^[A-Za-z0-9]+$"),t=new RegExp("^[0-9]*$");return((a=this.memInfo)==null?void 0:a.currId)==="VND"?this.bankForm.valid&&!this.isBankDataNoChanged()&&i.test(this.bankAccountNumberCtrl.value):this.bankForm.valid&&!this.isBankDataNoChanged()&&t.test(this.bankAccountNumberCtrl.value)}isWalletAddressValid(){return this.walletForm.valid&&!this.isWalletAddressNoChanged()}isRightFormValid(){if(this.memInfo)var{isCrypto:i}=this.memInfo;
1return i?this.isCryptoDetailsEdit?this.isWalletAddressValid():!1:this.isCryptoDetailsEdit?this.isWalletAddressValid():!1}resetFormStates(){this.isCryptoDetailsEdit=!1,this.accountInfoService.showUserInfoButtons$.next(!1)}onCancel(){this.initBankData(),this.initNetworkAndWalletAddressData(),this.resetFormStates(),this.resetBankFormBackground()}getAddBankPostData(){var h,x;let{bankAccountNumber:i,bankName:t}=this.bankForm.value,a=this.bankList.find(D=>D.bankId==this.bankNameCtrl.value),p={id:(h=this.memberBanks[this.editingIndex])==null?void 0:h.id,BankId:a.bankId,BankAcctNo:i,bankName:a.bankName,clientPage:2};return(x=this.memInfo)!=null&&x.memName||(p.BankAcctName=Ae(t)),p}getEditBankPostData(){var x,D;let{bankAccountNumber:i,bankName:t,bankAcctName:a}=this.bankForm.value,p=this.bankList.find(N=>N.bankId==this.bankNameCtrl.value);return{id:(x=this.memberBanks[this.editingIndex])==null?void 0:x.id,bankId:p.bankId,bankAcctNo:i,bankName:p.bankName,bankAcctName:(D=this.memInfo)!=null&&D.memName?this.memInfo.memName:Ae(a),isVerified:!0}}getCryptoPostData(){let{walletAddress:i,network:t}=this.walletForm.value;return{network:t,memWalletAddress:i,isVerified:!0}}editCrypto(i){let t=this.getCryptoPostData();this.globalData.loading=!0,this.httpService.memEditWalletAddress(t).subscribe(a=>{a.code===0?(i&&this.showMessage(i),setTimeout(()=>{this.showMessage(this.globalData.translateString("fastLoginPage.walletVerified"))},i?3e3:0),this.resetFormStates()):a.code===1440147?this.globalData.showDirectAlert("accountDetailsPage.walletAddressUnderVerify",0,()=>window.location.reload(),1440147):a.code===1430080?this.globalData.showDirectAlert(this.globalData.translateString("codeMessage.30080")+"("+this.globalData.translateString("signUpPage.network")+":"+t.network+", "+this.globalData.translateString("profilePage.walletAddress")+":"+t.memWalletAddress+")",3):this.globalData.showAlert(a.code),setTimeout(()=>{this.updateMemInfo()},1e3),this.globalData.loading=!1})}submit(){var i;if((i=this.memInfo)!=null&&i.isCrypto){this.editCrypto();return}this.isCryptoDetailsEdit&&this.editCrypto()}ngOnDestroy(){this.isComponentAlive=!1,this.subscriptions.unsubscribe()}};c.\u0275fac=function(t){return new(t||c)(C(G),C(H),C(W),C(pt),C(ne),C(E),C(nt),C(X),C(ue),C(Me),C(ye),C(Xe))},c.\u0275cmp=T({type:c,selectors:[["app-streamlined-profile"]],viewQuery:function(t,a){if(t&1&&(se(Vi,5),se(Ti,5)),t&2){let p;ce(p=de())&&(a.rectangleRef=p.first),ce(p=de())&&(a.bankBlockRef=p.first)}},standalone:!0,features:[J([E]),O],decls:6,vars:5,consts:[["rectangleRef",""],["bankBlock",""],["referralCode",""],[1,"acc-block","under-topic"],[1,"acc-info-box","rwd"],["class","wrap",4,"ngIf"],["class","btn-group full-width",4,"ngIf"],["class","success-msg fade-out",4,"ngIf"],[1,"wrap"],["class","grid",4,"ngIf"],[1,"grid"],["class","profile-item","id","profile1",4,"ngIf"],[3,"memInfo","onProfile","showMsgEvent",4,"ngIf"],["class","profile-item",4,"ngIf"],[3,"formGroup",4,"ngIf"],["data-show","mobile","class","profile-burger-btn","id","carouselBtn",3,"ngClass","click",4,"ngIf"],["data-show","mobile","class","profile-burger-btn","id","backBtn",3,"ngClass","click",4,"ngIf"],[1,"rectangle",3,"ngClass"],["data-show","web-window","class","profile-burger-btn","id","carouselBtn",3,"ngClass","click",4,"ngIf"],["data-show","web-window","class","profile-burger-btn","id","backBtn",3,"ngClass","click",4,"ngIf"],[1,"profile-bank-block",3,"ngClass"],[1,"bank-cards-container",3,"ngClass"],["class","maskBankCard",3,"active","inactive","item","shown",4,"ngFor","ngForOf"],["class","btn-outer",3,"click",4,"ngIf"],["class","profile-bank-footer",4,"ngIf"],["data-show","mobile","id","carouselBtn",1,"profile-burger-btn",3,"click","ngClass"],[1,"profile-burger"],["data-show","mobile","id","backBtn",1,"profile-burger-btn",3,"click","ngClass"],[1,"icon-group",2,"font-size","18px"],["data-show","web-window","id","carouselBtn",1,"profile-burger-btn",3,"click","ngClass"],["data-show","web-window","id","backBtn",1,"profile-burger-btn",3,"click","ngClass"],[1,"maskBankCard"],[1,"rectangle-icon"],["src","../../../../../../assets/images/icon_bank.webp","alt","",1,"iconbank",3,"ngClass"],[1,"bank-info-header-container"],[1,"bank-information"],["class","bank-info-edit-btn",3,"active","inactive","click",4,"ngIf"],[1,"profile-bank-btn"],[1,"profile-bank-name"],[1,"rectangle-numtxt"],[1,"profile-bank-number"],[1,"profile-bank-txt"],["class","btn-outer trash_can",3,"click",4,"ngIf"],[1,"bank-info-edit-btn",3,"click"],["src","../../../../../../assets/images/svg/icon-edit.svg","alt","",1,"iconedit"],[1,"tooltip"],[1,"btn-outer","trash_can",3,"click"],[1,"icon-trash_can"],[1,"btn-outer",3,"click"],[1,"icon-plus"],[1,"profile-bank-footer"],[1,"bank-counts"],["class","nav-buttons",4,"ngIf"],[1,"nav-buttons"],["
1id","prevBtn",3,"click","disabled","ngClass"],["id","nextBtn",3,"click","disabled","ngClass"],[3,"formGroup"],["id","profile3",1,"form",3,"ngClass"],["for","bankName"],[1,"title"],[1,"select-dropdown"],["id","bankName","formControlName","bankName",1,"profile-input",3,"blur","ngClass"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","popup-note","style","color: red",3,"ngStyle",4,"ngIf"],["id","profile4",1,"form",3,"ngClass"],["for","bankAccountNumber"],["id","bankAccountNumber","type","text","formControlName","bankAccountNumber","maxlength","25",1,"profile-input",3,"blur","placeholder","ngClass"],[1,"combined-shape"],[1,"please-fill-in-the-c",3,"innerHTML"],["id","profile2",1,"form",3,"ngClass"],["for","bankAccountName"],["id","bankAccountName","type","text","formControlName","bankAccountName",1,"profile-input",3,"keyup","change","placeholder","readonly"],[1,"btn-group"],["type","button",1,"btn-cancel",3,"click"],[3,"click","ngClass","disabled","ngStyle"],[3,"value"],[1,"popup-note",2,"color","red",3,"ngStyle"],["id","profile1",1,"profile-item"],[1,"user-content"],[3,"showMsgEvent","memInfo","onProfile"],[1,"profile-item"],[1,"copy-btn",3,"click"],[1,"icon-Copy"],["class","tooltip",4,"ngIf"],[1,"profile-item",3,"ngClass"],["class","user-content",4,"ngIf"],["class","edit-btn",3,"click",4,"ngIf"],["class","form select-box",4,"ngIf"],["class","form",4,"ngIf"],[1,"edit-btn",3,"click"],[1,"form","select-box"],["formControlName","network",1,"profile-input",3,"ngClass"],[1,"form"],["type","text","formControlName","walletAddress",1,"profile-input",3,"placeholder","ngClass"],[1,"btn-group","full-width"],[1,"btn-cancel",3,"click"],[1,"success-msg","fade-out"]],template:function(t,a){t&1&&(l(0,"div",3)(1,"div",4),g(2,bn,8,6,"div",5),r(),g(3,vn,8,12,"div",6),u(4,"async"),g(5,Cn,2,1,"p",7),r()),t&2&&(o(2),s("ngIf",a.memInfo),o(),s("ngIf",f(4,3,a.accountInfoService.showUserInfoButtons$)),o(2),s("ngIf",a.showMsg))},dependencies:[U,j,pe,$,Be,R,L,Q,ee,Ee,Ne,z,Pe,q,Y,st,oe,te,ie,De,ot,Te],styles:['@charset "UTF-8";.rectangle[_ngcontent-%COMP%]{width:314px;padding:10px 16.9px 15px 17px;border-radius:12px}.rectangle.mobile[_ngcontent-%COMP%]{width:100%;margin-top:30px;height:var(--dynamic-height, 176px)}.rectangle.list-mode[_ngcontent-%COMP%]{padding:10px 8px 15px 17px}.profile-burger-btn[_ngcontent-%COMP%]{margin:0 3.1px 8px 261px}.profile-burger-btn.mobile[_ngcontent-%COMP%]{margin:0 3.1px 8px 88%}.profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]{width:16px;height:12px;display:block;position:relative}.profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]:before, .profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]:after{display:block;width:16px;height:2px;position:absolute;left:0;transition:all .3s}.profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{top:5px}.profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]:before{content:"";top:0}.profile-burger-btn[_ngcontent-%COMP%]   .profile-burger[_ngcontent-%COMP%]:after{content:"";top:10px}.bank-info-edit-btn[_ngcontent-%COMP%]{width:24px;height:24px;padding:5.5px;margin:0 0 0 10px;z-index:1;border-radius:20px;opacity:1;cursor:pointer}img.iconedit[_ngcontent-%COMP%]{width:11.2px;height:11.1px;object-fit:contain;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}img.iconbank[_ngcontent-%COMP%]{filter:grayscale(100%);width:30.7px;height:30px;object-fit:contain;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}img.iconbank.active[_ngcontent-%COMP%]{filter:none}.profile-bank-block[_ngcontent-%COMP%]{padding:0;margin:0 auto;max-width:394px}.profile-bank-block.mobile[_ngcontent-%COMP%]{position:relative;bottom:37px}.profile-bank-block.carousel-mode[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:none}.profile-bank-block.carousel-mode[_ngcontent-%COMP%]   .item.shown[_ngcontent-%COMP%]{display:flex}.profile-bank-block.list-mode[_ngcontent-%COMP%]{max-height:600px;overflow-y:auto;overflow-x:hidden}.profile-bank-block.list-mode[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;background-color:#fff}.profile-bank-block.list-mode[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#b6b6b6;border-radius:2px}.profile-bank-block.list-mode[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex}.profile-bank-block.list-mode[_ngcontent-%COMP%]   .maskBankCard[_ngcontent-%COMP%]{margin-bottom:6px;padding:16px}
1.profile-bank-block[_ngcontent-%COMP%]   .carousel[_ngcontent-%COMP%]{position:relative;width:100%;display:flex;overflow:visible;height:auto}.profile-bank-block[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{min-width:100%;transition:transform .3s ease;flex-direction:column;justify-content:center;align-items:flex-start;background-color:#ccc;padding:16px;position:relative;box-sizing:border-box;border-radius:8px}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;width:100%;padding:0 12px}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]   .bank-counts[_ngcontent-%COMP%]{height:15px;font-family:ProximaNova;font-size:12px}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]   .nav-buttons[_ngcontent-%COMP%]{display:flex;gap:10px}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]   .nav-buttons[_ngcontent-%COMP%]   #prevBtn[_ngcontent-%COMP%], .profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]   .nav-buttons[_ngcontent-%COMP%]   #nextBtn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:0;width:18px;height:18px;border-radius:50%;border-style:solid;border-width:1px;font-size:10px;cursor:pointer}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]   .nav-buttons[_ngcontent-%COMP%]   #prevBtn.disabled[_ngcontent-%COMP%], .profile-bank-block[_ngcontent-%COMP%]   .profile-bank-footer[_ngcontent-%COMP%]   .nav-buttons[_ngcontent-%COMP%]   #nextBtn.disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:none}.profile-bank-block[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{margin:20px auto}.profile-bank-block[_ngcontent-%COMP%]   .bank-info-header-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:fit-content}.profile-bank-block[_ngcontent-%COMP%]   .maskBankCard[_ngcontent-%COMP%]{position:relative;width:100%;max-width:374px;height:160px;margin:0 auto 12px;border-radius:8px;box-shadow:0 0 30px #0003;border-style:solid;border-width:1px}.profile-bank-block[_ngcontent-%COMP%]   .maskBankCard.inactive[_ngcontent-%COMP%]{border-color:#3f5868;background-color:#25333c}.profile-bank-block[_ngcontent-%COMP%]   .bank-information[_ngcontent-%COMP%]{height:17px;font-size:14px;font-weight:700;color:#ededed}.profile-bank-block[_ngcontent-%COMP%]   .bank-name[_ngcontent-%COMP%]{width:32px;height:18px;text-shadow:0 1px 1px rgba(0,0,0,.3);font-family:ProximaNova_ExtrBold;font-size:15px;letter-spacing:.31px;text-align:center;color:#ffffffdb}.profile-bank-block[_ngcontent-%COMP%]   .rectangle-icon[_ngcontent-%COMP%]{width:80px;height:160px;border-radius:89px 0 0 89px;-webkit-clip-path:inset(0 0 0 0);clip-path:inset(0 0 0 0);position:absolute;top:0;right:0;display:flex;align-items:center;padding-left:33px}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-btn[_ngcontent-%COMP%]{max-width:175px;min-width:52px;min-height:28px;margin:14px 0 28px;padding:4px 13px 6px;border-radius:5px;box-shadow:0 1px 3px #0000003d;text-align:center}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-btn.long-name[_ng
1content-%COMP%]{margin:14px 0 8px}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-btn.inactive[_ngcontent-%COMP%]{background-color:#0000003d}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-btn[_ngcontent-%COMP%]   .profile-bank-name[_ngcontent-%COMP%]{width:30px;height:17px;font-size:14px;font-weight:700;letter-spacing:.29px;text-align:center}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-number[_ngcontent-%COMP%]{width:180px;height:17px;margin-bottom:3px;font-family:ProximaNova;font-size:14px;letter-spacing:.88px;color:#ffffffdb}.profile-bank-block[_ngcontent-%COMP%]   .profile-bank-txt[_ngcontent-%COMP%]{margin-top:3px;font-size:12px;color:#ffffffbd}.profile-bank-block[_ngcontent-%COMP%]   .combined-shape[_ngcontent-%COMP%]{padding:13px 12px;border-radius:3px;box-shadow:0 2px 8px #0000006b;border:solid 1px #bfae73;background-color:#fff6db}.profile-bank-block[_ngcontent-%COMP%]   .please-fill-in-the-c[_ngcontent-%COMP%]{display:inline-block;font-family:ProximaNova;font-size:12px;color:#7c5920}.profile-bank-block[_ngcontent-%COMP%]   .btn-group[_ngcontent-%COMP%]{margin-top:0!important}.btn-outer[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:50%;transform:translate(-50%);width:40px;height:40px;border-radius:12px;padding:4px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 1px 16px #0003;border:solid 1px rgba(255,255,255,.1);background-color:#fff3;display:flex;align-items:center;justify-content:center;z-index:10;cursor:pointer}.btn-outer.trash_can[_ngcontent-%COMP%]{bottom:-21px}.icon-plus[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:50%;font-size:24px;font-weight:900;cursor:pointer;background-color:#41ffa1cc;color:#3b566be6;border:2px solid rgba(65,255,161,.6);transition:all .2s ease}.icon-trash_can[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;width:21px;height:21px;border-radius:50%;font-size:13px;cursor:pointer}']});let n=c;return n})();var xn=n=>({active:n});function Sn(n,c){if(n&1&&(l(0,"div",5),I(1,"i",6),l(2,"p"),I(3,"app-vip-level"),l(4,"strong"),m(5),r()()()),n&2){let e=d();o(5),_(e.globalData.acctInfo==null?null:e.globalData.acctInfo.loginId)}}function In(n,c){if(n&1){let e=k();A(0),l(1,"li",7)(2,"a",8),S("click",function(){let t=b(e).$implicit,a=d();return v(a.nowUserInfo=t)}),m(3),u(4,"translate"),r()(),F()}if(n&2){let e=c.$implicit,i=d();o(),s("ngClass",y(4,xn,i.nowUserInfo===e)),o(2),_(f(4,2,"profilePage."+e))}}function kn(n,c){n&1&&I(0,"app-streamlined-profile")}function wn(n,c){n&1&&I(0,"app-setting")}function yn(n,c){n&1&&I(0,"app-account-details")}function Dn(n,c){n&1&&I(0,"app-bottom-menu")}var Fo=(()=>{let c=class c{constructor(i,t){this.globalData=i,this.accountInfoService=t,this.userInfoMenu=["profile","setting","accountDetails"]}ngOnInit(){this.nowUserInfo=this.userInfoMenu[0]}};c.\u0275fac=function(t){return new(t||c)(C(G),C(W))},c.\u0275cmp=T({type:c,selectors:[["app-userinfo"]],standalone:!0,features:[O],decls:11,vars:9,consts:[[3,"title"],["data-show","web-window","class","user-info-box",4,"ngIf"],[1,"acc-topic"],[4,"ngFor","ngForOf"],[4,"ngIf"],["data-show","web-window",1,"user-info-box"],[1,"icon-Avatar"],[3,"ngClass"],[3,"click"]],template:function(t,a){t&1&&(I(0,"app-title-nav",0),u(1,"translate"),l(2,"main"),g(3,Sn,6,1,"div",1),l(4,"div",2)(5,"ul"),g(6,In,5,6,"ng-container",3),r()(),g(7,kn,1,0,"app-streamlined-profile",4)(8,wn,1,0,"app-setting",4)(9,yn,1,0,"app-account-details",4),r(),g(10,Dn,1,0,"app-bottom-menu",4)),t&2&&(s("title",f(1,7,"accountPage.profile")),o(3),s("ngIf",!a.globalData.isMobileStyle),o(3),s("ngForOf",a.userInfoMenu),o(),s("ngIf",a.nowUserInfo===a.userInfoMenu[0]),o(),s("ngIf",a.nowUserInfo===a.userInfoMenu[1]),o(),s("ngIf",a.nowUserInfo===a.userInfoMenu[2]),o(),s("ngIf",a.globalData.isMobileStyle))},dependencies:[gt,U,ht,pe,j,wt,kt,ut,R,L,Pt],encapsulation:2});let n=c;return n})();export{Fo as UserinfoComponent};

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.