@everymatrix/player-account-controller 1.56.2 → 1.57.0

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 (118) hide show
  1. package/components/{GeneralLogout-BSaw6CR3.js → GeneralLogout-D1bnYvKD.js} +285 -284
  2. package/components/{GeneralLogout-B0tDLggX.cjs → GeneralLogout-DKq7aXpj.cjs} +5 -5
  3. package/components/{GeneralLogout-P0C6s5DZ.js → GeneralLogout-oWKFw5-U.js} +278 -277
  4. package/components/{PlayerAccountBettingHistory-DeLbSbrJ.js → PlayerAccountBettingHistory-B5a8vPwA.js} +1 -1
  5. package/components/{PlayerAccountBettingHistory-QrFClf-q.cjs → PlayerAccountBettingHistory-Ba0rbzAt.cjs} +1 -1
  6. package/components/{PlayerAccountBettingHistory-l2jKP400.js → PlayerAccountBettingHistory-cvLnLJaM.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-DSkIQnzt.js → PlayerAccountBiometrics-244_l2MD.js} +1 -1
  8. package/components/{PlayerAccountBiometrics-BrjU0LiD.js → PlayerAccountBiometrics-ClTvex4w.js} +1 -1
  9. package/components/{PlayerAccountBiometrics-Bs6NMHc0.cjs → PlayerAccountBiometrics-D3SdfZAk.cjs} +1 -1
  10. package/components/{PlayerAccountClosure-DfeDK9W_.js → PlayerAccountClosure-9BJkNHZ1.js} +1 -1
  11. package/components/{PlayerAccountClosure-DiGREXoY.js → PlayerAccountClosure-CUDjmpCz.js} +1 -1
  12. package/components/{PlayerAccountClosure-BOIOY2XA.cjs → PlayerAccountClosure-Dk5N1AgF.cjs} +1 -1
  13. package/components/{PlayerAccountController-CFyMeqDb.js → PlayerAccountController-BR2iFVCe.js} +984 -965
  14. package/components/PlayerAccountController-D25Cayml.cjs +1 -0
  15. package/components/{PlayerAccountController-B0nEgZTS.js → PlayerAccountController-rcttF6Lm.js} +982 -963
  16. package/components/{PlayerAccountGamingLimits-Ktm0tqeu.js → PlayerAccountGamingLimits-C2OQmz0L.js} +56 -56
  17. package/components/{PlayerAccountGamingLimits-Crfy5IPI.js → PlayerAccountGamingLimits-CGZB2W3L.js} +56 -56
  18. package/components/PlayerAccountGamingLimits-FIGZjiiE.cjs +1 -0
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CVt2dp2q.js → PlayerAccountGamingLimitsConfirmationModal-CMNuF6Yo.js} +1 -1
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-BVtO8XYY.cjs → PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-GJsD4EXP.js → PlayerAccountGamingLimitsConfirmationModal-apD3a9Bz.js} +1 -1
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-DNh-dSyB.cjs → PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs} +2 -2
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-CBQMS6_H.js → PlayerAccountGamingLimitsGroupEdit-Cj28m25L.js} +291 -291
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-G4w9DdS2.js → PlayerAccountGamingLimitsGroupEdit-DrfWEw7D.js} +291 -291
  25. package/components/{PlayerAccountGamingLimitsHistory2-CtA0oegi.js → PlayerAccountGamingLimitsHistory2-CL7qYX9D.js} +10 -10
  26. package/components/{PlayerAccountGamingLimitsHistory2-Ciipqbhq.js → PlayerAccountGamingLimitsHistory2-CsMgI2vP.js} +20 -20
  27. package/components/{PlayerAccountGamingLimitsHistory2-D4h59ZvH.cjs → PlayerAccountGamingLimitsHistory2-D90-0n9S.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-LGJizeyk.js → PlayerAccountGamingLimitsInfoCard-C-SGItlz.js} +89 -89
  29. package/components/{PlayerAccountGamingLimitsInfoCard-BEtS-68W.js → PlayerAccountGamingLimitsInfoCard-CFusXmG3.js} +89 -89
  30. package/components/{PlayerAccountGamingLimitsInfoCard-BP3ieYB-.cjs → PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-BcM2sb1p.js → PlayerAccountGamingLimitsPage2Gm16-BfV10mIx.js} +2 -2
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-HZl-4uMr.cjs → PlayerAccountGamingLimitsPage2Gm16-DAMLMUMu.cjs} +2 -2
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-DdhPHIQd.js → PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js} +2 -2
  34. package/components/{PlayerAccountGamingLimitsPopup-CdRdI3JR.js → PlayerAccountGamingLimitsPopup-4sFhABTh.js} +37 -37
  35. package/components/{PlayerAccountGamingLimitsPopup-Yhb7EjIg.js → PlayerAccountGamingLimitsPopup-Cut_OV-5.js} +37 -37
  36. package/components/{PlayerAccountGamingLimitsPopup-DyBIvm50.cjs → PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BYv2y-rY.js → PlayerAccountGamingLimitsWrapper2-BBhmB2BI.js} +86 -86
  38. package/components/{PlayerAccountGamingLimitsWrapper2-gGub1fuG.cjs → PlayerAccountGamingLimitsWrapper2-Cr_T1GBf.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-C6xKIGFF.js → PlayerAccountGamingLimitsWrapper2-eTM9_1BC.js} +83 -83
  40. package/components/{PlayerAccountGeneralConfirmationModal-B4jIx1BX.cjs → PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-CD-C2QtO.js → PlayerAccountGeneralConfirmationModal-Cxl-LoG0.js} +1 -1
  42. package/components/{PlayerAccountGeneralConfirmationModal-DyiU178q.js → PlayerAccountGeneralConfirmationModal-L97vGeau.js} +1 -1
  43. package/components/{PlayerAccountMenu-bdpP915D.cjs → PlayerAccountMenu-BIdnddS_.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-DFrCnbsI.js → PlayerAccountMenu-CBgydCnL.js} +8 -8
  45. package/components/{PlayerAccountMenu-CdKBgnzJ.js → PlayerAccountMenu-DUTsp-yv.js} +8 -8
  46. package/components/{PlayerAccountModal-DvoqjoAL.js → PlayerAccountModal-7R2WRCgZ.js} +56 -56
  47. package/components/{PlayerAccountModal-oVEZuWB2.js → PlayerAccountModal-C7_3et-5.js} +56 -56
  48. package/components/{PlayerAccountModal-COJeLuDu.cjs → PlayerAccountModal-tginaXbZ.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-DAWwzmCU.cjs → PlayerAccountNotifications-BLsxWrq2.cjs} +1 -1
  50. package/components/{PlayerAccountNotifications-BaNsCEei.js → PlayerAccountNotifications-BQPI0SJW.js} +3 -3
  51. package/components/{PlayerAccountNotifications-fgHOmoJ0.js → PlayerAccountNotifications-DcYU4F80.js} +3 -3
  52. package/components/{PlayerAccountSelfExclusion-ARIxVSLP.js → PlayerAccountSelfExclusion-DQemkHnw.js} +1 -1
  53. package/components/{PlayerAccountSelfExclusion-Bx-xxb7Y.js → PlayerAccountSelfExclusion-EzdDd4JW.js} +1 -1
  54. package/components/{PlayerAccountSelfExclusion-lAbJlcUC.cjs → PlayerAccountSelfExclusion-PIbK0zJN.cjs} +1 -1
  55. package/components/{PlayerAccountTimeout-04shprSV.js → PlayerAccountTimeout-DC6dXEP7.js} +10 -10
  56. package/components/{PlayerAccountTimeout-C392Fv8K.js → PlayerAccountTimeout-DGGqGhkZ.js} +10 -10
  57. package/components/{PlayerAccountTimeout-C7KH6ovR.cjs → PlayerAccountTimeout-DqOYXUZt.cjs} +1 -1
  58. package/components/{PlayerActiveBonuses-5eFyy-RT.js → PlayerActiveBonuses-BbsdliMe.js} +54 -54
  59. package/components/{PlayerActiveBonuses-TbfmKgcG.js → PlayerActiveBonuses-CS8nC9ys.js} +54 -54
  60. package/components/{PlayerActiveBonuses-DZpjmd5_.cjs → PlayerActiveBonuses-DTojdXrg.cjs} +1 -1
  61. package/components/{PlayerBonusCard-DW5VwRsP.js → PlayerBonusCard-9sQnuijs.js} +2 -2
  62. package/components/{PlayerBonusCard-CukAjEqo.js → PlayerBonusCard-QZKUlUnC.js} +2 -2
  63. package/components/{PlayerBonusCard-BLy1uhLi.cjs → PlayerBonusCard-ihCApHIs.cjs} +1 -1
  64. package/components/{PlayerBonusHistory-DyASnKHg.js → PlayerBonusHistory-BXX10tEI.js} +38 -38
  65. package/components/{PlayerBonusHistory-CIbSh98F.js → PlayerBonusHistory-CbptkPyg.js} +39 -39
  66. package/components/{PlayerBonusHistory-DLekMCrR.cjs → PlayerBonusHistory-DMC3iv-M.cjs} +1 -1
  67. package/components/{PlayerChangePassword-Bjf-BD9m.js → PlayerChangePassword-DIVU7Hm-.js} +1 -1
  68. package/components/{PlayerChangePassword-RGHCaEP3.js → PlayerChangePassword-DRF3YUcY.js} +1 -1
  69. package/components/{PlayerChangePassword-UepIdqvw.cjs → PlayerChangePassword-DZ0zUct-.cjs} +1 -1
  70. package/components/PlayerDeposit-2rXfB2O5.cjs +1 -0
  71. package/components/{PlayerDeposit-BEZ5yfVx.js → PlayerDeposit-Bu1poUUC.js} +38 -38
  72. package/components/{PlayerDeposit-C2zLAno5.js → PlayerDeposit-CC1ZNh0V.js} +38 -38
  73. package/components/{PlayerGamingHistory-Qv5CmegZ.cjs → PlayerGamingHistory-CITsPSbY.cjs} +1 -1
  74. package/components/{PlayerGamingHistory-f408ehA1.js → PlayerGamingHistory-CIZ2Ous8.js} +4 -4
  75. package/components/{PlayerGamingHistory-DYtKLxtA.js → PlayerGamingHistory-LEBGykAk.js} +4 -4
  76. package/components/{PlayerPendingWithdrawals-Dd-hUBTs.js → PlayerPendingWithdrawals-BAYRu_8K.js} +1 -1
  77. package/components/{PlayerPendingWithdrawals-Bl7G42a8.js → PlayerPendingWithdrawals-CaouMSqA.js} +1 -1
  78. package/components/{PlayerPendingWithdrawals-CvxjxkOD.cjs → PlayerPendingWithdrawals-UG-bN1ca.cjs} +1 -1
  79. package/components/{PlayerProfileInfo-Chwlpy6G.js → PlayerProfileInfo-BLPDFygv.js} +63 -63
  80. package/components/{PlayerProfileInfo-tT3FUcqx.js → PlayerProfileInfo-D3NxPM1Z.js} +68 -68
  81. package/components/{PlayerProfileInfo-AlvN_pUL.cjs → PlayerProfileInfo-DLth9JMy.cjs} +1 -1
  82. package/components/{PlayerRealityCheck-DSYoUIrf.cjs → PlayerRealityCheck-BmVSMTSf.cjs} +1 -1
  83. package/components/{PlayerRealityCheck-BBRdpOqG.js → PlayerRealityCheck-CI5fiJv3.js} +1 -1
  84. package/components/{PlayerRealityCheck-6MNq7GKW.js → PlayerRealityCheck-DL5sLluu.js} +1 -1
  85. package/components/{PlayerTransactionHistory-6qxdyqQZ.js → PlayerTransactionHistory-BGPDkKNI.js} +1 -1
  86. package/components/{PlayerTransactionHistory-Cvm1EwgV.cjs → PlayerTransactionHistory-U2CncC4r.cjs} +1 -1
  87. package/components/{PlayerTransactionHistory-BrGY_Ah9.js → PlayerTransactionHistory-x-p-YOv6.js} +1 -1
  88. package/components/{PlayerWithdrawal-B3-mcOWq.js → PlayerWithdrawal-BknOF8Sy.js} +9 -9
  89. package/components/{PlayerWithdrawal-D9w69Llz.cjs → PlayerWithdrawal-CsPPu5bX.cjs} +1 -1
  90. package/components/{PlayerWithdrawal-dfFj1w6I.js → PlayerWithdrawal-Cx3cOp7C.js} +9 -9
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/{checkbox-group-input_9-DtZ9kvK4.js → checkbox-group-input_9-JSy4d2L9.js} +2 -2
  96. package/stencil/{checkbox-group-input_9-DvXvp-ML.js → checkbox-group-input_9-UDA-XaF9.js} +2 -2
  97. package/stencil/{checkbox-group-input_9-DMrH9pTx.cjs → checkbox-group-input_9-jMRVCzfy.cjs} +2 -2
  98. package/stencil/{general-input-rL_ftR3H.js → general-input-BbXpUFir.js} +1 -1
  99. package/stencil/{general-input-eCxMClmW.js → general-input-C6k63W5y.js} +1 -1
  100. package/stencil/{general-input-CFqrfrup.cjs → general-input-TvqmX5hk.cjs} +1 -1
  101. package/stencil/{index-9cd44522-BqLgI-Ho.js → index-9cd44522-BQ_s4zJm.js} +4 -4
  102. package/stencil/{index-9cd44522-Cygpa4pV.js → index-9cd44522-BUwXI--9.js} +4 -4
  103. package/stencil/{index-9cd44522-DwMekoGN.cjs → index-9cd44522-lJqPKy7q.cjs} +1 -1
  104. package/stencil/{password-input_2-BabcxKun.cjs → password-input_2-DcXEnCK_.cjs} +1 -1
  105. package/stencil/{password-input_2-9_yxZI2g.js → password-input_2-DhPva8mM.js} +2 -2
  106. package/stencil/{password-input_2-D-YA_Jkx.js → password-input_2-DsZJxliE.js} +2 -2
  107. package/stencil/{player-change-password-gm2-039e300e-DiYWgS70.cjs → player-change-password-gm2-039e300e-BGXXN2fy.cjs} +1 -1
  108. package/stencil/{player-change-password-gm2-039e300e-CcWiaT26.js → player-change-password-gm2-039e300e-DiWG8cwr.js} +1 -1
  109. package/stencil/{player-change-password-gm2-039e300e-Zp9TDX77.js → player-change-password-gm2-039e300e-GCkrv9Aa.js} +1 -1
  110. package/stencil/{player-change-password-gm2-BWjI2Hs0.js → player-change-password-gm2-B2cv54i2.js} +1 -1
  111. package/stencil/{player-change-password-gm2-BaYafift.js → player-change-password-gm2-BB9nhWGy.js} +1 -1
  112. package/stencil/{player-change-password-gm2-DsT1aXcX.cjs → player-change-password-gm2-CWzdeleK.cjs} +1 -1
  113. package/stencil/{toggle-checkbox-input-BxUGWw2X.js → toggle-checkbox-input-2FXfNCyw.js} +1 -1
  114. package/stencil/{toggle-checkbox-input-PSoH9KF2.js → toggle-checkbox-input-BZQethuD.js} +1 -1
  115. package/stencil/{toggle-checkbox-input-D-Cv1QSS.cjs → toggle-checkbox-input-CA92JmGn.cjs} +1 -1
  116. package/components/PlayerAccountController-B7U-7bNI.cjs +0 -1
  117. package/components/PlayerAccountGamingLimits-D46zagPJ.cjs +0 -1
  118. package/components/PlayerDeposit-Dcjjga2V.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { a as ge, $ as he, S as Le, i as fe, f as A, c as ve, s as Te, b as Se, e as w, g as a, k as x, o as D, p as R, q as we, W as be, v as _e, w as Ae, x as Pe, z as q, A as ke, N as J, t as C, d as K, y as Y, h as F, l as g, m as Ie, n as E, O as Ce, X as Z, B as Ee } from "./GeneralLogout-P0C6s5DZ.js";
1
+ import { a as ge, $ as he, S as Le, i as fe, f as A, c as ve, s as Te, b as Se, e as w, g as a, k as x, o as D, p as R, q as we, X as be, v as _e, w as Ae, x as Pe, z as q, A as ke, O as J, t as C, d as K, y as V, h as F, l as g, m as Ie, n as E, P as Ce, Y as Z, B as Ee } from "./GeneralLogout-oWKFw5-U.js";
2
2
  function $(t, e) {
3
3
  ge(t, e);
4
4
  }
@@ -275,7 +275,7 @@ function Re(t) {
275
275
  T[h] = te(ee(t, P, h));
276
276
  return {
277
277
  c() {
278
- e = w("div"), i = w("div"), r = w("button"), n = C(o), m = K(), l = Y("svg"), v = Y("path"), L = Y("path"), d = K(), p = w("div");
278
+ e = w("div"), i = w("div"), r = w("button"), n = C(o), m = K(), l = V("svg"), v = V("path"), L = V("path"), d = K(), p = w("div");
279
279
  for (let h = 0; h < T.length; h += 1)
280
280
  T[h].c();
281
281
  a(v, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), a(v, "class", "svelte-19ml84y"), a(L, "d", "M0 0h36v36h-36z"), a(L, "fill", "none"), a(L, "class", "svelte-19ml84y"), a(l, "class", "ExpandArrow svelte-19ml84y"), a(l, "xmlns", "http://www.w3.org/2000/svg"), a(l, "width", "36"), a(l, "height", "36"), a(l, "viewBox", "0 0 36 36"), a(l, "fill", "#999"), F(
@@ -511,7 +511,7 @@ function He(t) {
511
511
  function Me(t, e, i) {
512
512
  let r;
513
513
  we(t, Ee, (s) => i(9, r = s));
514
- let o = window.navigator.userAgent, n = !be(o), { lang: m = "" } = e, { userid: l = "" } = e, { session: v = "" } = e, { endpoint: L = "" } = e, { apiversion: d = "" } = e, { numberofentries: p = "10" } = e, { customcurrencysymbols: u = "" } = e, { limitformat: f = "" } = e, { clientstyling: P = "" } = e, { clientstylingurl: T = "" } = e, { mbsource: h } = e, { translationurl: b = "" } = e, y, k = new Array(), N = parseInt(p, 10), B = !1, W = !0, j = [], z = [], H = !0, U = !1, O = { EUR: "€", RON: "lei", TRY: "₺" };
514
+ let o = window.navigator.userAgent, n = !be(o), { lang: m = "" } = e, { userid: l = "" } = e, { session: v = "" } = e, { endpoint: L = "" } = e, { apiversion: d = "" } = e, { numberofentries: p = "10" } = e, { customcurrencysymbols: u = "" } = e, { limitformat: f = "" } = e, { clientstyling: P = "" } = e, { clientstylingurl: T = "" } = e, { mbsource: h } = e, { translationurl: b = "" } = e, y, k = new Array(), B = parseInt(p, 10), N = !1, W = !0, j = [], z = [], H = !0, U = !1, O = { EUR: "€", RON: "lei", TRY: "₺" };
515
515
  const ie = () => {
516
516
  fetch(b).then((c) => c.json()).then((c) => {
517
517
  Object.keys(c).forEach((_) => {
@@ -533,14 +533,14 @@ function Me(t, e, i) {
533
533
  };
534
534
  fetch(c.href, _).then((S) => {
535
535
  if (S.status >= 300)
536
- throw i(4, W = !1), i(6, B = !0), new Error("There was an error fetching the limits");
536
+ throw i(4, W = !1), i(6, N = !0), new Error("There was an error fetching the limits");
537
537
  return S.json();
538
538
  }).then(
539
539
  (S) => {
540
- S.length && (j = re(S), i(7, z = j.slice(0, N))), i(4, W = !1);
540
+ S.length && (j = re(S), i(7, z = j.slice(0, B))), i(4, W = !1);
541
541
  },
542
542
  (S) => {
543
- console.error("There was an error", S), i(6, B = !0);
543
+ console.error("There was an error", S), i(6, N = !0);
544
544
  }
545
545
  );
546
546
  }, re = (s) => {
@@ -566,8 +566,8 @@ function Me(t, e, i) {
566
566
  const _ = c.match(/\{(\d+)decimals\}/), S = _ ? parseInt(_[1], 10) : 2, I = _ ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
567
567
  let M = parseFloat(s.limitAmount).toFixed(S);
568
568
  const [pe, G] = f.includes(".") ? [",", "."] : [".", ","];
569
- let [V, ue] = M.split(".");
570
- return V = V.replace(/\B(?=(\d{3})+(?!\d))/g, pe), M = `${V}${G}${ue}`, c = c.replace("{currency}", O[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", M.split(G)[0]).replace(
569
+ let [Y, ue] = M.split(".");
570
+ return Y = Y.replace(/\B(?=(\d{3})+(?!\d))/g, pe), M = `${Y}${G}${ue}`, c = c.replace("{currency}", O[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", M.split(G)[0]).replace(
571
571
  I,
572
572
  M.split(G)[1]
573
573
  ), c;
@@ -576,7 +576,7 @@ function Me(t, e, i) {
576
576
  };
577
577
  let Q = new IntersectionObserver((s) => {
578
578
  s.forEach((c) => {
579
- c.isIntersecting && (N += parseInt(p, 10) || 10, z.length < j.length && i(7, z = j.slice(0, N)));
579
+ c.isIntersecting && (B += parseInt(p, 10) || 10, z.length < j.length && i(7, z = j.slice(0, B)));
580
580
  });
581
581
  });
582
582
  const ne = () => {
@@ -624,7 +624,7 @@ function Me(t, e, i) {
624
624
  k,
625
625
  W,
626
626
  H,
627
- B,
627
+ N,
628
628
  z,
629
629
  U,
630
630
  r,
@@ -1,7 +1,7 @@
1
1
  var fe = Object.defineProperty;
2
2
  var J = Object.getOwnPropertySymbols;
3
3
  var ve = Object.prototype.hasOwnProperty, Te = Object.prototype.propertyIsEnumerable;
4
- var Z = (t, e, i) => e in t ? fe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Y = (t, e) => {
4
+ var Z = (t, e, i) => e in t ? fe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, V = (t, e) => {
5
5
  for (var i in e || (e = {}))
6
6
  ve.call(e, i) && Z(t, i, e[i]);
7
7
  if (J)
@@ -9,7 +9,7 @@ var Z = (t, e, i) => e in t ? fe(t, e, { enumerable: !0, configurable: !0, writa
9
9
  Te.call(e, i) && Z(t, i, e[i]);
10
10
  return t;
11
11
  };
12
- import { a as Se, $ as we, S as be, i as _e, f as A, c as Ae, s as Pe, b as ke, e as w, g as a, k as x, o as D, p as R, q as Ie, W as Ce, v as Ee, w as De, x as xe, z as $, A as Re, N as ee, t as C, d as Q, y as X, h as F, l as g, m as Oe, n as E, O as We, X as te, B as je } from "./GeneralLogout-BSaw6CR3.js";
12
+ import { a as Se, $ as we, S as be, i as _e, f as A, c as Ae, s as Pe, b as ke, e as w, g as a, k as x, o as D, p as R, q as Ie, X as Ce, v as Ee, w as De, x as xe, z as $, A as Re, O as ee, t as C, d as Q, y as X, h as F, l as g, m as Oe, n as E, P as We, Y as te, B as je } from "./GeneralLogout-D1bnYvKD.js";
13
13
  function ie(t, e) {
14
14
  Se(t, e);
15
15
  }
@@ -353,7 +353,7 @@ function Me(t) {
353
353
  function Fe(t) {
354
354
  return { c: D, m: D, p: D, d: D };
355
355
  }
356
- function Ne(t) {
356
+ function Be(t) {
357
357
  let e, i = (
358
358
  /*lang*/
359
359
  (t[0] ? (
@@ -381,7 +381,7 @@ function Ne(t) {
381
381
  }
382
382
  };
383
383
  }
384
- function Be(t) {
384
+ function Ne(t) {
385
385
  let e, i, r, o = (
386
386
  /*history*/
387
387
  t[37].type + ""
@@ -453,7 +453,7 @@ function re(t) {
453
453
  function n(d, p) {
454
454
  return (
455
455
  /*history*/
456
- d[37].removed ? Ue : Be
456
+ d[37].removed ? Ue : Ne
457
457
  );
458
458
  }
459
459
  let m = n(t), l = m(t);
@@ -495,7 +495,7 @@ function Ge(t) {
495
495
  function i(n, m) {
496
496
  return (
497
497
  /*hasErrors*/
498
- n[6] ? Ne : (
498
+ n[6] ? Be : (
499
499
  /*isLoading*/
500
500
  n[4] ? Fe : Me
501
501
  )
@@ -519,10 +519,10 @@ function Ge(t) {
519
519
  }
520
520
  };
521
521
  }
522
- function Ve(t, e, i) {
522
+ function Ye(t, e, i) {
523
523
  let r;
524
524
  Ie(t, je, (s) => i(9, r = s));
525
- let o = window.navigator.userAgent, n = !Ce(o), { lang: m = "" } = e, { userid: l = "" } = e, { session: v = "" } = e, { endpoint: L = "" } = e, { apiversion: d = "" } = e, { numberofentries: p = "10" } = e, { customcurrencysymbols: u = "" } = e, { limitformat: f = "" } = e, { clientstyling: P = "" } = e, { clientstylingurl: T = "" } = e, { mbsource: h } = e, { translationurl: b = "" } = e, y, k = new Array(), N = parseInt(p, 10), B = !1, W = !0, j = [], z = [], H = !0, U = !1, O = { EUR: "€", RON: "lei", TRY: "₺" };
525
+ let o = window.navigator.userAgent, n = !Ce(o), { lang: m = "" } = e, { userid: l = "" } = e, { session: v = "" } = e, { endpoint: L = "" } = e, { apiversion: d = "" } = e, { numberofentries: p = "10" } = e, { customcurrencysymbols: u = "" } = e, { limitformat: f = "" } = e, { clientstyling: P = "" } = e, { clientstylingurl: T = "" } = e, { mbsource: h } = e, { translationurl: b = "" } = e, y, k = new Array(), B = parseInt(p, 10), N = !1, W = !0, j = [], z = [], H = !0, U = !1, O = { EUR: "€", RON: "lei", TRY: "₺" };
526
526
  const oe = () => {
527
527
  fetch(b).then((c) => c.json()).then((c) => {
528
528
  Object.keys(c).forEach((_) => {
@@ -544,14 +544,14 @@ function Ve(t, e, i) {
544
544
  };
545
545
  fetch(c.href, _).then((S) => {
546
546
  if (S.status >= 300)
547
- throw i(4, W = !1), i(6, B = !0), new Error("There was an error fetching the limits");
547
+ throw i(4, W = !1), i(6, N = !0), new Error("There was an error fetching the limits");
548
548
  return S.json();
549
549
  }).then(
550
550
  (S) => {
551
- S.length && (j = ne(S), i(7, z = j.slice(0, N))), i(4, W = !1);
551
+ S.length && (j = ne(S), i(7, z = j.slice(0, B))), i(4, W = !1);
552
552
  },
553
553
  (S) => {
554
- console.error("There was an error", S), i(6, B = !0);
554
+ console.error("There was an error", S), i(6, N = !0);
555
555
  }
556
556
  );
557
557
  }, ne = (s) => {
@@ -577,8 +577,8 @@ function Ve(t, e, i) {
577
577
  const _ = c.match(/\{(\d+)decimals\}/), S = _ ? parseInt(_[1], 10) : 2, I = _ ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
578
578
  let M = parseFloat(s.limitAmount).toFixed(S);
579
579
  const [ge, G] = f.includes(".") ? [",", "."] : [".", ","];
580
- let [V, he] = M.split(".");
581
- return V = V.replace(/\B(?=(\d{3})+(?!\d))/g, ge), M = `${V}${G}${he}`, c = c.replace("{currency}", O[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", M.split(G)[0]).replace(
580
+ let [Y, he] = M.split(".");
581
+ return Y = Y.replace(/\B(?=(\d{3})+(?!\d))/g, ge), M = `${Y}${G}${he}`, c = c.replace("{currency}", O[s.limitCurrencyCode] || s.limitCurrencyCode).replace("{amount}", M.split(G)[0]).replace(
582
582
  I,
583
583
  M.split(G)[1]
584
584
  ), c;
@@ -587,7 +587,7 @@ function Ve(t, e, i) {
587
587
  };
588
588
  let q = new IntersectionObserver((s) => {
589
589
  s.forEach((c) => {
590
- c.isIntersecting && (N += parseInt(p, 10) || 10, z.length < j.length && i(7, z = j.slice(0, N)));
590
+ c.isIntersecting && (B += parseInt(p, 10) || 10, z.length < j.length && i(7, z = j.slice(0, B)));
591
591
  });
592
592
  });
593
593
  const ye = () => {
@@ -599,7 +599,7 @@ function Ve(t, e, i) {
599
599
  u.split(",").forEach((c) => {
600
600
  let _ = c.split(":");
601
601
  s[_[0].trim()] = _[1].trim();
602
- }), O = Y(Y({}, O), s);
602
+ }), O = V(V({}, O), s);
603
603
  }, pe = () => {
604
604
  ze(m);
605
605
  };
@@ -635,7 +635,7 @@ function Ve(t, e, i) {
635
635
  k,
636
636
  W,
637
637
  H,
638
- B,
638
+ N,
639
639
  z,
640
640
  U,
641
641
  r,
@@ -655,12 +655,12 @@ function Ve(t, e, i) {
655
655
  ce
656
656
  ];
657
657
  }
658
- class Ye extends be {
658
+ class Ve extends be {
659
659
  constructor(e) {
660
660
  super(), _e(
661
661
  this,
662
662
  e,
663
- Ve,
663
+ Ye,
664
664
  Ge,
665
665
  Pe,
666
666
  {
@@ -754,7 +754,7 @@ class Ye extends be {
754
754
  this.$$set({ translationurl: e }), A();
755
755
  }
756
756
  }
757
- Ae(Ye, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
757
+ Ae(Ve, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
758
758
  export {
759
- Ye as default
759
+ Ve as default
760
760
  };
@@ -1 +1 @@
1
- "use strict";var oe=Object.defineProperty;var F=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(i,t,s)=>t in i?oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,z=(i,t)=>{for(var s in t||(t={}))ne.call(t,s)&&N(i,s,t[s]);if(F)for(var s of F(t))le.call(t,s)&&N(i,s,t[s]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-B0tDLggX.cjs");function U(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const M={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"HISTÓRICO DE LIMITE",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"HISTORIAL DE LÍMITES",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"},"en-us":{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function me(i){e.append_styles(i,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function B(i,t,s){const o=i.slice();return o[37]=t[s],o[38]=t,o[39]=s,o}function ye(i){let t,s,o,n=i[9]("expandLimits")+"",a,m,l,f,h,d,p,u,L,w=e.ensure_array_like(i[7]),v=[];for(let g=0;g<w.length;g+=1)v[g]=G(B(i,w,g));return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),a=e.text(n),m=e.space(),l=e.svg_element("svg"),f=e.svg_element("path"),h=e.svg_element("path"),d=e.space(),p=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(f,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(f,"class","svelte-19ml84y"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-19ml84y"),e.attr(l,"class","ExpandArrow svelte-19ml84y"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","36"),e.attr(l,"height","36"),e.attr(l,"viewBox","0 0 36 36"),e.attr(l,"fill","#999"),e.toggle_class(l,"extended",i[8]),e.attr(o,"class","ExpandButton svelte-19ml84y"),e.attr(p,"class","HistoryDisplayArea svelte-19ml84y"),e.toggle_class(p,"hidden",i[5]),e.attr(s,"class","HistoryWrapper "+(i[10]?"Desktop":"")+" svelte-19ml84y"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(g,S){e.insert(g,t,S),e.append(t,s),e.append(s,o),e.append(o,a),e.append(o,m),e.append(o,l),e.append(l,f),e.append(l,h),e.append(s,d),e.append(s,p);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(p,null);u||(L=e.listen(o,"click",i[11]),u=!0)},p(g,S){if(S[0]&512&&n!==(n=g[9]("expandLimits")+"")&&e.set_data(a,n),S[0]&256&&e.toggle_class(l,"extended",g[8]),S[0]&650){w=e.ensure_array_like(g[7]);let y;for(y=0;y<w.length;y+=1){const b=B(g,w,y);v[y]?v[y].p(b,S):(v[y]=G(b),v[y].c(),v[y].m(p,null))}for(;y<v.length;y+=1)v[y].d(1);v.length=w.length}S[0]&32&&e.toggle_class(p,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,L()}}}function de(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function pe(i){let t,s=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(s),e.attr(t,"class","svelte-19ml84y")},m(n,a){e.insert(n,t,a),e.append(t,o)},p(n,a){a[0]&513&&s!==(s=(n[0]?n[9]("error"):"500 Server Error")+"")&&e.set_data(o,s)},d(n){n&&e.detach(t)}}}function ue(i){let t,s,o,n=i[37].type+"",a,m,l=i[37].amount+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&128&&l!==(l=u[37].amount+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function ce(i){let t,s,o,n=i[37].type+"",a,m,l=i[9]("limitRemoved")+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&512&&l!==(l=u[9]("limitRemoved")+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function G(i){let t,s,o,n=i[39];function a(d,p){return d[37].removed?ce:ue}let m=a(i),l=m(i);const f=()=>i[22](t,n),h=()=>i[22](null,n);return{c(){t=e.element("div"),l.c(),s=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")},m(d,p){e.insert(d,t,p),l.m(t,null),e.append(t,s),f()},p(d,p){i=d,m===(m=a(i))&&l?l.p(i,p):(l.d(1),l=m(i),l&&(l.c(),l.m(t,s))),p[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")&&e.attr(t,"class",o),n!==i[39]&&(h(),n=i[39],f())},d(d){d&&e.detach(t),l.d(),h()}}}function ge(i){let t;function s(a,m){return a[6]?pe:a[4]?de:ye}let o=s(i),n=o(i);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-19ml84y")},m(a,m){e.insert(a,t,m),n.m(t,null),i[23](t)},p(a,m){o===(o=s(a))&&n?n.p(a,m):(n.d(1),n=o(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[23](null)}}}function he(i,t,s){let o;e.component_subscribe(i,e.$format,r=>s(9,o=r));let n=window.navigator.userAgent,a=!e.isMobile(n),{lang:m=""}=t,{userid:l=""}=t,{session:f=""}=t,{endpoint:h=""}=t,{apiversion:d=""}=t,{numberofentries:p="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:L=""}=t,{clientstyling:w=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:S=""}=t,y,b=new Array,D=parseInt(p,10),R=!1,k=!0,I=[],C=[],E=!0,O=!1,A={EUR:"€",RON:"lei",TRY:"₺"};const Y=()=>{fetch(S).then(c=>c.json()).then(c=>{Object.keys(c).forEach(_=>{U(_,c[_])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(r=>{U(r,M[r])});const K=()=>{let r=d==="gmcore"?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,c=new URL(r,h);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let _={method:"GET",headers:{"X-SessionID":f}};fetch(c.href,_).then(T=>{if(T.status>=300)throw s(4,k=!1),s(6,R=!0),new Error("There was an error fetching the limits");return T.json()}).then(T=>{T.length&&(I=Q(T),s(7,C=I.slice(0,D))),s(4,k=!1)},T=>{console.error("There was an error",T),s(6,R=!0)})},Q=r=>{const c=!!M[m];return r.map(T=>{let P={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return P.amount=X(T),P.currency=c?A[T.limitCurrencyCode]:T.limitCurrencyCode,P.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(T.limitDate)),P.period=o(`${T.limitPeriod.toLowerCase()}`),P.type=d==="gmcore"?o(`historyLimitType${T.limitType.split(" ")[0]}`):o(`historyLimitType${T.limitType.split(" ")[0]}`)+" "+o(`historyProductType${T.limitProductType}`),P.removed=T.limitAmount===-1,P})},X=r=>{let c=L||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.limitAmount);if(!L){let re=A[r.limitCurrencyCode]||r.limitCurrencyCode;return`${c}${re}`}typeof r.limitAmount=="string"&&r.limitAmount.includes(",")&&(r.limitAmount=r.limitAmount.replaceAll(",",""));const _=c.match(/\{(\d+)decimals\}/),T=_?parseInt(_[1],10):2,P=_?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let x=parseFloat(r.limitAmount).toFixed(T);const[ie,j]=L.includes(".")?[",","."]:[".",","];let[W,se]=x.split(".");return W=W.replace(/\B(?=(\d{3})+(?!\d))/g,ie),x=`${W}${j}${se}`,c=c.replace("{currency}",A[r.limitCurrencyCode]||r.limitCurrencyCode).replace("{amount}",x.split(j)[0]).replace(P,x.split(j)[1]),c},q=()=>{s(5,E=!E),s(8,O=!O)};let H=new IntersectionObserver(r=>{r.forEach(c=>{c.isIntersecting&&(D+=parseInt(p,10)||10,C.length<I.length&&s(7,C=I.slice(0,D)))})});const J=()=>{H.observe(b[b.length-1])},Z=()=>{if(!u)return;let r={};u.split(",").forEach(c=>{let _=c.split(":");r[_[0].trim()]=_[1].trim()}),A=z(z({},A),r)},$=()=>{ae(m)};e.onMount(()=>()=>{H.unobserve(b[b.length-1])});function ee(r,c){e.binding_callbacks[r?"unshift":"push"](()=>{b[c]=r,s(3,b)})}function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,s(2,y)})}return i.$$set=r=>{"lang"in r&&s(0,m=r.lang),"userid"in r&&s(12,l=r.userid),"session"in r&&s(13,f=r.session),"endpoint"in r&&s(14,h=r.endpoint),"apiversion"in r&&s(15,d=r.apiversion),"numberofentries"in r&&s(1,p=r.numberofentries),"customcurrencysymbols"in r&&s(16,u=r.customcurrencysymbols),"limitformat"in r&&s(17,L=r.limitformat),"clientstyling"in r&&s(18,w=r.clientstyling),"clientstylingurl"in r&&s(19,v=r.clientstylingurl),"mbsource"in r&&s(20,g=r.mbsource),"translationurl"in r&&s(21,S=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&Z(),i.$$.dirty[0]&61440&&h&&l&&f&&d&&K(),i.$$.dirty[0]&56&&b[0]&&!k&&!E&&J(),i.$$.dirty[0]&1&&m&&$(),i.$$.dirty[0]&262148&&w&&y&&e.setClientStyling(y,w),i.$$.dirty[0]&524292&&v&&y&&e.setClientStylingURL(y,v),i.$$.dirty[0]&1048580&&g&&y&&e.setStreamStyling(y,`${g}.Style`),i.$$.dirty[0]&2097156&&S&&y&&Y()},[m,p,y,b,k,E,R,C,O,o,a,q,l,f,h,d,u,L,w,v,g,S,ee,te]}class V extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,ge,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},me,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(V,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=V;
1
+ "use strict";var oe=Object.defineProperty;var F=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var N=(i,t,s)=>t in i?oe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,z=(i,t)=>{for(var s in t||(t={}))ne.call(t,s)&&N(i,s,t[s]);if(F)for(var s of F(t))le.call(t,s)&&N(i,s,t[s]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-DKq7aXpj.cjs");function U(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const M={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj ​​je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"HISTÓRICO DE LIMITE",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"HISTORIAL DE LÍMITES",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"},"en-us":{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function me(i){e.append_styles(i,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function B(i,t,s){const o=i.slice();return o[37]=t[s],o[38]=t,o[39]=s,o}function ye(i){let t,s,o,n=i[9]("expandLimits")+"",a,m,l,f,h,d,p,u,L,w=e.ensure_array_like(i[7]),v=[];for(let g=0;g<w.length;g+=1)v[g]=G(B(i,w,g));return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),a=e.text(n),m=e.space(),l=e.svg_element("svg"),f=e.svg_element("path"),h=e.svg_element("path"),d=e.space(),p=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(f,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(f,"class","svelte-19ml84y"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-19ml84y"),e.attr(l,"class","ExpandArrow svelte-19ml84y"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","36"),e.attr(l,"height","36"),e.attr(l,"viewBox","0 0 36 36"),e.attr(l,"fill","#999"),e.toggle_class(l,"extended",i[8]),e.attr(o,"class","ExpandButton svelte-19ml84y"),e.attr(p,"class","HistoryDisplayArea svelte-19ml84y"),e.toggle_class(p,"hidden",i[5]),e.attr(s,"class","HistoryWrapper "+(i[10]?"Desktop":"")+" svelte-19ml84y"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(g,S){e.insert(g,t,S),e.append(t,s),e.append(s,o),e.append(o,a),e.append(o,m),e.append(o,l),e.append(l,f),e.append(l,h),e.append(s,d),e.append(s,p);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(p,null);u||(L=e.listen(o,"click",i[11]),u=!0)},p(g,S){if(S[0]&512&&n!==(n=g[9]("expandLimits")+"")&&e.set_data(a,n),S[0]&256&&e.toggle_class(l,"extended",g[8]),S[0]&650){w=e.ensure_array_like(g[7]);let y;for(y=0;y<w.length;y+=1){const b=B(g,w,y);v[y]?v[y].p(b,S):(v[y]=G(b),v[y].c(),v[y].m(p,null))}for(;y<v.length;y+=1)v[y].d(1);v.length=w.length}S[0]&32&&e.toggle_class(p,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,L()}}}function de(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function pe(i){let t,s=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(s),e.attr(t,"class","svelte-19ml84y")},m(n,a){e.insert(n,t,a),e.append(t,o)},p(n,a){a[0]&513&&s!==(s=(n[0]?n[9]("error"):"500 Server Error")+"")&&e.set_data(o,s)},d(n){n&&e.detach(t)}}}function ue(i){let t,s,o,n=i[37].type+"",a,m,l=i[37].amount+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&128&&l!==(l=u[37].amount+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function ce(i){let t,s,o,n=i[37].type+"",a,m,l=i[9]("limitRemoved")+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&512&&l!==(l=u[9]("limitRemoved")+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function G(i){let t,s,o,n=i[39];function a(d,p){return d[37].removed?ce:ue}let m=a(i),l=m(i);const f=()=>i[22](t,n),h=()=>i[22](null,n);return{c(){t=e.element("div"),l.c(),s=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")},m(d,p){e.insert(d,t,p),l.m(t,null),e.append(t,s),f()},p(d,p){i=d,m===(m=a(i))&&l?l.p(i,p):(l.d(1),l=m(i),l&&(l.c(),l.m(t,s))),p[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")&&e.attr(t,"class",o),n!==i[39]&&(h(),n=i[39],f())},d(d){d&&e.detach(t),l.d(),h()}}}function ge(i){let t;function s(a,m){return a[6]?pe:a[4]?de:ye}let o=s(i),n=o(i);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-19ml84y")},m(a,m){e.insert(a,t,m),n.m(t,null),i[23](t)},p(a,m){o===(o=s(a))&&n?n.p(a,m):(n.d(1),n=o(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[23](null)}}}function he(i,t,s){let o;e.component_subscribe(i,e.$format,r=>s(9,o=r));let n=window.navigator.userAgent,a=!e.isMobile(n),{lang:m=""}=t,{userid:l=""}=t,{session:f=""}=t,{endpoint:h=""}=t,{apiversion:d=""}=t,{numberofentries:p="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:L=""}=t,{clientstyling:w=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:S=""}=t,y,b=new Array,D=parseInt(p,10),R=!1,k=!0,I=[],C=[],E=!0,O=!1,A={EUR:"€",RON:"lei",TRY:"₺"};const Y=()=>{fetch(S).then(c=>c.json()).then(c=>{Object.keys(c).forEach(_=>{U(_,c[_])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(r=>{U(r,M[r])});const K=()=>{let r=d==="gmcore"?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,c=new URL(r,h);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let _={method:"GET",headers:{"X-SessionID":f}};fetch(c.href,_).then(T=>{if(T.status>=300)throw s(4,k=!1),s(6,R=!0),new Error("There was an error fetching the limits");return T.json()}).then(T=>{T.length&&(I=Q(T),s(7,C=I.slice(0,D))),s(4,k=!1)},T=>{console.error("There was an error",T),s(6,R=!0)})},Q=r=>{const c=!!M[m];return r.map(T=>{let P={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return P.amount=X(T),P.currency=c?A[T.limitCurrencyCode]:T.limitCurrencyCode,P.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(T.limitDate)),P.period=o(`${T.limitPeriod.toLowerCase()}`),P.type=d==="gmcore"?o(`historyLimitType${T.limitType.split(" ")[0]}`):o(`historyLimitType${T.limitType.split(" ")[0]}`)+" "+o(`historyProductType${T.limitProductType}`),P.removed=T.limitAmount===-1,P})},X=r=>{let c=L||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.limitAmount);if(!L){let re=A[r.limitCurrencyCode]||r.limitCurrencyCode;return`${c}${re}`}typeof r.limitAmount=="string"&&r.limitAmount.includes(",")&&(r.limitAmount=r.limitAmount.replaceAll(",",""));const _=c.match(/\{(\d+)decimals\}/),T=_?parseInt(_[1],10):2,P=_?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let x=parseFloat(r.limitAmount).toFixed(T);const[ie,j]=L.includes(".")?[",","."]:[".",","];let[W,se]=x.split(".");return W=W.replace(/\B(?=(\d{3})+(?!\d))/g,ie),x=`${W}${j}${se}`,c=c.replace("{currency}",A[r.limitCurrencyCode]||r.limitCurrencyCode).replace("{amount}",x.split(j)[0]).replace(P,x.split(j)[1]),c},q=()=>{s(5,E=!E),s(8,O=!O)};let H=new IntersectionObserver(r=>{r.forEach(c=>{c.isIntersecting&&(D+=parseInt(p,10)||10,C.length<I.length&&s(7,C=I.slice(0,D)))})});const J=()=>{H.observe(b[b.length-1])},Z=()=>{if(!u)return;let r={};u.split(",").forEach(c=>{let _=c.split(":");r[_[0].trim()]=_[1].trim()}),A=z(z({},A),r)},$=()=>{ae(m)};e.onMount(()=>()=>{H.unobserve(b[b.length-1])});function ee(r,c){e.binding_callbacks[r?"unshift":"push"](()=>{b[c]=r,s(3,b)})}function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,s(2,y)})}return i.$$set=r=>{"lang"in r&&s(0,m=r.lang),"userid"in r&&s(12,l=r.userid),"session"in r&&s(13,f=r.session),"endpoint"in r&&s(14,h=r.endpoint),"apiversion"in r&&s(15,d=r.apiversion),"numberofentries"in r&&s(1,p=r.numberofentries),"customcurrencysymbols"in r&&s(16,u=r.customcurrencysymbols),"limitformat"in r&&s(17,L=r.limitformat),"clientstyling"in r&&s(18,w=r.clientstyling),"clientstylingurl"in r&&s(19,v=r.clientstylingurl),"mbsource"in r&&s(20,g=r.mbsource),"translationurl"in r&&s(21,S=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&Z(),i.$$.dirty[0]&61440&&h&&l&&f&&d&&K(),i.$$.dirty[0]&56&&b[0]&&!k&&!E&&J(),i.$$.dirty[0]&1&&m&&$(),i.$$.dirty[0]&262148&&w&&y&&e.setClientStyling(y,w),i.$$.dirty[0]&524292&&v&&y&&e.setClientStylingURL(y,v),i.$$.dirty[0]&1048580&&g&&y&&e.setStreamStyling(y,`${g}.Style`),i.$$.dirty[0]&2097156&&S&&y&&Y()},[m,p,y,b,k,E,R,C,O,o,a,q,l,f,h,d,u,L,w,v,g,S,ee,te]}class V extends e.SvelteComponent{constructor(t){super(),e.init(this,t,he,ge,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},me,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(V,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=V;