@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.
Files changed (31) hide show
  1. package/components/{CasinoHamburgerMenu-JVY4ac8I.js → CasinoHamburgerMenu-D3IA0-Fr.js} +68 -31
  2. package/components/{CasinoHamburgerMenu-C8-P7sF9.cjs → CasinoHamburgerMenu-DessG6uq.cjs} +16 -3
  3. package/components/{CasinoHamburgerMenu-E4O8Dx5o.js → CasinoHamburgerMenu-DyL5A7W7.js} +69 -32
  4. package/components/CasinoHeaderController-BFP8179I.cjs +13 -0
  5. package/components/{CasinoHeaderController-9s-CNvhj.js → CasinoHeaderController-BbEsH91Z.js} +522 -488
  6. package/components/{CasinoHeaderController-BVCLQUCq.js → CasinoHeaderController-DeiDjcf5.js} +581 -547
  7. package/components/{CasinoSlider-xu8jCpW1.js → CasinoSlider-BiQpUhjL.js} +63 -63
  8. package/components/CasinoSlider-E1mSYv_J.cjs +1 -0
  9. package/components/{CasinoSlider-yMz4R8ed.js → CasinoSlider-MTl32pNB.js} +59 -59
  10. package/components/{PlayerAccountBalanceModal-BVQlpIy4.cjs → PlayerAccountBalanceModal-B9BkSlDU.cjs} +5 -5
  11. package/components/{PlayerAccountBalanceModal-CcASksA3.js → PlayerAccountBalanceModal-CEo_b6Ks.js} +119 -116
  12. package/components/{PlayerAccountBalanceModal-DG6GgVDp.js → PlayerAccountBalanceModal-fP9D_Jz7.js} +118 -115
  13. package/components/{PlayerDeposit-CIarW5H1.js → PlayerDeposit-Bv78j0E8.js} +15 -15
  14. package/components/{PlayerDeposit-C8ZPqrpV.cjs → PlayerDeposit-C7xxeNB2.cjs} +1 -1
  15. package/components/{PlayerDeposit-D9xpcJp9.js → PlayerDeposit-DiUqgMu-.js} +15 -15
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-1ef3a64c-6soTLew7.js +556 -0
  21. package/stencil/index-1ef3a64c-DkMoO-oa.js +572 -0
  22. package/stencil/index-1ef3a64c-DmmoSOho.cjs +1 -0
  23. package/stencil/{user-deposit-withdrawal-Dg3a3KkR.js → user-deposit-withdrawal-C72e1sSw.js} +216 -178
  24. package/stencil/user-deposit-withdrawal-CS-LZhcv.cjs +59 -0
  25. package/stencil/{user-deposit-withdrawal-gu9RDhoH.js → user-deposit-withdrawal-DfDiD6Lp.js} +289 -251
  26. package/components/CasinoHeaderController-BZk18wxU.cjs +0 -13
  27. package/components/CasinoSlider-DDycojG8.cjs +0 -1
  28. package/stencil/index-657e7a14-BQuTIY5_.js +0 -572
  29. package/stencil/index-657e7a14-CDqZBTHG.cjs +0 -1
  30. package/stencil/index-657e7a14-fo2CD-e3.js +0 -588
  31. package/stencil/user-deposit-withdrawal-BCkoyv3i.cjs +0 -59
@@ -26,7 +26,7 @@ var tt = (o, e, t) => new Promise((r, c) => {
26
26
  }, f = (m) => m.done ? r(m.value) : Promise.resolve(m.value).then(u, g);
27
27
  f((t = t.apply(o, e)).next());
28
28
  });
29
- import { b as wt, $ as bt, O as Bt, S as Ct, i as St, f as K, c as Tt, s as _t, d as At, g as N, e as oe, x as V, j as he, y as R, n as Ke, k as me, l as Rt, o as Et, m as xt, z as Ve, q as Dt, t as Lt, u as Mt, w as fe, E as Ft, A as pe, v as je, B as ut, C as kt, G as Ot } from "./CasinoHamburgerMenu-E4O8Dx5o.js";
29
+ import { b as wt, $ as bt, O as Bt, S as Ct, i as Tt, f as K, c as St, s as _t, d as At, g as N, e as oe, x as z, j as he, y as R, n as Ke, k as me, l as Rt, o as Et, m as xt, z as Ve, q as Dt, t as Lt, u as Mt, w as fe, E as Ft, A as pe, v as je, B as ut, C as kt, G as Ot } from "./CasinoHamburgerMenu-DyL5A7W7.js";
30
30
  function nt(o, e) {
31
31
  wt(o, e);
32
32
  }
@@ -278,10 +278,10 @@ var We = { exports: {} };
278
278
  };
279
279
  };
280
280
  }
281
- function H() {
281
+ function j() {
282
282
  this.bitsNeeded = 0, this.codePoint = 0;
283
283
  }
284
- H.prototype.decode = function(n) {
284
+ j.prototype.decode = function(n) {
285
285
  function a(E, L, v) {
286
286
  if (v === 1)
287
287
  return E >= 128 >> L && E << L <= 2047;
@@ -314,17 +314,17 @@ var We = { exports: {} };
314
314
  }
315
315
  return !1;
316
316
  };
317
- (B == null || A == null || !Z()) && (B = H);
318
- var S = function() {
317
+ (B == null || A == null || !Z()) && (B = j);
318
+ var T = function() {
319
319
  };
320
320
  function C(n) {
321
- 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 = n, this._sendTimeout = 0, this._abort = S;
321
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = n, this._sendTimeout = 0, this._abort = T;
322
322
  }
323
323
  C.prototype.open = function(n, a) {
324
324
  this._abort(!0);
325
325
  var l = this, i = this._xhr, s = 1, h = 0;
326
326
  this._abort = function(v) {
327
- l._sendTimeout !== 0 && (c(l._sendTimeout), l._sendTimeout = 0), (s === 1 || s === 2 || s === 3) && (s = 4, i.onload = S, i.onerror = S, i.onabort = S, i.onprogress = S, i.onreadystatechange = S, i.abort(), h !== 0 && (c(h), h = 0), v || (l.readyState = 4, l.onabort(null), l.onreadystatechange())), s = 0;
327
+ l._sendTimeout !== 0 && (c(l._sendTimeout), l._sendTimeout = 0), (s === 1 || s === 2 || s === 3) && (s = 4, i.onload = T, i.onerror = T, i.onabort = T, i.onprogress = T, i.onreadystatechange = T, i.abort(), h !== 0 && (c(h), h = 0), v || (l.readyState = 4, l.onabort(null), l.onreadystatechange())), s = 0;
328
328
  };
329
329
  var w = function() {
330
330
  if (s === 1) {
@@ -351,7 +351,7 @@ var We = { exports: {} };
351
351
  }
352
352
  }, _ = function(v, O) {
353
353
  if ((O == null || O.preventDefault == null) && (O = {
354
- preventDefault: S
354
+ preventDefault: T
355
355
  }), k(), s === 1 || s === 2 || s === 3) {
356
356
  if (s = 4, h !== 0 && (c(h), h = 0), l.readyState = 4, v === "load")
357
357
  l.onload(O);
@@ -539,7 +539,7 @@ var We = { exports: {} };
539
539
  p.call(this, n), this.error = a.error;
540
540
  }
541
541
  Ee.prototype = Object.create(p.prototype);
542
- 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, Se = function(n, a) {
542
+ 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(n, a) {
543
543
  var l = n == null ? a : parseInt(n, 10);
544
544
  return l !== l && (l = a), Le(l);
545
545
  }, Le = function(n) {
@@ -560,71 +560,71 @@ var We = { exports: {} };
560
560
  var Ge = F != null && b != null && "body" in b.prototype;
561
561
  function d(n, a, l) {
562
562
  a = String(a);
563
- var i = !!l.withCredentials, s = l.lastEventIdQueryParameterName || "lastEventId", h = Le(1e3), w = Se(l.heartbeatTimeout, 45e3), k = "", _ = h, E = !1, L = 0, v = l.headers || {}, O = l.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, Te = "", Oe = "", ce = "", Ne = "", X = ie, Xe = 0, Be = 0, ft = function(j, I, J, Q) {
563
+ var i = !!l.withCredentials, s = l.lastEventIdQueryParameterName || "lastEventId", h = Le(1e3), w = Te(l.heartbeatTimeout, 45e3), k = "", _ = h, E = !1, L = 0, v = l.headers || {}, O = l.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, ft = function(V, I, J, Q) {
564
564
  if (ne === re)
565
- if (j === 200 && J != null && ke.test(J)) {
565
+ if (V === 200 && J != null && ke.test(J)) {
566
566
  ne = ve, E = Date.now(), _ = h, n.readyState = ve;
567
567
  var q = new Re("open", {
568
- status: j,
568
+ status: V,
569
569
  statusText: I,
570
570
  headers: Q
571
571
  });
572
572
  n.dispatchEvent(q), we(n, n.onopen, q);
573
573
  } else {
574
- var z = "";
575
- j !== 200 ? (I && (I = I.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + I + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (J == null ? "-" : J.replace(/\s+/g, " ")) + ". Aborting the connection.", qe();
574
+ var H = "";
575
+ 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();
576
576
  var q = new Re("error", {
577
- status: j,
577
+ status: V,
578
578
  statusText: I,
579
579
  headers: Q
580
580
  });
581
- n.dispatchEvent(q), we(n, n.onerror, q), console.error(z);
581
+ n.dispatchEvent(q), we(n, n.onerror, q), console.error(H);
582
582
  }
583
- }, pt = function(j) {
583
+ }, pt = function(V) {
584
584
  if (ne === ve) {
585
- for (var I = -1, J = 0; J < j.length; J += 1) {
586
- var Q = j.charCodeAt(J);
585
+ for (var I = -1, J = 0; J < V.length; J += 1) {
586
+ var Q = V.charCodeAt(J);
587
587
  (Q === 10 || Q === 13) && (I = J);
588
588
  }
589
- var q = (I !== -1 ? Ne : "") + j.slice(0, I + 1);
590
- Ne = (I === -1 ? Ne : "") + j.slice(I + 1), j !== "" && (E = Date.now(), L += j.length);
591
- for (var z = 0; z < q.length; z += 1) {
592
- var Q = q.charCodeAt(z);
589
+ var q = (I !== -1 ? Ne : "") + V.slice(0, I + 1);
590
+ Ne = (I === -1 ? Ne : "") + V.slice(I + 1), V !== "" && (E = Date.now(), L += V.length);
591
+ for (var H = 0; H < q.length; H += 1) {
592
+ var Q = q.charCodeAt(H);
593
593
  if (X === Ce && Q === 10)
594
594
  X = ie;
595
595
  else if (X === Ce && (X = ie), Q === 13 || Q === 10) {
596
596
  if (X !== ie) {
597
- X === be && (Be = z + 1);
598
- var ue = q.slice(Xe, Be - 1), de = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
599
- ue === "data" ? (Te += `
600
- `, Te += de) : ue === "id" ? Oe = de : ue === "event" ? ce = de : ue === "retry" ? (h = Se(de, h), _ = h) : ue === "heartbeatTimeout" && (w = Se(de, w), G !== 0 && (c(G), G = r(function() {
597
+ X === be && (Be = H + 1);
598
+ var ue = q.slice(Xe, Be - 1), de = q.slice(Be + (Be < H && q.charCodeAt(Be) === 32 ? 1 : 0), H);
599
+ ue === "data" ? (Se += `
600
+ `, 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 && (c(G), G = r(function() {
601
601
  Fe();
602
602
  }, w)));
603
603
  }
604
604
  if (X === ie) {
605
- if (Te !== "") {
605
+ if (Se !== "") {
606
606
  k = Oe, ce === "" && (ce = "message");
607
607
  var _e = new ye(ce, {
608
- data: Te.slice(1),
608
+ data: Se.slice(1),
609
609
  lastEventId: Oe
610
610
  });
611
611
  if (n.dispatchEvent(_e), ce === "open" ? we(n, n.onopen, _e) : ce === "message" ? we(n, n.onmessage, _e) : ce === "error" && we(n, n.onerror, _e), ne === se)
612
612
  return;
613
613
  }
614
- Te = "", ce = "";
614
+ Se = "", ce = "";
615
615
  }
616
616
  X = Q === 13 ? Ce : ie;
617
617
  } else
618
- X === ie && (Xe = z, X = be), X === be ? Q === 58 && (Be = z + 1, X = De) : X === De && (X = He);
618
+ X === ie && (Xe = H, X = be), X === be ? Q === 58 && (Be = H + 1, X = De) : X === De && (X = He);
619
619
  }
620
620
  }
621
- }, Je = function(j) {
621
+ }, Je = function(V) {
622
622
  if (ne === ve || ne === re) {
623
623
  ne = xe, G !== 0 && (c(G), G = 0), G = r(function() {
624
624
  Fe();
625
625
  }, _), _ = Le(Math.min(h * 16, _ * 2)), n.readyState = re;
626
- var I = new Ee("error", { error: j });
627
- n.dispatchEvent(I), we(n, n.onerror, I), j != null && console.error(j);
626
+ var I = new Ee("error", { error: V });
627
+ n.dispatchEvent(I), we(n, n.onerror, I), V != null && console.error(V);
628
628
  }
629
629
  }, qe = function() {
630
630
  ne = se, Y != null && (Y.abort(), Y = void 0), G !== 0 && (c(G), G = 0), n.readyState = se;
@@ -633,16 +633,16 @@ var We = { exports: {} };
633
633
  if (!E && Y != null)
634
634
  Je(new Error("No activity within " + w + " milliseconds. " + (ne === re ? "No response received." : L + " chars received.") + " Reconnecting.")), Y != null && (Y.abort(), Y = void 0);
635
635
  else {
636
- var j = Math.max((E || Date.now()) + w - Date.now(), 1);
636
+ var V = Math.max((E || Date.now()) + w - Date.now(), 1);
637
637
  E = !1, G = r(function() {
638
638
  Fe();
639
- }, j);
639
+ }, V);
640
640
  }
641
641
  return;
642
642
  }
643
643
  E = !1, L = 0, G = r(function() {
644
644
  Fe();
645
- }, w), ne = re, Te = "", ce = "", Oe = k, Ne = "", Xe = 0, Be = 0, X = ie;
645
+ }, w), ne = re, Se = "", ce = "", Oe = k, Ne = "", Xe = 0, Be = 0, X = ie;
646
646
  var I = a;
647
647
  if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && k !== "") {
648
648
  var J = a.indexOf("?");
@@ -652,10 +652,10 @@ var We = { exports: {} };
652
652
  }
653
653
  var Q = n.withCredentials, q = {};
654
654
  q.Accept = "text/event-stream";
655
- var z = n.headers;
656
- if (z != null)
657
- for (var ue in z)
658
- Object.prototype.hasOwnProperty.call(z, ue) && (q[ue] = z[ue]);
655
+ var H = n.headers;
656
+ if (H != null)
657
+ for (var ue in H)
658
+ Object.prototype.hasOwnProperty.call(H, ue) && (q[ue] = H[ue]);
659
659
  try {
660
660
  Y = Me.open(le, ft, pt, Je, I, Q, q);
661
661
  } catch (de) {
@@ -667,14 +667,14 @@ var We = { exports: {} };
667
667
  W.prototype = Object.create(te.prototype), W.prototype.CONNECTING = re, W.prototype.OPEN = ve, W.prototype.CLOSED = se, W.prototype.close = function() {
668
668
  this._close();
669
669
  }, W.CONNECTING = re, W.OPEN = ve, W.CLOSED = se, W.prototype.withCredentials = void 0;
670
- var T = m;
671
- u != null && (m == null || !("withCredentials" in m.prototype)) && (T = W), function(n) {
670
+ var S = m;
671
+ u != null && (m == null || !("withCredentials" in m.prototype)) && (S = W), function(n) {
672
672
  {
673
673
  var a = n(e);
674
674
  a !== void 0 && (o.exports = a);
675
675
  }
676
676
  }(function(n) {
677
- n.EventSourcePolyfill = W, n.NativeEventSource = m, n.EventSource = T;
677
+ n.EventSourcePolyfill = W, n.NativeEventSource = m, n.EventSource = S;
678
678
  });
679
679
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Bt : globalThis);
680
680
  })(We, We.exports);
@@ -850,7 +850,7 @@ function Gt(o) {
850
850
  e = N("p"), r = fe(t), c = oe(), u = fe(
851
851
  /*currency*/
852
852
  o[3]
853
- ), g = oe(), f = N("span"), f.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>', m = oe(), b && b.c(), y = Ft(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
853
+ ), g = oe(), f = N("span"), f.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>', m = oe(), b && b.c(), y = Ft(), z(e, "class", "BalanceValue");
854
854
  },
855
855
  m(B, A) {
856
856
  he(B, e, A), R(e, r), R(e, c), R(e, u), R(e, g), R(e, f), he(B, m, A), b && b.m(B, A), he(B, y, A), x || (F = Ve(
@@ -911,24 +911,24 @@ function it(o) {
911
911
  ), m, y, x, F, b, B, A = (
912
912
  /*$_*/
913
913
  o[5]("DepositButton") + ""
914
- ), U, M, H, Z = je(Object.keys(
914
+ ), U, M, j, Z = je(Object.keys(
915
915
  /*balances*/
916
916
  o[4]
917
- )), S = [];
917
+ )), T = [];
918
918
  for (let C = 0; C < Z.length; C += 1)
919
- S[C] = lt(ot(o, Z, C));
919
+ T[C] = lt(ot(o, Z, C));
920
920
  return {
921
921
  c() {
922
922
  e = N("div"), t = N("div"), r = oe(), c = N("div"), u = N("div"), g = N("p"), m = fe(f), y = oe(), x = N("div");
923
- for (let C = 0; C < S.length; C += 1)
924
- S[C].c();
925
- F = oe(), b = N("div"), B = N("button"), U = fe(A), V(t, "class", "BalanceModalClose"), V(g, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(B, "class", "BalanceModalAction"), V(b, "class", "BalanceModalFooter"), V(c, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
923
+ for (let C = 0; C < T.length; C += 1)
924
+ T[C].c();
925
+ F = oe(), b = N("div"), B = N("button"), U = fe(A), z(t, "class", "BalanceModalClose"), z(g, "class", "BalanceModalTitle"), z(u, "class", "BalanceModalHeader"), z(x, "class", "BalanceModalBody"), z(B, "class", "BalanceModalAction"), z(b, "class", "BalanceModalFooter"), z(c, "class", "BalanceModal"), z(e, "class", "BalanceModalWrapper");
926
926
  },
927
927
  m(C, P) {
928
928
  he(C, e, P), R(e, t), R(e, r), R(e, c), R(c, u), R(u, g), R(g, m), R(c, y), R(c, x);
929
- for (let D = 0; D < S.length; D += 1)
930
- S[D] && S[D].m(x, null);
931
- R(c, F), R(c, b), R(b, B), R(B, U), M || (H = [
929
+ for (let D = 0; D < T.length; D += 1)
930
+ T[D] && T[D].m(x, null);
931
+ R(c, F), R(c, b), R(b, B), R(B, U), M || (j = [
932
932
  Ve(
933
933
  t,
934
934
  "click",
@@ -955,18 +955,18 @@ function it(o) {
955
955
  let D;
956
956
  for (D = 0; D < Z.length; D += 1) {
957
957
  const $ = ot(C, Z, D);
958
- S[D] ? S[D].p($, P) : (S[D] = lt($), S[D].c(), S[D].m(x, null));
958
+ T[D] ? T[D].p($, P) : (T[D] = lt($), T[D].c(), T[D].m(x, null));
959
959
  }
960
- for (; D < S.length; D += 1)
961
- S[D].d(1);
962
- S.length = Z.length;
960
+ for (; D < T.length; D += 1)
961
+ T[D].d(1);
962
+ T.length = Z.length;
963
963
  }
964
964
  P[0] & /*$_*/
965
965
  32 && A !== (A = /*$_*/
966
966
  C[5]("DepositButton") + "") && pe(U, A);
967
967
  },
968
968
  d(C) {
969
- C && me(e), ut(S, C), M = !1, kt(H);
969
+ C && me(e), ut(T, C), M = !1, kt(j);
970
970
  }
971
971
  };
972
972
  }
@@ -1001,18 +1001,18 @@ function st(o) {
1001
1001
  e = N("div"), t = N("p"), c = fe(r), u = oe(), f = fe(g), m = oe(), y = N("p"), x = N("span"), b = fe(F), B = oe(), A = N("span"), U = fe(
1002
1002
  /*currency*/
1003
1003
  o[3]
1004
- ), V(t, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(A, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
1004
+ ), z(t, "class", "BalanceModalText"), z(x, "class", "BalanceModalAmount"), z(A, "class", "BalanceModalCurrency"), z(y, "class", "BalanceModalValue"), z(e, "class", "BalanceModalRowLine");
1005
1005
  },
1006
- m(M, H) {
1007
- he(M, e, H), R(e, t), R(t, c), R(t, u), R(t, f), R(e, m), R(e, y), R(y, x), R(x, b), R(y, B), R(y, A), R(A, U);
1006
+ m(M, j) {
1007
+ he(M, e, j), R(e, t), R(t, c), R(t, u), R(t, f), R(e, m), R(e, y), R(y, x), R(x, b), R(y, B), R(y, A), R(A, U);
1008
1008
  },
1009
- p(M, H) {
1010
- H[0] & /*$_, balances*/
1009
+ p(M, j) {
1010
+ j[0] & /*$_, balances*/
1011
1011
  48 && r !== (r = /*$_*/
1012
1012
  M[5](
1013
1013
  /*k*/
1014
1014
  M[47]
1015
- ) + "") && pe(c, r), H[0] & /*balances, $_*/
1015
+ ) + "") && pe(c, r), j[0] & /*balances, $_*/
1016
1016
  48 && g !== (g = /*b*/
1017
1017
  (M[50].productType ? (
1018
1018
  /*$_*/
@@ -1020,7 +1020,7 @@ function st(o) {
1020
1020
  /*b*/
1021
1021
  M[50].productType
1022
1022
  )
1023
- ) : "") + "") && pe(f, g), H[0] & /*balances*/
1023
+ ) : "") + "") && pe(f, g), j[0] & /*balances*/
1024
1024
  16 && F !== (F = /*b*/
1025
1025
  (M[50].amount ? (
1026
1026
  /*formatBalance*/
@@ -1028,7 +1028,7 @@ function st(o) {
1028
1028
  /*b*/
1029
1029
  M[50].amount
1030
1030
  )
1031
- ) : "0") + "") && pe(b, F), H[0] & /*currency*/
1031
+ ) : "0") + "") && pe(b, F), j[0] & /*currency*/
1032
1032
  8 && pe(
1033
1033
  U,
1034
1034
  /*currency*/
@@ -1055,7 +1055,7 @@ function lt(o) {
1055
1055
  e = N("div");
1056
1056
  for (let u = 0; u < c.length; u += 1)
1057
1057
  c[u].c();
1058
- t = oe(), V(e, "class", "BalanceModalRowBoth");
1058
+ t = oe(), z(e, "class", "BalanceModalRowBoth");
1059
1059
  },
1060
1060
  m(u, g) {
1061
1061
  he(u, e, g);
@@ -1092,7 +1092,7 @@ function ct(o) {
1092
1092
  let e, t, r;
1093
1093
  return {
1094
1094
  c() {
1095
- e = N("div"), V(e, "class", "ShowBalanceModalOverlay");
1095
+ e = N("div"), z(e, "class", "ShowBalanceModalOverlay");
1096
1096
  },
1097
1097
  m(c, u) {
1098
1098
  he(c, e, u), t || (r = Ve(
@@ -1122,7 +1122,7 @@ function qt(o) {
1122
1122
  );
1123
1123
  return {
1124
1124
  c() {
1125
- e = N("div"), t = N("div"), g.c(), r = oe(), f && f.c(), V(t, "class", "ShowBalance"), V(t, "part", "ShowBalance");
1125
+ e = N("div"), t = N("div"), g.c(), r = oe(), f && f.c(), z(t, "class", "ShowBalance");
1126
1126
  },
1127
1127
  m(m, y) {
1128
1128
  he(m, e, y), R(e, t), g.m(t, null), R(e, r), f && f.m(e, null), o[27](e);
@@ -1141,9 +1141,9 @@ function qt(o) {
1141
1141
  function Kt(o, e, t) {
1142
1142
  let r;
1143
1143
  Rt(o, Ot, (d) => t(5, r = d));
1144
- let { userid: c = "" } = e, { session: u = "" } = e, { endpoint: g = "" } = e, { lang: f = "en" } = e, { clientstyling: m = "" } = 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: H = "" } = e, { mbsource: Z } = e, S, C, P, D = !1, $ = "", ee = [], ge, te = !1, Ae;
1144
+ let { userid: c = "" } = e, { session: u = "" } = e, { endpoint: g = "" } = e, { lang: f = "en" } = e, { clientstyling: m = "" } = 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, T, C, P, D = !1, $ = "", ee = [], ge, te = !1, Ae;
1145
1145
  const p = {}, ye = ["totalCashAmount", "totalRealAmount"], Re = () => {
1146
- fetch(x).then((d) => d.json()).then((d) => Object.keys(d).forEach((T) => nt(T, d[T]))).catch((d) => console.log(d));
1146
+ fetch(x).then((d) => d.json()).then((d) => Object.keys(d).forEach((S) => nt(S, d[S]))).catch((d) => console.log(d));
1147
1147
  };
1148
1148
  Object.keys(at).forEach((d) => nt(d, at[d]));
1149
1149
  const Ee = () => {
@@ -1153,15 +1153,15 @@ function Kt(o, e, t) {
1153
1153
  separator: U,
1154
1154
  decimal: M,
1155
1155
  symbol: "",
1156
- precision: parseInt(H || "2", 10)
1156
+ precision: parseInt(j || "2", 10)
1157
1157
  }).format() : ae(d, {
1158
1158
  separator: ".",
1159
1159
  decimal: ",",
1160
1160
  symbol: "",
1161
- precision: parseInt(H || "2", 10)
1161
+ precision: parseInt(j || "2", 10)
1162
1162
  }).format(), re = () => tt(this, null, function* () {
1163
- var T, n, a;
1164
- t(1, S = !0);
1163
+ var S, n, a;
1164
+ t(1, T = !0);
1165
1165
  const d = new URL(`${g}/v1/player/${c}/account`);
1166
1166
  try {
1167
1167
  const l = yield fetch(d, {
@@ -1169,7 +1169,7 @@ function Kt(o, e, t) {
1169
1169
  headers: { "X-SessionID": u }
1170
1170
  }), i = yield l.json();
1171
1171
  if (l.ok)
1172
- ee = i.items, t(3, $ = (T = ee.find((s) => s.displayName === "Casino")) == null ? void 0 : T.currency), t(4, p.Total = [{ amount: i.totalAmount[$] }], p), t(
1172
+ ee = i.items, t(3, $ = (S = ee.find((s) => s.displayName === "Casino")) == null ? void 0 : S.currency), t(4, p.Total = [{ amount: i.totalAmount[$] }], p), t(
1173
1173
  4,
1174
1174
  p.Real = [
1175
1175
  {
@@ -1191,12 +1191,12 @@ function Kt(o, e, t) {
1191
1191
  } catch (l) {
1192
1192
  console.log("Balance error: ", l);
1193
1193
  } finally {
1194
- t(1, S = !1);
1194
+ t(1, T = !1);
1195
1195
  }
1196
1196
  }), ve = () => {
1197
- t(1, S = !0);
1198
- const d = new URL(`${g}/v2/player/${c}/balance`), T = new Headers();
1199
- T.append("X-SessionID", u), fetch(d, { method: "GET", headers: T }).then((a) => a.json()).then((a) => {
1197
+ t(1, T = !0);
1198
+ const d = new URL(`${g}/v2/player/${c}/balance`), S = new Headers();
1199
+ S.append("X-SessionID", u), fetch(d, { method: "GET", headers: S }).then((a) => a.json()).then((a) => {
1200
1200
  a[A] || t(8, A = ye[0]);
1201
1201
  const l = a.items.find((s) => s.type === "Real" && s.walletAccountType === "Ordinary");
1202
1202
  if (t(3, $ = l.currency), te = !!l.productType, t(4, p.Total = [{ amount: 0 }], p), t(4, p.Real = [], p), t(4, p.Bonus = [], p), t(4, p.Credit = [], p), !te) {
@@ -1210,13 +1210,14 @@ function Kt(o, e, t) {
1210
1210
  p.Bonus.length === 0 ? p.Bonus.push({ amount: s.amount }) : t(4, p.Bonus[0].amount += s.amount, p);
1211
1211
  break;
1212
1212
  case "Real":
1213
- if (s.creditLine && p.Credit.length === 0 && p.Credit.push({ amount: s.creditLine }), A === "totalRealAmount") continue;
1213
+ if (s.creditLine && p.Credit.length === 0 && p.Credit.push({ amount: s.creditLine }), A === "totalRealAmount")
1214
+ continue;
1214
1215
  p.Real.length === 0 ? p.Real.push({ amount: s.amount }) : t(4, p.Real[0].amount += s.amount, p);
1215
1216
  break;
1216
1217
  }
1217
1218
  for (const [s, h] of Object.entries(p))
1218
1219
  h.length < 1 && delete p[s];
1219
- t(1, S = !1);
1220
+ t(1, T = !1);
1220
1221
  return;
1221
1222
  }
1222
1223
  ge = {
@@ -1254,55 +1255,56 @@ function Kt(o, e, t) {
1254
1255
  De();
1255
1256
  for (const [s, h] of Object.entries(p))
1256
1257
  h.length < 1 && delete p[s];
1257
- t(1, S = !1);
1258
+ t(1, T = !1);
1258
1259
  }).catch((a) => {
1259
- throw t(1, S = !1), new Error("Failed to fetch balance data !");
1260
+ throw t(1, T = !1), new Error("Failed to fetch balance data !");
1260
1261
  });
1261
1262
  }, se = () => {
1262
- if (P && P.close(), u.length < 1) return;
1263
- let d, T;
1263
+ if (P && P.close(), u.length < 1)
1264
+ return;
1265
+ let d, S;
1264
1266
  switch (b) {
1265
1267
  case "gm16":
1266
- d = new URL(`${g}/v2/player/${c}/information/updates`), T = (l) => He(l);
1268
+ d = new URL(`${g}/v2/player/${c}/information/updates`), S = (l) => He(l);
1267
1269
  break;
1268
1270
  case "gmcore":
1269
- d = new URL(`${g}/v1/player/${c}/balance/updates`), T = (l) => ie(l);
1271
+ d = new URL(`${g}/v1/player/${c}/balance/updates`), S = (l) => ie(l);
1270
1272
  break;
1271
1273
  }
1272
1274
  const n = {
1273
1275
  accept: "text/event-stream",
1274
1276
  "X-SessionId": u
1275
1277
  }, a = new It.EventSourcePolyfill(d, { headers: n });
1276
- P = a, a.addEventListener("message", T);
1278
+ P = a, a.addEventListener("message", S);
1277
1279
  }, Ce = (d) => {
1278
- let T;
1280
+ let S;
1279
1281
  try {
1280
- T = JSON.parse(d);
1282
+ S = JSON.parse(d);
1281
1283
  } catch (n) {
1282
1284
  console.log("Balance stream failed: ", n);
1283
1285
  return;
1284
1286
  }
1285
- return T;
1287
+ return S;
1286
1288
  }, ie = (d) => {
1287
1289
  var l, i;
1288
- const T = Ce(d.data);
1289
- if (!T) {
1290
+ const S = Ce(d.data);
1291
+ if (!S) {
1290
1292
  se();
1291
1293
  return;
1292
1294
  }
1293
1295
  let n = "0";
1294
- const a = T.balanceChange;
1296
+ const a = S.balanceChange;
1295
1297
  ee = ee.map((s) => (a && a[s.id] && (s = et($e({}, s), {
1296
1298
  balanceAmount: a[s.id].afterAmount
1297
1299
  })), n = (parseFloat(s == null ? void 0 : s.balanceAmount) + parseFloat(n)).toString(), s)), t(4, p.Real = [{ amount: (l = ee[0]) == null ? void 0 : l.balanceAmount }], p), t(4, p.Bonus = [{ amount: (i = ee[1]) == null ? void 0 : i.balanceAmount }], p), t(4, p.Total = [{ amount: Number(n) }], p);
1298
- }, be = (d, T, n) => {
1300
+ }, be = (d, S, n) => {
1299
1301
  let a = null;
1300
1302
  switch (n.walletAccountType) {
1301
1303
  case "Ordinary":
1302
- n.afterAmount !== n.affectedAmount && (T.lastOrdinaryAfterAmount = n.afterAmount, T.showCreditLineAfterAmount || (a = n.afterAmount));
1304
+ n.afterAmount !== n.affectedAmount && (S.lastOrdinaryAfterAmount = n.afterAmount, S.showCreditLineAfterAmount || (a = n.afterAmount));
1303
1305
  break;
1304
1306
  case "CreditLine":
1305
- n.afterAmount !== 0 ? (a = n.afterAmount, T.showCreditLineAfterAmount = !0) : (a = T.lastOrdinaryAfterAmount, T.showCreditLineAfterAmount = !1);
1307
+ n.afterAmount !== 0 ? (a = n.afterAmount, S.showCreditLineAfterAmount = !0) : (a = S.lastOrdinaryAfterAmount, S.showCreditLineAfterAmount = !1);
1306
1308
  break;
1307
1309
  default:
1308
1310
  a = n.afterAmount;
@@ -1318,21 +1320,22 @@ function Kt(o, e, t) {
1318
1320
  t(4, p.Total[0].amount = d, p);
1319
1321
  break;
1320
1322
  case "totalRealAmount":
1321
- if (!te) return;
1322
- let T = 0;
1323
+ if (!te)
1324
+ return;
1325
+ let S = 0;
1323
1326
  for (const n of p.Real)
1324
- T += n.amount;
1325
- t(4, p.Total[0].amount = T, p);
1327
+ S += n.amount;
1328
+ t(4, p.Total[0].amount = S, p);
1326
1329
  }
1327
1330
  }, He = (d) => {
1328
- const T = Ce(d.data);
1329
- if (!T) {
1331
+ const S = Ce(d.data);
1332
+ if (!S) {
1330
1333
  se();
1331
1334
  return;
1332
1335
  }
1333
- if (T.type !== "BALANCE_UPDATE_V2")
1336
+ if (S.type !== "BALANCE_UPDATE_V2")
1334
1337
  return;
1335
- const n = T.body.balanceChange;
1338
+ const n = S.body.balanceChange;
1336
1339
  for (const [a, l] of Object.entries(n))
1337
1340
  if (A === "totalRealAmount" && a === "Real" && !te && t(4, p.Total[0].amount = be(p.Total[0].amount, ge, l), p), !!p[a])
1338
1341
  for (const i of p[a]) {
@@ -1358,9 +1361,9 @@ function Kt(o, e, t) {
1358
1361
  default:
1359
1362
  throw Error(`Invalid apiversion attribute: ${b}`);
1360
1363
  }
1361
- }, Se = (d) => d.data && d.data.type === "LogoutSuccessfull" && P.close();
1362
- Et(() => (window.addEventListener("message", Se, !1), () => {
1363
- window.emMessageBus && Ae && Ae.unsubscribe(), window.removeEventListener("message", Se), P && P.close();
1364
+ }, Te = (d) => d.data && d.data.type === "LogoutSuccessfull" && P.close();
1365
+ Et(() => (window.addEventListener("message", Te, !1), () => {
1366
+ window.emMessageBus && Ae && Ae.unsubscribe(), window.removeEventListener("message", Te), P && P.close();
1364
1367
  }));
1365
1368
  const Le = () => t(2, D = !0), we = () => t(2, D = !1), W = () => ke(), Pe = () => t(2, D = !1);
1366
1369
  function Ge(d) {
@@ -1369,7 +1372,7 @@ function Kt(o, e, t) {
1369
1372
  });
1370
1373
  }
1371
1374
  return o.$$set = (d) => {
1372
- "userid" in d && t(9, c = d.userid), "session" in d && t(10, u = d.session), "endpoint" in d && t(11, g = d.endpoint), "lang" in d && t(12, f = d.lang), "clientstyling" in d && t(13, m = d.clientstyling), "clientstylingurl" in d && t(14, y = d.clientstylingurl), "translationurl" in d && t(15, x = d.translationurl), "customlocaleidentifier" in d && t(16, F = d.customlocaleidentifier), "gmversion" in d && t(17, b = d.gmversion), "displaybalanceoption" in d && t(18, B = d.displaybalanceoption), "totalcalculationmode" in d && t(8, A = d.totalcalculationmode), "currencyseparator" in d && t(19, U = d.currencyseparator), "currencydecimal" in d && t(20, M = d.currencydecimal), "currencyprecision" in d && t(21, H = d.currencyprecision), "mbsource" in d && t(22, Z = d.mbsource);
1375
+ "userid" in d && t(9, c = d.userid), "session" in d && t(10, u = d.session), "endpoint" in d && t(11, g = d.endpoint), "lang" in d && t(12, f = d.lang), "clientstyling" in d && t(13, m = d.clientstyling), "clientstylingurl" in d && t(14, y = d.clientstylingurl), "translationurl" in d && t(15, x = d.translationurl), "customlocaleidentifier" in d && t(16, F = d.customlocaleidentifier), "gmversion" in d && t(17, b = d.gmversion), "displaybalanceoption" in d && t(18, B = d.displaybalanceoption), "totalcalculationmode" in d && t(8, A = d.totalcalculationmode), "currencyseparator" in d && t(19, U = d.currencyseparator), "currencydecimal" in d && t(20, M = d.currencydecimal), "currencyprecision" in d && t(21, j = d.currencyprecision), "mbsource" in d && t(22, Z = d.mbsource);
1373
1376
  }, o.$$.update = () => {
1374
1377
  o.$$.dirty[0] & /*lang*/
1375
1378
  4096 && f && Ee(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
@@ -1381,7 +1384,7 @@ function Kt(o, e, t) {
1381
1384
  32768 && x && Re();
1382
1385
  }, [
1383
1386
  C,
1384
- S,
1387
+ T,
1385
1388
  D,
1386
1389
  $,
1387
1390
  p,
@@ -1401,7 +1404,7 @@ function Kt(o, e, t) {
1401
1404
  B,
1402
1405
  U,
1403
1406
  M,
1404
- H,
1407
+ j,
1405
1408
  Z,
1406
1409
  Le,
1407
1410
  we,
@@ -1412,7 +1415,7 @@ function Kt(o, e, t) {
1412
1415
  }
1413
1416
  class Wt extends Ct {
1414
1417
  constructor(e) {
1415
- super(), St(
1418
+ super(), Tt(
1416
1419
  this,
1417
1420
  e,
1418
1421
  Kt,
@@ -1530,7 +1533,7 @@ class Wt extends Ct {
1530
1533
  this.$$set({ mbsource: e }), K();
1531
1534
  }
1532
1535
  }
1533
- Tt(Wt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
1536
+ St(Wt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
1534
1537
  export {
1535
1538
  Wt as default
1536
1539
  };