@everymatrix/casino-header-controller 1.88.4 → 1.88.5
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/{CasinoHamburgerMenu-Cq4XjNDy.cjs → CasinoHamburgerMenu-DPAWsxcB.cjs} +1 -1
- package/components/{CasinoHamburgerMenu-Dmk3_m_R.js → CasinoHamburgerMenu-DqghAECH.js} +1 -1
- package/components/{CasinoHamburgerMenu-DqxLnQ_7.js → CasinoHamburgerMenu-UB4lUK8a.js} +1 -1
- package/components/{CasinoHeaderController-CvFMXVYA.js → CasinoHeaderController-BHdOQzEB.js} +5 -5
- package/components/{CasinoHeaderController-J9q1MLwQ.cjs → CasinoHeaderController-Zo5oR6Ny.cjs} +2 -2
- package/components/{CasinoHeaderController-CepePS80.js → CasinoHeaderController-mDxkeseY.js} +5 -5
- package/components/{CasinoSlider-BgkLIxPr.cjs → CasinoSlider-BwBiBR0J.cjs} +1 -1
- package/components/{CasinoSlider-AkuBsjha.js → CasinoSlider-DhfUAihw.js} +1 -1
- package/components/{CasinoSlider-DIuh3PYK.js → CasinoSlider-vs-a69B5.js} +1 -1
- package/components/{PlayerAccountBalanceModal-Ct_z2q9j.js → PlayerAccountBalanceModal-Cn5Akbrr.js} +1 -1
- package/components/{PlayerAccountBalanceModal-DuWuBtNE.js → PlayerAccountBalanceModal-DMJZhpHI.js} +1 -1
- package/components/{PlayerAccountBalanceModal-_XlRvtA8.cjs → PlayerAccountBalanceModal-DidSHQxn.cjs} +1 -1
- package/components/{PlayerDeposit-s8LmDxdq.cjs → PlayerDeposit-Ca_XbeKW.cjs} +1 -1
- package/components/{PlayerDeposit-D2BC1SBx.js → PlayerDeposit-Ccb-sS7P.js} +1 -1
- package/components/{PlayerDeposit-WHoNgAWM.js → PlayerDeposit-DWN32Dbz.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-2ff63899-DFkeoszo.cjs → index-2ff63899-COoMiIKA.cjs} +1 -1
- package/stencil/{index-2ff63899-CU7X-Bhs.js → index-2ff63899-DRkp431j.js} +1 -1
- package/stencil/{index-2ff63899-KGpA_ZPz.js → index-2ff63899-yh4FXjFo.js} +1 -1
- package/stencil/{player-step-up-auth_2-DCCX3Bdx.js → player-step-up-auth_2-CdVoyTBA.js} +174 -174
- package/stencil/{player-step-up-auth_2-D0PTjQ_P.js → player-step-up-auth_2-DW3kilOn.js} +3 -3
- package/stencil/{player-step-up-auth_2-C-i2tmen.cjs → player-step-up-auth_2-Dj9m4nvm.cjs} +5 -5
- package/stencil/{user-deposit-withdrawal-B-YEn-PG.cjs → user-deposit-withdrawal-Bmlp014M.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-raxjM2Fx.js → user-deposit-withdrawal-Cady9MLS.js} +1 -1
- package/stencil/{user-deposit-withdrawal-DazxMIT9.js → user-deposit-withdrawal-DkjH5Bnt.js} +1 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
var Se = (e, t,
|
|
1
|
+
var Se = (e, t, r) => new Promise((n, h) => {
|
|
2
2
|
var E = (b) => {
|
|
3
3
|
try {
|
|
4
|
-
P(
|
|
4
|
+
P(r.next(b));
|
|
5
5
|
} catch (L) {
|
|
6
6
|
h(L);
|
|
7
7
|
}
|
|
8
8
|
}, U = (b) => {
|
|
9
9
|
try {
|
|
10
|
-
P(
|
|
10
|
+
P(r.throw(b));
|
|
11
11
|
} catch (L) {
|
|
12
12
|
h(L);
|
|
13
13
|
}
|
|
14
14
|
}, P = (b) => b.done ? n(b.value) : Promise.resolve(b.value).then(E, U);
|
|
15
|
-
P((
|
|
15
|
+
P((r = r.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as Ke, h as p, F as We, g as ot, H as st } from "./index-2ff63899-
|
|
17
|
+
import { r as Ke, h as p, F as We, g as ot, H as st } from "./index-2ff63899-yh4FXjFo.js";
|
|
18
18
|
const Ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
19
19
|
function Ue(e, t) {
|
|
20
20
|
if (e) {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const r = document.createElement("style");
|
|
22
|
+
r.innerHTML = t, e.appendChild(r);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
function He(e, t) {
|
|
26
26
|
if (!e || !t)
|
|
27
27
|
return;
|
|
28
|
-
const
|
|
29
|
-
fetch(
|
|
28
|
+
const r = new URL(t);
|
|
29
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
30
30
|
const h = document.createElement("style");
|
|
31
31
|
h.innerHTML = n, e && e.appendChild(h);
|
|
32
32
|
}).catch((n) => {
|
|
33
33
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
function Ze(e, t,
|
|
36
|
+
function Ze(e, t, r, n = !1) {
|
|
37
37
|
if (!window.emMessageBus)
|
|
38
38
|
return;
|
|
39
39
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
40
|
-
return
|
|
41
|
-
window[Ae] || (window[Ae] = {}),
|
|
42
|
-
const E =
|
|
40
|
+
return r = dt(e, t), r;
|
|
41
|
+
window[Ae] || (window[Ae] = {}), r = lt(e, t);
|
|
42
|
+
const E = r.unsubscribe.bind(r), U = () => {
|
|
43
43
|
if (window[Ae][t]) {
|
|
44
44
|
const P = window[Ae][t];
|
|
45
45
|
P.refCount > 1 ? P.refCount = P.refCount - 1 : delete window[Ae][t];
|
|
46
46
|
}
|
|
47
47
|
E();
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return r.unsubscribe = U, r;
|
|
50
50
|
}
|
|
51
51
|
function dt(e, t) {
|
|
52
|
-
const
|
|
52
|
+
const r = document.createElement("style");
|
|
53
53
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
54
|
-
e && (
|
|
54
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function lt(e, t) {
|
|
58
|
-
return window.emMessageBus.subscribe(t, (
|
|
58
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
59
59
|
var P;
|
|
60
60
|
if (!e)
|
|
61
61
|
return;
|
|
62
62
|
const n = e.getRootNode(), h = window[Ae];
|
|
63
63
|
let E = (P = h[t]) == null ? void 0 : P.sheet;
|
|
64
|
-
E ? h[t].refCount = h[t].refCount + 1 : (E = new CSSStyleSheet(), E.replaceSync(
|
|
64
|
+
E ? h[t].refCount = h[t].refCount + 1 : (E = new CSSStyleSheet(), E.replaceSync(r), h[t] = {
|
|
65
65
|
sheet: E,
|
|
66
66
|
refCount: 1
|
|
67
67
|
});
|
|
@@ -287,15 +287,15 @@ const ut = "en", Qe = {
|
|
|
287
287
|
otpVerified: "OTP verificado com sucesso!"
|
|
288
288
|
}
|
|
289
289
|
}, Ye = (e) => new Promise((t) => {
|
|
290
|
-
fetch(e).then((
|
|
291
|
-
Object.keys(
|
|
292
|
-
for (let h in
|
|
293
|
-
Qe[n][h] =
|
|
290
|
+
fetch(e).then((r) => r.json()).then((r) => {
|
|
291
|
+
Object.keys(r).forEach((n) => {
|
|
292
|
+
for (let h in r[n])
|
|
293
|
+
Qe[n][h] = r[n][h];
|
|
294
294
|
}), t(!0);
|
|
295
295
|
});
|
|
296
296
|
}), k = (e, t) => {
|
|
297
|
-
const
|
|
298
|
-
return Qe[
|
|
297
|
+
const r = t;
|
|
298
|
+
return Qe[r !== void 0 ? r : ut][e];
|
|
299
299
|
}, ct = ".OtpPopupOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--emw--color-overlay, rgba(0, 0, 0, 0.5));display:flex;align-items:center;justify-content:center}.OtpButton{font-family:var(--emw--button-typography);border:var(--emw--button-border, none);border-radius:var(--emw--button-border-radius, 3px);border-color:var(--emw--button-border-color);background-color:var(--emw--button-background-color, var(--emw--color-primary, #007bff));color:var(--emw--button-typography, var(--emw--color-white, #fff));padding:10px 20px;cursor:pointer;font-size:16px}.OtpButton.error{background:var(--emw--color-error, #dd3434)}.OtpPopupContent{position:relative;background:var(--emw--color-white, #fff);padding:20px;border-radius:5px;text-align:center;min-width:25%;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:20px}.OtpPopupContent .OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpPopupContent .OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px}.OtpPopupContent .OtpError h2{margin:0}.OtpPopupContent .OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpField{display:flex;justify-content:center}.OtpField input{width:24px;font-size:32px;padding:10px;text-align:center;border-radius:5px;margin:2px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:bold;outline:none;transition:all 0.1s}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{border:2px solid var(--emw--color-primary, #007bff);box-shadow:0 0 2px 2px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.OtpSuccessOverlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(var(--emw--color-green-rgb, 255, 255, 255), 0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}", ht = ct, pt = class {
|
|
300
300
|
/**
|
|
301
301
|
* Watch for changes in the translation URL and fetch new translations
|
|
@@ -369,13 +369,13 @@ const ut = "en", Qe = {
|
|
|
369
369
|
try {
|
|
370
370
|
const e = new URL(`/api/v1/mfa/challenge/${this.token}/config`, this.endpoint);
|
|
371
371
|
this.isLoading = !0;
|
|
372
|
-
const t = yield fetch(e.href),
|
|
372
|
+
const t = yield fetch(e.href), r = yield t.json();
|
|
373
373
|
if (t.ok)
|
|
374
|
-
this.config =
|
|
375
|
-
else if (
|
|
374
|
+
this.config = r, this.otp = Array(this.config.inputLength).fill(""), this.isLoading = !1, this.showResendOtp = !1, this.expirationTime = this.config.expirationTime, this.serverTime = this.config.serverTime, this.config.numberOfValidateAttempts !== 0 && (this.hasErrors = !0, this.errorMessage = k("invalidOtp", this.language)), this.config.numberOfValidateAttempts === this.config.maxValidationAttempts - 1 && (this.isLastWarning = !0), this.calculateTimeLeft(), this.startCountdown();
|
|
375
|
+
else if (r && r.details === "gm.twofa.token_max_attempts_exceeded")
|
|
376
376
|
this.handleCloseWidget();
|
|
377
377
|
else {
|
|
378
|
-
const n =
|
|
378
|
+
const n = r && r.message || `Failed to load config. Status: ${t.status}`;
|
|
379
379
|
throw new Error(n);
|
|
380
380
|
}
|
|
381
381
|
} catch (e) {
|
|
@@ -388,7 +388,7 @@ const ut = "en", Qe = {
|
|
|
388
388
|
* Adjusts client time based on server offset.
|
|
389
389
|
*/
|
|
390
390
|
calculateTimeLeft() {
|
|
391
|
-
const e = new Date(this.expirationTime), t = new Date(this.serverTime),
|
|
391
|
+
const e = new Date(this.expirationTime), t = new Date(this.serverTime), r = /* @__PURE__ */ new Date(), n = t.getTime() - r.getTime();
|
|
392
392
|
this.expirationTimestamp = e.getTime() - n;
|
|
393
393
|
const h = Date.now(), E = Math.max(0, Math.floor((this.expirationTimestamp - h) / 1e3));
|
|
394
394
|
this.timeLeft = E;
|
|
@@ -410,8 +410,8 @@ const ut = "en", Qe = {
|
|
|
410
410
|
* @returns A formatted string representing minutes and seconds.
|
|
411
411
|
*/
|
|
412
412
|
formatTime(e) {
|
|
413
|
-
const t = Math.floor(e / 60),
|
|
414
|
-
return `${t.toString().padStart(2, "0")}:${
|
|
413
|
+
const t = Math.floor(e / 60), r = e % 60;
|
|
414
|
+
return `${t.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
417
|
* Sets a reference to the OTP inputs.
|
|
@@ -429,8 +429,8 @@ const ut = "en", Qe = {
|
|
|
429
429
|
* @param value - The inputted value.
|
|
430
430
|
*/
|
|
431
431
|
updateOtpState(e, t) {
|
|
432
|
-
const
|
|
433
|
-
|
|
432
|
+
const r = [...this.otp];
|
|
433
|
+
r[e] = t.toUpperCase(), this.otp = r;
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* Handles pasting an OTP directly into the input fields.
|
|
@@ -439,9 +439,9 @@ const ut = "en", Qe = {
|
|
|
439
439
|
* @param e - The clipboard event containing pasted data.
|
|
440
440
|
*/
|
|
441
441
|
handleOnPasteOtp(e) {
|
|
442
|
-
var t,
|
|
442
|
+
var t, r, n;
|
|
443
443
|
e.preventDefault();
|
|
444
|
-
const E = (((
|
|
444
|
+
const E = (((r = (t = e.clipboardData) === null || t === void 0 ? void 0 : t.getData("text")) === null || r === void 0 ? void 0 : r.trim()) || "").slice(0, this.config.inputLength).split("");
|
|
445
445
|
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();
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
@@ -452,13 +452,13 @@ const ut = "en", Qe = {
|
|
|
452
452
|
* @param index - The index of the input field being updated.
|
|
453
453
|
*/
|
|
454
454
|
handleOtpInput(e, t) {
|
|
455
|
-
const
|
|
455
|
+
const r = e.target, n = r.value;
|
|
456
456
|
if (/^[a-z0-9]$/i.test(n)) {
|
|
457
457
|
this.updateOtpState(t, n);
|
|
458
458
|
const h = this.otpInputs[t + 1];
|
|
459
459
|
h == null || h.focus();
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
r.value = "";
|
|
462
462
|
}
|
|
463
463
|
/**
|
|
464
464
|
* Handles key press events for OTP inputs.
|
|
@@ -468,14 +468,14 @@ const ut = "en", Qe = {
|
|
|
468
468
|
* @param index - The index of the input field.
|
|
469
469
|
*/
|
|
470
470
|
handleKeyDown(e, t) {
|
|
471
|
-
const
|
|
472
|
-
if (/^[a-z0-9]$/i.test(
|
|
473
|
-
if (n &&
|
|
471
|
+
const r = e.key, n = e.ctrlKey || e.metaKey;
|
|
472
|
+
if (/^[a-z0-9]$/i.test(r)) {
|
|
473
|
+
if (n && r.toLowerCase() === "v")
|
|
474
474
|
return;
|
|
475
|
-
e.preventDefault(), this.updateOtpState(t,
|
|
475
|
+
e.preventDefault(), this.updateOtpState(t, r);
|
|
476
476
|
const h = this.otpInputs[t + 1];
|
|
477
477
|
h == null || h.focus();
|
|
478
|
-
} else if (
|
|
478
|
+
} else if (r === "Backspace") {
|
|
479
479
|
e.preventDefault(), this.otp[t] !== "" && this.updateOtpState(t, "");
|
|
480
480
|
const h = this.otpInputs[t - 1];
|
|
481
481
|
h == null || h.focus();
|
|
@@ -532,19 +532,19 @@ const ut = "en", Qe = {
|
|
|
532
532
|
const t = new URL(`/api/v1/mfa/challenge/${this.token}/validate`, this.endpoint);
|
|
533
533
|
t.searchParams.append("input", e);
|
|
534
534
|
try {
|
|
535
|
-
const
|
|
536
|
-
if (
|
|
535
|
+
const r = yield fetch(t.href, { method: "POST" });
|
|
536
|
+
if (r.status === 200) {
|
|
537
537
|
this.handleSuccess();
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
|
-
const h = (yield
|
|
540
|
+
const h = (yield r.json()).message || "";
|
|
541
541
|
if (h.toLowerCase().includes("expired")) {
|
|
542
542
|
this.hasErrors = !0, this.errorMessage = k("otpExpiredMessage", this.language), this.triggerShakeAnimation(), yield this.getConfig();
|
|
543
543
|
return;
|
|
544
544
|
}
|
|
545
545
|
throw new Error(h);
|
|
546
|
-
} catch (
|
|
547
|
-
if (
|
|
546
|
+
} catch (r) {
|
|
547
|
+
if (r.message === "gm.multifactorauthentication.challenge_internal_server_error" || r.message === "gm.multifactorauthentication.internal_server_error") {
|
|
548
548
|
if (this.config.numberOfValidateAttempts === this.config.maxValidationAttempts - 1) {
|
|
549
549
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage({
|
|
550
550
|
type: "WidgetNotification",
|
|
@@ -558,7 +558,7 @@ const ut = "en", Qe = {
|
|
|
558
558
|
this.hasErrors = !0, this.errorMessage = k("invalidOtp", this.language), this.triggerShakeAnimation(), this.getConfig();
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
|
-
console.error("OTP submission failed:",
|
|
561
|
+
console.error("OTP submission failed:", r), this.hasErrors = !0, this.errorMessage = k("submissionError", this.language), this.triggerShakeAnimation();
|
|
562
562
|
} finally {
|
|
563
563
|
this.isLoading = !1, this.isValidating = !1;
|
|
564
564
|
}
|
|
@@ -615,9 +615,9 @@ const ut = "en", Qe = {
|
|
|
615
615
|
* Displays the OTP popup, input fields, timer, and action buttons.
|
|
616
616
|
*/
|
|
617
617
|
render() {
|
|
618
|
-
return p("div", { key: "
|
|
619
|
-
const
|
|
620
|
-
return p("input", { key: t, ref: (n) => this.setOtpInputRef(n, t), id: `otp-input-${t}`, type: "text", inputmode: "numeric", pattern: "[0-9]", class: `otp-box ${
|
|
618
|
+
return p("div", { key: "76ac4d8968da87098db7f2b7f78b27edb7928185", ref: (e) => this.stylingContainer = e }, this.showPopup && p("div", { key: "44909cc96a9b5e86cab28aa7fdca261d0b749253", class: "OtpPopupOverlay" }, p("div", { key: "6e424d5ae5dedae3f83782c9a4c9e483c88357aa", class: `OtpPopupContent ${this.shakeError ? "shake" : ""}` }, this.isLoading ? p("div", { class: "OtpLoaderContainer" }, p("span", { class: "OtpLoader" })) : this.hasConfigErrors ? p("div", { class: "OtpError" }, p("div", { class: "OtpErrorHeader" }, p("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("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" })), p("h2", null, k("errorHeader", this.language))), p("p", null, this.errorMessage), p("button", { class: "OtpButton error", onClick: this.manualClosePopup, "aria-label": k("close", this.language) }, k("close", this.language))) : p(We, null, p("div", { class: "otp-description" }, this.showResendOtp ? p("p", { class: "OtpNoticeMessage", role: "alert" }, k("otpExpiredMessage", this.language)) : p(We, null, p("p", { class: this.isLastWarning ? "LastWarningMessage" : "" }, k(this.isLastWarning ? "popupMessageLastWarning" : "popupMessage", this.language)), this.hasErrors && p("p", { class: "OtpErrorMessage", role: "alert" }, this.errorMessage))), p("div", { class: "OtpFieldWrapper" }, p("h2", null, k("otpHeading", this.language)), p("div", { class: "OtpField" }, this.otp.map((e, t) => {
|
|
619
|
+
const r = this.config.inputLength % 2 === 0 && t === this.config.inputLength / 2 - 1;
|
|
620
|
+
return p("input", { key: t, ref: (n) => this.setOtpInputRef(n, t), id: `otp-input-${t}`, type: "text", inputmode: "numeric", pattern: "[0-9]", class: `otp-box ${r ? "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": `${k("otpDigit", this.language)} ${t + 1}`, "aria-invalid": this.hasErrors });
|
|
621
621
|
})), p("div", { class: "OtpTimerContainer" }, p("div", { class: `OtpTimer ${this.isLastWarning ? "warning" : ""} ${this.timeLeft < 60 ? "critical" : ""}`, role: "timer", "aria-live": "polite" }, p("svg", { class: "timer-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("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" })), p("span", { class: "timer-text" }, this.formatTime(this.timeLeft), " ", k("minutes", this.language))))), this.isSuccess && p("div", { class: "OtpSuccessOverlay" }, p("svg", { class: "success-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, p("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" })), p("span", null, k("otpVerified", this.language))), p("div", { class: "OtpActionButtons" }, this.showResendOtp ? p("button", { class: "OtpButton primary", onClick: this.handleResendOtp, disabled: this.isLoading, "aria-label": k("resendOtp", this.language) }, k("resendOtp", this.language)) : p("button", { class: `OtpButton primary ${this.isValidating ? "loading" : ""}`, onClick: this.submitOtp, disabled: this.otp.join("").length !== this.config.inputLength || this.isValidating || this.isLoading, "aria-label": k("submit", this.language), "aria-busy": this.isValidating }, this.isValidating ? p(We, null, p("span", { class: "button-spinner" }), p("span", { class: "button-text" }, k("verifying", this.language))) : p("span", { class: "button-text" }, k("submit", this.language))), p("button", { class: "OtpButton secondary", onClick: this.manualClosePopup, disabled: this.isValidating, "aria-label": k("close", this.language) }, k("close", this.language)))))));
|
|
622
622
|
}
|
|
623
623
|
get el() {
|
|
@@ -735,15 +735,15 @@ const ft = "en", gt = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
|
|
|
735
735
|
errorCode21123: "Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"
|
|
736
736
|
}
|
|
737
737
|
}, mt = (e) => new Promise((t) => {
|
|
738
|
-
fetch(e).then((
|
|
739
|
-
Object.keys(
|
|
740
|
-
for (let h in
|
|
741
|
-
Je[n][h] =
|
|
738
|
+
fetch(e).then((r) => r.json()).then((r) => {
|
|
739
|
+
Object.keys(r).forEach((n) => {
|
|
740
|
+
for (let h in r[n])
|
|
741
|
+
Je[n][h] = r[n][h];
|
|
742
742
|
}), t(!0);
|
|
743
743
|
});
|
|
744
744
|
}), Ce = (e, t) => {
|
|
745
|
-
const
|
|
746
|
-
return Je[
|
|
745
|
+
const r = t;
|
|
746
|
+
return Je[r !== void 0 && gt.includes(r) ? r : ft][e];
|
|
747
747
|
}, vt = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), yt = (e) => {
|
|
748
748
|
if (!e || typeof e != "string")
|
|
749
749
|
return !1;
|
|
@@ -752,10 +752,10 @@ const ft = "en", gt = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
|
|
|
752
752
|
};
|
|
753
753
|
var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, et = { exports: {} };
|
|
754
754
|
(function(e, t) {
|
|
755
|
-
(function(
|
|
755
|
+
(function(r, n) {
|
|
756
756
|
e.exports = n();
|
|
757
757
|
})(Ve, function() {
|
|
758
|
-
var
|
|
758
|
+
var r = 1e3, n = 6e4, h = 36e5, E = "millisecond", U = "second", P = "minute", b = "hour", L = "day", we = "week", W = "month", Te = "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) {
|
|
759
759
|
var l = ["th", "st", "nd", "rd"], a = g % 100;
|
|
760
760
|
return "[" + g + (l[(a - 20) % 10] || l[a] || l[0]) + "]";
|
|
761
761
|
} }, A = function(g, l, a) {
|
|
@@ -902,7 +902,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
902
902
|
return T(1);
|
|
903
903
|
if (y === we)
|
|
904
904
|
return T(7);
|
|
905
|
-
var R = (s = {}, s[P] = n, s[b] = h, s[U] =
|
|
905
|
+
var R = (s = {}, s[P] = n, s[b] = h, s[U] = r, s)[y] || 1, H = this.$d.getTime() + a * R;
|
|
906
906
|
return M.w(H, this);
|
|
907
907
|
}, l.subtract = function(a, u) {
|
|
908
908
|
return this.add(-1 * a, u);
|
|
@@ -1002,7 +1002,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1002
1002
|
m = N / n;
|
|
1003
1003
|
break;
|
|
1004
1004
|
case U:
|
|
1005
|
-
m = N /
|
|
1005
|
+
m = N / r;
|
|
1006
1006
|
break;
|
|
1007
1007
|
default:
|
|
1008
1008
|
m = N;
|
|
@@ -1043,10 +1043,10 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1043
1043
|
const tt = et.exports;
|
|
1044
1044
|
var rt = { exports: {} };
|
|
1045
1045
|
(function(e, t) {
|
|
1046
|
-
(function(
|
|
1046
|
+
(function(r, n) {
|
|
1047
1047
|
e.exports = n();
|
|
1048
1048
|
})(Ve, function() {
|
|
1049
|
-
var
|
|
1049
|
+
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, h = /([+-]|\d\d)/g;
|
|
1050
1050
|
return function(E, U, P) {
|
|
1051
1051
|
var b = U.prototype;
|
|
1052
1052
|
P.utc = function(v) {
|
|
@@ -1054,7 +1054,7 @@ var rt = { exports: {} };
|
|
|
1054
1054
|
return new U(Y);
|
|
1055
1055
|
}, b.utc = function(v) {
|
|
1056
1056
|
var Y = P(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1057
|
-
return v ? Y.add(this.utcOffset(),
|
|
1057
|
+
return v ? Y.add(this.utcOffset(), r) : Y;
|
|
1058
1058
|
}, b.local = function() {
|
|
1059
1059
|
return P(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1060
1060
|
};
|
|
@@ -1089,7 +1089,7 @@ var rt = { exports: {} };
|
|
|
1089
1089
|
return A.$offset = ce, A.$u = v === 0, A;
|
|
1090
1090
|
if (v !== 0) {
|
|
1091
1091
|
var ie = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1092
|
-
(A = this.local().add(ce + ie,
|
|
1092
|
+
(A = this.local().add(ce + ie, r)).$offset = ce, A.$x.$localOffset = ie;
|
|
1093
1093
|
} else
|
|
1094
1094
|
A = this.utc();
|
|
1095
1095
|
return A;
|
|
@@ -1130,23 +1130,23 @@ var je = { exports: {} };
|
|
|
1130
1130
|
* https://github.com/Yaffle/EventSource/
|
|
1131
1131
|
*/
|
|
1132
1132
|
(function(e, t) {
|
|
1133
|
-
(function(
|
|
1134
|
-
var n =
|
|
1135
|
-
if (typeof window != "undefined" && typeof L != "undefined" && !("readyState" in L) && L.body == null && (L.readyState = "loading", window.addEventListener("load", function(
|
|
1133
|
+
(function(r) {
|
|
1134
|
+
var n = r.setTimeout, h = r.clearTimeout, E = r.XMLHttpRequest, U = r.XDomainRequest, P = r.ActiveXObject, b = r.EventSource, L = r.document, we = r.Promise, W = r.fetch, Te = r.Response, q = r.TextDecoder, re = r.TextEncoder, v = r.AbortController;
|
|
1135
|
+
if (typeof window != "undefined" && typeof L != "undefined" && !("readyState" in L) && L.body == null && (L.readyState = "loading", window.addEventListener("load", function(i) {
|
|
1136
1136
|
L.readyState = "complete";
|
|
1137
1137
|
}, !1)), E == null && P != null && (E = function() {
|
|
1138
1138
|
return new P("Microsoft.XMLHTTP");
|
|
1139
|
-
}), Object.create == null && (Object.create = function(
|
|
1139
|
+
}), Object.create == null && (Object.create = function(i) {
|
|
1140
1140
|
function d() {
|
|
1141
1141
|
}
|
|
1142
|
-
return d.prototype =
|
|
1142
|
+
return d.prototype = i, new d();
|
|
1143
1143
|
}), Date.now || (Date.now = function() {
|
|
1144
1144
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
1145
1145
|
}), v == null) {
|
|
1146
1146
|
var Y = W;
|
|
1147
|
-
W = function(
|
|
1147
|
+
W = function(i, d) {
|
|
1148
1148
|
var c = d.signal;
|
|
1149
|
-
return Y(
|
|
1149
|
+
return Y(i, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(o) {
|
|
1150
1150
|
var S = o.body.getReader();
|
|
1151
1151
|
return c._reader = S, c._aborted && c._reader.cancel(), {
|
|
1152
1152
|
status: o.status,
|
|
@@ -1171,7 +1171,7 @@ var je = { exports: {} };
|
|
|
1171
1171
|
function ue() {
|
|
1172
1172
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
1173
1173
|
}
|
|
1174
|
-
ue.prototype.decode = function(
|
|
1174
|
+
ue.prototype.decode = function(i) {
|
|
1175
1175
|
function d(D, x, w) {
|
|
1176
1176
|
if (w === 1)
|
|
1177
1177
|
return D >= 128 >> x && D << x <= 2047;
|
|
@@ -1190,8 +1190,8 @@ var je = { exports: {} };
|
|
|
1190
1190
|
return 3;
|
|
1191
1191
|
throw new Error();
|
|
1192
1192
|
}
|
|
1193
|
-
for (var o = 65533, S = "", f = this.bitsNeeded, C = this.codePoint, $ = 0; $ <
|
|
1194
|
-
var O =
|
|
1193
|
+
for (var o = 65533, S = "", f = this.bitsNeeded, C = this.codePoint, $ = 0; $ < i.length; $ += 1) {
|
|
1194
|
+
var O = i[$];
|
|
1195
1195
|
f !== 0 && (O < 128 || O > 191 || !d(C << 6 | O & 63, f - 6, c(f, C))) && (f = 0, C = o, S += String.fromCharCode(C)), f === 0 ? (O >= 0 && O <= 127 ? (f = 0, C = O) : O >= 192 && O <= 223 ? (f = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (f = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (f = 6 * 3, C = O & 7) : (f = 0, C = o), f !== 0 && !d(C, f, c(f, C)) && (f = 0, C = o)) : (f -= 6, C = C << 6 | O & 63), f === 0 && (C <= 65535 ? S += String.fromCharCode(C) : (S += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), S += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
|
|
1196
1196
|
}
|
|
1197
1197
|
return this.bitsNeeded = f, this.codePoint = C, S;
|
|
@@ -1199,18 +1199,18 @@ var je = { exports: {} };
|
|
|
1199
1199
|
var ce = function() {
|
|
1200
1200
|
try {
|
|
1201
1201
|
return new q().decode(new re().encode("test"), { stream: !0 }) === "test";
|
|
1202
|
-
} catch (
|
|
1203
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
1202
|
+
} catch (i) {
|
|
1203
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + i);
|
|
1204
1204
|
}
|
|
1205
1205
|
return !1;
|
|
1206
1206
|
};
|
|
1207
1207
|
(q == null || re == null || !ce()) && (q = ue);
|
|
1208
1208
|
var A = function() {
|
|
1209
1209
|
};
|
|
1210
|
-
function ie(
|
|
1211
|
-
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 =
|
|
1210
|
+
function ie(i) {
|
|
1211
|
+
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 = i, this._sendTimeout = 0, this._abort = A;
|
|
1212
1212
|
}
|
|
1213
|
-
ie.prototype.open = function(
|
|
1213
|
+
ie.prototype.open = function(i, d) {
|
|
1214
1214
|
this._abort(!0);
|
|
1215
1215
|
var c = this, o = this._xhr, S = 1, f = 0;
|
|
1216
1216
|
this._abort = function(w) {
|
|
@@ -1268,23 +1268,23 @@ var je = { exports: {} };
|
|
|
1268
1268
|
O("abort", w);
|
|
1269
1269
|
}), "onprogress" in o && (o.onprogress = $), "onreadystatechange" in o && (o.onreadystatechange = function(w) {
|
|
1270
1270
|
D(w);
|
|
1271
|
-
}), ("contentType" in o || !("ontimeout" in E.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(
|
|
1271
|
+
}), ("contentType" in o || !("ontimeout" in E.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(i, d, !0), "readyState" in o && (f = n(function() {
|
|
1272
1272
|
x();
|
|
1273
1273
|
}, 0));
|
|
1274
1274
|
}, ie.prototype.abort = function() {
|
|
1275
1275
|
this._abort(!1);
|
|
1276
|
-
}, ie.prototype.getResponseHeader = function(
|
|
1276
|
+
}, ie.prototype.getResponseHeader = function(i) {
|
|
1277
1277
|
return this._contentType;
|
|
1278
|
-
}, ie.prototype.setRequestHeader = function(
|
|
1278
|
+
}, ie.prototype.setRequestHeader = function(i, d) {
|
|
1279
1279
|
var c = this._xhr;
|
|
1280
|
-
"setRequestHeader" in c && c.setRequestHeader(
|
|
1280
|
+
"setRequestHeader" in c && c.setRequestHeader(i, d);
|
|
1281
1281
|
}, ie.prototype.getAllResponseHeaders = function() {
|
|
1282
1282
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
1283
1283
|
}, ie.prototype.send = function() {
|
|
1284
1284
|
if ((!("ontimeout" in E.prototype) || !("sendAsBinary" in E.prototype) && !("mozAnon" in E.prototype)) && L != null && L.readyState != null && L.readyState !== "complete") {
|
|
1285
|
-
var
|
|
1286
|
-
|
|
1287
|
-
|
|
1285
|
+
var i = this;
|
|
1286
|
+
i._sendTimeout = n(function() {
|
|
1287
|
+
i._sendTimeout = 0, i.send();
|
|
1288
1288
|
}, 4);
|
|
1289
1289
|
return;
|
|
1290
1290
|
}
|
|
@@ -1296,55 +1296,55 @@ var je = { exports: {} };
|
|
|
1296
1296
|
throw c;
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
|
-
function ne(
|
|
1300
|
-
return
|
|
1299
|
+
function ne(i) {
|
|
1300
|
+
return i.replace(/[A-Z]/g, function(d) {
|
|
1301
1301
|
return String.fromCharCode(d.charCodeAt(0) + 32);
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
|
-
function Q(
|
|
1305
|
-
for (var d = /* @__PURE__ */ Object.create(null), c =
|
|
1304
|
+
function Q(i) {
|
|
1305
|
+
for (var d = /* @__PURE__ */ Object.create(null), c = i.split(`\r
|
|
1306
1306
|
`), o = 0; o < c.length; o += 1) {
|
|
1307
1307
|
var S = c[o], f = S.split(": "), C = f.shift(), $ = f.join(": ");
|
|
1308
1308
|
d[ne(C)] = $;
|
|
1309
1309
|
}
|
|
1310
1310
|
this._map = d;
|
|
1311
1311
|
}
|
|
1312
|
-
Q.prototype.get = function(
|
|
1313
|
-
return this._map[ne(
|
|
1312
|
+
Q.prototype.get = function(i) {
|
|
1313
|
+
return this._map[ne(i)];
|
|
1314
1314
|
}, E != null && E.HEADERS_RECEIVED == null && (E.HEADERS_RECEIVED = 2);
|
|
1315
1315
|
function he() {
|
|
1316
1316
|
}
|
|
1317
|
-
he.prototype.open = function(
|
|
1318
|
-
|
|
1317
|
+
he.prototype.open = function(i, d, c, o, S, f, C) {
|
|
1318
|
+
i.open("GET", S);
|
|
1319
1319
|
var $ = 0;
|
|
1320
|
-
|
|
1321
|
-
var D =
|
|
1320
|
+
i.onprogress = function() {
|
|
1321
|
+
var D = i.responseText, x = D.slice($);
|
|
1322
1322
|
$ += x.length, c(x);
|
|
1323
|
-
},
|
|
1323
|
+
}, i.onerror = function(D) {
|
|
1324
1324
|
D.preventDefault(), o(new Error("NetworkError"));
|
|
1325
|
-
},
|
|
1325
|
+
}, i.onload = function() {
|
|
1326
1326
|
o(null);
|
|
1327
|
-
},
|
|
1327
|
+
}, i.onabort = function() {
|
|
1328
1328
|
o(null);
|
|
1329
|
-
},
|
|
1330
|
-
if (
|
|
1331
|
-
var D =
|
|
1329
|
+
}, i.onreadystatechange = function() {
|
|
1330
|
+
if (i.readyState === E.HEADERS_RECEIVED) {
|
|
1331
|
+
var D = i.status, x = i.statusText, w = i.getResponseHeader("Content-Type"), I = i.getAllResponseHeaders();
|
|
1332
1332
|
d(D, x, w, new Q(I));
|
|
1333
1333
|
}
|
|
1334
|
-
},
|
|
1334
|
+
}, i.withCredentials = f;
|
|
1335
1335
|
for (var O in C)
|
|
1336
|
-
Object.prototype.hasOwnProperty.call(C, O) &&
|
|
1337
|
-
return
|
|
1336
|
+
Object.prototype.hasOwnProperty.call(C, O) && i.setRequestHeader(O, C[O]);
|
|
1337
|
+
return i.send(), i;
|
|
1338
1338
|
};
|
|
1339
|
-
function Ee(
|
|
1340
|
-
this._headers =
|
|
1339
|
+
function Ee(i) {
|
|
1340
|
+
this._headers = i;
|
|
1341
1341
|
}
|
|
1342
|
-
Ee.prototype.get = function(
|
|
1343
|
-
return this._headers.get(
|
|
1342
|
+
Ee.prototype.get = function(i) {
|
|
1343
|
+
return this._headers.get(i);
|
|
1344
1344
|
};
|
|
1345
1345
|
function ae() {
|
|
1346
1346
|
}
|
|
1347
|
-
ae.prototype.open = function(
|
|
1347
|
+
ae.prototype.open = function(i, d, c, o, S, f, C) {
|
|
1348
1348
|
var $ = null, O = new v(), D = O.signal, x = new q();
|
|
1349
1349
|
return W(S, {
|
|
1350
1350
|
headers: C,
|
|
@@ -1381,85 +1381,85 @@ var je = { exports: {} };
|
|
|
1381
1381
|
function _() {
|
|
1382
1382
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
1383
1383
|
}
|
|
1384
|
-
function M(
|
|
1384
|
+
function M(i) {
|
|
1385
1385
|
n(function() {
|
|
1386
|
-
throw
|
|
1386
|
+
throw i;
|
|
1387
1387
|
}, 0);
|
|
1388
1388
|
}
|
|
1389
|
-
_.prototype.dispatchEvent = function(
|
|
1390
|
-
|
|
1391
|
-
var d = this._listeners[
|
|
1389
|
+
_.prototype.dispatchEvent = function(i) {
|
|
1390
|
+
i.target = this;
|
|
1391
|
+
var d = this._listeners[i.type];
|
|
1392
1392
|
if (d != null)
|
|
1393
1393
|
for (var c = d.length, o = 0; o < c; o += 1) {
|
|
1394
1394
|
var S = d[o];
|
|
1395
1395
|
try {
|
|
1396
|
-
typeof S.handleEvent == "function" ? S.handleEvent(
|
|
1396
|
+
typeof S.handleEvent == "function" ? S.handleEvent(i) : S.call(this, i);
|
|
1397
1397
|
} catch (f) {
|
|
1398
1398
|
M(f);
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
}, _.prototype.addEventListener = function(
|
|
1402
|
-
|
|
1403
|
-
var c = this._listeners, o = c[
|
|
1404
|
-
o == null && (o = [], c[
|
|
1401
|
+
}, _.prototype.addEventListener = function(i, d) {
|
|
1402
|
+
i = String(i);
|
|
1403
|
+
var c = this._listeners, o = c[i];
|
|
1404
|
+
o == null && (o = [], c[i] = o);
|
|
1405
1405
|
for (var S = !1, f = 0; f < o.length; f += 1)
|
|
1406
1406
|
o[f] === d && (S = !0);
|
|
1407
1407
|
S || o.push(d);
|
|
1408
|
-
}, _.prototype.removeEventListener = function(
|
|
1409
|
-
|
|
1410
|
-
var c = this._listeners, o = c[
|
|
1408
|
+
}, _.prototype.removeEventListener = function(i, d) {
|
|
1409
|
+
i = String(i);
|
|
1410
|
+
var c = this._listeners, o = c[i];
|
|
1411
1411
|
if (o != null) {
|
|
1412
1412
|
for (var S = [], f = 0; f < o.length; f += 1)
|
|
1413
1413
|
o[f] !== d && S.push(o[f]);
|
|
1414
|
-
S.length === 0 ? delete c[
|
|
1414
|
+
S.length === 0 ? delete c[i] : c[i] = S;
|
|
1415
1415
|
}
|
|
1416
1416
|
};
|
|
1417
|
-
function oe(
|
|
1418
|
-
this.type =
|
|
1417
|
+
function oe(i) {
|
|
1418
|
+
this.type = i, this.target = void 0;
|
|
1419
1419
|
}
|
|
1420
|
-
function Re(
|
|
1421
|
-
oe.call(this,
|
|
1420
|
+
function Re(i, d) {
|
|
1421
|
+
oe.call(this, i), this.data = d.data, this.lastEventId = d.lastEventId;
|
|
1422
1422
|
}
|
|
1423
1423
|
Re.prototype = Object.create(oe.prototype);
|
|
1424
|
-
function g(
|
|
1425
|
-
oe.call(this,
|
|
1424
|
+
function g(i, d) {
|
|
1425
|
+
oe.call(this, i), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
|
|
1426
1426
|
}
|
|
1427
1427
|
g.prototype = Object.create(oe.prototype);
|
|
1428
|
-
function l(
|
|
1429
|
-
oe.call(this,
|
|
1428
|
+
function l(i, d) {
|
|
1429
|
+
oe.call(this, i), this.error = d.error;
|
|
1430
1430
|
}
|
|
1431
1431
|
l.prototype = Object.create(oe.prototype);
|
|
1432
|
-
var a = -1, u = 0, s = 1, m = 2, y = -1, T = 0, R = 1, H = 2, N = 3, Z = /^text\/event\-stream(;.*)?$/i, be = 1e3, pe = 18e6, fe = function(
|
|
1433
|
-
var c =
|
|
1432
|
+
var a = -1, u = 0, s = 1, m = 2, y = -1, T = 0, R = 1, H = 2, N = 3, Z = /^text\/event\-stream(;.*)?$/i, be = 1e3, pe = 18e6, fe = function(i, d) {
|
|
1433
|
+
var c = i == null ? d : parseInt(i, 10);
|
|
1434
1434
|
return c !== c && (c = d), se(c);
|
|
1435
|
-
}, se = function(
|
|
1436
|
-
return Math.min(Math.max(
|
|
1437
|
-
}, j = function(
|
|
1435
|
+
}, se = function(i) {
|
|
1436
|
+
return Math.min(Math.max(i, be), pe);
|
|
1437
|
+
}, j = function(i, d, c) {
|
|
1438
1438
|
try {
|
|
1439
|
-
typeof d == "function" && d.call(
|
|
1439
|
+
typeof d == "function" && d.call(i, c);
|
|
1440
1440
|
} catch (o) {
|
|
1441
1441
|
M(o);
|
|
1442
1442
|
}
|
|
1443
1443
|
};
|
|
1444
|
-
function z(
|
|
1445
|
-
_.call(this), d = d || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, it(this,
|
|
1444
|
+
function z(i, d) {
|
|
1445
|
+
_.call(this), d = d || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, it(this, i, d);
|
|
1446
1446
|
}
|
|
1447
1447
|
function Oe() {
|
|
1448
1448
|
return E != null && "withCredentials" in E.prototype || U == null ? new E() : new U();
|
|
1449
1449
|
}
|
|
1450
1450
|
var De = W != null && Te != null && "body" in Te.prototype;
|
|
1451
|
-
function it(
|
|
1451
|
+
function it(i, d, c) {
|
|
1452
1452
|
d = String(d);
|
|
1453
1453
|
var o = !!c.withCredentials, S = c.lastEventIdQueryParameterName || "lastEventId", f = se(1e3), C = fe(c.heartbeatTimeout, 45e3), $ = "", O = f, D = !1, x = 0, w = c.headers || {}, I = c.Transport, ge = De && I == null ? void 0 : new ie(I != null ? new I() : Oe()), ke = I != null && typeof I != "string" ? new I() : ge == null ? new ae() : new he(), J = void 0, G = 0, de = a, Pe = "", Le = "", me = "", $e = "", X = T, ze = 0, Me = 0, nt = function(V, F, ee, te) {
|
|
1454
1454
|
if (de === u)
|
|
1455
1455
|
if (V === 200 && ee != null && Z.test(ee)) {
|
|
1456
|
-
de = s, D = Date.now(), O = f,
|
|
1456
|
+
de = s, D = Date.now(), O = f, i.readyState = s;
|
|
1457
1457
|
var K = new g("open", {
|
|
1458
1458
|
status: V,
|
|
1459
1459
|
statusText: F,
|
|
1460
1460
|
headers: te
|
|
1461
1461
|
});
|
|
1462
|
-
|
|
1462
|
+
i.dispatchEvent(K), j(i, i.onopen, K);
|
|
1463
1463
|
} else {
|
|
1464
1464
|
var B = "";
|
|
1465
1465
|
V !== 200 ? (F && (F = F.replace(/\s+/g, " ")), B = "EventSource's response has a status " + V + " " + F + " that is not 200. Aborting the connection.") : B = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", Fe();
|
|
@@ -1468,7 +1468,7 @@ var je = { exports: {} };
|
|
|
1468
1468
|
statusText: F,
|
|
1469
1469
|
headers: te
|
|
1470
1470
|
});
|
|
1471
|
-
|
|
1471
|
+
i.dispatchEvent(K), j(i, i.onerror, K), console.error(B);
|
|
1472
1472
|
}
|
|
1473
1473
|
}, at = function(V) {
|
|
1474
1474
|
if (de === s) {
|
|
@@ -1498,7 +1498,7 @@ var je = { exports: {} };
|
|
|
1498
1498
|
data: Pe.slice(1),
|
|
1499
1499
|
lastEventId: Le
|
|
1500
1500
|
});
|
|
1501
|
-
if (
|
|
1501
|
+
if (i.dispatchEvent(xe), me === "open" ? j(i, i.onopen, xe) : me === "message" ? j(i, i.onmessage, xe) : me === "error" && j(i, i.onerror, xe), de === m)
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
1504
|
Pe = "", me = "";
|
|
@@ -1512,12 +1512,12 @@ var je = { exports: {} };
|
|
|
1512
1512
|
if (de === s || de === u) {
|
|
1513
1513
|
de = a, G !== 0 && (h(G), G = 0), G = n(function() {
|
|
1514
1514
|
_e();
|
|
1515
|
-
}, O), O = se(Math.min(f * 16, O * 2)),
|
|
1515
|
+
}, O), O = se(Math.min(f * 16, O * 2)), i.readyState = u;
|
|
1516
1516
|
var F = new l("error", { error: V });
|
|
1517
|
-
|
|
1517
|
+
i.dispatchEvent(F), j(i, i.onerror, F), V != null && console.error(V);
|
|
1518
1518
|
}
|
|
1519
1519
|
}, Fe = function() {
|
|
1520
|
-
de = m, J != null && (J.abort(), J = void 0), G !== 0 && (h(G), G = 0),
|
|
1520
|
+
de = m, J != null && (J.abort(), J = void 0), G !== 0 && (h(G), G = 0), i.readyState = m;
|
|
1521
1521
|
}, _e = function() {
|
|
1522
1522
|
if (G = 0, de !== a) {
|
|
1523
1523
|
if (!D && J != null)
|
|
@@ -1540,9 +1540,9 @@ var je = { exports: {} };
|
|
|
1540
1540
|
return xe === S ? "" : ye;
|
|
1541
1541
|
}), F += (d.indexOf("?") === -1 ? "?" : "&") + S + "=" + encodeURIComponent($);
|
|
1542
1542
|
}
|
|
1543
|
-
var te =
|
|
1543
|
+
var te = i.withCredentials, K = {};
|
|
1544
1544
|
K.Accept = "text/event-stream";
|
|
1545
|
-
var B =
|
|
1545
|
+
var B = i.headers;
|
|
1546
1546
|
if (B != null)
|
|
1547
1547
|
for (var ve in B)
|
|
1548
1548
|
Object.prototype.hasOwnProperty.call(B, ve) && (K[ve] = B[ve]);
|
|
@@ -1552,19 +1552,19 @@ var je = { exports: {} };
|
|
|
1552
1552
|
throw Fe(), ye;
|
|
1553
1553
|
}
|
|
1554
1554
|
};
|
|
1555
|
-
|
|
1555
|
+
i.url = d, i.readyState = u, i.withCredentials = o, i.headers = w, i._close = Fe, _e();
|
|
1556
1556
|
}
|
|
1557
1557
|
z.prototype = Object.create(_.prototype), z.prototype.CONNECTING = u, z.prototype.OPEN = s, z.prototype.CLOSED = m, z.prototype.close = function() {
|
|
1558
1558
|
this._close();
|
|
1559
1559
|
}, z.CONNECTING = u, z.OPEN = s, z.CLOSED = m, z.prototype.withCredentials = void 0;
|
|
1560
1560
|
var Be = b;
|
|
1561
|
-
E != null && (b == null || !("withCredentials" in b.prototype)) && (Be = z), function(
|
|
1561
|
+
E != null && (b == null || !("withCredentials" in b.prototype)) && (Be = z), function(i) {
|
|
1562
1562
|
{
|
|
1563
|
-
var d =
|
|
1563
|
+
var d = i(t);
|
|
1564
1564
|
d !== void 0 && (e.exports = d);
|
|
1565
1565
|
}
|
|
1566
|
-
}(function(
|
|
1567
|
-
|
|
1566
|
+
}(function(i) {
|
|
1567
|
+
i.EventSourcePolyfill = z, i.NativeEventSource = b, i.EventSource = Be;
|
|
1568
1568
|
});
|
|
1569
1569
|
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Ve : globalThis);
|
|
1570
1570
|
})(je, je.exports);
|
|
@@ -1717,7 +1717,7 @@ const Tt = class {
|
|
|
1717
1717
|
};
|
|
1718
1718
|
if (!(Object.values(e).some((t) => t === void 0) || !this.endpoint))
|
|
1719
1719
|
try {
|
|
1720
|
-
const t = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,
|
|
1720
|
+
const t = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, r = yield fetch(t, {
|
|
1721
1721
|
method: "POST",
|
|
1722
1722
|
headers: {
|
|
1723
1723
|
"X-Sessionid": this.session,
|
|
@@ -1726,11 +1726,11 @@ const Tt = class {
|
|
|
1726
1726
|
},
|
|
1727
1727
|
body: JSON.stringify(e)
|
|
1728
1728
|
});
|
|
1729
|
-
if (!
|
|
1730
|
-
const h = yield
|
|
1729
|
+
if (!r.ok) {
|
|
1730
|
+
const h = yield r.text();
|
|
1731
1731
|
throw new Error(h);
|
|
1732
1732
|
}
|
|
1733
|
-
const n = yield
|
|
1733
|
+
const n = yield r.json();
|
|
1734
1734
|
if (n.CashierInfo)
|
|
1735
1735
|
this.cashierInfoUrl = n.CashierInfo.Url;
|
|
1736
1736
|
else {
|
|
@@ -1756,10 +1756,10 @@ const Tt = class {
|
|
|
1756
1756
|
if (!t)
|
|
1757
1757
|
return;
|
|
1758
1758
|
this.applyLayoutHints(t);
|
|
1759
|
-
const
|
|
1760
|
-
if (!
|
|
1759
|
+
const r = this.extractCashierRedirectReason(t);
|
|
1760
|
+
if (!r || this.emitForwardedRedirect(e, r))
|
|
1761
1761
|
return;
|
|
1762
|
-
const n = this.resolveRedirectPlan(
|
|
1762
|
+
const n = this.resolveRedirectPlan(r);
|
|
1763
1763
|
n && this.doRedirect(n.reason, n.targetUrl);
|
|
1764
1764
|
}
|
|
1765
1765
|
extractCashierRedirectReason(e) {
|
|
@@ -1807,22 +1807,22 @@ const Tt = class {
|
|
|
1807
1807
|
emitForwardedRedirect(e, t) {
|
|
1808
1808
|
if (!this.forwardCashierRedirects)
|
|
1809
1809
|
return !1;
|
|
1810
|
-
const
|
|
1810
|
+
const r = {
|
|
1811
1811
|
type: `${Ge}:${t}`,
|
|
1812
1812
|
originalType: t,
|
|
1813
1813
|
payload: e.data,
|
|
1814
1814
|
origin: e.origin
|
|
1815
1815
|
};
|
|
1816
|
-
return window.postMessage(
|
|
1816
|
+
return window.postMessage(r, window.location.href), !0;
|
|
1817
1817
|
}
|
|
1818
1818
|
doRedirect(e, t) {
|
|
1819
|
-
const
|
|
1820
|
-
if (this.beforeRedirect(
|
|
1821
|
-
if (!
|
|
1819
|
+
const r = { reason: e, url: t, cancel: !1 };
|
|
1820
|
+
if (this.beforeRedirect(r), !r.cancel) {
|
|
1821
|
+
if (!r.url) {
|
|
1822
1822
|
window.location.href = "/";
|
|
1823
1823
|
return;
|
|
1824
1824
|
}
|
|
1825
|
-
window.location.href =
|
|
1825
|
+
window.location.href = r.url;
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
initializeSSE() {
|
|
@@ -1860,12 +1860,12 @@ const Tt = class {
|
|
|
1860
1860
|
handleSSEMessage(e) {
|
|
1861
1861
|
if (this.enableStepUpAuth)
|
|
1862
1862
|
try {
|
|
1863
|
-
const t = JSON.parse(e.data),
|
|
1864
|
-
if (
|
|
1863
|
+
const t = JSON.parse(e.data), r = t.type;
|
|
1864
|
+
if (r === Ne.TWO_FACTOR_AUTH) {
|
|
1865
1865
|
const { body: { challengeId: n } = {} } = t;
|
|
1866
1866
|
n ? this.triggerStepUpAuth(n) : console.error(`${Ne.TWO_FACTOR_AUTH} received but challengeId not found in body`);
|
|
1867
1867
|
} else
|
|
1868
|
-
|
|
1868
|
+
r === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: wt.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
1869
1869
|
} catch (t) {
|
|
1870
1870
|
console.error("Error parsing SSE message:", t);
|
|
1871
1871
|
}
|
|
@@ -1917,8 +1917,8 @@ const Tt = class {
|
|
|
1917
1917
|
console.warn("Cashier iframe not available for postMessage");
|
|
1918
1918
|
return;
|
|
1919
1919
|
}
|
|
1920
|
-
const
|
|
1921
|
-
this.cashierIframeRef.contentWindow.postMessage(e,
|
|
1920
|
+
const r = this.getCashierOrigin();
|
|
1921
|
+
this.cashierIframeRef.contentWindow.postMessage(e, r);
|
|
1922
1922
|
}
|
|
1923
1923
|
handleOtpSuccess() {
|
|
1924
1924
|
this.enableStepUpAuth && (this.sendMessageToCashier(Ie.PROCEED), this.closeSSEStream());
|