@everymatrix/player-account-controller-nd 1.74.10 → 1.76.0
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-C-KQBmk3.js → GeneralLogout-BKUfd8BJ.js} +1432 -1397
- package/components/GeneralLogout-CuvnoUn1.cjs +21 -0
- package/components/{GeneralLogout-C52-PhwD.js → GeneralLogout-oSYhP-Iy.js} +1427 -1392
- package/components/{PlayerAccountBettingHistory-5QM3bGgT.js → PlayerAccountBettingHistory-BgDQMawM.js} +27 -27
- package/components/{PlayerAccountBettingHistory-B91V20F2.js → PlayerAccountBettingHistory-BlbdV8eE.js} +27 -27
- package/components/{PlayerAccountBettingHistory-CE023VGz.cjs → PlayerAccountBettingHistory-Cb9zY2cj.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DPdT285K.cjs → PlayerAccountBiometrics-CSSQNl0K.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-C5FFOJ5V.js → PlayerAccountBiometrics-DG8PwDTf.js} +22 -22
- package/components/{PlayerAccountBiometrics-DuvDCmjx.js → PlayerAccountBiometrics-wy6pz2CT.js} +22 -22
- package/components/{PlayerAccountClosureNd-BEMKT7IM.js → PlayerAccountClosureNd-BMxbB-XD.js} +17 -17
- package/components/{PlayerAccountClosureNd-CYHq0859.js → PlayerAccountClosureNd-Cp7kk_QC.js} +17 -17
- package/components/{PlayerAccountClosureNd-CMzRAP8U.cjs → PlayerAccountClosureNd-zBlQJ0Iy.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-CkMeFrTH.js → PlayerAccountControllerNd-BH0Tl-CD.js} +1681 -1651
- package/components/PlayerAccountControllerNd-CbRH9XCC.cjs +1 -0
- package/components/{PlayerAccountControllerNd-DVnO4_Om.js → PlayerAccountControllerNd-D1EDxbdY.js} +1673 -1643
- package/components/{PlayerAccountGamingLimits-B2vzRems.cjs → PlayerAccountGamingLimits-BPVpte4c.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-B7ppWJQ6.js → PlayerAccountGamingLimits-BgxS4Frr.js} +19 -19
- package/components/{PlayerAccountGamingLimits-DMS9a3TN.js → PlayerAccountGamingLimits-DxJATH5L.js} +19 -19
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Crt7TSIB.js → PlayerAccountGamingLimitsConfirmationModal-CFwNex1C.js} +53 -53
- package/components/PlayerAccountGamingLimitsConfirmationModal-CTub7J3N.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-rkO4-ifF.js → PlayerAccountGamingLimitsConfirmationModal-CvyHjYBX.js} +53 -53
- package/components/{PlayerAccountGamingLimitsGroupEdit-CDRqETAd.js → PlayerAccountGamingLimitsGroupEdit-8LGyrjL0.js} +1079 -1081
- package/components/{PlayerAccountGamingLimitsGroupEdit-B-MqO4BJ.js → PlayerAccountGamingLimitsGroupEdit-KwKmUGcw.js} +1079 -1081
- package/components/PlayerAccountGamingLimitsGroupEdit-gUkWnHwu.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C5ysmYyV.js → PlayerAccountGamingLimitsHistory2Nd-BgG_Z2P-.js} +78 -78
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CG8WJl-W.cjs → PlayerAccountGamingLimitsHistory2Nd-CIrBCUa0.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C85Ls9oF.js → PlayerAccountGamingLimitsHistory2Nd-DwvRmspa.js} +78 -78
- package/components/{PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs → PlayerAccountGamingLimitsInfoCard-B1-rS3C8.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BYwQnhb5.js → PlayerAccountGamingLimitsInfoCard-C5NKAWiQ.js} +80 -80
- package/components/{PlayerAccountGamingLimitsInfoCard-DjnVkaho.js → PlayerAccountGamingLimitsInfoCard-CSDRi3f-.js} +80 -80
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Cd8mrrqZ.js → PlayerAccountGamingLimitsPage2Gm16Nd-BDJgXEpR.js} +1566 -1430
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-D49LpMFm.cjs +35 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-oZxq2GPD.js → PlayerAccountGamingLimitsPage2Gm16Nd-DnFd7nlp.js} +1700 -1475
- package/components/{PlayerAccountGamingLimitsPopup-D16rhs4n.cjs → PlayerAccountGamingLimitsPopup-B9mkm7cd.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-1ObhRFHn.js → PlayerAccountGamingLimitsPopup-DCN31S-r.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPopup-lZ7y_RVP.js → PlayerAccountGamingLimitsPopup-DrJTQvtg.js} +28 -28
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DVmSDv2F.js → PlayerAccountGamingLimitsWrapper2Nd--Nqc89AN.js} +364 -344
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-g_R5EsPn.cjs → PlayerAccountGamingLimitsWrapper2Nd-BdaNHLXM.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-iMEe46CC.js → PlayerAccountGamingLimitsWrapper2Nd-CIt5e_ly.js} +277 -257
- package/components/{PlayerAccountGeneralConfirmationModal-Bgat7eVE.js → PlayerAccountGeneralConfirmationModal-BVL5axI_.js} +68 -68
- package/components/{PlayerAccountGeneralConfirmationModal-DrgjMSLh.js → PlayerAccountGeneralConfirmationModal-DiAHffly.js} +68 -68
- package/components/PlayerAccountGeneralConfirmationModal-OYut1Lou.cjs +1 -0
- package/components/{PlayerAccountMenuNd-alDPH0d2.js → PlayerAccountMenuNd-Bu9ZxduC.js} +29 -29
- package/components/{PlayerAccountMenuNd-Yk5u12tl.cjs → PlayerAccountMenuNd-CizaV1PR.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-V9EOIgPS.js → PlayerAccountMenuNd-CrAZDSaS.js} +29 -29
- package/components/{PlayerAccountModal-DvJ0OsPC.cjs → PlayerAccountModal-CzspHDhO.cjs} +1 -1
- package/components/{PlayerAccountModal-9FK6eAt0.js → PlayerAccountModal-DAf18_Du.js} +25 -25
- package/components/{PlayerAccountModal-DCsw7iyn.js → PlayerAccountModal-YdQXeL8A.js} +25 -25
- package/components/{PlayerAccountNotifications-BVfKQdMA.js → PlayerAccountNotifications-5zu1lBMx.js} +36 -36
- package/components/{PlayerAccountNotifications-CdPeCghS.cjs → PlayerAccountNotifications-CGmkTd-y.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BzEDVvTZ.js → PlayerAccountNotifications-vIvTXRgY.js} +35 -35
- package/components/{PlayerAccountProductRestriction-EAWMHqK4.js → PlayerAccountProductRestriction-3WFIGanw.js} +9491 -4421
- package/components/{PlayerAccountProductRestriction-DmWDaeEI.js → PlayerAccountProductRestriction-BF0h_niF.js} +9467 -4397
- package/components/PlayerAccountProductRestriction-HFCCxFxz.cjs +7968 -0
- package/components/{PlayerAccountSelfExclusionNd-BI74DoLY.js → PlayerAccountSelfExclusionNd-B6_H7e_L.js} +1203 -1205
- package/components/{PlayerAccountSelfExclusionNd-BLr1N-Bv.cjs → PlayerAccountSelfExclusionNd-BA-E3Lvv.cjs} +155 -155
- package/components/{PlayerAccountSelfExclusionNd-CiB251y6.js → PlayerAccountSelfExclusionNd-InV94SVo.js} +897 -899
- package/components/{PlayerAccountTimeout-BlJS9laL.js → PlayerAccountTimeout-DmPZQyO-.js} +103 -103
- package/components/{PlayerAccountTimeout-U0kgxhKU.cjs → PlayerAccountTimeout-GCPC9dEy.cjs} +1 -1
- package/components/{PlayerAccountTimeout-GP0WHuhG.js → PlayerAccountTimeout-udrChYVf.js} +103 -103
- package/components/{PlayerAccountTransactionsHistory-D5lotPR-.js → PlayerAccountTransactionsHistory-CUS4pXR6.js} +84 -84
- package/components/{PlayerAccountTransactionsHistory-hyaqdne0.js → PlayerAccountTransactionsHistory-Dyi6niL1.js} +84 -84
- package/components/{PlayerAccountTransactionsHistory-BxNwks5H.cjs → PlayerAccountTransactionsHistory-dCbPHNH7.cjs} +1 -1
- package/components/{PlayerActiveBonuses-zLuqH4eW.js → PlayerActiveBonuses-6D2NramZ.js} +48 -48
- package/components/{PlayerActiveBonuses-D4OBnwNa.js → PlayerActiveBonuses-CAXKzlCB.js} +54 -54
- package/components/{PlayerActiveBonuses-Me5Q3o65.cjs → PlayerActiveBonuses-_NK812L8.cjs} +1 -1
- package/components/{PlayerBonusCard-BbRQx8Gg.js → PlayerBonusCard-Bq3pVRnf.js} +81 -81
- package/components/{PlayerBonusCard-DgyhSYBs.cjs → PlayerBonusCard-C6zYcpN6.cjs} +1 -1
- package/components/{PlayerBonusCard-BhW_g3sH.js → PlayerBonusCard-DPmKzmhw.js} +81 -81
- package/components/{PlayerBonusHistory-BmeRyaDK.cjs → PlayerBonusHistory-DLt5HM6L.cjs} +1 -1
- package/components/{PlayerBonusHistory-C_uP6nBB.js → PlayerBonusHistory-DVECoGyb.js} +30 -30
- package/components/{PlayerBonusHistory-BxbtWY0l.js → PlayerBonusHistory-DoGyKJvZ.js} +30 -30
- package/components/{PlayerChangePasswordNd-DWsHRVAH.js → PlayerChangePasswordNd-BJdk4OhW.js} +71 -71
- package/components/{PlayerChangePasswordNd-DSIi_04v.cjs → PlayerChangePasswordNd-BgLvdsST.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-DUzbCK4p.js → PlayerChangePasswordNd-CTV_CCcj.js} +71 -71
- package/components/{PlayerDeposit-CmBFg6tX.cjs → PlayerDeposit-BsyYS9xx.cjs} +1 -1
- package/components/{PlayerDeposit-BeGgsgNu.js → PlayerDeposit-D5ykTYYS.js} +29 -29
- package/components/{PlayerDeposit-CI5GIyAe.js → PlayerDeposit-syo0F-Bg.js} +29 -29
- package/components/{PlayerGamingHistory-F3yi70Vu.cjs → PlayerGamingHistory-8Bo-uc3o.cjs} +1 -1
- package/components/{PlayerGamingHistory-DEgVt4st.js → PlayerGamingHistory-Bz7t6as2.js} +102 -102
- package/components/{PlayerGamingHistory-BJQKapHg.js → PlayerGamingHistory-wceTj5YX.js} +82 -82
- package/components/{PlayerPendingWithdrawals-BL4JTLkC.js → PlayerPendingWithdrawals-C0wYmh2S.js} +26 -26
- package/components/{PlayerPendingWithdrawals-D-KWiMH6.cjs → PlayerPendingWithdrawals-Dvq9lK8F.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-o6_OjL5C.js → PlayerPendingWithdrawals-i7OozfVP.js} +26 -26
- package/components/{PlayerProfileInfo-D0A3aRV_.js → PlayerProfileInfo-C8O_EaxV.js} +158 -158
- package/components/{PlayerProfileInfo-CwZQ79SV.cjs → PlayerProfileInfo-CYPlnEWJ.cjs} +1 -1
- package/components/{PlayerProfileInfo-xRMbiw1T.js → PlayerProfileInfo-ClOk9nzX.js} +146 -146
- package/components/{PlayerRealityCheck-BEiZhn6p.js → PlayerRealityCheck-BIebwdRX.js} +45 -45
- package/components/{PlayerRealityCheck-JdOGHDG6.cjs → PlayerRealityCheck-BynMsi1X.cjs} +1 -1
- package/components/{PlayerRealityCheck-CYU_NrFB.js → PlayerRealityCheck-Cjp4DHJi.js} +44 -44
- package/components/{PlayerTransactionHistory-Hz2IWD73.cjs → PlayerTransactionHistory-BU4_vLyx.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BS1LjP09.js → PlayerTransactionHistory-DjQdwT5r.js} +19 -19
- package/components/{PlayerTransactionHistory-DdbQZ6mw.js → PlayerTransactionHistory-NAh_DclU.js} +19 -19
- package/components/{PlayerWithdrawal-DGN4Y9QP.js → PlayerWithdrawal-CIKlBfKQ.js} +19 -19
- package/components/{PlayerWithdrawal-P_0MIA-u.cjs → PlayerWithdrawal-CkSCfQ4A.cjs} +1 -1
- package/components/{PlayerWithdrawal-DOec04Iq.js → PlayerWithdrawal-DrYfLVwI.js} +19 -19
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/checkbox-group-input_15-4Hs1gM1f.cjs +8212 -0
- package/stencil/{checkbox-group-input_15-7ljokaYC.js → checkbox-group-input_15-C9RSqwNE.js} +9427 -4355
- package/stencil/{checkbox-group-input_15-BzU_0jJ_.js → checkbox-group-input_15-COZrprO3.js} +9424 -4352
- package/stencil/index-13661b98-8hgREsxq.cjs +1 -0
- package/stencil/{index-13661b98-Cty_Ct2m.js → index-13661b98-BGWA5lR-.js} +207 -207
- package/stencil/{index-13661b98-BJM2hHx6.js → index-13661b98-C1LBo8p_.js} +215 -215
- package/stencil/index-1ef3a64c-DR7bpfUj.cjs +1 -0
- package/stencil/{index-1ef3a64c-DuKSFSN8.js → index-1ef3a64c-HE2lDlEL.js} +192 -192
- package/stencil/{index-1ef3a64c-DQk1yZfC.js → index-1ef3a64c-zEGNB-u8.js} +185 -185
- package/stencil/index-6e523641-C-aWDr56.js +627 -0
- package/stencil/index-6e523641-CIqESSFm.js +654 -0
- package/stencil/index-6e523641-D-RFKZXR.cjs +1 -0
- package/stencil/{index-9c0f6c58-GCIFeGLp.js → index-9c0f6c58-CWsaYxOT.js} +176 -176
- package/stencil/index-9c0f6c58-Cv5Mos03.cjs +1 -0
- package/stencil/{index-9c0f6c58-Ucwc3Jk1.js → index-9c0f6c58-ntq_iYNK.js} +180 -180
- package/stencil/index-b2193545-DQUvHUpa.cjs +1 -0
- package/stencil/index-b2193545-DoYU_tL8.js +503 -0
- package/stencil/index-b2193545-_I2wisuY.js +519 -0
- package/stencil/pam-change-password-CgN62FEK.js +25 -0
- package/stencil/pam-change-password-Ck1Dqung.js +7 -0
- package/stencil/{pam-change-password-af5033a0-BfWHc1Rw.js → pam-change-password-c578e291-ApXrRZhk.js} +59 -59
- package/stencil/{pam-change-password-af5033a0-C18GwNdS.cjs → pam-change-password-c578e291-CObxKeQj.cjs} +2 -2
- package/stencil/{pam-change-password-af5033a0-DYGjeRTR.js → pam-change-password-c578e291-DjiJJQNq.js} +59 -59
- package/stencil/pam-change-password-q-zLWG5h.cjs +1 -0
- package/stencil/{player-kyc-verification-D10m225z.cjs → player-kyc-verification-BOxNJ6x_.cjs} +1 -1
- package/stencil/{player-kyc-verification-Wsswi9br.js → player-kyc-verification-jOo_qPpq.js} +1 -1
- package/stencil/{player-kyc-verification-B9ZaCq1K.js → player-kyc-verification-sZ9OAQ8Z.js} +1 -1
- package/stencil/{ui-skeleton-2XsWxl4S.js → ui-skeleton-C_FDz0NJ.js} +2 -2
- package/stencil/{ui-skeleton-Cbqo0oYF.cjs → ui-skeleton-GEqIXVxo.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-OnzqIAY0.js → ui-skeleton-ae35c6f2-BreM325l.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-B4ncHe9g.cjs → ui-skeleton-ae35c6f2-CeNpgiKf.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8s3Rqu1P.js → ui-skeleton-ae35c6f2-e6Wte4qi.js} +1 -1
- package/stencil/{ui-skeleton-LneRlsD3.js → ui-skeleton-mkMdvWYI.js} +2 -2
- package/stencil/{user-deposit-withdrawal-BP58nPO1.cjs → user-deposit-withdrawal-BuFBx-hr.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-DcVKAa80.js → user-deposit-withdrawal-Cr0-V-2c.js} +45 -45
- package/stencil/{user-deposit-withdrawal-CSakhNt1.js → user-deposit-withdrawal-DdJYJeX1.js} +45 -45
- package/stencil/user-transaction-history-ChQcZwtX.js +25 -0
- package/stencil/user-transaction-history-D4WBmCh8.cjs +1 -0
- package/stencil/user-transaction-history-Dla0Do5o.js +7 -0
- package/stencil/user-transaction-history_2-B1al0Y-h.js +3533 -0
- package/stencil/user-transaction-history_2-DznYNRIL.js +3555 -0
- package/stencil/user-transaction-history_2-bMxqSwYs.cjs +2 -0
- package/components/GeneralLogout-COm1JcKW.cjs +0 -21
- package/components/PlayerAccountControllerNd-BLPNyTdD.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs +0 -2
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-BMYVxNF1.cjs +0 -35
- package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +0 -1
- package/components/PlayerAccountProductRestriction-BJ0LFpLp.cjs +0 -6061
- package/stencil/checkbox-group-input_15-Fs7-YN7u.cjs +0 -6305
- package/stencil/index-13661b98-DuhNdmHd.cjs +0 -1
- package/stencil/index-1ef3a64c-DD-PHh2g.cjs +0 -1
- package/stencil/index-7c5e707a-B54Yjxc3.js +0 -616
- package/stencil/index-7c5e707a-BHFN5Fx4.js +0 -643
- package/stencil/index-7c5e707a-CFlTnjRT.cjs +0 -1
- package/stencil/index-9c0f6c58-8Ks3y9ln.cjs +0 -1
- package/stencil/index-b2193545-BMFR9-V2.cjs +0 -1
- package/stencil/index-b2193545-DPKCFIaU.js +0 -503
- package/stencil/index-b2193545-LzjWxki5.js +0 -519
- package/stencil/pam-change-password-Bdu7Bk_h.js +0 -25
- package/stencil/pam-change-password-DSAfkY23.js +0 -7
- package/stencil/pam-change-password-mcRyjsPo.cjs +0 -1
- package/stencil/user-transaction-history-BrBScppC.js +0 -1651
- package/stencil/user-transaction-history-D0jBcRwe.js +0 -1627
- package/stencil/user-transaction-history-HA_tfHfo.cjs +0 -1
|
@@ -1,1627 +0,0 @@
|
|
|
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
|
-
};
|
|
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
|
-
en: {
|
|
10
|
-
deposit: "Deposit",
|
|
11
|
-
withdrawals: "Withdrawals",
|
|
12
|
-
show: "Show",
|
|
13
|
-
from: "From",
|
|
14
|
-
to: "To",
|
|
15
|
-
filter: "Filter",
|
|
16
|
-
transactionId: "Transaction ID",
|
|
17
|
-
date: "Date",
|
|
18
|
-
amount: "Amount",
|
|
19
|
-
productType: "Product Type",
|
|
20
|
-
status: "Status",
|
|
21
|
-
noData: "There are no account activities",
|
|
22
|
-
transactionTitle: "Transaction History"
|
|
23
|
-
},
|
|
24
|
-
hr: {
|
|
25
|
-
deposit: "Uplate",
|
|
26
|
-
withdrawals: "Isplate",
|
|
27
|
-
show: "Prikaži",
|
|
28
|
-
from: "Od",
|
|
29
|
-
to: "Do",
|
|
30
|
-
filter: "Filter",
|
|
31
|
-
transactionId: "ID transakcije",
|
|
32
|
-
date: "Datum",
|
|
33
|
-
amount: "Iznos",
|
|
34
|
-
productType: "Vrsta proizvoda",
|
|
35
|
-
status: "Status",
|
|
36
|
-
noData: "Nema aktivnosti na računu",
|
|
37
|
-
transactionTitle: "Povijest transakcija"
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
class l {
|
|
41
|
-
constructor() {
|
|
42
|
-
}
|
|
43
|
-
static async loadCustomTranslations(e) {
|
|
44
|
-
try {
|
|
45
|
-
const n = await fetch(e, {
|
|
46
|
-
headers: {
|
|
47
|
-
"Content-Type": "application/json"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
if (!n.ok) {
|
|
51
|
-
const r = await n.text();
|
|
52
|
-
throw new Error(r);
|
|
53
|
-
}
|
|
54
|
-
const a = await n.json();
|
|
55
|
-
l.updateTranslations(a);
|
|
56
|
-
} catch (n) {
|
|
57
|
-
console.error(`Failed to load translations ${e}. ${n.message}`);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
73
|
-
}
|
|
74
|
-
l.defaultLanguage = "en";
|
|
75
|
-
l.supportedLanguages = ["en"];
|
|
76
|
-
l.defaultTranslation = ce;
|
|
77
|
-
const fe = () => o(
|
|
78
|
-
"div",
|
|
79
|
-
{ class: "loader" },
|
|
80
|
-
o("div", null),
|
|
81
|
-
o("div", null),
|
|
82
|
-
o("div", null),
|
|
83
|
-
o("div", null),
|
|
84
|
-
o("div", null),
|
|
85
|
-
o("div", null),
|
|
86
|
-
o("div", null),
|
|
87
|
-
o("div", null),
|
|
88
|
-
o("div", null),
|
|
89
|
-
o("div", null),
|
|
90
|
-
o("div", null),
|
|
91
|
-
o("div", null)
|
|
92
|
-
);
|
|
93
|
-
function Y(t) {
|
|
94
|
-
"@babel/helpers - typeof";
|
|
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
|
-
}
|
|
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
|
-
}
|
|
105
|
-
function he(t) {
|
|
106
|
-
return p(1, arguments), t instanceof Date || Y(t) === "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
107
|
-
}
|
|
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
|
-
}
|
|
113
|
-
function me(t) {
|
|
114
|
-
if (p(1, arguments), !he(t) && typeof t != "number")
|
|
115
|
-
return !1;
|
|
116
|
-
var e = y(t);
|
|
117
|
-
return !isNaN(Number(e));
|
|
118
|
-
}
|
|
119
|
-
function k(t) {
|
|
120
|
-
if (t === null || t === !0 || t === !1)
|
|
121
|
-
return NaN;
|
|
122
|
-
var e = Number(t);
|
|
123
|
-
return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
124
|
-
}
|
|
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
|
-
}
|
|
130
|
-
function pe(t, e) {
|
|
131
|
-
p(2, arguments);
|
|
132
|
-
var n = k(e);
|
|
133
|
-
return ge(t, -n);
|
|
134
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
var s = _(i);
|
|
155
|
-
return e.getTime() >= r.getTime() ? n + 1 : e.getTime() >= s.getTime() ? n : n - 1;
|
|
156
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
170
|
-
var Te = {};
|
|
171
|
-
function B() {
|
|
172
|
-
return Te;
|
|
173
|
-
}
|
|
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
|
-
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
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
|
-
}
|
|
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
|
-
if (!(g >= 1 && g <= 7))
|
|
188
|
-
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
189
|
-
var w = /* @__PURE__ */ new Date(0);
|
|
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
|
-
}
|
|
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
|
-
return w;
|
|
203
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
215
|
-
var Me = {
|
|
216
|
-
// Year
|
|
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
|
-
},
|
|
221
|
-
// Month
|
|
222
|
-
M: function(e, n) {
|
|
223
|
-
var a = e.getUTCMonth();
|
|
224
|
-
return n === "M" ? String(a + 1) : u(a + 1, 2);
|
|
225
|
-
},
|
|
226
|
-
// Day of the month
|
|
227
|
-
d: function(e, n) {
|
|
228
|
-
return u(e.getUTCDate(), n.length);
|
|
229
|
-
},
|
|
230
|
-
// AM or PM
|
|
231
|
-
a: function(e, n) {
|
|
232
|
-
var a = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
233
|
-
switch (n) {
|
|
234
|
-
case "a":
|
|
235
|
-
case "aa":
|
|
236
|
-
return a.toUpperCase();
|
|
237
|
-
case "aaa":
|
|
238
|
-
return a;
|
|
239
|
-
case "aaaaa":
|
|
240
|
-
return a[0];
|
|
241
|
-
case "aaaa":
|
|
242
|
-
default:
|
|
243
|
-
return a === "am" ? "a.m." : "p.m.";
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
// Hour [1-12]
|
|
247
|
-
h: function(e, n) {
|
|
248
|
-
return u(e.getUTCHours() % 12 || 12, n.length);
|
|
249
|
-
},
|
|
250
|
-
// Hour [0-23]
|
|
251
|
-
H: function(e, n) {
|
|
252
|
-
return u(e.getUTCHours(), n.length);
|
|
253
|
-
},
|
|
254
|
-
// Minute
|
|
255
|
-
m: function(e, n) {
|
|
256
|
-
return u(e.getUTCMinutes(), n.length);
|
|
257
|
-
},
|
|
258
|
-
// Second
|
|
259
|
-
s: function(e, n) {
|
|
260
|
-
return u(e.getUTCSeconds(), n.length);
|
|
261
|
-
},
|
|
262
|
-
// Fraction of second
|
|
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
|
-
}
|
|
267
|
-
};
|
|
268
|
-
const T = Me;
|
|
269
|
-
var M = {
|
|
270
|
-
am: "am",
|
|
271
|
-
pm: "pm",
|
|
272
|
-
midnight: "midnight",
|
|
273
|
-
noon: "noon",
|
|
274
|
-
morning: "morning",
|
|
275
|
-
afternoon: "afternoon",
|
|
276
|
-
evening: "evening",
|
|
277
|
-
night: "night"
|
|
278
|
-
}, De = {
|
|
279
|
-
// Era
|
|
280
|
-
G: function(e, n, a) {
|
|
281
|
-
var r = e.getUTCFullYear() > 0 ? 1 : 0;
|
|
282
|
-
switch (n) {
|
|
283
|
-
case "G":
|
|
284
|
-
case "GG":
|
|
285
|
-
case "GGG":
|
|
286
|
-
return a.era(r, {
|
|
287
|
-
width: "abbreviated"
|
|
288
|
-
});
|
|
289
|
-
case "GGGGG":
|
|
290
|
-
return a.era(r, {
|
|
291
|
-
width: "narrow"
|
|
292
|
-
});
|
|
293
|
-
case "GGGG":
|
|
294
|
-
default:
|
|
295
|
-
return a.era(r, {
|
|
296
|
-
width: "wide"
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
// Year
|
|
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
|
-
unit: "year"
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
return T.y(e, n);
|
|
309
|
-
},
|
|
310
|
-
// Local week-numbering year
|
|
311
|
-
Y: function(e, n, a, r) {
|
|
312
|
-
var i = V(e, r), s = i > 0 ? i : 1 - i;
|
|
313
|
-
if (n === "YY") {
|
|
314
|
-
var d = s % 100;
|
|
315
|
-
return u(d, 2);
|
|
316
|
-
}
|
|
317
|
-
return n === "Yo" ? a.ordinalNumber(s, {
|
|
318
|
-
unit: "year"
|
|
319
|
-
}) : u(s, n.length);
|
|
320
|
-
},
|
|
321
|
-
// ISO week-numbering year
|
|
322
|
-
R: function(e, n) {
|
|
323
|
-
var a = G(e);
|
|
324
|
-
return u(a, n.length);
|
|
325
|
-
},
|
|
326
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
327
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
328
|
-
// | Year | `y` | `u` |
|
|
329
|
-
// |------|-----|-----|
|
|
330
|
-
// | AC 1 | 1 | 1 |
|
|
331
|
-
// | BC 1 | 1 | 0 |
|
|
332
|
-
// | BC 2 | 2 | -1 |
|
|
333
|
-
// Also `yy` always returns the last two digits of a year,
|
|
334
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
335
|
-
u: function(e, n) {
|
|
336
|
-
var a = e.getUTCFullYear();
|
|
337
|
-
return u(a, n.length);
|
|
338
|
-
},
|
|
339
|
-
// Quarter
|
|
340
|
-
Q: function(e, n, a) {
|
|
341
|
-
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
|
|
342
|
-
switch (n) {
|
|
343
|
-
case "Q":
|
|
344
|
-
return String(r);
|
|
345
|
-
case "QQ":
|
|
346
|
-
return u(r, 2);
|
|
347
|
-
case "Qo":
|
|
348
|
-
return a.ordinalNumber(r, {
|
|
349
|
-
unit: "quarter"
|
|
350
|
-
});
|
|
351
|
-
case "QQQ":
|
|
352
|
-
return a.quarter(r, {
|
|
353
|
-
width: "abbreviated",
|
|
354
|
-
context: "formatting"
|
|
355
|
-
});
|
|
356
|
-
case "QQQQQ":
|
|
357
|
-
return a.quarter(r, {
|
|
358
|
-
width: "narrow",
|
|
359
|
-
context: "formatting"
|
|
360
|
-
});
|
|
361
|
-
case "QQQQ":
|
|
362
|
-
default:
|
|
363
|
-
return a.quarter(r, {
|
|
364
|
-
width: "wide",
|
|
365
|
-
context: "formatting"
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
// Stand-alone quarter
|
|
370
|
-
q: function(e, n, a) {
|
|
371
|
-
var r = Math.ceil((e.getUTCMonth() + 1) / 3);
|
|
372
|
-
switch (n) {
|
|
373
|
-
case "q":
|
|
374
|
-
return String(r);
|
|
375
|
-
case "qq":
|
|
376
|
-
return u(r, 2);
|
|
377
|
-
case "qo":
|
|
378
|
-
return a.ordinalNumber(r, {
|
|
379
|
-
unit: "quarter"
|
|
380
|
-
});
|
|
381
|
-
case "qqq":
|
|
382
|
-
return a.quarter(r, {
|
|
383
|
-
width: "abbreviated",
|
|
384
|
-
context: "standalone"
|
|
385
|
-
});
|
|
386
|
-
case "qqqqq":
|
|
387
|
-
return a.quarter(r, {
|
|
388
|
-
width: "narrow",
|
|
389
|
-
context: "standalone"
|
|
390
|
-
});
|
|
391
|
-
case "qqqq":
|
|
392
|
-
default:
|
|
393
|
-
return a.quarter(r, {
|
|
394
|
-
width: "wide",
|
|
395
|
-
context: "standalone"
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
// Month
|
|
400
|
-
M: function(e, n, a) {
|
|
401
|
-
var r = e.getUTCMonth();
|
|
402
|
-
switch (n) {
|
|
403
|
-
case "M":
|
|
404
|
-
case "MM":
|
|
405
|
-
return T.M(e, n);
|
|
406
|
-
case "Mo":
|
|
407
|
-
return a.ordinalNumber(r + 1, {
|
|
408
|
-
unit: "month"
|
|
409
|
-
});
|
|
410
|
-
case "MMM":
|
|
411
|
-
return a.month(r, {
|
|
412
|
-
width: "abbreviated",
|
|
413
|
-
context: "formatting"
|
|
414
|
-
});
|
|
415
|
-
case "MMMMM":
|
|
416
|
-
return a.month(r, {
|
|
417
|
-
width: "narrow",
|
|
418
|
-
context: "formatting"
|
|
419
|
-
});
|
|
420
|
-
case "MMMM":
|
|
421
|
-
default:
|
|
422
|
-
return a.month(r, {
|
|
423
|
-
width: "wide",
|
|
424
|
-
context: "formatting"
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
// Stand-alone month
|
|
429
|
-
L: function(e, n, a) {
|
|
430
|
-
var r = e.getUTCMonth();
|
|
431
|
-
switch (n) {
|
|
432
|
-
case "L":
|
|
433
|
-
return String(r + 1);
|
|
434
|
-
case "LL":
|
|
435
|
-
return u(r + 1, 2);
|
|
436
|
-
case "Lo":
|
|
437
|
-
return a.ordinalNumber(r + 1, {
|
|
438
|
-
unit: "month"
|
|
439
|
-
});
|
|
440
|
-
case "LLL":
|
|
441
|
-
return a.month(r, {
|
|
442
|
-
width: "abbreviated",
|
|
443
|
-
context: "standalone"
|
|
444
|
-
});
|
|
445
|
-
case "LLLLL":
|
|
446
|
-
return a.month(r, {
|
|
447
|
-
width: "narrow",
|
|
448
|
-
context: "standalone"
|
|
449
|
-
});
|
|
450
|
-
case "LLLL":
|
|
451
|
-
default:
|
|
452
|
-
return a.month(r, {
|
|
453
|
-
width: "wide",
|
|
454
|
-
context: "standalone"
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
},
|
|
458
|
-
// Local week of year
|
|
459
|
-
w: function(e, n, a, r) {
|
|
460
|
-
var i = ke(e, r);
|
|
461
|
-
return n === "wo" ? a.ordinalNumber(i, {
|
|
462
|
-
unit: "week"
|
|
463
|
-
}) : u(i, n.length);
|
|
464
|
-
},
|
|
465
|
-
// ISO week of year
|
|
466
|
-
I: function(e, n, a) {
|
|
467
|
-
var r = xe(e);
|
|
468
|
-
return n === "Io" ? a.ordinalNumber(r, {
|
|
469
|
-
unit: "week"
|
|
470
|
-
}) : u(r, n.length);
|
|
471
|
-
},
|
|
472
|
-
// Day of the month
|
|
473
|
-
d: function(e, n, a) {
|
|
474
|
-
return n === "do" ? a.ordinalNumber(e.getUTCDate(), {
|
|
475
|
-
unit: "date"
|
|
476
|
-
}) : T.d(e, n);
|
|
477
|
-
},
|
|
478
|
-
// Day of year
|
|
479
|
-
D: function(e, n, a) {
|
|
480
|
-
var r = be(e);
|
|
481
|
-
return n === "Do" ? a.ordinalNumber(r, {
|
|
482
|
-
unit: "dayOfYear"
|
|
483
|
-
}) : u(r, n.length);
|
|
484
|
-
},
|
|
485
|
-
// Day of week
|
|
486
|
-
E: function(e, n, a) {
|
|
487
|
-
var r = e.getUTCDay();
|
|
488
|
-
switch (n) {
|
|
489
|
-
case "E":
|
|
490
|
-
case "EE":
|
|
491
|
-
case "EEE":
|
|
492
|
-
return a.day(r, {
|
|
493
|
-
width: "abbreviated",
|
|
494
|
-
context: "formatting"
|
|
495
|
-
});
|
|
496
|
-
case "EEEEE":
|
|
497
|
-
return a.day(r, {
|
|
498
|
-
width: "narrow",
|
|
499
|
-
context: "formatting"
|
|
500
|
-
});
|
|
501
|
-
case "EEEEEE":
|
|
502
|
-
return a.day(r, {
|
|
503
|
-
width: "short",
|
|
504
|
-
context: "formatting"
|
|
505
|
-
});
|
|
506
|
-
case "EEEE":
|
|
507
|
-
default:
|
|
508
|
-
return a.day(r, {
|
|
509
|
-
width: "wide",
|
|
510
|
-
context: "formatting"
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
// Local day of week
|
|
515
|
-
e: function(e, n, a, r) {
|
|
516
|
-
var i = e.getUTCDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
517
|
-
switch (n) {
|
|
518
|
-
case "e":
|
|
519
|
-
return String(s);
|
|
520
|
-
case "ee":
|
|
521
|
-
return u(s, 2);
|
|
522
|
-
case "eo":
|
|
523
|
-
return a.ordinalNumber(s, {
|
|
524
|
-
unit: "day"
|
|
525
|
-
});
|
|
526
|
-
case "eee":
|
|
527
|
-
return a.day(i, {
|
|
528
|
-
width: "abbreviated",
|
|
529
|
-
context: "formatting"
|
|
530
|
-
});
|
|
531
|
-
case "eeeee":
|
|
532
|
-
return a.day(i, {
|
|
533
|
-
width: "narrow",
|
|
534
|
-
context: "formatting"
|
|
535
|
-
});
|
|
536
|
-
case "eeeeee":
|
|
537
|
-
return a.day(i, {
|
|
538
|
-
width: "short",
|
|
539
|
-
context: "formatting"
|
|
540
|
-
});
|
|
541
|
-
case "eeee":
|
|
542
|
-
default:
|
|
543
|
-
return a.day(i, {
|
|
544
|
-
width: "wide",
|
|
545
|
-
context: "formatting"
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
// Stand-alone local day of week
|
|
550
|
-
c: function(e, n, a, r) {
|
|
551
|
-
var i = e.getUTCDay(), s = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
552
|
-
switch (n) {
|
|
553
|
-
case "c":
|
|
554
|
-
return String(s);
|
|
555
|
-
case "cc":
|
|
556
|
-
return u(s, n.length);
|
|
557
|
-
case "co":
|
|
558
|
-
return a.ordinalNumber(s, {
|
|
559
|
-
unit: "day"
|
|
560
|
-
});
|
|
561
|
-
case "ccc":
|
|
562
|
-
return a.day(i, {
|
|
563
|
-
width: "abbreviated",
|
|
564
|
-
context: "standalone"
|
|
565
|
-
});
|
|
566
|
-
case "ccccc":
|
|
567
|
-
return a.day(i, {
|
|
568
|
-
width: "narrow",
|
|
569
|
-
context: "standalone"
|
|
570
|
-
});
|
|
571
|
-
case "cccccc":
|
|
572
|
-
return a.day(i, {
|
|
573
|
-
width: "short",
|
|
574
|
-
context: "standalone"
|
|
575
|
-
});
|
|
576
|
-
case "cccc":
|
|
577
|
-
default:
|
|
578
|
-
return a.day(i, {
|
|
579
|
-
width: "wide",
|
|
580
|
-
context: "standalone"
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
},
|
|
584
|
-
// ISO day of week
|
|
585
|
-
i: function(e, n, a) {
|
|
586
|
-
var r = e.getUTCDay(), i = r === 0 ? 7 : r;
|
|
587
|
-
switch (n) {
|
|
588
|
-
case "i":
|
|
589
|
-
return String(i);
|
|
590
|
-
case "ii":
|
|
591
|
-
return u(i, n.length);
|
|
592
|
-
case "io":
|
|
593
|
-
return a.ordinalNumber(i, {
|
|
594
|
-
unit: "day"
|
|
595
|
-
});
|
|
596
|
-
case "iii":
|
|
597
|
-
return a.day(r, {
|
|
598
|
-
width: "abbreviated",
|
|
599
|
-
context: "formatting"
|
|
600
|
-
});
|
|
601
|
-
case "iiiii":
|
|
602
|
-
return a.day(r, {
|
|
603
|
-
width: "narrow",
|
|
604
|
-
context: "formatting"
|
|
605
|
-
});
|
|
606
|
-
case "iiiiii":
|
|
607
|
-
return a.day(r, {
|
|
608
|
-
width: "short",
|
|
609
|
-
context: "formatting"
|
|
610
|
-
});
|
|
611
|
-
case "iiii":
|
|
612
|
-
default:
|
|
613
|
-
return a.day(r, {
|
|
614
|
-
width: "wide",
|
|
615
|
-
context: "formatting"
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
},
|
|
619
|
-
// AM or PM
|
|
620
|
-
a: function(e, n, a) {
|
|
621
|
-
var r = e.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
|
|
622
|
-
switch (n) {
|
|
623
|
-
case "a":
|
|
624
|
-
case "aa":
|
|
625
|
-
return a.dayPeriod(i, {
|
|
626
|
-
width: "abbreviated",
|
|
627
|
-
context: "formatting"
|
|
628
|
-
});
|
|
629
|
-
case "aaa":
|
|
630
|
-
return a.dayPeriod(i, {
|
|
631
|
-
width: "abbreviated",
|
|
632
|
-
context: "formatting"
|
|
633
|
-
}).toLowerCase();
|
|
634
|
-
case "aaaaa":
|
|
635
|
-
return a.dayPeriod(i, {
|
|
636
|
-
width: "narrow",
|
|
637
|
-
context: "formatting"
|
|
638
|
-
});
|
|
639
|
-
case "aaaa":
|
|
640
|
-
default:
|
|
641
|
-
return a.dayPeriod(i, {
|
|
642
|
-
width: "wide",
|
|
643
|
-
context: "formatting"
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
// AM, PM, midnight, noon
|
|
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
|
-
case "b":
|
|
652
|
-
case "bb":
|
|
653
|
-
return a.dayPeriod(i, {
|
|
654
|
-
width: "abbreviated",
|
|
655
|
-
context: "formatting"
|
|
656
|
-
});
|
|
657
|
-
case "bbb":
|
|
658
|
-
return a.dayPeriod(i, {
|
|
659
|
-
width: "abbreviated",
|
|
660
|
-
context: "formatting"
|
|
661
|
-
}).toLowerCase();
|
|
662
|
-
case "bbbbb":
|
|
663
|
-
return a.dayPeriod(i, {
|
|
664
|
-
width: "narrow",
|
|
665
|
-
context: "formatting"
|
|
666
|
-
});
|
|
667
|
-
case "bbbb":
|
|
668
|
-
default:
|
|
669
|
-
return a.dayPeriod(i, {
|
|
670
|
-
width: "wide",
|
|
671
|
-
context: "formatting"
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
// in the morning, in the afternoon, in the evening, at 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
|
-
case "B":
|
|
680
|
-
case "BB":
|
|
681
|
-
case "BBB":
|
|
682
|
-
return a.dayPeriod(i, {
|
|
683
|
-
width: "abbreviated",
|
|
684
|
-
context: "formatting"
|
|
685
|
-
});
|
|
686
|
-
case "BBBBB":
|
|
687
|
-
return a.dayPeriod(i, {
|
|
688
|
-
width: "narrow",
|
|
689
|
-
context: "formatting"
|
|
690
|
-
});
|
|
691
|
-
case "BBBB":
|
|
692
|
-
default:
|
|
693
|
-
return a.dayPeriod(i, {
|
|
694
|
-
width: "wide",
|
|
695
|
-
context: "formatting"
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
// Hour [1-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
|
-
unit: "hour"
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
return T.h(e, n);
|
|
708
|
-
},
|
|
709
|
-
// Hour [0-23]
|
|
710
|
-
H: function(e, n, a) {
|
|
711
|
-
return n === "Ho" ? a.ordinalNumber(e.getUTCHours(), {
|
|
712
|
-
unit: "hour"
|
|
713
|
-
}) : T.H(e, n);
|
|
714
|
-
},
|
|
715
|
-
// Hour [0-11]
|
|
716
|
-
K: function(e, n, a) {
|
|
717
|
-
var r = e.getUTCHours() % 12;
|
|
718
|
-
return n === "Ko" ? a.ordinalNumber(r, {
|
|
719
|
-
unit: "hour"
|
|
720
|
-
}) : u(r, n.length);
|
|
721
|
-
},
|
|
722
|
-
// Hour [1-24]
|
|
723
|
-
k: function(e, n, a) {
|
|
724
|
-
var r = e.getUTCHours();
|
|
725
|
-
return r === 0 && (r = 24), n === "ko" ? a.ordinalNumber(r, {
|
|
726
|
-
unit: "hour"
|
|
727
|
-
}) : u(r, n.length);
|
|
728
|
-
},
|
|
729
|
-
// Minute
|
|
730
|
-
m: function(e, n, a) {
|
|
731
|
-
return n === "mo" ? a.ordinalNumber(e.getUTCMinutes(), {
|
|
732
|
-
unit: "minute"
|
|
733
|
-
}) : T.m(e, n);
|
|
734
|
-
},
|
|
735
|
-
// Second
|
|
736
|
-
s: function(e, n, a) {
|
|
737
|
-
return n === "so" ? a.ordinalNumber(e.getUTCSeconds(), {
|
|
738
|
-
unit: "second"
|
|
739
|
-
}) : T.s(e, n);
|
|
740
|
-
},
|
|
741
|
-
// Fraction of second
|
|
742
|
-
S: function(e, n) {
|
|
743
|
-
return T.S(e, n);
|
|
744
|
-
},
|
|
745
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
746
|
-
X: function(e, n, a, r) {
|
|
747
|
-
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
748
|
-
if (s === 0)
|
|
749
|
-
return "Z";
|
|
750
|
-
switch (n) {
|
|
751
|
-
case "X":
|
|
752
|
-
return j(s);
|
|
753
|
-
case "XXXX":
|
|
754
|
-
case "XX":
|
|
755
|
-
return S(s);
|
|
756
|
-
case "XXXXX":
|
|
757
|
-
case "XXX":
|
|
758
|
-
default:
|
|
759
|
-
return S(s, ":");
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
763
|
-
x: function(e, n, a, r) {
|
|
764
|
-
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
765
|
-
switch (n) {
|
|
766
|
-
case "x":
|
|
767
|
-
return j(s);
|
|
768
|
-
case "xxxx":
|
|
769
|
-
case "xx":
|
|
770
|
-
return S(s);
|
|
771
|
-
case "xxxxx":
|
|
772
|
-
case "xxx":
|
|
773
|
-
default:
|
|
774
|
-
return S(s, ":");
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
// Timezone (GMT)
|
|
778
|
-
O: function(e, n, a, r) {
|
|
779
|
-
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
780
|
-
switch (n) {
|
|
781
|
-
case "O":
|
|
782
|
-
case "OO":
|
|
783
|
-
case "OOO":
|
|
784
|
-
return "GMT" + q(s, ":");
|
|
785
|
-
case "OOOO":
|
|
786
|
-
default:
|
|
787
|
-
return "GMT" + S(s, ":");
|
|
788
|
-
}
|
|
789
|
-
},
|
|
790
|
-
// Timezone (specific non-location)
|
|
791
|
-
z: function(e, n, a, r) {
|
|
792
|
-
var i = r._originalDate || e, s = i.getTimezoneOffset();
|
|
793
|
-
switch (n) {
|
|
794
|
-
case "z":
|
|
795
|
-
case "zz":
|
|
796
|
-
case "zzz":
|
|
797
|
-
return "GMT" + q(s, ":");
|
|
798
|
-
case "zzzz":
|
|
799
|
-
default:
|
|
800
|
-
return "GMT" + S(s, ":");
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
// Seconds timestamp
|
|
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
|
-
},
|
|
808
|
-
// Milliseconds timestamp
|
|
809
|
-
T: function(e, n, a, r) {
|
|
810
|
-
var i = r._originalDate || e, s = i.getTime();
|
|
811
|
-
return u(s, n.length);
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
|
-
function q(t, e) {
|
|
815
|
-
var n = t > 0 ? "-" : "+", a = Math.abs(t), r = Math.floor(a / 60), i = a % 60;
|
|
816
|
-
if (i === 0)
|
|
817
|
-
return n + String(r);
|
|
818
|
-
var s = e;
|
|
819
|
-
return n + String(r) + s + u(i, 2);
|
|
820
|
-
}
|
|
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
|
-
}
|
|
826
|
-
return S(t, e);
|
|
827
|
-
}
|
|
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
|
-
}
|
|
832
|
-
const Pe = De;
|
|
833
|
-
var z = function(e, n) {
|
|
834
|
-
switch (e) {
|
|
835
|
-
case "P":
|
|
836
|
-
return n.date({
|
|
837
|
-
width: "short"
|
|
838
|
-
});
|
|
839
|
-
case "PP":
|
|
840
|
-
return n.date({
|
|
841
|
-
width: "medium"
|
|
842
|
-
});
|
|
843
|
-
case "PPP":
|
|
844
|
-
return n.date({
|
|
845
|
-
width: "long"
|
|
846
|
-
});
|
|
847
|
-
case "PPPP":
|
|
848
|
-
default:
|
|
849
|
-
return n.date({
|
|
850
|
-
width: "full"
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
}, J = function(e, n) {
|
|
854
|
-
switch (e) {
|
|
855
|
-
case "p":
|
|
856
|
-
return n.time({
|
|
857
|
-
width: "short"
|
|
858
|
-
});
|
|
859
|
-
case "pp":
|
|
860
|
-
return n.time({
|
|
861
|
-
width: "medium"
|
|
862
|
-
});
|
|
863
|
-
case "ppp":
|
|
864
|
-
return n.time({
|
|
865
|
-
width: "long"
|
|
866
|
-
});
|
|
867
|
-
case "pppp":
|
|
868
|
-
default:
|
|
869
|
-
return n.time({
|
|
870
|
-
width: "full"
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
}, Oe = function(e, n) {
|
|
874
|
-
var a = e.match(/(P+)(p+)?/) || [], r = a[1], i = a[2];
|
|
875
|
-
if (!i)
|
|
876
|
-
return z(e, n);
|
|
877
|
-
var s;
|
|
878
|
-
switch (r) {
|
|
879
|
-
case "P":
|
|
880
|
-
s = n.dateTime({
|
|
881
|
-
width: "short"
|
|
882
|
-
});
|
|
883
|
-
break;
|
|
884
|
-
case "PP":
|
|
885
|
-
s = n.dateTime({
|
|
886
|
-
width: "medium"
|
|
887
|
-
});
|
|
888
|
-
break;
|
|
889
|
-
case "PPP":
|
|
890
|
-
s = n.dateTime({
|
|
891
|
-
width: "long"
|
|
892
|
-
});
|
|
893
|
-
break;
|
|
894
|
-
case "PPPP":
|
|
895
|
-
default:
|
|
896
|
-
s = n.dateTime({
|
|
897
|
-
width: "full"
|
|
898
|
-
});
|
|
899
|
-
break;
|
|
900
|
-
}
|
|
901
|
-
return s.replace("{{date}}", z(r, n)).replace("{{time}}", J(i, n));
|
|
902
|
-
}, Ue = {
|
|
903
|
-
p: J,
|
|
904
|
-
P: Oe
|
|
905
|
-
};
|
|
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
|
-
}
|
|
911
|
-
var Ee = ["D", "DD"], Ye = ["YY", "YYYY"];
|
|
912
|
-
function _e(t) {
|
|
913
|
-
return Ee.indexOf(t) !== -1;
|
|
914
|
-
}
|
|
915
|
-
function Le(t) {
|
|
916
|
-
return Ye.indexOf(t) !== -1;
|
|
917
|
-
}
|
|
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
|
-
}
|
|
928
|
-
var Be = {
|
|
929
|
-
lessThanXSeconds: {
|
|
930
|
-
one: "less than a second",
|
|
931
|
-
other: "less than {{count}} seconds"
|
|
932
|
-
},
|
|
933
|
-
xSeconds: {
|
|
934
|
-
one: "1 second",
|
|
935
|
-
other: "{{count}} seconds"
|
|
936
|
-
},
|
|
937
|
-
halfAMinute: "half a minute",
|
|
938
|
-
lessThanXMinutes: {
|
|
939
|
-
one: "less than a minute",
|
|
940
|
-
other: "less than {{count}} minutes"
|
|
941
|
-
},
|
|
942
|
-
xMinutes: {
|
|
943
|
-
one: "1 minute",
|
|
944
|
-
other: "{{count}} minutes"
|
|
945
|
-
},
|
|
946
|
-
aboutXHours: {
|
|
947
|
-
one: "about 1 hour",
|
|
948
|
-
other: "about {{count}} hours"
|
|
949
|
-
},
|
|
950
|
-
xHours: {
|
|
951
|
-
one: "1 hour",
|
|
952
|
-
other: "{{count}} hours"
|
|
953
|
-
},
|
|
954
|
-
xDays: {
|
|
955
|
-
one: "1 day",
|
|
956
|
-
other: "{{count}} days"
|
|
957
|
-
},
|
|
958
|
-
aboutXWeeks: {
|
|
959
|
-
one: "about 1 week",
|
|
960
|
-
other: "about {{count}} weeks"
|
|
961
|
-
},
|
|
962
|
-
xWeeks: {
|
|
963
|
-
one: "1 week",
|
|
964
|
-
other: "{{count}} weeks"
|
|
965
|
-
},
|
|
966
|
-
aboutXMonths: {
|
|
967
|
-
one: "about 1 month",
|
|
968
|
-
other: "about {{count}} months"
|
|
969
|
-
},
|
|
970
|
-
xMonths: {
|
|
971
|
-
one: "1 month",
|
|
972
|
-
other: "{{count}} months"
|
|
973
|
-
},
|
|
974
|
-
aboutXYears: {
|
|
975
|
-
one: "about 1 year",
|
|
976
|
-
other: "about {{count}} years"
|
|
977
|
-
},
|
|
978
|
-
xYears: {
|
|
979
|
-
one: "1 year",
|
|
980
|
-
other: "{{count}} years"
|
|
981
|
-
},
|
|
982
|
-
overXYears: {
|
|
983
|
-
one: "over 1 year",
|
|
984
|
-
other: "over {{count}} years"
|
|
985
|
-
},
|
|
986
|
-
almostXYears: {
|
|
987
|
-
one: "almost 1 year",
|
|
988
|
-
other: "almost {{count}} years"
|
|
989
|
-
}
|
|
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
|
-
};
|
|
994
|
-
const Ne = $e;
|
|
995
|
-
function I(t) {
|
|
996
|
-
return function() {
|
|
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
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
var He = {
|
|
1002
|
-
full: "EEEE, MMMM do, y",
|
|
1003
|
-
long: "MMMM do, y",
|
|
1004
|
-
medium: "MMM d, y",
|
|
1005
|
-
short: "MM/dd/yyyy"
|
|
1006
|
-
}, Ie = {
|
|
1007
|
-
full: "h:mm:ss a zzzz",
|
|
1008
|
-
long: "h:mm:ss a z",
|
|
1009
|
-
medium: "h:mm:ss a",
|
|
1010
|
-
short: "h:mm a"
|
|
1011
|
-
}, Re = {
|
|
1012
|
-
full: "{{date}} 'at' {{time}}",
|
|
1013
|
-
long: "{{date}} 'at' {{time}}",
|
|
1014
|
-
medium: "{{date}}, {{time}}",
|
|
1015
|
-
short: "{{date}}, {{time}}"
|
|
1016
|
-
}, qe = {
|
|
1017
|
-
date: I({
|
|
1018
|
-
formats: He,
|
|
1019
|
-
defaultWidth: "full"
|
|
1020
|
-
}),
|
|
1021
|
-
time: I({
|
|
1022
|
-
formats: Ie,
|
|
1023
|
-
defaultWidth: "full"
|
|
1024
|
-
}),
|
|
1025
|
-
dateTime: I({
|
|
1026
|
-
formats: Re,
|
|
1027
|
-
defaultWidth: "full"
|
|
1028
|
-
})
|
|
1029
|
-
};
|
|
1030
|
-
const je = qe;
|
|
1031
|
-
var ze = {
|
|
1032
|
-
lastWeek: "'last' eeee 'at' p",
|
|
1033
|
-
yesterday: "'yesterday at' p",
|
|
1034
|
-
today: "'today at' p",
|
|
1035
|
-
tomorrow: "'tomorrow at' p",
|
|
1036
|
-
nextWeek: "eeee 'at' p",
|
|
1037
|
-
other: "P"
|
|
1038
|
-
}, Ae = function(e, n, a, r) {
|
|
1039
|
-
return ze[e];
|
|
1040
|
-
};
|
|
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
|
-
} else {
|
|
1049
|
-
var d = t.defaultWidth, c = n != null && n.width ? String(n.width) : t.defaultWidth;
|
|
1050
|
-
r = t.values[c] || t.values[d];
|
|
1051
|
-
}
|
|
1052
|
-
var f = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
1053
|
-
return r[f];
|
|
1054
|
-
};
|
|
1055
|
-
}
|
|
1056
|
-
var Xe = {
|
|
1057
|
-
narrow: ["B", "A"],
|
|
1058
|
-
abbreviated: ["BC", "AD"],
|
|
1059
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
1060
|
-
}, Ge = {
|
|
1061
|
-
narrow: ["1", "2", "3", "4"],
|
|
1062
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1063
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1064
|
-
}, Ve = {
|
|
1065
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1066
|
-
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1067
|
-
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
1068
|
-
}, Je = {
|
|
1069
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1070
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1071
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1072
|
-
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1073
|
-
}, Ke = {
|
|
1074
|
-
narrow: {
|
|
1075
|
-
am: "a",
|
|
1076
|
-
pm: "p",
|
|
1077
|
-
midnight: "mi",
|
|
1078
|
-
noon: "n",
|
|
1079
|
-
morning: "morning",
|
|
1080
|
-
afternoon: "afternoon",
|
|
1081
|
-
evening: "evening",
|
|
1082
|
-
night: "night"
|
|
1083
|
-
},
|
|
1084
|
-
abbreviated: {
|
|
1085
|
-
am: "AM",
|
|
1086
|
-
pm: "PM",
|
|
1087
|
-
midnight: "midnight",
|
|
1088
|
-
noon: "noon",
|
|
1089
|
-
morning: "morning",
|
|
1090
|
-
afternoon: "afternoon",
|
|
1091
|
-
evening: "evening",
|
|
1092
|
-
night: "night"
|
|
1093
|
-
},
|
|
1094
|
-
wide: {
|
|
1095
|
-
am: "a.m.",
|
|
1096
|
-
pm: "p.m.",
|
|
1097
|
-
midnight: "midnight",
|
|
1098
|
-
noon: "noon",
|
|
1099
|
-
morning: "morning",
|
|
1100
|
-
afternoon: "afternoon",
|
|
1101
|
-
evening: "evening",
|
|
1102
|
-
night: "night"
|
|
1103
|
-
}
|
|
1104
|
-
}, Ze = {
|
|
1105
|
-
narrow: {
|
|
1106
|
-
am: "a",
|
|
1107
|
-
pm: "p",
|
|
1108
|
-
midnight: "mi",
|
|
1109
|
-
noon: "n",
|
|
1110
|
-
morning: "in the morning",
|
|
1111
|
-
afternoon: "in the afternoon",
|
|
1112
|
-
evening: "in the evening",
|
|
1113
|
-
night: "at night"
|
|
1114
|
-
},
|
|
1115
|
-
abbreviated: {
|
|
1116
|
-
am: "AM",
|
|
1117
|
-
pm: "PM",
|
|
1118
|
-
midnight: "midnight",
|
|
1119
|
-
noon: "noon",
|
|
1120
|
-
morning: "in the morning",
|
|
1121
|
-
afternoon: "in the afternoon",
|
|
1122
|
-
evening: "in the evening",
|
|
1123
|
-
night: "at night"
|
|
1124
|
-
},
|
|
1125
|
-
wide: {
|
|
1126
|
-
am: "a.m.",
|
|
1127
|
-
pm: "p.m.",
|
|
1128
|
-
midnight: "midnight",
|
|
1129
|
-
noon: "noon",
|
|
1130
|
-
morning: "in the morning",
|
|
1131
|
-
afternoon: "in the afternoon",
|
|
1132
|
-
evening: "in the evening",
|
|
1133
|
-
night: "at night"
|
|
1134
|
-
}
|
|
1135
|
-
}, et = function(e, n) {
|
|
1136
|
-
var a = Number(e), r = a % 100;
|
|
1137
|
-
if (r > 20 || r < 10)
|
|
1138
|
-
switch (r % 10) {
|
|
1139
|
-
case 1:
|
|
1140
|
-
return a + "st";
|
|
1141
|
-
case 2:
|
|
1142
|
-
return a + "nd";
|
|
1143
|
-
case 3:
|
|
1144
|
-
return a + "rd";
|
|
1145
|
-
}
|
|
1146
|
-
return a + "th";
|
|
1147
|
-
}, tt = {
|
|
1148
|
-
ordinalNumber: et,
|
|
1149
|
-
era: U({
|
|
1150
|
-
values: Xe,
|
|
1151
|
-
defaultWidth: "wide"
|
|
1152
|
-
}),
|
|
1153
|
-
quarter: U({
|
|
1154
|
-
values: Ge,
|
|
1155
|
-
defaultWidth: "wide",
|
|
1156
|
-
argumentCallback: function(e) {
|
|
1157
|
-
return e - 1;
|
|
1158
|
-
}
|
|
1159
|
-
}),
|
|
1160
|
-
month: U({
|
|
1161
|
-
values: Ve,
|
|
1162
|
-
defaultWidth: "wide"
|
|
1163
|
-
}),
|
|
1164
|
-
day: U({
|
|
1165
|
-
values: Je,
|
|
1166
|
-
defaultWidth: "wide"
|
|
1167
|
-
}),
|
|
1168
|
-
dayPeriod: U({
|
|
1169
|
-
values: Ke,
|
|
1170
|
-
defaultWidth: "wide",
|
|
1171
|
-
formattingValues: Ze,
|
|
1172
|
-
defaultFormattingWidth: "wide"
|
|
1173
|
-
})
|
|
1174
|
-
};
|
|
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
|
-
if (!i)
|
|
1180
|
-
return null;
|
|
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
|
-
return {
|
|
1189
|
-
value: f,
|
|
1190
|
-
rest: m
|
|
1191
|
-
};
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
function at(t, e) {
|
|
1195
|
-
for (var n in t)
|
|
1196
|
-
if (t.hasOwnProperty(n) && e(t[n]))
|
|
1197
|
-
return n;
|
|
1198
|
-
}
|
|
1199
|
-
function rt(t, e) {
|
|
1200
|
-
for (var n = 0; n < t.length; n++)
|
|
1201
|
-
if (e(t[n]))
|
|
1202
|
-
return n;
|
|
1203
|
-
}
|
|
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
|
-
return null;
|
|
1209
|
-
var r = a[0], i = e.match(t.parsePattern);
|
|
1210
|
-
if (!i)
|
|
1211
|
-
return null;
|
|
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
|
-
return {
|
|
1216
|
-
value: s,
|
|
1217
|
-
rest: d
|
|
1218
|
-
};
|
|
1219
|
-
};
|
|
1220
|
-
}
|
|
1221
|
-
var ot = /^(\d+)(th|st|nd|rd)?/i, st = /\d+/i, lt = {
|
|
1222
|
-
narrow: /^(b|a)/i,
|
|
1223
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1224
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1225
|
-
}, ut = {
|
|
1226
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1227
|
-
}, dt = {
|
|
1228
|
-
narrow: /^[1234]/i,
|
|
1229
|
-
abbreviated: /^q[1234]/i,
|
|
1230
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1231
|
-
}, ct = {
|
|
1232
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1233
|
-
}, ft = {
|
|
1234
|
-
narrow: /^[jfmasond]/i,
|
|
1235
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1236
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1237
|
-
}, ht = {
|
|
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
|
-
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
|
-
}, mt = {
|
|
1241
|
-
narrow: /^[smtwf]/i,
|
|
1242
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1243
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1244
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1245
|
-
}, gt = {
|
|
1246
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1247
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1248
|
-
}, pt = {
|
|
1249
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1250
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1251
|
-
}, vt = {
|
|
1252
|
-
any: {
|
|
1253
|
-
am: /^a/i,
|
|
1254
|
-
pm: /^p/i,
|
|
1255
|
-
midnight: /^mi/i,
|
|
1256
|
-
noon: /^no/i,
|
|
1257
|
-
morning: /morning/i,
|
|
1258
|
-
afternoon: /afternoon/i,
|
|
1259
|
-
evening: /evening/i,
|
|
1260
|
-
night: /night/i
|
|
1261
|
-
}
|
|
1262
|
-
}, bt = {
|
|
1263
|
-
ordinalNumber: it({
|
|
1264
|
-
matchPattern: ot,
|
|
1265
|
-
parsePattern: st,
|
|
1266
|
-
valueCallback: function(e) {
|
|
1267
|
-
return parseInt(e, 10);
|
|
1268
|
-
}
|
|
1269
|
-
}),
|
|
1270
|
-
era: W({
|
|
1271
|
-
matchPatterns: lt,
|
|
1272
|
-
defaultMatchWidth: "wide",
|
|
1273
|
-
parsePatterns: ut,
|
|
1274
|
-
defaultParseWidth: "any"
|
|
1275
|
-
}),
|
|
1276
|
-
quarter: W({
|
|
1277
|
-
matchPatterns: dt,
|
|
1278
|
-
defaultMatchWidth: "wide",
|
|
1279
|
-
parsePatterns: ct,
|
|
1280
|
-
defaultParseWidth: "any",
|
|
1281
|
-
valueCallback: function(e) {
|
|
1282
|
-
return e + 1;
|
|
1283
|
-
}
|
|
1284
|
-
}),
|
|
1285
|
-
month: W({
|
|
1286
|
-
matchPatterns: ft,
|
|
1287
|
-
defaultMatchWidth: "wide",
|
|
1288
|
-
parsePatterns: ht,
|
|
1289
|
-
defaultParseWidth: "any"
|
|
1290
|
-
}),
|
|
1291
|
-
day: W({
|
|
1292
|
-
matchPatterns: mt,
|
|
1293
|
-
defaultMatchWidth: "wide",
|
|
1294
|
-
parsePatterns: gt,
|
|
1295
|
-
defaultParseWidth: "any"
|
|
1296
|
-
}),
|
|
1297
|
-
dayPeriod: W({
|
|
1298
|
-
matchPatterns: pt,
|
|
1299
|
-
defaultMatchWidth: "any",
|
|
1300
|
-
parsePatterns: vt,
|
|
1301
|
-
defaultParseWidth: "any"
|
|
1302
|
-
})
|
|
1303
|
-
};
|
|
1304
|
-
const wt = bt;
|
|
1305
|
-
var yt = {
|
|
1306
|
-
code: "en-US",
|
|
1307
|
-
formatDistance: Ne,
|
|
1308
|
-
formatLong: je,
|
|
1309
|
-
formatRelative: Qe,
|
|
1310
|
-
localize: nt,
|
|
1311
|
-
match: wt,
|
|
1312
|
-
options: {
|
|
1313
|
-
weekStartsOn: 0,
|
|
1314
|
-
firstWeekContainsDate: 1
|
|
1315
|
-
}
|
|
1316
|
-
};
|
|
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
|
-
if (!(N >= 1 && N <= 7))
|
|
1324
|
-
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
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
|
-
if (!(H >= 0 && H <= 6))
|
|
1327
|
-
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1328
|
-
if (!O.localize)
|
|
1329
|
-
throw new RangeError("locale must contain localize property");
|
|
1330
|
-
if (!O.formatLong)
|
|
1331
|
-
throw new RangeError("locale must contain formatLong property");
|
|
1332
|
-
var F = y(t);
|
|
1333
|
-
if (!me(F))
|
|
1334
|
-
throw new RangeError("Invalid time value");
|
|
1335
|
-
var ee = Fe(F), te = pe(F, ee), ne = {
|
|
1336
|
-
firstWeekContainsDate: N,
|
|
1337
|
-
weekStartsOn: H,
|
|
1338
|
-
locale: O,
|
|
1339
|
-
_originalDate: F
|
|
1340
|
-
}, ae = $.match(Ct).map(function(b) {
|
|
1341
|
-
var x = b[0];
|
|
1342
|
-
if (x === "p" || x === "P") {
|
|
1343
|
-
var E = We[x];
|
|
1344
|
-
return E(b, O.formatLong);
|
|
1345
|
-
}
|
|
1346
|
-
return b;
|
|
1347
|
-
}).join("").match(Tt).map(function(b) {
|
|
1348
|
-
if (b === "''")
|
|
1349
|
-
return "'";
|
|
1350
|
-
var x = b[0];
|
|
1351
|
-
if (x === "'")
|
|
1352
|
-
return Pt(b);
|
|
1353
|
-
var E = Pe[x];
|
|
1354
|
-
if (E)
|
|
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
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" + x + "`");
|
|
1358
|
-
return b;
|
|
1359
|
-
}).join("");
|
|
1360
|
-
return ae;
|
|
1361
|
-
}
|
|
1362
|
-
function Pt(t) {
|
|
1363
|
-
var e = t.match(St);
|
|
1364
|
-
return e ? e[1].replace(kt, "'") : t;
|
|
1365
|
-
}
|
|
1366
|
-
class K {
|
|
1367
|
-
constructor() {
|
|
1368
|
-
}
|
|
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
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
class Z {
|
|
1375
|
-
constructor() {
|
|
1376
|
-
}
|
|
1377
|
-
static format(e, n) {
|
|
1378
|
-
let a = `${n} ${e}`;
|
|
1379
|
-
try {
|
|
1380
|
-
a = new Intl.NumberFormat("en-US", {
|
|
1381
|
-
style: "currency",
|
|
1382
|
-
currency: e
|
|
1383
|
-
}).format(n);
|
|
1384
|
-
} catch {
|
|
1385
|
-
}
|
|
1386
|
-
return a;
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
const Ot = (t) => o(
|
|
1390
|
-
"div",
|
|
1391
|
-
{ class: "data-transaction" },
|
|
1392
|
-
o("p", null, t.productType),
|
|
1393
|
-
o(
|
|
1394
|
-
"p",
|
|
1395
|
-
{ class: "text-style text-style-status" },
|
|
1396
|
-
o("span", { class: t.status.toLowerCase() }, t.status)
|
|
1397
|
-
),
|
|
1398
|
-
o(
|
|
1399
|
-
"p",
|
|
1400
|
-
{ class: "date" },
|
|
1401
|
-
t.transId,
|
|
1402
|
-
" | ",
|
|
1403
|
-
K.dateToFormatedString(new Date(t.created), t.dateformat)
|
|
1404
|
-
),
|
|
1405
|
-
o(
|
|
1406
|
-
"p",
|
|
1407
|
-
{ class: "text-style" },
|
|
1408
|
-
Z.format(t.currency, t.realAmount),
|
|
1409
|
-
" "
|
|
1410
|
-
)
|
|
1411
|
-
), Ut = (t) => o(
|
|
1412
|
-
"div",
|
|
1413
|
-
{ class: "page-size" },
|
|
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
|
-
let r, i;
|
|
1418
|
-
const s = () => {
|
|
1419
|
-
t = r.value;
|
|
1420
|
-
}, d = () => {
|
|
1421
|
-
e = i.value;
|
|
1422
|
-
};
|
|
1423
|
-
return o(
|
|
1424
|
-
"div",
|
|
1425
|
-
{ class: "period" },
|
|
1426
|
-
o(
|
|
1427
|
-
"div",
|
|
1428
|
-
{ class: "period-content" },
|
|
1429
|
-
o(
|
|
1430
|
-
"div",
|
|
1431
|
-
{ class: "date-input" },
|
|
1432
|
-
o("vaadin-date-picker", { value: t, ref: (c) => r = c, label: l.translate("from", a), onChange: s })
|
|
1433
|
-
),
|
|
1434
|
-
o(
|
|
1435
|
-
"span",
|
|
1436
|
-
null,
|
|
1437
|
-
o(
|
|
1438
|
-
"svg",
|
|
1439
|
-
{ width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
1440
|
-
o("path", { d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: "#5d687b" })
|
|
1441
|
-
)
|
|
1442
|
-
),
|
|
1443
|
-
o(
|
|
1444
|
-
"div",
|
|
1445
|
-
{ class: "date-input" },
|
|
1446
|
-
o("vaadin-date-picker", { value: e, ref: (c) => i = c, label: l.translate("to", a), onChange: d })
|
|
1447
|
-
),
|
|
1448
|
-
o("button", { class: "filter-btn", onClick: () => n(t, e) }, l.translate("filter", a))
|
|
1449
|
-
)
|
|
1450
|
-
);
|
|
1451
|
-
}, Ft = ({ source: t, language: e, dateformat: n }) => {
|
|
1452
|
-
const a = [
|
|
1453
|
-
{ name: l.translate("transactionId", e) },
|
|
1454
|
-
{
|
|
1455
|
-
name: l.translate("date", e)
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
name: l.translate("amount", e)
|
|
1459
|
-
},
|
|
1460
|
-
{ name: l.translate("productType", e) },
|
|
1461
|
-
{
|
|
1462
|
-
name: l.translate("status", e)
|
|
1463
|
-
}
|
|
1464
|
-
];
|
|
1465
|
-
return o(
|
|
1466
|
-
"table",
|
|
1467
|
-
null,
|
|
1468
|
-
o(
|
|
1469
|
-
"thead",
|
|
1470
|
-
null,
|
|
1471
|
-
o("tr", null, a.map((r) => o("th", null, r.name)))
|
|
1472
|
-
),
|
|
1473
|
-
o("tbody", null, t.map((r) => o(
|
|
1474
|
-
"tr",
|
|
1475
|
-
null,
|
|
1476
|
-
o("td", null, r.transId),
|
|
1477
|
-
o("td", null, K.dateToFormatedString(new Date(r.created), n)),
|
|
1478
|
-
o(
|
|
1479
|
-
"td",
|
|
1480
|
-
null,
|
|
1481
|
-
Z.format(r.currency, r.realAmount),
|
|
1482
|
-
" "
|
|
1483
|
-
),
|
|
1484
|
-
o("td", null, r.productType),
|
|
1485
|
-
o(
|
|
1486
|
-
"td",
|
|
1487
|
-
null,
|
|
1488
|
-
o("span", { class: r.status.toLowerCase() }, r.status)
|
|
1489
|
-
)
|
|
1490
|
-
)))
|
|
1491
|
-
);
|
|
1492
|
-
};
|
|
1493
|
-
function Q(t, e) {
|
|
1494
|
-
if (t) {
|
|
1495
|
-
const n = document.createElement("style");
|
|
1496
|
-
n.innerHTML = e, t.appendChild(n);
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
function X(t, e) {
|
|
1500
|
-
const n = new URL(e);
|
|
1501
|
-
fetch(n.href).then((a) => a.text()).then((a) => {
|
|
1502
|
-
const r = document.createElement("style");
|
|
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
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
function Et(t, e, n) {
|
|
1509
|
-
if (window.emMessageBus) {
|
|
1510
|
-
const a = document.createElement("style");
|
|
1511
|
-
window.emMessageBus.subscribe(e, (r) => {
|
|
1512
|
-
a.innerHTML = r, t && t.appendChild(a);
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
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
|
-
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.mobile }, window.location.href);
|
|
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
|
-
}
|
|
1522
|
-
watchMultiple() {
|
|
1523
|
-
this.loadTransactions();
|
|
1524
|
-
}
|
|
1525
|
-
handleClientStylingChange(t, e) {
|
|
1526
|
-
t != e && Q(this.stylingContainer, this.clientStyling);
|
|
1527
|
-
}
|
|
1528
|
-
handleClientStylingUrlChange(t, e) {
|
|
1529
|
-
t != e && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
|
|
1530
|
-
}
|
|
1531
|
-
async componentWillLoad() {
|
|
1532
|
-
this.translationUrl && await l.loadCustomTranslations(this.translationUrl), this.loadTransactions();
|
|
1533
|
-
}
|
|
1534
|
-
componentDidLoad() {
|
|
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
|
-
}
|
|
1537
|
-
componentDidRender() {
|
|
1538
|
-
this.getComponentHeight();
|
|
1539
|
-
}
|
|
1540
|
-
getComponentHeight() {
|
|
1541
|
-
var t;
|
|
1542
|
-
if (this.mobile) {
|
|
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
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
setHeightTableProperty() {
|
|
1548
|
-
let t = this.getComponentHeight();
|
|
1549
|
-
this.el.style.setProperty("--heightScrollableContainer", t + "px");
|
|
1550
|
-
}
|
|
1551
|
-
changeTransactionsType(t) {
|
|
1552
|
-
this.type = t;
|
|
1553
|
-
}
|
|
1554
|
-
changePageSize(t) {
|
|
1555
|
-
this.pageSize = t;
|
|
1556
|
-
}
|
|
1557
|
-
prev() {
|
|
1558
|
-
var t;
|
|
1559
|
-
!((t = this.pagination) === null || t === void 0) && t.previous && this.page--;
|
|
1560
|
-
}
|
|
1561
|
-
next() {
|
|
1562
|
-
var t;
|
|
1563
|
-
!((t = this.pagination) === null || t === void 0) && t.next && this.page++;
|
|
1564
|
-
}
|
|
1565
|
-
applyFilters(t, e) {
|
|
1566
|
-
this.from = t ? new Date(t).toISOString() : null, this.to = e ? new Date(e).toISOString() : null, this.loadTransactions();
|
|
1567
|
-
}
|
|
1568
|
-
showFilter() {
|
|
1569
|
-
this.showMobileFilter = !this.showMobileFilter;
|
|
1570
|
-
}
|
|
1571
|
-
disconnectedCallback() {
|
|
1572
|
-
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
1573
|
-
}
|
|
1574
|
-
render() {
|
|
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
|
-
}
|
|
1579
|
-
async loadTransactions() {
|
|
1580
|
-
this.showLoader = !0;
|
|
1581
|
-
try {
|
|
1582
|
-
const t = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, e = await fetch(t, {
|
|
1583
|
-
headers: {
|
|
1584
|
-
"X-Sessionid": this.session,
|
|
1585
|
-
"Content-Type": "application/json"
|
|
1586
|
-
}
|
|
1587
|
-
});
|
|
1588
|
-
if (!e.ok) {
|
|
1589
|
-
const a = await e.text();
|
|
1590
|
-
throw new Error(a);
|
|
1591
|
-
}
|
|
1592
|
-
const n = await e.json();
|
|
1593
|
-
this.pagination = n.pagination, this.transactions = n.transactions;
|
|
1594
|
-
} catch (t) {
|
|
1595
|
-
console.error(t);
|
|
1596
|
-
} finally {
|
|
1597
|
-
this.showLoader = !1;
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
getParams() {
|
|
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
|
-
}
|
|
1605
|
-
static get assetsDirs() {
|
|
1606
|
-
return ["../assets"];
|
|
1607
|
-
}
|
|
1608
|
-
get el() {
|
|
1609
|
-
return le(this);
|
|
1610
|
-
}
|
|
1611
|
-
static get watchers() {
|
|
1612
|
-
return {
|
|
1613
|
-
page: ["watchMultiple"],
|
|
1614
|
-
type: ["watchMultiple"],
|
|
1615
|
-
session: ["watchMultiple"],
|
|
1616
|
-
userId: ["watchMultiple"],
|
|
1617
|
-
pageSize: ["watchMultiple"],
|
|
1618
|
-
clientStyling: ["handleClientStylingChange"],
|
|
1619
|
-
clientStylingUrl: ["handleClientStylingUrlChange"],
|
|
1620
|
-
showMobileFilter: ["getComponentHeight"]
|
|
1621
|
-
};
|
|
1622
|
-
}
|
|
1623
|
-
};
|
|
1624
|
-
Lt.style = _t;
|
|
1625
|
-
export {
|
|
1626
|
-
Lt as user_transaction_history
|
|
1627
|
-
};
|