@everymatrix/player-account-controller-nd 1.74.10 → 1.75.99
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-C52-PhwD.js → GeneralLogout-D030tuMl.js} +1298 -1284
- package/components/{GeneralLogout-C-KQBmk3.js → GeneralLogout-DqIgt_tx.js} +1322 -1308
- package/components/GeneralLogout-TofSUXEw.cjs +21 -0
- package/components/PlayerAccountBettingHistory-85apG_ux.cjs +1 -0
- package/components/PlayerAccountBettingHistory-BspqrGzf.js +310 -0
- package/components/PlayerAccountBettingHistory-Dl1_SAM4.js +311 -0
- package/components/{PlayerAccountBiometrics-C5FFOJ5V.js → PlayerAccountBiometrics-DsYJOGIk.js} +5 -5
- package/components/{PlayerAccountBiometrics-DPdT285K.cjs → PlayerAccountBiometrics-N164JTVo.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DuvDCmjx.js → PlayerAccountBiometrics-YcohloWe.js} +5 -5
- package/components/{PlayerAccountClosureNd-BEMKT7IM.js → PlayerAccountClosureNd-B9z8p3ie.js} +6 -6
- package/components/{PlayerAccountClosureNd-CYHq0859.js → PlayerAccountClosureNd-C5CrElCk.js} +6 -6
- package/components/{PlayerAccountClosureNd-CMzRAP8U.cjs → PlayerAccountClosureNd-DFWHunWk.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-BLPNyTdD.cjs → PlayerAccountControllerNd-BIYxelWf.cjs} +1 -1
- package/components/PlayerAccountControllerNd-BnL3zttA.js +8883 -0
- package/components/PlayerAccountControllerNd-Brc1Pm9G.cjs +1 -0
- package/components/{PlayerAccountControllerNd-CkMeFrTH.js → PlayerAccountControllerNd-CQiByOpl.js} +215 -215
- package/components/PlayerAccountControllerNd-QNff2Pgi.js +8900 -0
- package/components/{PlayerAccountControllerNd-DVnO4_Om.js → PlayerAccountControllerNd-wYyuG8M1.js} +212 -212
- package/components/{PlayerAccountGamingLimits-B7ppWJQ6.js → PlayerAccountGamingLimits-CUtQADXZ.js} +124 -124
- package/components/{PlayerAccountGamingLimits-DMS9a3TN.js → PlayerAccountGamingLimits-CsAmDJwA.js} +124 -124
- package/components/{PlayerAccountGamingLimits-B2vzRems.cjs → PlayerAccountGamingLimits-DLyOkU8g.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Crt7TSIB.js → PlayerAccountGamingLimitsConfirmationModal-CKwL1tb1.js} +38 -38
- package/components/{PlayerAccountGamingLimitsConfirmationModal-rkO4-ifF.js → PlayerAccountGamingLimitsConfirmationModal-DXqRhhmC.js} +38 -38
- package/components/PlayerAccountGamingLimitsConfirmationModal-cxg0byfD.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs → PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsGroupEdit-CDRqETAd.js → PlayerAccountGamingLimitsGroupEdit-Cj8Zh8WK.js} +1009 -1009
- package/components/{PlayerAccountGamingLimitsGroupEdit-B-MqO4BJ.js → PlayerAccountGamingLimitsGroupEdit-DKNPRs3o.js} +1009 -1009
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C85Ls9oF.js → PlayerAccountGamingLimitsHistory2Nd-BhLSHYdC.js} +4 -4
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CG8WJl-W.cjs → PlayerAccountGamingLimitsHistory2Nd-CP6Lgi2e.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C5ysmYyV.js → PlayerAccountGamingLimitsHistory2Nd-OS3hwfOI.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-BYwQnhb5.js → PlayerAccountGamingLimitsInfoCard-CLe77Gl9.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-DjnVkaho.js → PlayerAccountGamingLimitsInfoCard-DsRCdtpt.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs → PlayerAccountGamingLimitsInfoCard-XCP1Kxff.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Cd8mrrqZ.js → PlayerAccountGamingLimitsPage2Gm16Nd-BRkHDHHU.js} +423 -416
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BMYVxNF1.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-BZanq3Dj.cjs} +6 -6
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-C3w7JfjF.js +4235 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-CENUtyWC.js +4289 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DWUo_yOs.cjs +35 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-oZxq2GPD.js → PlayerAccountGamingLimitsPage2Gm16Nd-DvZCI9jR.js} +392 -385
- package/components/{PlayerAccountGamingLimitsPopup-lZ7y_RVP.js → PlayerAccountGamingLimitsPopup-B04Er6pi.js} +21 -21
- package/components/{PlayerAccountGamingLimitsPopup-D16rhs4n.cjs → PlayerAccountGamingLimitsPopup-DNjM-xS5.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-1ObhRFHn.js → PlayerAccountGamingLimitsPopup-oQNgmn2e.js} +21 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Bwnuz6Yq.js +1284 -0
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DVmSDv2F.js → PlayerAccountGamingLimitsWrapper2Nd-GzdrBFqR.js} +6 -6
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-g_R5EsPn.cjs → PlayerAccountGamingLimitsWrapper2Nd-eFKelHQy.cjs} +1 -1
- package/components/PlayerAccountGamingLimitsWrapper2Nd-r_RFzIhz.js +1292 -0
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-iMEe46CC.js → PlayerAccountGamingLimitsWrapper2Nd-u6W-W9e4.js} +6 -6
- package/components/PlayerAccountGamingLimitsWrapper2Nd-xKD7XYGD.cjs +4 -0
- package/components/PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-Bgat7eVE.js → PlayerAccountGeneralConfirmationModal-CukB9VCO.js} +53 -53
- package/components/{PlayerAccountGeneralConfirmationModal-DrgjMSLh.js → PlayerAccountGeneralConfirmationModal-ESnfg5wk.js} +53 -53
- package/components/{PlayerAccountMenuNd-V9EOIgPS.js → PlayerAccountMenuNd-BIxULyK_.js} +7 -7
- package/components/{PlayerAccountMenuNd-alDPH0d2.js → PlayerAccountMenuNd-Dz2t35yx.js} +7 -7
- package/components/{PlayerAccountMenuNd-Yk5u12tl.cjs → PlayerAccountMenuNd-y2DyyHIy.cjs} +1 -1
- package/components/{PlayerAccountModal-9FK6eAt0.js → PlayerAccountModal-BUf_-0GM.js} +10 -10
- package/components/{PlayerAccountModal-DCsw7iyn.js → PlayerAccountModal-BZ_7luqG.js} +10 -10
- package/components/{PlayerAccountModal-DvJ0OsPC.cjs → PlayerAccountModal-DaIBO9tP.cjs} +1 -1
- package/components/{PlayerAccountNotifications-CdPeCghS.cjs → PlayerAccountNotifications-BbvJAh0S.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BVfKQdMA.js → PlayerAccountNotifications-CNm0Cac9.js} +6 -6
- package/components/{PlayerAccountNotifications-BzEDVvTZ.js → PlayerAccountNotifications-qzx6Peu-.js} +6 -6
- package/components/{PlayerAccountProductRestriction-BJ0LFpLp.cjs → PlayerAccountProductRestriction-DJUublp5.cjs} +268 -268
- package/components/{PlayerAccountProductRestriction-DmWDaeEI.js → PlayerAccountProductRestriction-Dj-GoA-Y.js} +2498 -2494
- package/components/{PlayerAccountProductRestriction-EAWMHqK4.js → PlayerAccountProductRestriction-k26MhfnT.js} +2521 -2517
- package/components/{PlayerAccountSelfExclusionNd-BLr1N-Bv.cjs → PlayerAccountSelfExclusionNd-AgJSFDnT.cjs} +152 -152
- package/components/{PlayerAccountSelfExclusionNd-CiB251y6.js → PlayerAccountSelfExclusionNd-BQtNrIGS.js} +825 -824
- package/components/{PlayerAccountSelfExclusionNd-BI74DoLY.js → PlayerAccountSelfExclusionNd-CNzMQ7eW.js} +844 -843
- package/components/{PlayerAccountTimeout-U0kgxhKU.cjs → PlayerAccountTimeout-BSSbDBi8.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BlJS9laL.js → PlayerAccountTimeout-CYyxjqJQ.js} +43 -43
- package/components/{PlayerAccountTimeout-GP0WHuhG.js → PlayerAccountTimeout-DTzfXl3o.js} +43 -43
- package/components/{PlayerAccountTransactionsHistory-hyaqdne0.js → PlayerAccountTransactionsHistory-Bj0KJm_X.js} +7 -7
- package/components/{PlayerAccountTransactionsHistory-D5lotPR-.js → PlayerAccountTransactionsHistory-BqN2JEaw.js} +7 -7
- package/components/{PlayerAccountTransactionsHistory-BxNwks5H.cjs → PlayerAccountTransactionsHistory-rH9fIVPg.cjs} +1 -1
- package/components/{PlayerActiveBonuses-zLuqH4eW.js → PlayerActiveBonuses-CG3MShje.js} +6 -6
- package/components/{PlayerActiveBonuses-Me5Q3o65.cjs → PlayerActiveBonuses-VMRnoY1_.cjs} +1 -1
- package/components/{PlayerActiveBonuses-D4OBnwNa.js → PlayerActiveBonuses-_5tMeqW1.js} +6 -6
- package/components/{PlayerBonusCard-BhW_g3sH.js → PlayerBonusCard-JxCswDEv.js} +7 -7
- package/components/{PlayerBonusCard-DgyhSYBs.cjs → PlayerBonusCard-KehruUku.cjs} +1 -1
- package/components/{PlayerBonusCard-BbRQx8Gg.js → PlayerBonusCard-PjFBuYOQ.js} +7 -7
- package/components/{PlayerBonusHistory-BxbtWY0l.js → PlayerBonusHistory-BJxVpVed.js} +7 -7
- package/components/{PlayerBonusHistory-C_uP6nBB.js → PlayerBonusHistory-D4fHekky.js} +7 -7
- package/components/{PlayerBonusHistory-BmeRyaDK.cjs → PlayerBonusHistory-WEjZxD6T.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-DUzbCK4p.js → PlayerChangePasswordNd-BNKqXdus.js} +4 -4
- package/components/{PlayerChangePasswordNd-DSIi_04v.cjs → PlayerChangePasswordNd-DcgU3jc2.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-DWsHRVAH.js → PlayerChangePasswordNd-DeLVgl-F.js} +4 -4
- package/components/PlayerDeposit-BLDWbMBK.cjs +1 -0
- package/components/{PlayerDeposit-BeGgsgNu.js → PlayerDeposit-CNQfct0C.js} +73 -73
- package/components/{PlayerDeposit-CI5GIyAe.js → PlayerDeposit-DGv0xh8z.js} +73 -73
- package/components/{PlayerGamingHistory-DEgVt4st.js → PlayerGamingHistory-BGfVusNu.js} +60 -60
- package/components/{PlayerGamingHistory-F3yi70Vu.cjs → PlayerGamingHistory-BxN4Cjj3.cjs} +1 -1
- package/components/{PlayerGamingHistory-BJQKapHg.js → PlayerGamingHistory-wT_xKClx.js} +53 -53
- package/components/{PlayerPendingWithdrawals-BL4JTLkC.js → PlayerPendingWithdrawals-BB2HoABl.js} +6 -6
- package/components/{PlayerPendingWithdrawals-o6_OjL5C.js → PlayerPendingWithdrawals-BizDJ0F9.js} +6 -6
- package/components/{PlayerPendingWithdrawals-D-KWiMH6.cjs → PlayerPendingWithdrawals-DfQ_PvkY.cjs} +1 -1
- package/components/{PlayerProfileInfo-xRMbiw1T.js → PlayerProfileInfo-C-g4XepU.js} +95 -95
- package/components/{PlayerProfileInfo-CwZQ79SV.cjs → PlayerProfileInfo-CKJNYYA8.cjs} +1 -1
- package/components/{PlayerProfileInfo-D0A3aRV_.js → PlayerProfileInfo-Cnl1XufF.js} +108 -108
- package/components/{PlayerRealityCheck-BEiZhn6p.js → PlayerRealityCheck-BBmsx1va.js} +6 -6
- package/components/{PlayerRealityCheck-JdOGHDG6.cjs → PlayerRealityCheck-Cq2rIALW.cjs} +1 -1
- package/components/{PlayerRealityCheck-CYU_NrFB.js → PlayerRealityCheck-P7wFyweE.js} +6 -6
- package/components/{PlayerTransactionHistory-BS1LjP09.js → PlayerTransactionHistory-CqY9DKiK.js} +6 -6
- package/components/{PlayerTransactionHistory-DdbQZ6mw.js → PlayerTransactionHistory-DN6FJ2lh.js} +6 -6
- package/components/{PlayerTransactionHistory-Hz2IWD73.cjs → PlayerTransactionHistory-DPvvu8Wp.cjs} +1 -1
- package/components/{PlayerWithdrawal-P_0MIA-u.cjs → PlayerWithdrawal-BcaC1sEF.cjs} +1 -1
- package/components/{PlayerWithdrawal-DGN4Y9QP.js → PlayerWithdrawal-lAVd0flG.js} +6 -6
- package/components/{PlayerWithdrawal-DOec04Iq.js → PlayerWithdrawal-oEAQeQgU.js} +6 -6
- 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/package.json +1 -1
- package/stencil/{checkbox-group-input_15-BzU_0jJ_.js → checkbox-group-input_15-B47EbzkJ.js} +3227 -3221
- package/stencil/{checkbox-group-input_15-7ljokaYC.js → checkbox-group-input_15-BBaHCJ8m.js} +3231 -3225
- package/stencil/{checkbox-group-input_15-Fs7-YN7u.cjs → checkbox-group-input_15-BPXIBJ9O.cjs} +271 -271
- package/stencil/checkbox-group-input_15-C-tu3w4x.cjs +6305 -0
- package/stencil/checkbox-group-input_15-Crm4FsV9.js +19787 -0
- package/stencil/checkbox-group-input_15-DgfJh8az.js +19787 -0
- package/stencil/index-13661b98-8UaEvsFO.js +595 -0
- package/stencil/index-13661b98-BR0rdAwz.cjs +1 -0
- package/stencil/index-13661b98-BzYpZXJ-.js +595 -0
- package/stencil/{index-13661b98-BJM2hHx6.js → index-13661b98-D93Apl47.js} +124 -124
- package/stencil/index-13661b98-DBuU9Lk0.cjs +1 -0
- package/stencil/{index-13661b98-Cty_Ct2m.js → index-13661b98-y1Pmtmkx.js} +198 -182
- package/stencil/{index-1ef3a64c-DuKSFSN8.js → index-1ef3a64c-BJwg6KZV.js} +201 -201
- package/stencil/index-1ef3a64c-BkMv_VME.cjs +1 -0
- package/stencil/index-1ef3a64c-Cl4fiqPl.js +556 -0
- package/stencil/index-6e523641-078VKWzv.js +627 -0
- package/stencil/index-6e523641-BzXfsijo.cjs +1 -0
- package/stencil/index-6e523641-Q8F9VHK2.js +654 -0
- package/stencil/{index-7c5e707a-B54Yjxc3.js → index-7c5e707a-BZ26MA7_.js} +135 -135
- package/stencil/{index-7c5e707a-BHFN5Fx4.js → index-7c5e707a-CVVnpkZ1.js} +145 -145
- package/stencil/index-7c5e707a-d0LYIjGl.cjs +1 -0
- package/stencil/{index-9c0f6c58-Ucwc3Jk1.js → index-9c0f6c58-8sXzcKbt.js} +223 -223
- package/stencil/index-9c0f6c58-CbFwvYJ1.cjs +1 -0
- package/stencil/{index-9c0f6c58-GCIFeGLp.js → index-9c0f6c58-DH5Ki39B.js} +118 -118
- package/stencil/{index-b2193545-LzjWxki5.js → index-b2193545-BekNYO1T.js} +176 -176
- package/stencil/index-b2193545-BteAUmdh.cjs +1 -0
- package/stencil/{index-b2193545-DPKCFIaU.js → index-b2193545-DfDFpDFs.js} +169 -169
- package/stencil/{pam-change-password-DSAfkY23.js → pam-change-password-9bMd9dOQ.js} +1 -1
- package/stencil/pam-change-password-BK3IrP-3.js +25 -0
- package/stencil/pam-change-password-BeaU-3Ut.js +7 -0
- package/stencil/pam-change-password-BzyWRqhJ.cjs +1 -0
- package/stencil/{pam-change-password-mcRyjsPo.cjs → pam-change-password-D9deCtek.cjs} +1 -1
- package/stencil/{pam-change-password-af5033a0-BfWHc1Rw.js → pam-change-password-af5033a0-BdPXYjRb.js} +59 -59
- package/stencil/{pam-change-password-af5033a0-C18GwNdS.cjs → pam-change-password-af5033a0-CPFagM2l.cjs} +2 -2
- package/stencil/{pam-change-password-af5033a0-DYGjeRTR.js → pam-change-password-af5033a0-CXI6y6VZ.js} +59 -59
- package/stencil/pam-change-password-c578e291-B-RrWGEo.js +494 -0
- package/stencil/pam-change-password-c578e291-BZDon57y.js +494 -0
- package/stencil/pam-change-password-c578e291-Dh2wXnbm.cjs +125 -0
- package/stencil/{pam-change-password-Bdu7Bk_h.js → pam-change-password-h1ivBSP6.js} +1 -1
- package/stencil/{player-kyc-verification-Wsswi9br.js → player-kyc-verification-BJuBsd7A.js} +1 -1
- package/stencil/{player-kyc-verification-D10m225z.cjs → player-kyc-verification-DW2tWbg_.cjs} +1 -1
- package/stencil/{player-kyc-verification-B9ZaCq1K.js → player-kyc-verification-u-XUlDen.js} +1 -1
- package/stencil/{ui-skeleton-Cbqo0oYF.cjs → ui-skeleton-Bez-iF-R.cjs} +1 -1
- package/stencil/{ui-skeleton-LneRlsD3.js → ui-skeleton-CScGJdv_.js} +2 -2
- package/stencil/{ui-skeleton-2XsWxl4S.js → ui-skeleton-CnxOhYAT.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-OnzqIAY0.js → ui-skeleton-ae35c6f2-Bl0_r9TX.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8s3Rqu1P.js → ui-skeleton-ae35c6f2-CXRVKjq-.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-B4ncHe9g.cjs → ui-skeleton-ae35c6f2-D37mmp9J.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-CSakhNt1.js → user-deposit-withdrawal-B7dnuKq0.js} +45 -45
- package/stencil/{user-deposit-withdrawal-BP58nPO1.cjs → user-deposit-withdrawal-KqJCF9Hl.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-DcVKAa80.js → user-deposit-withdrawal-ar8K3Kn7.js} +45 -45
- package/stencil/user-transaction-history-8J3-J0I0.js +7 -0
- package/stencil/user-transaction-history-Ch7DwPng.cjs +1 -0
- package/stencil/{user-transaction-history-D0jBcRwe.js → user-transaction-history-D86WcqZY.js} +588 -588
- package/stencil/user-transaction-history-DeLTrl8E.js +25 -0
- package/stencil/{user-transaction-history-BrBScppC.js → user-transaction-history-o1zvVNkt.js} +600 -600
- package/stencil/user-transaction-history-xgpDQYWU.cjs +1 -0
- package/stencil/user-transaction-history_2-B4YDWP13.js +3535 -0
- package/stencil/user-transaction-history_2-BxjAG99A.cjs +2 -0
- package/stencil/user-transaction-history_2-MG1TmhMo.js +3557 -0
- package/components/GeneralLogout-COm1JcKW.cjs +0 -21
- package/components/PlayerAccountBettingHistory-5QM3bGgT.js +0 -310
- package/components/PlayerAccountBettingHistory-B91V20F2.js +0 -311
- package/components/PlayerAccountBettingHistory-CE023VGz.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +0 -1
- package/components/PlayerDeposit-CmBFg6tX.cjs +0 -1
- package/stencil/index-13661b98-DuhNdmHd.cjs +0 -1
- package/stencil/index-1ef3a64c-DD-PHh2g.cjs +0 -1
- package/stencil/index-1ef3a64c-DQk1yZfC.js +0 -556
- package/stencil/index-7c5e707a-CFlTnjRT.cjs +0 -1
- package/stencil/index-9c0f6c58-8Ks3y9ln.cjs +0 -1
- package/stencil/index-b2193545-BMFR9-V2.cjs +0 -1
- package/stencil/user-transaction-history-HA_tfHfo.cjs +0 -1
package/stencil/{user-transaction-history-BrBScppC.js → user-transaction-history-o1zvVNkt.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var U = (
|
|
1
|
+
var U = (e, t, a) => new Promise((n, r) => {
|
|
2
2
|
var i = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
d(
|
|
5
|
-
} catch (
|
|
6
|
-
r(
|
|
4
|
+
d(a.next(l));
|
|
5
|
+
} catch (h) {
|
|
6
|
+
r(h);
|
|
7
7
|
}
|
|
8
8
|
}, o = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
d(
|
|
11
|
-
} catch (
|
|
12
|
-
r(
|
|
10
|
+
d(a.throw(l));
|
|
11
|
+
} catch (h) {
|
|
12
|
+
r(h);
|
|
13
13
|
}
|
|
14
|
-
}, d = (l) => l.done ?
|
|
15
|
-
d((
|
|
14
|
+
}, d = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, o);
|
|
15
|
+
d((a = a.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as
|
|
18
|
-
import { d as
|
|
19
|
-
var
|
|
20
|
-
const
|
|
21
|
-
return
|
|
17
|
+
import { b as it, p as ot, r as st, g as q, h as s, H as lt, a as ut } from "./index-7c5e707a-CVVnpkZ1.js";
|
|
18
|
+
import { d as dt } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
19
|
+
var ct = () => {
|
|
20
|
+
const e = import.meta.url, t = {};
|
|
21
|
+
return e !== "" && (t.resourcesUrl = new URL(".", e).href), ot(t);
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
return yield
|
|
23
|
+
ct().then((e) => U(void 0, null, function* () {
|
|
24
|
+
return yield dt(), it([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], dateFormat: [513, "date-format"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], e);
|
|
25
25
|
}));
|
|
26
|
-
const
|
|
26
|
+
const ht = {
|
|
27
27
|
en: {
|
|
28
28
|
deposit: "Deposit",
|
|
29
29
|
withdrawals: "Withdrawals",
|
|
@@ -58,43 +58,43 @@ const fe = {
|
|
|
58
58
|
class u {
|
|
59
59
|
constructor() {
|
|
60
60
|
}
|
|
61
|
-
static loadCustomTranslations(
|
|
61
|
+
static loadCustomTranslations(t) {
|
|
62
62
|
return U(this, null, function* () {
|
|
63
63
|
try {
|
|
64
|
-
const
|
|
64
|
+
const a = yield fetch(t, {
|
|
65
65
|
headers: {
|
|
66
66
|
"Content-Type": "application/json"
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
if (!
|
|
70
|
-
const r = yield
|
|
69
|
+
if (!a.ok) {
|
|
70
|
+
const r = yield a.text();
|
|
71
71
|
throw new Error(r);
|
|
72
72
|
}
|
|
73
|
-
const
|
|
74
|
-
u.updateTranslations(
|
|
75
|
-
} catch (
|
|
76
|
-
console.error(`Failed to load translations ${
|
|
73
|
+
const n = yield a.json();
|
|
74
|
+
u.updateTranslations(n);
|
|
75
|
+
} catch (a) {
|
|
76
|
+
console.error(`Failed to load translations ${t}. ${a.message}`);
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
static translate(
|
|
81
|
-
var
|
|
82
|
-
const i = u.getAvaliableLanguages(
|
|
83
|
-
return ((r = (
|
|
80
|
+
static translate(t, a) {
|
|
81
|
+
var n, r;
|
|
82
|
+
const i = u.getAvaliableLanguages(a);
|
|
83
|
+
return ((r = (n = u.customTranslation) === null || n === void 0 ? void 0 : n[i.customLanguage]) === null || r === void 0 ? void 0 : r[t]) || u.defaultTranslation[i.predefinedLanguage][t];
|
|
84
84
|
}
|
|
85
|
-
static getAvaliableLanguages(
|
|
86
|
-
var
|
|
87
|
-
const
|
|
88
|
-
return { predefinedLanguage: u.supportedLanguages.includes(
|
|
85
|
+
static getAvaliableLanguages(t) {
|
|
86
|
+
var a;
|
|
87
|
+
const n = !((a = u.customLanguages) === null || a === void 0) && a.includes(t) ? t : u.defaultLanguage;
|
|
88
|
+
return { predefinedLanguage: u.supportedLanguages.includes(t) ? t : u.defaultLanguage, customLanguage: n };
|
|
89
89
|
}
|
|
90
|
-
static updateTranslations(
|
|
91
|
-
u.customLanguages = Array.from(/* @__PURE__ */ new Set([...u.supportedLanguages, ...Object.keys(
|
|
90
|
+
static updateTranslations(t) {
|
|
91
|
+
u.customLanguages = Array.from(/* @__PURE__ */ new Set([...u.supportedLanguages, ...Object.keys(t).map((a) => a.toLowerCase())])), u.customTranslation = t;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
u.defaultLanguage = "en";
|
|
95
95
|
u.supportedLanguages = ["en"];
|
|
96
|
-
u.defaultTranslation =
|
|
97
|
-
const
|
|
96
|
+
u.defaultTranslation = ht;
|
|
97
|
+
const ft = () => s(
|
|
98
98
|
"div",
|
|
99
99
|
{ class: "loader" },
|
|
100
100
|
s("div", null),
|
|
@@ -110,182 +110,182 @@ const he = () => s(
|
|
|
110
110
|
s("div", null),
|
|
111
111
|
s("div", null)
|
|
112
112
|
);
|
|
113
|
-
function _(
|
|
113
|
+
function _(e) {
|
|
114
114
|
"@babel/helpers - typeof";
|
|
115
|
-
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
116
|
-
return typeof
|
|
117
|
-
} : function(
|
|
118
|
-
return
|
|
119
|
-
}, _(
|
|
115
|
+
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
116
|
+
return typeof t;
|
|
117
|
+
} : function(t) {
|
|
118
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
119
|
+
}, _(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
123
|
-
throw new TypeError(
|
|
121
|
+
function v(e, t) {
|
|
122
|
+
if (t.length < e)
|
|
123
|
+
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
return
|
|
125
|
+
function mt(e) {
|
|
126
|
+
return v(1, arguments), e instanceof Date || _(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
127
127
|
}
|
|
128
|
-
function y(
|
|
129
|
-
|
|
130
|
-
var
|
|
131
|
-
return
|
|
128
|
+
function y(e) {
|
|
129
|
+
v(1, arguments);
|
|
130
|
+
var t = Object.prototype.toString.call(e);
|
|
131
|
+
return e instanceof Date || _(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[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)), /* @__PURE__ */ new Date(NaN));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
133
|
+
function gt(e) {
|
|
134
|
+
if (v(1, arguments), !mt(e) && typeof e != "number")
|
|
135
135
|
return !1;
|
|
136
|
-
var
|
|
137
|
-
return !isNaN(Number(
|
|
136
|
+
var t = y(e);
|
|
137
|
+
return !isNaN(Number(t));
|
|
138
138
|
}
|
|
139
|
-
function k(
|
|
140
|
-
if (
|
|
139
|
+
function k(e) {
|
|
140
|
+
if (e === null || e === !0 || e === !1)
|
|
141
141
|
return NaN;
|
|
142
|
-
var
|
|
143
|
-
return isNaN(
|
|
142
|
+
var t = Number(e);
|
|
143
|
+
return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
147
|
-
var
|
|
148
|
-
return new Date(
|
|
145
|
+
function vt(e, t) {
|
|
146
|
+
v(2, arguments);
|
|
147
|
+
var a = y(e).getTime(), n = k(t);
|
|
148
|
+
return new Date(a + n);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
152
|
-
var
|
|
153
|
-
return
|
|
150
|
+
function pt(e, t) {
|
|
151
|
+
v(2, arguments);
|
|
152
|
+
var a = k(t);
|
|
153
|
+
return vt(e, -a);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
var
|
|
161
|
-
return Math.floor(r /
|
|
155
|
+
var bt = 864e5;
|
|
156
|
+
function wt(e) {
|
|
157
|
+
v(1, arguments);
|
|
158
|
+
var t = y(e), a = t.getTime();
|
|
159
|
+
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
160
|
+
var n = t.getTime(), r = a - n;
|
|
161
|
+
return Math.floor(r / bt) + 1;
|
|
162
162
|
}
|
|
163
|
-
function L(
|
|
164
|
-
|
|
165
|
-
var
|
|
166
|
-
return
|
|
163
|
+
function L(e) {
|
|
164
|
+
v(1, arguments);
|
|
165
|
+
var t = 1, a = y(e), n = a.getUTCDay(), r = (n < t ? 7 : 0) + n - t;
|
|
166
|
+
return a.setUTCDate(a.getUTCDate() - r), a.setUTCHours(0, 0, 0, 0), a;
|
|
167
167
|
}
|
|
168
|
-
function V(
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
var r = L(
|
|
173
|
-
i.setUTCFullYear(
|
|
168
|
+
function V(e) {
|
|
169
|
+
v(1, arguments);
|
|
170
|
+
var t = y(e), a = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
|
|
171
|
+
n.setUTCFullYear(a + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
|
|
172
|
+
var r = L(n), i = /* @__PURE__ */ new Date(0);
|
|
173
|
+
i.setUTCFullYear(a, 0, 4), i.setUTCHours(0, 0, 0, 0);
|
|
174
174
|
var o = L(i);
|
|
175
|
-
return
|
|
175
|
+
return t.getTime() >= r.getTime() ? a + 1 : t.getTime() >= o.getTime() ? a : a - 1;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
var
|
|
182
|
-
return
|
|
177
|
+
function yt(e) {
|
|
178
|
+
v(1, arguments);
|
|
179
|
+
var t = V(e), a = /* @__PURE__ */ new Date(0);
|
|
180
|
+
a.setUTCFullYear(t, 0, 4), a.setUTCHours(0, 0, 0, 0);
|
|
181
|
+
var n = L(a);
|
|
182
|
+
return n;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
|
|
187
|
-
var
|
|
188
|
-
return Math.round(
|
|
184
|
+
var xt = 6048e5;
|
|
185
|
+
function Tt(e) {
|
|
186
|
+
v(1, arguments);
|
|
187
|
+
var t = y(e), a = L(t).getTime() - yt(t).getTime();
|
|
188
|
+
return Math.round(a / xt) + 1;
|
|
189
189
|
}
|
|
190
|
-
var
|
|
190
|
+
var Ct = {};
|
|
191
191
|
function $() {
|
|
192
|
-
return
|
|
192
|
+
return Ct;
|
|
193
193
|
}
|
|
194
|
-
function B(
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
var m = $(),
|
|
198
|
-
if (!(
|
|
194
|
+
function B(e, t) {
|
|
195
|
+
var a, n, r, i, o, d, l, h;
|
|
196
|
+
v(1, arguments);
|
|
197
|
+
var m = $(), f = k((a = (n = (r = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && r !== void 0 ? r : m.weekStartsOn) !== null && n !== void 0 ? n : (l = m.locale) === null || l === void 0 || (h = l.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
198
|
+
if (!(f >= 0 && f <= 6))
|
|
199
199
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
200
|
-
var
|
|
201
|
-
return
|
|
200
|
+
var p = y(e), g = p.getUTCDay(), w = (g < f ? 7 : 0) + g - f;
|
|
201
|
+
return p.setUTCDate(p.getUTCDate() - w), p.setUTCHours(0, 0, 0, 0), p;
|
|
202
202
|
}
|
|
203
|
-
function J(
|
|
204
|
-
var
|
|
205
|
-
|
|
206
|
-
var m = y(
|
|
203
|
+
function J(e, t) {
|
|
204
|
+
var a, n, r, i, o, d, l, h;
|
|
205
|
+
v(1, arguments);
|
|
206
|
+
var m = y(e), f = m.getUTCFullYear(), p = $(), g = k((a = (n = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : p.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = p.locale) === null || l === void 0 || (h = l.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
207
207
|
if (!(g >= 1 && g <= 7))
|
|
208
208
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
209
209
|
var w = /* @__PURE__ */ new Date(0);
|
|
210
|
-
w.setUTCFullYear(
|
|
211
|
-
var D = B(w,
|
|
212
|
-
C.setUTCFullYear(
|
|
213
|
-
var N = B(C,
|
|
214
|
-
return m.getTime() >= D.getTime() ?
|
|
210
|
+
w.setUTCFullYear(f + 1, 0, g), w.setUTCHours(0, 0, 0, 0);
|
|
211
|
+
var D = B(w, t), C = /* @__PURE__ */ new Date(0);
|
|
212
|
+
C.setUTCFullYear(f, 0, g), C.setUTCHours(0, 0, 0, 0);
|
|
213
|
+
var N = B(C, t);
|
|
214
|
+
return m.getTime() >= D.getTime() ? f + 1 : m.getTime() >= N.getTime() ? f : f - 1;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
var m = $(),
|
|
220
|
-
g.setUTCFullYear(
|
|
221
|
-
var w = B(g,
|
|
216
|
+
function St(e, t) {
|
|
217
|
+
var a, n, r, i, o, d, l, h;
|
|
218
|
+
v(1, arguments);
|
|
219
|
+
var m = $(), f = k((a = (n = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : m.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = m.locale) === null || l === void 0 || (h = l.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = J(e, t), g = /* @__PURE__ */ new Date(0);
|
|
220
|
+
g.setUTCFullYear(p, 0, f), g.setUTCHours(0, 0, 0, 0);
|
|
221
|
+
var w = B(g, t);
|
|
222
222
|
return w;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
function
|
|
226
|
-
|
|
227
|
-
var
|
|
228
|
-
return Math.round(
|
|
224
|
+
var kt = 6048e5;
|
|
225
|
+
function Mt(e, t) {
|
|
226
|
+
v(1, arguments);
|
|
227
|
+
var a = y(e), n = B(a, t).getTime() - St(a, t).getTime();
|
|
228
|
+
return Math.round(n / kt) + 1;
|
|
229
229
|
}
|
|
230
|
-
function c(
|
|
231
|
-
for (var
|
|
232
|
-
|
|
233
|
-
return
|
|
230
|
+
function c(e, t) {
|
|
231
|
+
for (var a = e < 0 ? "-" : "", n = Math.abs(e).toString(); n.length < t; )
|
|
232
|
+
n = "0" + n;
|
|
233
|
+
return a + n;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var Dt = {
|
|
236
236
|
// Year
|
|
237
|
-
y: function(
|
|
238
|
-
var
|
|
239
|
-
return c(
|
|
237
|
+
y: function(t, a) {
|
|
238
|
+
var n = t.getUTCFullYear(), r = n > 0 ? n : 1 - n;
|
|
239
|
+
return c(a === "yy" ? r % 100 : r, a.length);
|
|
240
240
|
},
|
|
241
241
|
// Month
|
|
242
|
-
M: function(
|
|
243
|
-
var
|
|
244
|
-
return
|
|
242
|
+
M: function(t, a) {
|
|
243
|
+
var n = t.getUTCMonth();
|
|
244
|
+
return a === "M" ? String(n + 1) : c(n + 1, 2);
|
|
245
245
|
},
|
|
246
246
|
// Day of the month
|
|
247
|
-
d: function(
|
|
248
|
-
return c(
|
|
247
|
+
d: function(t, a) {
|
|
248
|
+
return c(t.getUTCDate(), a.length);
|
|
249
249
|
},
|
|
250
250
|
// AM or PM
|
|
251
|
-
a: function(
|
|
252
|
-
var
|
|
253
|
-
switch (
|
|
251
|
+
a: function(t, a) {
|
|
252
|
+
var n = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
253
|
+
switch (a) {
|
|
254
254
|
case "a":
|
|
255
255
|
case "aa":
|
|
256
|
-
return
|
|
256
|
+
return n.toUpperCase();
|
|
257
257
|
case "aaa":
|
|
258
|
-
return
|
|
258
|
+
return n;
|
|
259
259
|
case "aaaaa":
|
|
260
|
-
return
|
|
260
|
+
return n[0];
|
|
261
261
|
case "aaaa":
|
|
262
262
|
default:
|
|
263
|
-
return
|
|
263
|
+
return n === "am" ? "a.m." : "p.m.";
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
// Hour [1-12]
|
|
267
|
-
h: function(
|
|
268
|
-
return c(
|
|
267
|
+
h: function(t, a) {
|
|
268
|
+
return c(t.getUTCHours() % 12 || 12, a.length);
|
|
269
269
|
},
|
|
270
270
|
// Hour [0-23]
|
|
271
|
-
H: function(
|
|
272
|
-
return c(
|
|
271
|
+
H: function(t, a) {
|
|
272
|
+
return c(t.getUTCHours(), a.length);
|
|
273
273
|
},
|
|
274
274
|
// Minute
|
|
275
|
-
m: function(
|
|
276
|
-
return c(
|
|
275
|
+
m: function(t, a) {
|
|
276
|
+
return c(t.getUTCMinutes(), a.length);
|
|
277
277
|
},
|
|
278
278
|
// Second
|
|
279
|
-
s: function(
|
|
280
|
-
return c(
|
|
279
|
+
s: function(t, a) {
|
|
280
|
+
return c(t.getUTCSeconds(), a.length);
|
|
281
281
|
},
|
|
282
282
|
// Fraction of second
|
|
283
|
-
S: function(
|
|
284
|
-
var
|
|
285
|
-
return c(i,
|
|
283
|
+
S: function(t, a) {
|
|
284
|
+
var n = a.length, r = t.getUTCMilliseconds(), i = Math.floor(r * Math.pow(10, n - 3));
|
|
285
|
+
return c(i, a.length);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
const T =
|
|
288
|
+
const T = Dt;
|
|
289
289
|
var M = {
|
|
290
290
|
am: "am",
|
|
291
291
|
pm: "pm",
|
|
@@ -295,53 +295,53 @@ var M = {
|
|
|
295
295
|
afternoon: "afternoon",
|
|
296
296
|
evening: "evening",
|
|
297
297
|
night: "night"
|
|
298
|
-
},
|
|
298
|
+
}, Pt = {
|
|
299
299
|
// Era
|
|
300
|
-
G: function(
|
|
301
|
-
var r =
|
|
302
|
-
switch (
|
|
300
|
+
G: function(t, a, n) {
|
|
301
|
+
var r = t.getUTCFullYear() > 0 ? 1 : 0;
|
|
302
|
+
switch (a) {
|
|
303
303
|
case "G":
|
|
304
304
|
case "GG":
|
|
305
305
|
case "GGG":
|
|
306
|
-
return
|
|
306
|
+
return n.era(r, {
|
|
307
307
|
width: "abbreviated"
|
|
308
308
|
});
|
|
309
309
|
case "GGGGG":
|
|
310
|
-
return
|
|
310
|
+
return n.era(r, {
|
|
311
311
|
width: "narrow"
|
|
312
312
|
});
|
|
313
313
|
case "GGGG":
|
|
314
314
|
default:
|
|
315
|
-
return
|
|
315
|
+
return n.era(r, {
|
|
316
316
|
width: "wide"
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
320
|
// Year
|
|
321
|
-
y: function(
|
|
322
|
-
if (
|
|
323
|
-
var r =
|
|
324
|
-
return
|
|
321
|
+
y: function(t, a, n) {
|
|
322
|
+
if (a === "yo") {
|
|
323
|
+
var r = t.getUTCFullYear(), i = r > 0 ? r : 1 - r;
|
|
324
|
+
return n.ordinalNumber(i, {
|
|
325
325
|
unit: "year"
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
return T.y(
|
|
328
|
+
return T.y(t, a);
|
|
329
329
|
},
|
|
330
330
|
// Local week-numbering year
|
|
331
|
-
Y: function(
|
|
332
|
-
var i = J(
|
|
333
|
-
if (
|
|
331
|
+
Y: function(t, a, n, r) {
|
|
332
|
+
var i = J(t, r), o = i > 0 ? i : 1 - i;
|
|
333
|
+
if (a === "YY") {
|
|
334
334
|
var d = o % 100;
|
|
335
335
|
return c(d, 2);
|
|
336
336
|
}
|
|
337
|
-
return
|
|
337
|
+
return a === "Yo" ? n.ordinalNumber(o, {
|
|
338
338
|
unit: "year"
|
|
339
|
-
}) : c(o,
|
|
339
|
+
}) : c(o, a.length);
|
|
340
340
|
},
|
|
341
341
|
// ISO week-numbering year
|
|
342
|
-
R: function(
|
|
343
|
-
var
|
|
344
|
-
return c(
|
|
342
|
+
R: function(t, a) {
|
|
343
|
+
var n = V(t);
|
|
344
|
+
return c(n, a.length);
|
|
345
345
|
},
|
|
346
346
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
347
347
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -352,422 +352,422 @@ var M = {
|
|
|
352
352
|
// | BC 2 | 2 | -1 |
|
|
353
353
|
// Also `yy` always returns the last two digits of a year,
|
|
354
354
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
355
|
-
u: function(
|
|
356
|
-
var
|
|
357
|
-
return c(
|
|
355
|
+
u: function(t, a) {
|
|
356
|
+
var n = t.getUTCFullYear();
|
|
357
|
+
return c(n, a.length);
|
|
358
358
|
},
|
|
359
359
|
// Quarter
|
|
360
|
-
Q: function(
|
|
361
|
-
var r = Math.ceil((
|
|
362
|
-
switch (
|
|
360
|
+
Q: function(t, a, n) {
|
|
361
|
+
var r = Math.ceil((t.getUTCMonth() + 1) / 3);
|
|
362
|
+
switch (a) {
|
|
363
363
|
case "Q":
|
|
364
364
|
return String(r);
|
|
365
365
|
case "QQ":
|
|
366
366
|
return c(r, 2);
|
|
367
367
|
case "Qo":
|
|
368
|
-
return
|
|
368
|
+
return n.ordinalNumber(r, {
|
|
369
369
|
unit: "quarter"
|
|
370
370
|
});
|
|
371
371
|
case "QQQ":
|
|
372
|
-
return
|
|
372
|
+
return n.quarter(r, {
|
|
373
373
|
width: "abbreviated",
|
|
374
374
|
context: "formatting"
|
|
375
375
|
});
|
|
376
376
|
case "QQQQQ":
|
|
377
|
-
return
|
|
377
|
+
return n.quarter(r, {
|
|
378
378
|
width: "narrow",
|
|
379
379
|
context: "formatting"
|
|
380
380
|
});
|
|
381
381
|
case "QQQQ":
|
|
382
382
|
default:
|
|
383
|
-
return
|
|
383
|
+
return n.quarter(r, {
|
|
384
384
|
width: "wide",
|
|
385
385
|
context: "formatting"
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
389
|
// Stand-alone quarter
|
|
390
|
-
q: function(
|
|
391
|
-
var r = Math.ceil((
|
|
392
|
-
switch (
|
|
390
|
+
q: function(t, a, n) {
|
|
391
|
+
var r = Math.ceil((t.getUTCMonth() + 1) / 3);
|
|
392
|
+
switch (a) {
|
|
393
393
|
case "q":
|
|
394
394
|
return String(r);
|
|
395
395
|
case "qq":
|
|
396
396
|
return c(r, 2);
|
|
397
397
|
case "qo":
|
|
398
|
-
return
|
|
398
|
+
return n.ordinalNumber(r, {
|
|
399
399
|
unit: "quarter"
|
|
400
400
|
});
|
|
401
401
|
case "qqq":
|
|
402
|
-
return
|
|
402
|
+
return n.quarter(r, {
|
|
403
403
|
width: "abbreviated",
|
|
404
404
|
context: "standalone"
|
|
405
405
|
});
|
|
406
406
|
case "qqqqq":
|
|
407
|
-
return
|
|
407
|
+
return n.quarter(r, {
|
|
408
408
|
width: "narrow",
|
|
409
409
|
context: "standalone"
|
|
410
410
|
});
|
|
411
411
|
case "qqqq":
|
|
412
412
|
default:
|
|
413
|
-
return
|
|
413
|
+
return n.quarter(r, {
|
|
414
414
|
width: "wide",
|
|
415
415
|
context: "standalone"
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
419
|
// Month
|
|
420
|
-
M: function(
|
|
421
|
-
var r =
|
|
422
|
-
switch (
|
|
420
|
+
M: function(t, a, n) {
|
|
421
|
+
var r = t.getUTCMonth();
|
|
422
|
+
switch (a) {
|
|
423
423
|
case "M":
|
|
424
424
|
case "MM":
|
|
425
|
-
return T.M(
|
|
425
|
+
return T.M(t, a);
|
|
426
426
|
case "Mo":
|
|
427
|
-
return
|
|
427
|
+
return n.ordinalNumber(r + 1, {
|
|
428
428
|
unit: "month"
|
|
429
429
|
});
|
|
430
430
|
case "MMM":
|
|
431
|
-
return
|
|
431
|
+
return n.month(r, {
|
|
432
432
|
width: "abbreviated",
|
|
433
433
|
context: "formatting"
|
|
434
434
|
});
|
|
435
435
|
case "MMMMM":
|
|
436
|
-
return
|
|
436
|
+
return n.month(r, {
|
|
437
437
|
width: "narrow",
|
|
438
438
|
context: "formatting"
|
|
439
439
|
});
|
|
440
440
|
case "MMMM":
|
|
441
441
|
default:
|
|
442
|
-
return
|
|
442
|
+
return n.month(r, {
|
|
443
443
|
width: "wide",
|
|
444
444
|
context: "formatting"
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
448
|
// Stand-alone month
|
|
449
|
-
L: function(
|
|
450
|
-
var r =
|
|
451
|
-
switch (
|
|
449
|
+
L: function(t, a, n) {
|
|
450
|
+
var r = t.getUTCMonth();
|
|
451
|
+
switch (a) {
|
|
452
452
|
case "L":
|
|
453
453
|
return String(r + 1);
|
|
454
454
|
case "LL":
|
|
455
455
|
return c(r + 1, 2);
|
|
456
456
|
case "Lo":
|
|
457
|
-
return
|
|
457
|
+
return n.ordinalNumber(r + 1, {
|
|
458
458
|
unit: "month"
|
|
459
459
|
});
|
|
460
460
|
case "LLL":
|
|
461
|
-
return
|
|
461
|
+
return n.month(r, {
|
|
462
462
|
width: "abbreviated",
|
|
463
463
|
context: "standalone"
|
|
464
464
|
});
|
|
465
465
|
case "LLLLL":
|
|
466
|
-
return
|
|
466
|
+
return n.month(r, {
|
|
467
467
|
width: "narrow",
|
|
468
468
|
context: "standalone"
|
|
469
469
|
});
|
|
470
470
|
case "LLLL":
|
|
471
471
|
default:
|
|
472
|
-
return
|
|
472
|
+
return n.month(r, {
|
|
473
473
|
width: "wide",
|
|
474
474
|
context: "standalone"
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
478
|
// Local week of year
|
|
479
|
-
w: function(
|
|
480
|
-
var i =
|
|
481
|
-
return
|
|
479
|
+
w: function(t, a, n, r) {
|
|
480
|
+
var i = Mt(t, r);
|
|
481
|
+
return a === "wo" ? n.ordinalNumber(i, {
|
|
482
482
|
unit: "week"
|
|
483
|
-
}) : c(i,
|
|
483
|
+
}) : c(i, a.length);
|
|
484
484
|
},
|
|
485
485
|
// ISO week of year
|
|
486
|
-
I: function(
|
|
487
|
-
var r =
|
|
488
|
-
return
|
|
486
|
+
I: function(t, a, n) {
|
|
487
|
+
var r = Tt(t);
|
|
488
|
+
return a === "Io" ? n.ordinalNumber(r, {
|
|
489
489
|
unit: "week"
|
|
490
|
-
}) : c(r,
|
|
490
|
+
}) : c(r, a.length);
|
|
491
491
|
},
|
|
492
492
|
// Day of the month
|
|
493
|
-
d: function(
|
|
494
|
-
return
|
|
493
|
+
d: function(t, a, n) {
|
|
494
|
+
return a === "do" ? n.ordinalNumber(t.getUTCDate(), {
|
|
495
495
|
unit: "date"
|
|
496
|
-
}) : T.d(
|
|
496
|
+
}) : T.d(t, a);
|
|
497
497
|
},
|
|
498
498
|
// Day of year
|
|
499
|
-
D: function(
|
|
500
|
-
var r =
|
|
501
|
-
return
|
|
499
|
+
D: function(t, a, n) {
|
|
500
|
+
var r = wt(t);
|
|
501
|
+
return a === "Do" ? n.ordinalNumber(r, {
|
|
502
502
|
unit: "dayOfYear"
|
|
503
|
-
}) : c(r,
|
|
503
|
+
}) : c(r, a.length);
|
|
504
504
|
},
|
|
505
505
|
// Day of week
|
|
506
|
-
E: function(
|
|
507
|
-
var r =
|
|
508
|
-
switch (
|
|
506
|
+
E: function(t, a, n) {
|
|
507
|
+
var r = t.getUTCDay();
|
|
508
|
+
switch (a) {
|
|
509
509
|
case "E":
|
|
510
510
|
case "EE":
|
|
511
511
|
case "EEE":
|
|
512
|
-
return
|
|
512
|
+
return n.day(r, {
|
|
513
513
|
width: "abbreviated",
|
|
514
514
|
context: "formatting"
|
|
515
515
|
});
|
|
516
516
|
case "EEEEE":
|
|
517
|
-
return
|
|
517
|
+
return n.day(r, {
|
|
518
518
|
width: "narrow",
|
|
519
519
|
context: "formatting"
|
|
520
520
|
});
|
|
521
521
|
case "EEEEEE":
|
|
522
|
-
return
|
|
522
|
+
return n.day(r, {
|
|
523
523
|
width: "short",
|
|
524
524
|
context: "formatting"
|
|
525
525
|
});
|
|
526
526
|
case "EEEE":
|
|
527
527
|
default:
|
|
528
|
-
return
|
|
528
|
+
return n.day(r, {
|
|
529
529
|
width: "wide",
|
|
530
530
|
context: "formatting"
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
},
|
|
534
534
|
// Local day of week
|
|
535
|
-
e: function(
|
|
536
|
-
var i =
|
|
537
|
-
switch (
|
|
535
|
+
e: function(t, a, n, r) {
|
|
536
|
+
var i = t.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
537
|
+
switch (a) {
|
|
538
538
|
case "e":
|
|
539
539
|
return String(o);
|
|
540
540
|
case "ee":
|
|
541
541
|
return c(o, 2);
|
|
542
542
|
case "eo":
|
|
543
|
-
return
|
|
543
|
+
return n.ordinalNumber(o, {
|
|
544
544
|
unit: "day"
|
|
545
545
|
});
|
|
546
546
|
case "eee":
|
|
547
|
-
return
|
|
547
|
+
return n.day(i, {
|
|
548
548
|
width: "abbreviated",
|
|
549
549
|
context: "formatting"
|
|
550
550
|
});
|
|
551
551
|
case "eeeee":
|
|
552
|
-
return
|
|
552
|
+
return n.day(i, {
|
|
553
553
|
width: "narrow",
|
|
554
554
|
context: "formatting"
|
|
555
555
|
});
|
|
556
556
|
case "eeeeee":
|
|
557
|
-
return
|
|
557
|
+
return n.day(i, {
|
|
558
558
|
width: "short",
|
|
559
559
|
context: "formatting"
|
|
560
560
|
});
|
|
561
561
|
case "eeee":
|
|
562
562
|
default:
|
|
563
|
-
return
|
|
563
|
+
return n.day(i, {
|
|
564
564
|
width: "wide",
|
|
565
565
|
context: "formatting"
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
},
|
|
569
569
|
// Stand-alone local day of week
|
|
570
|
-
c: function(
|
|
571
|
-
var i =
|
|
572
|
-
switch (
|
|
570
|
+
c: function(t, a, n, r) {
|
|
571
|
+
var i = t.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
572
|
+
switch (a) {
|
|
573
573
|
case "c":
|
|
574
574
|
return String(o);
|
|
575
575
|
case "cc":
|
|
576
|
-
return c(o,
|
|
576
|
+
return c(o, a.length);
|
|
577
577
|
case "co":
|
|
578
|
-
return
|
|
578
|
+
return n.ordinalNumber(o, {
|
|
579
579
|
unit: "day"
|
|
580
580
|
});
|
|
581
581
|
case "ccc":
|
|
582
|
-
return
|
|
582
|
+
return n.day(i, {
|
|
583
583
|
width: "abbreviated",
|
|
584
584
|
context: "standalone"
|
|
585
585
|
});
|
|
586
586
|
case "ccccc":
|
|
587
|
-
return
|
|
587
|
+
return n.day(i, {
|
|
588
588
|
width: "narrow",
|
|
589
589
|
context: "standalone"
|
|
590
590
|
});
|
|
591
591
|
case "cccccc":
|
|
592
|
-
return
|
|
592
|
+
return n.day(i, {
|
|
593
593
|
width: "short",
|
|
594
594
|
context: "standalone"
|
|
595
595
|
});
|
|
596
596
|
case "cccc":
|
|
597
597
|
default:
|
|
598
|
-
return
|
|
598
|
+
return n.day(i, {
|
|
599
599
|
width: "wide",
|
|
600
600
|
context: "standalone"
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
603
|
},
|
|
604
604
|
// ISO day of week
|
|
605
|
-
i: function(
|
|
606
|
-
var r =
|
|
607
|
-
switch (
|
|
605
|
+
i: function(t, a, n) {
|
|
606
|
+
var r = t.getUTCDay(), i = r === 0 ? 7 : r;
|
|
607
|
+
switch (a) {
|
|
608
608
|
case "i":
|
|
609
609
|
return String(i);
|
|
610
610
|
case "ii":
|
|
611
|
-
return c(i,
|
|
611
|
+
return c(i, a.length);
|
|
612
612
|
case "io":
|
|
613
|
-
return
|
|
613
|
+
return n.ordinalNumber(i, {
|
|
614
614
|
unit: "day"
|
|
615
615
|
});
|
|
616
616
|
case "iii":
|
|
617
|
-
return
|
|
617
|
+
return n.day(r, {
|
|
618
618
|
width: "abbreviated",
|
|
619
619
|
context: "formatting"
|
|
620
620
|
});
|
|
621
621
|
case "iiiii":
|
|
622
|
-
return
|
|
622
|
+
return n.day(r, {
|
|
623
623
|
width: "narrow",
|
|
624
624
|
context: "formatting"
|
|
625
625
|
});
|
|
626
626
|
case "iiiiii":
|
|
627
|
-
return
|
|
627
|
+
return n.day(r, {
|
|
628
628
|
width: "short",
|
|
629
629
|
context: "formatting"
|
|
630
630
|
});
|
|
631
631
|
case "iiii":
|
|
632
632
|
default:
|
|
633
|
-
return
|
|
633
|
+
return n.day(r, {
|
|
634
634
|
width: "wide",
|
|
635
635
|
context: "formatting"
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
638
|
},
|
|
639
639
|
// AM or PM
|
|
640
|
-
a: function(
|
|
641
|
-
var r =
|
|
642
|
-
switch (
|
|
640
|
+
a: function(t, a, n) {
|
|
641
|
+
var r = t.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
|
|
642
|
+
switch (a) {
|
|
643
643
|
case "a":
|
|
644
644
|
case "aa":
|
|
645
|
-
return
|
|
645
|
+
return n.dayPeriod(i, {
|
|
646
646
|
width: "abbreviated",
|
|
647
647
|
context: "formatting"
|
|
648
648
|
});
|
|
649
649
|
case "aaa":
|
|
650
|
-
return
|
|
650
|
+
return n.dayPeriod(i, {
|
|
651
651
|
width: "abbreviated",
|
|
652
652
|
context: "formatting"
|
|
653
653
|
}).toLowerCase();
|
|
654
654
|
case "aaaaa":
|
|
655
|
-
return
|
|
655
|
+
return n.dayPeriod(i, {
|
|
656
656
|
width: "narrow",
|
|
657
657
|
context: "formatting"
|
|
658
658
|
});
|
|
659
659
|
case "aaaa":
|
|
660
660
|
default:
|
|
661
|
-
return
|
|
661
|
+
return n.dayPeriod(i, {
|
|
662
662
|
width: "wide",
|
|
663
663
|
context: "formatting"
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
},
|
|
667
667
|
// AM, PM, midnight, noon
|
|
668
|
-
b: function(
|
|
669
|
-
var r =
|
|
670
|
-
switch (r === 12 ? i = M.noon : r === 0 ? i = M.midnight : i = r / 12 >= 1 ? "pm" : "am",
|
|
668
|
+
b: function(t, a, n) {
|
|
669
|
+
var r = t.getUTCHours(), i;
|
|
670
|
+
switch (r === 12 ? i = M.noon : r === 0 ? i = M.midnight : i = r / 12 >= 1 ? "pm" : "am", a) {
|
|
671
671
|
case "b":
|
|
672
672
|
case "bb":
|
|
673
|
-
return
|
|
673
|
+
return n.dayPeriod(i, {
|
|
674
674
|
width: "abbreviated",
|
|
675
675
|
context: "formatting"
|
|
676
676
|
});
|
|
677
677
|
case "bbb":
|
|
678
|
-
return
|
|
678
|
+
return n.dayPeriod(i, {
|
|
679
679
|
width: "abbreviated",
|
|
680
680
|
context: "formatting"
|
|
681
681
|
}).toLowerCase();
|
|
682
682
|
case "bbbbb":
|
|
683
|
-
return
|
|
683
|
+
return n.dayPeriod(i, {
|
|
684
684
|
width: "narrow",
|
|
685
685
|
context: "formatting"
|
|
686
686
|
});
|
|
687
687
|
case "bbbb":
|
|
688
688
|
default:
|
|
689
|
-
return
|
|
689
|
+
return n.dayPeriod(i, {
|
|
690
690
|
width: "wide",
|
|
691
691
|
context: "formatting"
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
},
|
|
695
695
|
// in the morning, in the afternoon, in the evening, at night
|
|
696
|
-
B: function(
|
|
697
|
-
var r =
|
|
698
|
-
switch (r >= 17 ? i = M.evening : r >= 12 ? i = M.afternoon : r >= 4 ? i = M.morning : i = M.night,
|
|
696
|
+
B: function(t, a, n) {
|
|
697
|
+
var r = t.getUTCHours(), i;
|
|
698
|
+
switch (r >= 17 ? i = M.evening : r >= 12 ? i = M.afternoon : r >= 4 ? i = M.morning : i = M.night, a) {
|
|
699
699
|
case "B":
|
|
700
700
|
case "BB":
|
|
701
701
|
case "BBB":
|
|
702
|
-
return
|
|
702
|
+
return n.dayPeriod(i, {
|
|
703
703
|
width: "abbreviated",
|
|
704
704
|
context: "formatting"
|
|
705
705
|
});
|
|
706
706
|
case "BBBBB":
|
|
707
|
-
return
|
|
707
|
+
return n.dayPeriod(i, {
|
|
708
708
|
width: "narrow",
|
|
709
709
|
context: "formatting"
|
|
710
710
|
});
|
|
711
711
|
case "BBBB":
|
|
712
712
|
default:
|
|
713
|
-
return
|
|
713
|
+
return n.dayPeriod(i, {
|
|
714
714
|
width: "wide",
|
|
715
715
|
context: "formatting"
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
},
|
|
719
719
|
// Hour [1-12]
|
|
720
|
-
h: function(
|
|
721
|
-
if (
|
|
722
|
-
var r =
|
|
723
|
-
return r === 0 && (r = 12),
|
|
720
|
+
h: function(t, a, n) {
|
|
721
|
+
if (a === "ho") {
|
|
722
|
+
var r = t.getUTCHours() % 12;
|
|
723
|
+
return r === 0 && (r = 12), n.ordinalNumber(r, {
|
|
724
724
|
unit: "hour"
|
|
725
725
|
});
|
|
726
726
|
}
|
|
727
|
-
return T.h(
|
|
727
|
+
return T.h(t, a);
|
|
728
728
|
},
|
|
729
729
|
// Hour [0-23]
|
|
730
|
-
H: function(
|
|
731
|
-
return
|
|
730
|
+
H: function(t, a, n) {
|
|
731
|
+
return a === "Ho" ? n.ordinalNumber(t.getUTCHours(), {
|
|
732
732
|
unit: "hour"
|
|
733
|
-
}) : T.H(
|
|
733
|
+
}) : T.H(t, a);
|
|
734
734
|
},
|
|
735
735
|
// Hour [0-11]
|
|
736
|
-
K: function(
|
|
737
|
-
var r =
|
|
738
|
-
return
|
|
736
|
+
K: function(t, a, n) {
|
|
737
|
+
var r = t.getUTCHours() % 12;
|
|
738
|
+
return a === "Ko" ? n.ordinalNumber(r, {
|
|
739
739
|
unit: "hour"
|
|
740
|
-
}) : c(r,
|
|
740
|
+
}) : c(r, a.length);
|
|
741
741
|
},
|
|
742
742
|
// Hour [1-24]
|
|
743
|
-
k: function(
|
|
744
|
-
var r =
|
|
745
|
-
return r === 0 && (r = 24),
|
|
743
|
+
k: function(t, a, n) {
|
|
744
|
+
var r = t.getUTCHours();
|
|
745
|
+
return r === 0 && (r = 24), a === "ko" ? n.ordinalNumber(r, {
|
|
746
746
|
unit: "hour"
|
|
747
|
-
}) : c(r,
|
|
747
|
+
}) : c(r, a.length);
|
|
748
748
|
},
|
|
749
749
|
// Minute
|
|
750
|
-
m: function(
|
|
751
|
-
return
|
|
750
|
+
m: function(t, a, n) {
|
|
751
|
+
return a === "mo" ? n.ordinalNumber(t.getUTCMinutes(), {
|
|
752
752
|
unit: "minute"
|
|
753
|
-
}) : T.m(
|
|
753
|
+
}) : T.m(t, a);
|
|
754
754
|
},
|
|
755
755
|
// Second
|
|
756
|
-
s: function(
|
|
757
|
-
return
|
|
756
|
+
s: function(t, a, n) {
|
|
757
|
+
return a === "so" ? n.ordinalNumber(t.getUTCSeconds(), {
|
|
758
758
|
unit: "second"
|
|
759
|
-
}) : T.s(
|
|
759
|
+
}) : T.s(t, a);
|
|
760
760
|
},
|
|
761
761
|
// Fraction of second
|
|
762
|
-
S: function(
|
|
763
|
-
return T.S(
|
|
762
|
+
S: function(t, a) {
|
|
763
|
+
return T.S(t, a);
|
|
764
764
|
},
|
|
765
765
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
766
|
-
X: function(
|
|
767
|
-
var i = r._originalDate ||
|
|
766
|
+
X: function(t, a, n, r) {
|
|
767
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
768
768
|
if (o === 0)
|
|
769
769
|
return "Z";
|
|
770
|
-
switch (
|
|
770
|
+
switch (a) {
|
|
771
771
|
case "X":
|
|
772
772
|
return z(o);
|
|
773
773
|
case "XXXX":
|
|
@@ -780,9 +780,9 @@ var M = {
|
|
|
780
780
|
}
|
|
781
781
|
},
|
|
782
782
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
783
|
-
x: function(
|
|
784
|
-
var i = r._originalDate ||
|
|
785
|
-
switch (
|
|
783
|
+
x: function(t, a, n, r) {
|
|
784
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
785
|
+
switch (a) {
|
|
786
786
|
case "x":
|
|
787
787
|
return z(o);
|
|
788
788
|
case "xxxx":
|
|
@@ -795,9 +795,9 @@ var M = {
|
|
|
795
795
|
}
|
|
796
796
|
},
|
|
797
797
|
// Timezone (GMT)
|
|
798
|
-
O: function(
|
|
799
|
-
var i = r._originalDate ||
|
|
800
|
-
switch (
|
|
798
|
+
O: function(t, a, n, r) {
|
|
799
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
800
|
+
switch (a) {
|
|
801
801
|
case "O":
|
|
802
802
|
case "OO":
|
|
803
803
|
case "OOO":
|
|
@@ -808,9 +808,9 @@ var M = {
|
|
|
808
808
|
}
|
|
809
809
|
},
|
|
810
810
|
// Timezone (specific non-location)
|
|
811
|
-
z: function(
|
|
812
|
-
var i = r._originalDate ||
|
|
813
|
-
switch (
|
|
811
|
+
z: function(t, a, n, r) {
|
|
812
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
813
|
+
switch (a) {
|
|
814
814
|
case "z":
|
|
815
815
|
case "zz":
|
|
816
816
|
case "zzz":
|
|
@@ -821,131 +821,131 @@ var M = {
|
|
|
821
821
|
}
|
|
822
822
|
},
|
|
823
823
|
// Seconds timestamp
|
|
824
|
-
t: function(
|
|
825
|
-
var i = r._originalDate ||
|
|
826
|
-
return c(o,
|
|
824
|
+
t: function(t, a, n, r) {
|
|
825
|
+
var i = r._originalDate || t, o = Math.floor(i.getTime() / 1e3);
|
|
826
|
+
return c(o, a.length);
|
|
827
827
|
},
|
|
828
828
|
// Milliseconds timestamp
|
|
829
|
-
T: function(
|
|
830
|
-
var i = r._originalDate ||
|
|
831
|
-
return c(o,
|
|
829
|
+
T: function(t, a, n, r) {
|
|
830
|
+
var i = r._originalDate || t, o = i.getTime();
|
|
831
|
+
return c(o, a.length);
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
|
-
function j(
|
|
835
|
-
var
|
|
834
|
+
function j(e, t) {
|
|
835
|
+
var a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
|
|
836
836
|
if (i === 0)
|
|
837
|
-
return
|
|
838
|
-
var o =
|
|
839
|
-
return
|
|
837
|
+
return a + String(r);
|
|
838
|
+
var o = t;
|
|
839
|
+
return a + String(r) + o + c(i, 2);
|
|
840
840
|
}
|
|
841
|
-
function z(
|
|
842
|
-
if (
|
|
843
|
-
var
|
|
844
|
-
return
|
|
841
|
+
function z(e, t) {
|
|
842
|
+
if (e % 60 === 0) {
|
|
843
|
+
var a = e > 0 ? "-" : "+";
|
|
844
|
+
return a + c(Math.abs(e) / 60, 2);
|
|
845
845
|
}
|
|
846
|
-
return S(
|
|
846
|
+
return S(e, t);
|
|
847
847
|
}
|
|
848
|
-
function S(
|
|
849
|
-
var
|
|
850
|
-
return
|
|
848
|
+
function S(e, t) {
|
|
849
|
+
var a = t || "", n = e > 0 ? "-" : "+", r = Math.abs(e), i = c(Math.floor(r / 60), 2), o = c(r % 60, 2);
|
|
850
|
+
return n + i + a + o;
|
|
851
851
|
}
|
|
852
|
-
const
|
|
853
|
-
var A = function(
|
|
854
|
-
switch (
|
|
852
|
+
const Ot = Pt;
|
|
853
|
+
var A = function(t, a) {
|
|
854
|
+
switch (t) {
|
|
855
855
|
case "P":
|
|
856
|
-
return
|
|
856
|
+
return a.date({
|
|
857
857
|
width: "short"
|
|
858
858
|
});
|
|
859
859
|
case "PP":
|
|
860
|
-
return
|
|
860
|
+
return a.date({
|
|
861
861
|
width: "medium"
|
|
862
862
|
});
|
|
863
863
|
case "PPP":
|
|
864
|
-
return
|
|
864
|
+
return a.date({
|
|
865
865
|
width: "long"
|
|
866
866
|
});
|
|
867
867
|
case "PPPP":
|
|
868
868
|
default:
|
|
869
|
-
return
|
|
869
|
+
return a.date({
|
|
870
870
|
width: "full"
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
}, K = function(
|
|
874
|
-
switch (
|
|
873
|
+
}, K = function(t, a) {
|
|
874
|
+
switch (t) {
|
|
875
875
|
case "p":
|
|
876
|
-
return
|
|
876
|
+
return a.time({
|
|
877
877
|
width: "short"
|
|
878
878
|
});
|
|
879
879
|
case "pp":
|
|
880
|
-
return
|
|
880
|
+
return a.time({
|
|
881
881
|
width: "medium"
|
|
882
882
|
});
|
|
883
883
|
case "ppp":
|
|
884
|
-
return
|
|
884
|
+
return a.time({
|
|
885
885
|
width: "long"
|
|
886
886
|
});
|
|
887
887
|
case "pppp":
|
|
888
888
|
default:
|
|
889
|
-
return
|
|
889
|
+
return a.time({
|
|
890
890
|
width: "full"
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
},
|
|
894
|
-
var
|
|
893
|
+
}, Ut = function(t, a) {
|
|
894
|
+
var n = t.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
895
895
|
if (!i)
|
|
896
|
-
return A(
|
|
896
|
+
return A(t, a);
|
|
897
897
|
var o;
|
|
898
898
|
switch (r) {
|
|
899
899
|
case "P":
|
|
900
|
-
o =
|
|
900
|
+
o = a.dateTime({
|
|
901
901
|
width: "short"
|
|
902
902
|
});
|
|
903
903
|
break;
|
|
904
904
|
case "PP":
|
|
905
|
-
o =
|
|
905
|
+
o = a.dateTime({
|
|
906
906
|
width: "medium"
|
|
907
907
|
});
|
|
908
908
|
break;
|
|
909
909
|
case "PPP":
|
|
910
|
-
o =
|
|
910
|
+
o = a.dateTime({
|
|
911
911
|
width: "long"
|
|
912
912
|
});
|
|
913
913
|
break;
|
|
914
914
|
case "PPPP":
|
|
915
915
|
default:
|
|
916
|
-
o =
|
|
916
|
+
o = a.dateTime({
|
|
917
917
|
width: "full"
|
|
918
918
|
});
|
|
919
919
|
break;
|
|
920
920
|
}
|
|
921
|
-
return o.replace("{{date}}", A(r,
|
|
922
|
-
},
|
|
921
|
+
return o.replace("{{date}}", A(r, a)).replace("{{time}}", K(i, a));
|
|
922
|
+
}, Wt = {
|
|
923
923
|
p: K,
|
|
924
|
-
P:
|
|
924
|
+
P: Ut
|
|
925
925
|
};
|
|
926
|
-
const
|
|
927
|
-
function
|
|
928
|
-
var
|
|
929
|
-
return
|
|
926
|
+
const Ft = Wt;
|
|
927
|
+
function Et(e) {
|
|
928
|
+
var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
929
|
+
return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
|
|
930
930
|
}
|
|
931
|
-
var
|
|
932
|
-
function
|
|
933
|
-
return
|
|
931
|
+
var Yt = ["D", "DD"], _t = ["YY", "YYYY"];
|
|
932
|
+
function Lt(e) {
|
|
933
|
+
return Yt.indexOf(e) !== -1;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
return
|
|
935
|
+
function Bt(e) {
|
|
936
|
+
return _t.indexOf(e) !== -1;
|
|
937
937
|
}
|
|
938
|
-
function Q(
|
|
939
|
-
if (
|
|
940
|
-
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(
|
|
941
|
-
if (
|
|
942
|
-
throw new RangeError("Use `yy` instead of `YY` (in `".concat(
|
|
943
|
-
if (
|
|
944
|
-
throw new RangeError("Use `d` instead of `D` (in `".concat(
|
|
945
|
-
if (
|
|
946
|
-
throw new RangeError("Use `dd` instead of `DD` (in `".concat(
|
|
938
|
+
function Q(e, t, a) {
|
|
939
|
+
if (e === "YYYY")
|
|
940
|
+
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
941
|
+
if (e === "YY")
|
|
942
|
+
throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
943
|
+
if (e === "D")
|
|
944
|
+
throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
945
|
+
if (e === "DD")
|
|
946
|
+
throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
947
947
|
}
|
|
948
|
-
var $
|
|
948
|
+
var $t = {
|
|
949
949
|
lessThanXSeconds: {
|
|
950
950
|
one: "less than a second",
|
|
951
951
|
other: "less than {{count}} seconds"
|
|
@@ -1007,90 +1007,90 @@ var $e = {
|
|
|
1007
1007
|
one: "almost 1 year",
|
|
1008
1008
|
other: "almost {{count}} years"
|
|
1009
1009
|
}
|
|
1010
|
-
},
|
|
1011
|
-
var r, i = $
|
|
1012
|
-
return typeof i == "string" ? r = i :
|
|
1010
|
+
}, Nt = function(t, a, n) {
|
|
1011
|
+
var r, i = $t[t];
|
|
1012
|
+
return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", a.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1013
1013
|
};
|
|
1014
|
-
const
|
|
1015
|
-
function R(
|
|
1014
|
+
const Ht = Nt;
|
|
1015
|
+
function R(e) {
|
|
1016
1016
|
return function() {
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1017
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.width ? String(t.width) : e.defaultWidth, n = e.formats[a] || e.formats[e.defaultWidth];
|
|
1018
|
+
return n;
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
var
|
|
1021
|
+
var It = {
|
|
1022
1022
|
full: "EEEE, MMMM do, y",
|
|
1023
1023
|
long: "MMMM do, y",
|
|
1024
1024
|
medium: "MMM d, y",
|
|
1025
1025
|
short: "MM/dd/yyyy"
|
|
1026
|
-
},
|
|
1026
|
+
}, Rt = {
|
|
1027
1027
|
full: "h:mm:ss a zzzz",
|
|
1028
1028
|
long: "h:mm:ss a z",
|
|
1029
1029
|
medium: "h:mm:ss a",
|
|
1030
1030
|
short: "h:mm a"
|
|
1031
|
-
},
|
|
1031
|
+
}, qt = {
|
|
1032
1032
|
full: "{{date}} 'at' {{time}}",
|
|
1033
1033
|
long: "{{date}} 'at' {{time}}",
|
|
1034
1034
|
medium: "{{date}}, {{time}}",
|
|
1035
1035
|
short: "{{date}}, {{time}}"
|
|
1036
|
-
},
|
|
1036
|
+
}, jt = {
|
|
1037
1037
|
date: R({
|
|
1038
|
-
formats:
|
|
1038
|
+
formats: It,
|
|
1039
1039
|
defaultWidth: "full"
|
|
1040
1040
|
}),
|
|
1041
1041
|
time: R({
|
|
1042
|
-
formats:
|
|
1042
|
+
formats: Rt,
|
|
1043
1043
|
defaultWidth: "full"
|
|
1044
1044
|
}),
|
|
1045
1045
|
dateTime: R({
|
|
1046
|
-
formats:
|
|
1046
|
+
formats: qt,
|
|
1047
1047
|
defaultWidth: "full"
|
|
1048
1048
|
})
|
|
1049
1049
|
};
|
|
1050
|
-
const
|
|
1051
|
-
var
|
|
1050
|
+
const zt = jt;
|
|
1051
|
+
var At = {
|
|
1052
1052
|
lastWeek: "'last' eeee 'at' p",
|
|
1053
1053
|
yesterday: "'yesterday at' p",
|
|
1054
1054
|
today: "'today at' p",
|
|
1055
1055
|
tomorrow: "'tomorrow at' p",
|
|
1056
1056
|
nextWeek: "eeee 'at' p",
|
|
1057
1057
|
other: "P"
|
|
1058
|
-
},
|
|
1059
|
-
return
|
|
1058
|
+
}, Qt = function(t, a, n, r) {
|
|
1059
|
+
return At[t];
|
|
1060
1060
|
};
|
|
1061
|
-
const
|
|
1062
|
-
function W(
|
|
1063
|
-
return function(
|
|
1064
|
-
var
|
|
1065
|
-
if (
|
|
1066
|
-
var i =
|
|
1067
|
-
r =
|
|
1061
|
+
const Xt = Qt;
|
|
1062
|
+
function W(e) {
|
|
1063
|
+
return function(t, a) {
|
|
1064
|
+
var n = a != null && a.context ? String(a.context) : "standalone", r;
|
|
1065
|
+
if (n === "formatting" && e.formattingValues) {
|
|
1066
|
+
var i = e.defaultFormattingWidth || e.defaultWidth, o = a != null && a.width ? String(a.width) : i;
|
|
1067
|
+
r = e.formattingValues[o] || e.formattingValues[i];
|
|
1068
1068
|
} else {
|
|
1069
|
-
var d =
|
|
1070
|
-
r =
|
|
1069
|
+
var d = e.defaultWidth, l = a != null && a.width ? String(a.width) : e.defaultWidth;
|
|
1070
|
+
r = e.values[l] || e.values[d];
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1073
|
-
return r[
|
|
1072
|
+
var h = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1073
|
+
return r[h];
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
|
-
var
|
|
1076
|
+
var Gt = {
|
|
1077
1077
|
narrow: ["B", "A"],
|
|
1078
1078
|
abbreviated: ["BC", "AD"],
|
|
1079
1079
|
wide: ["Before Christ", "Anno Domini"]
|
|
1080
|
-
},
|
|
1080
|
+
}, Vt = {
|
|
1081
1081
|
narrow: ["1", "2", "3", "4"],
|
|
1082
1082
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1083
1083
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1084
|
-
},
|
|
1084
|
+
}, Jt = {
|
|
1085
1085
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1086
1086
|
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1087
1087
|
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
1088
|
-
},
|
|
1088
|
+
}, Kt = {
|
|
1089
1089
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1090
1090
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1091
1091
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1092
1092
|
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1093
|
-
},
|
|
1093
|
+
}, Zt = {
|
|
1094
1094
|
narrow: {
|
|
1095
1095
|
am: "a",
|
|
1096
1096
|
pm: "p",
|
|
@@ -1121,7 +1121,7 @@ var Ge = {
|
|
|
1121
1121
|
evening: "evening",
|
|
1122
1122
|
night: "night"
|
|
1123
1123
|
}
|
|
1124
|
-
},
|
|
1124
|
+
}, te = {
|
|
1125
1125
|
narrow: {
|
|
1126
1126
|
am: "a",
|
|
1127
1127
|
pm: "p",
|
|
@@ -1152,123 +1152,123 @@ var Ge = {
|
|
|
1152
1152
|
evening: "in the evening",
|
|
1153
1153
|
night: "at night"
|
|
1154
1154
|
}
|
|
1155
|
-
},
|
|
1156
|
-
var
|
|
1155
|
+
}, ee = function(t, a) {
|
|
1156
|
+
var n = Number(t), r = n % 100;
|
|
1157
1157
|
if (r > 20 || r < 10)
|
|
1158
1158
|
switch (r % 10) {
|
|
1159
1159
|
case 1:
|
|
1160
|
-
return
|
|
1160
|
+
return n + "st";
|
|
1161
1161
|
case 2:
|
|
1162
|
-
return
|
|
1162
|
+
return n + "nd";
|
|
1163
1163
|
case 3:
|
|
1164
|
-
return
|
|
1164
|
+
return n + "rd";
|
|
1165
1165
|
}
|
|
1166
|
-
return
|
|
1167
|
-
},
|
|
1168
|
-
ordinalNumber:
|
|
1166
|
+
return n + "th";
|
|
1167
|
+
}, ae = {
|
|
1168
|
+
ordinalNumber: ee,
|
|
1169
1169
|
era: W({
|
|
1170
|
-
values:
|
|
1170
|
+
values: Gt,
|
|
1171
1171
|
defaultWidth: "wide"
|
|
1172
1172
|
}),
|
|
1173
1173
|
quarter: W({
|
|
1174
|
-
values:
|
|
1174
|
+
values: Vt,
|
|
1175
1175
|
defaultWidth: "wide",
|
|
1176
|
-
argumentCallback: function(
|
|
1177
|
-
return
|
|
1176
|
+
argumentCallback: function(t) {
|
|
1177
|
+
return t - 1;
|
|
1178
1178
|
}
|
|
1179
1179
|
}),
|
|
1180
1180
|
month: W({
|
|
1181
|
-
values:
|
|
1181
|
+
values: Jt,
|
|
1182
1182
|
defaultWidth: "wide"
|
|
1183
1183
|
}),
|
|
1184
1184
|
day: W({
|
|
1185
|
-
values:
|
|
1185
|
+
values: Kt,
|
|
1186
1186
|
defaultWidth: "wide"
|
|
1187
1187
|
}),
|
|
1188
1188
|
dayPeriod: W({
|
|
1189
|
-
values:
|
|
1189
|
+
values: Zt,
|
|
1190
1190
|
defaultWidth: "wide",
|
|
1191
|
-
formattingValues:
|
|
1191
|
+
formattingValues: te,
|
|
1192
1192
|
defaultFormattingWidth: "wide"
|
|
1193
1193
|
})
|
|
1194
1194
|
};
|
|
1195
|
-
const
|
|
1196
|
-
function F(
|
|
1197
|
-
return function(
|
|
1198
|
-
var
|
|
1195
|
+
const ne = ae;
|
|
1196
|
+
function F(e) {
|
|
1197
|
+
return function(t) {
|
|
1198
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
|
|
1199
1199
|
if (!i)
|
|
1200
1200
|
return null;
|
|
1201
|
-
var o = i[0], d =
|
|
1202
|
-
return
|
|
1203
|
-
}) :
|
|
1204
|
-
return
|
|
1205
|
-
}),
|
|
1206
|
-
|
|
1207
|
-
var m =
|
|
1201
|
+
var o = i[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(d) ? ie(d, function(f) {
|
|
1202
|
+
return f.test(o);
|
|
1203
|
+
}) : re(d, function(f) {
|
|
1204
|
+
return f.test(o);
|
|
1205
|
+
}), h;
|
|
1206
|
+
h = e.valueCallback ? e.valueCallback(l) : l, h = a.valueCallback ? a.valueCallback(h) : h;
|
|
1207
|
+
var m = t.slice(o.length);
|
|
1208
1208
|
return {
|
|
1209
|
-
value:
|
|
1209
|
+
value: h,
|
|
1210
1210
|
rest: m
|
|
1211
1211
|
};
|
|
1212
1212
|
};
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
for (var
|
|
1216
|
-
if (
|
|
1217
|
-
return
|
|
1214
|
+
function re(e, t) {
|
|
1215
|
+
for (var a in e)
|
|
1216
|
+
if (e.hasOwnProperty(a) && t(e[a]))
|
|
1217
|
+
return a;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
for (var
|
|
1221
|
-
if (e
|
|
1222
|
-
return
|
|
1219
|
+
function ie(e, t) {
|
|
1220
|
+
for (var a = 0; a < e.length; a++)
|
|
1221
|
+
if (t(e[a]))
|
|
1222
|
+
return a;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return function(
|
|
1226
|
-
var
|
|
1227
|
-
if (!
|
|
1224
|
+
function oe(e) {
|
|
1225
|
+
return function(t) {
|
|
1226
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
|
|
1227
|
+
if (!n)
|
|
1228
1228
|
return null;
|
|
1229
|
-
var r =
|
|
1229
|
+
var r = n[0], i = t.match(e.parsePattern);
|
|
1230
1230
|
if (!i)
|
|
1231
1231
|
return null;
|
|
1232
|
-
var o =
|
|
1233
|
-
o =
|
|
1234
|
-
var d =
|
|
1232
|
+
var o = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
1233
|
+
o = a.valueCallback ? a.valueCallback(o) : o;
|
|
1234
|
+
var d = t.slice(r.length);
|
|
1235
1235
|
return {
|
|
1236
1236
|
value: o,
|
|
1237
1237
|
rest: d
|
|
1238
1238
|
};
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
var
|
|
1241
|
+
var se = /^(\d+)(th|st|nd|rd)?/i, le = /\d+/i, ue = {
|
|
1242
1242
|
narrow: /^(b|a)/i,
|
|
1243
1243
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1244
1244
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1245
|
-
},
|
|
1245
|
+
}, de = {
|
|
1246
1246
|
any: [/^b/i, /^(a|c)/i]
|
|
1247
|
-
},
|
|
1247
|
+
}, ce = {
|
|
1248
1248
|
narrow: /^[1234]/i,
|
|
1249
1249
|
abbreviated: /^q[1234]/i,
|
|
1250
1250
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1251
|
-
},
|
|
1251
|
+
}, he = {
|
|
1252
1252
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1253
|
-
},
|
|
1253
|
+
}, fe = {
|
|
1254
1254
|
narrow: /^[jfmasond]/i,
|
|
1255
1255
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1256
1256
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1257
|
-
},
|
|
1257
|
+
}, me = {
|
|
1258
1258
|
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],
|
|
1259
1259
|
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]
|
|
1260
|
-
},
|
|
1260
|
+
}, ge = {
|
|
1261
1261
|
narrow: /^[smtwf]/i,
|
|
1262
1262
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1263
1263
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1264
1264
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1265
|
-
},
|
|
1265
|
+
}, ve = {
|
|
1266
1266
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1267
1267
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1268
|
-
},
|
|
1268
|
+
}, pe = {
|
|
1269
1269
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1270
1270
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1271
|
-
},
|
|
1271
|
+
}, be = {
|
|
1272
1272
|
any: {
|
|
1273
1273
|
am: /^a/i,
|
|
1274
1274
|
pm: /^p/i,
|
|
@@ -1279,166 +1279,166 @@ var st = /^(\d+)(th|st|nd|rd)?/i, lt = /\d+/i, ut = {
|
|
|
1279
1279
|
evening: /evening/i,
|
|
1280
1280
|
night: /night/i
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1283
|
-
ordinalNumber:
|
|
1284
|
-
matchPattern:
|
|
1285
|
-
parsePattern:
|
|
1286
|
-
valueCallback: function(
|
|
1287
|
-
return parseInt(
|
|
1282
|
+
}, we = {
|
|
1283
|
+
ordinalNumber: oe({
|
|
1284
|
+
matchPattern: se,
|
|
1285
|
+
parsePattern: le,
|
|
1286
|
+
valueCallback: function(t) {
|
|
1287
|
+
return parseInt(t, 10);
|
|
1288
1288
|
}
|
|
1289
1289
|
}),
|
|
1290
1290
|
era: F({
|
|
1291
|
-
matchPatterns:
|
|
1291
|
+
matchPatterns: ue,
|
|
1292
1292
|
defaultMatchWidth: "wide",
|
|
1293
|
-
parsePatterns:
|
|
1293
|
+
parsePatterns: de,
|
|
1294
1294
|
defaultParseWidth: "any"
|
|
1295
1295
|
}),
|
|
1296
1296
|
quarter: F({
|
|
1297
|
-
matchPatterns:
|
|
1297
|
+
matchPatterns: ce,
|
|
1298
1298
|
defaultMatchWidth: "wide",
|
|
1299
|
-
parsePatterns:
|
|
1299
|
+
parsePatterns: he,
|
|
1300
1300
|
defaultParseWidth: "any",
|
|
1301
|
-
valueCallback: function(
|
|
1302
|
-
return
|
|
1301
|
+
valueCallback: function(t) {
|
|
1302
|
+
return t + 1;
|
|
1303
1303
|
}
|
|
1304
1304
|
}),
|
|
1305
1305
|
month: F({
|
|
1306
|
-
matchPatterns:
|
|
1306
|
+
matchPatterns: fe,
|
|
1307
1307
|
defaultMatchWidth: "wide",
|
|
1308
|
-
parsePatterns:
|
|
1308
|
+
parsePatterns: me,
|
|
1309
1309
|
defaultParseWidth: "any"
|
|
1310
1310
|
}),
|
|
1311
1311
|
day: F({
|
|
1312
|
-
matchPatterns:
|
|
1312
|
+
matchPatterns: ge,
|
|
1313
1313
|
defaultMatchWidth: "wide",
|
|
1314
|
-
parsePatterns:
|
|
1314
|
+
parsePatterns: ve,
|
|
1315
1315
|
defaultParseWidth: "any"
|
|
1316
1316
|
}),
|
|
1317
1317
|
dayPeriod: F({
|
|
1318
|
-
matchPatterns:
|
|
1318
|
+
matchPatterns: pe,
|
|
1319
1319
|
defaultMatchWidth: "any",
|
|
1320
|
-
parsePatterns:
|
|
1320
|
+
parsePatterns: be,
|
|
1321
1321
|
defaultParseWidth: "any"
|
|
1322
1322
|
})
|
|
1323
1323
|
};
|
|
1324
|
-
const
|
|
1325
|
-
var
|
|
1324
|
+
const ye = we;
|
|
1325
|
+
var xe = {
|
|
1326
1326
|
code: "en-US",
|
|
1327
|
-
formatDistance:
|
|
1328
|
-
formatLong:
|
|
1329
|
-
formatRelative:
|
|
1330
|
-
localize:
|
|
1331
|
-
match:
|
|
1327
|
+
formatDistance: Ht,
|
|
1328
|
+
formatLong: zt,
|
|
1329
|
+
formatRelative: Xt,
|
|
1330
|
+
localize: ne,
|
|
1331
|
+
match: ye,
|
|
1332
1332
|
options: {
|
|
1333
1333
|
weekStartsOn: 0,
|
|
1334
1334
|
firstWeekContainsDate: 1
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
|
-
const
|
|
1338
|
-
var
|
|
1339
|
-
function
|
|
1340
|
-
var
|
|
1341
|
-
|
|
1342
|
-
var N = String(
|
|
1337
|
+
const Te = xe;
|
|
1338
|
+
var Ce = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Se = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ke = /^'([^]*?)'?$/, Me = /''/g, De = /[a-zA-Z]/;
|
|
1339
|
+
function Pe(e, t, a) {
|
|
1340
|
+
var n, r, i, o, d, l, h, m, f, p, g, w, D, C;
|
|
1341
|
+
v(2, arguments);
|
|
1342
|
+
var N = String(t), P = $(), O = (n = (r = void 0) !== null && r !== void 0 ? r : P.locale) !== null && n !== void 0 ? n : Te, H = k((i = (o = (d = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && d !== void 0 ? d : P.firstWeekContainsDate) !== null && o !== void 0 ? o : (h = P.locale) === null || h === void 0 || (m = h.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
1343
1343
|
if (!(H >= 1 && H <= 7))
|
|
1344
1344
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1345
|
-
var I = k((
|
|
1345
|
+
var I = k((f = (p = (g = (w = void 0) !== null && w !== void 0 ? w : void 0) !== null && g !== void 0 ? g : P.weekStartsOn) !== null && p !== void 0 ? p : (D = P.locale) === null || D === void 0 || (C = D.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && f !== void 0 ? f : 0);
|
|
1346
1346
|
if (!(I >= 0 && I <= 6))
|
|
1347
1347
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1348
1348
|
if (!O.localize)
|
|
1349
1349
|
throw new RangeError("locale must contain localize property");
|
|
1350
1350
|
if (!O.formatLong)
|
|
1351
1351
|
throw new RangeError("locale must contain formatLong property");
|
|
1352
|
-
var E = y(
|
|
1353
|
-
if (!
|
|
1352
|
+
var E = y(e);
|
|
1353
|
+
if (!gt(E))
|
|
1354
1354
|
throw new RangeError("Invalid time value");
|
|
1355
|
-
var
|
|
1355
|
+
var et = Et(E), at = pt(E, et), nt = {
|
|
1356
1356
|
firstWeekContainsDate: H,
|
|
1357
1357
|
weekStartsOn: I,
|
|
1358
1358
|
locale: O,
|
|
1359
1359
|
_originalDate: E
|
|
1360
|
-
},
|
|
1360
|
+
}, rt = N.match(Se).map(function(b) {
|
|
1361
1361
|
var x = b[0];
|
|
1362
1362
|
if (x === "p" || x === "P") {
|
|
1363
|
-
var Y =
|
|
1363
|
+
var Y = Ft[x];
|
|
1364
1364
|
return Y(b, O.formatLong);
|
|
1365
1365
|
}
|
|
1366
1366
|
return b;
|
|
1367
|
-
}).join("").match(
|
|
1367
|
+
}).join("").match(Ce).map(function(b) {
|
|
1368
1368
|
if (b === "''")
|
|
1369
1369
|
return "'";
|
|
1370
1370
|
var x = b[0];
|
|
1371
1371
|
if (x === "'")
|
|
1372
|
-
return
|
|
1373
|
-
var Y =
|
|
1372
|
+
return Oe(b);
|
|
1373
|
+
var Y = Ot[x];
|
|
1374
1374
|
if (Y)
|
|
1375
|
-
return
|
|
1376
|
-
if (x.match(
|
|
1375
|
+
return Bt(b) && Q(b, t, String(e)), Lt(b) && Q(b, t, String(e)), Y(at, b, O.localize, nt);
|
|
1376
|
+
if (x.match(De))
|
|
1377
1377
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + x + "`");
|
|
1378
1378
|
return b;
|
|
1379
1379
|
}).join("");
|
|
1380
|
-
return
|
|
1380
|
+
return rt;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1383
|
-
var
|
|
1384
|
-
return
|
|
1382
|
+
function Oe(e) {
|
|
1383
|
+
var t = e.match(ke);
|
|
1384
|
+
return t ? t[1].replace(Me, "'") : e;
|
|
1385
1385
|
}
|
|
1386
1386
|
class Z {
|
|
1387
1387
|
constructor() {
|
|
1388
1388
|
}
|
|
1389
|
-
static dateToFormatedString(
|
|
1390
|
-
const
|
|
1391
|
-
return `${
|
|
1389
|
+
static dateToFormatedString(t, a) {
|
|
1390
|
+
const n = a ? Pe(t, a) : t.toLocaleDateString("en-gb"), r = t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
1391
|
+
return `${n}, ${r}`;
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
|
-
class
|
|
1394
|
+
class tt {
|
|
1395
1395
|
constructor() {
|
|
1396
1396
|
}
|
|
1397
|
-
static format(
|
|
1398
|
-
let
|
|
1397
|
+
static format(t, a) {
|
|
1398
|
+
let n = `${a} ${t}`;
|
|
1399
1399
|
try {
|
|
1400
|
-
|
|
1400
|
+
n = new Intl.NumberFormat("en-US", {
|
|
1401
1401
|
style: "currency",
|
|
1402
|
-
currency:
|
|
1403
|
-
}).format(
|
|
1402
|
+
currency: t
|
|
1403
|
+
}).format(a);
|
|
1404
1404
|
} catch (r) {
|
|
1405
1405
|
}
|
|
1406
|
-
return
|
|
1406
|
+
return n;
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|
|
1409
|
-
const
|
|
1409
|
+
const Ue = (e) => s(
|
|
1410
1410
|
"div",
|
|
1411
1411
|
{ class: "data-transaction" },
|
|
1412
|
-
s("p", null,
|
|
1412
|
+
s("p", null, e.productType),
|
|
1413
1413
|
s(
|
|
1414
1414
|
"p",
|
|
1415
1415
|
{ class: "text-style text-style-status" },
|
|
1416
|
-
s("span", { class:
|
|
1416
|
+
s("span", { class: e.status.toLowerCase() }, e.status)
|
|
1417
1417
|
),
|
|
1418
1418
|
s(
|
|
1419
1419
|
"p",
|
|
1420
1420
|
{ class: "date" },
|
|
1421
|
-
|
|
1421
|
+
e.transId,
|
|
1422
1422
|
" | ",
|
|
1423
|
-
Z.dateToFormatedString(new Date(
|
|
1423
|
+
Z.dateToFormatedString(new Date(e.created), e.dateformat)
|
|
1424
1424
|
),
|
|
1425
1425
|
s(
|
|
1426
1426
|
"p",
|
|
1427
1427
|
{ class: "text-style" },
|
|
1428
|
-
|
|
1428
|
+
tt.format(e.currency, e.realAmount),
|
|
1429
1429
|
" "
|
|
1430
1430
|
)
|
|
1431
|
-
),
|
|
1431
|
+
), We = (e) => s(
|
|
1432
1432
|
"div",
|
|
1433
1433
|
{ class: "page-size" },
|
|
1434
|
-
s("span", null, u.translate("show",
|
|
1435
|
-
|
|
1436
|
-
),
|
|
1434
|
+
s("span", null, u.translate("show", e.language)),
|
|
1435
|
+
e.pageSizes.map((t) => s("button", { class: e.currentPageSize === t ? "active" : "", onClick: () => e.changePageSize(t) }, t))
|
|
1436
|
+
), Fe = ({ from: e, to: t, applyFilters: a, language: n }) => {
|
|
1437
1437
|
let r, i;
|
|
1438
1438
|
const o = () => {
|
|
1439
|
-
|
|
1439
|
+
e = r.value;
|
|
1440
1440
|
}, d = () => {
|
|
1441
|
-
|
|
1441
|
+
t = i.value;
|
|
1442
1442
|
};
|
|
1443
1443
|
return s(
|
|
1444
1444
|
"div",
|
|
@@ -1449,7 +1449,7 @@ const Ut = (t) => s(
|
|
|
1449
1449
|
s(
|
|
1450
1450
|
"div",
|
|
1451
1451
|
{ class: "date-input" },
|
|
1452
|
-
s("vaadin-date-picker", { value:
|
|
1452
|
+
s("vaadin-date-picker", { value: e, ref: (l) => r = l, label: u.translate("from", n), onChange: o })
|
|
1453
1453
|
),
|
|
1454
1454
|
s(
|
|
1455
1455
|
"span",
|
|
@@ -1463,23 +1463,23 @@ const Ut = (t) => s(
|
|
|
1463
1463
|
s(
|
|
1464
1464
|
"div",
|
|
1465
1465
|
{ class: "date-input" },
|
|
1466
|
-
s("vaadin-date-picker", { value:
|
|
1466
|
+
s("vaadin-date-picker", { value: t, ref: (l) => i = l, label: u.translate("to", n), onChange: d })
|
|
1467
1467
|
),
|
|
1468
|
-
s("button", { class: "filter-btn", onClick: () =>
|
|
1468
|
+
s("button", { class: "filter-btn", onClick: () => a(e, t) }, u.translate("filter", n))
|
|
1469
1469
|
)
|
|
1470
1470
|
);
|
|
1471
|
-
},
|
|
1472
|
-
const
|
|
1473
|
-
{ name: u.translate("transactionId",
|
|
1471
|
+
}, Ee = ({ source: e, language: t, dateformat: a }) => {
|
|
1472
|
+
const n = [
|
|
1473
|
+
{ name: u.translate("transactionId", t) },
|
|
1474
1474
|
{
|
|
1475
|
-
name: u.translate("date",
|
|
1475
|
+
name: u.translate("date", t)
|
|
1476
1476
|
},
|
|
1477
1477
|
{
|
|
1478
|
-
name: u.translate("amount",
|
|
1478
|
+
name: u.translate("amount", t)
|
|
1479
1479
|
},
|
|
1480
|
-
{ name: u.translate("productType",
|
|
1480
|
+
{ name: u.translate("productType", t) },
|
|
1481
1481
|
{
|
|
1482
|
-
name: u.translate("status",
|
|
1482
|
+
name: u.translate("status", t)
|
|
1483
1483
|
}
|
|
1484
1484
|
];
|
|
1485
1485
|
return s(
|
|
@@ -1488,17 +1488,17 @@ const Ut = (t) => s(
|
|
|
1488
1488
|
s(
|
|
1489
1489
|
"thead",
|
|
1490
1490
|
null,
|
|
1491
|
-
s("tr", null,
|
|
1491
|
+
s("tr", null, n.map((r) => s("th", null, r.name)))
|
|
1492
1492
|
),
|
|
1493
|
-
s("tbody", null,
|
|
1493
|
+
s("tbody", null, e.map((r) => s(
|
|
1494
1494
|
"tr",
|
|
1495
1495
|
null,
|
|
1496
1496
|
s("td", null, r.transId),
|
|
1497
|
-
s("td", null, Z.dateToFormatedString(new Date(r.created),
|
|
1497
|
+
s("td", null, Z.dateToFormatedString(new Date(r.created), a)),
|
|
1498
1498
|
s(
|
|
1499
1499
|
"td",
|
|
1500
1500
|
null,
|
|
1501
|
-
|
|
1501
|
+
tt.format(r.currency, r.realAmount),
|
|
1502
1502
|
" "
|
|
1503
1503
|
),
|
|
1504
1504
|
s("td", null, r.productType),
|
|
@@ -1510,43 +1510,43 @@ const Ut = (t) => s(
|
|
|
1510
1510
|
)))
|
|
1511
1511
|
);
|
|
1512
1512
|
};
|
|
1513
|
-
function X(
|
|
1514
|
-
if (
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1513
|
+
function X(e, t) {
|
|
1514
|
+
if (e) {
|
|
1515
|
+
const a = document.createElement("style");
|
|
1516
|
+
a.innerHTML = t, e.appendChild(a);
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
|
-
function G(
|
|
1520
|
-
const
|
|
1521
|
-
fetch(
|
|
1519
|
+
function G(e, t) {
|
|
1520
|
+
const a = new URL(t);
|
|
1521
|
+
fetch(a.href).then((n) => n.text()).then((n) => {
|
|
1522
1522
|
const r = document.createElement("style");
|
|
1523
|
-
r.innerHTML =
|
|
1524
|
-
}).catch((
|
|
1525
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
1523
|
+
r.innerHTML = n, e && e.appendChild(r);
|
|
1524
|
+
}).catch((n) => {
|
|
1525
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
1526
1526
|
});
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Ye(e, t, a) {
|
|
1529
1529
|
if (window.emMessageBus) {
|
|
1530
|
-
const
|
|
1531
|
-
window.emMessageBus.subscribe(
|
|
1532
|
-
|
|
1530
|
+
const n = document.createElement("style");
|
|
1531
|
+
window.emMessageBus.subscribe(t, (r) => {
|
|
1532
|
+
n.innerHTML = r, e && e.appendChild(n);
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1537
|
-
constructor(
|
|
1538
|
-
|
|
1536
|
+
const _e = ':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))}', Le = _e, Be = class {
|
|
1537
|
+
constructor(e) {
|
|
1538
|
+
st(this, e), this.pageSizes = [10, 25, 50], this.pagination = null, this.toggleScreen = () => {
|
|
1539
1539
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.mobile }, window.location.href);
|
|
1540
1540
|
}, this.endpoint = void 0, this.session = void 0, this.language = u.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;
|
|
1541
1541
|
}
|
|
1542
1542
|
watchMultiple() {
|
|
1543
1543
|
this.loadTransactions();
|
|
1544
1544
|
}
|
|
1545
|
-
handleClientStylingChange(
|
|
1546
|
-
|
|
1545
|
+
handleClientStylingChange(e, t) {
|
|
1546
|
+
e != t && X(this.stylingContainer, this.clientStyling);
|
|
1547
1547
|
}
|
|
1548
|
-
handleClientStylingUrlChange(
|
|
1549
|
-
|
|
1548
|
+
handleClientStylingUrlChange(e, t) {
|
|
1549
|
+
e != t && this.clientStylingUrl && G(this.stylingContainer, this.clientStylingUrl);
|
|
1550
1550
|
}
|
|
1551
1551
|
componentWillLoad() {
|
|
1552
1552
|
return U(this, null, function* () {
|
|
@@ -1554,38 +1554,38 @@ const _t = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--
|
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
1556
1556
|
componentDidLoad() {
|
|
1557
|
-
this.stylingContainer && (window.emMessageBus != null ?
|
|
1557
|
+
this.stylingContainer && (window.emMessageBus != null ? Ye(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && X(this.stylingContainer, this.clientStyling), this.clientStylingUrl && G(this.stylingContainer, this.clientStylingUrl)));
|
|
1558
1558
|
}
|
|
1559
1559
|
componentDidRender() {
|
|
1560
1560
|
this.getComponentHeight();
|
|
1561
1561
|
}
|
|
1562
1562
|
getComponentHeight() {
|
|
1563
|
-
var
|
|
1563
|
+
var e;
|
|
1564
1564
|
if (this.mobile) {
|
|
1565
|
-
let
|
|
1566
|
-
this.el.style.setProperty("--heightScrollableContainer",
|
|
1565
|
+
let t = this.el.getBoundingClientRect().height - ((e = this.el.shadowRoot.querySelector(".table")) === null || e === void 0 ? void 0 : e.getBoundingClientRect().y);
|
|
1566
|
+
this.el.style.setProperty("--heightScrollableContainer", t + "px");
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
1569
|
setHeightTableProperty() {
|
|
1570
|
-
let
|
|
1571
|
-
this.el.style.setProperty("--heightScrollableContainer",
|
|
1570
|
+
let e = this.getComponentHeight();
|
|
1571
|
+
this.el.style.setProperty("--heightScrollableContainer", e + "px");
|
|
1572
1572
|
}
|
|
1573
|
-
changeTransactionsType(
|
|
1574
|
-
this.type =
|
|
1573
|
+
changeTransactionsType(e) {
|
|
1574
|
+
this.type = e;
|
|
1575
1575
|
}
|
|
1576
|
-
changePageSize(
|
|
1577
|
-
this.pageSize =
|
|
1576
|
+
changePageSize(e) {
|
|
1577
|
+
this.pageSize = e;
|
|
1578
1578
|
}
|
|
1579
1579
|
prev() {
|
|
1580
|
-
var
|
|
1581
|
-
!((
|
|
1580
|
+
var e;
|
|
1581
|
+
!((e = this.pagination) === null || e === void 0) && e.previous && this.page--;
|
|
1582
1582
|
}
|
|
1583
1583
|
next() {
|
|
1584
|
-
var
|
|
1585
|
-
!((
|
|
1584
|
+
var e;
|
|
1585
|
+
!((e = this.pagination) === null || e === void 0) && e.next && this.page++;
|
|
1586
1586
|
}
|
|
1587
|
-
applyFilters(
|
|
1588
|
-
this.from =
|
|
1587
|
+
applyFilters(e, t) {
|
|
1588
|
+
this.from = e ? new Date(e).toISOString() : null, this.to = t ? new Date(t).toISOString() : null, this.loadTransactions();
|
|
1589
1589
|
}
|
|
1590
1590
|
showFilter() {
|
|
1591
1591
|
this.showMobileFilter = !this.showMobileFilter;
|
|
@@ -1594,43 +1594,43 @@ const _t = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--
|
|
|
1594
1594
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
1595
1595
|
}
|
|
1596
1596
|
render() {
|
|
1597
|
-
var
|
|
1598
|
-
const
|
|
1599
|
-
return s(
|
|
1597
|
+
var e;
|
|
1598
|
+
const t = q("../assets/filter.svg"), a = q("../assets/warning.svg");
|
|
1599
|
+
return s(lt, { key: "2c1d74e9d321eb73796caa26b58faa1b130d1da1" }, this.showLoader ? s(ft, null) : "", s("div", { key: "a33973c114c4baa184a3699d46e8eb970f3b9dcc", class: "wrapper", ref: (n) => this.stylingContainer = n }, this.mobile ? s("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, s("defs", null), s("g", { transform: "translate(-20 -158)" }, s("g", { transform: "translate(20 158)" }, s("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)" })))), s("h2", { class: "TransactionTitleMobile" }, u.translate("transactionTitle", this.language))) : s("h2", { class: "TransactionTitle" }, u.translate("transactionTitle", this.language)), s("div", { key: "2609cf88acf3364e4b40510d451ed49eface97e6", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, s("button", { key: "7efdac157edfb5dc08f4219b91cf784ac6961d0c", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, u.translate("deposit", this.language)), s("button", { key: "eaf33173f0e6d6271724816400f63f571874906a", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, u.translate("withdrawals", this.language))), this.mobile ? "" : s(We, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? s("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, s("img", { src: t, alt: "Filter" }), u.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? s(Fe, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((e = this.transactions) === null || e === void 0 ? void 0 : e.length) > 0 ? s("div", { class: "table" }, this.mobile ? s("div", { class: "mobile-table" }, this.transactions.map((n) => s(Ue, Object.assign({}, n, { dateformat: this.dateFormat })))) : s(Ee, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : s("div", { class: "noData" }, s("img", { src: a, alt: "Warning" }), s("span", null, u.translate("noData", this.language))), s("div", { key: "c8b5f7a1cac64df3fb7879ad020379b81672b8ae", class: "pagination" }, s("button", { key: "ac06e5c8c62367626b2c72c8d5ee552cefafd3fa", onClick: () => this.prev() }, "<"), s("button", { key: "bff70f58f1815d8da93fa8e5b2b541893a4f475c", onClick: () => this.next() }, ">"))));
|
|
1600
1600
|
}
|
|
1601
1601
|
loadTransactions() {
|
|
1602
1602
|
return U(this, null, function* () {
|
|
1603
1603
|
this.showLoader = !0;
|
|
1604
1604
|
try {
|
|
1605
|
-
const
|
|
1605
|
+
const e = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, t = yield fetch(e, {
|
|
1606
1606
|
headers: {
|
|
1607
1607
|
"X-Sessionid": this.session,
|
|
1608
1608
|
"Content-Type": "application/json"
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
|
-
if (!
|
|
1612
|
-
const
|
|
1613
|
-
throw new Error(
|
|
1611
|
+
if (!t.ok) {
|
|
1612
|
+
const n = yield t.text();
|
|
1613
|
+
throw new Error(n);
|
|
1614
1614
|
}
|
|
1615
|
-
const
|
|
1616
|
-
this.pagination =
|
|
1617
|
-
} catch (
|
|
1618
|
-
console.error(
|
|
1615
|
+
const a = yield t.json();
|
|
1616
|
+
this.pagination = a.pagination, this.transactions = a.transactions;
|
|
1617
|
+
} catch (e) {
|
|
1618
|
+
console.error(e);
|
|
1619
1619
|
} finally {
|
|
1620
1620
|
this.showLoader = !1;
|
|
1621
1621
|
}
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
1624
1624
|
getParams() {
|
|
1625
|
-
var
|
|
1626
|
-
const
|
|
1627
|
-
return `offset=${
|
|
1625
|
+
var e, t;
|
|
1626
|
+
const a = /* @__PURE__ */ new Date(), n = (this.page * this.pageSize).toString(), r = (e = this.from) !== null && e !== void 0 ? e : new Date(a.getFullYear(), a.getMonth(), 1).toISOString(), i = (t = this.to) !== null && t !== void 0 ? t : new Date(a.getFullYear(), a.getMonth() + 1, 0).toISOString();
|
|
1627
|
+
return `offset=${n}&endDate=${i}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`;
|
|
1628
1628
|
}
|
|
1629
1629
|
static get assetsDirs() {
|
|
1630
1630
|
return ["../assets"];
|
|
1631
1631
|
}
|
|
1632
1632
|
get el() {
|
|
1633
|
-
return
|
|
1633
|
+
return ut(this);
|
|
1634
1634
|
}
|
|
1635
1635
|
static get watchers() {
|
|
1636
1636
|
return {
|
|
@@ -1645,7 +1645,7 @@ const _t = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--
|
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
|
-
|
|
1648
|
+
Be.style = Le;
|
|
1649
1649
|
export {
|
|
1650
|
-
|
|
1650
|
+
Be as user_transaction_history
|
|
1651
1651
|
};
|