@everymatrix/player-account-controller-nd 1.68.0 → 1.69.1
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/PlayerAccountControllerNd-B8_Eg8M7.cjs +1 -0
- package/components/{PlayerAccountControllerNd-DdY0uS9P.js → PlayerAccountControllerNd-C9c5qHpB.js} +103 -15
- package/components/{PlayerAccountControllerNd-DLE8Fmlq.js → PlayerAccountControllerNd-D2utEHf5.js} +103 -15
- package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BwempsG_.js → PlayerAccountGamingLimits-Bj6iDB2S.js} +1 -1
- package/components/{PlayerAccountGamingLimits-C5fcaaR5.js → PlayerAccountGamingLimits-DxoR6Rl0.js} +1 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-5Xl-352p.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-CYeY3dwe.js +4792 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-BiYcxWjN.js → PlayerAccountGamingLimitsInfoCard-B-8AhoxC.js} +2 -2
- package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-dUq3DIBx.js → PlayerAccountGamingLimitsInfoCard-DSLO6bv_.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-D0j9FESV.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-B6tELts_.cjs} +3 -3
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-JTp7ykpl.js → PlayerAccountGamingLimitsPage2Gm16Nd-CXQX6eNH.js} +108 -114
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Cp0HPknx.js → PlayerAccountGamingLimitsPage2Gm16Nd-Dx02fxKY.js} +129 -135
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DnzmU3uL.js → PlayerAccountGamingLimitsWrapper2Nd-CpyV2hP1.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-D6DATRJZ.cjs → PlayerAccountGamingLimitsWrapper2Nd-D5nHHoLm.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BEi1Ax2s.js → PlayerAccountGamingLimitsWrapper2Nd-DT0rCXco.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-C4zwKDdb.js → PlayerAccountGeneralConfirmationModal-BBveBuYk.js} +114 -119
- package/components/{PlayerAccountGeneralConfirmationModal-Byd2u6b9.js → PlayerAccountGeneralConfirmationModal-DFj-HuBM.js} +114 -119
- package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
- package/components/{PlayerAccountMenuNd-Cs9UjL2S.js → PlayerAccountMenuNd-BMBUbI6y.js} +1 -1
- package/components/{PlayerAccountMenuNd-BFdU3ZXb.cjs → PlayerAccountMenuNd-Bb8eCevo.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-Cx7Fxjin.js → PlayerAccountMenuNd-D1RwH7wH.js} +1 -1
- package/components/{PlayerAccountNotifications-bjLmyXO3.js → PlayerAccountNotifications-B-74n2wI.js} +1 -1
- package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-D8r2XtCv.cjs} +1 -1
- package/components/{PlayerAccountNotifications-BjAtYQls.js → PlayerAccountNotifications-k9UyYE2n.js} +1 -1
- package/components/{PlayerAccountProductRestriction-BK1qKxhK.cjs → PlayerAccountProductRestriction-BRQ_0iRa.cjs} +261 -261
- package/components/{PlayerAccountProductRestriction-pQjnbz9B.js → PlayerAccountProductRestriction-Bb852CXS.js} +1941 -1960
- package/components/{PlayerAccountProductRestriction-BSOQXTrt.js → PlayerAccountProductRestriction-DuhY6Smp.js} +1929 -1948
- package/components/{PlayerAccountSelfExclusionNd-DnktIYiG.cjs → PlayerAccountSelfExclusionNd-CSTSxxS9.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-BG-L1FIn.js → PlayerAccountSelfExclusionNd-Ce5YAsGV.js} +3 -3
- package/components/{PlayerAccountSelfExclusionNd-Cm53bCiD.js → PlayerAccountSelfExclusionNd-kOAMG31m.js} +3 -3
- package/components/{PlayerAccountTimeout-BqGTX3_t.js → PlayerAccountTimeout-C5PJ_msd.js} +3 -3
- package/components/{PlayerAccountTimeout-C0aSuJAQ.cjs → PlayerAccountTimeout-CMtwjwEg.cjs} +1 -1
- package/components/{PlayerAccountTimeout-MJuN3qY1.js → PlayerAccountTimeout-ocrV5KJH.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-CWLsJxGB.js → PlayerAccountTransactionsHistory-097RLBFr.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-ClkTyrnI.js → PlayerAccountTransactionsHistory-DH_DQqUA.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-WOO2lyyP.cjs → PlayerAccountTransactionsHistory-DmawfuJF.cjs} +1 -1
- package/components/{PlayerActiveBonuses-D0-l-pB3.js → PlayerActiveBonuses-CD7vVwcl.js} +492 -462
- package/components/{PlayerActiveBonuses-LzSf0vDW.js → PlayerActiveBonuses-CfJuOJRv.js} +489 -459
- package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
- package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
- package/components/{PlayerBonusCard-C0Z6YeQL.js → PlayerBonusCard-CLcU7jvi.js} +207 -191
- package/components/{PlayerBonusCard-CYnvLBMF.js → PlayerBonusCard-DqH1t5fZ.js} +207 -191
- package/components/PlayerBonusHistory-1O3uWzIQ.cjs +1 -0
- package/components/PlayerBonusHistory-BM4fFqSh.js +1051 -0
- package/components/PlayerBonusHistory-ByBUgN3W.js +1040 -0
- package/components/PlayerGamingHistory-DQ4HRmmw.cjs +1 -0
- package/components/{PlayerGamingHistory-DV8OU2Tr.js → PlayerGamingHistory-_yfFEV_F.js} +472 -456
- package/components/PlayerGamingHistory-z-S43iX0.js +1016 -0
- package/components/{PlayerProfileInfo-DcmY9plr.cjs → PlayerProfileInfo-B_Ljin_V.cjs} +1 -1
- package/components/{PlayerProfileInfo-Cnrcnxn9.js → PlayerProfileInfo-D_Tgt-Px.js} +1 -1
- package/components/{PlayerProfileInfo-yVopMUMB.js → PlayerProfileInfo-DzX5fe6K.js} +1 -1
- package/components/{PlayerRealityCheck-RsT9a67Q.js → PlayerRealityCheck-6XXRahxA.js} +1 -1
- package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-BjYYGdSA.cjs} +1 -1
- package/components/{PlayerRealityCheck-C7EUl18t.js → PlayerRealityCheck-DGjxJY9s.js} +1 -1
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_14-D0Wi9yCm.js → checkbox-group-input_14-BFSnZagr.js} +59 -39
- package/stencil/{checkbox-group-input_14-0MlabybW.js → checkbox-group-input_14-GLjTTxmH.js} +59 -39
- package/stencil/{checkbox-group-input_14-BUUOn-f1.cjs → checkbox-group-input_14-uRy46KSq.cjs} +117 -117
- package/stencil/{index-13661b98-wjpz7oVL.cjs → index-13661b98-4yXy6CPB.cjs} +1 -1
- package/stencil/{index-13661b98-Dd0kDfGP.js → index-13661b98-D2nlyS8e.js} +1 -1
- package/stencil/{index-13661b98-Vb11Gqfi.js → index-13661b98-DIbjgfzn.js} +1 -1
- package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-2AC9SnQ7.js} +1 -1
- package/stencil/{index-7c5e707a-DvxqcEpc.js → index-7c5e707a-BM4sfR0h.js} +1 -1
- package/stencil/{index-7c5e707a-ESX_oqGB.cjs → index-7c5e707a-Cw-c3Bke.cjs} +1 -1
- package/stencil/{index-b2193545-Ct5AhxM8.cjs → index-b2193545-BabAkr0e.cjs} +1 -1
- package/stencil/{index-b2193545-DePry399.js → index-b2193545-BiOpH9En.js} +1 -1
- package/stencil/{index-b2193545-CnMZ4-Ff.js → index-b2193545-Ce-13pAo.js} +1 -1
- package/stencil/{pam-change-password-D23ISzqi.js → pam-change-password-BJkxTpcZ.js} +2 -2
- package/stencil/{pam-change-password-1_IegfkZ.cjs → pam-change-password-DBQlR2TU.cjs} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-Cxe8Atmr.js → pam-change-password-f4a1e7e7-BWQCkDNb.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-DzJmDiaX.js → pam-change-password-f4a1e7e7-C9NkOxiM.js} +1 -1
- package/stencil/{pam-change-password-f4a1e7e7-BqEyIcXD.cjs → pam-change-password-f4a1e7e7-D-bYL6gs.cjs} +1 -1
- package/stencil/{pam-change-password-BUGFXbZ2.js → pam-change-password-iLjG4ryi.js} +2 -2
- package/stencil/ui-skeleton-161699c3-B01ZhhJT.cjs +73 -0
- package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-161699c3-B6lE-0Wi.js} +61 -41
- package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-161699c3-D0o9EmS0.js} +61 -41
- package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-B3VBr2Bz.js} +3 -3
- package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-BENu4NGl.js} +3 -3
- package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-DQD9osiT.cjs} +1 -1
- package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
- package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
- package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
- package/components/PlayerAccountControllerNd-CWJ_S9v9.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-D0hqXEY4.js +0 -2891
- package/components/PlayerAccountGamingLimitsGroupEdit-DVvwhjK6.js +0 -2891
- package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
- package/components/PlayerActiveBonuses-Bc5S3wl_.cjs +0 -1
- package/components/PlayerBonusCard-BNNcjGWn.cjs +0 -1
- package/components/PlayerBonusHistory-C3fZQarG.js +0 -985
- package/components/PlayerBonusHistory-DWFOy5jX.js +0 -986
- package/components/PlayerBonusHistory-KSW8XpoL.cjs +0 -1
- package/components/PlayerGamingHistory-BBu7qQuS.js +0 -975
- package/components/PlayerGamingHistory-WTu28xyT.cjs +0 -1
- package/stencil/ui-skeleton-1cb75d00-Batko5iK.cjs +0 -73
- package/stencil/user-transaction-history-BAK7MHHa.js +0 -374
- package/stencil/user-transaction-history-DhQ6RqNc.js +0 -350
- package/stencil/user-transaction-history-DiRXpfbN.cjs +0 -1
|
@@ -0,0 +1,1645 @@
|
|
|
1
|
+
var U = (e, t, a) => new Promise((n, r) => {
|
|
2
|
+
var i = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
d(a.next(l));
|
|
5
|
+
} catch (h) {
|
|
6
|
+
r(h);
|
|
7
|
+
}
|
|
8
|
+
}, o = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
d(a.throw(l));
|
|
11
|
+
} catch (h) {
|
|
12
|
+
r(h);
|
|
13
|
+
}
|
|
14
|
+
}, d = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, o);
|
|
15
|
+
d((a = a.apply(e, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as it, p as ot, r as st, g as R, h as s, H as lt, a as dt } from "./index-7c5e707a-BM4sfR0h.js";
|
|
18
|
+
import { d as ut } from "./app-globals-0f993ce5-DzSE6TtH.js";
|
|
19
|
+
var ct = () => {
|
|
20
|
+
const e = import.meta.url, t = {};
|
|
21
|
+
return e !== "" && (t.resourcesUrl = new URL(".", e).href), ot(t);
|
|
22
|
+
};
|
|
23
|
+
ct().then((e) => U(void 0, null, function* () {
|
|
24
|
+
return yield ut(), it([["user-transaction-history", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], dateFormat: [513, "date-format"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }]]]], e);
|
|
25
|
+
}));
|
|
26
|
+
const ht = {
|
|
27
|
+
en: {
|
|
28
|
+
deposit: "Deposit",
|
|
29
|
+
withdrawals: "Withdrawals",
|
|
30
|
+
show: "Show",
|
|
31
|
+
from: "From",
|
|
32
|
+
to: "To",
|
|
33
|
+
filter: "Filter",
|
|
34
|
+
transactionId: "Transaction ID",
|
|
35
|
+
date: "Date",
|
|
36
|
+
amount: "Amount",
|
|
37
|
+
productType: "Product Type",
|
|
38
|
+
status: "Status",
|
|
39
|
+
noData: "There are no account activities"
|
|
40
|
+
},
|
|
41
|
+
hr: {
|
|
42
|
+
deposit: "Uplate",
|
|
43
|
+
withdrawals: "Isplate",
|
|
44
|
+
show: "Prikaži",
|
|
45
|
+
from: "Od",
|
|
46
|
+
to: "Do",
|
|
47
|
+
filter: "Filter",
|
|
48
|
+
transactionId: "ID transakcije",
|
|
49
|
+
date: "Datum",
|
|
50
|
+
amount: "Iznos",
|
|
51
|
+
productType: "Vrsta proizvoda",
|
|
52
|
+
status: "Status",
|
|
53
|
+
noData: "Nema aktivnosti na računu"
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
class u {
|
|
57
|
+
constructor() {
|
|
58
|
+
}
|
|
59
|
+
static loadCustomTranslations(t) {
|
|
60
|
+
return U(this, null, function* () {
|
|
61
|
+
try {
|
|
62
|
+
const a = yield fetch(t, {
|
|
63
|
+
headers: {
|
|
64
|
+
"Content-Type": "application/json"
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
if (!a.ok) {
|
|
68
|
+
const r = yield a.text();
|
|
69
|
+
throw new Error(r);
|
|
70
|
+
}
|
|
71
|
+
const n = yield a.json();
|
|
72
|
+
u.updateTranslations(n);
|
|
73
|
+
} catch (a) {
|
|
74
|
+
console.error(`Failed to load translations ${t}. ${a.message}`);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
static translate(t, a) {
|
|
79
|
+
var n, r;
|
|
80
|
+
const i = u.getAvaliableLanguages(a);
|
|
81
|
+
return ((r = (n = u.customTranslation) === null || n === void 0 ? void 0 : n[i.customLanguage]) === null || r === void 0 ? void 0 : r[t]) || u.defaultTranslation[i.predefinedLanguage][t];
|
|
82
|
+
}
|
|
83
|
+
static getAvaliableLanguages(t) {
|
|
84
|
+
var a;
|
|
85
|
+
const n = !((a = u.customLanguages) === null || a === void 0) && a.includes(t) ? t : u.defaultLanguage;
|
|
86
|
+
return { predefinedLanguage: u.supportedLanguages.includes(t) ? t : u.defaultLanguage, customLanguage: n };
|
|
87
|
+
}
|
|
88
|
+
static updateTranslations(t) {
|
|
89
|
+
u.customLanguages = Array.from(/* @__PURE__ */ new Set([...u.supportedLanguages, ...Object.keys(t).map((a) => a.toLowerCase())])), u.customTranslation = t;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
u.defaultLanguage = "en";
|
|
93
|
+
u.supportedLanguages = ["en"];
|
|
94
|
+
u.defaultTranslation = ht;
|
|
95
|
+
const ft = () => s(
|
|
96
|
+
"div",
|
|
97
|
+
{ class: "loader" },
|
|
98
|
+
s("div", null),
|
|
99
|
+
s("div", null),
|
|
100
|
+
s("div", null),
|
|
101
|
+
s("div", null),
|
|
102
|
+
s("div", null),
|
|
103
|
+
s("div", null),
|
|
104
|
+
s("div", null),
|
|
105
|
+
s("div", null),
|
|
106
|
+
s("div", null),
|
|
107
|
+
s("div", null),
|
|
108
|
+
s("div", null),
|
|
109
|
+
s("div", null)
|
|
110
|
+
);
|
|
111
|
+
function _(e) {
|
|
112
|
+
"@babel/helpers - typeof";
|
|
113
|
+
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
114
|
+
return typeof t;
|
|
115
|
+
} : function(t) {
|
|
116
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
117
|
+
}, _(e);
|
|
118
|
+
}
|
|
119
|
+
function v(e, t) {
|
|
120
|
+
if (t.length < e)
|
|
121
|
+
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
122
|
+
}
|
|
123
|
+
function mt(e) {
|
|
124
|
+
return v(1, arguments), e instanceof Date || _(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
125
|
+
}
|
|
126
|
+
function y(e) {
|
|
127
|
+
v(1, arguments);
|
|
128
|
+
var t = Object.prototype.toString.call(e);
|
|
129
|
+
return e instanceof Date || _(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
130
|
+
}
|
|
131
|
+
function gt(e) {
|
|
132
|
+
if (v(1, arguments), !mt(e) && typeof e != "number")
|
|
133
|
+
return !1;
|
|
134
|
+
var t = y(e);
|
|
135
|
+
return !isNaN(Number(t));
|
|
136
|
+
}
|
|
137
|
+
function k(e) {
|
|
138
|
+
if (e === null || e === !0 || e === !1)
|
|
139
|
+
return NaN;
|
|
140
|
+
var t = Number(e);
|
|
141
|
+
return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t);
|
|
142
|
+
}
|
|
143
|
+
function vt(e, t) {
|
|
144
|
+
v(2, arguments);
|
|
145
|
+
var a = y(e).getTime(), n = k(t);
|
|
146
|
+
return new Date(a + n);
|
|
147
|
+
}
|
|
148
|
+
function pt(e, t) {
|
|
149
|
+
v(2, arguments);
|
|
150
|
+
var a = k(t);
|
|
151
|
+
return vt(e, -a);
|
|
152
|
+
}
|
|
153
|
+
var bt = 864e5;
|
|
154
|
+
function wt(e) {
|
|
155
|
+
v(1, arguments);
|
|
156
|
+
var t = y(e), a = t.getTime();
|
|
157
|
+
t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
|
|
158
|
+
var n = t.getTime(), r = a - n;
|
|
159
|
+
return Math.floor(r / bt) + 1;
|
|
160
|
+
}
|
|
161
|
+
function L(e) {
|
|
162
|
+
v(1, arguments);
|
|
163
|
+
var t = 1, a = y(e), n = a.getUTCDay(), r = (n < t ? 7 : 0) + n - t;
|
|
164
|
+
return a.setUTCDate(a.getUTCDate() - r), a.setUTCHours(0, 0, 0, 0), a;
|
|
165
|
+
}
|
|
166
|
+
function V(e) {
|
|
167
|
+
v(1, arguments);
|
|
168
|
+
var t = y(e), a = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
|
|
169
|
+
n.setUTCFullYear(a + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
|
|
170
|
+
var r = L(n), i = /* @__PURE__ */ new Date(0);
|
|
171
|
+
i.setUTCFullYear(a, 0, 4), i.setUTCHours(0, 0, 0, 0);
|
|
172
|
+
var o = L(i);
|
|
173
|
+
return t.getTime() >= r.getTime() ? a + 1 : t.getTime() >= o.getTime() ? a : a - 1;
|
|
174
|
+
}
|
|
175
|
+
function yt(e) {
|
|
176
|
+
v(1, arguments);
|
|
177
|
+
var t = V(e), a = /* @__PURE__ */ new Date(0);
|
|
178
|
+
a.setUTCFullYear(t, 0, 4), a.setUTCHours(0, 0, 0, 0);
|
|
179
|
+
var n = L(a);
|
|
180
|
+
return n;
|
|
181
|
+
}
|
|
182
|
+
var xt = 6048e5;
|
|
183
|
+
function Tt(e) {
|
|
184
|
+
v(1, arguments);
|
|
185
|
+
var t = y(e), a = L(t).getTime() - yt(t).getTime();
|
|
186
|
+
return Math.round(a / xt) + 1;
|
|
187
|
+
}
|
|
188
|
+
var Ct = {};
|
|
189
|
+
function $() {
|
|
190
|
+
return Ct;
|
|
191
|
+
}
|
|
192
|
+
function B(e, t) {
|
|
193
|
+
var a, n, r, i, o, d, l, h;
|
|
194
|
+
v(1, arguments);
|
|
195
|
+
var m = $(), f = k((a = (n = (r = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && r !== void 0 ? r : m.weekStartsOn) !== null && n !== void 0 ? n : (l = m.locale) === null || l === void 0 || (h = l.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
196
|
+
if (!(f >= 0 && f <= 6))
|
|
197
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
198
|
+
var p = y(e), g = p.getUTCDay(), w = (g < f ? 7 : 0) + g - f;
|
|
199
|
+
return p.setUTCDate(p.getUTCDate() - w), p.setUTCHours(0, 0, 0, 0), p;
|
|
200
|
+
}
|
|
201
|
+
function J(e, t) {
|
|
202
|
+
var a, n, r, i, o, d, l, h;
|
|
203
|
+
v(1, arguments);
|
|
204
|
+
var m = y(e), f = m.getUTCFullYear(), p = $(), g = k((a = (n = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : p.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = p.locale) === null || l === void 0 || (h = l.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
205
|
+
if (!(g >= 1 && g <= 7))
|
|
206
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
207
|
+
var w = /* @__PURE__ */ new Date(0);
|
|
208
|
+
w.setUTCFullYear(f + 1, 0, g), w.setUTCHours(0, 0, 0, 0);
|
|
209
|
+
var M = B(w, t), C = /* @__PURE__ */ new Date(0);
|
|
210
|
+
C.setUTCFullYear(f, 0, g), C.setUTCHours(0, 0, 0, 0);
|
|
211
|
+
var N = B(C, t);
|
|
212
|
+
return m.getTime() >= M.getTime() ? f + 1 : m.getTime() >= N.getTime() ? f : f - 1;
|
|
213
|
+
}
|
|
214
|
+
function St(e, t) {
|
|
215
|
+
var a, n, r, i, o, d, l, h;
|
|
216
|
+
v(1, arguments);
|
|
217
|
+
var m = $(), f = k((a = (n = (r = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (d = o.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && r !== void 0 ? r : m.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = m.locale) === null || l === void 0 || (h = l.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = J(e, t), g = /* @__PURE__ */ new Date(0);
|
|
218
|
+
g.setUTCFullYear(p, 0, f), g.setUTCHours(0, 0, 0, 0);
|
|
219
|
+
var w = B(g, t);
|
|
220
|
+
return w;
|
|
221
|
+
}
|
|
222
|
+
var kt = 6048e5;
|
|
223
|
+
function Dt(e, t) {
|
|
224
|
+
v(1, arguments);
|
|
225
|
+
var a = y(e), n = B(a, t).getTime() - St(a, t).getTime();
|
|
226
|
+
return Math.round(n / kt) + 1;
|
|
227
|
+
}
|
|
228
|
+
function c(e, t) {
|
|
229
|
+
for (var a = e < 0 ? "-" : "", n = Math.abs(e).toString(); n.length < t; )
|
|
230
|
+
n = "0" + n;
|
|
231
|
+
return a + n;
|
|
232
|
+
}
|
|
233
|
+
var Mt = {
|
|
234
|
+
// Year
|
|
235
|
+
y: function(t, a) {
|
|
236
|
+
var n = t.getUTCFullYear(), r = n > 0 ? n : 1 - n;
|
|
237
|
+
return c(a === "yy" ? r % 100 : r, a.length);
|
|
238
|
+
},
|
|
239
|
+
// Month
|
|
240
|
+
M: function(t, a) {
|
|
241
|
+
var n = t.getUTCMonth();
|
|
242
|
+
return a === "M" ? String(n + 1) : c(n + 1, 2);
|
|
243
|
+
},
|
|
244
|
+
// Day of the month
|
|
245
|
+
d: function(t, a) {
|
|
246
|
+
return c(t.getUTCDate(), a.length);
|
|
247
|
+
},
|
|
248
|
+
// AM or PM
|
|
249
|
+
a: function(t, a) {
|
|
250
|
+
var n = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
251
|
+
switch (a) {
|
|
252
|
+
case "a":
|
|
253
|
+
case "aa":
|
|
254
|
+
return n.toUpperCase();
|
|
255
|
+
case "aaa":
|
|
256
|
+
return n;
|
|
257
|
+
case "aaaaa":
|
|
258
|
+
return n[0];
|
|
259
|
+
case "aaaa":
|
|
260
|
+
default:
|
|
261
|
+
return n === "am" ? "a.m." : "p.m.";
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
// Hour [1-12]
|
|
265
|
+
h: function(t, a) {
|
|
266
|
+
return c(t.getUTCHours() % 12 || 12, a.length);
|
|
267
|
+
},
|
|
268
|
+
// Hour [0-23]
|
|
269
|
+
H: function(t, a) {
|
|
270
|
+
return c(t.getUTCHours(), a.length);
|
|
271
|
+
},
|
|
272
|
+
// Minute
|
|
273
|
+
m: function(t, a) {
|
|
274
|
+
return c(t.getUTCMinutes(), a.length);
|
|
275
|
+
},
|
|
276
|
+
// Second
|
|
277
|
+
s: function(t, a) {
|
|
278
|
+
return c(t.getUTCSeconds(), a.length);
|
|
279
|
+
},
|
|
280
|
+
// Fraction of second
|
|
281
|
+
S: function(t, a) {
|
|
282
|
+
var n = a.length, r = t.getUTCMilliseconds(), i = Math.floor(r * Math.pow(10, n - 3));
|
|
283
|
+
return c(i, a.length);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
const T = Mt;
|
|
287
|
+
var D = {
|
|
288
|
+
midnight: "midnight",
|
|
289
|
+
noon: "noon",
|
|
290
|
+
morning: "morning",
|
|
291
|
+
afternoon: "afternoon",
|
|
292
|
+
evening: "evening",
|
|
293
|
+
night: "night"
|
|
294
|
+
}, Ot = {
|
|
295
|
+
// Era
|
|
296
|
+
G: function(t, a, n) {
|
|
297
|
+
var r = t.getUTCFullYear() > 0 ? 1 : 0;
|
|
298
|
+
switch (a) {
|
|
299
|
+
case "G":
|
|
300
|
+
case "GG":
|
|
301
|
+
case "GGG":
|
|
302
|
+
return n.era(r, {
|
|
303
|
+
width: "abbreviated"
|
|
304
|
+
});
|
|
305
|
+
case "GGGGG":
|
|
306
|
+
return n.era(r, {
|
|
307
|
+
width: "narrow"
|
|
308
|
+
});
|
|
309
|
+
case "GGGG":
|
|
310
|
+
default:
|
|
311
|
+
return n.era(r, {
|
|
312
|
+
width: "wide"
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
// Year
|
|
317
|
+
y: function(t, a, n) {
|
|
318
|
+
if (a === "yo") {
|
|
319
|
+
var r = t.getUTCFullYear(), i = r > 0 ? r : 1 - r;
|
|
320
|
+
return n.ordinalNumber(i, {
|
|
321
|
+
unit: "year"
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
return T.y(t, a);
|
|
325
|
+
},
|
|
326
|
+
// Local week-numbering year
|
|
327
|
+
Y: function(t, a, n, r) {
|
|
328
|
+
var i = J(t, r), o = i > 0 ? i : 1 - i;
|
|
329
|
+
if (a === "YY") {
|
|
330
|
+
var d = o % 100;
|
|
331
|
+
return c(d, 2);
|
|
332
|
+
}
|
|
333
|
+
return a === "Yo" ? n.ordinalNumber(o, {
|
|
334
|
+
unit: "year"
|
|
335
|
+
}) : c(o, a.length);
|
|
336
|
+
},
|
|
337
|
+
// ISO week-numbering year
|
|
338
|
+
R: function(t, a) {
|
|
339
|
+
var n = V(t);
|
|
340
|
+
return c(n, a.length);
|
|
341
|
+
},
|
|
342
|
+
// Extended year. This is a single number designating the year of this calendar system.
|
|
343
|
+
// The main difference between `y` and `u` localizers are B.C. years:
|
|
344
|
+
// | Year | `y` | `u` |
|
|
345
|
+
// |------|-----|-----|
|
|
346
|
+
// | AC 1 | 1 | 1 |
|
|
347
|
+
// | BC 1 | 1 | 0 |
|
|
348
|
+
// | BC 2 | 2 | -1 |
|
|
349
|
+
// Also `yy` always returns the last two digits of a year,
|
|
350
|
+
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
351
|
+
u: function(t, a) {
|
|
352
|
+
var n = t.getUTCFullYear();
|
|
353
|
+
return c(n, a.length);
|
|
354
|
+
},
|
|
355
|
+
// Quarter
|
|
356
|
+
Q: function(t, a, n) {
|
|
357
|
+
var r = Math.ceil((t.getUTCMonth() + 1) / 3);
|
|
358
|
+
switch (a) {
|
|
359
|
+
case "Q":
|
|
360
|
+
return String(r);
|
|
361
|
+
case "QQ":
|
|
362
|
+
return c(r, 2);
|
|
363
|
+
case "Qo":
|
|
364
|
+
return n.ordinalNumber(r, {
|
|
365
|
+
unit: "quarter"
|
|
366
|
+
});
|
|
367
|
+
case "QQQ":
|
|
368
|
+
return n.quarter(r, {
|
|
369
|
+
width: "abbreviated",
|
|
370
|
+
context: "formatting"
|
|
371
|
+
});
|
|
372
|
+
case "QQQQQ":
|
|
373
|
+
return n.quarter(r, {
|
|
374
|
+
width: "narrow",
|
|
375
|
+
context: "formatting"
|
|
376
|
+
});
|
|
377
|
+
case "QQQQ":
|
|
378
|
+
default:
|
|
379
|
+
return n.quarter(r, {
|
|
380
|
+
width: "wide",
|
|
381
|
+
context: "formatting"
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
// Stand-alone quarter
|
|
386
|
+
q: function(t, a, n) {
|
|
387
|
+
var r = Math.ceil((t.getUTCMonth() + 1) / 3);
|
|
388
|
+
switch (a) {
|
|
389
|
+
case "q":
|
|
390
|
+
return String(r);
|
|
391
|
+
case "qq":
|
|
392
|
+
return c(r, 2);
|
|
393
|
+
case "qo":
|
|
394
|
+
return n.ordinalNumber(r, {
|
|
395
|
+
unit: "quarter"
|
|
396
|
+
});
|
|
397
|
+
case "qqq":
|
|
398
|
+
return n.quarter(r, {
|
|
399
|
+
width: "abbreviated",
|
|
400
|
+
context: "standalone"
|
|
401
|
+
});
|
|
402
|
+
case "qqqqq":
|
|
403
|
+
return n.quarter(r, {
|
|
404
|
+
width: "narrow",
|
|
405
|
+
context: "standalone"
|
|
406
|
+
});
|
|
407
|
+
case "qqqq":
|
|
408
|
+
default:
|
|
409
|
+
return n.quarter(r, {
|
|
410
|
+
width: "wide",
|
|
411
|
+
context: "standalone"
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
// Month
|
|
416
|
+
M: function(t, a, n) {
|
|
417
|
+
var r = t.getUTCMonth();
|
|
418
|
+
switch (a) {
|
|
419
|
+
case "M":
|
|
420
|
+
case "MM":
|
|
421
|
+
return T.M(t, a);
|
|
422
|
+
case "Mo":
|
|
423
|
+
return n.ordinalNumber(r + 1, {
|
|
424
|
+
unit: "month"
|
|
425
|
+
});
|
|
426
|
+
case "MMM":
|
|
427
|
+
return n.month(r, {
|
|
428
|
+
width: "abbreviated",
|
|
429
|
+
context: "formatting"
|
|
430
|
+
});
|
|
431
|
+
case "MMMMM":
|
|
432
|
+
return n.month(r, {
|
|
433
|
+
width: "narrow",
|
|
434
|
+
context: "formatting"
|
|
435
|
+
});
|
|
436
|
+
case "MMMM":
|
|
437
|
+
default:
|
|
438
|
+
return n.month(r, {
|
|
439
|
+
width: "wide",
|
|
440
|
+
context: "formatting"
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
// Stand-alone month
|
|
445
|
+
L: function(t, a, n) {
|
|
446
|
+
var r = t.getUTCMonth();
|
|
447
|
+
switch (a) {
|
|
448
|
+
case "L":
|
|
449
|
+
return String(r + 1);
|
|
450
|
+
case "LL":
|
|
451
|
+
return c(r + 1, 2);
|
|
452
|
+
case "Lo":
|
|
453
|
+
return n.ordinalNumber(r + 1, {
|
|
454
|
+
unit: "month"
|
|
455
|
+
});
|
|
456
|
+
case "LLL":
|
|
457
|
+
return n.month(r, {
|
|
458
|
+
width: "abbreviated",
|
|
459
|
+
context: "standalone"
|
|
460
|
+
});
|
|
461
|
+
case "LLLLL":
|
|
462
|
+
return n.month(r, {
|
|
463
|
+
width: "narrow",
|
|
464
|
+
context: "standalone"
|
|
465
|
+
});
|
|
466
|
+
case "LLLL":
|
|
467
|
+
default:
|
|
468
|
+
return n.month(r, {
|
|
469
|
+
width: "wide",
|
|
470
|
+
context: "standalone"
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
// Local week of year
|
|
475
|
+
w: function(t, a, n, r) {
|
|
476
|
+
var i = Dt(t, r);
|
|
477
|
+
return a === "wo" ? n.ordinalNumber(i, {
|
|
478
|
+
unit: "week"
|
|
479
|
+
}) : c(i, a.length);
|
|
480
|
+
},
|
|
481
|
+
// ISO week of year
|
|
482
|
+
I: function(t, a, n) {
|
|
483
|
+
var r = Tt(t);
|
|
484
|
+
return a === "Io" ? n.ordinalNumber(r, {
|
|
485
|
+
unit: "week"
|
|
486
|
+
}) : c(r, a.length);
|
|
487
|
+
},
|
|
488
|
+
// Day of the month
|
|
489
|
+
d: function(t, a, n) {
|
|
490
|
+
return a === "do" ? n.ordinalNumber(t.getUTCDate(), {
|
|
491
|
+
unit: "date"
|
|
492
|
+
}) : T.d(t, a);
|
|
493
|
+
},
|
|
494
|
+
// Day of year
|
|
495
|
+
D: function(t, a, n) {
|
|
496
|
+
var r = wt(t);
|
|
497
|
+
return a === "Do" ? n.ordinalNumber(r, {
|
|
498
|
+
unit: "dayOfYear"
|
|
499
|
+
}) : c(r, a.length);
|
|
500
|
+
},
|
|
501
|
+
// Day of week
|
|
502
|
+
E: function(t, a, n) {
|
|
503
|
+
var r = t.getUTCDay();
|
|
504
|
+
switch (a) {
|
|
505
|
+
case "E":
|
|
506
|
+
case "EE":
|
|
507
|
+
case "EEE":
|
|
508
|
+
return n.day(r, {
|
|
509
|
+
width: "abbreviated",
|
|
510
|
+
context: "formatting"
|
|
511
|
+
});
|
|
512
|
+
case "EEEEE":
|
|
513
|
+
return n.day(r, {
|
|
514
|
+
width: "narrow",
|
|
515
|
+
context: "formatting"
|
|
516
|
+
});
|
|
517
|
+
case "EEEEEE":
|
|
518
|
+
return n.day(r, {
|
|
519
|
+
width: "short",
|
|
520
|
+
context: "formatting"
|
|
521
|
+
});
|
|
522
|
+
case "EEEE":
|
|
523
|
+
default:
|
|
524
|
+
return n.day(r, {
|
|
525
|
+
width: "wide",
|
|
526
|
+
context: "formatting"
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
// Local day of week
|
|
531
|
+
e: function(t, a, n, r) {
|
|
532
|
+
var i = t.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
533
|
+
switch (a) {
|
|
534
|
+
case "e":
|
|
535
|
+
return String(o);
|
|
536
|
+
case "ee":
|
|
537
|
+
return c(o, 2);
|
|
538
|
+
case "eo":
|
|
539
|
+
return n.ordinalNumber(o, {
|
|
540
|
+
unit: "day"
|
|
541
|
+
});
|
|
542
|
+
case "eee":
|
|
543
|
+
return n.day(i, {
|
|
544
|
+
width: "abbreviated",
|
|
545
|
+
context: "formatting"
|
|
546
|
+
});
|
|
547
|
+
case "eeeee":
|
|
548
|
+
return n.day(i, {
|
|
549
|
+
width: "narrow",
|
|
550
|
+
context: "formatting"
|
|
551
|
+
});
|
|
552
|
+
case "eeeeee":
|
|
553
|
+
return n.day(i, {
|
|
554
|
+
width: "short",
|
|
555
|
+
context: "formatting"
|
|
556
|
+
});
|
|
557
|
+
case "eeee":
|
|
558
|
+
default:
|
|
559
|
+
return n.day(i, {
|
|
560
|
+
width: "wide",
|
|
561
|
+
context: "formatting"
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
// Stand-alone local day of week
|
|
566
|
+
c: function(t, a, n, r) {
|
|
567
|
+
var i = t.getUTCDay(), o = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
568
|
+
switch (a) {
|
|
569
|
+
case "c":
|
|
570
|
+
return String(o);
|
|
571
|
+
case "cc":
|
|
572
|
+
return c(o, a.length);
|
|
573
|
+
case "co":
|
|
574
|
+
return n.ordinalNumber(o, {
|
|
575
|
+
unit: "day"
|
|
576
|
+
});
|
|
577
|
+
case "ccc":
|
|
578
|
+
return n.day(i, {
|
|
579
|
+
width: "abbreviated",
|
|
580
|
+
context: "standalone"
|
|
581
|
+
});
|
|
582
|
+
case "ccccc":
|
|
583
|
+
return n.day(i, {
|
|
584
|
+
width: "narrow",
|
|
585
|
+
context: "standalone"
|
|
586
|
+
});
|
|
587
|
+
case "cccccc":
|
|
588
|
+
return n.day(i, {
|
|
589
|
+
width: "short",
|
|
590
|
+
context: "standalone"
|
|
591
|
+
});
|
|
592
|
+
case "cccc":
|
|
593
|
+
default:
|
|
594
|
+
return n.day(i, {
|
|
595
|
+
width: "wide",
|
|
596
|
+
context: "standalone"
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
// ISO day of week
|
|
601
|
+
i: function(t, a, n) {
|
|
602
|
+
var r = t.getUTCDay(), i = r === 0 ? 7 : r;
|
|
603
|
+
switch (a) {
|
|
604
|
+
case "i":
|
|
605
|
+
return String(i);
|
|
606
|
+
case "ii":
|
|
607
|
+
return c(i, a.length);
|
|
608
|
+
case "io":
|
|
609
|
+
return n.ordinalNumber(i, {
|
|
610
|
+
unit: "day"
|
|
611
|
+
});
|
|
612
|
+
case "iii":
|
|
613
|
+
return n.day(r, {
|
|
614
|
+
width: "abbreviated",
|
|
615
|
+
context: "formatting"
|
|
616
|
+
});
|
|
617
|
+
case "iiiii":
|
|
618
|
+
return n.day(r, {
|
|
619
|
+
width: "narrow",
|
|
620
|
+
context: "formatting"
|
|
621
|
+
});
|
|
622
|
+
case "iiiiii":
|
|
623
|
+
return n.day(r, {
|
|
624
|
+
width: "short",
|
|
625
|
+
context: "formatting"
|
|
626
|
+
});
|
|
627
|
+
case "iiii":
|
|
628
|
+
default:
|
|
629
|
+
return n.day(r, {
|
|
630
|
+
width: "wide",
|
|
631
|
+
context: "formatting"
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
// AM or PM
|
|
636
|
+
a: function(t, a, n) {
|
|
637
|
+
var r = t.getUTCHours(), i = r / 12 >= 1 ? "pm" : "am";
|
|
638
|
+
switch (a) {
|
|
639
|
+
case "a":
|
|
640
|
+
case "aa":
|
|
641
|
+
return n.dayPeriod(i, {
|
|
642
|
+
width: "abbreviated",
|
|
643
|
+
context: "formatting"
|
|
644
|
+
});
|
|
645
|
+
case "aaa":
|
|
646
|
+
return n.dayPeriod(i, {
|
|
647
|
+
width: "abbreviated",
|
|
648
|
+
context: "formatting"
|
|
649
|
+
}).toLowerCase();
|
|
650
|
+
case "aaaaa":
|
|
651
|
+
return n.dayPeriod(i, {
|
|
652
|
+
width: "narrow",
|
|
653
|
+
context: "formatting"
|
|
654
|
+
});
|
|
655
|
+
case "aaaa":
|
|
656
|
+
default:
|
|
657
|
+
return n.dayPeriod(i, {
|
|
658
|
+
width: "wide",
|
|
659
|
+
context: "formatting"
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
// AM, PM, midnight, noon
|
|
664
|
+
b: function(t, a, n) {
|
|
665
|
+
var r = t.getUTCHours(), i;
|
|
666
|
+
switch (r === 12 ? i = D.noon : r === 0 ? i = D.midnight : i = r / 12 >= 1 ? "pm" : "am", a) {
|
|
667
|
+
case "b":
|
|
668
|
+
case "bb":
|
|
669
|
+
return n.dayPeriod(i, {
|
|
670
|
+
width: "abbreviated",
|
|
671
|
+
context: "formatting"
|
|
672
|
+
});
|
|
673
|
+
case "bbb":
|
|
674
|
+
return n.dayPeriod(i, {
|
|
675
|
+
width: "abbreviated",
|
|
676
|
+
context: "formatting"
|
|
677
|
+
}).toLowerCase();
|
|
678
|
+
case "bbbbb":
|
|
679
|
+
return n.dayPeriod(i, {
|
|
680
|
+
width: "narrow",
|
|
681
|
+
context: "formatting"
|
|
682
|
+
});
|
|
683
|
+
case "bbbb":
|
|
684
|
+
default:
|
|
685
|
+
return n.dayPeriod(i, {
|
|
686
|
+
width: "wide",
|
|
687
|
+
context: "formatting"
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
// in the morning, in the afternoon, in the evening, at night
|
|
692
|
+
B: function(t, a, n) {
|
|
693
|
+
var r = t.getUTCHours(), i;
|
|
694
|
+
switch (r >= 17 ? i = D.evening : r >= 12 ? i = D.afternoon : r >= 4 ? i = D.morning : i = D.night, a) {
|
|
695
|
+
case "B":
|
|
696
|
+
case "BB":
|
|
697
|
+
case "BBB":
|
|
698
|
+
return n.dayPeriod(i, {
|
|
699
|
+
width: "abbreviated",
|
|
700
|
+
context: "formatting"
|
|
701
|
+
});
|
|
702
|
+
case "BBBBB":
|
|
703
|
+
return n.dayPeriod(i, {
|
|
704
|
+
width: "narrow",
|
|
705
|
+
context: "formatting"
|
|
706
|
+
});
|
|
707
|
+
case "BBBB":
|
|
708
|
+
default:
|
|
709
|
+
return n.dayPeriod(i, {
|
|
710
|
+
width: "wide",
|
|
711
|
+
context: "formatting"
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
// Hour [1-12]
|
|
716
|
+
h: function(t, a, n) {
|
|
717
|
+
if (a === "ho") {
|
|
718
|
+
var r = t.getUTCHours() % 12;
|
|
719
|
+
return r === 0 && (r = 12), n.ordinalNumber(r, {
|
|
720
|
+
unit: "hour"
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
return T.h(t, a);
|
|
724
|
+
},
|
|
725
|
+
// Hour [0-23]
|
|
726
|
+
H: function(t, a, n) {
|
|
727
|
+
return a === "Ho" ? n.ordinalNumber(t.getUTCHours(), {
|
|
728
|
+
unit: "hour"
|
|
729
|
+
}) : T.H(t, a);
|
|
730
|
+
},
|
|
731
|
+
// Hour [0-11]
|
|
732
|
+
K: function(t, a, n) {
|
|
733
|
+
var r = t.getUTCHours() % 12;
|
|
734
|
+
return a === "Ko" ? n.ordinalNumber(r, {
|
|
735
|
+
unit: "hour"
|
|
736
|
+
}) : c(r, a.length);
|
|
737
|
+
},
|
|
738
|
+
// Hour [1-24]
|
|
739
|
+
k: function(t, a, n) {
|
|
740
|
+
var r = t.getUTCHours();
|
|
741
|
+
return r === 0 && (r = 24), a === "ko" ? n.ordinalNumber(r, {
|
|
742
|
+
unit: "hour"
|
|
743
|
+
}) : c(r, a.length);
|
|
744
|
+
},
|
|
745
|
+
// Minute
|
|
746
|
+
m: function(t, a, n) {
|
|
747
|
+
return a === "mo" ? n.ordinalNumber(t.getUTCMinutes(), {
|
|
748
|
+
unit: "minute"
|
|
749
|
+
}) : T.m(t, a);
|
|
750
|
+
},
|
|
751
|
+
// Second
|
|
752
|
+
s: function(t, a, n) {
|
|
753
|
+
return a === "so" ? n.ordinalNumber(t.getUTCSeconds(), {
|
|
754
|
+
unit: "second"
|
|
755
|
+
}) : T.s(t, a);
|
|
756
|
+
},
|
|
757
|
+
// Fraction of second
|
|
758
|
+
S: function(t, a) {
|
|
759
|
+
return T.S(t, a);
|
|
760
|
+
},
|
|
761
|
+
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
762
|
+
X: function(t, a, n, r) {
|
|
763
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
764
|
+
if (o === 0)
|
|
765
|
+
return "Z";
|
|
766
|
+
switch (a) {
|
|
767
|
+
case "X":
|
|
768
|
+
return z(o);
|
|
769
|
+
case "XXXX":
|
|
770
|
+
case "XX":
|
|
771
|
+
return S(o);
|
|
772
|
+
case "XXXXX":
|
|
773
|
+
case "XXX":
|
|
774
|
+
default:
|
|
775
|
+
return S(o, ":");
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
779
|
+
x: function(t, a, n, r) {
|
|
780
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
781
|
+
switch (a) {
|
|
782
|
+
case "x":
|
|
783
|
+
return z(o);
|
|
784
|
+
case "xxxx":
|
|
785
|
+
case "xx":
|
|
786
|
+
return S(o);
|
|
787
|
+
case "xxxxx":
|
|
788
|
+
case "xxx":
|
|
789
|
+
default:
|
|
790
|
+
return S(o, ":");
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
// Timezone (GMT)
|
|
794
|
+
O: function(t, a, n, r) {
|
|
795
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
796
|
+
switch (a) {
|
|
797
|
+
case "O":
|
|
798
|
+
case "OO":
|
|
799
|
+
case "OOO":
|
|
800
|
+
return "GMT" + j(o, ":");
|
|
801
|
+
case "OOOO":
|
|
802
|
+
default:
|
|
803
|
+
return "GMT" + S(o, ":");
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
// Timezone (specific non-location)
|
|
807
|
+
z: function(t, a, n, r) {
|
|
808
|
+
var i = r._originalDate || t, o = i.getTimezoneOffset();
|
|
809
|
+
switch (a) {
|
|
810
|
+
case "z":
|
|
811
|
+
case "zz":
|
|
812
|
+
case "zzz":
|
|
813
|
+
return "GMT" + j(o, ":");
|
|
814
|
+
case "zzzz":
|
|
815
|
+
default:
|
|
816
|
+
return "GMT" + S(o, ":");
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
// Seconds timestamp
|
|
820
|
+
t: function(t, a, n, r) {
|
|
821
|
+
var i = r._originalDate || t, o = Math.floor(i.getTime() / 1e3);
|
|
822
|
+
return c(o, a.length);
|
|
823
|
+
},
|
|
824
|
+
// Milliseconds timestamp
|
|
825
|
+
T: function(t, a, n, r) {
|
|
826
|
+
var i = r._originalDate || t, o = i.getTime();
|
|
827
|
+
return c(o, a.length);
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
function j(e, t) {
|
|
831
|
+
var a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
|
|
832
|
+
if (i === 0)
|
|
833
|
+
return a + String(r);
|
|
834
|
+
var o = t;
|
|
835
|
+
return a + String(r) + o + c(i, 2);
|
|
836
|
+
}
|
|
837
|
+
function z(e, t) {
|
|
838
|
+
if (e % 60 === 0) {
|
|
839
|
+
var a = e > 0 ? "-" : "+";
|
|
840
|
+
return a + c(Math.abs(e) / 60, 2);
|
|
841
|
+
}
|
|
842
|
+
return S(e, t);
|
|
843
|
+
}
|
|
844
|
+
function S(e, t) {
|
|
845
|
+
var a = t || "", n = e > 0 ? "-" : "+", r = Math.abs(e), i = c(Math.floor(r / 60), 2), o = c(r % 60, 2);
|
|
846
|
+
return n + i + a + o;
|
|
847
|
+
}
|
|
848
|
+
const Pt = Ot;
|
|
849
|
+
var A = function(t, a) {
|
|
850
|
+
switch (t) {
|
|
851
|
+
case "P":
|
|
852
|
+
return a.date({
|
|
853
|
+
width: "short"
|
|
854
|
+
});
|
|
855
|
+
case "PP":
|
|
856
|
+
return a.date({
|
|
857
|
+
width: "medium"
|
|
858
|
+
});
|
|
859
|
+
case "PPP":
|
|
860
|
+
return a.date({
|
|
861
|
+
width: "long"
|
|
862
|
+
});
|
|
863
|
+
case "PPPP":
|
|
864
|
+
default:
|
|
865
|
+
return a.date({
|
|
866
|
+
width: "full"
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
}, K = function(t, a) {
|
|
870
|
+
switch (t) {
|
|
871
|
+
case "p":
|
|
872
|
+
return a.time({
|
|
873
|
+
width: "short"
|
|
874
|
+
});
|
|
875
|
+
case "pp":
|
|
876
|
+
return a.time({
|
|
877
|
+
width: "medium"
|
|
878
|
+
});
|
|
879
|
+
case "ppp":
|
|
880
|
+
return a.time({
|
|
881
|
+
width: "long"
|
|
882
|
+
});
|
|
883
|
+
case "pppp":
|
|
884
|
+
default:
|
|
885
|
+
return a.time({
|
|
886
|
+
width: "full"
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
}, Ut = function(t, a) {
|
|
890
|
+
var n = t.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
891
|
+
if (!i)
|
|
892
|
+
return A(t, a);
|
|
893
|
+
var o;
|
|
894
|
+
switch (r) {
|
|
895
|
+
case "P":
|
|
896
|
+
o = a.dateTime({
|
|
897
|
+
width: "short"
|
|
898
|
+
});
|
|
899
|
+
break;
|
|
900
|
+
case "PP":
|
|
901
|
+
o = a.dateTime({
|
|
902
|
+
width: "medium"
|
|
903
|
+
});
|
|
904
|
+
break;
|
|
905
|
+
case "PPP":
|
|
906
|
+
o = a.dateTime({
|
|
907
|
+
width: "long"
|
|
908
|
+
});
|
|
909
|
+
break;
|
|
910
|
+
case "PPPP":
|
|
911
|
+
default:
|
|
912
|
+
o = a.dateTime({
|
|
913
|
+
width: "full"
|
|
914
|
+
});
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
return o.replace("{{date}}", A(r, a)).replace("{{time}}", K(i, a));
|
|
918
|
+
}, Wt = {
|
|
919
|
+
p: K,
|
|
920
|
+
P: Ut
|
|
921
|
+
};
|
|
922
|
+
const Ft = Wt;
|
|
923
|
+
function Et(e) {
|
|
924
|
+
var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
925
|
+
return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
|
|
926
|
+
}
|
|
927
|
+
var Yt = ["D", "DD"], _t = ["YY", "YYYY"];
|
|
928
|
+
function Lt(e) {
|
|
929
|
+
return Yt.indexOf(e) !== -1;
|
|
930
|
+
}
|
|
931
|
+
function Bt(e) {
|
|
932
|
+
return _t.indexOf(e) !== -1;
|
|
933
|
+
}
|
|
934
|
+
function Q(e, t, a) {
|
|
935
|
+
if (e === "YYYY")
|
|
936
|
+
throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
937
|
+
if (e === "YY")
|
|
938
|
+
throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
939
|
+
if (e === "D")
|
|
940
|
+
throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
941
|
+
if (e === "DD")
|
|
942
|
+
throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(a, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
|
|
943
|
+
}
|
|
944
|
+
var $t = {
|
|
945
|
+
lessThanXSeconds: {
|
|
946
|
+
one: "less than a second",
|
|
947
|
+
other: "less than {{count}} seconds"
|
|
948
|
+
},
|
|
949
|
+
xSeconds: {
|
|
950
|
+
one: "1 second",
|
|
951
|
+
other: "{{count}} seconds"
|
|
952
|
+
},
|
|
953
|
+
halfAMinute: "half a minute",
|
|
954
|
+
lessThanXMinutes: {
|
|
955
|
+
one: "less than a minute",
|
|
956
|
+
other: "less than {{count}} minutes"
|
|
957
|
+
},
|
|
958
|
+
xMinutes: {
|
|
959
|
+
one: "1 minute",
|
|
960
|
+
other: "{{count}} minutes"
|
|
961
|
+
},
|
|
962
|
+
aboutXHours: {
|
|
963
|
+
one: "about 1 hour",
|
|
964
|
+
other: "about {{count}} hours"
|
|
965
|
+
},
|
|
966
|
+
xHours: {
|
|
967
|
+
one: "1 hour",
|
|
968
|
+
other: "{{count}} hours"
|
|
969
|
+
},
|
|
970
|
+
xDays: {
|
|
971
|
+
one: "1 day",
|
|
972
|
+
other: "{{count}} days"
|
|
973
|
+
},
|
|
974
|
+
aboutXWeeks: {
|
|
975
|
+
one: "about 1 week",
|
|
976
|
+
other: "about {{count}} weeks"
|
|
977
|
+
},
|
|
978
|
+
xWeeks: {
|
|
979
|
+
one: "1 week",
|
|
980
|
+
other: "{{count}} weeks"
|
|
981
|
+
},
|
|
982
|
+
aboutXMonths: {
|
|
983
|
+
one: "about 1 month",
|
|
984
|
+
other: "about {{count}} months"
|
|
985
|
+
},
|
|
986
|
+
xMonths: {
|
|
987
|
+
one: "1 month",
|
|
988
|
+
other: "{{count}} months"
|
|
989
|
+
},
|
|
990
|
+
aboutXYears: {
|
|
991
|
+
one: "about 1 year",
|
|
992
|
+
other: "about {{count}} years"
|
|
993
|
+
},
|
|
994
|
+
xYears: {
|
|
995
|
+
one: "1 year",
|
|
996
|
+
other: "{{count}} years"
|
|
997
|
+
},
|
|
998
|
+
overXYears: {
|
|
999
|
+
one: "over 1 year",
|
|
1000
|
+
other: "over {{count}} years"
|
|
1001
|
+
},
|
|
1002
|
+
almostXYears: {
|
|
1003
|
+
one: "almost 1 year",
|
|
1004
|
+
other: "almost {{count}} years"
|
|
1005
|
+
}
|
|
1006
|
+
}, Nt = function(t, a, n) {
|
|
1007
|
+
var r, i = $t[t];
|
|
1008
|
+
return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", a.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1009
|
+
};
|
|
1010
|
+
const Ht = Nt;
|
|
1011
|
+
function q(e) {
|
|
1012
|
+
return function() {
|
|
1013
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.width ? String(t.width) : e.defaultWidth, n = e.formats[a] || e.formats[e.defaultWidth];
|
|
1014
|
+
return n;
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
var It = {
|
|
1018
|
+
full: "EEEE, MMMM do, y",
|
|
1019
|
+
long: "MMMM do, y",
|
|
1020
|
+
medium: "MMM d, y",
|
|
1021
|
+
short: "MM/dd/yyyy"
|
|
1022
|
+
}, qt = {
|
|
1023
|
+
full: "h:mm:ss a zzzz",
|
|
1024
|
+
long: "h:mm:ss a z",
|
|
1025
|
+
medium: "h:mm:ss a",
|
|
1026
|
+
short: "h:mm a"
|
|
1027
|
+
}, Rt = {
|
|
1028
|
+
full: "{{date}} 'at' {{time}}",
|
|
1029
|
+
long: "{{date}} 'at' {{time}}",
|
|
1030
|
+
medium: "{{date}}, {{time}}",
|
|
1031
|
+
short: "{{date}}, {{time}}"
|
|
1032
|
+
}, jt = {
|
|
1033
|
+
date: q({
|
|
1034
|
+
formats: It,
|
|
1035
|
+
defaultWidth: "full"
|
|
1036
|
+
}),
|
|
1037
|
+
time: q({
|
|
1038
|
+
formats: qt,
|
|
1039
|
+
defaultWidth: "full"
|
|
1040
|
+
}),
|
|
1041
|
+
dateTime: q({
|
|
1042
|
+
formats: Rt,
|
|
1043
|
+
defaultWidth: "full"
|
|
1044
|
+
})
|
|
1045
|
+
};
|
|
1046
|
+
const zt = jt;
|
|
1047
|
+
var At = {
|
|
1048
|
+
lastWeek: "'last' eeee 'at' p",
|
|
1049
|
+
yesterday: "'yesterday at' p",
|
|
1050
|
+
today: "'today at' p",
|
|
1051
|
+
tomorrow: "'tomorrow at' p",
|
|
1052
|
+
nextWeek: "eeee 'at' p",
|
|
1053
|
+
other: "P"
|
|
1054
|
+
}, Qt = function(t, a, n, r) {
|
|
1055
|
+
return At[t];
|
|
1056
|
+
};
|
|
1057
|
+
const Xt = Qt;
|
|
1058
|
+
function W(e) {
|
|
1059
|
+
return function(t, a) {
|
|
1060
|
+
var n = a != null && a.context ? String(a.context) : "standalone", r;
|
|
1061
|
+
if (n === "formatting" && e.formattingValues) {
|
|
1062
|
+
var i = e.defaultFormattingWidth || e.defaultWidth, o = a != null && a.width ? String(a.width) : i;
|
|
1063
|
+
r = e.formattingValues[o] || e.formattingValues[i];
|
|
1064
|
+
} else {
|
|
1065
|
+
var d = e.defaultWidth, l = a != null && a.width ? String(a.width) : e.defaultWidth;
|
|
1066
|
+
r = e.values[l] || e.values[d];
|
|
1067
|
+
}
|
|
1068
|
+
var h = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1069
|
+
return r[h];
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
var Gt = {
|
|
1073
|
+
narrow: ["B", "A"],
|
|
1074
|
+
abbreviated: ["BC", "AD"],
|
|
1075
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
1076
|
+
}, Vt = {
|
|
1077
|
+
narrow: ["1", "2", "3", "4"],
|
|
1078
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1079
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1080
|
+
}, Jt = {
|
|
1081
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1082
|
+
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
1083
|
+
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
1084
|
+
}, Kt = {
|
|
1085
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1086
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1087
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1088
|
+
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1089
|
+
}, Zt = {
|
|
1090
|
+
narrow: {
|
|
1091
|
+
am: "a",
|
|
1092
|
+
pm: "p",
|
|
1093
|
+
midnight: "mi",
|
|
1094
|
+
noon: "n",
|
|
1095
|
+
morning: "morning",
|
|
1096
|
+
afternoon: "afternoon",
|
|
1097
|
+
evening: "evening",
|
|
1098
|
+
night: "night"
|
|
1099
|
+
},
|
|
1100
|
+
abbreviated: {
|
|
1101
|
+
am: "AM",
|
|
1102
|
+
pm: "PM",
|
|
1103
|
+
midnight: "midnight",
|
|
1104
|
+
noon: "noon",
|
|
1105
|
+
morning: "morning",
|
|
1106
|
+
afternoon: "afternoon",
|
|
1107
|
+
evening: "evening",
|
|
1108
|
+
night: "night"
|
|
1109
|
+
},
|
|
1110
|
+
wide: {
|
|
1111
|
+
am: "a.m.",
|
|
1112
|
+
pm: "p.m.",
|
|
1113
|
+
midnight: "midnight",
|
|
1114
|
+
noon: "noon",
|
|
1115
|
+
morning: "morning",
|
|
1116
|
+
afternoon: "afternoon",
|
|
1117
|
+
evening: "evening",
|
|
1118
|
+
night: "night"
|
|
1119
|
+
}
|
|
1120
|
+
}, te = {
|
|
1121
|
+
narrow: {
|
|
1122
|
+
am: "a",
|
|
1123
|
+
pm: "p",
|
|
1124
|
+
midnight: "mi",
|
|
1125
|
+
noon: "n",
|
|
1126
|
+
morning: "in the morning",
|
|
1127
|
+
afternoon: "in the afternoon",
|
|
1128
|
+
evening: "in the evening",
|
|
1129
|
+
night: "at night"
|
|
1130
|
+
},
|
|
1131
|
+
abbreviated: {
|
|
1132
|
+
am: "AM",
|
|
1133
|
+
pm: "PM",
|
|
1134
|
+
midnight: "midnight",
|
|
1135
|
+
noon: "noon",
|
|
1136
|
+
morning: "in the morning",
|
|
1137
|
+
afternoon: "in the afternoon",
|
|
1138
|
+
evening: "in the evening",
|
|
1139
|
+
night: "at night"
|
|
1140
|
+
},
|
|
1141
|
+
wide: {
|
|
1142
|
+
am: "a.m.",
|
|
1143
|
+
pm: "p.m.",
|
|
1144
|
+
midnight: "midnight",
|
|
1145
|
+
noon: "noon",
|
|
1146
|
+
morning: "in the morning",
|
|
1147
|
+
afternoon: "in the afternoon",
|
|
1148
|
+
evening: "in the evening",
|
|
1149
|
+
night: "at night"
|
|
1150
|
+
}
|
|
1151
|
+
}, ee = function(t, a) {
|
|
1152
|
+
var n = Number(t), r = n % 100;
|
|
1153
|
+
if (r > 20 || r < 10)
|
|
1154
|
+
switch (r % 10) {
|
|
1155
|
+
case 1:
|
|
1156
|
+
return n + "st";
|
|
1157
|
+
case 2:
|
|
1158
|
+
return n + "nd";
|
|
1159
|
+
case 3:
|
|
1160
|
+
return n + "rd";
|
|
1161
|
+
}
|
|
1162
|
+
return n + "th";
|
|
1163
|
+
}, ae = {
|
|
1164
|
+
ordinalNumber: ee,
|
|
1165
|
+
era: W({
|
|
1166
|
+
values: Gt,
|
|
1167
|
+
defaultWidth: "wide"
|
|
1168
|
+
}),
|
|
1169
|
+
quarter: W({
|
|
1170
|
+
values: Vt,
|
|
1171
|
+
defaultWidth: "wide",
|
|
1172
|
+
argumentCallback: function(t) {
|
|
1173
|
+
return t - 1;
|
|
1174
|
+
}
|
|
1175
|
+
}),
|
|
1176
|
+
month: W({
|
|
1177
|
+
values: Jt,
|
|
1178
|
+
defaultWidth: "wide"
|
|
1179
|
+
}),
|
|
1180
|
+
day: W({
|
|
1181
|
+
values: Kt,
|
|
1182
|
+
defaultWidth: "wide"
|
|
1183
|
+
}),
|
|
1184
|
+
dayPeriod: W({
|
|
1185
|
+
values: Zt,
|
|
1186
|
+
defaultWidth: "wide",
|
|
1187
|
+
formattingValues: te,
|
|
1188
|
+
defaultFormattingWidth: "wide"
|
|
1189
|
+
})
|
|
1190
|
+
};
|
|
1191
|
+
const ne = ae;
|
|
1192
|
+
function F(e) {
|
|
1193
|
+
return function(t) {
|
|
1194
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
|
|
1195
|
+
if (!i)
|
|
1196
|
+
return null;
|
|
1197
|
+
var o = i[0], d = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(d) ? ie(d, function(f) {
|
|
1198
|
+
return f.test(o);
|
|
1199
|
+
}) : re(d, function(f) {
|
|
1200
|
+
return f.test(o);
|
|
1201
|
+
}), h;
|
|
1202
|
+
h = e.valueCallback ? e.valueCallback(l) : l, h = a.valueCallback ? a.valueCallback(h) : h;
|
|
1203
|
+
var m = t.slice(o.length);
|
|
1204
|
+
return {
|
|
1205
|
+
value: h,
|
|
1206
|
+
rest: m
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
function re(e, t) {
|
|
1211
|
+
for (var a in e)
|
|
1212
|
+
if (e.hasOwnProperty(a) && t(e[a]))
|
|
1213
|
+
return a;
|
|
1214
|
+
}
|
|
1215
|
+
function ie(e, t) {
|
|
1216
|
+
for (var a = 0; a < e.length; a++)
|
|
1217
|
+
if (t(e[a]))
|
|
1218
|
+
return a;
|
|
1219
|
+
}
|
|
1220
|
+
function oe(e) {
|
|
1221
|
+
return function(t) {
|
|
1222
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
|
|
1223
|
+
if (!n)
|
|
1224
|
+
return null;
|
|
1225
|
+
var r = n[0], i = t.match(e.parsePattern);
|
|
1226
|
+
if (!i)
|
|
1227
|
+
return null;
|
|
1228
|
+
var o = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
1229
|
+
o = a.valueCallback ? a.valueCallback(o) : o;
|
|
1230
|
+
var d = t.slice(r.length);
|
|
1231
|
+
return {
|
|
1232
|
+
value: o,
|
|
1233
|
+
rest: d
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
var se = /^(\d+)(th|st|nd|rd)?/i, le = /\d+/i, de = {
|
|
1238
|
+
narrow: /^(b|a)/i,
|
|
1239
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1240
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1241
|
+
}, ue = {
|
|
1242
|
+
any: [/^b/i, /^(a|c)/i]
|
|
1243
|
+
}, ce = {
|
|
1244
|
+
narrow: /^[1234]/i,
|
|
1245
|
+
abbreviated: /^q[1234]/i,
|
|
1246
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1247
|
+
}, he = {
|
|
1248
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1249
|
+
}, fe = {
|
|
1250
|
+
narrow: /^[jfmasond]/i,
|
|
1251
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1252
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1253
|
+
}, me = {
|
|
1254
|
+
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],
|
|
1255
|
+
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]
|
|
1256
|
+
}, ge = {
|
|
1257
|
+
narrow: /^[smtwf]/i,
|
|
1258
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1259
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1260
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1261
|
+
}, ve = {
|
|
1262
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1263
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1264
|
+
}, pe = {
|
|
1265
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1266
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1267
|
+
}, be = {
|
|
1268
|
+
any: {
|
|
1269
|
+
am: /^a/i,
|
|
1270
|
+
pm: /^p/i,
|
|
1271
|
+
midnight: /^mi/i,
|
|
1272
|
+
noon: /^no/i,
|
|
1273
|
+
morning: /morning/i,
|
|
1274
|
+
afternoon: /afternoon/i,
|
|
1275
|
+
evening: /evening/i,
|
|
1276
|
+
night: /night/i
|
|
1277
|
+
}
|
|
1278
|
+
}, we = {
|
|
1279
|
+
ordinalNumber: oe({
|
|
1280
|
+
matchPattern: se,
|
|
1281
|
+
parsePattern: le,
|
|
1282
|
+
valueCallback: function(t) {
|
|
1283
|
+
return parseInt(t, 10);
|
|
1284
|
+
}
|
|
1285
|
+
}),
|
|
1286
|
+
era: F({
|
|
1287
|
+
matchPatterns: de,
|
|
1288
|
+
defaultMatchWidth: "wide",
|
|
1289
|
+
parsePatterns: ue,
|
|
1290
|
+
defaultParseWidth: "any"
|
|
1291
|
+
}),
|
|
1292
|
+
quarter: F({
|
|
1293
|
+
matchPatterns: ce,
|
|
1294
|
+
defaultMatchWidth: "wide",
|
|
1295
|
+
parsePatterns: he,
|
|
1296
|
+
defaultParseWidth: "any",
|
|
1297
|
+
valueCallback: function(t) {
|
|
1298
|
+
return t + 1;
|
|
1299
|
+
}
|
|
1300
|
+
}),
|
|
1301
|
+
month: F({
|
|
1302
|
+
matchPatterns: fe,
|
|
1303
|
+
defaultMatchWidth: "wide",
|
|
1304
|
+
parsePatterns: me,
|
|
1305
|
+
defaultParseWidth: "any"
|
|
1306
|
+
}),
|
|
1307
|
+
day: F({
|
|
1308
|
+
matchPatterns: ge,
|
|
1309
|
+
defaultMatchWidth: "wide",
|
|
1310
|
+
parsePatterns: ve,
|
|
1311
|
+
defaultParseWidth: "any"
|
|
1312
|
+
}),
|
|
1313
|
+
dayPeriod: F({
|
|
1314
|
+
matchPatterns: pe,
|
|
1315
|
+
defaultMatchWidth: "any",
|
|
1316
|
+
parsePatterns: be,
|
|
1317
|
+
defaultParseWidth: "any"
|
|
1318
|
+
})
|
|
1319
|
+
};
|
|
1320
|
+
const ye = we;
|
|
1321
|
+
var xe = {
|
|
1322
|
+
code: "en-US",
|
|
1323
|
+
formatDistance: Ht,
|
|
1324
|
+
formatLong: zt,
|
|
1325
|
+
formatRelative: Xt,
|
|
1326
|
+
localize: ne,
|
|
1327
|
+
match: ye,
|
|
1328
|
+
options: {
|
|
1329
|
+
weekStartsOn: 0,
|
|
1330
|
+
firstWeekContainsDate: 1
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
const Te = xe;
|
|
1334
|
+
var Ce = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Se = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ke = /^'([^]*?)'?$/, De = /''/g, Me = /[a-zA-Z]/;
|
|
1335
|
+
function Oe(e, t, a) {
|
|
1336
|
+
var n, r, i, o, d, l, h, m, f, p, g, w, M, C;
|
|
1337
|
+
v(2, arguments);
|
|
1338
|
+
var N = String(t), O = $(), P = (n = (r = void 0) !== null && r !== void 0 ? r : O.locale) !== null && n !== void 0 ? n : Te, H = k((i = (o = (d = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && d !== void 0 ? d : O.firstWeekContainsDate) !== null && o !== void 0 ? o : (h = O.locale) === null || h === void 0 || (m = h.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
1339
|
+
if (!(H >= 1 && H <= 7))
|
|
1340
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1341
|
+
var I = k((f = (p = (g = (w = void 0) !== null && w !== void 0 ? w : void 0) !== null && g !== void 0 ? g : O.weekStartsOn) !== null && p !== void 0 ? p : (M = O.locale) === null || M === void 0 || (C = M.options) === null || C === void 0 ? void 0 : C.weekStartsOn) !== null && f !== void 0 ? f : 0);
|
|
1342
|
+
if (!(I >= 0 && I <= 6))
|
|
1343
|
+
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1344
|
+
if (!P.localize)
|
|
1345
|
+
throw new RangeError("locale must contain localize property");
|
|
1346
|
+
if (!P.formatLong)
|
|
1347
|
+
throw new RangeError("locale must contain formatLong property");
|
|
1348
|
+
var E = y(e);
|
|
1349
|
+
if (!gt(E))
|
|
1350
|
+
throw new RangeError("Invalid time value");
|
|
1351
|
+
var et = Et(E), at = pt(E, et), nt = {
|
|
1352
|
+
firstWeekContainsDate: H,
|
|
1353
|
+
weekStartsOn: I,
|
|
1354
|
+
locale: P,
|
|
1355
|
+
_originalDate: E
|
|
1356
|
+
}, rt = N.match(Se).map(function(b) {
|
|
1357
|
+
var x = b[0];
|
|
1358
|
+
if (x === "p" || x === "P") {
|
|
1359
|
+
var Y = Ft[x];
|
|
1360
|
+
return Y(b, P.formatLong);
|
|
1361
|
+
}
|
|
1362
|
+
return b;
|
|
1363
|
+
}).join("").match(Ce).map(function(b) {
|
|
1364
|
+
if (b === "''")
|
|
1365
|
+
return "'";
|
|
1366
|
+
var x = b[0];
|
|
1367
|
+
if (x === "'")
|
|
1368
|
+
return Pe(b);
|
|
1369
|
+
var Y = Pt[x];
|
|
1370
|
+
if (Y)
|
|
1371
|
+
return Bt(b) && Q(b, t, String(e)), Lt(b) && Q(b, t, String(e)), Y(at, b, P.localize, nt);
|
|
1372
|
+
if (x.match(Me))
|
|
1373
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + x + "`");
|
|
1374
|
+
return b;
|
|
1375
|
+
}).join("");
|
|
1376
|
+
return rt;
|
|
1377
|
+
}
|
|
1378
|
+
function Pe(e) {
|
|
1379
|
+
var t = e.match(ke);
|
|
1380
|
+
return t ? t[1].replace(De, "'") : e;
|
|
1381
|
+
}
|
|
1382
|
+
class Z {
|
|
1383
|
+
constructor() {
|
|
1384
|
+
}
|
|
1385
|
+
static dateToFormatedString(t, a) {
|
|
1386
|
+
const n = a ? Oe(t, a) : t.toLocaleDateString("en-gb"), r = t.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
|
|
1387
|
+
return `${n}, ${r}`;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
class tt {
|
|
1391
|
+
constructor() {
|
|
1392
|
+
}
|
|
1393
|
+
static format(t, a) {
|
|
1394
|
+
let n = `${a} ${t}`;
|
|
1395
|
+
try {
|
|
1396
|
+
n = new Intl.NumberFormat("en-US", {
|
|
1397
|
+
style: "currency",
|
|
1398
|
+
currency: t
|
|
1399
|
+
}).format(a);
|
|
1400
|
+
} catch (r) {
|
|
1401
|
+
}
|
|
1402
|
+
return n;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
const Ue = (e) => s(
|
|
1406
|
+
"div",
|
|
1407
|
+
{ class: "data-transaction" },
|
|
1408
|
+
s("p", null, e.productType),
|
|
1409
|
+
s(
|
|
1410
|
+
"p",
|
|
1411
|
+
{ class: "text-style text-style-status" },
|
|
1412
|
+
s("span", { class: e.status.toLowerCase() }, e.status)
|
|
1413
|
+
),
|
|
1414
|
+
s(
|
|
1415
|
+
"p",
|
|
1416
|
+
{ class: "date" },
|
|
1417
|
+
e.transId,
|
|
1418
|
+
" | ",
|
|
1419
|
+
Z.dateToFormatedString(new Date(e.created), e.dateformat)
|
|
1420
|
+
),
|
|
1421
|
+
s(
|
|
1422
|
+
"p",
|
|
1423
|
+
{ class: "text-style" },
|
|
1424
|
+
tt.format(e.currency, e.realAmount),
|
|
1425
|
+
" "
|
|
1426
|
+
)
|
|
1427
|
+
), We = (e) => s(
|
|
1428
|
+
"div",
|
|
1429
|
+
{ class: "page-size" },
|
|
1430
|
+
s("span", null, u.translate("show", e.language)),
|
|
1431
|
+
e.pageSizes.map((t) => s("button", { class: e.currentPageSize === t ? "active" : "", onClick: () => e.changePageSize(t) }, t))
|
|
1432
|
+
), Fe = ({ from: e, to: t, applyFilters: a, language: n }) => {
|
|
1433
|
+
let r, i;
|
|
1434
|
+
const o = () => {
|
|
1435
|
+
e = r.value;
|
|
1436
|
+
}, d = () => {
|
|
1437
|
+
t = i.value;
|
|
1438
|
+
};
|
|
1439
|
+
return s(
|
|
1440
|
+
"div",
|
|
1441
|
+
{ class: "period" },
|
|
1442
|
+
s(
|
|
1443
|
+
"div",
|
|
1444
|
+
{ class: "period-content" },
|
|
1445
|
+
s(
|
|
1446
|
+
"div",
|
|
1447
|
+
{ class: "date-input" },
|
|
1448
|
+
s("vaadin-date-picker", { value: e, ref: (l) => r = l, label: u.translate("from", n), onChange: o })
|
|
1449
|
+
),
|
|
1450
|
+
s(
|
|
1451
|
+
"span",
|
|
1452
|
+
null,
|
|
1453
|
+
s(
|
|
1454
|
+
"svg",
|
|
1455
|
+
{ width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
1456
|
+
s("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" })
|
|
1457
|
+
)
|
|
1458
|
+
),
|
|
1459
|
+
s(
|
|
1460
|
+
"div",
|
|
1461
|
+
{ class: "date-input" },
|
|
1462
|
+
s("vaadin-date-picker", { value: t, ref: (l) => i = l, label: u.translate("to", n), onChange: d })
|
|
1463
|
+
),
|
|
1464
|
+
s("button", { class: "filter-btn", onClick: () => a(e, t) }, u.translate("filter", n))
|
|
1465
|
+
)
|
|
1466
|
+
);
|
|
1467
|
+
}, Ee = ({ source: e, language: t, dateformat: a }) => {
|
|
1468
|
+
const n = [
|
|
1469
|
+
{ name: u.translate("transactionId", t) },
|
|
1470
|
+
{
|
|
1471
|
+
name: u.translate("date", t)
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: u.translate("amount", t)
|
|
1475
|
+
},
|
|
1476
|
+
{ name: u.translate("productType", t) },
|
|
1477
|
+
{
|
|
1478
|
+
name: u.translate("status", t)
|
|
1479
|
+
}
|
|
1480
|
+
];
|
|
1481
|
+
return s(
|
|
1482
|
+
"table",
|
|
1483
|
+
null,
|
|
1484
|
+
s(
|
|
1485
|
+
"thead",
|
|
1486
|
+
null,
|
|
1487
|
+
s("tr", null, n.map((r) => s("th", null, r.name)))
|
|
1488
|
+
),
|
|
1489
|
+
s("tbody", null, e.map((r) => s(
|
|
1490
|
+
"tr",
|
|
1491
|
+
null,
|
|
1492
|
+
s("td", null, r.transId),
|
|
1493
|
+
s("td", null, Z.dateToFormatedString(new Date(r.created), a)),
|
|
1494
|
+
s(
|
|
1495
|
+
"td",
|
|
1496
|
+
null,
|
|
1497
|
+
tt.format(r.currency, r.realAmount),
|
|
1498
|
+
" "
|
|
1499
|
+
),
|
|
1500
|
+
s("td", null, r.productType),
|
|
1501
|
+
s(
|
|
1502
|
+
"td",
|
|
1503
|
+
null,
|
|
1504
|
+
s("span", { class: r.status.toLowerCase() }, r.status)
|
|
1505
|
+
)
|
|
1506
|
+
)))
|
|
1507
|
+
);
|
|
1508
|
+
};
|
|
1509
|
+
function X(e, t) {
|
|
1510
|
+
if (e) {
|
|
1511
|
+
const a = document.createElement("style");
|
|
1512
|
+
a.innerHTML = t, e.appendChild(a);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
function G(e, t) {
|
|
1516
|
+
const a = new URL(t);
|
|
1517
|
+
fetch(a.href).then((n) => n.text()).then((n) => {
|
|
1518
|
+
const r = document.createElement("style");
|
|
1519
|
+
r.innerHTML = n, e && e.appendChild(r);
|
|
1520
|
+
}).catch((n) => {
|
|
1521
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
1522
|
+
});
|
|
1523
|
+
}
|
|
1524
|
+
function Ye(e, t, a) {
|
|
1525
|
+
if (window.emMessageBus) {
|
|
1526
|
+
const n = document.createElement("style");
|
|
1527
|
+
window.emMessageBus.subscribe(t, (r) => {
|
|
1528
|
+
n.innerHTML = r, e && e.appendChild(n);
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
const _e = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}', Le = _e, Be = class {
|
|
1533
|
+
constructor(e) {
|
|
1534
|
+
st(this, e), this.pageSizes = [10, 25, 50], this.pagination = null, this.endpoint = void 0, this.session = void 0, this.language = u.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.dateFormat = "", this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
|
|
1535
|
+
}
|
|
1536
|
+
watchMultiple() {
|
|
1537
|
+
this.loadTransactions();
|
|
1538
|
+
}
|
|
1539
|
+
handleClientStylingChange(e, t) {
|
|
1540
|
+
e != t && X(this.stylingContainer, this.clientStyling);
|
|
1541
|
+
}
|
|
1542
|
+
handleClientStylingUrlChange(e, t) {
|
|
1543
|
+
e != t && this.clientStylingUrl && G(this.stylingContainer, this.clientStylingUrl);
|
|
1544
|
+
}
|
|
1545
|
+
componentWillLoad() {
|
|
1546
|
+
return U(this, null, function* () {
|
|
1547
|
+
this.translationUrl && (yield u.loadCustomTranslations(this.translationUrl)), this.loadTransactions();
|
|
1548
|
+
});
|
|
1549
|
+
}
|
|
1550
|
+
componentDidLoad() {
|
|
1551
|
+
this.stylingContainer && (window.emMessageBus != null ? Ye(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && X(this.stylingContainer, this.clientStyling), this.clientStylingUrl && G(this.stylingContainer, this.clientStylingUrl)));
|
|
1552
|
+
}
|
|
1553
|
+
componentDidRender() {
|
|
1554
|
+
this.getComponentHeight();
|
|
1555
|
+
}
|
|
1556
|
+
getComponentHeight() {
|
|
1557
|
+
var e;
|
|
1558
|
+
if (this.mobile) {
|
|
1559
|
+
let t = this.el.getBoundingClientRect().height - ((e = this.el.shadowRoot.querySelector(".table")) === null || e === void 0 ? void 0 : e.getBoundingClientRect().y);
|
|
1560
|
+
this.el.style.setProperty("--heightScrollableContainer", t + "px");
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
setHeightTableProperty() {
|
|
1564
|
+
let e = this.getComponentHeight();
|
|
1565
|
+
this.el.style.setProperty("--heightScrollableContainer", e + "px");
|
|
1566
|
+
}
|
|
1567
|
+
changeTransactionsType(e) {
|
|
1568
|
+
this.type = e;
|
|
1569
|
+
}
|
|
1570
|
+
changePageSize(e) {
|
|
1571
|
+
this.pageSize = e;
|
|
1572
|
+
}
|
|
1573
|
+
prev() {
|
|
1574
|
+
var e;
|
|
1575
|
+
!((e = this.pagination) === null || e === void 0) && e.previous && this.page--;
|
|
1576
|
+
}
|
|
1577
|
+
next() {
|
|
1578
|
+
var e;
|
|
1579
|
+
!((e = this.pagination) === null || e === void 0) && e.next && this.page++;
|
|
1580
|
+
}
|
|
1581
|
+
applyFilters(e, t) {
|
|
1582
|
+
this.from = e ? new Date(e).toISOString() : null, this.to = t ? new Date(t).toISOString() : null, this.loadTransactions();
|
|
1583
|
+
}
|
|
1584
|
+
showFilter() {
|
|
1585
|
+
this.showMobileFilter = !this.showMobileFilter;
|
|
1586
|
+
}
|
|
1587
|
+
disconnectedCallback() {
|
|
1588
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
1589
|
+
}
|
|
1590
|
+
render() {
|
|
1591
|
+
var e;
|
|
1592
|
+
const t = R("../assets/filter.svg"), a = R("../assets/warning.svg");
|
|
1593
|
+
return s(lt, { key: "7346a5fe57d7bc3df7b3eb88f1a175b1bb4fed10" }, this.showLoader ? s(ft, null) : "", s("div", { key: "f58cb9c38d88702255a3f63731c152f79cc7c071", class: "wrapper", ref: (n) => this.stylingContainer = n }, s("div", { key: "ff79d6a34f9e4615fecd81f12cec228e567317b3", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, s("button", { key: "6c89c781087a854edb143e84fd684b72a6a5f8c1", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, u.translate("deposit", this.language)), s("button", { key: "15d1f9c89a1ffdfcbc0d8e5ebf375bcd2129e2aa", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, u.translate("withdrawals", this.language))), this.mobile ? "" : s(We, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (n) => this.changePageSize(n) }), this.mobile ? s("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, s("img", { src: t, alt: "Filter" }), u.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? s(Fe, { language: this.language, applyFilters: (n, r) => this.applyFilters(n, r) }) : "", ((e = this.transactions) === null || e === void 0 ? void 0 : e.length) > 0 ? s("div", { class: "table" }, this.mobile ? s("div", { class: "mobile-table" }, this.transactions.map((n) => s(Ue, Object.assign({}, n, { dateformat: this.dateFormat })))) : s(Ee, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : s("div", { class: "noData" }, s("img", { src: a, alt: "Warning" }), s("span", null, u.translate("noData", this.language))), s("div", { key: "5a0b142e2a02e0a24263a6b66ad36762c3934712", class: "pagination" }, s("button", { key: "2dcc9efdc61ed362e4845da8088bd5de458bab0f", onClick: () => this.prev() }, "<"), s("button", { key: "acd4dfb619f6220bcbc9da932c6accf0e34c7df0", onClick: () => this.next() }, ">"))));
|
|
1594
|
+
}
|
|
1595
|
+
loadTransactions() {
|
|
1596
|
+
return U(this, null, function* () {
|
|
1597
|
+
this.showLoader = !0;
|
|
1598
|
+
try {
|
|
1599
|
+
const e = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, t = yield fetch(e, {
|
|
1600
|
+
headers: {
|
|
1601
|
+
"X-Sessionid": this.session,
|
|
1602
|
+
"Content-Type": "application/json"
|
|
1603
|
+
}
|
|
1604
|
+
});
|
|
1605
|
+
if (!t.ok) {
|
|
1606
|
+
const n = yield t.text();
|
|
1607
|
+
throw new Error(n);
|
|
1608
|
+
}
|
|
1609
|
+
const a = yield t.json();
|
|
1610
|
+
this.pagination = a.pagination, this.transactions = a.transactions;
|
|
1611
|
+
} catch (e) {
|
|
1612
|
+
console.error(e);
|
|
1613
|
+
} finally {
|
|
1614
|
+
this.showLoader = !1;
|
|
1615
|
+
}
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
getParams() {
|
|
1619
|
+
var e, t;
|
|
1620
|
+
const a = /* @__PURE__ */ new Date(), n = (this.page * this.pageSize).toString(), r = (e = this.from) !== null && e !== void 0 ? e : new Date(a.getFullYear(), a.getMonth(), 1).toISOString(), i = (t = this.to) !== null && t !== void 0 ? t : new Date(a.getFullYear(), a.getMonth() + 1, 0).toISOString();
|
|
1621
|
+
return `offset=${n}&endDate=${i}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`;
|
|
1622
|
+
}
|
|
1623
|
+
static get assetsDirs() {
|
|
1624
|
+
return ["../assets"];
|
|
1625
|
+
}
|
|
1626
|
+
get el() {
|
|
1627
|
+
return dt(this);
|
|
1628
|
+
}
|
|
1629
|
+
static get watchers() {
|
|
1630
|
+
return {
|
|
1631
|
+
page: ["watchMultiple"],
|
|
1632
|
+
type: ["watchMultiple"],
|
|
1633
|
+
session: ["watchMultiple"],
|
|
1634
|
+
userId: ["watchMultiple"],
|
|
1635
|
+
pageSize: ["watchMultiple"],
|
|
1636
|
+
clientStyling: ["handleClientStylingChange"],
|
|
1637
|
+
clientStylingUrl: ["handleClientStylingUrlChange"],
|
|
1638
|
+
showMobileFilter: ["getComponentHeight"]
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
Be.style = Le;
|
|
1643
|
+
export {
|
|
1644
|
+
Be as user_transaction_history
|
|
1645
|
+
};
|