@everymatrix/casino-header-controller-nd 1.63.3 → 1.64.1
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/{CasinoHamburgerMenuNd-C4zQY1Rz.js → CasinoHamburgerMenuNd-BxWLDWZ5.js} +49 -49
- package/components/{CasinoHamburgerMenuNd-DnRgxoEm.js → CasinoHamburgerMenuNd-CeWCMWYl.js} +44 -44
- package/components/{CasinoHamburgerMenuNd-C2U2lDM0.cjs → CasinoHamburgerMenuNd-O-PRlnMz.cjs} +1 -1
- package/components/CasinoHeaderControllerNd-CTyMPgc8.cjs +1 -0
- package/components/{CasinoHeaderControllerNd-D9_tF2bZ.js → CasinoHeaderControllerNd-D6NhFxiN.js} +264 -264
- package/components/{CasinoHeaderControllerNd-DIGHkFBp.js → CasinoHeaderControllerNd-aUO-S_lK.js} +236 -236
- package/components/{PlayerAccountBalanceModalNd-C5oBU2Bt.js → PlayerAccountBalanceModalNd-DbcCF918.js} +324 -324
- package/components/PlayerAccountBalanceModalNd-HF9Pz73L.cjs +13 -0
- package/components/{PlayerAccountBalanceModalNd-L1Wi3gul.js → PlayerAccountBalanceModalNd-rfc81TO2.js} +295 -295
- package/components/{PlayerDeposit-BM41EGHl.js → PlayerDeposit-BuNxS4QP.js} +22 -22
- package/components/PlayerDeposit-D44C3eN3.cjs +1 -0
- package/components/{PlayerDeposit-B_HRtE2U.js → PlayerDeposit-DM587AOh.js} +22 -22
- 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/package.json +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B5TUPoPs.js → gamification-dropdown-8eb8a896-B80HjrXs.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-CNDebAQo.js → gamification-dropdown-8eb8a896-Dpy7kYRl.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B8CcqKs3.cjs → gamification-dropdown-8eb8a896-wUq7QkNM.cjs} +1 -1
- package/stencil/{gamification-dropdown-DXlyb6GA.js → gamification-dropdown-DJjY7-I6.js} +1 -1
- package/stencil/{gamification-dropdown-Bg0tW7ha.cjs → gamification-dropdown-DkDy6E4e.cjs} +1 -1
- package/stencil/{gamification-dropdown-7bHznlgt.js → gamification-dropdown-N2ywJkem.js} +1 -1
- package/stencil/{gamification-dropdown_4-Blt8-SSN.cjs → gamification-dropdown_4-B2a2BjCo.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-C304wJye.js → gamification-dropdown_4-CcWOoutw.js} +4 -4
- package/stencil/{gamification-dropdown_4-BskNa0nU.js → gamification-dropdown_4-CmDM3hBS.js} +4 -4
- package/stencil/{index-71b1bdfa-BcIWqICi.js → index-71b1bdfa-BWeAgaw2.js} +4 -4
- package/stencil/{index-71b1bdfa-DJwBo2rv.cjs → index-71b1bdfa-BeszNvNP.cjs} +1 -1
- package/stencil/{index-71b1bdfa-BNR9dJmZ.js → index-71b1bdfa-DBUT8z-D.js} +4 -4
- package/stencil/{player-elevate-card-D_EV-YVW.js → player-elevate-card-B70rn287.js} +2 -2
- package/stencil/{player-elevate-card-WtXwQ6BK.js → player-elevate-card-DqZR4w--.js} +2 -2
- package/stencil/{player-elevate-card-Da18eACv.cjs → player-elevate-card-W6LcGGe8.cjs} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-C8y5xd3m.js → player-elevate-card-items-66be34fb-D7zHppoa.js} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-DARKYMdQ.cjs → player-elevate-card-items-66be34fb-DBIZuvGZ.cjs} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-Bl4Mdtm2.js → player-elevate-card-items-66be34fb-aPLlnN0e.js} +1 -1
- package/stencil/{player-elevate-pointcard-DEGlZBo6.js → player-elevate-pointcard-CBapQeNI.js} +2 -2
- package/stencil/{player-elevate-pointcard-DGdQLOFe.js → player-elevate-pointcard-DREgIjCm.js} +2 -2
- package/stencil/{player-elevate-pointcard-Akuofz_v.cjs → player-elevate-pointcard-DwDhlXwq.cjs} +1 -1
- package/stencil/{player-rakeback-card-CNHOtnA1.cjs → player-rakeback-card-B0P7gHIA.cjs} +1 -1
- package/stencil/{player-rakeback-card-CMKK-24q.js → player-rakeback-card-tP823Fs8.js} +1 -1
- package/stencil/{player-rakeback-card-CHzbUYFI.js → player-rakeback-card-z_ugBu0q.js} +1 -1
- package/components/CasinoHeaderControllerNd-BkrJSdpA.cjs +0 -1
- package/components/PlayerAccountBalanceModalNd-DfYDbSNy.cjs +0 -13
- package/components/PlayerDeposit-ClC_cCaC.cjs +0 -1
|
@@ -10,27 +10,27 @@ var Ze = (o, t, n) => t in o ? gt(o, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
wt.call(t, n) && Ze(o, n, t[n]);
|
|
11
11
|
return o;
|
|
12
12
|
}, et = (o, t) => mt(o, yt(t));
|
|
13
|
-
var tt = (o, t, n) => new Promise((i,
|
|
13
|
+
var tt = (o, t, n) => new Promise((i, u) => {
|
|
14
14
|
var c = (m) => {
|
|
15
15
|
try {
|
|
16
16
|
p(n.next(m));
|
|
17
17
|
} catch (y) {
|
|
18
|
-
|
|
18
|
+
u(y);
|
|
19
19
|
}
|
|
20
20
|
}, g = (m) => {
|
|
21
21
|
try {
|
|
22
22
|
p(n.throw(m));
|
|
23
23
|
} catch (y) {
|
|
24
|
-
|
|
24
|
+
u(y);
|
|
25
25
|
}
|
|
26
26
|
}, p = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(c, g);
|
|
27
27
|
p((n = n.apply(o, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { b as bt, $ as Bt, N as Tt, S as St, i as Ct, s as _t, f as W, d as At, z as qe, g as pe, m as he, n as B, p as
|
|
29
|
+
import { b as bt, $ as Bt, N as Tt, S as St, i as Ct, s as _t, f as W, d as At, z as qe, g as pe, m as he, n as B, p as j, q as oe, r as C, v as Rt, w as Et, o as Ve, A as xt, D as de, E as fe, F as nt, y as Mt, G as je, H as dt, C as Dt, K as Lt, L as Ot, M as kt, c as Ft, J as It } from "./CasinoHamburgerMenuNd-CeWCMWYl.js";
|
|
30
30
|
function at(o, t) {
|
|
31
31
|
bt(o, t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Nt(o) {
|
|
34
34
|
Bt.set(o);
|
|
35
35
|
}
|
|
36
36
|
const ot = {
|
|
@@ -241,7 +241,7 @@ var We = { exports: {} };
|
|
|
241
241
|
*/
|
|
242
242
|
(function(o, t) {
|
|
243
243
|
(function(n) {
|
|
244
|
-
var i = n.setTimeout,
|
|
244
|
+
var i = n.setTimeout, u = n.clearTimeout, c = n.XMLHttpRequest, g = n.XDomainRequest, p = n.ActiveXObject, m = n.EventSource, y = n.document, A = n.Promise, k = n.fetch, F = n.Response, I = n.TextDecoder, N = n.TextEncoder, E = n.AbortController;
|
|
245
245
|
if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(e) {
|
|
246
246
|
y.readyState = "complete";
|
|
247
247
|
}, !1)), c == null && p != null && (c = function() {
|
|
@@ -253,8 +253,8 @@ var We = { exports: {} };
|
|
|
253
253
|
}), Date.now || (Date.now = function() {
|
|
254
254
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
255
255
|
}), E == null) {
|
|
256
|
-
var w =
|
|
257
|
-
|
|
256
|
+
var w = k;
|
|
257
|
+
k = function(e, r) {
|
|
258
258
|
var s = r.signal;
|
|
259
259
|
return w(e, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(a) {
|
|
260
260
|
var h = a.body.getReader();
|
|
@@ -300,75 +300,75 @@ var We = { exports: {} };
|
|
|
300
300
|
return 3;
|
|
301
301
|
throw new Error();
|
|
302
302
|
}
|
|
303
|
-
for (var a = 65533, h = "", f = this.bitsNeeded, l = this.codePoint,
|
|
304
|
-
var b = e[
|
|
303
|
+
for (var a = 65533, h = "", f = this.bitsNeeded, l = this.codePoint, S = 0; S < e.length; S += 1) {
|
|
304
|
+
var b = e[S];
|
|
305
305
|
f !== 0 && (b < 128 || b > 191 || !r(l << 6 | b & 63, f - 6, s(f, l))) && (f = 0, l = a, h += String.fromCharCode(l)), f === 0 ? (b >= 0 && b <= 127 ? (f = 0, l = b) : b >= 192 && b <= 223 ? (f = 6 * 1, l = b & 31) : b >= 224 && b <= 239 ? (f = 6 * 2, l = b & 15) : b >= 240 && b <= 247 ? (f = 6 * 3, l = b & 7) : (f = 0, l = a), f !== 0 && !r(l, f, s(f, l)) && (f = 0, l = a)) : (f -= 6, l = l << 6 | b & 63), f === 0 && (l <= 65535 ? h += String.fromCharCode(l) : (h += String.fromCharCode(55296 + (l - 65535 - 1 >> 10)), h += String.fromCharCode(56320 + (l - 65535 - 1 & 1023))));
|
|
306
306
|
}
|
|
307
307
|
return this.bitsNeeded = f, this.codePoint = l, h;
|
|
308
308
|
};
|
|
309
|
-
var
|
|
309
|
+
var H = function() {
|
|
310
310
|
try {
|
|
311
|
-
return new
|
|
311
|
+
return new I().decode(new N().encode("test"), { stream: !0 }) === "test";
|
|
312
312
|
} catch (e) {
|
|
313
313
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
314
314
|
}
|
|
315
315
|
return !1;
|
|
316
316
|
};
|
|
317
|
-
(
|
|
318
|
-
var
|
|
317
|
+
(I == null || N == null || !H()) && (I = T);
|
|
318
|
+
var x = function() {
|
|
319
319
|
};
|
|
320
|
-
function
|
|
321
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
320
|
+
function z(e) {
|
|
321
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = x, this.onload = x, this.onerror = x, this.onreadystatechange = x, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = x;
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
z.prototype.open = function(e, r) {
|
|
324
324
|
this._abort(!0);
|
|
325
325
|
var s = this, a = this._xhr, h = 1, f = 0;
|
|
326
326
|
this._abort = function(v) {
|
|
327
|
-
s._sendTimeout !== 0 && (
|
|
327
|
+
s._sendTimeout !== 0 && (u(s._sendTimeout), s._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = x, a.onerror = x, a.onabort = x, a.onprogress = x, a.onreadystatechange = x, a.abort(), f !== 0 && (u(f), f = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), h = 0;
|
|
328
328
|
};
|
|
329
329
|
var l = function() {
|
|
330
330
|
if (h === 1) {
|
|
331
|
-
var v = 0,
|
|
331
|
+
var v = 0, V = "", se = void 0;
|
|
332
332
|
if ("contentType" in a)
|
|
333
|
-
v = 200,
|
|
333
|
+
v = 200, V = "OK", se = a.contentType;
|
|
334
334
|
else
|
|
335
335
|
try {
|
|
336
|
-
v = a.status,
|
|
337
|
-
} catch (
|
|
338
|
-
v = 0,
|
|
336
|
+
v = a.status, V = a.statusText, se = a.getResponseHeader("Content-Type");
|
|
337
|
+
} catch (Me) {
|
|
338
|
+
v = 0, V = "", se = void 0;
|
|
339
339
|
}
|
|
340
|
-
v !== 0 && (h = 2, s.readyState = 2, s.status = v, s.statusText =
|
|
340
|
+
v !== 0 && (h = 2, s.readyState = 2, s.status = v, s.statusText = V, s._contentType = se, s.onreadystatechange());
|
|
341
341
|
}
|
|
342
|
-
},
|
|
342
|
+
}, S = function() {
|
|
343
343
|
if (l(), h === 2 || h === 3) {
|
|
344
344
|
h = 3;
|
|
345
345
|
var v = "";
|
|
346
346
|
try {
|
|
347
347
|
v = a.responseText;
|
|
348
|
-
} catch (
|
|
348
|
+
} catch (V) {
|
|
349
349
|
}
|
|
350
350
|
s.readyState = 3, s.responseText = v, s.onprogress();
|
|
351
351
|
}
|
|
352
|
-
}, b = function(v,
|
|
353
|
-
if ((
|
|
354
|
-
preventDefault:
|
|
355
|
-
}),
|
|
356
|
-
if (h = 4, f !== 0 && (
|
|
357
|
-
s.onload(
|
|
352
|
+
}, b = function(v, V) {
|
|
353
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
354
|
+
preventDefault: x
|
|
355
|
+
}), S(), h === 1 || h === 2 || h === 3) {
|
|
356
|
+
if (h = 4, f !== 0 && (u(f), f = 0), s.readyState = 4, v === "load")
|
|
357
|
+
s.onload(V);
|
|
358
358
|
else if (v === "error")
|
|
359
|
-
s.onerror(
|
|
359
|
+
s.onerror(V);
|
|
360
360
|
else if (v === "abort")
|
|
361
|
-
s.onabort(
|
|
361
|
+
s.onabort(V);
|
|
362
362
|
else
|
|
363
363
|
throw new TypeError();
|
|
364
364
|
s.onreadystatechange();
|
|
365
365
|
}
|
|
366
366
|
}, R = function(v) {
|
|
367
|
-
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && b(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a ||
|
|
367
|
+
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && b(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || S() : a.readyState === 2 && l());
|
|
368
368
|
}, D = function() {
|
|
369
369
|
f = i(function() {
|
|
370
370
|
D();
|
|
371
|
-
}, 500), a.readyState === 3 &&
|
|
371
|
+
}, 500), a.readyState === 3 && S();
|
|
372
372
|
};
|
|
373
373
|
"onload" in a && (a.onload = function(v) {
|
|
374
374
|
b("load", v);
|
|
@@ -376,21 +376,21 @@ var We = { exports: {} };
|
|
|
376
376
|
b("error", v);
|
|
377
377
|
}), "onabort" in a && (a.onabort = function(v) {
|
|
378
378
|
b("abort", v);
|
|
379
|
-
}), "onprogress" in a && (a.onprogress =
|
|
379
|
+
}), "onprogress" in a && (a.onprogress = S), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
|
|
380
380
|
R(v);
|
|
381
381
|
}), ("contentType" in a || !("ontimeout" in c.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, r, !0), "readyState" in a && (f = i(function() {
|
|
382
382
|
D();
|
|
383
383
|
}, 0));
|
|
384
|
-
},
|
|
384
|
+
}, z.prototype.abort = function() {
|
|
385
385
|
this._abort(!1);
|
|
386
|
-
},
|
|
386
|
+
}, z.prototype.getResponseHeader = function(e) {
|
|
387
387
|
return this._contentType;
|
|
388
|
-
},
|
|
388
|
+
}, z.prototype.setRequestHeader = function(e, r) {
|
|
389
389
|
var s = this._xhr;
|
|
390
390
|
"setRequestHeader" in s && s.setRequestHeader(e, r);
|
|
391
|
-
},
|
|
391
|
+
}, z.prototype.getAllResponseHeaders = function() {
|
|
392
392
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
393
|
-
},
|
|
393
|
+
}, z.prototype.send = function() {
|
|
394
394
|
if ((!("ontimeout" in c.prototype) || !("sendAsBinary" in c.prototype) && !("mozAnon" in c.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
|
|
395
395
|
var e = this;
|
|
396
396
|
e._sendTimeout = i(function() {
|
|
@@ -414,8 +414,8 @@ var We = { exports: {} };
|
|
|
414
414
|
function ee(e) {
|
|
415
415
|
for (var r = /* @__PURE__ */ Object.create(null), s = e.split(`\r
|
|
416
416
|
`), a = 0; a < s.length; a += 1) {
|
|
417
|
-
var h = s[a], f = h.split(": "), l = f.shift(),
|
|
418
|
-
r[re(l)] =
|
|
417
|
+
var h = s[a], f = h.split(": "), l = f.shift(), S = f.join(": ");
|
|
418
|
+
r[re(l)] = S;
|
|
419
419
|
}
|
|
420
420
|
this._map = r;
|
|
421
421
|
}
|
|
@@ -426,10 +426,10 @@ var We = { exports: {} };
|
|
|
426
426
|
}
|
|
427
427
|
Y.prototype.open = function(e, r, s, a, h, f, l) {
|
|
428
428
|
e.open("GET", h);
|
|
429
|
-
var
|
|
429
|
+
var S = 0;
|
|
430
430
|
e.onprogress = function() {
|
|
431
|
-
var R = e.responseText, D = R.slice(
|
|
432
|
-
|
|
431
|
+
var R = e.responseText, D = R.slice(S);
|
|
432
|
+
S += D.length, s(D);
|
|
433
433
|
}, e.onerror = function(R) {
|
|
434
434
|
R.preventDefault(), a(new Error("NetworkError"));
|
|
435
435
|
}, e.onload = function() {
|
|
@@ -438,44 +438,44 @@ var We = { exports: {} };
|
|
|
438
438
|
a(null);
|
|
439
439
|
}, e.onreadystatechange = function() {
|
|
440
440
|
if (e.readyState === c.HEADERS_RECEIVED) {
|
|
441
|
-
var R = e.status, D = e.statusText, v = e.getResponseHeader("Content-Type"),
|
|
442
|
-
r(R, D, v, new ee(
|
|
441
|
+
var R = e.status, D = e.statusText, v = e.getResponseHeader("Content-Type"), V = e.getAllResponseHeaders();
|
|
442
|
+
r(R, D, v, new ee(V));
|
|
443
443
|
}
|
|
444
444
|
}, e.withCredentials = f;
|
|
445
445
|
for (var b in l)
|
|
446
446
|
Object.prototype.hasOwnProperty.call(l, b) && e.setRequestHeader(b, l[b]);
|
|
447
447
|
return e.send(), e;
|
|
448
448
|
};
|
|
449
|
-
function
|
|
449
|
+
function L(e) {
|
|
450
450
|
this._headers = e;
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
L.prototype.get = function(e) {
|
|
453
453
|
return this._headers.get(e);
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function _() {
|
|
456
456
|
}
|
|
457
|
-
|
|
458
|
-
var
|
|
459
|
-
return
|
|
457
|
+
_.prototype.open = function(e, r, s, a, h, f, l) {
|
|
458
|
+
var S = null, b = new E(), R = b.signal, D = new I();
|
|
459
|
+
return k(h, {
|
|
460
460
|
headers: l,
|
|
461
461
|
credentials: f ? "include" : "same-origin",
|
|
462
462
|
signal: R,
|
|
463
463
|
cache: "no-store"
|
|
464
464
|
}).then(function(v) {
|
|
465
|
-
return
|
|
466
|
-
var
|
|
467
|
-
|
|
465
|
+
return S = v.body.getReader(), r(v.status, v.statusText, v.headers.get("Content-Type"), new L(v.headers)), new A(function(V, se) {
|
|
466
|
+
var Me = function() {
|
|
467
|
+
S.read().then(function(Q) {
|
|
468
468
|
if (Q.done)
|
|
469
|
-
|
|
469
|
+
V(void 0);
|
|
470
470
|
else {
|
|
471
471
|
var X = D.decode(Q.value, { stream: !0 });
|
|
472
|
-
s(X),
|
|
472
|
+
s(X), Me();
|
|
473
473
|
}
|
|
474
474
|
}).catch(function(Q) {
|
|
475
475
|
se(Q);
|
|
476
476
|
});
|
|
477
477
|
};
|
|
478
|
-
|
|
478
|
+
Me();
|
|
479
479
|
});
|
|
480
480
|
}).catch(function(v) {
|
|
481
481
|
if (v.name !== "AbortError")
|
|
@@ -484,19 +484,19 @@ var We = { exports: {} };
|
|
|
484
484
|
a(v);
|
|
485
485
|
}), {
|
|
486
486
|
abort: function() {
|
|
487
|
-
|
|
487
|
+
S != null && S.cancel(), b.abort();
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
490
|
};
|
|
491
|
-
function
|
|
491
|
+
function O() {
|
|
492
492
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function M(e) {
|
|
495
495
|
i(function() {
|
|
496
496
|
throw e;
|
|
497
497
|
}, 0);
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
O.prototype.dispatchEvent = function(e) {
|
|
500
500
|
e.target = this;
|
|
501
501
|
var r = this._listeners[e.type];
|
|
502
502
|
if (r != null)
|
|
@@ -505,17 +505,17 @@ var We = { exports: {} };
|
|
|
505
505
|
try {
|
|
506
506
|
typeof h.handleEvent == "function" ? h.handleEvent(e) : h.call(this, e);
|
|
507
507
|
} catch (f) {
|
|
508
|
-
|
|
508
|
+
M(f);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
-
},
|
|
511
|
+
}, O.prototype.addEventListener = function(e, r) {
|
|
512
512
|
e = String(e);
|
|
513
513
|
var s = this._listeners, a = s[e];
|
|
514
514
|
a == null && (a = [], s[e] = a);
|
|
515
515
|
for (var h = !1, f = 0; f < a.length; f += 1)
|
|
516
516
|
a[f] === r && (h = !0);
|
|
517
517
|
h || a.push(r);
|
|
518
|
-
},
|
|
518
|
+
}, O.prototype.removeEventListener = function(e, r) {
|
|
519
519
|
e = String(e);
|
|
520
520
|
var s = this._listeners, a = s[e];
|
|
521
521
|
if (a != null) {
|
|
@@ -524,21 +524,21 @@ var We = { exports: {} };
|
|
|
524
524
|
h.length === 0 ? delete s[e] : s[e] = h;
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
|
-
function
|
|
527
|
+
function d(e) {
|
|
528
528
|
this.type = e, this.target = void 0;
|
|
529
529
|
}
|
|
530
530
|
function ge(e, r) {
|
|
531
|
-
|
|
531
|
+
d.call(this, e), this.data = r.data, this.lastEventId = r.lastEventId;
|
|
532
532
|
}
|
|
533
|
-
ge.prototype = Object.create(
|
|
533
|
+
ge.prototype = Object.create(d.prototype);
|
|
534
534
|
function Re(e, r) {
|
|
535
|
-
|
|
535
|
+
d.call(this, e), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
|
|
536
536
|
}
|
|
537
|
-
Re.prototype = Object.create(
|
|
537
|
+
Re.prototype = Object.create(d.prototype);
|
|
538
538
|
function me(e, r) {
|
|
539
|
-
|
|
539
|
+
d.call(this, e), this.error = r.error;
|
|
540
540
|
}
|
|
541
|
-
me.prototype = Object.create(
|
|
541
|
+
me.prototype = Object.create(d.prototype);
|
|
542
542
|
var Te = -1, ie = 0, ye = 1, we = 2, be = -1, te = 0, Ee = 1, Se = 2, Le = 3, He = /^text\/event\-stream(;.*)?$/i, Oe = 1e3, ze = 18e6, xe = function(e, r) {
|
|
543
543
|
var s = e == null ? r : parseInt(e, 10);
|
|
544
544
|
return s !== s && (s = r), Ce(s);
|
|
@@ -548,19 +548,19 @@ var We = { exports: {} };
|
|
|
548
548
|
try {
|
|
549
549
|
typeof r == "function" && r.call(e, s);
|
|
550
550
|
} catch (a) {
|
|
551
|
-
|
|
551
|
+
M(a);
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
554
|
function J(e, r) {
|
|
555
|
-
|
|
555
|
+
O.call(this), r = r || {}, 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, Ge(this, e, r);
|
|
556
556
|
}
|
|
557
557
|
function Ue() {
|
|
558
558
|
return c != null && "withCredentials" in c.prototype || g == null ? new c() : new g();
|
|
559
559
|
}
|
|
560
|
-
var Pe =
|
|
560
|
+
var Pe = k != null && F != null && "body" in F.prototype;
|
|
561
561
|
function Ge(e, r, s) {
|
|
562
562
|
r = String(r);
|
|
563
|
-
var a = !!s.withCredentials, h = s.lastEventIdQueryParameterName || "lastEventId", f = Ce(1e3), l = xe(s.heartbeatTimeout, 45e3),
|
|
563
|
+
var a = !!s.withCredentials, h = s.lastEventIdQueryParameterName || "lastEventId", f = Ce(1e3), l = xe(s.heartbeatTimeout, 45e3), S = "", b = f, R = !1, D = 0, v = s.headers || {}, V = s.Transport, se = Pe && V == null ? void 0 : new z(V != null ? new V() : Ue()), Me = V != null && typeof V != "string" ? new V() : se == null ? new _() : new Y(), Q = void 0, X = 0, ne = Te, _e = "", Fe = "", le = "", Ie = "", K = te, Xe = 0, Be = 0, pt = function(P, U, Z, $) {
|
|
564
564
|
if (ne === ie)
|
|
565
565
|
if (P === 200 && Z != null && He.test(Z)) {
|
|
566
566
|
ne = ye, R = Date.now(), b = f, e.readyState = ye;
|
|
@@ -586,8 +586,8 @@ var We = { exports: {} };
|
|
|
586
586
|
var $ = P.charCodeAt(Z);
|
|
587
587
|
($ === 10 || $ === 13) && (U = Z);
|
|
588
588
|
}
|
|
589
|
-
var q = (U !== -1 ?
|
|
590
|
-
|
|
589
|
+
var q = (U !== -1 ? Ie : "") + P.slice(0, U + 1);
|
|
590
|
+
Ie = (U === -1 ? Ie : "") + P.slice(U + 1), P !== "" && (R = Date.now(), D += P.length);
|
|
591
591
|
for (var G = 0; G < q.length; G += 1) {
|
|
592
592
|
var $ = q.charCodeAt(G);
|
|
593
593
|
if (K === be && $ === 10)
|
|
@@ -595,15 +595,15 @@ var We = { exports: {} };
|
|
|
595
595
|
else if (K === be && (K = te), $ === 13 || $ === 10) {
|
|
596
596
|
if (K !== te) {
|
|
597
597
|
K === Ee && (Be = G + 1);
|
|
598
|
-
var ce = q.slice(Xe, Be - 1),
|
|
598
|
+
var ce = q.slice(Xe, Be - 1), ue = q.slice(Be + (Be < G && q.charCodeAt(Be) === 32 ? 1 : 0), G);
|
|
599
599
|
ce === "data" ? (_e += `
|
|
600
|
-
`, _e +=
|
|
601
|
-
|
|
600
|
+
`, _e += ue) : ce === "id" ? Fe = ue : ce === "event" ? le = ue : ce === "retry" ? (f = xe(ue, f), b = f) : ce === "heartbeatTimeout" && (l = xe(ue, l), X !== 0 && (u(X), X = i(function() {
|
|
601
|
+
De();
|
|
602
602
|
}, l)));
|
|
603
603
|
}
|
|
604
604
|
if (K === te) {
|
|
605
605
|
if (_e !== "") {
|
|
606
|
-
|
|
606
|
+
S = Fe, le === "" && (le = "message");
|
|
607
607
|
var Ae = new ge(le, {
|
|
608
608
|
data: _e.slice(1),
|
|
609
609
|
lastEventId: Fe
|
|
@@ -620,35 +620,35 @@ var We = { exports: {} };
|
|
|
620
620
|
}
|
|
621
621
|
}, Je = function(P) {
|
|
622
622
|
if (ne === ye || ne === ie) {
|
|
623
|
-
ne = Te, X !== 0 && (
|
|
624
|
-
|
|
623
|
+
ne = Te, X !== 0 && (u(X), X = 0), X = i(function() {
|
|
624
|
+
De();
|
|
625
625
|
}, b), b = Ce(Math.min(f * 16, b * 2)), e.readyState = ie;
|
|
626
626
|
var U = new me("error", { error: P });
|
|
627
627
|
e.dispatchEvent(U), ve(e, e.onerror, U), P != null && console.error(P);
|
|
628
628
|
}
|
|
629
629
|
}, Ke = function() {
|
|
630
|
-
ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (
|
|
631
|
-
},
|
|
630
|
+
ne = we, Q != null && (Q.abort(), Q = void 0), X !== 0 && (u(X), X = 0), e.readyState = we;
|
|
631
|
+
}, De = function() {
|
|
632
632
|
if (X = 0, ne !== Te) {
|
|
633
633
|
if (!R && Q != null)
|
|
634
634
|
Je(new Error("No activity within " + l + " milliseconds. " + (ne === ie ? "No response received." : D + " chars received.") + " Reconnecting.")), Q != null && (Q.abort(), Q = void 0);
|
|
635
635
|
else {
|
|
636
636
|
var P = Math.max((R || Date.now()) + l - Date.now(), 1);
|
|
637
637
|
R = !1, X = i(function() {
|
|
638
|
-
|
|
638
|
+
De();
|
|
639
639
|
}, P);
|
|
640
640
|
}
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
643
|
R = !1, D = 0, X = i(function() {
|
|
644
|
-
|
|
645
|
-
}, l), ne = ie, _e = "", le = "", Fe =
|
|
644
|
+
De();
|
|
645
|
+
}, l), ne = ie, _e = "", le = "", Fe = S, Ie = "", Xe = 0, Be = 0, K = te;
|
|
646
646
|
var U = r;
|
|
647
|
-
if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" &&
|
|
647
|
+
if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && S !== "") {
|
|
648
648
|
var Z = r.indexOf("?");
|
|
649
|
-
U = Z === -1 ? r : r.slice(0, Z + 1) + r.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
650
|
-
return Ae === h ? "" :
|
|
651
|
-
}), U += (r.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(
|
|
649
|
+
U = Z === -1 ? r : r.slice(0, Z + 1) + r.slice(Z + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ue, Ae) {
|
|
650
|
+
return Ae === h ? "" : ue;
|
|
651
|
+
}), U += (r.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(S);
|
|
652
652
|
}
|
|
653
653
|
var $ = e.withCredentials, q = {};
|
|
654
654
|
q.Accept = "text/event-stream";
|
|
@@ -657,14 +657,14 @@ var We = { exports: {} };
|
|
|
657
657
|
for (var ce in G)
|
|
658
658
|
Object.prototype.hasOwnProperty.call(G, ce) && (q[ce] = G[ce]);
|
|
659
659
|
try {
|
|
660
|
-
Q =
|
|
661
|
-
} catch (
|
|
662
|
-
throw Ke(),
|
|
660
|
+
Q = Me.open(se, pt, ht, Je, U, $, q);
|
|
661
|
+
} catch (ue) {
|
|
662
|
+
throw Ke(), ue;
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
|
-
e.url = r, e.readyState = ie, e.withCredentials = a, e.headers = v, e._close = Ke,
|
|
665
|
+
e.url = r, e.readyState = ie, e.withCredentials = a, e.headers = v, e._close = Ke, De();
|
|
666
666
|
}
|
|
667
|
-
J.prototype = Object.create(
|
|
667
|
+
J.prototype = Object.create(O.prototype), J.prototype.CONNECTING = ie, J.prototype.OPEN = ye, J.prototype.CLOSED = we, J.prototype.close = function() {
|
|
668
668
|
this._close();
|
|
669
669
|
}, J.CONNECTING = ie, J.OPEN = ye, J.CLOSED = we, J.prototype.withCredentials = void 0;
|
|
670
670
|
var ke = m;
|
|
@@ -707,18 +707,18 @@ function ae(o, t) {
|
|
|
707
707
|
var n = this;
|
|
708
708
|
if (!(n instanceof ae))
|
|
709
709
|
return new ae(o, t);
|
|
710
|
-
var i = Object.assign({}, jt, t),
|
|
711
|
-
n.intValue = c, n.value = c /
|
|
710
|
+
var i = Object.assign({}, jt, t), u = Ye(i.precision), c = Ne(o, i);
|
|
711
|
+
n.intValue = c, n.value = c / u, i.increment = i.increment || 1 / u, i.useVedic ? i.groups = Ut : i.groups = zt, this.s = i, this.p = u;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
714
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0,
|
|
713
|
+
function Ne(o, t) {
|
|
714
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, u = t.decimal, c = t.errorOnInvalid, g = t.precision, p = t.fromCents, m = Ye(g), y = typeof o == "number", A = o instanceof ae;
|
|
715
715
|
if (A && p)
|
|
716
716
|
return o.intValue;
|
|
717
717
|
if (y || A)
|
|
718
718
|
i = A ? o.value : o;
|
|
719
719
|
else if (typeof o == "string") {
|
|
720
|
-
var
|
|
721
|
-
i = o.replace(/\((.*)\)/, "-$1").replace(
|
|
720
|
+
var k = new RegExp("[^-\\d" + u + "]", "g"), F = new RegExp("\\" + u, "g");
|
|
721
|
+
i = o.replace(/\((.*)\)/, "-$1").replace(k, "").replace(F, "."), i = i || 0;
|
|
722
722
|
} else {
|
|
723
723
|
if (c)
|
|
724
724
|
throw Error("Invalid Input");
|
|
@@ -727,8 +727,8 @@ function Ie(o, t) {
|
|
|
727
727
|
return p || (i *= m, i = i.toFixed(4)), n ? ft(i) : i;
|
|
728
728
|
}
|
|
729
729
|
function Pt(o, t) {
|
|
730
|
-
var n = t.pattern, i = t.negativePattern,
|
|
731
|
-
return (o.value >= 0 ? n : i).replace("!",
|
|
730
|
+
var n = t.pattern, i = t.negativePattern, u = t.symbol, c = t.separator, g = t.decimal, p = t.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], A = m[1];
|
|
731
|
+
return (o.value >= 0 ? n : i).replace("!", u).replace("#", y.replace(p, "$1" + c) + (A ? g + A : ""));
|
|
732
732
|
}
|
|
733
733
|
ae.prototype = {
|
|
734
734
|
/**
|
|
@@ -737,8 +737,8 @@ ae.prototype = {
|
|
|
737
737
|
* @returns {currency}
|
|
738
738
|
*/
|
|
739
739
|
add: function(t) {
|
|
740
|
-
var n = this.intValue, i = this.s,
|
|
741
|
-
return ae((n +=
|
|
740
|
+
var n = this.intValue, i = this.s, u = this.p;
|
|
741
|
+
return ae((n += Ne(t, i)) / (i.fromCents ? 1 : u), i);
|
|
742
742
|
},
|
|
743
743
|
/**
|
|
744
744
|
* Subtracts value.
|
|
@@ -746,8 +746,8 @@ ae.prototype = {
|
|
|
746
746
|
* @returns {currency}
|
|
747
747
|
*/
|
|
748
748
|
subtract: function(t) {
|
|
749
|
-
var n = this.intValue, i = this.s,
|
|
750
|
-
return ae((n -=
|
|
749
|
+
var n = this.intValue, i = this.s, u = this.p;
|
|
750
|
+
return ae((n -= Ne(t, i)) / (i.fromCents ? 1 : u), i);
|
|
751
751
|
},
|
|
752
752
|
/**
|
|
753
753
|
* Multiplies values.
|
|
@@ -765,7 +765,7 @@ ae.prototype = {
|
|
|
765
765
|
*/
|
|
766
766
|
divide: function(t) {
|
|
767
767
|
var n = this.intValue, i = this.s;
|
|
768
|
-
return ae(n /=
|
|
768
|
+
return ae(n /= Ne(t, i, !1), i);
|
|
769
769
|
},
|
|
770
770
|
/**
|
|
771
771
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -774,8 +774,8 @@ ae.prototype = {
|
|
|
774
774
|
* @returns {array}
|
|
775
775
|
*/
|
|
776
776
|
distribute: function(t) {
|
|
777
|
-
for (var n = this.intValue, i = this.p,
|
|
778
|
-
var y = ae(g / m,
|
|
777
|
+
for (var n = this.intValue, i = this.p, u = this.s, c = [], g = Math[n >= 0 ? "floor" : "ceil"](n / t), p = Math.abs(n - g * t), m = u.fromCents ? 1 : i; t !== 0; t--) {
|
|
778
|
+
var y = ae(g / m, u);
|
|
779
779
|
p-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / m)), c.push(y);
|
|
780
780
|
}
|
|
781
781
|
return c;
|
|
@@ -821,7 +821,7 @@ ae.prototype = {
|
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
823
|
function Gt(o) {
|
|
824
|
-
At(o, "svelte-
|
|
824
|
+
At(o, "svelte-lfsn3o", '*,*::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}.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}');
|
|
825
825
|
}
|
|
826
826
|
function rt(o, t, n) {
|
|
827
827
|
const i = o.slice();
|
|
@@ -841,28 +841,28 @@ function Xt(o) {
|
|
|
841
841
|
o[1].Total[0].amount
|
|
842
842
|
)
|
|
843
843
|
) : "0") + ""
|
|
844
|
-
),
|
|
844
|
+
), u, c, g, p, m, y, A, k, F, I, N, E, w = (
|
|
845
845
|
/*showBalance*/
|
|
846
846
|
o[4] && st(o)
|
|
847
847
|
);
|
|
848
848
|
return {
|
|
849
849
|
c() {
|
|
850
|
-
t =
|
|
850
|
+
t = j("button"), n = j("p"), u = fe(i), c = oe(), g = fe(
|
|
851
851
|
/*currency*/
|
|
852
852
|
o[5]
|
|
853
|
-
), p = oe(), m =
|
|
854
|
-
o[3] ? "TriangleActive" : "TriangleInactive"),
|
|
853
|
+
), p = oe(), m = j("span"), y = nt("svg"), A = nt("path"), F = oe(), w && w.c(), I = Mt(), C(A, "id", "arrow"), C(A, "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"), C(A, "transform", "translate(-274.511 -441.088)"), C(A, "fill", "#d1d1d1"), C(y, "xmlns", "http://www.w3.org/2000/svg"), C(y, "width", "14"), C(y, "height", "6.835"), C(y, "viewBox", "0 0 14 6.835"), C(m, "class", k = /*isModalDisplayed*/
|
|
854
|
+
o[3] ? "TriangleActive" : "TriangleInactive"), C(t, "class", "BalanceValue");
|
|
855
855
|
},
|
|
856
|
-
m(T,
|
|
857
|
-
he(T, t,
|
|
856
|
+
m(T, H) {
|
|
857
|
+
he(T, t, H), B(t, n), B(n, u), B(n, c), B(n, g), B(t, p), B(t, m), B(m, y), B(y, A), he(T, F, H), w && w.m(T, H), he(T, I, H), N || (E = Ve(
|
|
858
858
|
t,
|
|
859
859
|
"click",
|
|
860
860
|
/*click_handler*/
|
|
861
861
|
o[25]
|
|
862
862
|
), N = !0);
|
|
863
863
|
},
|
|
864
|
-
p(T,
|
|
865
|
-
|
|
864
|
+
p(T, H) {
|
|
865
|
+
H[0] & /*balances*/
|
|
866
866
|
2 && i !== (i = /*balances*/
|
|
867
867
|
(T[1].Total ? (
|
|
868
868
|
/*formatBalance*/
|
|
@@ -870,18 +870,18 @@ function Xt(o) {
|
|
|
870
870
|
/*balances*/
|
|
871
871
|
T[1].Total[0].amount
|
|
872
872
|
)
|
|
873
|
-
) : "0") + "") &&
|
|
874
|
-
32 &&
|
|
873
|
+
) : "0") + "") && de(u, i), H[0] & /*currency*/
|
|
874
|
+
32 && de(
|
|
875
875
|
g,
|
|
876
876
|
/*currency*/
|
|
877
877
|
T[5]
|
|
878
|
-
),
|
|
879
|
-
8 &&
|
|
880
|
-
T[3] ? "TriangleActive" : "TriangleInactive") &&
|
|
881
|
-
T[4] ? w ? w.p(T,
|
|
878
|
+
), H[0] & /*isModalDisplayed*/
|
|
879
|
+
8 && k !== (k = /*isModalDisplayed*/
|
|
880
|
+
T[3] ? "TriangleActive" : "TriangleInactive") && C(m, "class", k), /*showBalance*/
|
|
881
|
+
T[4] ? w ? w.p(T, H) : (w = st(T), w.c(), w.m(I.parentNode, I)) : w && (w.d(1), w = null);
|
|
882
882
|
},
|
|
883
883
|
d(T) {
|
|
884
|
-
T && (pe(t), pe(
|
|
884
|
+
T && (pe(t), pe(F), pe(I)), w && w.d(T), N = !1, E();
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
}
|
|
@@ -892,50 +892,50 @@ function Kt(o) {
|
|
|
892
892
|
), i;
|
|
893
893
|
return {
|
|
894
894
|
c() {
|
|
895
|
-
t =
|
|
895
|
+
t = j("p"), i = fe(n), C(t, "class", "Loading");
|
|
896
896
|
},
|
|
897
|
-
m(
|
|
898
|
-
he(
|
|
897
|
+
m(u, c) {
|
|
898
|
+
he(u, t, c), B(t, i);
|
|
899
899
|
},
|
|
900
|
-
p(
|
|
900
|
+
p(u, c) {
|
|
901
901
|
c[0] & /*$_*/
|
|
902
902
|
64 && n !== (n = /*$_*/
|
|
903
|
-
|
|
903
|
+
u[6]("Loading") + "") && de(i, n);
|
|
904
904
|
},
|
|
905
|
-
d(
|
|
906
|
-
|
|
905
|
+
d(u) {
|
|
906
|
+
u && pe(t);
|
|
907
907
|
}
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
910
|
function st(o) {
|
|
911
|
-
let t, n, i,
|
|
911
|
+
let t, n, i, u, c, g, p, m, y = (
|
|
912
912
|
/*$_*/
|
|
913
913
|
o[6]("Title") + ""
|
|
914
|
-
), A,
|
|
914
|
+
), A, k, F, I, N, E, w = (
|
|
915
915
|
/*$_*/
|
|
916
916
|
o[6]("DepositButton") + ""
|
|
917
|
-
), T,
|
|
917
|
+
), T, H, x, z, re, ee, Y = je(Object.keys(
|
|
918
918
|
/*balances*/
|
|
919
919
|
o[1]
|
|
920
|
-
)),
|
|
921
|
-
for (let
|
|
922
|
-
|
|
920
|
+
)), L = [];
|
|
921
|
+
for (let _ = 0; _ < Y.length; _ += 1)
|
|
922
|
+
L[_] = ct(rt(o, Y, _));
|
|
923
923
|
return {
|
|
924
924
|
c() {
|
|
925
|
-
t =
|
|
926
|
-
for (let
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
(o[3] ? "Open" : "")),
|
|
930
|
-
(o[3] ? "Open" : "")),
|
|
931
|
-
(o[3] ? "Open" : "")),
|
|
925
|
+
t = j("div"), n = j("button"), u = oe(), c = j("div"), g = j("div"), p = j("div"), m = j("p"), A = fe(y), k = oe(), F = j("div");
|
|
926
|
+
for (let _ = 0; _ < L.length; _ += 1)
|
|
927
|
+
L[_].c();
|
|
928
|
+
I = oe(), N = j("div"), E = j("button"), T = fe(w), C(n, "class", i = "BalanceModalClose " + /*isModalDisplayed*/
|
|
929
|
+
(o[3] ? "Open" : "")), C(m, "class", "BalanceModalTitle"), C(p, "class", "BalanceModalHeader"), C(F, "class", "BalanceModalBody"), C(E, "class", "BalanceModalAction"), C(N, "class", "BalanceModalFooter"), C(g, "class", H = "ModalContent " + /*isModalDisplayed*/
|
|
930
|
+
(o[3] ? "Open" : "")), C(c, "class", x = "BalanceModal " + /*isModalDisplayed*/
|
|
931
|
+
(o[3] ? "Open" : "")), C(t, "class", z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
932
932
|
(o[3] ? "Open" : ""));
|
|
933
933
|
},
|
|
934
|
-
m(
|
|
935
|
-
he(
|
|
936
|
-
for (let
|
|
937
|
-
|
|
938
|
-
B(g,
|
|
934
|
+
m(_, O) {
|
|
935
|
+
he(_, t, O), B(t, n), B(t, u), B(t, c), B(c, g), B(g, p), B(p, m), B(m, A), B(g, k), B(g, F);
|
|
936
|
+
for (let M = 0; M < L.length; M += 1)
|
|
937
|
+
L[M] && L[M].m(F, null);
|
|
938
|
+
B(g, I), B(g, N), B(N, E), B(E, T), re || (ee = [
|
|
939
939
|
Ve(
|
|
940
940
|
n,
|
|
941
941
|
"click",
|
|
@@ -950,38 +950,38 @@ function st(o) {
|
|
|
950
950
|
)
|
|
951
951
|
], re = !0);
|
|
952
952
|
},
|
|
953
|
-
p(
|
|
954
|
-
if (
|
|
955
|
-
8 && i !== (i = "BalanceModalClose " + /*
|
|
956
|
-
(
|
|
953
|
+
p(_, O) {
|
|
954
|
+
if (O[0] & /*isModalDisplayed*/
|
|
955
|
+
8 && i !== (i = "BalanceModalClose " + /*isModalDisplayed*/
|
|
956
|
+
(_[3] ? "Open" : "")) && C(n, "class", i), O[0] & /*$_*/
|
|
957
957
|
64 && y !== (y = /*$_*/
|
|
958
|
-
|
|
958
|
+
_[6]("Title") + "") && de(A, y), O[0] & /*balances, currency, formatBalance, $_*/
|
|
959
959
|
354) {
|
|
960
960
|
Y = je(Object.keys(
|
|
961
961
|
/*balances*/
|
|
962
|
-
|
|
962
|
+
_[1]
|
|
963
963
|
));
|
|
964
|
-
let
|
|
965
|
-
for (
|
|
966
|
-
const
|
|
967
|
-
|
|
964
|
+
let M;
|
|
965
|
+
for (M = 0; M < Y.length; M += 1) {
|
|
966
|
+
const d = rt(_, Y, M);
|
|
967
|
+
L[M] ? L[M].p(d, O) : (L[M] = ct(d), L[M].c(), L[M].m(F, null));
|
|
968
968
|
}
|
|
969
|
-
for (;
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
for (; M < L.length; M += 1)
|
|
970
|
+
L[M].d(1);
|
|
971
|
+
L.length = Y.length;
|
|
972
972
|
}
|
|
973
|
-
|
|
973
|
+
O[0] & /*$_*/
|
|
974
974
|
64 && w !== (w = /*$_*/
|
|
975
|
-
|
|
976
|
-
8 &&
|
|
977
|
-
(
|
|
978
|
-
8 &&
|
|
979
|
-
(
|
|
980
|
-
8 &&
|
|
981
|
-
(
|
|
975
|
+
_[6]("DepositButton") + "") && de(T, w), O[0] & /*isModalDisplayed*/
|
|
976
|
+
8 && H !== (H = "ModalContent " + /*isModalDisplayed*/
|
|
977
|
+
(_[3] ? "Open" : "")) && C(g, "class", H), O[0] & /*isModalDisplayed*/
|
|
978
|
+
8 && x !== (x = "BalanceModal " + /*isModalDisplayed*/
|
|
979
|
+
(_[3] ? "Open" : "")) && C(c, "class", x), O[0] & /*isModalDisplayed*/
|
|
980
|
+
8 && z !== (z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
981
|
+
(_[3] ? "Open" : "")) && C(t, "class", z);
|
|
982
982
|
},
|
|
983
|
-
d(
|
|
984
|
-
|
|
983
|
+
d(_) {
|
|
984
|
+
_ && pe(t), dt(L, _), re = !1, Dt(ee);
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
987
|
}
|
|
@@ -992,7 +992,7 @@ function lt(o) {
|
|
|
992
992
|
/*k*/
|
|
993
993
|
o[50]
|
|
994
994
|
) + ""
|
|
995
|
-
),
|
|
995
|
+
), u, c, g = (
|
|
996
996
|
/*b*/
|
|
997
997
|
(o[53].productType ? (
|
|
998
998
|
/*$_*/
|
|
@@ -1001,7 +1001,7 @@ function lt(o) {
|
|
|
1001
1001
|
o[53].productType
|
|
1002
1002
|
)
|
|
1003
1003
|
) : "") + ""
|
|
1004
|
-
), p, m, y, A,
|
|
1004
|
+
), p, m, y, A, k = (
|
|
1005
1005
|
/*b*/
|
|
1006
1006
|
(o[53].amount ? (
|
|
1007
1007
|
/*formatBalance*/
|
|
@@ -1010,16 +1010,16 @@ function lt(o) {
|
|
|
1010
1010
|
o[53].amount
|
|
1011
1011
|
)
|
|
1012
1012
|
) : "0") + ""
|
|
1013
|
-
),
|
|
1013
|
+
), F, I, N, E;
|
|
1014
1014
|
return {
|
|
1015
1015
|
c() {
|
|
1016
|
-
t =
|
|
1016
|
+
t = j("div"), n = j("p"), u = fe(i), c = oe(), p = fe(g), m = oe(), y = j("p"), A = j("span"), F = fe(k), I = oe(), N = j("span"), E = fe(
|
|
1017
1017
|
/*currency*/
|
|
1018
1018
|
o[5]
|
|
1019
|
-
),
|
|
1019
|
+
), C(n, "class", "BalanceModalText"), C(A, "class", "BalanceModalAmount"), C(N, "class", "BalanceModalCurrency"), C(y, "class", "BalanceModalValue"), C(t, "class", "BalanceModalRowLine");
|
|
1020
1020
|
},
|
|
1021
1021
|
m(w, T) {
|
|
1022
|
-
he(w, t, T), B(t, n), B(n,
|
|
1022
|
+
he(w, t, T), B(t, n), B(n, u), B(n, c), B(n, p), B(t, m), B(t, y), B(y, A), B(A, F), B(y, I), B(y, N), B(N, E);
|
|
1023
1023
|
},
|
|
1024
1024
|
p(w, T) {
|
|
1025
1025
|
T[0] & /*$_, balances*/
|
|
@@ -1027,7 +1027,7 @@ function lt(o) {
|
|
|
1027
1027
|
w[6](
|
|
1028
1028
|
/*k*/
|
|
1029
1029
|
w[50]
|
|
1030
|
-
) + "") &&
|
|
1030
|
+
) + "") && de(u, i), T[0] & /*balances, $_*/
|
|
1031
1031
|
66 && g !== (g = /*b*/
|
|
1032
1032
|
(w[53].productType ? (
|
|
1033
1033
|
/*$_*/
|
|
@@ -1035,16 +1035,16 @@ function lt(o) {
|
|
|
1035
1035
|
/*b*/
|
|
1036
1036
|
w[53].productType
|
|
1037
1037
|
)
|
|
1038
|
-
) : "") + "") &&
|
|
1039
|
-
2 &&
|
|
1038
|
+
) : "") + "") && de(p, g), T[0] & /*balances*/
|
|
1039
|
+
2 && k !== (k = /*b*/
|
|
1040
1040
|
(w[53].amount ? (
|
|
1041
1041
|
/*formatBalance*/
|
|
1042
1042
|
w[8](
|
|
1043
1043
|
/*b*/
|
|
1044
1044
|
w[53].amount
|
|
1045
1045
|
)
|
|
1046
|
-
) : "0") + "") &&
|
|
1047
|
-
32 &&
|
|
1046
|
+
) : "0") + "") && de(F, k), T[0] & /*currency*/
|
|
1047
|
+
32 && de(
|
|
1048
1048
|
E,
|
|
1049
1049
|
/*currency*/
|
|
1050
1050
|
w[5]
|
|
@@ -1062,20 +1062,20 @@ function ct(o) {
|
|
|
1062
1062
|
/*k*/
|
|
1063
1063
|
o[50]
|
|
1064
1064
|
]
|
|
1065
|
-
),
|
|
1065
|
+
), u = [];
|
|
1066
1066
|
for (let c = 0; c < i.length; c += 1)
|
|
1067
|
-
|
|
1067
|
+
u[c] = lt(it(o, i, c));
|
|
1068
1068
|
return {
|
|
1069
1069
|
c() {
|
|
1070
|
-
t =
|
|
1071
|
-
for (let c = 0; c <
|
|
1072
|
-
|
|
1073
|
-
n = oe(),
|
|
1070
|
+
t = j("div");
|
|
1071
|
+
for (let c = 0; c < u.length; c += 1)
|
|
1072
|
+
u[c].c();
|
|
1073
|
+
n = oe(), C(t, "class", "BalanceModalRowBoth");
|
|
1074
1074
|
},
|
|
1075
1075
|
m(c, g) {
|
|
1076
1076
|
he(c, t, g);
|
|
1077
|
-
for (let p = 0; p <
|
|
1078
|
-
|
|
1077
|
+
for (let p = 0; p < u.length; p += 1)
|
|
1078
|
+
u[p] && u[p].m(t, null);
|
|
1079
1079
|
B(t, n);
|
|
1080
1080
|
},
|
|
1081
1081
|
p(c, g) {
|
|
@@ -1091,26 +1091,26 @@ function ct(o) {
|
|
|
1091
1091
|
let p;
|
|
1092
1092
|
for (p = 0; p < i.length; p += 1) {
|
|
1093
1093
|
const m = it(c, i, p);
|
|
1094
|
-
|
|
1094
|
+
u[p] ? u[p].p(m, g) : (u[p] = lt(m), u[p].c(), u[p].m(t, n));
|
|
1095
1095
|
}
|
|
1096
|
-
for (; p <
|
|
1097
|
-
|
|
1098
|
-
|
|
1096
|
+
for (; p < u.length; p += 1)
|
|
1097
|
+
u[p].d(1);
|
|
1098
|
+
u.length = i.length;
|
|
1099
1099
|
}
|
|
1100
1100
|
},
|
|
1101
1101
|
d(c) {
|
|
1102
|
-
c && pe(t),
|
|
1102
|
+
c && pe(t), dt(u, c);
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function ut(o) {
|
|
1107
1107
|
let t, n, i;
|
|
1108
1108
|
return {
|
|
1109
1109
|
c() {
|
|
1110
|
-
t =
|
|
1110
|
+
t = j("button"), C(t, "class", "ShowBalanceModalOverlay");
|
|
1111
1111
|
},
|
|
1112
|
-
m(
|
|
1113
|
-
he(
|
|
1112
|
+
m(u, c) {
|
|
1113
|
+
he(u, t, c), n || (i = Ve(
|
|
1114
1114
|
t,
|
|
1115
1115
|
"click",
|
|
1116
1116
|
/*click_handler_3*/
|
|
@@ -1118,33 +1118,33 @@ function dt(o) {
|
|
|
1118
1118
|
), n = !0);
|
|
1119
1119
|
},
|
|
1120
1120
|
p: qe,
|
|
1121
|
-
d(
|
|
1122
|
-
|
|
1121
|
+
d(u) {
|
|
1122
|
+
u && pe(t), n = !1, i();
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
1126
|
function qt(o) {
|
|
1127
1127
|
let t, n, i;
|
|
1128
|
-
function
|
|
1128
|
+
function u(m, y) {
|
|
1129
1129
|
return (
|
|
1130
1130
|
/*isLoading*/
|
|
1131
1131
|
m[2] ? Kt : Xt
|
|
1132
1132
|
);
|
|
1133
1133
|
}
|
|
1134
|
-
let c =
|
|
1134
|
+
let c = u(o), g = c(o), p = (
|
|
1135
1135
|
/*showBalance*/
|
|
1136
|
-
o[4] &&
|
|
1136
|
+
o[4] && ut(o)
|
|
1137
1137
|
);
|
|
1138
1138
|
return {
|
|
1139
1139
|
c() {
|
|
1140
|
-
t =
|
|
1140
|
+
t = j("div"), n = j("div"), g.c(), i = oe(), p && p.c(), C(n, "class", "ShowBalance");
|
|
1141
1141
|
},
|
|
1142
1142
|
m(m, y) {
|
|
1143
1143
|
he(m, t, y), B(t, n), g.m(n, null), B(t, i), p && p.m(t, null), o[29](t);
|
|
1144
1144
|
},
|
|
1145
1145
|
p(m, y) {
|
|
1146
|
-
c === (c =
|
|
1147
|
-
m[4] ? p ? p.p(m, y) : (p =
|
|
1146
|
+
c === (c = u(m)) && g ? g.p(m, y) : (g.d(1), g = c(m), g && (g.c(), g.m(n, null))), /*showBalance*/
|
|
1147
|
+
m[4] ? p ? p.p(m, y) : (p = ut(m), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
1148
1148
|
},
|
|
1149
1149
|
i: qe,
|
|
1150
1150
|
o: qe,
|
|
@@ -1155,10 +1155,10 @@ function qt(o) {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
function Wt(o, t, n) {
|
|
1157
1157
|
let i;
|
|
1158
|
-
Rt(o,
|
|
1159
|
-
let { userid:
|
|
1160
|
-
const
|
|
1161
|
-
fetch(
|
|
1158
|
+
Rt(o, It, (e) => n(6, i = e));
|
|
1159
|
+
let { userid: u = "" } = t, { session: c = "" } = t, { endpoint: g = "" } = t, { lang: p = "en" } = t, { mbsource: m } = t, { clientstyling: y = "" } = t, { clientstylingurl: A = "" } = t, { translationurl: k = "" } = t, { customlocaleidentifier: F = "" } = t, { gmversion: I = "gm16" } = t, { displaybalanceoption: N = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: w = "" } = t, { currencydecimal: T = "" } = t, { currencyprecision: H = "" } = t, x, z = !0, re = !1, ee = !1, Y = !1, L, _ = "", O = [], M;
|
|
1160
|
+
const d = {}, ge = ["totalCashAmount", "totalRealAmount"], Re = () => {
|
|
1161
|
+
fetch(k).then((e) => e.json()).then((e) => Object.keys(e).forEach((r) => at(r, e[r]))).catch((e) => console.log(e));
|
|
1162
1162
|
};
|
|
1163
1163
|
Object.keys(ot).forEach((e) => at(e, ot[e]));
|
|
1164
1164
|
const me = (e) => {
|
|
@@ -1188,80 +1188,80 @@ function Wt(o, t, n) {
|
|
|
1188
1188
|
break;
|
|
1189
1189
|
}
|
|
1190
1190
|
}, Te = () => {
|
|
1191
|
-
if (
|
|
1192
|
-
return
|
|
1193
|
-
}, ie = (e) =>
|
|
1191
|
+
if (F.includes(p))
|
|
1192
|
+
return F;
|
|
1193
|
+
}, ie = (e) => F ? new Intl.NumberFormat(Te(), { useGrouping: !0 }).format(e) : w && T ? ae(e, {
|
|
1194
1194
|
separator: w,
|
|
1195
1195
|
decimal: T,
|
|
1196
1196
|
symbol: "",
|
|
1197
|
-
precision: parseInt(
|
|
1197
|
+
precision: parseInt(H || "2", 10)
|
|
1198
1198
|
}).format() : ae(e, {
|
|
1199
1199
|
separator: ".",
|
|
1200
1200
|
decimal: ",",
|
|
1201
1201
|
symbol: "",
|
|
1202
|
-
precision: parseInt(
|
|
1202
|
+
precision: parseInt(H || "2", 10)
|
|
1203
1203
|
}).format(), ye = () => tt(this, null, function* () {
|
|
1204
1204
|
var r, s, a;
|
|
1205
|
-
n(2,
|
|
1206
|
-
const e = new URL(`${g}/v1/player/${
|
|
1205
|
+
n(2, z = !0);
|
|
1206
|
+
const e = new URL(`${g}/v1/player/${u}/account`);
|
|
1207
1207
|
try {
|
|
1208
1208
|
const h = yield fetch(e, {
|
|
1209
1209
|
method: "GET",
|
|
1210
1210
|
headers: { "X-SessionID": c }
|
|
1211
1211
|
}), f = yield h.json();
|
|
1212
1212
|
if (h.ok)
|
|
1213
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
1213
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), O = f.items, n(5, _ = (r = O.find((l) => l.displayName === "Casino")) == null ? void 0 : r.currency), n(1, d.Total = [{ amount: f.totalAmount[_] }], d), n(
|
|
1214
1214
|
1,
|
|
1215
|
-
|
|
1215
|
+
d.Real = [
|
|
1216
1216
|
{
|
|
1217
|
-
amount: (s =
|
|
1217
|
+
amount: (s = O.find((l) => l.displayName === "Casino")) == null ? void 0 : s.balanceAmount
|
|
1218
1218
|
}
|
|
1219
1219
|
],
|
|
1220
|
-
|
|
1220
|
+
d
|
|
1221
1221
|
), n(
|
|
1222
1222
|
1,
|
|
1223
|
-
|
|
1223
|
+
d.Bonus = [
|
|
1224
1224
|
{
|
|
1225
|
-
amount: (a =
|
|
1225
|
+
amount: (a = O.find((l) => l.displayName === "UBS")) == null ? void 0 : a.balanceAmount
|
|
1226
1226
|
}
|
|
1227
1227
|
],
|
|
1228
|
-
|
|
1228
|
+
d
|
|
1229
1229
|
);
|
|
1230
1230
|
else
|
|
1231
1231
|
throw new Error("Failed to fetch balance data !");
|
|
1232
1232
|
} catch (h) {
|
|
1233
1233
|
console.log("Balance error: ", h);
|
|
1234
1234
|
} finally {
|
|
1235
|
-
n(2,
|
|
1235
|
+
n(2, z = !1);
|
|
1236
1236
|
}
|
|
1237
1237
|
}), we = () => {
|
|
1238
|
-
n(2,
|
|
1239
|
-
const e = new URL(`${g}/v2/player/${
|
|
1238
|
+
n(2, z = !0);
|
|
1239
|
+
const e = new URL(`${g}/v2/player/${u}/balance`), r = new Headers();
|
|
1240
1240
|
r.append("X-SessionID", c), fetch(e, { method: "GET", headers: r }).then((a) => a.json()).then((a) => {
|
|
1241
1241
|
a[E] || n(10, E = ge[0]);
|
|
1242
1242
|
const h = a.items.find((l) => l.type === "Real" && l.walletAccountType === "Ordinary");
|
|
1243
|
-
if (n(5,
|
|
1244
|
-
|
|
1243
|
+
if (n(5, _ = h.currency), ee = !!h.productType, n(1, d.Total = [{ amount: 0 }], d), n(1, d.Real = [], d), n(1, d.Bonus = [], d), n(1, d.Credit = [], d), !ee) {
|
|
1244
|
+
M = {
|
|
1245
1245
|
lastOrdinaryAfterAmount: 0,
|
|
1246
1246
|
showCreditLineAfterAmount: !1
|
|
1247
|
-
}, n(1,
|
|
1247
|
+
}, n(1, d.Total[0].amount = a[E][_], d);
|
|
1248
1248
|
for (const l of a.items)
|
|
1249
1249
|
switch (l.type) {
|
|
1250
1250
|
case "Bonus":
|
|
1251
|
-
|
|
1251
|
+
d.Bonus.length === 0 ? d.Bonus.push({ amount: l.amount }) : n(1, d.Bonus[0].amount += l.amount, d);
|
|
1252
1252
|
break;
|
|
1253
1253
|
case "Real":
|
|
1254
|
-
if (l.creditLine &&
|
|
1254
|
+
if (l.creditLine && d.Credit.length === 0 && d.Credit.push({ amount: l.creditLine }), E === "totalRealAmount")
|
|
1255
1255
|
continue;
|
|
1256
|
-
|
|
1256
|
+
d.Real.length === 0 ? d.Real.push({ amount: l.amount }) : n(1, d.Real[0].amount += l.amount, d);
|
|
1257
1257
|
break;
|
|
1258
1258
|
}
|
|
1259
|
-
for (const [l,
|
|
1260
|
-
|
|
1261
|
-
n(2,
|
|
1259
|
+
for (const [l, S] of Object.entries(d))
|
|
1260
|
+
S.length < 1 && delete d[l];
|
|
1261
|
+
n(2, z = !1);
|
|
1262
1262
|
return;
|
|
1263
1263
|
}
|
|
1264
|
-
|
|
1264
|
+
M = {
|
|
1265
1265
|
Casino: {
|
|
1266
1266
|
lastOrdinaryAfterAmount: 0,
|
|
1267
1267
|
showCreditLineAfterAmount: !1
|
|
@@ -1274,19 +1274,19 @@ function Wt(o, t, n) {
|
|
|
1274
1274
|
let f = a.items;
|
|
1275
1275
|
N && N !== "All" && (f = a.items.filter((l) => l.productType === N));
|
|
1276
1276
|
for (const l of f) {
|
|
1277
|
-
let
|
|
1277
|
+
let S;
|
|
1278
1278
|
switch (l.type) {
|
|
1279
1279
|
case "Bonus":
|
|
1280
|
-
|
|
1280
|
+
S = d.Bonus.findIndex((b) => b.productType === l.productType), S > 0 ? n(1, d.Bonus[S].amount += l.amount, d) : d.Bonus.push({
|
|
1281
1281
|
amount: l.amount,
|
|
1282
1282
|
productType: l.productType
|
|
1283
1283
|
});
|
|
1284
1284
|
break;
|
|
1285
1285
|
case "Real":
|
|
1286
|
-
l.creditLine &&
|
|
1286
|
+
l.creditLine && d.Credit.push({
|
|
1287
1287
|
amount: l.creditLine,
|
|
1288
1288
|
productType: l.productType
|
|
1289
|
-
}),
|
|
1289
|
+
}), S = d.Real.findIndex((b) => b.productType === l.productType), S > 0 ? n(1, d.Real[S].amount += l.amount, d) : d.Real.push({
|
|
1290
1290
|
amount: l.amount,
|
|
1291
1291
|
productType: l.productType
|
|
1292
1292
|
});
|
|
@@ -1294,29 +1294,29 @@ function Wt(o, t, n) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
Le();
|
|
1297
|
-
for (const [l,
|
|
1298
|
-
|
|
1299
|
-
n(2,
|
|
1297
|
+
for (const [l, S] of Object.entries(d))
|
|
1298
|
+
S.length < 1 && delete d[l];
|
|
1299
|
+
n(2, z = !1);
|
|
1300
1300
|
}).catch((a) => {
|
|
1301
|
-
throw n(2,
|
|
1301
|
+
throw n(2, z = !1), console.log("Balance fetch error", a), new Error("Failed to fetch balance data!");
|
|
1302
1302
|
});
|
|
1303
1303
|
}, be = () => {
|
|
1304
|
-
if (
|
|
1304
|
+
if (L && L.close(), c.length < 1)
|
|
1305
1305
|
return;
|
|
1306
1306
|
let e, r;
|
|
1307
|
-
switch (
|
|
1307
|
+
switch (I) {
|
|
1308
1308
|
case "gm16":
|
|
1309
|
-
e = new URL(`${g}/v2/player/${
|
|
1309
|
+
e = new URL(`${g}/v2/player/${u}/information/updates`), r = (h) => He(h);
|
|
1310
1310
|
break;
|
|
1311
1311
|
case "gmcore":
|
|
1312
|
-
e = new URL(`${g}/v1/player/${
|
|
1312
|
+
e = new URL(`${g}/v1/player/${u}/balance/updates`), r = (h) => Ee(h);
|
|
1313
1313
|
break;
|
|
1314
1314
|
}
|
|
1315
1315
|
const s = {
|
|
1316
1316
|
accept: "text/event-stream",
|
|
1317
1317
|
"X-SessionId": c
|
|
1318
1318
|
}, a = new Vt.EventSourcePolyfill(e, { headers: s });
|
|
1319
|
-
|
|
1319
|
+
L = a, a.addEventListener("message", r);
|
|
1320
1320
|
}, te = (e) => {
|
|
1321
1321
|
let r;
|
|
1322
1322
|
try {
|
|
@@ -1335,14 +1335,14 @@ function Wt(o, t, n) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
let s = "0";
|
|
1337
1337
|
const a = r.balanceChange;
|
|
1338
|
-
|
|
1338
|
+
O = O.map((l) => (a && a[l.id] && (l = et($e({}, l), {
|
|
1339
1339
|
balanceAmount: a[l.id].afterAmount
|
|
1340
|
-
})), s = (parseFloat(l == null ? void 0 : l.balanceAmount) + parseFloat(s)).toString(), l)), n(1,
|
|
1340
|
+
})), s = (parseFloat(l == null ? void 0 : l.balanceAmount) + parseFloat(s)).toString(), l)), n(1, d.Real = [{ amount: (h = O[0]) == null ? void 0 : h.balanceAmount }], d), n(1, d.Bonus = [{ amount: (f = O[1]) == null ? void 0 : f.balanceAmount }], d), n(1, d.Total = [{ amount: Number(s) }], d);
|
|
1341
1341
|
}, Se = (e, r, s) => {
|
|
1342
1342
|
let a = null;
|
|
1343
1343
|
switch (s.walletAccountType) {
|
|
1344
1344
|
case "Ordinary":
|
|
1345
|
-
s.afterAmount !== s.affectedAmount && (r.lastOrdinaryAfterAmount = s.afterAmount, r.showCreditLineAfterAmount || (a = s.afterAmount));
|
|
1345
|
+
(s.afterAmount !== s.affectedAmount || r.lastOrdinaryAfterAmount === 0) && (r.lastOrdinaryAfterAmount = s.afterAmount, r.showCreditLineAfterAmount || (a = s.afterAmount));
|
|
1346
1346
|
break;
|
|
1347
1347
|
case "CreditLine":
|
|
1348
1348
|
s.afterAmount !== 0 ? (a = s.afterAmount, r.showCreditLineAfterAmount = !0) : (a = r.lastOrdinaryAfterAmount, r.showCreditLineAfterAmount = !1);
|
|
@@ -1356,17 +1356,17 @@ function Wt(o, t, n) {
|
|
|
1356
1356
|
case "totalCashAmount":
|
|
1357
1357
|
let e = 0;
|
|
1358
1358
|
for (const s of ["Real", "Bonus"])
|
|
1359
|
-
for (const a of
|
|
1359
|
+
for (const a of d[s])
|
|
1360
1360
|
e += Math.max(a.amount, 0);
|
|
1361
|
-
n(1,
|
|
1361
|
+
n(1, d.Total[0].amount = e, d);
|
|
1362
1362
|
break;
|
|
1363
1363
|
case "totalRealAmount":
|
|
1364
|
-
if (!
|
|
1364
|
+
if (!ee)
|
|
1365
1365
|
return;
|
|
1366
1366
|
let r = 0;
|
|
1367
|
-
for (const s of
|
|
1367
|
+
for (const s of d.Real)
|
|
1368
1368
|
r += s.amount;
|
|
1369
|
-
n(1,
|
|
1369
|
+
n(1, d.Total[0].amount = r, d);
|
|
1370
1370
|
}
|
|
1371
1371
|
}, He = (e) => {
|
|
1372
1372
|
const r = te(e.data);
|
|
@@ -1378,13 +1378,13 @@ function Wt(o, t, n) {
|
|
|
1378
1378
|
return;
|
|
1379
1379
|
const s = r.body.balanceChange;
|
|
1380
1380
|
for (const [a, h] of Object.entries(s))
|
|
1381
|
-
if (E === "totalRealAmount" && a === "Real" && !
|
|
1382
|
-
for (const f of
|
|
1383
|
-
if (!
|
|
1384
|
-
f.amount = a === "Real" ? Se(f.amount,
|
|
1381
|
+
if (E === "totalRealAmount" && a === "Real" && !ee && n(1, d.Total[0].amount = Se(d.Total[0].amount, M, h), d), !!d[a])
|
|
1382
|
+
for (const f of d[a]) {
|
|
1383
|
+
if (!ee) {
|
|
1384
|
+
f.amount = a === "Real" ? Se(f.amount, M, h) : h.afterAmount;
|
|
1385
1385
|
continue;
|
|
1386
1386
|
}
|
|
1387
|
-
h.productType === f.productType && (f.amount = a === "Real" ? Se(f.amount,
|
|
1387
|
+
h.productType === f.productType && (f.amount = a === "Real" ? Se(f.amount, M[f.productType], h) : h.afterAmount);
|
|
1388
1388
|
}
|
|
1389
1389
|
Le();
|
|
1390
1390
|
}, Oe = () => {
|
|
@@ -1392,7 +1392,7 @@ function Wt(o, t, n) {
|
|
|
1392
1392
|
}, ze = () => {
|
|
1393
1393
|
ge.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ge}. Using default value ('${ge[0]}').`), n(10, E = ge[0]));
|
|
1394
1394
|
}, xe = () => {
|
|
1395
|
-
switch (
|
|
1395
|
+
switch (Nt(p), ze(), I) {
|
|
1396
1396
|
case "gmcore":
|
|
1397
1397
|
ye();
|
|
1398
1398
|
break;
|
|
@@ -1400,58 +1400,58 @@ function Wt(o, t, n) {
|
|
|
1400
1400
|
we();
|
|
1401
1401
|
break;
|
|
1402
1402
|
default:
|
|
1403
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
1403
|
+
throw Error(`Invalid apiversion attribute: ${I}`);
|
|
1404
1404
|
}
|
|
1405
|
-
}, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" &&
|
|
1405
|
+
}, Ce = (e) => e.data && e.data.type === "LogoutSuccessfull" && L.close(), ve = () => {
|
|
1406
1406
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
1407
1407
|
};
|
|
1408
1408
|
Et(() => (window.addEventListener("message", Ce, !1), () => {
|
|
1409
|
-
window.removeEventListener("message", Ce),
|
|
1409
|
+
window.removeEventListener("message", Ce), L && L.close();
|
|
1410
1410
|
}));
|
|
1411
1411
|
const J = () => me("balance"), Ue = () => me("closebalance"), Pe = () => Oe(), Ge = () => me("closeBalance");
|
|
1412
1412
|
function ke(e) {
|
|
1413
1413
|
xt[e ? "unshift" : "push"](() => {
|
|
1414
|
-
|
|
1414
|
+
x = e, n(0, x);
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
1417
|
return o.$$set = (e) => {
|
|
1418
|
-
"userid" in e && n(11,
|
|
1418
|
+
"userid" in e && n(11, u = e.userid), "session" in e && n(12, c = e.session), "endpoint" in e && n(13, g = e.endpoint), "lang" in e && n(14, p = e.lang), "mbsource" in e && n(15, m = e.mbsource), "clientstyling" in e && n(16, y = e.clientstyling), "clientstylingurl" in e && n(17, A = e.clientstylingurl), "translationurl" in e && n(18, k = e.translationurl), "customlocaleidentifier" in e && n(19, F = e.customlocaleidentifier), "gmversion" in e && n(20, I = e.gmversion), "displaybalanceoption" in e && n(21, N = e.displaybalanceoption), "totalcalculationmode" in e && n(10, E = e.totalcalculationmode), "currencyseparator" in e && n(22, w = e.currencyseparator), "currencydecimal" in e && n(23, T = e.currencydecimal), "currencyprecision" in e && n(24, H = e.currencyprecision);
|
|
1419
1419
|
}, o.$$.update = () => {
|
|
1420
1420
|
o.$$.dirty[0] & /*lang*/
|
|
1421
1421
|
16384 && p && Te(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
1422
|
-
3176448 && g &&
|
|
1423
|
-
1062912 && g &&
|
|
1424
|
-
262144 &&
|
|
1425
|
-
2 &&
|
|
1426
|
-
65537 && y &&
|
|
1427
|
-
131073 && A &&
|
|
1428
|
-
32769 && m &&
|
|
1422
|
+
3176448 && g && u && c && p && I && N && xe(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
1423
|
+
1062912 && g && u && c && I && be(), o.$$.dirty[0] & /*translationurl*/
|
|
1424
|
+
262144 && k && Re(), o.$$.dirty[0] & /*balances*/
|
|
1425
|
+
2 && d.Total && ve(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1426
|
+
65537 && y && x && Lt(x, y), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1427
|
+
131073 && A && x && Ot(x, A), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1428
|
+
32769 && m && x && kt(x, `${m}.Style`);
|
|
1429
1429
|
}, [
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1430
|
+
x,
|
|
1431
|
+
d,
|
|
1432
|
+
z,
|
|
1433
1433
|
re,
|
|
1434
1434
|
Y,
|
|
1435
|
-
|
|
1435
|
+
_,
|
|
1436
1436
|
i,
|
|
1437
1437
|
me,
|
|
1438
1438
|
ie,
|
|
1439
1439
|
Oe,
|
|
1440
1440
|
E,
|
|
1441
|
-
|
|
1441
|
+
u,
|
|
1442
1442
|
c,
|
|
1443
1443
|
g,
|
|
1444
1444
|
p,
|
|
1445
1445
|
m,
|
|
1446
1446
|
y,
|
|
1447
1447
|
A,
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1448
|
+
k,
|
|
1449
|
+
F,
|
|
1450
|
+
I,
|
|
1451
1451
|
N,
|
|
1452
1452
|
w,
|
|
1453
1453
|
T,
|
|
1454
|
-
|
|
1454
|
+
H,
|
|
1455
1455
|
J,
|
|
1456
1456
|
Ue,
|
|
1457
1457
|
Pe,
|