@everymatrix/casino-header-controller-nd 1.72.2 → 1.73.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/{CasinoHeaderControllerNd-HxHgjp2M.cjs → CasinoHeaderControllerNd-BvKTqLpZ.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-UcryA1Kq.js → CasinoHeaderControllerNd-gILH6sRG.js} +484 -457
- package/components/{CasinoHeaderControllerNd-B0bAQaCY.js → CasinoHeaderControllerNd-myIAi3CY.js} +474 -447
- package/components/{PlayerAccountBalanceModalNd-ChQMG2EM.js → PlayerAccountBalanceModalNd-B8NV0aWl.js} +68 -74
- package/components/{PlayerAccountBalanceModalNd-ByFMRCSL.js → PlayerAccountBalanceModalNd-Diavvs5i.js} +67 -73
- package/components/{PlayerAccountBalanceModalNd-BxY0Gcer.cjs → PlayerAccountBalanceModalNd-FsUN0rmT.cjs} +1 -1
- 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
|
@@ -26,7 +26,7 @@ var $e = (i, t, a) => new Promise((g, h) => {
|
|
|
26
26
|
}, m = (v) => v.done ? g(v.value) : Promise.resolve(v.value).then(d, B);
|
|
27
27
|
m((a = a.apply(i, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { b as yt, $ as vt, N as wt, S as bt, i as Bt, s as Tt, f as G, d as St, A as Ke, g as me, k as C, o as ge, p as _, r as I, v as ye, w as Ct, x as _t, y as At, q as je, B as
|
|
29
|
+
import { b as yt, $ as vt, N as wt, S as bt, i as Bt, s as Tt, f as G, d as St, A as Ke, g as me, k as C, o as ge, p as _, r as I, v as ye, w as Ct, x as _t, y as At, q as je, B as xt, D as Be, E as Te, F as et, z as Rt, G as He, H as ct, C as Et, K as Dt, L as Mt, M as Lt, c as kt, J as Ot } from "./CasinoHamburgerMenuNd-D5qHcIAM.js";
|
|
30
30
|
function tt(i, t) {
|
|
31
31
|
yt(i, t);
|
|
32
32
|
}
|
|
@@ -241,7 +241,7 @@ var qe = { exports: {} };
|
|
|
241
241
|
*/
|
|
242
242
|
(function(i, t) {
|
|
243
243
|
(function(a) {
|
|
244
|
-
var g = a.setTimeout, h = a.clearTimeout, d = a.XMLHttpRequest, B = a.XDomainRequest, m = a.ActiveXObject, v = a.EventSource, b = a.document, M = a.Promise, k = a.fetch, L = a.Response, A = a.TextDecoder, T = a.TextEncoder,
|
|
244
|
+
var g = a.setTimeout, h = a.clearTimeout, d = a.XMLHttpRequest, B = a.XDomainRequest, m = a.ActiveXObject, v = a.EventSource, b = a.document, M = a.Promise, k = a.fetch, L = a.Response, A = a.TextDecoder, T = a.TextEncoder, x = a.AbortController;
|
|
245
245
|
if (typeof window != "undefined" && typeof b != "undefined" && !("readyState" in b) && b.body == null && (b.readyState = "loading", window.addEventListener("load", function(n) {
|
|
246
246
|
b.readyState = "complete";
|
|
247
247
|
}, !1)), d == null && m != null && (d = function() {
|
|
@@ -252,7 +252,7 @@ var qe = { exports: {} };
|
|
|
252
252
|
return c.prototype = n, new c();
|
|
253
253
|
}), Date.now || (Date.now = function() {
|
|
254
254
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
255
|
-
}),
|
|
255
|
+
}), x == null) {
|
|
256
256
|
var j = k;
|
|
257
257
|
k = function(n, c) {
|
|
258
258
|
var u = c.signal;
|
|
@@ -269,7 +269,7 @@ var qe = { exports: {} };
|
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
});
|
|
272
|
-
},
|
|
272
|
+
}, x = function() {
|
|
273
273
|
this.signal = {
|
|
274
274
|
_reader: null,
|
|
275
275
|
_aborted: !1
|
|
@@ -328,16 +328,16 @@ var qe = { exports: {} };
|
|
|
328
328
|
};
|
|
329
329
|
var s = function() {
|
|
330
330
|
if (r === 1) {
|
|
331
|
-
var y = 0,
|
|
331
|
+
var y = 0, R = "", ne = void 0;
|
|
332
332
|
if ("contentType" in e)
|
|
333
|
-
y = 200,
|
|
333
|
+
y = 200, R = "OK", ne = e.contentType;
|
|
334
334
|
else
|
|
335
335
|
try {
|
|
336
|
-
y = e.status,
|
|
336
|
+
y = e.status, R = e.statusText, ne = e.getResponseHeader("Content-Type");
|
|
337
337
|
} catch (re) {
|
|
338
|
-
y = 0,
|
|
338
|
+
y = 0, R = "", ne = void 0;
|
|
339
339
|
}
|
|
340
|
-
y !== 0 && (r = 2, u.readyState = 2, u.status = y, u.statusText =
|
|
340
|
+
y !== 0 && (r = 2, u.readyState = 2, u.status = y, u.statusText = R, u._contentType = ne, u.onreadystatechange());
|
|
341
341
|
}
|
|
342
342
|
}, w = function() {
|
|
343
343
|
if (s(), r === 2 || r === 3) {
|
|
@@ -345,20 +345,20 @@ var qe = { exports: {} };
|
|
|
345
345
|
var y = "";
|
|
346
346
|
try {
|
|
347
347
|
y = e.responseText;
|
|
348
|
-
} catch (
|
|
348
|
+
} catch (R) {
|
|
349
349
|
}
|
|
350
350
|
u.readyState = 3, u.responseText = y, u.onprogress();
|
|
351
351
|
}
|
|
352
|
-
}, p = function(y,
|
|
353
|
-
if ((
|
|
352
|
+
}, p = function(y, R) {
|
|
353
|
+
if ((R == null || R.preventDefault == null) && (R = {
|
|
354
354
|
preventDefault: F
|
|
355
355
|
}), w(), r === 1 || r === 2 || r === 3) {
|
|
356
356
|
if (r = 4, o !== 0 && (h(o), o = 0), u.readyState = 4, y === "load")
|
|
357
|
-
u.onload(
|
|
357
|
+
u.onload(R);
|
|
358
358
|
else if (y === "error")
|
|
359
|
-
u.onerror(
|
|
359
|
+
u.onerror(R);
|
|
360
360
|
else if (y === "abort")
|
|
361
|
-
u.onabort(
|
|
361
|
+
u.onabort(R);
|
|
362
362
|
else
|
|
363
363
|
throw new TypeError();
|
|
364
364
|
u.onreadystatechange();
|
|
@@ -438,8 +438,8 @@ var qe = { exports: {} };
|
|
|
438
438
|
e(null);
|
|
439
439
|
}, n.onreadystatechange = function() {
|
|
440
440
|
if (n.readyState === d.HEADERS_RECEIVED) {
|
|
441
|
-
var l = n.status, S = n.statusText, y = n.getResponseHeader("Content-Type"),
|
|
442
|
-
c(l, S, y, new ce(
|
|
441
|
+
var l = n.status, S = n.statusText, y = n.getResponseHeader("Content-Type"), R = n.getAllResponseHeaders();
|
|
442
|
+
c(l, S, y, new ce(R));
|
|
443
443
|
}
|
|
444
444
|
}, n.withCredentials = o;
|
|
445
445
|
for (var p in s)
|
|
@@ -455,18 +455,18 @@ var qe = { exports: {} };
|
|
|
455
455
|
function E() {
|
|
456
456
|
}
|
|
457
457
|
E.prototype.open = function(n, c, u, e, r, o, s) {
|
|
458
|
-
var w = null, p = new
|
|
458
|
+
var w = null, p = new x(), l = p.signal, S = new A();
|
|
459
459
|
return k(r, {
|
|
460
460
|
headers: s,
|
|
461
461
|
credentials: o ? "include" : "same-origin",
|
|
462
462
|
signal: l,
|
|
463
463
|
cache: "no-store"
|
|
464
464
|
}).then(function(y) {
|
|
465
|
-
return w = y.body.getReader(), c(y.status, y.statusText, y.headers.get("Content-Type"), new N(y.headers)), new M(function(
|
|
465
|
+
return w = y.body.getReader(), c(y.status, y.statusText, y.headers.get("Content-Type"), new N(y.headers)), new M(function(R, ne) {
|
|
466
466
|
var re = function() {
|
|
467
467
|
w.read().then(function(Q) {
|
|
468
468
|
if (Q.done)
|
|
469
|
-
|
|
469
|
+
R(void 0);
|
|
470
470
|
else {
|
|
471
471
|
var K = S.decode(Q.value, { stream: !0 });
|
|
472
472
|
u(K), re();
|
|
@@ -539,7 +539,7 @@ var qe = { exports: {} };
|
|
|
539
539
|
P.call(this, n), this.error = c.error;
|
|
540
540
|
}
|
|
541
541
|
f.prototype = Object.create(P.prototype);
|
|
542
|
-
var ue = -1, le = 0, ae = 1, we = 2,
|
|
542
|
+
var ue = -1, le = 0, ae = 1, we = 2, xe = -1, se = 0, Re = 1, Se = 2, Le = 3, ze = /^text\/event\-stream(;.*)?$/i, Ee = 1e3, ke = 18e6, De = function(n, c) {
|
|
543
543
|
var u = n == null ? c : parseInt(n, 10);
|
|
544
544
|
return u !== u && (u = c), Ce(u);
|
|
545
545
|
}, Ce = function(n) {
|
|
@@ -560,7 +560,7 @@ var qe = { exports: {} };
|
|
|
560
560
|
var Ve = k != null && L != null && "body" in L.prototype;
|
|
561
561
|
function Ue(n, c, u) {
|
|
562
562
|
c = String(c);
|
|
563
|
-
var e = !!u.withCredentials, r = u.lastEventIdQueryParameterName || "lastEventId", o = Ce(1e3), s = De(u.heartbeatTimeout, 45e3), w = "", p = o, l = !1, S = 0, y = u.headers || {},
|
|
563
|
+
var e = !!u.withCredentials, r = u.lastEventIdQueryParameterName || "lastEventId", o = Ce(1e3), s = De(u.heartbeatTimeout, 45e3), w = "", p = o, l = !1, S = 0, y = u.headers || {}, R = u.Transport, ne = Ve && R == null ? void 0 : new O(R != null ? new R() : Oe()), re = R != null && typeof R != "string" ? new R() : ne == null ? new E() : new X(), Q = void 0, K = 0, ie = ue, _e = "", Fe = "", fe = "", Ie = "", q = se, Pe = 0, be = 0, dt = function(V, H, Z, $) {
|
|
564
564
|
if (ie === le)
|
|
565
565
|
if (V === 200 && Z != null && ze.test(Z)) {
|
|
566
566
|
ie = ae, l = Date.now(), p = o, n.readyState = ae;
|
|
@@ -590,11 +590,11 @@ var qe = { exports: {} };
|
|
|
590
590
|
Ie = (H === -1 ? Ie : "") + V.slice(H + 1), V !== "" && (l = Date.now(), S += V.length);
|
|
591
591
|
for (var U = 0; U < W.length; U += 1) {
|
|
592
592
|
var $ = W.charCodeAt(U);
|
|
593
|
-
if (q ===
|
|
593
|
+
if (q === xe && $ === 10)
|
|
594
594
|
q = se;
|
|
595
|
-
else if (q ===
|
|
595
|
+
else if (q === xe && (q = se), $ === 13 || $ === 10) {
|
|
596
596
|
if (q !== se) {
|
|
597
|
-
q ===
|
|
597
|
+
q === Re && (be = U + 1);
|
|
598
598
|
var pe = W.slice(Pe, be - 1), he = W.slice(be + (be < U && W.charCodeAt(be) === 32 ? 1 : 0), U);
|
|
599
599
|
pe === "data" ? (_e += `
|
|
600
600
|
`, _e += he) : pe === "id" ? Fe = he : pe === "event" ? fe = he : pe === "retry" ? (o = De(he, o), p = o) : pe === "heartbeatTimeout" && (s = De(he, s), K !== 0 && (h(K), K = g(function() {
|
|
@@ -613,9 +613,9 @@ var qe = { exports: {} };
|
|
|
613
613
|
}
|
|
614
614
|
_e = "", fe = "";
|
|
615
615
|
}
|
|
616
|
-
q = $ === 13 ?
|
|
616
|
+
q = $ === 13 ? xe : se;
|
|
617
617
|
} else
|
|
618
|
-
q === se && (Pe = U, q =
|
|
618
|
+
q === se && (Pe = U, q = Re), q === Re ? $ === 58 && (be = U + 1, q = Se) : q === Se && (q = Le);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
}, We = function(V) {
|
|
@@ -706,33 +706,33 @@ function jt(i) {
|
|
|
706
706
|
);
|
|
707
707
|
return {
|
|
708
708
|
c() {
|
|
709
|
-
t = I("button"), a = I("p"), h = Te(g), d = ye(), B = I("span"), m = et("svg"), v = et("path"), M = ye(), T && T.c(), k =
|
|
709
|
+
t = I("button"), a = I("p"), h = Te(g), d = ye(), B = I("span"), m = et("svg"), v = et("path"), M = ye(), T && T.c(), k = Rt(), C(v, "id", "arrow"), C(v, "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(v, "transform", "translate(-274.511 -441.088)"), C(v, "fill", "#d1d1d1"), C(m, "xmlns", "http://www.w3.org/2000/svg"), C(m, "width", "14"), C(m, "height", "6.835"), C(m, "viewBox", "0 0 14 6.835"), C(B, "class", b = /*isModalDisplayed*/
|
|
710
710
|
i[3] ? "TriangleActive" : "TriangleInactive"), C(t, "class", "BalanceValue");
|
|
711
711
|
},
|
|
712
|
-
m(
|
|
713
|
-
ge(
|
|
712
|
+
m(x, j) {
|
|
713
|
+
ge(x, t, j), _(t, a), _(a, h), _(t, d), _(t, B), _(B, m), _(m, v), ge(x, M, j), T && T.m(x, j), ge(x, k, j), L || (A = je(
|
|
714
714
|
t,
|
|
715
715
|
"click",
|
|
716
716
|
/*click_handler*/
|
|
717
717
|
i[26]
|
|
718
718
|
), L = !0);
|
|
719
719
|
},
|
|
720
|
-
p(
|
|
720
|
+
p(x, j) {
|
|
721
721
|
j[0] & /*balances*/
|
|
722
722
|
2 && g !== (g = /*balances*/
|
|
723
|
-
(
|
|
723
|
+
(x[1].Total ? (
|
|
724
724
|
/*formatBalance*/
|
|
725
|
-
|
|
725
|
+
x[8](
|
|
726
726
|
/*balances*/
|
|
727
|
-
|
|
727
|
+
x[1].Total[0].amount
|
|
728
728
|
)
|
|
729
729
|
) : "0") + "") && Be(h, g), j[0] & /*isModalDisplayed*/
|
|
730
730
|
8 && b !== (b = /*isModalDisplayed*/
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
x[3] ? "TriangleActive" : "TriangleInactive") && C(B, "class", b), /*showBalance*/
|
|
732
|
+
x[4] ? T ? T.p(x, j) : (T = rt(x), T.c(), T.m(k.parentNode, k)) : T && (T.d(1), T = null);
|
|
733
733
|
},
|
|
734
|
-
d(
|
|
735
|
-
|
|
734
|
+
d(x) {
|
|
735
|
+
x && (me(t), me(M), me(k)), T && T.d(x), L = !1, A();
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
738
|
}
|
|
@@ -762,7 +762,7 @@ function rt(i) {
|
|
|
762
762
|
let t, a, g, h, d, B, m, v, b = (
|
|
763
763
|
/*$_*/
|
|
764
764
|
i[6]("Title") + ""
|
|
765
|
-
), M, k, L, A, T,
|
|
765
|
+
), M, k, L, A, T, x, j = (
|
|
766
766
|
/*$_*/
|
|
767
767
|
i[6]("DepositButton") + ""
|
|
768
768
|
), ee, te, F, O, Y, ce, X = He(Object.keys(
|
|
@@ -776,8 +776,8 @@ function rt(i) {
|
|
|
776
776
|
t = I("div"), a = I("button"), h = ye(), d = I("div"), B = I("div"), m = I("div"), v = I("p"), M = Te(b), k = ye(), L = I("div");
|
|
777
777
|
for (let E = 0; E < N.length; E += 1)
|
|
778
778
|
N[E].c();
|
|
779
|
-
A = ye(), T = I("div"),
|
|
780
|
-
(i[3] ? "Open" : "")), C(v, "class", "BalanceModalTitle"), C(m, "class", "BalanceModalHeader"), C(L, "class", "BalanceModalBody"), C(
|
|
779
|
+
A = ye(), T = I("div"), x = I("button"), ee = Te(j), C(a, "class", g = "BalanceModalClose " + /*isModalDisplayed*/
|
|
780
|
+
(i[3] ? "Open" : "")), C(v, "class", "BalanceModalTitle"), C(m, "class", "BalanceModalHeader"), C(L, "class", "BalanceModalBody"), C(x, "class", "BalanceModalAction"), C(T, "class", "BalanceModalFooter"), C(B, "class", te = "ModalContent " + /*isModalDisplayed*/
|
|
781
781
|
(i[3] ? "Open" : "")), C(d, "class", F = "BalanceModal " + /*isModalDisplayed*/
|
|
782
782
|
(i[3] ? "Open" : "")), C(t, "class", O = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
783
783
|
(i[3] ? "Open" : ""));
|
|
@@ -786,7 +786,7 @@ function rt(i) {
|
|
|
786
786
|
ge(E, t, z), _(t, a), _(t, h), _(t, d), _(d, B), _(B, m), _(m, v), _(v, M), _(B, k), _(B, L);
|
|
787
787
|
for (let D = 0; D < N.length; D += 1)
|
|
788
788
|
N[D] && N[D].m(L, null);
|
|
789
|
-
_(B, A), _(B, T), _(T,
|
|
789
|
+
_(B, A), _(B, T), _(T, x), _(x, ee), Y || (ce = [
|
|
790
790
|
je(
|
|
791
791
|
a,
|
|
792
792
|
"click",
|
|
@@ -794,7 +794,7 @@ function rt(i) {
|
|
|
794
794
|
i[27]
|
|
795
795
|
),
|
|
796
796
|
je(
|
|
797
|
-
|
|
797
|
+
x,
|
|
798
798
|
"click",
|
|
799
799
|
/*click_handler_2*/
|
|
800
800
|
i[28]
|
|
@@ -853,14 +853,11 @@ function it(i) {
|
|
|
853
853
|
)
|
|
854
854
|
) : "") + ""
|
|
855
855
|
), m, v, b, M, k = (
|
|
856
|
-
/*
|
|
857
|
-
|
|
858
|
-
/*
|
|
859
|
-
i[
|
|
860
|
-
|
|
861
|
-
i[56].amount
|
|
862
|
-
)
|
|
863
|
-
) : "0") + ""
|
|
856
|
+
/*formatBalance*/
|
|
857
|
+
i[8](
|
|
858
|
+
/*b*/
|
|
859
|
+
i[56].amount
|
|
860
|
+
) + ""
|
|
864
861
|
), L;
|
|
865
862
|
return {
|
|
866
863
|
c() {
|
|
@@ -884,14 +881,11 @@ function it(i) {
|
|
|
884
881
|
A[56].productType
|
|
885
882
|
)
|
|
886
883
|
) : "") + "") && Be(m, B), T[0] & /*balances*/
|
|
887
|
-
2 && k !== (k = /*
|
|
888
|
-
|
|
889
|
-
/*
|
|
890
|
-
A[
|
|
891
|
-
|
|
892
|
-
A[56].amount
|
|
893
|
-
)
|
|
894
|
-
) : "0") + "") && Be(L, k);
|
|
884
|
+
2 && k !== (k = /*formatBalance*/
|
|
885
|
+
A[8](
|
|
886
|
+
/*b*/
|
|
887
|
+
A[56].amount
|
|
888
|
+
) + "") && Be(L, k);
|
|
895
889
|
},
|
|
896
890
|
d(A) {
|
|
897
891
|
A && me(t);
|
|
@@ -922,7 +916,7 @@ function lt(i) {
|
|
|
922
916
|
_(t, a);
|
|
923
917
|
},
|
|
924
918
|
p(d, B) {
|
|
925
|
-
if (B[0] & /*
|
|
919
|
+
if (B[0] & /*formatBalance, balances, $_*/
|
|
926
920
|
322) {
|
|
927
921
|
g = He(
|
|
928
922
|
/*balances*/
|
|
@@ -1002,7 +996,7 @@ function zt(i) {
|
|
|
1002
996
|
function Vt(i, t, a) {
|
|
1003
997
|
let g;
|
|
1004
998
|
Ct(i, Ot, (e) => a(6, g = e));
|
|
1005
|
-
let { userid: h = "" } = t, { session: d = "" } = t, { endpoint: B = "" } = t, { lang: m = "en" } = t, { mbsource: v } = t, { clientstyling: b = "" } = t, { clientstylingurl: M = "" } = t, { translationurl: k = "" } = t, { gmversion: L = "gm16" } = t, { displaybalanceoption: A = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale:
|
|
999
|
+
let { userid: h = "" } = t, { session: d = "" } = t, { endpoint: B = "" } = t, { lang: m = "en" } = t, { mbsource: v } = t, { clientstyling: b = "" } = t, { clientstylingurl: M = "" } = t, { translationurl: k = "" } = t, { gmversion: L = "gm16" } = t, { displaybalanceoption: A = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: x = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: ee = "2" } = t, { minimumfractiondigits: te = "0" } = t, { customdisplayformat: F = "" } = t, O, Y = !0, ce = !1, X = !1, N = !1, E = !1, z = window.navigator.userAgent, D, P = "", oe = [], de;
|
|
1006
1000
|
const f = {}, ue = ["totalCashAmount", "totalRealAmount"], le = () => {
|
|
1007
1001
|
fetch(k).then((e) => e.json()).then((e) => Object.keys(e).forEach((r) => tt(r, e[r]))).catch((e) => console.log(e));
|
|
1008
1002
|
};
|
|
@@ -1035,8 +1029,8 @@ function Vt(i, t, a) {
|
|
|
1035
1029
|
}
|
|
1036
1030
|
}, we = (e) => {
|
|
1037
1031
|
if (F)
|
|
1038
|
-
return
|
|
1039
|
-
const r =
|
|
1032
|
+
return xe(e);
|
|
1033
|
+
const r = x || m, o = {
|
|
1040
1034
|
style: "currency",
|
|
1041
1035
|
currency: P,
|
|
1042
1036
|
useGrouping: !0,
|
|
@@ -1045,7 +1039,7 @@ function Vt(i, t, a) {
|
|
|
1045
1039
|
minimumFractionDigits: te === "" || isNaN(Number(te)) ? 0 : Number(te)
|
|
1046
1040
|
};
|
|
1047
1041
|
return new Intl.NumberFormat(r, o).format(e);
|
|
1048
|
-
},
|
|
1042
|
+
}, xe = (e) => {
|
|
1049
1043
|
const r = [];
|
|
1050
1044
|
let o = "";
|
|
1051
1045
|
for (const s of F)
|
|
@@ -1063,10 +1057,10 @@ function Vt(i, t, a) {
|
|
|
1063
1057
|
else if (w.toLowerCase() === "amount") {
|
|
1064
1058
|
let l = ",", S = ".", y = 2;
|
|
1065
1059
|
p && (p[0] !== " " && (l = p[0]), p[1] !== " " && (S = p[1]), p[2] !== " " && !isNaN(Number(p[2])) && (y = Number(p[2])));
|
|
1066
|
-
let [
|
|
1067
|
-
o +=
|
|
1068
|
-
for (let re = 1; re <
|
|
1069
|
-
(
|
|
1060
|
+
let [R, ne] = String(Math.floor(e * Xe(10, y)) / Xe(10, y)).split(".");
|
|
1061
|
+
o += R[0];
|
|
1062
|
+
for (let re = 1; re < R.length; ++re)
|
|
1063
|
+
(R.length - re) % 3 === 0 ? o += l + R[re] : o += R[re];
|
|
1070
1064
|
ne && (o += S + ne);
|
|
1071
1065
|
}
|
|
1072
1066
|
o && r.push(o), o = "";
|
|
@@ -1107,7 +1101,7 @@ function Vt(i, t, a) {
|
|
|
1107
1101
|
} finally {
|
|
1108
1102
|
a(2, Y = !1);
|
|
1109
1103
|
}
|
|
1110
|
-
}),
|
|
1104
|
+
}), Re = () => {
|
|
1111
1105
|
a(2, Y = !0);
|
|
1112
1106
|
const e = new URL(`${B}/v2/player/${h}/balance`), r = new Headers();
|
|
1113
1107
|
r.append("X-SessionID", d), fetch(e, { method: "GET", headers: r }).then((s) => s.json()).then((s) => {
|
|
@@ -1270,7 +1264,7 @@ function Vt(i, t, a) {
|
|
|
1270
1264
|
se();
|
|
1271
1265
|
break;
|
|
1272
1266
|
case "gm16":
|
|
1273
|
-
|
|
1267
|
+
Re();
|
|
1274
1268
|
break;
|
|
1275
1269
|
default:
|
|
1276
1270
|
throw Error(`Invalid apiversion attribute: ${L}`);
|
|
@@ -1281,14 +1275,14 @@ function Vt(i, t, a) {
|
|
|
1281
1275
|
_t(() => (window.addEventListener("message", Oe, !1), a(5, E = At(z)), () => {
|
|
1282
1276
|
window.removeEventListener("message", Oe), D && D.close();
|
|
1283
1277
|
}));
|
|
1284
|
-
const Ue = () => ae("balance"), Ne = () => ae("closebalance"), n = () => Ce(), c = () => ae("
|
|
1278
|
+
const Ue = () => ae("balance"), Ne = () => ae("closebalance"), n = () => Ce(), c = () => ae("closebalance");
|
|
1285
1279
|
function u(e) {
|
|
1286
|
-
|
|
1280
|
+
xt[e ? "unshift" : "push"](() => {
|
|
1287
1281
|
O = e, a(0, O);
|
|
1288
1282
|
});
|
|
1289
1283
|
}
|
|
1290
1284
|
return i.$$set = (e) => {
|
|
1291
|
-
"userid" in e && a(11, h = e.userid), "session" in e && a(12, d = e.session), "endpoint" in e && a(13, B = e.endpoint), "lang" in e && a(14, m = e.lang), "mbsource" in e && a(15, v = e.mbsource), "clientstyling" in e && a(16, b = e.clientstyling), "clientstylingurl" in e && a(17, M = e.clientstylingurl), "translationurl" in e && a(18, k = e.translationurl), "gmversion" in e && a(19, L = e.gmversion), "displaybalanceoption" in e && a(20, A = e.displaybalanceoption), "totalcalculationmode" in e && a(10, T = e.totalcalculationmode), "currencylocale" in e && a(21,
|
|
1285
|
+
"userid" in e && a(11, h = e.userid), "session" in e && a(12, d = e.session), "endpoint" in e && a(13, B = e.endpoint), "lang" in e && a(14, m = e.lang), "mbsource" in e && a(15, v = e.mbsource), "clientstyling" in e && a(16, b = e.clientstyling), "clientstylingurl" in e && a(17, M = e.clientstylingurl), "translationurl" in e && a(18, k = e.translationurl), "gmversion" in e && a(19, L = e.gmversion), "displaybalanceoption" in e && a(20, A = e.displaybalanceoption), "totalcalculationmode" in e && a(10, T = e.totalcalculationmode), "currencylocale" in e && a(21, x = e.currencylocale), "currencydisplay" in e && a(22, j = e.currencydisplay), "maximumfractiondigits" in e && a(23, ee = e.maximumfractiondigits), "minimumfractiondigits" in e && a(24, te = e.minimumfractiondigits), "customdisplayformat" in e && a(25, F = e.customdisplayformat);
|
|
1292
1286
|
}, i.$$.update = () => {
|
|
1293
1287
|
i.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
1294
1288
|
1603584 && B && h && d && m && L && A && J(), i.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
@@ -1320,7 +1314,7 @@ function Vt(i, t, a) {
|
|
|
1320
1314
|
k,
|
|
1321
1315
|
L,
|
|
1322
1316
|
A,
|
|
1323
|
-
|
|
1317
|
+
x,
|
|
1324
1318
|
j,
|
|
1325
1319
|
ee,
|
|
1326
1320
|
te,
|