1import{a as z,b as ae,c as re}from"./chunk-5TPWLQP7.js";import{a as ne,b as ie}from"./chunk-GK4FMGPU.js";import{a as te}from"./chunk-GNSVSSEC.js";import{a as ee,b as H,c as ft}from"./chunk-4ZUV4ZKP.js";import"./chunk-WTEBCJXP.js";import"./chunk-FFTXNXI6.js";import{a as Xt}from"./chunk-FD55Q7R4.js";import{b as $t}from"./chunk-WH22GQDU.js";import"./chunk-5LWFT2LT.js";import{a as Yt}from"./chunk-WQGKT4QG.js";import{a as Jt}from"./chunk-EJMX6GXD.js";import{j as ut,k as Zt}from"./chunk-LBFZVMBI.js";import{b as gt,m as Kt}from"./chunk-SQXH55RY.js";import{A as pt,B as Qt,c as ot,e as V,g as st,h as lt,j as Lt,l as ct,m as mt,q as Ot,r as Rt,s as qt,t as zt,u as Ut,z as jt}from"./chunk-FZLMV5FP.js";import{E as Ht,O as _t,x as ht}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{C as G,e as Mt,fa as Wt,h as Bt,i as et,j as nt,k as Tt,p as it,q as at,r as rt,ra as Gt,sa as dt,v as Vt}from"./chunk-LKIBVTZY.js";import{b as Et}from"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{$a as Nt,A as b,B as y,Da as c,Ea as Ct,Ga as St,Ia as o,Ja as s,Ka as I,La as P,Ma as A,Oa as S,Ra as F,Sa as d,Za as Ft,_a as Dt,ab as X,bb as m,cb as w,db as k,eb as Y,ga as r,ha as v,jb as M,kb as B,lb as T,mb as Pt,nb as $,ob as bt,p as K,pb as N,sb as _,tb as u,ub as tt,xa as C,xb as At}from"./chunk-LZGEQQYD.js";import"./chunk-BW2TMJN6.js";import{a as Q,b as wt,j as J}from"./chunk-RNQ7BUHW.js";function ue(i,p){if(i&1){let t=S();P(0),o(1,"div",11)(2,"label",15),m(3),_(4,"translate"),s(),o(5,"input",16),T("ngModelChange",function(n){b(t);let a=d(2);return B(a.TwoFaCode,n)||(a.TwoFaCode=n),y(n)}),F("input",function(){b(t);let n=d(2);return y(n.TwoFaCode?n.btnClass="btn-default submit":n.btnClass="btn-default")})("keyup",function(){b(t);let n=d(2);return y(n.twoFaNumberCheck())})("mousedown",function(){b(t);let n=d(2);return y(n.twoFaNumberCheck())}),s()(),A()}if(i&2){let t=d(2);r(3),w(u(4,2,"withdrawPage.authenticationCode")),r(2),M("ngModel",t.TwoFaCode)}}function ge(i,p){if(i&1){let t=S();P(0),o(1,"div",2)(2,"button",3),F("click",function(){b(t);let n=d();return y(n.close())}),I(3,"i",4),s(),o(4,"div",5)(5,"strong"),m(6),_(7,"translate"),s()(),o(8,"p",6),m(9),_(10,"translate"),s(),o(11,"p"),m(12,"\xA0"),s(),o(13,"form",7,0),F("ngSubmit",function(){b(t);let n=d();return y(n.submitTwoFaCode())}),C(15,ue,6,4,"ng-container",8),o(16,"div",9)(17,"button",10),m(18),_(19,"translate"),s()(),o(20,"div",11)(21,"p",12),m(22,"\xA0"),s()(),o(23,"div",11)(24,"p",13),m(25),_(26,"translate"),s()()()(),o(27,"div",14),F("click",function(){b(t);let n=d();return y(n.close())}),s(),A()}if(i&2){let t=d();r(),c("@loadFadeIn",void 0),r(),c("ngClass",t.globalData.isMobileStyle?"select-close-btn":"popup-close-btn"),r(4),w(u(7,10,"withdrawPage.enterTwoFactorAuthenticationCode")),r(3),w(u(10,12,"withdrawPage.enterTwoFactorAuthenticationCodeOnYourDevice")),r(6),c("ngForOf",t.enterTwoFactorForm),r(2),St(t.btnClass),r(),w(u(19,14,"withdrawPage.submit")),r(7),w(u(26,16,"withdrawPage.plsEnableTwoFactorAuthenticationCode")),r(2),c("@loadFadeIn",void 0)}}var oe=(()=>{let p=class p{constructor(e,n,a,l,h,f){this.loginService=e,this.cmsService=n,this.globalData=a,this.httpService=l,this.lineLoginService=h,this.accountInfoService=f,this.btnClass="btn-default",this.TwoFaCode="",this.isEnterTwoFactorPopup=!0,this.enterTwoFactorForm=[{label:"2FA Code",name:"2facode",model:"",placeholder:"",type:"text",id:"txt2facode",autocomplete:"new-2facode",isFocus:!1,isHidden:!0,maxlength:"6",error:!1,errorMessage:""}]}submitTwoFaCode(){if(!this.isValidTwoFaCode())return;this.globalData.loading=!0;let e={mem2FaCode:this.TwoFaCode};this.httpService.verifyMember2FaCode(e).subscribe({next:n=>{n.code===0&&(this.globalData.isShowTwoFactorAuth=!1,this.onSubmitCallback&&this.postData&&this.onSubmitCallback(this.TwoFaCode)),this.globalData.loading=!1},error:n=>{console.error("2FA verification failed:",n),this.globalData.showDirectAlert("codeMessage.1",2),this.globalData.loading=!1}}),this.TwoFaCode=""}isValidTwoFaCode(){return/^[0-9]{6,}$/.test(this.TwoFaCode)}twoFaNumberCheck(){if(this.TwoFaCode.trim().length>0){var e=/^(([0-9]{1}\d*))?$/;!e.test(this.TwoFaCode)&&this.TwoFaCode.length!=0&&(this.TwoFaCode=this.TwoFaCode.replace(/[^0-9]+/g,""))}}closeWindowOrBrowser(e){e&&e.close()}close(){this.isEnterTwoFactorPopup=!1,this.globalData.isShowTwoFactorAuth=!1}};p.\u0275fac=function(n){return new(n||p)(v(Kt),v(_t),v(dt),v(ht),v(Xt),v(gt))},p.\u0275cmp=K({type:p,selectors:[["app-enter-two-factor-popup"]],inputs:{postData:"postData",onSubmitCallback:"onSubmitCallback"},standalone:!0,features:[$],decls:1,vars:1,consts:[["form",""],[4,"ngIf"],[1,"popup-box","small"],[3,"click","ngClass"],[1,"icon-Close"],[1,"popup-title","no-border"],[1,"popup-text"],[1,"popup-block","no-border",3,"ngSubmit"],[4,"ngFor","ngForOf"],[1,"btn-group"],["type","submit"],[1,"form"],[1,"error"],[1,"error",2,"color","red"],[1,"mask","popup",3,"click"],["for","authenticationCode"],["type","text","name","authenticationCode",1,"ng-valid","ng-dirty","ng-touched",3,"ngModelChange","input","keyup","mousedown","ngModel"]],template:function(n,a){n&1&&C(0,ge,28,18,"ng-container",1),n&2&&c("ngIf",a.isEnterTwoFactorPopup)},dependencies:[rt,it,pt,mt,ot,st,lt,ct,Lt,at,nt,et],encapsulation:2,data:{animation:[ut]}});let i=p;return i})();var fe=["memAccountNoInput"],we=()=>["/Account/Deposit"],yt=i=>({open:i}),Ce=i=>({"width.%":i}),be=i=>({withNoHyphen:i}),se=i=>
1({cursor:i}),L=i=>({error:i}),ye=i=>({error:i}),xe=()=>[];function Ie(i,p){if(i&1&&I(0,"app-account-wallet",17),i&2){let t=d(2);c("ngClass",N(1,yt,t.accountInfoService.isProviderListOpen))}}function ve(i,p){i&1&&(o(0,"p",24),m(1),_(2,"translate"),s()),i&2&&(r(),w(u(2,1,"withdrawPage.turnoverNotReached")))}function ke(i,p){if(i&1&&(o(0,"div")(1,"div",18),m(2),_(3,"translate"),s(),o(4,"div",19)(5,"div",20),I(6,"span",21),s(),o(7,"div",22),m(8),s(),C(9,ve,3,3,"p",23),s()()),i&2){let t=d(2);r(2),w(u(3,4,"withdrawPage.targetWithdrawal")),r(4),c("ngStyle",N(6,Ce,t.progressData.percentage)),r(2),w(t.getProgressText),r(),c("ngIf",t.progressData.percentage<100)}}function Se(i,p){i&1&&(o(0,"p",33),m(1),_(2,"translate"),s()),i&2&&(r(),w(u(2,1,"pleaseSelect")))}function Fe(i,p){if(i&1&&(o(0,"p",33),m(1),s()),i&2){let t=d(3);r(),k("",t.paymentSetting.categoryDisplayName," ")}}function De(i,p){if(i&1&&(o(0,"p",34),m(1),s()),i&2){let t=d(3);r(),Y("",t.paymentSetting.methodDisplayName," / ",t.paymentSetting.paymentDisplayName,"")}}function Ne(i,p){if(i&1&&(o(0,"option",55),m(1),s()),i&2){let t=p.$implicit;c("value",t.bankId),r(),k(" ",t.bankName," ")}}function Pe(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(5);r(),w(t.bankNameCtrl.errors.message)}}function Ae(i,p){if(i&1){let t=S();o(0,"input",57),F("keyup",function(n){b(t);let a=d(5);return y(a.filterSymbols(n))})("change",function(n){b(t);let a=d(5);return y(a.filterSymbols(n))}),s()}if(i&2){let t=d(5);c("ngClass",N(1,L,t.bankAccountNameCtrl.invalid&&(t.bankAccountNameCtrl.touched||t.bankAccountNameCtrl.dirty)))}}function Me(i,p){i&1&&I(0,"input",58)}function Be(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(5);r(),w(t.bankAccountNameCtrl.errors.message)}}function Te(i,p){if(i&1){let t=S();o(0,"label",61),F("click",function(){b(t);let n=d(6);return y(n.onCancelEditAccount())}),I(1,"i",62),s()}}function Ee(i,p){if(i&1&&(P(0),I(1,"input",59,2),C(3,Te,2,0,"label",60),A()),i&2){let t=d(5);r(),c("ngClass",N(2,ye,t.bankAccountNumberCtrl.invalid&&(t.bankAccountNumberCtrl.touched||t.bankAccountNumberCtrl.dirty))),r(2),c("ngIf",t.showCancelEditAccount)}}function Ve(i,p){if(i&1&&(o(0,"option",55),m(1),s()),i&2){let t=p.$implicit;c("value",t.bankAcctNo),r(),k(" ",t.bankAcctNo," ")}}function We(i,p){if(i&1){let t=S();o(0,"button",67),F("click",function(){b(t);let n=d(6);return y(n.onEditAccount())}),I(1,"i",68),o(2,"span",69),m(3),_(4,"translate"),s()()}i&2&&(r(3),w(u(4,1,"edit")))}function Le(i,p){if(i&1){let t=S();o(0,"select",63),F("change",function(n){b(t);let a=d(5);return y(a.onAccountChange(n.target.value))}),C(1,Ve,2,2,"option",47),s(),o(2,"div",64),I(3,"span",65),s(),C(4,We,5,3,"button",66)}if(i&2){let t=d(5);Ct("width",t.showEditAccount?90:100,"%"),c("ngClass",N(8,L,t.bankAccountNumberCtrl.invalid&&(t.bankAccountNumberCtrl.touched||t.bankAccountNumberCtrl.dirty))),r(),c("ngForOf",t.filteredAccounts)("ngForTrackBy",t.trackByAccountId),r(),Ct("right",t.showEditAccount?13:2.5,"%"),r(2),c("ngIf",t.showEditAccount)}}function Oe(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(5);r(),w(t.bankAccountNumberCtrl.errors.message)}}function Re(i,p){if(i&1){let t=S();o(0,"form",43)(1,"div",25)(2,"label",44),m(3),_(4,"translate"),_(5,"translate"),o(6,"span"),m(7,"*"),s()(),o(8,"div",45)(9,"select",46),F("change",function(n){b(t);let a=d(4);return y(a.onBankChange(n.target.value))}),C(10,Ne,2,2,"option",47),s(),C(11,Pe,2,1,"p",48),s()(),o(12,"div",25)(13,"label",49),m(14),_(15,"translate"),o(16,"span"),m(17,"*"),s()(),C(18,Ae,1,3,"input",50)(19,Me,1,0,"input",51)(20,Be,2,1,"p",48),s(),o(21,"div",25)(22,"label",52),m(23),_(24,"translate"),o(25,"span"),m(26,"*"),s()(),o(27,"div",53),C(28,Ee,4,4,"ng-container",54)(29,Le,5,10,"ng-template",null,1,At),s(),C(31,Oe,2,1,"p",48),s()()}if(i&2){let t=X(30),e=d(4);c("formGroup",e.fastLoginMemberForm),r(3),Y("",u(4,15,"bankName")," (",u(5,17,"promotionPage.MEMBER"),")"),r(6),c("ngClass",N(23,L,e.bankNameCtrl.invalid&&(e.bankNameCtrl.touched||e.bankNameCtrl.dirty))),r(),c("ngForOf",e.fastBankInfoList)("ngForTrackBy",e.trackByBankId),r(),c("ngIf",e.bankNameCtrl.errors&&(e.bankNameCtrl.touched||e.bankNameCtrl.dirty)),r(3),w(u(15,19,"withdrawPage.memAccountName")),r(4),c("ngIf",!(e.pageData.memInfo!=null&&e.pageData.memInfo.memName)),r(),c("ngIf",e.pageData.memInfo==null?null:e.pageData.memInfo.memName),r(),c("ngIf",e.bankAccountNameCtrl.errors&&(e.bankAccountNameCtrl.touched||e.bankAccountNameCtrl.dirty)),r(3),w(u(24,21,"withdrawPage.memAccountNo")),r(5),c("ngIf",e.isEditing)("ngIfElse",t),r(3),c("ngIf",e.bankAccountNumberCtrl.errors&&(e.bankAccountNumberCtrl.touched||e.bankAccountNumberCtrl.dirty))}}function qe(i,p){if(i&1&&(o(0,"option",55),m(1),s()),i&2){let t=p.$implicit;c("value",t.code),r(),k(" ",t.label," ")}}function ze(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(5);r(),k(" ",t.networkCtrl.errors.message," ")}}function Ue(i,p){i&1&&(o(0,"span",79),m(1),_(2,"translate"),s()),i&2&&(r(),w(u(2,1,"withdrawPage.warningWalletAddress")))}function je(i,p){if(i&1&&(o(0,"div",80)(1,"div",81),m(2),_(3,"translate"),s()()),i&2){let t=d(5);c("ngClass",N(4,yt,t.isOpenNotice)),r(2),k(" ",u(3,2,"withdrawPage.warningWalletAddress")," ")}}function Qe(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(5);r(),w(t.usdtCtrl.errors.message)}}function Ye(i,p){if(i&1){let t=S();o(0,"form",43)(1,"div",25)(2,"label",52),m(3),_(4,"translate"),_(5,"translate"),o(6,"span"),m(7,"*"),s()(),o(8,"div",70)(9,"select",71)(10,"option",72),m(11),_(12,"translate"),s(),C(13,qe,2,2,"option",73),s()(),C(14,ze,2,1,"p",48),s(),o(15,"div",25)(16,"label",52),m(17),_(18,"translate"),_(19,"translate"),o(20,"span"),m(2
11,"*"),s()(),I(22,"input",74),o(23,"button",75),F("click",function(){b(t);let n=d(4);return y(n.isOpenNotice=!n.isOpenNotice)}),I(24,"i",76),C(25,Ue,3,3,"span",77),s(),C(26,je,4,6,"div",78)(27,Qe,2,1,"p",48),s()()}if(i&2){let t=d(4);c("formGroup",t.fastUSDTForm),r(3),Y("",u(4,13,"signUpPage.network")," (",u(5,15,"promotionPage.MEMBER"),")"),r(6),c("ngClass",N(23,L,t.networkCtrl.invalid&&(t.networkCtrl.touched||t.networkCtrl.dirty))),r(2),w(u(12,17,"signUpPage.selectNetwork")),r(2),c("ngForOf",t.networkList),r(),c("ngIf",t.networkCtrl.errors&&(t.networkCtrl.touched||t.networkCtrl.dirty)),r(3),Y("",u(18,19,"withdrawPage.walletAddress")," (",u(19,21,"promotionPage.MEMBER"),")"),r(5),c("ngClass",N(25,L,t.usdtCtrl.invalid&&(t.usdtCtrl.touched||t.usdtCtrl.dirty))),r(3),c("ngIf",!t.globalData.isMobileStyle),r(),c("ngIf",t.globalData.isMobileStyle&&t.isOpenNotice),r(),c("ngIf",t.usdtCtrl.errors&&(t.usdtCtrl.touched||t.usdtCtrl.dirty))}}function Ge(i,p){i&1&&(o(0,"label"),m(1),_(2,"translate"),P(3),m(4),_(5,"translate"),A(),o(6,"span"),m(7,"*"),s()()),i&2&&(r(),k("",u(2,2,"withdrawPage.phoneNumberIDR")," "),r(3),k(" ",u(5,4,"withdrawPage.phoneIDR"),""))}function He(i,p){i&1&&(o(0,"label"),m(1),_(2,"translate"),P(3),m(4),_(5,"translate"),A(),o(6,"span"),m(7,"*"),s()()),i&2&&(r(),k("",u(2,2,"withdrawPage.phoneNumber")," "),r(3),k(" ",u(5,4,"withdrawPage.phoneNotIDR"),""))}function Ze(i,p){if(i&1&&(P(0),o(1,"option",87),m(2),s(),A()),i&2){let t=p.$implicit,e=d(5);r(),c("value",t.phoneCode)("selected",e.withdrawForm.memContactCountry===t.phoneCode),r(),k(" +",t.phoneCode," ")}}function Je(i,p){i&1&&(o(0,"span",79),m(1),_(2,"translate"),s()),i&2&&(r(),w(u(2,1,"withdrawPage.phoneWarning")))}function Ke(i,p){if(i&1&&(o(0,"div",80)(1,"div",81),m(2),_(3,"translate"),s()()),i&2){let t=d(5);c("ngClass",N(4,yt,t.isOpenPhoneNotice)),r(2),k(" ",u(3,2,"withdrawPage.phoneWarning")," ")}}function Xe(i,p){if(i&1){let t=S();o(0,"div",25),C(1,Ge,8,6,"label",16)(2,He,8,6,"label",16),o(3,"div",82)(4,"div",83)(5,"select",84),T("ngModelChange",function(n){b(t);let a=d(4);return B(a.withdrawForm.memContactCountry,n)||(a.withdrawForm.memContactCountry=n),y(n)}),F("change",function(n){b(t);let a=d(4);return y(a.withdrawForm.memContactCountry=n.target.value)}),C(6,Ze,3,3,"ng-container",85),s()(),o(7,"input",86,3),T("ngModelChange",function(n){b(t);let a=d(4);return B(a.withdrawForm.memContactNumber,n)||(a.withdrawForm.memContactNumber=n),y(n)}),F("ngModelChange",function(n){b(t);let a=X(8),l=d(4);return y(l.setContactNumber(n,a))}),s()(),o(9,"button",75),F("click",function(){b(t);let n=d(4);return y(n.isOpenPhoneNotice=!n.isOpenPhoneNotice)}),I(10,"i",76),C(11,Je,3,3,"span",77),s(),C(12,Ke,4,6,"div",78),s()}if(i&2){let t=d(4);r(),c("ngIf",(t.globalData.acctInfo==null?null:t.globalData.acctInfo.currency)==="IDR"),r(),c("ngIf",(t.globalData.acctInfo==null?null:t.globalData.acctInfo.currency)!=="IDR"),r(3),M("ngModel",t.withdrawForm.memContactCountry),c("disabled",(t.globalData.acctInfo==null?null:t.globalData.acctInfo.currency)==="IDR")("ngStyle",N(9,se,(t.globalData.acctInfo==null?null:t.globalData.acctInfo.currency)==="IDR"?"not-allowed":"pointer")),r(),c("ngForOf",t.pageData.contactCountryList),r(),M("ngModel",t.withdrawForm.memContactNumber),r(4),c("ngIf",!t.globalData.isMobileStyle),r(),c("ngIf",t.globalData.isMobileStyle&&t.isOpenPhoneNotice)}}function $e(i,p){if(i&1){let t=S();P(0),o(1,"div",25)(2,"label"),m(3),_(4,"translate"),o(5,"span"),m(6,"*"),s()(),o(7,"input",88),T("ngModelChange",function(n){b(t);let a=d(5);return B(a.withdrawForm.memBankAcctNo,n)||(a.withdrawForm.memBankAcctNo=n),y(n)}),s(),o(8,"label"),m(9),_(10,"translate"),o(11,"span"),m(12,"*"),s()(),o(13,"input",89),T("ngModelChange",function(n){b(t);let a=d(5);return B(a.withdrawForm.memBankAcctName,n)||(a.withdrawForm.memBankAcctName=n),y(n)}),s()(),A()}if(i&2){let t=d(5);r(3),w(u(4,5,"withdrawPage.accountNo")),r(4),M("ngModel",t.withdrawForm.memBankAcctNo),r(2),w(u(10,7,"withdrawPage.accountName")),r(4),M("ngModel",t.withdrawForm.memBankAcctName),c("readonly",t.pageData.memInfo==null?null:t.pageData.memInfo.memName)}}function tn(i,p){if(i&1&&(P(0),C(1,$e,14,9,"ng-container",16),A()),i&2){let t=d(4);r(),c("ngIf",t.withdrawForm.payType=="PM025")}}function en(i,p){i&1&&(o(0,"div",90),I(1,"i",91),o(2,"p",92),m(3),_(4,"translate"),s()()),i&2&&(r(3),w(u(4,1,"depositPage.pcrpPM001DepositNotice")))}function nn(i,p){if(i&1&&(o(0,"p"),m(1),_(2,"translate"),s()),i&2){let t=d(5);r(),k(" ",u(2,1,"currency"+t.pageData.currency.currId)," ")}}function an(i,p){if(i&1&&(o(0,"div",90),I(1,"i",91),o(2,"p"),m(3),_(4,"translate"),o(5,"strong"),m(6),_(7,"numericFormat"),s(),m(8),_(9,"translate"),o(10,"strong"),m(11),_(12,"numericFormat"),s()(),C(13,nn,3,3,"p",16),s()),i&2){let t=d(4);r(3),k(" ",u(4,5,"min")," : "),r(3),w(tt(7,7,t.method.minAmount?t.method.minAmount:"0.00",!1)),r(2),k(" / ",u(9,10,"max")," : "),r(3),w(tt(12,12,t.method.maxAmount?t.method.maxAmount:"0.00",!1)),r(2),c("ngIf",t.pageData.currency&&t.pageData.currency.displayUnit!=1&&(t.pageData.currency.currId=="IDR"||t.pageData.currency.currId=="VND"))}}function rn(i,p){if(i&1&&(o(0,"div",93)(1,"label"),m(2),_(3,"translate"),s(),I(4,"input",94),o(5,"label"),m(6),_(7,"translate"),s(),I(8,"input",94),s()),i&2){let t=d(4);r(2),w(u(3,6,"signUpPage.network")),r(2),c("title",t.accountInfoService.accountData==null||t.accountInfoService.accountData.memInfoCrypto==null?null:t.accountInfoService.accountData.memInfoCrypto.network)("value",(t.accountInfoService.accountData==null||t.accountInfoService.accountData.memInfoCrypto==null?null:t.accountInfoService.accountData.memInfoCrypto.network)||""),r(2),w(u(7,8,"withdrawPage.walletAddress")),r(2),c("title",t.accountInfoService.accountData==null||t.accountInfoService.accountData.memInfoCrypto==null?null:t.accountInfoService.accountData.memInfoCrypto.walletAddress)("value",(t.accountInfoService.accountData==null||t.accountInfoService.accountData.memInfoCrypto==null?null:t.accountInfoService.accountData.memInfoCrypto.walletAddress)||"")}}function on(i,p){if(i&1&&(o(0,"p"),m(1),_(2,"translate"),o(3,"strong"),m(4),_(5,"number"),s()()),i&2){let t=d(5);r(),k(" ",u(2,2,"minAmtOfFreeTran")," : "),r(3),w(tt(5,4,t.method.minAmtOfFreeTran,"1.0-2"))}}function sn(i,p){if(i&1){let t=S();o(0,"div",25)(1,"label",97),m(2),_(3,"translate"),s(),o(4,"input",98),T("ngModelChange",function(n){b(t);let a=d(5);
1return B(a.calculateData.amountReceived,n)||(a.calculateData.amountReceived=n),y(n)}),s()()}if(i&2){let t=d(5);r(2),w(u(3,2,"withdrawPage.amountReceived")),r(2),M("ngModel",t.calculateData.amountReceived)}}function ln(i,p){if(i&1){let t=S();o(0,"div",25)(1,"label",99),m(2),_(3,"translate"),s(),o(4,"input",100),T("ngModelChange",function(n){b(t);let a=d(5);return B(a.calculateData.amountDeduct,n)||(a.calculateData.amountDeduct=n),y(n)}),s()()}if(i&2){let t=d(5);r(2),w(u(3,2,"withdrawPage.deductAmount")),r(2),M("ngModel",t.calculateData.amountDeduct)}}function cn(i,p){if(i&1){let t=S();P(0),o(1,"div",25)(2,"label",95),m(3),_(4,"translate"),s(),o(5,"input",96),T("ngModelChange",function(n){b(t);let a=d(4);return B(a.calculateData.fee,n)||(a.calculateData.fee=n),y(n)}),s(),o(6,"div",90),I(7,"i",91),o(8,"p"),m(9),_(10,"translate"),o(11,"strong"),m(12),s()(),C(13,on,6,7,"p",16),o(14,"p"),m(15),_(16,"translate"),o(17,"strong"),m(18),s()()()(),C(19,sn,5,4,"div",36)(20,ln,5,4,"div",36),A()}if(i&2){let t=d(4);r(3),w(u(4,9,"withdrawPage.withdrawFee")),r(2),M("ngModel",t.calculateData.fee),r(4),k(" ",u(10,11,"limitOfFrequency")," : "),r(3),w(t.method.limitOfFrequency),r(),c("ngIf",t.method.isSetFee),r(2),k(" ",u(16,13,"fee")," : "),r(3),w(t.method.feeType==0?t.method.rateOfFee+"%":t.method.oneTimeOfFee),r(),c("ngIf",t.withdrawForm.methodId!="PQzp"),r(),c("ngIf",t.withdrawForm.methodId=="PQzp")}}function mn(i,p){if(i&1){let t=S();o(0,"div",25)(1,"label",101),m(2),_(3,"translate"),s(),o(4,"input",102),T("ngModelChange",function(n){b(t);let a=d(4);return B(a.calculateData.netMoney,n)||(a.calculateData.netMoney=n),y(n)}),s()()}if(i&2){let t=d(4);r(2),w(u(3,2,"withdrawPage.netMoney")),r(2),M("ngModel",t.calculateData.netMoney)}}function pn(i,p){if(i&1&&(o(0,"div",25)(1,"label"),m(2),_(3,"translate"),s(),I(4,"input",103),s()),i&2){let t=d(4);r(2),w(u(3,2,"withdrawPage.phone")),r(2),c("value","+"+(t.pageData.memInfo==null||t.pageData.memInfo.memInfoPhone==null?null:t.pageData.memInfo.memInfoPhone.contactCountry)+"-"+t.maskedContactNumber)}}function dn(i,p){if(i&1){let t=S();P(0,25),o(1,"div",25)(2,"label"),m(3),_(4,"translate"),s(),I(5,"input",103),s(),o(6,"div",25)(7,"label"),m(8),_(9,"translate"),s(),o(10,"input",104),T("ngModelChange",function(n){b(t);let a=d(4);return B(a.withdrawForm.cryptoAmount,n)||(a.withdrawForm.cryptoAmount=n),y(n)}),s()(),A()}if(i&2){let t=d(4);r(3),w(u(4,4,"withdrawPage.cryptoRate")),r(2),c("value",t.withdrawForm.rate),r(3),w(u(9,6,"withdrawPage.converToCrypto")),r(2),M("ngModel",t.withdrawForm.cryptoAmount)}}function hn(i,p){if(i&1&&(o(0,"option",55),m(1),s()),i&2){let t=p.$implicit;c("value",t.provinceId),r(),k(" ",t.provinceName," ")}}function _n(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(6);r(),w(t.provinceNameCtrl.errors.message)}}function un(i,p){if(i&1&&(o(0,"option",55),m(1),s()),i&2){let t=p.$implicit;c("value",t.cityId),r(),k(" ",t.cityName," ")}}function gn(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(6);r(),w(t.cityCtrl.errors.message)}}function fn(i,p){if(i&1&&(o(0,"p",56),m(1),s()),i&2){let t=d(6);r(),w(t.bankBranchCtrl.errors.message)}}function wn(i,p){if(i&1&&(o(0,"form",43)(1,"div",25)(2,"label"),m(3),_(4,"translate"),o(5,"span"),m(6,"*"),s()(),o(7,"div",105)(8,"select",106)(9,"option",87),m(10),_(11,"translate"),s(),C(12,hn,2,2,"option",73),s(),C(13,_n,2,1,"p",48),s()(),o(14,"div",25)(15,"label"),m(16),_(17,"translate"),o(18,"span"),m(19,"*"),s()(),o(20,"div",105)(21,"select",107)(22,"option",87),m(23),_(24,"translate"),s(),C(25,un,2,2,"option",73),s(),C(26,gn,2,1,"p",48),s()(),o(27,"div",25)(28,"label"),m(29),_(30,"translate"),o(31,"span"),m(32,"*"),s()(),I(33,"input",108),_(34,"translate"),C(35,fn,2,1,"p",48),s()()),i&2){let t=d(5);c("formGroup",t.locationForm),r(3),w(u(4,17,"withdrawPage.provinceName")),r(5),c("ngClass",N(29,L,t.provinceNameCtrl.invalid&&(t.provinceNameCtrl.touched||t.provinceNameCtrl.dirty))),r(),c("selected",t.provinceNameCtrl.value===""),r(),k(" ",u(11,19,"withdrawPage.selectProvince")," "),r(2),c("ngForOf",t.pageData.bankProvinceInfo),r(),c("ngIf",t.provinceNameCtrl.errors&&(t.provinceNameCtrl.touched||t.provinceNameCtrl.dirty)),r(3),w(u(17,21,"withdrawPage.city")),r(5),c("ngClass",N(31,L,t.cityCtrl.invali
1d&&(t.cityCtrl.touched||t.cityCtrl.dirty))),r(),c("selected",t.cityCtrl.value===""),r(),k(" ",u(24,23,"withdrawPage.selectCity")," "),r(2),c("ngForOf",t.bankCityList),r(),c("ngIf",t.cityCtrl.errors&&(t.cityCtrl.touched||t.cityCtrl.dirty)),r(3),w(u(30,25,"withdrawPage.bankBranch")),r(4),c("placeholder",u(34,27,"profilePage.pleaseEnter"))("ngClass",N(33,L,t.bankBranchCtrl.invalid&&(t.bankBranchCtrl.touched||t.bankBranchCtrl.dirty))),r(2),c("ngIf",t.bankBranchCtrl.errors&&(t.bankBranchCtrl.touched||t.bankBranchCtrl.dirty))}}function Cn(i,p){if(i&1&&(P(0),C(1,wn,36,35,"form",35),A()),i&2){let t=d(4);r(),c("ngIf",t.pageData.showProviderCity&&t.globalData.isCNY())}}function bn(i,p){if(i&1){let t=S();P(0),C(1,Re,32,25,"form",35)(2,Ye,28,27,"form",35)(3,Xe,13,11,"div",36)(4,tn,2,1,"ng-container",16),o(5,"div",25)(6,"label",37),m(7),_(8,"translate"),o(9,"span"),m(10,"*"),s()(),o(11,"input",38,0),T("ngModelChange",function(n){b(t);let a=d(3);return B(a.withdrawForm.amount,n)||(a.withdrawForm.amount=n),y(n)}),F("blur",function(n){b(t);let a=d(3);return y(a.withdrawForm.methodId==="PMar"?a.commitActualMoney(n.target.value,a.method.methodName):null)})("ngModelChange",function(n){b(t);let a=X(12),l=d(3);return y(l.setAmount(n,a))}),s(),C(13,en,5,3,"div",39)(14,an,14,15,"div",39),s(),C(15,rn,9,10,"div",40)(16,cn,21,15,"ng-container",16)(17,mn,5,4,"div",36)(18,pn,5,4,"div",36)(19,dn,11,8,"ng-container",36)(20,Cn,2,1,"ng-container",16),o(21,"div",41)(22,"button",42),F("debounceClick",function(){b(t);let n=d(3);return y(n.withdraw())}),m(23),_(24,"translate"),s()(),A()}if(i&2){let t=d(3);r(),c("ngIf",t.isShowFastMemberBanking()),r(),c("ngIf",t.isShowFastMemberWalletAddress()),r(),c("ngIf",t.isShowFastMemberPhone()),r(),c("ngIf",t.withdrawForm.methodId=="PTrp"),r(3),w(u(8,18,"withdrawPage.withdrawalAmount")),r(4),M("ngModel",t.withdrawForm.amount),r(2),c("ngIf",t.withdrawForm.methodId==="PCrp"&&t.withdrawForm.payType==="PM001"),r(),c("ngIf",t.method),r(),c("ngIf",t.showWalletAddress&&!t.isShowFastMemberWalletAddress()),r(),c("ngIf",t.method&&t.method.isSetFee),r(),c("ngIf",t.showNetMoney),r(),c("ngIf",t.showPhoneInfo&&!t.isShowFastMemberPhone()),r(),c("ngIf",t.showWalletAddress),r(),c("ngIf",t.showBankInfo),r(2),c("ngClass",t.submitBtnStyle())("disabled",t.isSubmitDisabled())("ngStyle",N(22,se,t.isSubmitDisabled()?"not-allowed":"pointer")),r(),w(u(24,20,"submit"))}}function yn(i,p){if(i&1){let t=S();P(0),o(1,"div",25)(2,"div",26)(3,"label",27),m(4),_(5,"translate"),o(6,"span"),m(7,"*"),s()(),o(8,"div",28),F("click",function(){b(t);let n=d(2);return y(n.accountInfoService.isPaymentSelectOpen=!n.accountInfoService.isPaymentSelectOpen)}),C(9,Se,3,3,"p",29)(10,Fe,2,1,"p",29)(11,De,2,2,"p",30),o(12,"button",31),I(13,"i",32),s()()()(),C(14,bn,25,24,"ng-container",16),A()}if(i&2){let t=d(2);r(4),w(u(5,6,"withdrawPage.paymentMethod")),r(4),c("ngClass",N(8,be,t.paymentSetting.methodName==""&&t.paymentSetting.paymentId==""&&t.paymentSetting.methodId=="")),r(),c("ngIf",t.paymentSetting.categoryId==""),r(),c("ngIf",t.paymentSetting.categoryId),r(),c("ngIf",t.paymentSetting.methodName),r(3),c("ngIf",t.withdrawForm.methodId!="")}}function xn(i,p){if(i&1&&(o(0,"div",13),C(1,Ie,1,3,"app-account-wallet",14),o(2,"div",15),C(3,ke,10,8,"div",16)(4,yn,15,10,"ng-container",16),s()()),i&2){let t=d();r(),c("ngIf",!t.globalData.isMobileStyle&&!t.cmsService.cmsSetting.isAutoTransfer),r(2),c("ngIf",t.progressData.show),r(),c("ngIf",!t.progressData.show)}}function In(i,p){if(i&1){let t=S();o(0,"app-thb-phone-verify",109),F("verified",function(n){b(t);let a=d();return y(a.handleThbPhoneVerified(n))}),s()}if(i&2){let t=d();c("memInfo",t.memInfo)("countryCodeList",(t.pageData==null?null:t.pageData.contactCountryList)||bt(2,xe))}}function vn(i,p){if(i&1&&I(0,"app-enter-two-factor-popup",110),i&2){let t=d();c("postData",t.globalData.twoFaPostData)("onSubmitCallback",t.globalData.twoFaCallback)}}var ri=(()=>{let p=class p{constructor(e,n,a,l,h,f,g,x,D,E,W,O,R,q,Z){var U,j;this.globalData=e,this.httpService=n,this.swalDialog=a,this.numericFormatPipe=l,this.reverseFormatPipe=h,this.accountInfoService=f,this.cmsService=g,this.fb=x,this.formValidators=D,this.storageService=E,this.registerCacheService=W,this.translate=O,this.langService=R,this.decimalPipe=q,this.appConfigService=Z,this.paymentSetting={categoryId:"",categoryDisplayName:"",methodName:"",methodDisplayName:"",methodId:"",paymentId:"",paymentDisplayName:""},this.withdrawForm={bankId:"",methodId:"",payType:"",methodName:"",contactCountry:"",contactNumber:"",rate:0,cryptoAmount:0,amount:0,bookingRemark:"",memBankId:"",memBankAcctNo:"",memBankAcctName:""},this.calculateData={fee:0,amountReceived:0,netMoney:0,amountDeduct:0,netCredit:0},this.showPhoneInfo=!1,this.showBankInfo=!1,this.showWalletAddress=!1,this.showNetMoney=((U=this.globalData.acctInfo)==null?void 0:U.currency)==="VND"||((j=this.globalData.acctInfo)==null?void 0:j.currency)==="IDR",this.networkList=[],this.bankCityList=[],this.maskedContactNumber="",this.isOpenNotice=!1,this.isOpenPhoneNotice=!1,this.qzPayProductBankList=[],this.filterSymbols=ee,this.filterEventSymbols=H,this.progressData={show:!1,validStake:0,limitAmount:0,percentage:0},this.isThbPhoneVerifyRequired=!1,this.PAYMENT_TYPES={QZPAY:"PQzp"},this.filteredAccounts=[],this.selectedBankDataId=null,this.showEditAccount=!1,this.showCancelEditAccount=!0,this.isEditing=!1,this.originalBankAcctNo=null,this.getWDLimitProgress(),this.createFastLoginMemberFormGroup(),this.createFastLoginMemberUSDTWallet(),this.createLocationFormGroup()}ngOnInit(){this.loadIndex(),this.updateMemInfo(),this.updateProfileData(),this.changeProvince(),this.checkIsMemberNeedPhoneVerify()}trackByBankId(e,n){return n.bankId}getWDLimitProgress(){this.httpService.getWDLimitProgress({}).subscribe(e=>{if(e.code===0){let{data:n}=e;if(n.validStake==null&&n.limitAmount==null)this.progressData.show=!1;else{this.progressData.show=!0;let{validStake:a,limitAmount:l}=n;this.progressData.validStake=a,this.progressData.limitAmount=l,this.progressData.percentage=a>=l?100:this.roundDownWDLimit(a/l)}}})}roundDownWDLimit(e){return Math.floor(e*100*100)/100}roundDown(e,n){return Math.floor((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)}get getProgressText(){return"".concat(this.decimalPipe.transform(this.progressData.percentage,"1.2-2"),"% (").concat(this.progressData.validStake,"/").concat(this.progressData.limitAmount,")")}loadIndex(){this.globalData.loading=!0,this.httpService.getWithdrawalInfo({isMultipleBank:!0}).subscribe({next:e=>{e.code===0&&(this.initializePageData(e.data),this.setLastUsedPaymentMethod(),this.setWithdrawAmount(),this.changeSetting(this.method),this.restoreLastBankInfo()),this.globalData.loading=!1},error:()=>{this.globalData.loading=!1}})}initializePageData(e){var n,a,l,h;this.pageData=e,this.networkList=(a=(n=this.pageData)==null?void 0:n.networkList)!=null?a:[],this.memberPaymentSetting=(h=(l=this.pageData)==null?void 0:l.memberPaymentSetting)!=null?h:[]}setLastUsedPaymentMethod(){var l,h;if(!this.memberPaymentSetting.length||!((l=this.pageData)!=null&&l.lastMemTran))return;let{paymentId:e,payType:n,methodName:a}=this.pageData.lastMemTran;this.method=(h=this.memberPaymentSetting.find(f=>f.paymentId===e&&f.methodId===n&&this.concatBankIdAndMethodname(f.bankId,f.methodName)===a))!=null?h:""}setWithdrawAmount(){var e,n,a;this.withdrawForm.amount=(a=(n=(e=this.pageData)==null?void 0:e.lastMemTran)==null?void 0:n.amt)!=null?a:0}restoreLastBankInfo(){var l,h,f,g;let e=(l=this.pageData)==null?void 0:l.lastMemTran;if(!e){this.resetLocationFormControls();return}if(!e.memBankId)return;let n=(g=(f=(h=this.pageData)==null?void 0:h.memInfo)==null?void 0:f.memInfoBankList)==null?void 0:g.find(x=>x.bankId===e.memBankId);if(!n)return;this.bankNameCtrl.patchValue(n.bankId),this.pageData.showProviderCity&&this.globalData.isCNY()&&(this.setLocationFormValues(n.provinceName,n.city,n.bankBranch),this.provinceNameCtrl.value||(this.cityCtrl.setValue(""),this.bankBranchCtrl.setValue("")))}setLocationFormValues(e,n,a){this.provinceNameCtrl.setValue(e!=null?e:""),this.cityCtrl.setValue(n!=null?n:""),this.bankBranchCtrl.setValue(a!=null?a:"")}
1resetLocationFormControls(){this.withdrawForm.amount=0,this.provinceNameCtrl.setValue(""),this.cityCtrl.setValue(""),this.bankBranchCtrl.setValue("")}concatBankIdAndMethodname(e,n){return e+n}changePaymentSelect(e){var n;!e.categoryId||!e.methodId||!e.paymentId||(this.method=(n=this.memberPaymentSetting.find(a=>a.paymentId===e.paymentId&&a.methodId===e.methodId&&this.concatBankIdAndMethodname(a.bankId,a.methodName).toUpperCase()===e.methodName.toUpperCase()))!=null?n:"",this.changeSetting(this.method))}updateMemInfo(){return J(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData})}updateProfileData(){return J(this,null,function*(){yield this.accountInfoService.loadProfileData(),this.maskedContactNumber=this.accountInfoService.accountData.memInfoPhone.contactNumber})}initPaySettingAndWithdrawFormData(e){var n,a,l,h,f,g,x;this.paymentSetting.categoryId=e.catId,this.paymentSetting.categoryDisplayName=e.categoryDisplayName,this.paymentSetting.methodName=this.concatBankIdAndMethodname(e.bankId,e.methodName),this.paymentSetting.methodDisplayName=e.methodDisplayName,this.paymentSetting.methodId=e.methodId,this.paymentSetting.paymentId=e.paymentId,this.paymentSetting.paymentDisplayName=e.paymentDisplayName,this.withdrawForm.methodId=e.paymentId,this.withdrawForm.payType=e.methodId,this.withdrawForm.methodName=this.concatBankIdAndMethodname(e.bankId,e.methodName),this.withdrawForm.bankId=e.bankId,this.withdrawForm.memContactCountry=((a=(n=this.pageData.memInfo)==null?void 0:n.memInfoPhone)==null?void 0:a.contactCountry)||$t().get((l=this.globalData.acctInfo)==null?void 0:l.currency),this.withdrawForm.memContactNumber=(f=(h=this.pageData.memInfo)==null?void 0:h.memInfoPhone)==null?void 0:f.contactNumber,this.withdrawForm.cryptoAmount=0,this.withdrawForm.rate=0,this.withdrawForm.bookingRemark="",this.withdrawForm.memBankAcctName=(g=this.pageData.memInfo)!=null&&g.memName?H((x=this.pageData.memInfo)==null?void 0:x.memName):""}setPCrpWithdrawFormData(){this.withdrawForm.network=this.method.network,this.withdrawForm.rate=this.method.rate}changeSetting(e){if(e&&e.verifyInfo!=null){switch(this.initPaySettingAndWithdrawFormData(e),e.paymentId){case"PQzp":this.getPQzpWithdrawProduct();break;case"PMar":e.catId=="crypto"&&e.paymentId==="PMar"&&(this.withdrawForm.amount=this.method.minAmount,this.commitActualMoney(this.withdrawForm.amount,this.method.methodName));break;case"PCrp":this.setPCrpWithdrawFormData();break;default:break}this.isShowFastMemberBanking()&&this.getBankListforFastMember(),this.isShowFastMemberWalletAddress()&&(this.initFastMemberWalletAddressData(),this.setPCrpWithdrawFormData())}this.setAmount(this.withdrawForm.amount)}initFastMemberWalletAddressData(){return J(this,null,function*(){var e,n,a,l,h,f,g,x,D;(e=this.pageData)!=null&&e.memInfo&&((a=(n=this.pageData)==null?void 0:n.memInfo)!=null&&a.memInfoCrypto)&&(this.networkCtrl.setValue(((f=(h=(l=this.pageData)==null?void 0:l.memInfo)==null?void 0:h.memInfoCrypto)==null?void 0:f.network)||""),this.usdtCtrl.setValue(((D=(x=(g=this.pageData)==null?void 0:g.memInfo)==null?void 0:x.memInfoCrypto)==null?void 0:D.walletAddress)||""))})}getPQzpWithdrawProduct(){let e={};this.globalData.loading=!0,this.httpService.getPQzpWithdrawProduct(e).subscribe(n=>{if(n.code===0){if(n.data.productList.length>0){this.pqzpProductList=n.data.productList,this.setQZPayProductBankList(this.pqzpProductList),this.getBankListforFastMember();var a=this.convertPqzpProvider(this.concatBankIdAndMethodname(this.method.bankId,this.method.methodName));if(this.pqzpProductList.filter(h=>h.provider.toUpperCase()==a.toUpperCase()).length>0){var l=this.pqzpProductList.find(h=>h.provider.toUpperCase()==a.toUpperCase()).products;this.withdrawForm.bookingRemark=l[0].productName}else this.swalDialog.popMessage(this.translate.instant("withdrawPage.PaymentMethodNotSupport").replace("{0}",this.method.methodDisplayName))}}else n.code==1450001&&this.globalData.showAlert(n.code);this.globalData.loading=!1})}convertPqzpProvider(e){switch(e){case"MDR":return"Mandiri";case"PMB":return"Permata";default:return e}}stripThousands(e){return String(e!=null?e:"").replace(/,/g,"")}commitActualMoney(e,n){var a;if(this.withdrawForm.methodId==="PMar"&&this.method.catId=="crypto"&&n!=""&&Number(this.stripThousands(e))>=Number(this.stripThousands(this.method.minAmount))){this.setAmount(this.withdrawForm.amount);let l={CryptoName:n,Currency:(a=this.globalData.acctInfo)==null?void 0:a.currency,Amount:this.stripThousands(e),MethodId:this.withdrawForm.methodId};this.withdrawForm.methodId==="PMar"&&l.Amount!="0"?(this.globalData.loading=!0,this.httpService.getCryptoRate(l).subscribe(h=>{h.code===0&&(this.withdrawForm.rate=h.data.rate,this.withdrawForm.cryptoAmount=h.data.cryptoAmount),this.globalData.loading=!1})):(this.withdrawForm.rate=0,this.withdrawForm.cryptoAmount=0)}else this.withdrawForm.rate=0,this.withdrawForm.cryptoAmount=0}checkPaymentMaintenance(e,n){this.httpService.checkPaymentMaintenance(e).subscribe(a=>{var l;a.code===1430081?n("block"):a.code===0&&((l=a.data)==null?void 0:l.showComfirmPopup)===!0?n("confirm"):n("pass")})}withdraw(){var f,g,x,D,E,W,O,R,q,Z,U,j,xt,It,vt,kt;if(this.blockThbUnverifiedSubmit()||(this.isNoError=this.isErrorValid(),!this.isNoError))return;let e=(f=this.pageData.memInfo)==null?void 0:f.memInfoPhone,n=(g=this.withdrawForm.memContactNumber)==null?void 0:g.toString(),a=(x=this.pageData.memInfo)==null?void 0:x.memInfoCrypto,l={isMultipleBank:!0,methodId:this.withdrawForm.methodId,payType:this.withdrawForm.payType,methodName:this.withdrawForm.methodName,amount:Number(this.reverseFormatPipe.transform(this.withdrawForm.amount)),bankId:this.withdrawForm.bankId,memContactCountry:this.withdrawForm.memContactCountry,memContactNumber:this.withdrawForm.memContactNumber,provinceCode:this.pageData.showProviderCity&&this.globalData.isCNY()?this.provinceNameCtrl.value:"",cityCode:this.pageData.showProviderCity&&this.globalData.isCNY()?this.cityCtrl.value:"",bankBranch:this.pageData.showProviderCity&&this.globalData.isCNY()?this.bankBranchCtrl.value:"",bookingRemark:this.withdrawForm.bookingRemark,memInfoBankId:null,memBankId:"",memBankAcctNo:"",memBankAcctName:"",memInfoCryptoId:(D=a==null?void 0:a.id)!=null?D:null,memNetwork:"",memWalletAddress:""};switch(this.isShowFastMemberBanking()?(l.memInfoBankId=this.selectedBankDataId,l.memBankId=this.bankNameCtrl.value,l.memBankAcctNo=this.bankAccountNumberCtrl.value,l.memBankAcctName=H(this.bankAccountNameCtrl.value)):((E=this.method)==null?void 0:E.verifyInfo)=="phoneNumber"&&!((O=(W=this.pageData.memInfo)==null?void 0:W.memInfoPhone)!=null&&O.isVerified)?(l.memContactCountry=((R=this.withdrawForm.memContactCountry)==null?void 0:R.length)>0?this.withdrawForm.memContactCountry:e==null?void 0:e.contactCountry,l.memContactNumber=(n==null?void 0:n.length)>0?n:e==null?void 0:e.contactNumber):(((q=this.method)==null?void 0:q.verifyInfo)==="walletAddress"&&!((U=(Z=this.pageData.memInfo)==null?void 0:Z.memInfoCrypto)!=null&&U.verifiedDate)||((j=this.method)==null?void 0:j.methodId)=="PM001"&&((xt=this.method)==null?void 0:xt.paymentId)=="PCrp")&&(l.memNetwork=((It=this.networkCtrl.value)==null?void 0:It.length)>0?this.networkCtrl.value:a==null?void 0:a.network,l.memWalletAddress=((vt=this.usdtCtrl.value)==null?void 0:vt.length)>0?this.usdtCtrl.value:a==null?void 0:a.walletAddress),this.withdrawForm.methodId){case"PEwa":this.withdrawForm.payType=="PM011"&&(l.bankId=this.method.methodName),this.withdrawForm.payType=="PM020"&&(l.bankId=this.method.bankId);break;case"PTrp":this.withdrawForm.payType=="PM025"&&(l.bankId="MOQR",l.memBankAcctNo=this.withdrawForm.memBankAcctNo,l.memBankAcctName=H(this.withdrawForm.memBankAcctName));break}if(((kt=this.globalData.acctInfo)==null?void 0:kt.balance)<=0){this.globalData.showDirectAlert("codeMessage.30034",0);return}this.globalData.loading=!0;let h={methodId:this.withdrawForm.methodId,payType:this.withdrawForm.payType,methodName:this.withdrawForm.methodName,amount:Number(this.reverseFormatPipe.transform(this.withdrawForm.amount)),bankId:this.withdrawForm.bankId};this.showTwoFactorAuth(h,l),this.globalData.loading=!1}showTwoFactorAuth(e,n){this.httpService.showTwoFactorAuth(e).subscribe(a=>{a.code===0&&(a.data.isShowTwoFactorAuth?(this.globalData.isShowTwoFactorAuth=!0,this.globalData.twoFaPostData=n,this.globalData.twoFaCallback=()=>this.withdrawWithTRF(n)):this.withdrawWithTRF(n))})}withdrawWithTRF(e){this.httpService.withdrawalToLocalTransfer(e).subscribe(n=>{var a;if(n.code===0)this.storageService.setCookie("acctInfo",JSON.stringify(this.globalData.acctInfo)),this.setAmount(n.data.amount),this.globalData.showDirectAlert("codeMessage.0",1),this.accountInfoService.getBalance(),setTimeout(()=>{this.loadIndex(),this.updateMemInfo().then(()=>{this.updateProfileData().then(()=>{var l,h,f,g,x;this.accountInfoService.accountData&&((l=this.accountInfoService.accountData)!=null&&l.memInfoCrypto)&&(this.networkCtrl.setValue(((f=(h=this.accountInfoService.accountData)==null?void 0:h.memInfoCrypto)==null?void 0:f.network)||""),this.usdtCtrl.setValue(((x=(g=this.accountInfoService.accountData)==null?void 0:g.memInfoCrypto)==null?void 0:x.walletAddress)||""))})})},1e3);else if(n.code===1430071){let l=(a=this.fastBankInfoList)==null?void 0:a.find(h=>h.bankId===e.memBankId);this.globalData.showDirectAlert(this.globalData.translateString("fastLoginPage.accounNumberMemExisted")+" ("+this.globalData.translateString("profilePage.bankName")+":"+l.bankName+", "+this.globalData.translateString("profilePage.bankAccountNumber")+":"+e.memBankAcctNo+")",3)}else n.code===1430080&&this.globalData.showDirectAlert(this.globalData.translateString("codeMessage.30080")+"("+this.globalData.translateString("signUpPage.network")+":"+e.memNetwork+", "+this.globalData.translateString("profilePage.walletAddress")+":"+e.memWalletAddress+")",3);this.globalData.loading=!1})}setAmount(e,n){e||(e=0),e=this.reverseFormatPipe.transform(e).toString(),e=e.split(".")[0].replace(/\D/g,""),e=e.replace(/^0+(?=\d)/,""),e=e||"0";let a=/(\d{1,3})(?=(\d{3})+$)/g;n&&(n.value=e.replace(a,"$1,")),this.withdrawForm.amount=e.replace(a,"$1,"),this.setFee(e),this.setDeductAmount(e),this.setAmountReceived(e),this.setNetMoney(e)}setFee(e){if(this.method){let{feeType:n,rateOfFee:a,oneTimeOfFee:l,needFee:h,isSetFee:f}=this.method,g=e>=this.method.minAmtOfFreeTran?h&&f:!h;e||(e=0),n!=null&&(n==0?this.calculateData.fee=parseFloat(e)/100*parseFloat(a):n==1&&(this.calculateData.fee=parseFloat(l))),this.calculateData.fee=g||h?Math.round((Number(this.reverseFormatPipe.transform(this.calculateData.fee))+Number.EPSILON)*Math.pow(10,2))/Math.pow(10,2):0,this.calculateData.fee=this.numericFormatPipe.transform(this.reverseFormatPipe.transform(this.calculateData.fee),!0)}}setAmountReceived(e){let n=Number(e),a=Number(this.reverseFormatPipe.transform(this.calculateData.fee)),l=n-a,h=l>=0?Math.round(l*Math.pow(10,2))/Math.pow(10,2):0;this.calculateData.amountReceived=this.numericFormatPipe.transform(h,!0)}setDeductAmount(e){let n=Number(e),a=Number(this.reverseFormatPipe.transform(this.calculateData.fee)),l=n+a,h=l>=0?Math.round(l*Math.pow(10,2))/Math.pow(10,2):0;this.calculateData.amountDeduct=this.numericFormatPipe.transform(h,!0)}setNetMoney(e){var f,g;let n=Number(e),a=this.method&&this.method.needFee&&this.method.isSetFee?Math.round(this.reverseFormatPipe.transform(this.calculateData.fee)*Math.pow(10,2))/Math.pow(10,2):0,l=n-a;this.calculateData.netCredit=l,this.withdrawForm.methodId!=="PMar"&&(this.withdrawForm.cryptoAmount=this.withdrawForm.rate!=0?this.roundDown(this.calculateData.netCredit/this.withdrawForm.rate,6):0);let h=l>=0?Math.round(l*Math.pow(10,2))/Math.pow(10,2):0;(((f=this.globalData.acctInfo)==null?void 0:f.currency)==="IDR"||((g=this.globalData.acctInfo)==null?void 0:g.currency)==="VND")&&(h=h*1e3),this.withdrawForm.methodId=="PQzp"?this.calculateData.netMoney=this.numericFormatPipe.transform(this.reverseFormatPipe.transform(n*1e3),!0):this.calculateData.netMoney=this.numericFormatPipe.transform(this.reverseFormatPipe.transform(h),!0)}isErrorValid(){var n,a,l,h,f,g;if(this.withdrawForm.methodId==="")return this.globalData.showDirectAlert("withdrawPage.PaymentBlankMsg",2),!1;if(this.withdrawForm.payType=="")return this.globalData.showDirectAlert("withdrawPage.MethodMandatory",2),!1;if(this.withdrawForm.methodId=="PMsp"){let x=Number(this.reverseFormatPipe.transform(this.withdrawForm.amount)),D=Number(this.reverseFormatPipe.transform(this.calculateData.fee)),E=x-D;if(!Number.isInteger(E))return this.globalData.showDirectAlert("codeMessage.70009"),!1}if(this.withdrawForm.methodId=="PQzp"){if(this.withdrawForm.payType!="PM001"&&this.reverseFormatPipe.transform(this.withdrawForm.amount)%5!=0){this.globalData.showDirectAlert("codeMessage.70005");return}if(!Number.isInteger(Number(this.reverseFormatPipe.transform(this.withdrawForm.amount)))){this.globalData.showDirectAlert("codeMessage.70009");return}if(Number(this.reverseFormatPipe.transform(this.calculateData.fee))+Number(this.reverseFormatPipe.transform(this.withdrawForm.amount))>Number(this.reverseFormatPipe.transform((n=this.globalData.acctInfo)==null?void 0:n.balance)))return this.globalData.showDirectAlert("withdrawPage.CashInsufficient",0),!1;if(this.withdrawForm.bookingRemark==""){this.globalData.showDirectAlert("withdrawPage.MethodMandatory",2);return}}if(this.withdrawForm.methodId=="PTrp"&&this.withdrawForm.payType=="PM025"){let x=new RegExp("^[A-Za-z0-9]+$"),D=new RegExp("^[0-9]*$");
1if(this.withdrawForm.memBankAcctNo==""){this.globalData.showDirectAlert("codeMessage.30073",2);return}if(((a=this.memInfo)==null?void 0:a.currId)==="VND"&&!x.test(this.withdrawForm.memBankAcctNo)){this.globalData.showDirectAlert("codeMessage.30073",2);return}if(((l=this.memInfo)==null?void 0:l.currId)!=="VND"&&!D.test(this.withdrawForm.memBankAcctNo)){this.globalData.showDirectAlert("codeMessage.30073",2);return}let E=new RegExp("^[\u4E00-\u9FA5]+$"),W=new RegExp("\\b[^\\d\\W]+\\b");if(this.withdrawForm.memBankAcctName==""){this.globalData.showDirectAlert("codeMessage.40120",2);return}if(((h=this.memInfo)==null?void 0:h.currId)==="CNY"&&!E.test(this.withdrawForm.memBankAcctName.trim())){this.globalData.showDirectAlert("codeMessage.800007",2);return}if(((f=this.memInfo)==null?void 0:f.currId)==="IDR"&&!W.test(this.withdrawForm.memBankAcctName)){this.globalData.showDirectAlert("codeMessage.70004",2);return}if(String(this.withdrawForm.memBankAcctName).length>100){this.globalData.showDirectAlert("codeMessage.60002",2);return}}if(this.isShowFastMemberPhone()){let x=new RegExp("^[0-9]+$"),D=new RegExp("^".concat(this.withdrawForm.memContactCountry));if(this.withdrawForm.memContactCountry=="")return this.globalData.showDirectAlert("codeMessage.40126",2),!1;if(!x.test(this.withdrawForm.memContactCountry))return this.globalData.showDirectAlert("codeMessage.50007"),!1;if(this.withdrawForm.memContactNumber==null||this.withdrawForm.memContactNumber=="")return this.globalData.showDirectAlert("codeMessage.40127"),!1;if(!x.test(this.withdrawForm.memContactNumber.trim())||this.withdrawForm.memContactNumber.length>15||/^[0]+$/.test(this.withdrawForm.memContactNumber))return this.globalData.showDirectAlert("codeMessage.50007"),!1;if(D.test(this.withdrawForm.memContactNumber))return this.globalData.showDirectAlert("codeMessage.50007"),!1;if(this.pageData.memInfo.currId=="IDR"&&this.withdrawForm.memContactNumber.toString().length>12)return this.globalData.showDirectAlert("codeMessage.70003"),!1;if(this.withdrawForm.payType=="PM014"&&!((g=this.memInfo)!=null&&g.phoneVerify)&&!/^8/.test(this.withdrawForm.memContactNumber)){this.globalData.showDirectAlert("codeMessage.50007",0);return}}return this.withdrawForm.amount===""||this.withdrawForm.amount==="0"?(this.globalData.showDirectAlert("withdrawPage.amtBlankMsg",2),!1):/^(([1-9]{1}\\d*)|(0{1}))(\\.\\d{0,2})?$/.test(this.withdrawForm.amount)&&this.withdrawForm.amount.length!=0?(this.globalData.showDirectAlert("withdrawPage.amtBlankMsg",2),!1):Number(this.reverseFormatPipe.transform(this.calculateData.fee))>Number(this.reverseFormatPipe.transform(this.withdrawForm.amount))?(this.globalData.showDirectAlert("withdrawPage.CashInsufficient",0),!1):this.method&&(Number(this.reverseFormatPipe.transform(this.withdrawForm.amount))<this.method.minAmount||Number(this.reverseFormatPipe.transform(this.withdrawForm.amount))>this.method.maxAmount||this.withdrawForm.amount==="")?(this.swalDialog.popMessage(this.globalData.translateString("withdrawPage.minMax")+" : "+this.method.minAmount+" / "+this.method.maxAmount,0),!1):!0}filterBanksByMemBanks(e,n,a){return e.filter(l=>n.some(h=>h.bankId===l.bankId&&(!a||a(h))))}handleQZPayBanks(){return this.method.paymentId!==this.PAYMENT_TYPES.QZPAY?null:this.qzPayProductBankList.filter(e=>e.bankId===this.method.bankId)}handleBanksWithMethodBankId(e,n,a){var f;let l=e.filter(g=>g.bankId===this.method.bankId);if(l.length>0&&((f=this.pageData.memInfo)==null?void 0:f.isBankCountReachLimit)===!1)return l;if(!a)return[{bankId:"",bankName:this.globalData.translateString("depositPage.pleaseSelect")}];let h=Array.from(new Map(n.filter(g=>g.bankId===this.method.bankId).map(g=>[g.bankId,g])).values());return h.length===0?[{bankId:"",bankName:this.globalData.translateString("depositPage.pleaseSelect")}]:h}handleBanksWithoutMethodBankId(e,n,a){var h;let l=[];if(((h=this.pageData.memInfo)==null?void 0:h.isBankCountReachLimit)===!1){let f=new Map;e.forEach(g=>{f.has(g.bankId)||f.set(g.bankId,g)}),n.forEach(g=>{f.has(g.bankId)||f.set(g.bankId,g)}),l=Array.from(f.values())}
1else l=a?this.filterBanksByMemBanks(e,n):[...e],a&&n.forEach(f=>{l.some(g=>g.bankId===f.bankId)||l.push(f)});return l.length===0?[{bankId:"",bankName:this.globalData.translateString("depositPage.pleaseSelect")}]:(l.sort((f,g)=>f.bankId.localeCompare(g.bankId)),l)}initBankInfo(e){var a,l,h,f;if(this.bankAccountNameCtrl.setValue((l=(a=this.pageData.memInfo)==null?void 0:a.memName)!=null?l:""),!this.fastBankInfoList.some(g=>g.bankId===e)&&this.fastBankInfoList.length>0){let g=this.fastBankInfoList[0];this.bankNameCtrl.setValue((h=g.bankId)!=null?h:""),this.bankAccountNumberCtrl.setValue((f=g.bankAcctNo)!=null?f:"")}}getBankListforFastMember(){var l,h,f;if(!this.isShowFastMemberBanking())return;let e=(h=(l=this.pageData.memInfo)==null?void 0:l.memInfoBankList)!=null?h:[],n=e.length>0,a=(f=this.globalData.acctInfo)==null?void 0:f.currency;this.httpService.getBankInfoList({currId:a}).subscribe(g=>{var E,W,O,R,q;if((g==null?void 0:g.code)!==0){this.fastBankInfoList=[];return}let x=(E=g.data)!=null?E:[],D=this.handleQZPayBanks();if(D!==null){this.fastBankInfoList=D,this.onBankChange((O=(W=this.fastBankInfoList[0])==null?void 0:W.bankId)!=null?O:""),this.initBankInfo(this.bankNameCtrl.value);return}this.method.bankId&&this.method.bankId.trim()!==""?this.fastBankInfoList=this.handleBanksWithMethodBankId(x,e,n):this.fastBankInfoList=this.handleBanksWithoutMethodBankId(x,e,n),this.onBankChange((q=(R=this.fastBankInfoList[0])==null?void 0:R.bankId)!=null?q:""),this.initBankInfo(this.bankNameCtrl.value)})}onBankChange(e){var a,l,h,f,g,x;if(this.isEditing=!1,this.removeBankAccountNumberValidator(),this.showEditAccount=!1,this.filteredAccounts=(a=this.pageData.memInfo)==null?void 0:a.memInfoBankList.filter(D=>D.bankId===e),((h=(l=this.pageData.memInfo)==null?void 0:l.memInfoBankList)==null?void 0:h.length)==0||this.filteredAccounts.length===0){this.bankNameCtrl.patchValue(e),this.bankAccountNumberCtrl.reset(""),this.updateEditButtonVisibility(null),this.isEditing=!0,this.addBankAccountNumberValidator(),this.showCancelEditAccount=!1;return}let n=this.filteredAccounts[0];this.selectedBankDataId=n.id,this.bankNameCtrl.patchValue(n.bankId),this.bankAccountNumberCtrl.patchValue(n.bankAcctNo),this.provinceNameCtrl.setValue((f=n==null?void 0:n.provinceName)!=null?f:""),this.cityCtrl.setValue((g=n==null?void 0:n.city)!=null?g:""),this.bankBranchCtrl.setValue((x=n==null?void 0:n.bankBranch)!=null?x:""),this.updateEditButtonVisibility(n)}onAccountChange(e){let n=this.filteredAccounts.find(a=>a.bankAcctNo===e);this.selectedBankDataId=n==null?void 0:n.id,this.updateEditButtonVisibility(n)}updateEditButtonVisibility(e){this.showEditAccount=!!e&&e.isMemtranPending===!1&&e.verifiedDate===null,this.selectedBankDataId=e?e.id:null}onEditAccount(){this.originalBankAcctNo=this.bankAccountNumberCtrl.value,this.isEditing=!0,this.addBankAccountNumberValidator(),setTimeout(()=>this.focusMemAccountNoInput())}onCancelEditAccount(){this.isEditing=!1,this.removeBankAccountNumberValidator(),this.bankAccountNumberCtrl.patchValue(this.originalBankAcctNo)}trackByAccountId(e,n){return n.id}setQZPayProductBankList(e){this.qzPayProductBankList=e.map(n=>{let a="",l=n.products[0].productName;switch(n.provider){case"Mandiri":a="MDR";break;case"Permata":a="PMB";break;default:a=n.provider}return{bankId:a,bankName:l}})}createFastLoginMemberFormGroup(){this.fastLoginMemberForm=this.fb.group({bankName:["",[V.required,this.formValidators.createBankNameValidator()]],bankAccountNumber:["",[V.required]],bankAccountName:["",[V.required,this.formValidators.createBankAccountNameValidator()]]})}addBankAccountNumberValidator(){let e=this.fastLoginMemberForm.get("bankAccountNumber");e&&(e.addValidators(this.formValidators.createBankAccountNumberValidator()),e.updateValueAndValidity())}removeBankAccountNumberValidator(){let e=this.fastLoginMemberForm.get("bankAccountNumber");e&&(e.clearValidators(),e.addValidators([V.required]),e.updateValueAndValidity())}createFastLoginMemberUSDTWallet(){this.fastUSDTForm=this.fb.group({network:["",[V.required,this.formValidators.createNetwork()]],walletAddress:["",[V.required,this.formValidators.createWalletAddress()]]})}createLocationFormGroup(){this.locationForm=this.fb.group({provinceName:["",[V.required,this.formValidators.createProvinceValidator()]],city:["",[V.required,this.formValidators.createCityValidator()]],bankBranch:["",[V.required,this.formValidators.createBankBranchValidator()]]})}resetMemberBank(){this.isShowFastMemberBanking()&&(this.bankNameCtrl.setValue(""),this.bankAccountNumberCtrl.reset(),this.bankAccountNameCtrl.reset(),this.provinceNameCtrl.reset(),this.cityCtrl.reset(),this.bankBranchCtrl.reset(),this.bankNameCtrl.markAsUntouched(),this.bankNameCtrl.markAsPristine())}changeProvince(){this.provinceNameCtrl.valueChanges.subscribe(e=>{var n;this.pageData.bankCityInfo&&(this.bankCityList=(n=this.pageData.bankCityInfo)==null?void 0:n.filter(a=>a.provinceId==e)),this.cityCtrl.setValue(""),this.cityCtrl.markAsUntouched(),this.cityCtrl.markAsPristine()})}get bankNameCtrl(){return this.fastLoginMemberForm.controls.bankName}get bankAccountNumberCtrl(){return this.fastLoginMemberForm.controls.bankAccountNumber}get bankAccountNameCtrl(){return this.fastLoginMemberForm.controls.bankAccountName}get networkCtrl(){return this.fastUSDTForm.controls.network}get usdtCtrl(){return this.fastUSDTForm.controls.walletAddress}get provinceNameCtrl(){return this.locationForm.controls.provinceName}get cityCtrl(){return this.locationForm.controls.city}get bankBranchCtrl(){return this.locationForm.controls.bankBranch}isShowFastMemberPhone(){var e;return this.showPhoneInfo=((e=this.method)==null?void 0:e.verifyInfo)=="phoneNumber",!!(!this.accountInfoService.n
1otAllowEditPhone&&this.showPhoneInfo)}isShowFastMemberBanking(){var e;return this.showBankInfo=((e=this.method)==null?void 0:e.verifyInfo)=="bank",!!this.showBankInfo}isShowFastMemberWalletAddress(){var e,n,a;return this.showWalletAddress=((e=this.method)==null?void 0:e.verifyInfo)=="walletAddress",((n=this.method)==null?void 0:n.methodId)=="PM001"&&((a=this.method)==null?void 0:a.paymentId)=="PCrp"?(this.showWalletAddress=!0,!0):!!(this.showWalletAddress&&!this.accountInfoService.notAllowEditWalletAddress)}getMerchantIdForPhoneVerify(){var n,a;let e=((n=this.cmsService.cmsSetting)==null?void 0:n.merchantCode)!=null?(a=this.cmsService.cmsSetting)==null?void 0:a.merchantCode:String(this.appConfigService.getConfig("configMerchantCode")||"").slice(2);return String(e||"")}checkIsMemberNeedPhoneVerify(){var a;if(((a=this.globalData.acctInfo)==null?void 0:a.currency)!=="THB"){this.isThbPhoneVerifyRequired=!1;return}let e=this.getMerchantIdForPhoneVerify();if(e==null){this.isThbPhoneVerifyRequired=!1;return}if(!(!!this.globalData.isLogin&&localStorage.getItem("isLogin")==="true")){this.isThbPhoneVerifyRequired=!1;return}this.httpService.isMemberNeedPhoneVerify({merchantId:e}).subscribe(l=>{var h;l.code===0&&(this.isThbPhoneVerifyRequired=!!((h=l.data)!=null&&h.needVerify))})}blockThbUnverifiedSubmit(){var n,a,l,h;let e=!!((n=this.memInfo)!=null&&n.phoneVerify)||!!((l=(a=this.pageData)==null?void 0:a.memInfo)!=null&&l.phoneVerify);return((h=this.globalData.acctInfo)==null?void 0:h.currency)==="THB"&&!e&&this.isThbPhoneVerifyRequired?(this.isThbPhoneVerifyRequired=!0,this.globalData.showDirectAlert("freeBets.pleaseVerifyPhone",0),!0):!1}shouldShowThbPhoneVerifyPopup(){var e;return((e=this.globalData.acctInfo)==null?void 0:e.currency)==="THB"&&!!this.memInfo&&this.isThbPhoneVerifyRequired}handleThbPhoneVerified(e){var n;this.memInfo=wt(Q(Q({},this.memInfo),e),{phoneVerify:!0}),(n=this.pageData)!=null&&n.memInfo&&(this.pageData.memInfo=wt(Q(Q({},this.pageData.memInfo),e),{phoneVerify:!0})),this.maskedContactNumber=e.contactNumber,this.withdrawForm.memContactCountry=e.contactCountry,this.withdrawForm.memContactNumber=e.contactNumber,this.isThbPhoneVerifyRequired=!1}submitBtnStyle(){return this.isSubmitDisabled()?"btn-cancel":"btn-submit"}isSubmitDisabled(){var n;if(this.showPhoneInfo)return!1;let e=this.withdrawForm.amount?Number(this.reverseFormatPipe.transform(this.withdrawForm.amount)):0;return!!(this.method&&e<this.method.minAmount||this.paymentSetting.paymentId=="POkp"&&(!Number.isInteger(Number(this.withdrawForm.amount.replace(",","")))||((n=this.calculateData.netMoney)==null?void 0:n.toString().indexOf("."))>-1)||this.isShowFastMemberBanking()&&this.fastLoginMemberForm.invali
1d||this.isShowFastMemberWalletAddress()&&this.fastUSDTForm.invalid||this.paymentSetting.paymentId!="PCrp"&&this.pageData.showProviderCity&&this.globalData.isCNY()&&this.locationForm.invalid)}setContactNumber(e,n){e=e.replace(/\D/g,""),e=e.replace(/^0+/,""),n&&(n.value=e),this.withdrawForm.contactNumber=e}focusMemAccountNoInput(){this.memAccountNoInput.nativeElement.focus()}};p.\u0275fac=function(n){return new(n||p)(v(dt),v(ht),v(Gt),v(z),v(Jt),v(gt),v(_t),v(jt),v(ft),v(Mt),v(Ht),v(Bt),v(Tt),v(G),v(Et))},p.\u0275cmp=K({type:p,selectors:[["app-withdraw"]],viewQuery:function(n,a){if(n&1&&Ft(fe,5),n&2){let l;Dt(l=Nt())&&(a.memAccountNoInput=l.first)}},standalone:!0,features:[Pt([z,ft,G]),$],decls:18,vars:16,consts:[["Num",""],["selectMode",""],["memAccountNoInput",""],["PhoneNumber",""],[3,"title"],[3,"displayMemberInfo"],[1,"acc-topic"],[3,"routerLink"],["ngClass","active"],[3,"ngIf"],[3,"memInfo","countryCodeList","verified",4,"ngIf"],[3,"PaymentSelectChange","paymentSettingList"],[3,"postData","onSubmitCallback",4,"ngIf"],[1,"acc-block","under-topic"],["class","money-info-box",3,"ngClass",4,"ngIf"],[1,"col"],[4,"ngIf"],[1,"money-info-box",3,"ngClass"],[1,"progress-title"],[1,"safe-progress-box"],[1,"safe-progress"],[3,"ngStyle"],[1,"progress-text"],["class","turnover-notice",4,"ngIf"],[1,"turnover-notice"],[1,"form"],[1,"form","trans-form"],["for","wPaymentMethod"],[1,"select",3,"click","ngClass"],["class","target",4,"ngIf"],["class","value",4,"ngIf"],[1,"select-btn"],[1,"icon-bannerarrow"],[1,"target"],[1,"value"],[3,"formGroup",4,"ngIf"],["class","form",4,"ngIf"],["for","wAmount"],["type","text","name","wAmount","placeholder","0",3,"ngModelChange","blur","ngModel"],["class","form_info",4,"ngIf"],["action","","class","form",4,"ngIf"],[1,"btn-group"],["app-debounce-click","",3,"debounceClick","ngClass","disabled","ngStyle"],[3,"formGroup"],["for","bankName"],["data-show","mobile",1,"select-dropdown"],["id","bankName","formControlName","bankName",3,"change","ngClass"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],["class","error",4,"ngIf"],["for","memAccountName"],["type","text","formControlName","bankAccountName","
1id","memAccountName",3,"ngClass","keyup","change",4,"ngIf"],["type","text","formControlName","bankAccountName","readonly","",4,"ngIf"],["for",""],[1,"select-box-bankAcctNo"],[4,"ngIf","ngIfElse"],[3,"value"],[1,"error"],["type","text","formControlName","bankAccountName","id","memAccountName",3,"keyup","change","ngClass"],["type","text","formControlName","bankAccountName","readonly",""],["id","memAccountNo","type","text","formControlName","bankAccountNumber",3,"ngClass"],["class","nav-main-wallet","style","border-top: 0px; padding: 0px 10px; cursor: pointer;",3,"click",4,"ngIf"],[1,"nav-main-wallet",2,"border-top","0px","padding","0px 10px","cursor","pointer",3,"click"],[1,"icon-x"],["id","memAccountNo","formControlName","bankAccountNumber",3,"change","ngClass"],[1,"select-icons"],[1,"select-arrow"],["type","button","class","edit-btn","aria-label","Edit Account",3,"click",4,"ngIf"],["type","button","aria-label","Edit Account",1,"edit-btn",3,"click"],[1,"icon-edit"],["data-show","web-window",1,"tooltip"],[1,"select-box"],["formControlName","network",3,"ngClass"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","text","formControlName","walletAddress",3,"ngClass"],[1,"btn-more-info",3,"click"],[1,"icon-enquiry"],["class","tooltip",4,"ngIf"],["class","deposit_info only-notice",3,"ngClass",4,"ngIf"],[1,"tooltip"],[1,"deposit_info","only-notice",3,"ngClass"],[1,"notice"],[1,"mobile-input-group"],[1,"select-dropdown"],["name","wCountryCode",3,"ngModelChange","change","ngModel","disabled","ngStyle"],[4,"ngFor","ngForOf"],["type","text","inputmode","decimal","name","wPhone",3,"ngModelChange","ngModel"],[3,"value","selected"],["type","text",3,"ngModelChange","ngModel"],["type","text",3,"ngModelChange","ngModel","readonly"],[1,"form_info"],[1,"icon-Information"],[1,"form_info-notice"],["action","",1,"form"],["type","text","readonly","",3,"title","value"],["for","wFee"],["type","text","name","wFee","readonly","",3,"ngModelChange","ngModel"],["for","wAmountReceived"],["type","text","name","wAmountReceived","readonly","",3,"ngModelChange","ngModel"],["for","wDeductAmount"],["type","text","name","wDeductAmount","readonly","",3,"ngModelChange","ngModel"],["for","wNetMoney"],["type","text","name","wNetMoney","readonly","",3,"ngModelChange","ngModel"],["type","text","readonly","",3,"value"],["type","text","readonly","",3,"ngModelChange","ngModel"],["data-show","mobile",1,"select-box"],["formControlName","provinceName",3,"ngClass"],["formControlName","city",3,"ngClass"],["type","text","formControlName","bankBranch",1,"profile-input",3,"placeholder","ngClass"],[3,"verified","memInfo","countryCodeList"],[3,"postData","onSubmitCallback"]],template:function(n,a){n&1&&(I(0,"app-title-nav",4),_(1,"translate"),o(2,"main"),I(3,"app-account-nav",5),o(4,"div",6)(5,"ul")(6,"li")(7,"a",7),m(8),_(9,"translate"),s()(),o(10,"li",8)(11,"a"),m(12),_(13,"translate"),s()()()(),C(14,xn,5,3,"ng-template",9)(15,In,1,3,"app-thb-phone-verify",10),o(16,"app-payment-select",11),F("PaymentSelectChange",function(h){return a.changePaymentSelect(h)}),s()(),C(17,vn,1,2,"app-enter-two-factor-popup",12)),n&2&&(c("title",u(1,9,"bottomMenu.withdraw")),r(3),c("displayMemberInfo",a.globalData.isMobileStyle),r(4),c("routerLink",bt(15,we)),r(),w(u(9,11,"depositPage.bankTransfer")),r(4),w(u(13,13,"accountPage.withdraw")),r(2),c("ngIf",a.pageData),r(),c("ngIf",a.shouldShowThbPhoneVerifyPopup()),r(),c("paymentSettingList",a.memberPaymentSetting),r(),c("ngIf",a.globalData.isShowTwoFactorAuth))},dependencies:[te,ie,Wt,it,rt,ne,pt,mt,zt,Ut,ot,qt,st,lt,ct,at,Qt,Ot,Rt,Vt,Yt,z,nt,et,ae,re,G,oe],styles:['@charset "UTF-8";.trans-form[_ngcontent-%COMP%] .target[_ngcontent-%COMP%], .trans-form[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{padding-right:65px;word-break:break-word}.select-box-bankAcctNo[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;width:100%}.select-icons[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;gap:8px;transform:translateY(-50%);pointer-events:none;z-index:1}.select-arrow[_ngcontent-%COMP%]{pointer-events:none;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid gray;display:inline-block}.edit-btn[_ngcontent-%COMP%]{pointer-events:auto;background:transparent;border:none;top:10px;cursor:pointer;display:flex;justify-content:center;color:#b5bfb5;border-radius:50%;transition:background-color .2s}.edit-btn[_ngcontent-%COMP%]:hover{opacity:1}.edit-btn[_ngcontent-%COMP%] .icon-edit[_ngcontent-%COMP%]{font-size:16px}.select-box-bankAcctNo[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;text-overflow:ellipsis}.progress-title[_ngcontent-%COMP%]{color:#ffffffa3;font-size:.75rem;font-weight:600;text-align:center;margin-top:20px}.safe-progress-box[_ngcontent-%COMP%]{flex-direction:column;justify-content:center}.safe-progress-box[_ngcontent-%COMP%] .safe-progress[_ngcontent-%COMP%]{border-radius:3px;max-width:253px;height:20px;margin-top:10px;background-color:#1e282f;box-shadow:0 0 15px #000c}
1.safe-progress-box[_ngcontent-%COMP%] .safe-progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.safe-progress-box[_ngcontent-%COMP%] .progress-text[_ngcontent-%COMP%]{color:#ffffffa3;text-align:center;position:relative;top:-17.5px;font-size:12px}.safe-progress-box[_ngcontent-%COMP%] .turnover-notice[_ngcontent-%COMP%]{color:#d0273b}app-enter-two-factor-popup[_ngcontent-%COMP%] .popup-box.small{padding:0 30px 20px}app-enter-two-factor-popup[_ngcontent-%COMP%] label{font-size:.85rem}app-enter-two-factor-popup[_ngcontent-%COMP%] .popup-title.no-border{min-height:76px}app-enter-two-factor-popup[_ngcontent-%COMP%] .popup-text{margin-top:0;font-size:.85rem}app-enter-two-factor-popup[_ngcontent-%COMP%] .error{margin-top:0;font-size:.85rem}'],data:{animation:[ut,Zt]}});let i=p;return i})();export{ri as WithdrawComponent};
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.