@everymatrix/casino-header-controller 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHamburgerMenu-JVY4ac8I.js → CasinoHamburgerMenu-D3IA0-Fr.js} +68 -31
- package/components/{CasinoHamburgerMenu-C8-P7sF9.cjs → CasinoHamburgerMenu-DessG6uq.cjs} +16 -3
- package/components/{CasinoHamburgerMenu-E4O8Dx5o.js → CasinoHamburgerMenu-DyL5A7W7.js} +69 -32
- package/components/CasinoHeaderController-BFP8179I.cjs +13 -0
- package/components/{CasinoHeaderController-9s-CNvhj.js → CasinoHeaderController-BbEsH91Z.js} +522 -488
- package/components/{CasinoHeaderController-BVCLQUCq.js → CasinoHeaderController-DeiDjcf5.js} +581 -547
- package/components/{CasinoSlider-xu8jCpW1.js → CasinoSlider-BiQpUhjL.js} +63 -63
- package/components/CasinoSlider-E1mSYv_J.cjs +1 -0
- package/components/{CasinoSlider-yMz4R8ed.js → CasinoSlider-MTl32pNB.js} +59 -59
- package/components/{PlayerAccountBalanceModal-BVQlpIy4.cjs → PlayerAccountBalanceModal-B9BkSlDU.cjs} +5 -5
- package/components/{PlayerAccountBalanceModal-CcASksA3.js → PlayerAccountBalanceModal-CEo_b6Ks.js} +119 -116
- package/components/{PlayerAccountBalanceModal-DG6GgVDp.js → PlayerAccountBalanceModal-fP9D_Jz7.js} +118 -115
- package/components/{PlayerDeposit-CIarW5H1.js → PlayerDeposit-Bv78j0E8.js} +15 -15
- package/components/{PlayerDeposit-C8ZPqrpV.cjs → PlayerDeposit-C7xxeNB2.cjs} +1 -1
- package/components/{PlayerDeposit-D9xpcJp9.js → PlayerDeposit-DiUqgMu-.js} +15 -15
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-1ef3a64c-6soTLew7.js +556 -0
- package/stencil/index-1ef3a64c-DkMoO-oa.js +572 -0
- package/stencil/index-1ef3a64c-DmmoSOho.cjs +1 -0
- package/stencil/{user-deposit-withdrawal-Dg3a3KkR.js → user-deposit-withdrawal-C72e1sSw.js} +216 -178
- package/stencil/user-deposit-withdrawal-CS-LZhcv.cjs +59 -0
- package/stencil/{user-deposit-withdrawal-gu9RDhoH.js → user-deposit-withdrawal-DfDiD6Lp.js} +289 -251
- package/components/CasinoHeaderController-BZk18wxU.cjs +0 -13
- package/components/CasinoSlider-DDycojG8.cjs +0 -1
- package/stencil/index-657e7a14-BQuTIY5_.js +0 -572
- package/stencil/index-657e7a14-CDqZBTHG.cjs +0 -1
- package/stencil/index-657e7a14-fo2CD-e3.js +0 -588
- package/stencil/user-deposit-withdrawal-BCkoyv3i.cjs +0 -59
package/components/{PlayerAccountBalanceModal-CcASksA3.js → PlayerAccountBalanceModal-CEo_b6Ks.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { b as ct, $ as ut, O as dt, S as ft, i as pt, f as K, c as ht, s as mt, d as gt, g as N, e as oe, x as
|
1
|
+
import { b as ct, $ as ut, O as dt, S as ft, i as pt, f as K, c as ht, s as mt, d as gt, g as N, e as oe, x as z, j as he, y as R, n as Ke, k as me, l as yt, o as vt, m as wt, z as Ve, q as bt, t as Bt, u as Ct, w as fe, E as Tt, A as pe, v as je, B as rt, C as St, G as _t } from "./CasinoHamburgerMenu-D3IA0-Fr.js";
|
2
2
|
function Qe(o, e) {
|
3
3
|
ct(o, e);
|
4
4
|
}
|
@@ -250,10 +250,10 @@ var We = { exports: {} };
|
|
250
250
|
};
|
251
251
|
};
|
252
252
|
}
|
253
|
-
function
|
253
|
+
function j() {
|
254
254
|
this.bitsNeeded = 0, this.codePoint = 0;
|
255
255
|
}
|
256
|
-
|
256
|
+
j.prototype.decode = function(t) {
|
257
257
|
function a(E, L, v) {
|
258
258
|
if (v === 1)
|
259
259
|
return E >= 128 >> L && E << L <= 2047;
|
@@ -286,17 +286,17 @@ var We = { exports: {} };
|
|
286
286
|
}
|
287
287
|
return !1;
|
288
288
|
};
|
289
|
-
(B == null || A == null || !Z()) && (B =
|
290
|
-
var
|
289
|
+
(B == null || A == null || !Z()) && (B = j);
|
290
|
+
var S = function() {
|
291
291
|
};
|
292
292
|
function C(t) {
|
293
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
293
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = S, this.onload = S, this.onerror = S, this.onreadystatechange = S, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = S;
|
294
294
|
}
|
295
295
|
C.prototype.open = function(t, a) {
|
296
296
|
this._abort(!0);
|
297
297
|
var s = this, i = this._xhr, d = 1, h = 0;
|
298
298
|
this._abort = function(v) {
|
299
|
-
s._sendTimeout !== 0 && (l(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, i.onload =
|
299
|
+
s._sendTimeout !== 0 && (l(s._sendTimeout), s._sendTimeout = 0), (d === 1 || d === 2 || d === 3) && (d = 4, i.onload = S, i.onerror = S, i.onabort = S, i.onprogress = S, i.onreadystatechange = S, i.abort(), h !== 0 && (l(h), h = 0), v || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), d = 0;
|
300
300
|
};
|
301
301
|
var w = function() {
|
302
302
|
if (d === 1) {
|
@@ -323,7 +323,7 @@ var We = { exports: {} };
|
|
323
323
|
}
|
324
324
|
}, _ = function(v, O) {
|
325
325
|
if ((O == null || O.preventDefault == null) && (O = {
|
326
|
-
preventDefault:
|
326
|
+
preventDefault: S
|
327
327
|
}), k(), d === 1 || d === 2 || d === 3) {
|
328
328
|
if (d = 4, h !== 0 && (l(h), h = 0), s.readyState = 4, v === "load")
|
329
329
|
s.onload(O);
|
@@ -511,7 +511,7 @@ var We = { exports: {} };
|
|
511
511
|
f.call(this, t), this.error = a.error;
|
512
512
|
}
|
513
513
|
Ee.prototype = Object.create(f.prototype);
|
514
|
-
var xe = -1, re = 0, ve = 1, se = 2, Ce = -1, ie = 0, be = 1, De = 2, He = 3, ke = /^text\/event\-stream(;.*)?$/i, ze = 1e3, Ue = 18e6,
|
514
|
+
var xe = -1, re = 0, ve = 1, se = 2, Ce = -1, ie = 0, be = 1, De = 2, He = 3, ke = /^text\/event\-stream(;.*)?$/i, ze = 1e3, Ue = 18e6, Te = function(t, a) {
|
515
515
|
var s = t == null ? a : parseInt(t, 10);
|
516
516
|
return s !== s && (s = a), Le(s);
|
517
517
|
}, Le = function(t) {
|
@@ -532,71 +532,71 @@ var We = { exports: {} };
|
|
532
532
|
var Ge = F != null && b != null && "body" in b.prototype;
|
533
533
|
function u(t, a, s) {
|
534
534
|
a = String(a);
|
535
|
-
var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = Le(1e3), w =
|
535
|
+
var i = !!s.withCredentials, d = s.lastEventIdQueryParameterName || "lastEventId", h = Le(1e3), w = Te(s.heartbeatTimeout, 45e3), k = "", _ = h, E = !1, L = 0, v = s.headers || {}, O = s.Transport, le = Ge && O == null ? void 0 : new C(O != null ? new O() : Pe()), Me = O != null && typeof O != "string" ? new O() : le == null ? new ge() : new $(), Y = void 0, G = 0, ne = xe, Se = "", Oe = "", ce = "", Ne = "", X = ie, Xe = 0, Be = 0, st = function(V, I, J, Q) {
|
536
536
|
if (ne === re)
|
537
|
-
if (
|
537
|
+
if (V === 200 && J != null && ke.test(J)) {
|
538
538
|
ne = ve, E = Date.now(), _ = h, t.readyState = ve;
|
539
539
|
var q = new Re("open", {
|
540
|
-
status:
|
540
|
+
status: V,
|
541
541
|
statusText: I,
|
542
542
|
headers: Q
|
543
543
|
});
|
544
544
|
t.dispatchEvent(q), we(t, t.onopen, q);
|
545
545
|
} else {
|
546
|
-
var
|
547
|
-
|
546
|
+
var H = "";
|
547
|
+
V !== 200 ? (I && (I = I.replace(/\s+/g, " ")), H = "EventSource's response has a status " + V + " " + I + " that is not 200. Aborting the connection.") : H = "EventSource's response has a Content-Type specifying an unsupported type: " + (J == null ? "-" : J.replace(/\s+/g, " ")) + ". Aborting the connection.", qe();
|
548
548
|
var q = new Re("error", {
|
549
|
-
status:
|
549
|
+
status: V,
|
550
550
|
statusText: I,
|
551
551
|
headers: Q
|
552
552
|
});
|
553
|
-
t.dispatchEvent(q), we(t, t.onerror, q), console.error(
|
553
|
+
t.dispatchEvent(q), we(t, t.onerror, q), console.error(H);
|
554
554
|
}
|
555
|
-
}, lt = function(
|
555
|
+
}, lt = function(V) {
|
556
556
|
if (ne === ve) {
|
557
|
-
for (var I = -1, J = 0; J <
|
558
|
-
var Q =
|
557
|
+
for (var I = -1, J = 0; J < V.length; J += 1) {
|
558
|
+
var Q = V.charCodeAt(J);
|
559
559
|
(Q === 10 || Q === 13) && (I = J);
|
560
560
|
}
|
561
|
-
var q = (I !== -1 ? Ne : "") +
|
562
|
-
Ne = (I === -1 ? Ne : "") +
|
563
|
-
for (var
|
564
|
-
var Q = q.charCodeAt(
|
561
|
+
var q = (I !== -1 ? Ne : "") + V.slice(0, I + 1);
|
562
|
+
Ne = (I === -1 ? Ne : "") + V.slice(I + 1), V !== "" && (E = Date.now(), L += V.length);
|
563
|
+
for (var H = 0; H < q.length; H += 1) {
|
564
|
+
var Q = q.charCodeAt(H);
|
565
565
|
if (X === Ce && Q === 10)
|
566
566
|
X = ie;
|
567
567
|
else if (X === Ce && (X = ie), Q === 13 || Q === 10) {
|
568
568
|
if (X !== ie) {
|
569
|
-
X === be && (Be =
|
570
|
-
var ue = q.slice(Xe, Be - 1), de = q.slice(Be + (Be <
|
571
|
-
ue === "data" ? (
|
572
|
-
`,
|
569
|
+
X === be && (Be = H + 1);
|
570
|
+
var ue = q.slice(Xe, Be - 1), de = q.slice(Be + (Be < H && q.charCodeAt(Be) === 32 ? 1 : 0), H);
|
571
|
+
ue === "data" ? (Se += `
|
572
|
+
`, Se += de) : ue === "id" ? Oe = de : ue === "event" ? ce = de : ue === "retry" ? (h = Te(de, h), _ = h) : ue === "heartbeatTimeout" && (w = Te(de, w), G !== 0 && (l(G), G = r(function() {
|
573
573
|
Fe();
|
574
574
|
}, w)));
|
575
575
|
}
|
576
576
|
if (X === ie) {
|
577
|
-
if (
|
577
|
+
if (Se !== "") {
|
578
578
|
k = Oe, ce === "" && (ce = "message");
|
579
579
|
var _e = new ye(ce, {
|
580
|
-
data:
|
580
|
+
data: Se.slice(1),
|
581
581
|
lastEventId: Oe
|
582
582
|
});
|
583
583
|
if (t.dispatchEvent(_e), ce === "open" ? we(t, t.onopen, _e) : ce === "message" ? we(t, t.onmessage, _e) : ce === "error" && we(t, t.onerror, _e), ne === se)
|
584
584
|
return;
|
585
585
|
}
|
586
|
-
|
586
|
+
Se = "", ce = "";
|
587
587
|
}
|
588
588
|
X = Q === 13 ? Ce : ie;
|
589
589
|
} else
|
590
|
-
X === ie && (Xe =
|
590
|
+
X === ie && (Xe = H, X = be), X === be ? Q === 58 && (Be = H + 1, X = De) : X === De && (X = He);
|
591
591
|
}
|
592
592
|
}
|
593
|
-
}, Je = function(
|
593
|
+
}, Je = function(V) {
|
594
594
|
if (ne === ve || ne === re) {
|
595
595
|
ne = xe, G !== 0 && (l(G), G = 0), G = r(function() {
|
596
596
|
Fe();
|
597
597
|
}, _), _ = Le(Math.min(h * 16, _ * 2)), t.readyState = re;
|
598
|
-
var I = new Ee("error", { error:
|
599
|
-
t.dispatchEvent(I), we(t, t.onerror, I),
|
598
|
+
var I = new Ee("error", { error: V });
|
599
|
+
t.dispatchEvent(I), we(t, t.onerror, I), V != null && console.error(V);
|
600
600
|
}
|
601
601
|
}, qe = function() {
|
602
602
|
ne = se, Y != null && (Y.abort(), Y = void 0), G !== 0 && (l(G), G = 0), t.readyState = se;
|
@@ -605,16 +605,16 @@ var We = { exports: {} };
|
|
605
605
|
if (!E && Y != null)
|
606
606
|
Je(new Error("No activity within " + w + " milliseconds. " + (ne === re ? "No response received." : L + " chars received.") + " Reconnecting.")), Y != null && (Y.abort(), Y = void 0);
|
607
607
|
else {
|
608
|
-
var
|
608
|
+
var V = Math.max((E || Date.now()) + w - Date.now(), 1);
|
609
609
|
E = !1, G = r(function() {
|
610
610
|
Fe();
|
611
|
-
},
|
611
|
+
}, V);
|
612
612
|
}
|
613
613
|
return;
|
614
614
|
}
|
615
615
|
E = !1, L = 0, G = r(function() {
|
616
616
|
Fe();
|
617
|
-
}, w), ne = re,
|
617
|
+
}, w), ne = re, Se = "", ce = "", Oe = k, Ne = "", Xe = 0, Be = 0, X = ie;
|
618
618
|
var I = a;
|
619
619
|
if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && k !== "") {
|
620
620
|
var J = a.indexOf("?");
|
@@ -624,10 +624,10 @@ var We = { exports: {} };
|
|
624
624
|
}
|
625
625
|
var Q = t.withCredentials, q = {};
|
626
626
|
q.Accept = "text/event-stream";
|
627
|
-
var
|
628
|
-
if (
|
629
|
-
for (var ue in
|
630
|
-
Object.prototype.hasOwnProperty.call(
|
627
|
+
var H = t.headers;
|
628
|
+
if (H != null)
|
629
|
+
for (var ue in H)
|
630
|
+
Object.prototype.hasOwnProperty.call(H, ue) && (q[ue] = H[ue]);
|
631
631
|
try {
|
632
632
|
Y = Me.open(le, st, lt, Je, I, Q, q);
|
633
633
|
} catch (de) {
|
@@ -639,14 +639,14 @@ var We = { exports: {} };
|
|
639
639
|
W.prototype = Object.create(te.prototype), W.prototype.CONNECTING = re, W.prototype.OPEN = ve, W.prototype.CLOSED = se, W.prototype.close = function() {
|
640
640
|
this._close();
|
641
641
|
}, W.CONNECTING = re, W.OPEN = ve, W.CLOSED = se, W.prototype.withCredentials = void 0;
|
642
|
-
var
|
643
|
-
c != null && (g == null || !("withCredentials" in g.prototype)) && (
|
642
|
+
var T = g;
|
643
|
+
c != null && (g == null || !("withCredentials" in g.prototype)) && (T = W), function(t) {
|
644
644
|
{
|
645
645
|
var a = t(e);
|
646
646
|
a !== void 0 && (o.exports = a);
|
647
647
|
}
|
648
648
|
}(function(t) {
|
649
|
-
t.EventSourcePolyfill = W, t.NativeEventSource = g, t.EventSource =
|
649
|
+
t.EventSourcePolyfill = W, t.NativeEventSource = g, t.EventSource = T;
|
650
650
|
});
|
651
651
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : dt : globalThis);
|
652
652
|
})(We, We.exports);
|
@@ -822,7 +822,7 @@ function kt(o) {
|
|
822
822
|
e = N("p"), r = fe(n), l = oe(), c = fe(
|
823
823
|
/*currency*/
|
824
824
|
o[3]
|
825
|
-
), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), b && b.c(), y =
|
825
|
+
), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), b && b.c(), y = Tt(), z(e, "class", "BalanceValue");
|
826
826
|
},
|
827
827
|
m(B, A) {
|
828
828
|
he(B, e, A), R(e, r), R(e, l), R(e, c), R(e, m), R(e, p), he(B, g, A), b && b.m(B, A), he(B, y, A), x || (F = Ve(
|
@@ -883,24 +883,24 @@ function tt(o) {
|
|
883
883
|
), g, y, x, F, b, B, A = (
|
884
884
|
/*$_*/
|
885
885
|
o[5]("DepositButton") + ""
|
886
|
-
), U, M,
|
886
|
+
), U, M, j, Z = je(Object.keys(
|
887
887
|
/*balances*/
|
888
888
|
o[4]
|
889
|
-
)),
|
889
|
+
)), S = [];
|
890
890
|
for (let C = 0; C < Z.length; C += 1)
|
891
|
-
|
891
|
+
S[C] = at($e(o, Z, C));
|
892
892
|
return {
|
893
893
|
c() {
|
894
894
|
e = N("div"), n = N("div"), r = oe(), l = N("div"), c = N("div"), m = N("p"), g = fe(p), y = oe(), x = N("div");
|
895
|
-
for (let C = 0; C <
|
896
|
-
|
897
|
-
F = oe(), b = N("div"), B = N("button"), U = fe(A),
|
895
|
+
for (let C = 0; C < S.length; C += 1)
|
896
|
+
S[C].c();
|
897
|
+
F = oe(), b = N("div"), B = N("button"), U = fe(A), z(n, "class", "BalanceModalClose"), z(m, "class", "BalanceModalTitle"), z(c, "class", "BalanceModalHeader"), z(x, "class", "BalanceModalBody"), z(B, "class", "BalanceModalAction"), z(b, "class", "BalanceModalFooter"), z(l, "class", "BalanceModal"), z(e, "class", "BalanceModalWrapper");
|
898
898
|
},
|
899
899
|
m(C, P) {
|
900
900
|
he(C, e, P), R(e, n), R(e, r), R(e, l), R(l, c), R(c, m), R(m, g), R(l, y), R(l, x);
|
901
|
-
for (let D = 0; D <
|
902
|
-
|
903
|
-
R(l, F), R(l, b), R(b, B), R(B, U), M || (
|
901
|
+
for (let D = 0; D < S.length; D += 1)
|
902
|
+
S[D] && S[D].m(x, null);
|
903
|
+
R(l, F), R(l, b), R(b, B), R(B, U), M || (j = [
|
904
904
|
Ve(
|
905
905
|
n,
|
906
906
|
"click",
|
@@ -927,18 +927,18 @@ function tt(o) {
|
|
927
927
|
let D;
|
928
928
|
for (D = 0; D < Z.length; D += 1) {
|
929
929
|
const $ = $e(C, Z, D);
|
930
|
-
|
930
|
+
S[D] ? S[D].p($, P) : (S[D] = at($), S[D].c(), S[D].m(x, null));
|
931
931
|
}
|
932
|
-
for (; D <
|
933
|
-
|
934
|
-
|
932
|
+
for (; D < S.length; D += 1)
|
933
|
+
S[D].d(1);
|
934
|
+
S.length = Z.length;
|
935
935
|
}
|
936
936
|
P[0] & /*$_*/
|
937
937
|
32 && A !== (A = /*$_*/
|
938
938
|
C[5]("DepositButton") + "") && pe(U, A);
|
939
939
|
},
|
940
940
|
d(C) {
|
941
|
-
C && me(e), rt(
|
941
|
+
C && me(e), rt(S, C), M = !1, St(j);
|
942
942
|
}
|
943
943
|
};
|
944
944
|
}
|
@@ -973,18 +973,18 @@ function nt(o) {
|
|
973
973
|
e = N("div"), n = N("p"), l = fe(r), c = oe(), p = fe(m), g = oe(), y = N("p"), x = N("span"), b = fe(F), B = oe(), A = N("span"), U = fe(
|
974
974
|
/*currency*/
|
975
975
|
o[3]
|
976
|
-
),
|
976
|
+
), z(n, "class", "BalanceModalText"), z(x, "class", "BalanceModalAmount"), z(A, "class", "BalanceModalCurrency"), z(y, "class", "BalanceModalValue"), z(e, "class", "BalanceModalRowLine");
|
977
977
|
},
|
978
|
-
m(M,
|
979
|
-
he(M, e,
|
978
|
+
m(M, j) {
|
979
|
+
he(M, e, j), R(e, n), R(n, l), R(n, c), R(n, p), R(e, g), R(e, y), R(y, x), R(x, b), R(y, B), R(y, A), R(A, U);
|
980
980
|
},
|
981
|
-
p(M,
|
982
|
-
|
981
|
+
p(M, j) {
|
982
|
+
j[0] & /*$_, balances*/
|
983
983
|
48 && r !== (r = /*$_*/
|
984
984
|
M[5](
|
985
985
|
/*k*/
|
986
986
|
M[47]
|
987
|
-
) + "") && pe(l, r),
|
987
|
+
) + "") && pe(l, r), j[0] & /*balances, $_*/
|
988
988
|
48 && m !== (m = /*b*/
|
989
989
|
(M[50].productType ? (
|
990
990
|
/*$_*/
|
@@ -992,7 +992,7 @@ function nt(o) {
|
|
992
992
|
/*b*/
|
993
993
|
M[50].productType
|
994
994
|
)
|
995
|
-
) : "") + "") && pe(p, m),
|
995
|
+
) : "") + "") && pe(p, m), j[0] & /*balances*/
|
996
996
|
16 && F !== (F = /*b*/
|
997
997
|
(M[50].amount ? (
|
998
998
|
/*formatBalance*/
|
@@ -1000,7 +1000,7 @@ function nt(o) {
|
|
1000
1000
|
/*b*/
|
1001
1001
|
M[50].amount
|
1002
1002
|
)
|
1003
|
-
) : "0") + "") && pe(b, F),
|
1003
|
+
) : "0") + "") && pe(b, F), j[0] & /*currency*/
|
1004
1004
|
8 && pe(
|
1005
1005
|
U,
|
1006
1006
|
/*currency*/
|
@@ -1027,7 +1027,7 @@ function at(o) {
|
|
1027
1027
|
e = N("div");
|
1028
1028
|
for (let c = 0; c < l.length; c += 1)
|
1029
1029
|
l[c].c();
|
1030
|
-
n = oe(),
|
1030
|
+
n = oe(), z(e, "class", "BalanceModalRowBoth");
|
1031
1031
|
},
|
1032
1032
|
m(c, m) {
|
1033
1033
|
he(c, e, m);
|
@@ -1064,7 +1064,7 @@ function ot(o) {
|
|
1064
1064
|
let e, n, r;
|
1065
1065
|
return {
|
1066
1066
|
c() {
|
1067
|
-
e = N("div"),
|
1067
|
+
e = N("div"), z(e, "class", "ShowBalanceModalOverlay");
|
1068
1068
|
},
|
1069
1069
|
m(l, c) {
|
1070
1070
|
he(l, e, c), n || (r = Ve(
|
@@ -1094,7 +1094,7 @@ function Nt(o) {
|
|
1094
1094
|
);
|
1095
1095
|
return {
|
1096
1096
|
c() {
|
1097
|
-
e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(),
|
1097
|
+
e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(), z(n, "class", "ShowBalance");
|
1098
1098
|
},
|
1099
1099
|
m(g, y) {
|
1100
1100
|
he(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[27](e);
|
@@ -1113,9 +1113,9 @@ function Nt(o) {
|
|
1113
1113
|
function It(o, e, n) {
|
1114
1114
|
let r;
|
1115
1115
|
yt(o, _t, (u) => n(5, r = u));
|
1116
|
-
let { userid: l = "" } = e, { session: c = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: b = "gm16" } = e, { displaybalanceoption: B = "All" } = e, { totalcalculationmode: A = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision:
|
1116
|
+
let { userid: l = "" } = e, { session: c = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: b = "gm16" } = e, { displaybalanceoption: B = "All" } = e, { totalcalculationmode: A = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: j = "" } = e, { mbsource: Z } = e, S, C, P, D = !1, $ = "", ee = [], ge, te = !1, Ae;
|
1117
1117
|
const f = {}, ye = ["totalCashAmount", "totalRealAmount"], Re = () => {
|
1118
|
-
fetch(x).then((u) => u.json()).then((u) => Object.keys(u).forEach((
|
1118
|
+
fetch(x).then((u) => u.json()).then((u) => Object.keys(u).forEach((T) => Qe(T, u[T]))).catch((u) => console.log(u));
|
1119
1119
|
};
|
1120
1120
|
Object.keys(Ze).forEach((u) => Qe(u, Ze[u]));
|
1121
1121
|
const Ee = () => {
|
@@ -1125,21 +1125,21 @@ function It(o, e, n) {
|
|
1125
1125
|
separator: U,
|
1126
1126
|
decimal: M,
|
1127
1127
|
symbol: "",
|
1128
|
-
precision: parseInt(
|
1128
|
+
precision: parseInt(j || "2", 10)
|
1129
1129
|
}).format() : ae(u, {
|
1130
1130
|
separator: ".",
|
1131
1131
|
decimal: ",",
|
1132
1132
|
symbol: "",
|
1133
|
-
precision: parseInt(
|
1133
|
+
precision: parseInt(j || "2", 10)
|
1134
1134
|
}).format(), re = async () => {
|
1135
|
-
n(1,
|
1135
|
+
n(1, S = !0);
|
1136
1136
|
const u = new URL(`${m}/v1/player/${l}/account`);
|
1137
1137
|
try {
|
1138
|
-
const
|
1138
|
+
const T = await fetch(u, {
|
1139
1139
|
method: "GET",
|
1140
1140
|
headers: { "X-SessionID": c }
|
1141
|
-
}), t = await
|
1142
|
-
if (
|
1141
|
+
}), t = await T.json();
|
1142
|
+
if (T.ok)
|
1143
1143
|
ee = t.items, n(3, $ = ee.find((a) => a.displayName === "Casino")?.currency), n(4, f.Total = [{ amount: t.totalAmount[$] }], f), n(
|
1144
1144
|
4,
|
1145
1145
|
f.Real = [
|
@@ -1159,15 +1159,15 @@ function It(o, e, n) {
|
|
1159
1159
|
);
|
1160
1160
|
else
|
1161
1161
|
throw new Error("Failed to fetch balance data !");
|
1162
|
-
} catch (
|
1163
|
-
console.log("Balance error: ",
|
1162
|
+
} catch (T) {
|
1163
|
+
console.log("Balance error: ", T);
|
1164
1164
|
} finally {
|
1165
|
-
n(1,
|
1165
|
+
n(1, S = !1);
|
1166
1166
|
}
|
1167
1167
|
}, ve = () => {
|
1168
|
-
n(1,
|
1169
|
-
const u = new URL(`${m}/v2/player/${l}/balance`),
|
1170
|
-
|
1168
|
+
n(1, S = !0);
|
1169
|
+
const u = new URL(`${m}/v2/player/${l}/balance`), T = new Headers();
|
1170
|
+
T.append("X-SessionID", c), fetch(u, { method: "GET", headers: T }).then((a) => a.json()).then((a) => {
|
1171
1171
|
a[A] || n(8, A = ye[0]);
|
1172
1172
|
const s = a.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
|
1173
1173
|
if (n(3, $ = s.currency), te = !!s.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !te) {
|
@@ -1181,13 +1181,14 @@ function It(o, e, n) {
|
|
1181
1181
|
f.Bonus.length === 0 ? f.Bonus.push({ amount: d.amount }) : n(4, f.Bonus[0].amount += d.amount, f);
|
1182
1182
|
break;
|
1183
1183
|
case "Real":
|
1184
|
-
if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), A === "totalRealAmount")
|
1184
|
+
if (d.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: d.creditLine }), A === "totalRealAmount")
|
1185
|
+
continue;
|
1185
1186
|
f.Real.length === 0 ? f.Real.push({ amount: d.amount }) : n(4, f.Real[0].amount += d.amount, f);
|
1186
1187
|
break;
|
1187
1188
|
}
|
1188
1189
|
for (const [d, h] of Object.entries(f))
|
1189
1190
|
h.length < 1 && delete f[d];
|
1190
|
-
n(1,
|
1191
|
+
n(1, S = !1);
|
1191
1192
|
return;
|
1192
1193
|
}
|
1193
1194
|
ge = {
|
@@ -1225,55 +1226,56 @@ function It(o, e, n) {
|
|
1225
1226
|
De();
|
1226
1227
|
for (const [d, h] of Object.entries(f))
|
1227
1228
|
h.length < 1 && delete f[d];
|
1228
|
-
n(1,
|
1229
|
+
n(1, S = !1);
|
1229
1230
|
}).catch((a) => {
|
1230
|
-
throw n(1,
|
1231
|
+
throw n(1, S = !1), new Error("Failed to fetch balance data !");
|
1231
1232
|
});
|
1232
1233
|
}, se = () => {
|
1233
|
-
if (P && P.close(), c.length < 1)
|
1234
|
-
|
1234
|
+
if (P && P.close(), c.length < 1)
|
1235
|
+
return;
|
1236
|
+
let u, T;
|
1235
1237
|
switch (b) {
|
1236
1238
|
case "gm16":
|
1237
|
-
u = new URL(`${m}/v2/player/${l}/information/updates`),
|
1239
|
+
u = new URL(`${m}/v2/player/${l}/information/updates`), T = (s) => He(s);
|
1238
1240
|
break;
|
1239
1241
|
case "gmcore":
|
1240
|
-
u = new URL(`${m}/v1/player/${l}/balance/updates`),
|
1242
|
+
u = new URL(`${m}/v1/player/${l}/balance/updates`), T = (s) => ie(s);
|
1241
1243
|
break;
|
1242
1244
|
}
|
1243
1245
|
const t = {
|
1244
1246
|
accept: "text/event-stream",
|
1245
1247
|
"X-SessionId": c
|
1246
1248
|
}, a = new Rt.EventSourcePolyfill(u, { headers: t });
|
1247
|
-
P = a, a.addEventListener("message",
|
1249
|
+
P = a, a.addEventListener("message", T);
|
1248
1250
|
}, Ce = (u) => {
|
1249
|
-
let
|
1251
|
+
let T;
|
1250
1252
|
try {
|
1251
|
-
|
1253
|
+
T = JSON.parse(u);
|
1252
1254
|
} catch (t) {
|
1253
1255
|
console.log("Balance stream failed: ", t);
|
1254
1256
|
return;
|
1255
1257
|
}
|
1256
|
-
return
|
1258
|
+
return T;
|
1257
1259
|
}, ie = (u) => {
|
1258
|
-
const
|
1259
|
-
if (!
|
1260
|
+
const T = Ce(u.data);
|
1261
|
+
if (!T) {
|
1260
1262
|
se();
|
1261
1263
|
return;
|
1262
1264
|
}
|
1263
1265
|
let t = "0";
|
1264
|
-
const a =
|
1266
|
+
const a = T.balanceChange;
|
1265
1267
|
ee = ee.map((s) => (a && a[s.id] && (s = {
|
1266
1268
|
...s,
|
1267
1269
|
balanceAmount: a[s.id].afterAmount
|
1268
1270
|
}), t = (parseFloat(s?.balanceAmount) + parseFloat(t)).toString(), s)), n(4, f.Real = [{ amount: ee[0]?.balanceAmount }], f), n(4, f.Bonus = [{ amount: ee[1]?.balanceAmount }], f), n(4, f.Total = [{ amount: Number(t) }], f);
|
1269
|
-
}, be = (u,
|
1271
|
+
}, be = (u, T, t) => {
|
1270
1272
|
let a = null;
|
1271
1273
|
switch (t.walletAccountType) {
|
1272
1274
|
case "Ordinary":
|
1273
|
-
t.afterAmount !== t.affectedAmount && (
|
1275
|
+
t.afterAmount !== t.affectedAmount && (T.lastOrdinaryAfterAmount = t.afterAmount, T.showCreditLineAfterAmount || (a = t.afterAmount));
|
1274
1276
|
break;
|
1275
1277
|
case "CreditLine":
|
1276
|
-
t.afterAmount !== 0 ? (a = t.afterAmount,
|
1278
|
+
t.afterAmount !== 0 ? (a = t.afterAmount, T.showCreditLineAfterAmount = !0) : (a = T.lastOrdinaryAfterAmount, T.showCreditLineAfterAmount = !1);
|
1277
1279
|
break;
|
1278
1280
|
default:
|
1279
1281
|
a = t.afterAmount;
|
@@ -1289,21 +1291,22 @@ function It(o, e, n) {
|
|
1289
1291
|
n(4, f.Total[0].amount = u, f);
|
1290
1292
|
break;
|
1291
1293
|
case "totalRealAmount":
|
1292
|
-
if (!te)
|
1293
|
-
|
1294
|
+
if (!te)
|
1295
|
+
return;
|
1296
|
+
let T = 0;
|
1294
1297
|
for (const t of f.Real)
|
1295
|
-
|
1296
|
-
n(4, f.Total[0].amount =
|
1298
|
+
T += t.amount;
|
1299
|
+
n(4, f.Total[0].amount = T, f);
|
1297
1300
|
}
|
1298
1301
|
}, He = (u) => {
|
1299
|
-
const
|
1300
|
-
if (!
|
1302
|
+
const T = Ce(u.data);
|
1303
|
+
if (!T) {
|
1301
1304
|
se();
|
1302
1305
|
return;
|
1303
1306
|
}
|
1304
|
-
if (
|
1307
|
+
if (T.type !== "BALANCE_UPDATE_V2")
|
1305
1308
|
return;
|
1306
|
-
const t =
|
1309
|
+
const t = T.body.balanceChange;
|
1307
1310
|
for (const [a, s] of Object.entries(t))
|
1308
1311
|
if (A === "totalRealAmount" && a === "Real" && !te && n(4, f.Total[0].amount = be(f.Total[0].amount, ge, s), f), !!f[a])
|
1309
1312
|
for (const i of f[a]) {
|
@@ -1329,9 +1332,9 @@ function It(o, e, n) {
|
|
1329
1332
|
default:
|
1330
1333
|
throw Error(`Invalid apiversion attribute: ${b}`);
|
1331
1334
|
}
|
1332
|
-
},
|
1333
|
-
vt(() => (window.addEventListener("message",
|
1334
|
-
window.emMessageBus && Ae && Ae.unsubscribe(), window.removeEventListener("message",
|
1335
|
+
}, Te = (u) => u.data && u.data.type === "LogoutSuccessfull" && P.close();
|
1336
|
+
vt(() => (window.addEventListener("message", Te, !1), () => {
|
1337
|
+
window.emMessageBus && Ae && Ae.unsubscribe(), window.removeEventListener("message", Te), P && P.close();
|
1335
1338
|
}));
|
1336
1339
|
const Le = () => n(2, D = !0), we = () => n(2, D = !1), W = () => ke(), Pe = () => n(2, D = !1);
|
1337
1340
|
function Ge(u) {
|
@@ -1340,7 +1343,7 @@ function It(o, e, n) {
|
|
1340
1343
|
});
|
1341
1344
|
}
|
1342
1345
|
return o.$$set = (u) => {
|
1343
|
-
"userid" in u && n(9, l = u.userid), "session" in u && n(10, c = u.session), "endpoint" in u && n(11, m = u.endpoint), "lang" in u && n(12, p = u.lang), "clientstyling" in u && n(13, g = u.clientstyling), "clientstylingurl" in u && n(14, y = u.clientstylingurl), "translationurl" in u && n(15, x = u.translationurl), "customlocaleidentifier" in u && n(16, F = u.customlocaleidentifier), "gmversion" in u && n(17, b = u.gmversion), "displaybalanceoption" in u && n(18, B = u.displaybalanceoption), "totalcalculationmode" in u && n(8, A = u.totalcalculationmode), "currencyseparator" in u && n(19, U = u.currencyseparator), "currencydecimal" in u && n(20, M = u.currencydecimal), "currencyprecision" in u && n(21,
|
1346
|
+
"userid" in u && n(9, l = u.userid), "session" in u && n(10, c = u.session), "endpoint" in u && n(11, m = u.endpoint), "lang" in u && n(12, p = u.lang), "clientstyling" in u && n(13, g = u.clientstyling), "clientstylingurl" in u && n(14, y = u.clientstylingurl), "translationurl" in u && n(15, x = u.translationurl), "customlocaleidentifier" in u && n(16, F = u.customlocaleidentifier), "gmversion" in u && n(17, b = u.gmversion), "displaybalanceoption" in u && n(18, B = u.displaybalanceoption), "totalcalculationmode" in u && n(8, A = u.totalcalculationmode), "currencyseparator" in u && n(19, U = u.currencyseparator), "currencydecimal" in u && n(20, M = u.currencydecimal), "currencyprecision" in u && n(21, j = u.currencyprecision), "mbsource" in u && n(22, Z = u.mbsource);
|
1344
1347
|
}, o.$$.update = () => {
|
1345
1348
|
o.$$.dirty[0] & /*lang*/
|
1346
1349
|
4096 && p && Ee(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
@@ -1352,7 +1355,7 @@ function It(o, e, n) {
|
|
1352
1355
|
32768 && x && Re();
|
1353
1356
|
}, [
|
1354
1357
|
C,
|
1355
|
-
|
1358
|
+
S,
|
1356
1359
|
D,
|
1357
1360
|
$,
|
1358
1361
|
f,
|
@@ -1372,7 +1375,7 @@ function It(o, e, n) {
|
|
1372
1375
|
B,
|
1373
1376
|
U,
|
1374
1377
|
M,
|
1375
|
-
|
1378
|
+
j,
|
1376
1379
|
Z,
|
1377
1380
|
Le,
|
1378
1381
|
we,
|