PageSourceSearch

https://ibiza99vip.xyz/static/js/863.0134f72f.chunk.js

js ibiza99vip.xyz collected 2026-09-30 05:08:58 UTC 50,690 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksemi_wallet=self.webpackChunksemi_wallet||[]).push([[863],{807:((ka,ea,i)=>{i.d(ea,{A:()=>S});var a=i(2540),u=i(3696),na=i(2688),N=i.n(na),ya=i(7839),la=i(3258),Y=i(6977),Aa=i(9787);S.propTypes={labelContainerStyle:N().any,onSelectTitle:N().string,onSelectItem:N().string,onSelectIcon:N().string,onClick:N().func,data:N().array,renderRow:N().any,placeholder:N().bool,title:N().string,middleText1CN:N().string,middleText2CN:N().string},S.defaultProps={placeholder:!1};function S({labelContainerStyle:ca,onSelectTitle:X,onSelectItem:ta,onSelectIcon:E,onClick:ra,data:da,renderRow:F,placeholder:ma,title:K,disabled:J,middleText1CN:ja="",middleText2CN:Z=""}){const[Ca,pa]=(0,u.useState)(!ma),_=(0,la.F0)(),[L,z]=(0,u.useState)(!1),oa=(0,u.useRef)(null),ua=()=>(0,a.jsx)("div",{className:"ddWithArrow-list-container center-item",children:(0,a.jsxs)("div",{id:"ddWithArrow-list",className:"ddWithArrow-list-style",onClick:()=>z(!1),children:[(0,a.jsxs)("div",{className:"ddWithArrow-list-title-container",children:[(0,a.jsx)("div",{style:{width:"42px"}}),(0,a.jsx)("div",{className:"ddWithArrow-list-title center-item",children:K}),(0,a.jsx)("div",{className:"center-item",children:(0,a.jsx)("img",{alt:"ddWithArrow-ddUp-icon",src:_.dropdown_up,className:"ddWithArrow-ddDown-icon"})})]}),da.map((H,va)=>(0,a.jsx)("div",{className:"ddWithArrow-item-outer-container",onClick:()=>{ra&&ra(),z(!1),pa(!0)},children:F(H,va)},va))]})});return(0,a.jsx)(Aa.A,{onClick:()=>{J||z(!0)},isOpen:L,setIsOpen:z,popUpElement:ua(),className:"ddWithArrow-fullWidth",children:(0,a.jsx)("div",{ref:oa,className:`ddWithArrow-label-container ${ca} ${J&&"disabled"}`,children:Ca?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"ddWithArrow-label-left-container center-item",children:E?(0,a.jsx)("img",{alt:"ddWithArrow-bank-icon",src:E,className:"ddWithArrow-selected-icon"}):(0,a.jsx)("div",{className:"bank-ddWithArrow-list-icon"})}),(0,a.jsxs)("div",{className:`ddWithArrow-label-mid-container ${J&&"disabled"}`,children:[(0,a.jsx)("div",{className:`ddWithArrow-label-midText1 ellipsis-text ${ja}`,children:X}),ta&&(0,a.jsx)("div",{className:`ddWithArrow-label-midText2 ellipsis-text ${Z}`,children:ta})]}),(0,a.jsx)("div",{className:"center-item",children:(0,a.jsx)("img",{style:J?{visibility:"hidden"}:{},alt:"ddWithArrow-ddDown-icon",src:_.dropdown_down,className:"ddWithArrow-ddDown-icon"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{width:"42px"}}),(0,a.jsx)("div",{className:"ddWithArrow-placeholder flex-1",children:K}),(0,a.jsx)("div",{className:"center-item",children:(0,a.jsx)("img",{alt:"ddWithArrow-ddUp-icon",src:_.dropdown_down,className:"ddWithArrow-ddDown-icon"})})]})})})}}),7839:(()=>{var ka={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"}}),8863:((ka,ea,i)=>{i.r(ea),i.d(ea,{default:()=>fe});var a=i(2540),u=i(3696),na=i(7435),N=i(2469),ya=i(6644),la=i(7244),Y=i(8680);
1const Aa={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};var S=i(8219),ca=i(3360),X=i(2052),ta=i(6053),E=i(6189),ra=i(7162),da=i(5796),F=i(3160),ma=i(4348),K=i(6946),J=(e,s,t)=>new Promise((n,m)=>{var c=o=>{try{r(t.next(o))}catch(x){m(x)}},l=o=>{try{r(t.throw(o))}catch(x){m(x)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(c,l);r((t=t.apply(e,s)).next())});const Z=({frameRef:e,isTopupBankRequired:s,children:t,bankCB:n,showContent:m=!0,depositMode:c="Auto"})=>{const l="register",r="deposit",o=(0,F.wA)(),[x,R]=(0,u.useState)(l),[O,j]=(0,u.useState)({}),[b,v]=(0,u.useState)(!0);(0,u.useLayoutEffect)(()=>(Q(),()=>{(0,S.Cv)(S.nD),(0,S.Cv)(S.iJ)}),[]);function Q(){v(!0),S.Ay.UserBankListVerified({showLoading:!1,success:f=>J(null,null,function*(){f.noData||(s?yield S.Ay.TopUpBankV3({depositMode:c,showLoading:!1,accNum:f.data[0].acctnum,bankCode:f.data[0].bankcode,success:k=>{var y,w,d,C,A,B;n==null||n({accounts:(d=(w=(y=k.data)==null?void 0:y.quickpay)==null?void 0:w.accounts)!=null?d:[],receipt:(B=(A=(C=k.data)==null?void 0:C.receipt)==null?void 0:A.accounts)!=null?B:[]}),o((0,K.MV)(k.data.quickpay)),o((0,K.lE)(k.data.receipt)),R(r),v(!1)},error:()=>{n==null||n({accounts:[]})}}):(R(r),v(!1)))}),noBankNavigate:f=>{const k=f.data.verifyingBank,y=f.data.bankCode,w=f.data.acctnum;R(l),j({isPendingVerifying:k,bankCode:y,acctnum:w}),v(!1),n==null||n({noBindBank:!0})},pendingVerifyCB:f=>{if(f.data){const k=f.data.find(y=>y.status===5||y.status===7);k&&(R(l),j({isPendingVerifying:!0,bankCode:k.bankcode,acctnum:k.acctnum}),v(!1),n==null||n({noBindBank:!0}))}}})}return m?b?(0,a.jsx)(X.A,{}):x==l?(0,a.jsx)(ma.A,{frameRef:e,fromDeposit:!0,registerData:O}):(0,a.jsx)(a.Fragment,{children:t}):null},pa=({frameRef:e,bankCB:s,showContent:t})=>(0,a.jsx)(Z,{frameRef:e,isTopupBankRequired:!0,bankCB:s,showContent:t,depositMode:"Auto",children:(0,a.jsx)(da.default,{showContent:t})});var _=i(2043),L=i(328),z=i(3258),oa=i(4093),ua=i(5549),H=i(6977);const va={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};function Fa({imgSrc:e}){const{popModal:s}=(0,H.hS)(),{t}=(0,Y.B)(),n=(0,z.sC)();return(0,a.jsx)("div",{className:"downloadImageModal-main-container",children:(0,a.jsxs)("div",{className:"downloadImageModal-container",children:[(0,a.jsx)("img",{src:n.modalClose,alt:"close",className:"downloadImageModal-close-icon",onClick:()=>{s()}}),(0,a.jsx)("div",{className:"downloadImageModal-content-container",children:(0,a.jsxs)("div",{className:"downloadImageModal-img-container",children:[(0,a.jsx)("img",{alt:"image",src:e,className:"downloadImageModal-img"}),(0,a.jsx)(L.A,{text:t("general.label.holdSaveImage"),btnClassName:"downloadImageModal-btn-container",btnTextClassName:"downloadImageModal-btn-txt"})]})})]})})}
1const Ua=Fa,je={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};var aa=i(1988),Na=i(8763),$=i(972),Ea=i(2689),La=i.n(Ea),ga=(e,s,t)=>new Promise((n,m)=>{var c=o=>{try{r(t.next(o))}catch(x){m(x)}},l=o=>{try{r(t.throw(o))}catch(x){m(x)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(c,l);r((t=t.apply(e,s)).next())});const za=({data:e,handleCancel:s})=>{var t,n;const{currency:m,csLineId:c}=(0,F.d4)(G=>G.company),{t:l}=(0,Y.B)(),[r,o]=(0,u.useState)(!1),{pushModal:x}=(0,H.hS)(),{pushMsgModal:R,popMsgModal:O}=(0,aa.Eg)();var j=new Date().getTime();const b=e.expiredAt==null||e.expiredAt==0?0:(e.expiredAt-j)/1e3,v=(0,z.Ao)(),Q=(0,N.formatAmount)(e.qrAmount||e.amt).split("."),[f,k]=(0,u.useState)(0),y=2;let w=La()(e.expiresAt).locale($.A.language);w=$.A.language==="th"?`${w.format("DD MMM YYYY hh:mm A").replace(w.year(),w.year()+543)}`:w.format("DD MMM YYYY hh:mm A");const d=()=>{k(G=>G+1)},C=G=>ga(null,null,function*(){const T=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent);let P="",p=0,h;T?h=5:h=1;let I=[],M=!0;for(;M&&p<h;)P=yield(0,ua.$E)(G,{cacheBust:!0,skipFonts:!0,filter:V=>{var q;return!((q=V.classList)!=null&&q.contains("excluded"))}}),p+=1,I[p]=P.length,P.length>I[p-1]&&(M=!1);return P});function A(G,T){return ga(this,null,function*(){const p=yield(yield fetch(G)).blob();return new File([p],T,{type:p.type})})}const B=()=>ga(null,null,function*(){const G=(I,M)=>{const V=document.createElement("a");V.download=I,V.href=M,V.click()},T=I=>{x(new H.rj({content:(0,a.jsx)(Ua,{imgSrc:I})}))};if(r)return;let P="";const p=`qr_${e.trxnId}.png`;let h=!1;try{o(!0);const I=document.getElementById("bankQrTkb-qr-main-container");if(!I)return;const M=navigator.userAgent;if(console.log("user agent ",M),(/android/i.test(M)||/iPhone|iPod/.test(M)||/iPad/.test(M)||M.includes("Macintosh")&&"ontouchend"in document)&&(h=!0),P=yield C(I),h){const V=yield A(P,p);if(navigator.canShare&&navigator.canShare({files:[V]})){yield navigator.share({files:[V]});return}else{T(P);return}}G(p,P)}catch(I){if((I==null?void 0:I.name)=="AbortError")return;if(P){h?T(P):G(p,P);return}R(new aa.Qb({content:(0,a.jsx)(Na.A,{title:"general.label.tryAgain",onClick:()=>{O()}})}))}finally{o(!1)}});return(0,a.jsxs)("div",{className:"bankQrTkb-main-container",children:[(0,a.jsx)(L.A,{text:l("bankQr.cancel"),btnClassName:"btnV2-container-cancel",btnTextClassName:"btnV2-btn-txt-cancel",onClick:()=>{s==null||s()}}),(0,a.jsxs)("div",{className:"bankQrTkb-qr-main-container",id:"bankQrTkb-qr-main-container",children:[(0,a.jsx)("div",{className:"bankQrTkb-qr-header-container",children:(0,a.jsxs)("div",{className:"bankQrTkb-timer-container",children:[(0,a.jsx)("div",{className:"bankQrTkb-timer-lbl",children:l("bankQr.depositWithin")}
1),(0,a.jsx)(oa.A,{className:"bankQrTkb-timer-countdown",expiresIn:b!=null?b:0,callback:()=>{s==null||s()}})]})}),(0,a.jsxs)("div",{className:"bankQrTkb-qr-container",children:[(0,a.jsxs)("div",{className:"bankQrTkb-qr-inner-container",children:[(0,a.jsx)("div",{className:"bankQrTkb-qr-expired-label",children:l("bankQr.expiredLbl",{value:w})}),(0,a.jsx)("div",{className:"bankQrTkb-qr-wrapper-container",children:(0,a.jsx)("img",{alt:"qr",className:"bankQrTkb-qr-img",src:e.url,onLoad:d})}),(0,a.jsx)("div",{className:"bankQrTkb-qr-remark",children:l("bankQr.qrRemark_2")}),(0,a.jsxs)("div",{className:"bankQrTkb-logo-container",children:[(0,a.jsx)("img",{alt:"logo",className:"bankQrTkb-qr-logo",src:v.ppLogo,onLoad:d}),(0,a.jsxs)("div",{className:"bankQrTkb-brand-info-container",children:[(0,a.jsx)("div",{className:"bankQrTkb-url-txt",children:window.location.origin}),(0,a.jsx)("div",{className:"bankQrTkb-line-txt",children:l("bankQr.lineLbl",{value:c==null?void 0:c[0]})})]})]})]}),(0,a.jsx)(L.A,{text:l(f===y?"bankQr.downloadQr":"bankQr.loading"),btnClassName:"bankQrTkb-download-btn-container excluded",btnTextClassName:"bankQrTkb-download-btn-txt",leftComponent:(0,a.jsx)("img",{alt:"download",src:v.download,className:"bankQrTkb-download-img"}),onClick:B,disable:!!(f!=y||r)})]})]}),(0,a.jsxs)("div",{className:"bankQrTkb-trnx-section-container",children:[(0,a.jsxs)("div",{className:"bankQrTkb-amt-lbl-container",children:[(0,a.jsxs)("div",{className:"bankQrTkb-amt-lbl",children:[l("bankQr.amountLbl")," (",m,")"]}),(0,a.jsx)("div",{className:"bankQrTkb-actual-value-lbl",children:l("bankQr.youGet",{value:e.orderAmount||e.amt})})]}),(0,a.jsxs)("div",{className:"bankQrTkb-amt-container",children:[(0,a.jsxs)("div",{className:"bankQrTkb-amt-currency",children:["(",m,")"]}),(0,a.jsxs)("div",{className:"bankQrTkb-amt-wrapper",children:[(0,a.jsx)("div",{className:"bankQrTkb-amt-value",children:Q[
10]}),(0,a.jsxs)("span",{className:"bankQrTkb-amt-decimal",children:[".",(t=Q==null?void 0:Q[1])!=null?t:"00"]})]}),(0,a.jsxs)("div",{className:"bankQrTkb-amt-currency hidden",children:["(",m,")"]})]}),(0,a.jsx)("div",{className:"bankQrTkb-trnx-lbl",children:l("bankQr.trnxId",{value:(n=e==null?void 0:e.trxnId)!=null?n:""})})]}),(0,a.jsxs)("div",{className:"bankQrTkb-tutorial-container",children:[(0,a.jsx)("div",{className:"bankQrTkb-tutorial-title",children:l("bankQr.tutorialTitle")}),(0,a.jsx)("div",{className:"bankQrTkb-tutorial-step",children:l("bankQr.tutorialStep")})]})]})},Ne={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"},Oa=({data:e,handleCancel:s})=>{const{t}=(0,Y.B)();var n=new Date().getTime();const m=e.expiredAt==null||e.expiredAt==0?0:(e.expiredAt-n)/1e3;return(0,a.jsxs)("div",{className:"bankQrProvider-main-container",children:[(0,a.jsx)(L.A,{text:t("bankQr.cancel"),btnClassName:"btnV2-container-cancel",btnTextClassName:"btnV2-btn-txt-cancel",onClick:()=>{s==null||s()}}),(0,a.jsx)(oa.A,{className:"bankQrProvider-hideTimer",expiresIn:m,callback:()=>{s==null||s()}}),(0,a.jsx)("iframe",{className:"bankQrProvider-iframe",src:e.url})]})};var xa=i(5436),wa=i(807),Ba=i(6333),Va=i(8615),Ya=i(7838);const Be={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};var ba=i(2744),Ta=i(7959),Ma=i(9250),$a=i(3957),qa=i.n($a),ha=i(2308),Sa=i(9689),Ka=Object.defineProperty,Ja=Object.defineProperties,Ha=Object.getOwnPropertyDescriptors,Ga=Object.getOwnPropertySymbols,Xa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,Pa=(e,s,t)=>s in e?Ka(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,fa=(e,s)=>{for(var t in s||(s={}))Xa.call(s,t)&&Pa(e,t,s[t]);if(Ga)for(var t of Ga(s))Za.call(s,t)&&Pa(e,t,s[t]);return e},_a=(e,s)=>Ja(e,Ha(s)),ae=(e,s,t)=>new Promise((n,m)=>{var c=o=>{try{r(t.next(o))}catch(x){m(x)}},l=o=>{try{r(t.throw(o))}catch(x){m(x)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(c,l);r((t=t.apply(e,s)).next())});const ee=({frameRef:e})=>(0,a.jsx)(Z,{frameRef:e,children:(0,a.jsx)(te,{frameRef:e})}),ne=()=>{var e,s;try{const t=sessionStorage.getItem(xa.c);if(t){let n=JSON.parse(t);if(n){const m=Math.floor(new Date().getTime());return((s=(e=n==null?void 0:n.data)==null?void 0:e.expiredAt)!=null?s:0)<=m?null:n}}return null}catch(t){return null}},te=({frameRef:e})=>{var s,t;const n="amount",[m,c]=(0,u.useState)({[n]:"0"}),{t:l}=(0,Y.B)(),[r,o]=(0,u.useState)(()=>ne()),{bank:x}=(0,F.d4)(({user:p})=>p),{currency:R}=(0,F.d4)(p=>
1p.company),{paymentMethod:O}=(0,F.d4)(p=>p.topUp),j=O==null?void 0:O.find(p=>p.payment==="BankQRDeposit"),[b,v]=(0,u.useState)(()=>r?x.find(h=>h.bankcode==r.data.userBankCode&&h.acctnum==r.data.userAccNum):x[0]),[Q,f]=(0,u.useState)(!1),k=(0,z.i1)(),y=(0,u.useRef)(null),w=(0,u.useRef)(null),d=(s=j==null?void 0:j.minDeposit)!=null?s:100,C=j==null?void 0:j.maxDeposit,{socket:A}=(0,Ma.Y)(),{pushMsgModal:B}=(0,aa.Eg)();(0,u.useEffect)(()=>{const p=h=>{h.trxnId===r.data.trxnId&&o(null)};return A==null||A.on("depositSuccess",p),()=>A==null?void 0:A.off("depositSuccess",p)},[A,(t=r==null?void 0:r.data)==null?void 0:t.trxnId]),(0,u.useEffect)(()=>{console.log("bank qr statte ",r),r?(0,N.setItemInSessionStorage)(xa.c,JSON.stringify(r)):sessionStorage.removeItem(xa.c)},[r]);const G=p=>{const{name:h,value:I}=p;c(M=>_a(fa({},M),{[h]:I}))};function T(){var p;(r==null?void 0:r.paymentType)=="tkb"&&S.Ay.BankQrCancel({trxnId:(p=r==null?void 0:r.data)==null?void 0:p.trxnId}),console.log("handle cancel"),o(null)}const P=()=>ae(null,null,function*(){(yield w.current.ValidateValue())&&(f(!0),S.Ay.BankQrTopUp({userBankCode:b.bankcode,userAccNum:b.acctnum,userAccName:b.acctname,amt:m[n].toString(),success:h=>{var I,M,V;const q=h.data.isProvider,ia=(M=(I=h==null?void 0:h.data)==null?void 0:I.expiresAt)!=null?M:0,W=new Date(ia).getTime();q?o({paymentType:"provider",data:fa({expiredAt:W},h.data)}):qa().head((V=h==null?void 0:h.data)==null?void 0:V.url).then(()=>{o({paymentType:"tkb",data:fa({expiredAt:W},h.data)})}).catch(()=>{var sa;S.Ay.BankQrCancel({trxnId:(sa=h==null?void 0:h.data)==null?void 0:sa.trxnId}),B(new aa.Qb({content:(0,a.jsx)(Na.A,{title:"dialog.err.somethingWrong"})}))})},error:h=>{console.log("err success ",h)}}).finally(()=>{f(!1)}))});return(0,a.jsxs)("div",{className:"bankQrMain-mainContainer",children:[(0,a.jsxs)(Va.A,{ref:w,submitBtnRef:y,frameRef:e,className:"bankQrMain-form-container",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"bankQrMain-cs-container",children:[(0,a.jsx)(Sa.A,{maxDeposit:C,minDeposit:d,speed:j==null?void 0:j.speed,amtAnimate:!0}),(0,a.jsx)(Ta.I,{className:r?"":"bankQrMain-hide-depositSupport"})]}),(0,a.jsx)("div",{className:"bankQrMain-label-container",children:(0,a.jsxs)("div",{className:"bankQrMain-trans-label",children:[l("general.label.transferFrom")," :"]})}),(0,a.jsx)(wa.A,{data:x,onSelectIcon:k.bank[b.bankcode],onSelectTitle:(0,N.getDisplayBankName)(b,$.A.language),onSelectItem:b.acctnum,title:l("withdraw.label.selectBank"),labelContainerStyle:"bankQrMain-dd-container",renderRow:(p,h)=>(console.log("item here ",p),(0,a.jsxs)("div",{className:"ddWithArrow-item-container",onClick:()=>{v(p)},children:[(0,a.jsx)("div",{className:"ddWithArrow-item-img-container center-item flex-1",children:(0,a.jsx)("img",{alt:"ddWithArrow-item-img",src:k.bank[p.bankcode],className:"img-31px"})}),(0,a.jsxs)("div",{className:"ddWithArrow-item-right-container",children:[(0,a.jsx)("div",{className:"ddWithArrow-item-right-row1 ellipsis-text",children:(0,N.getDisplayBankName)(p,$.A.language)}),(0,a.jsx)("div",{className:"ddWithArrow-item-right-row2 ellipsis-text",children:p.acctnum})]})]},h)),disabled:!!r})]}),!r&&(0,a.jsxs)("div",{className:"bankQrMain-amt-container","data-includedformchild":!0,children:[(0,a.jsxs)("div",{className:"bankQrMain-amt-lbl-container",children:[(0,a.jsx)("div",{className:"bankQrMain-amt-lbl",children:l("bankQr.enterDepositAmount")}),(0,a.jsxs)("div",{className:"bankQrMain-amt-sub-lbl-container",children:[(0,a.jsx)("div",{className:"bankQrMain-amt-range-lbl",children:(0,a.jsx)(Ba.x,{i18nKey:"bankQr.minLabel",values:{amt:`${(0,N.formatAmount)(d)} ${R}`},components:{highlight:(0,a.jsx)("span",{className:"bankQrMain-amt-min-lbl-bold"})}})}),(0,a.jsxs)("div",{className:"bankQrMain-speed-range-lbl",children:[(0,a.jsxs)("span",{children:[l("autoDeposit.label.speed")," < "]}),(0,a.jsx)("span",{className:"bankQrMain-amt-speed-lbl-bold",children:j!=null&&j.speed?(0,ba.formatTimeValue)(j==null?void 0:j.speed):"-"})]})]})]}),(0,a.jsx)(Ya.A,{isFormChild:!0,name:n,value:m[n],onChange:G,isRequired:!0,validation:p=>d&&C&&(p<d||p>C)?"general.errMsg.generalAmtRange":p<d?"general.errMsg.minAmtMsg":"",minValue:d,maxValue:C,transParam:{minAmt:(0,N.formatAmou
1nt)(d),maxAmt:(0,N.formatAmount)(C!=null?C:"\u221E")},selections:[100,200,300,500,1e3,3e3,5e3,1e4],isDecimal:!1,selectionPrefix:"+",showReset:!0,enableSelectionsMinFilter:!1})]}),!r&&(0,a.jsx)(L.A,{ref:y,text:l("general.btn.next"),btnClassName:"btnV2-container-row-center-p17-r10-mainshadow",btnTextClassName:"btnV2-btn-txt-s20-w700-cMain",onClick:P,disable:Q})]}),(r==null?void 0:r.paymentType)=="tkb"?(0,a.jsx)(za,{data:r==null?void 0:r.data,handleCancel:T}):(r==null?void 0:r.paymentType)=="provider"?(0,a.jsx)(Oa,{data:r==null?void 0:r.data,handleCancel:T}):null,j!=null&&j.isMaintenance?(0,a.jsx)(ha.A,{method:"bankQr",maintenanceTime:j.maintenanceTime}):null]})},re=ee,Te={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};var Ia=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(e,s)=>{var t={};for(var n in e)oe.call(e,n)&&s.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Ia)for(var n of Ia(e))s.indexOf(n)<0&&ie.call(e,n)&&(t[n]=e[n]);return t};function le(e){var s=se(e,[]);const{title:t,onConfirm:n,onCancel:m,onClose:c,btnTxt:l,cancelBtnTxt:r}=s,o=(0,z.sC)();return(0,a.jsx)("div",{className:"commonConfirmationModal-main-container ",children:(0,a.jsxs)("div",{className:"commonConfirmationModal-container",children:[(0,a.jsx)("div",{className:"commonConfirmationModal-header",children:(0,a.jsx)("div",{className:"commonConfirmationModal-title",children:t})}),(0,a.jsxs)("div",{className:"commonConfirmationModal-button-container",children:[(0,a.jsx)(L.A,{text:l,btnClassName:"commonConfirmationModal-button",btnTextClassName:"commonConfirmationModal-button-text",onClick:()=>n()}),(0,a.jsx)(L.A,{text:r,btnClassName:"commonConfirmationModal-cancel-button",btnTextClassName:"commonConfirmationModal-cancel-button-text",onClick:()=>m()})]}),(0,a.jsx)("img",{alt:"commonConfirmationModal-close-btn",src:o.modalClose,className:"commonConfirmationModal-close-btn",onClick:()=>c()})]})})}const ce=le,Me={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};
1function de({title:e,icon:s,buttonTxt:t,description:n,onClick:m,onClose:c}){const{popMsgModal:l}=(0,aa.Eg)(),r=(0,z.sC)();return(0,a.jsx)("div",{className:"iconMsgModal-main-container",children:(0,a.jsxs)("div",{className:"iconMsgModal-container",children:[(0,a.jsx)("div",{className:"iconMsgModal-title",children:e}),(0,a.jsx)("img",{className:"iconMsgModal-icon",src:s,alt:"iconMsgModal-icon"}),n&&(0,a.jsx)("div",{className:"iconMsgModal-description",children:n}),(0,a.jsx)("div",{className:"iconMsgModal-button-container",children:(0,a.jsx)(L.A,{text:t,btnClassName:"iconMsgModal-button",btnTextClassName:"iconMsgModal-button-text",onClick:()=>{l(),m&&m()}})}),(0,a.jsx)("img",{alt:"iconMsgModal-close-btn",src:r.modalClose,className:"iconMsgModal-close-btn",onClick:()=>c()})]})})}const Da=de;var Se=i(9373);const Ge={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"},Ra=({item:e,maintenanceMode:s=!1,showBottomBar:t=!0})=>{var n,m,c,l,r,o,x,R,O,j,b;const{t:v}=(0,Y.B)(),Q=(0,z.i1)(),f=(0,z.MW)(),{currency:k}=(0,F.d4)(({company:y})=>y);return s?(0,a.jsxs)("div",{className:"quickPayCard-maint-item-container",children:[(0,a.jsxs)("div",{className:"quickPayCard-bank-card-container-without-shadow",children:[(0,a.jsxs)("div",{className:"quickPayCard-bank-upper-container",children:[(0,a.jsxs)("div",{className:"quickPayCard-bank-image-name-container maintainence",children:[(0,a.jsx)("img",{src:(n=Q.bank[e==null?void 0:e.bankCode])!=null?n:"",className:"quickPayCard-bank-image maintainence",alt:"bank-image"}),(0,a.jsx)("div",{className:"quickPayCard-bank-name maintainence",children:(m=e==null?void 0:e.bankCode)!=null?m:"-"})]}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:"quickPayCard-bank-btn maintainence center-item",children:`${(c=e==null?void 0:e.remark)!=null?c:v("autoDeposit.label.maintainence")}`})})]}),(0,a.jsx)("div",{className:"quickPayCard-bank-bottom-container",children:(0,a.jsxs)("div",{className:"quickPayCard-bank-detail-container",children:[(0,a.jsx)("div",{className:"quickPayCard-bank-account-name-label maintainence",children:v("topUp.label.accName")}),(0,a.jsx)("div",{className:"quickPayCard-bank-account-name maintainence",children:(l=e==null?void 0:e.bankAccName)!=null?l:"-"}),(0,a.jsx)("div",{className:"quickPayCard-bank-account-no-label maintainence",children:v("autoDeposit.label.underMaintainence")}),(0,a.jsx)("div",{className:"quickPayCard-bank-account-no maintainence",children:v("autoDeposit.label.kindlyUseAnotherDeposit")})]})})]}),t&&(0,a.jsxs)("div",{className:"quickPayCard-quick-pay-item-bottom maintainence",children:[(0,a.jsxs)("div",{className:"flex-1 font16px-weight400",children:[(0,a.jsxs)("span",{className:"quickPayCard-maint-min-deposit-label-txt",children:[v("autoDeposit.label.minDeposit"),":"," "]}),(0,a.jsxs)("span",{className:"quickPayCard-maint-min-deposit-txt",children:[(r=e==null?void 0:e.minDeposit)!=null?r:"-"," ",k]})]}),(0,a.jsxs)("div",{className:"quickPayCard-card-bottom-info-font",children:[(0,a.jsxs)("span",{className:"quickPayCard-maint-speed-label-txt",children:[v("autoDeposit.label.speed")," < "]}),(0,a.jsx)("span",{className:"quickPayCard-maint-speed-txt",children:e!=null&&e.speed?(0,ba.formatTimeValue)(e==null?void 0:e.speed):"-"})]})]})]}):(0,a.jsxs)("div",{className:"quickPayCard-quick-pay-item-container",children:[(0,a.jsxs)("div",{className:"quickPayCard-bank-card-container",children:[(0,a.jsx)("div",{className:"quickPayCard-bank-upper-container",children:(0,a.jsxs)("div",{className:"quickPayCard-bank-image-name-container",children:[(0,a.jsx)("img",{src:(o=Q.bank[e==null?void 0:e.bankCode])!=null?o:"",className:"quickPayCard-bank-image",alt:"bank-image"}),(0,a.jsx)("div",{className:"quickPayCard-bank-name",children:(x=e==null?void 0:e.bankCode)!=null?x:"-"})]})}),(0,a.jsxs)("div",{className:"quickPayCard-bank-bottom-container",children:[(0,a.jsxs)("div",{className:"quickPayCard-bank-detail-container",children:[(0,a.jsx)("div",{className:"quickPayCard-bank-account-name-label",children:v("topUp.label.accName")}),(0,a.jsx)("div",{className:"quickPayCard-bank-account-name",children:(R=e==null?void 0:e.bankAccName)!=null?R:"-"}),(0,a.jsx)("div",{className:"quickPayCard-bank-account-no-label",children:v("topUp.label.accNum")}),(0,a.jsx)("div",{className:"quickPayCard-bank-account-no",id:"getBank.bankAcc",children:(O=e==null?void 0:e.bankAcc)!=null?O:"-"})]}),(0,a.jsx)("div",{className:"quickPayCard-bank-copy-btn-container center-item",children:(0,a.jsxs)("div",{className:"quickPayCard-bank-copy-btn center-item",onClick:()=>{var y;(0,N.ClipboardByString)((y=e==null?void 0:e.bankAcc)!=null?y:"-")},children:[(0,a.jsx)("img",{src:f.copy,className:"quickPayCard-bank-copy-btn-img",alt:"copy-account-no"}),v("autoDeposit.label.copy")]})})]})]}),t&&(0,a.jsxs)("div",{className:"quickPayCard-quick-pay-item-bottom",children:[(0,a.jsxs)("div",{className:"quickPayCard-card-bottom-info-font",children:[(0,a.jsxs)("span",{className:"quickPayCard-quick-pay-min-deposit-label-txt",children:[v("autoDeposit.label.minDeposit"),":"," "]}),(0,a.jsxs)("span",{className:"quickPayCard-quick-pay-min-deposit-txt",children:[(j=e==null?void 0:e.minDeposit)!=null?j:"-"," ",k]})]}),(0,a.jsxs)("div",{className:"quickPayCard-card-bottom-info-font",children:[(0,a.jsxs)("span",{className:"quickPayCard-quick-pay-speed-label-txt",children:[v("autoDeposit.label.speed")," "," < "]}),(0,a.jsxs)("span",{className:"quickPayCard-quick-pay-speed-txt",children:[(b=e==null?void 0:e.speed)!=null?b:"-",$.A.language==="th"?"":" ",v("autoDeposit.label.sec")]})]})]})]})};var me=i(7083),Qa=i(6585),pe=i(661),ue=i(8745);
1const Ie={mainBg:"var(--main-bg)",GameContainerBg:"var(--game-container-bg)",GameFilterBtnContainer:"var(--game-filter-btn-container)",GameFilterShadow:"var(--game-filter-shadow)",GameButtonCommonShadow:"var(--game-button-common-shadow)",AppGameUserInfoBackground:"var(--app-game-user-info-background)",AppGamePwInfoBackground:"var(--app-game-pw-info-background)",AppGameUserInfoTextColor:"var(--app-game-user-info-text-color)",AppGamePwInfoTextColor:"var(--app-game-pw-info-text-color)",FontSize16:"var(--fontSize16)",FontSize20:"var(--fontSize20)",MainTxt:"var(--main-txt)",AppGamePlayGameBackground:"var(--app-game-play-game-button-background)",MainBorder:"var(--main-border)",AppGamePlayGameBtnBorder:"var(--app-game-play-game-button-border)",AppGameWarningColor:"var(--app-game-warning-color)",AppGameAlertBackground:"var(--app-game-alert-background)",AppGamePlayGameText:"var(--app-game-play-game-text)",SubTxt:"var(--sub-txt)",BtnDisabledTxt:"var(--btn-disabled-txt)",BtnChangePassTxt:"var(--btn-change-pass-txt)",GameFilterSelected:"var(--game-filter-selected)",GameSearchIconBg:"var(--game-search-icon-bg)",GameSearchIconShadow:"var(--game-search-icon-shadow)",GameSearchIconBorder:"var(--game-search-icon-border)",SideMenuResponsiveWidth:"1281px",GreenTimer:"var(--timer-green)",YellowTimer:"var(--timer-yellow)",RedTimer:"var(--timer-red)"};var ve=i(9720),Wa=(e,s,t)=>new Promise((n,m)=>{var c=o=>{try{r(t.next(o))}catch(x){m(x)}},l=o=>{try{r(t.throw(o))}catch(x){m(x)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(c,l);r((t=t.apply(e,s)).next())});function ge({tabObject:e}){var s,t;const{socket:n}=(0,Ma.Y)(),m=(0,z.Mi)(),{t:c}=(0,Y.B)(),{pushModal:l,popModal:r}=(0,H.hS)(),o=(0,u.useRef)(null),{bank:x}=(0,F.d4)(({user:g})=>g),R=(0,z.i1)(),O=(0,F.wA)(),{csLineId:j,currency:b}=(0,F.d4)(({company:g})=>g),{receipt:v,paymentMethod:Q}=(0,F.d4)(({topUp:g})=>g),[f,k]=(0,u.useState)(null),[y,w]=(0,u.useState)(null),[d,C]=(0,u.useState)(!0),[A,B]=(0,u.useState)(!1),[G,T]=(0,u.useState)(!1),[P,p]=(0,u.useState)(!0),[h,I]=(0,u.useState)(!1),[M,V]=(0,u.useState)(()=>x[0]),q=[1,9,3,null],ia=[2,4];console.log("payment method ",Q);const W=Q==null?void 0:Q.find(g=>g.payment==="UploadReceiptV2");(0,u.useEffect)(()=>(S.Ay.CheckPendingDepositRequest({success:g=>{if(C(!1),g.status==="ok"&&g.data){const{latestRecord:D}=g.data;if(D){const U=D.status;U&&k(parseInt(D.status)),q.includes(U)?S.Ay.UpdateSeenStatus({transactionId:D.transactionId,showSpinner:!1,showErrDialog:!1}):w(D)}}}}),()=>{(0,S.Cv)(S.uE)}),[]),(0,u.useEffect)(()=>{console.log("testProgressData",y);const g=D=>{if(console.log("socketData",D),!y)return;const U=D==null?void 0:D.deposit;U&&(console.log("socketData status",U.status),y.transactionId==U.transactionId&&(w(U),k(parseInt(U.status)),U.status===1&&(ye(),w(null)),U.status===9&&(Ae(U.rejectReason),w(null))))};return n==null||n.on("uploadReceipt",g),()=>n==null?void 0:n.off("uploadReceipt",g)},[n,y]),(0,u.useEffect)(()=>{const g=v.accounts.every(D=>D.isMaintenance!=="N");p(!g),T(g)},[v]);const sa=()=>{o.current&&(o.current.value=null,o.current.click())},ke=g=>Wa(null,null,function*(){const D=g.target.files[0];if(D){if(D.size>1048576){I(!0),o.current&&(o.current.value=null);return}I(!1),T(!0),k(4),yield S.Ay.UploadReceiptV2({receipt:D,fromBankAccName:M.acctname,fromBankAccount:M.acctnum,fromBankCode:M.bankcode,toAccounts:v!=null&&v.accounts?JSON.stringify(v.accounts):null,
1spinner:!1,success:U=>{T(!1),U.data&&(k(2),w(U.data))},error:U=>{k(null),T(!1)}})}}),ye=()=>{l({content:(0,a.jsx)(Da,{title:c("uploadReceipt.depositSuccessModal.title"),icon:m.success,onClick:()=>{r(),B(!1)},onClose:()=>{r()},buttonTxt:c("uploadReceipt.depositSuccessModal.buttonTxt")}),showAnim:!0})},Ae=g=>{l({content:(0,a.jsx)(Da,{title:c("uploadReceipt.depositRejectModal.title"),icon:m.reject,onClick:()=>{r(),B(!1)},onClose:()=>{r()},description:$.A.exists(`uploadReceipt.depositRejectModal.${g}`)?c(`uploadReceipt.depositRejectModal.${g}`):c("uploadReceipt.depositRejectModal.DEFAULT"),buttonTxt:c("uploadReceipt.depositRejectModal.buttonTxt")}),showAnim:!0})},Qe=()=>Wa(null,null,function*(){B(!0),l({content:(0,a.jsx)(ce,{title:c("uploadReceipt.cancelTransactionModal.title"),onClose:()=>{r(),B(!1)},onConfirm:()=>{r(),S.Ay.CancelDepositByReceipt({transactionId:y.transactionId,success:()=>{w(null),k(3),O((0,ue.QX)(null)),B(!1)}})},onCancel:()=>{r(),B(!1)},btnTxt:c("uploadReceipt.cancelTransactionModal.buttonTxt"),cancelBtnTxt:c("uploadReceipt.cancelTransactionModal.cancelBtnTxt")}),showAnim:!0})}),We=({csLineId:g})=>(0,a.jsxs)("div",{className:"upload-receipt-chat-card-chatNow",onClick:()=>{window.open(`${pe.q.lineURL}${g}`,"_blank")},style:{cursor:"pointer"},children:[(0,a.jsx)("div",{className:"upload-receipt-chat-btn-imgCon center-item",children:(0,a.jsx)("img",{className:"upload-receipt-chat-img",src:m.lineIcon,alt:"line"})}),(0,a.jsx)("div",{className:"upload-receipt-chat-btn-txt",children:(0,a.jsx)(Qa.A,{children:c("uploadReceipt.contactSupport")})})]});return(0,a.jsxs)("div",{className:"upload-receipt-style",children:[d?(0,a.jsx)(X.A,{}):(0,a.jsxs)("div",{className:"upload-receipt-main-container",children:[(0,a.jsxs)("div",{className:"upload-receipt-cs-container",children:[(0,a.jsx)(Sa.A,{maxDeposit:W==null?void 0:W.maxDeposit,minDeposit:W==null?void 0:W.minDeposit,speed:W==null?void 0:W.speed,amtAnimate:!0}),(0,a.jsx)("div",{className:"upload-receipt-depositSupport-button-container",style:{visibility:f===8?"hidden":"visible"},children:(0,a.jsx)(Ta.I,{})})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"upload-receipt-transferFrom-txt",children:[c("uploadReceipt.label.transferFrom"),":"]})}),(0,a.jsx)(wa.A,{data:x,onSelectIcon:R.bank[M.bankcode],onSelectTitle:(0,N.getDisplayBankName)(M,$.A.language),onSelectItem:M.acctnum,title:c("withdraw.label.selectBank"),labelContainerStyle:"upload-receipt-dd-container",renderRow:(g,D)=>(0,a.jsxs)("div",{className:"ddWithArrow-item-container",onClick:()=>{V(g)},children:[(0,a.jsx)("div",{className:"ddWithArrow-item-img-container center-item flex-1",children:(0,a.jsx)("img",{alt:"ddWithArrow-item-img",src:R.bank[g.bankcode],className:"img-31px"})}),(0,a.jsxs)("div",{className:"ddWithArrow-item-right-container",children:[(0,a.jsx)("div",{className:"ddWithArrow-item-right-row1 ellipsis-text",children:(0,N.getDisplayBankName)(g,$.A.language)}),(0,a.jsx)("div",{className:"ddWithArrow-item-right-row2 ellipsis-text",children:g.acctnum})]})]},D),disabled:y||ia.includes(f)}),(0,a.jsxs)("div",{className:"upload-receipt-desc-container",children:[(0,a.jsx)("div",{className:"upload-receipt-desc-title-txt",children:c("uploadReceipt.title")}),(0,a.jsxs)("div",{className:"upload-receipt-description",children:[c("uploadReceipt.descriptions.desc_1"),(0,a.jsx)("br",{}),c("uploadReceipt.descriptions.desc_2"),(0,a.jsx)("br",{}),(0,a.jsx)(Ba.x,{i18nKey:"uploadReceipt.descriptions.desc_3",values:{timeValue:`${W!=null&&W.speed?(0,ba.formatTimeValue)(W==null?void 0:W.speed,"uploadReceipt.timeString.hours","uploadReceipt.timeString.minutes","uploadReceipt.timeString.secs"):"-"}`},components:{highlight:(0,a.jsx)("span",{className:"upload-receipt-speed-lbl-bold"})}}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{className:"upload-receipt-mini-description-text",children:c("uploadReceipt.descriptions.desc_mini")})]})]}),(0,a.jsxs)("div",{className:"upload-receipt-quick-pay-container",children:[(0,a.jsxs)("div",{className:"upload-receipt-toAcc-title",children:[c("uploadReceipt.toAccount"),":"]}),(0,a.jsx)("div",{className:"upload-receipt-bankList-container",children:v&&((s=v.accounts)!=null&&s.length)?v.accounts.map((g,D)=>(0,a.jsx)("div",{className:"upload-receipt-bank-container",children:(g==null?void 0:g.isMaintenance)==="Y"?(0,a.jsx)(Ra,{item:g,maintenanceMode:!0,showBottomBar:!1}):(0,a.jsxs)(a.Fragment,{children:[(g==null?void 0:g.isChanged)==="Y"?(0,a.jsx)(me.A,{}):null,(0,a.jsx)(Ra,{item:g,showBottomBar:!1})]})},"quickPay_"+D)):null})]}),P?(0,a.jsxs)(a.Fragment,{children:[q.includes(f)&&(0,a.jsxs)("div",{className:"upload-receipt-container",children:[(0,a.jsx)("img",{className:"upload-receipt-upload-image-icon",src:m.upload,alt:"Upload Icon"}),(0,a.jsx)(L.A,{disable:G,text:c("depositSupport.uploadReceipt"),btnClassName:"upload-receipt-button-container",btnTextClassName:"upload-receipt-button-text",onClick:sa}),(0,a.jsx)("input",{type:"file",accept:".jpg,.jpeg,.png,.webp",ref:o,style:{display:"none"},onChange:ke}),h&&(0,a.jsx)("div",{className:"upload-receipt-file-err-txt",children:c("uploadReceipt.fileSizeExceeded")})]}),ia.includes(f)&&(0,a.jsxs)("div",{className:"upload-receipt-verifying-container",children:[(0,a.jsx)("div",{className:"upload-receipt-loader-container",children:(0,a.jsx)("div",{className:"loader-spinner verifying"})}),(0,a.jsx)(L.A,{disable:!0,text:`${c("uploadReceipt.label.verifying")}`,btnClassName:"upload-receipt-verifying-button-container",btnTextClassName:"upload-receipt-verifying-button-text",disableBtnClassName:" ",disableBtnTextClassName:" "})]}),f===5&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"upload-receipt-verifying-container",children:[(0,a.jsx)("div",{className:"upload-receipt-loader-container",children:(0,a.jsx)("div",{className:"loader-spinner verifying"})}),(0,a.jsx)(L.A,{disable:!0,text:`${c("uploadReceipt.label.verifying")}`,btnClassName:"upload-receipt-verifying-button-container",btnTextClassName:"upload-receipt-verifying-button-text",disableBtnClassName:" ",disableBtnTextClassName:" "})]}),(0,a.jsxs)("div",{className:"upload-receipt-subtle-container",children:[(0,a.jsx)(ve.A,{className:"upload-receipt-subtle-container-circle"}),(0,a.jsx)("div",{className:"upload-receipt-subtle-content",children:(0,a.jsx)("span",{className:"upload-receipt-sublte-content-highlighted",children:c("uploadReceipt.bblMayDelay")})})]})]}),f===8&&(0,a.jsxs)("div",{className:"upload-receipt-pendingReview-container",children:[(0,a.jsx)("div",{className:"upload-receipt-loader-container",children:(0,a.jsx)("div",{className:"loader-spinner pendingReview"})}),(0,a.jsx)(L.A,{disable:!0,text:`${c("uploadReceipt.label.pendingReviewMsg")}`,btnClassName:"upload-receipt-pendingReview-button-container",btnTextClassName:"upload-receipt-pendingReview-button-text",disableBtnClassName:" ",disableBtnTextClassName:" "})]})]}):(0,a.jsx)(a.Fragment,{})]}),W!=null&&W.isMaintenance||((t=v==null?void 0:v.accounts)==null?void 0:t.length)===0||(e==null?void 0:e.isAvail)===!1?(0,a.jsx)(ha.A,{method:"receipt",maintenanceTime:W==null?void 0:W.maintenanceTime}):null]})}const xe=({frameRef:e,bankCB:s,tabObject:t})=>(0,a.jsx)(Z,{frameRef:e,isTopupBankRequired:!0,depositMode:"Receipt",bankCB:s,children:(0,a.jsx)(ge,{tabObject:t})});var be=i(4786),he=i(7673);const fe=()=>{var e,s;const t=(0,F.wA)(),n=(s=(e=(0,na.g)().section)==null?void 0:e.toLowerCase())!=null?s:"",m=(0,N.useNav)(),{t:c}=(0,Y.B)(),{paymentMethod:l}=(0,F.d4)(d=>d.topUp),{pendingCount:r}=(0,F.d4)(d=>d.withdraw),o=(0,u.useRef)(null),[x,R]=(0,u.useState)(!1),[O,j]=(0,u.useState)(!1),b=(0,u.useMemo)(()=>{var d;return console.log("paymentMethod:",l),[...(d=l==null?void 0:l.map(A=>{var B,G;const T=(B=A==null?void 0:A.payment)==null?void 0:B.toLowerCase(),P=T===E.VL.uploadReceiptV2;return{id:T,displayText:c(`paymentMethod.${(G=ca.A[T])==null?void 0:G.name}`),isAvail:!(A.isMaintenance||P&&O),icon:P?(0,a.jsx)(be.A,{size:14,className:"depositMain-tab-icon"}):void 0}}))!=null?d:[]]},[l,c,O]),v=b.find(d=>d.id==n),Q=!l||(l==null?void 0:l.length)==0||!v,f=(0,na.zy)(),{isInitLoad:k,manualSwitch:y}=(f==null?void 0:f.state)||{};(0,u.useEffect)(()=>{w(),S.Ay.GetWithdrawRequest({spinner:!1,count:!0})},[]),(0,u.useEffect)(()=>{var d;if(!l||l.length==0||!b||b.length==0)return;const C=b.find(A=>A.id==n.toLowerCase());if(console.log("find result ",C),C)n!=E.VL.auto&&R(!0);else{const A=(d=b[0])==null?void 0:d.id;A&&m(`/deposit/${A}`,{replace:!0})}},[b,l,n]),(0,u.useEffect)(()=>{var d,C;if(!(b!=null&&b.length))return;if(!b.every(B=>!(B!=null&&B.isAvail))){const B=(d=b.find(T=>T.id.toLowerCase()===n))==null?void 0:d.isAvail;if(!k&&B||y)return;const G=(C=b.find(T=>T.isAvail))==null?void 0:C.id;G&&m(`/deposit/${G}`,{replace:!0})}},[b,k,y]);function w(){S.Ay.GetPaymentMethod({success:d=>{console.log("payment metod ",d.data),t((0,K.Ye)(d.noData?d.noData.data:d.data))}})}return(0,a.jsx)("div",{ref:o,className:"depositMain-container container-padding",children:(0,a.jsxs)("div",{className:"depositMain-style",children:[(0,a.jsx)(ya.A,{title:c("general.title.deposit"),mainContCN:"depositMain-bankNav",rightComponent:(0,a.jsxs)("div",{className:"depositMain-record-container",onClick:()=>{m("/walletActivity")},children:[(0,a.jsx)(he.A,{size:12,className:"depositMain-record-icon"}),(0,a.jsx)(Qa.A,{className:"depositMain-record-txt-container",textClassName:"depositMain-record-txt",children:c("walletActivity.record")}),r>0?(0,a.jsx)("div",{className:"depositMain-record-badge",children:r}):null]}),children:l&&l.length===0?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"depositMain-maintenance-container",style:{margin:"24px 0"},children:(0,a.jsx)(ha.A,{method:"depositUnderMaintMessage"})})}):Q||!x&&n==E.VL.auto?(0,a.jsx)(X.A,{}):(0,a.jsx)("div",{className:"depositMain-multi-tab-main-container",children:(0,a.jsx)(la.A,{fixedWidth:!0,itemClassName:"depositMain-tab-item-container",selectedItemClassName:"depositMain-tab-item-container-selected",itemTxtClassName:"depositMain-tab-item-txt",tabObjects:b,selectedTabId:n,onSelectCallBack:d=>{if(n==d)return;const C=`/deposit/${d}`;m(C,{state:{manualSwitch:!0},replace:!0})}})})}),Q?null:(0,a.jsxs)("div",{style:{paddingTop:5,width:"100%"},children:[n==E.VL.auto&&(0,a.jsx)(pa,{showContent:x,frameRef:o,bankCB:({accounts:d,noBindBank:C})=>{if(x||(R(!0),C===!0))return;const A=b.find(B=>B.id==E.VL.bankQR);console.log("bank Qr Existed",A)}}),n==E.VL.trueWallet&&(0,a.jsx)(ra.A,{frameRef:o}),n==E.VL.promptPay&&(0,a.jsx)(ta.A,{frameRef:o}),n==E.VL.luckyPay&&(0,a.jsx)(_.A,{frameRef:o}),n==E.VL.bankQR&&(0,a.jsx)(re,{frameRef:o}
1),n==E.VL.uploadReceiptV2&&(0,a.jsx)(xe,{frameRef:o,tabObject:b.find(d=>d.id===E.VL.uploadReceiptV2),bankCB:({receipt:d})=>{if(!(d!=null&&d.length))j(!0);else{const C=d.every(A=>(A==null?void 0:A.isMaintenance)==="Y");j(!!C)}}})]})]})})}})}]);

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.