@everymatrix/casino-header-controller-nd 1.86.28 → 1.86.30
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/{CasinoHeaderControllerNd-PdCNBPJG.js → CasinoHeaderControllerNd-BlmwGMrg.js} +1 -1
- package/components/{CasinoHeaderControllerNd-DUfODf8D.cjs → CasinoHeaderControllerNd-DHhuhYxu.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-B1HEPHSx.js → CasinoHeaderControllerNd-syNJYvFk.js} +1 -1
- package/components/{PlayerAccountBalanceModalNd-BxspHx1P.js → PlayerAccountBalanceModalNd-Bt6KC8-Y.js} +338 -334
- package/components/PlayerAccountBalanceModalNd-CS7pAvLM.cjs +7 -0
- package/components/{PlayerAccountBalanceModalNd-UlBTfRN6.js → PlayerAccountBalanceModalNd-DxKi3Wc0.js} +381 -377
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/lazy/{player-account-balance-modal-nd-CWxFg0Rd.cjs → player-account-balance-modal-nd-BLdC4s3O.cjs} +1 -1
- package/lazy/{player-account-balance-modal-nd-D1AAY1_s.js → player-account-balance-modal-nd-gZzis_-T.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-BY8xnPL2.js → player-account-balance-modal-nd-qutnKTdV.js} +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-C9GnwJNI.cjs +0 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as st, $ as lt, T as ct, S as dt, i as ut, s as ft, f as K, d as pt, A as Ke, g as pe, m as
|
|
2
|
-
function Qe(
|
|
3
|
-
st(
|
|
1
|
+
import { b as st, $ as lt, T as ct, S as dt, i as ut, s as ft, f as K, d as pt, A as Ke, g as pe, m as L, o as he, p as E, w as V, x as fe, y as ht, O as mt, z as gt, F as yt, q as Ie, H as wt, B as _e, C as Ae, J as Ye, D as vt, K as ze, L as it, r as bt, P as Bt, Q as Tt, R as St, c as Ct } from "./CasinoHamburgerMenuNd-Djtdm8EV.js";
|
|
2
|
+
function Qe(r, t) {
|
|
3
|
+
st(r, t);
|
|
4
4
|
}
|
|
5
|
-
function _t(
|
|
6
|
-
lt.set(
|
|
5
|
+
function _t(r) {
|
|
6
|
+
lt.set(r);
|
|
7
7
|
}
|
|
8
8
|
const Je = {
|
|
9
9
|
en: {
|
|
@@ -229,13 +229,13 @@ var qe = { exports: {} };
|
|
|
229
229
|
* Available under MIT License (MIT)
|
|
230
230
|
* https://github.com/Yaffle/EventSource/
|
|
231
231
|
*/
|
|
232
|
-
(function(
|
|
232
|
+
(function(r, t) {
|
|
233
233
|
(function(n) {
|
|
234
|
-
var h = n.setTimeout,
|
|
235
|
-
if (typeof window < "u" && typeof
|
|
236
|
-
|
|
237
|
-
}, !1)), l == null &&
|
|
238
|
-
return new
|
|
234
|
+
var h = n.setTimeout, g = n.clearTimeout, l = n.XMLHttpRequest, d = n.XDomainRequest, w = n.ActiveXObject, p = n.EventSource, b = n.document, M = n.Promise, U = n.fetch, I = n.Response, S = n.TextDecoder, T = n.TextEncoder, H = n.AbortController;
|
|
235
|
+
if (typeof window < "u" && typeof b < "u" && !("readyState" in b) && b.body == null && (b.readyState = "loading", window.addEventListener("load", function(a) {
|
|
236
|
+
b.readyState = "complete";
|
|
237
|
+
}, !1)), l == null && w != null && (l = function() {
|
|
238
|
+
return new w("Microsoft.XMLHTTP");
|
|
239
239
|
}), Object.create == null && (Object.create = function(a) {
|
|
240
240
|
function i() {
|
|
241
241
|
}
|
|
@@ -245,16 +245,16 @@ var qe = { exports: {} };
|
|
|
245
245
|
}), H == null) {
|
|
246
246
|
var me = U;
|
|
247
247
|
U = function(a, i) {
|
|
248
|
-
var
|
|
248
|
+
var u = i.signal;
|
|
249
249
|
return me(a, { headers: i.headers, credentials: i.credentials, cache: i.cache }).then(function(o) {
|
|
250
|
-
var
|
|
251
|
-
return
|
|
250
|
+
var v = o.body.getReader();
|
|
251
|
+
return u._reader = v, u._aborted && u._reader.cancel(), {
|
|
252
252
|
status: o.status,
|
|
253
253
|
statusText: o.statusText,
|
|
254
254
|
headers: o.headers,
|
|
255
255
|
body: {
|
|
256
256
|
getReader: function() {
|
|
257
|
-
return
|
|
257
|
+
return v;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
};
|
|
@@ -281,7 +281,7 @@ var qe = { exports: {} };
|
|
|
281
281
|
return D >= 65536 >> k && D << k <= 1114111;
|
|
282
282
|
throw new Error();
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function u(D, k) {
|
|
285
285
|
if (D === 6 * 1)
|
|
286
286
|
return k >> 6 > 15 ? 3 : k > 31 ? 2 : 1;
|
|
287
287
|
if (D === 6 * 2)
|
|
@@ -290,21 +290,21 @@ var qe = { exports: {} };
|
|
|
290
290
|
return 3;
|
|
291
291
|
throw new Error();
|
|
292
292
|
}
|
|
293
|
-
for (var o = 65533,
|
|
293
|
+
for (var o = 65533, v = "", m = this.bitsNeeded, C = this.codePoint, N = 0; N < a.length; N += 1) {
|
|
294
294
|
var A = a[N];
|
|
295
|
-
m !== 0 && (A < 128 || A > 191 || !i(C << 6 | A & 63, m - 6,
|
|
295
|
+
m !== 0 && (A < 128 || A > 191 || !i(C << 6 | A & 63, m - 6, u(m, C))) && (m = 0, C = o, v += String.fromCharCode(C)), m === 0 ? (A >= 0 && A <= 127 ? (m = 0, C = A) : A >= 192 && A <= 223 ? (m = 6 * 1, C = A & 31) : A >= 224 && A <= 239 ? (m = 6 * 2, C = A & 15) : A >= 240 && A <= 247 ? (m = 6 * 3, C = A & 7) : (m = 0, C = o), m !== 0 && !i(C, m, u(m, C)) && (m = 0, C = o)) : (m -= 6, C = C << 6 | A & 63), m === 0 && (C <= 65535 ? v += String.fromCharCode(C) : (v += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
|
|
296
296
|
}
|
|
297
|
-
return this.bitsNeeded = m, this.codePoint = C,
|
|
297
|
+
return this.bitsNeeded = m, this.codePoint = C, v;
|
|
298
298
|
};
|
|
299
299
|
var Be = function() {
|
|
300
300
|
try {
|
|
301
|
-
return new S().decode(new
|
|
301
|
+
return new S().decode(new T().encode("test"), { stream: !0 }) === "test";
|
|
302
302
|
} catch (a) {
|
|
303
303
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
304
304
|
}
|
|
305
305
|
return !1;
|
|
306
306
|
};
|
|
307
|
-
(S == null ||
|
|
307
|
+
(S == null || T == null || !Be()) && (S = ce);
|
|
308
308
|
var P = function() {
|
|
309
309
|
};
|
|
310
310
|
function q(a) {
|
|
@@ -312,46 +312,46 @@ var qe = { exports: {} };
|
|
|
312
312
|
}
|
|
313
313
|
q.prototype.open = function(a, i) {
|
|
314
314
|
this._abort(!0);
|
|
315
|
-
var
|
|
315
|
+
var u = this, o = this._xhr, v = 1, m = 0;
|
|
316
316
|
this._abort = function(e) {
|
|
317
|
-
|
|
317
|
+
u._sendTimeout !== 0 && (g(u._sendTimeout), u._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, o.onload = P, o.onerror = P, o.onabort = P, o.onprogress = P, o.onreadystatechange = P, o.abort(), m !== 0 && (g(m), m = 0), e || (u.readyState = 4, u.onabort(null), u.onreadystatechange())), v = 0;
|
|
318
318
|
};
|
|
319
319
|
var C = function() {
|
|
320
|
-
if (
|
|
321
|
-
var e = 0,
|
|
320
|
+
if (v === 1) {
|
|
321
|
+
var e = 0, s = "", f = void 0;
|
|
322
322
|
if ("contentType" in o)
|
|
323
|
-
e = 200,
|
|
323
|
+
e = 200, s = "OK", f = o.contentType;
|
|
324
324
|
else
|
|
325
325
|
try {
|
|
326
|
-
e = o.status,
|
|
326
|
+
e = o.status, s = o.statusText, f = o.getResponseHeader("Content-Type");
|
|
327
327
|
} catch {
|
|
328
|
-
e = 0,
|
|
328
|
+
e = 0, s = "", f = void 0;
|
|
329
329
|
}
|
|
330
|
-
e !== 0 && (
|
|
330
|
+
e !== 0 && (v = 2, u.readyState = 2, u.status = e, u.statusText = s, u._contentType = f, u.onreadystatechange());
|
|
331
331
|
}
|
|
332
332
|
}, N = function() {
|
|
333
|
-
if (C(),
|
|
334
|
-
|
|
333
|
+
if (C(), v === 2 || v === 3) {
|
|
334
|
+
v = 3;
|
|
335
335
|
var e = "";
|
|
336
336
|
try {
|
|
337
337
|
e = o.responseText;
|
|
338
338
|
} catch {
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
u.readyState = 3, u.responseText = e, u.onprogress();
|
|
341
341
|
}
|
|
342
|
-
}, A = function(e,
|
|
343
|
-
if ((
|
|
342
|
+
}, A = function(e, s) {
|
|
343
|
+
if ((s == null || s.preventDefault == null) && (s = {
|
|
344
344
|
preventDefault: P
|
|
345
|
-
}), N(),
|
|
346
|
-
if (
|
|
347
|
-
|
|
345
|
+
}), N(), v === 1 || v === 2 || v === 3) {
|
|
346
|
+
if (v = 4, m !== 0 && (g(m), m = 0), u.readyState = 4, e === "load")
|
|
347
|
+
u.onload(s);
|
|
348
348
|
else if (e === "error")
|
|
349
|
-
|
|
349
|
+
u.onerror(s);
|
|
350
350
|
else if (e === "abort")
|
|
351
|
-
|
|
351
|
+
u.onabort(s);
|
|
352
352
|
else
|
|
353
353
|
throw new TypeError();
|
|
354
|
-
|
|
354
|
+
u.onreadystatechange();
|
|
355
355
|
}
|
|
356
356
|
}, D = function(e) {
|
|
357
357
|
o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && A(o.responseText === "" ? "error" : "load", e) : o.readyState === 3 ? "onprogress" in o || N() : o.readyState === 2 && C());
|
|
@@ -376,12 +376,12 @@ var qe = { exports: {} };
|
|
|
376
376
|
}, q.prototype.getResponseHeader = function(a) {
|
|
377
377
|
return this._contentType;
|
|
378
378
|
}, q.prototype.setRequestHeader = function(a, i) {
|
|
379
|
-
var
|
|
380
|
-
"setRequestHeader" in
|
|
379
|
+
var u = this._xhr;
|
|
380
|
+
"setRequestHeader" in u && u.setRequestHeader(a, i);
|
|
381
381
|
}, q.prototype.getAllResponseHeaders = function() {
|
|
382
382
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
383
383
|
}, q.prototype.send = function() {
|
|
384
|
-
if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) &&
|
|
384
|
+
if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && b != null && b.readyState != null && b.readyState !== "complete") {
|
|
385
385
|
var a = this;
|
|
386
386
|
a._sendTimeout = h(function() {
|
|
387
387
|
a._sendTimeout = 0, a.send();
|
|
@@ -392,8 +392,8 @@ var qe = { exports: {} };
|
|
|
392
392
|
"withCredentials" in i && (i.withCredentials = this.withCredentials);
|
|
393
393
|
try {
|
|
394
394
|
i.send(void 0);
|
|
395
|
-
} catch (
|
|
396
|
-
throw
|
|
395
|
+
} catch (u) {
|
|
396
|
+
throw u;
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
function ne(a) {
|
|
@@ -402,9 +402,9 @@ var qe = { exports: {} };
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
function le(a) {
|
|
405
|
-
for (var i = /* @__PURE__ */ Object.create(null),
|
|
406
|
-
`), o = 0; o <
|
|
407
|
-
var
|
|
405
|
+
for (var i = /* @__PURE__ */ Object.create(null), u = a.split(`\r
|
|
406
|
+
`), o = 0; o < u.length; o += 1) {
|
|
407
|
+
var v = u[o], m = v.split(": "), C = m.shift(), N = m.join(": ");
|
|
408
408
|
i[ne(C)] = N;
|
|
409
409
|
}
|
|
410
410
|
this._map = i;
|
|
@@ -414,12 +414,12 @@ var qe = { exports: {} };
|
|
|
414
414
|
}, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
|
|
415
415
|
function ge() {
|
|
416
416
|
}
|
|
417
|
-
ge.prototype.open = function(a, i,
|
|
418
|
-
a.open("GET",
|
|
417
|
+
ge.prototype.open = function(a, i, u, o, v, m, C) {
|
|
418
|
+
a.open("GET", v);
|
|
419
419
|
var N = 0;
|
|
420
420
|
a.onprogress = function() {
|
|
421
421
|
var D = a.responseText, k = D.slice(N);
|
|
422
|
-
N += k.length,
|
|
422
|
+
N += k.length, u(k);
|
|
423
423
|
}, a.onerror = function(D) {
|
|
424
424
|
D.preventDefault(), o(new Error("NetworkError"));
|
|
425
425
|
}, a.onload = function() {
|
|
@@ -428,8 +428,8 @@ var qe = { exports: {} };
|
|
|
428
428
|
o(null);
|
|
429
429
|
}, a.onreadystatechange = function() {
|
|
430
430
|
if (a.readyState === l.HEADERS_RECEIVED) {
|
|
431
|
-
var D = a.status, k = a.statusText, e = a.getResponseHeader("Content-Type"),
|
|
432
|
-
i(D, k, e, new le(
|
|
431
|
+
var D = a.status, k = a.statusText, e = a.getResponseHeader("Content-Type"), s = a.getAllResponseHeaders();
|
|
432
|
+
i(D, k, e, new le(s));
|
|
433
433
|
}
|
|
434
434
|
}, a.withCredentials = m;
|
|
435
435
|
for (var A in C)
|
|
@@ -444,25 +444,25 @@ var qe = { exports: {} };
|
|
|
444
444
|
};
|
|
445
445
|
function O() {
|
|
446
446
|
}
|
|
447
|
-
O.prototype.open = function(a, i,
|
|
447
|
+
O.prototype.open = function(a, i, u, o, v, m, C) {
|
|
448
448
|
var N = null, A = new H(), D = A.signal, k = new S();
|
|
449
|
-
return U(
|
|
449
|
+
return U(v, {
|
|
450
450
|
headers: C,
|
|
451
451
|
credentials: m ? "include" : "same-origin",
|
|
452
452
|
signal: D,
|
|
453
453
|
cache: "no-store"
|
|
454
454
|
}).then(function(e) {
|
|
455
|
-
return N = e.body.getReader(), i(e.status, e.statusText, e.headers.get("Content-Type"), new W(e.headers)), new M(function(
|
|
455
|
+
return N = e.body.getReader(), i(e.status, e.statusText, e.headers.get("Content-Type"), new W(e.headers)), new M(function(s, f) {
|
|
456
456
|
var y = function() {
|
|
457
457
|
N.read().then(function(_) {
|
|
458
458
|
if (_.done)
|
|
459
|
-
|
|
459
|
+
s(void 0);
|
|
460
460
|
else {
|
|
461
|
-
var
|
|
462
|
-
|
|
461
|
+
var R = k.decode(_.value, { stream: !0 });
|
|
462
|
+
u(R), y();
|
|
463
463
|
}
|
|
464
464
|
}).catch(function(_) {
|
|
465
|
-
|
|
465
|
+
f(_);
|
|
466
466
|
});
|
|
467
467
|
};
|
|
468
468
|
y();
|
|
@@ -481,7 +481,7 @@ var qe = { exports: {} };
|
|
|
481
481
|
function F() {
|
|
482
482
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function x(a) {
|
|
485
485
|
h(function() {
|
|
486
486
|
throw a;
|
|
487
487
|
}, 0);
|
|
@@ -490,28 +490,28 @@ var qe = { exports: {} };
|
|
|
490
490
|
a.target = this;
|
|
491
491
|
var i = this._listeners[a.type];
|
|
492
492
|
if (i != null)
|
|
493
|
-
for (var
|
|
494
|
-
var
|
|
493
|
+
for (var u = i.length, o = 0; o < u; o += 1) {
|
|
494
|
+
var v = i[o];
|
|
495
495
|
try {
|
|
496
|
-
typeof
|
|
496
|
+
typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
|
|
497
497
|
} catch (m) {
|
|
498
|
-
|
|
498
|
+
x(m);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}, F.prototype.addEventListener = function(a, i) {
|
|
502
502
|
a = String(a);
|
|
503
|
-
var
|
|
504
|
-
o == null && (o = [],
|
|
505
|
-
for (var
|
|
506
|
-
o[m] === i && (
|
|
507
|
-
|
|
503
|
+
var u = this._listeners, o = u[a];
|
|
504
|
+
o == null && (o = [], u[a] = o);
|
|
505
|
+
for (var v = !1, m = 0; m < o.length; m += 1)
|
|
506
|
+
o[m] === i && (v = !0);
|
|
507
|
+
v || o.push(i);
|
|
508
508
|
}, F.prototype.removeEventListener = function(a, i) {
|
|
509
509
|
a = String(a);
|
|
510
|
-
var
|
|
510
|
+
var u = this._listeners, o = u[a];
|
|
511
511
|
if (o != null) {
|
|
512
|
-
for (var
|
|
513
|
-
o[m] !== i &&
|
|
514
|
-
|
|
512
|
+
for (var v = [], m = 0; m < o.length; m += 1)
|
|
513
|
+
o[m] !== i && v.push(o[m]);
|
|
514
|
+
v.length === 0 ? delete u[a] : u[a] = v;
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
function z(a) {
|
|
@@ -530,30 +530,30 @@ var qe = { exports: {} };
|
|
|
530
530
|
}
|
|
531
531
|
ye.prototype = Object.create(z.prototype);
|
|
532
532
|
var de = -1, J = 0, re = 1, Se = 2, c = -1, ae = 0, Me = 1, we = 2, ke = 3, Ve = /^text\/event\-stream(;.*)?$/i, Ue = 1e3, Pe = 18e6, Le = function(a, i) {
|
|
533
|
-
var
|
|
534
|
-
return
|
|
533
|
+
var u = a == null ? i : parseInt(a, 10);
|
|
534
|
+
return u !== u && (u = i), Re(u);
|
|
535
535
|
}, Re = function(a) {
|
|
536
536
|
return Math.min(Math.max(a, Ue), Pe);
|
|
537
|
-
}, Ce = function(a, i,
|
|
537
|
+
}, Ce = function(a, i, u) {
|
|
538
538
|
try {
|
|
539
|
-
typeof i == "function" && i.call(a,
|
|
539
|
+
typeof i == "function" && i.call(a, u);
|
|
540
540
|
} catch (o) {
|
|
541
|
-
|
|
541
|
+
x(o);
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
function $(a, i) {
|
|
545
545
|
F.call(this), i = i || {}, 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, Oe(this, a, i);
|
|
546
546
|
}
|
|
547
547
|
function je() {
|
|
548
|
-
return l != null && "withCredentials" in l.prototype ||
|
|
548
|
+
return l != null && "withCredentials" in l.prototype || d == null ? new l() : new d();
|
|
549
549
|
}
|
|
550
550
|
var Ge = U != null && I != null && "body" in I.prototype;
|
|
551
|
-
function Oe(a, i,
|
|
551
|
+
function Oe(a, i, u) {
|
|
552
552
|
i = String(i);
|
|
553
|
-
var o = !!
|
|
554
|
-
if (
|
|
553
|
+
var o = !!u.withCredentials, v = u.lastEventIdQueryParameterName || "lastEventId", m = Re(1e3), C = Le(u.heartbeatTimeout, 45e3), N = "", A = m, D = !1, k = 0, e = u.headers || {}, s = u.Transport, f = Ge && s == null ? void 0 : new q(s != null ? new s() : je()), y = s != null && typeof s != "string" ? new s() : f == null ? new O() : new ge(), _ = void 0, R = 0, B = de, G = "", se = "", ee = "", Ee = "", X = ae, Ne = 0, ue = 0, xe = function(Q, Y, oe, ie) {
|
|
554
|
+
if (B === J)
|
|
555
555
|
if (Q === 200 && oe != null && Ve.test(oe)) {
|
|
556
|
-
|
|
556
|
+
B = re, D = Date.now(), A = m, a.readyState = re;
|
|
557
557
|
var te = new Te("open", {
|
|
558
558
|
status: Q,
|
|
559
559
|
statusText: Y,
|
|
@@ -571,7 +571,7 @@ var qe = { exports: {} };
|
|
|
571
571
|
a.dispatchEvent(te), Ce(a, a.onerror, te), console.error(Z);
|
|
572
572
|
}
|
|
573
573
|
}, rt = function(Q) {
|
|
574
|
-
if (
|
|
574
|
+
if (B === re) {
|
|
575
575
|
for (var Y = -1, oe = 0; oe < Q.length; oe += 1) {
|
|
576
576
|
var ie = Q.charCodeAt(oe);
|
|
577
577
|
(ie === 10 || ie === 13) && (Y = oe);
|
|
@@ -585,9 +585,9 @@ var qe = { exports: {} };
|
|
|
585
585
|
else if (X === c && (X = ae), ie === 13 || ie === 10) {
|
|
586
586
|
if (X !== ae) {
|
|
587
587
|
X === Me && (ue = Z + 1);
|
|
588
|
-
var
|
|
589
|
-
|
|
590
|
-
`, G +=
|
|
588
|
+
var ve = te.slice(Ne, ue - 1), be = te.slice(ue + (ue < Z && te.charCodeAt(ue) === 32 ? 1 : 0), Z);
|
|
589
|
+
ve === "data" ? (G += `
|
|
590
|
+
`, G += be) : ve === "id" ? se = be : ve === "event" ? ee = be : ve === "retry" ? (m = Le(be, m), A = m) : ve === "heartbeatTimeout" && (C = Le(be, C), R !== 0 && (g(R), R = h(function() {
|
|
591
591
|
Fe();
|
|
592
592
|
}, C)));
|
|
593
593
|
}
|
|
@@ -598,7 +598,7 @@ var qe = { exports: {} };
|
|
|
598
598
|
data: G.slice(1),
|
|
599
599
|
lastEventId: se
|
|
600
600
|
});
|
|
601
|
-
if (a.dispatchEvent(De), ee === "open" ? Ce(a, a.onopen, De) : ee === "message" ? Ce(a, a.onmessage, De) : ee === "error" && Ce(a, a.onerror, De),
|
|
601
|
+
if (a.dispatchEvent(De), ee === "open" ? Ce(a, a.onopen, De) : ee === "message" ? Ce(a, a.onmessage, De) : ee === "error" && Ce(a, a.onerror, De), B === Se)
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
604
604
|
G = "", ee = "";
|
|
@@ -609,47 +609,47 @@ var qe = { exports: {} };
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
}, We = function(Q) {
|
|
612
|
-
if (
|
|
613
|
-
|
|
612
|
+
if (B === re || B === J) {
|
|
613
|
+
B = de, R !== 0 && (g(R), R = 0), R = h(function() {
|
|
614
614
|
Fe();
|
|
615
615
|
}, A), A = Re(Math.min(m * 16, A * 2)), a.readyState = J;
|
|
616
616
|
var Y = new ye("error", { error: Q });
|
|
617
617
|
a.dispatchEvent(Y), Ce(a, a.onerror, Y), Q != null && console.error(Q);
|
|
618
618
|
}
|
|
619
619
|
}, Xe = function() {
|
|
620
|
-
|
|
620
|
+
B = Se, _ != null && (_.abort(), _ = void 0), R !== 0 && (g(R), R = 0), a.readyState = Se;
|
|
621
621
|
}, Fe = function() {
|
|
622
|
-
if (
|
|
622
|
+
if (R = 0, B !== de) {
|
|
623
623
|
if (!D && _ != null)
|
|
624
|
-
We(new Error("No activity within " + C + " milliseconds. " + (
|
|
624
|
+
We(new Error("No activity within " + C + " milliseconds. " + (B === J ? "No response received." : k + " chars received.") + " Reconnecting.")), _ != null && (_.abort(), _ = void 0);
|
|
625
625
|
else {
|
|
626
626
|
var Q = Math.max((D || Date.now()) + C - Date.now(), 1);
|
|
627
|
-
D = !1,
|
|
627
|
+
D = !1, R = h(function() {
|
|
628
628
|
Fe();
|
|
629
629
|
}, Q);
|
|
630
630
|
}
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
|
-
D = !1, k = 0,
|
|
633
|
+
D = !1, k = 0, R = h(function() {
|
|
634
634
|
Fe();
|
|
635
|
-
}, C),
|
|
635
|
+
}, C), B = J, G = "", ee = "", se = N, Ee = "", Ne = 0, ue = 0, X = ae;
|
|
636
636
|
var Y = i;
|
|
637
637
|
if (i.slice(0, 5) !== "data:" && i.slice(0, 5) !== "blob:" && N !== "") {
|
|
638
638
|
var oe = i.indexOf("?");
|
|
639
|
-
Y = oe === -1 ? i : i.slice(0, oe + 1) + i.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
640
|
-
return De ===
|
|
641
|
-
}), Y += (i.indexOf("?") === -1 ? "?" : "&") +
|
|
639
|
+
Y = oe === -1 ? i : i.slice(0, oe + 1) + i.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(be, De) {
|
|
640
|
+
return De === v ? "" : be;
|
|
641
|
+
}), Y += (i.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(N);
|
|
642
642
|
}
|
|
643
643
|
var ie = a.withCredentials, te = {};
|
|
644
644
|
te.Accept = "text/event-stream";
|
|
645
645
|
var Z = a.headers;
|
|
646
646
|
if (Z != null)
|
|
647
|
-
for (var
|
|
648
|
-
Object.prototype.hasOwnProperty.call(Z,
|
|
647
|
+
for (var ve in Z)
|
|
648
|
+
Object.prototype.hasOwnProperty.call(Z, ve) && (te[ve] = Z[ve]);
|
|
649
649
|
try {
|
|
650
|
-
_ = y.open(
|
|
651
|
-
} catch (
|
|
652
|
-
throw Xe(),
|
|
650
|
+
_ = y.open(f, xe, rt, We, Y, ie, te);
|
|
651
|
+
} catch (be) {
|
|
652
|
+
throw Xe(), be;
|
|
653
653
|
}
|
|
654
654
|
};
|
|
655
655
|
a.url = i, a.readyState = J, a.withCredentials = o, a.headers = e, a._close = Xe, Fe();
|
|
@@ -657,149 +657,149 @@ var qe = { exports: {} };
|
|
|
657
657
|
$.prototype = Object.create(F.prototype), $.prototype.CONNECTING = J, $.prototype.OPEN = re, $.prototype.CLOSED = Se, $.prototype.close = function() {
|
|
658
658
|
this._close();
|
|
659
659
|
}, $.CONNECTING = J, $.OPEN = re, $.CLOSED = Se, $.prototype.withCredentials = void 0;
|
|
660
|
-
var He =
|
|
661
|
-
l != null && (
|
|
660
|
+
var He = p;
|
|
661
|
+
l != null && (p == null || !("withCredentials" in p.prototype)) && (He = $), function(a) {
|
|
662
662
|
{
|
|
663
663
|
var i = a(t);
|
|
664
|
-
i !== void 0 && (
|
|
664
|
+
i !== void 0 && (r.exports = i);
|
|
665
665
|
}
|
|
666
666
|
}(function(a) {
|
|
667
|
-
a.EventSourcePolyfill = $, a.NativeEventSource =
|
|
667
|
+
a.EventSourcePolyfill = $, a.NativeEventSource = p, a.EventSource = He;
|
|
668
668
|
});
|
|
669
669
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ct : globalThis);
|
|
670
670
|
})(qe, qe.exports);
|
|
671
671
|
var At = qe.exports;
|
|
672
|
-
function Lt(
|
|
673
|
-
pt(
|
|
672
|
+
function Lt(r) {
|
|
673
|
+
pt(r, "svelte-15fwckg", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);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;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));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, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.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, white))}.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, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px;gap:5px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
674
674
|
}
|
|
675
|
-
function Ze(
|
|
676
|
-
const h =
|
|
675
|
+
function Ze(r, t, n) {
|
|
676
|
+
const h = r.slice();
|
|
677
677
|
return h[61] = t[n], h;
|
|
678
678
|
}
|
|
679
|
-
function $e(
|
|
680
|
-
const h =
|
|
679
|
+
function $e(r, t, n) {
|
|
680
|
+
const h = r.slice();
|
|
681
681
|
return h[64] = t[n], h;
|
|
682
682
|
}
|
|
683
|
-
function xt(
|
|
684
|
-
let t, n, h,
|
|
683
|
+
function xt(r) {
|
|
684
|
+
let t, n, h, g, l, d, w, p, b, M, U, I, S = (
|
|
685
685
|
/*showBalance*/
|
|
686
|
-
|
|
686
|
+
r[5] && et(r)
|
|
687
687
|
);
|
|
688
688
|
return {
|
|
689
689
|
c() {
|
|
690
690
|
t = V("button"), n = V("p"), h = Ae(
|
|
691
691
|
/*displayBalance*/
|
|
692
|
-
|
|
693
|
-
),
|
|
694
|
-
|
|
692
|
+
r[7]
|
|
693
|
+
), g = fe(), l = V("span"), d = Ye("svg"), w = Ye("path"), b = fe(), S && S.c(), M = vt(), L(w, "id", "arrow"), L(w, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), L(w, "transform", "translate(-274.511 -441.088)"), L(w, "fill", "#d1d1d1"), L(d, "xmlns", "http://www.w3.org/2000/svg"), L(d, "width", "14"), L(d, "height", "6.835"), L(d, "viewBox", "0 0 14 6.835"), L(l, "class", p = /*isModalDisplayed*/
|
|
694
|
+
r[4] ? "TriangleActive" : "TriangleInactive"), L(t, "class", "BalanceValue");
|
|
695
695
|
},
|
|
696
|
-
m(
|
|
697
|
-
he(
|
|
696
|
+
m(T, H) {
|
|
697
|
+
he(T, t, H), E(t, n), E(n, h), E(t, g), E(t, l), E(l, d), E(d, w), he(T, b, H), S && S.m(T, H), he(T, M, H), U || (I = Ie(
|
|
698
698
|
t,
|
|
699
699
|
"click",
|
|
700
700
|
/*click_handler*/
|
|
701
|
-
|
|
701
|
+
r[32]
|
|
702
702
|
), U = !0);
|
|
703
703
|
},
|
|
704
|
-
p(
|
|
704
|
+
p(T, H) {
|
|
705
705
|
H[0] & /*displayBalance*/
|
|
706
706
|
128 && _e(
|
|
707
707
|
h,
|
|
708
708
|
/*displayBalance*/
|
|
709
|
-
|
|
709
|
+
T[7]
|
|
710
710
|
), H[0] & /*isModalDisplayed*/
|
|
711
|
-
16 &&
|
|
712
|
-
|
|
713
|
-
|
|
711
|
+
16 && p !== (p = /*isModalDisplayed*/
|
|
712
|
+
T[4] ? "TriangleActive" : "TriangleInactive") && L(l, "class", p), /*showBalance*/
|
|
713
|
+
T[5] ? S ? S.p(T, H) : (S = et(T), S.c(), S.m(M.parentNode, M)) : S && (S.d(1), S = null);
|
|
714
714
|
},
|
|
715
|
-
d(
|
|
716
|
-
|
|
715
|
+
d(T) {
|
|
716
|
+
T && (pe(t), pe(b), pe(M)), S && S.d(T), U = !1, I();
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
|
-
function Rt(
|
|
720
|
+
function Rt(r) {
|
|
721
721
|
let t, n = (
|
|
722
722
|
/*$_*/
|
|
723
|
-
|
|
723
|
+
r[8]("Loading") + ""
|
|
724
724
|
), h;
|
|
725
725
|
return {
|
|
726
726
|
c() {
|
|
727
|
-
t = V("p"), h = Ae(n),
|
|
727
|
+
t = V("p"), h = Ae(n), L(t, "class", "Loading");
|
|
728
728
|
},
|
|
729
|
-
m(
|
|
730
|
-
he(
|
|
729
|
+
m(g, l) {
|
|
730
|
+
he(g, t, l), E(t, h);
|
|
731
731
|
},
|
|
732
|
-
p(
|
|
732
|
+
p(g, l) {
|
|
733
733
|
l[0] & /*$_*/
|
|
734
734
|
256 && n !== (n = /*$_*/
|
|
735
|
-
|
|
735
|
+
g[8]("Loading") + "") && _e(h, n);
|
|
736
736
|
},
|
|
737
|
-
d(
|
|
738
|
-
|
|
737
|
+
d(g) {
|
|
738
|
+
g && pe(t);
|
|
739
739
|
}
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
function et(
|
|
743
|
-
let t, n, h,
|
|
742
|
+
function et(r) {
|
|
743
|
+
let t, n, h, g, l, d, w, p, b = (
|
|
744
744
|
/*$_*/
|
|
745
|
-
|
|
746
|
-
), M, U, I, S,
|
|
745
|
+
r[8]("Title") + ""
|
|
746
|
+
), M, U, I, S, T, H, me = (
|
|
747
747
|
/*$_*/
|
|
748
|
-
|
|
748
|
+
r[8]("DepositButton") + ""
|
|
749
749
|
), ce, Be, P, q, ne, le, ge, W = ze(Object.keys(
|
|
750
750
|
/*balances*/
|
|
751
|
-
|
|
751
|
+
r[2]
|
|
752
752
|
)), O = [];
|
|
753
|
-
for (let
|
|
754
|
-
O[
|
|
753
|
+
for (let x = 0; x < W.length; x += 1)
|
|
754
|
+
O[x] = at(Ze(r, W, x));
|
|
755
755
|
let F = (
|
|
756
756
|
/*balancelimitsbutton*/
|
|
757
|
-
|
|
757
|
+
r[0] === "true" && nt(r)
|
|
758
758
|
);
|
|
759
759
|
return {
|
|
760
760
|
c() {
|
|
761
|
-
t = V("div"), n = V("button"),
|
|
762
|
-
for (let
|
|
763
|
-
O[
|
|
764
|
-
S = fe(),
|
|
765
|
-
(
|
|
766
|
-
(
|
|
767
|
-
(
|
|
768
|
-
(
|
|
761
|
+
t = V("div"), n = V("button"), g = fe(), l = V("div"), d = V("div"), w = V("div"), p = V("p"), M = Ae(b), U = fe(), I = V("div");
|
|
762
|
+
for (let x = 0; x < O.length; x += 1)
|
|
763
|
+
O[x].c();
|
|
764
|
+
S = fe(), T = V("div"), H = V("button"), ce = Ae(me), Be = fe(), F && F.c(), L(n, "class", h = "BalanceModalClose " + /*isModalDisplayed*/
|
|
765
|
+
(r[4] ? "Open" : "")), L(p, "class", "BalanceModalTitle"), L(w, "class", "BalanceModalHeader"), L(I, "class", "BalanceModalBody"), L(H, "class", "BalanceModalAction DepositButton"), L(T, "class", "BalanceModalFooter"), L(d, "class", P = "ModalContent " + /*isModalDisplayed*/
|
|
766
|
+
(r[4] ? "Open" : "")), L(l, "class", q = "BalanceModal " + /*isModalDisplayed*/
|
|
767
|
+
(r[4] ? "Open" : "")), L(t, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
768
|
+
(r[4] ? "Open" : ""));
|
|
769
769
|
},
|
|
770
|
-
m(
|
|
771
|
-
he(
|
|
770
|
+
m(x, z) {
|
|
771
|
+
he(x, t, z), E(t, n), E(t, g), E(t, l), E(l, d), E(d, w), E(w, p), E(p, M), E(d, U), E(d, I);
|
|
772
772
|
for (let j = 0; j < O.length; j += 1)
|
|
773
773
|
O[j] && O[j].m(I, null);
|
|
774
|
-
E(
|
|
774
|
+
E(d, S), E(d, T), E(T, H), E(H, ce), E(T, Be), F && F.m(T, null), le || (ge = [
|
|
775
775
|
Ie(
|
|
776
776
|
n,
|
|
777
777
|
"click",
|
|
778
778
|
/*click_handler_1*/
|
|
779
|
-
|
|
779
|
+
r[33]
|
|
780
780
|
),
|
|
781
781
|
Ie(
|
|
782
782
|
H,
|
|
783
783
|
"click",
|
|
784
784
|
/*click_handler_2*/
|
|
785
|
-
|
|
785
|
+
r[34]
|
|
786
786
|
)
|
|
787
787
|
], le = !0);
|
|
788
788
|
},
|
|
789
|
-
p(
|
|
789
|
+
p(x, z) {
|
|
790
790
|
if (z[0] & /*isModalDisplayed*/
|
|
791
791
|
16 && h !== (h = "BalanceModalClose " + /*isModalDisplayed*/
|
|
792
|
-
(
|
|
793
|
-
256 &&
|
|
794
|
-
|
|
792
|
+
(x[4] ? "Open" : "")) && L(n, "class", h), z[0] & /*$_*/
|
|
793
|
+
256 && b !== (b = /*$_*/
|
|
794
|
+
x[8]("Title") + "") && _e(M, b), z[0] & /*balances, formatBalance, getProductType, $_*/
|
|
795
795
|
5380) {
|
|
796
796
|
W = ze(Object.keys(
|
|
797
797
|
/*balances*/
|
|
798
|
-
|
|
798
|
+
x[2]
|
|
799
799
|
));
|
|
800
800
|
let j;
|
|
801
801
|
for (j = 0; j < W.length; j += 1) {
|
|
802
|
-
const Te = Ze(
|
|
802
|
+
const Te = Ze(x, W, j);
|
|
803
803
|
O[j] ? O[j].p(Te, z) : (O[j] = at(Te), O[j].c(), O[j].m(I, null));
|
|
804
804
|
}
|
|
805
805
|
for (; j < O.length; j += 1)
|
|
@@ -808,59 +808,59 @@ function et(s) {
|
|
|
808
808
|
}
|
|
809
809
|
z[0] & /*$_*/
|
|
810
810
|
256 && me !== (me = /*$_*/
|
|
811
|
-
|
|
812
|
-
|
|
811
|
+
x[8]("DepositButton") + "") && _e(ce, me), /*balancelimitsbutton*/
|
|
812
|
+
x[0] === "true" ? F ? F.p(x, z) : (F = nt(x), F.c(), F.m(T, null)) : F && (F.d(1), F = null), z[0] & /*isModalDisplayed*/
|
|
813
813
|
16 && P !== (P = "ModalContent " + /*isModalDisplayed*/
|
|
814
|
-
(
|
|
814
|
+
(x[4] ? "Open" : "")) && L(d, "class", P), z[0] & /*isModalDisplayed*/
|
|
815
815
|
16 && q !== (q = "BalanceModal " + /*isModalDisplayed*/
|
|
816
|
-
(
|
|
816
|
+
(x[4] ? "Open" : "")) && L(l, "class", q), z[0] & /*isModalDisplayed*/
|
|
817
817
|
16 && ne !== (ne = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
818
|
-
(
|
|
818
|
+
(x[4] ? "Open" : "")) && L(t, "class", ne);
|
|
819
819
|
},
|
|
820
|
-
d(
|
|
821
|
-
|
|
820
|
+
d(x) {
|
|
821
|
+
x && pe(t), it(O, x), F && F.d(), le = !1, bt(ge);
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
|
-
function tt(
|
|
825
|
+
function tt(r) {
|
|
826
826
|
let t, n, h = (
|
|
827
827
|
/*$_*/
|
|
828
|
-
|
|
828
|
+
r[8](
|
|
829
829
|
/*k*/
|
|
830
|
-
|
|
830
|
+
r[61]
|
|
831
831
|
) + ""
|
|
832
|
-
),
|
|
832
|
+
), g, l, d = (
|
|
833
833
|
/*getProductType*/
|
|
834
|
-
|
|
834
|
+
r[12](
|
|
835
835
|
/*balance*/
|
|
836
|
-
|
|
836
|
+
r[64]
|
|
837
837
|
) + ""
|
|
838
|
-
),
|
|
838
|
+
), w, p, b, M, U = (
|
|
839
839
|
/*formatBalance*/
|
|
840
|
-
|
|
840
|
+
r[10](
|
|
841
841
|
/*balance*/
|
|
842
|
-
|
|
842
|
+
r[64].amount
|
|
843
843
|
) + ""
|
|
844
844
|
), I;
|
|
845
845
|
return {
|
|
846
846
|
c() {
|
|
847
|
-
t = V("div"), n = V("p"),
|
|
847
|
+
t = V("div"), n = V("p"), g = Ae(h), l = fe(), w = Ae(d), p = fe(), b = V("p"), M = V("span"), I = Ae(U), L(n, "class", "BalanceModalText"), L(M, "class", "BalanceModalAmount"), L(b, "class", "BalanceModalValue"), L(t, "class", "BalanceModalRowLine");
|
|
848
848
|
},
|
|
849
|
-
m(S,
|
|
850
|
-
he(S, t,
|
|
849
|
+
m(S, T) {
|
|
850
|
+
he(S, t, T), E(t, n), E(n, g), E(n, l), E(n, w), E(t, p), E(t, b), E(b, M), E(M, I);
|
|
851
851
|
},
|
|
852
|
-
p(S,
|
|
853
|
-
|
|
852
|
+
p(S, T) {
|
|
853
|
+
T[0] & /*$_, balances*/
|
|
854
854
|
260 && h !== (h = /*$_*/
|
|
855
855
|
S[8](
|
|
856
856
|
/*k*/
|
|
857
857
|
S[61]
|
|
858
|
-
) + "") && _e(
|
|
859
|
-
4 &&
|
|
858
|
+
) + "") && _e(g, h), T[0] & /*balances*/
|
|
859
|
+
4 && d !== (d = /*getProductType*/
|
|
860
860
|
S[12](
|
|
861
861
|
/*balance*/
|
|
862
862
|
S[64]
|
|
863
|
-
) + "") && _e(
|
|
863
|
+
) + "") && _e(w, d), T[0] & /*balances*/
|
|
864
864
|
4 && U !== (U = /*formatBalance*/
|
|
865
865
|
S[10](
|
|
866
866
|
/*balance*/
|
|
@@ -872,140 +872,144 @@ function tt(s) {
|
|
|
872
872
|
}
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
|
-
function at(
|
|
876
|
-
let t, n, h = ze(
|
|
875
|
+
function at(r) {
|
|
876
|
+
let t, n, h, g = ze(
|
|
877
877
|
/*balances*/
|
|
878
|
-
|
|
878
|
+
r[2][
|
|
879
879
|
/*k*/
|
|
880
|
-
|
|
880
|
+
r[61]
|
|
881
881
|
]
|
|
882
|
-
),
|
|
883
|
-
for (let
|
|
884
|
-
|
|
882
|
+
), l = [];
|
|
883
|
+
for (let d = 0; d < g.length; d += 1)
|
|
884
|
+
l[d] = tt($e(r, g, d));
|
|
885
885
|
return {
|
|
886
886
|
c() {
|
|
887
887
|
t = V("div");
|
|
888
|
-
for (let
|
|
889
|
-
|
|
890
|
-
n = fe(),
|
|
888
|
+
for (let d = 0; d < l.length; d += 1)
|
|
889
|
+
l[d].c();
|
|
890
|
+
n = fe(), L(t, "class", h = "BalanceModalRowBoth " + /*k*/
|
|
891
|
+
r[61]);
|
|
891
892
|
},
|
|
892
|
-
m(
|
|
893
|
-
he(
|
|
894
|
-
for (let
|
|
895
|
-
|
|
893
|
+
m(d, w) {
|
|
894
|
+
he(d, t, w);
|
|
895
|
+
for (let p = 0; p < l.length; p += 1)
|
|
896
|
+
l[p] && l[p].m(t, null);
|
|
896
897
|
E(t, n);
|
|
897
898
|
},
|
|
898
|
-
p(
|
|
899
|
-
if (
|
|
899
|
+
p(d, w) {
|
|
900
|
+
if (w[0] & /*formatBalance, balances, getProductType, $_*/
|
|
900
901
|
5380) {
|
|
901
|
-
|
|
902
|
+
g = ze(
|
|
902
903
|
/*balances*/
|
|
903
|
-
|
|
904
|
+
d[2][
|
|
904
905
|
/*k*/
|
|
905
|
-
|
|
906
|
+
d[61]
|
|
906
907
|
]
|
|
907
908
|
);
|
|
908
|
-
let
|
|
909
|
-
for (
|
|
910
|
-
const
|
|
911
|
-
|
|
909
|
+
let p;
|
|
910
|
+
for (p = 0; p < g.length; p += 1) {
|
|
911
|
+
const b = $e(d, g, p);
|
|
912
|
+
l[p] ? l[p].p(b, w) : (l[p] = tt(b), l[p].c(), l[p].m(t, n));
|
|
912
913
|
}
|
|
913
|
-
for (;
|
|
914
|
-
|
|
915
|
-
|
|
914
|
+
for (; p < l.length; p += 1)
|
|
915
|
+
l[p].d(1);
|
|
916
|
+
l.length = g.length;
|
|
916
917
|
}
|
|
918
|
+
w[0] & /*balances*/
|
|
919
|
+
4 && h !== (h = "BalanceModalRowBoth " + /*k*/
|
|
920
|
+
d[61]) && L(t, "class", h);
|
|
917
921
|
},
|
|
918
|
-
d(
|
|
919
|
-
|
|
922
|
+
d(d) {
|
|
923
|
+
d && pe(t), it(l, d);
|
|
920
924
|
}
|
|
921
925
|
};
|
|
922
926
|
}
|
|
923
|
-
function nt(
|
|
927
|
+
function nt(r) {
|
|
924
928
|
let t, n = (
|
|
925
929
|
/*$_*/
|
|
926
|
-
|
|
927
|
-
), h,
|
|
930
|
+
r[8]("LimitsButton") + ""
|
|
931
|
+
), h, g, l;
|
|
928
932
|
return {
|
|
929
933
|
c() {
|
|
930
|
-
t = V("button"), h = Ae(n),
|
|
934
|
+
t = V("button"), h = Ae(n), L(t, "class", "BalanceModalAction LimitsButton");
|
|
931
935
|
},
|
|
932
|
-
m(
|
|
933
|
-
he(
|
|
936
|
+
m(d, w) {
|
|
937
|
+
he(d, t, w), E(t, h), g || (l = Ie(
|
|
934
938
|
t,
|
|
935
939
|
"click",
|
|
936
940
|
/*click_handler_3*/
|
|
937
|
-
|
|
938
|
-
),
|
|
941
|
+
r[35]
|
|
942
|
+
), g = !0);
|
|
939
943
|
},
|
|
940
|
-
p(
|
|
941
|
-
|
|
944
|
+
p(d, w) {
|
|
945
|
+
w[0] & /*$_*/
|
|
942
946
|
256 && n !== (n = /*$_*/
|
|
943
|
-
|
|
947
|
+
d[8]("LimitsButton") + "") && _e(h, n);
|
|
944
948
|
},
|
|
945
|
-
d(
|
|
946
|
-
|
|
949
|
+
d(d) {
|
|
950
|
+
d && pe(t), g = !1, l();
|
|
947
951
|
}
|
|
948
952
|
};
|
|
949
953
|
}
|
|
950
|
-
function ot(
|
|
954
|
+
function ot(r) {
|
|
951
955
|
let t, n, h;
|
|
952
956
|
return {
|
|
953
957
|
c() {
|
|
954
|
-
t = V("button"),
|
|
958
|
+
t = V("button"), L(t, "class", "ShowBalanceModalOverlay");
|
|
955
959
|
},
|
|
956
|
-
m(
|
|
957
|
-
he(
|
|
960
|
+
m(g, l) {
|
|
961
|
+
he(g, t, l), n || (h = Ie(
|
|
958
962
|
t,
|
|
959
963
|
"click",
|
|
960
964
|
/*click_handler_4*/
|
|
961
|
-
|
|
965
|
+
r[36]
|
|
962
966
|
), n = !0);
|
|
963
967
|
},
|
|
964
968
|
p: Ke,
|
|
965
|
-
d(
|
|
966
|
-
|
|
969
|
+
d(g) {
|
|
970
|
+
g && pe(t), n = !1, h();
|
|
967
971
|
}
|
|
968
972
|
};
|
|
969
973
|
}
|
|
970
|
-
function Et(
|
|
971
|
-
let t, n, h,
|
|
972
|
-
function l(
|
|
974
|
+
function Et(r) {
|
|
975
|
+
let t, n, h, g;
|
|
976
|
+
function l(b, M) {
|
|
973
977
|
return (
|
|
974
978
|
/*isLoading*/
|
|
975
|
-
|
|
979
|
+
b[3] ? Rt : xt
|
|
976
980
|
);
|
|
977
981
|
}
|
|
978
|
-
let
|
|
982
|
+
let d = l(r), w = d(r), p = (
|
|
979
983
|
/*showBalance*/
|
|
980
|
-
|
|
984
|
+
r[5] && ot(r)
|
|
981
985
|
);
|
|
982
986
|
return {
|
|
983
987
|
c() {
|
|
984
|
-
t = V("div"), n = V("div"),
|
|
985
|
-
(
|
|
988
|
+
t = V("div"), n = V("div"), w.c(), g = fe(), p && p.c(), L(n, "class", h = "ShowBalance " + /*mobileView*/
|
|
989
|
+
(r[6] ? "Mobile" : ""));
|
|
986
990
|
},
|
|
987
|
-
m(
|
|
988
|
-
he(
|
|
991
|
+
m(b, M) {
|
|
992
|
+
he(b, t, M), E(t, n), w.m(n, null), E(t, g), p && p.m(t, null), r[37](t);
|
|
989
993
|
},
|
|
990
|
-
p(
|
|
991
|
-
|
|
994
|
+
p(b, M) {
|
|
995
|
+
d === (d = l(b)) && w ? w.p(b, M) : (w.d(1), w = d(b), w && (w.c(), w.m(n, null))), M[0] & /*mobileView*/
|
|
992
996
|
64 && h !== (h = "ShowBalance " + /*mobileView*/
|
|
993
|
-
(
|
|
994
|
-
|
|
997
|
+
(b[6] ? "Mobile" : "")) && L(n, "class", h), /*showBalance*/
|
|
998
|
+
b[5] ? p ? p.p(b, M) : (p = ot(b), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
995
999
|
},
|
|
996
1000
|
i: Ke,
|
|
997
1001
|
o: Ke,
|
|
998
|
-
d(
|
|
999
|
-
|
|
1002
|
+
d(b) {
|
|
1003
|
+
b && pe(t), w.d(), p && p.d(), r[37](null);
|
|
1000
1004
|
}
|
|
1001
1005
|
};
|
|
1002
1006
|
}
|
|
1003
|
-
function Dt(
|
|
1007
|
+
function Dt(r, t, n) {
|
|
1004
1008
|
let h;
|
|
1005
|
-
ht(
|
|
1006
|
-
let { userid:
|
|
1009
|
+
ht(r, mt, (e) => n(8, h = e));
|
|
1010
|
+
let { userid: g = "" } = t, { session: l = "" } = t, { endpoint: d = "" } = t, { lang: w = "en" } = t, { mbsource: p = "" } = t, { clientstyling: b = "" } = t, { clientstylingurl: M = "" } = t, { translationurl: U = "" } = t, { gmversion: I = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { primarybalancemode: H } = t, { balancelimitsbutton: me = "false" } = t, { hideproducttype: ce = "" } = t, { currencylocale: Be = "en" } = t, { currencydisplay: P = "symbol" } = t, { maximumfractiondigits: q = "2" } = t, { minimumfractiondigits: ne = "0" } = t, { customdisplayformat: le = "" } = t, { alwaysshowdecimals: ge = "true" } = t, W, O = !0, F = !1, x = !1, z = !1, j = !1, Te = window.navigator.userAgent, ye, de = "", J = [], re, Se = "0";
|
|
1007
1011
|
const c = {}, ae = ["totalCashAmount", "totalRealAmount"], Me = () => {
|
|
1008
|
-
fetch(U).then((e) => e.json()).then((e) => Object.keys(e).forEach((
|
|
1012
|
+
fetch(U).then((e) => e.json()).then((e) => Object.keys(e).forEach((s) => Qe(s, e[s]))).catch((e) => console.log(e));
|
|
1009
1013
|
};
|
|
1010
1014
|
Object.keys(Je).forEach((e) => Qe(e, Je[e]));
|
|
1011
1015
|
const we = (e) => {
|
|
@@ -1037,7 +1041,7 @@ function Dt(s, t, n) {
|
|
|
1037
1041
|
}, ke = (e) => {
|
|
1038
1042
|
if (le)
|
|
1039
1043
|
return Ve(e);
|
|
1040
|
-
const
|
|
1044
|
+
const s = Be || w, f = {
|
|
1041
1045
|
style: "currency",
|
|
1042
1046
|
currency: de,
|
|
1043
1047
|
useGrouping: !0,
|
|
@@ -1045,51 +1049,51 @@ function Dt(s, t, n) {
|
|
|
1045
1049
|
maximumFractionDigits: q === "" || isNaN(Number(q)) ? 2 : Number(q),
|
|
1046
1050
|
minimumFractionDigits: ne === "" || isNaN(Number(ne)) ? 0 : Number(ne)
|
|
1047
1051
|
};
|
|
1048
|
-
return new Intl.NumberFormat(
|
|
1052
|
+
return new Intl.NumberFormat(s, f).format(e);
|
|
1049
1053
|
}, Ve = (e) => {
|
|
1050
|
-
const
|
|
1051
|
-
let
|
|
1054
|
+
const s = [];
|
|
1055
|
+
let f = "";
|
|
1052
1056
|
for (const y of le)
|
|
1053
1057
|
switch (y) {
|
|
1054
1058
|
default:
|
|
1055
|
-
|
|
1059
|
+
f += y;
|
|
1056
1060
|
break;
|
|
1057
1061
|
case "{":
|
|
1058
|
-
|
|
1062
|
+
f && s.push(f), f = "";
|
|
1059
1063
|
break;
|
|
1060
1064
|
case "}":
|
|
1061
|
-
const [_,
|
|
1062
|
-
if (
|
|
1063
|
-
|
|
1065
|
+
const [_, R] = f.split("|");
|
|
1066
|
+
if (f = "", _.toLowerCase() === "currency")
|
|
1067
|
+
f = de;
|
|
1064
1068
|
else if (_.toLowerCase() === "amount") {
|
|
1065
|
-
let
|
|
1066
|
-
|
|
1069
|
+
let B = ",", G = ".", se = 2;
|
|
1070
|
+
R && (R[0] !== " " && (B = R[0]), R[1] !== " " && (G = R[1]), R[2] !== " " && !isNaN(Number(R[2])) && (se = Number(R[2])));
|
|
1067
1071
|
let [ee, Ee] = String(Math.floor(e * 10 ** se) / 10 ** se).split(".");
|
|
1068
|
-
|
|
1072
|
+
f += ee[0];
|
|
1069
1073
|
for (let xe = 1; xe < ee.length; ++xe)
|
|
1070
|
-
(ee.length - xe) % 3 === 0 ?
|
|
1074
|
+
(ee.length - xe) % 3 === 0 ? f += B + ee[xe] : f += ee[xe];
|
|
1071
1075
|
let X = Ee || "";
|
|
1072
1076
|
const Ne = ge === "true", ue = Number(q);
|
|
1073
1077
|
if (Ne)
|
|
1074
1078
|
X = X.padEnd(ue || 2, "0").substring(0, ue);
|
|
1075
1079
|
else if (!X)
|
|
1076
1080
|
break;
|
|
1077
|
-
|
|
1081
|
+
f += G + X;
|
|
1078
1082
|
}
|
|
1079
|
-
|
|
1083
|
+
f && s.push(f), f = "";
|
|
1080
1084
|
break;
|
|
1081
1085
|
}
|
|
1082
|
-
return
|
|
1086
|
+
return s.push(f), s.join("");
|
|
1083
1087
|
}, Ue = async () => {
|
|
1084
1088
|
n(3, O = !0);
|
|
1085
|
-
const e = new URL(`${
|
|
1089
|
+
const e = new URL(`${d}/v1/player/${g}/account`);
|
|
1086
1090
|
try {
|
|
1087
|
-
const
|
|
1091
|
+
const s = await fetch(e, {
|
|
1088
1092
|
method: "GET",
|
|
1089
1093
|
headers: { "X-SessionID": l }
|
|
1090
|
-
}),
|
|
1091
|
-
if (
|
|
1092
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href), J =
|
|
1094
|
+
}), f = await s.json();
|
|
1095
|
+
if (s.ok)
|
|
1096
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), J = f.items, de = J.find((y) => y.displayName === "Casino")?.currency, n(2, c.Total = [{ amount: f.totalAmount[de] }], c), n(
|
|
1093
1097
|
2,
|
|
1094
1098
|
c.Real = [
|
|
1095
1099
|
{
|
|
@@ -1108,35 +1112,35 @@ function Dt(s, t, n) {
|
|
|
1108
1112
|
);
|
|
1109
1113
|
else
|
|
1110
1114
|
throw new Error("Failed to fetch balance data !");
|
|
1111
|
-
} catch (
|
|
1112
|
-
console.log("Balance error: ",
|
|
1115
|
+
} catch (s) {
|
|
1116
|
+
console.log("Balance error: ", s);
|
|
1113
1117
|
} finally {
|
|
1114
1118
|
n(3, O = !1);
|
|
1115
1119
|
}
|
|
1116
1120
|
}, Pe = () => {
|
|
1117
1121
|
n(3, O = !0);
|
|
1118
|
-
const e = new URL(`${
|
|
1119
|
-
|
|
1120
|
-
y[
|
|
1121
|
-
const _ = y.items.find((
|
|
1122
|
-
if (de = _.currency,
|
|
1122
|
+
const e = new URL(`${d}/v2/player/${g}/balance`), s = new Headers();
|
|
1123
|
+
s.append("X-SessionID", l), fetch(e, { method: "GET", headers: s }).then((y) => y.json()).then((y) => {
|
|
1124
|
+
y[T] || n(13, T = ae[0]);
|
|
1125
|
+
const _ = y.items.find((B) => B.type === "Real" && B.walletAccountType === "Ordinary");
|
|
1126
|
+
if (de = _.currency, x = !!_.productType, n(2, c.Total = [{ amount: 0 }], c), n(2, c.Real = [], c), n(2, c.Bonus = [], c), n(2, c.Credit = [], c), !x) {
|
|
1123
1127
|
re = {
|
|
1124
1128
|
lastOrdinaryAfterAmount: 0,
|
|
1125
1129
|
showCreditLineAfterAmount: !1
|
|
1126
|
-
}, n(2, c.Total[0].amount = y[
|
|
1127
|
-
for (const
|
|
1128
|
-
switch (
|
|
1130
|
+
}, n(2, c.Total[0].amount = y[T][de], c);
|
|
1131
|
+
for (const B of y.items)
|
|
1132
|
+
switch (B.type) {
|
|
1129
1133
|
case "Bonus":
|
|
1130
|
-
c.Bonus.length === 0 ? c.Bonus.push({ amount:
|
|
1134
|
+
c.Bonus.length === 0 ? c.Bonus.push({ amount: B.amount }) : n(2, c.Bonus[0].amount += B.amount, c);
|
|
1131
1135
|
break;
|
|
1132
1136
|
case "Real":
|
|
1133
|
-
if (
|
|
1137
|
+
if (B.creditLine && c.Credit.length === 0 && c.Credit.push({ amount: B.creditLine }), T === "totalRealAmount")
|
|
1134
1138
|
continue;
|
|
1135
|
-
c.Real.length === 0 ? c.Real.push({ amount:
|
|
1139
|
+
c.Real.length === 0 ? c.Real.push({ amount: B.amount }) : n(2, c.Real[0].amount += B.amount, c);
|
|
1136
1140
|
break;
|
|
1137
1141
|
}
|
|
1138
|
-
for (const [
|
|
1139
|
-
G.length < 1 && delete c[
|
|
1142
|
+
for (const [B, G] of Object.entries(c))
|
|
1143
|
+
G.length < 1 && delete c[B];
|
|
1140
1144
|
n(3, O = !1);
|
|
1141
1145
|
return;
|
|
1142
1146
|
}
|
|
@@ -1150,31 +1154,31 @@ function Dt(s, t, n) {
|
|
|
1150
1154
|
showCreditLineAfterAmount: !1
|
|
1151
1155
|
}
|
|
1152
1156
|
};
|
|
1153
|
-
let
|
|
1154
|
-
S && S !== "All" && (
|
|
1155
|
-
for (const
|
|
1157
|
+
let R = y.items;
|
|
1158
|
+
S && S !== "All" && (R = y.items.filter((B) => B.productType === S));
|
|
1159
|
+
for (const B of R) {
|
|
1156
1160
|
let G;
|
|
1157
|
-
switch (
|
|
1161
|
+
switch (B.type) {
|
|
1158
1162
|
case "Bonus":
|
|
1159
|
-
G = c.Bonus.findIndex((se) => se.productType ===
|
|
1160
|
-
amount:
|
|
1161
|
-
productType:
|
|
1163
|
+
G = c.Bonus.findIndex((se) => se.productType === B.productType), G > 0 ? n(2, c.Bonus[G].amount += B.amount, c) : c.Bonus.push({
|
|
1164
|
+
amount: B.amount,
|
|
1165
|
+
productType: B.productType
|
|
1162
1166
|
});
|
|
1163
1167
|
break;
|
|
1164
1168
|
case "Real":
|
|
1165
|
-
|
|
1166
|
-
amount:
|
|
1167
|
-
productType:
|
|
1168
|
-
}), G = c.Real.findIndex((se) => se.productType ===
|
|
1169
|
-
amount:
|
|
1170
|
-
productType:
|
|
1169
|
+
B.creditLine && c.Credit.push({
|
|
1170
|
+
amount: B.creditLine,
|
|
1171
|
+
productType: B.productType
|
|
1172
|
+
}), G = c.Real.findIndex((se) => se.productType === B.productType), G > 0 ? n(2, c.Real[G].amount += B.amount, c) : c.Real.push({
|
|
1173
|
+
amount: B.amount,
|
|
1174
|
+
productType: B.productType
|
|
1171
1175
|
});
|
|
1172
1176
|
break;
|
|
1173
1177
|
}
|
|
1174
1178
|
}
|
|
1175
1179
|
je();
|
|
1176
|
-
for (const [
|
|
1177
|
-
G.length < 1 && delete c[
|
|
1180
|
+
for (const [B, G] of Object.entries(c))
|
|
1181
|
+
G.length < 1 && delete c[B];
|
|
1178
1182
|
window.postMessage({ type: "playerBalanceInfo", balance: y }, window.location.href), n(3, O = !1);
|
|
1179
1183
|
}).catch((y) => {
|
|
1180
1184
|
throw n(3, O = !1), console.log("Balance fetch error", y), new Error("Failed to fetch balance data!");
|
|
@@ -1182,88 +1186,88 @@ function Dt(s, t, n) {
|
|
|
1182
1186
|
}, Le = () => {
|
|
1183
1187
|
if (ye && ye.close(), l.length < 1)
|
|
1184
1188
|
return;
|
|
1185
|
-
let e,
|
|
1189
|
+
let e, s;
|
|
1186
1190
|
switch (I) {
|
|
1187
1191
|
case "gm16":
|
|
1188
|
-
e = new URL(`${
|
|
1192
|
+
e = new URL(`${d}/v2/player/${g}/information/updates`), s = (_) => Ge(_);
|
|
1189
1193
|
break;
|
|
1190
1194
|
case "gmcore":
|
|
1191
|
-
e = new URL(`${
|
|
1195
|
+
e = new URL(`${d}/v1/player/${g}/balance/updates`), s = (_) => Ce(_);
|
|
1192
1196
|
break;
|
|
1193
1197
|
}
|
|
1194
|
-
const
|
|
1198
|
+
const f = {
|
|
1195
1199
|
accept: "text/event-stream",
|
|
1196
1200
|
"X-SessionId": l
|
|
1197
|
-
}, y = new At.EventSourcePolyfill(e, { headers:
|
|
1198
|
-
ye = y, y.addEventListener("message",
|
|
1201
|
+
}, y = new At.EventSourcePolyfill(e, { headers: f });
|
|
1202
|
+
ye = y, y.addEventListener("message", s);
|
|
1199
1203
|
}, Re = (e) => {
|
|
1200
|
-
let
|
|
1204
|
+
let s;
|
|
1201
1205
|
try {
|
|
1202
|
-
|
|
1203
|
-
} catch (
|
|
1204
|
-
console.log("Balance stream failed: ",
|
|
1206
|
+
s = JSON.parse(e);
|
|
1207
|
+
} catch (f) {
|
|
1208
|
+
console.log("Balance stream failed: ", f);
|
|
1205
1209
|
return;
|
|
1206
1210
|
}
|
|
1207
|
-
return
|
|
1211
|
+
return s;
|
|
1208
1212
|
}, Ce = (e) => {
|
|
1209
|
-
const
|
|
1210
|
-
if (!
|
|
1213
|
+
const s = Re(e.data);
|
|
1214
|
+
if (!s) {
|
|
1211
1215
|
Le();
|
|
1212
1216
|
return;
|
|
1213
1217
|
}
|
|
1214
|
-
let
|
|
1215
|
-
const y =
|
|
1218
|
+
let f = "0";
|
|
1219
|
+
const y = s.balanceChange;
|
|
1216
1220
|
J = J.map((_) => (y && y[_.id] && (_ = {
|
|
1217
1221
|
..._,
|
|
1218
1222
|
balanceAmount: y[_.id].afterAmount
|
|
1219
|
-
}),
|
|
1220
|
-
}, $ = (e,
|
|
1223
|
+
}), f = (parseFloat(_?.balanceAmount) + parseFloat(f)).toString(), _)), n(2, c.Real = [{ amount: J[0]?.balanceAmount }], c), n(2, c.Bonus = [{ amount: J[1]?.balanceAmount }], c), n(2, c.Total = [{ amount: Number(f) }], c);
|
|
1224
|
+
}, $ = (e, s, f) => {
|
|
1221
1225
|
let y = null;
|
|
1222
|
-
switch (
|
|
1226
|
+
switch (f.walletAccountType) {
|
|
1223
1227
|
case "Ordinary":
|
|
1224
|
-
(
|
|
1228
|
+
(f.afterAmount !== f.affectedAmount || s.lastOrdinaryAfterAmount === 0) && (s.lastOrdinaryAfterAmount = f.afterAmount, s.showCreditLineAfterAmount || (y = f.afterAmount));
|
|
1225
1229
|
break;
|
|
1226
1230
|
case "CreditLine":
|
|
1227
|
-
|
|
1231
|
+
f.afterAmount !== 0 ? (y = f.afterAmount, s.showCreditLineAfterAmount = !0) : (y = s.lastOrdinaryAfterAmount, s.showCreditLineAfterAmount = !1);
|
|
1228
1232
|
break;
|
|
1229
1233
|
default:
|
|
1230
|
-
y =
|
|
1234
|
+
y = f.afterAmount;
|
|
1231
1235
|
}
|
|
1232
1236
|
return y === null ? e : y;
|
|
1233
1237
|
}, je = () => {
|
|
1234
|
-
switch (
|
|
1238
|
+
switch (T) {
|
|
1235
1239
|
case "totalCashAmount":
|
|
1236
1240
|
let e = 0;
|
|
1237
|
-
for (const
|
|
1238
|
-
for (const y of c[
|
|
1241
|
+
for (const f of ["Real", "Bonus"])
|
|
1242
|
+
for (const y of c[f])
|
|
1239
1243
|
e += Math.max(y.amount, 0);
|
|
1240
1244
|
n(2, c.Total[0].amount = e, c);
|
|
1241
1245
|
break;
|
|
1242
1246
|
case "totalRealAmount":
|
|
1243
|
-
if (!
|
|
1247
|
+
if (!x)
|
|
1244
1248
|
return;
|
|
1245
|
-
let
|
|
1246
|
-
for (const
|
|
1247
|
-
|
|
1248
|
-
n(2, c.Total[0].amount =
|
|
1249
|
+
let s = 0;
|
|
1250
|
+
for (const f of c.Real)
|
|
1251
|
+
s += f.amount;
|
|
1252
|
+
n(2, c.Total[0].amount = s, c);
|
|
1249
1253
|
}
|
|
1250
1254
|
}, Ge = (e) => {
|
|
1251
|
-
const
|
|
1252
|
-
if (!
|
|
1255
|
+
const s = Re(e.data);
|
|
1256
|
+
if (!s) {
|
|
1253
1257
|
Le();
|
|
1254
1258
|
return;
|
|
1255
1259
|
}
|
|
1256
|
-
if (He(
|
|
1260
|
+
if (He(s?.type) || s.type !== "BALANCE_UPDATE_V2")
|
|
1257
1261
|
return;
|
|
1258
|
-
const
|
|
1259
|
-
for (const [y, _] of Object.entries(
|
|
1260
|
-
if (
|
|
1261
|
-
for (const
|
|
1262
|
-
if (!
|
|
1263
|
-
|
|
1262
|
+
const f = s.body.balanceChange;
|
|
1263
|
+
for (const [y, _] of Object.entries(f))
|
|
1264
|
+
if (T === "totalRealAmount" && y === "Real" && !x && n(2, c.Total[0].amount = $(c.Total[0].amount, re, _), c), !!c[y])
|
|
1265
|
+
for (const R of c[y]) {
|
|
1266
|
+
if (!x) {
|
|
1267
|
+
R.amount = y === "Real" ? $(R.amount, re, _) : _.afterAmount;
|
|
1264
1268
|
continue;
|
|
1265
1269
|
}
|
|
1266
|
-
_.productType ===
|
|
1270
|
+
_.productType === R.productType && (R.amount = y === "Real" ? $(R.amount, re[R.productType], _) : _.afterAmount);
|
|
1267
1271
|
}
|
|
1268
1272
|
je();
|
|
1269
1273
|
}, Oe = (e) => {
|
|
@@ -1277,9 +1281,9 @@ function Dt(s, t, n) {
|
|
|
1277
1281
|
}
|
|
1278
1282
|
typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
1279
1283
|
}, He = (e) => e === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, a = () => {
|
|
1280
|
-
ae.includes(
|
|
1284
|
+
ae.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(13, T = ae[0]));
|
|
1281
1285
|
}, i = () => {
|
|
1282
|
-
switch (_t(
|
|
1286
|
+
switch (_t(w), a(), I) {
|
|
1283
1287
|
case "gmcore":
|
|
1284
1288
|
Ue();
|
|
1285
1289
|
break;
|
|
@@ -1289,9 +1293,9 @@ function Dt(s, t, n) {
|
|
|
1289
1293
|
default:
|
|
1290
1294
|
throw Error(`Invalid apiversion attribute: ${I}`);
|
|
1291
1295
|
}
|
|
1292
|
-
},
|
|
1293
|
-
const { data: { type:
|
|
1294
|
-
switch (
|
|
1296
|
+
}, u = (e) => {
|
|
1297
|
+
const { data: { type: s } = {} } = e || {};
|
|
1298
|
+
switch (s) {
|
|
1295
1299
|
case "LogoutSuccessfull":
|
|
1296
1300
|
ye.close();
|
|
1297
1301
|
break;
|
|
@@ -1301,12 +1305,12 @@ function Dt(s, t, n) {
|
|
|
1301
1305
|
}
|
|
1302
1306
|
}, o = () => {
|
|
1303
1307
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
1304
|
-
},
|
|
1305
|
-
const
|
|
1306
|
-
return !e.productType ||
|
|
1308
|
+
}, v = (e) => {
|
|
1309
|
+
const s = ce.split(",").map((f) => f.trim());
|
|
1310
|
+
return !e.productType || s.includes(e.productType) ? "" : h(e.productType);
|
|
1307
1311
|
};
|
|
1308
|
-
gt(() => (window.addEventListener("message",
|
|
1309
|
-
window.removeEventListener("message",
|
|
1312
|
+
gt(() => (window.addEventListener("message", u, !1), n(6, j = yt(Te)), () => {
|
|
1313
|
+
window.removeEventListener("message", u), ye && ye.close();
|
|
1310
1314
|
}));
|
|
1311
1315
|
const m = () => we("balance"), C = () => we("closebalance"), N = () => Oe("deposit"), A = () => Oe("limits"), D = () => we("closebalance");
|
|
1312
1316
|
function k(e) {
|
|
@@ -1314,17 +1318,17 @@ function Dt(s, t, n) {
|
|
|
1314
1318
|
W = e, n(1, W);
|
|
1315
1319
|
});
|
|
1316
1320
|
}
|
|
1317
|
-
return
|
|
1318
|
-
"userid" in e && n(14,
|
|
1319
|
-
},
|
|
1320
|
-
|
|
1321
|
-
12828672 &&
|
|
1322
|
-
4308992 &&
|
|
1323
|
-
2097152 && U && Me(),
|
|
1324
|
-
4 && c.Total && o(),
|
|
1325
|
-
524290 &&
|
|
1326
|
-
1048578 && M && W && Tt(W, M),
|
|
1327
|
-
262146 &&
|
|
1321
|
+
return r.$$set = (e) => {
|
|
1322
|
+
"userid" in e && n(14, g = e.userid), "session" in e && n(15, l = e.session), "endpoint" in e && n(16, d = e.endpoint), "lang" in e && n(17, w = e.lang), "mbsource" in e && n(18, p = e.mbsource), "clientstyling" in e && n(19, b = e.clientstyling), "clientstylingurl" in e && n(20, M = e.clientstylingurl), "translationurl" in e && n(21, U = e.translationurl), "gmversion" in e && n(22, I = e.gmversion), "displaybalanceoption" in e && n(23, S = e.displaybalanceoption), "totalcalculationmode" in e && n(13, T = e.totalcalculationmode), "primarybalancemode" in e && n(24, H = e.primarybalancemode), "balancelimitsbutton" in e && n(0, me = e.balancelimitsbutton), "hideproducttype" in e && n(25, ce = e.hideproducttype), "currencylocale" in e && n(26, Be = e.currencylocale), "currencydisplay" in e && n(27, P = e.currencydisplay), "maximumfractiondigits" in e && n(28, q = e.maximumfractiondigits), "minimumfractiondigits" in e && n(29, ne = e.minimumfractiondigits), "customdisplayformat" in e && n(30, le = e.customdisplayformat), "alwaysshowdecimals" in e && n(31, ge = e.alwaysshowdecimals);
|
|
1323
|
+
}, r.$$.update = () => {
|
|
1324
|
+
r.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
1325
|
+
12828672 && d && g && l && w && I && S && i(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
1326
|
+
4308992 && d && g && l && I && Le(), r.$$.dirty[0] & /*translationurl*/
|
|
1327
|
+
2097152 && U && Me(), r.$$.dirty[0] & /*balances*/
|
|
1328
|
+
4 && c.Total && o(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1329
|
+
524290 && b && W && Bt(W, b), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1330
|
+
1048578 && M && W && Tt(W, M), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1331
|
+
262146 && p && W && St(W, `${p}.Style`), r.$$.dirty[0] & /*primarybalancemode, balances*/
|
|
1328
1332
|
16777220 && n(7, Se = (() => {
|
|
1329
1333
|
switch (H) {
|
|
1330
1334
|
case "Real":
|
|
@@ -1346,14 +1350,14 @@ function Dt(s, t, n) {
|
|
|
1346
1350
|
we,
|
|
1347
1351
|
ke,
|
|
1348
1352
|
Oe,
|
|
1349
|
-
w,
|
|
1350
1353
|
v,
|
|
1351
|
-
u,
|
|
1352
|
-
l,
|
|
1353
|
-
g,
|
|
1354
|
-
f,
|
|
1355
1354
|
T,
|
|
1356
|
-
|
|
1355
|
+
g,
|
|
1356
|
+
l,
|
|
1357
|
+
d,
|
|
1358
|
+
w,
|
|
1359
|
+
p,
|
|
1360
|
+
b,
|
|
1357
1361
|
M,
|
|
1358
1362
|
U,
|
|
1359
1363
|
I,
|