@everymatrix/casino-header-controller 1.55.0 → 1.56.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-JVY4ac8I.js → CasinoHamburgerMenu-B2TeHkyB.js} +800 -822
- package/components/{CasinoHamburgerMenu-E4O8Dx5o.js → CasinoHamburgerMenu-CUR5gaxv.js} +648 -670
- package/components/CasinoHamburgerMenu-DYL1HIps.cjs +8 -0
- package/components/CasinoHeaderController-CfLLPnem.cjs +13 -0
- package/components/{CasinoHeaderController-9s-CNvhj.js → CasinoHeaderController-CrEqMU6h.js} +561 -527
- package/components/{CasinoHeaderController-BVCLQUCq.js → CasinoHeaderController-Cv1RNj2L.js} +619 -585
- package/components/CasinoSlider-BU9fkHDu.cjs +1 -0
- package/components/{CasinoSlider-yMz4R8ed.js → CasinoSlider-CS-q7BSV.js} +101 -101
- package/components/{CasinoSlider-xu8jCpW1.js → CasinoSlider-DrD2osTb.js} +98 -98
- package/components/PlayerAccountBalanceModal--zdJlg4L.js +1507 -0
- package/components/PlayerAccountBalanceModal-C31JpnHA.cjs +13 -0
- package/components/PlayerAccountBalanceModal-aiqQaHCF.js +1536 -0
- package/components/{PlayerDeposit-CIarW5H1.js → PlayerDeposit-BlD-xNdY.js} +93 -93
- package/components/{PlayerDeposit-D9xpcJp9.js → PlayerDeposit-DwGrlu-U.js} +93 -93
- package/components/PlayerDeposit-DzkmDtD0.cjs +1 -0
- 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-c7e52808-DGZdfQYz.cjs +1 -0
- package/stencil/index-c7e52808-RGphQbEA.js +638 -0
- package/stencil/index-c7e52808-yJXIboHF.js +654 -0
- package/stencil/{user-deposit-withdrawal-gu9RDhoH.js → user-deposit-withdrawal-1SJnPWvi.js} +268 -251
- package/stencil/{user-deposit-withdrawal-Dg3a3KkR.js → user-deposit-withdrawal-BiZKbrT_.js} +194 -177
- package/stencil/user-deposit-withdrawal-CzeoKH00.cjs +59 -0
- package/components/CasinoHamburgerMenu-C8-P7sF9.cjs +0 -8
- package/components/CasinoHeaderController-BZk18wxU.cjs +0 -13
- package/components/CasinoSlider-DDycojG8.cjs +0 -1
- package/components/PlayerAccountBalanceModal-BVQlpIy4.cjs +0 -13
- package/components/PlayerAccountBalanceModal-CcASksA3.js +0 -1507
- package/components/PlayerAccountBalanceModal-DG6GgVDp.js +0 -1536
- package/components/PlayerDeposit-C8ZPqrpV.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-c7e52808-RGphQbEA.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,31 +105,55 @@ 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
|
+
} }, W = function(a, r, e) {
|
128
152
|
var i = String(a);
|
129
153
|
return !i || i.length >= r ? a : "" + Array(r + 1 - i.length).join(e) + a;
|
130
|
-
}, G = { s:
|
154
|
+
}, G = { s: W, z: function(a) {
|
131
155
|
var r = -a.utcOffset(), e = Math.abs(r), i = Math.floor(e / 60), t = e % 60;
|
132
|
-
return (r <= 0 ? "+" : "-") +
|
156
|
+
return (r <= 0 ? "+" : "-") + W(i, 2, "0") + ":" + W(t, 2, "0");
|
133
157
|
}, m: function a(r, e) {
|
134
158
|
if (r.date() < e.date()) return -a(e, r);
|
135
159
|
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);
|
@@ -137,32 +161,32 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
137
161
|
}, a: function(a) {
|
138
162
|
return a < 0 ? Math.ceil(a) || 0 : Math.floor(a);
|
139
163
|
}, p: function(a) {
|
140
|
-
return { M: b, y: k, w: q, d: T, D:
|
164
|
+
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
165
|
}, u: function(a) {
|
142
166
|
return a === void 0;
|
143
|
-
} },
|
144
|
-
z[
|
145
|
-
var Y = "$isDayjsObject",
|
167
|
+
} }, O = "en", z = {};
|
168
|
+
z[O] = F;
|
169
|
+
var Y = "$isDayjsObject", B = function(a) {
|
146
170
|
return a instanceof Z || !(!a || !a[Y]);
|
147
171
|
}, j = function a(r, e, i) {
|
148
172
|
var t;
|
149
|
-
if (!r) return
|
173
|
+
if (!r) return O;
|
150
174
|
if (typeof r == "string") {
|
151
175
|
var s = r.toLowerCase();
|
152
176
|
z[s] && (t = s), e && (z[s] = e, t = s);
|
153
177
|
var d = r.split("-");
|
154
178
|
if (!t && d.length > 1) return a(d[0]);
|
155
179
|
} else {
|
156
|
-
var
|
157
|
-
z[
|
180
|
+
var p = r.name;
|
181
|
+
z[p] = r, t = p;
|
158
182
|
}
|
159
|
-
return !i && t && (
|
183
|
+
return !i && t && (O = t), t || !i && O;
|
160
184
|
}, w = function(a, r) {
|
161
|
-
if (
|
185
|
+
if (B(a)) return a.clone();
|
162
186
|
var e = typeof r == "object" ? r : {};
|
163
187
|
return e.date = a, e.args = arguments, new Z(e);
|
164
|
-
},
|
165
|
-
|
188
|
+
}, f = G;
|
189
|
+
f.l = j, f.i = B, f.w = function(a, r) {
|
166
190
|
return w(a, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
|
167
191
|
};
|
168
192
|
var Z = function() {
|
@@ -174,13 +198,13 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
174
198
|
this.$d = function(i) {
|
175
199
|
var t = i.date, s = i.utc;
|
176
200
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
177
|
-
if (
|
201
|
+
if (f.u(t)) return /* @__PURE__ */ new Date();
|
178
202
|
if (t instanceof Date) return new Date(t);
|
179
203
|
if (typeof t == "string" && !/Z$/i.test(t)) {
|
180
204
|
var d = t.match(M);
|
181
205
|
if (d) {
|
182
|
-
var
|
183
|
-
return s ? new Date(Date.UTC(d[1],
|
206
|
+
var p = d[2] - 1 || 0, g = (d[7] || "0").substring(0, 3);
|
207
|
+
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
208
|
}
|
185
209
|
}
|
186
210
|
return new Date(t);
|
@@ -189,7 +213,7 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
189
213
|
var e = this.$d;
|
190
214
|
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
215
|
}, r.$utils = function() {
|
192
|
-
return
|
216
|
+
return f;
|
193
217
|
}, r.isValid = function() {
|
194
218
|
return this.$d.toString() !== o;
|
195
219
|
}, r.isSame = function(e, i) {
|
@@ -200,167 +224,167 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
200
224
|
}, r.isBefore = function(e, i) {
|
201
225
|
return this.endOf(i) < w(e);
|
202
226
|
}, r.$g = function(e, i, t) {
|
203
|
-
return
|
227
|
+
return f.u(e) ? this[i] : this.set(t, e);
|
204
228
|
}, r.unix = function() {
|
205
229
|
return Math.floor(this.valueOf() / 1e3);
|
206
230
|
}, r.valueOf = function() {
|
207
231
|
return this.$d.getTime();
|
208
232
|
}, r.startOf = function(e, i) {
|
209
|
-
var t = this, s = !!
|
210
|
-
var x =
|
233
|
+
var t = this, s = !!f.u(i) || i, d = f.p(e), p = function(R, $) {
|
234
|
+
var x = f.w(t.$u ? Date.UTC(t.$y, $, R) : new Date(t.$y, $, R), t);
|
211
235
|
return s ? x : x.endOf(T);
|
212
|
-
},
|
213
|
-
return
|
214
|
-
},
|
236
|
+
}, g = function(R, $) {
|
237
|
+
return f.w(t.toDate()[R].apply(t.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), t);
|
238
|
+
}, C = this.$W, S = this.$M, U = this.$D, P = "set" + (this.$u ? "UTC" : "");
|
215
239
|
switch (d) {
|
216
240
|
case k:
|
217
|
-
return s ?
|
241
|
+
return s ? p(1, 0) : p(31, 11);
|
218
242
|
case b:
|
219
|
-
return s ?
|
243
|
+
return s ? p(1, S) : p(0, S + 1);
|
220
244
|
case q:
|
221
|
-
var _ = this.$locale().weekStart || 0,
|
222
|
-
return
|
245
|
+
var _ = this.$locale().weekStart || 0, A = (C < _ ? C + 7 : C) - _;
|
246
|
+
return p(s ? U - A : U + (6 - A), S);
|
223
247
|
case T:
|
224
|
-
case
|
225
|
-
return
|
248
|
+
case E:
|
249
|
+
return g(P + "Hours", 0);
|
226
250
|
case c:
|
227
|
-
return
|
251
|
+
return g(P + "Minutes", 1);
|
228
252
|
case y:
|
229
|
-
return
|
230
|
-
case
|
231
|
-
return
|
253
|
+
return g(P + "Seconds", 2);
|
254
|
+
case v:
|
255
|
+
return g(P + "Milliseconds", 3);
|
232
256
|
default:
|
233
257
|
return this.clone();
|
234
258
|
}
|
235
259
|
}, r.endOf = function(e) {
|
236
260
|
return this.startOf(e, !1);
|
237
261
|
}, r.$set = function(e, i) {
|
238
|
-
var t, s =
|
262
|
+
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
263
|
if (s === b || s === k) {
|
240
|
-
var
|
241
|
-
|
242
|
-
} else
|
264
|
+
var C = this.clone().set(E, 1);
|
265
|
+
C.$d[p](g), C.init(), this.$d = C.set(E, Math.min(this.$D, C.daysInMonth())).$d;
|
266
|
+
} else p && this.$d[p](g);
|
243
267
|
return this.init(), this;
|
244
268
|
}, r.set = function(e, i) {
|
245
269
|
return this.clone().$set(e, i);
|
246
270
|
}, r.get = function(e) {
|
247
|
-
return this[
|
271
|
+
return this[f.p(e)]();
|
248
272
|
}, r.add = function(e, i) {
|
249
273
|
var t, s = this;
|
250
274
|
e = Number(e);
|
251
|
-
var d =
|
252
|
-
var
|
253
|
-
return
|
275
|
+
var d = f.p(i), p = function(S) {
|
276
|
+
var U = w(s);
|
277
|
+
return f.w(U.date(U.date() + Math.round(S * e)), s);
|
254
278
|
};
|
255
279
|
if (d === b) return this.set(b, this.$M + e);
|
256
280
|
if (d === k) return this.set(k, this.$y + e);
|
257
|
-
if (d === T) return
|
258
|
-
if (d === q) return
|
259
|
-
var
|
260
|
-
return
|
281
|
+
if (d === T) return p(1);
|
282
|
+
if (d === q) return p(7);
|
283
|
+
var g = (t = {}, t[y] = l, t[c] = m, t[v] = u, t)[d] || 1, C = this.$d.getTime() + e * g;
|
284
|
+
return f.w(C, this);
|
261
285
|
}, r.subtract = function(e, i) {
|
262
286
|
return this.add(-1 * e, i);
|
263
287
|
}, r.format = function(e) {
|
264
288
|
var i = this, t = this.$locale();
|
265
289
|
if (!this.isValid()) return t.invalidDate || o;
|
266
|
-
var s = e || "YYYY-MM-DDTHH:mm:ssZ", d =
|
267
|
-
return
|
268
|
-
},
|
269
|
-
return
|
270
|
-
}, R = P || function(
|
271
|
-
var J =
|
290
|
+
var s = e || "YYYY-MM-DDTHH:mm:ssZ", d = f.z(this), p = this.$H, g = this.$m, C = this.$M, S = t.weekdays, U = t.months, P = t.meridiem, _ = function($, x, V, J) {
|
291
|
+
return $ && ($[x] || $(i, s)) || V[x].slice(0, J);
|
292
|
+
}, A = function($) {
|
293
|
+
return f.s(p % 12 || 12, $, "0");
|
294
|
+
}, R = P || function($, x, V) {
|
295
|
+
var J = $ < 12 ? "AM" : "PM";
|
272
296
|
return V ? J.toLowerCase() : J;
|
273
297
|
};
|
274
|
-
return s.replace(I, function(
|
298
|
+
return s.replace(I, function($, x) {
|
275
299
|
return x || function(V) {
|
276
300
|
switch (V) {
|
277
301
|
case "YY":
|
278
302
|
return String(i.$y).slice(-2);
|
279
303
|
case "YYYY":
|
280
|
-
return
|
304
|
+
return f.s(i.$y, 4, "0");
|
281
305
|
case "M":
|
282
|
-
return
|
306
|
+
return C + 1;
|
283
307
|
case "MM":
|
284
|
-
return
|
308
|
+
return f.s(C + 1, 2, "0");
|
285
309
|
case "MMM":
|
286
|
-
return _(t.monthsShort,
|
310
|
+
return _(t.monthsShort, C, U, 3);
|
287
311
|
case "MMMM":
|
288
|
-
return _(
|
312
|
+
return _(U, C);
|
289
313
|
case "D":
|
290
314
|
return i.$D;
|
291
315
|
case "DD":
|
292
|
-
return
|
316
|
+
return f.s(i.$D, 2, "0");
|
293
317
|
case "d":
|
294
318
|
return String(i.$W);
|
295
319
|
case "dd":
|
296
|
-
return _(t.weekdaysMin, i.$W,
|
320
|
+
return _(t.weekdaysMin, i.$W, S, 2);
|
297
321
|
case "ddd":
|
298
|
-
return _(t.weekdaysShort, i.$W,
|
322
|
+
return _(t.weekdaysShort, i.$W, S, 3);
|
299
323
|
case "dddd":
|
300
|
-
return
|
324
|
+
return S[i.$W];
|
301
325
|
case "H":
|
302
|
-
return String(
|
326
|
+
return String(p);
|
303
327
|
case "HH":
|
304
|
-
return
|
328
|
+
return f.s(p, 2, "0");
|
305
329
|
case "h":
|
306
|
-
return
|
330
|
+
return A(1);
|
307
331
|
case "hh":
|
308
|
-
return
|
332
|
+
return A(2);
|
309
333
|
case "a":
|
310
|
-
return R(
|
334
|
+
return R(p, g, !0);
|
311
335
|
case "A":
|
312
|
-
return R(
|
336
|
+
return R(p, g, !1);
|
313
337
|
case "m":
|
314
|
-
return String(
|
338
|
+
return String(g);
|
315
339
|
case "mm":
|
316
|
-
return
|
340
|
+
return f.s(g, 2, "0");
|
317
341
|
case "s":
|
318
342
|
return String(i.$s);
|
319
343
|
case "ss":
|
320
|
-
return
|
344
|
+
return f.s(i.$s, 2, "0");
|
321
345
|
case "SSS":
|
322
|
-
return
|
346
|
+
return f.s(i.$ms, 3, "0");
|
323
347
|
case "Z":
|
324
348
|
return d;
|
325
349
|
}
|
326
350
|
return null;
|
327
|
-
}(
|
351
|
+
}($) || d.replace(":", "");
|
328
352
|
});
|
329
353
|
}, r.utcOffset = function() {
|
330
354
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
331
355
|
}, r.diff = function(e, i, t) {
|
332
|
-
var s, d = this,
|
333
|
-
return
|
356
|
+
var s, d = this, p = f.p(i), g = w(e), C = (g.utcOffset() - this.utcOffset()) * l, S = this - g, U = function() {
|
357
|
+
return f.m(d, g);
|
334
358
|
};
|
335
|
-
switch (
|
359
|
+
switch (p) {
|
336
360
|
case k:
|
337
|
-
s =
|
361
|
+
s = U() / 12;
|
338
362
|
break;
|
339
363
|
case b:
|
340
|
-
s =
|
364
|
+
s = U();
|
341
365
|
break;
|
342
366
|
case N:
|
343
|
-
s =
|
367
|
+
s = U() / 3;
|
344
368
|
break;
|
345
369
|
case q:
|
346
|
-
s = (
|
370
|
+
s = (S - C) / 6048e5;
|
347
371
|
break;
|
348
372
|
case T:
|
349
|
-
s = (
|
373
|
+
s = (S - C) / 864e5;
|
350
374
|
break;
|
351
375
|
case c:
|
352
|
-
s =
|
376
|
+
s = S / m;
|
353
377
|
break;
|
354
378
|
case y:
|
355
|
-
s =
|
379
|
+
s = S / l;
|
356
380
|
break;
|
357
|
-
case
|
358
|
-
s =
|
381
|
+
case v:
|
382
|
+
s = S / u;
|
359
383
|
break;
|
360
384
|
default:
|
361
|
-
s =
|
385
|
+
s = S;
|
362
386
|
}
|
363
|
-
return t ? s :
|
387
|
+
return t ? s : f.a(s);
|
364
388
|
}, r.daysInMonth = function() {
|
365
389
|
return this.endOf(b).$D;
|
366
390
|
}, r.$locale = function() {
|
@@ -370,7 +394,7 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
370
394
|
var t = this.clone(), s = j(e, i, !0);
|
371
395
|
return s && (t.$L = s), t;
|
372
396
|
}, r.clone = function() {
|
373
|
-
return
|
397
|
+
return f.w(this.$d, this);
|
374
398
|
}, r.toDate = function() {
|
375
399
|
return new Date(this.valueOf());
|
376
400
|
}, r.toJSON = function() {
|
@@ -381,29 +405,29 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
381
405
|
return this.$d.toUTCString();
|
382
406
|
}, a;
|
383
407
|
}(), Q = Z.prototype;
|
384
|
-
return w.prototype = Q, [["$ms", L], ["$s",
|
408
|
+
return w.prototype = Q, [["$ms", L], ["$s", v], ["$m", y], ["$H", c], ["$W", T], ["$M", b], ["$y", k], ["$D", E]].forEach(function(a) {
|
385
409
|
Q[a[1]] = function(r) {
|
386
410
|
return this.$g(r, a[0], a[1]);
|
387
411
|
};
|
388
412
|
}), w.extend = function(a, r) {
|
389
413
|
return a.$i || (a(r, Z, w), a.$i = !0), w;
|
390
|
-
}, w.locale = j, w.isDayjs =
|
414
|
+
}, w.locale = j, w.isDayjs = B, w.unix = function(a) {
|
391
415
|
return w(1e3 * a);
|
392
|
-
}, w.en = z[
|
416
|
+
}, w.en = z[O], w.Ls = z, w.p = {}, w;
|
393
417
|
});
|
394
|
-
})(
|
395
|
-
const
|
396
|
-
var
|
397
|
-
(function(n,
|
418
|
+
})(re);
|
419
|
+
const ne = re.exports;
|
420
|
+
var ie = { exports: {} };
|
421
|
+
(function(n, h) {
|
398
422
|
(function(u, l) {
|
399
423
|
n.exports = l();
|
400
|
-
})(
|
401
|
-
var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g,
|
402
|
-
return function(L,
|
403
|
-
var c =
|
424
|
+
})(te, function() {
|
425
|
+
var u = "minute", l = /[+-]\d\d(?::?\d\d)?/g, m = /([+-]|\d\d)/g;
|
426
|
+
return function(L, v, y) {
|
427
|
+
var c = v.prototype;
|
404
428
|
y.utc = function(o) {
|
405
429
|
var M = { date: o, utc: !0, args: arguments };
|
406
|
-
return new
|
430
|
+
return new v(M);
|
407
431
|
}, c.utc = function(o) {
|
408
432
|
var M = y(this.toDate(), { locale: this.$L, utc: !0 });
|
409
433
|
return o ? M.add(this.utcOffset(), u) : M;
|
@@ -425,20 +449,20 @@ var re = { exports: {} };
|
|
425
449
|
c.utcOffset = function(o, M) {
|
426
450
|
var I = this.$utils().u;
|
427
451
|
if (I(o)) return this.$u ? 0 : I(this.$offset) ? b.call(this) : this.$offset;
|
428
|
-
if (typeof o == "string" && (o = function(
|
429
|
-
|
430
|
-
var z =
|
452
|
+
if (typeof o == "string" && (o = function(O) {
|
453
|
+
O === void 0 && (O = "");
|
454
|
+
var z = O.match(l);
|
431
455
|
if (!z) return null;
|
432
|
-
var Y = ("" + z[0]).match(
|
433
|
-
return j === 0 ? 0 :
|
456
|
+
var Y = ("" + z[0]).match(m) || ["-", 0, 0], B = Y[0], j = 60 * +Y[1] + +Y[2];
|
457
|
+
return j === 0 ? 0 : B === "+" ? j : -j;
|
434
458
|
}(o), o === null)) return this;
|
435
|
-
var F = Math.abs(o) <= 16 ? 60 * o : o,
|
436
|
-
if (M) return
|
459
|
+
var F = Math.abs(o) <= 16 ? 60 * o : o, W = this;
|
460
|
+
if (M) return W.$offset = F, W.$u = o === 0, W;
|
437
461
|
if (o !== 0) {
|
438
462
|
var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
439
|
-
(
|
440
|
-
} else
|
441
|
-
return
|
463
|
+
(W = this.local().add(F + G, u)).$offset = F, W.$x.$localOffset = G;
|
464
|
+
} else W = this.utc();
|
465
|
+
return W;
|
442
466
|
};
|
443
467
|
var N = c.format;
|
444
468
|
c.format = function(o) {
|
@@ -458,16 +482,16 @@ var re = { exports: {} };
|
|
458
482
|
c.toDate = function(o) {
|
459
483
|
return o === "s" && this.$offset ? y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
|
460
484
|
};
|
461
|
-
var
|
485
|
+
var E = c.diff;
|
462
486
|
c.diff = function(o, M, I) {
|
463
|
-
if (o && this.$u === o.$u) return
|
464
|
-
var F = this.local(),
|
465
|
-
return
|
487
|
+
if (o && this.$u === o.$u) return E.call(this, o, M, I);
|
488
|
+
var F = this.local(), W = y(o).local();
|
489
|
+
return E.call(F, W, M, I);
|
466
490
|
};
|
467
491
|
};
|
468
492
|
});
|
469
|
-
})(
|
470
|
-
const
|
493
|
+
})(ie);
|
494
|
+
const ge = ie.exports, ye = `:host {
|
471
495
|
font: inherit;
|
472
496
|
display: block;
|
473
497
|
height: 100%;
|
@@ -525,24 +549,12 @@ const fe = re.exports, pe = `:host {
|
|
525
549
|
margin-top: 70px;
|
526
550
|
text-align: center;
|
527
551
|
color: var(--emw--color-black, #000000);
|
528
|
-
}`,
|
529
|
-
|
530
|
-
const
|
531
|
-
},
|
552
|
+
}`, we = ye;
|
553
|
+
ne.extend(ge);
|
554
|
+
const Ce = () => {
|
555
|
+
}, ve = class {
|
532
556
|
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;
|
557
|
+
se(this, n), this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.currency = "", this.showBonusSelectionInput = "true", this.isShortCashier = !1, this.beforeRedirect = Ce, this.bindedHandler = this.handleMessage.bind(this), this.userAgent = window.navigator.userAgent, this.isMobile = me(this.userAgent), this.errorCodes = ["21123", "21122"];
|
546
558
|
}
|
547
559
|
get typeParameter() {
|
548
560
|
if (this.type === "deposit")
|
@@ -553,24 +565,27 @@ const ge = () => {
|
|
553
565
|
watchLoadWidget() {
|
554
566
|
this.loadWidget();
|
555
567
|
}
|
568
|
+
handleClientStylingChange(n, h) {
|
569
|
+
n != h && K(this.stylingContainer, this.clientStyling);
|
570
|
+
}
|
571
|
+
handleClientStylingChangeURL(n, h) {
|
572
|
+
n != h && this.clientStylingUrl && X(this.stylingContainer, this.clientStylingUrl);
|
573
|
+
}
|
556
574
|
async componentWillLoad() {
|
557
575
|
if (await this.loadWidget(), this.translationUrl)
|
558
|
-
return
|
576
|
+
return fe(this.translationUrl);
|
559
577
|
}
|
560
578
|
toggleScreen(n) {
|
561
579
|
window.postMessage({ type: "PlayerAccountMenuActive", isMobile: n }, window.location.href);
|
562
580
|
}
|
563
581
|
componentDidLoad() {
|
564
|
-
window.addEventListener("message", this.bindedHandler, !1);
|
582
|
+
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
583
|
}
|
566
584
|
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);
|
585
|
+
window.removeEventListener("message", this.bindedHandler, !1), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
571
586
|
}
|
572
587
|
render() {
|
573
|
-
return D(
|
588
|
+
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
589
|
}
|
575
590
|
async loadWidget() {
|
576
591
|
const n = {
|
@@ -586,42 +601,42 @@ const ge = () => {
|
|
586
601
|
showBonusSelectionInput: this.showBonusSelectionInput
|
587
602
|
};
|
588
603
|
try {
|
589
|
-
const
|
604
|
+
const h = `${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`, u = await fetch(h, {
|
590
605
|
method: "POST",
|
591
606
|
headers: {
|
592
607
|
"X-Sessionid": this.session,
|
593
608
|
"Content-Type": "application/json",
|
594
|
-
"X-Client-Request-Timestamp":
|
609
|
+
"X-Client-Request-Timestamp": ne.utc().format("YYYY-MM-DD HH:mm:ss.SSS")
|
595
610
|
},
|
596
611
|
body: JSON.stringify(n)
|
597
612
|
});
|
598
613
|
if (!u.ok) {
|
599
|
-
const
|
600
|
-
throw new Error(
|
614
|
+
const m = await u.text();
|
615
|
+
throw new Error(m);
|
601
616
|
}
|
602
617
|
const l = await u.json();
|
603
618
|
if (l.CashierInfo)
|
604
619
|
this.cashierInfoUrl = l.CashierInfo.Url;
|
605
620
|
else {
|
606
|
-
let
|
621
|
+
let m;
|
607
622
|
if (l.ResponseMessage) {
|
608
|
-
let
|
609
|
-
|
623
|
+
let v = this.errorCodes.find((y) => l.ResponseMessage.includes(y)) || null;
|
624
|
+
v ? m = H(`errorCode${v}`, this.language) : m = H("notFoundErrorCode", this.language);
|
610
625
|
} else
|
611
|
-
|
612
|
-
const L = { type: "error", message:
|
626
|
+
m = this.type === "deposit" ? H("denyDeposit", this.language) : H("denyWithdrawal", this.language);
|
627
|
+
const L = { type: "error", message: m };
|
613
628
|
window.postMessage({ type: "DenyDepositOrWithdrawal", data: L }, window.location.href);
|
614
629
|
}
|
615
|
-
} catch (
|
616
|
-
console.error(
|
630
|
+
} catch (h) {
|
631
|
+
console.error(h);
|
617
632
|
}
|
618
633
|
}
|
619
634
|
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"), ((
|
635
|
+
var h, u, l, m, L, v, y, c;
|
636
|
+
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
637
|
}
|
623
|
-
doRedirect(n,
|
624
|
-
const u = { reason: n, url:
|
638
|
+
doRedirect(n, h) {
|
639
|
+
const u = { reason: n, url: h, cancel: !1 };
|
625
640
|
if (this.beforeRedirect(u), !u.cancel) {
|
626
641
|
if (!u.url) {
|
627
642
|
window.location.href = "/";
|
@@ -636,11 +651,13 @@ const ge = () => {
|
|
636
651
|
userId: ["watchLoadWidget"],
|
637
652
|
isShortCashier: ["watchLoadWidget"],
|
638
653
|
currency: ["watchLoadWidget"],
|
639
|
-
showBonusSelectionInput: ["watchLoadWidget"]
|
654
|
+
showBonusSelectionInput: ["watchLoadWidget"],
|
655
|
+
clientStyling: ["handleClientStylingChange"],
|
656
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
640
657
|
};
|
641
658
|
}
|
642
659
|
};
|
643
|
-
|
660
|
+
ve.style = we;
|
644
661
|
export {
|
645
|
-
|
662
|
+
ve as user_deposit_withdrawal
|
646
663
|
};
|