@everymatrix/player-account-controller 1.94.70 → 1.94.71
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-CuzKwvFJ.cjs → GeneralLogout-BrPdifNC.cjs} +1 -1
- package/components/{GeneralLogout-B2LQ4Hfb.js → GeneralLogout-DwAhSRyE.js} +1 -1
- package/components/{GeneralLogout-DaiU3fG5.js → GeneralLogout-r12S10Va.js} +1 -1
- package/components/{PlayerAccountBettingHistory-lLzHfIfl.js → PlayerAccountBettingHistory-B7pqLVJm.js} +1 -1
- package/components/{PlayerAccountBettingHistory-Cm0ZlJcY.js → PlayerAccountBettingHistory-BFHDOqba.js} +1 -1
- package/components/{PlayerAccountBettingHistory-BtoldzIv.cjs → PlayerAccountBettingHistory-D-IotBOm.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-C7xc8qNj.cjs → PlayerAccountBiometrics-BPL0KXJr.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-DlGbAwlQ.js → PlayerAccountBiometrics-BPoq-quy.js} +2 -2
- package/components/{PlayerAccountBiometrics-CnikUSqZ.js → PlayerAccountBiometrics-DR7jsWOa.js} +2 -2
- package/components/{PlayerAccountBiometricsAction-C1PP8Duu.js → PlayerAccountBiometricsAction-BdKRr84M.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-r0JwY-G9.cjs → PlayerAccountBiometricsAction-CZYCA7S-.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-BZTIN3QL.js → PlayerAccountBiometricsAction-JEYPsrsV.js} +1 -1
- package/components/{PlayerAccountClosure-BTsdlA07.js → PlayerAccountClosure-BLRafiyx.js} +1 -1
- package/components/{PlayerAccountClosure-CwGKqmJe.js → PlayerAccountClosure-CkQksgNh.js} +1 -1
- package/components/{PlayerAccountClosure-LLEG0PhB.cjs → PlayerAccountClosure-ene8aHaP.cjs} +1 -1
- package/components/{PlayerAccountController-BMlv05_U.js → PlayerAccountController-CeMlhnJZ.js} +23 -23
- package/components/{PlayerAccountController-Bi-cHp3V.cjs → PlayerAccountController-DTKEX-nJ.cjs} +2 -2
- package/components/{PlayerAccountController-BBjbclbX.js → PlayerAccountController-xYrp9rxa.js} +23 -23
- package/components/{PlayerAccountGamingLimits-BmCS1nru.cjs → PlayerAccountGamingLimits-AIa-9g69.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-nJrGaAk2.js → PlayerAccountGamingLimits-DkLhAtF4.js} +2 -2
- package/components/{PlayerAccountGamingLimits-mTkzjZrW.js → PlayerAccountGamingLimits-Dnkjclf8.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-WEmVcCKs.cjs → PlayerAccountGamingLimitsConfirmationModal-Cz7sMFok.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DrG3TjZK.js → PlayerAccountGamingLimitsConfirmationModal-DwLzNivK.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-3-jg9eIr.js → PlayerAccountGamingLimitsConfirmationModal-UbOvc1oV.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-DAJf36Dx.cjs → PlayerAccountGamingLimitsGroupEdit-BQJapdjB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-3uxPrPph.js → PlayerAccountGamingLimitsGroupEdit-BhtxHYuw.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-Cy5fGusx.js → PlayerAccountGamingLimitsGroupEdit-DlbscoKg.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2-DQQJsAHI.js → PlayerAccountGamingLimitsHistory2-Bwr6O1y3.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-BfNCe0lZ.cjs → PlayerAccountGamingLimitsHistory2-DXFJGxpQ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Byd_8ju6.js → PlayerAccountGamingLimitsHistory2-Dsm1aEzM.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-L9CkeheR.cjs → PlayerAccountGamingLimitsInfoCard-CLL3siOv.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-SuDELy32.js → PlayerAccountGamingLimitsInfoCard-D5dDYX4X.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-N4BK07jJ.js → PlayerAccountGamingLimitsInfoCard-DrRZNEKQ.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BCbvyFYS.cjs → PlayerAccountGamingLimitsPage2Gm16-BaBOp1Eq.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CLESKOCP.js → PlayerAccountGamingLimitsPage2Gm16-Bom2Uj7f.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-B2znKC4Y.js → PlayerAccountGamingLimitsPage2Gm16-CvxRB0B3.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-DwyRlKNc.cjs → PlayerAccountGamingLimitsPopup-DXWTRWmy.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-1ity9PR8.js → PlayerAccountGamingLimitsPopup-DbOjKXnO.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BVR6SZIQ.js → PlayerAccountGamingLimitsPopup-ni_3BYDY.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-By-ZZBJR.js → PlayerAccountGamingLimitsWrapper2-CMvh8Luw.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-BTdztDOj.js → PlayerAccountGamingLimitsWrapper2-DQcBg1xw.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-C1D-0mtD.cjs → PlayerAccountGamingLimitsWrapper2-DyW9mxnk.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-BrBIofj3.cjs → PlayerAccountGeneralConfirmationModal-BkZrFgvE.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-CXWVpFbO.js → PlayerAccountGeneralConfirmationModal-CVJjfDhf.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DMv3WchZ.js → PlayerAccountGeneralConfirmationModal-YQdTV8LJ.js} +1 -1
- package/components/{PlayerAccountMenu-Bund2qTZ.js → PlayerAccountMenu-CgvSkyDi.js} +2 -2
- package/components/{PlayerAccountMenu-Dr980Gf7.js → PlayerAccountMenu-DHVikm_a.js} +2 -2
- package/components/{PlayerAccountMenu-CpvFDfQN.cjs → PlayerAccountMenu-DfChHnjH.cjs} +1 -1
- package/components/{PlayerAccountModal-DCAcKbX3.cjs → PlayerAccountModal-BKed2SEi.cjs} +1 -1
- package/components/{PlayerAccountModal-BrzeC-ZT.js → PlayerAccountModal-DqqXyYeo.js} +1 -1
- package/components/{PlayerAccountModal-CSJE7H1I.js → PlayerAccountModal-I1uSIiOc.js} +1 -1
- package/components/{PlayerAccountNotifications-KZVlISqB.js → PlayerAccountNotifications-BPOmR1zK.js} +1 -1
- package/components/{PlayerAccountNotifications-BM3Sopz0.js → PlayerAccountNotifications-DFXaZtuH.js} +1 -1
- package/components/{PlayerAccountNotifications-BQr71gpu.cjs → PlayerAccountNotifications-JOi0MHL4.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-Cv6zZXS9.js → PlayerAccountProductRestriction-BBSc1kmU.js} +3 -3
- package/components/{PlayerAccountProductRestriction-9rdtKgm8.js → PlayerAccountProductRestriction-CHv-VaSP.js} +3 -3
- package/components/{PlayerAccountProductRestriction-X1hP43BS.cjs → PlayerAccountProductRestriction-qjH3oD84.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-ctE5YOxG.js → PlayerAccountReviewFrequency-BlQejItw.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-BCSuEoXK.cjs → PlayerAccountReviewFrequency-DgXa7k0B.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-DbAWAe1N.js → PlayerAccountReviewFrequency-tv-20Pew.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-pkbB8cIv.cjs → PlayerAccountSelfExclusion-DDmBMrCd.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-KVJQikVB.js → PlayerAccountSelfExclusion-Do-LiW8V.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-Dk1PUmr5.js → PlayerAccountSelfExclusion-Dyzqj5BU.js} +2 -2
- package/components/{PlayerAccountTimeout-DLLsPWhV.js → PlayerAccountTimeout-Bxv3DaNe.js} +3 -3
- package/components/{PlayerAccountTimeout-BG9wwzhb.js → PlayerAccountTimeout-CP_UwmGp.js} +3 -3
- package/components/{PlayerAccountTimeout-rRTNDqat.cjs → PlayerAccountTimeout-RXjt3Xdx.cjs} +2 -2
- package/components/{PlayerAccountTransactionsHistory-BP5oHzua.js → PlayerAccountTransactionsHistory-Bk2sSuMW.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-CbiMtuTS.js → PlayerAccountTransactionsHistory-Cwip_Lsn.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-D2VnfyS_.cjs → PlayerAccountTransactionsHistory-CxYMDVgv.cjs} +1 -1
- package/components/{PlayerActiveBonuses-DWswlcut.js → PlayerActiveBonuses-Jcm2uqDq.js} +2 -2
- package/components/{PlayerActiveBonuses-BS7CYPeH.js → PlayerActiveBonuses-Or_8qfnb.js} +2 -2
- package/components/{PlayerActiveBonuses-waaMdjHw.cjs → PlayerActiveBonuses-vLI106qZ.cjs} +1 -1
- package/components/{PlayerBonusCard-DampKe8r.js → PlayerBonusCard-BfV1XriA.js} +2 -2
- package/components/{PlayerBonusCard-GRsNOWqi.cjs → PlayerBonusCard-C5e3JIKj.cjs} +1 -1
- package/components/{PlayerBonusCard-S5nX_NwG.js → PlayerBonusCard-D2WotppC.js} +2 -2
- package/components/{PlayerBonusHistory-DI1-ctFC.cjs → PlayerBonusHistory-BJVJITDT.cjs} +1 -1
- package/components/{PlayerBonusHistory-Ds1fXPxa.js → PlayerBonusHistory-BMdiA91U.js} +2 -2
- package/components/{PlayerBonusHistory-seg4Ujzi.js → PlayerBonusHistory-Gbq4UnDA.js} +2 -2
- package/components/{PlayerChangePassword-DtgtXUK4.cjs → PlayerChangePassword-0GlRmIkK.cjs} +1 -1
- package/components/{PlayerChangePassword-HjiT-oS2.js → PlayerChangePassword-BJZQlQqq.js} +1 -1
- package/components/{PlayerChangePassword-5t6NenTC.js → PlayerChangePassword-DXTBnhVK.js} +1 -1
- package/components/{PlayerDeposit-XoI5XEGq.js → PlayerDeposit-C9PGMdek.js} +1 -1
- package/components/{PlayerDeposit-Dd_2_gwb.cjs → PlayerDeposit-CXD_l20A.cjs} +1 -1
- package/components/{PlayerDeposit-BzJsRQiX.js → PlayerDeposit-ZTkQMNw2.js} +1 -1
- package/components/{PlayerGamingHistory-DX0xSUXv.js → PlayerGamingHistory-CCPHXkNI.js} +3 -3
- package/components/{PlayerGamingHistory-7u0jcoef.cjs → PlayerGamingHistory-C_j7MJwK.cjs} +1 -1
- package/components/{PlayerGamingHistory-DNXSCm6L.js → PlayerGamingHistory-DXzjtfwr.js} +3 -3
- package/components/{PlayerPendingWithdrawals-Da1n9BUM.js → PlayerPendingWithdrawals-BZNPWlLJ.js} +1 -1
- package/components/{PlayerPendingWithdrawals-CvMgcBPa.js → PlayerPendingWithdrawals-C07Zp-Hv.js} +1 -1
- package/components/{PlayerPendingWithdrawals-UUxEx7eq.cjs → PlayerPendingWithdrawals-DT7bbvCj.cjs} +1 -1
- package/components/{PlayerProfileInfo-C-cbxsNY.js → PlayerProfileInfo-CvTlRfbv.js} +3 -3
- package/components/{PlayerProfileInfo-Bg0sMRmm.js → PlayerProfileInfo-ekG43oWp.js} +3 -3
- package/components/{PlayerProfileInfo-B9HFIbTq.cjs → PlayerProfileInfo-mBEIxCff.cjs} +1 -1
- package/components/{PlayerRealityCheck-CWVOz333.js → PlayerRealityCheck-C-h7GhZ1.js} +1 -1
- package/components/{PlayerRealityCheck-CPGDoVDu.cjs → PlayerRealityCheck-C_1c4POY.cjs} +1 -1
- package/components/{PlayerRealityCheck-D0BGbr7Z.js → PlayerRealityCheck-MUS9F6kY.js} +1 -1
- package/components/{PlayerTransactionHistory-C_qrQTPT.js → PlayerTransactionHistory-Ca34wlxP.js} +1 -1
- package/components/{PlayerTransactionHistory-DJfu31eD.cjs → PlayerTransactionHistory-CjMj-Ben.cjs} +1 -1
- package/components/{PlayerTransactionHistory-Cj61dc3a.js → PlayerTransactionHistory-DN4i7ctL.js} +1 -1
- package/components/{PlayerWithdrawal-BXWFwLR7.js → PlayerWithdrawal-Buw2V_XY.js} +1 -1
- package/components/{PlayerWithdrawal-ClcML60q.cjs → PlayerWithdrawal-DodwOB5W.cjs} +1 -1
- package/components/{PlayerWithdrawal-CZb_bd0U.js → PlayerWithdrawal-_1rOE-Ki.js} +1 -1
- package/components/{QrSessionGenerator-bw0u5rco.js → QrSessionGenerator-B5hdP1NJ.js} +1 -1
- package/components/{QrSessionGenerator-DOgc9PXS.js → QrSessionGenerator-BJAJO54i.js} +1 -1
- package/components/{QrSessionGenerator-Bndzcquz.cjs → QrSessionGenerator-DzRcf7ec.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-2ff63899-B-5wP_ty.js → index-2ff63899-B-SHyDkB.js} +1 -1
- package/stencil/{index-2ff63899-BJlQJb9E.js → index-2ff63899-C4RDeFFL.js} +1 -1
- package/stencil/{index-2ff63899-C0l4gDXZ.cjs → index-2ff63899-qt1Vej8s.cjs} +1 -1
- package/stencil/{player-step-up-auth_2-CsB4lmme.cjs → player-step-up-auth_2--4edZ0-c.cjs} +5 -5
- package/stencil/{player-step-up-auth_2-DxwSUcsv.js → player-step-up-auth_2-C8kJebfy.js} +398 -268
- package/stencil/{player-step-up-auth_2-BdRKjI7I.js → player-step-up-auth_2-CulwZtfL.js} +375 -245
- package/stencil/user-deposit-withdrawal-Bm0x63hh.cjs +1 -0
- package/stencil/user-deposit-withdrawal-Cghsr4yK.js +25 -0
- package/stencil/user-deposit-withdrawal-DDn49nS7.js +7 -0
- package/stencil/user-deposit-withdrawal-BkZJMGHu.js +0 -7
- package/stencil/user-deposit-withdrawal-CGXnPp7g.js +0 -25
- package/stencil/user-deposit-withdrawal-DsnFb28y.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as Xe, h, F as Fe, g as at, H as ot } from "./index-2ff63899-B-
|
|
2
|
-
const
|
|
1
|
+
import { r as Xe, h, F as Fe, g as at, H as ot } from "./index-2ff63899-B-SHyDkB.js";
|
|
2
|
+
const Ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3
3
|
function Ie(e, t) {
|
|
4
4
|
if (e) {
|
|
5
5
|
const i = document.createElement("style");
|
|
@@ -10,23 +10,23 @@ function Ue(e, t) {
|
|
|
10
10
|
if (!e || !t)
|
|
11
11
|
return;
|
|
12
12
|
const i = new URL(t);
|
|
13
|
-
fetch(i.href).then((
|
|
13
|
+
fetch(i.href).then((n) => n.text()).then((n) => {
|
|
14
14
|
const p = document.createElement("style");
|
|
15
|
-
p.innerHTML =
|
|
16
|
-
}).catch((
|
|
17
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
15
|
+
p.innerHTML = n, e && e.appendChild(p);
|
|
16
|
+
}).catch((n) => {
|
|
17
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function Ke(e, t, i,
|
|
20
|
+
function Ke(e, t, i, n = !1) {
|
|
21
21
|
if (!window.emMessageBus)
|
|
22
22
|
return;
|
|
23
|
-
if (!("adoptedStyleSheets" in Document.prototype) || !
|
|
23
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
24
24
|
return i = st(e, t), i;
|
|
25
|
-
window[
|
|
25
|
+
window[Ae] || (window[Ae] = {}), i = dt(e, t);
|
|
26
26
|
const E = i.unsubscribe.bind(i), H = () => {
|
|
27
|
-
if (window[
|
|
28
|
-
const $ = window[
|
|
29
|
-
$.refCount > 1 ? $.refCount = $.refCount - 1 : delete window[
|
|
27
|
+
if (window[Ae][t]) {
|
|
28
|
+
const $ = window[Ae][t];
|
|
29
|
+
$.refCount > 1 ? $.refCount = $.refCount - 1 : delete window[Ae][t];
|
|
30
30
|
}
|
|
31
31
|
E();
|
|
32
32
|
};
|
|
@@ -34,22 +34,22 @@ function Ke(e, t, i, o = !1) {
|
|
|
34
34
|
}
|
|
35
35
|
function st(e, t) {
|
|
36
36
|
const i = document.createElement("style");
|
|
37
|
-
return window.emMessageBus.subscribe(t, (
|
|
38
|
-
e && (i.innerHTML =
|
|
37
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
38
|
+
e && (i.innerHTML = n, e.appendChild(i));
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
function dt(e, t) {
|
|
42
42
|
return window.emMessageBus.subscribe(t, (i) => {
|
|
43
43
|
if (!e)
|
|
44
44
|
return;
|
|
45
|
-
const
|
|
45
|
+
const n = e.getRootNode(), p = window[Ae];
|
|
46
46
|
let E = p[t] && p[t].sheet;
|
|
47
47
|
E ? p[t].refCount = p[t].refCount + 1 : (E = new CSSStyleSheet(), E.replaceSync(i), p[t] = {
|
|
48
48
|
sheet: E,
|
|
49
49
|
refCount: 1
|
|
50
50
|
});
|
|
51
|
-
const H =
|
|
52
|
-
H.includes(E) || (
|
|
51
|
+
const H = n.adoptedStyleSheets || [];
|
|
52
|
+
H.includes(E) || (n.adoptedStyleSheets = [...H, E]);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
const lt = "en", Ze = {
|
|
@@ -271,9 +271,9 @@ const lt = "en", Ze = {
|
|
|
271
271
|
}
|
|
272
272
|
}, qe = (e) => new Promise((t) => {
|
|
273
273
|
fetch(e).then((i) => i.json()).then((i) => {
|
|
274
|
-
Object.keys(i).forEach((
|
|
275
|
-
for (let p in i[
|
|
276
|
-
Ze[
|
|
274
|
+
Object.keys(i).forEach((n) => {
|
|
275
|
+
for (let p in i[n])
|
|
276
|
+
Ze[n][p] = i[n][p];
|
|
277
277
|
}), t(!0);
|
|
278
278
|
});
|
|
279
279
|
}), R = (e, t) => {
|
|
@@ -355,8 +355,8 @@ const lt = "en", Ze = {
|
|
|
355
355
|
else if (i && i.details === "gm.twofa.token_max_attempts_exceeded")
|
|
356
356
|
this.handleCloseWidget();
|
|
357
357
|
else {
|
|
358
|
-
const
|
|
359
|
-
throw new Error(
|
|
358
|
+
const n = i && i.message || `Failed to load config. Status: ${t.status}`;
|
|
359
|
+
throw new Error(n);
|
|
360
360
|
}
|
|
361
361
|
} catch (e) {
|
|
362
362
|
this.isLoading = !1, this.isValidating = !1, this.hasConfigErrors = !0, this.errorMessage = R("configError", this.language), console.error("Error loading 2FA config:", e);
|
|
@@ -367,8 +367,8 @@ const lt = "en", Ze = {
|
|
|
367
367
|
* Adjusts client time based on server offset.
|
|
368
368
|
*/
|
|
369
369
|
calculateTimeLeft() {
|
|
370
|
-
const e = new Date(this.expirationTime), t = new Date(this.serverTime), i = /* @__PURE__ */ new Date(),
|
|
371
|
-
this.expirationTimestamp = e.getTime() -
|
|
370
|
+
const e = new Date(this.expirationTime), t = new Date(this.serverTime), i = /* @__PURE__ */ new Date(), n = t.getTime() - i.getTime();
|
|
371
|
+
this.expirationTimestamp = e.getTime() - n;
|
|
372
372
|
const p = Date.now(), E = Math.max(0, Math.floor((this.expirationTimestamp - p) / 1e3));
|
|
373
373
|
this.timeLeft = E;
|
|
374
374
|
}
|
|
@@ -418,10 +418,10 @@ const lt = "en", Ze = {
|
|
|
418
418
|
* @param e - The clipboard event containing pasted data.
|
|
419
419
|
*/
|
|
420
420
|
handleOnPasteOtp(e) {
|
|
421
|
-
var t, i,
|
|
421
|
+
var t, i, n;
|
|
422
422
|
e.preventDefault();
|
|
423
423
|
const E = (((i = (t = e.clipboardData) === null || t === void 0 ? void 0 : t.getData("text")) === null || i === void 0 ? void 0 : i.trim()) || "").slice(0, this.config.inputLength).split("");
|
|
424
|
-
this.otp = [...E, ...Array(this.config.inputLength - E.length).fill("")], (
|
|
424
|
+
this.otp = [...E, ...Array(this.config.inputLength - E.length).fill("")], (n = this.otpInputs[E.length]) === null || n === void 0 || n.focus(), E.length === this.config.inputLength && this.submitOtp();
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
427
|
* Handles OTP input changes.
|
|
@@ -431,9 +431,9 @@ const lt = "en", Ze = {
|
|
|
431
431
|
* @param index - The index of the input field being updated.
|
|
432
432
|
*/
|
|
433
433
|
handleOtpInput(e, t) {
|
|
434
|
-
const i = e.target,
|
|
435
|
-
if (/^[a-z0-9]$/i.test(
|
|
436
|
-
this.updateOtpState(t,
|
|
434
|
+
const i = e.target, n = i.value;
|
|
435
|
+
if (/^[a-z0-9]$/i.test(n)) {
|
|
436
|
+
this.updateOtpState(t, n);
|
|
437
437
|
const p = this.otpInputs[t + 1];
|
|
438
438
|
p?.focus();
|
|
439
439
|
}
|
|
@@ -447,9 +447,9 @@ const lt = "en", Ze = {
|
|
|
447
447
|
* @param index - The index of the input field.
|
|
448
448
|
*/
|
|
449
449
|
handleKeyDown(e, t) {
|
|
450
|
-
const i = e.key,
|
|
450
|
+
const i = e.key, n = e.ctrlKey || e.metaKey;
|
|
451
451
|
if (/^[a-z0-9]$/i.test(i)) {
|
|
452
|
-
if (
|
|
452
|
+
if (n && i.toLowerCase() === "v")
|
|
453
453
|
return;
|
|
454
454
|
e.preventDefault(), this.updateOtpState(t, i);
|
|
455
455
|
const p = this.otpInputs[t + 1];
|
|
@@ -588,7 +588,7 @@ const lt = "en", Ze = {
|
|
|
588
588
|
render() {
|
|
589
589
|
return h("div", { key: "fda28b7364d091f4a13bfea34e5687756cb00b39", ref: (e) => this.stylingContainer = e }, this.showPopup && h("div", { key: "0166357e829d1f6bc35b88ce1605ca72a691f447", class: "OtpPopupOverlay" }, h("div", { key: "4c616fdeb7d5624a972865e93b0e84778e668995", class: `OtpPopupContent ${this.shakeError ? "shake" : ""}` }, this.isLoading ? h("div", { class: "OtpLoaderContainer" }, h("span", { class: "OtpLoader" })) : this.hasConfigErrors ? h("div", { class: "OtpError" }, h("div", { class: "OtpErrorHeader" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" })), h("h2", null, R("errorHeader", this.language))), h("p", null, this.errorMessage), h("button", { class: "OtpButton error", onClick: this.manualClosePopup, "aria-label": R("close", this.language) }, R("close", this.language))) : h(Fe, null, h("div", { class: "otp-description" }, this.showResendOtp ? h("p", { class: "OtpNoticeMessage", role: "alert" }, R("otpExpiredMessage", this.language)) : h(Fe, null, h("p", { class: this.isLastWarning ? "LastWarningMessage" : "" }, R(this.isLastWarning ? "popupMessageLastWarning" : "popupMessage", this.language)), this.hasErrors && h("p", { class: "OtpErrorMessage", role: "alert" }, this.errorMessage))), h("div", { class: "OtpFieldWrapper" }, h("h2", null, R("otpHeading", this.language)), h("div", { class: "OtpField" }, this.otp.map((e, t) => {
|
|
590
590
|
const i = this.config.inputLength % 2 === 0 && t === this.config.inputLength / 2 - 1;
|
|
591
|
-
return h("input", { key: t, ref: (
|
|
591
|
+
return h("input", { key: t, ref: (n) => this.setOtpInputRef(n, t), id: `otp-input-${t}`, type: "text", inputmode: this.mode, pattern: this.mode === "numeric" ? "[0-9]" : void 0, class: `otp-box ${i ? "space" : ""} ${e ? "filled" : ""} ${this.hasErrors ? "error" : ""}`, maxLength: 1, value: e, onInput: (n) => this.handleOtpInput(n, t), onKeyDown: (n) => this.handleKeyDown(n, t), onPaste: (n) => this.handleOnPasteOtp(n), disabled: this.inputDisabled, autoComplete: "off", "aria-label": `${R("otpDigit", this.language)} ${t + 1}`, "aria-invalid": this.hasErrors });
|
|
592
592
|
})), h("div", { class: "OtpTimerContainer" }, h("div", { class: `OtpTimer ${this.isLastWarning ? "warning" : ""} ${this.timeLeft < 60 ? "critical" : ""}`, role: "timer", "aria-live": "polite" }, h("svg", { class: "timer-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" })), h("span", { class: "timer-text" }, this.formatTime(this.timeLeft), " ", R("minutes", this.language))))), this.isSuccess && h("div", { class: "OtpSuccessOverlay" }, h("svg", { class: "success-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })), h("span", null, R("otpVerified", this.language))), h("div", { class: "OtpActionButtons" }, this.showResendOtp ? h("button", { class: "OtpButton primary", onClick: this.handleResendOtp, disabled: this.isLoading, "aria-label": R("resendOtp", this.language) }, R("resendOtp", this.language)) : h("button", { class: `OtpButton primary ${this.isValidating ? "loading" : ""}`, onClick: this.submitOtp, disabled: this.otp.join("").length !== this.config.inputLength || this.isValidating || this.isLoading, "aria-label": R("submit", this.language), "aria-busy": this.isValidating }, this.isValidating ? h(Fe, null, h("span", { class: "button-spinner" }), h("span", { class: "button-text" }, R("verifying", this.language))) : h("span", { class: "button-text" }, R("submit", this.language))), h("button", { class: "OtpButton secondary", onClick: this.manualClosePopup, disabled: this.isValidating, "aria-label": R("close", this.language) }, R("close", this.language)))))));
|
|
593
593
|
}
|
|
594
594
|
get el() {
|
|
@@ -707,9 +707,9 @@ const pt = "en", ft = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
|
|
|
707
707
|
}
|
|
708
708
|
}, gt = (e) => new Promise((t) => {
|
|
709
709
|
fetch(e).then((i) => i.json()).then((i) => {
|
|
710
|
-
Object.keys(i).forEach((
|
|
711
|
-
for (let p in i[
|
|
712
|
-
Qe[
|
|
710
|
+
Object.keys(i).forEach((n) => {
|
|
711
|
+
for (let p in i[n])
|
|
712
|
+
Qe[n][p] = i[n][p];
|
|
713
713
|
}), t(!0);
|
|
714
714
|
});
|
|
715
715
|
}), be = (e, t) => {
|
|
@@ -723,40 +723,40 @@ const pt = "en", ft = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
|
|
|
723
723
|
};
|
|
724
724
|
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Je = { exports: {} };
|
|
725
725
|
(function(e, t) {
|
|
726
|
-
(function(i,
|
|
727
|
-
e.exports =
|
|
726
|
+
(function(i, n) {
|
|
727
|
+
e.exports = n();
|
|
728
728
|
})(Ne, function() {
|
|
729
|
-
var i = 1e3,
|
|
730
|
-
var l = ["th", "st", "nd", "rd"],
|
|
731
|
-
return "[" + g + (l[(
|
|
732
|
-
} },
|
|
729
|
+
var i = 1e3, n = 6e4, p = 36e5, E = "millisecond", H = "second", $ = "minute", O = "hour", z = "day", we = "week", W = "month", Ce = "quarter", q = "year", re = "date", v = "Invalid Date", Y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, ue = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, ce = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(g) {
|
|
730
|
+
var l = ["th", "st", "nd", "rd"], a = g % 100;
|
|
731
|
+
return "[" + g + (l[(a - 20) % 10] || l[a] || l[0]) + "]";
|
|
732
|
+
} }, A = function(g, l, a) {
|
|
733
733
|
var u = String(g);
|
|
734
|
-
return !u || u.length >= l ? g : "" + Array(l + 1 - u.length).join(
|
|
735
|
-
}, ie = { s:
|
|
736
|
-
var l = -g.utcOffset(),
|
|
737
|
-
return (l <= 0 ? "+" : "-") +
|
|
738
|
-
}, m: function g(l,
|
|
739
|
-
if (l.date() <
|
|
740
|
-
return -g(
|
|
741
|
-
var u = 12 * (
|
|
742
|
-
return +(-(u + (
|
|
734
|
+
return !u || u.length >= l ? g : "" + Array(l + 1 - u.length).join(a) + g;
|
|
735
|
+
}, ie = { s: A, z: function(g) {
|
|
736
|
+
var l = -g.utcOffset(), a = Math.abs(l), u = Math.floor(a / 60), s = a % 60;
|
|
737
|
+
return (l <= 0 ? "+" : "-") + A(u, 2, "0") + ":" + A(s, 2, "0");
|
|
738
|
+
}, m: function g(l, a) {
|
|
739
|
+
if (l.date() < a.date())
|
|
740
|
+
return -g(a, l);
|
|
741
|
+
var u = 12 * (a.year() - l.year()) + (a.month() - l.month()), s = l.clone().add(u, W), m = a - s < 0, y = l.clone().add(u + (m ? -1 : 1), W);
|
|
742
|
+
return +(-(u + (a - s) / (m ? s - y : y - s)) || 0);
|
|
743
743
|
}, a: function(g) {
|
|
744
744
|
return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
|
|
745
745
|
}, p: function(g) {
|
|
746
|
-
return { M: W, y: q, w: we, d: z, D: re, h:
|
|
746
|
+
return { M: W, y: q, w: we, d: z, D: re, h: O, m: $, s: H, ms: E, Q: Ce }[g] || String(g || "").toLowerCase().replace(/s$/, "");
|
|
747
747
|
}, u: function(g) {
|
|
748
748
|
return g === void 0;
|
|
749
749
|
} }, ne = "en", Q = {};
|
|
750
750
|
Q[ne] = ce;
|
|
751
751
|
var he = "$isDayjsObject", Se = function(g) {
|
|
752
752
|
return g instanceof oe || !(!g || !g[he]);
|
|
753
|
-
}, ae = function g(l,
|
|
753
|
+
}, ae = function g(l, a, u) {
|
|
754
754
|
var s;
|
|
755
755
|
if (!l)
|
|
756
756
|
return ne;
|
|
757
757
|
if (typeof l == "string") {
|
|
758
758
|
var m = l.toLowerCase();
|
|
759
|
-
Q[m] && (s = m),
|
|
759
|
+
Q[m] && (s = m), a && (Q[m] = a, s = m);
|
|
760
760
|
var y = l.split("-");
|
|
761
761
|
if (!s && y.length > 1)
|
|
762
762
|
return g(y[0]);
|
|
@@ -768,61 +768,61 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
768
768
|
}, k = function(g, l) {
|
|
769
769
|
if (Se(g))
|
|
770
770
|
return g.clone();
|
|
771
|
-
var
|
|
772
|
-
return
|
|
773
|
-
},
|
|
774
|
-
|
|
771
|
+
var a = typeof l == "object" ? l : {};
|
|
772
|
+
return a.date = g, a.args = arguments, new oe(a);
|
|
773
|
+
}, M = ie;
|
|
774
|
+
M.l = ae, M.i = Se, M.w = function(g, l) {
|
|
775
775
|
return k(g, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
|
|
776
776
|
};
|
|
777
777
|
var oe = function() {
|
|
778
|
-
function g(
|
|
779
|
-
this.$L = ae(
|
|
778
|
+
function g(a) {
|
|
779
|
+
this.$L = ae(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[he] = !0;
|
|
780
780
|
}
|
|
781
781
|
var l = g.prototype;
|
|
782
|
-
return l.parse = function(
|
|
782
|
+
return l.parse = function(a) {
|
|
783
783
|
this.$d = function(u) {
|
|
784
784
|
var s = u.date, m = u.utc;
|
|
785
785
|
if (s === null)
|
|
786
786
|
return /* @__PURE__ */ new Date(NaN);
|
|
787
|
-
if (
|
|
787
|
+
if (M.u(s))
|
|
788
788
|
return /* @__PURE__ */ new Date();
|
|
789
789
|
if (s instanceof Date)
|
|
790
790
|
return new Date(s);
|
|
791
791
|
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
792
792
|
var y = s.match(Y);
|
|
793
793
|
if (y) {
|
|
794
|
-
var C = y[2] - 1 || 0,
|
|
795
|
-
return m ? new Date(Date.UTC(y[1], C, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0,
|
|
794
|
+
var C = y[2] - 1 || 0, x = (y[7] || "0").substring(0, 3);
|
|
795
|
+
return m ? new Date(Date.UTC(y[1], C, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, x)) : new Date(y[1], C, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, x);
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return new Date(s);
|
|
799
|
-
}(
|
|
799
|
+
}(a), this.init();
|
|
800
800
|
}, l.init = function() {
|
|
801
|
-
var
|
|
802
|
-
this.$y =
|
|
801
|
+
var a = this.$d;
|
|
802
|
+
this.$y = a.getFullYear(), this.$M = a.getMonth(), this.$D = a.getDate(), this.$W = a.getDay(), this.$H = a.getHours(), this.$m = a.getMinutes(), this.$s = a.getSeconds(), this.$ms = a.getMilliseconds();
|
|
803
803
|
}, l.$utils = function() {
|
|
804
|
-
return
|
|
804
|
+
return M;
|
|
805
805
|
}, l.isValid = function() {
|
|
806
806
|
return this.$d.toString() !== v;
|
|
807
|
-
}, l.isSame = function(
|
|
808
|
-
var s = k(
|
|
807
|
+
}, l.isSame = function(a, u) {
|
|
808
|
+
var s = k(a);
|
|
809
809
|
return this.startOf(u) <= s && s <= this.endOf(u);
|
|
810
|
-
}, l.isAfter = function(
|
|
811
|
-
return k(
|
|
812
|
-
}, l.isBefore = function(
|
|
813
|
-
return this.endOf(u) < k(
|
|
814
|
-
}, l.$g = function(
|
|
815
|
-
return
|
|
810
|
+
}, l.isAfter = function(a, u) {
|
|
811
|
+
return k(a) < this.startOf(u);
|
|
812
|
+
}, l.isBefore = function(a, u) {
|
|
813
|
+
return this.endOf(u) < k(a);
|
|
814
|
+
}, l.$g = function(a, u, s) {
|
|
815
|
+
return M.u(a) ? this[u] : this.set(s, a);
|
|
816
816
|
}, l.unix = function() {
|
|
817
817
|
return Math.floor(this.valueOf() / 1e3);
|
|
818
818
|
}, l.valueOf = function() {
|
|
819
819
|
return this.$d.getTime();
|
|
820
|
-
}, l.startOf = function(
|
|
821
|
-
var s = this, m = !!
|
|
822
|
-
var j =
|
|
820
|
+
}, l.startOf = function(a, u) {
|
|
821
|
+
var s = this, m = !!M.u(u) || u, y = M.p(a), C = function(se, U) {
|
|
822
|
+
var j = M.w(s.$u ? Date.UTC(s.$y, U, se) : new Date(s.$y, U, se), s);
|
|
823
823
|
return m ? j : j.endOf(z);
|
|
824
|
-
},
|
|
825
|
-
return
|
|
824
|
+
}, x = function(se, U) {
|
|
825
|
+
return M.w(s.toDate()[se].apply(s.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), s);
|
|
826
826
|
}, I = this.$W, N = this.$M, Z = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
|
|
827
827
|
switch (y) {
|
|
828
828
|
case q:
|
|
@@ -834,57 +834,57 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
834
834
|
return C(m ? Z - fe : Z + (6 - fe), N);
|
|
835
835
|
case z:
|
|
836
836
|
case re:
|
|
837
|
-
return
|
|
838
|
-
case
|
|
839
|
-
return
|
|
837
|
+
return x(Ee + "Hours", 0);
|
|
838
|
+
case O:
|
|
839
|
+
return x(Ee + "Minutes", 1);
|
|
840
840
|
case $:
|
|
841
|
-
return
|
|
841
|
+
return x(Ee + "Seconds", 2);
|
|
842
842
|
case H:
|
|
843
|
-
return
|
|
843
|
+
return x(Ee + "Milliseconds", 3);
|
|
844
844
|
default:
|
|
845
845
|
return this.clone();
|
|
846
846
|
}
|
|
847
|
-
}, l.endOf = function(
|
|
848
|
-
return this.startOf(
|
|
849
|
-
}, l.$set = function(
|
|
850
|
-
var s, m =
|
|
847
|
+
}, l.endOf = function(a) {
|
|
848
|
+
return this.startOf(a, !1);
|
|
849
|
+
}, l.$set = function(a, u) {
|
|
850
|
+
var s, m = M.p(a), y = "set" + (this.$u ? "UTC" : ""), C = (s = {}, s[z] = y + "Date", s[re] = y + "Date", s[W] = y + "Month", s[q] = y + "FullYear", s[O] = y + "Hours", s[$] = y + "Minutes", s[H] = y + "Seconds", s[E] = y + "Milliseconds", s)[m], x = m === z ? this.$D + (u - this.$W) : u;
|
|
851
851
|
if (m === W || m === q) {
|
|
852
852
|
var I = this.clone().set(re, 1);
|
|
853
|
-
I.$d[C](
|
|
853
|
+
I.$d[C](x), I.init(), this.$d = I.set(re, Math.min(this.$D, I.daysInMonth())).$d;
|
|
854
854
|
} else
|
|
855
|
-
C && this.$d[C](
|
|
855
|
+
C && this.$d[C](x);
|
|
856
856
|
return this.init(), this;
|
|
857
|
-
}, l.set = function(
|
|
858
|
-
return this.clone().$set(
|
|
859
|
-
}, l.get = function(
|
|
860
|
-
return this[
|
|
861
|
-
}, l.add = function(
|
|
857
|
+
}, l.set = function(a, u) {
|
|
858
|
+
return this.clone().$set(a, u);
|
|
859
|
+
}, l.get = function(a) {
|
|
860
|
+
return this[M.p(a)]();
|
|
861
|
+
}, l.add = function(a, u) {
|
|
862
862
|
var s, m = this;
|
|
863
|
-
|
|
864
|
-
var y =
|
|
863
|
+
a = Number(a);
|
|
864
|
+
var y = M.p(u), C = function(N) {
|
|
865
865
|
var Z = k(m);
|
|
866
|
-
return
|
|
866
|
+
return M.w(Z.date(Z.date() + Math.round(N * a)), m);
|
|
867
867
|
};
|
|
868
868
|
if (y === W)
|
|
869
|
-
return this.set(W, this.$M +
|
|
869
|
+
return this.set(W, this.$M + a);
|
|
870
870
|
if (y === q)
|
|
871
|
-
return this.set(q, this.$y +
|
|
871
|
+
return this.set(q, this.$y + a);
|
|
872
872
|
if (y === z)
|
|
873
873
|
return C(1);
|
|
874
874
|
if (y === we)
|
|
875
875
|
return C(7);
|
|
876
|
-
var
|
|
877
|
-
return
|
|
878
|
-
}, l.subtract = function(
|
|
879
|
-
return this.add(-1 *
|
|
880
|
-
}, l.format = function(
|
|
876
|
+
var x = (s = {}, s[$] = n, s[O] = p, s[H] = i, s)[y] || 1, I = this.$d.getTime() + a * x;
|
|
877
|
+
return M.w(I, this);
|
|
878
|
+
}, l.subtract = function(a, u) {
|
|
879
|
+
return this.add(-1 * a, u);
|
|
880
|
+
}, l.format = function(a) {
|
|
881
881
|
var u = this, s = this.$locale();
|
|
882
882
|
if (!this.isValid())
|
|
883
883
|
return s.invalidDate || v;
|
|
884
|
-
var m =
|
|
884
|
+
var m = a || "YYYY-MM-DDTHH:mm:ssZ", y = M.z(this), C = this.$H, x = this.$m, I = this.$M, N = s.weekdays, Z = s.months, Ee = s.meridiem, pe = function(U, j, Te, Me) {
|
|
885
885
|
return U && (U[j] || U(u, m)) || Te[j].slice(0, Me);
|
|
886
886
|
}, fe = function(U) {
|
|
887
|
-
return
|
|
887
|
+
return M.s(C % 12 || 12, U, "0");
|
|
888
888
|
}, se = Ee || function(U, j, Te) {
|
|
889
889
|
var Me = U < 12 ? "AM" : "PM";
|
|
890
890
|
return Te ? Me.toLowerCase() : Me;
|
|
@@ -895,11 +895,11 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
895
895
|
case "YY":
|
|
896
896
|
return String(u.$y).slice(-2);
|
|
897
897
|
case "YYYY":
|
|
898
|
-
return
|
|
898
|
+
return M.s(u.$y, 4, "0");
|
|
899
899
|
case "M":
|
|
900
900
|
return I + 1;
|
|
901
901
|
case "MM":
|
|
902
|
-
return
|
|
902
|
+
return M.s(I + 1, 2, "0");
|
|
903
903
|
case "MMM":
|
|
904
904
|
return pe(s.monthsShort, I, Z, 3);
|
|
905
905
|
case "MMMM":
|
|
@@ -907,7 +907,7 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
907
907
|
case "D":
|
|
908
908
|
return u.$D;
|
|
909
909
|
case "DD":
|
|
910
|
-
return
|
|
910
|
+
return M.s(u.$D, 2, "0");
|
|
911
911
|
case "d":
|
|
912
912
|
return String(u.$W);
|
|
913
913
|
case "dd":
|
|
@@ -919,25 +919,25 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
919
919
|
case "H":
|
|
920
920
|
return String(C);
|
|
921
921
|
case "HH":
|
|
922
|
-
return
|
|
922
|
+
return M.s(C, 2, "0");
|
|
923
923
|
case "h":
|
|
924
924
|
return fe(1);
|
|
925
925
|
case "hh":
|
|
926
926
|
return fe(2);
|
|
927
927
|
case "a":
|
|
928
|
-
return se(C,
|
|
928
|
+
return se(C, x, !0);
|
|
929
929
|
case "A":
|
|
930
|
-
return se(C,
|
|
930
|
+
return se(C, x, !1);
|
|
931
931
|
case "m":
|
|
932
|
-
return String(
|
|
932
|
+
return String(x);
|
|
933
933
|
case "mm":
|
|
934
|
-
return
|
|
934
|
+
return M.s(x, 2, "0");
|
|
935
935
|
case "s":
|
|
936
936
|
return String(u.$s);
|
|
937
937
|
case "ss":
|
|
938
|
-
return
|
|
938
|
+
return M.s(u.$s, 2, "0");
|
|
939
939
|
case "SSS":
|
|
940
|
-
return
|
|
940
|
+
return M.s(u.$ms, 3, "0");
|
|
941
941
|
case "Z":
|
|
942
942
|
return y;
|
|
943
943
|
}
|
|
@@ -946,9 +946,9 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
946
946
|
});
|
|
947
947
|
}, l.utcOffset = function() {
|
|
948
948
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
949
|
-
}, l.diff = function(
|
|
950
|
-
var m, y = this, C =
|
|
951
|
-
return
|
|
949
|
+
}, l.diff = function(a, u, s) {
|
|
950
|
+
var m, y = this, C = M.p(u), x = k(a), I = (x.utcOffset() - this.utcOffset()) * n, N = this - x, Z = function() {
|
|
951
|
+
return M.m(y, x);
|
|
952
952
|
};
|
|
953
953
|
switch (C) {
|
|
954
954
|
case q:
|
|
@@ -966,11 +966,11 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
966
966
|
case z:
|
|
967
967
|
m = (N - I) / 864e5;
|
|
968
968
|
break;
|
|
969
|
-
case
|
|
969
|
+
case O:
|
|
970
970
|
m = N / p;
|
|
971
971
|
break;
|
|
972
972
|
case $:
|
|
973
|
-
m = N /
|
|
973
|
+
m = N / n;
|
|
974
974
|
break;
|
|
975
975
|
case H:
|
|
976
976
|
m = N / i;
|
|
@@ -978,18 +978,18 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
978
978
|
default:
|
|
979
979
|
m = N;
|
|
980
980
|
}
|
|
981
|
-
return s ? m :
|
|
981
|
+
return s ? m : M.a(m);
|
|
982
982
|
}, l.daysInMonth = function() {
|
|
983
983
|
return this.endOf(W).$D;
|
|
984
984
|
}, l.$locale = function() {
|
|
985
985
|
return Q[this.$L];
|
|
986
|
-
}, l.locale = function(
|
|
987
|
-
if (!
|
|
986
|
+
}, l.locale = function(a, u) {
|
|
987
|
+
if (!a)
|
|
988
988
|
return this.$L;
|
|
989
|
-
var s = this.clone(), m = ae(
|
|
989
|
+
var s = this.clone(), m = ae(a, u, !0);
|
|
990
990
|
return m && (s.$L = m), s;
|
|
991
991
|
}, l.clone = function() {
|
|
992
|
-
return
|
|
992
|
+
return M.w(this.$d, this);
|
|
993
993
|
}, l.toDate = function() {
|
|
994
994
|
return new Date(this.valueOf());
|
|
995
995
|
}, l.toJSON = function() {
|
|
@@ -999,9 +999,9 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
999
999
|
}, l.toString = function() {
|
|
1000
1000
|
return this.$d.toUTCString();
|
|
1001
1001
|
}, g;
|
|
1002
|
-
}(),
|
|
1003
|
-
return k.prototype =
|
|
1004
|
-
|
|
1002
|
+
}(), xe = oe.prototype;
|
|
1003
|
+
return k.prototype = xe, [["$ms", E], ["$s", H], ["$m", $], ["$H", O], ["$W", z], ["$M", W], ["$y", q], ["$D", re]].forEach(function(g) {
|
|
1004
|
+
xe[g[1]] = function(l) {
|
|
1005
1005
|
return this.$g(l, g[0], g[1]);
|
|
1006
1006
|
};
|
|
1007
1007
|
}), k.extend = function(g, l) {
|
|
@@ -1014,81 +1014,81 @@ var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1014
1014
|
const et = Je.exports;
|
|
1015
1015
|
var tt = { exports: {} };
|
|
1016
1016
|
(function(e, t) {
|
|
1017
|
-
(function(i,
|
|
1018
|
-
e.exports =
|
|
1017
|
+
(function(i, n) {
|
|
1018
|
+
e.exports = n();
|
|
1019
1019
|
})(Ne, function() {
|
|
1020
|
-
var i = "minute",
|
|
1020
|
+
var i = "minute", n = /[+-]\d\d(?::?\d\d)?/g, p = /([+-]|\d\d)/g;
|
|
1021
1021
|
return function(E, H, $) {
|
|
1022
|
-
var
|
|
1022
|
+
var O = H.prototype;
|
|
1023
1023
|
$.utc = function(v) {
|
|
1024
1024
|
var Y = { date: v, utc: !0, args: arguments };
|
|
1025
1025
|
return new H(Y);
|
|
1026
|
-
},
|
|
1026
|
+
}, O.utc = function(v) {
|
|
1027
1027
|
var Y = $(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1028
1028
|
return v ? Y.add(this.utcOffset(), i) : Y;
|
|
1029
|
-
},
|
|
1029
|
+
}, O.local = function() {
|
|
1030
1030
|
return $(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1031
1031
|
};
|
|
1032
|
-
var z =
|
|
1033
|
-
|
|
1032
|
+
var z = O.parse;
|
|
1033
|
+
O.parse = function(v) {
|
|
1034
1034
|
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), z.call(this, v);
|
|
1035
1035
|
};
|
|
1036
|
-
var we =
|
|
1037
|
-
|
|
1036
|
+
var we = O.init;
|
|
1037
|
+
O.init = function() {
|
|
1038
1038
|
if (this.$u) {
|
|
1039
1039
|
var v = this.$d;
|
|
1040
1040
|
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
1041
1041
|
} else
|
|
1042
1042
|
we.call(this);
|
|
1043
1043
|
};
|
|
1044
|
-
var W =
|
|
1045
|
-
|
|
1044
|
+
var W = O.utcOffset;
|
|
1045
|
+
O.utcOffset = function(v, Y) {
|
|
1046
1046
|
var ue = this.$utils().u;
|
|
1047
1047
|
if (ue(v))
|
|
1048
1048
|
return this.$u ? 0 : ue(this.$offset) ? W.call(this) : this.$offset;
|
|
1049
1049
|
if (typeof v == "string" && (v = function(ne) {
|
|
1050
1050
|
ne === void 0 && (ne = "");
|
|
1051
|
-
var Q = ne.match(
|
|
1051
|
+
var Q = ne.match(n);
|
|
1052
1052
|
if (!Q)
|
|
1053
1053
|
return null;
|
|
1054
1054
|
var he = ("" + Q[0]).match(p) || ["-", 0, 0], Se = he[0], ae = 60 * +he[1] + +he[2];
|
|
1055
1055
|
return ae === 0 ? 0 : Se === "+" ? ae : -ae;
|
|
1056
1056
|
}(v), v === null))
|
|
1057
1057
|
return this;
|
|
1058
|
-
var ce = Math.abs(v) <= 16 ? 60 * v : v,
|
|
1058
|
+
var ce = Math.abs(v) <= 16 ? 60 * v : v, A = this;
|
|
1059
1059
|
if (Y)
|
|
1060
|
-
return
|
|
1060
|
+
return A.$offset = ce, A.$u = v === 0, A;
|
|
1061
1061
|
if (v !== 0) {
|
|
1062
1062
|
var ie = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1063
|
-
(
|
|
1063
|
+
(A = this.local().add(ce + ie, i)).$offset = ce, A.$x.$localOffset = ie;
|
|
1064
1064
|
} else
|
|
1065
|
-
|
|
1066
|
-
return
|
|
1065
|
+
A = this.utc();
|
|
1066
|
+
return A;
|
|
1067
1067
|
};
|
|
1068
|
-
var Ce =
|
|
1069
|
-
|
|
1068
|
+
var Ce = O.format;
|
|
1069
|
+
O.format = function(v) {
|
|
1070
1070
|
var Y = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
1071
1071
|
return Ce.call(this, Y);
|
|
1072
|
-
},
|
|
1072
|
+
}, O.valueOf = function() {
|
|
1073
1073
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
1074
1074
|
return this.$d.valueOf() - 6e4 * v;
|
|
1075
|
-
},
|
|
1075
|
+
}, O.isUTC = function() {
|
|
1076
1076
|
return !!this.$u;
|
|
1077
|
-
},
|
|
1077
|
+
}, O.toISOString = function() {
|
|
1078
1078
|
return this.toDate().toISOString();
|
|
1079
|
-
},
|
|
1079
|
+
}, O.toString = function() {
|
|
1080
1080
|
return this.toDate().toUTCString();
|
|
1081
1081
|
};
|
|
1082
|
-
var q =
|
|
1083
|
-
|
|
1082
|
+
var q = O.toDate;
|
|
1083
|
+
O.toDate = function(v) {
|
|
1084
1084
|
return v === "s" && this.$offset ? $(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : q.call(this);
|
|
1085
1085
|
};
|
|
1086
|
-
var re =
|
|
1087
|
-
|
|
1086
|
+
var re = O.diff;
|
|
1087
|
+
O.diff = function(v, Y, ue) {
|
|
1088
1088
|
if (v && this.$u === v.$u)
|
|
1089
1089
|
return re.call(this, v, Y, ue);
|
|
1090
|
-
var ce = this.local(),
|
|
1091
|
-
return re.call(ce,
|
|
1090
|
+
var ce = this.local(), A = $(v).local();
|
|
1091
|
+
return re.call(ce, A, Y, ue);
|
|
1092
1092
|
};
|
|
1093
1093
|
};
|
|
1094
1094
|
});
|
|
@@ -1102,7 +1102,7 @@ var He = { exports: {} };
|
|
|
1102
1102
|
*/
|
|
1103
1103
|
(function(e, t) {
|
|
1104
1104
|
(function(i) {
|
|
1105
|
-
var
|
|
1105
|
+
var n = i.setTimeout, p = i.clearTimeout, E = i.XMLHttpRequest, H = i.XDomainRequest, $ = i.ActiveXObject, O = i.EventSource, z = i.document, we = i.Promise, W = i.fetch, Ce = i.Response, q = i.TextDecoder, re = i.TextEncoder, v = i.AbortController;
|
|
1106
1106
|
if (typeof window < "u" && typeof z < "u" && !("readyState" in z) && z.body == null && (z.readyState = "loading", window.addEventListener("load", function(r) {
|
|
1107
1107
|
z.readyState = "complete";
|
|
1108
1108
|
}, !1)), E == null && $ != null && (E = function() {
|
|
@@ -1117,12 +1117,12 @@ var He = { exports: {} };
|
|
|
1117
1117
|
var Y = W;
|
|
1118
1118
|
W = function(r, d) {
|
|
1119
1119
|
var c = d.signal;
|
|
1120
|
-
return Y(r, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(
|
|
1121
|
-
var w =
|
|
1120
|
+
return Y(r, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(o) {
|
|
1121
|
+
var w = o.body.getReader();
|
|
1122
1122
|
return c._reader = w, c._aborted && c._reader.cancel(), {
|
|
1123
|
-
status:
|
|
1124
|
-
statusText:
|
|
1125
|
-
headers:
|
|
1123
|
+
status: o.status,
|
|
1124
|
+
statusText: o.statusText,
|
|
1125
|
+
headers: o.headers,
|
|
1126
1126
|
body: {
|
|
1127
1127
|
getReader: function() {
|
|
1128
1128
|
return w;
|
|
@@ -1161,9 +1161,9 @@ var He = { exports: {} };
|
|
|
1161
1161
|
return 3;
|
|
1162
1162
|
throw new Error();
|
|
1163
1163
|
}
|
|
1164
|
-
for (var
|
|
1164
|
+
for (var o = 65533, w = "", f = this.bitsNeeded, b = this.codePoint, _ = 0; _ < r.length; _ += 1) {
|
|
1165
1165
|
var T = r[_];
|
|
1166
|
-
f !== 0 && (T < 128 || T > 191 || !d(b << 6 | T & 63, f - 6, c(f, b))) && (f = 0, b =
|
|
1166
|
+
f !== 0 && (T < 128 || T > 191 || !d(b << 6 | T & 63, f - 6, c(f, b))) && (f = 0, b = o, w += String.fromCharCode(b)), f === 0 ? (T >= 0 && T <= 127 ? (f = 0, b = T) : T >= 192 && T <= 223 ? (f = 6 * 1, b = T & 31) : T >= 224 && T <= 239 ? (f = 6 * 2, b = T & 15) : T >= 240 && T <= 247 ? (f = 6 * 3, b = T & 7) : (f = 0, b = o), f !== 0 && !d(b, f, c(f, b)) && (f = 0, b = o)) : (f -= 6, b = b << 6 | T & 63), f === 0 && (b <= 65535 ? w += String.fromCharCode(b) : (w += String.fromCharCode(55296 + (b - 65535 - 1 >> 10)), w += String.fromCharCode(56320 + (b - 65535 - 1 & 1023))));
|
|
1167
1167
|
}
|
|
1168
1168
|
return this.bitsNeeded = f, this.codePoint = b, w;
|
|
1169
1169
|
};
|
|
@@ -1176,25 +1176,25 @@ var He = { exports: {} };
|
|
|
1176
1176
|
return !1;
|
|
1177
1177
|
};
|
|
1178
1178
|
(q == null || re == null || !ce()) && (q = ue);
|
|
1179
|
-
var
|
|
1179
|
+
var A = function() {
|
|
1180
1180
|
};
|
|
1181
1181
|
function ie(r) {
|
|
1182
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
1182
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = A, this.onload = A, this.onerror = A, this.onreadystatechange = A, this._contentType = "", this._xhr = r, this._sendTimeout = 0, this._abort = A;
|
|
1183
1183
|
}
|
|
1184
1184
|
ie.prototype.open = function(r, d) {
|
|
1185
1185
|
this._abort(!0);
|
|
1186
|
-
var c = this,
|
|
1186
|
+
var c = this, o = this._xhr, w = 1, f = 0;
|
|
1187
1187
|
this._abort = function(S) {
|
|
1188
|
-
c._sendTimeout !== 0 && (p(c._sendTimeout), c._sendTimeout = 0), (w === 1 || w === 2 || w === 3) && (w = 4,
|
|
1188
|
+
c._sendTimeout !== 0 && (p(c._sendTimeout), c._sendTimeout = 0), (w === 1 || w === 2 || w === 3) && (w = 4, o.onload = A, o.onerror = A, o.onabort = A, o.onprogress = A, o.onreadystatechange = A, o.abort(), f !== 0 && (p(f), f = 0), S || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), w = 0;
|
|
1189
1189
|
};
|
|
1190
1190
|
var b = function() {
|
|
1191
1191
|
if (w === 1) {
|
|
1192
1192
|
var S = 0, L = "", ge = void 0;
|
|
1193
|
-
if ("contentType" in
|
|
1194
|
-
S = 200, L = "OK", ge =
|
|
1193
|
+
if ("contentType" in o)
|
|
1194
|
+
S = 200, L = "OK", ge = o.contentType;
|
|
1195
1195
|
else
|
|
1196
1196
|
try {
|
|
1197
|
-
S =
|
|
1197
|
+
S = o.status, L = o.statusText, ge = o.getResponseHeader("Content-Type");
|
|
1198
1198
|
} catch {
|
|
1199
1199
|
S = 0, L = "", ge = void 0;
|
|
1200
1200
|
}
|
|
@@ -1205,14 +1205,14 @@ var He = { exports: {} };
|
|
|
1205
1205
|
w = 3;
|
|
1206
1206
|
var S = "";
|
|
1207
1207
|
try {
|
|
1208
|
-
S =
|
|
1208
|
+
S = o.responseText;
|
|
1209
1209
|
} catch {
|
|
1210
1210
|
}
|
|
1211
1211
|
c.readyState = 3, c.responseText = S, c.onprogress();
|
|
1212
1212
|
}
|
|
1213
1213
|
}, T = function(S, L) {
|
|
1214
1214
|
if ((L == null || L.preventDefault == null) && (L = {
|
|
1215
|
-
preventDefault:
|
|
1215
|
+
preventDefault: A
|
|
1216
1216
|
}), _(), w === 1 || w === 2 || w === 3) {
|
|
1217
1217
|
if (w = 4, f !== 0 && (p(f), f = 0), c.readyState = 4, S === "load")
|
|
1218
1218
|
c.onload(L);
|
|
@@ -1225,21 +1225,21 @@ var He = { exports: {} };
|
|
|
1225
1225
|
c.onreadystatechange();
|
|
1226
1226
|
}
|
|
1227
1227
|
}, D = function(S) {
|
|
1228
|
-
|
|
1228
|
+
o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && T(o.responseText === "" ? "error" : "load", S) : o.readyState === 3 ? "onprogress" in o || _() : o.readyState === 2 && b());
|
|
1229
1229
|
}, P = function() {
|
|
1230
|
-
f =
|
|
1230
|
+
f = n(function() {
|
|
1231
1231
|
P();
|
|
1232
|
-
}, 500),
|
|
1232
|
+
}, 500), o.readyState === 3 && _();
|
|
1233
1233
|
};
|
|
1234
|
-
"onload" in
|
|
1234
|
+
"onload" in o && (o.onload = function(S) {
|
|
1235
1235
|
T("load", S);
|
|
1236
|
-
}), "onerror" in
|
|
1236
|
+
}), "onerror" in o && (o.onerror = function(S) {
|
|
1237
1237
|
T("error", S);
|
|
1238
|
-
}), "onabort" in
|
|
1238
|
+
}), "onabort" in o && (o.onabort = function(S) {
|
|
1239
1239
|
T("abort", S);
|
|
1240
|
-
}), "onprogress" in
|
|
1240
|
+
}), "onprogress" in o && (o.onprogress = _), "onreadystatechange" in o && (o.onreadystatechange = function(S) {
|
|
1241
1241
|
D(S);
|
|
1242
|
-
}), ("contentType" in
|
|
1242
|
+
}), ("contentType" in o || !("ontimeout" in E.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(r, d, !0), "readyState" in o && (f = n(function() {
|
|
1243
1243
|
P();
|
|
1244
1244
|
}, 0));
|
|
1245
1245
|
}, ie.prototype.abort = function() {
|
|
@@ -1254,7 +1254,7 @@ var He = { exports: {} };
|
|
|
1254
1254
|
}, ie.prototype.send = function() {
|
|
1255
1255
|
if ((!("ontimeout" in E.prototype) || !("sendAsBinary" in E.prototype) && !("mozAnon" in E.prototype)) && z != null && z.readyState != null && z.readyState !== "complete") {
|
|
1256
1256
|
var r = this;
|
|
1257
|
-
r._sendTimeout =
|
|
1257
|
+
r._sendTimeout = n(function() {
|
|
1258
1258
|
r._sendTimeout = 0, r.send();
|
|
1259
1259
|
}, 4);
|
|
1260
1260
|
return;
|
|
@@ -1274,8 +1274,8 @@ var He = { exports: {} };
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function Q(r) {
|
|
1276
1276
|
for (var d = /* @__PURE__ */ Object.create(null), c = r.split(`\r
|
|
1277
|
-
`),
|
|
1278
|
-
var w = c[
|
|
1277
|
+
`), o = 0; o < c.length; o += 1) {
|
|
1278
|
+
var w = c[o], f = w.split(": "), b = f.shift(), _ = f.join(": ");
|
|
1279
1279
|
d[ne(b)] = _;
|
|
1280
1280
|
}
|
|
1281
1281
|
this._map = d;
|
|
@@ -1285,18 +1285,18 @@ var He = { exports: {} };
|
|
|
1285
1285
|
}, E != null && E.HEADERS_RECEIVED == null && (E.HEADERS_RECEIVED = 2);
|
|
1286
1286
|
function he() {
|
|
1287
1287
|
}
|
|
1288
|
-
he.prototype.open = function(r, d, c,
|
|
1288
|
+
he.prototype.open = function(r, d, c, o, w, f, b) {
|
|
1289
1289
|
r.open("GET", w);
|
|
1290
1290
|
var _ = 0;
|
|
1291
1291
|
r.onprogress = function() {
|
|
1292
1292
|
var D = r.responseText, P = D.slice(_);
|
|
1293
1293
|
_ += P.length, c(P);
|
|
1294
1294
|
}, r.onerror = function(D) {
|
|
1295
|
-
D.preventDefault(),
|
|
1295
|
+
D.preventDefault(), o(new Error("NetworkError"));
|
|
1296
1296
|
}, r.onload = function() {
|
|
1297
|
-
|
|
1297
|
+
o(null);
|
|
1298
1298
|
}, r.onabort = function() {
|
|
1299
|
-
|
|
1299
|
+
o(null);
|
|
1300
1300
|
}, r.onreadystatechange = function() {
|
|
1301
1301
|
if (r.readyState === E.HEADERS_RECEIVED) {
|
|
1302
1302
|
var D = r.status, P = r.statusText, S = r.getResponseHeader("Content-Type"), L = r.getAllResponseHeaders();
|
|
@@ -1315,7 +1315,7 @@ var He = { exports: {} };
|
|
|
1315
1315
|
};
|
|
1316
1316
|
function ae() {
|
|
1317
1317
|
}
|
|
1318
|
-
ae.prototype.open = function(r, d, c,
|
|
1318
|
+
ae.prototype.open = function(r, d, c, o, w, f, b) {
|
|
1319
1319
|
var _ = null, T = new v(), D = T.signal, P = new q();
|
|
1320
1320
|
return W(w, {
|
|
1321
1321
|
headers: b,
|
|
@@ -1342,7 +1342,7 @@ var He = { exports: {} };
|
|
|
1342
1342
|
if (S.name !== "AbortError")
|
|
1343
1343
|
return S;
|
|
1344
1344
|
}).then(function(S) {
|
|
1345
|
-
|
|
1345
|
+
o(S);
|
|
1346
1346
|
}), {
|
|
1347
1347
|
abort: function() {
|
|
1348
1348
|
_?.cancel(), T.abort();
|
|
@@ -1352,8 +1352,8 @@ var He = { exports: {} };
|
|
|
1352
1352
|
function k() {
|
|
1353
1353
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
|
|
1355
|
+
function M(r) {
|
|
1356
|
+
n(function() {
|
|
1357
1357
|
throw r;
|
|
1358
1358
|
}, 0);
|
|
1359
1359
|
}
|
|
@@ -1361,37 +1361,37 @@ var He = { exports: {} };
|
|
|
1361
1361
|
r.target = this;
|
|
1362
1362
|
var d = this._listeners[r.type];
|
|
1363
1363
|
if (d != null)
|
|
1364
|
-
for (var c = d.length,
|
|
1365
|
-
var w = d[
|
|
1364
|
+
for (var c = d.length, o = 0; o < c; o += 1) {
|
|
1365
|
+
var w = d[o];
|
|
1366
1366
|
try {
|
|
1367
1367
|
typeof w.handleEvent == "function" ? w.handleEvent(r) : w.call(this, r);
|
|
1368
1368
|
} catch (f) {
|
|
1369
|
-
|
|
1369
|
+
M(f);
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
}, k.prototype.addEventListener = function(r, d) {
|
|
1373
1373
|
r = String(r);
|
|
1374
|
-
var c = this._listeners,
|
|
1375
|
-
|
|
1376
|
-
for (var w = !1, f = 0; f <
|
|
1377
|
-
|
|
1378
|
-
w ||
|
|
1374
|
+
var c = this._listeners, o = c[r];
|
|
1375
|
+
o == null && (o = [], c[r] = o);
|
|
1376
|
+
for (var w = !1, f = 0; f < o.length; f += 1)
|
|
1377
|
+
o[f] === d && (w = !0);
|
|
1378
|
+
w || o.push(d);
|
|
1379
1379
|
}, k.prototype.removeEventListener = function(r, d) {
|
|
1380
1380
|
r = String(r);
|
|
1381
|
-
var c = this._listeners,
|
|
1382
|
-
if (
|
|
1383
|
-
for (var w = [], f = 0; f <
|
|
1384
|
-
|
|
1381
|
+
var c = this._listeners, o = c[r];
|
|
1382
|
+
if (o != null) {
|
|
1383
|
+
for (var w = [], f = 0; f < o.length; f += 1)
|
|
1384
|
+
o[f] !== d && w.push(o[f]);
|
|
1385
1385
|
w.length === 0 ? delete c[r] : c[r] = w;
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
1388
|
function oe(r) {
|
|
1389
1389
|
this.type = r, this.target = void 0;
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function xe(r, d) {
|
|
1392
1392
|
oe.call(this, r), this.data = d.data, this.lastEventId = d.lastEventId;
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1394
|
+
xe.prototype = Object.create(oe.prototype);
|
|
1395
1395
|
function g(r, d) {
|
|
1396
1396
|
oe.call(this, r), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
|
|
1397
1397
|
}
|
|
@@ -1400,7 +1400,7 @@ var He = { exports: {} };
|
|
|
1400
1400
|
oe.call(this, r), this.error = d.error;
|
|
1401
1401
|
}
|
|
1402
1402
|
l.prototype = Object.create(oe.prototype);
|
|
1403
|
-
var
|
|
1403
|
+
var a = -1, u = 0, s = 1, m = 2, y = -1, C = 0, x = 1, I = 2, N = 3, Z = /^text\/event\-stream(;.*)?$/i, Ee = 1e3, pe = 18e6, fe = function(r, d) {
|
|
1404
1404
|
var c = r == null ? d : parseInt(r, 10);
|
|
1405
1405
|
return c !== c && (c = d), se(c);
|
|
1406
1406
|
}, se = function(r) {
|
|
@@ -1408,8 +1408,8 @@ var He = { exports: {} };
|
|
|
1408
1408
|
}, U = function(r, d, c) {
|
|
1409
1409
|
try {
|
|
1410
1410
|
typeof d == "function" && d.call(r, c);
|
|
1411
|
-
} catch (
|
|
1412
|
-
|
|
1411
|
+
} catch (o) {
|
|
1412
|
+
M(o);
|
|
1413
1413
|
}
|
|
1414
1414
|
};
|
|
1415
1415
|
function j(r, d) {
|
|
@@ -1421,7 +1421,7 @@ var He = { exports: {} };
|
|
|
1421
1421
|
var Me = W != null && Ce != null && "body" in Ce.prototype;
|
|
1422
1422
|
function rt(r, d, c) {
|
|
1423
1423
|
d = String(d);
|
|
1424
|
-
var
|
|
1424
|
+
var o = !!c.withCredentials, w = c.lastEventIdQueryParameterName || "lastEventId", f = se(1e3), b = fe(c.heartbeatTimeout, 45e3), _ = "", T = f, D = !1, P = 0, S = c.headers || {}, L = c.Transport, ge = Me && L == null ? void 0 : new ie(L != null ? new L() : Te()), Re = L != null && typeof L != "string" ? new L() : ge == null ? new ae() : new he(), J = void 0, G = 0, de = a, De = "", _e = "", me = "", Le = "", X = C, je = 0, Oe = 0, it = function(V, F, ee, te) {
|
|
1425
1425
|
if (de === u)
|
|
1426
1426
|
if (V === 200 && ee != null && Z.test(ee)) {
|
|
1427
1427
|
de = s, D = Date.now(), T = f, r.readyState = s;
|
|
@@ -1455,17 +1455,17 @@ var He = { exports: {} };
|
|
|
1455
1455
|
X = C;
|
|
1456
1456
|
else if (X === y && (X = C), te === 13 || te === 10) {
|
|
1457
1457
|
if (X !== C) {
|
|
1458
|
-
X ===
|
|
1458
|
+
X === x && (Oe = B + 1);
|
|
1459
1459
|
var ve = K.slice(je, Oe - 1), ye = K.slice(Oe + (Oe < B && K.charCodeAt(Oe) === 32 ? 1 : 0), B);
|
|
1460
1460
|
ve === "data" ? (De += `
|
|
1461
|
-
`, De += ye) : ve === "id" ? _e = ye : ve === "event" ? me = ye : ve === "retry" ? (f = fe(ye, f), T = f) : ve === "heartbeatTimeout" && (b = fe(ye, b), G !== 0 && (p(G), G =
|
|
1461
|
+
`, De += ye) : ve === "id" ? _e = ye : ve === "event" ? me = ye : ve === "retry" ? (f = fe(ye, f), T = f) : ve === "heartbeatTimeout" && (b = fe(ye, b), G !== 0 && (p(G), G = n(function() {
|
|
1462
1462
|
ke();
|
|
1463
1463
|
}, b)));
|
|
1464
1464
|
}
|
|
1465
1465
|
if (X === C) {
|
|
1466
1466
|
if (De !== "") {
|
|
1467
1467
|
_ = _e, me === "" && (me = "message");
|
|
1468
|
-
var Pe = new
|
|
1468
|
+
var Pe = new xe(me, {
|
|
1469
1469
|
data: De.slice(1),
|
|
1470
1470
|
lastEventId: _e
|
|
1471
1471
|
});
|
|
@@ -1476,12 +1476,12 @@ var He = { exports: {} };
|
|
|
1476
1476
|
}
|
|
1477
1477
|
X = te === 13 ? y : C;
|
|
1478
1478
|
} else
|
|
1479
|
-
X === C && (je = B, X =
|
|
1479
|
+
X === C && (je = B, X = x), X === x ? te === 58 && (Oe = B + 1, X = I) : X === I && (X = N);
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
}, Be = function(V) {
|
|
1483
1483
|
if (de === s || de === u) {
|
|
1484
|
-
de =
|
|
1484
|
+
de = a, G !== 0 && (p(G), G = 0), G = n(function() {
|
|
1485
1485
|
ke();
|
|
1486
1486
|
}, T), T = se(Math.min(f * 16, T * 2)), r.readyState = u;
|
|
1487
1487
|
var F = new l("error", { error: V });
|
|
@@ -1490,18 +1490,18 @@ var He = { exports: {} };
|
|
|
1490
1490
|
}, ze = function() {
|
|
1491
1491
|
de = m, J != null && (J.abort(), J = void 0), G !== 0 && (p(G), G = 0), r.readyState = m;
|
|
1492
1492
|
}, ke = function() {
|
|
1493
|
-
if (G = 0, de !==
|
|
1493
|
+
if (G = 0, de !== a) {
|
|
1494
1494
|
if (!D && J != null)
|
|
1495
1495
|
Be(new Error("No activity within " + b + " milliseconds. " + (de === u ? "No response received." : P + " chars received.") + " Reconnecting.")), J != null && (J.abort(), J = void 0);
|
|
1496
1496
|
else {
|
|
1497
1497
|
var V = Math.max((D || Date.now()) + b - Date.now(), 1);
|
|
1498
|
-
D = !1, G =
|
|
1498
|
+
D = !1, G = n(function() {
|
|
1499
1499
|
ke();
|
|
1500
1500
|
}, V);
|
|
1501
1501
|
}
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
|
-
D = !1, P = 0, G =
|
|
1504
|
+
D = !1, P = 0, G = n(function() {
|
|
1505
1505
|
ke();
|
|
1506
1506
|
}, b), de = u, De = "", me = "", _e = _, Le = "", je = 0, Oe = 0, X = C;
|
|
1507
1507
|
var F = d;
|
|
@@ -1523,19 +1523,19 @@ var He = { exports: {} };
|
|
|
1523
1523
|
throw ze(), ye;
|
|
1524
1524
|
}
|
|
1525
1525
|
};
|
|
1526
|
-
r.url = d, r.readyState = u, r.withCredentials =
|
|
1526
|
+
r.url = d, r.readyState = u, r.withCredentials = o, r.headers = S, r._close = ze, ke();
|
|
1527
1527
|
}
|
|
1528
1528
|
j.prototype = Object.create(k.prototype), j.prototype.CONNECTING = u, j.prototype.OPEN = s, j.prototype.CLOSED = m, j.prototype.close = function() {
|
|
1529
1529
|
this._close();
|
|
1530
1530
|
}, j.CONNECTING = u, j.OPEN = s, j.CLOSED = m, j.prototype.withCredentials = void 0;
|
|
1531
|
-
var Ve =
|
|
1532
|
-
E != null && (
|
|
1531
|
+
var Ve = O;
|
|
1532
|
+
E != null && (O == null || !("withCredentials" in O.prototype)) && (Ve = j), function(r) {
|
|
1533
1533
|
{
|
|
1534
1534
|
var d = r(t);
|
|
1535
1535
|
d !== void 0 && (e.exports = d);
|
|
1536
1536
|
}
|
|
1537
1537
|
}(function(r) {
|
|
1538
|
-
r.EventSourcePolyfill = j, r.NativeEventSource =
|
|
1538
|
+
r.EventSourcePolyfill = j, r.NativeEventSource = O, r.EventSource = Ve;
|
|
1539
1539
|
});
|
|
1540
1540
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Ne : globalThis);
|
|
1541
1541
|
})(He, He.exports);
|
|
@@ -1641,9 +1641,140 @@ const Ye = "user-deposit-withdrawal", Ge = [
|
|
|
1641
1641
|
et.extend(yt);
|
|
1642
1642
|
const Ct = class {
|
|
1643
1643
|
constructor(e) {
|
|
1644
|
-
Xe(this, e), this.sseStream = null, this.selectedPaymentMethod = null, this.sseReconnectAttempts = 0, this.sseReconnectTimer = null, this.sseShouldStayConnected = !1, this.SSE_MAX_RECONNECT_ATTEMPTS = 5, this.SSE_RECONNECT_DELAY_BASE_MS = 1e3, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = mt(this.userAgent), this.errorCodes = [
|
|
1644
|
+
Xe(this, e), this.sseStream = null, this.selectedPaymentMethod = null, this.sseReconnectAttempts = 0, this.sseReconnectTimer = null, this.sseShouldStayConnected = !1, this.SSE_MAX_RECONNECT_ATTEMPTS = 5, this.SSE_RECONNECT_DELAY_BASE_MS = 1e3, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = mt(this.userAgent), this.errorCodes = [
|
|
1645
|
+
"21123",
|
|
1646
|
+
"21122",
|
|
1647
|
+
"21121",
|
|
1648
|
+
"100003",
|
|
1649
|
+
"100007",
|
|
1650
|
+
"100020",
|
|
1651
|
+
"100102",
|
|
1652
|
+
"100103",
|
|
1653
|
+
"11010",
|
|
1654
|
+
"11020",
|
|
1655
|
+
"11100",
|
|
1656
|
+
"11204",
|
|
1657
|
+
"11408",
|
|
1658
|
+
"11505",
|
|
1659
|
+
"11506",
|
|
1660
|
+
"11601",
|
|
1661
|
+
"11704",
|
|
1662
|
+
"11754",
|
|
1663
|
+
"11755",
|
|
1664
|
+
"11772",
|
|
1665
|
+
"11776",
|
|
1666
|
+
"11778",
|
|
1667
|
+
"11779",
|
|
1668
|
+
"11780",
|
|
1669
|
+
"11781",
|
|
1670
|
+
"11802",
|
|
1671
|
+
"12006",
|
|
1672
|
+
"12126",
|
|
1673
|
+
"12127",
|
|
1674
|
+
"12135",
|
|
1675
|
+
"12136",
|
|
1676
|
+
"12137",
|
|
1677
|
+
"12138",
|
|
1678
|
+
"12139",
|
|
1679
|
+
"12140",
|
|
1680
|
+
"12502",
|
|
1681
|
+
"12503",
|
|
1682
|
+
"13501",
|
|
1683
|
+
"13502",
|
|
1684
|
+
"13503",
|
|
1685
|
+
"13504",
|
|
1686
|
+
"13505",
|
|
1687
|
+
"13506",
|
|
1688
|
+
"13507",
|
|
1689
|
+
"13550",
|
|
1690
|
+
"13555",
|
|
1691
|
+
"13573",
|
|
1692
|
+
"13575",
|
|
1693
|
+
"14006",
|
|
1694
|
+
"14007",
|
|
1695
|
+
"14008",
|
|
1696
|
+
"14009",
|
|
1697
|
+
"14010",
|
|
1698
|
+
"14011",
|
|
1699
|
+
"21050",
|
|
1700
|
+
"21051",
|
|
1701
|
+
"21052",
|
|
1702
|
+
"21054",
|
|
1703
|
+
"21056",
|
|
1704
|
+
"21070",
|
|
1705
|
+
"21073",
|
|
1706
|
+
"21074",
|
|
1707
|
+
"21077",
|
|
1708
|
+
"21079",
|
|
1709
|
+
"21082",
|
|
1710
|
+
"21083",
|
|
1711
|
+
"21104",
|
|
1712
|
+
"21105",
|
|
1713
|
+
"21108",
|
|
1714
|
+
"21116",
|
|
1715
|
+
"21117",
|
|
1716
|
+
"21202",
|
|
1717
|
+
"21289",
|
|
1718
|
+
"21292",
|
|
1719
|
+
"21293",
|
|
1720
|
+
"21294",
|
|
1721
|
+
"21295",
|
|
1722
|
+
"21296",
|
|
1723
|
+
"21297",
|
|
1724
|
+
"21298",
|
|
1725
|
+
"21299",
|
|
1726
|
+
"21301",
|
|
1727
|
+
"21302",
|
|
1728
|
+
"21303",
|
|
1729
|
+
"21304",
|
|
1730
|
+
"21305",
|
|
1731
|
+
"21306",
|
|
1732
|
+
"21307",
|
|
1733
|
+
"21308",
|
|
1734
|
+
"22007",
|
|
1735
|
+
"22011",
|
|
1736
|
+
"22012",
|
|
1737
|
+
"22013",
|
|
1738
|
+
"22014",
|
|
1739
|
+
"22015",
|
|
1740
|
+
"22016",
|
|
1741
|
+
"22017",
|
|
1742
|
+
"22018",
|
|
1743
|
+
"22021",
|
|
1744
|
+
"22022",
|
|
1745
|
+
"22023",
|
|
1746
|
+
"22024",
|
|
1747
|
+
"23601",
|
|
1748
|
+
"29107",
|
|
1749
|
+
"30100",
|
|
1750
|
+
"40003",
|
|
1751
|
+
"40004",
|
|
1752
|
+
"50000",
|
|
1753
|
+
"50001",
|
|
1754
|
+
"50002",
|
|
1755
|
+
"50003",
|
|
1756
|
+
"50004",
|
|
1757
|
+
"50005",
|
|
1758
|
+
"50006",
|
|
1759
|
+
"50007",
|
|
1760
|
+
"50008",
|
|
1761
|
+
"50009",
|
|
1762
|
+
"50010",
|
|
1763
|
+
"50011",
|
|
1764
|
+
"50012",
|
|
1765
|
+
"50013",
|
|
1766
|
+
"50014",
|
|
1767
|
+
"50015",
|
|
1768
|
+
"50100",
|
|
1769
|
+
"50101",
|
|
1770
|
+
"50102",
|
|
1771
|
+
"50103",
|
|
1772
|
+
"50104",
|
|
1773
|
+
"50105",
|
|
1774
|
+
"50106"
|
|
1775
|
+
], this.toggleScreen = () => {
|
|
1645
1776
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.isMobile }, window.location.href);
|
|
1646
|
-
}, this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.endpoint = void 0, this.type = void 0, this.channel = void 0, this.language = void 0, this.productType = "", this.userId = void 0, this.session = void 0, this.successUrl = void 0, this.cancelUrl = void 0, this.failUrl = void 0, this.sportsUrl = void 0, this.casinoUrl = void 0, this.contactUrl = void 0, this.depositUrl = void 0, this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.homeUrl = void 0, this.beforeRedirect = St, this.forwardCashierRedirects = !1, this.enableStepUpAuth = !1, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
|
|
1777
|
+
}, this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.endpoint = void 0, this.type = void 0, this.channel = void 0, this.language = void 0, this.productType = "", this.userId = void 0, this.session = void 0, this.successUrl = void 0, this.cancelUrl = void 0, this.failUrl = void 0, this.sportsUrl = void 0, this.casinoUrl = void 0, this.contactUrl = void 0, this.depositUrl = void 0, this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.homeUrl = void 0, this.beforeRedirect = St, this.forwardCashierRedirects = !1, this.enableStepUpAuth = !1, this.showApiErrorMessage = !1, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0, this.errorMessage = "", this.errorFromApi = !1;
|
|
1647
1778
|
}
|
|
1648
1779
|
get typeParameter() {
|
|
1649
1780
|
if (this.type === "deposit")
|
|
@@ -1667,7 +1798,7 @@ const Ct = class {
|
|
|
1667
1798
|
window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.closeSSEStream();
|
|
1668
1799
|
}
|
|
1669
1800
|
render() {
|
|
1670
|
-
return h(ot, { key: "
|
|
1801
|
+
return h(ot, { key: "338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020" }, this.enableStepUpAuth && h("player-step-up-auth", { key: "b0076f39d95d35b3cae6d6bb0a039feb39764f47", endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }), h("div", { key: "00f02636ed279a41dd203bdaea54f41eacaa8f86", ref: (e) => this.stylingContainer = e, class: "" }, h("div", { key: "120c160a3f0729e5aae360e9fc7b99e33c93e01c", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}` }, !(this.isMobile && !this.isShortCashier) && h("h2", { key: "664216161b01c6e49bc36b738eb02ae622eeda09", class: "CategoryTitle" }, be(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), h("div", { key: "f57113548723235044ac51485b37e2e9b6e3ee4c", style: { marginTop: this.isShortCashier ? "30px" : "0" } }, this.isMobile && !this.isShortCashier ? h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, h("defs", null), h("g", { transform: "translate(-20 -158)" }, h("g", { transform: "translate(20 158)" }, h("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)" })))), h("h2", { class: "CategoryTitleMobile" }, be(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? h("iframe", { ref: (e) => this.cashierIframeRef = e, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) : this.errorFromApi ? h("h3", { class: "ErrorMessage" }, this.errorMessage) : h("h3", { innerHTML: this.errorMessage || (this.type === "deposit" ? be("denyDeposit", this.language) : be("denyWithdrawal", this.language)), class: "ErrorMessage" }))));
|
|
1671
1802
|
}
|
|
1672
1803
|
async loadWidget() {
|
|
1673
1804
|
const e = {
|
|
@@ -1692,21 +1823,20 @@ const Ct = class {
|
|
|
1692
1823
|
"X-Client-Request-Timestamp": et.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
|
|
1693
1824
|
},
|
|
1694
1825
|
body: JSON.stringify(e)
|
|
1695
|
-
});
|
|
1696
|
-
if (!i.ok)
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
const o = await i.json();
|
|
1701
|
-
if (o.CashierInfo)
|
|
1702
|
-
this.cashierInfoUrl = o.CashierInfo.Url;
|
|
1826
|
+
}), n = await i.json();
|
|
1827
|
+
if (!i.ok && (console.error(n), !this.showApiErrorMessage))
|
|
1828
|
+
return;
|
|
1829
|
+
if (n.CashierInfo)
|
|
1830
|
+
this.cashierInfoUrl = n.CashierInfo.Url;
|
|
1703
1831
|
else {
|
|
1704
1832
|
let p;
|
|
1705
|
-
if (
|
|
1706
|
-
let H = this.errorCodes.find((
|
|
1707
|
-
H ?
|
|
1833
|
+
if (n.ResponseMessage) {
|
|
1834
|
+
let H = this.errorCodes.find((O) => n.ResponseMessage.includes(O)) || null;
|
|
1835
|
+
const $ = H ? be(`errorCode${H}`, this.language) : void 0;
|
|
1836
|
+
$ ? p = $ : this.showApiErrorMessage ? (p = n.ResponseMessage, this.errorFromApi = !0) : p = be("notFoundErrorCode", this.language);
|
|
1708
1837
|
} else
|
|
1709
1838
|
p = this.type === "deposit" ? be("denyDeposit", this.language) : be("denyWithdrawal", this.language);
|
|
1839
|
+
this.showApiErrorMessage && (this.errorMessage = p);
|
|
1710
1840
|
const E = { type: "error", message: p };
|
|
1711
1841
|
window.postMessage({ type: "DenyDepositOrWithdrawal", data: E }, window.location.href);
|
|
1712
1842
|
}
|
|
@@ -1725,8 +1855,8 @@ const Ct = class {
|
|
|
1725
1855
|
const i = this.extractCashierRedirectReason(t);
|
|
1726
1856
|
if (!i || this.emitForwardedRedirect(e, i))
|
|
1727
1857
|
return;
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1858
|
+
const n = this.resolveRedirectPlan(i);
|
|
1859
|
+
n && this.doRedirect(n.reason, n.targetUrl);
|
|
1730
1860
|
}
|
|
1731
1861
|
extractCashierRedirectReason(e) {
|
|
1732
1862
|
if (typeof e?.type == "string" && Ge.includes(e.type))
|
|
@@ -1828,8 +1958,8 @@ const Ct = class {
|
|
|
1828
1958
|
try {
|
|
1829
1959
|
const t = JSON.parse(e.data), i = t.type;
|
|
1830
1960
|
if (i === We.TWO_FACTOR_AUTH) {
|
|
1831
|
-
const { body: { challengeId:
|
|
1832
|
-
|
|
1961
|
+
const { body: { challengeId: n } = {} } = t;
|
|
1962
|
+
n ? this.triggerStepUpAuth(n) : console.error(`${We.TWO_FACTOR_AUTH} received but challengeId not found in body`);
|
|
1833
1963
|
} else
|
|
1834
1964
|
i === We.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: wt.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
1835
1965
|
} catch (t) {
|