@everymatrix/casino-header-controller-nd 1.80.2 → 1.80.3

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 (28) hide show
  1. package/components/{CasinoHamburgerMenuNd-DB_HYAUx.js → CasinoHamburgerMenuNd-Bvwv47IV.js} +17 -16
  2. package/components/{CasinoHamburgerMenuNd-zpAzpmHI.js → CasinoHamburgerMenuNd-CkpB3LjN.js} +17 -16
  3. package/components/{CasinoHamburgerMenuNd-7Ram2YIF.cjs → CasinoHamburgerMenuNd-DslPLpON.cjs} +3 -3
  4. package/components/CasinoHeaderControllerNd-DioTXejX.js +2414 -0
  5. package/components/CasinoHeaderControllerNd-d-DEmG0m.js +2438 -0
  6. package/components/CasinoHeaderControllerNd-gwEBxFIE.cjs +1 -0
  7. package/components/{PlayerAccountBalanceModalNd-Bbbf5Zlk.js → PlayerAccountBalanceModalNd-C4Dwr0dD.js} +74 -74
  8. package/components/{PlayerAccountBalanceModalNd-vCKXT5c-.js → PlayerAccountBalanceModalNd-JX7NjRSy.js} +75 -75
  9. package/components/{PlayerAccountBalanceModalNd-Cufs7l7s.cjs → PlayerAccountBalanceModalNd-UopfVqmk.cjs} +1 -1
  10. package/components/{PlayerDeposit-Bihwy1oa.js → PlayerDeposit-Bp82pg7V.js} +22 -22
  11. package/components/{PlayerDeposit-UVuTVd-L.cjs → PlayerDeposit-D076Vp1g.cjs} +1 -1
  12. package/components/{PlayerDeposit-CDOgfT1e.js → PlayerDeposit-R2KgNT4p.js} +22 -22
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/lazy/{casino-hamburger-menu-nd-LrOJCbIl.js → casino-hamburger-menu-nd-1DrfDZmJ.js} +1 -1
  17. package/lazy/{casino-hamburger-menu-nd-DtiHc44A.js → casino-hamburger-menu-nd-BKbleOqu.js} +1 -1
  18. package/lazy/{casino-hamburger-menu-nd-D43TP5uV.cjs → casino-hamburger-menu-nd-D0fSaYaM.cjs} +1 -1
  19. package/lazy/{player-account-balance-modal-nd-ymy3n_Ph.js → player-account-balance-modal-nd--5yIBIRl.js} +1 -1
  20. package/lazy/{player-account-balance-modal-nd-CDd4WpZd.cjs → player-account-balance-modal-nd-Bh_izKRf.cjs} +1 -1
  21. package/lazy/{player-account-balance-modal-nd-CgwVHDyI.js → player-account-balance-modal-nd-D-oQzLDl.js} +1 -1
  22. package/lazy/{player-deposit-C_aa4bTB.cjs → player-deposit-B_k6nE7k.cjs} +1 -1
  23. package/lazy/{player-deposit-BdUGAWde.js → player-deposit-CIHdGBaZ.js} +1 -1
  24. package/lazy/{player-deposit-CmReCo2y.js → player-deposit-emHtRwQ2.js} +1 -1
  25. package/package.json +1 -1
  26. package/components/CasinoHeaderControllerNd-BeMkUBB5.js +0 -2382
  27. package/components/CasinoHeaderControllerNd-CE9c5PI3.js +0 -2358
  28. package/components/CasinoHeaderControllerNd-DASsvuDN.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { b as it, $ as lt, P as st, S as ct, i as dt, s as ut, f as X, d as ft, A as Xe, g as he, l as C, n as me, o as A, v as I, w as ge, x as pt, L as ht, y as mt, C as gt, p as je, E as yt, F as Be, G as Te, H as qe, z as vt, I as He, J as nt, r as wt, M as bt, N as Bt, O as Tt, c as St } from "./CasinoHamburgerMenuNd-DB_HYAUx.js";
1
+ import { b as it, $ as lt, Q as st, S as ct, i as dt, s as ut, f as X, d as ft, A as Xe, g as he, l as C, n as me, o as A, v as I, w as ge, x as pt, M as ht, y as mt, D as gt, p as je, F as yt, G as Be, H as Te, I as qe, z as vt, J as He, K as nt, r as wt, N as bt, O as Bt, P as Tt, c as St } from "./CasinoHamburgerMenuNd-Bvwv47IV.js";
2
2
  function Ye(s, a) {
3
3
  it(s, a);
4
4
  }
5
5
  function Ct(s) {
6
6
  lt.set(s);
7
7
  }
8
- const Je = {
8
+ const Qe = {
9
9
  en: {
10
10
  Title: "Your Balance",
11
11
  Total: "Total Balance",
@@ -213,7 +213,7 @@ var Ke = { exports: {} };
213
213
  */
214
214
  (function(s, a) {
215
215
  (function(n) {
216
- var v = n.setTimeout, g = n.clearTimeout, d = n.XMLHttpRequest, b = n.XDomainRequest, y = n.ActiveXObject, B = n.EventSource, T = n.document, M = n.Promise, k = n.fetch, L = n.Response, x = n.TextDecoder, S = n.TextEncoder, R = n.AbortController;
216
+ var v = n.setTimeout, g = n.clearTimeout, d = n.XMLHttpRequest, b = n.XDomainRequest, y = n.ActiveXObject, B = n.EventSource, T = n.document, M = n.Promise, L = n.fetch, k = n.Response, x = n.TextDecoder, S = n.TextEncoder, R = n.AbortController;
217
217
  if (typeof window < "u" && typeof T < "u" && !("readyState" in T) && T.body == null && (T.readyState = "loading", window.addEventListener("load", function(t) {
218
218
  T.readyState = "complete";
219
219
  }, !1)), d == null && y != null && (d = function() {
@@ -225,8 +225,8 @@ var Ke = { exports: {} };
225
225
  }), Date.now || (Date.now = function() {
226
226
  return (/* @__PURE__ */ new Date()).getTime();
227
227
  }), R == null) {
228
- var j = k;
229
- k = function(t, l) {
228
+ var j = L;
229
+ L = function(t, l) {
230
230
  var u = l.signal;
231
231
  return j(t, { headers: l.headers, credentials: l.credentials, cache: l.cache }).then(function(i) {
232
232
  var e = i.body.getReader();
@@ -378,7 +378,7 @@ var Ke = { exports: {} };
378
378
  throw u;
379
379
  }
380
380
  };
381
- function Q(t) {
381
+ function J(t) {
382
382
  return t.replace(/[A-Z]/g, function(l) {
383
383
  return String.fromCharCode(l.charCodeAt(0) + 32);
384
384
  });
@@ -387,12 +387,12 @@ var Ke = { exports: {} };
387
387
  for (var l = /* @__PURE__ */ Object.create(null), u = t.split(`\r
388
388
  `), i = 0; i < u.length; i += 1) {
389
389
  var e = u[i], o = e.split(": "), r = o.shift(), c = o.join(": ");
390
- l[Q(r)] = c;
390
+ l[J(r)] = c;
391
391
  }
392
392
  this._map = l;
393
393
  }
394
394
  se.prototype.get = function(t) {
395
- return this._map[Q(t)];
395
+ return this._map[J(t)];
396
396
  }, d != null && d.HEADERS_RECEIVED == null && (d.HEADERS_RECEIVED = 2);
397
397
  function K() {
398
398
  }
@@ -428,7 +428,7 @@ var Ke = { exports: {} };
428
428
  }
429
429
  E.prototype.open = function(t, l, u, i, e, o, r) {
430
430
  var c = null, h = new R(), w = h.signal, p = new x();
431
- return k(e, {
431
+ return L(e, {
432
432
  headers: r,
433
433
  credentials: o ? "include" : "same-origin",
434
434
  signal: w,
@@ -511,11 +511,11 @@ var Ke = { exports: {} };
511
511
  G.call(this, t), this.error = l.error;
512
512
  }
513
513
  f.prototype = Object.create(G.prototype);
514
- var de = -1, ie = 0, Z = 1, we = 2, xe = -1, le = 0, Re = 1, Se = 2, Le = 3, ze = /^text\/event\-stream(;.*)?$/i, Ee = 1e3, ke = 18e6, De = function(t, l) {
514
+ var de = -1, ie = 0, Z = 1, we = 2, xe = -1, le = 0, Re = 1, Se = 2, ke = 3, ze = /^text\/event\-stream(;.*)?$/i, Ee = 1e3, Le = 18e6, De = function(t, l) {
515
515
  var u = t == null ? l : parseInt(t, 10);
516
516
  return u !== u && (u = l), Ce(u);
517
517
  }, Ce = function(t) {
518
- return Math.min(Math.max(t, Ee), ke);
518
+ return Math.min(Math.max(t, Ee), Le);
519
519
  }, ye = function(t, l, u) {
520
520
  try {
521
521
  typeof l == "function" && l.call(t, u);
@@ -529,28 +529,28 @@ var Ke = { exports: {} };
529
529
  function Ve() {
530
530
  return d != null && "withCredentials" in d.prototype || b == null ? new d() : new b();
531
531
  }
532
- var Oe = k != null && L != null && "body" in L.prototype;
532
+ var Oe = L != null && k != null && "body" in k.prototype;
533
533
  function Ue(t, l, u) {
534
534
  l = String(l);
535
535
  var i = !!u.withCredentials, e = u.lastEventIdQueryParameterName || "lastEventId", o = Ce(1e3), r = De(u.heartbeatTimeout, 45e3), c = "", h = o, w = !1, p = 0, m = u.headers || {}, _ = u.Transport, W = Oe && _ == null ? void 0 : new O(_ != null ? new _() : Ve()), ve = _ != null && typeof _ != "string" ? new _() : W == null ? new E() : new K(), H = void 0, q = 0, re = de, _e = "", Fe = "", ue = "", Ie = "", Y = le, Pe = 0, be = 0, ot = function(U, z, ee, te) {
536
536
  if (re === ie)
537
537
  if (U === 200 && ee != null && ze.test(ee)) {
538
538
  re = Z, w = Date.now(), h = o, t.readyState = Z;
539
- var J = new ce("open", {
539
+ var Q = new ce("open", {
540
540
  status: U,
541
541
  statusText: z,
542
542
  headers: te
543
543
  });
544
- t.dispatchEvent(J), ye(t, t.onopen, J);
544
+ t.dispatchEvent(Q), ye(t, t.onopen, Q);
545
545
  } else {
546
546
  var P = "";
547
547
  U !== 200 ? (z && (z = z.replace(/\s+/g, " ")), P = "EventSource's response has a status " + U + " " + z + " that is not 200. Aborting the connection.") : P = "EventSource's response has a Content-Type specifying an unsupported type: " + (ee == null ? "-" : ee.replace(/\s+/g, " ")) + ". Aborting the connection.", Ge();
548
- var J = new ce("error", {
548
+ var Q = new ce("error", {
549
549
  status: U,
550
550
  statusText: z,
551
551
  headers: te
552
552
  });
553
- t.dispatchEvent(J), ye(t, t.onerror, J), console.error(P);
553
+ t.dispatchEvent(Q), ye(t, t.onerror, Q), console.error(P);
554
554
  }
555
555
  }, rt = function(U) {
556
556
  if (re === Z) {
@@ -558,16 +558,16 @@ var Ke = { exports: {} };
558
558
  var te = U.charCodeAt(ee);
559
559
  (te === 10 || te === 13) && (z = ee);
560
560
  }
561
- var J = (z !== -1 ? Ie : "") + U.slice(0, z + 1);
561
+ var Q = (z !== -1 ? Ie : "") + U.slice(0, z + 1);
562
562
  Ie = (z === -1 ? Ie : "") + U.slice(z + 1), U !== "" && (w = Date.now(), p += U.length);
563
- for (var P = 0; P < J.length; P += 1) {
564
- var te = J.charCodeAt(P);
563
+ for (var P = 0; P < Q.length; P += 1) {
564
+ var te = Q.charCodeAt(P);
565
565
  if (Y === xe && te === 10)
566
566
  Y = le;
567
567
  else if (Y === xe && (Y = le), te === 13 || te === 10) {
568
568
  if (Y !== le) {
569
569
  Y === Re && (be = P + 1);
570
- var fe = J.slice(Pe, be - 1), pe = J.slice(be + (be < P && J.charCodeAt(be) === 32 ? 1 : 0), P);
570
+ var fe = Q.slice(Pe, be - 1), pe = Q.slice(be + (be < P && Q.charCodeAt(be) === 32 ? 1 : 0), P);
571
571
  fe === "data" ? (_e += `
572
572
  `, _e += pe) : fe === "id" ? Fe = pe : fe === "event" ? ue = pe : fe === "retry" ? (o = De(pe, o), h = o) : fe === "heartbeatTimeout" && (r = De(pe, r), q !== 0 && (g(q), q = v(function() {
573
573
  Me();
@@ -587,7 +587,7 @@ var Ke = { exports: {} };
587
587
  }
588
588
  Y = te === 13 ? xe : le;
589
589
  } else
590
- Y === le && (Pe = P, Y = Re), Y === Re ? te === 58 && (be = P + 1, Y = Se) : Y === Se && (Y = Le);
590
+ Y === le && (Pe = P, Y = Re), Y === Re ? te === 58 && (be = P + 1, Y = Se) : Y === Se && (Y = ke);
591
591
  }
592
592
  }
593
593
  }, We = function(U) {
@@ -622,14 +622,14 @@ var Ke = { exports: {} };
622
622
  return Ae === e ? "" : pe;
623
623
  }), z += (l.indexOf("?") === -1 ? "?" : "&") + e + "=" + encodeURIComponent(c);
624
624
  }
625
- var te = t.withCredentials, J = {};
626
- J.Accept = "text/event-stream";
625
+ var te = t.withCredentials, Q = {};
626
+ Q.Accept = "text/event-stream";
627
627
  var P = t.headers;
628
628
  if (P != null)
629
629
  for (var fe in P)
630
- Object.prototype.hasOwnProperty.call(P, fe) && (J[fe] = P[fe]);
630
+ Object.prototype.hasOwnProperty.call(P, fe) && (Q[fe] = P[fe]);
631
631
  try {
632
- H = ve.open(W, ot, rt, We, z, te, J);
632
+ H = ve.open(W, ot, rt, We, z, te, Q);
633
633
  } catch (pe) {
634
634
  throw Ge(), pe;
635
635
  }
@@ -654,7 +654,7 @@ var _t = Ke.exports;
654
654
  function At(s) {
655
655
  ft(s, "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}');
656
656
  }
657
- function Qe(s, a, n) {
657
+ function Je(s, a, n) {
658
658
  const v = s.slice();
659
659
  return v[54] = a[n], v;
660
660
  }
@@ -672,22 +672,22 @@ function xt(s) {
672
672
  s[1].Total[0].amount
673
673
  )
674
674
  ) : "0") + ""
675
- ), g, d, b, y, B, T, M, k, L, x, S = (
675
+ ), g, d, b, y, B, T, M, L, k, x, S = (
676
676
  /*showBalance*/
677
677
  s[4] && $e(s)
678
678
  );
679
679
  return {
680
680
  c() {
681
- a = I("button"), n = I("p"), g = Te(v), d = ge(), b = I("span"), y = qe("svg"), B = qe("path"), M = ge(), S && S.c(), k = vt(), C(B, "id", "arrow"), C(B, "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(B, "transform", "translate(-274.511 -441.088)"), C(B, "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(b, "class", T = /*isModalDisplayed*/
681
+ a = I("button"), n = I("p"), g = Te(v), d = ge(), b = I("span"), y = qe("svg"), B = qe("path"), M = ge(), S && S.c(), L = vt(), C(B, "id", "arrow"), C(B, "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(B, "transform", "translate(-274.511 -441.088)"), C(B, "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(b, "class", T = /*isModalDisplayed*/
682
682
  s[3] ? "TriangleActive" : "TriangleInactive"), C(a, "class", "BalanceValue");
683
683
  },
684
684
  m(R, j) {
685
- me(R, a, j), A(a, n), A(n, g), A(a, d), A(a, b), A(b, y), A(y, B), me(R, M, j), S && S.m(R, j), me(R, k, j), L || (x = je(
685
+ me(R, a, j), A(a, n), A(n, g), A(a, d), A(a, b), A(b, y), A(y, B), me(R, M, j), S && S.m(R, j), me(R, L, j), k || (x = je(
686
686
  a,
687
687
  "click",
688
688
  /*click_handler*/
689
689
  s[26]
690
- ), L = !0);
690
+ ), k = !0);
691
691
  },
692
692
  p(R, j) {
693
693
  j[0] & /*balances*/
@@ -701,10 +701,10 @@ function xt(s) {
701
701
  ) : "0") + "") && Be(g, v), j[0] & /*isModalDisplayed*/
702
702
  8 && T !== (T = /*isModalDisplayed*/
703
703
  R[3] ? "TriangleActive" : "TriangleInactive") && C(b, "class", T), /*showBalance*/
704
- R[4] ? S ? S.p(R, j) : (S = $e(R), S.c(), S.m(k.parentNode, k)) : S && (S.d(1), S = null);
704
+ R[4] ? S ? S.p(R, j) : (S = $e(R), S.c(), S.m(L.parentNode, L)) : S && (S.d(1), S = null);
705
705
  },
706
706
  d(R) {
707
- R && (he(a), he(M), he(k)), S && S.d(R), L = !1, x();
707
+ R && (he(a), he(M), he(L)), S && S.d(R), k = !1, x();
708
708
  }
709
709
  };
710
710
  }
@@ -734,31 +734,31 @@ function $e(s) {
734
734
  let a, n, v, g, d, b, y, B, T = (
735
735
  /*$_*/
736
736
  s[6]("Title") + ""
737
- ), M, k, L, x, S, R, j = (
737
+ ), M, L, k, x, S, R, j = (
738
738
  /*$_*/
739
739
  s[6]("DepositButton") + ""
740
- ), ae, ne, F, O, Q, se, K = He(Object.keys(
740
+ ), ae, ne, F, O, J, se, K = He(Object.keys(
741
741
  /*balances*/
742
742
  s[1]
743
743
  )), N = [];
744
744
  for (let E = 0; E < K.length; E += 1)
745
- N[E] = tt(Qe(s, K, E));
745
+ N[E] = tt(Je(s, K, E));
746
746
  return {
747
747
  c() {
748
- a = I("div"), n = I("button"), g = ge(), d = I("div"), b = I("div"), y = I("div"), B = I("p"), M = Te(T), k = ge(), L = I("div");
748
+ a = I("div"), n = I("button"), g = ge(), d = I("div"), b = I("div"), y = I("div"), B = I("p"), M = Te(T), L = ge(), k = I("div");
749
749
  for (let E = 0; E < N.length; E += 1)
750
750
  N[E].c();
751
751
  x = ge(), S = I("div"), R = I("button"), ae = Te(j), C(n, "class", v = "BalanceModalClose " + /*isModalDisplayed*/
752
- (s[3] ? "Open" : "")), C(B, "class", "BalanceModalTitle"), C(y, "class", "BalanceModalHeader"), C(L, "class", "BalanceModalBody"), C(R, "class", "BalanceModalAction"), C(S, "class", "BalanceModalFooter"), C(b, "class", ne = "ModalContent " + /*isModalDisplayed*/
752
+ (s[3] ? "Open" : "")), C(B, "class", "BalanceModalTitle"), C(y, "class", "BalanceModalHeader"), C(k, "class", "BalanceModalBody"), C(R, "class", "BalanceModalAction"), C(S, "class", "BalanceModalFooter"), C(b, "class", ne = "ModalContent " + /*isModalDisplayed*/
753
753
  (s[3] ? "Open" : "")), C(d, "class", F = "BalanceModal " + /*isModalDisplayed*/
754
754
  (s[3] ? "Open" : "")), C(a, "class", O = "BalanceModalWrapper " + /*isModalDisplayed*/
755
755
  (s[3] ? "Open" : ""));
756
756
  },
757
757
  m(E, V) {
758
- me(E, a, V), A(a, n), A(a, g), A(a, d), A(d, b), A(b, y), A(y, B), A(B, M), A(b, k), A(b, L);
758
+ me(E, a, V), A(a, n), A(a, g), A(a, d), A(d, b), A(b, y), A(y, B), A(B, M), A(b, L), A(b, k);
759
759
  for (let D = 0; D < N.length; D += 1)
760
- N[D] && N[D].m(L, null);
761
- A(b, x), A(b, S), A(S, R), A(R, ae), Q || (se = [
760
+ N[D] && N[D].m(k, null);
761
+ A(b, x), A(b, S), A(S, R), A(R, ae), J || (se = [
762
762
  je(
763
763
  n,
764
764
  "click",
@@ -771,7 +771,7 @@ function $e(s) {
771
771
  /*click_handler_2*/
772
772
  s[28]
773
773
  )
774
- ], Q = !0);
774
+ ], J = !0);
775
775
  },
776
776
  p(E, V) {
777
777
  if (V[0] & /*isModalDisplayed*/
@@ -786,8 +786,8 @@ function $e(s) {
786
786
  ));
787
787
  let D;
788
788
  for (D = 0; D < K.length; D += 1) {
789
- const G = Qe(E, K, D);
790
- N[D] ? N[D].p(G, V) : (N[D] = tt(G), N[D].c(), N[D].m(L, null));
789
+ const G = Je(E, K, D);
790
+ N[D] ? N[D].p(G, V) : (N[D] = tt(G), N[D].c(), N[D].m(k, null));
791
791
  }
792
792
  for (; D < N.length; D += 1)
793
793
  N[D].d(1);
@@ -804,7 +804,7 @@ function $e(s) {
804
804
  (E[3] ? "Open" : "")) && C(a, "class", O);
805
805
  },
806
806
  d(E) {
807
- E && he(a), nt(N, E), Q = !1, wt(se);
807
+ E && he(a), nt(N, E), J = !1, wt(se);
808
808
  }
809
809
  };
810
810
  }
@@ -824,19 +824,19 @@ function et(s) {
824
824
  s[57].productType
825
825
  )
826
826
  ) : "") + ""
827
- ), y, B, T, M, k = (
827
+ ), y, B, T, M, L = (
828
828
  /*formatBalance*/
829
829
  s[8](
830
830
  /*b*/
831
831
  s[57].amount
832
832
  ) + ""
833
- ), L;
833
+ ), k;
834
834
  return {
835
835
  c() {
836
- a = I("div"), n = I("p"), g = Te(v), d = ge(), y = Te(b), B = ge(), T = I("p"), M = I("span"), L = Te(k), C(n, "class", "BalanceModalText"), C(M, "class", "BalanceModalAmount"), C(T, "class", "BalanceModalValue"), C(a, "class", "BalanceModalRowLine");
836
+ a = I("div"), n = I("p"), g = Te(v), d = ge(), y = Te(b), B = ge(), T = I("p"), M = I("span"), k = Te(L), C(n, "class", "BalanceModalText"), C(M, "class", "BalanceModalAmount"), C(T, "class", "BalanceModalValue"), C(a, "class", "BalanceModalRowLine");
837
837
  },
838
838
  m(x, S) {
839
- me(x, a, S), A(a, n), A(n, g), A(n, d), A(n, y), A(a, B), A(a, T), A(T, M), A(M, L);
839
+ me(x, a, S), A(a, n), A(n, g), A(n, d), A(n, y), A(a, B), A(a, T), A(T, M), A(M, k);
840
840
  },
841
841
  p(x, S) {
842
842
  S[0] & /*$_, balances*/
@@ -853,11 +853,11 @@ function et(s) {
853
853
  x[57].productType
854
854
  )
855
855
  ) : "") + "") && Be(y, b), S[0] & /*balances*/
856
- 2 && k !== (k = /*formatBalance*/
856
+ 2 && L !== (L = /*formatBalance*/
857
857
  x[8](
858
858
  /*b*/
859
859
  x[57].amount
860
- ) + "") && Be(L, k);
860
+ ) + "") && Be(k, L);
861
861
  },
862
862
  d(x) {
863
863
  x && he(a);
@@ -968,11 +968,11 @@ function Et(s) {
968
968
  function Dt(s, a, n) {
969
969
  let v;
970
970
  pt(s, ht, (e) => n(6, v = e));
971
- let { userid: g = "" } = a, { session: d = "" } = a, { endpoint: b = "" } = a, { lang: y = "en" } = a, { mbsource: B } = a, { clientstyling: T = "" } = a, { clientstylingurl: M = "" } = a, { translationurl: k = "" } = a, { gmversion: L = "gm16" } = a, { displaybalanceoption: x = "All" } = a, { totalcalculationmode: S = "totalCashAmount" } = a, { currencylocale: R = "en" } = a, { currencydisplay: j = "symbol" } = a, { maximumfractiondigits: ae = "2" } = a, { minimumfractiondigits: ne = "0" } = a, { customdisplayformat: F = "" } = a, O, Q = !0, se = !1, K = !1, N = !1, E = !1, V = window.navigator.userAgent, D, G = "", oe = [], ce;
971
+ let { userid: g = "" } = a, { session: d = "" } = a, { endpoint: b = "" } = a, { lang: y = "en" } = a, { mbsource: B } = a, { clientstyling: T = "" } = a, { clientstylingurl: M = "" } = a, { translationurl: L = "" } = a, { gmversion: k = "gm16" } = a, { displaybalanceoption: x = "All" } = a, { totalcalculationmode: S = "totalCashAmount" } = a, { currencylocale: R = "en" } = a, { currencydisplay: j = "symbol" } = a, { maximumfractiondigits: ae = "2" } = a, { minimumfractiondigits: ne = "0" } = a, { customdisplayformat: F = "" } = a, O, J = !0, se = !1, K = !1, N = !1, E = !1, V = window.navigator.userAgent, D, G = "", oe = [], ce;
972
972
  const f = {}, de = ["totalCashAmount", "totalRealAmount"], ie = () => {
973
- fetch(k).then((e) => e.json()).then((e) => Object.keys(e).forEach((o) => Ye(o, e[o]))).catch((e) => console.log(e));
973
+ fetch(L).then((e) => e.json()).then((e) => Object.keys(e).forEach((o) => Ye(o, e[o]))).catch((e) => console.log(e));
974
974
  };
975
- Object.keys(Je).forEach((e) => Ye(e, Je[e]));
975
+ Object.keys(Qe).forEach((e) => Ye(e, Qe[e]));
976
976
  const Z = (e) => {
977
977
  switch (e) {
978
978
  case "balance":
@@ -1040,7 +1040,7 @@ function Dt(s, a, n) {
1040
1040
  }
1041
1041
  return o.push(r), o.join("");
1042
1042
  }, le = async () => {
1043
- n(2, Q = !0);
1043
+ n(2, J = !0);
1044
1044
  const e = new URL(`${b}/v1/player/${g}/account`);
1045
1045
  try {
1046
1046
  const o = await fetch(e, {
@@ -1070,10 +1070,10 @@ function Dt(s, a, n) {
1070
1070
  } catch (o) {
1071
1071
  console.log("Balance error: ", o);
1072
1072
  } finally {
1073
- n(2, Q = !1);
1073
+ n(2, J = !1);
1074
1074
  }
1075
1075
  }, Re = () => {
1076
- n(2, Q = !0);
1076
+ n(2, J = !0);
1077
1077
  const e = new URL(`${b}/v2/player/${g}/balance`), o = new Headers();
1078
1078
  o.append("X-SessionID", d), fetch(e, { method: "GET", headers: o }).then((c) => c.json()).then((c) => {
1079
1079
  c[S] || n(10, S = de[0]);
@@ -1096,7 +1096,7 @@ function Dt(s, a, n) {
1096
1096
  }
1097
1097
  for (const [p, m] of Object.entries(f))
1098
1098
  m.length < 1 && delete f[p];
1099
- n(2, Q = !1);
1099
+ n(2, J = !1);
1100
1100
  return;
1101
1101
  }
1102
1102
  ce = {
@@ -1131,18 +1131,18 @@ function Dt(s, a, n) {
1131
1131
  break;
1132
1132
  }
1133
1133
  }
1134
- ke();
1134
+ Le();
1135
1135
  for (const [p, m] of Object.entries(f))
1136
1136
  m.length < 1 && delete f[p];
1137
- n(2, Q = !1);
1137
+ n(2, J = !1);
1138
1138
  }).catch((c) => {
1139
- throw n(2, Q = !1), console.log("Balance fetch error", c), new Error("Failed to fetch balance data!");
1139
+ throw n(2, J = !1), console.log("Balance fetch error", c), new Error("Failed to fetch balance data!");
1140
1140
  });
1141
1141
  }, Se = () => {
1142
1142
  if (D && D.close(), d.length < 1)
1143
1143
  return;
1144
1144
  let e, o;
1145
- switch (L) {
1145
+ switch (k) {
1146
1146
  case "gm16":
1147
1147
  e = new URL(`${b}/v2/player/${g}/information/updates`), o = (h) => De(h);
1148
1148
  break;
@@ -1155,7 +1155,7 @@ function Dt(s, a, n) {
1155
1155
  "X-SessionId": d
1156
1156
  }, c = new _t.EventSourcePolyfill(e, { headers: r });
1157
1157
  D = c, c.addEventListener("message", o);
1158
- }, Le = (e) => {
1158
+ }, ke = (e) => {
1159
1159
  let o;
1160
1160
  try {
1161
1161
  o = JSON.parse(e);
@@ -1165,7 +1165,7 @@ function Dt(s, a, n) {
1165
1165
  }
1166
1166
  return o;
1167
1167
  }, ze = (e) => {
1168
- const o = Le(e.data);
1168
+ const o = ke(e.data);
1169
1169
  if (!o) {
1170
1170
  Se();
1171
1171
  return;
@@ -1189,7 +1189,7 @@ function Dt(s, a, n) {
1189
1189
  c = r.afterAmount;
1190
1190
  }
1191
1191
  return c === null ? e : c;
1192
- }, ke = () => {
1192
+ }, Le = () => {
1193
1193
  switch (S) {
1194
1194
  case "totalCashAmount":
1195
1195
  let e = 0;
@@ -1207,7 +1207,7 @@ function Dt(s, a, n) {
1207
1207
  n(1, f.Total[0].amount = o, f);
1208
1208
  }
1209
1209
  }, De = (e) => {
1210
- const o = Le(e.data);
1210
+ const o = ke(e.data);
1211
1211
  if (!o) {
1212
1212
  Se();
1213
1213
  return;
@@ -1224,13 +1224,13 @@ function Dt(s, a, n) {
1224
1224
  }
1225
1225
  h.productType === w.productType && (w.amount = c === "Real" ? Ee(w.amount, ce[w.productType], h) : h.afterAmount);
1226
1226
  }
1227
- ke();
1227
+ Le();
1228
1228
  }, Ce = () => {
1229
1229
  Z("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1230
1230
  }, ye = (e) => e === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, $ = () => {
1231
1231
  de.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${de}. Using default value ('${de[0]}').`), n(10, S = de[0]));
1232
1232
  }, Ve = () => {
1233
- switch (Ct(y), $(), L) {
1233
+ switch (Ct(y), $(), k) {
1234
1234
  case "gmcore":
1235
1235
  le();
1236
1236
  break;
@@ -1238,7 +1238,7 @@ function Dt(s, a, n) {
1238
1238
  Re();
1239
1239
  break;
1240
1240
  default:
1241
- throw Error(`Invalid apiversion attribute: ${L}`);
1241
+ throw Error(`Invalid apiversion attribute: ${k}`);
1242
1242
  }
1243
1243
  }, Oe = (e) => {
1244
1244
  const { data: { type: o } = {} } = e || {};
@@ -1263,12 +1263,12 @@ function Dt(s, a, n) {
1263
1263
  });
1264
1264
  }
1265
1265
  return s.$$set = (e) => {
1266
- "userid" in e && n(11, g = e.userid), "session" in e && n(12, d = e.session), "endpoint" in e && n(13, b = e.endpoint), "lang" in e && n(14, y = e.lang), "mbsource" in e && n(15, B = e.mbsource), "clientstyling" in e && n(16, T = e.clientstyling), "clientstylingurl" in e && n(17, M = e.clientstylingurl), "translationurl" in e && n(18, k = e.translationurl), "gmversion" in e && n(19, L = e.gmversion), "displaybalanceoption" in e && n(20, x = e.displaybalanceoption), "totalcalculationmode" in e && n(10, S = e.totalcalculationmode), "currencylocale" in e && n(21, R = e.currencylocale), "currencydisplay" in e && n(22, j = e.currencydisplay), "maximumfractiondigits" in e && n(23, ae = e.maximumfractiondigits), "minimumfractiondigits" in e && n(24, ne = e.minimumfractiondigits), "customdisplayformat" in e && n(25, F = e.customdisplayformat);
1266
+ "userid" in e && n(11, g = e.userid), "session" in e && n(12, d = e.session), "endpoint" in e && n(13, b = e.endpoint), "lang" in e && n(14, y = e.lang), "mbsource" in e && n(15, B = e.mbsource), "clientstyling" in e && n(16, T = e.clientstyling), "clientstylingurl" in e && n(17, M = e.clientstylingurl), "translationurl" in e && n(18, L = e.translationurl), "gmversion" in e && n(19, k = e.gmversion), "displaybalanceoption" in e && n(20, x = e.displaybalanceoption), "totalcalculationmode" in e && n(10, S = e.totalcalculationmode), "currencylocale" in e && n(21, R = e.currencylocale), "currencydisplay" in e && n(22, j = e.currencydisplay), "maximumfractiondigits" in e && n(23, ae = e.maximumfractiondigits), "minimumfractiondigits" in e && n(24, ne = e.minimumfractiondigits), "customdisplayformat" in e && n(25, F = e.customdisplayformat);
1267
1267
  }, s.$$.update = () => {
1268
1268
  s.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1269
- 1603584 && b && g && d && y && L && x && Ve(), s.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1270
- 538624 && b && g && d && L && Se(), s.$$.dirty[0] & /*translationurl*/
1271
- 262144 && k && ie(), s.$$.dirty[0] & /*balances*/
1269
+ 1603584 && b && g && d && y && k && x && Ve(), s.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1270
+ 538624 && b && g && d && k && Se(), s.$$.dirty[0] & /*translationurl*/
1271
+ 262144 && L && ie(), s.$$.dirty[0] & /*balances*/
1272
1272
  2 && f.Total && Ue(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1273
1273
  65537 && T && O && bt(O, T), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1274
1274
  131073 && M && O && Bt(O, M), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
@@ -1276,7 +1276,7 @@ function Dt(s, a, n) {
1276
1276
  }, [
1277
1277
  O,
1278
1278
  f,
1279
- Q,
1279
+ J,
1280
1280
  se,
1281
1281
  N,
1282
1282
  E,
@@ -1292,8 +1292,8 @@ function Dt(s, a, n) {
1292
1292
  B,
1293
1293
  T,
1294
1294
  M,
1295
- k,
1296
1295
  L,
1296
+ k,
1297
1297
  x,
1298
1298
  R,
1299
1299
  j,