@everymatrix/casino-header-controller 1.90.4 → 1.90.6
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-DxoYwBJ2.cjs → CasinoHamburgerMenu-CHeXjQef.cjs} +1 -1
- package/components/{CasinoHamburgerMenu-1h9VmGK8.js → CasinoHamburgerMenu-eKlF8MeQ.js} +1 -1
- package/components/{CasinoHamburgerMenu-BjgKdAIE.js → CasinoHamburgerMenu-lnMLzEIR.js} +1 -1
- package/components/{CasinoHeaderController-C_gjQ-3F.js → CasinoHeaderController-D3crqrEb.js} +5 -5
- package/components/{CasinoHeaderController-C2cEg8qx.js → CasinoHeaderController-DNe7Ax48.js} +5 -5
- package/components/{CasinoHeaderController-CtwapTII.cjs → CasinoHeaderController-DueIkbKK.cjs} +2 -2
- package/components/{CasinoSlider-W9YXgnPd.js → CasinoSlider-ClpW8ymK.js} +1 -1
- package/components/{CasinoSlider-62icBZ87.cjs → CasinoSlider-IB09yl6r.cjs} +1 -1
- package/components/{CasinoSlider-DBLmid7F.js → CasinoSlider-OnxqsaMH.js} +1 -1
- package/components/{PlayerAccountBalanceModal-C6t_uAkm.js → PlayerAccountBalanceModal-Cgq_lodr.js} +1 -1
- package/components/{PlayerAccountBalanceModal-BwzHfy7e.js → PlayerAccountBalanceModal-DOzLv9cj.js} +1 -1
- package/components/{PlayerAccountBalanceModal-BuVS80Li.cjs → PlayerAccountBalanceModal-DPhtBmMn.cjs} +1 -1
- package/components/{PlayerDeposit-DnwNVm5e.js → PlayerDeposit-8454g--D.js} +1 -1
- package/components/{PlayerDeposit-CQ1kL1ix.js → PlayerDeposit-CjSv25ic.js} +1 -1
- package/components/{PlayerDeposit-BCh24ib-.cjs → PlayerDeposit-XupkzXWO.cjs} +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-C95JGHvF.js → index-2ff63899-BImA4O2s.js} +1 -1
- package/stencil/{index-2ff63899-CATMSVBc.cjs → index-2ff63899-CfxgwLD3.cjs} +1 -1
- package/stencil/{index-2ff63899-BweANwnC.js → index-2ff63899-DHON1Cgv.js} +1 -1
- package/stencil/{player-step-up-auth_2-BIU9XpGU.cjs → player-step-up-auth_2-ByMODpE3.cjs} +2 -2
- package/stencil/{player-step-up-auth_2-9FyTgEar.js → player-step-up-auth_2-DmGRicLE.js} +89 -90
- package/stencil/{player-step-up-auth_2-C3w1nfzy.js → player-step-up-auth_2-mMvAr-uO.js} +88 -89
- package/stencil/{user-deposit-withdrawal-Bc62UoK-.js → user-deposit-withdrawal-CQshV6H7.js} +1 -1
- package/stencil/{user-deposit-withdrawal-LbF-UNC8.js → user-deposit-withdrawal-Va-adExX.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Dwhtkpqf.cjs → user-deposit-withdrawal-txbJQ-UE.cjs} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var we = (e, t, r) => new Promise((n, h) => {
|
|
2
2
|
var E = (b) => {
|
|
3
3
|
try {
|
|
4
4
|
x(r.next(b));
|
|
@@ -14,7 +14,7 @@ var Se = (e, t, r) => new Promise((n, h) => {
|
|
|
14
14
|
}, x = (b) => b.done ? n(b.value) : Promise.resolve(b.value).then(E, U);
|
|
15
15
|
x((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-BImA4O2s.js";
|
|
18
18
|
const Ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
19
19
|
function Ue(e, t) {
|
|
20
20
|
if (e) {
|
|
@@ -334,7 +334,7 @@ const ut = "en", Qe = {
|
|
|
334
334
|
* }
|
|
335
335
|
*/
|
|
336
336
|
handleStepUpAuthEvent(e) {
|
|
337
|
-
return
|
|
337
|
+
return we(this, null, function* () {
|
|
338
338
|
var t;
|
|
339
339
|
if (!((t = e.detail) === null || t === void 0) && t["x-step-up-required"]) {
|
|
340
340
|
if (this.hasConfigErrors = !1, this.hasErrors = !1, this.errorMessage = "", this.showPopup = !0, this.token = e.detail["x-step-up-token"], this.flow = e.detail.flow, !this.token || !this.flow) {
|
|
@@ -363,7 +363,7 @@ const ut = "en", Qe = {
|
|
|
363
363
|
* Handles specific errors like max attempts exceeded by closing the widget.
|
|
364
364
|
*/
|
|
365
365
|
getConfig() {
|
|
366
|
-
return
|
|
366
|
+
return we(this, null, function* () {
|
|
367
367
|
if (this.endpoint)
|
|
368
368
|
try {
|
|
369
369
|
const e = new URL(`/api/v1/mfa/challenge/${this.token}/config`, this.endpoint);
|
|
@@ -492,7 +492,7 @@ const ut = "en", Qe = {
|
|
|
492
492
|
* Sends a request to the endpoint with the OTP and handles the response.
|
|
493
493
|
*/
|
|
494
494
|
submitOtp() {
|
|
495
|
-
return
|
|
495
|
+
return we(this, null, function* () {
|
|
496
496
|
if (this.otp.join("").length !== this.config.inputLength) {
|
|
497
497
|
this.hasErrors = !0, this.errorMessage = k("invalidOtp", this.language), this.triggerShakeAnimation();
|
|
498
498
|
return;
|
|
@@ -527,7 +527,7 @@ const ut = "en", Qe = {
|
|
|
527
527
|
* @param otpValue - Otp code.
|
|
528
528
|
*/
|
|
529
529
|
handleOtpStateful(e) {
|
|
530
|
-
return
|
|
530
|
+
return we(this, null, function* () {
|
|
531
531
|
const t = new URL(`/api/v1/mfa/challenge/${this.token}/validate`, this.endpoint);
|
|
532
532
|
t.searchParams.append("input", e);
|
|
533
533
|
try {
|
|
@@ -568,7 +568,7 @@ const ut = "en", Qe = {
|
|
|
568
568
|
* Closes the popup upon successful authentication.
|
|
569
569
|
*/
|
|
570
570
|
handleSuccess() {
|
|
571
|
-
return
|
|
571
|
+
return we(this, null, function* () {
|
|
572
572
|
this.isSuccess = !0, yield new Promise((e) => setTimeout(e, 1200)), window.dispatchEvent(new CustomEvent("otpSuccess", {
|
|
573
573
|
detail: { message: "User successfully authenticated" }
|
|
574
574
|
})), this.handleCloseWidget();
|
|
@@ -599,7 +599,7 @@ const ut = "en", Qe = {
|
|
|
599
599
|
* Lifecycle method: Fetch translations on component load
|
|
600
600
|
*/
|
|
601
601
|
componentWillLoad() {
|
|
602
|
-
return
|
|
602
|
+
return we(this, null, function* () {
|
|
603
603
|
this.translationUrl.length > 2 && (yield Ye(this.translationUrl));
|
|
604
604
|
});
|
|
605
605
|
}
|
|
@@ -754,7 +754,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
754
754
|
(function(r, n) {
|
|
755
755
|
e.exports = n();
|
|
756
756
|
})(Ve, function() {
|
|
757
|
-
var r = 1e3, n = 6e4, h = 36e5, E = "millisecond", U = "second", x = "minute", b = "hour", L = "day",
|
|
757
|
+
var r = 1e3, n = 6e4, h = 36e5, E = "millisecond", U = "second", x = "minute", b = "hour", L = "day", Se = "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) {
|
|
758
758
|
var l = ["th", "st", "nd", "rd"], a = g % 100;
|
|
759
759
|
return "[" + g + (l[(a - 20) % 10] || l[a] || l[0]) + "]";
|
|
760
760
|
} }, A = function(g, l, a) {
|
|
@@ -771,7 +771,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
771
771
|
}, a: function(g) {
|
|
772
772
|
return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
|
|
773
773
|
}, p: function(g) {
|
|
774
|
-
return { M: W, y: q, w:
|
|
774
|
+
return { M: W, y: q, w: Se, d: L, D: re, h: b, m: x, s: U, ms: E, Q: Te }[g] || String(g || "").toLowerCase().replace(/s$/, "");
|
|
775
775
|
}, u: function(g) {
|
|
776
776
|
return g === void 0;
|
|
777
777
|
} }, ne = "en", Q = {};
|
|
@@ -857,7 +857,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
857
857
|
return m ? T(1, 0) : T(31, 11);
|
|
858
858
|
case W:
|
|
859
859
|
return m ? T(1, N) : T(0, N + 1);
|
|
860
|
-
case
|
|
860
|
+
case Se:
|
|
861
861
|
var pe = this.$locale().weekStart || 0, fe = (H < pe ? H + 7 : H) - pe;
|
|
862
862
|
return T(m ? Z - fe : Z + (6 - fe), N);
|
|
863
863
|
case L:
|
|
@@ -899,7 +899,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
899
899
|
return this.set(q, this.$y + a);
|
|
900
900
|
if (y === L)
|
|
901
901
|
return T(1);
|
|
902
|
-
if (y ===
|
|
902
|
+
if (y === Se)
|
|
903
903
|
return T(7);
|
|
904
904
|
var R = (s = {}, s[x] = n, s[b] = h, s[U] = r, s)[y] || 1, H = this.$d.getTime() + a * R;
|
|
905
905
|
return M.w(H, this);
|
|
@@ -988,7 +988,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
988
988
|
case Te:
|
|
989
989
|
m = Z() / 3;
|
|
990
990
|
break;
|
|
991
|
-
case
|
|
991
|
+
case Se:
|
|
992
992
|
m = (N - H) / 6048e5;
|
|
993
993
|
break;
|
|
994
994
|
case L:
|
|
@@ -1061,13 +1061,13 @@ var rt = { exports: {} };
|
|
|
1061
1061
|
b.parse = function(v) {
|
|
1062
1062
|
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), L.call(this, v);
|
|
1063
1063
|
};
|
|
1064
|
-
var
|
|
1064
|
+
var Se = b.init;
|
|
1065
1065
|
b.init = function() {
|
|
1066
1066
|
if (this.$u) {
|
|
1067
1067
|
var v = this.$d;
|
|
1068
1068
|
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();
|
|
1069
1069
|
} else
|
|
1070
|
-
|
|
1070
|
+
Se.call(this);
|
|
1071
1071
|
};
|
|
1072
1072
|
var W = b.utcOffset;
|
|
1073
1073
|
b.utcOffset = function(v, Y) {
|
|
@@ -1121,7 +1121,7 @@ var rt = { exports: {} };
|
|
|
1121
1121
|
};
|
|
1122
1122
|
});
|
|
1123
1123
|
})(rt);
|
|
1124
|
-
const
|
|
1124
|
+
const wt = rt.exports;
|
|
1125
1125
|
var je = { exports: {} };
|
|
1126
1126
|
/** @license
|
|
1127
1127
|
* eventsource.js
|
|
@@ -1130,7 +1130,7 @@ var je = { exports: {} };
|
|
|
1130
1130
|
*/
|
|
1131
1131
|
(function(e, t) {
|
|
1132
1132
|
(function(r) {
|
|
1133
|
-
var n = r.setTimeout, h = r.clearTimeout, E = r.XMLHttpRequest, U = r.XDomainRequest, x = r.ActiveXObject, b = r.EventSource, L = r.document,
|
|
1133
|
+
var n = r.setTimeout, h = r.clearTimeout, E = r.XMLHttpRequest, U = r.XDomainRequest, x = r.ActiveXObject, b = r.EventSource, L = r.document, Se = r.Promise, W = r.fetch, Te = r.Response, q = r.TextDecoder, re = r.TextEncoder, v = r.AbortController;
|
|
1134
1134
|
if (typeof window != "undefined" && typeof L != "undefined" && !("readyState" in L) && L.body == null && (L.readyState = "loading", window.addEventListener("load", function(i) {
|
|
1135
1135
|
L.readyState = "complete";
|
|
1136
1136
|
}, !1)), E == null && x != null && (E = function() {
|
|
@@ -1146,14 +1146,14 @@ var je = { exports: {} };
|
|
|
1146
1146
|
W = function(i, d) {
|
|
1147
1147
|
var c = d.signal;
|
|
1148
1148
|
return Y(i, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(o) {
|
|
1149
|
-
var
|
|
1150
|
-
return c._reader =
|
|
1149
|
+
var w = o.body.getReader();
|
|
1150
|
+
return c._reader = w, c._aborted && c._reader.cancel(), {
|
|
1151
1151
|
status: o.status,
|
|
1152
1152
|
statusText: o.statusText,
|
|
1153
1153
|
headers: o.headers,
|
|
1154
1154
|
body: {
|
|
1155
1155
|
getReader: function() {
|
|
1156
|
-
return
|
|
1156
|
+
return w;
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
};
|
|
@@ -1171,12 +1171,12 @@ var je = { exports: {} };
|
|
|
1171
1171
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
1172
1172
|
}
|
|
1173
1173
|
ue.prototype.decode = function(i) {
|
|
1174
|
-
function d(D, P,
|
|
1175
|
-
if (
|
|
1174
|
+
function d(D, P, S) {
|
|
1175
|
+
if (S === 1)
|
|
1176
1176
|
return D >= 128 >> P && D << P <= 2047;
|
|
1177
|
-
if (
|
|
1177
|
+
if (S === 2)
|
|
1178
1178
|
return D >= 2048 >> P && D << P <= 55295 || D >= 57344 >> P && D << P <= 65535;
|
|
1179
|
-
if (
|
|
1179
|
+
if (S === 3)
|
|
1180
1180
|
return D >= 65536 >> P && D << P <= 1114111;
|
|
1181
1181
|
throw new Error();
|
|
1182
1182
|
}
|
|
@@ -1189,11 +1189,11 @@ var je = { exports: {} };
|
|
|
1189
1189
|
return 3;
|
|
1190
1190
|
throw new Error();
|
|
1191
1191
|
}
|
|
1192
|
-
for (var o = 65533,
|
|
1192
|
+
for (var o = 65533, w = "", f = this.bitsNeeded, C = this.codePoint, $ = 0; $ < i.length; $ += 1) {
|
|
1193
1193
|
var O = i[$];
|
|
1194
|
-
f !== 0 && (O < 128 || O > 191 || !d(C << 6 | O & 63, f - 6, c(f, C))) && (f = 0, C = o,
|
|
1194
|
+
f !== 0 && (O < 128 || O > 191 || !d(C << 6 | O & 63, f - 6, c(f, C))) && (f = 0, C = o, w += 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 ? w += String.fromCharCode(C) : (w += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), w += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
|
|
1195
1195
|
}
|
|
1196
|
-
return this.bitsNeeded = f, this.codePoint = C,
|
|
1196
|
+
return this.bitsNeeded = f, this.codePoint = C, w;
|
|
1197
1197
|
};
|
|
1198
1198
|
var ce = function() {
|
|
1199
1199
|
try {
|
|
@@ -1211,62 +1211,62 @@ var je = { exports: {} };
|
|
|
1211
1211
|
}
|
|
1212
1212
|
ie.prototype.open = function(i, d) {
|
|
1213
1213
|
this._abort(!0);
|
|
1214
|
-
var c = this, o = this._xhr,
|
|
1215
|
-
this._abort = function(
|
|
1216
|
-
c._sendTimeout !== 0 && (h(c._sendTimeout), c._sendTimeout = 0), (
|
|
1214
|
+
var c = this, o = this._xhr, w = 1, f = 0;
|
|
1215
|
+
this._abort = function(S) {
|
|
1216
|
+
c._sendTimeout !== 0 && (h(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 && (h(f), f = 0), S || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), w = 0;
|
|
1217
1217
|
};
|
|
1218
1218
|
var C = function() {
|
|
1219
|
-
if (
|
|
1220
|
-
var
|
|
1219
|
+
if (w === 1) {
|
|
1220
|
+
var S = 0, I = "", ge = void 0;
|
|
1221
1221
|
if ("contentType" in o)
|
|
1222
|
-
|
|
1222
|
+
S = 200, I = "OK", ge = o.contentType;
|
|
1223
1223
|
else
|
|
1224
1224
|
try {
|
|
1225
|
-
|
|
1225
|
+
S = o.status, I = o.statusText, ge = o.getResponseHeader("Content-Type");
|
|
1226
1226
|
} catch (ke) {
|
|
1227
|
-
|
|
1227
|
+
S = 0, I = "", ge = void 0;
|
|
1228
1228
|
}
|
|
1229
|
-
|
|
1229
|
+
S !== 0 && (w = 2, c.readyState = 2, c.status = S, c.statusText = I, c._contentType = ge, c.onreadystatechange());
|
|
1230
1230
|
}
|
|
1231
1231
|
}, $ = function() {
|
|
1232
|
-
if (C(),
|
|
1233
|
-
|
|
1234
|
-
var
|
|
1232
|
+
if (C(), w === 2 || w === 3) {
|
|
1233
|
+
w = 3;
|
|
1234
|
+
var S = "";
|
|
1235
1235
|
try {
|
|
1236
|
-
|
|
1236
|
+
S = o.responseText;
|
|
1237
1237
|
} catch (I) {
|
|
1238
1238
|
}
|
|
1239
|
-
c.readyState = 3, c.responseText =
|
|
1239
|
+
c.readyState = 3, c.responseText = S, c.onprogress();
|
|
1240
1240
|
}
|
|
1241
|
-
}, O = function(
|
|
1241
|
+
}, O = function(S, I) {
|
|
1242
1242
|
if ((I == null || I.preventDefault == null) && (I = {
|
|
1243
1243
|
preventDefault: A
|
|
1244
|
-
}), $(),
|
|
1245
|
-
if (
|
|
1244
|
+
}), $(), w === 1 || w === 2 || w === 3) {
|
|
1245
|
+
if (w = 4, f !== 0 && (h(f), f = 0), c.readyState = 4, S === "load")
|
|
1246
1246
|
c.onload(I);
|
|
1247
|
-
else if (
|
|
1247
|
+
else if (S === "error")
|
|
1248
1248
|
c.onerror(I);
|
|
1249
|
-
else if (
|
|
1249
|
+
else if (S === "abort")
|
|
1250
1250
|
c.onabort(I);
|
|
1251
1251
|
else
|
|
1252
1252
|
throw new TypeError();
|
|
1253
1253
|
c.onreadystatechange();
|
|
1254
1254
|
}
|
|
1255
|
-
}, D = function(
|
|
1256
|
-
o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && O(o.responseText === "" ? "error" : "load",
|
|
1255
|
+
}, D = function(S) {
|
|
1256
|
+
o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && O(o.responseText === "" ? "error" : "load", S) : o.readyState === 3 ? "onprogress" in o || $() : o.readyState === 2 && C());
|
|
1257
1257
|
}, P = function() {
|
|
1258
1258
|
f = n(function() {
|
|
1259
1259
|
P();
|
|
1260
1260
|
}, 500), o.readyState === 3 && $();
|
|
1261
1261
|
};
|
|
1262
|
-
"onload" in o && (o.onload = function(
|
|
1263
|
-
O("load",
|
|
1264
|
-
}), "onerror" in o && (o.onerror = function(
|
|
1265
|
-
O("error",
|
|
1266
|
-
}), "onabort" in o && (o.onabort = function(
|
|
1267
|
-
O("abort",
|
|
1268
|
-
}), "onprogress" in o && (o.onprogress = $), "onreadystatechange" in o && (o.onreadystatechange = function(
|
|
1269
|
-
D(
|
|
1262
|
+
"onload" in o && (o.onload = function(S) {
|
|
1263
|
+
O("load", S);
|
|
1264
|
+
}), "onerror" in o && (o.onerror = function(S) {
|
|
1265
|
+
O("error", S);
|
|
1266
|
+
}), "onabort" in o && (o.onabort = function(S) {
|
|
1267
|
+
O("abort", S);
|
|
1268
|
+
}), "onprogress" in o && (o.onprogress = $), "onreadystatechange" in o && (o.onreadystatechange = function(S) {
|
|
1269
|
+
D(S);
|
|
1270
1270
|
}), ("contentType" in o || !("ontimeout" in E.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(i, d, !0), "readyState" in o && (f = n(function() {
|
|
1271
1271
|
P();
|
|
1272
1272
|
}, 0));
|
|
@@ -1303,7 +1303,7 @@ var je = { exports: {} };
|
|
|
1303
1303
|
function Q(i) {
|
|
1304
1304
|
for (var d = /* @__PURE__ */ Object.create(null), c = i.split(`\r
|
|
1305
1305
|
`), o = 0; o < c.length; o += 1) {
|
|
1306
|
-
var
|
|
1306
|
+
var w = c[o], f = w.split(": "), C = f.shift(), $ = f.join(": ");
|
|
1307
1307
|
d[ne(C)] = $;
|
|
1308
1308
|
}
|
|
1309
1309
|
this._map = d;
|
|
@@ -1313,8 +1313,8 @@ var je = { exports: {} };
|
|
|
1313
1313
|
}, E != null && E.HEADERS_RECEIVED == null && (E.HEADERS_RECEIVED = 2);
|
|
1314
1314
|
function he() {
|
|
1315
1315
|
}
|
|
1316
|
-
he.prototype.open = function(i, d, c, o,
|
|
1317
|
-
i.open("GET",
|
|
1316
|
+
he.prototype.open = function(i, d, c, o, w, f, C) {
|
|
1317
|
+
i.open("GET", w);
|
|
1318
1318
|
var $ = 0;
|
|
1319
1319
|
i.onprogress = function() {
|
|
1320
1320
|
var D = i.responseText, P = D.slice($);
|
|
@@ -1327,8 +1327,8 @@ var je = { exports: {} };
|
|
|
1327
1327
|
o(null);
|
|
1328
1328
|
}, i.onreadystatechange = function() {
|
|
1329
1329
|
if (i.readyState === E.HEADERS_RECEIVED) {
|
|
1330
|
-
var D = i.status, P = i.statusText,
|
|
1331
|
-
d(D, P,
|
|
1330
|
+
var D = i.status, P = i.statusText, S = i.getResponseHeader("Content-Type"), I = i.getAllResponseHeaders();
|
|
1331
|
+
d(D, P, S, new Q(I));
|
|
1332
1332
|
}
|
|
1333
1333
|
}, i.withCredentials = f;
|
|
1334
1334
|
for (var O in C)
|
|
@@ -1343,15 +1343,15 @@ var je = { exports: {} };
|
|
|
1343
1343
|
};
|
|
1344
1344
|
function ae() {
|
|
1345
1345
|
}
|
|
1346
|
-
ae.prototype.open = function(i, d, c, o,
|
|
1346
|
+
ae.prototype.open = function(i, d, c, o, w, f, C) {
|
|
1347
1347
|
var $ = null, O = new v(), D = O.signal, P = new q();
|
|
1348
|
-
return W(
|
|
1348
|
+
return W(w, {
|
|
1349
1349
|
headers: C,
|
|
1350
1350
|
credentials: f ? "include" : "same-origin",
|
|
1351
1351
|
signal: D,
|
|
1352
1352
|
cache: "no-store"
|
|
1353
|
-
}).then(function(
|
|
1354
|
-
return $ =
|
|
1353
|
+
}).then(function(S) {
|
|
1354
|
+
return $ = S.body.getReader(), d(S.status, S.statusText, S.headers.get("Content-Type"), new Ee(S.headers)), new Se(function(I, ge) {
|
|
1355
1355
|
var ke = function() {
|
|
1356
1356
|
$.read().then(function(J) {
|
|
1357
1357
|
if (J.done)
|
|
@@ -1366,11 +1366,11 @@ var je = { exports: {} };
|
|
|
1366
1366
|
};
|
|
1367
1367
|
ke();
|
|
1368
1368
|
});
|
|
1369
|
-
}).catch(function(
|
|
1370
|
-
if (
|
|
1371
|
-
return
|
|
1372
|
-
}).then(function(
|
|
1373
|
-
o(
|
|
1369
|
+
}).catch(function(S) {
|
|
1370
|
+
if (S.name !== "AbortError")
|
|
1371
|
+
return S;
|
|
1372
|
+
}).then(function(S) {
|
|
1373
|
+
o(S);
|
|
1374
1374
|
}), {
|
|
1375
1375
|
abort: function() {
|
|
1376
1376
|
$ != null && $.cancel(), O.abort();
|
|
@@ -1390,9 +1390,9 @@ var je = { exports: {} };
|
|
|
1390
1390
|
var d = this._listeners[i.type];
|
|
1391
1391
|
if (d != null)
|
|
1392
1392
|
for (var c = d.length, o = 0; o < c; o += 1) {
|
|
1393
|
-
var
|
|
1393
|
+
var w = d[o];
|
|
1394
1394
|
try {
|
|
1395
|
-
typeof
|
|
1395
|
+
typeof w.handleEvent == "function" ? w.handleEvent(i) : w.call(this, i);
|
|
1396
1396
|
} catch (f) {
|
|
1397
1397
|
M(f);
|
|
1398
1398
|
}
|
|
@@ -1401,16 +1401,16 @@ var je = { exports: {} };
|
|
|
1401
1401
|
i = String(i);
|
|
1402
1402
|
var c = this._listeners, o = c[i];
|
|
1403
1403
|
o == null && (o = [], c[i] = o);
|
|
1404
|
-
for (var
|
|
1405
|
-
o[f] === d && (
|
|
1406
|
-
|
|
1404
|
+
for (var w = !1, f = 0; f < o.length; f += 1)
|
|
1405
|
+
o[f] === d && (w = !0);
|
|
1406
|
+
w || o.push(d);
|
|
1407
1407
|
}, _.prototype.removeEventListener = function(i, d) {
|
|
1408
1408
|
i = String(i);
|
|
1409
1409
|
var c = this._listeners, o = c[i];
|
|
1410
1410
|
if (o != null) {
|
|
1411
|
-
for (var
|
|
1412
|
-
o[f] !== d &&
|
|
1413
|
-
|
|
1411
|
+
for (var w = [], f = 0; f < o.length; f += 1)
|
|
1412
|
+
o[f] !== d && w.push(o[f]);
|
|
1413
|
+
w.length === 0 ? delete c[i] : c[i] = w;
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
1416
|
function oe(i) {
|
|
@@ -1449,7 +1449,7 @@ var je = { exports: {} };
|
|
|
1449
1449
|
var De = W != null && Te != null && "body" in Te.prototype;
|
|
1450
1450
|
function it(i, d, c) {
|
|
1451
1451
|
d = String(d);
|
|
1452
|
-
var o = !!c.withCredentials,
|
|
1452
|
+
var o = !!c.withCredentials, w = c.lastEventIdQueryParameterName || "lastEventId", f = se(1e3), C = fe(c.heartbeatTimeout, 45e3), $ = "", O = f, D = !1, P = 0, S = 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) {
|
|
1453
1453
|
if (de === u)
|
|
1454
1454
|
if (V === 200 && ee != null && Z.test(ee)) {
|
|
1455
1455
|
de = s, D = Date.now(), O = f, i.readyState = s;
|
|
@@ -1536,8 +1536,8 @@ var je = { exports: {} };
|
|
|
1536
1536
|
if (d.slice(0, 5) !== "data:" && d.slice(0, 5) !== "blob:" && $ !== "") {
|
|
1537
1537
|
var ee = d.indexOf("?");
|
|
1538
1538
|
F = ee === -1 ? d : d.slice(0, ee + 1) + d.slice(ee + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, xe) {
|
|
1539
|
-
return xe ===
|
|
1540
|
-
}), F += (d.indexOf("?") === -1 ? "?" : "&") +
|
|
1539
|
+
return xe === w ? "" : ye;
|
|
1540
|
+
}), F += (d.indexOf("?") === -1 ? "?" : "&") + w + "=" + encodeURIComponent($);
|
|
1541
1541
|
}
|
|
1542
1542
|
var te = i.withCredentials, K = {};
|
|
1543
1543
|
K.Accept = "text/event-stream";
|
|
@@ -1551,7 +1551,7 @@ var je = { exports: {} };
|
|
|
1551
1551
|
throw Fe(), ye;
|
|
1552
1552
|
}
|
|
1553
1553
|
};
|
|
1554
|
-
i.url = d, i.readyState = u, i.withCredentials = o, i.headers =
|
|
1554
|
+
i.url = d, i.readyState = u, i.withCredentials = o, i.headers = S, i._close = Fe, _e();
|
|
1555
1555
|
}
|
|
1556
1556
|
z.prototype = Object.create(_.prototype), z.prototype.CONNECTING = u, z.prototype.OPEN = s, z.prototype.CLOSED = m, z.prototype.close = function() {
|
|
1557
1557
|
this._close();
|
|
@@ -1578,7 +1578,7 @@ const Ge = "user-deposit-withdrawal", Xe = [
|
|
|
1578
1578
|
], Ne = {
|
|
1579
1579
|
TWO_FACTOR_AUTH: "TWO_FACTOR_AUTH_NOTIFICATION",
|
|
1580
1580
|
SESSION_EXPIRATION: "SESSION_EXPIRATION"
|
|
1581
|
-
},
|
|
1581
|
+
}, St = {
|
|
1582
1582
|
FAILED_2FA: "failed2FA"
|
|
1583
1583
|
}, le = {
|
|
1584
1584
|
OPEN_FULL_CASHIER: "MMFE:openFullCashier",
|
|
@@ -1666,7 +1666,7 @@ const Ge = "user-deposit-withdrawal", Xe = [
|
|
|
1666
1666
|
overflow: visible;
|
|
1667
1667
|
}
|
|
1668
1668
|
}`, Ct = bt;
|
|
1669
|
-
tt.extend(
|
|
1669
|
+
tt.extend(wt);
|
|
1670
1670
|
const Tt = class {
|
|
1671
1671
|
constructor(e) {
|
|
1672
1672
|
Ke(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 = vt(this.userAgent), this.errorCodes = ["21123", "21122", "21121"], this.toggleScreen = () => {
|
|
@@ -1686,9 +1686,8 @@ const Tt = class {
|
|
|
1686
1686
|
e != t && this.clientStylingUrl && He(this.stylingContainer, this.clientStylingUrl);
|
|
1687
1687
|
}
|
|
1688
1688
|
componentWillLoad() {
|
|
1689
|
-
return
|
|
1690
|
-
|
|
1691
|
-
return mt(this.translationUrl);
|
|
1689
|
+
return we(this, null, function* () {
|
|
1690
|
+
this.translationUrl && (yield mt(this.translationUrl)), yield this.loadWidget();
|
|
1692
1691
|
});
|
|
1693
1692
|
}
|
|
1694
1693
|
componentDidLoad() {
|
|
@@ -1698,10 +1697,10 @@ const Tt = class {
|
|
|
1698
1697
|
window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.closeSSEStream();
|
|
1699
1698
|
}
|
|
1700
1699
|
render() {
|
|
1701
|
-
return p(st, { key: "
|
|
1700
|
+
return p(st, { key: "c6ee3b34fc4ef7174b2ff07ff246b4d38f8a4cf3" }, this.enableStepUpAuth && p("player-step-up-auth", { key: "dfaf2909e9f1028b9fd740f0fe612b0a82a30d57", endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }), p("div", { key: "70866c997fd1430dc827dac013fe5eeb5e205aa6", ref: (e) => this.stylingContainer = e, class: "" }, p("div", { key: "f22a066bded11894ecc6b40452e91408bfaba461", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}` }, !(this.isMobile && !this.isShortCashier) && p("h2", { key: "e16eff42a179895d192584f51bdcb01cfb940911", class: "CategoryTitle" }, Ce(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), p("div", { key: "be8524a9a7a7f9f7735fd8703563159e207901c4", style: { marginTop: this.isShortCashier ? "30px" : "0" } }, this.isMobile && !this.isShortCashier ? p("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, p("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, p("defs", null), p("g", { transform: "translate(-20 -158)" }, p("g", { transform: "translate(20 158)" }, p("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)" })))), p("h2", { class: "CategoryTitleMobile" }, Ce(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? p("iframe", { ref: (e) => this.cashierIframeRef = e, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) : p("h3", { innerHTML: this.type === "deposit" ? Ce("denyDeposit", this.language) : Ce("denyWithdrawal", this.language), class: "ErrorMessage" }))));
|
|
1702
1701
|
}
|
|
1703
1702
|
loadWidget() {
|
|
1704
|
-
return
|
|
1703
|
+
return we(this, null, function* () {
|
|
1705
1704
|
const e = {
|
|
1706
1705
|
Channel: this.channel,
|
|
1707
1706
|
Type: this.typeParameter,
|
|
@@ -1864,7 +1863,7 @@ const Tt = class {
|
|
|
1864
1863
|
const { body: { challengeId: n } = {} } = t;
|
|
1865
1864
|
n ? this.triggerStepUpAuth(n) : console.error(`${Ne.TWO_FACTOR_AUTH} received but challengeId not found in body`);
|
|
1866
1865
|
} else
|
|
1867
|
-
r === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason:
|
|
1866
|
+
r === Ne.SESSION_EXPIRATION && (console.info("[SSE] SESSION_EXPIRATION received, closing connection"), window.postMessage({ type: "SessionExpiration", reason: St.FAILED_2FA }, window.location.href), this.closeSSEStream());
|
|
1868
1867
|
} catch (t) {
|
|
1869
1868
|
console.error("Error parsing SSE message:", t);
|
|
1870
1869
|
}
|