@everymatrix/casino-header-controller 1.60.1 → 1.60.2
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-D3IA0-Fr.js → CasinoHamburgerMenu-BG-4lbhJ.js} +800 -822
- package/components/CasinoHamburgerMenu-CvBpCdt_.cjs +21 -0
- package/components/{CasinoHamburgerMenu-DyL5A7W7.js → CasinoHamburgerMenu-Dw8i7ogu.js} +646 -668
- package/components/{CasinoHeaderController-B1Lx3tU2.js → CasinoHeaderController-CHDKH8Ly.js} +85 -85
- package/components/{CasinoHeaderController-DmFZgeXE.js → CasinoHeaderController-DjVKPxVw.js} +87 -87
- package/components/{CasinoHeaderController-BH5IAaed.cjs → CasinoHeaderController-JXOZqHnI.cjs} +1 -1
- package/components/{CasinoSlider-DRVCTpte.cjs → CasinoSlider-3128DMp9.cjs} +1 -1
- package/components/{CasinoSlider-BTGfiw5j.js → CasinoSlider-BPydGfs8.js} +92 -92
- package/components/{CasinoSlider-RSfl7Nfu.js → CasinoSlider-FXHpAlQt.js} +85 -85
- package/components/PlayerAccountBalanceModal-CckEoZRk.js +1510 -0
- package/components/PlayerAccountBalanceModal-Ct7UUbnk.cjs +13 -0
- package/components/PlayerAccountBalanceModal-DiZBhm3s.js +1539 -0
- package/components/PlayerDeposit-BrNpbkaS.cjs +1 -0
- package/components/{PlayerDeposit-D1KSGzHW.js → PlayerDeposit-BsovN5ad.js} +65 -65
- package/components/{PlayerDeposit-OqZh5SL5.js → PlayerDeposit-DyYrLnnM.js} +65 -65
- 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-1ef3a64c-BKQuom7L.js +556 -0
- package/stencil/index-1ef3a64c-CA6VYINb.cjs +1 -0
- package/stencil/index-1ef3a64c-CMTTH4QO.js +572 -0
- package/stencil/{user-deposit-withdrawal-C72e1sSw.js → user-deposit-withdrawal-CIdBBp4F.js} +71 -71
- package/stencil/{user-deposit-withdrawal-DfDiD6Lp.js → user-deposit-withdrawal-XUfhzxqt.js} +77 -77
- package/stencil/{user-deposit-withdrawal-CS-LZhcv.cjs → user-deposit-withdrawal-jRWOVoij.cjs} +3 -3
- package/components/CasinoHamburgerMenu-DessG6uq.cjs +0 -21
- package/components/PlayerAccountBalanceModal-B9BkSlDU.cjs +0 -13
- package/components/PlayerAccountBalanceModal-CEo_b6Ks.js +0 -1510
- package/components/PlayerAccountBalanceModal-fP9D_Jz7.js +0 -1539
- package/components/PlayerDeposit-DNEPQuyW.cjs +0 -1
- package/stencil/index-1ef3a64c-6soTLew7.js +0 -556
- package/stencil/index-1ef3a64c-DkMoO-oa.js +0 -572
- package/stencil/index-1ef3a64c-DmmoSOho.cjs +0 -1
@@ -1,11 +1,11 @@
|
|
1
|
-
import { b as ae, p as oe, r as se, h as D, H as de } from "./index-1ef3a64c-
|
1
|
+
import { b as ae, p as oe, r as se, h as D, H as de } from "./index-1ef3a64c-BKQuom7L.js";
|
2
2
|
import { g as ue } from "./app-globals-0f993ce5-D-kw1sls.js";
|
3
|
-
var
|
3
|
+
var ce = () => {
|
4
4
|
const n = import.meta.url, h = {};
|
5
5
|
return n !== "" && (h.resourcesUrl = new URL(".", n).href), oe(h);
|
6
6
|
};
|
7
|
-
|
8
|
-
const
|
7
|
+
ce().then(async (n) => (await ue(), ae([["user-deposit-withdrawal", [[1, "user-deposit-withdrawal", { mbSource: [513, "mb-source"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], endpoint: [513], type: [513], channel: [513], language: [513], productType: [513, "product-type"], userId: [513, "user-id"], session: [513], successUrl: [513, "success-url"], cancelUrl: [513, "cancel-url"], failUrl: [513, "fail-url"], sportsUrl: [513, "sports-url"], casinoUrl: [513, "casino-url"], contactUrl: [513, "contact-url"], depositUrl: [513, "deposit-url"], currency: [513], showBonusSelectionInput: [513, "show-bonus-selection-input"], isShortCashier: [516, "is-short-cashier"], homeUrl: [513, "home-url"], beforeRedirect: [16], dynamicHeight: [32], cashierInfoUrl: [32] }, null, { session: ["watchLoadWidget"], userId: ["watchLoadWidget"], isShortCashier: ["watchLoadWidget"], currency: ["watchLoadWidget"], showBonusSelectionInput: ["watchLoadWidget"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingChangeURL"] }]]]], n)));
|
8
|
+
const le = "en", he = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es", "de", "pt", "tr"], ee = {
|
9
9
|
en: {
|
10
10
|
Deposit: "Deposit",
|
11
11
|
Withdraw: "Withdraw",
|
@@ -107,14 +107,14 @@ const ce = "en", he = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
|
|
107
107
|
}
|
108
108
|
}, fe = (n) => new Promise((h) => {
|
109
109
|
fetch(n).then((u) => u.json()).then((u) => {
|
110
|
-
Object.keys(u).forEach((
|
111
|
-
for (let m in u[
|
112
|
-
ee[
|
110
|
+
Object.keys(u).forEach((c) => {
|
111
|
+
for (let m in u[c])
|
112
|
+
ee[c][m] = u[c][m];
|
113
113
|
}), h(!0);
|
114
114
|
});
|
115
115
|
}), H = (n, h) => {
|
116
116
|
const u = h;
|
117
|
-
return ee[u !== void 0 && he.includes(u) ? u :
|
117
|
+
return ee[u !== void 0 && he.includes(u) ? u : le][n];
|
118
118
|
};
|
119
119
|
function K(n, h) {
|
120
120
|
if (n) {
|
@@ -124,28 +124,28 @@ function K(n, h) {
|
|
124
124
|
}
|
125
125
|
function X(n, h) {
|
126
126
|
const u = new URL(h);
|
127
|
-
fetch(u.href).then((
|
127
|
+
fetch(u.href).then((c) => c.text()).then((c) => {
|
128
128
|
const m = document.createElement("style");
|
129
|
-
m.innerHTML =
|
130
|
-
}).catch((
|
131
|
-
console.error("There was an error while trying to load client styling from URL",
|
129
|
+
m.innerHTML = c, n && n.appendChild(m);
|
130
|
+
}).catch((c) => {
|
131
|
+
console.error("There was an error while trying to load client styling from URL", c);
|
132
132
|
});
|
133
133
|
}
|
134
134
|
function pe(n, h, u) {
|
135
135
|
if (window.emMessageBus) {
|
136
|
-
const
|
136
|
+
const c = document.createElement("style");
|
137
137
|
window.emMessageBus.subscribe(h, (m) => {
|
138
|
-
|
138
|
+
c.innerHTML = m, n && n.appendChild(c);
|
139
139
|
});
|
140
140
|
}
|
141
141
|
}
|
142
142
|
const me = (n) => !!(n.toLowerCase().match(/android/i) || n.toLowerCase().match(/blackberry|bb/i) || n.toLowerCase().match(/iphone|ipad|ipod/i) || n.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
143
143
|
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = { exports: {} };
|
144
144
|
(function(n, h) {
|
145
|
-
(function(u,
|
146
|
-
n.exports =
|
145
|
+
(function(u, c) {
|
146
|
+
n.exports = c();
|
147
147
|
})(te, function() {
|
148
|
-
var u = 1e3,
|
148
|
+
var u = 1e3, c = 6e4, m = 36e5, L = "millisecond", v = "second", y = "minute", l = "hour", T = "day", q = "week", b = "month", N = "quarter", k = "year", E = "date", o = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|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, F = { 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(a) {
|
149
149
|
var r = ["th", "st", "nd", "rd"], e = a % 100;
|
150
150
|
return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
|
151
151
|
} }, U = function(a, r, e) {
|
@@ -162,14 +162,14 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
162
162
|
}, a: function(a) {
|
163
163
|
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
164
164
|
}, p: function(a) {
|
165
|
-
return { M: b, y: k, w: q, d: T, D: E, h:
|
165
|
+
return { M: b, y: k, w: q, d: T, D: E, h: l, m: y, s: v, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
|
166
166
|
}, u: function(a) {
|
167
167
|
return a === void 0;
|
168
168
|
} }, O = "en", z = {};
|
169
169
|
z[O] = F;
|
170
170
|
var Y = "$isDayjsObject", B = function(a) {
|
171
171
|
return a instanceof Z || !(!a || !a[Y]);
|
172
|
-
},
|
172
|
+
}, x = function a(r, e, i) {
|
173
173
|
var t;
|
174
174
|
if (!r)
|
175
175
|
return O;
|
@@ -190,12 +190,12 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
190
190
|
var e = typeof r == "object" ? r : {};
|
191
191
|
return e.date = a, e.args = arguments, new Z(e);
|
192
192
|
}, f = G;
|
193
|
-
f.l =
|
193
|
+
f.l = x, f.i = B, f.w = function(a, r) {
|
194
194
|
return w(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
|
195
195
|
};
|
196
196
|
var Z = function() {
|
197
197
|
function a(e) {
|
198
|
-
this.$L =
|
198
|
+
this.$L = x(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
|
199
199
|
}
|
200
200
|
var r = a.prototype;
|
201
201
|
return r.parse = function(e) {
|
@@ -238,8 +238,8 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
238
238
|
return this.$d.getTime();
|
239
239
|
}, r.startOf = function(e, i) {
|
240
240
|
var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, $) {
|
241
|
-
var
|
242
|
-
return s ?
|
241
|
+
var j = f.w(t.$u ? Date.UTC(t.$y, $, R) : new Date(t.$y, $, R), t);
|
242
|
+
return s ? j : j.endOf(T);
|
243
243
|
}, g = function(R, $) {
|
244
244
|
return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), t);
|
245
245
|
}, C = this.$W, S = this.$M, W = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
@@ -254,7 +254,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
254
254
|
case T:
|
255
255
|
case E:
|
256
256
|
return g(P + "Hours", 0);
|
257
|
-
case
|
257
|
+
case l:
|
258
258
|
return g(P + "Minutes", 1);
|
259
259
|
case y:
|
260
260
|
return g(P + "Seconds", 2);
|
@@ -266,7 +266,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
266
266
|
}, r.endOf = function(e) {
|
267
267
|
return this.startOf(e, !1);
|
268
268
|
}, r.$set = function(e, i) {
|
269
|
-
var t, s = f.p(e), d = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[T] = d + "Date", t[E] = d + "Date", t[b] = d + "Month", t[k] = d + "FullYear", t[
|
269
|
+
var t, s = f.p(e), d = "set" + (this.$u ? "UTC" : ""), p = (t = {}, t[T] = d + "Date", t[E] = d + "Date", t[b] = d + "Month", t[k] = d + "FullYear", t[l] = d + "Hours", t[y] = d + "Minutes", t[v] = d + "Seconds", t[L] = d + "Milliseconds", t)[s], g = s === T ? this.$D + (i - this.$W) : i;
|
270
270
|
if (s === b || s === k) {
|
271
271
|
var C = this.clone().set(E, 1);
|
272
272
|
C.$d[p](g), C.init(), this.$d = C.set(E, Math.min(this.$D, C.daysInMonth())).$d;
|
@@ -292,7 +292,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
292
292
|
return p(1);
|
293
293
|
if (d === q)
|
294
294
|
return p(7);
|
295
|
-
var g = (t = {}, t[y] =
|
295
|
+
var g = (t = {}, t[y] = c, t[l] = m, t[v] = u, t)[d] || 1, C = this.$d.getTime() + e * g;
|
296
296
|
return f.w(C, this);
|
297
297
|
}, r.subtract = function(e, i) {
|
298
298
|
return this.add(-1 * e, i);
|
@@ -300,16 +300,16 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
300
300
|
var i = this, t = this.$locale();
|
301
301
|
if (!this.isValid())
|
302
302
|
return t.invalidDate || o;
|
303
|
-
var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, g = this.$m, C = this.$M, S = t.weekdays, W = t.months, P = t.meridiem, _ = function($,
|
304
|
-
return $ && ($[
|
303
|
+
var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, g = this.$m, C = this.$M, S = t.weekdays, W = t.months, P = t.meridiem, _ = function($, j, V, J) {
|
304
|
+
return $ && ($[j] || $(i, s)) || V[j].slice(0, J);
|
305
305
|
}, A = function($) {
|
306
306
|
return f.s(p % 12 || 12, $, "0");
|
307
|
-
}, R = P || function($,
|
307
|
+
}, R = P || function($, j, V) {
|
308
308
|
var J = $ < 12 ? "AM" : "PM";
|
309
309
|
return V ? J.toLowerCase() : J;
|
310
310
|
};
|
311
|
-
return s.replace(I, function($,
|
312
|
-
return
|
311
|
+
return s.replace(I, function($, j) {
|
312
|
+
return j || function(V) {
|
313
313
|
switch (V) {
|
314
314
|
case "YY":
|
315
315
|
return String(i.$y).slice(-2);
|
@@ -366,7 +366,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
366
366
|
}, r.utcOffset = function() {
|
367
367
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
368
368
|
}, r.diff = function(e, i, t) {
|
369
|
-
var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) *
|
369
|
+
var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) * c, S = this - g, W = function() {
|
370
370
|
return f.m(d, g);
|
371
371
|
};
|
372
372
|
switch (p) {
|
@@ -385,11 +385,11 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
385
385
|
case T:
|
386
386
|
s = (S - C) / 864e5;
|
387
387
|
break;
|
388
|
-
case
|
388
|
+
case l:
|
389
389
|
s = S / m;
|
390
390
|
break;
|
391
391
|
case y:
|
392
|
-
s = S /
|
392
|
+
s = S / c;
|
393
393
|
break;
|
394
394
|
case v:
|
395
395
|
s = S / u;
|
@@ -405,7 +405,7 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
405
405
|
}, r.locale = function(e, i) {
|
406
406
|
if (!e)
|
407
407
|
return this.$L;
|
408
|
-
var t = this.clone(), s =
|
408
|
+
var t = this.clone(), s = x(e, i, !0);
|
409
409
|
return s && (t.$L = s), t;
|
410
410
|
}, r.clone = function() {
|
411
411
|
return f.w(this.$d, this);
|
@@ -419,13 +419,13 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
419
419
|
return this.$d.toUTCString();
|
420
420
|
}, a;
|
421
421
|
}(), Q = Z.prototype;
|
422
|
-
return w.prototype = Q, [["$ms", L], ["$s", v], ["$m", y], ["$H",
|
422
|
+
return w.prototype = Q, [["$ms", L], ["$s", v], ["$m", y], ["$H", l], ["$W", T], ["$M", b], ["$y", k], ["$D", E]].forEach(function(a) {
|
423
423
|
Q[a[1]] = function(r) {
|
424
424
|
return this.$g(r, a[0], a[1]);
|
425
425
|
};
|
426
426
|
}), w.extend = function(a, r) {
|
427
427
|
return a.$i || (a(r, Z, w), a.$i = !0), w;
|
428
|
-
}, w.locale =
|
428
|
+
}, w.locale = x, w.isDayjs = B, w.unix = function(a) {
|
429
429
|
return w(1e3 * a);
|
430
430
|
}, w.en = z[O], w.Ls = z, w.p = {}, w;
|
431
431
|
});
|
@@ -433,45 +433,45 @@ var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
433
433
|
const ne = re.exports;
|
434
434
|
var ie = { exports: {} };
|
435
435
|
(function(n, h) {
|
436
|
-
(function(u,
|
437
|
-
n.exports =
|
436
|
+
(function(u, c) {
|
437
|
+
n.exports = c();
|
438
438
|
})(te, function() {
|
439
|
-
var u = "minute",
|
439
|
+
var u = "minute", c = /[+-]\d\d(?::?\d\d)?/g, m = /([+-]|\d\d)/g;
|
440
440
|
return function(L, v, y) {
|
441
|
-
var
|
441
|
+
var l = v.prototype;
|
442
442
|
y.utc = function(o) {
|
443
443
|
var M = { date: o, utc: !0, args: arguments };
|
444
444
|
return new v(M);
|
445
|
-
},
|
445
|
+
}, l.utc = function(o) {
|
446
446
|
var M = y(this.toDate(), { locale: this.$L, utc: !0 });
|
447
447
|
return o ? M.add(this.utcOffset(), u) : M;
|
448
|
-
},
|
448
|
+
}, l.local = function() {
|
449
449
|
return y(this.toDate(), { locale: this.$L, utc: !1 });
|
450
450
|
};
|
451
|
-
var T =
|
452
|
-
|
451
|
+
var T = l.parse;
|
452
|
+
l.parse = function(o) {
|
453
453
|
o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), T.call(this, o);
|
454
454
|
};
|
455
|
-
var q =
|
456
|
-
|
455
|
+
var q = l.init;
|
456
|
+
l.init = function() {
|
457
457
|
if (this.$u) {
|
458
458
|
var o = this.$d;
|
459
459
|
this.$y = o.getUTCFullYear(), this.$M = o.getUTCMonth(), this.$D = o.getUTCDate(), this.$W = o.getUTCDay(), this.$H = o.getUTCHours(), this.$m = o.getUTCMinutes(), this.$s = o.getUTCSeconds(), this.$ms = o.getUTCMilliseconds();
|
460
460
|
} else
|
461
461
|
q.call(this);
|
462
462
|
};
|
463
|
-
var b =
|
464
|
-
|
463
|
+
var b = l.utcOffset;
|
464
|
+
l.utcOffset = function(o, M) {
|
465
465
|
var I = this.$utils().u;
|
466
466
|
if (I(o))
|
467
467
|
return this.$u ? 0 : I(this.$offset) ? b.call(this) : this.$offset;
|
468
468
|
if (typeof o == "string" && (o = function(O) {
|
469
469
|
O === void 0 && (O = "");
|
470
|
-
var z = O.match(
|
470
|
+
var z = O.match(c);
|
471
471
|
if (!z)
|
472
472
|
return null;
|
473
|
-
var Y = ("" + z[0]).match(m) || ["-", 0, 0], B = Y[0],
|
474
|
-
return
|
473
|
+
var Y = ("" + z[0]).match(m) || ["-", 0, 0], B = Y[0], x = 60 * +Y[1] + +Y[2];
|
474
|
+
return x === 0 ? 0 : B === "+" ? x : -x;
|
475
475
|
}(o), o === null))
|
476
476
|
return this;
|
477
477
|
var F = Math.abs(o) <= 16 ? 60 * o : o, U = this;
|
@@ -484,26 +484,26 @@ var ie = { exports: {} };
|
|
484
484
|
U = this.utc();
|
485
485
|
return U;
|
486
486
|
};
|
487
|
-
var N =
|
488
|
-
|
487
|
+
var N = l.format;
|
488
|
+
l.format = function(o) {
|
489
489
|
var M = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
490
490
|
return N.call(this, M);
|
491
|
-
},
|
491
|
+
}, l.valueOf = function() {
|
492
492
|
var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
493
493
|
return this.$d.valueOf() - 6e4 * o;
|
494
|
-
},
|
494
|
+
}, l.isUTC = function() {
|
495
495
|
return !!this.$u;
|
496
|
-
},
|
496
|
+
}, l.toISOString = function() {
|
497
497
|
return this.toDate().toISOString();
|
498
|
-
},
|
498
|
+
}, l.toString = function() {
|
499
499
|
return this.toDate().toUTCString();
|
500
500
|
};
|
501
|
-
var k =
|
502
|
-
|
501
|
+
var k = l.toDate;
|
502
|
+
l.toDate = function(o) {
|
503
503
|
return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
|
504
504
|
};
|
505
|
-
var E =
|
506
|
-
|
505
|
+
var E = l.diff;
|
506
|
+
l.diff = function(o, M, I) {
|
507
507
|
if (o && this.$u === o.$u)
|
508
508
|
return E.call(this, o, M, I);
|
509
509
|
var F = this.local(), U = y(o).local();
|
@@ -553,7 +553,7 @@ const ge = ie.exports, ye = `:host {
|
|
553
553
|
|
554
554
|
@container (max-width: 475px) {
|
555
555
|
.DepositWithdrawalWrapper {
|
556
|
-
height: 100vh;
|
556
|
+
height: calc(100vh + 120px);
|
557
557
|
}
|
558
558
|
}
|
559
559
|
.ShortCashier.DepositWithdrawalWrapper {
|
@@ -606,7 +606,7 @@ const Ce = () => {
|
|
606
606
|
window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
607
607
|
}
|
608
608
|
render() {
|
609
|
-
return D(de, { key: "4963fd9b7ce608f13fd464996c085c29045fcd59" }, D("div", { key: "1fe503816ddb4f18d50545f0f627dd917e6f62ec", ref: (n) => this.stylingContainer = n }, !(this.isMobile && !this.isShortCashier) && D("h2", { key: "5bf653f70da5f95173a7dc2c7067d0968876b50a", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), D("div", { key: "
|
609
|
+
return D(de, { key: "4963fd9b7ce608f13fd464996c085c29045fcd59" }, D("div", { key: "1fe503816ddb4f18d50545f0f627dd917e6f62ec", ref: (n) => this.stylingContainer = n }, !(this.isMobile && !this.isShortCashier) && D("h2", { key: "5bf653f70da5f95173a7dc2c7067d0968876b50a", class: "CategoryTitle" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language)), D("div", { key: "5afbbcc975fcce46b5907a0a1aad60e570291e39", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: `calc(${this.dynamicHeight} + 120px)`, marginTop: this.isShortCashier ? "30px" : "0" } }, D("div", { key: "26715622124aefe68bcd9a585c5c34b648747cdd" }, this.isMobile && !this.isShortCashier ? D("div", { class: "MenuReturnButton", onClick: () => this.toggleScreen(this.isMobile) }, D("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, D("defs", null), D("g", { transform: "translate(-20 -158)" }, D("g", { transform: "translate(20 158)" }, D("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)" })))), D("h2", { class: "CategoryTitleMobile" }, H(this.typeParameter === "Withdraw" ? "Withdraw" : "Deposit", this.language))) : null), this.cashierInfoUrl ? D("iframe", { width: "100%", height: "100%", src: this.cashierInfoUrl }) : D("h3", { class: "ErrorMessage" }, this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language)))));
|
610
610
|
}
|
611
611
|
async loadWidget() {
|
612
612
|
const n = {
|
@@ -635,13 +635,13 @@ const Ce = () => {
|
|
635
635
|
const m = await u.text();
|
636
636
|
throw new Error(m);
|
637
637
|
}
|
638
|
-
const
|
639
|
-
if (
|
640
|
-
this.cashierInfoUrl =
|
638
|
+
const c = await u.json();
|
639
|
+
if (c.CashierInfo)
|
640
|
+
this.cashierInfoUrl = c.CashierInfo.Url;
|
641
641
|
else {
|
642
642
|
let m;
|
643
|
-
if (
|
644
|
-
let v = this.errorCodes.find((y) =>
|
643
|
+
if (c.ResponseMessage) {
|
644
|
+
let v = this.errorCodes.find((y) => c.ResponseMessage.includes(y)) || null;
|
645
645
|
v ? m = H(`errorCode${v}`, this.language) : m = H("notFoundErrorCode", this.language);
|
646
646
|
} else
|
647
647
|
m = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
|
@@ -653,8 +653,8 @@ const Ce = () => {
|
|
653
653
|
}
|
654
654
|
}
|
655
655
|
handleMessage(n) {
|
656
|
-
var h, u,
|
657
|
-
n.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), n.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = n.data["MMFE:setQuickDepositHeight"].toString() + "px"), n.data["MMFE:setIFrameHeight"] &&
|
656
|
+
var h, u, c, m, L, v, y, l;
|
657
|
+
n.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), n.data["MMFE:setQuickDepositHeight"] && this.isShortCashier && (this.dynamicHeight = n.data["MMFE:setQuickDepositHeight"].toString() + "px"), n.data["MMFE:setIFrameHeight"] && (this.dynamicHeight = n.data["MMFE:setIFrameHeight"].toString() + "px"), ((h = n.data) === null || h === void 0 ? void 0 : h.type) === "mm-hcback-to-merchant" && this.doRedirect(n.data.type, this.homeUrl), ((u = n.data) === null || u === void 0 ? void 0 : u.redirect) === "mm-hc-back-tomerchant" && this.doRedirect(n.data.redirect, this.homeUrl), ((c = n.data) === null || c === void 0 ? void 0 : c.redirect) === "mm-hc-sports" && this.doRedirect((m = n.data) === null || m === void 0 ? void 0 : m.redirect, this.sportsUrl), ((L = n.data) === null || L === void 0 ? void 0 : L.redirect) === "mm-hc-casino" && this.doRedirect(window.location.href, this.casinoUrl), ((v = n.data) === null || v === void 0 ? void 0 : v.redirect) === "mm-hc-contact" && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.contactUrl)), (((y = n.data) === null || y === void 0 ? void 0 : y.redirect) === "mm-wm-hc-init-deposit" || ((l = n.data) === null || l === void 0 ? void 0 : l.redirect) === "mm-wm-hc-init-deposit-quick") && (window.postMessage({ type: "CloseShortCashier" }, window.location.href), this.doRedirect(window.location.href, this.depositUrl));
|
658
658
|
}
|
659
659
|
doRedirect(n, h) {
|
660
660
|
const u = { reason: n, url: h, cancel: !1 };
|