1import{a as _e,b as An,c as Tn}from"./chunk-5TPWLQP7.js";import{a as Mn,b as kn}from"./chunk-GK4FMGPU.js";import{a as Sn}from"./chunk-GNSVSSEC.js";import{a as Ee}from"./chunk-BVTQTUQX.js";import"./chunk-2SSCCRJK.js";import{a as Fn,b as Te,c as Ne}from"./chunk-4ZUV4ZKP.js";import"./chunk-WTEBCJXP.js";import"./chunk-FFTXNXI6.js";import{b as tt}from"./chunk-WH22GQDU.js";import"./chunk-5LWFT2LT.js";import{a as Dn}from"./chunk-O5RKV2DG.js";import{a as _n}from"./chunk-WQGKT4QG.js";import{a as wn}from"./chunk-EJMX6GXD.js";import{h as Pn,j as bn,k as xn,l as In}from"./chunk-LBFZVMBI.js";import{b as vn}from"./chunk-SQXH55RY.js";import{A as dn,B as mn,c as Jt,e as te,g as Zt,h as Xt,l as $t,m as en,o as tn,q as nn,r as on,s as an,t as rn,u as sn,x as pn,y as ln,z as cn}from"./chunk-FZLMV5FP.js";import{E as yn,O as Cn,x as fn}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{A as Ht,C as jt,Y as Gt,d as Bt,fa as Kt,i as Vt,j as Lt,k as Rt,p as Ut,q as qt,qa as un,r as Wt,ra as gn,sa as hn,v as zt,w as Qt,z as Yt}from"./chunk-LKIBVTZY.js";import{b as Ot}from"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{$ as St,$a as kt,A as x,B as I,Ca as B,Da as m,Ea as Xe,Ia as p,Ja as l,Ka as k,La as F,Ma as M,Na as $e,Oa as S,Ra as A,Sa as _,Za as Ft,_ as Dt,_a as Mt,aa as Ze,ab as Y,bb as d,cb as P,db as w,eb as re,ga as r,ha as z,jb as T,kb as N,lb as E,mb as At,nb as Tt,ob as Nt,p as wt,pb as O,qb as Et,s as xe,sb as g,tb as h,ub as ee,xa as v,xb as et}from"./chunk-LZGEQQYD.js";import"./chunk-BW2TMJN6.js";import{a as be,b as Ke,e as L,g as Li,j as Je}from"./chunk-RNQ7BUHW.js";var Rn=L((Ms,Ln)=>{Ln.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var ne=L(se=>{var nt,Hi=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];se.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17};se.getSymbolTotalCodewords=function(o){return Hi[o]};se.getBCHDigit=function(i){let o=0;for(;i!==0;)o++,i>>>=1;return o};se.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');nt=o};se.isKanjiModeEnabled=function(){return typeof nt<"u"};se.toSJIS=function(o){return nt(o)}});var Ve=L(K=>{K.L={bit:1};K.M={bit:0};K.Q={bit:3};K.H={bit:2};function ji(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return K.L;case"m":case"medium":return K.M;case"q":case"quartile":return K.Q;case"h":case"high":return K.H;default:throw new Error("Unknown EC Level: "+i)}}K.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4};K.from=function(o,e){if(K.isValid(o))return o;try{return ji(o)}catch(t){return e}}});var qn=L((Ts,Un)=>{function On(){this.buffer=[],this.length=0}On.prototype={get:function(i){let o=Math.floor(i/8);return(this.buffer[o]>>>7-i%8&1)===1},put:function(i,o){for(let e=0;e<o;e++)this.putBit((i>>>o-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(i){let o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),i&&(this.buffer[o]|=128>>>this.length%8),this.length++}};Un.exports=On});var zn=L((Ns,Wn)=>{function Ie(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=new Uint8Array(i*i),this.reservedBit=new Uint8Array(i*i)}Ie.prototype.set=function(i,o,e,t){let n=i*this.size+o;this.data[n]=e,t&&(this.reservedBit[n]=!0)};Ie.prototype.get=function(i,o){return this.data[i*this.size+o]};Ie.prototype.xor=function(i,o,e){this.data[i*this.size+o]^=e};Ie.prototype.isReserved=function(i,o){return this.reservedBit[i*this.size+o]};Wn.exports=Ie});var Qn=L(Le=>{var Gi=ne().getSymbolSize;Le.getRowColCoords=function(o){if(o===1)return[];let e=Math.floor(o/7)+2,t=Gi(o),n=t===145?26:Math.ceil((t-13)/(2*e-2))*2,a=[t-7];for(let s=1;s<e-1;s++)a[s]=a[s-1]-n;return a.push(6),a.reverse()};Le.getPositions=function(o){let e=[],t=Le.getRowColCoords(o),n=t.length;for(let a=0;a<n;a++)for(let s=0;s<n;s++)a===0&&s===0||a===0&&s===n-1||a===n-1&&s===0||e.push([t[a],t[s]]);return e}});var jn=L(Hn=>{var Ki=ne().getSymbolSize,Yn=7;Hn.getPositions=function(o){let e=Ki(o);return[[0,0],[e-Yn,0],[0,e-Yn]]}});var Gn=L(R=>{R.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var pe={N1:3,N2:3,N3:40,N4:10};R.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7};R.from=function(o){return R.isValid(o)?parseInt(o,10):void 0};R.getPenaltyN1=function(o){let e=o.size,t=0,n=0,a=0,s=null,c=null;for(let u=0;u<e;u++){n=a=0,s=c=null;for(let f=0;f<e;f++){let C=o.get(u,f);C===s?n++:(n>=5&&(t+=pe.N1+(n-5)),s=C,n=1),C=o.get(f,u),C===c?a++:(a>=5&&(t+=pe.N1+(a-5)),c=C,a=1)}n>=5&&(t+=pe.N1+(n-5)),a>=5&&(t+=pe.N1+(a-5))}return t};R.getPenaltyN2=function(o){let e=o.size,t=0;for(let n=0;n<e-1;n++)for(let a=0;a<e-1;a++){let s=o.get(n,a)+o.get(n,a+1)+o.get(n+1,a)+o.get(n+1,a+1);(s===4||s===0)&&t++}return t*pe.N2};R.getPenaltyN3=function(o){let e=o.size,t=0,n=0,a=0;for(let s=0;s<e;s++){n=a=0;for(let c=0;c<e;c++)n=n<<1&2047|o.get(s,c),c>=10&&(n===1488||n===93)&&t++,a=a<<1&2047|o.get(c,s),c>=10&&(a===1488||a===93)&&t++}return t*pe.N3};R.getPenaltyN4=function(o){let e=0,t=o.data.length;for(let a=0;a<t;a++)e+=o.data[a];return Math.abs(Math.ceil(e*100/t/5)-10)*pe.N4};function Ji(i,o,e){switch(i){case R.Patterns.PATTERN000:return(o+e)%2===0;case R.Patterns.PATTERN001:return o%2===0;case R.Patterns.PATTERN010:return e%3===0;case R.Patterns.PATTERN011:return(o+e)%3===0;case R.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(e/3))%2===0;case R.Patterns.PATTERN101:return o*e%2+o*e%3===0;case R.Patterns.PATTERN110:return(o*e%2+o*e%3)%2===0;case R.Patterns.PATTERN111:return(o*e%3+(o+e)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}R.applyMask=function(o,e){let t=e.size;
1for(let n=0;n<t;n++)for(let a=0;a<t;a++)e.isReserved(a,n)||e.xor(a,n,Ji(o,a,n))};R.getBestMask=function(o,e){let t=Object.keys(R.Patterns).length,n=0,a=1/0;for(let s=0;s<t;s++){e(s),R.applyMask(s,o);let c=R.getPenaltyN1(o)+R.getPenaltyN2(o)+R.getPenaltyN3(o)+R.getPenaltyN4(o);R.applyMask(s,o),c<a&&(a=c,n=s)}return n}});var ot=L(it=>{var ie=Ve(),Re=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Oe=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];it.getBlocksCount=function(o,e){switch(e){case ie.L:return Re[(o-1)*4+0];case ie.M:return Re[(o-1)*4+1];case ie.Q:return Re[(o-1)*4+2];case ie.H:return Re[(o-1)*4+3];default:return}};it.getTotalCodewordsCount=function(o,e){switch(e){case ie.L:return Oe[(o-1)*4+0];case ie.M:return Oe[(o-1)*4+1];case ie.Q:return Oe[(o-1)*4+2];case ie.H:return Oe[(o-1)*4+3];default:return}}});var Kn=L(qe=>{var ve=new Uint8Array(512),Ue=new Uint8Array(256);(function(){let o=1;for(let e=0;e<255;e++)ve[e]=o,Ue[o]=e,o<<=1,o&256&&(o^=285);for(let e=255;e<512;e++)ve[e]=ve[e-255]})();qe.log=function(o){if(o<1)throw new Error("log("+o+")");return Ue[o]};qe.exp=function(o){return ve[o]};qe.mul=function(o,e){return o===0||e===0?0:ve[Ue[o]+Ue[e]]}});var Jn=L(we=>{var at=Kn();we.mul=function(o,e){let t=new Uint8Array(o.length+e.length-1);for(let n=0;n<o.length;n++)for(let a=0;a<e.length;a++)t[n+a]^=at.mul(o[n],e[a]);return t};we.mod=function(o,e){let t=new Uint8Array(o);for(;t.length-e.length>=0;){let n=t[0];for(let s=0;s<e.length;s++)t[s]^=at.mul(e[s],n);let a=0;for(;a<t.length&&t[a]===0;)a++;t=t.slice(a)}return t};we.generateECPolynomial=function(o){let e=new Uint8Array([1]);for(let t=0;t<o;t++)e=we.mul(e,new Uint8Array([1,at.exp(t)]));return e}});var $n=L((Us,Xn)=>{var Zn=Jn();function rt(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}rt.prototype.initialize=function(o){this.degree=o,this.genPoly=Zn.generateECPolynomial(this.degree)};rt.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(o.length+this.degree);e.set(o);let t=Zn.mod(e,this.genPoly),n=this.degree-t.length;if(n>0){let a=new Uint8Array(this.degree);return a.set(t,n),a}return t};Xn.exports=rt});var st=L(ei=>{ei.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}});var pt=L($=>{var ti="[0-9]+",Zi="[A-Z $%*+\\-./:]+",De="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";De=De.replace(/u/g,"\\u");var Xi="(?:(?![A-Z0-9 $%*+\\-./:]|"+De+")(?:.|[\r\n]))+";$.KANJI=new RegExp(De,"g");$.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$.BYTE=new RegExp(Xi,"g");$.NUMERIC=new RegExp(ti,"g");$.ALPHANUMERIC=new RegExp(Zi,"g");var $i=new RegExp("^"+De+"$"),eo=new RegExp("^"+ti+"$"),to=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$.testKanji=function(o){return $i.test(o)};$.testNumeric=function(o){return eo.test(o)};$.testAlphanumeric=function(o){return to.test(o)}});var oe=L(W=>{var no=st(),lt=pt();W.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};W.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};W.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};W.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};W.MIXED={bit:-1};W.getCharCountIndicator=function(o,e){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!no.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?o.ccBits[0]:e<27?o.ccBits[1]:o.ccBits[2]};
1W.getBestModeForData=function(o){return lt.testNumeric(o)?W.NUMERIC:lt.testAlphanumeric(o)?W.ALPHANUMERIC:lt.testKanji(o)?W.KANJI:W.BYTE};W.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")};W.isValid=function(o){return o&&o.bit&&o.ccBits};function io(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return W.NUMERIC;case"alphanumeric":return W.ALPHANUMERIC;case"kanji":return W.KANJI;case"byte":return W.BYTE;default:throw new Error("Unknown mode: "+i)}}W.from=function(o,e){if(W.isValid(o))return o;try{return io(o)}catch(t){return e}}});var ri=L(le=>{var We=ne(),oo=ot(),ni=Ve(),ae=oe(),ct=st(),oi=7973,ii=We.getBCHDigit(oi);function ao(i,o,e){for(let t=1;t<=40;t++)if(o<=le.getCapacity(t,e,i))return t}function ai(i,o){return ae.getCharCountIndicator(i,o)+4}function ro(i,o){let e=0;return i.forEach(function(t){let n=ai(t.mode,o);e+=n+t.getBitsLength()}),e}function so(i,o){for(let e=1;e<=40;e++)if(ro(i,e)<=le.getCapacity(e,o,ae.MIXED))return e}le.from=function(o,e){return ct.isValid(o)?parseInt(o,10):e};le.getCapacity=function(o,e,t){if(!ct.isValid(o))throw new Error("Invalid QR Code version");typeof t>"u"&&(t=ae.BYTE);let n=We.getSymbolTotalCodewords(o),a=oo.getTotalCodewordsCount(o,e),s=(n-a)*8;if(t===ae.MIXED)return s;let c=s-ai(t,o);switch(t){case ae.NUMERIC:return Math.floor(c/10*3);case ae.ALPHANUMERIC:return Math.floor(c/11*2);case ae.KANJI:return Math.floor(c/13);case ae.BYTE:default:return Math.floor(c/8)}};le.getBestVersionForData=function(o,e){let t,n=ni.from(e,ni.M);if(Array.isArray(o)){if(o.length>1)return so(o,n);if(o.length===0)return 1;t=o[0]}else t=o;return ao(t.mode,t.getLength(),n)};le.getEncodedBits=function(o){if(!ct.isValid(o)||o<7)throw new Error("Invalid QR Code version");let e=o<<12;for(;We.getBCHDigit(e)-ii>=0;)e^=oi<<We.getBCHDigit(e)-ii;return o<<12|e}});var ci=L(li=>{var dt=ne(),pi=1335,po=21522,si=dt.getBCHDigit(pi);li.getEncodedBits=function(o,e){let t=o.bit<<3|e,n=t<<10;for(;dt.getBCHDigit(n)-si>=0;)n^=pi<<dt.getBCHDigit(n)-si;return(t<<10|n)^po}});var mi=L((Hs,di)=>{var lo=oe();function ge(i){this.mode=lo.NUMERIC,this.data=i.toString()}ge.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)};ge.prototype.getLength=function(){return this.data.length};ge.prototype.getBitsLength=function(){return ge.getBitsLength(this.data.length)};ge.prototype.write=function(o){let e,t,n;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),n=parseInt(t,10),o.put(n,10);let a=this.data.length-e;a>0&&(t=this.data.substr(e),n=parseInt(t,10),o.put(n,a*3+1))};di.exports=ge});var ui=L((js,_i)=>{var co=oe(),mt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function he(i){this.mode=co.ALPHANUMERIC,this.data=i}he.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)};he.prototype.getLength=function(){return this.data.length};he.prototype.getBitsLength=function(){return he.getBitsLength(this.data.length)};he.prototype.write=function(o){let e;for(e=0;e+2<=this.data.length;e+=2){let t=mt.indexOf(this.data[e])*45;t+=mt.indexOf(this.data[e+1]),o.put(t,11)}this.data.length%2&&o.put(mt.indexOf(this.data[e]),6)};_i.exports=he});var hi=L((Gs,gi)=>{var mo=oe();function fe(i){this.mode=mo.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}fe.getBitsLength=function(o){return o*8};fe.prototype.getLength=function(){return this.data.length};fe.prototype.getBitsLength=function(){return fe.getBitsLength(this.data.length)};fe.prototype.write=function(i){for(let o=0,e=this.data.length;o<e;o++)i.put(this.data[o],8)};gi.exports=fe});var yi=L((Ks,fi)=>{var _o=oe(),uo=ne();function ye(i){this.mode=_o.KANJI,this.data=i}ye.getBitsLength=function(o){return o*13};ye.prototype.getLength=function(){return this.data.length};ye.prototype.getBitsLength=function(){return ye.getBitsLength(this.data.length)};ye.prototype.write=function(i){let o;for(o=0;o<this.data.length;o++){let e=uo.toSJIS(this.data[o]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");e=(e>>>8&255)*192+(e&255),i.put(e,13)}};fi.exports=ye});var Ci=L((Js,_t)=>{"use strict";var Se={single_source_shortest_paths:function(i,o,e){var t={},n={};n[o]=0;var a=Se.PriorityQueue.make();a.push(o,0);for(var s,c,u,f,C,b,y,D,q;!a.empty();){s=a.pop(),c=s.value,f=s.cost,C=i[c]||{};for(u in C)C.hasOwnProperty(u)&&(b=C[u],y=f+b,D=n[u],q=typeof n[u]>"u",(q||D>y)&&(n[u]=y,a.push(u,y),t[u]=c))}if(typeof e<"u"&&typeof n[e]>"u"){var U=["Could not find a path from ",o," to ",e,"."].join("");throw new Error(U)}return t},extract_shortest_path_from_predecessor_list:function(i,o){for(var e=[],t=o,n;t;)e.push(t),n=i[t],t=i[t];return e.reverse(),e},find_path:function(i,o,e){var t=Se.single_source_shortest_paths(i,o,e);return Se.extract_shortest_path_from_predecessor_list(t,e)},PriorityQueue:{make:function(i){var o=Se.PriorityQueue,e={},t;i=i||{};for(t in o)o.hasOwnProperty(t)&&(e[t]=o[t]);return e.queue=[],e.sorter=i.sorter||o.default_sorter,e},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var e={value:i,cost:o};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof _t<"u"&&(_t.exports=Se)});var Si=L(Ce=>{var V=oe(),xi=mi(),Ii=ui(),vi=hi(),wi=yi(),Fe=pt(),ze=ne(),go=Ci();function Pi(i){return unescape(encodeURIComponent(i)).length}function Me(i,o,e){let t=[],n;for(;(n=i.exec(e))!==null;)t.push({data:n[0],index:n.index,mode:o,length:n[0].length});return t}function Di(i){let o=Me(Fe.NUMERIC,V.NUMERIC,i),e=Me(Fe.ALPHANUMERIC,V.ALPHANUMERIC,i),t,n;return ze.isKanjiModeEnabled()?(t=Me(Fe.BYTE,V.BYTE,i),n=Me(Fe.KANJI,V.KANJI,i)):(t=Me(Fe.BYTE_KANJI,V.BYTE,i),n=[]),o.concat(e,t,n).sort(function(s,c){return s.index-c.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function ut(i,o){switch(o){case V.NUMERIC:return xi.getBitsLength(i);case V.ALPHANUMERIC:return Ii.getBitsLength(i);case V.KANJI:return wi.getBitsLength(i);case V.BYTE:return vi.getBitsLength(i)}}function ho(i){return i.reduce(function(o,e){let t=o.length-1>=0?o[o.length-1]:null;return t&&t.mode===e.mode?(o[o.length-1].data+=e.data,o):(o.push(e),o)},[])}function fo(i){let o=[];for(let e=0;e<i.length;e++){let t=i[e];switch(t.mode){case V.NUMERIC:o.push([t,{data:t.data,mode:V.ALPHANUMERIC,length:t.length},{data:t.data,mode:V.BYTE,length:t.length}]);break;case V.ALPHANUMERIC:o.push([t,{data:t.data,mode:V.BYTE,length:t.length}]);break;case V.KANJI:o.push([t,{data:t.data,mode:V.BYTE,length:Pi(t.data)}]);break;case V.BYTE:o.push([{data:t.data,mode:V.BYTE,length:Pi(t.data)}])}}return o}function yo(i,o){let e={},t={start:{}},n=["start"];for(let a=0;a<i.length;a++){let s=i[a],c=[];for(let u=0;u<s.length;u++){let f=s[u],C=""+a+u;c.push(C),e[C]={node:f,lastCount:0},t[C]={};for(let b=0;b<n.length;b++){let y=n[b];e[y]&&e[y].node.mode===f.mode?(t[y][C]=ut(e[y].lastCount+f.length,f.mode)-ut(e[y].lastCount,f.mode),e[y].lastCount+=f.length):(e[y]&&(e[y].lastCount=f.length),t[y][C]=ut(f.length,f.mode)+4+V.getCharCountIndicator(f.mode,o))}}n=c}for(let a=0;a<n.length;a++)t[n[a]].end=0;return{map:t,table:e}}function bi(i,o){let e,t=V.getBestModeForData(i);if(e=V.from(o,t),e!==V.BYTE&&e.bit<t.bit)throw new Error('"'+i+'" cannot be encoded with mode '+V.toString(e)+".\n Suggested mode is: "+V.toString(t));switch(e===V.KANJI&&!ze.isKanjiModeEnabled()&&(e=V.BYTE),e){case V.NUMERIC:return new xi(i);case V.ALPHANUMERIC:return new Ii(i);case V.KANJI:return new wi(i);case V.BYTE:return new vi(i)}}Ce.fromArray=function(o){return o.reduce(function(e,t){return typeof t=="string"?e.push(bi(t,
1null)):t.data&&e.push(bi(t.data,t.mode)),e},[])};Ce.fromString=function(o,e){let t=Di(o,ze.isKanjiModeEnabled()),n=fo(t),a=yo(n,e),s=go.find_path(a.map,"start","end"),c=[];for(let u=1;u<s.length-1;u++)c.push(a.table[s[u]].node);return Ce.fromArray(ho(c))};Ce.rawSplit=function(o){return Ce.fromArray(Di(o,ze.isKanjiModeEnabled()))}});var Mi=L(Fi=>{var Ye=ne(),gt=Ve(),Co=qn(),Po=zn(),bo=Qn(),xo=jn(),yt=Gn(),Ct=ot(),Io=$n(),Qe=ri(),vo=ci(),wo=oe(),ht=Si();function Do(i,o){let e=i.size,t=xo.getPositions(o);for(let n=0;n<t.length;n++){let a=t[n][0],s=t[n][1];for(let c=-1;c<=7;c++)if(!(a+c<=-1||e<=a+c))for(let u=-1;u<=7;u++)s+u<=-1||e<=s+u||(c>=0&&c<=6&&(u===0||u===6)||u>=0&&u<=6&&(c===0||c===6)||c>=2&&c<=4&&u>=2&&u<=4?i.set(a+c,s+u,!0,!0):i.set(a+c,s+u,!1,!0))}}function So(i){let o=i.size;for(let e=8;e<o-8;e++){let t=e%2===0;i.set(e,6,t,!0),i.set(6,e,t,!0)}}function Fo(i,o){let e=bo.getPositions(o);for(let t=0;t<e.length;t++){let n=e[t][0],a=e[t][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?i.set(n+s,a+c,!0,!0):i.set(n+s,a+c,!1,!0)}}function Mo(i,o){let e=i.size,t=Qe.getEncodedBits(o),n,a,s;for(let c=0;c<18;c++)n=Math.floor(c/3),a=c%3+e-8-3,s=(t>>c&1)===1,i.set(n,a,s,!0),i.set(a,n,s,!0)}function ft(i,o,e){let t=i.size,n=vo.getEncodedBits(o,e),a,s;for(a=0;a<15;a++)s=(n>>a&1)===1,a<6?i.set(a,8,s,!0):a<8?i.set(a+1,8,s,!0):i.set(t-15+a,8,s,!0),a<8?i.set(8,t-a-1,s,!0):a<9?i.set(8,15-a-1+1,s,!0):i.set(8,15-a-1,s,!0);i.set(t-8,8,1,!0)}function ko(i,o){let e=i.size,t=-1,n=e-1,a=7,s=0;for(let c=e-1;c>0;c-=2)for(c===6&&c--;;){for(let u=0;u<2;u++)if(!i.isReserved(n,c-u)){let f=!1;s<o.length&&(f=(o[s]>>>a&1)===1),i.set(n,c-u,f),a--,a===-1&&(s++,a=7)}if(n+=t,n<0||e<=n){n-=t,t=-t;break}}}function Ao(i,o,e){let t=new Co;e.forEach(function(u){t.put(u.mode.bit,4),t.put(u.getLength(),wo.getCharCountIndicator(u.mode,i)),u.write(t)});let n=Ye.getSymbolTotalCodewords(i),a=Ct.getTotalCodewordsCount(i,o),s=(n-a)*8;for(t.getLengthInBits()+4<=s&&t.put(0,4);t.getLengthInBits()%8!==0;)t.putBit(0);let c=(s-t.getLengthInBits())/8;for(let u=0;u<c;u++)t.put(u%2?17:236,8);return To(t,i,o)}function To(i,o,e){let t=Ye.getSymbolTotalCodewords(o),n=Ct.getTotalCodewordsCount(o,e),a=t-n,s=Ct.getBlocksCount(o,e),c=t%s,u=s-c,f=Math.floor(t/s),C=Math.floor(a/s),b=C+1,y=f-C,D=new Io(y),q=0,U=new Array(s),H=new Array(s),j=0,Z=new Uint8Array(i.buffer);for(let me=0;me<s;me++){let Ge=me<u?C:b;U[me]=Z.slice(q,q+Ge),H[me]=D.encode(U[me]),q+=Ge,j=Math.max(j,Ge)}let J=new Uint8Array(t),Ae=0,G,X;for(G=0;G<j;G++)for(X=0;X<s;X++)G<U[X].length&&(J[Ae++]=U[X][G]);for(G=0;G<y;G++)for(X=0;X<s;X++)J[Ae++]=H[X][G];return J}function No(i,o,e,t){let n;if(Array.isArray(i))n=ht.fromArray(i);else if(typeof i=="string"){let f=o;if(!f){let C=ht.rawSplit(i);f=Qe.getBestVersionForData(C,e)}n=ht.fromString(i,f||40)}else throw new Error("Invalid data");let a=Qe.getBestVersionForData(n,e);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!o)o=a;else if(o<a)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+a+".\n");let s=Ao(o,e,n),c=Ye.getSymbolSize(o),u=new Po(c);return Do(u,o),So(u),Fo(u,o),ft(u,e,0),o>=7&&Mo(u,o),ko(u,s),isNaN(t)&&(t=yt.getBestMask(u,ft.bind(null,u,e))),yt.applyMask(t,u),ft(u,e,t),{modules:u,version:o,errorCorrectionLevel:e,maskPattern:t,segments:n}}Fi.create=function(o,e){if(typeof o>"u"||o==="")throw new Error("No input text");let t=gt.M,n,a;return typeof e<"u"&&(t=gt.from(e.errorCorrectionLevel,gt.M),n=Qe.from(e.version),a=yt.from(e.maskPattern),e.toSJISFunc&&Ye.setToSJISFunction(e.toSJISFunc)),No(o,n,t,a)}});var Pt=L(ce=>{function ki(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(t){return[t,t]}))),o.length===6&&o.push("F","F");let e=parseInt(o.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+o.slice(0,6).join("")}}ce.getOptions=function(o){o||(o={}),o.color||(o.color={});let e=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,t=o.width&&o.width>=21?o.width:void 0,n=o.scale||4;
1return{width:t,scale:t?4:n,margin:e,color:{dark:ki(o.color.dark||"#000000ff"),light:ki(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}};ce.getScale=function(o,e){return e.width&&e.width>=o+e.margin*2?e.width/(o+e.margin*2):e.scale};ce.getImageWidth=function(o,e){let t=ce.getScale(o,e);return Math.floor((o+e.margin*2)*t)};ce.qrToImageData=function(o,e,t){let n=e.modules.size,a=e.modules.data,s=ce.getScale(n,t),c=Math.floor((n+t.margin*2)*s),u=t.margin*s,f=[t.color.light,t.color.dark];for(let C=0;C<c;C++)for(let b=0;b<c;b++){let y=(C*c+b)*4,D=t.color.light;if(C>=u&&b>=u&&C<c-u&&b<c-u){let q=Math.floor((C-u)/s),U=Math.floor((b-u)/s);D=f[a[q*n+U]?1:0]}o[y++]=D.r,o[y++]=D.g,o[y++]=D.b,o[y]=D.a}}});var Ai=L(He=>{var bt=Pt();function Eo(i,o,e){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=e,o.width=e,o.style.height=e+"px",o.style.width=e+"px"}function Bo(){try{return document.createElement("canvas")}catch(i){throw new Error("You need to specify a canvas element")}}He.render=function(o,e,t){let n=t,a=e;typeof n>"u"&&(!e||!e.getContext)&&(n=e,e=void 0),e||(a=Bo()),n=bt.getOptions(n);let s=bt.getImageWidth(o.modules.size,n),c=a.getContext("2d"),u=c.createImageData(s,s);return bt.qrToImageData(u.data,o,n),Eo(c,a,s),c.putImageData(u,0,0),a};He.renderToDataURL=function(o,e,t){let n=t;typeof n>"u"&&(!e||!e.getContext)&&(n=e,e=void 0),n||(n={});let a=He.render(o,e,n),s=n.type||"image/png",c=n.rendererOpts||{};return a.toDataURL(s,c.quality)}});var Ei=L(Ni=>{var Vo=Pt();function Ti(i,o){let e=i.a/255,t=o+'="'+i.hex+'"';return e<1?t+" "+o+'-opacity="'+e.toFixed(2).slice(1)+'"':t}function xt(i,o,e){let t=i+o;return typeof e<"u"&&(t+=" "+e),t}function Lo(i,o,e){let t="",n=0,a=!1,s=0;for(let c=0;c<i.length;c++){let u=Math.floor(c%o),f=Math.floor(c/o);!u&&!a&&(a=!0),i[c]?(s++,c>0&&u>0&&i[c-1]||(t+=a?xt("M",u+e,.5+f+e):xt("m",n,0),n=0,a=!1),u+1<o&&i[c+1]||(t+=xt("h",s),s=0)):n++}return t}Ni.render=function(o,e,t){let n=Vo.getOptions(e),a=o.modules.size,s=o.modules.data,c=a+n.margin*2,u=n.color.light.a?"<path "+Ti(n.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",f="<path "+Ti(n.color.dark,"stroke")+' d="'+Lo(s,a,n.margin)+'"/>',C='viewBox="0 0 '+c+" "+c+'"',y='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+C+' shape-rendering="crispEdges">'+u+f+"</svg>\n";return typeof t=="function"&&t(null,y),y}});var Vi=L(ke=>{var Ro=Rn(),It=Mi(),Bi=Ai(),Oo=Ei();function vt(i,o,e,t,n){let a=[].slice.call(arguments,1),s=a.length,c=typeof a[s-1]=="function";if(!c&&!Ro())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(n=e,e=o,o=t=void 0):s===3&&(o.getContext&&typeof n>"u"?(n=t,t=void 0):(n=t,t=e,e=o,o=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(e=o,o=t=void 0):s===2&&!o.getContext&&(t=e,e=o,o=void 0),new Promise(function(u,f){try{let C=It.create(e,t);u(i(C,o,t))}catch(C){f(C)}})}try{let u=It.create(e,t);n(null,i(u,o,t))}catch(u){n(u)}}ke.create=It.create;ke.toCanvas=vt.bind(null,Bi.render);ke.toDataURL=vt.bind(null,Bi.renderToDataURL);ke.toString=vt.bind(null,function(i,o,e){return Oo.render(i,e)})});function ue(i){return typeof i>"u"}function Oi(i){return i===null}function Ui(i){return typeof i=="function"}function qi(i){return typeof i=="number"}function Wi(i){return typeof i=="string"}function zi(i){return typeof i=="boolean"}function Qi(i){return qi(i)&&isFinite(i)}function Be(i,o){let e=o.split("."),t=e.shift();return e.reduce((n,a)=>!ue(n)&&!Oi(n)&&!ue(n[a])?n[a]:void 0,i[t||""])}function Yi(i,o){let e=o.split("."),t=e.pop();return{props:Be(i,e.join(".")),tail:t}}var Nn=(()=>{class i{transform(e,t){return Array.isArray(e)?e.some(t):e}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=xe({name:"some",type:i,pure:!0}),i})();var En=(()=>{class i{transform(e,t=[],n="|"){return Array.isArray(e)?this.groupBy(e,t,n):e}groupBy(e,t,n){return e.reduce((a,s)=>{let c=this.extractKeyByDiscriminator(t,s,n);return a[c]=Array.isArray(a[c])?a[c].concat([s]):[s],a},{})}extractKeyByDiscriminator(e,t,n){return Ui(e)?e(t):Array.isArray(e)?e.map(a=>Be(t,a)).join(n):Be(t,e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=xe({name:"groupBy",type:i,pure:!0}),i})(),Bn=(()=>{class i{transform(e,t,n="",a=!1){if(!Array.isArray(e)||!Array.isArray(n)&&!Wi(n)&&!Qi(n)&&!zi(n))return e;let s=String(n).toLowerCase().split(",");return e.filter(c=>t.some(u=>s.some(f=>{let C=Be(c,u),{props:b,tail:y}=Yi(c,u);if(ue(C)&&!ue(b)&&Array.isArray(b))return b.some(q=>{let U=String(q[y]).toLowerCase();return a?U===f:!!~U.indexOf(f)});if(ue(C))return!1;let D=String(C).toLowerCase();return a?f===D:!!~D.indexOf(f)})))}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=xe({name:"filterBy",type:i,pure:!0}),i})();var Vn=(()=>{class i{transform(e){return ue(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=xe({name:"isUndefined",type:i,pure:!0}),i})();var Q=Li(Vi());var Uo=["memAccountNoInput"],qo=()=>["/Account/Withdraw"],Wo=i=>({withNoHyphen:i}),zo=i=>({show:i}),Qo=(i,o)=>({show:i,web_type:o}),de=i=>({open:i}),je=i=>({display:i}),Pe=i=>({error:i}),Yo=i=>({error:i}),Ho=i=>
1({cursor:i}),jo=i=>({merchant:i});function Go(i,o){if(i&1&&k(0,"app-account-wallet",42),i&2){let e=_(2);m("ngClass",O(1,de,e.accountInfoService.isProviderListOpen))}}function Ko(i,o){i&1&&(p(0,"p",43),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"pleaseSelect")))}function Jo(i,o){if(i&1&&(p(0,"p",43),d(1),l()),i&2){let e=_(2);r(),w("",e.paymentSetting.categoryDisplayName," ")}}function Zo(i,o){if(i&1&&(p(0,"p",44),d(1),l()),i&2){let e=_(2);r(),re("",e.paymentSetting.methodDisplayName," / ",e.paymentSetting.paymentDisplayName,"")}}function Xo(i,o){if(i&1&&(p(0,"div",49),k(1,"img",50),l()),i&2){let e=_(4);r(),m("src",e.depositForm.imgFilePath,Ze),B("data_axq","qrCodeImg")}}function $o(i,o){if(i&1&&(p(0,"div",46),v(1,Xo,2,2,"div",47),k(2,"span",48),l()),i&2){let e=_(3);r(),m("ngIf",e.depositForm.imgFilePath!=""),r(),m("ngStyle",O(2,je,e.depositForm.imgFilePath!=""?"none":"block"))}}function ea(i,o){if(i&1&&(F(0),v(1,$o,3,4,"div",45),M()),i&2){let e=_(2);r(),m("ngIf",e.depositForm.imgFilePath)}}function ta(i,o){if(i&1&&(p(0,"option",72),d(1),l()),i&2){let e=o.$implicit;m("value",e.bankId),r(),w(" ",e.bankName," ")}}function na(i,o){if(i&1&&(p(0,"p",73),d(1),l()),i&2){let e=_(4);r(),w(" ",e.bankNameCtrl.errors.message," ")}}function ia(i,o){if(i&1){let e=S();p(0,"input",74),A("keyup",function(n){x(e);let a=_(4);return I(a.filterSymbols(n))})("change",function(n){x(e);let a=_(4);return I(a.filterSymbols(n))}),l()}if(i&2){let e=_(4);m("ngClass",O(1,Pe,e.bankAccountNameCtrl.invalid&&(e.bankAccountNameCtrl.touched||e.bankAccountNameCtrl.dirty)))}}function oa(i,o){i&1&&k(0,"input",75)}function aa(i,o){if(i&1&&(p(0,"p",73),d(1),l()),i&2){let e=_(4);r(),P(e.bankAccountNameCtrl.errors.message)}}function ra(i,o){if(i&1){let e=S();p(0,"label",78),A("click",function(){x(e);let n=_(5);return I(n.onCancelEditAccount())}),k(1,"i",79),l()}}function sa(i,o){if(i&1&&(F(0),k(1,"input",76,3),v(3,ra,2,0,"label",77),M()),i&2){let e=_(4);r(),m("ngClass",O(2,Yo,e.bankAccountNumberCtrl.invalid&&(e.bankAccountNumberCtrl.touched||e.bankAccountNumberCtrl.dirty))),r(2),m("ngIf",e.showCancelEditAccount)}}function pa(i,o){if(i&1&&(p(0,"option",72),d(1),l()),i&2){let e=o.$implicit;m("value",e.bankAcctNo),r(),w(" ",e.bankAcctNo," ")}}function la(i,o){if(i&1){let e=S();p(0,"button",84),A("click",function(){x(e);let n=_(5);return I(n.onEditAccount())}),k(1,"i",85),p(2,"span",86),d(3),g(4,"translate"),l()()}i&2&&(r(3),P(h(4,1,"edit")))}function ca(i,o){if(i&1){let e=S();p(0,"select",80),A("change",function(n){x(e);let a=_(4);return I(a.onAccountChange(n.target.value))}),v(1,pa,2,2,"option",60),l(),p(2,"div",81),k(3,"span",82),l(),v(4,la,5,3,"button",83)}if(i&2){let e=_(4);Xe("width",e.showEditAccount?90:100,"%"),m("ngClass",O(8,Pe,e.bankAccountNumberCtrl.invalid&&(e.bankAccountNumberCtrl.touched||e.bankAccountNumberCtrl.dirty))),r(),m("ngForOf",e.filteredAccounts)("ngForTrackBy",e.trackByAccountId),r(),Xe("right",e.showEditAccount?13:2.5,"%"),r(2),m("ngIf",e.showEditAccount)}}function da(i,o){if(i&1&&(p(0,"p",73),d(1),l()),i&2){let e=_(4);r(),w(" ",e.bankAccountNumberCtrl.errors.message," ")}}function ma(i,o){i&1&&(p(0,"span",87),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"depositPage.warning")))}function _a(i,o){if(i&1&&(p(0,"div",88)(1,"div",89),d(2),g(3,"translate"),l()()),i&2){let e=_(4);m("ngClass",O(4,de,e.isOpenNotice)),r(2),w(" ",h(3,2,"depositPage.warning")," ")}}function ua(i,o){if(i&1){let e=S();p(0,"form",55)(1,"div",56)(2,"label",57),d(3),g(4,"translate"),g(5,"translate"),p(6,"span"),d(7,"*"),l()(),p(8,"div",58)(9,"select",59),A("change",function(n){x(e);let a=_(3);return I(a.onBankChange(n.target.value))}),v(10,ta,2,2,"option",60),l(),v(11,na,2,1,"p",61),l()(),p(12,"div",56)(13,"label",62),d(14),g(15,"translate"),p(16,"span"),d(17,"*"),l()(),v(18,ia,1,3,"input",63)(19,oa,1,0,"input",64)(20,aa,2,1,"p",61),l(),p(21,"div",56)(22,"label",65),d(23),g(24,"translate"),p(25,"span"),d(26,"*"),l()(),p(27,"div",66),v(28,sa,4,4,"ng-container",67)(29,ca,5,10,"ng-template",null,2,et),l(),v(31,da,2,1,"p",61),p(32,"button",68),A("click",function(){x(e);let n=_(3);return I(n.isOpenNotice=!n.isOpenNotice)}),k(33,"i",69),v(34,ma,3,3,"span",70),l(),v(35,_a,4,6,"div",71),l()()}if(i&2){let e=Y(30),t=_(3);m("formGroup",t.fastLoginMemberForm),r(3),re("",h(4,17,"bankName")," (",h(5,19,"promotionPage.MEMBER"),")"),r(6),m("ngClass",O(25,Pe,t.bankNameCtrl.invali
1d&&(t.bankNameCtrl.touched||t.bankNameCtrl.dirty))),r(),m("ngForOf",t.fastBankInfoList)("ngForTrackBy",t.trackByBankId),r(),m("ngIf",t.bankNameCtrl.errors&&(t.bankNameCtrl.touched||t.bankNameCtrl.dirty)),r(3),P(h(15,21,"depositPage.memAccountName")),r(4),m("ngIf",!(t.pageData.memInfo!=null&&t.pageData.memInfo.memName)),r(),m("ngIf",t.pageData.memInfo==null?null:t.pageData.memInfo.memName),r(),m("ngIf",t.bankAccountNameCtrl.errors&&(t.bankAccountNameCtrl.touched||t.bankAccountNameCtrl.dirty)),r(3),P(h(24,23,"depositPage.memAccountNo")),r(5),m("ngIf",t.isEditing)("ngIfElse",e),r(3),m("ngIf",t.bankAccountNumberCtrl.errors&&(t.bankAccountNumberCtrl.touched||t.bankAccountNumberCtrl.dirty)),r(3),m("ngIf",!t.globalData.isMobileStyle),r(),m("ngIf",t.globalData.isMobileStyle&&t.isOpenNotice)}}function ga(i,o){if(i&1&&(p(0,"option",72),d(1),l()),i&2){let e=o.$implicit;m("value",e.code),B("data_axq","networkOption_"+e.code),r(),w(" ",e.label," ")}}function ha(i,o){if(i&1&&(p(0,"p",73),d(1),l()),i&2){let e=_(4);r(),w(" ",e.networkCtrl.errors.message," ")}}function fa(i,o){i&1&&(p(0,"span",87),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"depositPage.warningWalletAddress")))}function ya(i,o){if(i&1&&(p(0,"div",88)(1,"div",89),d(2),g(3,"translate"),l()()),i&2){let e=_(4);m("ngClass",O(4,de,e.isOpenNotice)),r(2),w(" ",h(3,2,"depositPage.warningWalletAddress")," ")}}function Ca(i,o){if(i&1&&(p(0,"p",73),d(1),l()),i&2){let e=_(4);r(),P(e.usdtCtrl.errors.message)}}function Pa(i,o){if(i&1){let e=S();p(0,"form",55)(1,"div",56)(2,"label",90),d(3),g(4,"translate"),g(5,"translate"),p(6,"span"),d(7,"*"),l()(),p(8,"div",58)(9,"select",91),A("change",function(n){x(e);let a=_(3);return I(a.changeNetwork(n,!1))}),p(10,"option",92),d(11),g(12,"translate"),l(),v(13,ga,2,3,"option",93),l()(),v(14,ha,2,1,"p",61),l(),p(15,"div",56)(16,"label",90),d(17),g(18,"translate"),g(19,"translate"),p(20,"span"),d(21,"*"),l()(),k(22,"input",94),p(23,"button",68),A("click",function(){x(e);let n=_(3);return I(n.isOpenNotice=!n.isOpenNotice)}),k(24,"i",69),v(25,fa,3,3,"span",70),l(),v(26,ya,4,6,"div",71)(27,Ca,2,1,"p",61),l()()}if(i&2){let e=_(3);m("formGroup",e.fastUSDTForm),r(3),re("",h(4,14,"signUpPage.network")," (",h(5,16,"promotionPage.MEMBER"),")"),r(6),m("ngClass",O(24,Pe,e.networkCtrl.invalid&&(e.networkCtrl.touched||e.networkCtrl.dirty))),B("data_axq","network_dropdownBtn"),r(2),P(h(12,18,"signUpPage.selectNetwork")),r(2),m("ngForOf",e.networkShow),r(),m("ngIf",e.networkCtrl.errors&&(e.networkCtrl.touched||e.networkCtrl.dirty)),r(3),re("",h(18,20,"depositPage.walletAddress")," (",h(19,22,"promotionPage.MEMBER"),")"),r(5),m("ngClass",O(26,Pe,e.usdtCtrl.invalid&&(e.usdtCtrl.touched||e.usdtCtrl.dirty))),r(3),m("ngIf",!e.globalData.isMobileStyle),r(),m("ngIf",e.globalData.isMobileStyle&&e.isOpenNotice),r(),m("ngIf",e.usdtCtrl.errors&&(e.usdtCtrl.touched||e.usdtCtrl.dirty))}}function ba(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),p(6,"span"),d(7,"*"),l()()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumberIDR")," "),r(3),w(" ",h(5,4,"depositPage.phoneIDR"),""))}function xa(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),p(6,"span"),d(7,"*"),l()()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumber")," "),r(3),w(" ",h(5,4,"depositPage.phoneNotIDR"),""))}function Ia(i,o){if(i&1&&(F(0),p(1,"option",101),d(2),l(),M()),i&2){let e=o.$implicit,t=_(4);r(),m("value",e.phoneCode)("selected",t.depositForm.memContactCountry===e.phoneCode),r(),w(" +",e.phoneCode," ")}}function va(i,o){i&1&&(p(0,"span",87),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"depositPage.phoneWarning")))}function wa(i,o){if(i&1&&(p(0,"div",88)(1,"div",89),d(2),g(3,"translate"),l()()),i&2){let e=_(4);m("ngClass",O(4,de,e.isOpenPhoneNotice)),r(2),w(" ",h(3,2,"depositPage.phoneWarning")," ")}}function Da(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",95),v(2,ba,8,6,"label",28)(3,xa,8,6,"label",28),l(),p(4,"div",96)(5,"div",97)(6,"select",98),E("ngModelChange",function(n){x(e);let a=_(3);return N(a.depositForm.memContactCountry,n)||(a.depositForm.memContactCountry=n),I(n)}),A("change",function(n){x(e);let a=_(3);return I(a.depositForm.memContactCountry=n.target.value)}),v(7,Ia,3,3,"ng-container",99),l()(),p(8,"input",100,4),E("ngModelChange",function(n){x(e);let a=_(3);return N(a.depositForm.memContactNumber,n)||(a.depositForm.memContactNumber=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(9),s=_(3);return I(s.setContactNumber(n,a))}),l()(),p(10,"button",68),A("click",function(){x(e);let n=_(3);return I(n.isOpenPhoneNotice=!n.isOpenPhoneNotice)}),k(11,"i",69),v(12,va,3,3,"span",70),l(),v(13,wa,4,6,"div",71),l()}if(i&2){let e=_(3);r(2),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)==="IDR"),r(),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)!=="IDR"),r(3),T("ngModel",e.depositForm.memContactCountry),m("disabled",e.currency.currId==="IDR")("ngStyle",O(9,Ho,e.currency.currId==="IDR"?"not-allowed":"pointer")),r(),m("ngForOf",e.countryCodeList),r(),T("ngModel",e.depositForm.memContactNumber),r(4),m("ngIf",!e.globalData.isMobileStyle),r(),m("ngIf",e.globalData.isMobileStyle&&e.isOpenPhoneNotice)}}function Sa(i,o){i&1&&(p(0,"p",112),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"depositPage.accountNoCopied")))}function Fa(i,o){if(i&1){let e=S();F(0),p(1,"div",106)(2,"p")(3,"strong",107),d(4),g(5,"translate"),l(),p(6,"strong",108),d(7),l()(),p(8,"p")(9,"strong",107),d(10),g(11,"translate"),l(),p(12,"strong",108),d(13),l()(),p(14,"p")(15,"strong",107),d(16),g(17,"translate"),l(),p(18,"strong",108),d(19),l(),p(20,"button",109),A("click",function(){x(e);let n=_(4);return I(n.copyFromContent(n.depositForm.bankAcctNo))}),k(21,"i",110),l()(),v(22,Sa,3,3,"p",111),l(),M()}if(i&2){let e=_(4);r(4),P(h(5,10,"depositPage.bankName")),r(2),B("data_axq","info_bankName"),r(),P(e.depositForm.bankName),r(3),P(h(11,12,"depositPage.accountName")),r(2),B("data_axq","info_bankAcctName"),r(),P(e.depositForm.bankAcctName),r(3),P(h(17,14,"depositPage.accountNo")),r(2),B("data_axq","info_bankAcctNo"),r(),P(e.depositForm.bankAcctNo),r(3),m("ngIf",e.isCopy)}}function Ma(i,o){i&1&&(p(0,"p",112),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"depositPage.accountNoCopied")))}function ka(i,o){if(i&1){let e=S();F(0),p(1,"div",106)(2,"p")(3,"strong",107),d(4),g(5,"translate"),l(),p(6,"strong",108),d(7),l()(),p(8,"p")(9,"strong",107),d(10),g(11,"translate"),l(),p(12,"strong",108),d(13),l()(),p(14,"p")(15,"strong",107),d(16),g(17,"translate"),l(),p(18,"strong",108),d(19),l(),p(20,"button",109),A("click",function(){x(e);let n=_(4);return I(n.copyFromContent(n.depositForm.bankAcctNo))}),k(21,"i",110),l()(),v(22,Ma,3,3,"p",111),l(),M()}if(i&2){let e=_(4);r(4),P(h(5,10,"depositPage.bankName")),r(2),B("data_axq","info_bankName"),r(),P(e.depositForm.bankName),r(3),P(h(11,12,"depositPage.accountName")),r(2),B("data_axq","info_bankAcctName"),r(),P(e.depositForm.bankAcctName),r(3),P(h(17,14,"depositPage.accountNo")),r(2),B("data_axq","info_bankAcctNo"),r(),P(e.depositForm.bankAcctNo),r(3),m("ngIf",e.isCopy)}}function Aa(i,o){if(i&1&&(p(0,"div",106)(1,"p")(2,"strong",107),d(3),g(4,"translate"),l(),p(5,"strong",108),d(6),l()(),p(7,"p")(8,"strong",107),d(9),g(10,"translate"),l(),p(11,"strong",108),d(12),l()()()),i&2){let e=_(5);r(3),P(h(4,6,"depositPage.provider")),r(2),B("data_axq","info_providerName"),r(),P(e.method.methodName),r(3),P(h(10,8,"depositPage.pulsaPhoneNumber")),r(2),B("data_axq","info_providerMobileNo"),r(),P(e.method.mobileNo)}}function Ta(i,o){if(i&1&&(F(0),p(1,"option",101),d(2),g(3,"translate"),l(),M()),i&2){let e=o.$implicit,t=_(7);r(),m("value",e)("selected",t.depositForm.orderType===e),r(),w(" ",h(3,3,"depositPage.orderType-"+e)," ")}}function Na(i,o){if(i&1){let e=S();p(0,"select",117),E("ngModelChange",function(n){x(e);let a=_(6);return N(a.depositForm.orderType,n)||(a.depositForm.orderType=n),I(n)}),A("ngModelChange",function(n){x(e);let a=_(6);return I(a.changeOrderType(n))}),p(1,"option",101),d(2),g(3,"translate"),l(),v(4,Ta,4,5,"ng-container",99),l()}if(i&2){let e=_(6);T("ngModel",e.depositForm.orderType),r(),m("value","")("selected",e.depositForm.orderType===""),r(),w(" ",h(3,5,"depositPage.pleaseSelect"),""),r(2),m("ngForOf",e.method.orderType==null?null:e.method.orderType.split(","))}}function Ea(i,o){if(i&1){let e=S();F(0),p(1,"label",118),d(2),g(3,"translate"),p(4,"span"),d(5,"*"),l()(),p(6,"input",119,5),E("ngModelChange",function(n){x(e);let a=_(6);return N(a.depositForm.validCode,n)||(a.depositForm.validCode=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(7),s=_(6);return I(s.setPulsaPhone(n,a))}),l(),M()}if(i&2){let e=_(6);r(2),w(" ",h(3,2,"depositPage.phone"),""),r(4),T("ngModel",e.depositForm.validCode)}}function Ba(i,o){if(i&1){let e=S();F(0),p(1,"label",118),d(2),g(3,"translate"),p(4,"span"),d(5,"*"),l()(),p(6,"input",120),E("ngModelChange",function(n){x(e);let a=_(6);return N(a.depositForm.validCode,n)||(a.depositForm.validCode=n),I(n)}),l(),M()}if(i&2){let e=_(6);r(2),w(" ",h(3,2,"depositPage.code")," "),r(4),T("ngModel",e.depositForm.validCode)}}function Va(i,o){if(i&1&&(p(0,"div",56)(1,"label",114),d(2),g(3,"translate"),p(4,"span"),d(5,"*"),l()(),p(6,"div",115),v(7,Na,5,7,"select",116),l(),v(8,Ea,8,4,"ng-container",28)(9,Ba,7,4,"ng-container",28),l()),i&2){let e=_(5);r(2),w("",h(3,4,"depositPage.method")," "),r(5),m("ngIf",e.method&&e.method.orderType),r(),m("ngIf",e.depositForm.orderType&&e.depositForm.orderType=="1"),r(),m("ngIf",e.depositForm.orderType&&e.depositForm.orderType=="2")}}function La(i,o){if(i&1&&(F(0),v(1,Aa,13,10,"div",113)(2,Va,10,6,"div",52),M()),i&2){let e=_(4);r(),m("ngIf",e.method.methodName!=""&&e.method.mobileNo!=""),r(),m("ngIf",e.depositForm.payType!="-")}}function Ra(i,o){if(i&1&&(p(0,"div",106)(1,"p")(2,"strong",107),d(3),g(4,"translate"),l(),p(5,"strong",108),d(6),l()(),p(7,"p")(8,"strong",107),d(9),g(10,"translate"),l(),p(11,"strong",108),d(12),l()()()),i&2){let e=_(5);r(3),P(h(4,6,"depositPage.provider")),r(2),B("data_axq","info_providerName"),r(),P(e.method.methodName),r(3),P(h(10,8,"depositPage.account")),r(2),B("data_axq","info_providerAcct"),r(),P(e.method.account)}}function Oa(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",118),d(3),g(4,"translate"),g(5,"translate"),p(6,"span"),d(7,"*"),l()(),p(8,"input",120),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.validCode,n)||(a.depositForm.validCode=n),I(n)}),l()(),M()}if(i&2){let e=_(5);r(3),re(" ",h(4,3,"depositPage.phone")," / ",h(5,5,"depositPage.code")," "),r(5),T("ngModel",e.depositForm.validCode)}}function Ua(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",118),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"input",120),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.validCode,n)||(a.depositForm.validCode=n),I(n)}),l()(),M()}if(i&2){let e=_(5);r(3),w(" ",h(4,2,"depositPage.transactionCode")," "),r(4),T("ngModel",e.depositForm.validCode)}}function qa(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",118),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"input",120),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.validCode,n)||(a.depositForm.validCode=n),I(n)}),l()(),M()}if(i&2){let e=_(5);r(3),w(" ",h(4,2,"depositPage.transactionCode")," "),r(4),T("ngModel",e.depositForm.validCode)}}function Wa(i,o){if(i&1&&(F(0),v(1,Ra,13,10,"div",113)(2,Oa,9,7,"ng-container",28)(3,Ua,8,4,"ng-container",28)(4,qa,8,4,"ng-container",28),M()),i&2){let e=_(4);r(),m("ngIf",e.method.methodName!=""&&e.method.account!=""),r(),m("ngIf",e.depositForm.payType=="PM011"),r(),m("ngIf",e.depositForm.payType=="PM023"),r(),m("ngIf",e.depositForm.payType=="PM024")}}function za(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),l()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumberIDR")," "),r(3),w(" ",h(5,4,"depositPage.phoneIDR"),""))}function Qa(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),l()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumber")," "),r(3),w(" ",h(5,4,"depositPage.phoneNotIDR"),""))}function Ya(i,o){if(i&1&&(F(0),p(1,"div",56)(2,"label"),d(3),g(4,"translate"),l(),k(5,"input",121),l(),p(6,"div",56),v(7,za,6,6,"label",28)(8,Qa,6,6,"label",28),k(9,"input",121),l(),M()),i&2){let e=_(5);r(3),P(h(4,5,"depositPage.accountName")),r(2),m("value",e.method.accountName),r(2),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)==="IDR"),r(),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)!=="IDR"),r(),m("value",e.method.mobileNo)}}function Ha(i,o){if(i&1&&(F(0),p(1,"div",56)(2,"label"),d(3),g(4,"translate"),l(),k(5,"input",121),l(),p(6,"div",56)(7,"label"),d(8),g(9,"translate"),l(),k(10,"input",121),l(),M()),i&2){let e=_(5);r(3),P(h(4,4,"depositPage.accountName")),r(2),m("value",e.method.bankAccountName),r(3),P(h(9,6,"depositPage.accountNo")),r(2),m("value",e.method.bankAccountNo)}}function ja(i,o){if(i&1&&(F(0),v(1,Ya,10,7,"ng-container",28)(2,Ha,11,8,"ng-container",28),M()),i&2){let e=_(4);r(),m("ngIf",e.depositForm.payType=="PM011"),r(),m("ngIf",e.depositForm.payType=="PM020")}}function Ga(i,o){if(i&1&&(p(0,"option",72),d(1),l()),i&2){let e=o.$implicit;m("value",e.code),B("data_axq","networkOption_"+e.code),r(),w(" ",e.label," ")}}function Ka(i,o){if(i&1&&(p(0,"p",73),d(1),l()),i&2){let e=_(6);r(),w(" ",e.merchantNetworkCtrl.errors.message," ")}}function Ja(i,o){if(i&1){let e=S();p(0,"form",55)(1,"div",56)(2,"label",90),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"div",58)(8,"select",125),A("change",function(n){x(e);let a=_(5);return I(a.changeMerchantNetwork(n,!0))}),p(9,"option",92),d(10),g(11,"translate"),l(),v(12,Ga,2,3,"option",93),l(
1)(),v(13,Ka,2,1,"p",61),l()()}if(i&2){let e=_(5);m("formGroup",e.merchantNetworkForm),r(3),P(h(4,7,"signUpPage.network")),r(5),m("ngClass",O(11,Pe,e.merchantNetworkCtrl.invalid&&(e.merchantNetworkCtrl.touched||e.merchantNetworkCtrl.dirty))),B("data_axq","merchantNetwork_dropdownBtn"),r(2),P(h(11,9,"signUpPage.selectNetwork")),r(2),m("ngForOf",e.networkShow),r(),m("ngIf",e.merchantNetworkCtrl.errors&&(e.merchantNetworkCtrl.touched||e.merchantNetworkCtrl.dirty))}}function Za(i,o){if(i&1&&(p(0,"div",56)(1,"label"),d(2,"Network"),l(),p(3,"div",126),k(4,"input",121),l()()),i&2){let e=_(5);r(4),m("value",e.depositForm.network)}}function Xa(i,o){i&1&&(p(0,"p",112),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"copy")))}function $a(i,o){if(i&1){let e=S();p(0,"div",127),k(1,"input",128,6),p(3,"button",109),A("click",function(){x(e);let n=Y(2),a=_(5);return I(a.copyMessage(n))}),k(4,"i",110),l(),v(5,Xa,3,3,"p",111),l()}if(i&2){let e=_(5);r(),m("title",e.method.walletAddress)("value",e.method.walletAddress),r(4),m("ngIf",e.isCopy)}}function er(i,o){if(i&1&&(p(0,"div",129)(1,"div",49),k(2,"img",50),l(),k(3,"span",48),l()),i&2){let e=_(5);r(2),m("src",e.depositForm.imgFilePath,Ze),B("data_axq","qrCodeImg"),r(),m("ngStyle",O(3,je,e.depositForm.imgFilePath!=""?"none":"block"))}}function tr(i,o){if(i&1&&(F(0),v(1,Ja,14,13,"form",51)(2,Za,5,1,"div",52),p(3,"div",122)(4,"label",90),d(5),g(6,"translate"),l(),v(7,$a,6,3,"div",123)(8,er,4,5,"div",124),l(),M()),i&2){let e=_(4);r(),m("ngIf",e.isShowFastMemberWalletAddress()),r(),m("ngIf",!e.isShowFastMemberWalletAddress()),r(),m("ngClass",e.method.walletAddress!=""?"has_btn":""),r(2),P(h(6,6,"depositPage.walletAddress")),r(2),m("ngIf",e.method.walletAddress!=""),r(),m("ngIf",e.depositForm.imgFilePath)}}function nr(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),l()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumberIDR")," "),r(3),w(" ",h(5,4,"depositPage.phoneIDR"),""))}function ir(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),l()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumber")," "),r(3),w(" ",h(5,4,"depositPage.phoneNotIDR"),""))}function or(i,o){if(i&1&&(p(0,"div",56),v(1,nr,6,6,"label",28)(2,ir,6,6,"label",28),k(3,"input",121),l()),i&2){let e=_(4);r(),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)==="IDR"),r(),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)!=="IDR"),r(),m("value",e.memInfo.contactCountry+"-"+e.memInfo.contactNumber)}}function ar(i,o){if(i&1){let e=S();F(0),p(1,"input",130,7),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.amount,n)||(a.depositForm.amount=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(2),s=_(4);return I(s.setAmount(n,a))})("click",function(n){return x(e),I(n.target.select())}),l(),M()}if(i&2){let e=_(4);r(),T("ngModel",e.depositForm.amount)}}function rr(i,o){i&1&&(p(0,"div",134),k(1,"i",135),p(2,"p",136),d(3),g(4,"translate"),l()()),i&2&&(r(3),P(h(4,1,"depositPage.pcrpPM001DepositNotice")))}function sr(i,o){if(i&1){let e=S();F(0),p(1,"div",131)(2,"input",130,7),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.amount1,n)||(a.depositForm.amount1=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(3),s=_(4);return I(s.setAmount(n,a))})("click",function(n){return x(e),I(n.target.select())}),l(),p(4,"input",132,8),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.pcrpamount,n)||(a.depositForm.pcrpamount=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(5),s=_(4);return I(s.setAmount(n,a))})("click",function(n){return x(e),I(n.target.select())}),l()(),v(6,rr,5,3,"div",133),M()}if(i&2){let e=_(4);r(2),T("ngModel",e.depositForm.amount1),r(2),T("ngModel",e.depositForm.pcrpamount),B("data_axq","amount_twoDigitsFloat"),r(2),m("ngIf",e.depositForm.payType=="PM001")}}function pr(i,o){if(i&1){let e=S();F(0),p(1,"div",131)(2,"input",137,7),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.amount,n)||(a.depositForm.amount=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(3),s=_(4);return I(s.setAmount(n,a))}),l(),p(4,"input",138),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.bankPadEndNum,n)||(a.bankPadEndNum=n),I(n)}),l()(),M()}if(i&2){let e=_(4);r(2),T("ngModel",e.depositForm.amount),r(2),T("ngModel",e.bankPadEndNum),B("data_axq","amount_threeDigitsFloat")}}function lr(i,o){if(i&1){let e=S();p(0,"div",139)(1,"ul")(2,"li")(3,"a",140),A("click",function(){x(e);let n=_(4);return I(n.addAmount(n.pageData.amtbutton1))}),d(4),l()(),p(5,"li")(6,"a",140),A("click",function(){x(e);let n=_(4);return I(n.addAmount(n.pageData.amtbutton2))}),d(7),l()(),p(8,"li")(9,"a",140),A("click",function(){x(e);let n=_(4);return I(n.addAmount(n.pageData.amtbutton3))}),d(10),l()()()()}if(i&2){let e=_(4);r(3),B("data_axq","amount_"+e.pageData.amtbutton1),r(),P(e.pageData.amtbutton1),r(2),B("data_axq","amount_"+e.pageData.amtbutton2),r(),P(e.pageData.amtbutton2),r(2),B("data_axq","amount_"+e.pageData.amtbutton3),r(),P(e.pageData.amtbutton3)}}function cr(i,o){if(i&1&&(p(0,"p"),d(1),g(2,"translate"),l()),i&2){let e=_(5);r(),w(" ",h(2,1,"currency"+e.pageData.currency.currId)," ")}}function dr(i,o){i&1&&(F(0),p(1,"li"),d(2),g(3,"translate"),l(),p(4,"li"),d(5),g(6,"translate"),l(),p(7,"li"),d(8),g(9,"translate"),l(),M()),i&2&&(r(2),P(h(3,3,"depositPage.BBLDes1")),r(3),P(h(6,5,"depositPage.BBLDes2")),r(3),P(h(9,7,"depositPage.BBLDes3")))}function mr(i,o){i&1&&(F(0),p(1,"li"),d(2),g(3,"translate"),l(),p(4,"li"),d(5),g(6,"translate"),l(),p(7,"li"),d(8),g(9,"translate"),l(),M()),i&2&&(r(2),P(h(3,3,"depositPage.IBTDe
1s1")),r(3),P(h(6,5,"depositPage.IBTDes2")),r(3),P(h(9,7,"depositPage.IBTDes3")))}function _r(i,o){if(i&1){let e=S();F(0),p(1,"button",142),A("click",function(){x(e);let n=_(5);return I(n.isNoticeStatus=!n.isNoticeStatus)}),k(2,"i",69),l(),p(3,"div",143)(4,"ol",144),v(5,dr,10,9,"ng-container",28)(6,mr,10,9,"ng-container",28),l()(),M()}if(i&2){let e=_(5);r(3),m("ngStyle",O(3,je,e.isNoticeStatus?"block":"none")),r(2),m("ngIf",e.depositForm.methodId=="TRF"),r(),m("ngIf",e.depositForm.methodId=="IBT")}}function ur(i,o){if(i&1&&(p(0,"div",141)(1,"div",134),k(2,"i",135),p(3,"p"),d(4),g(5,"translate"),p(6,"strong"),d(7),g(8,"numericFormat"),l(),d(9),g(10,"translate"),p(11,"strong"),d(12),g(13,"numericFormat"),l()(),v(14,cr,3,3,"p",28),l(),v(15,_r,7,5,"ng-container",28),l()),i&2){let e=_(4);r(4),w(" ",h(5,6,"depositPage.min")," : "),r(3),P(ee(8,8,e.method.minAmount?e.method.minAmount:"0.00",!1)),r(2),w(" / ",h(10,11,"depositPage.max")," : "),r(3),P(ee(13,13,e.method.maxAmount?e.method.maxAmount:"0.00",!1)),r(2),m("ngIf",e.pageData.currency&&e.pageData.currency.displayUnit!=1&&(e.pageData.currency.currId=="IDR"||e.pageData.currency.currId=="VND")),r(),m("ngIf",(e.depositForm.methodId=="TRF"||e.depositForm.methodId=="IBT")&&e.isShowAmt2())}}function gr(i,o){if(i&1&&(p(0,"span",87),d(1),l()),i&2){let e=_(6);r(),P(e.promotionNote)}}function hr(i,o){if(i&1&&(p(0,"div",88)(1,"div",89),d(2),l()()),i&2){let e=_(6);m("ngClass",O(2,de,e.isShowPromotionDesc)),r(2),w(" ",e.promotionNote," ")}}function fr(i,o){if(i&1){let e=S();F(0),p(1,"button",68),A("click",function(){x(e);let n=_(5);return I(n.isShowPromotionDesc=!n.isShowPromotionDesc)}),k(2,"i",69),v(3,gr,2,1,"span",70),l(),v(4,hr,3,4,"div",71),M()}if(i&2){let e=_(5);r(3),m("ngIf",!e.globalData.isMobileStyle),r(),m("ngIf",e.globalData.isMobileStyle&&e.isShowPromotionDesc)}}function yr(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",147),d(2),g(3,"translate"),l(),p(4,"input",148),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.previewBonus,n)||(a.previewBonus=n),I(n)}),l()()}if(i&2){let e=_(5);r(2),P(h(3,2,"depositPage.previewBonus")),r(2),T("ngModel",e.previewBonus)}}function Cr(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label"),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"a",145),A("click",function(){x(e);let n=_(4);return I(n.openPromotionList())}),d(8),g(9,"translate"),k(10,"i",146),l(),v(11,fr,5,2,"ng-container",28),l(),v(12,yr,5,4,"div",52),M()}if(i&2){let e=_(4);r(3),w("",h(4,5,"depositPage.promotionList")," "),r(4),B("data_axq","promotion_dropdownBtn"),r(),w(" ",e.promoteTitle?e.promoteTitle:h(9,7,"depositPage.noThanks")," "),r(3),m("ngIf",e.promotionNote),r(),m("ngIf",e.depositForm.promoteId)}}function Pr(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",149),d(2),g(3,"translate"),l(),p(4,"input",150),E("ngModelChange",function(n){x(e);let a=_(4);
1return N(a.calculateData.amountReceived,n)||(a.calculateData.amountReceived=n),I(n)}),l()()}if(i&2){let e=_(4);r(2),P(h(3,2,"depositPage.actualMoney")),r(2),T("ngModel",e.calculateData.amountReceived)}}function br(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",151),d(2),g(3,"translate"),l(),p(4,"input",152),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.remark,n)||(a.depositForm.remark=n),I(n)}),l()()}if(i&2){let e=_(4);r(2),P(h(3,2,"depositPage.remark")),r(2),T("ngModel",e.depositForm.remark)}}function xr(i,o){if(i&1&&(p(0,"p"),d(1),g(2,"translate"),p(3,"strong"),d(4),g(5,"number"),l()()),i&2){let e=_(5);r(),w(" ",h(2,2,"depositPage.minAmtOfFreeTran")," : "),r(3),P(ee(5,4,e.method.minAmtOfFreeTran,"1.0-2"))}}function Ir(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",153),d(3),g(4,"translate"),l(),p(5,"input",154),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.calculateData.fee,n)||(a.calculateData.fee=n),I(n)}),l(),p(6,"div",134),k(7,"i",135),p(8,"p"),d(9),g(10,"translate"),p(11,"strong"),d(12),l()(),v(13,xr,6,7,"p",28),p(14,"p"),d(15),g(16,"translate"),p(17,"strong"),d(18),l()()()(),p(19,"div",56)(20,"label",155),d(21),g(22,"translate"),l(),p(23,"input",156),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.calculateData.netMoney,n)||(a.calculateData.netMoney=n),I(n)}),l()(),M()}if(i&2){let e=_(4);r(3),P(h(4,11,"depositPage.depositFee")),r(2),T("ngModel",e.calculateData.fee),B("data_axq","fee"),r(4),w(" ",h(10,13,"depositPage.freeFrequencyOfOneDay")," : "),r(3),P(e.method.limitOfFrequency),r(),m("ngIf",e.method.isSetFee),r(2),w(" ",h(16,15,"depositPage.fee")," : "),r(3),P(e.method.feeType==0?e.method.rateOfFee+"%":e.method.oneTimeOfFee),r(3),P(h(22,17,"depositPage.netCredit")),r(2),T("ngModel",e.calculateData.netMoney),B("data_axq","netMoney")}}function vr(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label"),d(3),g(4,"translate"),l(),k(5,"input",157),l(),p(6,"div",56)(7,"label"),d(8),g(9,"translate"),l(),p(10,"input",158),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.cryptoAmount,n)||(a.depositForm.cryptoAmount=n),I(n)}),l()(),p(11,"div",56)(12,"label",90),d(13),g(14,"translate"),l(),p(15,"input",159),g(16,"translate"),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.txCode,n)||(a.depositForm.txCode=n),I(n)}),l()(),M()}if(i&2){let e=_(4);r(3),P(h(4,8,"depositPage.cryptoRate")),r(2),m("value",e.depositForm.rate),r(3),P(h(9,10,"depositPage.converToCrypto")),r(2),T("ngModel",e.depositForm.cryptoAmount),r(3),P(h(14,12,"depositPage.txId")),r(2),T("ngModel",e.depositForm.txCode),m("placeholder",h(16,14,"depositPage.pleaseFillTheTxId")),B("data_axq","tx_id")}}function wr(i,o){i&1&&$e(0)}function Dr(i,o){if(i&1&&(F(0),v(1,Fa,23,16,"ng-container",28)(2,ka,23,16,"ng-container",28)(3,La,3,2,"ng-container",28)(4,Wa,5,4,"ng-container",28)(5,ja,3,2,"ng-container",28)(6,tr,9,8,"ng-container",28)(7,or,4,3,"div",52),p(8,"div",56)(9,"label",102),d(10),g(11,"translate"),p(12,"span"),d(13,"*"),l()(),v(14,ar,3,1,"ng-container",28)(15,sr,7,4,"ng-container",28)(16,pr,5,3,"ng-container",28)(17,lr,11,6,"div",103)(18,ur,16,16,"div",104),l(),v(19,Cr,13,9,"ng-container",28)(20,Pr,5,4,"div",52)(21,br,5,4,"div",52)(22,Ir,24,19,"ng-container",28)(23,vr,17,16,"ng-container",28)(24,wr,1,0,"ng-container",105),M()),i&2){let e=_(3),t=Y(20);r(),m("ngIf",e.depositForm.methodId=="TRF"),r(),m("ngIf",e.depositForm.methodId=="IBT"),r(),m("ngIf",e.depositForm.methodId==="PPus"),r(),m("ngIf",e.depositForm.methodId==="PTrf"),r(),m("ngIf",e.depositForm.methodId==="PEwa"),r(),m("ngIf",e.depositForm.methodId==="PCrp"),r(),m("ngIf",e.showPhoneInfo&&!e.isShowFastMemberPhone()),r(3),w("",h(11,19,"depositPage.amount")," "),r(4),m("ngIf",!e.isShowAmt2()&&e.depositForm.methodId!=="PCrp"),r(),m("ngIf",!e.isShowAmt2()&&e.depositForm.methodId==="PCrp"),r(),m("ngIf",e.isShowAmt2()),r(),m("ngIf",e.depositForm.methodId=="TRF"||e.depositForm.methodId=="IBT"||e.depositForm.methodId=="PEwa"),r(),m("ngIf",e.method),r(),m("ngIf",e.cmsService.cmsSetting.isAutoTransfer&&e.promotionList&&e.promotionList.length>0),r(),m("ngIf",e.pageData.currency.currId=="VND"||e.pageData.currency.currId=="IDR"),r(),m("ngIf",e.pageData.currency.currId=="IDR"),r(),m("ngIf",e.method&&e.method.isSetFee),r(),m("ngIf",e.depositForm.methodId=="PCrp"),r(),m("ngTemplateOutlet",t)}}function Sr(i,o){if(i&1&&(p(0,"option",72),d(1),l()),i&2){let e=o.$implicit;m("value",e.value),r(),w(" ",e.label," ")}}function Fr(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",90),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"div",160)(8,"select",161),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.accountId,n)||(a.depositForm.accountId=n),I(n)}
1),v(9,Sr,2,2,"option",93),l()()(),M()}if(i&2){let e=_(4);r(3),P(h(4,3,"depositPage.accountName")),r(5),T("ngModel",e.depositForm.accountId),r(),m("ngForOf",e.accountNameOptions)}}function Mr(i,o){i&1&&(p(0,"span",87),d(1),g(2,"translate"),l()),i&2&&(r(),P(h(2,1,"depositPage.expiredTimeTwoHours")))}function kr(i,o){if(i&1&&(p(0,"div",88)(1,"div",89),d(2),g(3,"translate"),l()()),i&2){let e=_(6);m("ngClass",O(4,de,e.isShowPulsaDesc)),r(2),w(" ",h(3,2,"depositPage.expiredTimeTwoHours")," ")}}function Ar(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",90),d(3),g(4,"translate"),l(),p(5,"div",126),k(6,"input",162),l()(),p(7,"div",56)(8,"label",90),d(9),g(10,"translate"),p(11,"span"),d(12,"*"),l()(),p(13,"input",163),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.validCode,n)||(a.depositForm.validCode=n),I(n)}),l(),p(14,"button",68),A("click",function(){x(e);let n=_(5);return I(n.isShowPulsaDesc=!n.isShowPulsaDesc)}),k(15,"i",69),v(16,Mr,3,3,"span",70),l(),v(17,kr,4,6,"div",71),l(),M()}if(i&2){let e=_(5);r(3),P(h(4,8,"depositPage.pulsaPhoneNumber")),r(3),m("value",e.depositForm.phoneNumber),B("data_axq","providerPhone"),r(3),w("",h(10,10,"depositPage.pulsaCodeOrPhoneNumber")," "),r(4),T("ngModel",e.depositForm.validCode),B("data_axq","codeOrPhoneNumber"),r(3),m("ngIf",!e.globalData.isMobileStyle),r(),m("ngIf",e.globalData.isMobileStyle&&e.isShowPulsaDesc)}}function Tr(i,o){if(i&1&&(F(0),p(1,"div",106)(2,"p")(3,"strong",107),d(4),g(5,"translate"),l(),p(6,"strong",108),d(7),l()(),p(8,"p")(9,"strong",107),d(10),g(11,"translate"),l(),p(12,"strong",108),d(13),l()(),p(14,"p")(15,"strong",107),d(16),g(17,"translate"),l(),p(18,"strong",108),d(19),l()()(),M()),i&2){let e=_(5);r(4),P(h(5,9,"depositPage.bankName")),r(2),B("data_axq","bankName"),r(),P(e.method.bankName),r(3),P(h(11,11,"depositPage.accountName")),r(2),B("data_axq","bankAcctName"),r(),P(e.depositForm.providerAcctName||""),r(3),P(h(17,13,"depositPage.accountNo")),r(2),B("data_axq","bankAcctNo"),r(),P(e.depositForm.providerAcctNo||"")}}function Nr(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",164),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"input",165),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.bankAcctName,n)||(a.depositForm.bankAcctName=n),I(n)}),l()(),M()}if(i&2){let e=_(5);r(3),w("",h(4,3,"depositPage.bankAccountName")," "),r(4),T("ngModel",e.depositForm.bankAcctName),m("readonly",e.pageData.memInfo==null?null:e.pageData.memInfo.memName)}}function Er(i,o){i&1&&(F(0),p(1,"div",56)(2,"div",141)(3,"div",166),k(4,"span",135),p(5,"p"),d(6),g(7,"translate"),l()()()(),M()),i&2&&(r(6),P(h(7,1,"depositPage.qzPayNotice")))}function Br(i,o){i&1&&(F(0),p(1,"div",56)(2,"div",141)(3,"div",166),k(4,"span",135),p(5,"p"),d(6),g(7,"translate"),l()()()(),M()),i&2&&(r(6),P(h(7,1,"depositPage.cryptocurrencyQzPayNotice")))}function Vr(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),l()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumberIDR")," "),r(3),w(" ",h(5,4,"depositPage.phoneIDR"),""))}function Lr(i,o){i&1&&(p(0,"label"),d(1),g(2,"translate"),F(3),d(4),g(5,"translate"),M(),l()),i&2&&(r(),w("",h(2,2,"depositPage.phoneNumber")," "),r(3),w(" ",h(5,4,"depositPage.phoneNotIDR"),""))}function Rr(i,o){if(i&1&&(p(0,"div",56),v(1,Vr,6,6,"label",28)(2,Lr,6,6,"label",28),k(3,"input",121),l()),i&2){let e=_(5);r(),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)==="IDR"),r(),m("ngIf",(e.globalData.acctInfo==null?null:e.globalData.acctInfo.currency)!=="IDR"),r(),m("value",e.memInfo.contactCountry+"-"+e.memInfo.contactNumber)}}function Or(i,o){if(i&1&&(F(0),v(1,Ar,18,12,"ng-container",28)(2,Tr,20,15,"ng-container",28)(3,Nr,8,5,"ng-container",28)(4,Er,8,3,"ng-container",28)(5,Br,8,3,"ng-container",28)(6,Rr,4,3,"div",52),M()),i&2){let e=_(4);r(),m("ngIf",e.method.catId=="pulsa"),r(),m("ngIf",e.depositForm.payType=="PM001"),r(),m("ngIf",e.depositForm.payType=="PM013"),r(),m("ngIf",e.depositForm.payType=="PM014"),r(),m("ngIf",e.depositForm.payType=="PM021"||e.depositForm.payType=="PM046"||e.depositForm.payType=="PM047"||e.depositForm.payType=="PM048"),r(),m("ngIf",e.showPhoneInfo&&!e.isShowFastMemberPhone())}}function Ur(i,o){if(i&1){let e=S();p(0,"input",169),E("ngModelChange",function(n){x(e);let a=_(6);return N(a.depositForm.bankAcctName,n)||(a.depositForm.bankAcctName=n),I(n)}),l()}if(i&2){let e=_(6);T("ngModel",e.depositForm.bankAcctName),m("readonly",e.pageData.memInfo==null?null:e.pageData.memInfo.memName)}}function qr(i,o){if(i&1&&(F(0),p(1,"div",56)(2,"label",167),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),v(7,Ur,1,2,"input",168),l(),M()),i&2){let e=_(5);r(3),w("",h(4,2,"depositPage.bankAccountName")," "),r(4),m("ngIf",e.pageData.memInfo==null?null:e.pageData.memInfo.memName)}}function Wr(i,o){if(i&1&&(F(0),v(1,qr,8,4,"ng-container",28),M()),i&2){let e=_(4);r(),m("ngIf",e.depositForm.payType=="PM013")}}function zr(i,o){if(i&1){let e=S();F(0),p(1,"input",170,7),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.amount,n)||(a.depositForm.amount=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(2),s=_(4);return I(s.setAmount(n,a))})("blur",function(n){x(e);let a=_(4);return I(a.onBlurHandler(n))}),l(),M()}if(i&2){let e=_(4);r(),T("ngModel",e.depositForm.amount)}}function Qr(i,o){if(i&1){let e=S();F(0),p(1,"div",131)(2,"input",137,7),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.amount,n)||(a.depositForm.amount=n),I(n)}),A("ngModelChange",function(n){x(e);let a=Y(3),s=_(4);return I(s.setAmount(n,a))}),l(),p(4,"input",138),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.bankPadEndNum,n)||(a.bankPadEndNum=n),I(n)}),l()(),M()}if(i&2){let e=_(4);r(2),T("ngModel",e.depositForm.amount),r(2),T("ngModel",e.bankPadEndNum)}}function Yr(i,o){if(i&1&&(p(0,"p"),d(1),g(2,"translate"),l()),i&2){let e=_(5);r(),w(" ",h(2,1,"currency"+e.pageData.currency.currId)," ")}}function Hr(i,o){if(i&1){let e=S();F(0),p(1,"button",142),A("click",function(){x(e);let n=_(5);return I(n.isNoticeStatus=!n.isNoticeStatus)}),k(2,"i",69),l(),p(3,"div",143)(4,"ol",144),k(5,"li",172),g(6,"translate"),l()(),M()}if(i&2){let e=_(5);r(3),m("ngStyle",O(5,je,e.isNoticeStatus?"block":"none")),r(2),m("innerHTML",ee(6,2,"depositPage.depositPrompt",O(7,jo,e.cmsService.cmsSetting.merchantName)),St)}}function jr(i,o){if(i&1&&(p(0,"div",141)(1,"div",171),k(2,"span",135),p(3,"p"),d(4),g(5,"translate"),p(6,"strong"),d(7),g(8,"numericFormat"),l(),d(9),g(10,"translate"),p(11,"strong"),d(12),g(13,"numericFormat"),l()(),v(14,Yr,3,3,"p",28),l(),v(15,Hr,7,9,"ng-container",28),l()),i&2){let e=_(4);r(4),w(" ",h(5,6,"depositPage.min")," : "),r(3),P(ee(8,8,e.method.minAmount?e.method.minAmount:"0.00",!1)),r(2),w(" / ",h(10,11,"depositPage.max")," : "),r(3),P(ee(13,13,e.method.maxAmount?e.method.maxAmount:"0.00",!1)),r(2),m("ngIf",e.pageData.currency&&e.pageData.currency.displayUnit!=1&&(e.pageData.currency.currId=="IDR"||e.pageData.currency.currId=="VND")),r(),m("ngIf",e.depositForm.methodId=="Alogateway")}}function Gr(i,o){if(i&1&&(p(0,"span",87),d(1),l()),i&2){let e=_(6);r(),P(e.promotionNote)}}function Kr(i,o){if(i&1&&(p(0,"div",88)(1,"div",89),d(2),l()()),i&2){let e=_(6);m("ngClass",O(2,de,e.isShowPromotionDesc)),r(2),w(" ",e.promotionNote," ")}}function Jr(i,o){if(i&1){let e=S();F(0),p(1,"button",68),A("click",function(){x(e);let n=_(5);return I(n.isShowPromotionDesc=!n.isShowPromotionDesc)}),k(2,"i",69),v(3,Gr,2,1,"span",70),l(),v(4,Kr,3,4,"div",71),M()}if(i&2){let e=_(5);r(3),m("ngIf",!e.globalData.isMobileStyle),r(),m("ngIf",e.globalData.isMobileStyle&&e.isShowPromotionDesc)}}function Zr(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",147),d(2),g(3,"translate"),l(),p(4,"input",148),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.previewBonus,n)||(a.previewBonus=n),I(n)}),l()()}if(i&2){let e=_(5);r(2),P(h(3,2,"depositPage.previewBonus")),r(2),T("ngModel",e.previewBonus)}}function Xr(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label"),d(3),g(4,"translate"),p(5,"span"),d(6,"*"),l()(),p(7,"a",145),A("click",function(){x(e);let n=_(4);return I(n.openPromotionList())}),d(8),g(9,"translate"),k(10,"i",146),l(),v(11,Jr,5,2,"ng-container",28),l(),v(12,Zr,5,4,"div",52),M()}if(i&2){let e=_(4);r(3),w("",h(4,5,"depositPage.promotionList")," "),r(4),B("data_axq","promotion_dropdownBtn"),r(),w(" ",e.promoteTitle?e.promoteTitle:h(9,7,"depositPage.noThanks")," "),r(3),m("ngIf",e.promotionNote),r(),m("ngIf",e.depositForm.promoteId)}}function $r(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",149),d(2),g(3,"translate"),l(),p(4,"input",150),E("ngModelChange",function(n){x(e);let a=_(4);
1return N(a.calculateData.amountReceived,n)||(a.calculateData.amountReceived=n),I(n)}),l()()}if(i&2){let e=_(4);r(2),P(h(3,2,"depositPage.actualMoney")),r(2),T("ngModel",e.calculateData.amountReceived)}}function es(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",151),d(2),g(3,"translate"),l(),p(4,"input",152),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.depositForm.remark,n)||(a.depositForm.remark=n),I(n)}),l()()}if(i&2){let e=_(4);r(2),P(h(3,2,"depositPage.remark")),r(2),T("ngModel",e.depositForm.remark)}}function ts(i,o){if(i&1&&(p(0,"p"),d(1),g(2,"translate"),p(3,"strong"),d(4),g(5,"number"),l()()),i&2){let e=_(5);r(),w(" ",h(2,2,"depositPage.minAmtOfFreeTran")," : "),r(3),P(ee(5,4,e.method.minAmtOfFreeTran,"1.0-2"))}}function ns(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",153),d(3),g(4,"translate"),l(),p(5,"input",154),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.calculateData.fee,n)||(a.calculateData.fee=n),I(n)}),l(),p(6,"div",134),k(7,"i",135),p(8,"p"),d(9),g(10,"translate"),p(11,"strong"),d(12),l()(),v(13,ts,6,7,"p",28),p(14,"p"),d(15),g(16,"translate"),p(17,"strong"),d(18),l()()()(),p(19,"div",56)(20,"label",155),d(21),g(22,"translate"),l(),p(23,"input",156),E("ngModelChange",function(n){x(e);let a=_(4);return N(a.calculateData.netMoney,n)||(a.calculateData.netMoney=n),I(n)}),l()(),M()}if(i&2){let e=_(4);r(3),P(h(4,11,"depositPage.depositFee")),r(2),T("ngModel",e.calculateData.fee),B("data_axq","fee"),r(4),w(" ",h(10,13,"depositPage.freeFrequencyOfOneDay")," : "),r(3),P(e.method.limitOfFrequency),r(),m("ngIf",e.method.isSetFee),r(2),w(" ",h(16,15,"depositPage.fee")," : "),r(3),P(e.method.feeType==0?e.method.rateOfFee+"%":e.method.oneTimeOfFee),r(3),P(h(22,17,"depositPage.netCredit")),r(2),T("ngModel",e.calculateData.netMoney),B("data_axq","netMoney")}}function is(i,o){if(i&1){let e=S();p(0,"div",56)(1,"label",149),d(2),g(3,"translate"),l(),p(4,"input",150),E("ngModelChange",function(n){x(e);let a=_(4);
1return N(a.calculateData.amountReceived,n)||(a.calculateData.amountReceived=n),I(n)}),l()()}if(i&2){let e=_(4);r(2),P(h(3,2,"depositPage.actualMoney")),r(2),T("ngModel",e.calculateData.amountReceived)}}function os(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",173),d(3),g(4,"translate"),l(),p(5,"input",174),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.rate,n)||(a.depositForm.rate=n),I(n)}),l()(),p(6,"div",56)(7,"label",175),d(8),g(9,"translate"),l(),p(10,"input",158),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.cryptoAmount,n)||(a.depositForm.cryptoAmount=n),I(n)}),l()(),M()}if(i&2){let e=_(5);r(3),P(h(4,4,"depositPage.cryptoRate")),r(2),T("ngModel",e.depositForm.rate),r(3),P(h(9,6,"depositPage.converToCrypto")),r(2),T("ngModel",e.depositForm.cryptoAmount)}}function as(i,o){if(i&1&&(F(0),v(1,os,11,8,"ng-container",28),M()),i&2){let e=_(4);r(),m("ngIf",e.method.catId=="crypto")}}function rs(i,o){if(i&1){let e=S();F(0),p(1,"div",56)(2,"label",173),d(3),g(4,"translate"),l(),p(5,"input",174),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.rate,n)||(a.depositForm.rate=n),I(n)}),l()(),p(6,"div",56)(7,"label",175),d(8),g(9,"translate"),l(),p(10,"input",158),E("ngModelChange",function(n){x(e);let a=_(5);return N(a.depositForm.cryptoAmount,n)||(a.depositForm.cryptoAmount=n),I(n)}),l()(),M()}if(i&2){let e=_(5);r(3),P(h(4,4,"depositPage.cryptoRate")),r(2),T("ngModel",e.depositForm.rate),r(3),P(h(9,6,"depositPage.converToCrypto")),r(2),T("ngModel",e.depositForm.cryptoAmount)}}function ss(i,o){if(i&1&&(F(0),v(1,rs,11,8,"ng-container",28),M()),i&2){let e=_(4);r(),m("ngIf",e.method.catId=="crypto")}}function ps(i,o){i&1&&$e(0)}function ls(i,o){if(i&1){let e=S();F(0),v(1,Fr,10,5,"ng-container",28)(2,Or,7,6,"ng-container",28)(3,Wr,2,1,"ng-container",28),p(4,"div",56)(5,"label",102),d(6),g(7,"translate"),p(8,"span"),d(9,"*"),l()(),v(10,zr,3,1,"ng-container",28)(11,Qr,5,2,"ng-container",28),p(12,"div",139)(13,"ul")(14,"li")(15,"a",140),A("click",function(){x(e);let n=_(3);return I(n.addAmount(n.pageData.amtbutton1))}),d(16),l()(),p(17,"li")(18,"a",140),A("click",function(){x(e);let n=_(3);return I(n.addAmount(n.pageData.amtbutton2))}),d(19),l()(),p(20,"li")(21,"a",140),A("click",function(){x(e);let n=_(3);return I(n.addAmount(n.pageData.amtbutton3))}),d(22),l()()()(),v(23,jr,16,16,"div",104),l(),v(24,Xr,13,9,"ng-container",28)(25,$r,5,4,"div",52)(26,es,5,4,"div",52)(27,ns,24,19,"ng-container",28)(28,is,5,4,"div",52)(29,as,2,1,"ng-container",28)(30,ss,2,1,"ng-container",28)(31,ps,1,0,"ng-container",105),M()}if(i&2){let e=_(3),t=Y(20);r(),m("ngIf",e.depositForm.methodId==="PMpa"&&e.accountNameOptions.length>=2),r(),m("ngIf",e.depositForm.methodId==="PQzp"),r(),m("ngIf",e.depositForm.methodId==="PTop"),r(3),w("",h(7,21,"depositPage.amount")," "),r(4),m("ngIf",!e.isShowAmt2()&&e.depositForm.methodId!=="PCrp"),r(),m("ngIf",e.isShowAmt2()),r(4),B("data_axq","amount_"+e.pageData.amtbutton1),r(),P(e.pageData.amtbutton1),r(2),B("data_axq","amount_"+e.pageData.amtbutton2),r(),P(e.pageData.amtbutton2),r(2),B("data_axq","amount_"+e.pageData.amtbutton3),r(),P(e.pageData.amtbutton3),r(),m("ngIf",e.method),r(),m("ngIf",e.cmsService.cmsSetting.isAutoTransfer&&e.promotionList&&e.promotionList.length>0),r(),m("ngIf",e.pageData.currency.currId=="VND"||e.pageData.currency.currId=="IDR"),r(),m("ngIf",e.pageData.currency.currId=="IDR"),r(),m("ngIf",e.method&&e.method.isSetFee),r(),m("ngIf",e.depositForm.methodId==="PCop"&&(e.pageData.currency.currId=="VND"||e.pageData.currency.currId=="IDR")),r(),m("ngIf",e.depositForm.methodId=="PMar"),r(),m("ngIf",e.depositForm.methodId=="PQzp"),r(),m("ngTemplateOutlet",t)}}function cs(i,o){if(i&1){let e=S();F(0),v(1,ua,36,27,"form",51)(2,Pa,28,28,"form",51)(3,Da,14,11,"div",52)(4,Dr,25,21,"ng-container",28)(5,ls,32,23,"ng-container",28),p(6,"div",53)(7,"button",54),A("debounceClick",function(){x(e);let n=_(2);return I(n.handleDeposit())}),d(8),g(9,"translate"),l()(),M()}if(i&2){let e=_(2);r(),m("ngIf",e.isShowFastMemberBanking()),r(),m("ngIf",e.isShowFastMemberWalletAddress()),r(),m("ngIf",e.isShowFastMemberPhone()),r(),m("ngIf",!e.isThirdPartyPayment(e.depositForm.methodId)),r(),m("ngIf",e.isThirdPartyPayment(e.depositForm.methodId)),r(2),m("ngClass",e.submitBtnStyle())("disabled",e.isSubmitDisabled()),r(),P(h(9,8,"submit"))}}function ds(i,o){if(i&1){let e=S();p(0,"div",176)(1,"label",177),A("click",function(){x(e);let n=_(2);return I(n.uploadImgService.openCamera())}),k(2,"i",178),p(3,"p"),d(4,"Photograph"),l()()()}}function ms(i,o){if(i&1){let e=S();p(0,"button",31),A("click",function(){x(e);let n=_(2);return I(n.onCancelSelectPromotion())}),k(1,"i",32),l()}}function _s(i,o){if(i&1){let e=S();F(0),p(1,"div",180),A("click",function(){let n=x(e).$implicit,a=_(3);return I(a.changePromotion(n))}),p(2,"input",181),E("ngModelChange",function(n){x(e);let a=_(3);return N(a.depositForm.promoteId,n)||(a.depositForm.promoteId=n),I(n)}),l(),p(3,"label",182),k(4,"i",185),p(5,"p"),d(6),l()()(),M()}if(i&2){let e=o.$implicit,t=_(3);r(2),m("value",e.promoteId),T("ngModel",t.depositForm.promoteId),m("checked",t.depositForm.promoteId==e.promoteId),r(4),P(e.promoteTitle)}}function us(i,o){if(i&1){let e=S();p(0,"div",179)(1,"div",180),A("click",function(){x(e);let n=_(2);return I(n.changePromotion())}),p(2,"input",181),E("ngModelChange",function(n){x(e);let a=_(2);return N(a.depositForm.promoteId,n)||(a.depositForm.promoteId=n),I(n)}),l(),p(3,"label",182),k(4,"i",183),p(5,"p"),d(6),g(7,"translate"),l()()(),v(8,_s,7,4,"ng-container",184),l()}if(i&2){let e=_(2);r(2),m("value",0),T("ngModel",e.depositForm.promoteId),m("checked",!e.depositForm.promoteId),r(4),P(h(7,6,"depositPage.noThanks")),r(2),m("ngForOf",e.promotionList)("ngForTrackBy",e.trackByPromoteId)}}function gs(i,o){if(i&1){let e=S();p(0,"div",186)(1,"button",187),A("click",function(){x(e);let n=_(2);return I(n.onCancelSelectPromotion())}),d(2),g(3,"translate"),g(4,"titlecase"),l(),p(5,"button",188),A("click",function(){x(e);let n=_(2);return I(n.selectPromotionDone())}),d(6),g(7,"translate"),g(8,"titlecase"),l()()}i&2&&(r(2),P(h(4,4,h(3,2,"cancel"))),r(4),P(h(8,8,h(7,6,"done"))))}function hs(i,o){if(i&1){let e=S();p(0,"div",18),v(1,Go,1,3,"app-account-wallet",19),p(2,"div",20)(3,"div",21)(4,"label",22),d(5),g(6,"translate"),p(7,"span"),d(8,"*"),l(
1)(),p(9,"div",23),A("click",function(){x(e);let n=_();return I(n.accountInfoService.isPaymentSelectOpen=!n.accountInfoService.isPaymentSelectOpen)}),v(10,Ko,3,3,"p",24)(11,Jo,2,1,"p",24)(12,Zo,2,2,"p",25),p(13,"button",26),k(14,"i",27),l()(),v(15,ea,2,1,"ng-container",28),l(),v(16,cs,10,10,"ng-container",28),l()(),p(17,"div",29)(18,"p",30)(19,"strong"),d(20),g(21,"translate"),l(),p(22,"button",31),A("click",function(){x(e);let n=_();return I(n.uploadImgService.isShowUpload=!n.uploadImgService.isShowUpload)}),k(23,"i",32),l()(),p(24,"div",33)(25,"div",34)(26,"label",35)(27,"input",36,1),A("change",function(n){x(e);let a=Y(28),s=_();return I(s.uploadImgService.onFileChange(n,a))}),l(),k(29,"i",37),p(30,"p"),d(31),g(32,"translate"),l()()(),v(33,ds,5,0,"div",38),l()(),p(34,"div",29),v(35,ms,2,0,"button",39),p(36,"div",30)(37,"strong"),d(38),g(39,"translate"),l()(),v(40,us,9,8,"div",40)(41,gs,9,10,"div",41),l()}if(i&2){let e=_();r(),m("ngIf",!e.globalData.isMobileStyle&&!e.cmsService.cmsSetting.isAutoTransfer),r(4),w("",h(6,19,"depositPage.transferMethod")," "),r(4),m("ngClass",O(27,Wo,e.paymentSetting.methodName==""&&e.paymentSetting.paymentId==""&&e.paymentSetting.methodId==="")),r(),m("ngIf",e.paymentSetting.categoryId==""),r(),m("ngIf",e.paymentSetting.categoryId),r(),m("ngIf",e.paymentSetting.methodName),r(),B("data_axq","paymentMethod_dropdownBtn"),r(2),m("ngIf",e.depositForm.methodId!="PCrp"),r(),m("ngIf",e.depositForm.methodId!==""),r(),m("ngClass",O(29,zo,e.uploadImgService.isShowUpload)),r(3),w(" ",h(21,21,"depositPage.uploadImage")," "),r(5),m("hidden",e.globalData.isApp),r(6),P(h(32,23,"depositPage.chooseFile")),r(2),m("ngIf",e.globalData.isApp),r(),m("ngClass",Et(31,Qo,e.isPromotionListOpen,!e.globalData.isMobileStyle)),r(),m("ngIf",e.globalData.isMobileStyle),r(3),w(" ",h(39,25,"depositPage.selectPromotion")," "),r(2),m("ngIf",e.promotionList),r(),m("ngIf",!e.globalData.isMobileStyle)}}function fs(i,o){if(i&1){let e=S();p(0,"div",189),A("click",function(){x(e);let n=_();return I(n.onCancelSelectPromotion())}),l()}}function ys(i,o){if(i&1){let e=S();p(0,"div",189),A("click",function(){x(e);let n=_();return I(n.uploadImgService.isShowUpload=!n.uploadImgService.isShowUpload)}),l()}}function Cs(i,o){if(i&1){let e=S();p(0,"app-thb-phone-verify",190),A("verified",function(n){x(e);let a=_();return I(a.handleThbPhoneVerified(n))}),l()}if(i&2){let e=_();m("memInfo",e.memInfo)("countryCodeList",e.countryCodeList)}}function Ps(i,o){i&1&&(p(0,"span"),d(1,"*"),l())}function bs(i,o){if(i&1){let e=S();p(0,"p",193),A("click",function(){x(e);let n=_(3);return I(n.uploadImgService.isShowUpload=!0)}),k(1,"i",194),d(2),g(3,"translate"),l()}i&2&&(B("data_axq","upload"),r(2),w(" ",h(3,2,"depositPage.chooseFile")," "))}function xs(i,o){if(i&1){let e=S();p(0,"p",195),d(1),p(2,"i",196),A("click",function(){x(e);let n=_(3);return I(n.uploadImgService.removeImg(n.fileInput))}),l()()}if(i&2){let e=_(3);r(),w(" ",e.uploadImgService.fileName," ")}}function Is(i,o){if(i&1&&(p(0,"div",56)(1,"label",90),d(2),g(3,"translate"),g(4,"translate"),v(5,Ps,2,0,"span",28),l(),v(6,bs,4,4,"p",191)(7,xs,3,1,"p",192),l()),i&2){let e=_(2);r(2),re(" ",h(3,5,"depositPage.uploadImage")," (",h(4,7,"depositPage.imageSizeLimit"),") "),r(3),m("ngIf",e.isMandatoryColumn("uploadFile")),r(),m("ngIf",!e.uploadImgService.image),r(),m("ngIf",e.uploadImgService.image)}}function vs(i,o){if(i&1&&v(0,Is,8,9,"div",52),i&2){let e=_();m("ngIf",e.isShowColumn("uploadFile"))}}var zp=(()=>{let o=class o{constructor(t,n,a,s,c,u,f,C,b,y,D,q,U,H,j,Z,J){this.globalData=t,this.httpService=n,this.swalDialog=a,this.numericFormatPipe=s,this.reverseFormatPipe=c,this.accountInfoService=u,this.cmsService=f,this.sanitizer=C,this.uploadImgService=b,this.clipboard=y,this.iab=D,this.fb=q,this.formValidators=U,this.userDetectService=H,this.registerCacheService=j,this.langService=Z,this.appConfigService=J,this.paymentSetting={categoryId:"",categoryDisplayName:"",methodName:"",methodDisplayName:"",methodId:"",paymentId:"",paymentDisplayName:"",accountSetting:{accountId:"",accountName:""}},this.resourceAssetPrefix=this.appConfigService.getConfig("resourceAssetPrefix"),this.bankInfoList=[],this.previewBonus=0,this.promoteTitle="",this.depositForm={methodId:"",payType:"",methodName:"",bankId:"",bankName:"",bankAcctNo:"",bankAcctName:"",validCode:"",orderType:"",amount:0,amount1:0,pcrpamount:".00",tranNo:"",network:"",rate:0,cryptoAmount:0,remark:"",memContactCountry:"",memContactNumber:"",ph
1oneNumber:"",promoteId:0,imgFilePath:"",accountId:""},this.calculateData={fee:0,amountReceived:0,netMoney:0,netCredit:0},this.isPromotionListOpen=!1,this.isCopy=!1,this.promotionNote="",this.prePromoteStates={prePreviewBonus:"",prePromoteId:"",prePromoteTitle:"",prePromotionNote:"",prePromotion:"",preAmount:0},this.accountNameOptions=[],this.fastBankInfoList=[],this.networkList=[],this.networkShow=[],this.paymentDecimalAmountSetting=[],this.isDecimalAmountDuration=!1,this.showPhoneInfo=!1,this.showBankInfo=!1,this.showWalletAddress=!1,this.isOpenNotice=!1,this.isOpenPhoneNotice=!1,this.filterSymbols=Fn,this.filterEventSymbols=Te,this.originalPromotionList=[],this.isThbPhoneVerifyRequired=!1,this.resourceInfoPrefix=this.appConfigService.getConfig("resourceInfoPrefix"),this.filteredAccounts=[],this.selectedBankDataId=null,this.showEditAccount=!1,this.showCancelEditAccount=!0,this.isEditing=!1,this.originalBankAcctNo=null,this.hasIBT=!1,this.canAddBank=!1,this.PAYMENT_TYPES={LOCAL_TRANSFER:"TRF",INTER_BANK_TRANSFER:"IBT",QZPAY:"PQzp",MOMOPAY:"PMop",SUNNPAY:"PSuy"},this.roundDown=function(Ae,G){return Math.floor((Ae+Number.EPSILON)*Math.pow(10,G))/Math.pow(10,G)},this.createFastLoginMemberFormGroup(),this.createFastLoginMemberUSDTWallet(),this.createMerchantNetwork(),this.loadIndex()}ngOnInit(){this.updateMemInfo(),this.updateProfileData(),this.getContactCountryCodeList(),this.changeBankPadEndForFastMem(),this.checkIsMemberNeedPhoneVerify()}trackByBankId(t,n){return n.bankId}trackByPromoteId(t,n){return n.promoteId}loadIndex(){this.globalData.loading=!0,this.httpService.getDepositInfo({isMultipleBank:!0}).subscribe(t=>{var n,a,s,c,u,f;if(t.code===0){if(this.pageData=t.data,this.networkList=(n=this.pageData.networkList)!=null?n:[],this.paymentDecimalAmountSetting=(a=this.pageData.paymentDecimalAmountSetting)!=null?a:[],this.currency=this.pageData.currency,this.memberPaymentSetting=(s=this.pageData.memberPaymentSetting)!=null?s:[],this.accountNameOptions=this.handleAccountNameOption(),this.memberPaymentSetting.length>0&&this.pageData.lastMemTran){let{paymentId:C,payType:b,methodName:y}=this.pageData.lastMemTran;this.method=(c=this.memberPaymentSetting.find(D=>D.paymentId===C&&D.methodId===b&&this.concatBankIdAndMethodname(D.bankId,D.methodName)===y))!=null?c:""}this.depositForm.amount=(f=(u=this.pageData.lastMemTran)==null?void 0:u.amt)!=null?f:0,this.changeSetting(this.method),this.originalPromotionList=Array.isArray(this.pageData.promotionList)?this.pageData.promotionList:[],this.promotionList=[...this.originalPromotionList]}this.globalData.loading=!1})}concatBankIdAndMethodname(t,n){return t+n}changePaymentSelect(t){var n;!t.categoryId||!t.methodId||!t.paymentId||(this.method=(n=this.memberPaymentSetting.find(a=>a.paymentId===t.paymentId&&a.methodId===t.methodId&&this.concatBankIdAndMethodname(a.bankId,a.methodName).toUpperCase()===t.methodName.toUpperCase()))!=null?n:"",this.changeSetting(this.method))}stripThousands(t){return String(t!=null?t:"").replace(/,/g,"")}onBlurHandler(t){let n=t.target.value,a=this.depositForm.methodId,s=this.method.methodName;a==="PMar"?this.commitActualMoney(n,s):a==="PQzp"&&this.getPQzpCryptoRate(s)}commitActualMoney(t,n){if(this.depositForm.methodId==="PMar"&&this.method.catId=="crypto"&&n!=""&&Number(this.stripThousands(t))>=Number(this.stripThousands(this.method.minAmount))){this.setAmount(this.depositForm.amount);let a={CryptoName:n,Currency:this.currency.currId,Amount:this.stripThousands(t),MethodId:this.depositForm.methodId};this.depositForm.methodId==="PMar"&&a.Amount!="0"?(this.globalData.loading=!0,this.httpService.getCryptoRate(a).subscribe(s=>{s.code===0&&(this.depositForm.rate=s.data.rate,this.depositForm.cryptoAmount=s.data.cryptoAmount),this.globalData.loading=!1})):(this.depositForm.rate=0,this.depositForm.cryptoAmount=0)}else this.depositForm.rate=0,this.depositForm.cryptoAmount=0}initPaySettingAndDepositFormData(t){var n,a,s;this.paymentSetting.categoryId=t.catId,this.paymentSetting.categoryDisplayName=t.categoryDisplayName,this.paymentSetting.methodName=this.concatBankIdAndMethodname(t.bankId,t.methodName),this.paymentSetting.methodDisplayName=t.methodDisplayName,this.paymentSetting.methodId=t.methodId,this.paymentSetting.paymentId=t.paymentId,this.paymentSetting.paymentDisplayName=t.paymentDisplayName,this.depositForm.methodId=t.paymentId,this.depositForm.payType=t.methodId,this.depositForm.methodName=this.concatBankIdAndMethodname(t.bankId,t.methodName),this.depositForm.bankId="",this.depositForm.bankName="",this.depositForm.bankAcctName="",this.depositForm.providerAcctName="",this.depositForm.providerAcctNo="",this.depositForm.bankAcctNo="",this.depositForm.phoneNumber="",this.depositForm.memContactCountry=tt().get((n=this.globalData.acctInfo)==null?void 0:n.currency),this.depositForm.memContactNumber=(s=(a=this.pageData.memInfo)==null?void 0:a.memInfoPhone)==null?void 0:s.contactNumber,this.depositForm.validCode="",this.depositForm.orderType="",this.depositForm.network="",this.depositForm.rate=0,this.depositForm.cryptoAmount=0,this.depositForm.tranNo="",this.depositForm.remark="",this.depositForm.bookingRemark="",this.depositForm.txCode="",this.depositForm.imgFilePath="",this.illegalContactNumberFormat=new RegExp("^".concat(this.depositForm.memContactCountry)),this.isDecimalAmountDuration=this.checkIsDecimalAmountDuration()}setPCrpDepositFormData(t){this.networkShow=this.networkList.filter(n=>n.code==t.network),this.merchantNetworkCtrl.setValue(this.method.network),this.depositForm.network=this.method.network,this.depositForm.rate=this.method.rate,t.walletAddressFilePath&&(this.depositForm.imgFilePath=this.resourceAssetPrefix+"/"+t.walletAddressFilePath)}changeSetting(t){if(this.originalPromotionList&&t){let n=String(t.methodId),a=String(t.paymentId);this.promotionList=this.originalPromotionList.filter(s=>{var u;return!((u=s.excludePaymentList)==null?void 0:u.some(f=>
1String(f.methodId)===n&&String(f.paymentId)===a))})}else this.promotionList=Array.isArray(this.originalPromotionList)?[...this.originalPromotionList]:[];if(t&&(t==null?void 0:t.verifyInfo)!=null)switch(this.initPaySettingAndDepositFormData(t),(this.isShowFastMemberBanking()||this.isShowFastMemberWalletAddress())&&this.getBankListforFastMember(t.paymentId,t.methodId).then(()=>{var n,a;this.isShowFastMemberBanking()&&(this.fastBankInfoList.length>0?this.getLastDepositInfo(t.paymentId,t.methodId):((n=this.pageData.memInfo)==null?void 0:n.hasSetMemInfoBank)===!0&&((a=this.pageData.memInfo)==null?void 0:a.isBankCountReachLimit)===!0&&!this.canAddBank&&this.swalDialog.popMessage(this.globalData.translateString("depositPage.plsSetBankInfoMsg"))),this.isShowFastMemberWalletAddress()&&this.getLastDepositInfo(t.paymentId,t.methodId)}),this.isShowFastMemberWalletAddress()&&this.setPCrpDepositFormData(t),t.paymentId){case"TRF":case"IBT":this.getBankInfoByPaymentMethod(t.paymentId);break;case"PMar":t.catId=="crypto"&&t.paymentId==="PMar"&&(this.depositForm.amount=this.method.minAmount,this.commitActualMoney(this.depositForm.amount,this.method.methodName));break;case"PQzp":t.catId=="pulsa"&&this.getPQzpPhoneNumber(this.method.methodName),t.catId=="crypto"&&t.paymentId==="PQzp"&&this.getPQzpCryptoRate(this.method.methodName),t.methodId=="PM001"&&this.getPQzpBankAccount(this.method.bankId),t.methodId==="PM013"&&(this.depositForm.bankAcctName=this.pageData.memInfo.memName),(t.methodId==="PM014"||t.methodId=="PM029"||t.methodId=="PM015"||t.methodId=="PM016"||t.methodId=="PM017"||t.methodId=="PM031")&&(this.depositForm.memContactCountry="62");break;case"PTop":t.methodId==="PM013"&&(this.depositForm.bankAcctName=this.pageData.memInfo.memName);break;case"PTrf":t.methodId=="PM024"&&t.accountFilePath&&(this.depositForm.imgFilePath=this.resourceAssetPrefix+"/"+t.accountFilePath);break;case"PCrp":this.setPCrpDepositFormData(t),this.merchantNetworkCtrl.setValue("");break;default:break}this.setAmountFloat(),this.setAmount(this.depositForm.amount),this.uploadImgService.removeImg(this.fileInput)}changeNetwork(t,n){let a=t.target.value;this.networkCtrl.setValue(a),a&&(n||(this.merchantNetworkCtrl.setValue(a),this.changeCryptoMethodAndSetting(a)))}changeMerchantNetwork(t,n){let a=t.target.value;a&&(this.changeNetwork(t,n),this.changeCryptoMethodAndSetting(a))}changeCryptoMethodAndSetting(t){this.depositForm.network=t,this.method=this.memberPaymentSetting.find(n=>n.paymentId=="PCrp"&&n.network==t&&n.methodId==this.method.methodId),this.initPaySettingAndDepositFormData(this.method),this.setPCrpDepositFormData(this.method),this.setAmount(this.depositForm.amount),this.uploadImgService.removeImg(this.fileInput)}checkIsDecimalAmountDuration(){var t=this.paymentDecimalAmountSetting.filter(n=>n.paymentId==this.method.paymentId&&n.methodId==this.method.methodId);if(this.method.paymentId=="PQzp"&&this.currency.currId=="IDR"&&t.length>0){let[n,a]=t[0].beginTime.split(":").map(Number),[s,c]=t[0].endTime.split(":").map(Number),u=8,f=new Date().getTimezoneOffset(),C=new Date().getTime(),b=new Date(C+f*60*1e3+u*60*60*1e3),y=b.getHours(),D=b.getMinutes();return s<n||s===n&&c<a?y>n||y===n&&D>=a||y<s||y===s&&D<=c:(y>n||y===n&&D>=a)&&(y<s||y===s&&D<=c)}return!1}changeOrderType(t){this.depositForm.orderType=="1"&&(this.depositForm.validCode=""),this.depositForm.orderType=="2"&&(this.depositForm.validCode="")}changePromotion(t){t?(this.promotion=t,this.depositForm.promoteId=t.promoteId,this.promoteTitle=t.promoteTitle,this.promotionNote=t.description,this.setAmount(this.depositForm.amount)):(this.previewBonus=0,this.depositForm.promoteId=0,this.promoteTitle="",this.promotionNote=""),this.globalData.isMobileStyle&&(this.isPromotionListOpen=!1)}openPromotionList(){this.setPrePromotion(),this.isPromotionListOpen=!0}onCancelSelectPromotion(){this.resetPrePromotion(),this.isPromotionListOpen=!1}selectPromotionDone(){this.isPromotionListOpen=!1}setPrePromotion(){this.prePromoteStates.prePreviewBonus=this.previewBonus,this.prePromoteStates.prePromoteId=this.depositForm.promoteId,this.prePromoteStates.prePromoteTitle=this.promoteTitle,this.prePromoteStates.prePromotionNote=this.promotionNote,this.prePromoteStates.prePromotion=this.promotion,this.prePromoteStates.preAmount=this.depositForm.amount}resetPrePromotion(){this.previewBonus=this.prePromoteStates.prePreviewBonus,this.depositForm.promoteId=this.prePromoteStates.prePromoteId,this.promoteTitle=this.prePromoteStates.prePromoteTitle,this.promotionNote=this.prePromoteStates.prePromotionNote,this.promotion=this.prePromoteStates.prePromotion,this.depositForm.amount=this.prePromoteStates.preAmount,this.setAmount(this.depositForm.amount)}setPulsaPhone(t,n){t=t.replace(/\D/g,""),n&&(n.value=t),this.depositForm.validCode=t}setContactNumber(t,n){t=t.replace(/\D/g,""),t=t.replace(/^0+/,""),n&&(n.value=t),this.depositForm.memContactNumber=t}normalizeIntegerAmountInput(t){let n=this.reverseFormatPipe.transform(t!=null?t:"").toString();return n=n.split(".")[0].replace(/\D/g,""),n=n.replace(/^0+(?=\d)/,""),n.length>17&&(n=n.slice(0,17)),n||"0"}setAmount(t,n){var a;if(this.depositForm.methodId==="PCrp"){if(n&&n.name=="dAmount"&&(t=this.normalizeIntegerAmountInput(t),n&&(n.value=this.numericFormatPipe.transform(t,!1)),this.integer=t),n&&n.name=="dAmount1"){let u=String((a=n.value)!=null?a:"").replace(/\D/g,"").slice(0,3);this.depositForm.pcrpamount=u?".".concat(u):".",n.value=this.depositForm.pcrpamount,this.decimal="0"+this.depositForm.pcrpamount}n||(t=this.normalizeIntegerAmountInput(t),this.integer=t,this.depositForm.amount1=t,this.decimal="0.00",this.depositForm.pcrpamount=".00");
1let s=isNaN(this.integer)?0:parseFloat(this.integer)||0,c=typeof this.decimal>"u"?0:parseFloat(this.decimal);t=s+c,this.depositForm.amount=this.numericFormatPipe.transform(t,!0)}else t=this.normalizeIntegerAmountInput(t),n&&(n.value=this.numericFormatPipe.transform(t,!1)),this.depositForm.amount=this.numericFormatPipe.transform(t,!1);this.setFee(t),this.setRealMoney(t),this.setNetCredit(t),this.setPreviewBonus(t)}setFee(t){if(this.method){let n=this.method.feeType,a=this.method.rateOfFee,s=this.method.oneTimeOfFee,c=this.method.needFee,u=this.method.isSetFee,f=t>=this.method.minAmtOfFreeTran?c&&u:!c;t||(t=0),this.isDecimalAmountDuration&&(t=parseFloat(t+this.bankPadEndNum)),n!=null&&(n==0?this.calculateData.fee=parseFloat(t)/100*parseFloat(a):n==1&&(this.calculateData.fee=parseFloat(s))),this.calculateData.fee=f||c?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)}}setRealMoney(t){let n=Number(t),a=this.isShowAmt2()?Number(this.bankPadEndNum):0,s=this.roundDown(n+a,2);(this.currency.currId==="IDR"||this.currency.currId==="VND")&&(s=s*1e3),this.calculateData.amountReceived=this.numericFormatPipe.transform(this.reverseFormatPipe.transform(s),!0)}setNetCredit(t){if(this.method){let n=Number(t),a=this.isShowAmt2()?Number(this.bankPadEndNum):0,s=n+a,c=this.method.isSetFee,f=this.method.needFee&&c?Math.round(this.reverseFormatPipe.transform(this.calculateData.fee)*Math.pow(10,2))/Math.pow(10,2):0,C=s-f;this.calculateData.netCredit=C,this.depositForm.cryptoAmount=this.depositForm.methodId!=="PMar"?this.depositForm.rate!=0?this.roundDown(s/this.depositForm.rate,6):0:this.depositForm.cryptoAmount;let b=C>=0?Math.round(C*Math.pow(10,2))/Math.pow(10,2):0;(this.currency.currId==="IDR"||this.currency.currId==="VND")&&(b=b*1e3),this.calculateData.netMoney=this.numericFormatPipe.transform(this.reverseFormatPipe.transform(b),!0)}}setPreviewBonus(t){if(this.promotion){let s=Number(t),c=this.isShowAmt2()?Number(this.bankPadEndNum):0,u=s+c;var n=(this.calculateData.netCredit>=0?this.calculateData.netCredit:u)*this.promotion.rate;this.promotion.maxAmt!=null?n<=this.promotion.maxAmt&&n>=this.promotion.minAmt?n=n:n>this.promotion.maxAmt?n=this.promotion.maxAmt:n=0:n=0,this.previewBonus=n;var a;a=parseFloat(this.previewBonus).toFixed(2),this.previewBonus=this.numericFormatPipe.transform(a,!0),this.previewBonus<=0&&(this.previewBonus=0)}}getPQzpCryptoRate(t){if(this.depositForm.methodId==="PQzp"&&this.method.catId=="crypto"&&t!=""){this.setAmount(this.depositForm.amount);let n={CryptoName:t,Currency:this.currency.currId,Amount:this.reverseFormatPipe.transform(this.calculateData.amountReceived)};this.depositForm.methodId==="PQzp"&&n.Amount!="0"?(this.globalData.loading=!0,this.httpService.getCryptoRate(n).subscribe(a=>{a.code===0&&(this.depositForm.rate=a.data.rate,this.depositForm.cryptoAmount=a.data.cryptoAmount),this.globalData.loading=!1})):(this.depositForm.rate=0,this.depositForm.cryptoAmount=0)}}addAmount(t){let n=this.reverseFormatPipe.transform(this.depositForm.amount),a=Number(n)+Number(t);this.setAmount(a),this.depositForm.methodId==="PQzp"&&this.getPQzpCryptoRate(this.method.methodName),this.depositForm.methodId==="PMar"&&this.commitActualMoney(this.depositForm.amount,this.method.methodName)}isThirdPartyPayment(t){return["Help2Pay","Alogateway","PVic","PQzp","PCop","Eeziepay","PVp8","PG7p","MobaoPay","EcpssPay","QianhaiPay","RfuPay","PaySec","PTrp","PAep","PThq","PMtp","PTop","POkp","POfp","PVip","POap","PMvp","PIpa","PFlz","PBzp","PMpa","PFlp","PLcx","PClp","PSgp","PGop","PMar","PYep","PAkp","PKpy","PJjp","PSuy","PSzk","PJhp","PMyp","PMsp","PEap","PMop","PNvp","PJlp"].includes(t)}getPQzpPhoneNumber(t){if(t=="-"||t==""){this.depositForm.phoneNumber="",this.globalData.showDirectAlert("depositPage.isProviderBlank",0);return}this.globalData.loading=!0;let n={providerId:this.depositForm.methodId,providerName:t};this.httpService.getPhoneNumber(n).subscribe(a=>{a.code===0&&(a.data.number?this.depositForm.phoneNumber=a.data.number:this.depositForm.phoneNumber=""),this.globalData.loading=!1})}getPQzpBankAccount(t){if(this.showEditAccount=!1,this.depositForm.bankId=t,this.depositForm.bankId==""||this.depositForm.bankId=="-"){this.depositForm.providerAcctName="",this.depositForm.providerAcctNo="",this.globalData.showDirectAlert("codeMessage.40133",0);return}this.globalData.loading=!0;let n={BankName:this.depositForm.bankId};this.httpService.getPQzpBankAccount(n).subscribe(a=>{a.code===0&&(a.data.accountName?this.depositForm.providerAcctName=a.data.accountName:this.depositForm.providerAcctName="",a.data.accountNumber?this.depositForm.providerAcctNo=a.data.accountNumber:this.depositForm.providerAcctNo=""),this.globalData.loading=!1})}isShowAmt2(){if(this.method)return this.pageData.isSupportBblAmt2==!0&&this.method.paymentId=="TRF"&&this.pageData.currency.currId=="THB"&&this.method.bankId=="BBL"||this.method.paymentId=="IBT"||this.isDecimalAmountDuration}setAmountFloat(){this.isDecimalAmountDuration?this.decimalAmountPadEnd():this.bankPadEnd()}checkPaymentMaintenance(t,n){this.httpService.checkPaymentMaintenance(t).subscribe(a=>{var s;if(a.code===1430081){n("block");return}if(a.code===30081){this.swalDialog.popConfirm(this.globalData.translateString("codeMessage.30081"),c=>{c&&(this.blockThbUnverifiedSubmit()||this.submitCheck())});return}if(a.code===0&&((s=a.data)==null?void 0:s.showComfirmPopup)===!0){let u=t.methodName===""&&!!t.bankId?"depositPage.BankMaintenanceMsg":"codeMessage.30081";this.swalDialog.popConfirm(this.globalData.translateString(u),f=>{f&&this.submitCheck()});return}n("pass")})}handleDeposit(){var n,a,s,c;this.userDetectService.browser.safari&&this.isThirdPartyPayment(this.depositForm.methodId)&&this.openThirdPartyPage(!0);
1let t={supportTranType:1,paymentId:this.depositForm.methodId,methodId:this.depositForm.payType,methodName:(a=(n=this.method)==null?void 0:n.methodName)!=null?a:null,bankId:(c=(s=this.method)==null?void 0:s.bankId)!=null?c:null};this.checkPaymentMaintenance(t,u=>{var f;if(u==="block"){(f=this.winTemp)==null||f.close();return}if(u==="confirm"){let b=t.bankId&&!t.methodId?"depositPage.BankMaintenanceMsg":"codeMessage.30081";this.swalDialog.popConfirm(this.globalData.translateString(b),y=>{y&&(this.blockThbUnverifiedSubmit()||this.submitCheck())});return}this.blockThbUnverifiedSubmit()||this.submitCheck()})}submitCheck(){this.isThirdPartyPayment(this.depositForm.methodId)?this.validateDepositAddOrder():this.validateDeposit()}bankPadEnd(){!this.isShowFastMemberBanking()&&this.pageData.memInfo.bankAcctNo?this.bankPadEndNum="."+this.pageData.memInfo.bankAcctNo.substr(this.pageData.memInfo.bankAcctNo.length-2,2).padEnd(3,0):this.calcBankPadEndForFastMem(this.bankAccountNumberCtrl.value),this.setAmount(this.depositForm.amount)}decimalAmountPadEnd(){var t;this.amountFloat=(t=this.amountFloat)!=null?t:"."+Math.floor(Math.random()*99).toString().padEnd(2,"0")+"0",this.bankPadEndNum=this.amountFloat,this.setAmount(this.depositForm.amount)}validateDeposit(){if(!this.method||!this.depositForm.payType||this.depositForm.payType==""||this.depositForm.payType=="-"){this.globalData.showDirectAlert("depositPage.MethodMandatory",0);return}if(this.isAmountValid(this.reverseFormatPipe.transform(this.depositForm.amount))){if(this.isMandatoryColumn("uploadFile")&&!this.uploadImgService.image){this.globalData.showDirectAlert("depositPage.uploadFileBlank",0);return}if(this.isRemarkValid(this.depositForm.remark)){if(this.isShowFastMemberPhone()){if(this.depositForm.memContactNumber==""){this.globalData.showDirectAlert("depositPage.PhoneBlank",0);return}if(!/^[0-9]+$/.test(this.depositForm.memContactNumber)){this.globalData.showDirectAlert("codeMessage.50007",0);return}if(this.depositForm.memContactNumber.length>15){this.globalData.showDirectAlert("codeMessage.50007",0);return}if(this.illegalContactNumberFormat.test(this.depositForm.memContactNumber))return this.globalData.showDirectAlert("codeMessage.50007"),!1}switch(this.depositForm.methodId){case"TRF":case"IBT":if(!this.depositForm.bankId||this.depositForm.bankId==""||!this.depositForm.bankAcctNo||this.depositForm.bankAcctNo==""){this.globalData.showDirectAlert("codeMessage.30070",0);return}this.deposit();break;case"PTrf":if((this.depositForm.payType=="PM011"||this.depositForm.payType=="PM023"||this.depositForm.payType=="PM024")&&this.depositForm.validCode==""){this.globalData.showDirectAlert("depositPage.CodeBlank",0);return}this.deposit();break;case"PPus":if(this.depositForm.orderType==""){this.globalData.showDirectAlert("depositPage.MethodMandatory",0);return}if(this.depositForm.orderType=="1"){if(this.depositForm.validCode==""){this.globalData.showDirectAlert("depositPage.PhoneBlank",0);return}if(!/^[0-9\.]+$/.test(this.depositForm.validCode)||/^[0]+$/.test(this.depositForm.validCode)){this.globalData.showDirectAlert("codeMessage.50007",0);return}}if(this.depositForm.orderType=="2"&&this.depositForm.validCode==""){this.globalData.showDirectAlert("depositPage.CodeBlank",0);return}this.deposit();break;default:this.deposit();break}}}}deposit(){var c,u,f,C,b,y,D,q,U,H,j,Z,J;let t=(c=this.pageData.memInfo)==null?void 0:c.memInfoPhone,n=(u=this.depositForm.memContactNumber)==null?void 0:u.toString(),a=(f=this.pageData.memInfo)==null?void 0:f.memInfoCrypto,s={isMultipleBank:!0,methodId:this.depositForm.methodId,payType:this.depositForm.payType,methodName:this.depositForm.methodName,amount:this.reverseFormatPipe.transform(this.depositForm.amount),promotion:this.depositForm.promoteId==0?"":this.depositForm.promoteId,bookingRemark:this.depositForm.remark,depositCertificateFile:this.uploadImgService.filesBase64,memInfoCryptoId:(C=a==null?void 0:a.id)!=null?C:null,verifyColumns:!0};switch(this.isShowFastMemberBanking()?(s.memInfoBankId=this.selectedBankDataId,s.memBankId=this.bankNameCtrl.value,s.memBankAcctNo=this.bankAccountNumberCtrl.value,s.memBankAcctName=Te(this.bankAccountNameCtrl.value)):((b=this.method)==null?void 0:b.verifyInfo)==="phoneNumber"&&!((D=(y=this.pageData.memInfo)==null?void 0:y.memInfoPhone)!=null&&D.isVerified)?(s.memContactCountry=((q=this.depositForm.memContactCountry)==null?void 0:q.length)>0?this.depositForm.memContactCountry:t==null?void 0:t.contactCountry,s.memContactNumber=(n==null?void 0:n.length)>0?n:t==null?void 0:t.contactNumber):((U=this.method)==null?void 0:U.verifyInfo)==="walletAddress"&&!((j=(H=this.pageData.memInfo)==null?void 0:H.memInfoCrypto)!=null&&j.verifiedDate)&&(s.memNetwork=((Z=this.networkCtrl.value)==null?void 0:Z.length)>0?this.networkCtrl.value:a==null?void 0:a.network,s.memWalletAddress=((J=this.usdtCtrl.value)==null?void 0:J.length)>0?this.usdtCtrl.value:a==null?void 0:a.walletAddress),this.depositForm.methodId){case"TRF":case"IBT":s.bankId=this.depositForm.bankId,s.bankAcctNo=this.depositForm.bankAcctNo,s.bankAcctName=this.depositForm.bankAcctName;break;case"PTrf":(this.depositForm.payType=="PM011"||this.depositForm.payType=="PM023"||this.depositForm.payType=="PM024")&&(s.bankId=this.method.methodName,s.bankAcctNo=this.method.account,s.validCode=this.depositForm.validCode);break;case"PPus":s.bankId=this.method.methodName,s.bankAcctNo=this.method.mobileNo,s.val
1idCode=this.depositForm.validCode,s.orderType=this.depositForm.orderType;break;case"PEwa":this.depositForm.payType=="PM020"&&(s.bankId=this.method.bankId,s.appAcctName=this.method.bankAccountName,s.bankAcctNo=this.method.bankAccountNo),this.depositForm.payType=="PM011"&&(s.bankId=this.method.methodName,s.appAcctName=this.method.accountName,s.bankAcctNo=this.method.mobileNo);break;case"PCrp":s.txCode=this.depositForm.txCode;default:break}this.uploadImgService.image=null,this.globalData.loading=!0,this.onDeposit(s)}onDeposit(t){this.httpService.submitDeposit(t).subscribe(n=>{var a,s,c,u;if(n.code===0){let f=(a=n==null?void 0:n.data)==null?void 0:a.scriptFilePath;f&&this.globalData.openPayPage(f),this.globalData.showDirectAlert("codeMessage.0",1),setTimeout(()=>{this.loadIndex(),this.updateMemInfo().then(()=>{this.updateProfileData().then(()=>{this.initBank(this.bankNameCtrl.value,this.bankAccountNumberCtrl.value)})})},1e3)}else if(n.code===1440412)this.globalData.showDirectAlert("codeMessage.40412",0);else if(n.code===1440151||n.code===1440152||n.code===1440153)(s=this.winTemp)==null||s.close(),this.loadIndex();else if(n.code===1430071){let f=(c=this.fastBankInfoList)==null?void 0:c.find(C=>C.bankId===t.memBankId);this.globalData.showDirectAlert(this.globalData.translateString("fastLoginPage.accounNumberMemExisted")+" ("+this.globalData.translateString("profilePage.bankName")+":"+f.bankName+", "+this.globalData.translateString("profilePage.bankAccountNumber")+":"+t.memBankAcctNo+")",3)}else n.code===1430080?this.globalData.showDirectAlert(this.globalData.translateString("codeMessage.30080")+"("+this.globalData.translateString("signUpPage.network")+":"+t.memNetwork+", "+this.globalData.translateString("profilePage.walletAddress")+":"+t.memWalletAddress+")",3):(u=this.winTemp)==null||u.close();this.setAmount(this.depositForm.amount),this.getPromtionList("-"),this.globalData.loading=!1})}validateDepositAddOrder(){var t;if(this.isAmountValid(this.reverseFormatPipe.transform(this.depositForm.amount))){if(!this.depositForm.payType||this.depositForm.payType==""||this.depositForm.payType=="-"){this.globalData.showDirectAlert("depositPage.MethodMandatory",0);return}if(this.isMandatoryColumn("uploadFile")&&!this.uploadImgService.image){this.globalData.showDirectAlert("depositPage.uploadFileBlank",0);return}if(this.isShowFastMemberPhone()){if(this.depositForm.memContactNumber.length<=0){this.globalData.showDirectAlert("depositPage.PhoneBlank",0);return}if(this.depositForm.memContactNumber.length>15){this.globalData.showDirectAlert("codeMessage.50007",0);return}if(/^[0]+$/.test(this.depositForm.memContactNumber)||!/^[0-9]+$/.test(this.depositForm.memContactNumber)){this.globalData.showDirectAlert("codeMessage.50007",0);return}if(this.illegalContactNumberFormat.test(this.depositForm.memContactNumber))return this.globalData.showDirectAlert("codeMessage.50007"),!1}switch(this.depositForm.methodId){case"PQzp":if(this.isMultiplyFive()&&this.reverseFormatPipe.transform(this.depositForm.amount)%5!=0){this.globalData.showDirectAlert("codeMessage.70005",0);return}if(this.method.catId=="pulsa"&&(this.depositForm.validCode==""||this.depositForm.phoneNumber=="")){this.globalData.showDirectAlert("depositPage.phoneOrCodeBlank",0);return}if(this.method.catId=="crypto"&&this.method.methodName==""){this.globalData.showDirectAlert("depositPage.ISCryptoNameBlank",0);return}if(this.depositForm.payType=="PM001"&&(this.depositForm.bankId==""||this.depositForm.bankId=="-")){this.globalData.showDirectAlert("depositPage.SelectBank",0);return}if(this.depositForm.payType=="PM013"){if(((t=this.depositForm.bankAcctName)==null?void 0:t.length)==0||this.depositForm.bankAcctName===null){this.globalData.showDirectAlert("codeMessage.40120",0);return}if(/[0-9]/i.test(this.depositForm.bankAcctName.trim())){this.globalData.showDirectAlert("codeMessage.70004",0);return}}if(this.isShowFastMemberPhone()){if(this.depositForm.memContactNumber.length<9){this.globalData.showDirectAlert("codeMessage.50007",0);return}if(this.depositForm.memContactNumber.length>12){this.globalData.showDirectAlert("codeMessage.70003",0);return}if(!/^8/.test(this.depositForm.memContactNumber)){this.globalData.showDirectAlert("codeMessage.50007",0);return}}this.depositAddOrder();break;case"PTop":if(this.isShowFastMemberPhone()){if(this.depositForm.memContactNumber.length<9){this.globalData.showDirectAlert("codeMessage.50007",0);return}if(this.depositForm.memContactNumber.length>12){this.globalData.showDirectAlert("codeMessage.70003",0);return}if(!/^8/.test(this.depositForm.memContactNumber)){this.globalData.showDirectAlert("codeMessage.50007",0);return}}this.depositAddOrder();break;default:this.depositAddOrder();break}}}openThirdPartyPage(t=!1){var n;if(!this.userDetectService.browser.chrome&&this.needOpenWindow()){if
1(this.winTemp&&!this.winTemp.closed){if(!t)return;this.winTemp.close(),this.winTemp=null}this.winTemp=this.globalData.openThirdPartyPage(),(n=this.winTemp)==null||n.focus()}}needOpenWindow(){return!(this.depositForm.methodId=="PQzp"&&(this.depositForm.payType=="PM001"||this.depositForm.payType=="PM029"||this.depositForm.payType=="PM034"||this.depositForm.payType=="PM035"||this.depositForm.payType=="PM036")||(this.depositForm.methodId=="PVip"||this.depositForm.methodId=="PFlz"||this.depositForm.methodId=="PFlp"||this.depositForm.methodId=="PMpa"||this.depositForm.methodId=="PLcx")&&this.depositForm.payType=="PM029"||this.depositForm.methodId=="PMpa"&&this.depositForm.payType=="PM024"||this.depositForm.methodId=="PJjp"&&this.depositForm.payType=="PM024"||this.depositForm.methodId=="POap"&&(this.depositForm.payType=="PM029"||this.depositForm.payType=="PM013")||this.depositForm.methodId=="PIpa"&&this.depositForm.payType=="PM029"||this.depositForm.methodId=="PMar")}depositAddOrder(){var c,u,f,C,b,y,D,q,U,H,j,Z,J;this.openThirdPartyPage(),this.globalData.loading=!0;let t=(c=this.pageData.memInfo)==null?void 0:c.memInfoPhone,n=(u=this.depositForm.memContactNumber)==null?void 0:u.toString(),a=(f=this.pageData.memInfo)==null?void 0:f.memInfoCrypto,s={isMultipleBank:!0,methodId:this.depositForm.methodId,type:this.depositForm.payType,methodName:this.depositForm.methodName,amount:this.reverseFormatPipe.transform(this.depositForm.amount),depositCertificateFile:this.uploadImgService.filesBase64,promotion:this.depositForm.promoteId==0?"":this.depositForm.promoteId,remark:this.depositForm.remark,memInfoCryptoId:(C=a==null?void 0:a.id)!=null?C:null,verifyColumns:!0};switch(this.isShowFastMemberBanking()?(s.memInfoBankId=this.selectedBankDataId,s.memBankId=this.bankNameCtrl.value,s.memBankAcctNo=this.bankAccountNumberCtrl.value,s.memBankAcctName=Te(this.bankAccountNameCtrl.value)):((b=this.method)==null?void 0:b.verifyInfo)==="phoneNumber"&&!((D=(y=this.pageData.memInfo)==null?void 0:y.memInfoPhone)!=null&&D.isVerified)?(s.memContactCountry=((q=this.depositForm.memContactCountry)==null?void 0:q.length)>0?this.depositForm.memContactCountry:t==null?void 0:t.contactCountry,s.memContactNumber=(n==null?void 0:n.length)>0?n:t==null?void 0:t.contactNumber):((U=this.method)==null?void 0:U.verifyInfo)==="walletAddress"&&!((j=(H=this.pageData.memInfo)==null?void 0:H.memInfoCrypto)!=null&&j.verifiedDate)&&(s.memNetwork=((Z=this.networkCtrl.value)==null?void 0:Z.length)>0?this.networkCtrl.value:a==null?void 0:a.network,s.memWalletAddress=((J=this.usdtCtrl.value)==null?void 0:J.length)>0?this.usdtCtrl.value:a==null?void 0:a.walletAddress),this.depositForm.methodId){case"Alogateway":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"Eeziepay":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"Help2Pay":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"PaySec":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"PCop":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"PVic":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"POfp":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"PYep":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"PKpy":s.type=="PM003"&&(s.bankId=this.method.bankId);break;case"PTrp":s.type=="PM003"&&(s.bankId=this.method.bankId),s.type=="PM024"&&(s.bankId=this.method.bankId),s.type=="PM025"&&(s.bankId="MOQR");break;case"PTop":s.type=="PM013"&&(s.bankAcctName=this.depositForm.bankAcctName,s.bankNo=this.method.bankId,s.bankId=this.method.bankId);break;case"PQzp":this.method.catId=="pulsa"&&(s.bankNo=this.method.methodName,s.bankName=this.depositForm.phoneNumber,s.bankAcctName=this.depositForm.validCode),this.method.catId=="crypto"&&(s.bookingRemark="".concat(this.currency.currId,",").concat(this.method.methodName)),s.type=="PM001"&&(s.bankId=this.method.bankId,s.bankNo=this.method.bankId,s.bankName=this.depositForm.providerAcctName,s.bankAcctName=this.depositForm.providerAcctNo),s.type=="PM013"&&(s.bankId=this.method.bankId,s.bankNo=this.method.bankId,s.bankAcctName=this.depositForm.bankAcctName),this.currency.currId=="IDR"&&(s.amount=this.isDecimalAmountDuration?Number(this.reverseFormatPipe.transform(this.depositForm.amount))+Number(this.bankPadEndNum):this.reverseFormatPipe.transform(this.depositForm.amount)),this.currency.currId=="THB"&&s.type=="PM029"&&(s.bankId=this.method.bankId);break;case"PAkp":s.type=="PM003"&&(s.bankId=this.method.bankId);case"PJjp":s.type=="PM003"&&(s.bankId=this.method.bankId);case"PSuy":s.type=="PM049"&&(s.bankId=this.method.bankId);case"PSzk":s.type=="PM049"&&(s.bankId=this.method.bankId);case"PMyp":s.type=="PM003"&&(s.bankId=this.method.bankId);case"PMsp":(s.type=="PM003"||s.type=="PM049")&&(s.bankId=this.method.bankId);case"PJhp":s.type=="PM003"&&(s.bankId=this.method.bankId);case"PEap":s.type=="PM049"&&(s.bankId=this.method.bankId);case"PMop":(s.type=="PM003"||s.type=="PM049")&&(s.bankId=this.method.bankId);case"PNvp":s.type=="PM003"&&(s.bankId=this.method.bankId);case"PJlp":s.type=="PM003"&&(s.bankId=this.method.bankId)}this.globalData.loading=!0,this.onDepositAddOrder(s)}onDepositAddOrder(t){this.httpService.depositAddOrder(t).subscribe(n=>{var a,s,c;if(n.code===0)this.globalData.loading=!0,this.depositForm.tranNo=n.data.tranNo,this.depositByPay();else if(n.code===1440412)this.globalData.showDirectAlert("codeMessage.40412",0);else if(n.code===1440151||n.code===1440152||n.code===1440153)(a=this.winTemp)==null||a.close(),this.loadIndex(),this.updateMemInfo();else if(n.code===1430071){let u=(s=this.fastBankInfoList)==null?void 0:s.find(f=>f.bankId===t.memBankId);this.globalData.showDirectAlert(this.globalData.translateString("fastLoginPage.accounNumberMemExisted")+" ("+this.globalData.translateString("profilePage.bankName")+":"+u.bankName+", "+this.globalData.translateString("profilePage.bankAccountNumber")+":"+t.memBankAcctNo+")",3)}else(c=this.winTemp)==null||c.close();this.globalData.loading=!1})}depositByPay(){this.globalData.loading=!0;let t={methodId:this.depositForm.methodId,tranNo:this.depositForm.tranNo,accountId:this.depositForm.accountId};this.httpService.submitPayment(t).subscribe(n=>{var a,s,c,u,f,C;if(n.code===0){if(this.globalData.loading=!1,t.methodId=="PQzp"&&this.depositForm.payType=="PM014"?this.globalData.showDirectAlert("depositPage.ovoSuccess",1,this.backToStep1.bind(this)):this.globalData.showDirectAlert("codeMessage.0",1,()=>this.backToStep1(t.methodId=="PTop")),(this.depositForm.payType=="PM013"||this.depositForm.payType=="PM021")&&t.methodId=="PMar"){(a=this.winTemp)==null||a.close(),this.swalDialog.popBank(n.data.redirectUrl,"success",this.backToStep1.bind(this));return}if(this.depositForm.payType=="PM013"&&t.methodId=="POap"){this.swalDialog.popBank(n.data.redirectUrl,"success",this.backToStep1.bind(this));return}if(n){let b=n.data.redirectUrl;if(b!=null)b.indexOf("http")>-1?t.methodId=="PQzp"&&this.depositForm.payType=="PM029"?this.swalDialog.popImage(b,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",5),"success",this.backToStep1.bind(this)):this.globalData.isApp?this.iab.create(b):t.methodId=="PBzp"?this.globalData.openThirdPartyPage(b,n.code,n.message,null,"PBzp"):this.globalData.openThirdPartyPage(b,n.code,n.message):t.methodId=="PIpa"&&this.depositForm.payType=="PM029"?Q.default.toDataURL(b,{width:300},(y,D)=>
1{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):t.methodId=="POap"&&this.depositForm.payType=="PM029"?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):t.methodId=="PMpa"&&(this.depositForm.payType=="PM029"||this.depositForm.payType=="PM024")?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):t.methodId=="PFlp"&&this.depositForm.payType=="PM029"?(this.isBase64Image(b)?this.swalDialog.popImage(b,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this)):Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}),console.log("PFlp redirectUrl:",b)):t.methodId=="PLcx"&&this.depositForm.payType=="PM029"?(this.isBase64Image(b)?this.swalDialog.popImage(b,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this)):Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}),console.log("PLcx redirectUrl:",b)):t.methodId=="PJjp"&&this.depositForm.payType=="PM024"?(this.isBase64Image(b)?this.swalDialog.popImage(b,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this)):Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}),console.log("PJjp redirectUrl:",b)):t.methodId=="PMar"&&this.depositForm.payType=="PM029"?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):(t.methodId=="PVip"||t.methodId=="PFlz")&&this.depositForm.payType=="PM029"?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",20),"success",this.backToStep1.bind(this))}):this.depositForm.methodId=="PBzp"&&(this.depositForm.payType=="PM049"||this.depositForm.payType=="PM024")?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",5),"success",this.backToStep1.bind(this))}):t.methodId=="PMvp"&&this.depositForm.payType=="PM029"?this.swalDialog.popImage(b,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",20),"success",this.backToStep1.bind(this)):this.depositForm.methodId=="PYep"&&this.depositForm.payType=="PM013"?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):this.depositForm.methodId=="PAkp"&&this.depositForm.payType=="PM024"?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):this.depositForm.methodId=="PMyp"&&this.depositForm.payType=="PM024"?Q.default.toDataURL(b,{width:300},(y,D)=>
1{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",15),"success",this.backToStep1.bind(this))}):this.depositForm.methodId=="PSuy"&&(this.depositForm.payType=="PM003"||this.depositForm.payType=="PM049")?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",10),"success",this.backToStep1.bind(this))}):this.depositForm.methodId=="PNvp"&&this.depositForm.payType=="PM024"?Q.default.toDataURL(b,{width:300},(y,D)=>{if(y){console.error("QR Code \u751F\u6210\u932F\u8AA4:",y);return}this.swalDialog.popImage(D,this.globalData.translateString("depositPage.qrCodeValidTime").replace("{0}",10),"success",this.backToStep1.bind(this))}):t.methodId=="PBzp"?this.globalData.openThirdPartyPage(b,n.code,n.message,null,"PBzp"):this.globalData.openThirdPartyPage(b,n.code,n.message);else if(n.data.bankName!=null&&n.data.bankAcctNumber!=null)this.swalDialog.popMessage("<strong>"+this.globalData.translateString("depositPage.bankName")+"</strong> "+encodeURIComponent(n.data.bankName)+"<br /><br /><strong>"+this.globalData.translateString("profilePage.bankAccountNumber")+"</strong> "+encodeURIComponent(n.data.bankAcctNumber),1,this.backToStep1.bind(this)),(s=this.winTemp)==null||s.close();else if(n.data.htmlData!=null){let y=this.sanitizer.sanitize(Dt.HTML,this.sanitizer.bypassSecurityTrustHtml(n.data.htmlData));if(this.globalData.isApp){let D=URL.createObjectURL(new Blob([y],{type:"text/html"}));this.iab.create(D)}else this.globalData.openThirdPartyPage("",y,n.code,n.message)}else this.depositForm.methodId=="PTop"&&["PM013","PM017","PM029"].includes(this.depositForm.payType)&&((c=this.winTemp)==null||c.close())}else(u=this.winTemp)==null||u.close();setTimeout(()=>{this.loadIndex(),this.updateMemInfo().then(()=>{this.updateProfileData().then(()=>{this.initBank(this.bankNameCtrl.value,this.bankAccountNumberCtrl.value)})})},1e3)}else(n.code=="1451055"||n.code=="1451056"||n.code=="1450026"||n.code=="1440151"||n.code=="1440152"||n.code=="1440153")&&((f=this.winTemp)==null||f.close()),(n.code=="1440151"||n.code=="1440152"||n.code=="1440153")&&(this.loadIndex(),this.updateMemInfo()),this.depositForm.methodId=="PTop"&&["PM013","PM017","PM029"].includes(this.depositForm.payType)?(C=this.winTemp)==null||C.close():(this.globalData.openThirdPartyPage("","",n.code,n.message),this.globalData.loading=!1)})}backToStep1(t){this.depositForm.bankAcctName="",t||(this.depositForm.memContactCountry="62",this.depositForm.memContactNumber=""),this.depositForm.remark="",this.setAmount(this.depositForm.amount),this.getPromtionList("-"),this.depositForm.methodId==="PMar"&&this.commitActualMoney(this.depositForm.amount,this.depositForm.methodName)}getPromtionList(t){if(!this.cmsService.cmsSetting.isAutoTransfer)return;this.changePromotion();let n={providerId:t};this.globalData.loading=!0,this.httpService.getPromotionList(n).subscribe(a=>{a.code===0&&Array.isArray(a.data.promotionList)?(this.originalPromotionList=a.data.promotionList,this.promotionList=[...this.originalPromotionList]):(this.originalPromotionList=[],this.promotionList=[]),this.globalData.loading=!1})}isMultiplyFive(){return this.depositForm.methodId=="PQzp"&&this.depositForm.payType=="PM029"&&this.currency.currId=="THB"}isAmountValid(t){return parseFloat(t)<parseFloat(this.method.minAmount)||parseFloat(t)>parseFloat(this.method.maxAmount)?(this.swalDialog.popMessage(this.globalData.translateString("depositPage.amtIncorrect")+"<br />"+this.globalData.translateString("depositPage.minDeposit")+":"+this.numericFormatPipe.transform(this.method.minAmount,!0)+" , "+this.globalData.translateString("depositPage.maxDeposit")+":"+this.numericFormatPipe.transform(this.method.maxAmount,!0),0),!1):Number(this.reverseFormatPipe.transform(this.calculateData.fee))>parseFloat(t)?(this.globalData.showDirectAlert("depositPage.CashInsufficient",0),!1):!0}isRemarkValid(t){return this.pageData.currency.currId=="IDR"&&t.length>
1100?(this.globalData.showDirectAlert("depositPage.invalidRemarkLength",0),!1):!0}copyMessage(t){this.isCopy=!1,window.clearTimeout(this.timer),t.value&&(this.clipboard.copyFromInputElement(t),this.isCopy=!0),this.timer=setTimeout(()=>{this.isCopy=!1},5e3)}copyFromContent(t){this.isCopy=!1,window.clearTimeout(this.timer),t&&(this.clipboard.copy(t),this.isCopy=!0),this.timer=setTimeout(()=>{this.isCopy=!1},5e3)}setBankInfo(t){let n=this.bankInfoList.find(a=>a.bankId==t);if(!n){this.globalData.showDirectAlert("codeMessage.30070",0),this.bankInfoList=[];return}this.depositForm.bankId=n.bankId,this.depositForm.bankName=n.bankName,this.depositForm.bankAcctNo=n.bankAcctNo,this.depositForm.bankAcctName=n.bankAcctName}getBankInfoByPaymentMethod(t){(t==="TRF"||t==="IBT")&&this.httpService.getBankInfoByPaymentMethod({methodId:t}).subscribe(n=>{n.code===0?(this.bankInfoList=n.data.bankInfoList,this.setBankInfo(this.method.bankId)):this.bankInfoList=[]})}filterBanksByMemBanks(t,n,a){return t.filter(s=>n.some(c=>c.bankId===s.bankId&&(!a||a(c))))}mergeBanks(t,n){var c;if(((c=this.pageData.memInfo)==null?void 0:c.isBankCountReachLimit)===!0){let u=n.filter((f,C,b)=>b.findIndex(y=>y.bankId===f.bankId)===C);return u.sort((f,C)=>f.bankId.localeCompare(C.bankId)),u}this.canAddBank=!0;let a=new Map;n.forEach(u=>{a.set(u.bankId,u)}),t.forEach(u=>{a.has(u.bankId)||a.set(u.bankId,u)});let s=Array.from(a.values());return s.sort((u,f)=>u.bankId.localeCompare(f.bankId)),s}handleQZPayBanks(t,n){return t!==this.PAYMENT_TYPES.QZPAY?null:this.memberPaymentSetting.filter(a=>a.paymentId===t&&a.methodId===n&&a.bankId===this.method.bankId).map(a=>({bankId:a.bankId,bankName:a.bankName}))}handleMomopayBanks(t,n,a){var u,f,C;let s=(u=this.method)==null?void 0:u.bankId;if(!s)return[];let c=t.filter(b=>b.bankId===s);return a?(c.length===0&&c.push({bankId:s,bankName:(C=(f=this.method)==null?void 0:f.bankName)!=null?C:s}),c.filter(b=>n.some(y=>y.bankId===b.bankId))):c}handleSunnpayBanks(t,n,a){var u,f,C;let s=(u=this.method)==null?void 0:u.bankId;if(!s)return[];let c=t.filter(b=>b.bankId===s);return a?(c.length===0&&c.push({bankId:s,bankName:(C=(f=this.method)==null?void 0:f.bankName)!=null?C:s}),c.filter(b=>n.some(y=>y.bankId===b.bankId))):c}handleLocalTransferBanks(t,n,a){var u;if(!this.hasIBT)return this.mergeBanks(t,n);let s=f=>f.bankId===this.method.bankId;if(!a)return t.filter(s);let c=this.filterBanksByMemBanks(t,n,f=>f.bankId===this.method.bankId);return c.length===0&&((u=this.pageData.memInfo)==null?void 0:u.isBankCountReachLimit)===!1?(this.canAddBank=!0,t.filter(s)):c.length===0?[{bankId:"",bankName:this.globalData.translateString("depositPage.pleaseSelect")}]:c}handleInterBankTransfer(t,n,a){var c;let s=[];if(((c=this.pageData.memInfo)==null?void 0:c.isBankCountReachLimit)===!1){let u=new Map;t.forEach(C=>{u.has(C.bankId)||u.set(C.bankId,C)}),n.forEach(C=>{u.has(C.bankId)||u.set(C.bankId,C)});let f=t.find(C=>C.bankId===this.method.bankId);f&&!u.has(f.bankId)&&u.set(f.bankId,f),s=Array.from(u.values()),this.canAddBank=!0}else s=a?this.filterBanksByMemBanks(t,n):[...t],a&&n.forEach(u=>{s.some(f=>f.bankId===u.bankId)||s.push(u)});return s.length===0?[{bankId:"",bankName:this.globalData.translateString("depositPage.pleaseSelect")}]:(s.sort((u,f)=>u.bankId.localeCompare(f.bankId)),s)}filterBanksByPaymentType(t,n,a){let s=n.length>0;switch(a){case this.PAYMENT_TYPES.LOCAL_TRANSFER:return this.handleLocalTransferBanks(t,n,s);case this.PAYMENT_TYPES.INTER_BANK_TRANSFER:return this.handleInterBankTransfer(t,n,s);case this.PAYMENT_TYPES.MOMOPAY:return this.handleMomopayBanks(t,n,s);case this.PAYMENT_TYPES.SUNNPAY:return this.handleSunnpayBanks(t,n,s);default:return this.mergeBanks(t,n)}}updateEditingState(t){this.isEditing=!t,this.isEditing?this.addBankAccountNumberValidator():this.removeBankAccountNumberValidator(),this.showCancelEditAccount=t}getBankListforFastMember(t,n){return new Promise(a=>{var f;let s=C=>{this.fastBankInfoList=C,this.setAmountFloat(),a(C)};if(!this.isShowFastMemberBanking()){s(this.fastBankInfoList);return}let c=this.handleQZPayBanks(t,n);if(c!==null){s(c);return}let u=(f=this.globalData.acctInfo)==null?void 0:f.currency;this.httpService.getBankInfoList({currId:u}).subscribe(C=>{var q,U,H;if(C.code!==0||!((q=C.data)!=null&&q.length)){s([]);return}let b=C.data,y=(H=(U=this.pageData.memInfo)==null?void 0:U.memInfoBankList)!=null?H:[];this.canAddBank=!1,this.hasIBT=this.memberPaymentSetting.some(j=>j.paymentId===this.PAYMENT_TYPES.INTER_BANK_TRANSFER);let D=this.filterBanksByPaymentType(b,y,t);s(D),this.updateEditingState(y.length>0)})})}onBankChange(t,n){var s,c,u,f,C;if(this.isEditing=!1,this.removeBankAccountNumberValidator(),this.showEditAccount=!1,((c=(s=this.pageData.memInfo)==null?void 0:s.memInfoBankList)==null?void 0:c.length)==0){this.bankNameCtrl.patchValue(t),this.bankAccountNumberCtrl.reset(""),this.updateEditButtonVisibility(null),this.isEditing=!0,this.addBankAccountNumberValidator(),this.showCancelEditAccount=!1,((u=this.pageData.memInfo)==null?void 0:u.hasSetMemInfoBank)===!0&&((f=this.pageData.memInfo)==null?void 0:f.isBankCountReachLimit)===!0&&!this.canAddBank&&this.swalDialog.popMessage(this.globalData.translateString("depositPage.plsSetBankInfoMsg"));return}if(this.filteredAccounts=((C=this.pageData.memInfo)==null?void 0:C.memInfoBankList.filter(b=>b.bankId===t))||[],this.filteredAccounts.length===0){this.method.paymentId=="TRF"&&this.hasIBT&&!this.canAddBank?this.swalDialog.popMessage(this.globalData.translateString("depositPage.plsSetBankInfoMsg")):(this.bankNameCtrl.patchValue(t),this.bankAccountNumberCtrl.reset(""),this.updateEditButtonVisibility(null),this.isEditing=!0,this.addBankAccountNumberValidator(),this.showCancelEditAccount=!1);return}let a=this.filteredAccounts[0];if(n){let b=this.filteredAccounts.find(y=>y.bankAcctNo===n);b&&(a=b)}this.selectedBankDataId=a.id,this.bankNameCtrl.patchValue(a.bankId),this.bankAccountNumberCtrl.patchValue(a.bankAcctNo),this.updateEditButtonVisibility(a)}onAccountChange(t){let n=this.filteredAccounts.find(a=>a.bankAcctNo===t);this.selectedBankDataId=n==null?void 0:n.id,this.updateEditButtonVisibility(n)}updateEditButtonVisibility(t){this.showEditAccount=!!t&&t.isMemtranPending===!1&&t.verifiedDate===null,this.selectedBankDataId=t?t.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(t,n){return n.id}resetMemberBank(){this.isShowFastMemberBanking()&&(this.bankNameCtrl.setValue(""),this.bankAccountNumberCtrl.reset(),this.bankAccountNameCtrl.reset(),this.bankNameCtrl.markAsUntouched(),this.bankNameCtrl.markAsPristine())}getLastDepositInfo(t,n){var c,u;if(!(this.fastBankInfoList.length&&this.isShowFastMemberBanking()||this.isShowFastMemberWalletAddress()))return;if(t!=="PCrp"&&this.pageData.lastMemTran){let{memBankId:f}=this.pageData.lastMemTran,C=(u=(c=this.pageData)==null?void 0:c.memInfo)==null?void 0:u.memInfoBankList.find(D=>
1D.bankId===f),b=f!=null?f:"",y=C!=null?C:"";this.initBank(b)}let s={methodId:t,payType:n};this.httpService.getLastDepositInfo(s).subscribe(f=>{var b;let C=(b=f==null?void 0:f.data)==null?void 0:b.lastDepositInfoDto;this.lastDepositInfo=C,C?t=="PCrp"&&this.initCryptoWallet(C):(this.isShowFastMemberBanking()&&this.initBank(this.bankNameCtrl.value,this.bankAccountNumberCtrl.value),this.isShowFastMemberWalletAddress()&&this.initCryptoWallet())})}initBank(t,n){var a,s,c,u;this.bankAccountNameCtrl.setValue((s=(a=this.pageData.memInfo)==null?void 0:a.memName)!=null?s:""),this.fastBankInfoList.some(f=>f.bankId===t)?this.onBankChange(t,n):this.onBankChange(((c=this.fastBankInfoList[0])==null?void 0:c.bankId)||"",((u=this.fastBankInfoList[0])==null?void 0:u.bankAccountNo)||"")}initCryptoWallet(t){let{network:n,walletAddress:a}=t!=null?t:{};n?(this.networkCtrl.setValue(n),this.merchantNetworkCtrl.setValue(n)):this.initNetworkData(),a?this.usdtCtrl.setValue(a):this.initWalletAddressData()}setCountryCode(){var t,n;if((t=this.memInfo)!=null&&t.phoneVerify)this.depositForm.memContactCountry=this.memInfo.contactCountry,this.depositForm.memContactNumber=this.memInfo.contactNumber;else{let a=tt();this.depositForm.memContactCountry=a.get((n=this.globalData.acctInfo)==null?void 0:n.currency)}}initNetworkData(){var t,n,a,s,c,u;this.networkShow.some(f=>{var C,b,y;return f.code===((y=(b=(C=this.pageData)==null?void 0:C.memInfo)==null?void 0:b.memInfoCrypto)==null?void 0:y.network)})?(this.networkCtrl.setValue((a=(n=(t=this.pageData)==null?void 0:t.memInfo)==null?void 0:n.memInfoCrypto)==null?void 0:a.network),this.merchantNetworkCtrl.setValue((u=(c=(s=this.pageData)==null?void 0:s.memInfo)==null?void 0:c.memInfoCrypto)==null?void 0:u.network)):(this.networkCtrl.setValue(""),this.merchantNetworkCtrl.setValue(""))}initWalletAddressData(){var n,a,s;let t=((s=(a=(n=this.pageData)==null?void 0:n.memInfo)==null?void 0:a.memInfoCrypto)==null?void 0:s.walletAddress)||"";this.usdtCtrl.setValue(t||"")}updateMemInfo(){return Je(this,null,function*(){yield this.accountInfoService.loadAccountData(),this.memInfo=this.accountInfoService.memData,this.setCountryCode()})}updateProfileData(){return Je(this,null,function*(){yield this.accountInfoService.loadProfileData()})}getContactCountryCodeList(){this.httpService.getContactCountryCodeList({}).subscribe(t=>{t.code===0&&(this.countryCodeList=t.data)})}createFastLoginMemberFormGroup(){this.fastLoginMemberForm=this.fb.group({bankName:["",[te.required,this.formValidators.createBankNameValidator()]],bankAccountNumber:["",[te.required]],bankAccountName:["",[te.required,this.formValidators.createBankAccountNameValidator()]]})}addBankAccountNumberValidator(){let t=this.fastLoginMemberForm.get("bankAccountNumber");t&&(t.addValidators(this.formValidators.createBankAccountNumberValidator()),t.updateValueAndValidity())}removeBankAccountNumberValidator(){let t=this.fastLoginMemberForm.get("bankAccountNumber");t&&(t.clearValidators(),t.addValidators([te.required]),t.updateValueAndValidity())}createFastLoginMemberUSDTWallet(){this.fastUSDTForm=this.fb.group({network:["",[te.required,this.formValidators.createNetwork()]],walletAddress:["",[te.required,this.formValidators.createWalletAddress()]]})}createMerchantNetwork(){this.merchantNetworkForm=this.fb.group({merchantNetwork:["",[te.required,this.formValidators.createNetwork()]]})}changeBankPadEndForFastMem(){this.bankAccountNumberCtrl.valueChanges.subscribe(t=>{this.calcBankPadEndForFastMem(t)})}calcBankPadEndForFastMem(t){t?this.bankPadEndNum="."+t.slice(-2).padEnd(3,0):this.bankPadEndNum=".000"}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 merchantNetworkCtrl(){return this.merchantNetworkForm.controls.merchantNetwork}isShowFastMemberPhone(){var t;return this.showPhoneInfo=((t=this.method)==null?void 0:t.verifyInfo)=="phoneNumber",!!(this.showPhoneInfo&&!this.accountInfoService.n
1otAllowEditPhone)}isShowFastMemberBanking(){var t;return this.showBankInfo=((t=this.method)==null?void 0:t.verifyInfo)=="bank",!!this.showBankInfo}isShowFastMemberWalletAddress(){var t;return this.showWalletAddress=((t=this.method)==null?void 0:t.verifyInfo)=="walletAddress",!!(this.showWalletAddress&&!this.accountInfoService.notAllowEditWalletAddress)}getMerchantIdForPhoneVerify(){var n,a;let t=((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(t||"")}checkIsMemberNeedPhoneVerify(){var a;if(((a=this.globalData.acctInfo)==null?void 0:a.currency)!=="THB"){this.isThbPhoneVerifyRequired=!1;return}let t=this.getMerchantIdForPhoneVerify();if(t==null){this.isThbPhoneVerifyRequired=!1;return}if(!(!!this.globalData.isLogin&&localStorage.getItem("isLogin")==="true")){this.isThbPhoneVerifyRequired=!1;return}this.httpService.isMemberNeedPhoneVerify({merchantId:t}).subscribe(s=>{var c;s.code===0&&(this.isThbPhoneVerifyRequired=!!((c=s.data)!=null&&c.needVerify))})}blockThbUnverifiedSubmit(){var n,a,s,c;let t=!!((n=this.memInfo)!=null&&n.phoneVerify)||!!((s=(a=this.pageData)==null?void 0:a.memInfo)!=null&&s.phoneVerify);return((c=this.globalData.acctInfo)==null?void 0:c.currency)==="THB"&&!t&&this.isThbPhoneVerifyRequired?(this.isThbPhoneVerifyRequired=!0,this.globalData.showDirectAlert("freeBets.pleaseVerifyPhone",0),!0):!1}shouldShowThbPhoneVerifyPopup(){var t;return((t=this.globalData.acctInfo)==null?void 0:t.currency)==="THB"&&!!this.memInfo&&this.isThbPhoneVerifyRequired}handleThbPhoneVerified(t){var n;this.memInfo=Ke(be(be({},this.memInfo),t),{phoneVerify:!0}),(n=this.pageData)!=null&&n.memInfo&&(this.pageData.memInfo=Ke(be(be({},this.pageData.memInfo),t),{phoneVerify:!0})),this.depositForm.memContactCountry=t.contactCountry,this.depositForm.memContactNumber=t.contactNumber,this.isThbPhoneVerifyRequired=!1}submitBtnStyle(){var t;return this.paymentSetting.paymentId=="POkp"&&((t=this.calculateData.netMoney)==null?void 0:t.toString().indexOf("."))>-1?"btn-cancel":this.isShowFastMemberBanking()?this.fastLoginMemberForm.valid?"btn-submit":"btn-cancel":this.isShowFastMemberWalletAddress()?this.fastUSDTForm.valid&&this.merchantNetworkForm.valid?"btn-submit":"btn-cancel":"btn-submit"}isSubmitDisabled(){var t;return this.paymentSetting.paymentId=="POkp"&&((t=this.calculateData.netMoney)==null?void 0:t.toString().indexOf("."))>-1?!0:this.isShowFastMemberBanking()?!this.fastLoginMemberForm.valid:this.isShowFastMemberWalletAddress()?!this.fastUSDTForm.valid||!this.merchantNetworkForm.valid:!1}isBase64Image(t){return/^data:image\/[^;]+;base64,[A-Za-z0-9+/=]+$/.test(t)}focusMemAccountNoInput(){this.memAccountNoInput.nativeElement.focus()}handleAccountNameOption(){var s;let t=(s=this.memberPaymentSetting.find(c=>c.paymentId==="PMpa"))==null?void 0:s.accountSetting;if(!t)return[];let n=t.accountId.split(",").map(c=>c.trim()),a=t.accountName.split(",").map(c=>c.trim());return this.depositForm.accountId=n[0]||"",n.map((c,u)=>({value:c,label:a[u]||c}))}isShowColumn(t){if(!this.method||!this.method.displayColumns||!Array.isArray(this.method.displayColumns))return!1;let n=(t||"").toLowerCase();return this.method.displayColumns.some(a=>(a.columnName||"").toLowerCase()===n)}isMandatoryColumn(t){if(!this.method||!this.method.displayColumns||!Array.isArray(this.method.displayColumns))return!1;let n=(t||"").toLowerCase(),a=this.method.displayColumns.find(s=>(s.columnName||"").toLowerCase()===n);return a?!!a.isMandatory:!1}};o.\u0275fac=function(n){return new(n||o)(z(hn),z(fn),z(gn),z(_e),z(wn),z(vn),z(Cn),z(Gt),z(Ee),z(Dn),z(un,8),z(cn),z(Ne),z(Bt),z(yn),z(Rt),z(Ot))},o.\u0275cmp=wt({type:o,selectors:[["app-deposit"]],viewQuery:function(n,a){if(n&1&&Ft(Uo,5),n&2){let s;Mt(s=kt())&&(a.memAccountNoInput=s.first)}},standalone:!0,features:[At([En,Nn,Bn,Vn,_e,Ne,Ee,Ht]),Tt],decls:21,vars:17,consts:[["uploadFileTemplate",""],["fileInput",""],["selectMode",""],["memAccountNoInput",""],["PhoneNumber",""],["PulsaPhone",""],["walletAddress",""],["Amt",""],["Amt1",""],[3,"title"],[3,"displayMemberInfo"],[1,"acc-topic"],["ngClass","active"],[3,"routerLink"],[3,"ngIf"],["class","mask popup",3,"click",4,"ngIf"],[3,"memInfo","countryCodeList","verified",4,"ngIf"],[3,"PaymentSelectChange","paymentSettingList"],[1,"acc-block","under-topic"],["class","money-info-box",3,"ngClass",4,"ngIf"],[1,"deposit-col"],[1,"form","trans-form"],["for","dTransferMethod"],[1,"select",3,"click","ngClass"],["class","target",4,"ngIf"],["class","value",4,"ngIf"],[1,"select-btn"],[1,"icon-bannerarrow"],[4,"ngIf"],[1,"bonus-popup",3,"ngClass"],[1,"popup-title"],[1,"select-close-btn",3,"click"],[1,"icon-Close"],[1,"upload-choice"],[1,"item",3,"hidden"],["for","image",1,"file-input"],["id","image","type","file","observeFiles","",3,"change"],[1,"icon-Image"],["class","item",4,"ngIf"],["class","select-close-btn",3,"click",4,"ngIf"],["class","promotion-choice",4,"ngIf"],["class","btn-group","data-show","web-window",4,"ngIf"],[1,"money-info-box",3,"ngClass"],[1,"target"],[1,"value"],["class","trans-form-box slide-show",4,"ngIf"],[1,"trans-form-box","slide-show"],["class","qrcode-img",4,"ngIf"],[1,"loading-img",3,"ngStyle"],[1,"qrcode-img"],["alt","",3,"src"],[3,"formGroup",4,"ngIf"],["class","form",4,"ngIf"],[1,"btn-group"],["app-debounce-click","",3,"debounceClick","ngClass","disabled"],[3,"formGroup"],[1,"form"],["for","bankName"],[1,"select-box"],["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","name","memAccountName","readonly","",4,"ngIf"],["for","memAccountNo"],[1,"select-box-bankAcctNo"],[4,"ngIf","ngIfElse"],[1,"btn-more-info",3,"click"],[1,"icon-enquiry"],["class","tooltip",4,"ngIf"],["class","deposit_info only-notice",3,"ngClass",4,"ngIf"],[3,"value"],[1,"error"],["type","text","formControlName","bankAccountName","id","memAccountName",3,"keyup","change","ngClass"],["type","text","formControlName","bankAccountName","name","memAccountName","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,"tooltip"],[1,"deposit_info","only-notice",3,"ngClass"],[1,"notice"],["for",""],["formControlName","network",3,"change","ngClass"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","text","formControlName","walletAddress",3,"ngClass"],["for","dPhoneNumber"],[1,"mobile-input-group"],[1,"select-dropdown"],["name","dCountryCode",3,"ngModelChange","change","ngModel","disabled","ngStyle"],[4,"ngFor","ngForOf"],["type","text","name","dPhoneNumber","inputmode","numeric","pattern","[0-9]*","maxlength","15",3,"ngModelChange","ngModel"],[3,"value","selected"],["for","dAmount"],["class","choice-list",4,"ngIf"],["class","deposit_info",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"acc-info-box"],[1,"title"],[1,"user-content"],[1,"copy-btn",3,"click"],[1,"icon-Copy"],["class","success-msg fade-out",4,"ngIf"],[1,"success-msg","fade-out"],["class","acc-info-box",4,"ngIf"],["for","dOrderType"],["data-show","mobile",1,"select-dropdown"],["name","dOrderType",3,"ngModel","ngModelChange",4,"ngIf"],["name","dOrderType",3,"ngModelChange","ngModel"],["for","dCode"],["type","text","name","dCode","inputmode","numeric","pattern","[0-9]*",3,"ngModelChange","ngModel"],["type","text","name","dCode",3,"ngModelChange","ngModel"],["type","text","readonly","",3,"value"],[1,"form",3,"ngClass"],["class","wallet-address-box",4,"ngIf"],["class","trans-form-box",4,"ngIf"],["formControlName","merchantNetwork",3,"change","ngClass"],[1,"getcode-group"],[1,"wallet-address-box"],["type","text","name","","id","","readonly","",3,"title","value"],[1,"trans-form-box"],["type","text","name","dAmount","inputmode","numeric","pattern","[0-9]*",3,"ngModelChange","click","ngModel"],[1,"input-group"],["type","text","name","dAmount1","inputmode","numeric","pattern","[0-9]*","maxlength","3",1,"inside-input",3,"ngModelChange","click","ngModel"],["class","form_info",4,"ngIf"],[1,"form_info"],[1,"icon-Information"],[1,"form_info-notice"],["type","text","name","dAmount","inputmode","numeric","pattern","[0-9]*",3,"ngModelChange","ngModel"],["type","text","maxlength","3","readonly","",1,"inside-input",3,"ngModelChange","ngModel"],[1,"choice-list"],[3,"click"],[1,"deposit_info"],["type","button",1,"btn-more-info",3,"click"],[1,"notice",3,"ngStyle"],[1,"secondary-notice"],[1,"promotion-select",3,"click"],[1,"icon-triangle"],["for","fBonus"],["type","text","name","fBonus","readonly","",3,"ngModelChange","ngModel"],["for","dActualMoney"],["type","text","name","dActualMoney","readonly","",3,"ngModelChange","ngModel"],["for","dRemark"],["type","text","name","dRemark","maxlength","100",3,"ngModelChange","ngModel"],["for","wFee"],["type","text","name","wFee","readonly","",3,"ngModelChange","ngModel"],["for","wNetMoney"],["type","text","name","wNetMoney","readonly","",3,"ngModelChange","ngModel"],["type","text","name","cryptoRate","readonly","",3,"value"],["type","text","name","cryptoAmount","readonly","",3,"ngModelChange","ngModel"],["type","text",3,"ngModelChange","ngModel","placeholder"],["data-show","mobile",1,"select-box"],[3,"ngModelChange","ngModel"],["type","number","readonly","",3,"value"],["type","text",3,"ngModelChange","ngModel"],["for","dQzPayBankAcctName"],["type","text","name","dQzPayBankAcctName",3,"ngModelChange","ngModel","readonly"],[1,"content"],["for","dPTopBankAcctName"],["type","text","name","dPTopBankAcctName",3,"ngModel","readonly","ngModelChange",4,"ngIf"],["type","text","name","dPTopBankAcctName",3,"ngModelChange","ngModel","readonly"],["type","text","name","dAmount","inputmode","numeric","pattern","[0-9]*",3,"ngModelChange","blur","ngModel"],[1,"content",2,"display","block"],[3,"innerHTML"],["for","cryptoRate"],["type","text","name","cryptoRate","readonly","",3,"ngModelChange","ngModel"],["for","cryptoAmount"],[1,"item"],[1,"file-input",3,"click"],[1,"icon-Photograph"],[1,"promotion-choice"],[1,"item",3,"click"],["type","radio","name","fPromo",1,"default-radio",3,"ngModelChange","value","ngModel","checked"],["for","fPromo"],[1,"icon-promo-close"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"icon-Bonus"],["data-show","web-window",1,"btn-group"],[1,"btn-cancel",3,"click"],[1,"btn-submit",3,"click"],[1,"mask","popup",3,"click"],[3,"verified","memInfo","countryCodeList"],["class","upload-select",3,"click",4,"ngIf"],["class","upload-select active",4,"ngIf"],[1,"upload-select",3,"click"],[1,"icon-add-file"],[1,"upload-select","active"],[1,"icon-open_plus",3,"click"]],template:function(n,a){if(n&1){let s=S();k(0,"app-title-nav",9),g(1,"translate"),p(2,"main"),k(3,"app-account-nav",10),p(4,"div",11)(5,"ul")(6,"li",12)(7,"a"),d(8),g(9,"translate"),l()(),p(10,"li")(11,"a",13),d(12),g(13,"translate"),l()()()(),v(14,hs,42,34,"ng-template",14)(15,fs,1,0,"div",15)(16,ys,1,0,"div",15)(17,Cs,1,2,"app-thb-phone-verify",16),p(18,"app-payment-select",17),A("PaymentSelectChange",function(u){return x(s),I(a.changePaymentSelect(u))}),l(),v(19,vs,1,1,"ng-template",null,0,et),l()}n&2&&(m("title",h(1,10,"depositPage.pageTitle")),r(3),m("displayMemberInfo",a.globalData.isMobileStyle),r(5),P(h(9,12,"depositPage.bankTransfer")),r(3),m("routerLink",Nt(16,qo)),r(),P(h(13,14,"accountPage.withdraw")),r(2),m("ngIf",a.pageData),r(),m("ngIf",a.isPromotionListOpen),r(),m("ngIf",a.uploadImgService.isShowUpload),r(),m("ngIf",a.shouldShowThbPhoneVerifyPopup()),r(),m("paymentSettingList",a.memberPaymentSetting))},dependencies:[Sn,kn,Ut,Kt,Wt,Mn,dn,en,rn,sn,Jt,an,tn,Zt,Xt,pn,ln,$t,qt,zt,mn,nn,on,_n,Yt,_e,Lt,Vt,An,Tn,jt,Qt],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-box-bankAcctNo[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;text-overflow:ellipsis}.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}'],data:{animation:[bn,Pn,xn,In]}});let i=o;return i})();export{zp as DepositComponent};
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.