@everymatrix/player-account-controller-nd 1.88.6 → 1.88.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-cB5H2oSz.cjs → GeneralLogout-BGeryGqZ.cjs} +1 -1
- package/components/{GeneralLogout-CoJ1SQ6t.js → GeneralLogout-Bx6gwDEE.js} +1 -1
- package/components/{GeneralLogout-CX2Z3ypF.js → GeneralLogout-YvS8MR79.js} +1 -1
- package/components/{PlayerAccountBettingHistory-AF1lDKgO.js → PlayerAccountBettingHistory-CVAS6FWS.js} +1 -1
- package/components/{PlayerAccountBettingHistory-Cg_AJ6XH.js → PlayerAccountBettingHistory-DeC5CVuO.js} +1 -1
- package/components/{PlayerAccountBettingHistory-CsazI7Lo.cjs → PlayerAccountBettingHistory-DgD0I_pd.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CyZ5lF76.js → PlayerAccountBiometrics-BwplqCOF.js} +2 -2
- package/components/{PlayerAccountBiometrics-CKYEMZPq.cjs → PlayerAccountBiometrics-CL8q3TCI.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-Com6shey.js → PlayerAccountBiometrics-Yiy6Z-9D.js} +2 -2
- package/components/{PlayerAccountBiometricsAction-DY7JjDDw.cjs → PlayerAccountBiometricsAction-B2MVvsM3.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-Ckgla5DL.js → PlayerAccountBiometricsAction-DRv0VYIO.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-BVlFOzxF.js → PlayerAccountBiometricsAction-FcT370DJ.js} +1 -1
- package/components/{PlayerAccountClosureNd-B9jtGbtl.cjs → PlayerAccountClosureNd-CdxaqRvW.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-DGylWUgm.js → PlayerAccountClosureNd-DoJeC3uD.js} +1 -1
- package/components/{PlayerAccountClosureNd-CRorAoeX.js → PlayerAccountClosureNd-Ds98u1Np.js} +1 -1
- package/components/{PlayerAccountControllerNd-DlasYTZE.js → PlayerAccountControllerNd-B1SfXb6X.js} +27 -28
- package/components/{PlayerAccountControllerNd-JM0VQlgP.js → PlayerAccountControllerNd-Bx3-i6qs.js} +27 -27
- package/components/{PlayerAccountControllerNd-D8j1yUCo.cjs → PlayerAccountControllerNd-DPLFpUQv.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-B-YgfDR2.js → PlayerAccountGamingLimits-BLxQ8CAn.js} +2 -2
- package/components/{PlayerAccountGamingLimits-OzLFof4d.cjs → PlayerAccountGamingLimits-BpbKvA28.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-CdrMeV5Q.js → PlayerAccountGamingLimits-DXqrD7Td.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BB3x2LzE.js → PlayerAccountGamingLimitsConfirmationModal-BMKEV0ee.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CjvV0RIf.js → PlayerAccountGamingLimitsConfirmationModal-CBMah0GE.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Dh5lhX0t.cjs → PlayerAccountGamingLimitsConfirmationModal-a5wIKNhQ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-C98jmwjf.js → PlayerAccountGamingLimitsGroupEdit-DoOtJml3.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-CaQ60lAx.cjs → PlayerAccountGamingLimitsGroupEdit-YiYlDHDf.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-4h9OlIeD.js → PlayerAccountGamingLimitsGroupEdit-tEF6Cpb-.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2Nd-DcX5fMpi.js → PlayerAccountGamingLimitsHistory2Nd-CS6ykQ9L.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-LVOez_U2.cjs → PlayerAccountGamingLimitsHistory2Nd-Dps8Nbfw.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-DrctrpNO.js → PlayerAccountGamingLimitsHistory2Nd-hfU6Su3a.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-CSpV4k25.js → PlayerAccountGamingLimitsInfoCard-1k1dzOQE.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-CTbDMU9K.js → PlayerAccountGamingLimitsInfoCard-BdocGDEF.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-CYY1GHDH.cjs → PlayerAccountGamingLimitsInfoCard-BmLtyUw8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-C2cCe7DT.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-CIHMrOz9.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CiBzt-CM.js → PlayerAccountGamingLimitsPage2Gm16Nd-ChpW_4A9.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CVzYcFrr.js → PlayerAccountGamingLimitsPage2Gm16Nd-YisuH4Ys.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-aAio6KDd.cjs → PlayerAccountGamingLimitsPopup-BaZwHzsB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CT6IytsG.js → PlayerAccountGamingLimitsPopup-DrpDRL2z.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-AN-OsUYz.js → PlayerAccountGamingLimitsPopup-Q8leWb4v.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-ZxXft5B4.js → PlayerAccountGamingLimitsWrapper2Nd-BNJ2YEqk.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BlTWUkD9.js → PlayerAccountGamingLimitsWrapper2Nd-BZB4xteN.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BFQjf4ws.cjs → PlayerAccountGamingLimitsWrapper2Nd-D4Ou7hGU.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-B4RrL76G.js → PlayerAccountGeneralConfirmationModal-BOCgUOiG.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-bXOG0_g7.cjs → PlayerAccountGeneralConfirmationModal-DEe8Lukw.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DlIUvcTE.js → PlayerAccountGeneralConfirmationModal-DVncRkTJ.js} +1 -1
- package/components/{PlayerAccountMenuNd-D9RmwqvZ.js → PlayerAccountMenuNd-C3LjJZ9A.js} +2 -2
- package/components/{PlayerAccountMenuNd-nRf2yNqa.cjs → PlayerAccountMenuNd-_O6kyzUZ.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-B_QCPi9m.js → PlayerAccountMenuNd-qhFTJYfn.js} +2 -2
- package/components/{PlayerAccountModal-C-htioBl.js → PlayerAccountModal-BuP0cngX.js} +1 -1
- package/components/{PlayerAccountModal-2T6gUX9p.js → PlayerAccountModal-DLhk8TDS.js} +1 -1
- package/components/{PlayerAccountModal-CCt2er-m.cjs → PlayerAccountModal-Dlm4uRaJ.cjs} +1 -1
- package/components/{PlayerAccountNotifications-B1wsi5uB.cjs → PlayerAccountNotifications-Cf-Ud21s.cjs} +1 -1
- package/components/{PlayerAccountNotifications-fR9FLgwK.js → PlayerAccountNotifications-DN_637bU.js} +1 -1
- package/components/{PlayerAccountNotifications-DAhI7ZPT.js → PlayerAccountNotifications-DoyrD6P6.js} +1 -1
- package/components/{PlayerAccountProductRestriction-BWrcTedd.js → PlayerAccountProductRestriction-C96W92Pf.js} +5 -5
- package/components/{PlayerAccountProductRestriction-BrWrCwmx.cjs → PlayerAccountProductRestriction-DZGGB-2_.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-Dg6doh66.js → PlayerAccountProductRestriction-Dxk3eFrC.js} +5 -5
- package/components/{PlayerAccountReviewFrequency-BahuMk5i.js → PlayerAccountReviewFrequency-DIvHRhEs.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-BfKRw0Pz.js → PlayerAccountReviewFrequency-DqB93UAl.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-BQ48uRhu.cjs → PlayerAccountReviewFrequency-HcADgmf2.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-CdD11Mzf.js → PlayerAccountSelfExclusionNd-BgtgyE9K.js} +4 -4
- package/components/{PlayerAccountSelfExclusionNd-D2P1I_io.js → PlayerAccountSelfExclusionNd-CmCjh814.js} +4 -4
- package/components/{PlayerAccountSelfExclusionNd-Bmd1H4xt.cjs → PlayerAccountSelfExclusionNd-DQ-p51Gq.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BqAWUskc.js → PlayerAccountTimeout-BCCuzQMq.js} +3 -3
- package/components/{PlayerAccountTimeout-BIfQ4rl-.cjs → PlayerAccountTimeout-D98BFtKQ.cjs} +1 -1
- package/components/{PlayerAccountTimeout-Cia8oB3S.js → PlayerAccountTimeout-DWeGM4ZC.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-069ZY5Y3.cjs → PlayerAccountTransactionsHistory-BFFZTG9z.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-9gEGjZIz.js → PlayerAccountTransactionsHistory-CmFZclmE.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-DTMtXn76.js → PlayerAccountTransactionsHistory-DKN7XVeA.js} +4 -4
- package/components/{PlayerActiveBonuses--x5vQExt.cjs → PlayerActiveBonuses-CarOf8jq.cjs} +1 -1
- package/components/{PlayerActiveBonuses-B0szmRUw.js → PlayerActiveBonuses-XYq9xwT3.js} +2 -2
- package/components/{PlayerActiveBonuses-BZAet1xD.js → PlayerActiveBonuses-wUhhJ9gF.js} +2 -2
- package/components/{PlayerBonusCard-CvEzQlDv.cjs → PlayerBonusCard-DSMeEuly.cjs} +1 -1
- package/components/{PlayerBonusCard-ChF0ZKic.js → PlayerBonusCard-DwTBoG1E.js} +2 -2
- package/components/{PlayerBonusCard-B2qZq563.js → PlayerBonusCard-OmCxpk1S.js} +2 -2
- package/components/{PlayerBonusHistory-Bm_VV4R_.cjs → PlayerBonusHistory-BacuVyNO.cjs} +1 -1
- package/components/{PlayerBonusHistory-BKgImxLN.js → PlayerBonusHistory-Bb8NQgjP.js} +2 -2
- package/components/{PlayerBonusHistory-DGaovlMo.js → PlayerBonusHistory-Dmqx2C0-.js} +2 -2
- package/components/{PlayerChangePasswordNd-LxpZo42L.cjs → PlayerChangePasswordNd-BdBkZnVY.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-C3Xjf0o9.js → PlayerChangePasswordNd-C_U4JsHt.js} +1 -1
- package/components/{PlayerChangePasswordNd-B3-7WLmS.js → PlayerChangePasswordNd-ClnM3wqp.js} +1 -1
- package/components/{PlayerDeposit-CV9v3MWf.cjs → PlayerDeposit-C15Po-RK.cjs} +1 -1
- package/components/{PlayerDeposit-DizKOp1d.js → PlayerDeposit-CyXaK0NX.js} +1 -1
- package/components/{PlayerDeposit-bKN0qf6e.js → PlayerDeposit-DXFQqKpL.js} +1 -1
- package/components/{PlayerGamingHistory-BxPJ0TNx.js → PlayerGamingHistory-BC3pVjz1.js} +3 -3
- package/components/{PlayerGamingHistory-CpfS9y6n.js → PlayerGamingHistory-C2UZcI3A.js} +3 -3
- package/components/{PlayerGamingHistory-ZmSUUL3i.cjs → PlayerGamingHistory-CNqSezG7.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BbPGfJOS.js → PlayerPendingWithdrawals-2NupUbKQ.js} +1 -1
- package/components/{PlayerPendingWithdrawals-DLxYjWxp.js → PlayerPendingWithdrawals-Cs2W2zHZ.js} +1 -1
- package/components/{PlayerPendingWithdrawals-B_8QM85E.cjs → PlayerPendingWithdrawals-JLNRNFWO.cjs} +1 -1
- package/components/{PlayerProfileInfo-za_nfBex.js → PlayerProfileInfo-32UfOkw-.js} +2 -2
- package/components/{PlayerProfileInfo-BbP6pF0-.js → PlayerProfileInfo-6pInf3Co.js} +2 -2
- package/components/{PlayerProfileInfo-CyXEHIoE.cjs → PlayerProfileInfo-BAz-yoeF.cjs} +2 -2
- package/components/{PlayerRealityCheck-BYP-98k3.js → PlayerRealityCheck-BNK_TJJ8.js} +1 -1
- package/components/{PlayerRealityCheck-B-sggBsN.cjs → PlayerRealityCheck-ByQ5dd3F.cjs} +1 -1
- package/components/{PlayerRealityCheck-DOX5zI1l.js → PlayerRealityCheck-ClLZoGsD.js} +1 -1
- package/components/{PlayerTransactionHistory-BIfWANJB.js → PlayerTransactionHistory-BgLwpkmd.js} +1 -1
- package/components/{PlayerTransactionHistory-DP5diVoB.js → PlayerTransactionHistory-C9yfQUps.js} +1 -1
- package/components/{PlayerTransactionHistory-lCVBPbcF.cjs → PlayerTransactionHistory-ngy0BNkY.cjs} +1 -1
- package/components/{PlayerWithdrawal-Cy7uIkfq.cjs → PlayerWithdrawal-B4icJr1T.cjs} +1 -1
- package/components/{PlayerWithdrawal-M7SqWWCa.js → PlayerWithdrawal-BwBPlxu0.js} +1 -1
- package/components/{PlayerWithdrawal-BBemYEIQ.js → PlayerWithdrawal-SYqSMf9M.js} +1 -1
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/lazy/{general-logout-DyCoPjHI.js → general-logout--dDKEnXJ.js} +1 -1
- package/lazy/{general-logout-Dk5uTUdi.cjs → general-logout-D5kkXa3s.cjs} +1 -1
- package/lazy/{general-logout-DKUT-C6b.js → general-logout-DcErKNYh.js} +1 -1
- package/lazy/{pam-change-password-B_e1NZbT.js → pam-change-password-3i-gqrVk.js} +1 -1
- package/lazy/{pam-change-password-Do_BUCWs.js → pam-change-password-8sS3Vvnc.js} +1 -1
- package/lazy/{pam-change-password-CejaOxyO.cjs → pam-change-password-BPIy25da.cjs} +1 -1
- package/lazy/{player-account-betting-history-Do3NDYw9.js → player-account-betting-history-BUeVItSD.js} +1 -1
- package/lazy/{player-account-betting-history-hEXAVBJh.cjs → player-account-betting-history-CQIysQmO.cjs} +1 -1
- package/lazy/{player-account-betting-history-CIoFSkWL.js → player-account-betting-history-Dcrxf7Bh.js} +1 -1
- package/lazy/{player-account-biometrics-DubrgLUZ.cjs → player-account-biometrics-C-mCATs5.cjs} +1 -1
- package/lazy/{player-account-biometrics-BDAEICqj.js → player-account-biometrics-CK_ninPS.js} +1 -1
- package/lazy/{player-account-biometrics-ejL-Cqqz.js → player-account-biometrics-D7V0RlTv.js} +1 -1
- package/lazy/{player-account-biometrics-action-VurbniPE.js → player-account-biometrics-action-CpKXP-cN.js} +1 -1
- package/lazy/{player-account-biometrics-action-DsWZ6MBx.js → player-account-biometrics-action-Dcbp-QJx.js} +1 -1
- package/lazy/{player-account-biometrics-action-BXfBEdLt.cjs → player-account-biometrics-action-piz95HUp.cjs} +1 -1
- package/lazy/{player-account-closure-nd-D7KoK7NJ.js → player-account-closure-nd-DzaZAufV.js} +1 -1
- package/lazy/{player-account-closure-nd-BruFe8cj.js → player-account-closure-nd-VoSywYGl.js} +1 -1
- package/lazy/{player-account-closure-nd-r0n8lKio.cjs → player-account-closure-nd-eJQyJgSY.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-CmplJblH.js → player-account-gaming-limits-D-A44ZpO.js} +1 -1
- package/lazy/{player-account-gaming-limits-gjZIahcH.cjs → player-account-gaming-limits-Dmnz-PNr.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-al1tgLD3.js → player-account-gaming-limits-FtB3OSD_.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-XazjhRqz.js → player-account-gaming-limits-confirmation-modal-2QV1_69h.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-CJJUuGsQ.js → player-account-gaming-limits-confirmation-modal-DEcIB5O1.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-D4Zs1QJI.cjs → player-account-gaming-limits-confirmation-modal-hnBZXNi2.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-DfX5IVnu.js → player-account-gaming-limits-group-edit-Cd7XcGDC.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-CtjUwoSt.cjs → player-account-gaming-limits-group-edit-D24FpUiS.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-DePRN5fq.js → player-account-gaming-limits-group-edit-ia_wppqY.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-B2mZ70Zv.js → player-account-gaming-limits-history-2-nd-CcCkE_i4.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-BgYo6QAX.js → player-account-gaming-limits-history-2-nd-CleOpF3n.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-Bm-OC75H.cjs → player-account-gaming-limits-history-2-nd-DVAswNeN.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-DwL8JwCR.js → player-account-gaming-limits-info-card-BX5UpAWJ.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-Ydm9BG6d.cjs → player-account-gaming-limits-info-card-BtRR3bAD.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-DlYcmEdn.js → player-account-gaming-limits-info-card-DfPkhWRM.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DDQ_AFwj.js → player-account-gaming-limits-page-2-gm16-nd-C8fJ3ESb.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-iIOKRRYi.cjs → player-account-gaming-limits-page-2-gm16-nd-CE7_ulvm.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-CSOoqP5v.js → player-account-gaming-limits-page-2-gm16-nd-s5biNmQM.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-dAL7snDR.js → player-account-gaming-limits-popup-CFQo11N7.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-DWH4gg5l.js → player-account-gaming-limits-popup-_Nuln6Bv.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-Dj6-uVNH.cjs → player-account-gaming-limits-popup-hgao7uc8.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-B6q5b9iS.js → player-account-gaming-limits-wrapper-2-nd-CA6BDZVE.js} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-AiSR9TlE.cjs → player-account-gaming-limits-wrapper-2-nd-CBihOzYc.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-ILD2LJu-.js → player-account-gaming-limits-wrapper-2-nd-CxastQHc.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal-CKDqbz2E.cjs → player-account-general-confirmation-modal-BAWLzPF1.cjs} +1 -1
- package/lazy/{player-account-general-confirmation-modal-BvAlIo5W.js → player-account-general-confirmation-modal-Jxt1MfJr.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal-Ounf1PAq.js → player-account-general-confirmation-modal-pV0p20EG.js} +1 -1
- package/lazy/{player-account-menu-nd-jpB1Eyle.js → player-account-menu-nd-6bQhbBKc.js} +1 -1
- package/lazy/{player-account-menu-nd-B5HRq2w4.js → player-account-menu-nd-C5_wXdC-.js} +1 -1
- package/lazy/{player-account-menu-nd-D3lDfVZu.cjs → player-account-menu-nd-DchrOHVp.cjs} +1 -1
- package/lazy/{player-account-modal-B_27HxVW.js → player-account-modal-BqxhEWbe.js} +1 -1
- package/lazy/{player-account-modal-DHhmkH2F.js → player-account-modal-CDS4Ie6n.js} +1 -1
- package/lazy/{player-account-modal-C3IC6hbu.cjs → player-account-modal-HPPwBA-Y.cjs} +1 -1
- package/lazy/{player-account-notifications-BkPLl013.js → player-account-notifications-BJmf-CsI.js} +1 -1
- package/lazy/{player-account-notifications-pAymmkQJ.js → player-account-notifications-KclhzDCI.js} +1 -1
- package/lazy/{player-account-notifications-B00iyTtN.cjs → player-account-notifications-cOd2VSA6.cjs} +1 -1
- package/lazy/{player-account-product-restriction-B7V2WTu0.cjs → player-account-product-restriction-BAuF1lV3.cjs} +1 -1
- package/lazy/{player-account-product-restriction-ID3Hdx56.js → player-account-product-restriction-CAXCnjxH.js} +1 -1
- package/lazy/{player-account-product-restriction-DDCOQUi2.js → player-account-product-restriction-CBdjON3G.js} +1 -1
- package/lazy/{player-account-review-frequency-BA2mGcqE.js → player-account-review-frequency-C3avrW6-.js} +1 -1
- package/lazy/{player-account-review-frequency-rOGh-mWw.js → player-account-review-frequency-C8C-jZEt.js} +1 -1
- package/lazy/{player-account-review-frequency-O4Rt0wsB.cjs → player-account-review-frequency-CAle6lN4.cjs} +1 -1
- package/lazy/{player-account-self-exclusion-nd-BDc_Mq2M.cjs → player-account-self-exclusion-nd-A_gLKCoJ.cjs} +1 -1
- package/lazy/{player-account-self-exclusion-nd-DsAkDNN1.js → player-account-self-exclusion-nd-Crfh8tx1.js} +1 -1
- package/lazy/{player-account-self-exclusion-nd-BoNlMBP2.js → player-account-self-exclusion-nd-Cz0vOd6-.js} +1 -1
- package/lazy/{player-account-timeout-Ct0XapFN.cjs → player-account-timeout-B96pxTOc.cjs} +1 -1
- package/lazy/{player-account-timeout-PzFkyJ_K.js → player-account-timeout-CnkJTKcs.js} +1 -1
- package/lazy/{player-account-timeout-B2hwOHer.js → player-account-timeout-zX2lIj8x.js} +1 -1
- package/lazy/{player-account-transactions-history-d1ir3Q_v.js → player-account-transactions-history-Bju7EYE-.js} +1 -1
- package/lazy/{player-account-transactions-history-25yRqVLZ.cjs → player-account-transactions-history-C2VHHkAV.cjs} +1 -1
- package/lazy/{player-account-transactions-history-CyI09Q1L.js → player-account-transactions-history-CpFJvmjb.js} +1 -1
- package/lazy/{player-active-bonuses-BYnIxIEQ.js → player-active-bonuses--H8tax8L.js} +1 -1
- package/lazy/{player-active-bonuses-CnLIlGEZ.cjs → player-active-bonuses-DxHH60Rp.cjs} +1 -1
- package/lazy/{player-active-bonuses-BmQyr8eR.js → player-active-bonuses-UheeORLq.js} +1 -1
- package/lazy/{player-bonus-card-CuR-39uz.js → player-bonus-card-B5yg8RtR.js} +1 -1
- package/lazy/{player-bonus-card-CkVkZhqe.cjs → player-bonus-card-BD2iwosG.cjs} +1 -1
- package/lazy/{player-bonus-card-D4KUKCzo.js → player-bonus-card-D16kjed6.js} +1 -1
- package/lazy/{player-bonus-history-DHPOl1mo.js → player-bonus-history-CAXS2zHi.js} +1 -1
- package/lazy/{player-bonus-history-hufufgZC.js → player-bonus-history-CQ2hryld.js} +1 -1
- package/lazy/{player-bonus-history-DcAhKyMV.cjs → player-bonus-history-CTc5JOCK.cjs} +1 -1
- package/lazy/{player-change-password-nd-rXnB1cqa.cjs → player-change-password-nd-B9wxs7_i.cjs} +1 -1
- package/lazy/{player-change-password-nd-LJRmvqEE.js → player-change-password-nd-BZzQcNqo.js} +1 -1
- package/lazy/{player-change-password-nd-DLtvKdMQ.js → player-change-password-nd-DeOOqieh.js} +1 -1
- package/lazy/{player-deposit-mtDgmQ9s.cjs → player-deposit-8AnD3Yyo.cjs} +1 -1
- package/lazy/{player-deposit-CRBMMG_s.js → player-deposit-B28CZftZ.js} +1 -1
- package/lazy/{player-deposit-BUuyPK4P.js → player-deposit-D7hwFMBK.js} +1 -1
- package/lazy/{player-gaming-history-Cf3PO-wy.js → player-gaming-history-BlrBAazS.js} +1 -1
- package/lazy/{player-gaming-history-C0uRwCNd.js → player-gaming-history-XkDepMmP.js} +1 -1
- package/lazy/{player-gaming-history-D2tlFTK8.cjs → player-gaming-history-y8y66Fgn.cjs} +1 -1
- package/lazy/{player-kyc-verification-CM0zwZli.js → player-kyc-verification-D2iFMb97.js} +1 -1
- package/lazy/{player-kyc-verification-CTNRJ426.cjs → player-kyc-verification-DAiFulnS.cjs} +1 -1
- package/lazy/{player-kyc-verification-BZP7kUUO.js → player-kyc-verification-obj8WBFG.js} +1 -1
- package/lazy/{player-pending-withdrawals-DxGM1gvu.js → player-pending-withdrawals-D2l_DX2M.js} +1 -1
- package/lazy/{player-pending-withdrawals-CDbAE7eL.cjs → player-pending-withdrawals-cb08rmoD.cjs} +1 -1
- package/lazy/{player-pending-withdrawals-DtshsnfF.js → player-pending-withdrawals-fEkVIZ3o.js} +1 -1
- package/lazy/{player-profile-info-DWWZ-YJs.js → player-profile-info-BifVP3jx.js} +1 -1
- package/lazy/{player-profile-info-VgdWPUXt.js → player-profile-info-CoOLCWhv.js} +1 -1
- package/lazy/{player-profile-info-B77tItHN.cjs → player-profile-info-CxwLJ-x9.cjs} +1 -1
- package/lazy/{player-reality-check-CHyuagLy.cjs → player-reality-check-C-9wauP0.cjs} +1 -1
- package/lazy/{player-reality-check-5AApkcdS.js → player-reality-check-D1-pjNSF.js} +1 -1
- package/lazy/{player-reality-check-BUKoFdYz.js → player-reality-check-DBSEE4us.js} +1 -1
- package/lazy/{player-transaction-history-BO1ARe2z.js → player-transaction-history-CCjpGzzy.js} +1 -1
- package/lazy/{player-transaction-history-C-1bg8wQ.js → player-transaction-history-DZq0Qzry.js} +1 -1
- package/lazy/{player-transaction-history-BxICfznp.cjs → player-transaction-history-dCzePv0m.cjs} +1 -1
- package/lazy/{player-withdrawal-qAZgg_u1.js → player-withdrawal-Chvr_T8e.js} +1 -1
- package/lazy/{player-withdrawal-e1cNiB09.js → player-withdrawal-DX0iI-CE.js} +1 -1
- package/lazy/{player-withdrawal-Dk76yaoo.cjs → player-withdrawal-Dl3pACPD.cjs} +1 -1
- package/lazy/{user-deposit-withdrawal-Cj8g74Cp.cjs → user-deposit-withdrawal-BiDBgGka.cjs} +1 -1
- package/lazy/{user-deposit-withdrawal-DrcRukGK.js → user-deposit-withdrawal-bwIIgJFP.js} +1 -1
- package/lazy/{user-deposit-withdrawal-fI00sEjz.js → user-deposit-withdrawal-eAQf4KsQ.js} +1 -1
- package/lazy/{user-transaction-history-CODVmehQ.cjs → user-transaction-history-3zhiyTMt.cjs} +1 -1
- package/lazy/{user-transaction-history-CoyTaqaz.js → user-transaction-history-B0AzGCJo.js} +1 -1
- package/lazy/{user-transaction-history-D-8VbKaf.js → user-transaction-history-HY0KaITv.js} +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_16-CyIR7Lux.js → checkbox-group-input_16-6ZI7a1g0.js} +2 -2
- package/stencil/{checkbox-group-input_16-DJWuGEgi.cjs → checkbox-group-input_16-B_tpgEQn.cjs} +1 -1
- package/stencil/{checkbox-group-input_16-DYw4qos9.js → checkbox-group-input_16-XOWM3Q-h.js} +2 -2
- package/stencil/{pam-change-password-25b46f90-BWScp5mx.js → pam-change-password-121f4e26-DVupJlmX.js} +60 -61
- package/stencil/{pam-change-password-25b46f90-Hoczlm4t.js → pam-change-password-121f4e26-TFzWVSbc.js} +60 -60
- package/stencil/{pam-change-password-25b46f90--lv3prXw.cjs → pam-change-password-121f4e26-wg_M9Nea.cjs} +2 -2
- package/stencil/{pam-change-password-DQ8Lxd6y.js → pam-change-password-BWD5aLNF.js} +2 -2
- package/stencil/{pam-change-password-BNJDdwxP.cjs → pam-change-password-Cnqh4pUX.cjs} +1 -1
- package/stencil/{pam-change-password-DM39ivMS.js → pam-change-password-DDSNd0BP.js} +2 -2
- package/stencil/{player-kyc-verification-CIgWZTIp.js → player-kyc-verification-BgEFK-vD.js} +2 -3
- package/stencil/{player-kyc-verification-f9L2NsQ9.js → player-kyc-verification-CS97NbHq.js} +2 -2
- package/stencil/{player-kyc-verification-DTf6J3oe.cjs → player-kyc-verification-DnVqZvHQ.cjs} +1 -1
- package/stencil/{player-step-up-auth_2-Ct2V7nJP.js → player-step-up-auth_2-B0QJ3oE6.js} +2 -2
- package/stencil/{player-step-up-auth_2-AgvYcaq4.js → player-step-up-auth_2-CgI4OnsD.js} +45 -46
- package/stencil/player-step-up-auth_2-CjBdRwK1.cjs +78 -0
- package/stencil/{user-deposit-withdrawal-dwuEBNx4.js → user-deposit-withdrawal-B2MhJqCa.js} +2 -2
- package/stencil/{user-deposit-withdrawal-DyD5kFie.js → user-deposit-withdrawal-D0xzNYb2.js} +2 -2
- package/stencil/{user-deposit-withdrawal-DlfSddMr.cjs → user-deposit-withdrawal-tl45Liu8.cjs} +1 -1
- package/stencil/{user-transaction-history-wra_Cx3b.cjs → user-transaction-history-2p6NhYUH.cjs} +1 -1
- package/stencil/{user-transaction-history-BKRAtQSf.js → user-transaction-history-AKqIgf_3.js} +2 -2
- package/stencil/{user-transaction-history-CV0Cuc3e.js → user-transaction-history-BdJmXqSz.js} +2 -2
- package/stencil/{user-transaction-history_2-B4dInDtd.js → user-transaction-history_2-Bane584k.js} +2 -3
- package/stencil/{user-transaction-history_2-DjIeJ8Gy.js → user-transaction-history_2-C0V0hS45.js} +2 -2
- package/stencil/{user-transaction-history_2-DmPuYVuq.cjs → user-transaction-history_2-CkuiuZbC.cjs} +1 -1
- package/stencil/player-step-up-auth_2-DxFttyTe.cjs +0 -78
package/stencil/{user-transaction-history_2-B4dInDtd.js → user-transaction-history_2-Bane584k.js}
RENAMED
|
@@ -14,7 +14,7 @@ var Rt = (i, e, t) => new Promise((r, o) => {
|
|
|
14
14
|
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, n);
|
|
15
15
|
s((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as wa, g as mo, h as m, H as Ss, a as Ds, c as Os } from "../lazy/user-transaction-history-
|
|
17
|
+
import { r as wa, g as mo, h as m, H as Ss, a as Ds, c as Os } from "../lazy/user-transaction-history-B0AzGCJo.js";
|
|
18
18
|
const Ms = {
|
|
19
19
|
en: {
|
|
20
20
|
deposit: "Deposit",
|
|
@@ -1505,11 +1505,10 @@ function Yl(i, e) {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
function jl(i, e) {
|
|
1507
1507
|
return window.emMessageBus.subscribe(e, (t) => {
|
|
1508
|
-
var s;
|
|
1509
1508
|
if (!i)
|
|
1510
1509
|
return;
|
|
1511
1510
|
const r = i.getRootNode(), o = window[Ve];
|
|
1512
|
-
let a =
|
|
1511
|
+
let a = o[e] && o[e].sheet;
|
|
1513
1512
|
a ? o[e].refCount = o[e].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(t), o[e] = {
|
|
1514
1513
|
sheet: a,
|
|
1515
1514
|
refCount: 1
|
package/stencil/{user-transaction-history_2-DjIeJ8Gy.js → user-transaction-history_2-C0V0hS45.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ya, g as po, h as m, H as Is, a as Ss, c as Ds } from "../lazy/user-transaction-history-
|
|
1
|
+
import { r as ya, g as po, h as m, H as Is, a as Ss, c as Ds } from "../lazy/user-transaction-history-HY0KaITv.js";
|
|
2
2
|
const Os = {
|
|
3
3
|
en: {
|
|
4
4
|
deposit: "Deposit",
|
|
@@ -1490,7 +1490,7 @@ function Yl(i, e) {
|
|
|
1490
1490
|
if (!i)
|
|
1491
1491
|
return;
|
|
1492
1492
|
const r = i.getRootNode(), o = window[Ve];
|
|
1493
|
-
let a = o[e]
|
|
1493
|
+
let a = o[e] && o[e].sheet;
|
|
1494
1494
|
a ? o[e].refCount = o[e].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(t), o[e] = {
|
|
1495
1495
|
sheet: a,
|
|
1496
1496
|
refCount: 1
|
package/stencil/{user-transaction-history_2-DmPuYVuq.cjs → user-transaction-history_2-CkuiuZbC.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Rt=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../lazy/user-transaction-history-CODVmehQ.cjs"),Is={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};class I{constructor(){}static loadCustomTranslations(e){return Rt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const o=yield t.text();throw new Error(o)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,o;const a=I.getAvaliableLanguages(t);return((o=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||o===void 0?void 0:o[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=Is;const Ss=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(i){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(i)}function V(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ds(i){return V(1,arguments),i instanceof Date||_e(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function K(i){V(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||_e(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Os(i){if(V(1,arguments),!Ds(i)&&typeof i!="number")return!1;var e=K(i);return!isNaN(Number(e))}function Q(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ms(i,e){V(2,arguments);var t=K(i).getTime(),r=Q(e);return new Date(t+r)}function ya(i,e){V(2,arguments);var t=Q(e);return Ms(i,-t)}var zs=864e5;function Ns(i){V(1,arguments);var e=K(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/zs)+1}function Ye(i){V(1,arguments);var e=1,t=K(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function wa(i){V(1,arguments);var e=K(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=Ye(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=Ye(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Ls(i){V(1,arguments);var e=wa(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Ye(t);return r}var Fs=6048e5;function xa(i){V(1,arguments);var e=K(i),t=Ye(e).getTime()-Ls(e).getTime();return Math.round(t/Fs)+1}var Bs={};function Qe(){return Bs}function De(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=Qe(),h=Q((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(i),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function bi(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=K(i),h=c.getUTCFullYear(),u=Qe(),p=Q((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Vs(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=Qe(),h=Q((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=bi(i,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Rs=6048e5;function Ca(i,e){V(1,arguments);var t=K(i),r=De(t,e).getTime()-Vs(t,e).getTime();return Math.round(r/Rs)+1}function M(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var $s={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return M(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return M(a,t.length)}};const be=$s;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hs={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,o){var a=bi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=wa(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return M(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return M(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return M(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=Ca(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var o=xa(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):M(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var o=Ns(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):M(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=Fe.noon:o===0?a=Fe.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=Fe.evening:o>=12?a=Fe.afternoon:o>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return fo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return fo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+mo(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+mo(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,n=a.getTime();return M(n,t.length)}};function mo(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+M(a,2)}function fo(i,e){if(i%60===0){var t=i>0?"-":"+";return t+M(Math.abs(i)/60,2)}return Te(i,e)}function Te(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=M(Math.floor(o/60),2),n=M(o%60,2);return r+a+t+n}const Us=Hs;var _o=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ka=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ws=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return _o(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",_o(o,t)).replace("{{time}}",ka(a,t))},qs={p:ka,P:Ws};const Yr=qs;function Ea(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var Ys=["D","DD"],js=["YY","YYYY"];function Ta(i){return Ys.indexOf(i)!==-1}function Aa(i){return js.indexOf(i)!==-1}function Jt(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Gs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ks=function(e,t,r){var o,a=Gs[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Xs=Ks;function Sr(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var Qs={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Js={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},el={date:Sr({formats:Qs,defaultWidth:"full"}),time:Sr({formats:Js,defaultWidth:"full"}),dateTime:Sr({formats:Zs,defaultWidth:"full"})};const tl=el;var rl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},il=function(e,t,r,o){return rl[e]};const ol=il;function at(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=i.formattingValues[n]||i.formattingValues[a]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var al={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ll={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},cl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},hl=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ul={ordinalNumber:hl,era:at({values:al,defaultWidth:"wide"}),quarter:at({values:nl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:at({values:sl,defaultWidth:"wide"}),day:at({values:ll,defaultWidth:"wide"}),dayPeriod:at({values:dl,defaultWidth:"wide",formattingValues:cl,defaultFormattingWidth:"wide"})};const pl=ul;function nt(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?fl(s,function(h){return h.test(n)}):ml(s,function(h){return h.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ml(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function fl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function _l(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var n=i.valueCallback?i.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var vl=/^(\d+)(th|st|nd|rd)?/i,gl=/\d+/i,bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yl={any:[/^b/i,/^(a|c)/i]},wl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xl={any:[/1/i,/2/i,/3/i,/4/i]},Cl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},El={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Tl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Al={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Il={ordinalNumber:_l({matchPattern:vl,parsePattern:gl,valueCallback:function(e){return parseInt(e,10)}}),era:nt({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any"}),quarter:nt({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nt({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),day:nt({matchPatterns:El,defaultMatchWidth:"wide",parsePatterns:Tl,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:Al,defaultMatchWidth:"any",parsePatterns:Pl,defaultParseWidth:"any"})};const Sl=Il;var Dl={code:"en-US",formatDistance:Xs,formatLong:tl,formatRelative:ol,localize:pl,match:Sl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Pa=Dl;var Ol=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ml=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zl=/^'([^]*?)'?$/,Nl=/''/g,Ll=/[a-zA-Z]/;function Ie(i,e,t){var r,o,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Qe(),U=(r=(o=void 0)!==null&&o!==void 0?o:A.locale)!==null&&r!==void 0?r:Pa,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(i);if(!Os(ge))throw new RangeError("Invalid time value");var tt=Ea(ge),rt=ya(ge,tt),it={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Ar=O.match(Ml).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=Yr[ee];return ke(j,U.formatLong)}return j}).join("").match(Ol).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Fl(j);var ke=Us[ee];if(ke)return Aa(j)&&Jt(j,e,String(i)),Ta(j)&&Jt(j,e,String(i)),ke(rt,j,U.localize,it);if(ee.match(Ll))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Ar}function Fl(i){var e=i.match(zl);return e?e[1].replace(Nl,"'"):i}class Ia{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),o=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${o}`}}class Sa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(o){}return r}}const Bl=i=>m.h("div",{class:"data-transaction"},m.h("p",null,i.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:i.status.toLowerCase()},i.status)),m.h("p",{class:"date"},i.transId," | ",Ia.dateToFormatedString(new Date(i.created),i.dateformat)),m.h("p",{class:"text-style"},Sa.format(i.currency,i.realAmount)," ")),Vl=i=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",i.language)),i.pageSizes.map(e=>m.h("button",{class:i.currentPageSize===e?"active":"",onClick:()=>i.changePageSize(e)},e))),Rl=({source:i,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(o=>m.h("th",null,o.name)))),m.h("tbody",null,i.map(o=>m.h("tr",null,m.h("td",null,o.transId),m.h("td",null,Ia.dateToFormatedString(new Date(o.created),t)),m.h("td",null,Sa.format(o.currency,o.realAmount)," "),m.h("td",null,o.productType),m.h("td",null,m.h("span",{class:o.status.toLowerCase()},o.status))))))},Ve="__WIDGET_GLOBAL_STYLE_CACHE__";function vo(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function go(i,e){if(!i||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,i&&i.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function $l(i,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=Hl(i,e),t;window[Ve]||(window[Ve]={}),t=Ul(i,e);const a=t.unsubscribe.bind(t),n=()=>{if(window[Ve][e]){const s=window[Ve][e];s.refCount>1?s.refCount=s.refCount-1:delete window[Ve][e]}a()};return t.unsubscribe=n,t}function Hl(i,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{i&&(t.innerHTML=r,i.appendChild(t))})}function Ul(i,e){return window.emMessageBus.subscribe(e,t=>{var s;if(!i)return;const r=i.getRootNode(),o=window[Ve];let a=(s=o[e])==null?void 0:s.sheet;a?o[e].refCount=o[e].refCount+1:(a=new CSSStyleSheet,a.replaceSync(t),o[e]={sheet:a,refCount:1});const n=r.adoptedStyleSheets||[];n.includes(a)||(r.adoptedStyleSheets=[...n,a])})}function bo(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Wl(i,e){if(i){if(typeof i=="string")return bo(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bo(i,e):void 0}}function yo(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Wl(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1
|
+
"use strict";var Rt=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../lazy/user-transaction-history-3zhiyTMt.cjs"),Is={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};class I{constructor(){}static loadCustomTranslations(e){return Rt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const o=yield t.text();throw new Error(o)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,o;const a=I.getAvaliableLanguages(t);return((o=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||o===void 0?void 0:o[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=Is;const Ss=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(i){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(i)}function V(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ds(i){return V(1,arguments),i instanceof Date||_e(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function K(i){V(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||_e(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Os(i){if(V(1,arguments),!Ds(i)&&typeof i!="number")return!1;var e=K(i);return!isNaN(Number(e))}function Q(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ms(i,e){V(2,arguments);var t=K(i).getTime(),r=Q(e);return new Date(t+r)}function ya(i,e){V(2,arguments);var t=Q(e);return Ms(i,-t)}var zs=864e5;function Ns(i){V(1,arguments);var e=K(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/zs)+1}function Ye(i){V(1,arguments);var e=1,t=K(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function wa(i){V(1,arguments);var e=K(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=Ye(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=Ye(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Ls(i){V(1,arguments);var e=wa(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Ye(t);return r}var Fs=6048e5;function xa(i){V(1,arguments);var e=K(i),t=Ye(e).getTime()-Ls(e).getTime();return Math.round(t/Fs)+1}var Bs={};function Qe(){return Bs}function De(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=Qe(),h=Q((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(i),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function bi(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=K(i),h=c.getUTCFullYear(),u=Qe(),p=Q((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Vs(i,e){var t,r,o,a,n,s,l,d;V(1,arguments);var c=Qe(),h=Q((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=bi(i,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Rs=6048e5;function Ca(i,e){V(1,arguments);var t=K(i),r=De(t,e).getTime()-Vs(t,e).getTime();return Math.round(r/Rs)+1}function M(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var $s={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return M(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return M(a,t.length)}};const be=$s;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hs={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,o){var a=bi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=wa(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return M(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return M(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return M(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=Ca(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var o=xa(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):M(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var o=Ns(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):M(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=Fe.noon:o===0?a=Fe.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=Fe.evening:o>=12?a=Fe.afternoon:o>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):M(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return fo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return fo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+mo(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+mo(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,n=a.getTime();return M(n,t.length)}};function mo(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+M(a,2)}function fo(i,e){if(i%60===0){var t=i>0?"-":"+";return t+M(Math.abs(i)/60,2)}return Te(i,e)}function Te(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=M(Math.floor(o/60),2),n=M(o%60,2);return r+a+t+n}const Us=Hs;var _o=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ka=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ws=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return _o(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",_o(o,t)).replace("{{time}}",ka(a,t))},qs={p:ka,P:Ws};const Yr=qs;function Ea(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var Ys=["D","DD"],js=["YY","YYYY"];function Ta(i){return Ys.indexOf(i)!==-1}function Aa(i){return js.indexOf(i)!==-1}function Jt(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Gs={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ks=function(e,t,r){var o,a=Gs[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Xs=Ks;function Sr(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var Qs={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Js={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},el={date:Sr({formats:Qs,defaultWidth:"full"}),time:Sr({formats:Js,defaultWidth:"full"}),dateTime:Sr({formats:Zs,defaultWidth:"full"})};const tl=el;var rl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},il=function(e,t,r,o){return rl[e]};const ol=il;function at(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=i.formattingValues[n]||i.formattingValues[a]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var al={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ll={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},cl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},hl=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ul={ordinalNumber:hl,era:at({values:al,defaultWidth:"wide"}),quarter:at({values:nl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:at({values:sl,defaultWidth:"wide"}),day:at({values:ll,defaultWidth:"wide"}),dayPeriod:at({values:dl,defaultWidth:"wide",formattingValues:cl,defaultFormattingWidth:"wide"})};const pl=ul;function nt(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?fl(s,function(h){return h.test(n)}):ml(s,function(h){return h.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ml(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function fl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function _l(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var n=i.valueCallback?i.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var vl=/^(\d+)(th|st|nd|rd)?/i,gl=/\d+/i,bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yl={any:[/^b/i,/^(a|c)/i]},wl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xl={any:[/1/i,/2/i,/3/i,/4/i]},Cl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},El={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Tl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Al={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Il={ordinalNumber:_l({matchPattern:vl,parsePattern:gl,valueCallback:function(e){return parseInt(e,10)}}),era:nt({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any"}),quarter:nt({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nt({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),day:nt({matchPatterns:El,defaultMatchWidth:"wide",parsePatterns:Tl,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:Al,defaultMatchWidth:"any",parsePatterns:Pl,defaultParseWidth:"any"})};const Sl=Il;var Dl={code:"en-US",formatDistance:Xs,formatLong:tl,formatRelative:ol,localize:pl,match:Sl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Pa=Dl;var Ol=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ml=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zl=/^'([^]*?)'?$/,Nl=/''/g,Ll=/[a-zA-Z]/;function Ie(i,e,t){var r,o,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Qe(),U=(r=(o=void 0)!==null&&o!==void 0?o:A.locale)!==null&&r!==void 0?r:Pa,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(i);if(!Os(ge))throw new RangeError("Invalid time value");var tt=Ea(ge),rt=ya(ge,tt),it={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Ar=O.match(Ml).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=Yr[ee];return ke(j,U.formatLong)}return j}).join("").match(Ol).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Fl(j);var ke=Us[ee];if(ke)return Aa(j)&&Jt(j,e,String(i)),Ta(j)&&Jt(j,e,String(i)),ke(rt,j,U.localize,it);if(ee.match(Ll))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Ar}function Fl(i){var e=i.match(zl);return e?e[1].replace(Nl,"'"):i}class Ia{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),o=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${o}`}}class Sa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(o){}return r}}const Bl=i=>m.h("div",{class:"data-transaction"},m.h("p",null,i.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:i.status.toLowerCase()},i.status)),m.h("p",{class:"date"},i.transId," | ",Ia.dateToFormatedString(new Date(i.created),i.dateformat)),m.h("p",{class:"text-style"},Sa.format(i.currency,i.realAmount)," ")),Vl=i=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",i.language)),i.pageSizes.map(e=>m.h("button",{class:i.currentPageSize===e?"active":"",onClick:()=>i.changePageSize(e)},e))),Rl=({source:i,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(o=>m.h("th",null,o.name)))),m.h("tbody",null,i.map(o=>m.h("tr",null,m.h("td",null,o.transId),m.h("td",null,Ia.dateToFormatedString(new Date(o.created),t)),m.h("td",null,Sa.format(o.currency,o.realAmount)," "),m.h("td",null,o.productType),m.h("td",null,m.h("span",{class:o.status.toLowerCase()},o.status))))))},Ve="__WIDGET_GLOBAL_STYLE_CACHE__";function vo(i,e){if(i){const t=document.createElement("style");t.innerHTML=e,i.appendChild(t)}}function go(i,e){if(!i||!e)return;const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const o=document.createElement("style");o.innerHTML=r,i&&i.appendChild(o)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function $l(i,e,t,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return t=Hl(i,e),t;window[Ve]||(window[Ve]={}),t=Ul(i,e);const a=t.unsubscribe.bind(t),n=()=>{if(window[Ve][e]){const s=window[Ve][e];s.refCount>1?s.refCount=s.refCount-1:delete window[Ve][e]}a()};return t.unsubscribe=n,t}function Hl(i,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,r=>{i&&(t.innerHTML=r,i.appendChild(t))})}function Ul(i,e){return window.emMessageBus.subscribe(e,t=>{if(!i)return;const r=i.getRootNode(),o=window[Ve];let a=o[e]&&o[e].sheet;a?o[e].refCount=o[e].refCount+1:(a=new CSSStyleSheet,a.replaceSync(t),o[e]={sheet:a,refCount:1});const n=r.adoptedStyleSheets||[];n.includes(a)||(r.adoptedStyleSheets=[...n,a])})}function bo(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Wl(i,e){if(i){if(typeof i=="string")return bo(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bo(i,e):void 0}}function yo(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Wl(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function ql(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function jr(i,e){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},jr(i,e)}function E(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&jr(i,e)}function Zt(i){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zt(i)}function Da(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Da=function(){return!!i})()}function Yl(i,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function T(i){var e=Da();return function(){var t,r=Zt(i);if(e){var o=Zt(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Yl(this,t)}}function w(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function jl(i,e){if(_e(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Oa(i){var e=jl(i,"string");return _e(e)=="symbol"?e:e+""}function Gl(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Oa(r.key),r)}}function x(i,e,t){return e&&Gl(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _(i,e,t){return(e=Oa(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Kl=10,Ma=function(){function i(){w(this,i),_(this,"priority",void 0),_(this,"subPriority",0)}return x(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),Xl=function(i){E(t,i);var e=T(t);function t(r,o,a,n,s){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return x(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(Ma),Ql=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",Kl),_(v(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(Ma),S=function(){function i(){w(this,i),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return x(i,[{key:"run",value:function(t,r,o,a){var n=this.parse(t,r,o,a);return n?{setter:new Xl(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Jl=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",140),_(v(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),Zl=6e4,ed=36e5,td=1e3,R={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},de={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(o*ed+a*Zl+n*td),rest:e.slice(t[0].length)}}function za(i){return F(R.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(R.singleDigit,e);case 2:return F(R.twoDigits,e);case 3:return F(R.threeDigits,e);case 4:return F(R.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function er(i,e){switch(i){case 1:return F(R.singleDigitSigned,e);case 2:return F(R.twoDigitsSigned,e);case 3:return F(R.threeDigitsSigned,e);case 4:return F(R.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function yi(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Na(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,n=Math.floor(a/100)*100,s=i>=a%100;o=i+n-(s?100:0)}return t?o:1-o}function La(i){return i%400===0||i%4===0&&i%100!==0}var rd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return $(B(4,o),s);case"yo":return $(n.ordinalNumber(o,{unit:"year"}),s);default:return $(B(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=Na(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),id=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return $(B(4,o),s);case"Yo":return $(n.ordinalNumber(o,{unit:"year"}),s);default:return $(B(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=bi(o,s);if(n.isTwoDigitYear){var d=Na(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),De(o,s)}var c=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(c,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),De(o,s)}}]),t}(S),od=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a){return er(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),Ye(s)}}]),t}(S),ad=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a){return er(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),nd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return B(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),sd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return B(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),ld=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_(v(r),"priority",110),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return $(F(R.month,o),s);case"MM":return $(B(2,o),s);case"Mo":return $(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(S),dd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",110),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return $(F(R.month,o),s);case"LL":return $(B(2,o),s);case"Lo":return $(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(S);function cd(i,e,t){V(2,arguments);var r=K(i),o=Q(e),a=Ca(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var hd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return F(R.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return De(cd(o,n,s),s)}}]),t}(S);function ud(i,e){V(2,arguments);var t=K(i),r=Q(e),o=xa(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var pd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return F(R.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return Ye(ud(o,n))}}]),t}(S),md=[31,28,31,30,31,30,31,31,30,31,30,31],fd=[31,29,31,30,31,30,31,31,30,31,30,31],_d=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subPriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return F(R.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=La(n),l=o.getUTCMonth();return s?a>=1&&a<=fd[l]:a>=1&&a<=md[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(S),vd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subpriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return F(R.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=La(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(S);function wi(i,e,t){var r,o,a,n,s,l,d,c;V(2,arguments);var h=Qe(),u=Q((r=(o=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=K(i),b=Q(e),N=p.getUTCDay(),D=b%7,O=(D+7)%7,A=(O<u?7:0)+b-N;return p.setUTCDate(p.getUTCDate()+A),p}var gd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=wi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(S),bd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return $(B(a.length,o),l);case"eo":return $(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=wi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(S),yd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return $(B(a.length,o),l);case"co":return $(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=wi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(S);function wd(i,e){V(2,arguments);var t=Q(e);t%7===0&&(t=t-7);var r=1,o=K(i),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var xd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return B(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return $(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return $(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return $(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return $(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=wd(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(S),Cd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(yi(n),0,0,0),o}}]),t}(S),kd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(yi(n),0,0,0),o}}]),t}(S),Ed=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(yi(n),0,0,0),o}}]),t}(S),Td=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return F(R.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(S),Ad=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return F(R.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(S),Pd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return F(R.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(S),Id=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return F(R.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(S),Sd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",60),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return F(R.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(S),Dd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",50),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return F(R.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return B(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(S),Od=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",30),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return $(B(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(S),Md=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(o,a){switch(a){case"X":return ce(de.basicOptionalMinutes,o);case"XX":return ce(de.basic,o);case"XXXX":return ce(de.basicOptionalSeconds,o);case"XXXXX":return ce(de.extendedOptionalSeconds,o);case"XXX":default:return ce(de.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(S),zd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(o,a){switch(a){case"x":return ce(de.basicOptionalMinutes,o);case"xx":return ce(de.basic,o);case"xxxx":return ce(de.basicOptionalSeconds,o);case"xxxxx":return ce(de.extendedOptionalSeconds,o);case"xxx":default:return ce(de.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(S),Nd=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",40),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(o){return za(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(S),Ld=function(i){E(t,i);var e=T(t);function t(){var r;w(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",20),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(o){return za(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(S),Fd={G:new Jl,y:new rd,Y:new id,R:new od,u:new ad,Q:new nd,q:new sd,M:new ld,L:new dd,w:new hd,I:new pd,d:new _d,D:new vd,E:new gd,e:new bd,c:new yd,i:new xd,a:new Cd,b:new kd,B:new Ed,h:new Td,H:new Ad,K:new Pd,k:new Id,m:new Sd,s:new Dd,S:new Od,X:new Md,x:new zd,t:new Nd,T:new Ld},Bd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rd=/^'([^]*?)'?$/,$d=/''/g,Hd=/\S/,Ud=/[a-zA-Z]/;function Fa(i,e,t,r){var o,a,n,s,l,d,c,h,u,p,b,N,D,O;V(3,arguments);var A=String(i),U=String(e),W=Qe(),ne=(o=(a=void 0)!==null&&a!==void 0?a:W.locale)!==null&&o!==void 0?o:Pa;if(!ne.match)throw new RangeError("locale must contain match property");var ge=Q((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&s!==void 0?s:(c=W.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var tt=Q((u=(p=(b=(N=void 0)!==null&&N!==void 0?N:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&p!==void 0?p:(D=W.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&u!==void 0?u:0);if(!(tt>=0&&tt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(U==="")return A===""?K(t):new Date(NaN);var rt={firstWeekContainsDate:ge,weekStartsOn:tt,locale:ne},it=[new Ql],Ar=U.match(Vd).map(function(q){var L=q[0];if(L in Yr){var ae=Yr[L];return ae(q,ne.formatLong)}return q}).join("").match(Bd),j=[],ee=yo(Ar),ke;try{var As=function(){var L=ke.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Aa(L)&&Jt(L,U,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ta(L)&&Jt(L,U,i);var ae=L[0],Vt=Fd[ae];if(Vt){var ho=Vt.incompatibleTokens;if(Array.isArray(ho)){var uo=j.find(function(po){return ho.includes(po.token)||po.token===ae});if(uo)throw new RangeError("The format string mustn't contain `".concat(uo.fullToken,"` and `").concat(L,"` at the same time"))}else if(Vt.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));j.push({token:ae,fullToken:L});var Ir=Vt.run(A,L,ne.match,rt);if(!Ir)return{v:new Date(NaN)};it.push(Ir.setter),A=Ir.rest}else{if(ae.match(Ud))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ae+"`");if(L==="''"?L="'":ae==="'"&&(L=Wd(L)),A.indexOf(L)===0)A=A.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(ke=ee.n()).done;){var no=As();if(_e(no)==="object")return no.v}}catch(q){ee.e(q)}finally{ee.f()}if(A.length>0&&Hd.test(A))return new Date(NaN);var Ps=it.map(function(q){return q.priority}).sort(function(q,L){return L-q}).filter(function(q,L,ae){return ae.indexOf(q)===L}).map(function(q){return it.filter(function(L){return L.priority===q}).sort(function(L,ae){return ae.subPriority-L.subPriority})}).map(function(q){return q[0]}),Pr=K(t);if(isNaN(Pr.getTime()))return new Date(NaN);var ot=ya(Pr,Ea(Pr)),so={},Ft=yo(Ps),lo;try{for(Ft.s();!(lo=Ft.n()).done;){var co=lo.value;if(!co.validate(ot,rt))return new Date(NaN);var Bt=co.set(ot,so,rt);Array.isArray(Bt)?(ot=Bt[0],ql(so,Bt[1])):ot=Bt}}catch(q){Ft.e(q)}finally{Ft.f()}return ot}function Wd(i){return i.match(Rd)[1].replace($d,"'")}function qd(i,e){V(2,arguments);var t=K(i),r=Q(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function Yd(i,e){V(2,arguments);var t=Q(e);return qd(i,-t)}const jd=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}',Gd=jd,Ba=class{constructor(i){m.registerInstance(this,i),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=I.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(i,e){i!=e&&vo(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(i,e){i!=e&&this.clientStylingUrl&&go(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Rt(this,null,function*(){this.translationUrl&&(yield I.loadCustomTranslations(this.translationUrl)),this.to=Ie(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=Ie(Yd(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?$l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&vo(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&go(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var i;if(this.mobile){let e=this.el.getBoundingClientRect().height-((i=this.el.shadowRoot.querySelector(".table"))===null||i===void 0?void 0:i.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let i=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",i+"px")}changeTransactionsType(i){this.type=i}changePageSize(i){this.pageSize=i}prev(){var i;!((i=this.pagination)===null||i===void 0)&&i.previous&&this.page--}next(){var i;!((i=this.pagination)===null||i===void 0)&&i.next&&this.page++}applyFilters(i,e){this.from=i,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var i;const e=m.getAssetPath("../assets/filter.svg"),t=m.getAssetPath("../assets/warning.svg");return m.h(m.Host,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?m.h(Ss,null):"",m.h("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:r=>this.stylingContainer=r},this.mobile?m.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},m.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},m.h("defs",null),m.h("g",{transform:"translate(-20 -158)"},m.h("g",{transform:"translate(20 158)"},m.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),m.h("h2",{class:"TransactionTitleMobile"},I.translate("transactionTitle",this.language))):m.h("h2",{class:"TransactionTitle"},I.translate("transactionTitle",this.language)),m.h("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},m.h("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},I.translate("deposit",this.language)),m.h("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},I.translate("withdrawals",this.language))),this.mobile?"":m.h(Vl,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:r=>this.changePageSize(r)}),this.mobile?m.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},m.h("img",{src:e,alt:"Filter"}),I.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?m.h("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:r,to:o}})=>this.applyFilters(r,o),from:this.from,to:this.to,dateformat:this.dateFormat}):"",((i=this.transactions)===null||i===void 0?void 0:i.length)>0?m.h("div",{class:"table"},this.mobile?m.h("div",{class:"mobile-table"},this.transactions.map(r=>m.h(Bl,Object.assign({},r,{dateformat:this.dateFormat})))):m.h(Rl,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):m.h("div",{class:"noData"},m.h("img",{src:t,alt:"Warning"}),m.h("span",null,I.translate("noData",this.language))),m.h("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},m.h("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),m.h("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}loadTransactions(){return Rt(this,null,function*(){this.showLoader=!0;try{const i=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=yield fetch(i,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const r=yield e.text();throw new Error(r)}const t=yield e.json();this.pagination=t.pagination,this.transactions=t.transactions}catch(i){console.error(i)}finally{this.showLoader=!1}})}formatDateForApi(i){const e=Fa(i,`${this.dateFormat||"yyyy-MM-dd"}`,new Date);return Ie(e,"yyyy-MM-dd")}getParams(){const i=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from),t=this.formatDateForApi(this.to);return`offset=${i}&endDate=${t}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return m.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};Ba.style=Gd;var Kd=Object.defineProperty,Xd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,wo=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,Zd=Object.prototype.propertyIsEnumerable,Gr=(i,e,t)=>e in i?Kd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,tr=(i,e)=>{for(var t in e||(e={}))Jd.call(e,t)&&Gr(i,t,e[t]);if(wo)for(var t of wo(e))Zd.call(e,t)&&Gr(i,t,e[t]);return i},Va=(i,e)=>Xd(i,Qd(e)),X=(i,e,t)=>(Gr(i,typeof e!="symbol"?e+"":e,t),t),rr=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";var Se=(e,t,r)=>new Promise((n,p)=>{var E=b=>{try{P(r.next(b))}catch(L){p(L)}},U=b=>{try{P(r.throw(b))}catch(L){p(L)}},P=b=>b.done?n(b.value):Promise.resolve(b.value).then(E,U);P((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../lazy/user-deposit-withdrawal-Cj8g74Cp.cjs"),Ae="__WIDGET_GLOBAL_STYLE_CACHE__";function Ue(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function je(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const p=document.createElement("style");p.innerHTML=n,e&&e.appendChild(p)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Xe(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ot(e,t),r;window[Ae]||(window[Ae]={}),r=st(e,t);const E=r.unsubscribe.bind(r),U=()=>{if(window[Ae][t]){const P=window[Ae][t];P.refCount>1?P.refCount=P.refCount-1:delete window[Ae][t]}E()};return r.unsubscribe=U,r}function ot(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function st(e,t){return window.emMessageBus.subscribe(t,r=>{var P;if(!e)return;const n=e.getRootNode(),p=window[Ae];let E=(P=p[t])==null?void 0:P.sheet;E?p[t].refCount=p[t].refCount+1:(E=new CSSStyleSheet,E.replaceSync(r),p[t]={sheet:E,refCount:1});const U=n.adoptedStyleSheets||[];U.includes(E)||(n.adoptedStyleSheets=[...U,E])})}const dt="en",Ke={en:{popupMessage:"Please enter the security code received on your email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, you will be logged out and blocked temporarily.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resend OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",otpDigit:"OTP digit",verifying:"Verifying...",otpVerified:"OTP Verified Successfully!"},ro:{popupMessage:"Introduceți codul de securitate primit pe adresa dvs. de e-mail pentru a efectua actualizarea.",popupMessageLastWarning:"Dacă următoarea încercare de validare eșuează, veți fi delogat și blocat temporar.",minutes:"minute",errorHeader:"Eroare",configError:"Nu s-a putut încărca datele OTP. Vă rugăm să încercați din nou mai târziu.",otpHeading:"Introduceți OTP",resendOtp:"Retrimitere OTP",submit:"Trimite",close:"Închide",invalidOtp:"Codul introdus nu este valid. Vă rugăm să încercați din nou.",accountBlocked:"Prea multe încercări de OTP. Contul dvs. a fost blocat timp de o oră.",submissionError:"Ceva a mers prost. Vă rugăm să încercați din nou.",otpExpiredMessage:"Codul de validare a expirat, vă rugăm să solicitați unul nou pentru a continua.",otpDigit:"Cifră OTP",verifying:"Se verifică...",otpVerified:"OTP verificat cu succes!"},fr:{popupMessage:"Veuillez entrer le code de sécurité reçu sur votre adresse e-mail pour effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, vous serez déconnecté et temporairement bloqué.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Entrez OTP",resendOtp:"Renvoyer OTP",submit:"Soumettre",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Quelque chose s'est mal passé. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré, veuillez en demander un nouveau pour continuer.",otpDigit:"Chiffre OTP",verifying:"Vérification...",otpVerified:"OTP vérifié avec succès!"},hu:{popupMessage:"Kérjük, adja meg az e-mail címére küldött biztonsági kódot a frissítés végrehajtásához.",popupMessageLastWarning:"Ha a következő érvényesítési kísérlet sikertelen, ki lesz jelentkeztetve és ideiglenesen letiltva.",minutes:"perc",errorHeader:"Hiba",configError:"Nem sikerült betölteni az OTP adatokat. Kérjük, próbálja újra később.",otpHeading:"OTP megadása",resendOtp:"Újraküldés",submit:"Beküldés",close:"Bezárás",invalidOtp:"A megadott kód érvénytelen. Kérjük, próbálja újra.",accountBlocked:"Túl sok OTP próbálkozás. A fiókja egy órára zárolva lett.",submissionError:"Valami hiba történt. Kérjük, próbálja újra.",otpExpiredMessage:"A megerősítő kód lejárt, kérjük, kérjen egy újat a folytatáshoz.",otpDigit:"OTP számjegy",verifying:"Ellenőrzés...",otpVerified:"OTP sikeresen ellenőrizve!"},tr:{popupMessage:"Güncellemeyi gerçekleştirmek için e-posta adresinize gelen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama girişimi başarısız olursa, oturumunuz kapatılacak ve geçici olarak engelleneceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verisi yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçersiz. Lütfen tekrar deneyin.",accountBlocked:"Çok fazla OTP denemesi yapıldı. Hesabınız bir saat boyunca kilitlendi.",submissionError:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir tane isteyin.",otpDigit:"OTP rakamı",verifying:"Doğrulanıyor...",otpVerified:"OTP başarıyla doğrulandı!"},el:{popupMessage:"Παρακαλώ εισάγετε τον κωδικό ασφαλείας που λάβατε στο email σας για να ολοκληρώσετε την ενημέρωση.",popupMessageLastWarning:"Αν η επόμενη προσπάθεια επικύρωσης αποτύχει, θα αποσυνδεθείτε και θα αποκλειστείτε προσωρινά.",minutes:"λεπτά",errorHeader:"Σφάλμα",configError:"Δεν ήταν δυνατή η φόρτωση των δεδομένων OTP. Παρακαλούμε προσπαθήστε ξανά αργότερα.",otpHeading:"Εισαγωγή OTP",resendOtp:"Αποστολή ξανά OTP",submit:"Υποβολή",close:"Κλείσιμο",invalidOtp:"Ο κωδικός που εισαγάγατε δεν είναι έγκυρος. Παρακαλώ προσπαθήστε ξανά.",accountBlocked:"Πάρα πολλές προσπάθειες OTP. Ο λογαριασμός σας έχει αποκλειστεί για μία ώρα.",submissionError:"Κάτι πήγε στραβά. Παρακαλώ προσπαθήστε ξανά.",otpExpiredMessage:"Ο κωδικός επαλήθευσης έχει λήξει, παρακαλώ ζητήστε έναν νέο για να συνεχίσετε.",otpDigit:"Ψηφίο OTP",verifying:"Επαλήθευση...",otpVerified:"Το OTP επαληθεύτηκε με επιτυχία!"},es:{popupMessage:"Por favor, introduzca el código de seguridad recibido en su correo electrónico para realizar la actualización.",popupMessageLastWarning:"Si el siguiente intento de validación falla, se cerrará tu sesión y serás bloqueado temporalmente.",minutes:"minutos",errorHeader:"Error",configError:"No se pudo cargar los datos del OTP. Por favor, inténtelo de nuevo más tarde.",otpHeading:"Introducir OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Cerrar",invalidOtp:"El código que ingresaste no es válido. Por favor, inténtalo de nuevo.",accountBlocked:"Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.",submissionError:"Algo salió mal. Por favor, inténtelo de nuevo.",otpExpiredMessage:"El código de validación ha expirado, por favor solicite uno nuevo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"¡OTP verificado exitosamente!"},pt:{popupMessage:"Por favor, insira o código de segurança recebido no seu e-mail para realizar a atualização.",popupMessageLastWarning:"Se a próxima tentativa de validação falhar, será desconectado e temporariamente bloqueado.",minutes:"minutos",errorHeader:"Erro",configError:"Não foi possível carregar os dados do OTP. Tente novamente mais tarde.",otpHeading:"Insira o OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Fechar",invalidOtp:"O código inserido não é válido. Por favor, tente novamente.",accountBlocked:"Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.",submissionError:"Algo deu errado. Por favor, tente novamente.",otpExpiredMessage:"O código de validação expirou, por favor solicite um novo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"OTP verificado com sucesso!"},hr:{popupMessage:"Unesite sigurnosni kod primljen na vašu e-mail adresu kako biste izvršili ažuriranje.",popupMessageLastWarning:"Ako sljedeći pokušaj provjere ne uspije, bit ćete odjavljeni i privremeno blokirani.",minutes:"minute",errorHeader:"Greška",configError:"Nije moguće učitati OTP podatke. Pokušajte ponovno kasnije.",otpHeading:"Unesite OTP",resendOtp:"Ponovno pošalji OTP",submit:"Pošalji",close:"Zatvori",invalidOtp:"Uneseni kod nije valjan. Molimo pokušajte ponovo.",accountBlocked:"Previše pokušaja unosa OTP-a. Vaš račun je blokiran na jedan sat.",submissionError:"Nešto je pošlo po zlu. Molimo pokušajte ponovo.",otpExpiredMessage:"Kod za potvrdu je istekao, molimo zatražite novi kako biste nastavili.",otpDigit:"OTP znamenka",verifying:"Provjera...",otpVerified:"OTP uspješno potvrđen!"},de:{popupMessage:"Bitte geben Sie den Sicherheitscode ein, den Sie an Ihre E-Mail-Adresse erhalten haben, um das Update durchzuführen.",popupMessageLastWarning:"Wenn der nächste Validierungsversuch fehlschlägt, werden Sie abgemeldet und vorübergehend gesperrt.",minutes:"Minuten",errorHeader:"Fehler",configError:"OTP-Daten konnten nicht geladen werden. Bitte versuchen Sie es später erneut.",otpHeading:"OTP eingeben",resendOtp:"OTP erneut senden",submit:"Absenden",close:"Schließen",invalidOtp:"Der eingegebene Code ist ungültig. Bitte versuchen Sie es erneut.",accountBlocked:"Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",submissionError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",otpExpiredMessage:"Der Bestätigungscode ist abgelaufen, bitte fordern Sie einen neuen an, um fortzufahren.",otpDigit:"OTP-Ziffer",verifying:"Wird geprüft...",otpVerified:"OTP erfolgreich verifiziert!"},"es-mx":{popupMessage:"Por favor, ingrese el código de seguridad recibido en su correo electrónico para realizar la actualización.",popupMessageLastWarning:"Si el siguiente intento de validación falla, se cerrará tu sesión y serás bloqueado temporalmente.",minutes:"minutos",errorHeader:"Error",configError:"No se pudieron cargar los datos del OTP. Inténtelo de nuevo más tarde.",otpHeading:"Ingrese OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Cerrar",invalidOtp:"El código que ingresó no es válido. Inténtelo de nuevo.",accountBlocked:"Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.",submissionError:"Algo salió mal. Por favor, inténtelo de nuevo.",otpExpiredMessage:"El código de validación ha expirado, por favor solicite uno nuevo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"¡OTP verificado exitosamente!"},"pt-br":{popupMessage:"Por favor, digite o código de segurança recebido no seu e-mail para realizar a atualização.",popupMessageLastWarning:"Se a próxima tentativa de validação falhar, você será desconectado e bloqueado temporariamente.",minutes:"minutos",errorHeader:"Erro",configError:"Não foi possível carregar os dados do OTP. Tente novamente mais tarde.",otpHeading:"Digite o OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Fechar",invalidOtp:"O código informado não é válido. Tente novamente.",accountBlocked:"Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.",submissionError:"Algo deu errado. Por favor, tente novamente.",otpExpiredMessage:"O código de validação expirou, por favor solicite um novo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"OTP verificado com sucesso!"}},qe=e=>new Promise(t=>{fetch(e).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{for(let p in r[n])Ke[n][p]=r[n][p]}),t(!0)})}),_=(e,t)=>{const r=t;return Ke[r!==void 0?r:dt][e]},lt=".OtpPopupOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--emw--color-overlay, rgba(0, 0, 0, 0.5));display:flex;align-items:center;justify-content:center}.OtpButton{font-family:var(--emw--button-typography);border:var(--emw--button-border, none);border-radius:var(--emw--button-border-radius, 3px);border-color:var(--emw--button-border-color);background-color:var(--emw--button-background-color, var(--emw--color-primary, #007bff));color:var(--emw--button-typography, var(--emw--color-white, #fff));padding:10px 20px;cursor:pointer;font-size:16px}.OtpButton.error{background:var(--emw--color-error, #dd3434)}.OtpPopupContent{position:relative;background:var(--emw--color-white, #fff);padding:20px;border-radius:5px;text-align:center;min-width:25%;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:20px}.OtpPopupContent .OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpPopupContent .OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px}.OtpPopupContent .OtpError h2{margin:0}.OtpPopupContent .OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpField{display:flex;justify-content:center}.OtpField input{width:24px;font-size:32px;padding:10px;text-align:center;border-radius:5px;margin:2px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:bold;outline:none;transition:all 0.1s}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{border:2px solid var(--emw--color-primary, #007bff);box-shadow:0 0 2px 2px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.OtpSuccessOverlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(var(--emw--color-green-rgb, 255, 255, 255), 0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}",ut=lt,Ze=class{handleNewTranslations(){qe(this.translationUrl)}handleClientStylingChange(e,t){e!==t&&Ue(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)}handleStepUpAuthEvent(e){return Se(this,null,function*(){var t;if(!((t=e.detail)===null||t===void 0)&&t["x-step-up-required"]){if(this.hasConfigErrors=!1,this.hasErrors=!1,this.errorMessage="",this.showPopup=!0,this.token=e.detail["x-step-up-token"],this.flow=e.detail.flow,!this.token||!this.flow){this.isLoading=!1,this.hasConfigErrors=!0,this.errorMessage=_("configError",this.language);return}yield this.getConfig()}})}handleCloseWidget(){this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null),this.hasErrors=!1,this.hasConfigErrors=!1,this.errorMessage="",this.showPopup=!1,this.isLastWarning=!1}constructor(e){c.registerInstance(this,e),this.otpInputs=[],this.countdownTimer=null,this.expirationTimestamp=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.userSession=void 0,this.translationUrl="",this.showPopup=!1,this.otp=void 0,this.isLoading=!0,this.config=null,this.timeLeft=0,this.expirationTime="",this.serverTime="",this.hasErrors=!1,this.hasConfigErrors=!1,this.errorMessage="",this.token="",this.flow="",this.showResendOtp=!1,this.isLastWarning=!1,this.inputDisabled=!1,this.isValidating=!1,this.isSuccess=!1,this.shakeError=!1,this.handleResendOtp=this.handleResendOtp.bind(this),this.submitOtp=this.submitOtp.bind(this),this.handleCloseWidget=this.handleCloseWidget.bind(this),this.manualClosePopup=this.manualClosePopup.bind(this)}getConfig(){return Se(this,null,function*(){if(this.endpoint)try{const e=new URL(`/api/v1/mfa/challenge/${this.token}/config`,this.endpoint);this.isLoading=!0;const t=yield fetch(e.href),r=yield t.json();if(t.ok)this.config=r,this.otp=Array(this.config.inputLength).fill(""),this.isLoading=!1,this.showResendOtp=!1,this.expirationTime=this.config.expirationTime,this.serverTime=this.config.serverTime,this.config.numberOfValidateAttempts!==0&&(this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language)),this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1&&(this.isLastWarning=!0),this.calculateTimeLeft(),this.startCountdown();else if(r&&r.details==="gm.twofa.token_max_attempts_exceeded")this.handleCloseWidget();else{const n=r&&r.message||`Failed to load config. Status: ${t.status}`;throw new Error(n)}}catch(e){this.isLoading=!1,this.hasConfigErrors=!0,this.errorMessage=_("configError",this.language),console.error("Error loading 2FA config:",e)}})}calculateTimeLeft(){const e=new Date(this.expirationTime),t=new Date(this.serverTime),r=new Date,n=t.getTime()-r.getTime();this.expirationTimestamp=e.getTime()-n;const p=Date.now(),E=Math.max(0,Math.floor((this.expirationTimestamp-p)/1e3));this.timeLeft=E}startCountdown(){this.countdownTimer&&clearInterval(this.countdownTimer),this.countdownTimer=setInterval(()=>{const e=Date.now(),t=Math.max(0,Math.floor((this.expirationTimestamp-e)/1e3));this.timeLeft=t,this.inputDisabled=t<=0,t<=0&&(clearInterval(this.countdownTimer),this.countdownTimer=null,this.showResendOtp=!0,this.hasErrors=!1,this.isLastWarning=!1)},1e3)}formatTime(e){const t=Math.floor(e/60),r=e%60;return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}setOtpInputRef(e,t){e&&(this.otpInputs[t]=e)}updateOtpState(e,t){const r=[...this.otp];r[e]=t.toUpperCase(),this.otp=r}handleOnPasteOtp(e){var t,r,n;e.preventDefault();const E=(((r=(t=e.clipboardData)===null||t===void 0?void 0:t.getData("text"))===null||r===void 0?void 0:r.trim())||"").slice(0,this.config.inputLength).split("");this.otp=[...E,...Array(this.config.inputLength-E.length).fill("")],(n=this.otpInputs[E.length])===null||n===void 0||n.focus(),E.length===this.config.inputLength&&this.submitOtp()}handleOtpInput(e,t){const r=e.target,n=r.value;if(/^[a-z0-9]$/i.test(n)){this.updateOtpState(t,n);const p=this.otpInputs[t+1];p==null||p.focus()}r.value=""}handleKeyDown(e,t){const r=e.key,n=e.ctrlKey||e.metaKey;if(/^[a-z0-9]$/i.test(r)){if(n&&r.toLowerCase()==="v")return;e.preventDefault(),this.updateOtpState(t,r);const p=this.otpInputs[t+1];p==null||p.focus()}else if(r==="Backspace"){e.preventDefault(),this.otp[t]!==""&&this.updateOtpState(t,"");const p=this.otpInputs[t-1];p==null||p.focus()}}handleResendOtp(){const e=new CustomEvent("otpResendRequested");window.dispatchEvent(e)}submitOtp(){return Se(this,null,function*(){if(this.otp.join("").length!==this.config.inputLength){this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language),this.triggerShakeAnimation();return}if(this.timeLeft<=0){this.hasErrors=!0,this.errorMessage=_("otpExpiredMessage",this.language),this.triggerShakeAnimation(),yield this.getConfig();return}this.isLoading=!0,this.isValidating=!0,this.hasErrors=!1,this.errorMessage="";const e=this.otp.join("");this.flow==="stateless"&&this.handleOtpStateless(e),this.flow==="stateful"&&(yield this.handleOtpStateful(e))})}handleOtpStateless(e){window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:e,maxAttempts:this.config.maxValidationAttempts,validatedAttempts:this.config.numberOfValidateAttempts}}))}handleOtpStateful(e){return Se(this,null,function*(){const t=new URL(`/api/v1/mfa/challenge/${this.token}/validate`,this.endpoint);t.searchParams.append("input",e);try{const r=yield fetch(t.href,{method:"POST"});if(r.status===200){this.handleSuccess();return}const p=(yield r.json()).message||"";if(p.toLowerCase().includes("expired")){this.hasErrors=!0,this.errorMessage=_("otpExpiredMessage",this.language),this.triggerShakeAnimation(),yield this.getConfig();return}throw new Error(p)}catch(r){if(r.message==="gm.multifactorauthentication.challenge_internal_server_error"||r.message==="gm.multifactorauthentication.internal_server_error"){if(this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:_("accountBlocked",this.language)}},window.location.href),this.handleCloseWidget();return}this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language),this.triggerShakeAnimation(),this.getConfig();return}console.error("OTP submission failed:",r),this.hasErrors=!0,this.errorMessage=_("submissionError",this.language),this.triggerShakeAnimation()}finally{this.isLoading=!1,this.isValidating=!1}})}handleSuccess(){return Se(this,null,function*(){this.isSuccess=!0,yield new Promise(e=>setTimeout(e,1200)),window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}})),this.handleCloseWidget()})}triggerShakeAnimation(){this.shakeError=!0,setTimeout(()=>{this.shakeError=!1},650)}manualClosePopup(){window.dispatchEvent(new CustomEvent("manualClosePopup")),this.handleCloseWidget()}disconnectedCallback(){var e;this.countdownTimer&&clearInterval(this.countdownTimer),(e=this.stylingSubscription)===null||e===void 0||e.unsubscribe()}componentWillLoad(){return Se(this,null,function*(){this.translationUrl.length>2&&(yield qe(this.translationUrl))})}componentDidLoad(){this.stylingContainer&&(window.emMessageBuss!=null?Xe(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&Ue(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)))}render(){return c.h("div",{key:"76ac4d8968da87098db7f2b7f78b27edb7928185",ref:e=>this.stylingContainer=e},this.showPopup&&c.h("div",{key:"44909cc96a9b5e86cab28aa7fdca261d0b749253",class:"OtpPopupOverlay"},c.h("div",{key:"6e424d5ae5dedae3f83782c9a4c9e483c88357aa",class:`OtpPopupContent ${this.shakeError?"shake":""}`},this.isLoading?c.h("div",{class:"OtpLoaderContainer"},c.h("span",{class:"OtpLoader"})):this.hasConfigErrors?c.h("div",{class:"OtpError"},c.h("div",{class:"OtpErrorHeader"},c.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})),c.h("h2",null,_("errorHeader",this.language))),c.h("p",null,this.errorMessage),c.h("button",{class:"OtpButton error",onClick:this.manualClosePopup,"aria-label":_("close",this.language)},_("close",this.language))):c.h(c.Fragment,null,c.h("div",{class:"otp-description"},this.showResendOtp?c.h("p",{class:"OtpNoticeMessage",role:"alert"},_("otpExpiredMessage",this.language)):c.h(c.Fragment,null,c.h("p",{class:this.isLastWarning?"LastWarningMessage":""},_(this.isLastWarning?"popupMessageLastWarning":"popupMessage",this.language)),this.hasErrors&&c.h("p",{class:"OtpErrorMessage",role:"alert"},this.errorMessage))),c.h("div",{class:"OtpFieldWrapper"},c.h("h2",null,_("otpHeading",this.language)),c.h("div",{class:"OtpField"},this.otp.map((e,t)=>{const r=this.config.inputLength%2===0&&t===this.config.inputLength/2-1;return c.h("input",{key:t,ref:n=>this.setOtpInputRef(n,t),id:`otp-input-${t}`,type:"text",inputmode:"numeric",pattern:"[0-9]",class:`otp-box ${r?"space":""} ${e?"filled":""} ${this.hasErrors?"error":""}`,maxLength:1,value:e,onInput:n=>this.handleOtpInput(n,t),onKeyDown:n=>this.handleKeyDown(n,t),onPaste:n=>this.handleOnPasteOtp(n),disabled:this.inputDisabled,autoComplete:"off","aria-label":`${_("otpDigit",this.language)} ${t+1}`,"aria-invalid":this.hasErrors})})),c.h("div",{class:"OtpTimerContainer"},c.h("div",{class:`OtpTimer ${this.isLastWarning?"warning":""} ${this.timeLeft<60?"critical":""}`,role:"timer","aria-live":"polite"},c.h("svg",{class:"timer-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("path",{d:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"})),c.h("span",{class:"timer-text"},this.formatTime(this.timeLeft)," ",_("minutes",this.language))))),this.isSuccess&&c.h("div",{class:"OtpSuccessOverlay"},c.h("svg",{class:"success-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"})),c.h("span",null,_("otpVerified",this.language))),c.h("div",{class:"OtpActionButtons"},this.showResendOtp?c.h("button",{class:"OtpButton primary",onClick:this.handleResendOtp,disabled:this.isLoading,"aria-label":_("resendOtp",this.language)},_("resendOtp",this.language)):c.h("button",{class:`OtpButton primary ${this.isValidating?"loading":""}`,onClick:this.submitOtp,disabled:this.otp.join("").length!==this.config.inputLength||this.isValidating||this.isLoading,"aria-label":_("submit",this.language),"aria-busy":this.isValidating},this.isValidating?c.h(c.Fragment,null,c.h("span",{class:"button-spinner"}),c.h("span",{class:"button-text"},_("verifying",this.language))):c.h("span",{class:"button-text"},_("submit",this.language))),c.h("button",{class:"OtpButton secondary",onClick:this.manualClosePopup,disabled:this.isValidating,"aria-label":_("close",this.language)},_("close",this.language)))))))}get el(){return c.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};Ze.style=ut;const ct="en",ht=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],Qe={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21121:"Dear Player! Please be informed that currently you are allowed to initiate only withdrawal transactions from your player account. Error Code: 21121",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21121:"Dear Player! Please be informed that currently you are allowed to initiate only withdrawal transactions from your player account. Error Code: 21121",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},pt=e=>new Promise(t=>{fetch(e).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{for(let p in r[n])Qe[n][p]=r[n][p]}),t(!0)})}),Ce=(e,t)=>{const r=t;return Qe[r!==void 0&&ht.includes(r)?r:ct][e]},ft=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),gt=e=>{if(!e||typeof e!="string")return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")};var Ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Je={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ne,function(){var r=1e3,n=6e4,p=36e5,E="millisecond",U="second",P="minute",b="hour",L="day",we="week",W="month",Te="quarter",q="year",re="date",v="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ue=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ce={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var l=["th","st","nd","rd"],a=g%100;return"["+g+(l[(a-20)%10]||l[a]||l[0])+"]"}},A=function(g,l,a){var u=String(g);return!u||u.length>=l?g:""+Array(l+1-u.length).join(a)+g},ie={s:A,z:function(g){var l=-g.utcOffset(),a=Math.abs(l),u=Math.floor(a/60),s=a%60;return(l<=0?"+":"-")+A(u,2,"0")+":"+A(s,2,"0")},m:function g(l,a){if(l.date()<a.date())return-g(a,l);var u=12*(a.year()-l.year())+(a.month()-l.month()),s=l.clone().add(u,W),m=a-s<0,y=l.clone().add(u+(m?-1:1),W);return+(-(u+(a-s)/(m?s-y:y-s))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:W,y:q,w:we,d:L,D:re,h:b,m:P,s:U,ms:E,Q:Te}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},ne="en",Q={};Q[ne]=ce;var he="$isDayjsObject",Ee=function(g){return g instanceof oe||!(!g||!g[he])},ae=function g(l,a,u){var s;if(!l)return ne;if(typeof l=="string"){var m=l.toLowerCase();Q[m]&&(s=m),a&&(Q[m]=a,s=m);var y=l.split("-");if(!s&&y.length>1)return g(y[0])}else{var T=l.name;Q[T]=l,s=T}return!u&&s&&(ne=s),s||!u&&ne},k=function(g,l){if(Ee(g))return g.clone();var a=typeof l=="object"?l:{};return a.date=g,a.args=arguments,new oe(a)},M=ie;M.l=ae,M.i=Ee,M.w=function(g,l){return k(g,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var oe=function(){function g(a){this.$L=ae(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[he]=!0}var l=g.prototype;return l.parse=function(a){this.$d=function(u){var s=u.date,m=u.utc;if(s===null)return new Date(NaN);if(M.u(s))return new Date;if(s instanceof Date)return new Date(s);if(typeof s=="string"&&!/Z$/i.test(s)){var y=s.match(Y);if(y){var T=y[2]-1||0,R=(y[7]||"0").substring(0,3);return m?new Date(Date.UTC(y[1],T,y[3]||1,y[4]||0,y[5]||0,y[6]||0,R)):new Date(y[1],T,y[3]||1,y[4]||0,y[5]||0,y[6]||0,R)}}return new Date(s)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return M},l.isValid=function(){return this.$d.toString()!==v},l.isSame=function(a,u){var s=k(a);return this.startOf(u)<=s&&s<=this.endOf(u)},l.isAfter=function(a,u){return k(a)<this.startOf(u)},l.isBefore=function(a,u){return this.endOf(u)<k(a)},l.$g=function(a,u,s){return M.u(a)?this[u]:this.set(s,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,u){var s=this,m=!!M.u(u)||u,y=M.p(a),T=function(se,z){var H=M.w(s.$u?Date.UTC(s.$y,z,se):new Date(s.$y,z,se),s);return m?H:H.endOf(L)},R=function(se,z){return M.w(s.toDate()[se].apply(s.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(z)),s)},j=this.$W,N=this.$M,Z=this.$D,be="set"+(this.$u?"UTC":"");switch(y){case q:return m?T(1,0):T(31,11);case W:return m?T(1,N):T(0,N+1);case we:var pe=this.$locale().weekStart||0,fe=(j<pe?j+7:j)-pe;return T(m?Z-fe:Z+(6-fe),N);case L:case re:return R(be+"Hours",0);case b:return R(be+"Minutes",1);case P:return R(be+"Seconds",2);case U:return R(be+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,u){var s,m=M.p(a),y="set"+(this.$u?"UTC":""),T=(s={},s[L]=y+"Date",s[re]=y+"Date",s[W]=y+"Month",s[q]=y+"FullYear",s[b]=y+"Hours",s[P]=y+"Minutes",s[U]=y+"Seconds",s[E]=y+"Milliseconds",s)[m],R=m===L?this.$D+(u-this.$W):u;if(m===W||m===q){var j=this.clone().set(re,1);j.$d[T](R),j.init(),this.$d=j.set(re,Math.min(this.$D,j.daysInMonth())).$d}else T&&this.$d[T](R);return this.init(),this},l.set=function(a,u){return this.clone().$set(a,u)},l.get=function(a){return this[M.p(a)]()},l.add=function(a,u){var s,m=this;a=Number(a);var y=M.p(u),T=function(N){var Z=k(m);return M.w(Z.date(Z.date()+Math.round(N*a)),m)};if(y===W)return this.set(W,this.$M+a);if(y===q)return this.set(q,this.$y+a);if(y===L)return T(1);if(y===we)return T(7);var R=(s={},s[P]=n,s[b]=p,s[U]=r,s)[y]||1,j=this.$d.getTime()+a*R;return M.w(j,this)},l.subtract=function(a,u){return this.add(-1*a,u)},l.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return s.invalidDate||v;var m=a||"YYYY-MM-DDTHH:mm:ssZ",y=M.z(this),T=this.$H,R=this.$m,j=this.$M,N=s.weekdays,Z=s.months,be=s.meridiem,pe=function(z,H,Oe,De){return z&&(z[H]||z(u,m))||Oe[H].slice(0,De)},fe=function(z){return M.s(T%12||12,z,"0")},se=be||function(z,H,Oe){var De=z<12?"AM":"PM";return Oe?De.toLowerCase():De};return m.replace(ue,function(z,H){return H||function(Oe){switch(Oe){case"YY":return String(u.$y).slice(-2);case"YYYY":return M.s(u.$y,4,"0");case"M":return j+1;case"MM":return M.s(j+1,2,"0");case"MMM":return pe(s.monthsShort,j,Z,3);case"MMMM":return pe(Z,j);case"D":return u.$D;case"DD":return M.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return pe(s.weekdaysMin,u.$W,N,2);case"ddd":return pe(s.weekdaysShort,u.$W,N,3);case"dddd":return N[u.$W];case"H":return String(T);case"HH":return M.s(T,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return se(T,R,!0);case"A":return se(T,R,!1);case"m":return String(R);case"mm":return M.s(R,2,"0");case"s":return String(u.$s);case"ss":return M.s(u.$s,2,"0");case"SSS":return M.s(u.$ms,3,"0");case"Z":return y}return null}(z)||y.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,u,s){var m,y=this,T=M.p(u),R=k(a),j=(R.utcOffset()-this.utcOffset())*n,N=this-R,Z=function(){return M.m(y,R)};switch(T){case q:m=Z()/12;break;case W:m=Z();break;case Te:m=Z()/3;break;case we:m=(N-j)/6048e5;break;case L:m=(N-j)/864e5;break;case b:m=N/p;break;case P:m=N/n;break;case U:m=N/r;break;default:m=N}return s?m:M.a(m)},l.daysInMonth=function(){return this.endOf(W).$D},l.$locale=function(){return Q[this.$L]},l.locale=function(a,u){if(!a)return this.$L;var s=this.clone(),m=ae(a,u,!0);return m&&(s.$L=m),s},l.clone=function(){return M.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},g}(),Re=oe.prototype;return k.prototype=Re,[["$ms",E],["$s",U],["$m",P],["$H",b],["$W",L],["$M",W],["$y",q],["$D",re]].forEach(function(g){Re[g[1]]=function(l){return this.$g(l,g[0],g[1])}}),k.extend=function(g,l){return g.$i||(g(l,oe,k),g.$i=!0),k},k.locale=ae,k.isDayjs=Ee,k.unix=function(g){return k(1e3*g)},k.en=Q[ne],k.Ls=Q,k.p={},k})})(Je);const et=Je.exports;var tt={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ne,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(E,U,P){var b=U.prototype;P.utc=function(v){var Y={date:v,utc:!0,args:arguments};return new U(Y)},b.utc=function(v){var Y=P(this.toDate(),{locale:this.$L,utc:!0});return v?Y.add(this.utcOffset(),r):Y},b.local=function(){return P(this.toDate(),{locale:this.$L,utc:!1})};var L=b.parse;b.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),L.call(this,v)};var we=b.init;b.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else we.call(this)};var W=b.utcOffset;b.utcOffset=function(v,Y){var ue=this.$utils().u;if(ue(v))return this.$u?0:ue(this.$offset)?W.call(this):this.$offset;if(typeof v=="string"&&(v=function(ne){ne===void 0&&(ne="");var Q=ne.match(n);if(!Q)return null;var he=(""+Q[0]).match(p)||["-",0,0],Ee=he[0],ae=60*+he[1]+ +he[2];return ae===0?0:Ee==="+"?ae:-ae}(v),v===null))return this;var ce=Math.abs(v)<=16?60*v:v,A=this;if(Y)return A.$offset=ce,A.$u=v===0,A;if(v!==0){var ie=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(ce+ie,r)).$offset=ce,A.$x.$localOffset=ie}else A=this.utc();return A};var Te=b.format;b.format=function(v){var Y=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Te.call(this,Y)},b.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},b.isUTC=function(){return!!this.$u},b.toISOString=function(){return this.toDate().toISOString()},b.toString=function(){return this.toDate().toUTCString()};var q=b.toDate;b.toDate=function(v){return v==="s"&&this.$offset?P(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():q.call(this)};var re=b.diff;b.diff=function(v,Y,ue){if(v&&this.$u===v.$u)return re.call(this,v,Y,ue);var ce=this.local(),A=P(v).local();return re.call(ce,A,Y,ue)}}})})(tt);const mt=tt.exports;var ze={exports:{}};/** @license
|
|
2
|
-
* eventsource.js
|
|
3
|
-
* Available under MIT License (MIT)
|
|
4
|
-
* https://github.com/Yaffle/EventSource/
|
|
5
|
-
*/(function(e,t){(function(r){var n=r.setTimeout,p=r.clearTimeout,E=r.XMLHttpRequest,U=r.XDomainRequest,P=r.ActiveXObject,b=r.EventSource,L=r.document,we=r.Promise,W=r.fetch,Te=r.Response,q=r.TextDecoder,re=r.TextEncoder,v=r.AbortController;if(typeof window!="undefined"&&typeof L!="undefined"&&!("readyState"in L)&&L.body==null&&(L.readyState="loading",window.addEventListener("load",function(i){L.readyState="complete"},!1)),E==null&&P!=null&&(E=function(){return new P("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(i){function d(){}return d.prototype=i,new d}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var Y=W;W=function(i,d){var h=d.signal;return Y(i,{headers:d.headers,credentials:d.credentials,cache:d.cache}).then(function(o){var S=o.body.getReader();return h._reader=S,h._aborted&&h._reader.cancel(),{status:o.status,statusText:o.statusText,headers:o.headers,body:{getReader:function(){return S}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function ue(){this.bitsNeeded=0,this.codePoint=0}ue.prototype.decode=function(i){function d(D,x,w){if(w===1)return D>=128>>x&&D<<x<=2047;if(w===2)return D>=2048>>x&&D<<x<=55295||D>=57344>>x&&D<<x<=65535;if(w===3)return D>=65536>>x&&D<<x<=1114111;throw new Error}function h(D,x){if(D===6*1)return x>>6>15?3:x>31?2:1;if(D===6*2)return x>15?3:2;if(D===6*3)return 3;throw new Error}for(var o=65533,S="",f=this.bitsNeeded,C=this.codePoint,$=0;$<i.length;$+=1){var O=i[$];f!==0&&(O<128||O>191||!d(C<<6|O&63,f-6,h(f,C)))&&(f=0,C=o,S+=String.fromCharCode(C)),f===0?(O>=0&&O<=127?(f=0,C=O):O>=192&&O<=223?(f=6*1,C=O&31):O>=224&&O<=239?(f=6*2,C=O&15):O>=240&&O<=247?(f=6*3,C=O&7):(f=0,C=o),f!==0&&!d(C,f,h(f,C))&&(f=0,C=o)):(f-=6,C=C<<6|O&63),f===0&&(C<=65535?S+=String.fromCharCode(C):(S+=String.fromCharCode(55296+(C-65535-1>>10)),S+=String.fromCharCode(56320+(C-65535-1&1023))))}return this.bitsNeeded=f,this.codePoint=C,S};var ce=function(){try{return new q().decode(new re().encode("test"),{stream:!0})==="test"}catch(i){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+i)}return!1};(q==null||re==null||!ce())&&(q=ue);var A=function(){};function ie(i){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=A,this.onload=A,this.onerror=A,this.onreadystatechange=A,this._contentType="",this._xhr=i,this._sendTimeout=0,this._abort=A}ie.prototype.open=function(i,d){this._abort(!0);var h=this,o=this._xhr,S=1,f=0;this._abort=function(w){h._sendTimeout!==0&&(p(h._sendTimeout),h._sendTimeout=0),(S===1||S===2||S===3)&&(S=4,o.onload=A,o.onerror=A,o.onabort=A,o.onprogress=A,o.onreadystatechange=A,o.abort(),f!==0&&(p(f),f=0),w||(h.readyState=4,h.onabort(null),h.onreadystatechange())),S=0};var C=function(){if(S===1){var w=0,I="",ge=void 0;if("contentType"in o)w=200,I="OK",ge=o.contentType;else try{w=o.status,I=o.statusText,ge=o.getResponseHeader("Content-Type")}catch(_e){w=0,I="",ge=void 0}w!==0&&(S=2,h.readyState=2,h.status=w,h.statusText=I,h._contentType=ge,h.onreadystatechange())}},$=function(){if(C(),S===2||S===3){S=3;var w="";try{w=o.responseText}catch(I){}h.readyState=3,h.responseText=w,h.onprogress()}},O=function(w,I){if((I==null||I.preventDefault==null)&&(I={preventDefault:A}),$(),S===1||S===2||S===3){if(S=4,f!==0&&(p(f),f=0),h.readyState=4,w==="load")h.onload(I);else if(w==="error")h.onerror(I);else if(w==="abort")h.onabort(I);else throw new TypeError;h.onreadystatechange()}},D=function(w){o!=null&&(o.readyState===4?(!("onload"in o)||!("onerror"in o)||!("onabort"in o))&&O(o.responseText===""?"error":"load",w):o.readyState===3?"onprogress"in o||$():o.readyState===2&&C())},x=function(){f=n(function(){x()},500),o.readyState===3&&$()};"onload"in o&&(o.onload=function(w){O("load",w)}),"onerror"in o&&(o.onerror=function(w){O("error",w)}),"onabort"in o&&(o.onabort=function(w){O("abort",w)}),"onprogress"in o&&(o.onprogress=$),"onreadystatechange"in o&&(o.onreadystatechange=function(w){D(w)}),("contentType"in o||!("ontimeout"in E.prototype))&&(d+=(d.indexOf("?")===-1?"?":"&")+"padding=true"),o.open(i,d,!0),"readyState"in o&&(f=n(function(){x()},0))},ie.prototype.abort=function(){this._abort(!1)},ie.prototype.getResponseHeader=function(i){return this._contentType},ie.prototype.setRequestHeader=function(i,d){var h=this._xhr;"setRequestHeader"in h&&h.setRequestHeader(i,d)},ie.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},ie.prototype.send=function(){if((!("ontimeout"in E.prototype)||!("sendAsBinary"in E.prototype)&&!("mozAnon"in E.prototype))&&L!=null&&L.readyState!=null&&L.readyState!=="complete"){var i=this;i._sendTimeout=n(function(){i._sendTimeout=0,i.send()},4);return}var d=this._xhr;"withCredentials"in d&&(d.withCredentials=this.withCredentials);try{d.send(void 0)}catch(h){throw h}};function ne(i){return i.replace(/[A-Z]/g,function(d){return String.fromCharCode(d.charCodeAt(0)+32)})}function Q(i){for(var d=Object.create(null),h=i.split(`\r
|
|
6
|
-
`),o=0;o<h.length;o+=1){var S=h[o],f=S.split(": "),C=f.shift(),$=f.join(": ");d[ne(C)]=$}this._map=d}Q.prototype.get=function(i){return this._map[ne(i)]},E!=null&&E.HEADERS_RECEIVED==null&&(E.HEADERS_RECEIVED=2);function he(){}he.prototype.open=function(i,d,h,o,S,f,C){i.open("GET",S);var $=0;i.onprogress=function(){var D=i.responseText,x=D.slice($);$+=x.length,h(x)},i.onerror=function(D){D.preventDefault(),o(new Error("NetworkError"))},i.onload=function(){o(null)},i.onabort=function(){o(null)},i.onreadystatechange=function(){if(i.readyState===E.HEADERS_RECEIVED){var D=i.status,x=i.statusText,w=i.getResponseHeader("Content-Type"),I=i.getAllResponseHeaders();d(D,x,w,new Q(I))}},i.withCredentials=f;for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&i.setRequestHeader(O,C[O]);return i.send(),i};function Ee(i){this._headers=i}Ee.prototype.get=function(i){return this._headers.get(i)};function ae(){}ae.prototype.open=function(i,d,h,o,S,f,C){var $=null,O=new v,D=O.signal,x=new q;return W(S,{headers:C,credentials:f?"include":"same-origin",signal:D,cache:"no-store"}).then(function(w){return $=w.body.getReader(),d(w.status,w.statusText,w.headers.get("Content-Type"),new Ee(w.headers)),new we(function(I,ge){var _e=function(){$.read().then(function(J){if(J.done)I(void 0);else{var G=x.decode(J.value,{stream:!0});h(G),_e()}}).catch(function(J){ge(J)})};_e()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){o(w)}),{abort:function(){$!=null&&$.cancel(),O.abort()}}};function k(){this._listeners=Object.create(null)}function M(i){n(function(){throw i},0)}k.prototype.dispatchEvent=function(i){i.target=this;var d=this._listeners[i.type];if(d!=null)for(var h=d.length,o=0;o<h;o+=1){var S=d[o];try{typeof S.handleEvent=="function"?S.handleEvent(i):S.call(this,i)}catch(f){M(f)}}},k.prototype.addEventListener=function(i,d){i=String(i);var h=this._listeners,o=h[i];o==null&&(o=[],h[i]=o);for(var S=!1,f=0;f<o.length;f+=1)o[f]===d&&(S=!0);S||o.push(d)},k.prototype.removeEventListener=function(i,d){i=String(i);var h=this._listeners,o=h[i];if(o!=null){for(var S=[],f=0;f<o.length;f+=1)o[f]!==d&&S.push(o[f]);S.length===0?delete h[i]:h[i]=S}};function oe(i){this.type=i,this.target=void 0}function Re(i,d){oe.call(this,i),this.data=d.data,this.lastEventId=d.lastEventId}Re.prototype=Object.create(oe.prototype);function g(i,d){oe.call(this,i),this.status=d.status,this.statusText=d.statusText,this.headers=d.headers}g.prototype=Object.create(oe.prototype);function l(i,d){oe.call(this,i),this.error=d.error}l.prototype=Object.create(oe.prototype);var a=-1,u=0,s=1,m=2,y=-1,T=0,R=1,j=2,N=3,Z=/^text\/event\-stream(;.*)?$/i,be=1e3,pe=18e6,fe=function(i,d){var h=i==null?d:parseInt(i,10);return h!==h&&(h=d),se(h)},se=function(i){return Math.min(Math.max(i,be),pe)},z=function(i,d,h){try{typeof d=="function"&&d.call(i,h)}catch(o){M(o)}};function H(i,d){k.call(this),d=d||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,it(this,i,d)}function Oe(){return E!=null&&"withCredentials"in E.prototype||U==null?new E:new U}var De=W!=null&&Te!=null&&"body"in Te.prototype;function it(i,d,h){d=String(d);var o=!!h.withCredentials,S=h.lastEventIdQueryParameterName||"lastEventId",f=se(1e3),C=fe(h.heartbeatTimeout,45e3),$="",O=f,D=!1,x=0,w=h.headers||{},I=h.Transport,ge=De&&I==null?void 0:new ie(I!=null?new I:Oe()),_e=I!=null&&typeof I!="string"?new I:ge==null?new ae:new he,J=void 0,G=0,de=a,Pe="",Le="",me="",$e="",X=T,He=0,Me=0,nt=function(V,F,ee,te){if(de===u)if(V===200&&ee!=null&&Z.test(ee)){de=s,D=Date.now(),O=f,i.readyState=s;var K=new g("open",{status:V,statusText:F,headers:te});i.dispatchEvent(K),z(i,i.onopen,K)}else{var B="";V!==200?(F&&(F=F.replace(/\s+/g," ")),B="EventSource's response has a status "+V+" "+F+" that is not 200. Aborting the connection."):B="EventSource's response has a Content-Type specifying an unsupported type: "+(ee==null?"-":ee.replace(/\s+/g," "))+". Aborting the connection.",Fe();var K=new g("error",{status:V,statusText:F,headers:te});i.dispatchEvent(K),z(i,i.onerror,K),console.error(B)}},at=function(V){if(de===s){for(var F=-1,ee=0;ee<V.length;ee+=1){var te=V.charCodeAt(ee);(te===10||te===13)&&(F=ee)}var K=(F!==-1?$e:"")+V.slice(0,F+1);$e=(F===-1?$e:"")+V.slice(F+1),V!==""&&(D=Date.now(),x+=V.length);for(var B=0;B<K.length;B+=1){var te=K.charCodeAt(B);if(X===y&&te===10)X=T;else if(X===y&&(X=T),te===13||te===10){if(X!==T){X===R&&(Me=B+1);var ve=K.slice(He,Me-1),ye=K.slice(Me+(Me<B&&K.charCodeAt(Me)===32?1:0),B);ve==="data"?(Pe+=`
|
|
7
|
-
`,Pe+=ye):ve==="id"?Le=ye:ve==="event"?me=ye:ve==="retry"?(f=fe(ye,f),O=f):ve==="heartbeatTimeout"&&(C=fe(ye,C),G!==0&&(p(G),G=n(function(){ke()},C)))}if(X===T){if(Pe!==""){$=Le,me===""&&(me="message");var xe=new Re(me,{data:Pe.slice(1),lastEventId:Le});if(i.dispatchEvent(xe),me==="open"?z(i,i.onopen,xe):me==="message"?z(i,i.onmessage,xe):me==="error"&&z(i,i.onerror,xe),de===m)return}Pe="",me=""}X=te===13?y:T}else X===T&&(He=B,X=R),X===R?te===58&&(Me=B+1,X=j):X===j&&(X=N)}}},Be=function(V){if(de===s||de===u){de=a,G!==0&&(p(G),G=0),G=n(function(){ke()},O),O=se(Math.min(f*16,O*2)),i.readyState=u;var F=new l("error",{error:V});i.dispatchEvent(F),z(i,i.onerror,F),V!=null&&console.error(V)}},Fe=function(){de=m,J!=null&&(J.abort(),J=void 0),G!==0&&(p(G),G=0),i.readyState=m},ke=function(){if(G=0,de!==a){if(!D&&J!=null)Be(new Error("No activity within "+C+" milliseconds. "+(de===u?"No response received.":x+" chars received.")+" Reconnecting.")),J!=null&&(J.abort(),J=void 0);else{var V=Math.max((D||Date.now())+C-Date.now(),1);D=!1,G=n(function(){ke()},V)}return}D=!1,x=0,G=n(function(){ke()},C),de=u,Pe="",me="",Le=$,$e="",He=0,Me=0,X=T;var F=d;if(d.slice(0,5)!=="data:"&&d.slice(0,5)!=="blob:"&&$!==""){var ee=d.indexOf("?");F=ee===-1?d:d.slice(0,ee+1)+d.slice(ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ye,xe){return xe===S?"":ye}),F+=(d.indexOf("?")===-1?"?":"&")+S+"="+encodeURIComponent($)}var te=i.withCredentials,K={};K.Accept="text/event-stream";var B=i.headers;if(B!=null)for(var ve in B)Object.prototype.hasOwnProperty.call(B,ve)&&(K[ve]=B[ve]);try{J=_e.open(ge,nt,at,Be,F,te,K)}catch(ye){throw Fe(),ye}};i.url=d,i.readyState=u,i.withCredentials=o,i.headers=w,i._close=Fe,ke()}H.prototype=Object.create(k.prototype),H.prototype.CONNECTING=u,H.prototype.OPEN=s,H.prototype.CLOSED=m,H.prototype.close=function(){this._close()},H.CONNECTING=u,H.OPEN=s,H.CLOSED=m,H.prototype.withCredentials=void 0;var Ve=b;E!=null&&(b==null||!("withCredentials"in b.prototype))&&(Ve=H),function(i){{var d=i(t);d!==void 0&&(e.exports=d)}}(function(i){i.EventSourcePolyfill=H,i.NativeEventSource=b,i.EventSource=Ve})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ne:globalThis)})(ze,ze.exports);const Ye="user-deposit-withdrawal",Ge=["mm-hcback-to-merchant","mm-hc-back-tomerchant","mm-hc-sports","mm-hc-casino","mm-hc-contact","mm-wm-hc-init-deposit","mm-wm-hc-init-deposit-quick"],We={TWO_FACTOR_AUTH:"TWO_FACTOR_AUTH_NOTIFICATION",SESSION_EXPIRATION:"SESSION_EXPIRATION"},vt={FAILED_2FA:"failed2FA"},le={OPEN_FULL_CASHIER:"MMFE:openFullCashier",SET_QUICK_DEPOSIT_HEIGHT:"MMFE:setQuickDepositHeight",SET_IFRAME_HEIGHT:"MMFE:setIFrameHeight",SELECTED_PAYMENT_METHOD:"MMFE:selectedPaymentMethod",PROCEED_PAYMENT:"MMFE:proceedPayment",CANCEL_PAYMENT:"MMFE:cancelPayment",RESET_OTP:"MMFE:ResetOTP"},yt=()=>{},Ie={PROCEED:{[le.PROCEED_PAYMENT]:"true"},CANCEL:{[le.CANCEL_PAYMENT]:"true"},RESET:{[le.RESET_OTP]:"true"},PROCEED_FALSE:{[le.PROCEED_PAYMENT]:"false"}},St=`:host {
|
|
8
|
-
font: inherit;
|
|
9
|
-
display: block;
|
|
10
|
-
height: 100%;
|
|
11
|
-
container-type: inline-size;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.DepositWithdrawalContainer {
|
|
15
|
-
container-type: inline-size;
|
|
16
|
-
container-name: deposit-container;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.CategoryTitle {
|
|
20
|
-
font-size: var(--emw--font-size-x-large, 26px);
|
|
21
|
-
color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.MenuReturnButton {
|
|
25
|
-
font: inherit;
|
|
26
|
-
color: var(--emw--color-gray-300, #58586B);
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
column-gap: 10px;
|
|
30
|
-
margin-bottom: 10px;
|
|
31
|
-
}
|
|
32
|
-
.MenuReturnButton svg {
|
|
33
|
-
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
|
|
34
|
-
}
|
|
35
|
-
.MenuReturnButton h2.CategoryTitleMobile {
|
|
36
|
-
font-size: 16px;
|
|
37
|
-
color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ErrorMessage {
|
|
41
|
-
color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.DepositWithdrawalWrapper {
|
|
45
|
-
width: 100%;
|
|
46
|
-
margin: 0;
|
|
47
|
-
padding: 50px;
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
overflow-y: scroll;
|
|
50
|
-
}
|
|
51
|
-
.DepositWithdrawalWrapper iframe {
|
|
52
|
-
border-width: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ShortCashier.DepositWithdrawalWrapper {
|
|
56
|
-
height: 500px;
|
|
57
|
-
}
|
|
58
|
-
.ShortCashier.CategoryTitle.CategoryTitle {
|
|
59
|
-
margin-right: 20px;
|
|
60
|
-
padding-top: 20px;
|
|
61
|
-
color: var(--emw--color-black, #000000);
|
|
62
|
-
}
|
|
63
|
-
.ShortCashier .ErrorMessage {
|
|
64
|
-
margin: auto;
|
|
65
|
-
width: 90%;
|
|
66
|
-
margin-top: 70px;
|
|
67
|
-
text-align: center;
|
|
68
|
-
color: var(--emw--color-black, #000000);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@container (max-width: 768px) {
|
|
72
|
-
.DepositWithdrawalWrapper {
|
|
73
|
-
padding: 20px 15px;
|
|
74
|
-
}
|
|
75
|
-
.DepositWithdrawalWrapper:not(.ShortCashier) {
|
|
76
|
-
overflow: visible;
|
|
77
|
-
}
|
|
78
|
-
}`,wt=St;et.extend(mt);const rt=class{constructor(e){c.registerInstance(this,e),this.sseStream=null,this.selectedPaymentMethod=null,this.sseReconnectAttempts=0,this.sseReconnectTimer=null,this.sseShouldStayConnected=!1,this.SSE_MAX_RECONNECT_ATTEMPTS=5,this.SSE_RECONNECT_DELAY_BASE_MS=1e3,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=ft(this.userAgent),this.errorCodes=["21123","21122","21121"],this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType="",this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=yt,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}handleClientStylingChange(e,t){e!=t&&Ue(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Se(this,null,function*(){if(yield this.loadWidget(),this.translationUrl)return pt(this.translationUrl)})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?Xe(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&Ue(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.closeSSEStream()}render(){return c.h(c.Host,{key:"8bcf85e10168473086c2fc396d6e765ab83b7327"},this.enableStepUpAuth&&c.h("player-step-up-auth",{key:"8ebf6cde613402070345c2263466e1d533c76887",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),c.h("div",{key:"b8f01c9a533ad6609f4db2d0981a716930e21b52",ref:e=>this.stylingContainer=e,class:""},c.h("div",{key:"74c808658271934aee5bc125f0663e56dfcf47b8",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`},!(this.isMobile&&!this.isShortCashier)&&c.h("h2",{key:"70f1afb63dd6fec358b864063123f7910ac25906",class:"CategoryTitle"},Ce(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),c.h("div",{key:"83f0175347d8ab1260fa21dafeba9a4692a01b74",style:{marginTop:this.isShortCashier?"30px":"0"}},this.isMobile&&!this.isShortCashier?c.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},c.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},c.h("defs",null),c.h("g",{transform:"translate(-20 -158)"},c.h("g",{transform:"translate(20 158)"},c.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),c.h("h2",{class:"CategoryTitleMobile"},Ce(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?c.h("iframe",{ref:e=>this.cashierIframeRef=e,width:"100%",allow:"payment",height:this.dynamicHeight,src:this.cashierInfoUrl}):c.h("h3",{innerHTML:this.type==="deposit"?Ce("denyDeposit",this.language):Ce("denyWithdrawal",this.language),class:"ErrorMessage"}))))}loadWidget(){return Se(this,null,function*(){const e={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};if(!(Object.values(e).some(t=>t===void 0)||!this.endpoint))try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,r=yield fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":et.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!r.ok){const p=yield r.text();throw new Error(p)}const n=yield r.json();if(n.CashierInfo)this.cashierInfoUrl=n.CashierInfo.Url;else{let p;if(n.ResponseMessage){let U=this.errorCodes.find(P=>n.ResponseMessage.includes(P))||null;U?p=Ce(`errorCode${U}`,this.language):p=Ce("notFoundErrorCode",this.language)}else p=this.type==="deposit"?Ce("denyDeposit",this.language):Ce("denyWithdrawal",this.language);const E={type:"error",message:p};window.postMessage({type:"DenyDepositOrWithdrawal",data:E},window.location.href)}}catch(t){console.error(t)}})}handleEnableStepUpAuthChange(e){!e&&this.sseStream&&this.closeSSEStream()}handleMessage(e){const t=this.extractPayload(e);if(!t)return;this.applyLayoutHints(t);const r=this.extractCashierRedirectReason(t);if(!r||this.emitForwardedRedirect(e,r))return;const n=this.resolveRedirectPlan(r);n&&this.doRedirect(n.reason,n.targetUrl)}extractCashierRedirectReason(e){if(typeof(e==null?void 0:e.type)=="string"&&Ge.includes(e.type))return e.type;if(typeof(e==null?void 0:e.redirect)=="string"&&Ge.includes(e.redirect))return e.redirect}extractPayload(e){if(!(!(e!=null&&e.data)||typeof e.data!="object"))return e.data}applyLayoutHints(e){if(e[le.OPEN_FULL_CASHIER]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e[le.SET_QUICK_DEPOSIT_HEIGHT]&&this.isShortCashier&&(this.dynamicHeight=e[le.SET_QUICK_DEPOSIT_HEIGHT].toString()+"px"),e[le.SET_IFRAME_HEIGHT]&&(this.dynamicHeight=e[le.SET_IFRAME_HEIGHT].toString()+"px"),e[le.SELECTED_PAYMENT_METHOD]){const t=e[le.SELECTED_PAYMENT_METHOD];this.selectedPaymentMethod!==t&&(this.selectedPaymentMethod=t,this.sseStream&&this.closeSSEStream(),this.type==="withdraw"&>(t)&&this.enableStepUpAuth&&this.initializeSSE())}if(e["MMFE:vendorRedirect"]){const t=e["MMFE:vendorRedirect"];window.postMessage({type:`${Ye}:mm-open-vendor`,url:t},window.location.href)}}resolveRedirectPlan(e){switch(e){case"mm-hcback-to-merchant":case"mm-hc-back-tomerchant":return this.buildRedirectPlan(e,this.homeUrl);case"mm-hc-sports":return this.buildRedirectPlan(e,this.sportsUrl);case"mm-hc-casino":return this.buildRedirectPlan(window.location.href,this.casinoUrl);case"mm-hc-contact":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.contactUrl);case"mm-wm-hc-init-deposit":case"mm-wm-hc-init-deposit-quick":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.depositUrl);default:return}}buildRedirectPlan(e,t){if(t)return{reason:e,targetUrl:t}}emitForwardedRedirect(e,t){if(!this.forwardCashierRedirects)return!1;const r={type:`${Ye}:${t}`,originalType:t,payload:e.data,origin:e.origin};return window.postMessage(r,window.location.href),!0}doRedirect(e,t){const r={reason:e,url:t,cancel:!1};if(this.beforeRedirect(r),!r.cancel){if(!r.url){window.location.href="/";return}window.location.href=r.url}}initializeSSE(){if(!(this.sseStream&&this.sseStream.readyState!==ze.exports.EventSourcePolyfill.CLOSED)){if(!this.endpoint||!this.userId||!this.session||this.type!=="withdraw"){console.warn("[SSE] initializeSSE - missing required props, cannot initialize");return}this.sseShouldStayConnected=!0,this.sseReconnectAttempts=0,this.connectSSE()}}connectSSE(){if(this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}if(this.sseShouldStayConnected)try{const e=new URL(`/v1/player/${this.userId}/information/updates`,this.endpoint),t={accept:"text/event-stream","X-SessionId":this.session};this.sseStream=new ze.exports.EventSourcePolyfill(e,{headers:t}),this.sseStream.addEventListener("open",this.handleSSEOpen.bind(this)),this.sseStream.addEventListener("message",this.handleSSEMessage.bind(this)),this.sseStream.addEventListener("error",this.handleSSEError.bind(this))}catch(e){console.error("[SSE] connectSSE - Failed to create EventSourcePolyfill:",e),this.scheduleReconnect()}}handleSSEOpen(e){console.info("[SSE] handleSSEOpen - connection opened successfully"),this.sseReconnectAttempts=0,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null)}handleSSEMessage(e){if(this.enableStepUpAuth)try{const t=JSON.parse(e.data),r=t.type;if(r===We.TWO_FACTOR_AUTH){const{body:{challengeId:n}={}}=t;n?this.triggerStepUpAuth(n):console.error(`${We.TWO_FACTOR_AUTH} received but challengeId not found in body`)}else r===We.SESSION_EXPIRATION&&(console.info("[SSE] SESSION_EXPIRATION received, closing connection"),window.postMessage({type:"SessionExpiration",reason:vt.FAILED_2FA},window.location.href),this.closeSSEStream())}catch(t){console.error("Error parsing SSE message:",t)}}handleSSEError(e){console.warn("[SSE] connection error"),this.sseShouldStayConnected&&this.sseReconnectAttempts<this.SSE_MAX_RECONNECT_ATTEMPTS?this.scheduleReconnect():this.sseReconnectAttempts>=this.SSE_MAX_RECONNECT_ATTEMPTS&&(console.error("[SSE] handleSSEError - max reconnection attempts reached, giving up"),this.closeSSEStream())}scheduleReconnect(){if(!this.sseShouldStayConnected)return;this.sseReconnectTimer&&clearTimeout(this.sseReconnectTimer),this.sseReconnectAttempts++;const e=this.SSE_RECONNECT_DELAY_BASE_MS*Math.pow(2,this.sseReconnectAttempts-1);this.sseReconnectTimer=setTimeout(()=>{this.sseReconnectTimer=null,this.sseShouldStayConnected&&this.connectSSE()},e)}closeSSEStream(){if(this.sseShouldStayConnected=!1,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}this.sseReconnectAttempts=0}triggerStepUpAuth(e){this.enableStepUpAuth&&window.dispatchEvent(new CustomEvent("stepUpAuthRequired",{detail:{"x-step-up-required":!0,"x-step-up-token":e,flow:"stateful"}}))}getCashierOrigin(){if(!this.cashierInfoUrl)return"*";try{return new URL(this.cashierInfoUrl).origin}catch(e){return console.warn("Failed to parse cashier URL origin, using wildcard:",e),"*"}}sendMessageToCashier(e){var t;if(!(!((t=this.cashierIframeRef)===null||t===void 0)&&t.contentWindow)){console.warn("Cashier iframe not available for postMessage");return}const r=this.getCashierOrigin();this.cashierIframeRef.contentWindow.postMessage(e,r)}handleOtpSuccess(){this.enableStepUpAuth&&(this.sendMessageToCashier(Ie.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(Ie.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(Ie.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(Ie.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};rt.style=wt;exports.player_step_up_auth=Ze;exports.user_deposit_withdrawal=rt;
|