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