@everymatrix/casino-header-controller 1.60.1 → 1.61.0
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-DyL5A7W7.js → CasinoHamburgerMenu-D3mFMa5W.js} +1020 -1041
- package/components/{CasinoHamburgerMenu-D3IA0-Fr.js → CasinoHamburgerMenu-DqjlWYNt.js} +1025 -1046
- package/components/CasinoHamburgerMenu-nSi6_GPa.cjs +21 -0
- package/components/{CasinoHeaderController-DmFZgeXE.js → CasinoHeaderController-BA7fDOas.js} +805 -805
- package/components/{CasinoHeaderController-B1Lx3tU2.js → CasinoHeaderController-DlwPvEo0.js} +834 -834
- package/components/CasinoHeaderController-UtiETC1r.cjs +13 -0
- package/components/{CasinoSlider-BTGfiw5j.js → CasinoSlider-Cunmuq-P.js} +229 -228
- package/components/{CasinoSlider-RSfl7Nfu.js → CasinoSlider-D3psXdEh.js} +156 -155
- package/components/CasinoSlider-DqegUx4l.cjs +1 -0
- package/components/PlayerAccountBalanceModal-BtbEXU7C.js +1510 -0
- package/components/PlayerAccountBalanceModal-DGswwf7U.js +1539 -0
- package/components/PlayerAccountBalanceModal-DmC872Cn.cjs +13 -0
- package/components/PlayerDeposit-BZHiEvzi.cjs +1 -0
- package/components/{PlayerDeposit-D1KSGzHW.js → PlayerDeposit-BpfGM-w1.js} +65 -65
- package/components/{PlayerDeposit-OqZh5SL5.js → PlayerDeposit-p2EYro_u.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/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/index-1ef3a64c-Bbwd34hU.js +556 -0
- package/stencil/index-1ef3a64c-DRNu975a.cjs +1 -0
- package/stencil/index-1ef3a64c-jc8GL-4U.js +572 -0
- package/stencil/index-b7bbd57e-BI5Jd3XF.js +534 -0
- package/stencil/index-b7bbd57e-CWFHq7YQ.js +550 -0
- package/stencil/index-b7bbd57e-ZVNIWqhl.cjs +1 -0
- package/stencil/ui-image-38c3c15f-BrMN1r-f.js +39 -0
- package/stencil/ui-image-38c3c15f-DJ4mX8s9.js +39 -0
- package/stencil/ui-image-38c3c15f-DSKYkFDR.cjs +1 -0
- package/stencil/ui-image-BWWgU_uH.js +11 -0
- package/stencil/ui-image-BxRHakSy.cjs +1 -0
- package/stencil/ui-image-DJ6CI_DU.js +29 -0
- package/stencil/{user-deposit-withdrawal-DfDiD6Lp.js → user-deposit-withdrawal-BB9s28xc.js} +77 -77
- package/stencil/{user-deposit-withdrawal-C72e1sSw.js → user-deposit-withdrawal-BSMKIHfB.js} +72 -72
- package/stencil/user-deposit-withdrawal-C2hFhOko.cjs +59 -0
- package/components/CasinoHamburgerMenu-DessG6uq.cjs +0 -21
- package/components/CasinoHeaderController-BH5IAaed.cjs +0 -13
- package/components/CasinoSlider-DRVCTpte.cjs +0 -1
- 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/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.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
- package/stencil/user-deposit-withdrawal-CS-LZhcv.cjs +0 -59
@@ -1,11 +1,11 @@
|
|
1
|
-
import { b as ae, p as oe, r as se, h as D, H as de } from "./index-1ef3a64c-
|
2
|
-
import {
|
3
|
-
var
|
1
|
+
import { b as ae, p as oe, r as se, h as D, H as de } from "./index-1ef3a64c-Bbwd34hU.js";
|
2
|
+
import { a as ue } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
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 };
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";var Q=(n,h,s)=>new Promise((l,p)=>{var L=c=>{try{g(s.next(c))}catch(b){p(b)}},w=c=>{try{g(s.throw(c))}catch(b){p(b)}},g=c=>c.done?l(c.value):Promise.resolve(c.value).then(L,w);g((s=s.apply(n,h)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index-1ef3a64c-DRNu975a.cjs"),de=require("./app-globals-0f993ce5-DgOnOgxM.cjs");var K=typeof document!="undefined"?document.currentScript:null,ue=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:K&&K.tagName.toUpperCase()==="SCRIPT"&&K.src||new URL("stencil/user-deposit-withdrawal-C2hFhOko.cjs",document.baseURI).href,h={};return n!==""&&(h.resourcesUrl=new URL(".",n).href),S.promiseResolve(h)};ue().then(n=>Q(exports,null,function*(){return yield de.globalScripts$1(),S.bootstrapLazy([["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)}));const ce="en",le=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],re={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",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"}},he=n=>new Promise(h=>{fetch(n).then(s=>s.json()).then(s=>{Object.keys(s).forEach(l=>{for(let p in s[l])re[l][p]=s[l][p]}),h(!0)})}),I=(n,h)=>{const s=h;return re[s!==void 0&&le.includes(s)?s:ce][n]};function ee(n,h){if(n){const s=document.createElement("style");s.innerHTML=h,n.appendChild(s)}}function te(n,h){const s=new URL(h);fetch(s.href).then(l=>l.text()).then(l=>{const p=document.createElement("style");p.innerHTML=l,n&&n.appendChild(p)}).catch(l=>{console.error("There was an error while trying to load client styling from URL",l)})}function fe(n,h,s){if(window.emMessageBus){const l=document.createElement("style");window.emMessageBus.subscribe(h,p=>{l.innerHTML=p,n&&n.appendChild(l)})}}const pe=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));var ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ie={exports:{}};(function(n,h){(function(s,l){n.exports=l()})(ne,function(){var s=1e3,l=6e4,p=36e5,L="millisecond",w="second",g="minute",c="hour",b="day",q="week",M="month",N="quarter",k="year",O="date",o="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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){var r=["th","st","nd","rd"],e=a%100;return"["+a+(r[(e-20)%10]||r[e]||r[0])+"]"}},W=function(a,r,e){var i=String(a);return!i||i.length>=r?a:""+Array(r+1-i.length).join(e)+a},G={s:W,z:function(a){var r=-a.utcOffset(),e=Math.abs(r),i=Math.floor(e/60),t=e%60;return(r<=0?"+":"-")+W(i,2,"0")+":"+W(t,2,"0")},m:function a(r,e){if(r.date()<e.date())return-a(e,r);var i=12*(e.year()-r.year())+(e.month()-r.month()),t=r.clone().add(i,M),d=e-t<0,u=r.clone().add(i+(d?-1:1),M);return+(-(i+(e-t)/(d?t-u:u-t))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M,y:k,w:q,d:b,D:O,h:c,m:g,s:w,ms:L,Q:N}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},j="en",z={};z[j]=F;var P="$isDayjsObject",B=function(a){return a instanceof Z||!(!a||!a[P])},E=function a(r,e,i){var t;if(!r)return j;if(typeof r=="string"){var d=r.toLowerCase();z[d]&&(t=d),e&&(z[d]=e,t=d);var u=r.split("-");if(!t&&u.length>1)return a(u[0])}else{var m=r.name;z[m]=r,t=m}return!i&&t&&(j=t),t||!i&&j},C=function(a,r){if(B(a))return a.clone();var e=typeof r=="object"?r:{};return e.date=a,e.args=arguments,new Z(e)},f=G;f.l=E,f.i=B,f.w=function(a,r){return C(a,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var Z=function(){function a(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[P]=!0}var r=a.prototype;return r.parse=function(e){this.$d=function(i){var t=i.date,d=i.utc;if(t===null)return new Date(NaN);if(f.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var u=t.match(U);if(u){var m=u[2]-1||0,y=(u[7]||"0").substring(0,3);return d?new Date(Date.UTC(u[1],m,u[3]||1,u[4]||0,u[5]||0,u[6]||0,y)):new Date(u[1],m,u[3]||1,u[4]||0,u[5]||0,u[6]||0,y)}}return new Date(t)}(e),this.init()},r.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},r.$utils=function(){return f},r.isValid=function(){return this.$d.toString()!==o},r.isSame=function(e,i){var t=C(e);return this.startOf(i)<=t&&t<=this.endOf(i)},r.isAfter=function(e,i){return C(e)<this.startOf(i)},r.isBefore=function(e,i){return this.endOf(i)<C(e)},r.$g=function(e,i,t){return f.u(e)?this[i]:this.set(t,e)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(e,i){var t=this,d=!!f.u(i)||i,u=f.p(e),m=function(R,D){var x=f.w(t.$u?Date.UTC(t.$y,D,R):new Date(t.$y,D,R),t);return d?x:x.endOf(b)},y=function(R,D){return f.w(t.toDate()[R].apply(t.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(D)),t)},v=this.$W,$=this.$M,T=this.$D,Y="set"+(this.$u?"UTC":"");switch(u){case k:return d?m(1,0):m(31,11);case M:return d?m(1,$):m(0,$+1);case q:var _=this.$locale().weekStart||0,A=(v<_?v+7:v)-_;return m(d?T-A:T+(6-A),$);case b:case O:return y(Y+"Hours",0);case c:return y(Y+"Minutes",1);case g:return y(Y+"Seconds",2);case w:return y(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(e){return this.startOf(e,!1)},r.$set=function(e,i){var t,d=f.p(e),u="set"+(this.$u?"UTC":""),m=(t={},t[b]=u+"Date",t[O]=u+"Date",t[M]=u+"Month",t[k]=u+"FullYear",t[c]=u+"Hours",t[g]=u+"Minutes",t[w]=u+"Seconds",t[L]=u+"Milliseconds",t)[d],y=d===b?this.$D+(i-this.$W):i;if(d===M||d===k){var v=this.clone().set(O,1);v.$d[m](y),v.init(),this.$d=v.set(O,Math.min(this.$D,v.daysInMonth())).$d}else m&&this.$d[m](y);return this.init(),this},r.set=function(e,i){return this.clone().$set(e,i)},r.get=function(e){return this[f.p(e)]()},r.add=function(e,i){var t,d=this;e=Number(e);var u=f.p(i),m=function($){var T=C(d);return f.w(T.date(T.date()+Math.round($*e)),d)};if(u===M)return this.set(M,this.$M+e);if(u===k)return this.set(k,this.$y+e);if(u===b)return m(1);if(u===q)return m(7);var y=(t={},t[g]=l,t[c]=p,t[w]=s,t)[u]||1,v=this.$d.getTime()+e*y;return f.w(v,this)},r.subtract=function(e,i){return this.add(-1*e,i)},r.format=function(e){var i=this,t=this.$locale();if(!this.isValid())return t.invalidDate||o;var d=e||"YYYY-MM-DDTHH:mm:ssZ",u=f.z(this),m=this.$H,y=this.$m,v=this.$M,$=t.weekdays,T=t.months,Y=t.meridiem,_=function(D,x,V,J){return D&&(D[x]||D(i,d))||V[x].slice(0,J)},A=function(D){return f.s(m%12||12,D,"0")},R=Y||function(D,x,V){var J=D<12?"AM":"PM";return V?J.toLowerCase():J};return d.replace(H,function(D,x){return x||function(V){switch(V){case"YY":return String(i.$y).slice(-2);case"YYYY":return f.s(i.$y,4,"0");case"M":return v+1;case"MM":return f.s(v+1,2,"0");case"MMM":return _(t.monthsShort,v,T,3);case"MMMM":return _(T,v);case"D":return i.$D;case"DD":return f.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return _(t.weekdaysMin,i.$W,$,2);case"ddd":return _(t.weekdaysShort,i.$W,$,3);case"dddd":return $[i.$W];case"H":return String(m);case"HH":return f.s(m,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return R(m,y,!0);case"A":return R(m,y,!1);case"m":return String(y);case"mm":return f.s(y,2,"0");case"s":return String(i.$s);case"ss":return f.s(i.$s,2,"0");case"SSS":return f.s(i.$ms,3,"0");case"Z":return u}return null}(D)||u.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(e,i,t){var d,u=this,m=f.p(i),y=C(e),v=(y.utcOffset()-this.utcOffset())*l,$=this-y,T=function(){return f.m(u,y)};switch(m){case k:d=T()/12;break;case M:d=T();break;case N:d=T()/3;break;case q:d=($-v)/6048e5;break;case b:d=($-v)/864e5;break;case c:d=$/p;break;case g:d=$/l;break;case w:d=$/s;break;default:d=$}return t?d:f.a(d)},r.daysInMonth=function(){return this.endOf(M).$D},r.$locale=function(){return z[this.$L]},r.locale=function(e,i){if(!e)return this.$L;var t=this.clone(),d=E(e,i,!0);return d&&(t.$L=d),t},r.clone=function(){return f.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},a}(),X=Z.prototype;return C.prototype=X,[["$ms",L],["$s",w],["$m",g],["$H",c],["$W",b],["$M",M],["$y",k],["$D",O]].forEach(function(a){X[a[1]]=function(r){return this.$g(r,a[0],a[1])}}),C.extend=function(a,r){return a.$i||(a(r,Z,C),a.$i=!0),C},C.locale=E,C.isDayjs=B,C.unix=function(a){return C(1e3*a)},C.en=z[j],C.Ls=z,C.p={},C})})(ie);const ae=ie.exports;var oe={exports:{}};(function(n,h){(function(s,l){n.exports=l()})(ne,function(){var s="minute",l=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(L,w,g){var c=w.prototype;g.utc=function(o){var U={date:o,utc:!0,args:arguments};return new w(U)},c.utc=function(o){var U=g(this.toDate(),{locale:this.$L,utc:!0});return o?U.add(this.utcOffset(),s):U},c.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var b=c.parse;c.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),b.call(this,o)};var q=c.init;c.init=function(){if(this.$u){var o=this.$d;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()}else q.call(this)};var M=c.utcOffset;c.utcOffset=function(o,U){var H=this.$utils().u;if(H(o))return this.$u?0:H(this.$offset)?M.call(this):this.$offset;if(typeof o=="string"&&(o=function(j){j===void 0&&(j="");var z=j.match(l);if(!z)return null;var P=(""+z[0]).match(p)||["-",0,0],B=P[0],E=60*+P[1]+ +P[2];return E===0?0:B==="+"?E:-E}(o),o===null))return this;var F=Math.abs(o)<=16?60*o:o,W=this;if(U)return W.$offset=F,W.$u=o===0,W;if(o!==0){var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(W=this.local().add(F+G,s)).$offset=F,W.$x.$localOffset=G}else W=this.utc();return W};var N=c.format;c.format=function(o){var U=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return N.call(this,U)},c.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var k=c.toDate;c.toDate=function(o){return o==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var O=c.diff;c.diff=function(o,U,H){if(o&&this.$u===o.$u)return O.call(this,o,U,H);var F=this.local(),W=g(o).local();return O.call(F,W,U,H)}}})})(oe);const me=oe.exports,ge=`:host {
|
2
|
+
font: inherit;
|
3
|
+
display: block;
|
4
|
+
height: 100%;
|
5
|
+
overflow: hidden;
|
6
|
+
}
|
7
|
+
|
8
|
+
.CategoryTitle {
|
9
|
+
font-size: var(--emw--font-size-x-large, 26px);
|
10
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
11
|
+
}
|
12
|
+
|
13
|
+
.MenuReturnButton {
|
14
|
+
font: inherit;
|
15
|
+
color: var(--emw--color-gray-300, #58586B);
|
16
|
+
display: inline-flex;
|
17
|
+
align-items: center;
|
18
|
+
column-gap: 10px;
|
19
|
+
margin-bottom: 10px;
|
20
|
+
}
|
21
|
+
.MenuReturnButton svg {
|
22
|
+
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
23
|
+
}
|
24
|
+
.MenuReturnButton h2.CategoryTitleMobile {
|
25
|
+
font-size: 16px;
|
26
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
27
|
+
}
|
28
|
+
|
29
|
+
.ErrorMessage {
|
30
|
+
color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
|
31
|
+
}
|
32
|
+
|
33
|
+
.DepositWithdrawalWrapper {
|
34
|
+
width: 100%;
|
35
|
+
padding: 0;
|
36
|
+
margin: 0;
|
37
|
+
height: 100vh;
|
38
|
+
}
|
39
|
+
|
40
|
+
@container (max-width: 475px) {
|
41
|
+
.DepositWithdrawalWrapper {
|
42
|
+
height: calc(100vh + 120px);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
.ShortCashier.DepositWithdrawalWrapper {
|
46
|
+
height: 500px;
|
47
|
+
}
|
48
|
+
.ShortCashier.CategoryTitle.CategoryTitle {
|
49
|
+
margin-right: 20px;
|
50
|
+
padding-top: 20px;
|
51
|
+
color: ar(--emw--color-black, #000000);
|
52
|
+
}
|
53
|
+
.ShortCashier .ErrorMessage {
|
54
|
+
margin: auto;
|
55
|
+
width: 90%;
|
56
|
+
margin-top: 70px;
|
57
|
+
text-align: center;
|
58
|
+
color: var(--emw--color-black, #000000);
|
59
|
+
}`,ye=ge;ae.extend(me);const we=()=>{},se=class{constructor(n){S.registerInstance(this,n),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=pe(this.userAgent),this.errorCodes=["21123","21122"],this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType=void 0,this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=we,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}watchLoadWidget(){this.loadWidget()}handleClientStylingChange(n,h){n!=h&&ee(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,h){n!=h&&this.clientStylingUrl&&te(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Q(this,null,function*(){if(yield this.loadWidget(),this.translationUrl)return he(this.translationUrl)})}toggleScreen(n){window.postMessage({type:"PlayerAccountMenuActive",isMobile:n},window.location.href)}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?fe(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&ee(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&te(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return S.h(S.Host,{key:"4963fd9b7ce608f13fd464996c085c29045fcd59"},S.h("div",{key:"1fe503816ddb4f18d50545f0f627dd917e6f62ec",ref:n=>this.stylingContainer=n},!(this.isMobile&&!this.isShortCashier)&&S.h("h2",{key:"5bf653f70da5f95173a7dc2c7067d0968876b50a",class:"CategoryTitle"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),S.h("div",{key:"5afbbcc975fcce46b5907a0a1aad60e570291e39",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{height:`calc(${this.dynamicHeight} + 120px)`,marginTop:this.isShortCashier?"30px":"0"}},S.h("div",{key:"26715622124aefe68bcd9a585c5c34b648747cdd"},this.isMobile&&!this.isShortCashier?S.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},S.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},S.h("defs",null),S.h("g",{transform:"translate(-20 -158)"},S.h("g",{transform:"translate(20 158)"},S.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),S.h("h2",{class:"CategoryTitleMobile"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?S.h("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):S.h("h3",{class:"ErrorMessage"},this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language)))))}loadWidget(){return Q(this,null,function*(){const n={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};try{const h=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,s=yield fetch(h,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":ae.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(n)});if(!s.ok){const p=yield s.text();throw new Error(p)}const l=yield s.json();if(l.CashierInfo)this.cashierInfoUrl=l.CashierInfo.Url;else{let p;if(l.ResponseMessage){let w=this.errorCodes.find(g=>l.ResponseMessage.includes(g))||null;w?p=I(`errorCode${w}`,this.language):p=I("notFoundErrorCode",this.language)}else p=this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language);const L={type:"error",message:p};window.postMessage({type:"DenyDepositOrWithdrawal",data:L},window.location.href)}}catch(h){console.error(h)}})}handleMessage(n){var h,s,l,p,L,w,g,c;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),((s=n.data)===null||s===void 0?void 0:s.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(n.data.redirect,this.homeUrl),((l=n.data)===null||l===void 0?void 0:l.redirect)==="mm-hc-sports"&&this.doRedirect((p=n.data)===null||p===void 0?void 0:p.redirect,this.sportsUrl),((L=n.data)===null||L===void 0?void 0:L.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((w=n.data)===null||w===void 0?void 0:w.redirect)==="mm-hc-contact"&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),(((g=n.data)===null||g===void 0?void 0:g.redirect)==="mm-wm-hc-init-deposit"||((c=n.data)===null||c===void 0?void 0:c.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(n,h){const s={reason:n,url:h,cancel:!1};if(this.beforeRedirect(s),!s.cancel){if(!s.url){window.location.href="/";return}window.location.href=s.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};se.style=ye;exports.user_deposit_withdrawal=se;
|