@everymatrix/player-account-controller 1.74.8 → 1.74.10
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-COm1JcKW.cjs +21 -0
- package/components/{GeneralLogout-DIRnj10H.js → GeneralLogout-CiyGpZGU.js} +1284 -1298
- package/components/{GeneralLogout-Dd4n6Kp2.js → GeneralLogout-Vg76ri4V.js} +1308 -1322
- package/components/PlayerAccountBettingHistory-Bv1Qcp8m.js +311 -0
- package/components/PlayerAccountBettingHistory-CE023VGz.cjs +1 -0
- package/components/PlayerAccountBettingHistory-Dn9IsrIP.js +310 -0
- package/components/{PlayerAccountBiometrics-D8lv7JzY.js → PlayerAccountBiometrics-C2wumiJ3.js} +5 -5
- package/components/{PlayerAccountBiometrics-DzUvqvfR.js → PlayerAccountBiometrics-CH9MN1vT.js} +5 -5
- package/components/{PlayerAccountBiometrics-N164JTVo.cjs → PlayerAccountBiometrics-DPdT285K.cjs} +1 -1
- package/components/{PlayerAccountClosure-B7LJRfF_.js → PlayerAccountClosure-BqrCJaGp.js} +6 -6
- package/components/{PlayerAccountClosure-ByNnHtUf.cjs → PlayerAccountClosure-DG5NrDqY.cjs} +1 -1
- package/components/{PlayerAccountClosure-VNjXTTeE.js → PlayerAccountClosure-Dda9CHdX.js} +6 -6
- package/components/{PlayerAccountController-BNFenXlV.js → PlayerAccountController-BeY5S0EH.js} +209 -209
- package/components/{PlayerAccountController-4zAuIhXb.js → PlayerAccountController-Cu59Kubb.js} +209 -209
- package/components/{PlayerAccountController-B53eiCm2.cjs → PlayerAccountController-MSqVuCPp.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-DLyOkU8g.cjs → PlayerAccountGamingLimits-B2vzRems.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BPAFyYb5.js → PlayerAccountGamingLimits-CJksEBIA.js} +124 -124
- package/components/{PlayerAccountGamingLimits-CSFkUiYY.js → PlayerAccountGamingLimits-CqPkjNdS.js} +124 -124
- package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DON2ejFa.js → PlayerAccountGamingLimitsConfirmationModal-BX8_aYoz.js} +38 -38
- package/components/{PlayerAccountGamingLimitsConfirmationModal-De1JAgPX.js → PlayerAccountGamingLimitsConfirmationModal-CfPKMMkU.js} +38 -38
- package/components/{PlayerAccountGamingLimitsGroupEdit-CrgfBvua.js → PlayerAccountGamingLimitsGroupEdit-Ageqronh.js} +1009 -1009
- package/components/{PlayerAccountGamingLimitsGroupEdit-B4l5VAbb.js → PlayerAccountGamingLimitsGroupEdit-BD9SWhvO.js} +1009 -1009
- package/components/{PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs → PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsHistory2-x-v5JjhN.cjs → PlayerAccountGamingLimitsHistory2-B6QgZ3Qd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-RFRr_X30.js → PlayerAccountGamingLimitsHistory2-BusoJL-w.js} +4 -4
- package/components/{PlayerAccountGamingLimitsHistory2-BRgxAXo_.js → PlayerAccountGamingLimitsHistory2-kH5zBkQX.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-BRDuV_cd.js → PlayerAccountGamingLimitsInfoCard-BHAREEgX.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-BiwEIF0r.js → PlayerAccountGamingLimitsInfoCard-BvQ7pktR.js} +7 -7
- package/components/{PlayerAccountGamingLimitsInfoCard-XCP1Kxff.cjs → PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CwwjENW0.js → PlayerAccountGamingLimitsPage2Gm16-CAVf4Y-G.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BWA71CAl.js → PlayerAccountGamingLimitsPage2Gm16-DJHbna0W.js} +39 -39
- package/components/{PlayerAccountGamingLimitsPage2Gm16--rQhVE1q.cjs → PlayerAccountGamingLimitsPage2Gm16-ryQx6oP1.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsPopup-Biyoz4lK.js → PlayerAccountGamingLimitsPopup-Bl1xoGPY.js} +21 -21
- package/components/{PlayerAccountGamingLimitsPopup-cBscDgFe.js → PlayerAccountGamingLimitsPopup-D0ltWJSo.js} +21 -21
- package/components/{PlayerAccountGamingLimitsPopup-DNjM-xS5.cjs → PlayerAccountGamingLimitsPopup-D16rhs4n.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-BIcWUcMl.cjs → PlayerAccountGamingLimitsWrapper2-BSqP4Sd8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-D0KtfHqJ.js → PlayerAccountGamingLimitsWrapper2-nO_niNOc.js} +6 -6
- package/components/{PlayerAccountGamingLimitsWrapper2-BsvByvpk.js → PlayerAccountGamingLimitsWrapper2-vu5v2bbv.js} +6 -6
- package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BNoE_P3G.js → PlayerAccountGeneralConfirmationModal-JvzRw4bx.js} +53 -53
- package/components/{PlayerAccountGeneralConfirmationModal-q4Du5zdg.js → PlayerAccountGeneralConfirmationModal-T_JYxL62.js} +53 -53
- package/components/{PlayerAccountMenu-BicTGCSZ.js → PlayerAccountMenu-C4sG1dhf.js} +7 -7
- package/components/{PlayerAccountMenu-BbdWpRLe.js → PlayerAccountMenu-DPpd0Onj.js} +7 -7
- package/components/{PlayerAccountMenu-CVBew6Nf.cjs → PlayerAccountMenu-JDfi5y52.cjs} +1 -1
- package/components/{PlayerAccountModal-Day4vMPZ.js → PlayerAccountModal-BGCTA59j.js} +10 -10
- package/components/{PlayerAccountModal-J-6B3L2x.js → PlayerAccountModal-DkyQ5JIi.js} +10 -10
- package/components/{PlayerAccountModal-DaIBO9tP.cjs → PlayerAccountModal-DvJ0OsPC.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BbvJAh0S.cjs → PlayerAccountNotifications-CdPeCghS.cjs} +1 -1
- package/components/{PlayerAccountNotifications-wc_EBqY2.js → PlayerAccountNotifications-DTtMvV8M.js} +6 -6
- package/components/{PlayerAccountNotifications-PuDZBFQ4.js → PlayerAccountNotifications-OJnPC108.js} +6 -6
- package/components/{PlayerAccountProductRestriction-DJUublp5.cjs → PlayerAccountProductRestriction-BJ0LFpLp.cjs} +268 -268
- package/components/{PlayerAccountProductRestriction-BVD0VXs9.js → PlayerAccountProductRestriction-BtXJwF14.js} +2517 -2521
- package/components/{PlayerAccountProductRestriction-BA3Ht4v0.js → PlayerAccountProductRestriction-DSjfzN0L.js} +2494 -2498
- package/components/{PlayerAccountSelfExclusion-B9rXp_dv.js → PlayerAccountSelfExclusion-BFhhj0lU.js} +829 -830
- package/components/{PlayerAccountSelfExclusion-BwFD6ZJu.js → PlayerAccountSelfExclusion-CLHfQEii.js} +846 -847
- package/components/{PlayerAccountSelfExclusion-CwlTQfYm.cjs → PlayerAccountSelfExclusion-CdvQXAjK.cjs} +152 -152
- package/components/{PlayerAccountTimeout-DfxFUM4s.js → PlayerAccountTimeout-Dfa2jJXc.js} +43 -43
- package/components/{PlayerAccountTimeout-CPLGI8jX.cjs → PlayerAccountTimeout-Dhey1QrR.cjs} +1 -1
- package/components/{PlayerAccountTimeout-mAcIWL2w.js → PlayerAccountTimeout-lsP1D_FM.js} +43 -43
- package/components/{PlayerAccountTransactionsHistory-D_Rh7xzG.js → PlayerAccountTransactionsHistory-BumeG74E.js} +7 -7
- package/components/{PlayerAccountTransactionsHistory-B61bTygv.js → PlayerAccountTransactionsHistory-e7LnmN2n.js} +7 -7
- package/components/{PlayerAccountTransactionsHistory-J6QX4Mo6.cjs → PlayerAccountTransactionsHistory-x6Mj8Vqc.cjs} +1 -1
- package/components/{PlayerActiveBonuses-lflDqCU8.js → PlayerActiveBonuses-BWfdGowJ.js} +6 -6
- package/components/{PlayerActiveBonuses-DBGj3lj2.js → PlayerActiveBonuses-DcuRFKFP.js} +6 -6
- package/components/{PlayerActiveBonuses-VMRnoY1_.cjs → PlayerActiveBonuses-Me5Q3o65.cjs} +1 -1
- package/components/{PlayerBonusCard-D68dTYiw.js → PlayerBonusCard-CkEs_ikq.js} +7 -7
- package/components/{PlayerBonusCard-B58kMR83.js → PlayerBonusCard-D8XTVs99.js} +7 -7
- package/components/{PlayerBonusCard-KehruUku.cjs → PlayerBonusCard-DgyhSYBs.cjs} +1 -1
- package/components/{PlayerBonusHistory-WEjZxD6T.cjs → PlayerBonusHistory-BmeRyaDK.cjs} +1 -1
- package/components/{PlayerBonusHistory-BZz5QP4A.js → PlayerBonusHistory-CTKJuEJG.js} +7 -7
- package/components/{PlayerBonusHistory-BxcxPRN7.js → PlayerBonusHistory-DmYF8qYy.js} +7 -7
- package/components/{PlayerChangePassword-VQJYG-HQ.js → PlayerChangePassword-Cc15tSRv.js} +4 -4
- package/components/{PlayerChangePassword-DYpl0DV7.cjs → PlayerChangePassword-CfCN79eP.cjs} +1 -1
- package/components/{PlayerChangePassword-CQqQIyDU.js → PlayerChangePassword-Hj0mD9xL.js} +4 -4
- package/components/{PlayerDeposit-R4oRYCP7.js → PlayerDeposit-Bm1DOHlW.js} +73 -73
- package/components/{PlayerDeposit-nin4U--Y.js → PlayerDeposit-BpS3fS46.js} +73 -73
- package/components/PlayerDeposit-CmBFg6tX.cjs +1 -0
- package/components/{PlayerGamingHistory-VnHkfl2z.js → PlayerGamingHistory-B9lwGb0Z.js} +60 -60
- package/components/{PlayerGamingHistory-CN6XDOWB.js → PlayerGamingHistory-Bew4OVxF.js} +53 -53
- package/components/{PlayerGamingHistory-BxN4Cjj3.cjs → PlayerGamingHistory-F3yi70Vu.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-DfQ_PvkY.cjs → PlayerPendingWithdrawals-D-KWiMH6.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-adHFXpiC.js → PlayerPendingWithdrawals-pfC5sUpM.js} +6 -6
- package/components/{PlayerPendingWithdrawals-C1tt1OJl.js → PlayerPendingWithdrawals-scSFcYAA.js} +6 -6
- package/components/{PlayerProfileInfo-DpEH00v-.js → PlayerProfileInfo-1ELKHIQs.js} +108 -108
- package/components/{PlayerProfileInfo-CKJNYYA8.cjs → PlayerProfileInfo-CwZQ79SV.cjs} +1 -1
- package/components/{PlayerProfileInfo-CrGJ1yEi.js → PlayerProfileInfo-DYvdUkJZ.js} +95 -95
- package/components/{PlayerRealityCheck-CTGhzTwa.js → PlayerRealityCheck-DLPtMaP7.js} +6 -6
- package/components/{PlayerRealityCheck-Cq2rIALW.cjs → PlayerRealityCheck-JdOGHDG6.cjs} +1 -1
- package/components/{PlayerRealityCheck-JkP_hy_p.js → PlayerRealityCheck-pQWsLK1G.js} +6 -6
- package/components/{PlayerTransactionHistory-CQPQw37D.js → PlayerTransactionHistory-B7ts1zGr.js} +6 -6
- package/components/{PlayerTransactionHistory-DQfalEXN.js → PlayerTransactionHistory-CUa0IaZD.js} +6 -6
- package/components/{PlayerTransactionHistory-DPvvu8Wp.cjs → PlayerTransactionHistory-Hz2IWD73.cjs} +1 -1
- package/components/{PlayerWithdrawal-11j92uAk.js → PlayerWithdrawal-BTfz-sCc.js} +6 -6
- package/components/{PlayerWithdrawal-yB5c-nTz.js → PlayerWithdrawal-DYVDpOnE.js} +6 -6
- package/components/{PlayerWithdrawal-BcaC1sEF.cjs → PlayerWithdrawal-P_0MIA-u.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_15-BBaHCJ8m.js → checkbox-group-input_15-7ljokaYC.js} +3225 -3231
- package/stencil/{checkbox-group-input_15-B47EbzkJ.js → checkbox-group-input_15-BzU_0jJ_.js} +3221 -3227
- package/stencil/{checkbox-group-input_15-BPXIBJ9O.cjs → checkbox-group-input_15-Fs7-YN7u.cjs} +271 -271
- package/stencil/{index-13661b98-D93Apl47.js → index-13661b98-BJM2hHx6.js} +124 -124
- package/stencil/{index-13661b98-BzYpZXJ-.js → index-13661b98-Cty_Ct2m.js} +245 -245
- package/stencil/index-13661b98-DuhNdmHd.cjs +1 -0
- package/stencil/index-1ef3a64c-DD-PHh2g.cjs +1 -0
- package/stencil/index-1ef3a64c-DQk1yZfC.js +556 -0
- package/stencil/{index-1ef3a64c-BJwg6KZV.js → index-1ef3a64c-DuKSFSN8.js} +201 -201
- package/stencil/{index-7c5e707a-BZ26MA7_.js → index-7c5e707a-B54Yjxc3.js} +135 -135
- package/stencil/{index-7c5e707a-CVVnpkZ1.js → index-7c5e707a-BHFN5Fx4.js} +145 -145
- package/stencil/index-7c5e707a-CFlTnjRT.cjs +1 -0
- package/stencil/index-9c0f6c58-8Ks3y9ln.cjs +1 -0
- package/stencil/{index-9c0f6c58-DH5Ki39B.js → index-9c0f6c58-GCIFeGLp.js} +118 -118
- package/stencil/{index-9c0f6c58-8sXzcKbt.js → index-9c0f6c58-Ucwc3Jk1.js} +223 -223
- package/stencil/index-b2193545-BMFR9-V2.cjs +1 -0
- package/stencil/{index-b2193545-DfDFpDFs.js → index-b2193545-DPKCFIaU.js} +169 -169
- package/stencil/{index-b2193545-BekNYO1T.js → index-b2193545-LzjWxki5.js} +176 -176
- package/stencil/{pam-change-password-h1ivBSP6.js → pam-change-password-Bdu7Bk_h.js} +1 -1
- package/stencil/{pam-change-password-9bMd9dOQ.js → pam-change-password-DSAfkY23.js} +1 -1
- package/stencil/{pam-change-password-af5033a0-BdPXYjRb.js → pam-change-password-af5033a0-BfWHc1Rw.js} +59 -59
- package/stencil/{pam-change-password-af5033a0-CPFagM2l.cjs → pam-change-password-af5033a0-C18GwNdS.cjs} +2 -2
- package/stencil/{pam-change-password-af5033a0-CXI6y6VZ.js → pam-change-password-af5033a0-DYGjeRTR.js} +59 -59
- package/stencil/{pam-change-password-D9deCtek.cjs → pam-change-password-mcRyjsPo.cjs} +1 -1
- package/stencil/{player-kyc-verification-u-XUlDen.js → player-kyc-verification-B9ZaCq1K.js} +1 -1
- package/stencil/{player-kyc-verification-DW2tWbg_.cjs → player-kyc-verification-D10m225z.cjs} +1 -1
- package/stencil/{player-kyc-verification-BJuBsd7A.js → player-kyc-verification-Wsswi9br.js} +1 -1
- package/stencil/{ui-skeleton-CnxOhYAT.js → ui-skeleton-2XsWxl4S.js} +2 -2
- package/stencil/{ui-skeleton-Bez-iF-R.cjs → ui-skeleton-Cbqo0oYF.cjs} +1 -1
- package/stencil/{ui-skeleton-CScGJdv_.js → ui-skeleton-LneRlsD3.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-Bl0_r9TX.js → ui-skeleton-ae35c6f2-8s3Rqu1P.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-D37mmp9J.cjs → ui-skeleton-ae35c6f2-B4ncHe9g.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CXRVKjq-.js → ui-skeleton-ae35c6f2-OnzqIAY0.js} +1 -1
- package/stencil/{user-deposit-withdrawal-KqJCF9Hl.cjs → user-deposit-withdrawal-BP58nPO1.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-B7dnuKq0.js → user-deposit-withdrawal-CSakhNt1.js} +45 -45
- package/stencil/{user-deposit-withdrawal-ar8K3Kn7.js → user-deposit-withdrawal-DcVKAa80.js} +45 -45
- package/stencil/{user-transaction-history-o1zvVNkt.js → user-transaction-history-BrBScppC.js} +600 -600
- package/stencil/{user-transaction-history-D86WcqZY.js → user-transaction-history-D0jBcRwe.js} +588 -588
- package/stencil/user-transaction-history-HA_tfHfo.cjs +1 -0
- package/components/GeneralLogout-TofSUXEw.cjs +0 -21
- package/components/PlayerAccountBettingHistory-85apG_ux.cjs +0 -1
- package/components/PlayerAccountBettingHistory-CuMJRUaH.js +0 -310
- package/components/PlayerAccountBettingHistory-ZZH1M51O.js +0 -311
- package/components/PlayerAccountGamingLimitsConfirmationModal-cxg0byfD.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs +0 -1
- package/components/PlayerDeposit-BLDWbMBK.cjs +0 -1
- package/stencil/index-13661b98-DBuU9Lk0.cjs +0 -1
- package/stencil/index-1ef3a64c-BkMv_VME.cjs +0 -1
- package/stencil/index-1ef3a64c-Cl4fiqPl.js +0 -556
- package/stencil/index-7c5e707a-d0LYIjGl.cjs +0 -1
- package/stencil/index-9c0f6c58-CbFwvYJ1.cjs +0 -1
- package/stencil/index-b2193545-BteAUmdh.cjs +0 -1
- package/stencil/user-transaction-history-xgpDQYWU.cjs +0 -1
package/stencil/{user-transaction-history-D86WcqZY.js → user-transaction-history-D0jBcRwe.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { d as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
return
|
|
1
|
+
import { b as re, p as ie, r as oe, g as R, h as o, H as se, a as le } from "./index-7c5e707a-B54Yjxc3.js";
|
|
2
|
+
import { d as ue } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
3
|
+
var de = () => {
|
|
4
|
+
const t = import.meta.url, e = {};
|
|
5
|
+
return t !== "" && (e.resourcesUrl = new URL(".", t).href), ie(e);
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
const
|
|
7
|
+
de().then(async (t) => (await ue(), re([["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)));
|
|
8
|
+
const ce = {
|
|
9
9
|
en: {
|
|
10
10
|
deposit: "Deposit",
|
|
11
11
|
withdrawals: "Withdrawals",
|
|
@@ -40,41 +40,41 @@ const ct = {
|
|
|
40
40
|
class l {
|
|
41
41
|
constructor() {
|
|
42
42
|
}
|
|
43
|
-
static async loadCustomTranslations(
|
|
43
|
+
static async loadCustomTranslations(e) {
|
|
44
44
|
try {
|
|
45
|
-
const
|
|
45
|
+
const n = await fetch(e, {
|
|
46
46
|
headers: {
|
|
47
47
|
"Content-Type": "application/json"
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
if (!
|
|
51
|
-
const r = await
|
|
50
|
+
if (!n.ok) {
|
|
51
|
+
const r = await n.text();
|
|
52
52
|
throw new Error(r);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
55
|
-
l.updateTranslations(
|
|
56
|
-
} catch (
|
|
57
|
-
console.error(`Failed to load translations ${
|
|
54
|
+
const a = await n.json();
|
|
55
|
+
l.updateTranslations(a);
|
|
56
|
+
} catch (n) {
|
|
57
|
+
console.error(`Failed to load translations ${e}. ${n.message}`);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
static translate(
|
|
61
|
-
var
|
|
62
|
-
const i = l.getAvaliableLanguages(
|
|
63
|
-
return ((r = (
|
|
60
|
+
static translate(e, n) {
|
|
61
|
+
var a, r;
|
|
62
|
+
const i = l.getAvaliableLanguages(n);
|
|
63
|
+
return ((r = (a = l.customTranslation) === null || a === void 0 ? void 0 : a[i.customLanguage]) === null || r === void 0 ? void 0 : r[e]) || l.defaultTranslation[i.predefinedLanguage][e];
|
|
64
64
|
}
|
|
65
|
-
static getAvaliableLanguages(
|
|
66
|
-
var
|
|
67
|
-
const
|
|
68
|
-
return { predefinedLanguage: l.supportedLanguages.includes(
|
|
65
|
+
static getAvaliableLanguages(e) {
|
|
66
|
+
var n;
|
|
67
|
+
const a = !((n = l.customLanguages) === null || n === void 0) && n.includes(e) ? e : l.defaultLanguage;
|
|
68
|
+
return { predefinedLanguage: l.supportedLanguages.includes(e) ? e : l.defaultLanguage, customLanguage: a };
|
|
69
69
|
}
|
|
70
|
-
static updateTranslations(
|
|
71
|
-
l.customLanguages = Array.from(/* @__PURE__ */ new Set([...l.supportedLanguages, ...Object.keys(
|
|
70
|
+
static updateTranslations(e) {
|
|
71
|
+
l.customLanguages = Array.from(/* @__PURE__ */ new Set([...l.supportedLanguages, ...Object.keys(e).map((n) => n.toLowerCase())])), l.customTranslation = e;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
l.defaultLanguage = "en";
|
|
75
75
|
l.supportedLanguages = ["en"];
|
|
76
|
-
l.defaultTranslation =
|
|
77
|
-
const
|
|
76
|
+
l.defaultTranslation = ce;
|
|
77
|
+
const fe = () => o(
|
|
78
78
|
"div",
|
|
79
79
|
{ class: "loader" },
|
|
80
80
|
o("div", null),
|
|
@@ -90,182 +90,182 @@ const ht = () => o(
|
|
|
90
90
|
o("div", null),
|
|
91
91
|
o("div", null)
|
|
92
92
|
);
|
|
93
|
-
function Y(
|
|
93
|
+
function Y(t) {
|
|
94
94
|
"@babel/helpers - typeof";
|
|
95
|
-
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
96
|
-
return typeof
|
|
97
|
-
} : function(
|
|
98
|
-
return
|
|
99
|
-
}, Y(
|
|
95
|
+
return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
96
|
+
return typeof e;
|
|
97
|
+
} : function(e) {
|
|
98
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
99
|
+
}, Y(t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
if (
|
|
103
|
-
throw new TypeError(
|
|
101
|
+
function p(t, e) {
|
|
102
|
+
if (e.length < t)
|
|
103
|
+
throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + e.length + " present");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function he(t) {
|
|
106
|
+
return p(1, arguments), t instanceof Date || Y(t) === "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
107
107
|
}
|
|
108
|
-
function y(
|
|
109
|
-
|
|
110
|
-
var
|
|
111
|
-
return
|
|
108
|
+
function y(t) {
|
|
109
|
+
p(1, arguments);
|
|
110
|
+
var e = Object.prototype.toString.call(t);
|
|
111
|
+
return t instanceof Date || Y(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 < "u" && (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));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
113
|
+
function me(t) {
|
|
114
|
+
if (p(1, arguments), !he(t) && typeof t != "number")
|
|
115
115
|
return !1;
|
|
116
|
-
var
|
|
117
|
-
return !isNaN(Number(
|
|
116
|
+
var e = y(t);
|
|
117
|
+
return !isNaN(Number(e));
|
|
118
118
|
}
|
|
119
|
-
function k(
|
|
120
|
-
if (
|
|
119
|
+
function k(t) {
|
|
120
|
+
if (t === null || t === !0 || t === !1)
|
|
121
121
|
return NaN;
|
|
122
|
-
var
|
|
123
|
-
return isNaN(
|
|
122
|
+
var e = Number(t);
|
|
123
|
+
return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
return new Date(
|
|
125
|
+
function ge(t, e) {
|
|
126
|
+
p(2, arguments);
|
|
127
|
+
var n = y(t).getTime(), a = k(e);
|
|
128
|
+
return new Date(n + a);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
var
|
|
133
|
-
return
|
|
130
|
+
function pe(t, e) {
|
|
131
|
+
p(2, arguments);
|
|
132
|
+
var n = k(e);
|
|
133
|
+
return ge(t, -n);
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
var
|
|
141
|
-
return Math.floor(r /
|
|
135
|
+
var ve = 864e5;
|
|
136
|
+
function be(t) {
|
|
137
|
+
p(1, arguments);
|
|
138
|
+
var e = y(t), n = e.getTime();
|
|
139
|
+
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
140
|
+
var a = e.getTime(), r = n - a;
|
|
141
|
+
return Math.floor(r / ve) + 1;
|
|
142
142
|
}
|
|
143
|
-
function _(
|
|
144
|
-
|
|
145
|
-
var
|
|
146
|
-
return
|
|
143
|
+
function _(t) {
|
|
144
|
+
p(1, arguments);
|
|
145
|
+
var e = 1, n = y(t), a = n.getUTCDay(), r = (a < e ? 7 : 0) + a - e;
|
|
146
|
+
return n.setUTCDate(n.getUTCDate() - r), n.setUTCHours(0, 0, 0, 0), n;
|
|
147
147
|
}
|
|
148
|
-
function G(
|
|
149
|
-
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
var r = _(
|
|
153
|
-
i.setUTCFullYear(
|
|
148
|
+
function G(t) {
|
|
149
|
+
p(1, arguments);
|
|
150
|
+
var e = y(t), n = e.getUTCFullYear(), a = /* @__PURE__ */ new Date(0);
|
|
151
|
+
a.setUTCFullYear(n + 1, 0, 4), a.setUTCHours(0, 0, 0, 0);
|
|
152
|
+
var r = _(a), i = /* @__PURE__ */ new Date(0);
|
|
153
|
+
i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0);
|
|
154
154
|
var s = _(i);
|
|
155
|
-
return
|
|
155
|
+
return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= s.getTime() ? n : n - 1;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
var
|
|
162
|
-
return
|
|
157
|
+
function we(t) {
|
|
158
|
+
p(1, arguments);
|
|
159
|
+
var e = G(t), n = /* @__PURE__ */ new Date(0);
|
|
160
|
+
n.setUTCFullYear(e, 0, 4), n.setUTCHours(0, 0, 0, 0);
|
|
161
|
+
var a = _(n);
|
|
162
|
+
return a;
|
|
163
163
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
var
|
|
168
|
-
return Math.round(
|
|
164
|
+
var ye = 6048e5;
|
|
165
|
+
function xe(t) {
|
|
166
|
+
p(1, arguments);
|
|
167
|
+
var e = y(t), n = _(e).getTime() - we(e).getTime();
|
|
168
|
+
return Math.round(n / ye) + 1;
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var Te = {};
|
|
171
171
|
function B() {
|
|
172
|
-
return
|
|
172
|
+
return Te;
|
|
173
173
|
}
|
|
174
|
-
function L(
|
|
175
|
-
var
|
|
176
|
-
|
|
177
|
-
var m = B(),
|
|
178
|
-
if (!(
|
|
174
|
+
function L(t, e) {
|
|
175
|
+
var n, a, r, i, s, d, c, f;
|
|
176
|
+
p(1, arguments);
|
|
177
|
+
var m = B(), h = k((n = (a = (r = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (s = e.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && r !== void 0 ? r : m.weekStartsOn) !== null && a !== void 0 ? a : (c = m.locale) === null || c === void 0 || (f = c.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && n !== void 0 ? n : 0);
|
|
178
|
+
if (!(h >= 0 && h <= 6))
|
|
179
179
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
180
|
-
var
|
|
181
|
-
return
|
|
180
|
+
var v = y(t), g = v.getUTCDay(), w = (g < h ? 7 : 0) + g - h;
|
|
181
|
+
return v.setUTCDate(v.getUTCDate() - w), v.setUTCHours(0, 0, 0, 0), v;
|
|
182
182
|
}
|
|
183
|
-
function V(
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
var m = y(
|
|
183
|
+
function V(t, e) {
|
|
184
|
+
var n, a, r, i, s, d, c, f;
|
|
185
|
+
p(1, arguments);
|
|
186
|
+
var m = y(t), h = m.getUTCFullYear(), v = B(), g = k((n = (a = (r = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (s = e.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : v.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = v.locale) === null || c === void 0 || (f = c.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
|
|
187
187
|
if (!(g >= 1 && g <= 7))
|
|
188
188
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
189
189
|
var w = /* @__PURE__ */ new Date(0);
|
|
190
|
-
w.setUTCFullYear(
|
|
191
|
-
var D = L(w,
|
|
192
|
-
C.setUTCFullYear(
|
|
193
|
-
var $ = L(C,
|
|
194
|
-
return m.getTime() >= D.getTime() ?
|
|
190
|
+
w.setUTCFullYear(h + 1, 0, g), w.setUTCHours(0, 0, 0, 0);
|
|
191
|
+
var D = L(w, e), C = /* @__PURE__ */ new Date(0);
|
|
192
|
+
C.setUTCFullYear(h, 0, g), C.setUTCHours(0, 0, 0, 0);
|
|
193
|
+
var $ = L(C, e);
|
|
194
|
+
return m.getTime() >= D.getTime() ? h + 1 : m.getTime() >= $.getTime() ? h : h - 1;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
var
|
|
198
|
-
|
|
199
|
-
var m = B(),
|
|
200
|
-
g.setUTCFullYear(
|
|
201
|
-
var w = L(g,
|
|
196
|
+
function Ce(t, e) {
|
|
197
|
+
var n, a, r, i, s, d, c, f;
|
|
198
|
+
p(1, arguments);
|
|
199
|
+
var m = B(), h = k((n = (a = (r = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (s = e.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : m.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = m.locale) === null || c === void 0 || (f = c.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), v = V(t, e), g = /* @__PURE__ */ new Date(0);
|
|
200
|
+
g.setUTCFullYear(v, 0, h), g.setUTCHours(0, 0, 0, 0);
|
|
201
|
+
var w = L(g, e);
|
|
202
202
|
return w;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
return Math.round(
|
|
204
|
+
var Se = 6048e5;
|
|
205
|
+
function ke(t, e) {
|
|
206
|
+
p(1, arguments);
|
|
207
|
+
var n = y(t), a = L(n, e).getTime() - Ce(n, e).getTime();
|
|
208
|
+
return Math.round(a / Se) + 1;
|
|
209
209
|
}
|
|
210
|
-
function u(
|
|
211
|
-
for (var
|
|
212
|
-
|
|
213
|
-
return
|
|
210
|
+
function u(t, e) {
|
|
211
|
+
for (var n = t < 0 ? "-" : "", a = Math.abs(t).toString(); a.length < e; )
|
|
212
|
+
a = "0" + a;
|
|
213
|
+
return n + a;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var Me = {
|
|
216
216
|
// Year
|
|
217
|
-
y: function(
|
|
218
|
-
var
|
|
219
|
-
return u(
|
|
217
|
+
y: function(e, n) {
|
|
218
|
+
var a = e.getUTCFullYear(), r = a > 0 ? a : 1 - a;
|
|
219
|
+
return u(n === "yy" ? r % 100 : r, n.length);
|
|
220
220
|
},
|
|
221
221
|
// Month
|
|
222
|
-
M: function(
|
|
223
|
-
var
|
|
224
|
-
return
|
|
222
|
+
M: function(e, n) {
|
|
223
|
+
var a = e.getUTCMonth();
|
|
224
|
+
return n === "M" ? String(a + 1) : u(a + 1, 2);
|
|
225
225
|
},
|
|
226
226
|
// Day of the month
|
|
227
|
-
d: function(
|
|
228
|
-
return u(
|
|
227
|
+
d: function(e, n) {
|
|
228
|
+
return u(e.getUTCDate(), n.length);
|
|
229
229
|
},
|
|
230
230
|
// AM or PM
|
|
231
|
-
a: function(
|
|
232
|
-
var
|
|
233
|
-
switch (
|
|
231
|
+
a: function(e, n) {
|
|
232
|
+
var a = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
233
|
+
switch (n) {
|
|
234
234
|
case "a":
|
|
235
235
|
case "aa":
|
|
236
|
-
return
|
|
236
|
+
return a.toUpperCase();
|
|
237
237
|
case "aaa":
|
|
238
|
-
return
|
|
238
|
+
return a;
|
|
239
239
|
case "aaaaa":
|
|
240
|
-
return
|
|
240
|
+
return a[0];
|
|
241
241
|
case "aaaa":
|
|
242
242
|
default:
|
|
243
|
-
return
|
|
243
|
+
return a === "am" ? "a.m." : "p.m.";
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
// Hour [1-12]
|
|
247
|
-
h: function(
|
|
248
|
-
return u(
|
|
247
|
+
h: function(e, n) {
|
|
248
|
+
return u(e.getUTCHours() % 12 || 12, n.length);
|
|
249
249
|
},
|
|
250
250
|
// Hour [0-23]
|
|
251
|
-
H: function(
|
|
252
|
-
return u(
|
|
251
|
+
H: function(e, n) {
|
|
252
|
+
return u(e.getUTCHours(), n.length);
|
|
253
253
|
},
|
|
254
254
|
// Minute
|
|
255
|
-
m: function(
|
|
256
|
-
return u(
|
|
255
|
+
m: function(e, n) {
|
|
256
|
+
return u(e.getUTCMinutes(), n.length);
|
|
257
257
|
},
|
|
258
258
|
// Second
|
|
259
|
-
s: function(
|
|
260
|
-
return u(
|
|
259
|
+
s: function(e, n) {
|
|
260
|
+
return u(e.getUTCSeconds(), n.length);
|
|
261
261
|
},
|
|
262
262
|
// Fraction of second
|
|
263
|
-
S: function(
|
|
264
|
-
var
|
|
265
|
-
return u(i,
|
|
263
|
+
S: function(e, n) {
|
|
264
|
+
var a = n.length, r = e.getUTCMilliseconds(), i = Math.floor(r * Math.pow(10, a - 3));
|
|
265
|
+
return u(i, n.length);
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
|
-
const T =
|
|
268
|
+
const T = Me;
|
|
269
269
|
var M = {
|
|
270
270
|
am: "am",
|
|
271
271
|
pm: "pm",
|
|
@@ -275,53 +275,53 @@ var M = {
|
|
|
275
275
|
afternoon: "afternoon",
|
|
276
276
|
evening: "evening",
|
|
277
277
|
night: "night"
|
|
278
|
-
},
|
|
278
|
+
}, De = {
|
|
279
279
|
// Era
|
|
280
|
-
G: function(
|
|
281
|
-
var r =
|
|
282
|
-
switch (
|
|
280
|
+
G: function(e, n, a) {
|
|
281
|
+
var r = e.getUTCFullYear() > 0 ? 1 : 0;
|
|
282
|
+
switch (n) {
|
|
283
283
|
case "G":
|
|
284
284
|
case "GG":
|
|
285
285
|
case "GGG":
|
|
286
|
-
return
|
|
286
|
+
return a.era(r, {
|
|
287
287
|
width: "abbreviated"
|
|
288
288
|
});
|
|
289
289
|
case "GGGGG":
|
|
290
|
-
return
|
|
290
|
+
return a.era(r, {
|
|
291
291
|
width: "narrow"
|
|
292
292
|
});
|
|
293
293
|
case "GGGG":
|
|
294
294
|
default:
|
|
295
|
-
return
|
|
295
|
+
return a.era(r, {
|
|
296
296
|
width: "wide"
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
// Year
|
|
301
|
-
y: function(
|
|
302
|
-
if (
|
|
303
|
-
var r =
|
|
304
|
-
return
|
|
301
|
+
y: function(e, n, a) {
|
|
302
|
+
if (n === "yo") {
|
|
303
|
+
var r = e.getUTCFullYear(), i = r > 0 ? r : 1 - r;
|
|
304
|
+
return a.ordinalNumber(i, {
|
|
305
305
|
unit: "year"
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
return T.y(
|
|
308
|
+
return T.y(e, n);
|
|
309
309
|
},
|
|
310
310
|
// Local week-numbering year
|
|
311
|
-
Y: function(
|
|
312
|
-
var i = V(
|
|
313
|
-
if (
|
|
311
|
+
Y: function(e, n, a, r) {
|
|
312
|
+
var i = V(e, r), s = i > 0 ? i : 1 - i;
|
|
313
|
+
if (n === "YY") {
|
|
314
314
|
var d = s % 100;
|
|
315
315
|
return u(d, 2);
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return n === "Yo" ? a.ordinalNumber(s, {
|
|
318
318
|
unit: "year"
|
|
319
|
-
}) : u(s,
|
|
319
|
+
}) : u(s, n.length);
|
|
320
320
|
},
|
|
321
321
|
// ISO week-numbering year
|
|
322
|
-
R: function(
|
|
323
|
-
var
|
|
324
|
-
return u(
|
|
322
|
+
R: function(e, n) {
|
|
323
|
+
var a = G(e);
|
|
324
|
+
return u(a, n.length);
|
|
325
325
|
},
|
|
326
326
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
327
327
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -332,422 +332,422 @@ var M = {
|
|
|
332
332
|
// | BC 2 | 2 | -1 |
|
|
333
333
|
// Also `yy` always returns the last two digits of a year,
|
|
334
334
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
335
|
-
u: function(
|
|
336
|
-
var
|
|
337
|
-
return u(
|
|
335
|
+
u: function(e, n) {
|
|
336
|
+
var a = e.getUTCFullYear();
|
|
337
|
+
return u(a, n.length);
|
|
338
338
|
},
|
|
339
339
|
// Quarter
|
|
340
|
-
Q: function(
|
|
341
|
-
var r = Math.ceil((
|
|
342
|
-
switch (
|
|
340
|
+
Q: function(e, n, a) {
|
|
341
|
+
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
|
|
342
|
+
switch (n) {
|
|
343
343
|
case "Q":
|
|
344
344
|
return String(r);
|
|
345
345
|
case "QQ":
|
|
346
346
|
return u(r, 2);
|
|
347
347
|
case "Qo":
|
|
348
|
-
return
|
|
348
|
+
return a.ordinalNumber(r, {
|
|
349
349
|
unit: "quarter"
|
|
350
350
|
});
|
|
351
351
|
case "QQQ":
|
|
352
|
-
return
|
|
352
|
+
return a.quarter(r, {
|
|
353
353
|
width: "abbreviated",
|
|
354
354
|
context: "formatting"
|
|
355
355
|
});
|
|
356
356
|
case "QQQQQ":
|
|
357
|
-
return
|
|
357
|
+
return a.quarter(r, {
|
|
358
358
|
width: "narrow",
|
|
359
359
|
context: "formatting"
|
|
360
360
|
});
|
|
361
361
|
case "QQQQ":
|
|
362
362
|
default:
|
|
363
|
-
return
|
|
363
|
+
return a.quarter(r, {
|
|
364
364
|
width: "wide",
|
|
365
365
|
context: "formatting"
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
},
|
|
369
369
|
// Stand-alone quarter
|
|
370
|
-
q: function(
|
|
371
|
-
var r = Math.ceil((
|
|
372
|
-
switch (
|
|
370
|
+
q: function(e, n, a) {
|
|
371
|
+
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
|
|
372
|
+
switch (n) {
|
|
373
373
|
case "q":
|
|
374
374
|
return String(r);
|
|
375
375
|
case "qq":
|
|
376
376
|
return u(r, 2);
|
|
377
377
|
case "qo":
|
|
378
|
-
return
|
|
378
|
+
return a.ordinalNumber(r, {
|
|
379
379
|
unit: "quarter"
|
|
380
380
|
});
|
|
381
381
|
case "qqq":
|
|
382
|
-
return
|
|
382
|
+
return a.quarter(r, {
|
|
383
383
|
width: "abbreviated",
|
|
384
384
|
context: "standalone"
|
|
385
385
|
});
|
|
386
386
|
case "qqqqq":
|
|
387
|
-
return
|
|
387
|
+
return a.quarter(r, {
|
|
388
388
|
width: "narrow",
|
|
389
389
|
context: "standalone"
|
|
390
390
|
});
|
|
391
391
|
case "qqqq":
|
|
392
392
|
default:
|
|
393
|
-
return
|
|
393
|
+
return a.quarter(r, {
|
|
394
394
|
width: "wide",
|
|
395
395
|
context: "standalone"
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
},
|
|
399
399
|
// Month
|
|
400
|
-
M: function(
|
|
401
|
-
var r =
|
|
402
|
-
switch (
|
|
400
|
+
M: function(e, n, a) {
|
|
401
|
+
var r = e.getUTCMonth();
|
|
402
|
+
switch (n) {
|
|
403
403
|
case "M":
|
|
404
404
|
case "MM":
|
|
405
|
-
return T.M(
|
|
405
|
+
return T.M(e, n);
|
|
406
406
|
case "Mo":
|
|
407
|
-
return
|
|
407
|
+
return a.ordinalNumber(r + 1, {
|
|
408
408
|
unit: "month"
|
|
409
409
|
});
|
|
410
410
|
case "MMM":
|
|
411
|
-
return
|
|
411
|
+
return a.month(r, {
|
|
412
412
|
width: "abbreviated",
|
|
413
413
|
context: "formatting"
|
|
414
414
|
});
|
|
415
415
|
case "MMMMM":
|
|
416
|
-
return
|
|
416
|
+
return a.month(r, {
|
|
417
417
|
width: "narrow",
|
|
418
418
|
context: "formatting"
|
|
419
419
|
});
|
|
420
420
|
case "MMMM":
|
|
421
421
|
default:
|
|
422
|
-
return
|
|
422
|
+
return a.month(r, {
|
|
423
423
|
width: "wide",
|
|
424
424
|
context: "formatting"
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
},
|
|
428
428
|
// Stand-alone month
|
|
429
|
-
L: function(
|
|
430
|
-
var r =
|
|
431
|
-
switch (
|
|
429
|
+
L: function(e, n, a) {
|
|
430
|
+
var r = e.getUTCMonth();
|
|
431
|
+
switch (n) {
|
|
432
432
|
case "L":
|
|
433
433
|
return String(r + 1);
|
|
434
434
|
case "LL":
|
|
435
435
|
return u(r + 1, 2);
|
|
436
436
|
case "Lo":
|
|
437
|
-
return
|
|
437
|
+
return a.ordinalNumber(r + 1, {
|
|
438
438
|
unit: "month"
|
|
439
439
|
});
|
|
440
440
|
case "LLL":
|
|
441
|
-
return
|
|
441
|
+
return a.month(r, {
|
|
442
442
|
width: "abbreviated",
|
|
443
443
|
context: "standalone"
|
|
444
444
|
});
|
|
445
445
|
case "LLLLL":
|
|
446
|
-
return
|
|
446
|
+
return a.month(r, {
|
|
447
447
|
width: "narrow",
|
|
448
448
|
context: "standalone"
|
|
449
449
|
});
|
|
450
450
|
case "LLLL":
|
|
451
451
|
default:
|
|
452
|
-
return
|
|
452
|
+
return a.month(r, {
|
|
453
453
|
width: "wide",
|
|
454
454
|
context: "standalone"
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
458
|
// Local week of year
|
|
459
|
-
w: function(
|
|
460
|
-
var i =
|
|
461
|
-
return
|
|
459
|
+
w: function(e, n, a, r) {
|
|
460
|
+
var i = ke(e, r);
|
|
461
|
+
return n === "wo" ? a.ordinalNumber(i, {
|
|
462
462
|
unit: "week"
|
|
463
|
-
}) : u(i,
|
|
463
|
+
}) : u(i, n.length);
|
|
464
464
|
},
|
|
465
465
|
// ISO week of year
|
|
466
|
-
I: function(
|
|
467
|
-
var r =
|
|
468
|
-
return
|
|
466
|
+
I: function(e, n, a) {
|
|
467
|
+
var r = xe(e);
|
|
468
|
+
return n === "Io" ? a.ordinalNumber(r, {
|
|
469
469
|
unit: "week"
|
|
470
|
-
}) : u(r,
|
|
470
|
+
}) : u(r, n.length);
|
|
471
471
|
},
|
|
472
472
|
// Day of the month
|
|
473
|
-
d: function(
|
|
474
|
-
return
|
|
473
|
+
d: function(e, n, a) {
|
|
474
|
+
return n === "do" ? a.ordinalNumber(e.getUTCDate(), {
|
|
475
475
|
unit: "date"
|
|
476
|
-
}) : T.d(
|
|
476
|
+
}) : T.d(e, n);
|
|
477
477
|
},
|
|
478
478
|
// Day of year
|
|
479
|
-
D: function(
|
|
480
|
-
var r =
|
|
481
|
-
return
|
|
479
|
+
D: function(e, n, a) {
|
|
480
|
+
var r = be(e);
|
|
481
|
+
return n === "Do" ? a.ordinalNumber(r, {
|
|
482
482
|
unit: "dayOfYear"
|
|
483
|
-
}) : u(r,
|
|
483
|
+
}) : u(r, n.length);
|
|
484
484
|
},
|
|
485
485
|
// Day of week
|
|
486
|
-
E: function(
|
|
487
|
-
var r =
|
|
488
|
-
switch (
|
|
486
|
+
E: function(e, n, a) {
|
|
487
|
+
var r = e.getUTCDay();
|
|
488
|
+
switch (n) {
|
|
489
489
|
case "E":
|
|
490
490
|
case "EE":
|
|
491
491
|
case "EEE":
|
|
492
|
-
return
|
|
492
|
+
return a.day(r, {
|
|
493
493
|
width: "abbreviated",
|
|
494
494
|
context: "formatting"
|
|
495
495
|
});
|
|
496
496
|
case "EEEEE":
|
|
497
|
-
return
|
|
497
|
+
return a.day(r, {
|
|
498
498
|
width: "narrow",
|
|
499
499
|
context: "formatting"
|
|
500
500
|
});
|
|
501
501
|
case "EEEEEE":
|
|
502
|
-
return
|
|
502
|
+
return a.day(r, {
|
|
503
503
|
width: "short",
|
|
504
504
|
context: "formatting"
|
|
505
505
|
});
|
|
506
506
|
case "EEEE":
|
|
507
507
|
default:
|
|
508
|
-
return
|
|
508
|
+
return a.day(r, {
|
|
509
509
|
width: "wide",
|
|
510
510
|
context: "formatting"
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
},
|
|
514
514
|
// Local day of week
|
|
515
|
-
e: function(
|
|
516
|
-
var i =
|
|
517
|
-
switch (
|
|
515
|
+
e: function(e, n, a, r) {
|
|
516
|
+
var i = e.getUTCDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
517
|
+
switch (n) {
|
|
518
518
|
case "e":
|
|
519
519
|
return String(s);
|
|
520
520
|
case "ee":
|
|
521
521
|
return u(s, 2);
|
|
522
522
|
case "eo":
|
|
523
|
-
return
|
|
523
|
+
return a.ordinalNumber(s, {
|
|
524
524
|
unit: "day"
|
|
525
525
|
});
|
|
526
526
|
case "eee":
|
|
527
|
-
return
|
|
527
|
+
return a.day(i, {
|
|
528
528
|
width: "abbreviated",
|
|
529
529
|
context: "formatting"
|
|
530
530
|
});
|
|
531
531
|
case "eeeee":
|
|
532
|
-
return
|
|
532
|
+
return a.day(i, {
|
|
533
533
|
width: "narrow",
|
|
534
534
|
context: "formatting"
|
|
535
535
|
});
|
|
536
536
|
case "eeeeee":
|
|
537
|
-
return
|
|
537
|
+
return a.day(i, {
|
|
538
538
|
width: "short",
|
|
539
539
|
context: "formatting"
|
|
540
540
|
});
|
|
541
541
|
case "eeee":
|
|
542
542
|
default:
|
|
543
|
-
return
|
|
543
|
+
return a.day(i, {
|
|
544
544
|
width: "wide",
|
|
545
545
|
context: "formatting"
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
// Stand-alone local day of week
|
|
550
|
-
c: function(
|
|
551
|
-
var i =
|
|
552
|
-
switch (
|
|
550
|
+
c: function(e, n, a, r) {
|
|
551
|
+
var i = e.getUTCDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
552
|
+
switch (n) {
|
|
553
553
|
case "c":
|
|
554
554
|
return String(s);
|
|
555
555
|
case "cc":
|
|
556
|
-
return u(s,
|
|
556
|
+
return u(s, n.length);
|
|
557
557
|
case "co":
|
|
558
|
-
return
|
|
558
|
+
return a.ordinalNumber(s, {
|
|
559
559
|
unit: "day"
|
|
560
560
|
});
|
|
561
561
|
case "ccc":
|
|
562
|
-
return
|
|
562
|
+
return a.day(i, {
|
|
563
563
|
width: "abbreviated",
|
|
564
564
|
context: "standalone"
|
|
565
565
|
});
|
|
566
566
|
case "ccccc":
|
|
567
|
-
return
|
|
567
|
+
return a.day(i, {
|
|
568
568
|
width: "narrow",
|
|
569
569
|
context: "standalone"
|
|
570
570
|
});
|
|
571
571
|
case "cccccc":
|
|
572
|
-
return
|
|
572
|
+
return a.day(i, {
|
|
573
573
|
width: "short",
|
|
574
574
|
context: "standalone"
|
|
575
575
|
});
|
|
576
576
|
case "cccc":
|
|
577
577
|
default:
|
|
578
|
-
return
|
|
578
|
+
return a.day(i, {
|
|
579
579
|
width: "wide",
|
|
580
580
|
context: "standalone"
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
},
|
|
584
584
|
// ISO day of week
|
|
585
|
-
i: function(
|
|
586
|
-
var r =
|
|
587
|
-
switch (
|
|
585
|
+
i: function(e, n, a) {
|
|
586
|
+
var r = e.getUTCDay(), i = r === 0 ? 7 : r;
|
|
587
|
+
switch (n) {
|
|
588
588
|
case "i":
|
|
589
589
|
return String(i);
|
|
590
590
|
case "ii":
|
|
591
|
-
return u(i,
|
|
591
|
+
return u(i, n.length);
|
|
592
592
|
case "io":
|
|
593
|
-
return
|
|
593
|
+
return a.ordinalNumber(i, {
|
|
594
594
|
unit: "day"
|
|
595
595
|
});
|
|
596
596
|
case "iii":
|
|
597
|
-
return
|
|
597
|
+
return a.day(r, {
|
|
598
598
|
width: "abbreviated",
|
|
599
599
|
context: "formatting"
|
|
600
600
|
});
|
|
601
601
|
case "iiiii":
|
|
602
|
-
return
|
|
602
|
+
return a.day(r, {
|
|
603
603
|
width: "narrow",
|
|
604
604
|
context: "formatting"
|
|
605
605
|
});
|
|
606
606
|
case "iiiiii":
|
|
607
|
-
return
|
|
607
|
+
return a.day(r, {
|
|
608
608
|
width: "short",
|
|
609
609
|
context: "formatting"
|
|
610
610
|
});
|
|
611
611
|
case "iiii":
|
|
612
612
|
default:
|
|
613
|
-
return
|
|
613
|
+
return a.day(r, {
|
|
614
614
|
width: "wide",
|
|
615
615
|
context: "formatting"
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
},
|
|
619
619
|
// AM or PM
|
|
620
|
-
a: function(
|
|
621
|
-
var r =
|
|
622
|
-
switch (
|
|
620
|
+
a: function(e, n, a) {
|
|
621
|
+
var r = e.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
|
|
622
|
+
switch (n) {
|
|
623
623
|
case "a":
|
|
624
624
|
case "aa":
|
|
625
|
-
return
|
|
625
|
+
return a.dayPeriod(i, {
|
|
626
626
|
width: "abbreviated",
|
|
627
627
|
context: "formatting"
|
|
628
628
|
});
|
|
629
629
|
case "aaa":
|
|
630
|
-
return
|
|
630
|
+
return a.dayPeriod(i, {
|
|
631
631
|
width: "abbreviated",
|
|
632
632
|
context: "formatting"
|
|
633
633
|
}).toLowerCase();
|
|
634
634
|
case "aaaaa":
|
|
635
|
-
return
|
|
635
|
+
return a.dayPeriod(i, {
|
|
636
636
|
width: "narrow",
|
|
637
637
|
context: "formatting"
|
|
638
638
|
});
|
|
639
639
|
case "aaaa":
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return a.dayPeriod(i, {
|
|
642
642
|
width: "wide",
|
|
643
643
|
context: "formatting"
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
647
|
// AM, PM, midnight, noon
|
|
648
|
-
b: function(
|
|
649
|
-
var r =
|
|
650
|
-
switch (r === 12 ? i = M.noon : r === 0 ? i = M.midnight : i = r / 12 >= 1 ? "pm" : "am",
|
|
648
|
+
b: function(e, n, a) {
|
|
649
|
+
var r = e.getUTCHours(), i;
|
|
650
|
+
switch (r === 12 ? i = M.noon : r === 0 ? i = M.midnight : i = r / 12 >= 1 ? "pm" : "am", n) {
|
|
651
651
|
case "b":
|
|
652
652
|
case "bb":
|
|
653
|
-
return
|
|
653
|
+
return a.dayPeriod(i, {
|
|
654
654
|
width: "abbreviated",
|
|
655
655
|
context: "formatting"
|
|
656
656
|
});
|
|
657
657
|
case "bbb":
|
|
658
|
-
return
|
|
658
|
+
return a.dayPeriod(i, {
|
|
659
659
|
width: "abbreviated",
|
|
660
660
|
context: "formatting"
|
|
661
661
|
}).toLowerCase();
|
|
662
662
|
case "bbbbb":
|
|
663
|
-
return
|
|
663
|
+
return a.dayPeriod(i, {
|
|
664
664
|
width: "narrow",
|
|
665
665
|
context: "formatting"
|
|
666
666
|
});
|
|
667
667
|
case "bbbb":
|
|
668
668
|
default:
|
|
669
|
-
return
|
|
669
|
+
return a.dayPeriod(i, {
|
|
670
670
|
width: "wide",
|
|
671
671
|
context: "formatting"
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
675
|
// in the morning, in the afternoon, in the evening, at night
|
|
676
|
-
B: function(
|
|
677
|
-
var r =
|
|
678
|
-
switch (r >= 17 ? i = M.evening : r >= 12 ? i = M.afternoon : r >= 4 ? i = M.morning : i = M.night,
|
|
676
|
+
B: function(e, n, a) {
|
|
677
|
+
var r = e.getUTCHours(), i;
|
|
678
|
+
switch (r >= 17 ? i = M.evening : r >= 12 ? i = M.afternoon : r >= 4 ? i = M.morning : i = M.night, n) {
|
|
679
679
|
case "B":
|
|
680
680
|
case "BB":
|
|
681
681
|
case "BBB":
|
|
682
|
-
return
|
|
682
|
+
return a.dayPeriod(i, {
|
|
683
683
|
width: "abbreviated",
|
|
684
684
|
context: "formatting"
|
|
685
685
|
});
|
|
686
686
|
case "BBBBB":
|
|
687
|
-
return
|
|
687
|
+
return a.dayPeriod(i, {
|
|
688
688
|
width: "narrow",
|
|
689
689
|
context: "formatting"
|
|
690
690
|
});
|
|
691
691
|
case "BBBB":
|
|
692
692
|
default:
|
|
693
|
-
return
|
|
693
|
+
return a.dayPeriod(i, {
|
|
694
694
|
width: "wide",
|
|
695
695
|
context: "formatting"
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
698
|
},
|
|
699
699
|
// Hour [1-12]
|
|
700
|
-
h: function(
|
|
701
|
-
if (
|
|
702
|
-
var r =
|
|
703
|
-
return r === 0 && (r = 12),
|
|
700
|
+
h: function(e, n, a) {
|
|
701
|
+
if (n === "ho") {
|
|
702
|
+
var r = e.getUTCHours() % 12;
|
|
703
|
+
return r === 0 && (r = 12), a.ordinalNumber(r, {
|
|
704
704
|
unit: "hour"
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
-
return T.h(
|
|
707
|
+
return T.h(e, n);
|
|
708
708
|
},
|
|
709
709
|
// Hour [0-23]
|
|
710
|
-
H: function(
|
|
711
|
-
return
|
|
710
|
+
H: function(e, n, a) {
|
|
711
|
+
return n === "Ho" ? a.ordinalNumber(e.getUTCHours(), {
|
|
712
712
|
unit: "hour"
|
|
713
|
-
}) : T.H(
|
|
713
|
+
}) : T.H(e, n);
|
|
714
714
|
},
|
|
715
715
|
// Hour [0-11]
|
|
716
|
-
K: function(
|
|
717
|
-
var r =
|
|
718
|
-
return
|
|
716
|
+
K: function(e, n, a) {
|
|
717
|
+
var r = e.getUTCHours() % 12;
|
|
718
|
+
return n === "Ko" ? a.ordinalNumber(r, {
|
|
719
719
|
unit: "hour"
|
|
720
|
-
}) : u(r,
|
|
720
|
+
}) : u(r, n.length);
|
|
721
721
|
},
|
|
722
722
|
// Hour [1-24]
|
|
723
|
-
k: function(
|
|
724
|
-
var r =
|
|
725
|
-
return r === 0 && (r = 24),
|
|
723
|
+
k: function(e, n, a) {
|
|
724
|
+
var r = e.getUTCHours();
|
|
725
|
+
return r === 0 && (r = 24), n === "ko" ? a.ordinalNumber(r, {
|
|
726
726
|
unit: "hour"
|
|
727
|
-
}) : u(r,
|
|
727
|
+
}) : u(r, n.length);
|
|
728
728
|
},
|
|
729
729
|
// Minute
|
|
730
|
-
m: function(
|
|
731
|
-
return
|
|
730
|
+
m: function(e, n, a) {
|
|
731
|
+
return n === "mo" ? a.ordinalNumber(e.getUTCMinutes(), {
|
|
732
732
|
unit: "minute"
|
|
733
|
-
}) : T.m(
|
|
733
|
+
}) : T.m(e, n);
|
|
734
734
|
},
|
|
735
735
|
// Second
|
|
736
|
-
s: function(
|
|
737
|
-
return
|
|
736
|
+
s: function(e, n, a) {
|
|
737
|
+
return n === "so" ? a.ordinalNumber(e.getUTCSeconds(), {
|
|
738
738
|
unit: "second"
|
|
739
|
-
}) : T.s(
|
|
739
|
+
}) : T.s(e, n);
|
|
740
740
|
},
|
|
741
741
|
// Fraction of second
|
|
742
|
-
S: function(
|
|
743
|
-
return T.S(
|
|
742
|
+
S: function(e, n) {
|
|
743
|
+
return T.S(e, n);
|
|
744
744
|
},
|
|
745
745
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
746
|
-
X: function(
|
|
747
|
-
var i = r._originalDate ||
|
|
746
|
+
X: function(e, n, a, r) {
|
|
747
|
+
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
748
748
|
if (s === 0)
|
|
749
749
|
return "Z";
|
|
750
|
-
switch (
|
|
750
|
+
switch (n) {
|
|
751
751
|
case "X":
|
|
752
752
|
return j(s);
|
|
753
753
|
case "XXXX":
|
|
@@ -760,9 +760,9 @@ var M = {
|
|
|
760
760
|
}
|
|
761
761
|
},
|
|
762
762
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
763
|
-
x: function(
|
|
764
|
-
var i = r._originalDate ||
|
|
765
|
-
switch (
|
|
763
|
+
x: function(e, n, a, r) {
|
|
764
|
+
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
765
|
+
switch (n) {
|
|
766
766
|
case "x":
|
|
767
767
|
return j(s);
|
|
768
768
|
case "xxxx":
|
|
@@ -775,9 +775,9 @@ var M = {
|
|
|
775
775
|
}
|
|
776
776
|
},
|
|
777
777
|
// Timezone (GMT)
|
|
778
|
-
O: function(
|
|
779
|
-
var i = r._originalDate ||
|
|
780
|
-
switch (
|
|
778
|
+
O: function(e, n, a, r) {
|
|
779
|
+
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
780
|
+
switch (n) {
|
|
781
781
|
case "O":
|
|
782
782
|
case "OO":
|
|
783
783
|
case "OOO":
|
|
@@ -788,9 +788,9 @@ var M = {
|
|
|
788
788
|
}
|
|
789
789
|
},
|
|
790
790
|
// Timezone (specific non-location)
|
|
791
|
-
z: function(
|
|
792
|
-
var i = r._originalDate ||
|
|
793
|
-
switch (
|
|
791
|
+
z: function(e, n, a, r) {
|
|
792
|
+
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
793
|
+
switch (n) {
|
|
794
794
|
case "z":
|
|
795
795
|
case "zz":
|
|
796
796
|
case "zzz":
|
|
@@ -801,131 +801,131 @@ var M = {
|
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
// Seconds timestamp
|
|
804
|
-
t: function(
|
|
805
|
-
var i = r._originalDate ||
|
|
806
|
-
return u(s,
|
|
804
|
+
t: function(e, n, a, r) {
|
|
805
|
+
var i = r._originalDate || e, s = Math.floor(i.getTime() / 1e3);
|
|
806
|
+
return u(s, n.length);
|
|
807
807
|
},
|
|
808
808
|
// Milliseconds timestamp
|
|
809
|
-
T: function(
|
|
810
|
-
var i = r._originalDate ||
|
|
811
|
-
return u(s,
|
|
809
|
+
T: function(e, n, a, r) {
|
|
810
|
+
var i = r._originalDate || e, s = i.getTime();
|
|
811
|
+
return u(s, n.length);
|
|
812
812
|
}
|
|
813
813
|
};
|
|
814
|
-
function q(
|
|
815
|
-
var
|
|
814
|
+
function q(t, e) {
|
|
815
|
+
var n = t > 0 ? "-" : "+", a = Math.abs(t), r = Math.floor(a / 60), i = a % 60;
|
|
816
816
|
if (i === 0)
|
|
817
|
-
return
|
|
818
|
-
var s =
|
|
819
|
-
return
|
|
817
|
+
return n + String(r);
|
|
818
|
+
var s = e;
|
|
819
|
+
return n + String(r) + s + u(i, 2);
|
|
820
820
|
}
|
|
821
|
-
function j(
|
|
822
|
-
if (
|
|
823
|
-
var
|
|
824
|
-
return
|
|
821
|
+
function j(t, e) {
|
|
822
|
+
if (t % 60 === 0) {
|
|
823
|
+
var n = t > 0 ? "-" : "+";
|
|
824
|
+
return n + u(Math.abs(t) / 60, 2);
|
|
825
825
|
}
|
|
826
|
-
return S(
|
|
826
|
+
return S(t, e);
|
|
827
827
|
}
|
|
828
|
-
function S(
|
|
829
|
-
var
|
|
830
|
-
return
|
|
828
|
+
function S(t, e) {
|
|
829
|
+
var n = e || "", a = t > 0 ? "-" : "+", r = Math.abs(t), i = u(Math.floor(r / 60), 2), s = u(r % 60, 2);
|
|
830
|
+
return a + i + n + s;
|
|
831
831
|
}
|
|
832
|
-
const
|
|
833
|
-
var z = function(
|
|
834
|
-
switch (
|
|
832
|
+
const Pe = De;
|
|
833
|
+
var z = function(e, n) {
|
|
834
|
+
switch (e) {
|
|
835
835
|
case "P":
|
|
836
|
-
return
|
|
836
|
+
return n.date({
|
|
837
837
|
width: "short"
|
|
838
838
|
});
|
|
839
839
|
case "PP":
|
|
840
|
-
return
|
|
840
|
+
return n.date({
|
|
841
841
|
width: "medium"
|
|
842
842
|
});
|
|
843
843
|
case "PPP":
|
|
844
|
-
return
|
|
844
|
+
return n.date({
|
|
845
845
|
width: "long"
|
|
846
846
|
});
|
|
847
847
|
case "PPPP":
|
|
848
848
|
default:
|
|
849
|
-
return
|
|
849
|
+
return n.date({
|
|
850
850
|
width: "full"
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
|
-
}, J = function(
|
|
854
|
-
switch (
|
|
853
|
+
}, J = function(e, n) {
|
|
854
|
+
switch (e) {
|
|
855
855
|
case "p":
|
|
856
|
-
return
|
|
856
|
+
return n.time({
|
|
857
857
|
width: "short"
|
|
858
858
|
});
|
|
859
859
|
case "pp":
|
|
860
|
-
return
|
|
860
|
+
return n.time({
|
|
861
861
|
width: "medium"
|
|
862
862
|
});
|
|
863
863
|
case "ppp":
|
|
864
|
-
return
|
|
864
|
+
return n.time({
|
|
865
865
|
width: "long"
|
|
866
866
|
});
|
|
867
867
|
case "pppp":
|
|
868
868
|
default:
|
|
869
|
-
return
|
|
869
|
+
return n.time({
|
|
870
870
|
width: "full"
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
|
-
},
|
|
874
|
-
var
|
|
873
|
+
}, Oe = function(e, n) {
|
|
874
|
+
var a = e.match(/(P+)(p+)?/) || [], r = a[1], i = a[2];
|
|
875
875
|
if (!i)
|
|
876
|
-
return z(
|
|
876
|
+
return z(e, n);
|
|
877
877
|
var s;
|
|
878
878
|
switch (r) {
|
|
879
879
|
case "P":
|
|
880
|
-
s =
|
|
880
|
+
s = n.dateTime({
|
|
881
881
|
width: "short"
|
|
882
882
|
});
|
|
883
883
|
break;
|
|
884
884
|
case "PP":
|
|
885
|
-
s =
|
|
885
|
+
s = n.dateTime({
|
|
886
886
|
width: "medium"
|
|
887
887
|
});
|
|
888
888
|
break;
|
|
889
889
|
case "PPP":
|
|
890
|
-
s =
|
|
890
|
+
s = n.dateTime({
|
|
891
891
|
width: "long"
|
|
892
892
|
});
|
|
893
893
|
break;
|
|
894
894
|
case "PPPP":
|
|
895
895
|
default:
|
|
896
|
-
s =
|
|
896
|
+
s = n.dateTime({
|
|
897
897
|
width: "full"
|
|
898
898
|
});
|
|
899
899
|
break;
|
|
900
900
|
}
|
|
901
|
-
return s.replace("{{date}}", z(r,
|
|
902
|
-
},
|
|
901
|
+
return s.replace("{{date}}", z(r, n)).replace("{{time}}", J(i, n));
|
|
902
|
+
}, Ue = {
|
|
903
903
|
p: J,
|
|
904
|
-
P:
|
|
904
|
+
P: Oe
|
|
905
905
|
};
|
|
906
|
-
const
|
|
907
|
-
function
|
|
908
|
-
var
|
|
909
|
-
return
|
|
906
|
+
const We = Ue;
|
|
907
|
+
function Fe(t) {
|
|
908
|
+
var e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
909
|
+
return e.setUTCFullYear(t.getFullYear()), t.getTime() - e.getTime();
|
|
910
910
|
}
|
|
911
|
-
var
|
|
912
|
-
function
|
|
913
|
-
return
|
|
911
|
+
var Ee = ["D", "DD"], Ye = ["YY", "YYYY"];
|
|
912
|
+
function _e(t) {
|
|
913
|
+
return Ee.indexOf(t) !== -1;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
return
|
|
915
|
+
function Le(t) {
|
|
916
|
+
return Ye.indexOf(t) !== -1;
|
|
917
917
|
}
|
|
918
|
-
function A(
|
|
919
|
-
if (
|
|
920
|
-
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(
|
|
921
|
-
if (
|
|
922
|
-
throw new RangeError("Use `yy` instead of `YY` (in `".concat(
|
|
923
|
-
if (
|
|
924
|
-
throw new RangeError("Use `d` instead of `D` (in `".concat(
|
|
925
|
-
if (
|
|
926
|
-
throw new RangeError("Use `dd` instead of `DD` (in `".concat(
|
|
918
|
+
function A(t, e, n) {
|
|
919
|
+
if (t === "YYYY")
|
|
920
|
+
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"));
|
|
921
|
+
if (t === "YY")
|
|
922
|
+
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"));
|
|
923
|
+
if (t === "D")
|
|
924
|
+
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"));
|
|
925
|
+
if (t === "DD")
|
|
926
|
+
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"));
|
|
927
927
|
}
|
|
928
|
-
var
|
|
928
|
+
var Be = {
|
|
929
929
|
lessThanXSeconds: {
|
|
930
930
|
one: "less than a second",
|
|
931
931
|
other: "less than {{count}} seconds"
|
|
@@ -987,90 +987,90 @@ var Bt = {
|
|
|
987
987
|
one: "almost 1 year",
|
|
988
988
|
other: "almost {{count}} years"
|
|
989
989
|
}
|
|
990
|
-
}, $
|
|
991
|
-
var r, i =
|
|
992
|
-
return typeof i == "string" ? r = i :
|
|
990
|
+
}, $e = function(e, n, a) {
|
|
991
|
+
var r, i = Be[e];
|
|
992
|
+
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;
|
|
993
993
|
};
|
|
994
|
-
const
|
|
995
|
-
function I(
|
|
994
|
+
const Ne = $e;
|
|
995
|
+
function I(t) {
|
|
996
996
|
return function() {
|
|
997
|
-
var
|
|
998
|
-
return
|
|
997
|
+
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];
|
|
998
|
+
return a;
|
|
999
999
|
};
|
|
1000
1000
|
}
|
|
1001
|
-
var
|
|
1001
|
+
var He = {
|
|
1002
1002
|
full: "EEEE, MMMM do, y",
|
|
1003
1003
|
long: "MMMM do, y",
|
|
1004
1004
|
medium: "MMM d, y",
|
|
1005
1005
|
short: "MM/dd/yyyy"
|
|
1006
|
-
},
|
|
1006
|
+
}, Ie = {
|
|
1007
1007
|
full: "h:mm:ss a zzzz",
|
|
1008
1008
|
long: "h:mm:ss a z",
|
|
1009
1009
|
medium: "h:mm:ss a",
|
|
1010
1010
|
short: "h:mm a"
|
|
1011
|
-
},
|
|
1011
|
+
}, Re = {
|
|
1012
1012
|
full: "{{date}} 'at' {{time}}",
|
|
1013
1013
|
long: "{{date}} 'at' {{time}}",
|
|
1014
1014
|
medium: "{{date}}, {{time}}",
|
|
1015
1015
|
short: "{{date}}, {{time}}"
|
|
1016
|
-
},
|
|
1016
|
+
}, qe = {
|
|
1017
1017
|
date: I({
|
|
1018
|
-
formats:
|
|
1018
|
+
formats: He,
|
|
1019
1019
|
defaultWidth: "full"
|
|
1020
1020
|
}),
|
|
1021
1021
|
time: I({
|
|
1022
|
-
formats:
|
|
1022
|
+
formats: Ie,
|
|
1023
1023
|
defaultWidth: "full"
|
|
1024
1024
|
}),
|
|
1025
1025
|
dateTime: I({
|
|
1026
|
-
formats:
|
|
1026
|
+
formats: Re,
|
|
1027
1027
|
defaultWidth: "full"
|
|
1028
1028
|
})
|
|
1029
1029
|
};
|
|
1030
|
-
const
|
|
1031
|
-
var
|
|
1030
|
+
const je = qe;
|
|
1031
|
+
var ze = {
|
|
1032
1032
|
lastWeek: "'last' eeee 'at' p",
|
|
1033
1033
|
yesterday: "'yesterday at' p",
|
|
1034
1034
|
today: "'today at' p",
|
|
1035
1035
|
tomorrow: "'tomorrow at' p",
|
|
1036
1036
|
nextWeek: "eeee 'at' p",
|
|
1037
1037
|
other: "P"
|
|
1038
|
-
},
|
|
1039
|
-
return
|
|
1038
|
+
}, Ae = function(e, n, a, r) {
|
|
1039
|
+
return ze[e];
|
|
1040
1040
|
};
|
|
1041
|
-
const
|
|
1042
|
-
function U(
|
|
1043
|
-
return function(
|
|
1044
|
-
var
|
|
1045
|
-
if (
|
|
1046
|
-
var i =
|
|
1047
|
-
r =
|
|
1041
|
+
const Qe = Ae;
|
|
1042
|
+
function U(t) {
|
|
1043
|
+
return function(e, n) {
|
|
1044
|
+
var a = n != null && n.context ? String(n.context) : "standalone", r;
|
|
1045
|
+
if (a === "formatting" && t.formattingValues) {
|
|
1046
|
+
var i = t.defaultFormattingWidth || t.defaultWidth, s = n != null && n.width ? String(n.width) : i;
|
|
1047
|
+
r = t.formattingValues[s] || t.formattingValues[i];
|
|
1048
1048
|
} else {
|
|
1049
|
-
var d =
|
|
1050
|
-
r =
|
|
1049
|
+
var d = t.defaultWidth, c = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
1050
|
+
r = t.values[c] || t.values[d];
|
|
1051
1051
|
}
|
|
1052
|
-
var
|
|
1053
|
-
return r[
|
|
1052
|
+
var f = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
1053
|
+
return r[f];
|
|
1054
1054
|
};
|
|
1055
1055
|
}
|
|
1056
|
-
var
|
|
1056
|
+
var Xe = {
|
|
1057
1057
|
narrow: ["B", "A"],
|
|
1058
1058
|
abbreviated: ["BC", "AD"],
|
|
1059
1059
|
wide: ["Before Christ", "Anno Domini"]
|
|
1060
|
-
},
|
|
1060
|
+
}, Ge = {
|
|
1061
1061
|
narrow: ["1", "2", "3", "4"],
|
|
1062
1062
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1063
1063
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1064
|
-
},
|
|
1064
|
+
}, Ve = {
|
|
1065
1065
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1066
1066
|
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1067
1067
|
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
1068
|
-
},
|
|
1068
|
+
}, Je = {
|
|
1069
1069
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1070
1070
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1071
1071
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1072
1072
|
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1073
|
-
},
|
|
1073
|
+
}, Ke = {
|
|
1074
1074
|
narrow: {
|
|
1075
1075
|
am: "a",
|
|
1076
1076
|
pm: "p",
|
|
@@ -1101,7 +1101,7 @@ var Xt = {
|
|
|
1101
1101
|
evening: "evening",
|
|
1102
1102
|
night: "night"
|
|
1103
1103
|
}
|
|
1104
|
-
},
|
|
1104
|
+
}, Ze = {
|
|
1105
1105
|
narrow: {
|
|
1106
1106
|
am: "a",
|
|
1107
1107
|
pm: "p",
|
|
@@ -1132,123 +1132,123 @@ var Xt = {
|
|
|
1132
1132
|
evening: "in the evening",
|
|
1133
1133
|
night: "at night"
|
|
1134
1134
|
}
|
|
1135
|
-
},
|
|
1136
|
-
var
|
|
1135
|
+
}, et = function(e, n) {
|
|
1136
|
+
var a = Number(e), r = a % 100;
|
|
1137
1137
|
if (r > 20 || r < 10)
|
|
1138
1138
|
switch (r % 10) {
|
|
1139
1139
|
case 1:
|
|
1140
|
-
return
|
|
1140
|
+
return a + "st";
|
|
1141
1141
|
case 2:
|
|
1142
|
-
return
|
|
1142
|
+
return a + "nd";
|
|
1143
1143
|
case 3:
|
|
1144
|
-
return
|
|
1144
|
+
return a + "rd";
|
|
1145
1145
|
}
|
|
1146
|
-
return
|
|
1147
|
-
},
|
|
1148
|
-
ordinalNumber:
|
|
1146
|
+
return a + "th";
|
|
1147
|
+
}, tt = {
|
|
1148
|
+
ordinalNumber: et,
|
|
1149
1149
|
era: U({
|
|
1150
|
-
values:
|
|
1150
|
+
values: Xe,
|
|
1151
1151
|
defaultWidth: "wide"
|
|
1152
1152
|
}),
|
|
1153
1153
|
quarter: U({
|
|
1154
|
-
values:
|
|
1154
|
+
values: Ge,
|
|
1155
1155
|
defaultWidth: "wide",
|
|
1156
|
-
argumentCallback: function(
|
|
1157
|
-
return
|
|
1156
|
+
argumentCallback: function(e) {
|
|
1157
|
+
return e - 1;
|
|
1158
1158
|
}
|
|
1159
1159
|
}),
|
|
1160
1160
|
month: U({
|
|
1161
|
-
values:
|
|
1161
|
+
values: Ve,
|
|
1162
1162
|
defaultWidth: "wide"
|
|
1163
1163
|
}),
|
|
1164
1164
|
day: U({
|
|
1165
|
-
values:
|
|
1165
|
+
values: Je,
|
|
1166
1166
|
defaultWidth: "wide"
|
|
1167
1167
|
}),
|
|
1168
1168
|
dayPeriod: U({
|
|
1169
|
-
values:
|
|
1169
|
+
values: Ke,
|
|
1170
1170
|
defaultWidth: "wide",
|
|
1171
|
-
formattingValues:
|
|
1171
|
+
formattingValues: Ze,
|
|
1172
1172
|
defaultFormattingWidth: "wide"
|
|
1173
1173
|
})
|
|
1174
1174
|
};
|
|
1175
|
-
const
|
|
1176
|
-
function W(
|
|
1177
|
-
return function(
|
|
1178
|
-
var
|
|
1175
|
+
const nt = tt;
|
|
1176
|
+
function W(t) {
|
|
1177
|
+
return function(e) {
|
|
1178
|
+
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);
|
|
1179
1179
|
if (!i)
|
|
1180
1180
|
return null;
|
|
1181
|
-
var s = i[0], d =
|
|
1182
|
-
return
|
|
1183
|
-
}) :
|
|
1184
|
-
return
|
|
1185
|
-
}),
|
|
1186
|
-
|
|
1187
|
-
var m =
|
|
1181
|
+
var s = i[0], d = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(d) ? rt(d, function(h) {
|
|
1182
|
+
return h.test(s);
|
|
1183
|
+
}) : at(d, function(h) {
|
|
1184
|
+
return h.test(s);
|
|
1185
|
+
}), f;
|
|
1186
|
+
f = t.valueCallback ? t.valueCallback(c) : c, f = n.valueCallback ? n.valueCallback(f) : f;
|
|
1187
|
+
var m = e.slice(s.length);
|
|
1188
1188
|
return {
|
|
1189
|
-
value:
|
|
1189
|
+
value: f,
|
|
1190
1190
|
rest: m
|
|
1191
1191
|
};
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1195
|
-
for (var
|
|
1196
|
-
if (
|
|
1197
|
-
return
|
|
1194
|
+
function at(t, e) {
|
|
1195
|
+
for (var n in t)
|
|
1196
|
+
if (t.hasOwnProperty(n) && e(t[n]))
|
|
1197
|
+
return n;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
for (var
|
|
1201
|
-
if (t
|
|
1202
|
-
return
|
|
1199
|
+
function rt(t, e) {
|
|
1200
|
+
for (var n = 0; n < t.length; n++)
|
|
1201
|
+
if (e(t[n]))
|
|
1202
|
+
return n;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return function(
|
|
1206
|
-
var
|
|
1207
|
-
if (!
|
|
1204
|
+
function it(t) {
|
|
1205
|
+
return function(e) {
|
|
1206
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = e.match(t.matchPattern);
|
|
1207
|
+
if (!a)
|
|
1208
1208
|
return null;
|
|
1209
|
-
var r =
|
|
1209
|
+
var r = a[0], i = e.match(t.parsePattern);
|
|
1210
1210
|
if (!i)
|
|
1211
1211
|
return null;
|
|
1212
|
-
var s =
|
|
1213
|
-
s =
|
|
1214
|
-
var d =
|
|
1212
|
+
var s = t.valueCallback ? t.valueCallback(i[0]) : i[0];
|
|
1213
|
+
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
1214
|
+
var d = e.slice(r.length);
|
|
1215
1215
|
return {
|
|
1216
1216
|
value: s,
|
|
1217
1217
|
rest: d
|
|
1218
1218
|
};
|
|
1219
1219
|
};
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1221
|
+
var ot = /^(\d+)(th|st|nd|rd)?/i, st = /\d+/i, lt = {
|
|
1222
1222
|
narrow: /^(b|a)/i,
|
|
1223
1223
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1224
1224
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1225
|
-
},
|
|
1225
|
+
}, ut = {
|
|
1226
1226
|
any: [/^b/i, /^(a|c)/i]
|
|
1227
|
-
},
|
|
1227
|
+
}, dt = {
|
|
1228
1228
|
narrow: /^[1234]/i,
|
|
1229
1229
|
abbreviated: /^q[1234]/i,
|
|
1230
1230
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1231
|
-
},
|
|
1231
|
+
}, ct = {
|
|
1232
1232
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1233
|
-
},
|
|
1233
|
+
}, ft = {
|
|
1234
1234
|
narrow: /^[jfmasond]/i,
|
|
1235
1235
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1236
1236
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1237
|
-
},
|
|
1237
|
+
}, ht = {
|
|
1238
1238
|
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],
|
|
1239
1239
|
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]
|
|
1240
|
-
},
|
|
1240
|
+
}, mt = {
|
|
1241
1241
|
narrow: /^[smtwf]/i,
|
|
1242
1242
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1243
1243
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1244
1244
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1245
|
-
},
|
|
1245
|
+
}, gt = {
|
|
1246
1246
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1247
1247
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1248
|
-
},
|
|
1248
|
+
}, pt = {
|
|
1249
1249
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1250
1250
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1251
|
-
},
|
|
1251
|
+
}, vt = {
|
|
1252
1252
|
any: {
|
|
1253
1253
|
am: /^a/i,
|
|
1254
1254
|
pm: /^p/i,
|
|
@@ -1259,166 +1259,166 @@ var oe = /^(\d+)(th|st|nd|rd)?/i, se = /\d+/i, le = {
|
|
|
1259
1259
|
evening: /evening/i,
|
|
1260
1260
|
night: /night/i
|
|
1261
1261
|
}
|
|
1262
|
-
},
|
|
1263
|
-
ordinalNumber:
|
|
1264
|
-
matchPattern:
|
|
1265
|
-
parsePattern:
|
|
1266
|
-
valueCallback: function(
|
|
1267
|
-
return parseInt(
|
|
1262
|
+
}, bt = {
|
|
1263
|
+
ordinalNumber: it({
|
|
1264
|
+
matchPattern: ot,
|
|
1265
|
+
parsePattern: st,
|
|
1266
|
+
valueCallback: function(e) {
|
|
1267
|
+
return parseInt(e, 10);
|
|
1268
1268
|
}
|
|
1269
1269
|
}),
|
|
1270
1270
|
era: W({
|
|
1271
|
-
matchPatterns:
|
|
1271
|
+
matchPatterns: lt,
|
|
1272
1272
|
defaultMatchWidth: "wide",
|
|
1273
|
-
parsePatterns:
|
|
1273
|
+
parsePatterns: ut,
|
|
1274
1274
|
defaultParseWidth: "any"
|
|
1275
1275
|
}),
|
|
1276
1276
|
quarter: W({
|
|
1277
|
-
matchPatterns:
|
|
1277
|
+
matchPatterns: dt,
|
|
1278
1278
|
defaultMatchWidth: "wide",
|
|
1279
|
-
parsePatterns:
|
|
1279
|
+
parsePatterns: ct,
|
|
1280
1280
|
defaultParseWidth: "any",
|
|
1281
|
-
valueCallback: function(
|
|
1282
|
-
return
|
|
1281
|
+
valueCallback: function(e) {
|
|
1282
|
+
return e + 1;
|
|
1283
1283
|
}
|
|
1284
1284
|
}),
|
|
1285
1285
|
month: W({
|
|
1286
|
-
matchPatterns:
|
|
1286
|
+
matchPatterns: ft,
|
|
1287
1287
|
defaultMatchWidth: "wide",
|
|
1288
|
-
parsePatterns:
|
|
1288
|
+
parsePatterns: ht,
|
|
1289
1289
|
defaultParseWidth: "any"
|
|
1290
1290
|
}),
|
|
1291
1291
|
day: W({
|
|
1292
|
-
matchPatterns:
|
|
1292
|
+
matchPatterns: mt,
|
|
1293
1293
|
defaultMatchWidth: "wide",
|
|
1294
|
-
parsePatterns:
|
|
1294
|
+
parsePatterns: gt,
|
|
1295
1295
|
defaultParseWidth: "any"
|
|
1296
1296
|
}),
|
|
1297
1297
|
dayPeriod: W({
|
|
1298
|
-
matchPatterns:
|
|
1298
|
+
matchPatterns: pt,
|
|
1299
1299
|
defaultMatchWidth: "any",
|
|
1300
|
-
parsePatterns:
|
|
1300
|
+
parsePatterns: vt,
|
|
1301
1301
|
defaultParseWidth: "any"
|
|
1302
1302
|
})
|
|
1303
1303
|
};
|
|
1304
|
-
const
|
|
1305
|
-
var
|
|
1304
|
+
const wt = bt;
|
|
1305
|
+
var yt = {
|
|
1306
1306
|
code: "en-US",
|
|
1307
|
-
formatDistance:
|
|
1308
|
-
formatLong:
|
|
1309
|
-
formatRelative:
|
|
1310
|
-
localize:
|
|
1311
|
-
match:
|
|
1307
|
+
formatDistance: Ne,
|
|
1308
|
+
formatLong: je,
|
|
1309
|
+
formatRelative: Qe,
|
|
1310
|
+
localize: nt,
|
|
1311
|
+
match: wt,
|
|
1312
1312
|
options: {
|
|
1313
1313
|
weekStartsOn: 0,
|
|
1314
1314
|
firstWeekContainsDate: 1
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
const
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1320
|
-
var
|
|
1321
|
-
|
|
1322
|
-
var $ = String(
|
|
1317
|
+
const xt = yt;
|
|
1318
|
+
var Tt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ct = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, St = /^'([^]*?)'?$/, kt = /''/g, Mt = /[a-zA-Z]/;
|
|
1319
|
+
function Dt(t, e, n) {
|
|
1320
|
+
var a, r, i, s, d, c, f, m, h, v, g, w, D, C;
|
|
1321
|
+
p(2, arguments);
|
|
1322
|
+
var $ = String(e), P = B(), O = (a = (r = void 0) !== null && r !== void 0 ? r : P.locale) !== null && a !== void 0 ? a : xt, N = k((i = (s = (d = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && d !== void 0 ? d : P.firstWeekContainsDate) !== null && s !== void 0 ? s : (f = P.locale) === null || f === void 0 || (m = f.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
1323
1323
|
if (!(N >= 1 && N <= 7))
|
|
1324
1324
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1325
|
-
var H = k((
|
|
1325
|
+
var H = 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);
|
|
1326
1326
|
if (!(H >= 0 && H <= 6))
|
|
1327
1327
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1328
1328
|
if (!O.localize)
|
|
1329
1329
|
throw new RangeError("locale must contain localize property");
|
|
1330
1330
|
if (!O.formatLong)
|
|
1331
1331
|
throw new RangeError("locale must contain formatLong property");
|
|
1332
|
-
var F = y(
|
|
1333
|
-
if (!
|
|
1332
|
+
var F = y(t);
|
|
1333
|
+
if (!me(F))
|
|
1334
1334
|
throw new RangeError("Invalid time value");
|
|
1335
|
-
var
|
|
1335
|
+
var ee = Fe(F), te = pe(F, ee), ne = {
|
|
1336
1336
|
firstWeekContainsDate: N,
|
|
1337
1337
|
weekStartsOn: H,
|
|
1338
1338
|
locale: O,
|
|
1339
1339
|
_originalDate: F
|
|
1340
|
-
},
|
|
1340
|
+
}, ae = $.match(Ct).map(function(b) {
|
|
1341
1341
|
var x = b[0];
|
|
1342
1342
|
if (x === "p" || x === "P") {
|
|
1343
|
-
var E =
|
|
1343
|
+
var E = We[x];
|
|
1344
1344
|
return E(b, O.formatLong);
|
|
1345
1345
|
}
|
|
1346
1346
|
return b;
|
|
1347
|
-
}).join("").match(
|
|
1347
|
+
}).join("").match(Tt).map(function(b) {
|
|
1348
1348
|
if (b === "''")
|
|
1349
1349
|
return "'";
|
|
1350
1350
|
var x = b[0];
|
|
1351
1351
|
if (x === "'")
|
|
1352
|
-
return
|
|
1353
|
-
var E =
|
|
1352
|
+
return Pt(b);
|
|
1353
|
+
var E = Pe[x];
|
|
1354
1354
|
if (E)
|
|
1355
|
-
return
|
|
1356
|
-
if (x.match(
|
|
1355
|
+
return Le(b) && A(b, e, String(t)), _e(b) && A(b, e, String(t)), E(te, b, O.localize, ne);
|
|
1356
|
+
if (x.match(Mt))
|
|
1357
1357
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + x + "`");
|
|
1358
1358
|
return b;
|
|
1359
1359
|
}).join("");
|
|
1360
|
-
return
|
|
1360
|
+
return ae;
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1363
|
-
var
|
|
1364
|
-
return
|
|
1362
|
+
function Pt(t) {
|
|
1363
|
+
var e = t.match(St);
|
|
1364
|
+
return e ? e[1].replace(kt, "'") : t;
|
|
1365
1365
|
}
|
|
1366
1366
|
class K {
|
|
1367
1367
|
constructor() {
|
|
1368
1368
|
}
|
|
1369
|
-
static dateToFormatedString(
|
|
1370
|
-
const
|
|
1371
|
-
return `${
|
|
1369
|
+
static dateToFormatedString(e, n) {
|
|
1370
|
+
const a = n ? Dt(e, n) : e.toLocaleDateString("en-gb"), r = e.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
1371
|
+
return `${a}, ${r}`;
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
class Z {
|
|
1375
1375
|
constructor() {
|
|
1376
1376
|
}
|
|
1377
|
-
static format(
|
|
1378
|
-
let
|
|
1377
|
+
static format(e, n) {
|
|
1378
|
+
let a = `${n} ${e}`;
|
|
1379
1379
|
try {
|
|
1380
|
-
|
|
1380
|
+
a = new Intl.NumberFormat("en-US", {
|
|
1381
1381
|
style: "currency",
|
|
1382
|
-
currency:
|
|
1383
|
-
}).format(
|
|
1382
|
+
currency: e
|
|
1383
|
+
}).format(n);
|
|
1384
1384
|
} catch {
|
|
1385
1385
|
}
|
|
1386
|
-
return
|
|
1386
|
+
return a;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
const
|
|
1389
|
+
const Ot = (t) => o(
|
|
1390
1390
|
"div",
|
|
1391
1391
|
{ class: "data-transaction" },
|
|
1392
|
-
o("p", null,
|
|
1392
|
+
o("p", null, t.productType),
|
|
1393
1393
|
o(
|
|
1394
1394
|
"p",
|
|
1395
1395
|
{ class: "text-style text-style-status" },
|
|
1396
|
-
o("span", { class:
|
|
1396
|
+
o("span", { class: t.status.toLowerCase() }, t.status)
|
|
1397
1397
|
),
|
|
1398
1398
|
o(
|
|
1399
1399
|
"p",
|
|
1400
1400
|
{ class: "date" },
|
|
1401
|
-
|
|
1401
|
+
t.transId,
|
|
1402
1402
|
" | ",
|
|
1403
|
-
K.dateToFormatedString(new Date(
|
|
1403
|
+
K.dateToFormatedString(new Date(t.created), t.dateformat)
|
|
1404
1404
|
),
|
|
1405
1405
|
o(
|
|
1406
1406
|
"p",
|
|
1407
1407
|
{ class: "text-style" },
|
|
1408
|
-
Z.format(
|
|
1408
|
+
Z.format(t.currency, t.realAmount),
|
|
1409
1409
|
" "
|
|
1410
1410
|
)
|
|
1411
|
-
),
|
|
1411
|
+
), Ut = (t) => o(
|
|
1412
1412
|
"div",
|
|
1413
1413
|
{ class: "page-size" },
|
|
1414
|
-
o("span", null, l.translate("show",
|
|
1415
|
-
|
|
1416
|
-
),
|
|
1414
|
+
o("span", null, l.translate("show", t.language)),
|
|
1415
|
+
t.pageSizes.map((e) => o("button", { class: t.currentPageSize === e ? "active" : "", onClick: () => t.changePageSize(e) }, e))
|
|
1416
|
+
), Wt = ({ from: t, to: e, applyFilters: n, language: a }) => {
|
|
1417
1417
|
let r, i;
|
|
1418
1418
|
const s = () => {
|
|
1419
|
-
|
|
1419
|
+
t = r.value;
|
|
1420
1420
|
}, d = () => {
|
|
1421
|
-
|
|
1421
|
+
e = i.value;
|
|
1422
1422
|
};
|
|
1423
1423
|
return o(
|
|
1424
1424
|
"div",
|
|
@@ -1429,7 +1429,7 @@ const Oe = (e) => o(
|
|
|
1429
1429
|
o(
|
|
1430
1430
|
"div",
|
|
1431
1431
|
{ class: "date-input" },
|
|
1432
|
-
o("vaadin-date-picker", { value:
|
|
1432
|
+
o("vaadin-date-picker", { value: t, ref: (c) => r = c, label: l.translate("from", a), onChange: s })
|
|
1433
1433
|
),
|
|
1434
1434
|
o(
|
|
1435
1435
|
"span",
|
|
@@ -1443,23 +1443,23 @@ const Oe = (e) => o(
|
|
|
1443
1443
|
o(
|
|
1444
1444
|
"div",
|
|
1445
1445
|
{ class: "date-input" },
|
|
1446
|
-
o("vaadin-date-picker", { value:
|
|
1446
|
+
o("vaadin-date-picker", { value: e, ref: (c) => i = c, label: l.translate("to", a), onChange: d })
|
|
1447
1447
|
),
|
|
1448
|
-
o("button", { class: "filter-btn", onClick: () =>
|
|
1448
|
+
o("button", { class: "filter-btn", onClick: () => n(t, e) }, l.translate("filter", a))
|
|
1449
1449
|
)
|
|
1450
1450
|
);
|
|
1451
|
-
},
|
|
1452
|
-
const
|
|
1453
|
-
{ name: l.translate("transactionId",
|
|
1451
|
+
}, Ft = ({ source: t, language: e, dateformat: n }) => {
|
|
1452
|
+
const a = [
|
|
1453
|
+
{ name: l.translate("transactionId", e) },
|
|
1454
1454
|
{
|
|
1455
|
-
name: l.translate("date",
|
|
1455
|
+
name: l.translate("date", e)
|
|
1456
1456
|
},
|
|
1457
1457
|
{
|
|
1458
|
-
name: l.translate("amount",
|
|
1458
|
+
name: l.translate("amount", e)
|
|
1459
1459
|
},
|
|
1460
|
-
{ name: l.translate("productType",
|
|
1460
|
+
{ name: l.translate("productType", e) },
|
|
1461
1461
|
{
|
|
1462
|
-
name: l.translate("status",
|
|
1462
|
+
name: l.translate("status", e)
|
|
1463
1463
|
}
|
|
1464
1464
|
];
|
|
1465
1465
|
return o(
|
|
@@ -1468,13 +1468,13 @@ const Oe = (e) => o(
|
|
|
1468
1468
|
o(
|
|
1469
1469
|
"thead",
|
|
1470
1470
|
null,
|
|
1471
|
-
o("tr", null,
|
|
1471
|
+
o("tr", null, a.map((r) => o("th", null, r.name)))
|
|
1472
1472
|
),
|
|
1473
|
-
o("tbody", null,
|
|
1473
|
+
o("tbody", null, t.map((r) => o(
|
|
1474
1474
|
"tr",
|
|
1475
1475
|
null,
|
|
1476
1476
|
o("td", null, r.transId),
|
|
1477
|
-
o("td", null, K.dateToFormatedString(new Date(r.created),
|
|
1477
|
+
o("td", null, K.dateToFormatedString(new Date(r.created), n)),
|
|
1478
1478
|
o(
|
|
1479
1479
|
"td",
|
|
1480
1480
|
null,
|
|
@@ -1490,80 +1490,80 @@ const Oe = (e) => o(
|
|
|
1490
1490
|
)))
|
|
1491
1491
|
);
|
|
1492
1492
|
};
|
|
1493
|
-
function Q(
|
|
1494
|
-
if (
|
|
1495
|
-
const
|
|
1496
|
-
|
|
1493
|
+
function Q(t, e) {
|
|
1494
|
+
if (t) {
|
|
1495
|
+
const n = document.createElement("style");
|
|
1496
|
+
n.innerHTML = e, t.appendChild(n);
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
function X(
|
|
1500
|
-
const
|
|
1501
|
-
fetch(
|
|
1499
|
+
function X(t, e) {
|
|
1500
|
+
const n = new URL(e);
|
|
1501
|
+
fetch(n.href).then((a) => a.text()).then((a) => {
|
|
1502
1502
|
const r = document.createElement("style");
|
|
1503
|
-
r.innerHTML =
|
|
1504
|
-
}).catch((
|
|
1505
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
1503
|
+
r.innerHTML = a, t && t.appendChild(r);
|
|
1504
|
+
}).catch((a) => {
|
|
1505
|
+
console.error("There was an error while trying to load client styling from URL", a);
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function Et(t, e, n) {
|
|
1509
1509
|
if (window.emMessageBus) {
|
|
1510
|
-
const
|
|
1511
|
-
window.emMessageBus.subscribe(
|
|
1512
|
-
|
|
1510
|
+
const a = document.createElement("style");
|
|
1511
|
+
window.emMessageBus.subscribe(e, (r) => {
|
|
1512
|
+
a.innerHTML = r, t && t.appendChild(a);
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
const
|
|
1517
|
-
constructor(
|
|
1518
|
-
|
|
1516
|
+
const Yt = ':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))}', _t = Yt, Lt = class {
|
|
1517
|
+
constructor(t) {
|
|
1518
|
+
oe(this, t), this.pageSizes = [10, 25, 50], this.pagination = null, this.toggleScreen = () => {
|
|
1519
1519
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.mobile }, window.location.href);
|
|
1520
1520
|
}, this.endpoint = void 0, this.session = void 0, this.language = l.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;
|
|
1521
1521
|
}
|
|
1522
1522
|
watchMultiple() {
|
|
1523
1523
|
this.loadTransactions();
|
|
1524
1524
|
}
|
|
1525
|
-
handleClientStylingChange(
|
|
1526
|
-
|
|
1525
|
+
handleClientStylingChange(t, e) {
|
|
1526
|
+
t != e && Q(this.stylingContainer, this.clientStyling);
|
|
1527
1527
|
}
|
|
1528
|
-
handleClientStylingUrlChange(
|
|
1529
|
-
|
|
1528
|
+
handleClientStylingUrlChange(t, e) {
|
|
1529
|
+
t != e && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
|
|
1530
1530
|
}
|
|
1531
1531
|
async componentWillLoad() {
|
|
1532
1532
|
this.translationUrl && await l.loadCustomTranslations(this.translationUrl), this.loadTransactions();
|
|
1533
1533
|
}
|
|
1534
1534
|
componentDidLoad() {
|
|
1535
|
-
this.stylingContainer && (window.emMessageBus != null ?
|
|
1535
|
+
this.stylingContainer && (window.emMessageBus != null ? Et(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && Q(this.stylingContainer, this.clientStyling), this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl)));
|
|
1536
1536
|
}
|
|
1537
1537
|
componentDidRender() {
|
|
1538
1538
|
this.getComponentHeight();
|
|
1539
1539
|
}
|
|
1540
1540
|
getComponentHeight() {
|
|
1541
|
-
var
|
|
1541
|
+
var t;
|
|
1542
1542
|
if (this.mobile) {
|
|
1543
|
-
let
|
|
1544
|
-
this.el.style.setProperty("--heightScrollableContainer",
|
|
1543
|
+
let e = this.el.getBoundingClientRect().height - ((t = this.el.shadowRoot.querySelector(".table")) === null || t === void 0 ? void 0 : t.getBoundingClientRect().y);
|
|
1544
|
+
this.el.style.setProperty("--heightScrollableContainer", e + "px");
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
1547
|
setHeightTableProperty() {
|
|
1548
|
-
let
|
|
1549
|
-
this.el.style.setProperty("--heightScrollableContainer",
|
|
1548
|
+
let t = this.getComponentHeight();
|
|
1549
|
+
this.el.style.setProperty("--heightScrollableContainer", t + "px");
|
|
1550
1550
|
}
|
|
1551
|
-
changeTransactionsType(
|
|
1552
|
-
this.type =
|
|
1551
|
+
changeTransactionsType(t) {
|
|
1552
|
+
this.type = t;
|
|
1553
1553
|
}
|
|
1554
|
-
changePageSize(
|
|
1555
|
-
this.pageSize =
|
|
1554
|
+
changePageSize(t) {
|
|
1555
|
+
this.pageSize = t;
|
|
1556
1556
|
}
|
|
1557
1557
|
prev() {
|
|
1558
|
-
var
|
|
1559
|
-
!((
|
|
1558
|
+
var t;
|
|
1559
|
+
!((t = this.pagination) === null || t === void 0) && t.previous && this.page--;
|
|
1560
1560
|
}
|
|
1561
1561
|
next() {
|
|
1562
|
-
var
|
|
1563
|
-
!((
|
|
1562
|
+
var t;
|
|
1563
|
+
!((t = this.pagination) === null || t === void 0) && t.next && this.page++;
|
|
1564
1564
|
}
|
|
1565
|
-
applyFilters(
|
|
1566
|
-
this.from =
|
|
1565
|
+
applyFilters(t, e) {
|
|
1566
|
+
this.from = t ? new Date(t).toISOString() : null, this.to = e ? new Date(e).toISOString() : null, this.loadTransactions();
|
|
1567
1567
|
}
|
|
1568
1568
|
showFilter() {
|
|
1569
1569
|
this.showMobileFilter = !this.showMobileFilter;
|
|
@@ -1572,41 +1572,41 @@ const Ye = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--
|
|
|
1572
1572
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
1573
1573
|
}
|
|
1574
1574
|
render() {
|
|
1575
|
-
var
|
|
1576
|
-
const
|
|
1577
|
-
return o(
|
|
1575
|
+
var t;
|
|
1576
|
+
const e = R("../assets/filter.svg"), n = R("../assets/warning.svg");
|
|
1577
|
+
return o(se, { key: "2c1d74e9d321eb73796caa26b58faa1b130d1da1" }, this.showLoader ? o(fe, null) : "", o("div", { key: "a33973c114c4baa184a3699d46e8eb970f3b9dcc", class: "wrapper", ref: (a) => this.stylingContainer = a }, this.mobile ? o("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, o("defs", null), o("g", { transform: "translate(-20 -158)" }, o("g", { transform: "translate(20 158)" }, o("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)" })))), o("h2", { class: "TransactionTitleMobile" }, l.translate("transactionTitle", this.language))) : o("h2", { class: "TransactionTitle" }, l.translate("transactionTitle", this.language)), o("div", { key: "2609cf88acf3364e4b40510d451ed49eface97e6", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, o("button", { key: "7efdac157edfb5dc08f4219b91cf784ac6961d0c", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, l.translate("deposit", this.language)), o("button", { key: "eaf33173f0e6d6271724816400f63f571874906a", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, l.translate("withdrawals", this.language))), this.mobile ? "" : o(Ut, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (a) => this.changePageSize(a) }), this.mobile ? o("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, o("img", { src: e, alt: "Filter" }), l.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? o(Wt, { language: this.language, applyFilters: (a, r) => this.applyFilters(a, r) }) : "", ((t = this.transactions) === null || t === void 0 ? void 0 : t.length) > 0 ? o("div", { class: "table" }, this.mobile ? o("div", { class: "mobile-table" }, this.transactions.map((a) => o(Ot, Object.assign({}, a, { dateformat: this.dateFormat })))) : o(Ft, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : o("div", { class: "noData" }, o("img", { src: n, alt: "Warning" }), o("span", null, l.translate("noData", this.language))), o("div", { key: "c8b5f7a1cac64df3fb7879ad020379b81672b8ae", class: "pagination" }, o("button", { key: "ac06e5c8c62367626b2c72c8d5ee552cefafd3fa", onClick: () => this.prev() }, "<"), o("button", { key: "bff70f58f1815d8da93fa8e5b2b541893a4f475c", onClick: () => this.next() }, ">"))));
|
|
1578
1578
|
}
|
|
1579
1579
|
async loadTransactions() {
|
|
1580
1580
|
this.showLoader = !0;
|
|
1581
1581
|
try {
|
|
1582
|
-
const
|
|
1582
|
+
const t = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, e = await fetch(t, {
|
|
1583
1583
|
headers: {
|
|
1584
1584
|
"X-Sessionid": this.session,
|
|
1585
1585
|
"Content-Type": "application/json"
|
|
1586
1586
|
}
|
|
1587
1587
|
});
|
|
1588
|
-
if (!
|
|
1589
|
-
const
|
|
1590
|
-
throw new Error(
|
|
1588
|
+
if (!e.ok) {
|
|
1589
|
+
const a = await e.text();
|
|
1590
|
+
throw new Error(a);
|
|
1591
1591
|
}
|
|
1592
|
-
const
|
|
1593
|
-
this.pagination =
|
|
1594
|
-
} catch (
|
|
1595
|
-
console.error(
|
|
1592
|
+
const n = await e.json();
|
|
1593
|
+
this.pagination = n.pagination, this.transactions = n.transactions;
|
|
1594
|
+
} catch (t) {
|
|
1595
|
+
console.error(t);
|
|
1596
1596
|
} finally {
|
|
1597
1597
|
this.showLoader = !1;
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
1600
|
getParams() {
|
|
1601
|
-
var
|
|
1602
|
-
const
|
|
1603
|
-
return `offset=${
|
|
1601
|
+
var t, e;
|
|
1602
|
+
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();
|
|
1603
|
+
return `offset=${a}&endDate=${i}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`;
|
|
1604
1604
|
}
|
|
1605
1605
|
static get assetsDirs() {
|
|
1606
1606
|
return ["../assets"];
|
|
1607
1607
|
}
|
|
1608
1608
|
get el() {
|
|
1609
|
-
return
|
|
1609
|
+
return le(this);
|
|
1610
1610
|
}
|
|
1611
1611
|
static get watchers() {
|
|
1612
1612
|
return {
|
|
@@ -1621,7 +1621,7 @@ const Ye = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--
|
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
};
|
|
1624
|
-
|
|
1624
|
+
Lt.style = _t;
|
|
1625
1625
|
export {
|
|
1626
|
-
|
|
1626
|
+
Lt as user_transaction_history
|
|
1627
1627
|
};
|