1import{l,r as n,A as t,F as D}from"./index.3a9dafa4.1791296062701.js";import{P as L,I as T,T as s,B as C}from"./PopupMolecules.b453ac63.1791296062701.js";import{T as v,P as k}from"./wy789-route.ecc579ef.1791296062701.js";import{u as E,T as z,D as A}from"./TransactionHistoryFilter.2e5088e6.1791296062701.js";import{u as B}from"./agentation.f767b108.1791296062701.js";import"./index.d5e91f24.1791296062701.js";import"./warning.883c7a3c.1791296062701.js";import"./modal.action.295a0c75.1791296062701.js";import"./store.21ed66ad.1791296062701.js";import"./floatingNotification.constant.27687fe7.1791296062701.js";import"./dayjs.min.ac636f31.1791296062701.js";import"./matchPredictionModules.5c68d79f.1791296062701.js";import"./oddsFeedModules.e8376b26.1791296062701.js";import"./promotionModules.5b844e27.1791296062701.js";import"./index.4130f7f5.1791296062701.js";import"./react-datepicker.min.8c5fcc67.1791296062701.js";import"./index.bdec9ad0.1791296062701.js";import"./user-hook.0ab6f138.1791296062701.js";import"./password-hook.1d1f086e.1791296062701.js";import"./register-hook.e51ef1b6.1791296062701.js";import"./register-util.abc55807.1791296062701.js";import"./phone-based-placeholder-email.e43e970f.1791296062701.js";import"./login-hook.26cc976c.1791296062701.js";import"./general.71fff540.1791296062701.js";import"./selector.4b536653.1791296062701.js";import"./index-layout-1.52b72ae1.1791296062701.js";import"./useDataTheme.a6d91962.1791296062701.js";import"./loading.selector.a9414db7.1791296062701.js";import"./LoadingTopBar.0fe3ed45.1791296062701.js";import"./pixel-postback-hook.3d501c38.1791296062701.js";import"./fingerprint.50bbb56a.1791296062701.js";import"./tslib.es6.d6bf15df.1791296062701.js";import"./routerChangeHandler.7cc8d8a9.1791296062701.js";import"./withTranslation.58cd6d09.1791296062701.js";import"./route.action.36ad3e05.1791296062701.js";import"./pwa-hook.098e4478.1791296062701.js";const Nt=({onClose:d})=>{const{t:o}=B(),a=l.useSelector(e=>e.user),[x,u]=n.useState([]),h=l.useSelector(e=>e.modal?.toggleModal?.depositPopup),{transactions:m,filters:g,setFilters:j,isLoading:i,isPageLoading:N,error:p,fetchData:b,currentPage:P,totalPages:c,changePage:M}=E(h,"D"),[r,S]=n.useState(null),f=()=>window.SPL_Member.getExpressDepositMerchantAndMemberBank().then(e=>{e&&u(e?.data?.merchantBankList)}),y=()=>window.SPL_Transaction.getDepositMinMax({transactionOption:"E",currency:a?.account?.currency,merchantCode:window.merchantCode,bankCode:""}).then(e=>{e&&S(e)});return n.useEffect(()=>{Promise.allSettled([f(),y()])},[a]),t.jsx(L,{isOpen:"depositPopup",label:"home:home.mobile.deposit",className:"transaction-history-popup",onClose:d,children:t.jsxs("div",{className:"deposit-popup-content-wrapper",children:[(x||[]).map(e=>t.jsxs("div",{className:"deposit-popup-bank-container",children:[t.jsxs("div",{className:"deposit-bank-details-wrapper",children:[t.jsx(T,{src:a?.account?`/cms/public/payment/icons/Bank/${a.account.currency}/${e.bankCode}.png`:"/public/html/images/default_bank.png",alt:`${e.name} logo`,className:"bank-icon",width:"50px",height:"50px",aspectRatio:"1/1",onError:w=>{w.target.src="/public/html/images/default_bank.png"}}),t.jsxs("div",{className:"deposit-bank-content",children:[t.jsx(s,{text:e.name,textSize:"md",className:"text-atoms-light"}),t.jsx(s,{text:e.accountName,textSize:"md",className:"text-atoms-light text-atoms-uppercase"}),t.jsx(s,{text:e.accountNumber,textSize:"md",className:"text-atoms-light"})]})]}),t.jsx(C,{className:"deposit-popup-button",onClick:()=>D.copy(o,e.accountNumber),children:t.jsx(s,{text:"global:copy",textSize:"sm",className:"text-atoms-light"})})]},e.id)),r&&t.jsx("div",{className:"deposit-limit-container",children:t.jsx(s,{textSize:"sm",type:"children",children:t.jsx("p",{className:"text-atoms text-atoms-md",children:o("wy7Template:minMaxLimit",{min:window.SPL_Other.formatAmountNoDecimal(r?.min,o),max:window.SPL_Other.formatAmountNoDecimal(r?.max,o)})})})}),t.jsx("div",{className:"deposit-popup-extra-content-container",children:t.jsx(s,{text:"wy7Template:depositWarning",textSize:"sm"})}),t.jsx(z,{value:g,onChange:j,onSearch:b,isLoading:i&&!N}),t.jsx("div",{className:"deposit-history-table-container","aria-busy":i,children:p?t.jsx(s,{text:"Failed to load history",textSize:"sm",className:"text-atoms-light error-message"}):i&&m.length===0?t.jsx("div",{className:"loading-spinner"}):t.jsx(v,{data:m,columns:A,tableClass:"deposit-history-table"})}),c>1&&!p&&t.jsx("fieldset",{className:"transaction-history-pagination",disabled:i,children:t.jsx(k,{currentPage:P,totalCount:c,onPageChange:M})})]})})};export{Nt as default};
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.