@everymatrix/casino-header-controller 1.76.3 → 1.76.4

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 (53) hide show
  1. package/components/{CasinoHamburgerMenu-CJvz-6v8.js → CasinoHamburgerMenu-BXmoYELH.js} +1106 -1071
  2. package/components/{CasinoHamburgerMenu-CoN5AQhy.js → CasinoHamburgerMenu-DFge6wNk.js} +1043 -1008
  3. package/components/CasinoHamburgerMenu-DzBitsDo.cjs +21 -0
  4. package/components/{CasinoHeaderController-nHwZBFh1.js → CasinoHeaderController-CqJEUFU1.js} +259 -259
  5. package/components/{CasinoHeaderController-4RP64UER.js → CasinoHeaderController-DqCbdev2.js} +74 -74
  6. package/components/{CasinoHeaderController-5SOMU0mr.cjs → CasinoHeaderController-tklzcbLB.cjs} +1 -1
  7. package/components/{CasinoSlider-Cz_SY5te.js → CasinoSlider-5zRk3Nyr.js} +41 -41
  8. package/components/{CasinoSlider-D-gB23jc.js → CasinoSlider-sjpfJOOy.js} +38 -38
  9. package/components/{CasinoSlider-SIfbXA_S.cjs → CasinoSlider-wXw8RHQe.cjs} +1 -1
  10. package/components/{PlayerAccountBalanceModal-C1IAqTOW.js → PlayerAccountBalanceModal-B9zCQZQg.js} +52 -52
  11. package/components/{PlayerAccountBalanceModal-DpIFaPjO.js → PlayerAccountBalanceModal-Cq-1fTb6.js} +55 -55
  12. package/components/{PlayerAccountBalanceModal-B8M587Ck.cjs → PlayerAccountBalanceModal-ECuzDR7V.cjs} +1 -1
  13. package/components/{PlayerDeposit-DpJ5OKSd.cjs → PlayerDeposit-BJEnlNvH.cjs} +1 -1
  14. package/components/{PlayerDeposit-DKiaKiSX.js → PlayerDeposit-CwH_m-vi.js} +37 -37
  15. package/components/{PlayerDeposit-VFOktlR5.js → PlayerDeposit-gnIH-WO7.js} +37 -37
  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/{gamification-dropdown-C6ERMVuc.js → gamification-dropdown-0FYjENuC.js} +1 -1
  21. package/stencil/{gamification-dropdown-60536faa-a9fhneJS.js → gamification-dropdown-60536faa-ByoQkowS.js} +1 -1
  22. package/stencil/{gamification-dropdown-60536faa-C4Bt9SsA.js → gamification-dropdown-60536faa-CdoDh_iS.js} +1 -1
  23. package/stencil/{gamification-dropdown-60536faa-DASClLsG.cjs → gamification-dropdown-60536faa-jADsXxs4.cjs} +1 -1
  24. package/stencil/{gamification-dropdown-DCP5M16U.cjs → gamification-dropdown-BEAgTdVm.cjs} +1 -1
  25. package/stencil/{gamification-dropdown-Cn5QbhyS.js → gamification-dropdown-BYwIF9Gl.js} +1 -1
  26. package/stencil/{gamification-dropdown_4-DcfTNvW3.js → gamification-dropdown_4-0STJmTu3.js} +4 -4
  27. package/stencil/{gamification-dropdown_4-DxutrN1l.js → gamification-dropdown_4-Cn2nDa12.js} +4 -4
  28. package/stencil/{gamification-dropdown_4-DvpNN67k.cjs → gamification-dropdown_4-wVf8PnId.cjs} +2 -2
  29. package/stencil/index-1ef3a64c-B8rbe1el.cjs +1 -0
  30. package/stencil/{index-1ef3a64c-GG7QM-1r.js → index-1ef3a64c-BEUZTO5_.js} +185 -185
  31. package/stencil/{index-1ef3a64c-B1d9e5pW.js → index-1ef3a64c-CbJ3YCKZ.js} +192 -192
  32. package/stencil/{index-71b1bdfa-CsAz1pRT.js → index-71b1bdfa-CqsRB5Zq.js} +235 -235
  33. package/stencil/{index-71b1bdfa-BF1FhHvP.js → index-71b1bdfa-DWJfvSms.js} +226 -226
  34. package/stencil/index-71b1bdfa-aT2URAOG.cjs +1 -0
  35. package/stencil/{player-elevate-card-DGldgGzV.cjs → player-elevate-card-C_bGjWZ4.cjs} +1 -1
  36. package/stencil/{player-elevate-card-Dk8IKGFM.js → player-elevate-card-DV79k_97.js} +2 -2
  37. package/stencil/{player-elevate-card-CV-QotRL.js → player-elevate-card-D_AqKh09.js} +2 -2
  38. package/stencil/{player-elevate-card-items-08c6fbd8-DWYJG2Sw.js → player-elevate-card-items-08c6fbd8-CKjKj8rt.js} +292 -294
  39. package/stencil/player-elevate-card-items-08c6fbd8-CkxD6Q5o.cjs +102 -0
  40. package/stencil/{player-elevate-card-items-08c6fbd8-D2InzLdw.js → player-elevate-card-items-08c6fbd8-DDaPFpxz.js} +292 -294
  41. package/stencil/{player-elevate-pointcard-BZEQfMrQ.js → player-elevate-pointcard-BAE3Vgzi.js} +2 -2
  42. package/stencil/{player-elevate-pointcard-CFB0v64P.js → player-elevate-pointcard-BXLJdcos.js} +2 -2
  43. package/stencil/{player-elevate-pointcard-Kd_hq4Sx.cjs → player-elevate-pointcard-vC-WI2he.cjs} +1 -1
  44. package/stencil/{player-rakeback-card-DV2irTYH.js → player-rakeback-card-Ca3Pjwd4.js} +1 -1
  45. package/stencil/{player-rakeback-card-BLuEtn4-.js → player-rakeback-card-Cj3yH6EJ.js} +1 -1
  46. package/stencil/{player-rakeback-card-B_0uBE6g.cjs → player-rakeback-card-DZVQyKwK.cjs} +1 -1
  47. package/stencil/{user-deposit-withdrawal-CnTB5Htu.cjs → user-deposit-withdrawal-6OV5s5L0.cjs} +2 -2
  48. package/stencil/{user-deposit-withdrawal-DIQiW7CO.js → user-deposit-withdrawal-BhBUsaq0.js} +45 -45
  49. package/stencil/{user-deposit-withdrawal-D3SYJSWx.js → user-deposit-withdrawal-BmCnXlz0.js} +45 -45
  50. package/components/CasinoHamburgerMenu-DbcCsL_F.cjs +0 -21
  51. package/stencil/index-1ef3a64c-C4G-G36U.cjs +0 -1
  52. package/stencil/index-71b1bdfa-CvQLI6L6.cjs +0 -1
  53. package/stencil/player-elevate-card-items-08c6fbd8-jkH5ihgE.cjs +0 -102
@@ -1,4 +1,4 @@
1
- import { b as rt, $ as it, Q as st, S as lt, i as ct, f as H, c as dt, s as ut, d as ft, g as O, e as de, y as z, j as ue, z as D, n as Xe, k as fe, l as pt, o as ht, A as Oe, p as mt, r as gt, t as yt, u as vt, w as we, F as wt, B as be, v as Ne, C as nt, D as bt, H as Bt } from "./CasinoHamburgerMenu-CoN5AQhy.js";
1
+ import { b as rt, $ as it, Q as st, S as lt, i as ct, s as dt, f as H, d as ut, n as Xe, e as de, h as ue, x as D, k as O, j as fe, v as z, l as ft, o as pt, y as Oe, p as ht, w as we, A as be, r as mt, B as Ne, C as nt, t as gt, J as yt, K as vt, L as wt, c as bt, I as Bt } from "./CasinoHamburgerMenu-DFge6wNk.js";
2
2
  function We(f, n) {
3
3
  rt(f, n);
4
4
  }
@@ -250,10 +250,10 @@ var Ke = { exports: {} };
250
250
  };
251
251
  };
252
252
  }
253
- function Z() {
253
+ function J() {
254
254
  this.bitsNeeded = 0, this.codePoint = 0;
255
255
  }
256
- Z.prototype.decode = function(e) {
256
+ J.prototype.decode = function(e) {
257
257
  function t(C, A, g) {
258
258
  if (g === 1)
259
259
  return C >= 128 >> A && C << A <= 2047;
@@ -286,7 +286,7 @@ var Ke = { exports: {} };
286
286
  }
287
287
  return !1;
288
288
  };
289
- (E == null || M == null || !G()) && (E = Z);
289
+ (E == null || M == null || !G()) && (E = J);
290
290
  var S = function() {
291
291
  };
292
292
  function w(e) {
@@ -394,9 +394,9 @@ var Ke = { exports: {} };
394
394
  L.prototype.get = function(e) {
395
395
  return this._map[I(e)];
396
396
  }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
397
- function J() {
397
+ function Z() {
398
398
  }
399
- J.prototype.open = function(e, t, o, r, d, i, h) {
399
+ Z.prototype.open = function(e, t, o, r, d, i, h) {
400
400
  e.open("GET", d);
401
401
  var _ = 0;
402
402
  e.onprogress = function() {
@@ -532,7 +532,7 @@ var Ke = { exports: {} };
532
532
  var Ue = T != null && x != null && "body" in x.prototype;
533
533
  function Pe(e, t, o) {
534
534
  t = String(t);
535
- var r = !!o.withCredentials, d = o.lastEventIdQueryParameterName || "lastEventId", i = Te(1e3), h = Ee(o.heartbeatTimeout, 45e3), _ = "", v = i, C = !1, A = 0, g = o.headers || {}, F = o.Transport, ie = Ue && F == null ? void 0 : new w(F != null ? new F() : ze()), xe = F != null && typeof F != "string" ? new F() : ie == null ? new oe() : new J(), q = void 0, U = 0, $ = _e, Se = "", Fe = "", se = "", ke = "", P = te, Ve = 0, ve = 0, at = function(N, k, W, Y) {
535
+ var r = !!o.withCredentials, d = o.lastEventIdQueryParameterName || "lastEventId", i = Te(1e3), h = Ee(o.heartbeatTimeout, 45e3), _ = "", v = i, C = !1, A = 0, g = o.headers || {}, F = o.Transport, ie = Ue && F == null ? void 0 : new w(F != null ? new F() : ze()), xe = F != null && typeof F != "string" ? new F() : ie == null ? new oe() : new Z(), q = void 0, U = 0, $ = _e, Se = "", Fe = "", se = "", ke = "", P = te, Ve = 0, ve = 0, at = function(N, k, W, Y) {
536
536
  if ($ === ee)
537
537
  if (N === 200 && W != null && Me.test(W)) {
538
538
  $ = me, C = Date.now(), v = i, e.readyState = me;
@@ -652,13 +652,13 @@ var Ke = { exports: {} };
652
652
  })(Ke, Ke.exports);
653
653
  var St = Ke.exports;
654
654
  function Ct(f) {
655
- ft(f, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;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}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
655
+ ut(f, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;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}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
656
656
  }
657
657
  function Qe(f, n, a) {
658
658
  const m = f.slice();
659
659
  return m[49] = n[a], m;
660
660
  }
661
- function Ze(f, n, a) {
661
+ function Je(f, n, a) {
662
662
  const m = f.slice();
663
663
  return m[52] = n[a], m;
664
664
  }
@@ -674,11 +674,11 @@ function At(f) {
674
674
  ) : "0") + ""
675
675
  ), m, u, l, y, p, b, R, B = (
676
676
  /*isModalDisplayed*/
677
- f[2] && Je(f)
677
+ f[2] && Ze(f)
678
678
  );
679
679
  return {
680
680
  c() {
681
- n = O("button"), m = we(a), u = de(), l = O("span"), l.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>', y = de(), B && B.c(), p = wt(), z(n, "class", "BalanceValue");
681
+ n = O("button"), m = be(a), u = fe(), l = O("span"), l.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>', y = fe(), B && B.c(), p = mt(), z(n, "class", "BalanceValue");
682
682
  },
683
683
  m(T, x) {
684
684
  ue(T, n, x), D(n, m), D(n, u), D(n, l), ue(T, y, x), B && B.m(T, x), ue(T, p, x), b || (R = Oe(
@@ -697,11 +697,11 @@ function At(f) {
697
697
  /*balances*/
698
698
  T[3].Total[0].amount
699
699
  )
700
- ) : "0") + "") && be(m, a), /*isModalDisplayed*/
701
- T[2] ? B ? B.p(T, x) : (B = Je(T), B.c(), B.m(p.parentNode, p)) : B && (B.d(1), B = null);
700
+ ) : "0") + "") && we(m, a), /*isModalDisplayed*/
701
+ T[2] ? B ? B.p(T, x) : (B = Ze(T), B.c(), B.m(p.parentNode, p)) : B && (B.d(1), B = null);
702
702
  },
703
703
  d(T) {
704
- T && (fe(n), fe(y), fe(p)), B && B.d(T), b = !1, R();
704
+ T && (de(n), de(y), de(p)), B && B.d(T), b = !1, R();
705
705
  }
706
706
  };
707
707
  }
@@ -712,7 +712,7 @@ function _t(f) {
712
712
  ), m;
713
713
  return {
714
714
  c() {
715
- n = O("p"), m = we(a);
715
+ n = O("p"), m = be(a);
716
716
  },
717
717
  m(u, l) {
718
718
  ue(u, n, l), D(n, m);
@@ -720,21 +720,21 @@ function _t(f) {
720
720
  p(u, l) {
721
721
  l[0] & /*$_*/
722
722
  16 && a !== (a = /*$_*/
723
- u[4]("Loading") + "") && be(m, a);
723
+ u[4]("Loading") + "") && we(m, a);
724
724
  },
725
725
  d(u) {
726
- u && fe(n);
726
+ u && de(n);
727
727
  }
728
728
  };
729
729
  }
730
- function Je(f) {
730
+ function Ze(f) {
731
731
  let n, a, m, u, l, y, p = (
732
732
  /*$_*/
733
733
  f[4]("Title") + ""
734
734
  ), b, R, B, T, x, E, M = (
735
735
  /*$_*/
736
736
  f[4]("DepositButton") + ""
737
- ), Q, ne, Z, G = Ne(Object.keys(
737
+ ), Q, ne, J, G = Ne(Object.keys(
738
738
  /*balances*/
739
739
  f[3]
740
740
  )), S = [];
@@ -742,16 +742,16 @@ function Je(f) {
742
742
  S[w] = et(Qe(f, G, w));
743
743
  return {
744
744
  c() {
745
- n = O("div"), a = O("button"), m = de(), u = O("div"), l = O("div"), y = O("p"), b = we(p), R = de(), B = O("div");
745
+ n = O("div"), a = O("button"), m = fe(), u = O("div"), l = O("div"), y = O("p"), b = be(p), R = fe(), B = O("div");
746
746
  for (let w = 0; w < S.length; w += 1)
747
747
  S[w].c();
748
- T = de(), x = O("div"), E = O("button"), Q = we(M), z(a, "class", "BalanceModalClose"), z(y, "class", "BalanceModalTitle"), z(l, "class", "BalanceModalHeader"), z(B, "class", "BalanceModalBody"), z(E, "class", "BalanceModalAction"), z(x, "class", "BalanceModalFooter"), z(u, "class", "BalanceModal"), z(n, "class", "BalanceModalWrapper");
748
+ T = fe(), x = O("div"), E = O("button"), Q = be(M), z(a, "class", "BalanceModalClose"), z(y, "class", "BalanceModalTitle"), z(l, "class", "BalanceModalHeader"), z(B, "class", "BalanceModalBody"), z(E, "class", "BalanceModalAction"), z(x, "class", "BalanceModalFooter"), z(u, "class", "BalanceModal"), z(n, "class", "BalanceModalWrapper");
749
749
  },
750
750
  m(w, I) {
751
751
  ue(w, n, I), D(n, a), D(n, m), D(n, u), D(u, l), D(l, y), D(y, b), D(u, R), D(u, B);
752
752
  for (let L = 0; L < S.length; L += 1)
753
753
  S[L] && S[L].m(B, null);
754
- D(u, T), D(u, x), D(x, E), D(E, Q), ne || (Z = [
754
+ D(u, T), D(u, x), D(x, E), D(E, Q), ne || (J = [
755
755
  Oe(
756
756
  a,
757
757
  "click",
@@ -769,7 +769,7 @@ function Je(f) {
769
769
  p(w, I) {
770
770
  if (I[0] & /*$_*/
771
771
  16 && p !== (p = /*$_*/
772
- w[4]("Title") + "") && be(b, p), I[0] & /*balances, formatBalance, $_*/
772
+ w[4]("Title") + "") && we(b, p), I[0] & /*balances, formatBalance, $_*/
773
773
  56) {
774
774
  G = Ne(Object.keys(
775
775
  /*balances*/
@@ -777,8 +777,8 @@ function Je(f) {
777
777
  ));
778
778
  let L;
779
779
  for (L = 0; L < G.length; L += 1) {
780
- const J = Qe(w, G, L);
781
- S[L] ? S[L].p(J, I) : (S[L] = et(J), S[L].c(), S[L].m(B, null));
780
+ const Z = Qe(w, G, L);
781
+ S[L] ? S[L].p(Z, I) : (S[L] = et(Z), S[L].c(), S[L].m(B, null));
782
782
  }
783
783
  for (; L < S.length; L += 1)
784
784
  S[L].d(1);
@@ -786,10 +786,10 @@ function Je(f) {
786
786
  }
787
787
  I[0] & /*$_*/
788
788
  16 && M !== (M = /*$_*/
789
- w[4]("DepositButton") + "") && be(Q, M);
789
+ w[4]("DepositButton") + "") && we(Q, M);
790
790
  },
791
791
  d(w) {
792
- w && fe(n), nt(S, w), ne = !1, bt(Z);
792
+ w && de(n), nt(S, w), ne = !1, gt(J);
793
793
  }
794
794
  };
795
795
  }
@@ -818,7 +818,7 @@ function $e(f) {
818
818
  ), x;
819
819
  return {
820
820
  c() {
821
- n = O("div"), a = O("p"), u = we(m), l = de(), p = we(y), b = de(), R = O("p"), B = O("span"), x = we(T), z(a, "class", "BalanceModalText"), z(B, "class", "BalanceModalAmount"), z(R, "class", "BalanceModalValue"), z(n, "class", "BalanceModalRowLine");
821
+ n = O("div"), a = O("p"), u = be(m), l = fe(), p = be(y), b = fe(), R = O("p"), B = O("span"), x = be(T), z(a, "class", "BalanceModalText"), z(B, "class", "BalanceModalAmount"), z(R, "class", "BalanceModalValue"), z(n, "class", "BalanceModalRowLine");
822
822
  },
823
823
  m(E, M) {
824
824
  ue(E, n, M), D(n, a), D(a, u), D(a, l), D(a, p), D(n, b), D(n, R), D(R, B), D(B, x);
@@ -829,7 +829,7 @@ function $e(f) {
829
829
  E[4](
830
830
  /*k*/
831
831
  E[49]
832
- ) + "") && be(u, m), M[0] & /*balances, $_*/
832
+ ) + "") && we(u, m), M[0] & /*balances, $_*/
833
833
  24 && y !== (y = /*b*/
834
834
  (E[52].productType ? (
835
835
  /*$_*/
@@ -837,15 +837,15 @@ function $e(f) {
837
837
  /*b*/
838
838
  E[52].productType
839
839
  )
840
- ) : "") + "") && be(p, y), M[0] & /*balances*/
840
+ ) : "") + "") && we(p, y), M[0] & /*balances*/
841
841
  8 && T !== (T = /*formatBalance*/
842
842
  E[5](
843
843
  /*b*/
844
844
  E[52].amount
845
- ) + "") && be(x, T);
845
+ ) + "") && we(x, T);
846
846
  },
847
847
  d(E) {
848
- E && fe(n);
848
+ E && de(n);
849
849
  }
850
850
  };
851
851
  }
@@ -858,13 +858,13 @@ function et(f) {
858
858
  ]
859
859
  ), u = [];
860
860
  for (let l = 0; l < m.length; l += 1)
861
- u[l] = $e(Ze(f, m, l));
861
+ u[l] = $e(Je(f, m, l));
862
862
  return {
863
863
  c() {
864
864
  n = O("div");
865
865
  for (let l = 0; l < u.length; l += 1)
866
866
  u[l].c();
867
- a = de(), z(n, "class", "BalanceModalRowBoth");
867
+ a = fe(), z(n, "class", "BalanceModalRowBoth");
868
868
  },
869
869
  m(l, y) {
870
870
  ue(l, n, y);
@@ -884,7 +884,7 @@ function et(f) {
884
884
  );
885
885
  let p;
886
886
  for (p = 0; p < m.length; p += 1) {
887
- const b = Ze(l, m, p);
887
+ const b = Je(l, m, p);
888
888
  u[p] ? u[p].p(b, y) : (u[p] = $e(b), u[p].c(), u[p].m(n, a));
889
889
  }
890
890
  for (; p < u.length; p += 1)
@@ -893,7 +893,7 @@ function et(f) {
893
893
  }
894
894
  },
895
895
  d(l) {
896
- l && fe(n), nt(u, l);
896
+ l && de(n), nt(u, l);
897
897
  }
898
898
  };
899
899
  }
@@ -913,7 +913,7 @@ function tt(f) {
913
913
  },
914
914
  p: Xe,
915
915
  d(u) {
916
- u && fe(n), a = !1, m();
916
+ u && de(n), a = !1, m();
917
917
  }
918
918
  };
919
919
  }
@@ -931,7 +931,7 @@ function Rt(f) {
931
931
  );
932
932
  return {
933
933
  c() {
934
- n = O("div"), a = O("div"), y.c(), m = de(), p && p.c(), z(a, "class", "ShowBalance");
934
+ n = O("div"), a = O("div"), y.c(), m = fe(), p && p.c(), z(a, "class", "ShowBalance");
935
935
  },
936
936
  m(b, R) {
937
937
  ue(b, n, R), D(n, a), y.m(a, null), D(n, m), p && p.m(n, null), f[27](n);
@@ -943,14 +943,14 @@ function Rt(f) {
943
943
  i: Xe,
944
944
  o: Xe,
945
945
  d(b) {
946
- b && fe(n), y.d(), p && p.d(), f[27](null);
946
+ b && de(n), y.d(), p && p.d(), f[27](null);
947
947
  }
948
948
  };
949
949
  }
950
950
  function Et(f, n, a) {
951
951
  let m;
952
- pt(f, Bt, (s) => a(4, m = s));
953
- let { userid: u = "" } = n, { session: l = "" } = n, { endpoint: y = "" } = n, { lang: p = "en" } = n, { mbsource: b } = n, { clientstyling: R = "" } = n, { clientstylingurl: B = "" } = n, { translationurl: T = "" } = n, { gmversion: x = "gm16" } = n, { displaybalanceoption: E = "All" } = n, { totalcalculationmode: M = "totalCashAmount" } = n, { currencylocale: Q = "en" } = n, { currencydisplay: ne = "symbol" } = n, { maximumfractiondigits: Z = "2" } = n, { minimumfractiondigits: G = "0" } = n, { customdisplayformat: S = "" } = n, w, I = !0, L = !1, J = !1, ae, oe = "", X = [], pe;
952
+ ft(f, Bt, (s) => a(4, m = s));
953
+ let { userid: u = "" } = n, { session: l = "" } = n, { endpoint: y = "" } = n, { lang: p = "en" } = n, { mbsource: b } = n, { clientstyling: R = "" } = n, { clientstylingurl: B = "" } = n, { translationurl: T = "" } = n, { gmversion: x = "gm16" } = n, { displaybalanceoption: E = "All" } = n, { totalcalculationmode: M = "totalCashAmount" } = n, { currencylocale: Q = "en" } = n, { currencydisplay: ne = "symbol" } = n, { maximumfractiondigits: J = "2" } = n, { minimumfractiondigits: G = "0" } = n, { customdisplayformat: S = "" } = n, w, I = !0, L = !1, Z = !1, ae, oe = "", X = [], pe;
954
954
  const c = {}, he = ["totalCashAmount", "totalRealAmount"], Ae = () => {
955
955
  fetch(T).then((s) => s.json()).then((s) => Object.keys(s).forEach((e) => We(e, s[e]))).catch((s) => console.log(s));
956
956
  };
@@ -963,7 +963,7 @@ function Et(f, n, a) {
963
963
  currency: oe,
964
964
  useGrouping: !0,
965
965
  currencyDisplay: ne || "code",
966
- maximumFractionDigits: Z === "" || isNaN(Number(Z)) ? 2 : Number(Z),
966
+ maximumFractionDigits: J === "" || isNaN(Number(J)) ? 2 : Number(J),
967
967
  minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
968
968
  };
969
969
  return new Intl.NumberFormat(e, t).format(s);
@@ -1034,7 +1034,7 @@ function Et(f, n, a) {
1034
1034
  e.append("X-SessionID", l), fetch(s, { method: "GET", headers: e }).then((o) => o.json()).then((o) => {
1035
1035
  o[M] || a(7, M = he[0]);
1036
1036
  const r = o.items.find((i) => i.type === "Real" && i.walletAccountType === "Ordinary");
1037
- if (oe = r.currency, J = !!r.productType, a(3, c.Total = [{ amount: 0 }], c), a(3, c.Real = [], c), a(3, c.Bonus = [], c), a(3, c.Credit = [], c), !J) {
1037
+ if (oe = r.currency, Z = !!r.productType, a(3, c.Total = [{ amount: 0 }], c), a(3, c.Real = [], c), a(3, c.Bonus = [], c), a(3, c.Credit = [], c), !Z) {
1038
1038
  pe = {
1039
1039
  lastOrdinaryAfterAmount: 0,
1040
1040
  showCreditLineAfterAmount: !1
@@ -1155,7 +1155,7 @@ function Et(f, n, a) {
1155
1155
  a(3, c.Total[0].amount = s, c);
1156
1156
  break;
1157
1157
  case "totalRealAmount":
1158
- if (!J)
1158
+ if (!Z)
1159
1159
  return;
1160
1160
  let e = 0;
1161
1161
  for (const t of c.Real)
@@ -1172,9 +1172,9 @@ function Et(f, n, a) {
1172
1172
  return;
1173
1173
  const t = e.body.balanceChange;
1174
1174
  for (const [o, r] of Object.entries(t))
1175
- if (M === "totalRealAmount" && o === "Real" && !J && a(3, c.Total[0].amount = ye(c.Total[0].amount, pe, r), c), !!c[o])
1175
+ if (M === "totalRealAmount" && o === "Real" && !Z && a(3, c.Total[0].amount = ye(c.Total[0].amount, pe, r), c), !!c[o])
1176
1176
  for (const d of c[o]) {
1177
- if (!J) {
1177
+ if (!Z) {
1178
1178
  d.amount = o === "Real" ? ye(d.amount, pe, r) : r.afterAmount;
1179
1179
  continue;
1180
1180
  }
@@ -1197,24 +1197,24 @@ function Et(f, n, a) {
1197
1197
  throw Error(`Invalid apiversion attribute: ${x}`);
1198
1198
  }
1199
1199
  }, Te = (s) => s.data && s.data.type === "LogoutSuccessfull" && ae.close();
1200
- ht(() => (window.addEventListener("message", Te, !1), () => {
1200
+ pt(() => (window.addEventListener("message", Te, !1), () => {
1201
1201
  window.removeEventListener("message", Te), ae && ae.close();
1202
1202
  }));
1203
1203
  const ge = () => a(2, L = !0), K = () => a(2, L = !1), ze = () => Me(), Ue = () => a(2, L = !1);
1204
1204
  function Pe(s) {
1205
- mt[s ? "unshift" : "push"](() => {
1205
+ ht[s ? "unshift" : "push"](() => {
1206
1206
  w = s, a(0, w);
1207
1207
  });
1208
1208
  }
1209
1209
  return f.$$set = (s) => {
1210
- "userid" in s && a(8, u = s.userid), "session" in s && a(9, l = s.session), "endpoint" in s && a(10, y = s.endpoint), "lang" in s && a(11, p = s.lang), "mbsource" in s && a(12, b = s.mbsource), "clientstyling" in s && a(13, R = s.clientstyling), "clientstylingurl" in s && a(14, B = s.clientstylingurl), "translationurl" in s && a(15, T = s.translationurl), "gmversion" in s && a(16, x = s.gmversion), "displaybalanceoption" in s && a(17, E = s.displaybalanceoption), "totalcalculationmode" in s && a(7, M = s.totalcalculationmode), "currencylocale" in s && a(18, Q = s.currencylocale), "currencydisplay" in s && a(19, ne = s.currencydisplay), "maximumfractiondigits" in s && a(20, Z = s.maximumfractiondigits), "minimumfractiondigits" in s && a(21, G = s.minimumfractiondigits), "customdisplayformat" in s && a(22, S = s.customdisplayformat);
1210
+ "userid" in s && a(8, u = s.userid), "session" in s && a(9, l = s.session), "endpoint" in s && a(10, y = s.endpoint), "lang" in s && a(11, p = s.lang), "mbsource" in s && a(12, b = s.mbsource), "clientstyling" in s && a(13, R = s.clientstyling), "clientstylingurl" in s && a(14, B = s.clientstylingurl), "translationurl" in s && a(15, T = s.translationurl), "gmversion" in s && a(16, x = s.gmversion), "displaybalanceoption" in s && a(17, E = s.displaybalanceoption), "totalcalculationmode" in s && a(7, M = s.totalcalculationmode), "currencylocale" in s && a(18, Q = s.currencylocale), "currencydisplay" in s && a(19, ne = s.currencydisplay), "maximumfractiondigits" in s && a(20, J = s.maximumfractiondigits), "minimumfractiondigits" in s && a(21, G = s.minimumfractiondigits), "customdisplayformat" in s && a(22, S = s.customdisplayformat);
1211
1211
  }, f.$$.update = () => {
1212
1212
  f.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1213
1213
  200448 && y && u && l && p && x && E && Ee(), f.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1214
1214
  67328 && y && u && l && x && re(), f.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1215
- 8193 && R && w && gt(w, R), f.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1216
- 16385 && B && w && yt(w, B), f.$$.dirty[0] & /*customStylingContainer, mbsource*/
1217
- 4097 && w && vt(w, `${b}.Style`), f.$$.dirty[0] & /*translationurl*/
1215
+ 8193 && R && w && yt(w, R), f.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1216
+ 16385 && B && w && vt(w, B), f.$$.dirty[0] & /*customStylingContainer, mbsource*/
1217
+ 4097 && w && wt(w, `${b}.Style`), f.$$.dirty[0] & /*translationurl*/
1218
1218
  32768 && T && Ae();
1219
1219
  }, [
1220
1220
  w,
@@ -1237,7 +1237,7 @@ function Et(f, n, a) {
1237
1237
  E,
1238
1238
  Q,
1239
1239
  ne,
1240
- Z,
1240
+ J,
1241
1241
  G,
1242
1242
  S,
1243
1243
  ge,
@@ -1254,7 +1254,7 @@ class xt extends lt {
1254
1254
  n,
1255
1255
  Et,
1256
1256
  Rt,
1257
- ut,
1257
+ dt,
1258
1258
  {
1259
1259
  userid: 8,
1260
1260
  session: 9,
@@ -1374,7 +1374,7 @@ class xt extends lt {
1374
1374
  this.$$set({ customdisplayformat: n }), H();
1375
1375
  }
1376
1376
  }
1377
- dt(xt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
1377
+ bt(xt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
1378
1378
  export {
1379
1379
  xt as default
1380
1380
  };
@@ -1,4 +1,4 @@
1
- "use strict";var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,He=(c,n,a)=>n in c?et(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,ze=(c,n)=>{for(var a in n||(n={}))at.call(n,a)&&He(c,a,n[a]);if(je)for(var a of je(n))ot.call(n,a)&&He(c,a,n[a]);return c},Ue=(c,n)=>tt(c,nt(n));var Pe=(c,n,a)=>new Promise((y,p)=>{var u=v=>{try{h(a.next(v))}catch(B){p(B)}},g=v=>{try{h(a.throw(v))}catch(B){p(B)}},h=v=>v.done?y(v.value):Promise.resolve(v.value).then(u,g);h((a=a.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-DbcCsL_F.cjs");function Ve(c,n){t.addMessages(c,n)}function rt(c){t.$locale.set(c)}const Ge={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ne={exports:{}};/** @license
1
+ "use strict";var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,He=(c,n,a)=>n in c?et(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,ze=(c,n)=>{for(var a in n||(n={}))at.call(n,a)&&He(c,a,n[a]);if(je)for(var a of je(n))ot.call(n,a)&&He(c,a,n[a]);return c},Ue=(c,n)=>tt(c,nt(n));var Pe=(c,n,a)=>new Promise((y,p)=>{var u=v=>{try{h(a.next(v))}catch(B){p(B)}},g=v=>{try{h(a.throw(v))}catch(B){p(B)}},h=v=>v.done?y(v.value):Promise.resolve(v.value).then(u,g);h((a=a.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-DzBitsDo.cjs");function Ve(c,n){t.addMessages(c,n)}function rt(c){t.$locale.set(c)}const Ge={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ne={exports:{}};/** @license
2
2
  * eventsource.js
3
3
  * Available under MIT License (MIT)
4
4
  * https://github.com/Yaffle/EventSource/
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-DbcCsL_F.cjs");function T(n,t){e.addMessages(n,t)}function z(n){e.$locale.set(n)}const E={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function A(n){e.append_styles(n,"svelte-1hczjj2","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}")}function F(n){let t,a,o,r,c,m,d,p,f,l,s=n[4]("titleDeposit")+"",u,y,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),p=e.svg_element("path"),f=e.space(),l=e.element("h2"),u=e.text(s),e.attr(p,"class","aaa"),e.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),y||(D=e.listen(t,"click",n[18]),y=!0)},p(g,h){h&16&&s!==(s=g[4]("titleDeposit")+"")&&e.set_data(u,s)},d(g){g&&e.detach(t),y=!1,D()}}}function H(n){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=n[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,o=r[3])&&e.attr(a,"src",o)},d(r){r&&e.detach(t)}}}function W(n){let t,a=n[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,o)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function G(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&F(n);function p(s,u){return s[1]?W:H}let f=p(n),l=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(r),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,u){e.insert(s,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),n[19](t)},p(s,[u]){s[5]&&d.p(s,u),u&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=p(s))&&l?l.p(s,u):(l.d(1),l=f(s),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),l.d(),n[19](null)}}}function q(n,t,a){let o,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:s=""}=t,{translationurl:u=""}=t,{currency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,R=window.navigator.userAgent,v=e.getDevice(R)!=="PC",M=!0,k,_=0,C="";const B=()=>{fetch(u).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{T(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(i=>{T(i,E[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,y=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},P=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(y){case"USD":_=.4;break;case"CDF":_=1e3;break}let w={method:"POST",headers:{"X-SessionId":m,currency:y||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(i.href,w).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,C=b.CashierUrl)},b=>{console.error(b)})},j=()=>{z(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const I=()=>S();function U(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,y=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&p&&j(),n.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),n.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),n.$$.dirty&16385&&s&&h&&e.setClientStylingURL(h,s),n.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),n.$$.dirty&32768&&u&&B(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&P()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,I,U]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,G,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},A)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-DzBitsDo.cjs");function T(n,t){e.addMessages(n,t)}function z(n){e.$locale.set(n)}const E={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function A(n){e.append_styles(n,"svelte-1hczjj2","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}")}function F(n){let t,a,o,r,c,m,d,p,f,l,s=n[4]("titleDeposit")+"",u,y,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),p=e.svg_element("path"),f=e.space(),l=e.element("h2"),u=e.text(s),e.attr(p,"class","aaa"),e.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),y||(D=e.listen(t,"click",n[18]),y=!0)},p(g,h){h&16&&s!==(s=g[4]("titleDeposit")+"")&&e.set_data(u,s)},d(g){g&&e.detach(t),y=!1,D()}}}function H(n){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=n[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,o=r[3])&&e.attr(a,"src",o)},d(r){r&&e.detach(t)}}}function W(n){let t,a=n[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,o)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function G(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&F(n);function p(s,u){return s[1]?W:H}let f=p(n),l=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(r),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,u){e.insert(s,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),n[19](t)},p(s,[u]){s[5]&&d.p(s,u),u&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=p(s))&&l?l.p(s,u):(l.d(1),l=f(s),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),l.d(),n[19](null)}}}function q(n,t,a){let o,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:s=""}=t,{translationurl:u=""}=t,{currency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,R=window.navigator.userAgent,v=e.getDevice(R)!=="PC",M=!0,k,_=0,C="";const B=()=>{fetch(u).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{T(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(i=>{T(i,E[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,y=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},P=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(y){case"USD":_=.4;break;case"CDF":_=1e3;break}let w={method:"POST",headers:{"X-SessionId":m,currency:y||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(i.href,w).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,C=b.CashierUrl)},b=>{console.error(b)})},j=()=>{z(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const I=()=>S();function U(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,y=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&p&&j(),n.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),n.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),n.$$.dirty&16385&&s&&h&&e.setClientStylingURL(h,s),n.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),n.$$.dirty&32768&&u&&B(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&P()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,I,U]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,G,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},A)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;