@everymatrix/casino-header-controller 1.55.0 → 1.56.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-JVY4ac8I.js → CasinoHamburgerMenu-D3IA0-Fr.js} +68 -31
- package/components/{CasinoHamburgerMenu-C8-P7sF9.cjs → CasinoHamburgerMenu-DessG6uq.cjs} +16 -3
- package/components/{CasinoHamburgerMenu-E4O8Dx5o.js → CasinoHamburgerMenu-DyL5A7W7.js} +69 -32
- package/components/CasinoHeaderController-BFP8179I.cjs +13 -0
- package/components/{CasinoHeaderController-9s-CNvhj.js → CasinoHeaderController-BbEsH91Z.js} +522 -488
- package/components/{CasinoHeaderController-BVCLQUCq.js → CasinoHeaderController-DeiDjcf5.js} +581 -547
- package/components/{CasinoSlider-xu8jCpW1.js → CasinoSlider-BiQpUhjL.js} +63 -63
- package/components/CasinoSlider-E1mSYv_J.cjs +1 -0
- package/components/{CasinoSlider-yMz4R8ed.js → CasinoSlider-MTl32pNB.js} +59 -59
- package/components/{PlayerAccountBalanceModal-BVQlpIy4.cjs → PlayerAccountBalanceModal-B9BkSlDU.cjs} +5 -5
- package/components/{PlayerAccountBalanceModal-CcASksA3.js → PlayerAccountBalanceModal-CEo_b6Ks.js} +119 -116
- package/components/{PlayerAccountBalanceModal-DG6GgVDp.js → PlayerAccountBalanceModal-fP9D_Jz7.js} +118 -115
- package/components/{PlayerDeposit-CIarW5H1.js → PlayerDeposit-Bv78j0E8.js} +15 -15
- package/components/{PlayerDeposit-C8ZPqrpV.cjs → PlayerDeposit-C7xxeNB2.cjs} +1 -1
- package/components/{PlayerDeposit-D9xpcJp9.js → PlayerDeposit-DiUqgMu-.js} +15 -15
- 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-6soTLew7.js +556 -0
- package/stencil/index-1ef3a64c-DkMoO-oa.js +572 -0
- package/stencil/index-1ef3a64c-DmmoSOho.cjs +1 -0
- package/stencil/{user-deposit-withdrawal-Dg3a3KkR.js → user-deposit-withdrawal-C72e1sSw.js} +216 -178
- package/stencil/user-deposit-withdrawal-CS-LZhcv.cjs +59 -0
- package/stencil/{user-deposit-withdrawal-gu9RDhoH.js → user-deposit-withdrawal-DfDiD6Lp.js} +289 -251
- package/components/CasinoHeaderController-BZk18wxU.cjs +0 -13
- package/components/CasinoSlider-DDycojG8.cjs +0 -1
- package/stencil/index-657e7a14-BQuTIY5_.js +0 -572
- package/stencil/index-657e7a14-CDqZBTHG.cjs +0 -1
- package/stencil/index-657e7a14-fo2CD-e3.js +0 -588
- package/stencil/user-deposit-withdrawal-BCkoyv3i.cjs +0 -59
@@ -1,11 +1,11 @@
|
|
1
|
-
import { b as
|
2
|
-
import { g as
|
3
|
-
var
|
4
|
-
const n = import.meta.url,
|
5
|
-
return n !== "" && (
|
1
|
+
import { b as ae, p as oe, r as se, h as D, H as de } from "./index-1ef3a64c-6soTLew7.js";
|
2
|
+
import { g as ue } from "./app-globals-0f993ce5-D-kw1sls.js";
|
3
|
+
var le = () => {
|
4
|
+
const n = import.meta.url, h = {};
|
5
|
+
return n !== "" && (h.resourcesUrl = new URL(".", n).href), oe(h);
|
6
6
|
};
|
7
|
-
|
8
|
-
const
|
7
|
+
le().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 ce = "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",
|
@@ -105,23 +105,47 @@ const ue = "en", ce = ["ro", "en", "fr", "hr", "en-us", "es-mx", "pt-br", "es",
|
|
105
105
|
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",
|
106
106
|
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"
|
107
107
|
}
|
108
|
-
},
|
108
|
+
}, fe = (n) => new Promise((h) => {
|
109
109
|
fetch(n).then((u) => u.json()).then((u) => {
|
110
110
|
Object.keys(u).forEach((l) => {
|
111
|
-
for (let
|
112
|
-
|
113
|
-
}),
|
111
|
+
for (let m in u[l])
|
112
|
+
ee[l][m] = u[l][m];
|
113
|
+
}), h(!0);
|
114
114
|
});
|
115
|
-
}), H = (n,
|
116
|
-
const u =
|
117
|
-
return
|
118
|
-
}
|
119
|
-
|
120
|
-
(
|
115
|
+
}), H = (n, h) => {
|
116
|
+
const u = h;
|
117
|
+
return ee[u !== void 0 && he.includes(u) ? u : ce][n];
|
118
|
+
};
|
119
|
+
function K(n, h) {
|
120
|
+
if (n) {
|
121
|
+
const u = document.createElement("style");
|
122
|
+
u.innerHTML = h, n.appendChild(u);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
function X(n, h) {
|
126
|
+
const u = new URL(h);
|
127
|
+
fetch(u.href).then((l) => l.text()).then((l) => {
|
128
|
+
const m = document.createElement("style");
|
129
|
+
m.innerHTML = l, n && n.appendChild(m);
|
130
|
+
}).catch((l) => {
|
131
|
+
console.error("There was an error while trying to load client styling from URL", l);
|
132
|
+
});
|
133
|
+
}
|
134
|
+
function pe(n, h, u) {
|
135
|
+
if (window.emMessageBus) {
|
136
|
+
const l = document.createElement("style");
|
137
|
+
window.emMessageBus.subscribe(h, (m) => {
|
138
|
+
l.innerHTML = m, n && n.appendChild(l);
|
139
|
+
});
|
140
|
+
}
|
141
|
+
}
|
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
|
+
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = { exports: {} };
|
144
|
+
(function(n, h) {
|
121
145
|
(function(u, l) {
|
122
146
|
n.exports = l();
|
123
|
-
})(
|
124
|
-
var u = 1e3, l = 6e4,
|
147
|
+
})(te, function() {
|
148
|
+
var u = 1e3, l = 6e4, m = 36e5, L = "millisecond", v = "second", y = "minute", c = "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) {
|
125
149
|
var r = ["th", "st", "nd", "rd"], e = a % 100;
|
126
150
|
return "[" + a + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
|
127
151
|
} }, U = function(a, r, e) {
|
@@ -131,38 +155,42 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
131
155
|
var r = -a.utcOffset(), e = Math.abs(r), i = Math.floor(e / 60), t = e % 60;
|
132
156
|
return (r <= 0 ? "+" : "-") + U(i, 2, "0") + ":" + U(t, 2, "0");
|
133
157
|
}, m: function a(r, e) {
|
134
|
-
if (r.date() < e.date())
|
158
|
+
if (r.date() < e.date())
|
159
|
+
return -a(e, r);
|
135
160
|
var i = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(i, b), s = e - t < 0, d = r.clone().add(i + (s ? -1 : 1), b);
|
136
161
|
return +(-(i + (e - t) / (s ? t - d : d - t)) || 0);
|
137
162
|
}, a: function(a) {
|
138
163
|
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
139
164
|
}, p: function(a) {
|
140
|
-
return { M: b, y: k, w: q, d: T, D:
|
165
|
+
return { M: b, y: k, w: q, d: T, D: E, h: c, m: y, s: v, ms: L, Q: N }[a] || String(a || "").toLowerCase().replace(/s$/, "");
|
141
166
|
}, u: function(a) {
|
142
167
|
return a === void 0;
|
143
|
-
} },
|
144
|
-
z[
|
145
|
-
var Y = "$isDayjsObject",
|
168
|
+
} }, O = "en", z = {};
|
169
|
+
z[O] = F;
|
170
|
+
var Y = "$isDayjsObject", B = function(a) {
|
146
171
|
return a instanceof Z || !(!a || !a[Y]);
|
147
172
|
}, j = function a(r, e, i) {
|
148
173
|
var t;
|
149
|
-
if (!r)
|
174
|
+
if (!r)
|
175
|
+
return O;
|
150
176
|
if (typeof r == "string") {
|
151
177
|
var s = r.toLowerCase();
|
152
178
|
z[s] && (t = s), e && (z[s] = e, t = s);
|
153
179
|
var d = r.split("-");
|
154
|
-
if (!t && d.length > 1)
|
180
|
+
if (!t && d.length > 1)
|
181
|
+
return a(d[0]);
|
155
182
|
} else {
|
156
|
-
var
|
157
|
-
z[
|
183
|
+
var p = r.name;
|
184
|
+
z[p] = r, t = p;
|
158
185
|
}
|
159
|
-
return !i && t && (
|
186
|
+
return !i && t && (O = t), t || !i && O;
|
160
187
|
}, w = function(a, r) {
|
161
|
-
if (
|
188
|
+
if (B(a))
|
189
|
+
return a.clone();
|
162
190
|
var e = typeof r == "object" ? r : {};
|
163
191
|
return e.date = a, e.args = arguments, new Z(e);
|
164
|
-
},
|
165
|
-
|
192
|
+
}, f = G;
|
193
|
+
f.l = j, f.i = B, f.w = function(a, r) {
|
166
194
|
return w(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
|
167
195
|
};
|
168
196
|
var Z = function() {
|
@@ -173,14 +201,17 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
173
201
|
return r.parse = function(e) {
|
174
202
|
this.$d = function(i) {
|
175
203
|
var t = i.date, s = i.utc;
|
176
|
-
if (t === null)
|
177
|
-
|
178
|
-
if (
|
204
|
+
if (t === null)
|
205
|
+
return /* @__PURE__ */ new Date(NaN);
|
206
|
+
if (f.u(t))
|
207
|
+
return /* @__PURE__ */ new Date();
|
208
|
+
if (t instanceof Date)
|
209
|
+
return new Date(t);
|
179
210
|
if (typeof t == "string" && !/Z$/i.test(t)) {
|
180
211
|
var d = t.match(M);
|
181
212
|
if (d) {
|
182
|
-
var
|
183
|
-
return s ? new Date(Date.UTC(d[1],
|
213
|
+
var p = d[2] - 1 || 0, g = (d[7] || "0").substring(0, 3);
|
214
|
+
return s ? new Date(Date.UTC(d[1], p, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, g)) : new Date(d[1], p, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, g);
|
184
215
|
}
|
185
216
|
}
|
186
217
|
return new Date(t);
|
@@ -189,7 +220,7 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
189
220
|
var e = this.$d;
|
190
221
|
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();
|
191
222
|
}, r.$utils = function() {
|
192
|
-
return
|
223
|
+
return f;
|
193
224
|
}, r.isValid = function() {
|
194
225
|
return this.$d.toString() !== o;
|
195
226
|
}, r.isSame = function(e, i) {
|
@@ -200,139 +231,145 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
200
231
|
}, r.isBefore = function(e, i) {
|
201
232
|
return this.endOf(i) < w(e);
|
202
233
|
}, r.$g = function(e, i, t) {
|
203
|
-
return
|
234
|
+
return f.u(e) ? this[i] : this.set(t, e);
|
204
235
|
}, r.unix = function() {
|
205
236
|
return Math.floor(this.valueOf() / 1e3);
|
206
237
|
}, r.valueOf = function() {
|
207
238
|
return this.$d.getTime();
|
208
239
|
}, r.startOf = function(e, i) {
|
209
|
-
var t = this, s = !!
|
210
|
-
var x =
|
240
|
+
var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, $) {
|
241
|
+
var x = f.w(t.$u ? Date.UTC(t.$y, $, R) : new Date(t.$y, $, R), t);
|
211
242
|
return s ? x : x.endOf(T);
|
212
|
-
},
|
213
|
-
return
|
214
|
-
},
|
243
|
+
}, g = function(R, $) {
|
244
|
+
return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), t);
|
245
|
+
}, C = this.$W, S = this.$M, W = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
215
246
|
switch (d) {
|
216
247
|
case k:
|
217
|
-
return s ?
|
248
|
+
return s ? p(1, 0) : p(31, 11);
|
218
249
|
case b:
|
219
|
-
return s ?
|
250
|
+
return s ? p(1, S) : p(0, S + 1);
|
220
251
|
case q:
|
221
|
-
var _ = this.$locale().weekStart || 0,
|
222
|
-
return
|
252
|
+
var _ = this.$locale().weekStart || 0, A = (C < _ ? C + 7 : C) - _;
|
253
|
+
return p(s ? W - A : W + (6 - A), S);
|
223
254
|
case T:
|
224
|
-
case
|
225
|
-
return
|
255
|
+
case E:
|
256
|
+
return g(P + "Hours", 0);
|
226
257
|
case c:
|
227
|
-
return
|
258
|
+
return g(P + "Minutes", 1);
|
228
259
|
case y:
|
229
|
-
return
|
230
|
-
case
|
231
|
-
return
|
260
|
+
return g(P + "Seconds", 2);
|
261
|
+
case v:
|
262
|
+
return g(P + "Milliseconds", 3);
|
232
263
|
default:
|
233
264
|
return this.clone();
|
234
265
|
}
|
235
266
|
}, r.endOf = function(e) {
|
236
267
|
return this.startOf(e, !1);
|
237
268
|
}, r.$set = function(e, i) {
|
238
|
-
var t, s =
|
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[c] = 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;
|
239
270
|
if (s === b || s === k) {
|
240
|
-
var
|
241
|
-
|
242
|
-
} else
|
271
|
+
var C = this.clone().set(E, 1);
|
272
|
+
C.$d[p](g), C.init(), this.$d = C.set(E, Math.min(this.$D, C.daysInMonth())).$d;
|
273
|
+
} else
|
274
|
+
p && this.$d[p](g);
|
243
275
|
return this.init(), this;
|
244
276
|
}, r.set = function(e, i) {
|
245
277
|
return this.clone().$set(e, i);
|
246
278
|
}, r.get = function(e) {
|
247
|
-
return this[
|
279
|
+
return this[f.p(e)]();
|
248
280
|
}, r.add = function(e, i) {
|
249
281
|
var t, s = this;
|
250
282
|
e = Number(e);
|
251
|
-
var d =
|
283
|
+
var d = f.p(i), p = function(S) {
|
252
284
|
var W = w(s);
|
253
|
-
return
|
285
|
+
return f.w(W.date(W.date() + Math.round(S * e)), s);
|
254
286
|
};
|
255
|
-
if (d === b)
|
256
|
-
|
257
|
-
if (d ===
|
258
|
-
|
259
|
-
|
260
|
-
|
287
|
+
if (d === b)
|
288
|
+
return this.set(b, this.$M + e);
|
289
|
+
if (d === k)
|
290
|
+
return this.set(k, this.$y + e);
|
291
|
+
if (d === T)
|
292
|
+
return p(1);
|
293
|
+
if (d === q)
|
294
|
+
return p(7);
|
295
|
+
var g = (t = {}, t[y] = l, t[c] = m, t[v] = u, t)[d] || 1, C = this.$d.getTime() + e * g;
|
296
|
+
return f.w(C, this);
|
261
297
|
}, r.subtract = function(e, i) {
|
262
298
|
return this.add(-1 * e, i);
|
263
299
|
}, r.format = function(e) {
|
264
300
|
var i = this, t = this.$locale();
|
265
|
-
if (!this.isValid())
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
301
|
+
if (!this.isValid())
|
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($, x, V, J) {
|
304
|
+
return $ && ($[x] || $(i, s)) || V[x].slice(0, J);
|
305
|
+
}, A = function($) {
|
306
|
+
return f.s(p % 12 || 12, $, "0");
|
307
|
+
}, R = P || function($, x, V) {
|
308
|
+
var J = $ < 12 ? "AM" : "PM";
|
272
309
|
return V ? J.toLowerCase() : J;
|
273
310
|
};
|
274
|
-
return s.replace(I, function(
|
311
|
+
return s.replace(I, function($, x) {
|
275
312
|
return x || function(V) {
|
276
313
|
switch (V) {
|
277
314
|
case "YY":
|
278
315
|
return String(i.$y).slice(-2);
|
279
316
|
case "YYYY":
|
280
|
-
return
|
317
|
+
return f.s(i.$y, 4, "0");
|
281
318
|
case "M":
|
282
|
-
return
|
319
|
+
return C + 1;
|
283
320
|
case "MM":
|
284
|
-
return
|
321
|
+
return f.s(C + 1, 2, "0");
|
285
322
|
case "MMM":
|
286
|
-
return _(t.monthsShort,
|
323
|
+
return _(t.monthsShort, C, W, 3);
|
287
324
|
case "MMMM":
|
288
|
-
return _(W,
|
325
|
+
return _(W, C);
|
289
326
|
case "D":
|
290
327
|
return i.$D;
|
291
328
|
case "DD":
|
292
|
-
return
|
329
|
+
return f.s(i.$D, 2, "0");
|
293
330
|
case "d":
|
294
331
|
return String(i.$W);
|
295
332
|
case "dd":
|
296
|
-
return _(t.weekdaysMin, i.$W,
|
333
|
+
return _(t.weekdaysMin, i.$W, S, 2);
|
297
334
|
case "ddd":
|
298
|
-
return _(t.weekdaysShort, i.$W,
|
335
|
+
return _(t.weekdaysShort, i.$W, S, 3);
|
299
336
|
case "dddd":
|
300
|
-
return
|
337
|
+
return S[i.$W];
|
301
338
|
case "H":
|
302
|
-
return String(
|
339
|
+
return String(p);
|
303
340
|
case "HH":
|
304
|
-
return
|
341
|
+
return f.s(p, 2, "0");
|
305
342
|
case "h":
|
306
|
-
return
|
343
|
+
return A(1);
|
307
344
|
case "hh":
|
308
|
-
return
|
345
|
+
return A(2);
|
309
346
|
case "a":
|
310
|
-
return R(
|
347
|
+
return R(p, g, !0);
|
311
348
|
case "A":
|
312
|
-
return R(
|
349
|
+
return R(p, g, !1);
|
313
350
|
case "m":
|
314
|
-
return String(
|
351
|
+
return String(g);
|
315
352
|
case "mm":
|
316
|
-
return
|
353
|
+
return f.s(g, 2, "0");
|
317
354
|
case "s":
|
318
355
|
return String(i.$s);
|
319
356
|
case "ss":
|
320
|
-
return
|
357
|
+
return f.s(i.$s, 2, "0");
|
321
358
|
case "SSS":
|
322
|
-
return
|
359
|
+
return f.s(i.$ms, 3, "0");
|
323
360
|
case "Z":
|
324
361
|
return d;
|
325
362
|
}
|
326
363
|
return null;
|
327
|
-
}(
|
364
|
+
}($) || d.replace(":", "");
|
328
365
|
});
|
329
366
|
}, r.utcOffset = function() {
|
330
367
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
331
368
|
}, r.diff = function(e, i, t) {
|
332
|
-
var s, d = this,
|
333
|
-
return
|
369
|
+
var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) * l, S = this - g, W = function() {
|
370
|
+
return f.m(d, g);
|
334
371
|
};
|
335
|
-
switch (
|
372
|
+
switch (p) {
|
336
373
|
case k:
|
337
374
|
s = W() / 12;
|
338
375
|
break;
|
@@ -343,34 +380,35 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
343
380
|
s = W() / 3;
|
344
381
|
break;
|
345
382
|
case q:
|
346
|
-
s = (
|
383
|
+
s = (S - C) / 6048e5;
|
347
384
|
break;
|
348
385
|
case T:
|
349
|
-
s = (
|
386
|
+
s = (S - C) / 864e5;
|
350
387
|
break;
|
351
388
|
case c:
|
352
|
-
s =
|
389
|
+
s = S / m;
|
353
390
|
break;
|
354
391
|
case y:
|
355
|
-
s =
|
392
|
+
s = S / l;
|
356
393
|
break;
|
357
|
-
case
|
358
|
-
s =
|
394
|
+
case v:
|
395
|
+
s = S / u;
|
359
396
|
break;
|
360
397
|
default:
|
361
|
-
s =
|
398
|
+
s = S;
|
362
399
|
}
|
363
|
-
return t ? s :
|
400
|
+
return t ? s : f.a(s);
|
364
401
|
}, r.daysInMonth = function() {
|
365
402
|
return this.endOf(b).$D;
|
366
403
|
}, r.$locale = function() {
|
367
404
|
return z[this.$L];
|
368
405
|
}, r.locale = function(e, i) {
|
369
|
-
if (!e)
|
406
|
+
if (!e)
|
407
|
+
return this.$L;
|
370
408
|
var t = this.clone(), s = j(e, i, !0);
|
371
409
|
return s && (t.$L = s), t;
|
372
410
|
}, r.clone = function() {
|
373
|
-
return
|
411
|
+
return f.w(this.$d, this);
|
374
412
|
}, r.toDate = function() {
|
375
413
|
return new Date(this.valueOf());
|
376
414
|
}, r.toJSON = function() {
|
@@ -381,29 +419,29 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
381
419
|
return this.$d.toUTCString();
|
382
420
|
}, a;
|
383
421
|
}(), Q = Z.prototype;
|
384
|
-
return w.prototype = Q, [["$ms", L], ["$s",
|
422
|
+
return w.prototype = Q, [["$ms", L], ["$s", v], ["$m", y], ["$H", c], ["$W", T], ["$M", b], ["$y", k], ["$D", E]].forEach(function(a) {
|
385
423
|
Q[a[1]] = function(r) {
|
386
424
|
return this.$g(r, a[0], a[1]);
|
387
425
|
};
|
388
426
|
}), w.extend = function(a, r) {
|
389
427
|
return a.$i || (a(r, Z, w), a.$i = !0), w;
|
390
|
-
}, w.locale = j, w.isDayjs =
|
428
|
+
}, w.locale = j, w.isDayjs = B, w.unix = function(a) {
|
391
429
|
return w(1e3 * a);
|
392
|
-
}, w.en = z[
|
430
|
+
}, w.en = z[O], w.Ls = z, w.p = {}, w;
|
393
431
|
});
|
394
|
-
})(
|
395
|
-
const
|
396
|
-
var
|
397
|
-
(function(n,
|
432
|
+
})(re);
|
433
|
+
const ne = re.exports;
|
434
|
+
var ie = { exports: {} };
|
435
|
+
(function(n, h) {
|
398
436
|
(function(u, l) {
|
399
437
|
n.exports = l();
|
400
|
-
})(
|
401
|
-
var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g,
|
402
|
-
return function(L,
|
403
|
-
var c =
|
438
|
+
})(te, function() {
|
439
|
+
var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g, m = /([+-]|\d\d)/g;
|
440
|
+
return function(L, v, y) {
|
441
|
+
var c = v.prototype;
|
404
442
|
y.utc = function(o) {
|
405
443
|
var M = { date: o, utc: !0, args: arguments };
|
406
|
-
return new
|
444
|
+
return new v(M);
|
407
445
|
}, c.utc = function(o) {
|
408
446
|
var M = y(this.toDate(), { locale: this.$L, utc: !0 });
|
409
447
|
return o ? M.add(this.utcOffset(), u) : M;
|
@@ -419,25 +457,31 @@ var re = { exports: {} };
|
|
419
457
|
if (this.$u) {
|
420
458
|
var o = this.$d;
|
421
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();
|
422
|
-
} else
|
460
|
+
} else
|
461
|
+
q.call(this);
|
423
462
|
};
|
424
463
|
var b = c.utcOffset;
|
425
464
|
c.utcOffset = function(o, M) {
|
426
465
|
var I = this.$utils().u;
|
427
|
-
if (I(o))
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
466
|
+
if (I(o))
|
467
|
+
return this.$u ? 0 : I(this.$offset) ? b.call(this) : this.$offset;
|
468
|
+
if (typeof o == "string" && (o = function(O) {
|
469
|
+
O === void 0 && (O = "");
|
470
|
+
var z = O.match(l);
|
471
|
+
if (!z)
|
472
|
+
return null;
|
473
|
+
var Y = ("" + z[0]).match(m) || ["-", 0, 0], B = Y[0], j = 60 * +Y[1] + +Y[2];
|
474
|
+
return j === 0 ? 0 : B === "+" ? j : -j;
|
475
|
+
}(o), o === null))
|
476
|
+
return this;
|
435
477
|
var F = Math.abs(o) <= 16 ? 60 * o : o, U = this;
|
436
|
-
if (M)
|
478
|
+
if (M)
|
479
|
+
return U.$offset = F, U.$u = o === 0, U;
|
437
480
|
if (o !== 0) {
|
438
481
|
var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
439
482
|
(U = this.local().add(F + G, u)).$offset = F, U.$x.$localOffset = G;
|
440
|
-
} else
|
483
|
+
} else
|
484
|
+
U = this.utc();
|
441
485
|
return U;
|
442
486
|
};
|
443
487
|
var N = c.format;
|
@@ -458,16 +502,17 @@ var re = { exports: {} };
|
|
458
502
|
c.toDate = function(o) {
|
459
503
|
return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
|
460
504
|
};
|
461
|
-
var
|
505
|
+
var E = c.diff;
|
462
506
|
c.diff = function(o, M, I) {
|
463
|
-
if (o && this.$u === o.$u)
|
507
|
+
if (o && this.$u === o.$u)
|
508
|
+
return E.call(this, o, M, I);
|
464
509
|
var F = this.local(), U = y(o).local();
|
465
|
-
return
|
510
|
+
return E.call(F, U, M, I);
|
466
511
|
};
|
467
512
|
};
|
468
513
|
});
|
469
|
-
})(
|
470
|
-
const
|
514
|
+
})(ie);
|
515
|
+
const ge = ie.exports, ye = `:host {
|
471
516
|
font: inherit;
|
472
517
|
display: block;
|
473
518
|
height: 100%;
|
@@ -525,24 +570,12 @@ const fe = re.exports, pe = `:host {
|
|
525
570
|
margin-top: 70px;
|
526
571
|
text-align: center;
|
527
572
|
color: var(--emw--color-black, #000000);
|
528
|
-
}`,
|
529
|
-
|
530
|
-
const
|
531
|
-
},
|
573
|
+
}`, we = ye;
|
574
|
+
ne.extend(ge);
|
575
|
+
const Ce = () => {
|
576
|
+
}, ve = class {
|
532
577
|
constructor(n) {
|
533
|
-
|
534
|
-
let p = document.createElement("style");
|
535
|
-
p.innerHTML = this.clientStyling, this.stylingContainer.prepend(p);
|
536
|
-
}, this.setClientStylingURL = () => {
|
537
|
-
let p = new URL(this.clientStylingUrl), u = document.createElement("style");
|
538
|
-
fetch(p.href).then((l) => l.text()).then((l) => {
|
539
|
-
u.innerHTML = l, setTimeout(() => {
|
540
|
-
this.stylingContainer.prepend(u);
|
541
|
-
}, 1);
|
542
|
-
}).catch((l) => {
|
543
|
-
console.log("error ", l);
|
544
|
-
});
|
545
|
-
}, 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 = ge, this.limitStylingAppends = !1, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
|
578
|
+
se(this, n), this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = me(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 = Ce, this.dynamicHeight = void 0, this.cashierInfoUrl = void 0;
|
546
579
|
}
|
547
580
|
get typeParameter() {
|
548
581
|
if (this.type === "deposit")
|
@@ -553,24 +586,27 @@ const ge = () => {
|
|
553
586
|
watchLoadWidget() {
|
554
587
|
this.loadWidget();
|
555
588
|
}
|
589
|
+
handleClientStylingChange(n, h) {
|
590
|
+
n != h && K(this.stylingContainer, this.clientStyling);
|
591
|
+
}
|
592
|
+
handleClientStylingChangeURL(n, h) {
|
593
|
+
n != h && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
|
594
|
+
}
|
556
595
|
async componentWillLoad() {
|
557
596
|
if (await this.loadWidget(), this.translationUrl)
|
558
|
-
return
|
597
|
+
return fe(this.translationUrl);
|
559
598
|
}
|
560
599
|
toggleScreen(n) {
|
561
600
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: n }, window.location.href);
|
562
601
|
}
|
563
602
|
componentDidLoad() {
|
564
|
-
window.addEventListener("message", this.bindedHandler, !1);
|
603
|
+
this.stylingContainer && (window.emMessageBus != null ? pe(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && K(this.stylingContainer, this.clientStyling), this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl))), window.addEventListener("message", this.bindedHandler, !1);
|
565
604
|
}
|
566
605
|
disconnectedCallback() {
|
567
|
-
window.removeEventListener("message", this.bindedHandler, !1);
|
568
|
-
}
|
569
|
-
componentDidRender() {
|
570
|
-
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.limitStylingAppends = !0);
|
606
|
+
window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
571
607
|
}
|
572
608
|
render() {
|
573
|
-
return D(
|
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: "44a47893b6b2ce83e45f69e8997aa6e450968941", class: `DepositWithdrawalWrapper ${this.isShortCashier ? "ShortCashier" : ""}`, style: { height: this.dynamicHeight, marginTop: this.isShortCashier ? "30px" : "0" } }, D("div", { key: "949862539b439d5f2375a08115a7389bf355dd2c" }, 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)))));
|
574
610
|
}
|
575
611
|
async loadWidget() {
|
576
612
|
const n = {
|
@@ -586,42 +622,42 @@ const ge = () => {
|
|
586
622
|
showBonusSelectionInput: this.showBonusSelectionInput
|
587
623
|
};
|
588
624
|
try {
|
589
|
-
const
|
625
|
+
const h = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, u = await fetch(h, {
|
590
626
|
method: "POST",
|
591
627
|
headers: {
|
592
628
|
"X-Sessionid": this.session,
|
593
629
|
"Content-Type": "application/json",
|
594
|
-
"X-Client-Request-Timestamp":
|
630
|
+
"X-Client-Request-Timestamp": ne.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
|
595
631
|
},
|
596
632
|
body: JSON.stringify(n)
|
597
633
|
});
|
598
634
|
if (!u.ok) {
|
599
|
-
const
|
600
|
-
throw new Error(
|
635
|
+
const m = await u.text();
|
636
|
+
throw new Error(m);
|
601
637
|
}
|
602
638
|
const l = await u.json();
|
603
639
|
if (l.CashierInfo)
|
604
640
|
this.cashierInfoUrl = l.CashierInfo.Url;
|
605
641
|
else {
|
606
|
-
let
|
642
|
+
let m;
|
607
643
|
if (l.ResponseMessage) {
|
608
|
-
let
|
609
|
-
|
644
|
+
let v = this.errorCodes.find((y) => l.ResponseMessage.includes(y)) || null;
|
645
|
+
v ? m = H(`errorCode${v}`, this.language) : m = H("notFoundErrorCode", this.language);
|
610
646
|
} else
|
611
|
-
|
612
|
-
const L = { type: "error", message:
|
647
|
+
m = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
|
648
|
+
const L = { type: "error", message: m };
|
613
649
|
window.postMessage({ type: "DenyDepositOrWithdrawal", data: L }, window.location.href);
|
614
650
|
}
|
615
|
-
} catch (
|
616
|
-
console.error(
|
651
|
+
} catch (h) {
|
652
|
+
console.error(h);
|
617
653
|
}
|
618
654
|
}
|
619
655
|
handleMessage(n) {
|
620
|
-
var
|
621
|
-
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.isShortCashier && (this.dynamicHeight = n.data["MMFE:setIFrameHeight"].toString() + "px"), ((
|
656
|
+
var h, u, l, m, L, v, y, c;
|
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.isShortCashier && (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), ((l = n.data) === null || l === void 0 ? void 0 : l.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" || ((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));
|
622
658
|
}
|
623
|
-
doRedirect(n,
|
624
|
-
const u = { reason: n, url:
|
659
|
+
doRedirect(n, h) {
|
660
|
+
const u = { reason: n, url: h, cancel: !1 };
|
625
661
|
if (this.beforeRedirect(u), !u.cancel) {
|
626
662
|
if (!u.url) {
|
627
663
|
window.location.href = "/";
|
@@ -636,11 +672,13 @@ const ge = () => {
|
|
636
672
|
userId: ["watchLoadWidget"],
|
637
673
|
isShortCashier: ["watchLoadWidget"],
|
638
674
|
currency: ["watchLoadWidget"],
|
639
|
-
showBonusSelectionInput: ["watchLoadWidget"]
|
675
|
+
showBonusSelectionInput: ["watchLoadWidget"],
|
676
|
+
clientStyling: ["handleClientStylingChange"],
|
677
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
640
678
|
};
|
641
679
|
}
|
642
680
|
};
|
643
|
-
|
681
|
+
ve.style = we;
|
644
682
|
export {
|
645
|
-
|
683
|
+
ve as user_deposit_withdrawal
|
646
684
|
};
|