@everymatrix/casino-header-controller 1.64.0 → 1.64.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/{CasinoHeaderController-MXrohZuy.js → CasinoHeaderController-CgDMbsFp.js} +2 -2
- package/components/{CasinoHeaderController-B3lVN1Kg.js → CasinoHeaderController-ChY7hw5O.js} +2 -2
- package/components/{CasinoHeaderController-LZPnL7e5.cjs → CasinoHeaderController-D6EynWWO.cjs} +1 -1
- package/components/PlayerAccountBalanceModal-BFDpI9Sy.cjs +13 -0
- package/components/{PlayerAccountBalanceModal-CmkYq_94.js → PlayerAccountBalanceModal-CNXuqjqU.js} +358 -358
- package/components/{PlayerAccountBalanceModal-QRwf0e8e.js → PlayerAccountBalanceModal-DbULiu-f.js} +204 -204
- 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-BYQAUnU8.cjs → index-1ef3a64c-B-4bouZJ.cjs} +1 -1
- package/stencil/{index-1ef3a64c-CqOM_4kh.js → index-1ef3a64c-BtxU2Hq_.js} +1 -1
- package/stencil/{index-1ef3a64c-CrkQPVNf.js → index-1ef3a64c-DvzVxuPn.js} +1 -1
- package/stencil/{user-deposit-withdrawal-DRl7BqKZ.js → user-deposit-withdrawal-B7YSkiLj.js} +3 -3
- package/stencil/{user-deposit-withdrawal-BDHSNbOd.js → user-deposit-withdrawal-CBRmqyn0.js} +3 -3
- package/stencil/user-deposit-withdrawal-DtuD21KN.cjs +68 -0
- package/components/PlayerAccountBalanceModal-t1dN97NG.cjs +0 -13
- package/stencil/user-deposit-withdrawal-CbFsqTCy.cjs +0 -68
package/components/{PlayerAccountBalanceModal-QRwf0e8e.js → PlayerAccountBalanceModal-DbULiu-f.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { b as ct, $ as ut, O as dt, S as ft, i as pt, s as ht, f as W, d as mt, n as qe, e as ge, h as ye, v as R, k as I, j as se, z as U, l as gt, o as yt, w as He, p as vt, u as he, y as me, r as
|
1
|
+
import { b as ct, $ as ut, O as dt, S as ft, i as pt, s as ht, f as W, d as mt, n as qe, e as ge, h as ye, v as R, k as I, j as se, z as U, l as gt, o as yt, w as He, p as vt, u as he, y as me, r as bt, A as ze, B as rt, t as wt, J as Bt, K as Ct, L as Tt, c as St, I as _t } from "./CasinoHamburgerMenu-CTVc2-UF.js";
|
2
2
|
function Qe(r, t) {
|
3
3
|
ct(r, t);
|
4
4
|
}
|
@@ -213,7 +213,7 @@ var We = { exports: {} };
|
|
213
213
|
*/
|
214
214
|
(function(r, t) {
|
215
215
|
(function(n) {
|
216
|
-
var i = n.setTimeout, s = n.clearTimeout, l = n.XMLHttpRequest, m = n.XDomainRequest, d = n.ActiveXObject, g = n.EventSource, y = n.document, D = n.Promise,
|
216
|
+
var i = n.setTimeout, s = n.clearTimeout, l = n.XMLHttpRequest, m = n.XDomainRequest, d = n.ActiveXObject, g = n.EventSource, y = n.document, D = n.Promise, O = n.fetch, B = n.Response, C = n.TextDecoder, A = n.TextEncoder, P = n.AbortController;
|
217
217
|
if (typeof window < "u" && typeof y < "u" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(e) {
|
218
218
|
y.readyState = "complete";
|
219
219
|
}, !1)), l == null && d != null && (l = function() {
|
@@ -225,8 +225,8 @@ var We = { exports: {} };
|
|
225
225
|
}), Date.now || (Date.now = function() {
|
226
226
|
return (/* @__PURE__ */ new Date()).getTime();
|
227
227
|
}), P == null) {
|
228
|
-
var F =
|
229
|
-
|
228
|
+
var F = O;
|
229
|
+
O = function(e, o) {
|
230
230
|
var u = o.signal;
|
231
231
|
return F(e, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(a) {
|
232
232
|
var h = a.body.getReader();
|
@@ -272,31 +272,31 @@ var We = { exports: {} };
|
|
272
272
|
return 3;
|
273
273
|
throw new Error();
|
274
274
|
}
|
275
|
-
for (var a = 65533, h = "", p = this.bitsNeeded, w = this.codePoint,
|
276
|
-
var _ = e[
|
275
|
+
for (var a = 65533, h = "", p = this.bitsNeeded, w = this.codePoint, k = 0; k < e.length; k += 1) {
|
276
|
+
var _ = e[k];
|
277
277
|
p !== 0 && (_ < 128 || _ > 191 || !o(w << 6 | _ & 63, p - 6, u(p, w))) && (p = 0, w = a, h += String.fromCharCode(w)), p === 0 ? (_ >= 0 && _ <= 127 ? (p = 0, w = _) : _ >= 192 && _ <= 223 ? (p = 6 * 1, w = _ & 31) : _ >= 224 && _ <= 239 ? (p = 6 * 2, w = _ & 15) : _ >= 240 && _ <= 247 ? (p = 6 * 3, w = _ & 7) : (p = 0, w = a), p !== 0 && !o(w, p, u(p, w)) && (p = 0, w = a)) : (p -= 6, w = w << 6 | _ & 63), p === 0 && (w <= 65535 ? h += String.fromCharCode(w) : (h += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), h += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
|
278
278
|
}
|
279
279
|
return this.bitsNeeded = p, this.codePoint = w, h;
|
280
280
|
};
|
281
281
|
var $ = function() {
|
282
282
|
try {
|
283
|
-
return new
|
283
|
+
return new C().decode(new A().encode("test"), { stream: !0 }) === "test";
|
284
284
|
} catch (e) {
|
285
285
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
286
286
|
}
|
287
287
|
return !1;
|
288
288
|
};
|
289
|
-
(
|
290
|
-
var
|
289
|
+
(C == null || A == null || !$()) && (C = H);
|
290
|
+
var b = function() {
|
291
291
|
};
|
292
|
-
function
|
293
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
292
|
+
function S(e) {
|
293
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = b, this.onload = b, this.onerror = b, this.onreadystatechange = b, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = b;
|
294
294
|
}
|
295
|
-
|
295
|
+
S.prototype.open = function(e, o) {
|
296
296
|
this._abort(!0);
|
297
297
|
var u = this, a = this._xhr, h = 1, p = 0;
|
298
298
|
this._abort = function(v) {
|
299
|
-
u._sendTimeout !== 0 && (s(u._sendTimeout), u._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload =
|
299
|
+
u._sendTimeout !== 0 && (s(u._sendTimeout), u._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = b, a.onerror = b, a.onabort = b, a.onprogress = b, a.onreadystatechange = b, a.abort(), p !== 0 && (s(p), p = 0), v || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), h = 0;
|
300
300
|
};
|
301
301
|
var w = function() {
|
302
302
|
if (h === 1) {
|
@@ -311,7 +311,7 @@ var We = { exports: {} };
|
|
311
311
|
}
|
312
312
|
v !== 0 && (h = 2, u.readyState = 2, u.status = v, u.statusText = N, u._contentType = ue, u.onreadystatechange());
|
313
313
|
}
|
314
|
-
},
|
314
|
+
}, k = function() {
|
315
315
|
if (w(), h === 2 || h === 3) {
|
316
316
|
h = 3;
|
317
317
|
var v = "";
|
@@ -323,8 +323,8 @@ var We = { exports: {} };
|
|
323
323
|
}
|
324
324
|
}, _ = function(v, N) {
|
325
325
|
if ((N == null || N.preventDefault == null) && (N = {
|
326
|
-
preventDefault:
|
327
|
-
}),
|
326
|
+
preventDefault: b
|
327
|
+
}), k(), h === 1 || h === 2 || h === 3) {
|
328
328
|
if (h = 4, p !== 0 && (s(p), p = 0), u.readyState = 4, v === "load")
|
329
329
|
u.onload(N);
|
330
330
|
else if (v === "error")
|
@@ -336,11 +336,11 @@ var We = { exports: {} };
|
|
336
336
|
u.onreadystatechange();
|
337
337
|
}
|
338
338
|
}, x = function(v) {
|
339
|
-
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && _(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a ||
|
339
|
+
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && _(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || k() : a.readyState === 2 && w());
|
340
340
|
}, M = function() {
|
341
341
|
p = i(function() {
|
342
342
|
M();
|
343
|
-
}, 500), a.readyState === 3 &&
|
343
|
+
}, 500), a.readyState === 3 && k();
|
344
344
|
};
|
345
345
|
"onload" in a && (a.onload = function(v) {
|
346
346
|
_("load", v);
|
@@ -348,21 +348,21 @@ var We = { exports: {} };
|
|
348
348
|
_("error", v);
|
349
349
|
}), "onabort" in a && (a.onabort = function(v) {
|
350
350
|
_("abort", v);
|
351
|
-
}), "onprogress" in a && (a.onprogress =
|
351
|
+
}), "onprogress" in a && (a.onprogress = k), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
|
352
352
|
x(v);
|
353
353
|
}), ("contentType" in a || !("ontimeout" in l.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, o, !0), "readyState" in a && (p = i(function() {
|
354
354
|
M();
|
355
355
|
}, 0));
|
356
|
-
},
|
356
|
+
}, S.prototype.abort = function() {
|
357
357
|
this._abort(!1);
|
358
|
-
},
|
358
|
+
}, S.prototype.getResponseHeader = function(e) {
|
359
359
|
return this._contentType;
|
360
|
-
},
|
360
|
+
}, S.prototype.setRequestHeader = function(e, o) {
|
361
361
|
var u = this._xhr;
|
362
362
|
"setRequestHeader" in u && u.setRequestHeader(e, o);
|
363
|
-
},
|
363
|
+
}, S.prototype.getAllResponseHeaders = function() {
|
364
364
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
365
|
-
},
|
365
|
+
}, S.prototype.send = function() {
|
366
366
|
if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
|
367
367
|
var e = this;
|
368
368
|
e._sendTimeout = i(function() {
|
@@ -386,22 +386,22 @@ var We = { exports: {} };
|
|
386
386
|
function L(e) {
|
387
387
|
for (var o = /* @__PURE__ */ Object.create(null), u = e.split(`\r
|
388
388
|
`), a = 0; a < u.length; a += 1) {
|
389
|
-
var h = u[a], p = h.split(": "), w = p.shift(),
|
390
|
-
o[G(w)] =
|
389
|
+
var h = u[a], p = h.split(": "), w = p.shift(), k = p.join(": ");
|
390
|
+
o[G(w)] = k;
|
391
391
|
}
|
392
392
|
this._map = o;
|
393
393
|
}
|
394
394
|
L.prototype.get = function(e) {
|
395
395
|
return this._map[G(e)];
|
396
396
|
}, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
|
397
|
-
function
|
397
|
+
function ee() {
|
398
398
|
}
|
399
|
-
|
399
|
+
ee.prototype.open = function(e, o, u, a, h, p, w) {
|
400
400
|
e.open("GET", h);
|
401
|
-
var
|
401
|
+
var k = 0;
|
402
402
|
e.onprogress = function() {
|
403
|
-
var x = e.responseText, M = x.slice(
|
404
|
-
|
403
|
+
var x = e.responseText, M = x.slice(k);
|
404
|
+
k += M.length, u(M);
|
405
405
|
}, e.onerror = function(x) {
|
406
406
|
x.preventDefault(), a(new Error("NetworkError"));
|
407
407
|
}, e.onload = function() {
|
@@ -418,25 +418,25 @@ var We = { exports: {} };
|
|
418
418
|
Object.prototype.hasOwnProperty.call(w, _) && e.setRequestHeader(_, w[_]);
|
419
419
|
return e.send(), e;
|
420
420
|
};
|
421
|
-
function
|
421
|
+
function ve(e) {
|
422
422
|
this._headers = e;
|
423
423
|
}
|
424
|
-
|
424
|
+
ve.prototype.get = function(e) {
|
425
425
|
return this._headers.get(e);
|
426
426
|
};
|
427
|
-
function
|
427
|
+
function ae() {
|
428
428
|
}
|
429
|
-
|
430
|
-
var
|
431
|
-
return
|
429
|
+
ae.prototype.open = function(e, o, u, a, h, p, w) {
|
430
|
+
var k = null, _ = new P(), x = _.signal, M = new C();
|
431
|
+
return O(h, {
|
432
432
|
headers: w,
|
433
433
|
credentials: p ? "include" : "same-origin",
|
434
434
|
signal: x,
|
435
435
|
cache: "no-store"
|
436
436
|
}).then(function(v) {
|
437
|
-
return
|
437
|
+
return k = v.body.getReader(), o(v.status, v.statusText, v.headers.get("Content-Type"), new ve(v.headers)), new D(function(N, ue) {
|
438
438
|
var De = function() {
|
439
|
-
|
439
|
+
k.read().then(function(Y) {
|
440
440
|
if (Y.done)
|
441
441
|
N(void 0);
|
442
442
|
else {
|
@@ -456,7 +456,7 @@ var We = { exports: {} };
|
|
456
456
|
a(v);
|
457
457
|
}), {
|
458
458
|
abort: function() {
|
459
|
-
|
459
|
+
k?.cancel(), _.abort();
|
460
460
|
}
|
461
461
|
};
|
462
462
|
};
|
@@ -496,27 +496,27 @@ var We = { exports: {} };
|
|
496
496
|
h.length === 0 ? delete u[e] : u[e] = h;
|
497
497
|
}
|
498
498
|
};
|
499
|
-
function
|
499
|
+
function te(e) {
|
500
500
|
this.type = e, this.target = void 0;
|
501
501
|
}
|
502
502
|
function Me(e, o) {
|
503
|
-
|
503
|
+
te.call(this, e), this.data = o.data, this.lastEventId = o.lastEventId;
|
504
504
|
}
|
505
|
-
Me.prototype = Object.create(
|
505
|
+
Me.prototype = Object.create(te.prototype);
|
506
506
|
function Ce(e, o) {
|
507
|
-
|
507
|
+
te.call(this, e), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
|
508
508
|
}
|
509
|
-
Ce.prototype = Object.create(
|
509
|
+
Ce.prototype = Object.create(te.prototype);
|
510
510
|
function Fe(e, o) {
|
511
|
-
|
511
|
+
te.call(this, e), this.error = o.error;
|
512
512
|
}
|
513
|
-
Fe.prototype = Object.create(
|
514
|
-
var Ae = -1, le = 0, ce = 1,
|
513
|
+
Fe.prototype = Object.create(te.prototype);
|
514
|
+
var Ae = -1, le = 0, ce = 1, be = 2, Re = -1, ne = 0, Te = 1, Oe = 2, ke = 3, Ue = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ne = 18e6, Ee = function(e, o) {
|
515
515
|
var u = e == null ? o : parseInt(e, 10);
|
516
516
|
return u !== u && (u = o), xe(u);
|
517
517
|
}, xe = function(e) {
|
518
518
|
return Math.min(Math.max(e, Pe), Ne);
|
519
|
-
},
|
519
|
+
}, we = function(e, o, u) {
|
520
520
|
try {
|
521
521
|
typeof o == "function" && o.call(e, u);
|
522
522
|
} catch (a) {
|
@@ -524,15 +524,15 @@ var We = { exports: {} };
|
|
524
524
|
}
|
525
525
|
};
|
526
526
|
function J(e, o) {
|
527
|
-
oe.call(this), o = o || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0,
|
527
|
+
oe.call(this), o = o || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, T(this, e, o);
|
528
528
|
}
|
529
529
|
function Ge() {
|
530
530
|
return l != null && "withCredentials" in l.prototype || m == null ? new l() : new m();
|
531
531
|
}
|
532
|
-
var c =
|
533
|
-
function
|
532
|
+
var c = O != null && B != null && "body" in B.prototype;
|
533
|
+
function T(e, o, u) {
|
534
534
|
o = String(o);
|
535
|
-
var a = !!u.withCredentials, h = u.lastEventIdQueryParameterName || "lastEventId", p = xe(1e3), w = Ee(u.heartbeatTimeout, 45e3),
|
535
|
+
var a = !!u.withCredentials, h = u.lastEventIdQueryParameterName || "lastEventId", p = xe(1e3), w = Ee(u.heartbeatTimeout, 45e3), k = "", _ = p, x = !1, M = 0, v = u.headers || {}, N = u.Transport, ue = c && N == null ? void 0 : new S(N != null ? new N() : Ge()), De = N != null && typeof N != "string" ? new N() : ue == null ? new ae() : new ee(), Y = void 0, X = 0, re = Ae, Se = "", Ie = "", de = "", Ve = "", K = ne, Xe = 0, Be = 0, st = function(j, V, Q, Z) {
|
536
536
|
if (re === le)
|
537
537
|
if (j === 200 && Q != null && Ue.test(Q)) {
|
538
538
|
re = ce, x = Date.now(), _ = p, e.readyState = ce;
|
@@ -541,7 +541,7 @@ var We = { exports: {} };
|
|
541
541
|
statusText: V,
|
542
542
|
headers: Z
|
543
543
|
});
|
544
|
-
e.dispatchEvent(q),
|
544
|
+
e.dispatchEvent(q), we(e, e.onopen, q);
|
545
545
|
} else {
|
546
546
|
var z = "";
|
547
547
|
j !== 200 ? (V && (V = V.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + V + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Q == null ? "-" : Q.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
|
@@ -550,7 +550,7 @@ var We = { exports: {} };
|
|
550
550
|
statusText: V,
|
551
551
|
headers: Z
|
552
552
|
});
|
553
|
-
e.dispatchEvent(q),
|
553
|
+
e.dispatchEvent(q), we(e, e.onerror, q), console.error(z);
|
554
554
|
}
|
555
555
|
}, lt = function(j) {
|
556
556
|
if (re === ce) {
|
@@ -563,9 +563,9 @@ var We = { exports: {} };
|
|
563
563
|
for (var z = 0; z < q.length; z += 1) {
|
564
564
|
var Z = q.charCodeAt(z);
|
565
565
|
if (K === Re && Z === 10)
|
566
|
-
K =
|
567
|
-
else if (K === Re && (K =
|
568
|
-
if (K !==
|
566
|
+
K = ne;
|
567
|
+
else if (K === Re && (K = ne), Z === 13 || Z === 10) {
|
568
|
+
if (K !== ne) {
|
569
569
|
K === Te && (Be = z + 1);
|
570
570
|
var fe = q.slice(Xe, Be - 1), pe = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
|
571
571
|
fe === "data" ? (Se += `
|
@@ -573,21 +573,21 @@ var We = { exports: {} };
|
|
573
573
|
Le();
|
574
574
|
}, w)));
|
575
575
|
}
|
576
|
-
if (K ===
|
576
|
+
if (K === ne) {
|
577
577
|
if (Se !== "") {
|
578
|
-
|
578
|
+
k = Ie, de === "" && (de = "message");
|
579
579
|
var _e = new Me(de, {
|
580
580
|
data: Se.slice(1),
|
581
581
|
lastEventId: Ie
|
582
582
|
});
|
583
|
-
if (e.dispatchEvent(_e), de === "open" ?
|
583
|
+
if (e.dispatchEvent(_e), de === "open" ? we(e, e.onopen, _e) : de === "message" ? we(e, e.onmessage, _e) : de === "error" && we(e, e.onerror, _e), re === be)
|
584
584
|
return;
|
585
585
|
}
|
586
586
|
Se = "", de = "";
|
587
587
|
}
|
588
|
-
K = Z === 13 ? Re :
|
588
|
+
K = Z === 13 ? Re : ne;
|
589
589
|
} else
|
590
|
-
K ===
|
590
|
+
K === ne && (Xe = z, K = Te), K === Te ? Z === 58 && (Be = z + 1, K = Oe) : K === Oe && (K = ke);
|
591
591
|
}
|
592
592
|
}
|
593
593
|
}, Ye = function(j) {
|
@@ -596,10 +596,10 @@ var We = { exports: {} };
|
|
596
596
|
Le();
|
597
597
|
}, _), _ = xe(Math.min(p * 16, _ * 2)), e.readyState = le;
|
598
598
|
var V = new Fe("error", { error: j });
|
599
|
-
e.dispatchEvent(V),
|
599
|
+
e.dispatchEvent(V), we(e, e.onerror, V), j != null && console.error(j);
|
600
600
|
}
|
601
601
|
}, Ke = function() {
|
602
|
-
re =
|
602
|
+
re = be, Y != null && (Y.abort(), Y = void 0), X !== 0 && (s(X), X = 0), e.readyState = be;
|
603
603
|
}, Le = function() {
|
604
604
|
if (X = 0, re !== Ae) {
|
605
605
|
if (!x && Y != null)
|
@@ -614,13 +614,13 @@ var We = { exports: {} };
|
|
614
614
|
}
|
615
615
|
x = !1, M = 0, X = i(function() {
|
616
616
|
Le();
|
617
|
-
}, w), re = le, Se = "", de = "", Ie =
|
617
|
+
}, w), re = le, Se = "", de = "", Ie = k, Ve = "", Xe = 0, Be = 0, K = ne;
|
618
618
|
var V = o;
|
619
|
-
if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" &&
|
619
|
+
if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && k !== "") {
|
620
620
|
var Q = o.indexOf("?");
|
621
621
|
V = Q === -1 ? o : o.slice(0, Q + 1) + o.slice(Q + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(pe, _e) {
|
622
622
|
return _e === h ? "" : pe;
|
623
|
-
}), V += (o.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(
|
623
|
+
}), V += (o.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(k);
|
624
624
|
}
|
625
625
|
var Z = e.withCredentials, q = {};
|
626
626
|
q.Accept = "text/event-stream";
|
@@ -636,9 +636,9 @@ var We = { exports: {} };
|
|
636
636
|
};
|
637
637
|
e.url = o, e.readyState = le, e.withCredentials = a, e.headers = v, e._close = Ke, Le();
|
638
638
|
}
|
639
|
-
J.prototype = Object.create(oe.prototype), J.prototype.CONNECTING = le, J.prototype.OPEN = ce, J.prototype.CLOSED =
|
639
|
+
J.prototype = Object.create(oe.prototype), J.prototype.CONNECTING = le, J.prototype.OPEN = ce, J.prototype.CLOSED = be, J.prototype.close = function() {
|
640
640
|
this._close();
|
641
|
-
}, J.CONNECTING = le, J.OPEN = ce, J.CLOSED =
|
641
|
+
}, J.CONNECTING = le, J.OPEN = ce, J.CLOSED = be, J.prototype.withCredentials = void 0;
|
642
642
|
var E = g;
|
643
643
|
l != null && (g == null || !("withCredentials" in g.prototype)) && (E = J), function(e) {
|
644
644
|
{
|
@@ -689,8 +689,8 @@ function je(r, t) {
|
|
689
689
|
if (y || D)
|
690
690
|
i = D ? r.value : r;
|
691
691
|
else if (typeof r == "string") {
|
692
|
-
var
|
693
|
-
i = r.replace(/\((.*)\)/, "-$1").replace(
|
692
|
+
var O = new RegExp("[^-\\d" + s + "]", "g"), B = new RegExp("\\" + s, "g");
|
693
|
+
i = r.replace(/\((.*)\)/, "-$1").replace(O, "").replace(B, "."), i = i || 0;
|
694
694
|
} else {
|
695
695
|
if (l)
|
696
696
|
throw Error("Invalid Input");
|
@@ -793,7 +793,7 @@ ie.prototype = {
|
|
793
793
|
}
|
794
794
|
};
|
795
795
|
function Ft(r) {
|
796
|
-
mt(r, "svelte-
|
796
|
+
mt(r, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
797
797
|
}
|
798
798
|
function $e(r, t, n) {
|
799
799
|
const i = r.slice();
|
@@ -803,7 +803,7 @@ function et(r, t, n) {
|
|
803
803
|
const i = r.slice();
|
804
804
|
return i[50] = t[n], i;
|
805
805
|
}
|
806
|
-
function
|
806
|
+
function Ot(r) {
|
807
807
|
let t, n = (
|
808
808
|
/*balances*/
|
809
809
|
(r[4].Total ? (
|
@@ -813,48 +813,48 @@ function kt(r) {
|
|
813
813
|
r[4].Total[0].amount
|
814
814
|
)
|
815
815
|
) : "0") + ""
|
816
|
-
), i, s, l, m, d, g, y, D,
|
817
|
-
/*
|
816
|
+
), i, s, l, m, d, g, y, D, O, B = (
|
817
|
+
/*isModalDisplayed*/
|
818
818
|
r[2] && tt(r)
|
819
819
|
);
|
820
820
|
return {
|
821
821
|
c() {
|
822
|
-
t = I("
|
822
|
+
t = I("button"), i = me(n), s = se(), l = me(
|
823
823
|
/*currency*/
|
824
824
|
r[3]
|
825
|
-
), m = se(), d = I("span"), d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = se(),
|
825
|
+
), m = se(), d = I("span"), d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = se(), B && B.c(), y = bt(), U(t, "class", "BalanceValue");
|
826
826
|
},
|
827
|
-
m(
|
828
|
-
ye(
|
827
|
+
m(C, A) {
|
828
|
+
ye(C, t, A), R(t, i), R(t, s), R(t, l), R(t, m), R(t, d), ye(C, g, A), B && B.m(C, A), ye(C, y, A), D || (O = He(
|
829
829
|
t,
|
830
830
|
"click",
|
831
831
|
/*click_handler*/
|
832
832
|
r[23]
|
833
833
|
), D = !0);
|
834
834
|
},
|
835
|
-
p(
|
835
|
+
p(C, A) {
|
836
836
|
A[0] & /*balances*/
|
837
837
|
16 && n !== (n = /*balances*/
|
838
|
-
(
|
838
|
+
(C[4].Total ? (
|
839
839
|
/*formatBalance*/
|
840
|
-
|
840
|
+
C[6](
|
841
841
|
/*balances*/
|
842
|
-
|
842
|
+
C[4].Total[0].amount
|
843
843
|
)
|
844
844
|
) : "0") + "") && he(i, n), A[0] & /*currency*/
|
845
845
|
8 && he(
|
846
846
|
l,
|
847
847
|
/*currency*/
|
848
|
-
|
849
|
-
), /*
|
850
|
-
|
848
|
+
C[3]
|
849
|
+
), /*isModalDisplayed*/
|
850
|
+
C[2] ? B ? B.p(C, A) : (B = tt(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
|
851
851
|
},
|
852
|
-
d(
|
853
|
-
|
852
|
+
d(C) {
|
853
|
+
C && (ge(t), ge(g), ge(y)), B && B.d(C), D = !1, O();
|
854
854
|
}
|
855
855
|
};
|
856
856
|
}
|
857
|
-
function
|
857
|
+
function kt(r) {
|
858
858
|
let t, n = (
|
859
859
|
/*$_*/
|
860
860
|
r[5]("Loading") + ""
|
@@ -880,27 +880,27 @@ function tt(r) {
|
|
880
880
|
let t, n, i, s, l, m, d = (
|
881
881
|
/*$_*/
|
882
882
|
r[5]("Title") + ""
|
883
|
-
), g, y, D,
|
883
|
+
), g, y, D, O, B, C, A = (
|
884
884
|
/*$_*/
|
885
885
|
r[5]("DepositButton") + ""
|
886
886
|
), P, F, H, $ = ze(Object.keys(
|
887
887
|
/*balances*/
|
888
888
|
r[4]
|
889
|
-
)),
|
890
|
-
for (let
|
891
|
-
|
889
|
+
)), b = [];
|
890
|
+
for (let S = 0; S < $.length; S += 1)
|
891
|
+
b[S] = at($e(r, $, S));
|
892
892
|
return {
|
893
893
|
c() {
|
894
|
-
t = I("div"), n = I("
|
895
|
-
for (let
|
896
|
-
|
897
|
-
|
894
|
+
t = I("div"), n = I("button"), i = se(), s = I("div"), l = I("div"), m = I("p"), g = me(d), y = se(), D = I("div");
|
895
|
+
for (let S = 0; S < b.length; S += 1)
|
896
|
+
b[S].c();
|
897
|
+
O = se(), B = I("div"), C = I("button"), P = me(A), U(n, "class", "BalanceModalClose"), U(m, "class", "BalanceModalTitle"), U(l, "class", "BalanceModalHeader"), U(D, "class", "BalanceModalBody"), U(C, "class", "BalanceModalAction"), U(B, "class", "BalanceModalFooter"), U(s, "class", "BalanceModal"), U(t, "class", "BalanceModalWrapper");
|
898
898
|
},
|
899
|
-
m(
|
900
|
-
ye(
|
901
|
-
for (let L = 0; L <
|
902
|
-
|
903
|
-
R(s,
|
899
|
+
m(S, G) {
|
900
|
+
ye(S, t, G), R(t, n), R(t, i), R(t, s), R(s, l), R(l, m), R(m, g), R(s, y), R(s, D);
|
901
|
+
for (let L = 0; L < b.length; L += 1)
|
902
|
+
b[L] && b[L].m(D, null);
|
903
|
+
R(s, O), R(s, B), R(B, C), R(C, P), F || (H = [
|
904
904
|
He(
|
905
905
|
n,
|
906
906
|
"click",
|
@@ -908,37 +908,37 @@ function tt(r) {
|
|
908
908
|
r[24]
|
909
909
|
),
|
910
910
|
He(
|
911
|
-
|
911
|
+
C,
|
912
912
|
"click",
|
913
913
|
/*click_handler_2*/
|
914
914
|
r[25]
|
915
915
|
)
|
916
916
|
], F = !0);
|
917
917
|
},
|
918
|
-
p(
|
918
|
+
p(S, G) {
|
919
919
|
if (G[0] & /*$_*/
|
920
920
|
32 && d !== (d = /*$_*/
|
921
|
-
|
921
|
+
S[5]("Title") + "") && he(g, d), G[0] & /*balances, currency, formatBalance, $_*/
|
922
922
|
120) {
|
923
923
|
$ = ze(Object.keys(
|
924
924
|
/*balances*/
|
925
|
-
|
925
|
+
S[4]
|
926
926
|
));
|
927
927
|
let L;
|
928
928
|
for (L = 0; L < $.length; L += 1) {
|
929
|
-
const
|
930
|
-
|
929
|
+
const ee = $e(S, $, L);
|
930
|
+
b[L] ? b[L].p(ee, G) : (b[L] = at(ee), b[L].c(), b[L].m(D, null));
|
931
931
|
}
|
932
|
-
for (; L <
|
933
|
-
|
934
|
-
|
932
|
+
for (; L < b.length; L += 1)
|
933
|
+
b[L].d(1);
|
934
|
+
b.length = $.length;
|
935
935
|
}
|
936
936
|
G[0] & /*$_*/
|
937
937
|
32 && A !== (A = /*$_*/
|
938
|
-
|
938
|
+
S[5]("DepositButton") + "") && he(P, A);
|
939
939
|
},
|
940
|
-
d(
|
941
|
-
|
940
|
+
d(S) {
|
941
|
+
S && ge(t), rt(b, S), F = !1, wt(H);
|
942
942
|
}
|
943
943
|
};
|
944
944
|
}
|
@@ -958,7 +958,7 @@ function nt(r) {
|
|
958
958
|
r[50].productType
|
959
959
|
)
|
960
960
|
) : "") + ""
|
961
|
-
), d, g, y, D,
|
961
|
+
), d, g, y, D, O = (
|
962
962
|
/*b*/
|
963
963
|
(r[50].amount ? (
|
964
964
|
/*formatBalance*/
|
@@ -967,16 +967,16 @@ function nt(r) {
|
|
967
967
|
r[50].amount
|
968
968
|
)
|
969
969
|
) : "0") + ""
|
970
|
-
),
|
970
|
+
), B, C, A, P;
|
971
971
|
return {
|
972
972
|
c() {
|
973
|
-
t = I("div"), n = I("p"), s = me(i), l = se(), d = me(m), g = se(), y = I("p"), D = I("span"),
|
973
|
+
t = I("div"), n = I("p"), s = me(i), l = se(), d = me(m), g = se(), y = I("p"), D = I("span"), B = me(O), C = se(), A = I("span"), P = me(
|
974
974
|
/*currency*/
|
975
975
|
r[3]
|
976
976
|
), U(n, "class", "BalanceModalText"), U(D, "class", "BalanceModalAmount"), U(A, "class", "BalanceModalCurrency"), U(y, "class", "BalanceModalValue"), U(t, "class", "BalanceModalRowLine");
|
977
977
|
},
|
978
978
|
m(F, H) {
|
979
|
-
ye(F, t, H), R(t, n), R(n, s), R(n, l), R(n, d), R(t, g), R(t, y), R(y, D), R(D,
|
979
|
+
ye(F, t, H), R(t, n), R(n, s), R(n, l), R(n, d), R(t, g), R(t, y), R(y, D), R(D, B), R(y, C), R(y, A), R(A, P);
|
980
980
|
},
|
981
981
|
p(F, H) {
|
982
982
|
H[0] & /*$_, balances*/
|
@@ -993,14 +993,14 @@ function nt(r) {
|
|
993
993
|
F[50].productType
|
994
994
|
)
|
995
995
|
) : "") + "") && he(d, m), H[0] & /*balances*/
|
996
|
-
16 &&
|
996
|
+
16 && O !== (O = /*b*/
|
997
997
|
(F[50].amount ? (
|
998
998
|
/*formatBalance*/
|
999
999
|
F[6](
|
1000
1000
|
/*b*/
|
1001
1001
|
F[50].amount
|
1002
1002
|
)
|
1003
|
-
) : "0") + "") && he(
|
1003
|
+
) : "0") + "") && he(B, O), H[0] & /*currency*/
|
1004
1004
|
8 && he(
|
1005
1005
|
P,
|
1006
1006
|
/*currency*/
|
@@ -1064,7 +1064,7 @@ function ot(r) {
|
|
1064
1064
|
let t, n, i;
|
1065
1065
|
return {
|
1066
1066
|
c() {
|
1067
|
-
t = I("
|
1067
|
+
t = I("button"), U(t, "class", "ShowBalanceModalOverlay");
|
1068
1068
|
},
|
1069
1069
|
m(s, l) {
|
1070
1070
|
ye(s, t, l), n || (i = He(
|
@@ -1085,11 +1085,11 @@ function Nt(r) {
|
|
1085
1085
|
function s(g, y) {
|
1086
1086
|
return (
|
1087
1087
|
/*isLoading*/
|
1088
|
-
g[1] ?
|
1088
|
+
g[1] ? kt : Ot
|
1089
1089
|
);
|
1090
1090
|
}
|
1091
1091
|
let l = s(r), m = l(r), d = (
|
1092
|
-
/*
|
1092
|
+
/*isModalDisplayed*/
|
1093
1093
|
r[2] && ot(r)
|
1094
1094
|
);
|
1095
1095
|
return {
|
@@ -1100,7 +1100,7 @@ function Nt(r) {
|
|
1100
1100
|
ye(g, t, y), R(t, n), m.m(n, null), R(t, i), d && d.m(t, null), r[27](t);
|
1101
1101
|
},
|
1102
1102
|
p(g, y) {
|
1103
|
-
l === (l = s(g)) && m ? m.p(g, y) : (m.d(1), m = l(g), m && (m.c(), m.m(n, null))), /*
|
1103
|
+
l === (l = s(g)) && m ? m.p(g, y) : (m.d(1), m = l(g), m && (m.c(), m.m(n, null))), /*isModalDisplayed*/
|
1104
1104
|
g[2] ? d ? d.p(g, y) : (d = ot(g), d.c(), d.m(t, null)) : d && (d.d(1), d = null);
|
1105
1105
|
},
|
1106
1106
|
i: qe,
|
@@ -1113,15 +1113,15 @@ function Nt(r) {
|
|
1113
1113
|
function It(r, t, n) {
|
1114
1114
|
let i;
|
1115
1115
|
gt(r, _t, (c) => n(5, i = c));
|
1116
|
-
let { userid: s = "" } = t, { session: l = "" } = t, { endpoint: m = "" } = t, { lang: d = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: y = "" } = t, { translationurl: D = "" } = t, { customlocaleidentifier:
|
1117
|
-
const f = {},
|
1118
|
-
fetch(D).then((c) => c.json()).then((c) => Object.keys(c).forEach((
|
1116
|
+
let { userid: s = "" } = t, { session: l = "" } = t, { endpoint: m = "" } = t, { lang: d = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: y = "" } = t, { translationurl: D = "" } = t, { customlocaleidentifier: O = "" } = t, { gmversion: B = "gm16" } = t, { displaybalanceoption: C = "All" } = t, { totalcalculationmode: A = "totalCashAmount" } = t, { currencyseparator: P = "" } = t, { currencydecimal: F = "" } = t, { currencyprecision: H = "" } = t, { mbsource: $ } = t, b, S = !0, G = !1, L = !1, ee, ve = "", ae = [], oe;
|
1117
|
+
const f = {}, te = ["totalCashAmount", "totalRealAmount"], Me = () => {
|
1118
|
+
fetch(D).then((c) => c.json()).then((c) => Object.keys(c).forEach((T) => Qe(T, c[T]))).catch((c) => console.log(c));
|
1119
1119
|
};
|
1120
1120
|
Object.keys(Ze).forEach((c) => Qe(c, Ze[c]));
|
1121
1121
|
const Ce = () => {
|
1122
|
-
if (
|
1123
|
-
return
|
1124
|
-
}, Fe = (c) =>
|
1122
|
+
if (O.includes(d))
|
1123
|
+
return O;
|
1124
|
+
}, Fe = (c) => O ? new Intl.NumberFormat(Ce(), { useGrouping: !0 }).format(c) : P && F ? ie(c, {
|
1125
1125
|
separator: P,
|
1126
1126
|
decimal: F,
|
1127
1127
|
symbol: "",
|
@@ -1132,15 +1132,15 @@ function It(r, t, n) {
|
|
1132
1132
|
symbol: "",
|
1133
1133
|
precision: parseInt(H || "2", 10)
|
1134
1134
|
}).format(), Ae = async () => {
|
1135
|
-
n(1,
|
1135
|
+
n(1, S = !0);
|
1136
1136
|
const c = new URL(`${m}/v1/player/${s}/account`);
|
1137
1137
|
try {
|
1138
|
-
const
|
1138
|
+
const T = await fetch(c, {
|
1139
1139
|
method: "GET",
|
1140
1140
|
headers: { "X-SessionID": l }
|
1141
|
-
}), E = await
|
1142
|
-
if (
|
1143
|
-
ae = E.items, n(3,
|
1141
|
+
}), E = await T.json();
|
1142
|
+
if (T.ok)
|
1143
|
+
ae = E.items, n(3, ve = ae.find((e) => e.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: E.totalAmount[ve] }], f), n(
|
1144
1144
|
4,
|
1145
1145
|
f.Real = [
|
1146
1146
|
{
|
@@ -1159,22 +1159,22 @@ function It(r, t, n) {
|
|
1159
1159
|
);
|
1160
1160
|
else
|
1161
1161
|
throw new Error("Failed to fetch balance data !");
|
1162
|
-
} catch (
|
1163
|
-
console.log("Balance error: ",
|
1162
|
+
} catch (T) {
|
1163
|
+
console.log("Balance error: ", T);
|
1164
1164
|
} finally {
|
1165
|
-
n(1,
|
1165
|
+
n(1, S = !1);
|
1166
1166
|
}
|
1167
1167
|
}, le = () => {
|
1168
|
-
n(1,
|
1169
|
-
const c = new URL(`${m}/v2/player/${s}/balance`),
|
1170
|
-
|
1171
|
-
e[A] || n(8, A =
|
1168
|
+
n(1, S = !0);
|
1169
|
+
const c = new URL(`${m}/v2/player/${s}/balance`), T = new Headers();
|
1170
|
+
T.append("X-SessionID", l), fetch(c, { method: "GET", headers: T }).then((e) => e.json()).then((e) => {
|
1171
|
+
e[A] || n(8, A = te[0]);
|
1172
1172
|
const o = e.items.find((a) => a.type === "Real" && a.walletAccountType === "Ordinary");
|
1173
|
-
if (n(3,
|
1174
|
-
|
1173
|
+
if (n(3, ve = o.currency), L = !!o.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !L) {
|
1174
|
+
oe = {
|
1175
1175
|
lastOrdinaryAfterAmount: 0,
|
1176
1176
|
showCreditLineAfterAmount: !1
|
1177
|
-
}, n(4, f.Total[0].amount = e[A][
|
1177
|
+
}, n(4, f.Total[0].amount = e[A][ve], f);
|
1178
1178
|
for (const a of e.items)
|
1179
1179
|
switch (a.type) {
|
1180
1180
|
case "Bonus":
|
@@ -1188,10 +1188,10 @@ function It(r, t, n) {
|
|
1188
1188
|
}
|
1189
1189
|
for (const [a, h] of Object.entries(f))
|
1190
1190
|
h.length < 1 && delete f[a];
|
1191
|
-
n(1,
|
1191
|
+
n(1, S = !1);
|
1192
1192
|
return;
|
1193
1193
|
}
|
1194
|
-
|
1194
|
+
oe = {
|
1195
1195
|
Casino: {
|
1196
1196
|
lastOrdinaryAfterAmount: 0,
|
1197
1197
|
showCreditLineAfterAmount: !1
|
@@ -1202,7 +1202,7 @@ function It(r, t, n) {
|
|
1202
1202
|
}
|
1203
1203
|
};
|
1204
1204
|
let u = e.items;
|
1205
|
-
|
1205
|
+
C && C !== "All" && (u = e.items.filter((a) => a.productType === C));
|
1206
1206
|
for (const a of u) {
|
1207
1207
|
let h;
|
1208
1208
|
switch (a.type) {
|
@@ -1226,56 +1226,56 @@ function It(r, t, n) {
|
|
1226
1226
|
Te();
|
1227
1227
|
for (const [a, h] of Object.entries(f))
|
1228
1228
|
h.length < 1 && delete f[a];
|
1229
|
-
n(1,
|
1230
|
-
}).catch((
|
1231
|
-
throw n(1,
|
1229
|
+
n(1, S = !1);
|
1230
|
+
}).catch(() => {
|
1231
|
+
throw n(1, S = !1), new Error("Failed to fetch balance data !");
|
1232
1232
|
});
|
1233
1233
|
}, ce = () => {
|
1234
|
-
if (
|
1234
|
+
if (ee && ee.close(), l.length < 1)
|
1235
1235
|
return;
|
1236
|
-
let c,
|
1237
|
-
switch (
|
1236
|
+
let c, T;
|
1237
|
+
switch (B) {
|
1238
1238
|
case "gm16":
|
1239
|
-
c = new URL(`${m}/v2/player/${s}/information/updates`),
|
1239
|
+
c = new URL(`${m}/v2/player/${s}/information/updates`), T = (o) => Oe(o);
|
1240
1240
|
break;
|
1241
1241
|
case "gmcore":
|
1242
|
-
c = new URL(`${m}/v1/player/${s}/balance/updates`),
|
1242
|
+
c = new URL(`${m}/v1/player/${s}/balance/updates`), T = (o) => Re(o);
|
1243
1243
|
break;
|
1244
1244
|
}
|
1245
1245
|
const E = {
|
1246
1246
|
accept: "text/event-stream",
|
1247
1247
|
"X-SessionId": l
|
1248
1248
|
}, e = new Rt.EventSourcePolyfill(c, { headers: E });
|
1249
|
-
|
1250
|
-
},
|
1251
|
-
let
|
1249
|
+
ee = e, e.addEventListener("message", T);
|
1250
|
+
}, be = (c) => {
|
1251
|
+
let T;
|
1252
1252
|
try {
|
1253
|
-
|
1253
|
+
T = JSON.parse(c);
|
1254
1254
|
} catch (E) {
|
1255
1255
|
console.log("Balance stream failed: ", E);
|
1256
1256
|
return;
|
1257
1257
|
}
|
1258
|
-
return
|
1258
|
+
return T;
|
1259
1259
|
}, Re = (c) => {
|
1260
|
-
const
|
1261
|
-
if (!
|
1260
|
+
const T = be(c.data);
|
1261
|
+
if (!T) {
|
1262
1262
|
ce();
|
1263
1263
|
return;
|
1264
1264
|
}
|
1265
1265
|
let E = "0";
|
1266
|
-
const e =
|
1266
|
+
const e = T.balanceChange;
|
1267
1267
|
ae = ae.map((o) => (e && e[o.id] && (o = {
|
1268
1268
|
...o,
|
1269
1269
|
balanceAmount: e[o.id].afterAmount
|
1270
1270
|
}), E = (parseFloat(o?.balanceAmount) + parseFloat(E)).toString(), o)), n(4, f.Real = [{ amount: ae[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: ae[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(E) }], f);
|
1271
|
-
},
|
1271
|
+
}, ne = (c, T, E) => {
|
1272
1272
|
let e = null;
|
1273
1273
|
switch (E.walletAccountType) {
|
1274
1274
|
case "Ordinary":
|
1275
|
-
E.afterAmount !== E.affectedAmount && (
|
1275
|
+
(E.afterAmount !== E.affectedAmount || T.lastOrdinaryAfterAmount === 0) && (T.lastOrdinaryAfterAmount = E.afterAmount, T.showCreditLineAfterAmount || (e = E.afterAmount));
|
1276
1276
|
break;
|
1277
1277
|
case "CreditLine":
|
1278
|
-
E.afterAmount !== 0 ? (e = E.afterAmount,
|
1278
|
+
E.afterAmount !== 0 ? (e = E.afterAmount, T.showCreditLineAfterAmount = !0) : (e = T.lastOrdinaryAfterAmount, T.showCreditLineAfterAmount = !1);
|
1279
1279
|
break;
|
1280
1280
|
default:
|
1281
1281
|
e = E.afterAmount;
|
@@ -1291,38 +1291,38 @@ function It(r, t, n) {
|
|
1291
1291
|
n(4, f.Total[0].amount = c, f);
|
1292
1292
|
break;
|
1293
1293
|
case "totalRealAmount":
|
1294
|
-
if (!
|
1294
|
+
if (!L)
|
1295
1295
|
return;
|
1296
|
-
let
|
1296
|
+
let T = 0;
|
1297
1297
|
for (const E of f.Real)
|
1298
|
-
|
1299
|
-
n(4, f.Total[0].amount =
|
1298
|
+
T += E.amount;
|
1299
|
+
n(4, f.Total[0].amount = T, f);
|
1300
1300
|
}
|
1301
|
-
},
|
1302
|
-
const
|
1303
|
-
if (!
|
1301
|
+
}, Oe = (c) => {
|
1302
|
+
const T = be(c.data);
|
1303
|
+
if (!T) {
|
1304
1304
|
ce();
|
1305
1305
|
return;
|
1306
1306
|
}
|
1307
|
-
if (
|
1307
|
+
if (T.type !== "BALANCE_UPDATE_V2")
|
1308
1308
|
return;
|
1309
|
-
const E =
|
1309
|
+
const E = T.body.balanceChange;
|
1310
1310
|
for (const [e, o] of Object.entries(E))
|
1311
|
-
if (A === "totalRealAmount" && e === "Real" && !
|
1311
|
+
if (A === "totalRealAmount" && e === "Real" && !L && n(4, f.Total[0].amount = ne(f.Total[0].amount, oe, o), f), !!f[e])
|
1312
1312
|
for (const u of f[e]) {
|
1313
|
-
if (!
|
1314
|
-
u.amount = e === "Real" ?
|
1313
|
+
if (!L) {
|
1314
|
+
u.amount = e === "Real" ? ne(u.amount, oe, o) : o.afterAmount;
|
1315
1315
|
continue;
|
1316
1316
|
}
|
1317
|
-
o.productType === u.productType && (u.amount = e === "Real" ?
|
1317
|
+
o.productType === u.productType && (u.amount = e === "Real" ? ne(u.amount, oe[u.productType], o) : o.afterAmount);
|
1318
1318
|
}
|
1319
1319
|
Te();
|
1320
|
-
},
|
1321
|
-
n(2,
|
1320
|
+
}, ke = () => {
|
1321
|
+
n(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
1322
1322
|
}, Ue = () => {
|
1323
|
-
|
1323
|
+
te.includes(A) || (console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${te}. Using default value ('${te[0]}').`), n(8, A = te[0]));
|
1324
1324
|
}, Pe = () => {
|
1325
|
-
switch (At(d), Ue(),
|
1325
|
+
switch (At(d), Ue(), B) {
|
1326
1326
|
case "gmcore":
|
1327
1327
|
Ae();
|
1328
1328
|
break;
|
@@ -1330,38 +1330,38 @@ function It(r, t, n) {
|
|
1330
1330
|
le();
|
1331
1331
|
break;
|
1332
1332
|
default:
|
1333
|
-
throw Error(`Invalid apiversion attribute: ${
|
1333
|
+
throw Error(`Invalid apiversion attribute: ${B}`);
|
1334
1334
|
}
|
1335
|
-
}, Ne = (c) => c.data && c.data.type === "LogoutSuccessfull" &&
|
1335
|
+
}, Ne = (c) => c.data && c.data.type === "LogoutSuccessfull" && ee.close();
|
1336
1336
|
yt(() => (window.addEventListener("message", Ne, !1), () => {
|
1337
|
-
window.removeEventListener("message", Ne),
|
1337
|
+
window.removeEventListener("message", Ne), ee && ee.close();
|
1338
1338
|
}));
|
1339
|
-
const Ee = () => n(2,
|
1339
|
+
const Ee = () => n(2, G = !0), xe = () => n(2, G = !1), we = () => ke(), J = () => n(2, G = !1);
|
1340
1340
|
function Ge(c) {
|
1341
1341
|
vt[c ? "unshift" : "push"](() => {
|
1342
|
-
|
1342
|
+
b = c, n(0, b);
|
1343
1343
|
});
|
1344
1344
|
}
|
1345
1345
|
return r.$$set = (c) => {
|
1346
|
-
"userid" in c && n(9, s = c.userid), "session" in c && n(10, l = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, d = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, D = c.translationurl), "customlocaleidentifier" in c && n(16,
|
1346
|
+
"userid" in c && n(9, s = c.userid), "session" in c && n(10, l = c.session), "endpoint" in c && n(11, m = c.endpoint), "lang" in c && n(12, d = c.lang), "clientstyling" in c && n(13, g = c.clientstyling), "clientstylingurl" in c && n(14, y = c.clientstylingurl), "translationurl" in c && n(15, D = c.translationurl), "customlocaleidentifier" in c && n(16, O = c.customlocaleidentifier), "gmversion" in c && n(17, B = c.gmversion), "displaybalanceoption" in c && n(18, C = c.displaybalanceoption), "totalcalculationmode" in c && n(8, A = c.totalcalculationmode), "currencyseparator" in c && n(19, P = c.currencyseparator), "currencydecimal" in c && n(20, F = c.currencydecimal), "currencyprecision" in c && n(21, H = c.currencyprecision), "mbsource" in c && n(22, $ = c.mbsource);
|
1347
1347
|
}, r.$$.update = () => {
|
1348
1348
|
r.$$.dirty[0] & /*lang*/
|
1349
1349
|
4096 && d && Ce(), r.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
1350
|
-
400896 && m && s && l && d &&
|
1351
|
-
134656 && m && s && l &&
|
1352
|
-
8193 && g &&
|
1353
|
-
16385 && y &&
|
1354
|
-
4194305 &&
|
1350
|
+
400896 && m && s && l && d && B && C && Pe(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
1351
|
+
134656 && m && s && l && B && ce(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
1352
|
+
8193 && g && b && Bt(b, g), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
1353
|
+
16385 && y && b && Ct(b, y), r.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
1354
|
+
4194305 && b && Tt(b, `${$}.Style`), r.$$.dirty[0] & /*translationurl*/
|
1355
1355
|
32768 && D && Me();
|
1356
1356
|
}, [
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1357
|
+
b,
|
1358
|
+
S,
|
1359
|
+
G,
|
1360
|
+
ve,
|
1361
1361
|
f,
|
1362
1362
|
i,
|
1363
1363
|
Fe,
|
1364
|
-
|
1364
|
+
ke,
|
1365
1365
|
A,
|
1366
1366
|
s,
|
1367
1367
|
l,
|
@@ -1370,16 +1370,16 @@ function It(r, t, n) {
|
|
1370
1370
|
g,
|
1371
1371
|
y,
|
1372
1372
|
D,
|
1373
|
-
|
1374
|
-
b,
|
1373
|
+
O,
|
1375
1374
|
B,
|
1375
|
+
C,
|
1376
1376
|
P,
|
1377
1377
|
F,
|
1378
1378
|
H,
|
1379
1379
|
$,
|
1380
1380
|
Ee,
|
1381
1381
|
xe,
|
1382
|
-
|
1382
|
+
we,
|
1383
1383
|
J,
|
1384
1384
|
Ge
|
1385
1385
|
];
|