@everymatrix/casino-header-controller 1.54.6 → 1.54.8

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 (27) hide show
  1. package/components/CasinoHamburgerMenu-6NiYpRXZ.js +5325 -0
  2. package/components/CasinoHamburgerMenu-BGHo13mn.cjs +8 -0
  3. package/components/{CasinoHamburgerMenu-Didvw1sl.js → CasinoHamburgerMenu-DQ5J6iG9.js} +641 -649
  4. package/components/CasinoHeaderController-Cl7ARyub.js +3030 -0
  5. package/components/{CasinoHeaderController-CFx6e2bY.js → CasinoHeaderController-Cq5TSS7Q.js} +82 -82
  6. package/components/CasinoHeaderController-uvHQamuW.cjs +13 -0
  7. package/components/CasinoSlider-6zcEnsqz.js +806 -0
  8. package/components/CasinoSlider-BaotiKI5.cjs +1 -0
  9. package/components/{CasinoSlider-CTCcKhAJ.js → CasinoSlider-XUz3C3S-.js} +45 -45
  10. package/components/PlayerAccountBalanceModal-B_7fcnxz.cjs +13 -0
  11. package/components/PlayerAccountBalanceModal-CTz9mHwh.js +1540 -0
  12. package/components/{PlayerAccountBalanceModal-CljMbxpF.js → PlayerAccountBalanceModal-zbnH49Uz.js} +36 -36
  13. package/components/{PlayerDeposit-BDWEQLoE.js → PlayerDeposit-BnC5lDMw.js} +48 -48
  14. package/components/PlayerDeposit-DqZH75Dh.cjs +1 -0
  15. package/components/PlayerDeposit-_PiynGo4.js +395 -0
  16. package/es2015/casino-header-controller.cjs +1 -0
  17. package/es2015/casino-header-controller.js +16 -0
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  21. package/stencil/index-581287aa-BOZ4jFhd.js +638 -0
  22. package/stencil/index-581287aa-BmnjFzrP.js +654 -0
  23. package/stencil/index-581287aa-o2un8phH.cjs +1 -0
  24. package/stencil/user-deposit-withdrawal-6kIYIsxW.js +668 -0
  25. package/stencil/{user-deposit-withdrawal-DafvBY_z.js → user-deposit-withdrawal-CGu0x9I4.js} +1 -1
  26. package/stencil/user-deposit-withdrawal-Cpj0khDg.cjs +59 -0
  27. package/stencil/index-33f005e1-BLR6jtB3.js +0 -632
@@ -1,4 +1,4 @@
1
- import { b as ct, $ as ut, L as dt, S as ft, i as pt, f as Y, c as ht, s as mt, d as gt, g as N, e as oe, u as V, j as fe, v as R, n as qe, k as pe, l as yt, o as vt, w as Ve, p as wt, t as ue, B as bt, x as de, r as je, y as rt, z as Bt, D as Ct } from "./CasinoHamburgerMenu-Didvw1sl.js";
1
+ import { b as ct, $ as ut, L as dt, S as ft, i as pt, s as ht, f as Y, d as mt, n as qe, e as fe, h as pe, v as R, k as N, j as oe, z as V, l as gt, o as yt, w as Ve, p as vt, u as ue, y as de, r as wt, A as je, B as rt, t as bt, c as Bt, I as Ct } from "./CasinoHamburgerMenu-DQ5J6iG9.js";
2
2
  function Qe(o, e) {
3
3
  ct(o, e);
4
4
  }
@@ -793,7 +793,7 @@ ae.prototype = {
793
793
  }
794
794
  };
795
795
  function Dt(o) {
796
- gt(o, "svelte-113krup", '*,*::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}.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, #D0046C));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}.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, #D0046C));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}');
796
+ mt(o, "svelte-113krup", '*,*::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}.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, #D0046C));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}.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, #D0046C));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}');
797
797
  }
798
798
  function $e(o, e, n) {
799
799
  const r = o.slice();
@@ -819,13 +819,13 @@ function Lt(o) {
819
819
  );
820
820
  return {
821
821
  c() {
822
- e = N("p"), r = ue(n), l = oe(), u = ue(
822
+ e = N("p"), r = de(n), l = oe(), u = de(
823
823
  /*currency*/
824
824
  o[3]
825
- ), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), B && B.c(), y = bt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
825
+ ), m = oe(), p = N("span"), p.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', g = oe(), B && B.c(), y = wt(), V(e, "class", "BalanceValue"), V(e, "part", "BalanceValue");
826
826
  },
827
827
  m(C, _) {
828
- fe(C, e, _), R(e, r), R(e, l), R(e, u), R(e, m), R(e, p), fe(C, g, _), B && B.m(C, _), fe(C, y, _), x || (F = Ve(
828
+ pe(C, e, _), R(e, r), R(e, l), R(e, u), R(e, m), R(e, p), pe(C, g, _), B && B.m(C, _), pe(C, y, _), x || (F = Ve(
829
829
  e,
830
830
  "click",
831
831
  /*click_handler*/
@@ -841,8 +841,8 @@ function Lt(o) {
841
841
  /*balances*/
842
842
  C[4].Total[0].amount
843
843
  )
844
- ) : "0") + "") && de(r, n), _[0] & /*currency*/
845
- 8 && de(
844
+ ) : "0") + "") && ue(r, n), _[0] & /*currency*/
845
+ 8 && ue(
846
846
  u,
847
847
  /*currency*/
848
848
  C[3]
@@ -850,7 +850,7 @@ function Lt(o) {
850
850
  C[2] ? B ? B.p(C, _) : (B = tt(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
851
851
  },
852
852
  d(C) {
853
- C && (pe(e), pe(g), pe(y)), B && B.d(C), x = !1, F();
853
+ C && (fe(e), fe(g), fe(y)), B && B.d(C), x = !1, F();
854
854
  }
855
855
  };
856
856
  }
@@ -861,18 +861,18 @@ function Mt(o) {
861
861
  ), r;
862
862
  return {
863
863
  c() {
864
- e = N("p"), r = ue(n);
864
+ e = N("p"), r = de(n);
865
865
  },
866
866
  m(l, u) {
867
- fe(l, e, u), R(e, r);
867
+ pe(l, e, u), R(e, r);
868
868
  },
869
869
  p(l, u) {
870
870
  u[0] & /*$_*/
871
871
  32 && n !== (n = /*$_*/
872
- l[5]("Loading") + "") && de(r, n);
872
+ l[5]("Loading") + "") && ue(r, n);
873
873
  },
874
874
  d(l) {
875
- l && pe(e);
875
+ l && fe(e);
876
876
  }
877
877
  };
878
878
  }
@@ -891,13 +891,13 @@ function tt(o) {
891
891
  T[A] = at($e(o, P, A));
892
892
  return {
893
893
  c() {
894
- e = N("div"), n = N("div"), r = oe(), l = N("div"), u = N("div"), m = N("p"), g = ue(p), y = oe(), x = N("div");
894
+ e = N("div"), n = N("div"), r = oe(), l = N("div"), u = N("div"), m = N("p"), g = de(p), y = oe(), x = N("div");
895
895
  for (let A = 0; A < T.length; A += 1)
896
896
  T[A].c();
897
- F = oe(), B = N("div"), C = N("button"), U = ue(_), V(n, "class", "BalanceModalClose"), V(m, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(l, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
897
+ F = oe(), B = N("div"), C = N("button"), U = de(_), V(n, "class", "BalanceModalClose"), V(m, "class", "BalanceModalTitle"), V(u, "class", "BalanceModalHeader"), V(x, "class", "BalanceModalBody"), V(C, "class", "BalanceModalAction"), V(B, "class", "BalanceModalFooter"), V(l, "class", "BalanceModal"), V(e, "class", "BalanceModalWrapper");
898
898
  },
899
899
  m(A, G) {
900
- fe(A, e, G), R(e, n), R(e, r), R(e, l), R(l, u), R(u, m), R(m, g), R(l, y), R(l, x);
900
+ pe(A, e, G), R(e, n), R(e, r), R(e, l), R(l, u), R(u, m), R(m, g), R(l, y), R(l, x);
901
901
  for (let D = 0; D < T.length; D += 1)
902
902
  T[D] && T[D].m(x, null);
903
903
  R(l, F), R(l, B), R(B, C), R(C, U), M || (H = [
@@ -918,7 +918,7 @@ function tt(o) {
918
918
  p(A, G) {
919
919
  if (G[0] & /*$_*/
920
920
  32 && p !== (p = /*$_*/
921
- A[5]("Title") + "") && de(g, p), G[0] & /*balances, currency, formatBalance, $_*/
921
+ A[5]("Title") + "") && ue(g, p), G[0] & /*balances, currency, formatBalance, $_*/
922
922
  120) {
923
923
  P = je(Object.keys(
924
924
  /*balances*/
@@ -935,10 +935,10 @@ function tt(o) {
935
935
  }
936
936
  G[0] & /*$_*/
937
937
  32 && _ !== (_ = /*$_*/
938
- A[5]("DepositButton") + "") && de(U, _);
938
+ A[5]("DepositButton") + "") && ue(U, _);
939
939
  },
940
940
  d(A) {
941
- A && pe(e), rt(T, A), M = !1, Bt(H);
941
+ A && fe(e), rt(T, A), M = !1, bt(H);
942
942
  }
943
943
  };
944
944
  }
@@ -970,13 +970,13 @@ function nt(o) {
970
970
  ), B, C, _, U;
971
971
  return {
972
972
  c() {
973
- e = N("div"), n = N("p"), l = ue(r), u = oe(), p = ue(m), g = oe(), y = N("p"), x = N("span"), B = ue(F), C = oe(), _ = N("span"), U = ue(
973
+ e = N("div"), n = N("p"), l = de(r), u = oe(), p = de(m), g = oe(), y = N("p"), x = N("span"), B = de(F), C = oe(), _ = N("span"), U = de(
974
974
  /*currency*/
975
975
  o[3]
976
976
  ), V(n, "class", "BalanceModalText"), V(x, "class", "BalanceModalAmount"), V(_, "class", "BalanceModalCurrency"), V(y, "class", "BalanceModalValue"), V(e, "class", "BalanceModalRowLine");
977
977
  },
978
978
  m(M, H) {
979
- fe(M, e, H), R(e, n), R(n, l), R(n, u), R(n, p), R(e, g), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
979
+ pe(M, e, H), R(e, n), R(n, l), R(n, u), R(n, p), R(e, g), R(e, y), R(y, x), R(x, B), R(y, C), R(y, _), R(_, U);
980
980
  },
981
981
  p(M, H) {
982
982
  H[0] & /*$_, balances*/
@@ -984,7 +984,7 @@ function nt(o) {
984
984
  M[5](
985
985
  /*k*/
986
986
  M[47]
987
- ) + "") && de(l, r), H[0] & /*balances, $_*/
987
+ ) + "") && ue(l, r), H[0] & /*balances, $_*/
988
988
  48 && m !== (m = /*b*/
989
989
  (M[50].productType ? (
990
990
  /*$_*/
@@ -992,7 +992,7 @@ function nt(o) {
992
992
  /*b*/
993
993
  M[50].productType
994
994
  )
995
- ) : "") + "") && de(p, m), H[0] & /*balances*/
995
+ ) : "") + "") && ue(p, m), H[0] & /*balances*/
996
996
  16 && F !== (F = /*b*/
997
997
  (M[50].amount ? (
998
998
  /*formatBalance*/
@@ -1000,15 +1000,15 @@ function nt(o) {
1000
1000
  /*b*/
1001
1001
  M[50].amount
1002
1002
  )
1003
- ) : "0") + "") && de(B, F), H[0] & /*currency*/
1004
- 8 && de(
1003
+ ) : "0") + "") && ue(B, F), H[0] & /*currency*/
1004
+ 8 && ue(
1005
1005
  U,
1006
1006
  /*currency*/
1007
1007
  M[3]
1008
1008
  );
1009
1009
  },
1010
1010
  d(M) {
1011
- M && pe(e);
1011
+ M && fe(e);
1012
1012
  }
1013
1013
  };
1014
1014
  }
@@ -1030,7 +1030,7 @@ function at(o) {
1030
1030
  n = oe(), V(e, "class", "BalanceModalRowBoth");
1031
1031
  },
1032
1032
  m(u, m) {
1033
- fe(u, e, m);
1033
+ pe(u, e, m);
1034
1034
  for (let p = 0; p < l.length; p += 1)
1035
1035
  l[p] && l[p].m(e, null);
1036
1036
  R(e, n);
@@ -1056,7 +1056,7 @@ function at(o) {
1056
1056
  }
1057
1057
  },
1058
1058
  d(u) {
1059
- u && pe(e), rt(l, u);
1059
+ u && fe(e), rt(l, u);
1060
1060
  }
1061
1061
  };
1062
1062
  }
@@ -1067,7 +1067,7 @@ function ot(o) {
1067
1067
  e = N("div"), V(e, "class", "ShowBalanceModalOverlay");
1068
1068
  },
1069
1069
  m(l, u) {
1070
- fe(l, e, u), n || (r = Ve(
1070
+ pe(l, e, u), n || (r = Ve(
1071
1071
  e,
1072
1072
  "click",
1073
1073
  /*click_handler_3*/
@@ -1076,7 +1076,7 @@ function ot(o) {
1076
1076
  },
1077
1077
  p: qe,
1078
1078
  d(l) {
1079
- l && pe(e), n = !1, r();
1079
+ l && fe(e), n = !1, r();
1080
1080
  }
1081
1081
  };
1082
1082
  }
@@ -1097,7 +1097,7 @@ function Ft(o) {
1097
1097
  e = N("div"), n = N("div"), m.c(), r = oe(), p && p.c(), V(n, "class", "ShowBalance"), V(n, "part", "ShowBalance");
1098
1098
  },
1099
1099
  m(g, y) {
1100
- fe(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[26](e);
1100
+ pe(g, e, y), R(e, n), m.m(n, null), R(e, r), p && p.m(e, null), o[26](e);
1101
1101
  },
1102
1102
  p(g, y) {
1103
1103
  u === (u = l(g)) && m ? m.p(g, y) : (m.d(1), m = u(g), m && (m.c(), m.m(n, null))), /*showBalance*/
@@ -1106,13 +1106,13 @@ function Ft(o) {
1106
1106
  i: qe,
1107
1107
  o: qe,
1108
1108
  d(g) {
1109
- g && pe(e), m.d(), p && p.d(), o[26](null);
1109
+ g && fe(e), m.d(), p && p.d(), o[26](null);
1110
1110
  }
1111
1111
  };
1112
1112
  }
1113
1113
  function kt(o, e, n) {
1114
1114
  let r;
1115
- yt(o, Ct, (c) => n(5, r = c));
1115
+ gt(o, Ct, (c) => n(5, r = c));
1116
1116
  let { userid: l = "" } = e, { session: u = "" } = e, { endpoint: m = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: x = "" } = e, { customlocaleidentifier: F = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: U = "" } = e, { currencydecimal: M = "" } = e, { currencyprecision: H = "" } = e, P, T, A, G = !1, D = "", W = [], he, me = !1;
1117
1117
  const f = {}, ge = ["totalCashAmount", "totalRealAmount"], ye = () => {
1118
1118
  fetch(x).then((c) => c.json()).then((c) => Object.keys(c).forEach((b) => Qe(b, c[b]))).catch((c) => console.log(c));
@@ -1343,12 +1343,12 @@ function kt(o, e, n) {
1343
1343
  );
1344
1344
  });
1345
1345
  };
1346
- vt(() => (window.addEventListener("message", ke, !1), () => {
1346
+ yt(() => (window.addEventListener("message", ke, !1), () => {
1347
1347
  window.removeEventListener("message", ke), A && A.close();
1348
1348
  }));
1349
1349
  const De = () => n(2, G = !0), ve = () => n(2, G = !1), J = () => Ee(), Pe = () => n(2, G = !1);
1350
1350
  function Ge(c) {
1351
- wt[c ? "unshift" : "push"](() => {
1351
+ vt[c ? "unshift" : "push"](() => {
1352
1352
  T = c, n(0, T);
1353
1353
  });
1354
1354
  }
@@ -1399,7 +1399,7 @@ class Ot extends ft {
1399
1399
  e,
1400
1400
  kt,
1401
1401
  Ft,
1402
- mt,
1402
+ ht,
1403
1403
  {
1404
1404
  userid: 9,
1405
1405
  session: 10,
@@ -1505,7 +1505,7 @@ class Ot extends ft {
1505
1505
  this.$$set({ currencyprecision: e }), Y();
1506
1506
  }
1507
1507
  }
1508
- ht(Ot, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1508
+ Bt(Ot, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1509
1509
  export {
1510
1510
  Ot as default
1511
1511
  };
@@ -1,11 +1,11 @@
1
- import { b as X, $ as Z, S as J, i as K, f as b, c as $, s as ee, d as te, g as _, e as E, t as C, u as d, M as I, j as S, v as p, x as L, n as P, k as T, l as ie, E as ae, o as se, A as M, w as ne, p as re, F as W, D as oe } from "./CasinoHamburgerMenu-Didvw1sl.js";
2
- function j(a, e) {
1
+ import { b as X, $ as Z, S as J, i as K, s as $, f as D, d as ee, n as P, e as S, u as L, M as z, h as T, v as p, k as _, j as E, y as C, z as d, l as te, C as ie, o as ae, w as se, x as M, p as ne, E as A, c as re, I as oe } from "./CasinoHamburgerMenu-DQ5J6iG9.js";
2
+ function W(a, e) {
3
3
  X(a, e);
4
4
  }
5
5
  function le(a) {
6
6
  Z.set(a);
7
7
  }
8
- const z = {
8
+ const j = {
9
9
  en: {
10
10
  titleDeposit: "Deposit",
11
11
  loading: "Loading, please wait ..."
@@ -48,24 +48,24 @@ const z = {
48
48
  }
49
49
  };
50
50
  function ce(a) {
51
- te(a, "svelte-lvm6lo", "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, 20px);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, 20px)}");
51
+ ee(a, "svelte-lvm6lo", "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, 20px);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, 20px)}");
52
52
  }
53
53
  function de(a) {
54
54
  let e, i, r, s, l, m, c, u, y, o, n = (
55
55
  /*$_*/
56
56
  a[4]("titleDeposit") + ""
57
- ), h, D, v;
57
+ ), h, b, v;
58
58
  return {
59
59
  c() {
60
60
  e = _("div"), i = M("svg"), r = M("defs"), s = M("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = M("g"), c = M("g"), u = M("path"), y = E(), o = _("h2"), h = C(n), d(u, "class", "aaa"), d(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(u, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "15"), d(i, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
61
61
  },
62
62
  m(g, k) {
63
- S(g, e, k), p(e, i), p(i, r), p(r, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), D || (v = ne(
63
+ T(g, e, k), p(e, i), p(i, r), p(r, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), b || (v = se(
64
64
  e,
65
65
  "click",
66
66
  /*click_handler*/
67
67
  a[17]
68
- ), D = !0);
68
+ ), b = !0);
69
69
  },
70
70
  p(g, k) {
71
71
  k & /*$_*/
@@ -73,7 +73,7 @@ function de(a) {
73
73
  g[4]("titleDeposit") + "") && L(h, n);
74
74
  },
75
75
  d(g) {
76
- g && T(e), D = !1, v();
76
+ g && S(e), b = !1, v();
77
77
  }
78
78
  };
79
79
  }
@@ -81,19 +81,19 @@ function he(a) {
81
81
  let e, i, r;
82
82
  return {
83
83
  c() {
84
- e = _("div"), i = _("iframe"), W(i.src, r = /*iframeUrl*/
84
+ e = _("div"), i = _("iframe"), A(i.src, r = /*iframeUrl*/
85
85
  a[3]) || d(i, "src", r), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
86
86
  },
87
87
  m(s, l) {
88
- S(s, e, l), p(e, i);
88
+ T(s, e, l), p(e, i);
89
89
  },
90
90
  p(s, l) {
91
91
  l & /*iframeUrl*/
92
- 8 && !W(i.src, r = /*iframeUrl*/
92
+ 8 && !A(i.src, r = /*iframeUrl*/
93
93
  s[3]) && d(i, "src", r);
94
94
  },
95
95
  d(s) {
96
- s && T(e);
96
+ s && S(e);
97
97
  }
98
98
  };
99
99
  }
@@ -107,7 +107,7 @@ function pe(a) {
107
107
  e = _("p"), r = C(i);
108
108
  },
109
109
  m(s, l) {
110
- S(s, e, l), p(e, r);
110
+ T(s, e, l), p(e, r);
111
111
  },
112
112
  p(s, l) {
113
113
  l & /*$_*/
@@ -115,7 +115,7 @@ function pe(a) {
115
115
  s[4]("loading") + "") && L(r, i);
116
116
  },
117
117
  d(s) {
118
- s && T(e);
118
+ s && S(e);
119
119
  }
120
120
  };
121
121
  }
@@ -138,7 +138,7 @@ function ue(a) {
138
138
  c() {
139
139
  e = _("div"), c && c.c(), i = E(), r = _("h2"), l = C(s), m = E(), o.c(), d(r, "class", "DepositTitle " + /*isMobile*/
140
140
  (a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
141
- (a[5] ? "DepositWrapperMobile" : "")), I(
141
+ (a[5] ? "DepositWrapperMobile" : "")), z(
142
142
  e,
143
143
  "--dynamic-height",
144
144
  /*dynamicHeight*/
@@ -146,14 +146,14 @@ function ue(a) {
146
146
  );
147
147
  },
148
148
  m(n, h) {
149
- S(n, e, h), c && c.m(e, null), p(e, i), p(e, r), p(r, l), p(e, m), o.m(e, null), a[18](e);
149
+ T(n, e, h), c && c.m(e, null), p(e, i), p(e, r), p(r, l), p(e, m), o.m(e, null), a[18](e);
150
150
  },
151
151
  p(n, [h]) {
152
152
  /*isMobile*/
153
153
  n[5] && c.p(n, h), h & /*$_*/
154
154
  16 && s !== (s = /*$_*/
155
155
  n[4]("titleDeposit") + "") && L(l, s), y === (y = u(n)) && o ? o.p(n, h) : (o.d(1), o = y(n), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
156
- 4 && I(
156
+ 4 && z(
157
157
  e,
158
158
  "--dynamic-height",
159
159
  /*dynamicHeight*/
@@ -163,36 +163,36 @@ function ue(a) {
163
163
  i: P,
164
164
  o: P,
165
165
  d(n) {
166
- n && T(e), c && c.d(), o.d(), a[18](null);
166
+ n && S(e), c && c.d(), o.d(), a[18](null);
167
167
  }
168
168
  };
169
169
  }
170
170
  function ge(a, e, i) {
171
171
  let r, s;
172
- ie(a, oe, (t) => i(4, s = t));
173
- let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: n = "" } = e, { translationurl: h = "" } = e, { playercurrency: D = "" } = e, { shortcashierenabled: v = "false" } = e, g, k = window.navigator.userAgent, R = ae(k) !== "PC", B = !0, F, x = 0, U = "";
172
+ te(a, oe, (t) => i(4, s = t));
173
+ let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: n = "" } = e, { translationurl: h = "" } = e, { playercurrency: b = "" } = e, { shortcashierenabled: v = "false" } = e, g, k = window.navigator.userAgent, R = ie(k) !== "PC", B = !0, I, x = 0, U = "";
174
174
  const G = () => {
175
175
  fetch(h).then((w) => w.json()).then((w) => {
176
176
  Object.keys(w).forEach((f) => {
177
- j(f, w[f]);
177
+ W(f, w[f]);
178
178
  });
179
179
  }).catch((w) => {
180
180
  console.log(w);
181
181
  });
182
182
  };
183
- Object.keys(z).forEach((t) => {
184
- j(t, z[t]);
183
+ Object.keys(j).forEach((t) => {
184
+ W(t, j[t]);
185
185
  });
186
- const A = () => {
186
+ const F = () => {
187
187
  window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
188
188
  }, H = (t) => {
189
189
  if (t.data) {
190
190
  switch (t.data.type) {
191
191
  case "ProfileDetailsData":
192
- i(7, D = t.data.profileDetails.currency);
192
+ i(7, b = t.data.profileDetails.currency);
193
193
  break;
194
194
  }
195
- switch (t.data["MMFE:setQuickDepositHeight"] && i(2, F = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
195
+ switch (t.data["MMFE:setQuickDepositHeight"] && i(2, I = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
196
196
  case "mm-hc-casino":
197
197
  window.postMessage({ type: "GoToCasino" }, window.location.href);
198
198
  break;
@@ -221,7 +221,7 @@ function ge(a, e, i) {
221
221
  }, N = () => {
222
222
  let t = new URL(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
223
223
  if (t.searchParams.append("language", u), r && t.searchParams.append("isShortCashier", v), y)
224
- switch (D) {
224
+ switch (b) {
225
225
  case "USD":
226
226
  x = 0.4;
227
227
  break;
@@ -233,7 +233,7 @@ function ge(a, e, i) {
233
233
  method: "POST",
234
234
  headers: {
235
235
  "X-SessionId": m,
236
- currency: D || "EUR",
236
+ currency: b || "EUR",
237
237
  amount: x,
238
238
  cashierMode: "Default",
239
239
  IsShortCashier: v,
@@ -264,17 +264,17 @@ function ge(a, e, i) {
264
264
  );
265
265
  });
266
266
  };
267
- se(() => (window.addEventListener("message", H, !1), () => {
267
+ ae(() => (window.addEventListener("message", H, !1), () => {
268
268
  window.removeEventListener("message", H);
269
269
  }));
270
- const Y = () => A();
270
+ const Y = () => F();
271
271
  function V(t) {
272
- re[t ? "unshift" : "push"](() => {
272
+ ne[t ? "unshift" : "push"](() => {
273
273
  g = t, i(0, g);
274
274
  });
275
275
  }
276
276
  return a.$$set = (t) => {
277
- "endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, u = t.lang), "hasdefaultamount" in t && i(12, y = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, n = t.clientstylingurl), "translationurl" in t && i(15, h = t.translationurl), "playercurrency" in t && i(7, D = t.playercurrency), "shortcashierenabled" in t && i(16, v = t.shortcashierenabled);
277
+ "endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, u = t.lang), "hasdefaultamount" in t && i(12, y = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, n = t.clientstylingurl), "translationurl" in t && i(15, h = t.translationurl), "playercurrency" in t && i(7, b = t.playercurrency), "shortcashierenabled" in t && i(16, v = t.shortcashierenabled);
278
278
  }, a.$$.update = () => {
279
279
  a.$$.dirty & /*lang*/
280
280
  2048 && u && O(), a.$$.dirty & /*shortcashierenabled*/
@@ -282,16 +282,16 @@ function ge(a, e, i) {
282
282
  16385 && n && g && Q(), a.$$.dirty & /*clientstyling, customStylingContainer*/
283
283
  8193 && o && g && q(), a.$$.dirty & /*translationurl*/
284
284
  32768 && h && G(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
285
- 69504 && m && c && l && D && u && v && N();
285
+ 69504 && m && c && l && b && u && v && N();
286
286
  }, [
287
287
  g,
288
288
  B,
289
- F,
289
+ I,
290
290
  U,
291
291
  s,
292
292
  R,
293
- A,
294
- D,
293
+ F,
294
+ b,
295
295
  l,
296
296
  m,
297
297
  c,
@@ -312,7 +312,7 @@ class me extends J {
312
312
  e,
313
313
  ge,
314
314
  ue,
315
- ee,
315
+ $,
316
316
  {
317
317
  endpoint: 8,
318
318
  session: 9,
@@ -332,64 +332,64 @@ class me extends J {
332
332
  return this.$$.ctx[8];
333
333
  }
334
334
  set endpoint(e) {
335
- this.$$set({ endpoint: e }), b();
335
+ this.$$set({ endpoint: e }), D();
336
336
  }
337
337
  get session() {
338
338
  return this.$$.ctx[9];
339
339
  }
340
340
  set session(e) {
341
- this.$$set({ session: e }), b();
341
+ this.$$set({ session: e }), D();
342
342
  }
343
343
  get playerid() {
344
344
  return this.$$.ctx[10];
345
345
  }
346
346
  set playerid(e) {
347
- this.$$set({ playerid: e }), b();
347
+ this.$$set({ playerid: e }), D();
348
348
  }
349
349
  get lang() {
350
350
  return this.$$.ctx[11];
351
351
  }
352
352
  set lang(e) {
353
- this.$$set({ lang: e }), b();
353
+ this.$$set({ lang: e }), D();
354
354
  }
355
355
  get hasdefaultamount() {
356
356
  return this.$$.ctx[12];
357
357
  }
358
358
  set hasdefaultamount(e) {
359
- this.$$set({ hasdefaultamount: e }), b();
359
+ this.$$set({ hasdefaultamount: e }), D();
360
360
  }
361
361
  get clientstyling() {
362
362
  return this.$$.ctx[13];
363
363
  }
364
364
  set clientstyling(e) {
365
- this.$$set({ clientstyling: e }), b();
365
+ this.$$set({ clientstyling: e }), D();
366
366
  }
367
367
  get clientstylingurl() {
368
368
  return this.$$.ctx[14];
369
369
  }
370
370
  set clientstylingurl(e) {
371
- this.$$set({ clientstylingurl: e }), b();
371
+ this.$$set({ clientstylingurl: e }), D();
372
372
  }
373
373
  get translationurl() {
374
374
  return this.$$.ctx[15];
375
375
  }
376
376
  set translationurl(e) {
377
- this.$$set({ translationurl: e }), b();
377
+ this.$$set({ translationurl: e }), D();
378
378
  }
379
379
  get playercurrency() {
380
380
  return this.$$.ctx[7];
381
381
  }
382
382
  set playercurrency(e) {
383
- this.$$set({ playercurrency: e }), b();
383
+ this.$$set({ playercurrency: e }), D();
384
384
  }
385
385
  get shortcashierenabled() {
386
386
  return this.$$.ctx[16];
387
387
  }
388
388
  set shortcashierenabled(e) {
389
- this.$$set({ shortcashierenabled: e }), b();
389
+ this.$$set({ shortcashierenabled: e }), D();
390
390
  }
391
391
  }
392
- $(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
392
+ re(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
393
393
  export {
394
394
  me as default
395
395
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-BGHo13mn.cjs");function x(n,t){e.addMessages(n,t)}function A(n){e.$locale.set(n)}const L={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 W(n){e.append_styles(n,"svelte-lvm6lo","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, 20px);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, 20px)}")}function j(n){let t,a,l,r,c,m,p,h,f,o,s=n[4]("titleDeposit")+"",d,w,b;return{c(){t=e.element("div"),a=e.svg_element("svg"),l=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"),p=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),d=e.text(s),e.attr(h,"class","aaa"),e.attr(h,"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(h,"transform","translate(15 15) rotate(180)"),e.attr(p,"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(o,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(u,D){e.insert(u,t,D),e.append(t,a),e.append(a,l),e.append(l,r),e.append(r,c),e.append(a,m),e.append(m,p),e.append(p,h),e.append(t,f),e.append(t,o),e.append(o,d),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(d,s)},d(u){u&&e.detach(t),w=!1,b()}}}function z(n){let t,a,l;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,l=n[3])||e.attr(a,"src",l),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,l=r[3])&&e.attr(a,"src",l)},d(r){r&&e.detach(t)}}}function G(n){let t,a=n[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,l)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function q(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,p=n[5]&&j(n);function h(s,d){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),p&&p.c(),a=e.space(),l=e.element("h2"),c=e.text(r),m=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,d){e.insert(s,t,d),p&&p.m(t,null),e.append(t,a),e.append(t,l),e.append(l,c),e.append(t,m),o.m(t,null),n[18](t)},p(s,[d]){s[5]&&p.p(s,d),d&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,d):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),d&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),p&&p.d(),o.d(),n[18](null)}}}function N(n,t,a){let l,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:p=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:d=""}=t,{playercurrency:w=""}=t,{shortcashierenabled:b="false"}=t,u,D=window.navigator.userAgent,v=e.getDevice(D)!=="PC",M=!0,C,_=0,k="";const R=()=>{fetch(d).then(y=>y.json()).then(y=>{Object.keys(y).forEach(g=>{x(g,y[g])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{x(i,L[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,C=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}}},B=()=>{let i=new URL(`${c}/v1/player/${p}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",h),l&&i.searchParams.append("isShortCashier",b),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:b,accept:"application/json"}};fetch(i.href,y).then(g=>g.json()).then(g=>{a(1,M=!1),a(3,k=g.CashierUrl)},g=>{console.error(g)})},H=()=>{A(h)},P=()=>{let i=document.createElement("style");i.innerHTML=o,u.appendChild(i)},U=()=>{let i=new URL(s),y=document.createElement("style");fetch(i.href).then(g=>g.text()).then(g=>{y.innerHTML=g,setTimeout(()=>{u.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}));const F=()=>S();function I(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,a(0,u)})}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,p=i.playerid),"lang"in i&&a(11,h=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,o=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,d=i.translationurl),"playercurrency"in i&&a(7,w=i.playercurrency),"shortcashierenabled"in i&&a(16,b=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&h&&H(),n.$$.dirty&65536&&(l=b.toLocaleLowerCase()==="true"),n.$$.dirty&16385&&s&&u&&U(),n.$$.dirty&8193&&o&&u&&P(),n.$$.dirty&32768&&d&&R(),n.$$.dirty&69504&&m&&p&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,p,h,f,o,s,d,b,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},W)}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 playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;