@everymatrix/casino-lobby 1.49.1 → 1.50.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 (70) hide show
  1. package/components/{CasinoCalendar-CCQut7OA.js → CasinoCalendar-CU0bhyNM.js} +110 -110
  2. package/components/{CasinoCalendar-B3jjGeXh.cjs → CasinoCalendar-DTrgRvkr.cjs} +5 -5
  3. package/components/CasinoCalendarDailyDetails-C2n3SWH7.cjs +1 -0
  4. package/components/{CasinoCalendarDailyDetails-AzSENZXw.js → CasinoCalendarDailyDetails-CykJzFwP.js} +61 -61
  5. package/components/CasinoCalendarDailyItem-BEkt_1Do.js +220 -0
  6. package/components/CasinoCalendarDailyItem-CQwxWA_v.cjs +1 -0
  7. package/components/CasinoCategoriesSlider-Buv5zR45.cjs +1 -0
  8. package/components/{CasinoCategoriesSlider-Dd30AvK0.js → CasinoCategoriesSlider-_yDrcbTO.js} +38 -38
  9. package/components/CasinoCollectionsProviders-D4JZYg7_.cjs +1 -0
  10. package/components/{CasinoCollectionsProviders-Cc1u_orw.js → CasinoCollectionsProviders-qOKabkUt.js} +2 -2
  11. package/components/{CasinoFavoritesSection-j7VNOnAg.js → CasinoFavoritesSection-BrsEOslo.js} +18 -18
  12. package/components/CasinoFavoritesSection-NO1j-7mE.cjs +1 -0
  13. package/components/CasinoFilter-Cf4cNc7k.cjs +1 -0
  14. package/components/{CasinoFilter-BpyfHAnH.js → CasinoFilter-mUcHYwDN.js} +39 -39
  15. package/components/{CasinoGamePage-BLWJ4xsU.js → CasinoGamePage-7LZuh3F5.js} +1337 -1329
  16. package/components/CasinoGamePage-DsYb8vKH.cjs +18 -0
  17. package/components/{CasinoGameThumbnail-EBuJE9IZ.js → CasinoGameThumbnail-4nj8cja2.js} +82 -82
  18. package/components/CasinoGameThumbnail-DT8kcpDh.cjs +38 -0
  19. package/components/{CasinoGamesCategorySection-DXn5u5SK.js → CasinoGamesCategorySection-CnOh62zY.js} +534 -524
  20. package/components/CasinoGamesCategorySection-JbKTC4fO.cjs +1 -0
  21. package/components/CasinoJackpotBanner-C1EEittB.cjs +1 -0
  22. package/components/{CasinoJackpotBanner-CJJFsnyb.js → CasinoJackpotBanner-uqcCImgm.js} +2 -2
  23. package/components/CasinoLastPlayedSection-BbpHwVio.cjs +1 -0
  24. package/components/{CasinoLastPlayedSection-bvzxolz1.js → CasinoLastPlayedSection-CDiGo0Qz.js} +3 -3
  25. package/components/CasinoLobby-CQRwnMOa.cjs +1 -0
  26. package/components/{CasinoLobby-BPSflitf.js → CasinoLobby-CyZPXk4c.js} +7 -7
  27. package/components/CasinoModal-BAtB2Zp0.cjs +1 -0
  28. package/components/{CasinoModal-lLGEeGcU.js → CasinoModal-BP6PqH63.js} +2 -2
  29. package/components/CasinoMostPlayedSection-BKHWbGbu.cjs +1 -0
  30. package/components/{CasinoMostPlayedSection-eQH77h-f.js → CasinoMostPlayedSection-rtUmTTeg.js} +17 -17
  31. package/components/CasinoMyGames-DLUbkmuj.cjs +1 -0
  32. package/components/{CasinoMyGames-BJX2ZAvW.js → CasinoMyGames-DoyRc7uz.js} +44 -44
  33. package/components/{CasinoPage-Bq3eE915.js → CasinoPage-DdBraeHA.js} +188 -188
  34. package/components/CasinoPage-w4BcVJtb.cjs +1 -0
  35. package/components/{CasinoRandomGame-DiITGB_u.cjs → CasinoRandomGame-DyKtBBfl.cjs} +2 -2
  36. package/components/{CasinoRandomGame-DGD52sa7.js → CasinoRandomGame-qxTb-XNd.js} +15 -15
  37. package/components/CasinoSearch-B4KK-d_w.cjs +1 -0
  38. package/components/{CasinoSearch-DlG1jylC.js → CasinoSearch-DJA6Cl2Z.js} +90 -90
  39. package/components/CasinoSlider-CPgcncvZ.cjs +1 -0
  40. package/components/{CasinoSlider-CyXzUPtq.js → CasinoSlider-Dcowmwyl.js} +56 -56
  41. package/components/{CasinoSort-D1UmVqPT.js → CasinoSort-BU-2yzMG.js} +23 -23
  42. package/components/CasinoSort-fDJhfT-5.cjs +1 -0
  43. package/components/CasinoWinners-BT42Al2t.cjs +1 -0
  44. package/components/{CasinoWinners-DSCWZZgk.js → CasinoWinners-DyBdvsh8.js} +49 -49
  45. package/components/{GeneralAnimationLoading-DmhAiTlH.cjs → GeneralAnimationLoading-COOEMnWE.cjs} +1 -1
  46. package/components/{GeneralAnimationLoading-DE8HSm4C.js → GeneralAnimationLoading-Id2HhvsJ.js} +1 -1
  47. package/es2015/casino-lobby.cjs +1 -1
  48. package/es2015/casino-lobby.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CasinoCalendarDailyDetails-D1jKEWfR.cjs +0 -1
  51. package/components/CasinoCalendarDailyItem-DD924Zcr.js +0 -220
  52. package/components/CasinoCalendarDailyItem-zl4-e9DC.cjs +0 -1
  53. package/components/CasinoCategoriesSlider-DI2g7-y8.cjs +0 -1
  54. package/components/CasinoCollectionsProviders-CHDbSVYn.cjs +0 -1
  55. package/components/CasinoFavoritesSection-Co24_74o.cjs +0 -1
  56. package/components/CasinoFilter-DXA7jKT_.cjs +0 -1
  57. package/components/CasinoGamePage-CCbldgKZ.cjs +0 -18
  58. package/components/CasinoGameThumbnail-DNpT4OO7.cjs +0 -38
  59. package/components/CasinoGamesCategorySection-B2JOakf0.cjs +0 -1
  60. package/components/CasinoJackpotBanner-AjhcDuUc.cjs +0 -1
  61. package/components/CasinoLastPlayedSection-Cey1ENpO.cjs +0 -1
  62. package/components/CasinoLobby-B0BMaElu.cjs +0 -1
  63. package/components/CasinoModal-B71hMJhL.cjs +0 -1
  64. package/components/CasinoMostPlayedSection-B6vs4hfK.cjs +0 -1
  65. package/components/CasinoMyGames-DirVyeaV.cjs +0 -1
  66. package/components/CasinoPage--saBxGwI.cjs +0 -1
  67. package/components/CasinoSearch-3NrItprI.cjs +0 -1
  68. package/components/CasinoSlider-Cyun8L26.cjs +0 -1
  69. package/components/CasinoSort-ersVtC7e.cjs +0 -1
  70. package/components/CasinoWinners-CflzKW0N.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { I as He, $ as Oe, S as qe, i as We, f as T, c as Ue, s as Ve, b as Je, e as y, q as N, E as le, u as g, L as ee, d as j, v as S, U as ie, w as J, C as ce, j as I, R as Ze, J as Ye, o as Xe, r as O, A as q, m as ue, p as he, F as ye, B as Ke, M as d, O as Qe } from "./CasinoCalendar-CCQut7OA.js";
2
- import "./CasinoGamesCategorySection-DXn5u5SK.js";
3
- import { h as Q } from "./CasinoGamePage-BLWJ4xsU.js";
1
+ import { I as He, $ as Oe, S as qe, i as We, f as T, c as Ue, s as Ve, b as Je, e as y, q as N, E as le, u as f, L as ee, d as j, v as S, U as ie, w as J, C as ce, j as I, R as Ze, J as Ye, o as Xe, r as O, A as q, m as ue, p as he, F as ye, B as Ke, M as d, O as Qe } from "./CasinoCalendar-CU0bhyNM.js";
2
+ import "./CasinoGamesCategorySection-CnOh62zY.js";
3
+ import { h as Q } from "./CasinoGamePage-7LZuh3F5.js";
4
4
  function de(a, e) {
5
5
  He(a, e);
6
6
  }
7
7
  function $e(a) {
8
8
  Oe.set(a);
9
9
  }
10
- const fe = {
10
+ const me = {
11
11
  en: {
12
12
  recentSearch: "Recent search",
13
13
  placeHolderSearchGames: "Search for Games",
@@ -181,20 +181,20 @@ const fe = {
181
181
  }
182
182
  };
183
183
  function et(a) {
184
- Je(a, "svelte-1f7w2nd", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emfe-w-color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
184
+ Je(a, "svelte-8vixmz", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
185
185
  }
186
- function me(a, e, t) {
186
+ function ge(a, e, t) {
187
187
  const n = a.slice();
188
188
  return n[53] = e[t], n;
189
189
  }
190
- function ge(a) {
190
+ function fe(a) {
191
191
  let e, t = (
192
192
  /*$_*/
193
193
  a[20]("cancel") + ""
194
194
  ), n, o, l, s;
195
195
  return {
196
196
  c() {
197
- e = y("small"), n = O(t), g(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
197
+ e = y("small"), n = O(t), f(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
198
198
  (a[12] ? "NotVisible" : ""));
199
199
  },
200
200
  m(i, c) {
@@ -210,7 +210,7 @@ function ge(a) {
210
210
  1048576 && t !== (t = /*$_*/
211
211
  i[20]("cancel") + "") && q(n, t), c[0] & /*searchCancelled*/
212
212
  4096 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
213
- (i[12] ? "NotVisible" : "")) && g(e, "class", o);
213
+ (i[12] ? "NotVisible" : "")) && f(e, "class", o);
214
214
  },
215
215
  d(i) {
216
216
  i && I(e), l = !1, s();
@@ -219,7 +219,7 @@ function ge(a) {
219
219
  }
220
220
  function tt(a) {
221
221
  let e, t, n, o;
222
- function l(u, m) {
222
+ function l(u, g) {
223
223
  if (
224
224
  /*searchActive*/
225
225
  u[16] == !0 && /*searchValue*/
@@ -233,29 +233,29 @@ function tt(a) {
233
233
  let s = l(a), i = s && s(a), c = (
234
234
  /*searchCancelled*/
235
235
  a[12] === !1 && we(a)
236
- ), f = (
236
+ ), m = (
237
237
  /*searchValue*/
238
238
  a[11].length >= 2 && /*searchArray*/
239
239
  a[14].length == 0 && ve(a)
240
240
  );
241
241
  return {
242
242
  c() {
243
- i && i.c(), e = N(), t = y("div"), c && c.c(), n = N(), f && f.c(), g(t, "class", o = "SearchResultsContainer " + /*searchActive*/
243
+ i && i.c(), e = N(), t = y("div"), c && c.c(), n = N(), m && m.c(), f(t, "class", o = "SearchResultsContainer " + /*searchActive*/
244
244
  (a[16] == !0 ? "" : "NotVisible"));
245
245
  },
246
- m(u, m) {
247
- i && i.m(u, m), j(u, e, m), j(u, t, m), c && c.m(t, null), S(t, n), f && f.m(t, null);
246
+ m(u, g) {
247
+ i && i.m(u, g), j(u, e, g), j(u, t, g), c && c.m(t, null), S(t, n), m && m.m(t, null);
248
248
  },
249
- p(u, m) {
250
- s === (s = l(u)) && i ? i.p(u, m) : (i && i.d(1), i = s && s(u), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
251
- u[12] === !1 ? c ? c.p(u, m) : (c = we(u), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
249
+ p(u, g) {
250
+ s === (s = l(u)) && i ? i.p(u, g) : (i && i.d(1), i = s && s(u), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
251
+ u[12] === !1 ? c ? c.p(u, g) : (c = we(u), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
252
252
  u[11].length >= 2 && /*searchArray*/
253
- u[14].length == 0 ? f ? f.p(u, m) : (f = ve(u), f.c(), f.m(t, null)) : f && (f.d(1), f = null), m[0] & /*searchActive*/
253
+ u[14].length == 0 ? m ? m.p(u, g) : (m = ve(u), m.c(), m.m(t, null)) : m && (m.d(1), m = null), g[0] & /*searchActive*/
254
254
  65536 && o !== (o = "SearchResultsContainer " + /*searchActive*/
255
- (u[16] == !0 ? "" : "NotVisible")) && g(t, "class", o);
255
+ (u[16] == !0 ? "" : "NotVisible")) && f(t, "class", o);
256
256
  },
257
257
  d(u) {
258
- u && (I(e), I(t)), i && i.d(u), c && c.d(), f && f.d();
258
+ u && (I(e), I(t)), i && i.d(u), c && c.d(), m && m.d();
259
259
  }
260
260
  };
261
261
  }
@@ -266,7 +266,7 @@ function at(a) {
266
266
  ), n;
267
267
  return {
268
268
  c() {
269
- e = y("p"), n = O(t), g(e, "class", "LoadingContent");
269
+ e = y("p"), n = O(t), f(e, "class", "LoadingContent");
270
270
  },
271
271
  m(o, l) {
272
272
  j(o, e, l), S(e, n);
@@ -288,7 +288,7 @@ function nt(a) {
288
288
  ), n;
289
289
  return {
290
290
  c() {
291
- e = y("p"), n = O(t), g(e, "class", "SearchMessage");
291
+ e = y("p"), n = O(t), f(e, "class", "SearchMessage");
292
292
  },
293
293
  m(o, l) {
294
294
  j(o, e, l), S(e, n);
@@ -335,7 +335,7 @@ function pe(a) {
335
335
  ), n;
336
336
  return {
337
337
  c() {
338
- e = y("p"), n = O(t), g(e, "class", "SearchMessage");
338
+ e = y("p"), n = O(t), f(e, "class", "SearchMessage");
339
339
  },
340
340
  m(o, l) {
341
341
  j(o, e, l), S(e, n);
@@ -360,19 +360,19 @@ function _e(a) {
360
360
  );
361
361
  return {
362
362
  c() {
363
- e = y("div"), i && i.c(), t = N(), n = y("p"), l = O(o), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
363
+ e = y("div"), i && i.c(), t = N(), n = y("p"), l = O(o), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
364
364
  (a[10] == "true" ? "WithIcon" : ""));
365
365
  },
366
- m(c, f) {
367
- j(c, e, f), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
366
+ m(c, m) {
367
+ j(c, e, m), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
368
368
  },
369
- p(c, f) {
369
+ p(c, m) {
370
370
  /*notfoundicon*/
371
- c[10] === "true" ? i || (i = Se(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), f[0] & /*$_*/
371
+ c[10] === "true" ? i || (i = Se(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
372
372
  1048576 && o !== (o = /*$_*/
373
- c[20]("noRecentSearches") + "") && q(l, o), f[0] & /*notfoundicon*/
373
+ c[20]("noRecentSearches") + "") && q(l, o), m[0] & /*notfoundicon*/
374
374
  1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
375
- (c[10] == "true" ? "WithIcon" : "")) && g(e, "class", s);
375
+ (c[10] == "true" ? "WithIcon" : "")) && f(e, "class", s);
376
376
  },
377
377
  d(c) {
378
378
  c && I(e), i && i.d();
@@ -383,7 +383,7 @@ function Se(a) {
383
383
  let e;
384
384
  return {
385
385
  c() {
386
- e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emfe-w-color-contrast, #131313)"></path></svg>', g(e, "class", "SearchErrorIcon");
386
+ e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
387
387
  },
388
388
  m(t, n) {
389
389
  j(t, e, n);
@@ -399,7 +399,7 @@ function we(a) {
399
399
  a[14]
400
400
  ), n = [];
401
401
  for (let o = 0; o < t.length; o += 1)
402
- n[o] = be(me(a, t, o));
402
+ n[o] = be(ge(a, t, o));
403
403
  return {
404
404
  c() {
405
405
  for (let o = 0; o < n.length; o += 1)
@@ -420,7 +420,7 @@ function we(a) {
420
420
  );
421
421
  let s;
422
422
  for (s = 0; s < t.length; s += 1) {
423
- const i = me(o, t, s);
423
+ const i = ge(o, t, s);
424
424
  n[s] ? n[s].p(i, l) : (n[s] = be(i), n[s].c(), n[s].m(e.parentNode, e));
425
425
  }
426
426
  for (; s < n.length; s += 1)
@@ -434,7 +434,7 @@ function we(a) {
434
434
  };
435
435
  }
436
436
  function be(a) {
437
- let e, t, n, o, l, s, i, c, f, u, m, k;
437
+ let e, t, n, o, l, s, i, c, m, u, g, k;
438
438
  return {
439
439
  c() {
440
440
  var h;
@@ -474,14 +474,14 @@ function be(a) {
474
474
  /*game*/
475
475
  a[53].advancedTags
476
476
  )), d(e, "gamecellsize", c = /*game*/
477
- a[53].cellSize), d(e, "gameid", f = /*game*/
477
+ a[53].cellSize), d(e, "gameid", m = /*game*/
478
478
  a[53].id), d(
479
479
  e,
480
480
  "showgamename",
481
481
  /*showgamename*/
482
482
  a[6]
483
483
  ), d(e, "gamefunmode", u = /*game*/
484
- a[53].hasFunMode), d(e, "gamefavorite", m = /*game*/
484
+ a[53].hasFunMode), d(e, "gamefavorite", g = /*game*/
485
485
  a[53].isFavorite), d(e, "livelobbyendpoint", k = /*game*/
486
486
  a[53].details ? (
487
487
  /*game*/
@@ -567,8 +567,8 @@ function be(a) {
567
567
  )) && d(e, "gametag", i), _[0] & /*searchArray*/
568
568
  16384 && c !== (c = /*game*/
569
569
  h[53].cellSize) && d(e, "gamecellsize", c), _[0] & /*searchArray*/
570
- 16384 && f !== (f = /*game*/
571
- h[53].id) && d(e, "gameid", f), _[0] & /*showgamename*/
570
+ 16384 && m !== (m = /*game*/
571
+ h[53].id) && d(e, "gameid", m), _[0] & /*showgamename*/
572
572
  64 && d(
573
573
  e,
574
574
  "showgamename",
@@ -577,8 +577,8 @@ function be(a) {
577
577
  ), _[0] & /*searchArray*/
578
578
  16384 && u !== (u = /*game*/
579
579
  h[53].hasFunMode) && d(e, "gamefunmode", u), _[0] & /*searchArray*/
580
- 16384 && m !== (m = /*game*/
581
- h[53].isFavorite) && d(e, "gamefavorite", m), _[0] & /*searchArray*/
580
+ 16384 && g !== (g = /*game*/
581
+ h[53].isFavorite) && d(e, "gamefavorite", g), _[0] & /*searchArray*/
582
582
  16384 && k !== (k = /*game*/
583
583
  h[53].details ? (
584
584
  /*game*/
@@ -627,30 +627,30 @@ function ve(a) {
627
627
  ), l, s, i, c = (
628
628
  /*$_*/
629
629
  a[20]("notFoundText") + ""
630
- ), f, u, m = (
630
+ ), m, u, g = (
631
631
  /*notfoundicon*/
632
632
  a[10] === "true" && ke()
633
633
  );
634
634
  return {
635
635
  c() {
636
- e = y("div"), m && m.c(), t = N(), n = y("p"), l = O(o), s = N(), i = y("p"), f = O(c), g(n, "class", "SearchMessage"), g(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
636
+ e = y("div"), g && g.c(), t = N(), n = y("p"), l = O(o), s = N(), i = y("p"), m = O(c), f(n, "class", "SearchMessage"), f(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
637
637
  (a[10] == "true" ? "WithIcon" : ""));
638
638
  },
639
639
  m(k, h) {
640
- j(k, e, h), m && m.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, f);
640
+ j(k, e, h), g && g.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, m);
641
641
  },
642
642
  p(k, h) {
643
643
  /*notfoundicon*/
644
- k[10] === "true" ? m || (m = ke(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), h[0] & /*$_*/
644
+ k[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), h[0] & /*$_*/
645
645
  1048576 && o !== (o = /*$_*/
646
646
  k[20]("notFound") + "") && q(l, o), h[0] & /*$_*/
647
647
  1048576 && c !== (c = /*$_*/
648
- k[20]("notFoundText") + "") && q(f, c), h[0] & /*notfoundicon*/
648
+ k[20]("notFoundText") + "") && q(m, c), h[0] & /*notfoundicon*/
649
649
  1024 && u !== (u = "ResultsContainerError " + /*notfoundicon*/
650
- (k[10] == "true" ? "WithIcon" : "")) && g(e, "class", u);
650
+ (k[10] == "true" ? "WithIcon" : "")) && f(e, "class", u);
651
651
  },
652
652
  d(k) {
653
- k && I(e), m && m.d();
653
+ k && I(e), g && g.d();
654
654
  }
655
655
  };
656
656
  }
@@ -658,7 +658,7 @@ function ke(a) {
658
658
  let e;
659
659
  return {
660
660
  c() {
661
- e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emfe-w-color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emfe-w-color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emfe-w-color-contrast, #131313)"></path></svg>', g(e, "class", "SearchErrorIcon");
661
+ e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
662
662
  },
663
663
  m(t, n) {
664
664
  j(t, e, n);
@@ -669,9 +669,9 @@ function ke(a) {
669
669
  };
670
670
  }
671
671
  function ot(a) {
672
- let e, t, n, o, l, s, i, c, f, u, m, k, h, _, x, P, B, U, D, M, v = (
672
+ let e, t, n, o, l, s, i, c, m, u, g, k, h, _, x, P, B, U, D, M, v = (
673
673
  /*cancelbutton*/
674
- a[9] === "true" && ge(a)
674
+ a[9] === "true" && fe(a)
675
675
  );
676
676
  function W(b, L) {
677
677
  return (
@@ -679,15 +679,15 @@ function ot(a) {
679
679
  b[17] ? at : tt
680
680
  );
681
681
  }
682
- let E = W(a), F = E(a);
682
+ let z = W(a), F = z(a);
683
683
  return {
684
684
  c() {
685
- e = y("div"), t = y("div"), n = y("div"), o = y("div"), o.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), f = y("span"), u = le("svg"), m = le("path"), h = N(), v && v.c(), x = N(), P = y("div"), U = N(), F.c(), g(o, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
686
- a[20]("placeHolderSearchGames")), g(s, "maxlength", st), g(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(m, "stroke", "#717171"), g(m, "stroke-width", "2"), g(m, "stroke-linecap", "round"), g(m, "stroke-linejoin", "round"), g(u, "width", "11"), g(u, "height", "11"), g(u, "fill", "none"), g(u, "xmlns", "http://www.w3.org/2000/svg"), g(f, "class", k = "SearchClearButton " + /*cancelbutton*/
685
+ e = y("div"), t = y("div"), n = y("div"), o = y("div"), o.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), m = y("span"), u = le("svg"), g = le("path"), h = N(), v && v.c(), x = N(), P = y("div"), U = N(), F.c(), f(o, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
686
+ a[20]("placeHolderSearchGames")), f(s, "maxlength", st), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(u, "width", "11"), f(u, "height", "11"), f(u, "fill", "none"), f(u, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", k = "SearchClearButton " + /*cancelbutton*/
687
687
  (a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
688
- (a[11].length != 0 ? "" : "NotVisible")), g(n, "class", _ = "Search " + /*searchCancelled*/
689
- (a[12] ? "" : "SearchAnimation")), g(t, "class", "SearchWrap"), g(P, "class", B = /*cancelbutton*/
690
- a[9] != "true" ? "OverlayCancel" : ""), g(e, "class", (ee(
688
+ (a[11].length != 0 ? "" : "NotVisible")), f(n, "class", _ = "Search " + /*searchCancelled*/
689
+ (a[12] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", B = /*cancelbutton*/
690
+ a[9] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
691
691
  /*userAgent*/
692
692
  a[21]
693
693
  ) !== "PC" ? "" : "Desktop") + " CasinoSearch");
@@ -697,7 +697,7 @@ function ot(a) {
697
697
  s,
698
698
  /*searchValue*/
699
699
  a[11]
700
- ), a[33](s), S(n, c), S(n, f), S(f, u), S(u, m), S(n, h), v && v.m(n, null), S(e, x), S(e, P), S(e, U), F.m(e, null), a[36](e), D || (M = [
700
+ ), a[33](s), S(n, c), S(n, m), S(m, u), S(u, g), S(n, h), v && v.m(n, null), S(e, x), S(e, P), S(e, U), F.m(e, null), a[36](e), D || (M = [
701
701
  J(
702
702
  s,
703
703
  "input",
@@ -711,7 +711,7 @@ function ot(a) {
711
711
  a[22]
712
712
  ),
713
713
  J(
714
- f,
714
+ m,
715
715
  "click",
716
716
  /*click_handler*/
717
717
  a[34]
@@ -727,7 +727,7 @@ function ot(a) {
727
727
  p(b, L) {
728
728
  L[0] & /*$_*/
729
729
  1048576 && i !== (i = /*$_*/
730
- b[20]("placeHolderSearchGames")) && g(s, "placeholder", i), L[0] & /*searchValue*/
730
+ b[20]("placeHolderSearchGames")) && f(s, "placeholder", i), L[0] & /*searchValue*/
731
731
  2048 && s.value !== /*searchValue*/
732
732
  b[11] && ie(
733
733
  s,
@@ -736,12 +736,12 @@ function ot(a) {
736
736
  ), L[0] & /*cancelbutton, searchValue*/
737
737
  2560 && k !== (k = "SearchClearButton " + /*cancelbutton*/
738
738
  (b[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
739
- (b[11].length != 0 ? "" : "NotVisible")) && g(f, "class", k), /*cancelbutton*/
740
- b[9] === "true" ? v ? v.p(b, L) : (v = ge(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), L[0] & /*searchCancelled*/
739
+ (b[11].length != 0 ? "" : "NotVisible")) && f(m, "class", k), /*cancelbutton*/
740
+ b[9] === "true" ? v ? v.p(b, L) : (v = fe(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), L[0] & /*searchCancelled*/
741
741
  4096 && _ !== (_ = "Search " + /*searchCancelled*/
742
- (b[12] ? "" : "SearchAnimation")) && g(n, "class", _), L[0] & /*cancelbutton*/
742
+ (b[12] ? "" : "SearchAnimation")) && f(n, "class", _), L[0] & /*cancelbutton*/
743
743
  512 && B !== (B = /*cancelbutton*/
744
- b[9] != "true" ? "OverlayCancel" : "") && g(P, "class", B), E === (E = W(b)) && F ? F.p(b, L) : (F.d(1), F = E(b), F && (F.c(), F.m(e, null)));
744
+ b[9] != "true" ? "OverlayCancel" : "") && f(P, "class", B), z === (z = W(b)) && F ? F.p(b, L) : (F.d(1), F = z(b), F && (F.c(), F.m(e, null)));
745
745
  },
746
746
  i: ce,
747
747
  o: ce,
@@ -754,7 +754,7 @@ let st = 50;
754
754
  function lt(a, e, t) {
755
755
  let n;
756
756
  Ye(a, Qe, (r) => t(20, n = r));
757
- let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: f = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: m = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: x = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: B = "true" } = e, { notfoundicon: U = "false" } = e, D = window.navigator.userAgent, M = [], v = [], W = {}, E = "", F, b = !0, L = !1, G = !1, A, Z = !1, Y, X, te = [];
757
+ let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: x = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: B = "true" } = e, { notfoundicon: U = "false" } = e, D = window.navigator.userAgent, M = [], v = [], W = {}, z = "", F, b = !0, L = !1, G = !1, A, Z = !1, Y, X, te = [];
758
758
  const Re = () => {
759
759
  fetch(x).then((p) => p.json()).then((p) => {
760
760
  Object.keys(p).forEach((w) => {
@@ -764,27 +764,27 @@ function lt(a, e, t) {
764
764
  console.log(p);
765
765
  });
766
766
  };
767
- Object.keys(fe).forEach((r) => {
768
- de(r, fe[r]);
767
+ Object.keys(me).forEach((r) => {
768
+ de(r, me[r]);
769
769
  });
770
770
  const ae = (r) => {
771
- r.data && r.data.type == "SearchedItemClicked" && Ee(r.data.gameId), r.data.type == "UserSessionID" && (t(18, Y = r.data.session), t(19, X = r.data.userid), t(31, Z = !0)), r.data.type == "CategoryChange" && K();
771
+ r.data && r.data.type == "SearchedItemClicked" && ze(r.data.gameId), r.data.type == "UserSessionID" && (t(18, Y = r.data.session), t(19, X = r.data.userid), t(31, Z = !0)), r.data.type == "CategoryChange" && K();
772
772
  }, ne = () => {
773
- if (t(12, b = !1), t(16, L = !0), o && l && c && E.length < 2) {
773
+ if (t(12, b = !1), t(16, L = !0), o && l && c && z.length < 2) {
774
774
  t(14, M = []);
775
775
  let r = localStorage.getItem("searchedGamesWds_casino"), p = [];
776
776
  r && (p = r.split(","));
777
777
  let w = [], R = 0, C = p.length;
778
778
  if (C > 0) {
779
779
  for (R = 0; R < C; R++) {
780
- let z = new URL(`${o}/v1/casino/games/${p[R]}`);
781
- z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", ee(D)), w.push(Fe(z, p[R]));
780
+ let E = new URL(`${o}/v1/casino/games/${p[R]}`);
781
+ E.searchParams.append("language", c), E.searchParams.append("datasource", l), E.searchParams.append("platform", ee(D)), w.push(Fe(E, p[R]));
782
782
  }
783
- Promise.all(w).then((z) => {
784
- z = z.filter(function(H) {
783
+ Promise.all(w).then((E) => {
784
+ E = E.filter(function(H) {
785
785
  return !!H;
786
- }), t(14, M = z.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
787
- }).catch((z) => {
786
+ }), t(14, M = E.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
787
+ }).catch((E) => {
788
788
  V("searchError", "SearchWidget");
789
789
  });
790
790
  }
@@ -822,19 +822,19 @@ function lt(a, e, t) {
822
822
  if ((r == null ? void 0 : r.length) === 0) return "";
823
823
  let p, w = 99999999999, R;
824
824
  const C = new Date(Date.now());
825
- return r.forEach((z, H) => {
826
- const Ae = new Date(z.schedules[0].startTime), $ = new Date(z.schedules[0].endTime);
825
+ return r.forEach((E, H) => {
826
+ const Ae = new Date(E.schedules[0].startTime), $ = new Date(E.schedules[0].endTime);
827
827
  Q($).diff(C) < w && (w = Q($).diff(C), R = H), Q(C).isAfter(Ae) && Q(C).isBefore($) && (p = r[R].name);
828
828
  }), p;
829
- }, Ee = (r) => {
829
+ }, ze = (r) => {
830
830
  if (v = localStorage.getItem("searchedGamesWds_casino"), v ? v = v.split(",") : v = [], v.indexOf(r) === -1) {
831
831
  let p;
832
832
  v.unshift(r), p = v.join(","), localStorage.setItem("searchedGamesWds_casino", p);
833
833
  }
834
834
  }, K = () => {
835
- t(11, E = ""), t(12, b = !0), t(17, G = !1), t(14, M = []), t(16, L = !1), se(L);
835
+ t(11, z = ""), t(12, b = !0), t(17, G = !1), t(14, M = []), t(16, L = !1), se(L);
836
836
  }, oe = () => {
837
- t(11, E = ""), F.focus();
837
+ t(11, z = ""), F.focus();
838
838
  }, se = (r) => {
839
839
  window.postMessage(
840
840
  {
@@ -843,11 +843,11 @@ function lt(a, e, t) {
843
843
  },
844
844
  window.location.href
845
845
  );
846
- }, ze = () => {
846
+ }, Ee = () => {
847
847
  $e(c);
848
848
  }, Ge = () => {
849
849
  let r = document.createElement("style");
850
- r.innerHTML = f, A.appendChild(r);
850
+ r.innerHTML = m, A.appendChild(r);
851
851
  }, Ne = () => {
852
852
  let r = new URL(u), p = document.createElement("style");
853
853
  fetch(r.href).then((w) => w.text()).then((w) => {
@@ -863,7 +863,7 @@ function lt(a, e, t) {
863
863
  window.removeEventListener("message", ae);
864
864
  }));
865
865
  function xe() {
866
- E = this.value, t(11, E);
866
+ z = this.value, t(11, z);
867
867
  }
868
868
  function Pe(r) {
869
869
  ue[r ? "unshift" : "push"](() => {
@@ -877,38 +877,38 @@ function lt(a, e, t) {
877
877
  });
878
878
  }
879
879
  return a.$$set = (r) => {
880
- "endpoint" in r && t(0, o = r.endpoint), "datasource" in r && t(27, l = r.datasource), "session" in r && t(28, s = r.session), "userid" in r && t(29, i = r.userid), "lang" in r && t(1, c = r.lang), "clientstyling" in r && t(2, f = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "integratedgameframedesktop" in r && t(4, m = r.integratedgameframedesktop), "integratedgameframemobile" in r && t(5, k = r.integratedgameframemobile), "showgamename" in r && t(6, h = r.showgamename), "gamepagemodalurl" in r && t(7, _ = r.gamepagemodalurl), "translationurl" in r && t(30, x = r.translationurl), "showfavorites" in r && t(8, P = r.showfavorites), "cancelbutton" in r && t(9, B = r.cancelbutton), "notfoundicon" in r && t(10, U = r.notfoundicon);
880
+ "endpoint" in r && t(0, o = r.endpoint), "datasource" in r && t(27, l = r.datasource), "session" in r && t(28, s = r.session), "userid" in r && t(29, i = r.userid), "lang" in r && t(1, c = r.lang), "clientstyling" in r && t(2, m = r.clientstyling), "clientstylingurl" in r && t(3, u = r.clientstylingurl), "integratedgameframedesktop" in r && t(4, g = r.integratedgameframedesktop), "integratedgameframemobile" in r && t(5, k = r.integratedgameframemobile), "showgamename" in r && t(6, h = r.showgamename), "gamepagemodalurl" in r && t(7, _ = r.gamepagemodalurl), "translationurl" in r && t(30, x = r.translationurl), "showfavorites" in r && t(8, P = r.showfavorites), "cancelbutton" in r && t(9, B = r.cancelbutton), "notfoundicon" in r && t(10, U = r.notfoundicon);
881
881
  }, a.$$.update = () => {
882
882
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
883
883
  134223875)
884
- if (E.length >= 2) {
884
+ if (z.length >= 2) {
885
885
  const r = new URL(`${o}/v1/casino/games`);
886
- r.searchParams.append("datasource", l), r.searchParams.append("expand", "vendor"), r.searchParams.append("platform", ee(D)), r.searchParams.append("language", c), r.searchParams.append("pagination", "offset=0,limit=30"), r.searchParams.append("filter", `name=${E}`), Le(r).then((p) => {
886
+ r.searchParams.append("datasource", l), r.searchParams.append("expand", "vendor"), r.searchParams.append("platform", ee(D)), r.searchParams.append("language", c), r.searchParams.append("pagination", "offset=0,limit=30"), r.searchParams.append("filter", `name=${z}`), Le(r).then((p) => {
887
887
  t(14, M = p.items.map((w) => (w.isFavorite = re(w.id), w)));
888
888
  });
889
889
  } else
890
890
  b || ne();
891
891
  a.$$.dirty[0] & /*lang*/
892
- 2 && c && ze(), a.$$.dirty[0] & /*translationurl*/
892
+ 2 && c && Ee(), a.$$.dirty[0] & /*translationurl*/
893
893
  1073741824 && x && Re(), a.$$.dirty[0] & /*session, userid*/
894
894
  805306368 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
895
895
  256 | a.$$.dirty[1] & /*isLoggedIn*/
896
896
  1 && P && Z && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
897
- 8196 && f && A && Ge(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
897
+ 8196 && m && A && Ge(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
898
898
  8200 && u && A && Ne();
899
899
  }, [
900
900
  o,
901
901
  c,
902
- f,
903
- u,
904
902
  m,
903
+ u,
904
+ g,
905
905
  k,
906
906
  h,
907
907
  _,
908
908
  P,
909
909
  B,
910
910
  U,
911
- E,
911
+ z,
912
912
  b,
913
913
  A,
914
914
  M,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-DTrgRvkr.cjs");function ye({withLocale:i,translations:e}){t.$locale.subscribe(r=>{r==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function U(i,e){t.addMessages(i,e)}function we(i){t.$locale.set(i)}const Y={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş",register:"Kayıt",deposit:"Para Yatır"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata"},"pt-br":{login:"Entrem",register:"Registro",deposit:"Depósito"},"es-mx":{login:"Entrar",register:"Registro",deposit:"Depósito"}};function be(i){t.append_styles(i,"svelte-1lgwoo3",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}')}function P(i,e,r){const o=i.slice();return o[49]=e[r],o[51]=r,o}function K(i,e,r){const o=i.slice();return o[52]=e[r],o}function X(i,e,r){const o=i.slice();return o[55]=e[r],o[57]=r,o}function J(i){let e=[],r=new Map,o,l=t.ensure_array_like(i[9]);const s=n=>n[49].id;for(let n=0;n<l.length;n+=1){let c=P(i,l,n),m=s(c);r.set(m,e[n]=te(m,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();o=t.empty()},m(n,c){for(let m=0;m<e.length;m+=1)e[m]&&e[m].m(n,c);t.insert(n,o,c)},p(n,c){c[0]&77775&&(l=t.ensure_array_like(n[9]),e=t.update_keyed_each(e,c,s,1,n,l,r,o.parentNode,t.destroy_block,te,o,P))},d(n){n&&t.detach(o);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function ve(i){let e,r=i[49].name+"",o;return{c(){e=t.element("button"),o=t.text(r),t.attr(e,"class","CategoryButton")},m(l,s){t.insert(l,e,s),t.append(e,o)},p(l,s){s[0]&512&&r!==(r=l[49].name+"")&&t.set_data(o,r)},d(l){l&&t.detach(e)}}}function _e(i){let e,r=i[49].label+"",o,l;return{c(){e=t.element("a"),o=t.text(r),t.attr(e,"href",l=i[49].path)},m(s,n){t.insert(s,e,n),t.append(e,o)},p(s,n){n[0]&512&&r!==(r=s[49].label+"")&&t.set_data(o,r),n[0]&512&&l!==(l=s[49].path)&&t.attr(e,"href",l)},d(s){s&&t.detach(e)}}}function Q(i){let e,r=i[10].length>0&&i[2]=="true"&&V(i);return{c(){r&&r.c(),e=t.empty()},m(o,l){r&&r.m(o,l),t.insert(o,e,l)},p(o,l){o[10].length>0&&o[2]=="true"?r?r.p(o,l):(r=V(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(o){o&&t.detach(e),r&&r.d(o)}}}function V(i){let e,r=t.ensure_array_like(i[10]),o=[];for(let l=0;l<r.length;l+=1)o[l]=ee(K(i,r,l));return{c(){e=t.element("ul");for(let l=0;l<o.length;l+=1)o[l].c();t.attr(e,"class","DropDown")},m(l,s){t.insert(l,e,s);for(let n=0;n<o.length;n+=1)o[n]&&o[n].m(e,null)},p(l,s){if(s[0]&10176){r=t.ensure_array_like(l[10]);let n;for(n=0;n<r.length;n+=1){const c=K(l,r,n);o[n]?o[n].p(c,s):(o[n]=ee(c),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},d(l){l&&t.detach(e),t.destroy_each(o,l)}}}function Z(i){var C;let e,r,o=((C=i[55])==null?void 0:C.name)+"",l,s,n,c,m;function v(...f){return i[32](i[49],i[51],i[55],i[57],...f)}return{c(){e=t.element("li"),r=t.element("a"),l=t.text(o),n=t.space(),t.attr(r,"class",s="SubDropDown "+(i[51]==i[6]&&(i[7]==i[57]||i[8]==i[57])?"active":""))},m(f,y){t.insert(f,e,y),t.append(e,r),t.append(r,l),t.append(e,n),c||(m=t.listen(e,"click",v),c=!0)},p(f,y){var _;i=f,y[0]&1024&&o!==(o=((_=i[55])==null?void 0:_.name)+"")&&t.set_data(l,o),y[0]&1984&&s!==(s="SubDropDown "+(i[51]==i[6]&&(i[7]==i[57]||i[8]==i[57])?"active":""))&&t.attr(r,"class",s)},d(f){f&&t.detach(e),c=!1,m()}}}function $(i,e){let r,o,l=e[51]==e[52].index&&Z(e);return{key:i,first:null,c(){r=t.empty(),l&&l.c(),o=t.empty(),this.first=r},m(s,n){t.insert(s,r,n),l&&l.m(s,n),t.insert(s,o,n)},p(s,n){e=s,e[51]==e[52].index?l?l.p(e,n):(l=Z(e),l.c(),l.m(o.parentNode,o)):l&&(l.d(1),l=null)},d(s){s&&(t.detach(r),t.detach(o)),l&&l.d(s)}}}function ee(i){let e=[],r=new Map,o,l=t.ensure_array_like(i[52].items);const s=n=>n[55].id;for(let n=0;n<l.length;n+=1){let c=X(i,l,n),m=s(c);r.set(m,e[n]=$(m,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();o=t.empty()},m(n,c){for(let m=0;m<e.length;m+=1)e[m]&&e[m].m(n,c);t.insert(n,o,c)},p(n,c){c[0]&10176&&(l=t.ensure_array_like(n[52].items),e=t.update_keyed_each(e,c,s,1,n,l,r,o.parentNode,t.destroy_block,$,o,X))},d(n){n&&t.detach(o);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function te(i,e){let r,o,l,s,n,c,m,v,C,f,y;function _(h,b){return h[0]==="headerMain"?_e:ve}let k=_(e),g=k(e),u=e[11][e[51]]==!0&&Q(e);function w(...h){return e[33](e[49],e[51],...h)}return{key:i,first:null,c(){var h,b;r=t.element("li"),o=t.element("div"),l=t.element("img"),c=t.space(),g.c(),m=t.space(),u&&u.c(),v=t.space(),t.attr(l,"class",s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone")),t.src_url_equal(l.src,n=e[16](e[49]))||t.attr(l,"src",n),t.attr(o,"class","CategoryIcon"),t.attr(r,"class",C="CarouselItem "+(((h=e[1])==null?void 0:h.toString().indexOf("$"))>-1?((b=e[1])==null?void 0:b.split("$").pop())==e[49].id.split("$").pop()?"active":"":e[1]==e[49].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu")),t.attr(r,"part","CarouselItem"),this.first=r},m(h,b){t.insert(h,r,b),t.append(r,o),t.append(o,l),t.append(r,c),g.m(r,null),t.append(r,m),u&&u.m(r,null),t.append(r,v),f||(y=t.listen(r,"click",w),f=!0)},p(h,b){var L,R;e=h,b[0]&8&&s!==(s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone"))&&t.attr(l,"class",s),b[0]&512&&!t.src_url_equal(l.src,n=e[16](e[49]))&&t.attr(l,"src",n),k===(k=_(e))&&g?g.p(e,b):(g.d(1),g=k(e),g&&(g.c(),g.m(r,m))),e[11][e[51]]==!0?u?u.p(e,b):(u=Q(e),u.c(),u.m(r,v)):u&&(u.d(1),u=null),b[0]&515&&C!==(C="CarouselItem "+(((L=e[1])==null?void 0:L.toString().indexOf("$"))>-1?((R=e[1])==null?void 0:R.split("$").pop())==e[49].id.split("$").pop()?"active":"":e[1]==e[49].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu"))&&t.attr(r,"class",C)},d(h){h&&t.detach(r),g.d(),u&&u.d(),f=!1,y()}}}function ke(i){let e,r,o,l,s,n,c,m,v,C,f,y,_,k,g,u=i[9].length>0&&J(i);return{c(){e=t.element("div"),r=t.element("div"),o=t.element("div"),o.innerHTML='<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',l=t.space(),s=t.element("div"),n=t.element("ul"),c=t.element("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',m=t.space(),u&&u.c(),v=t.space(),C=t.element("div"),C.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',t.attr(o,"class","CarouselLeftArrow"),t.attr(c,"class","TouchOnly"),t.attr(n,"id","CarouselNav"),t.attr(n,"class","CarouselItems"),t.attr(s,"class","CarouselNavWrap"),t.attr(C,"class","CarouselRightArrow"),t.attr(r,"class",f=`CarouselContainer CarouselContainerMobile ${i[0]==="headerMain"?"CarouselContainerHeaderMain":""}`),t.attr(r,"style",y=i[0]==="headerMain"?"max-width: auto":void 0),t.attr(e,"class",_="CarouselWrapper "+(i[0]==="headerMain"?"CarouselWrapperHeaderMain":""))},m(w,h){t.insert(w,e,h),t.append(e,r),t.append(r,o),t.append(r,l),t.append(r,s),t.append(s,n),t.append(n,c),t.append(n,m),u&&u.m(n,null),i[34](n),i[35](s),t.append(r,v),t.append(r,C),i[37](e),k||(g=[t.listen(o,"click",i[31]),t.listen(C,"click",i[36])],k=!0)},p(w,h){w[9].length>0?u?u.p(w,h):(u=J(w),u.c(),u.m(n,null)):u&&(u.d(1),u=null),h[0]&1&&f!==(f=`CarouselContainer CarouselContainerMobile ${w[0]==="headerMain"?"CarouselContainerHeaderMain":""}`)&&t.attr(r,"class",f),h[0]&1&&y!==(y=w[0]==="headerMain"?"max-width: auto":void 0)&&t.attr(r,"style",y),h[0]&1&&_!==(_="CarouselWrapper "+(w[0]==="headerMain"?"CarouselWrapperHeaderMain":""))&&t.attr(e,"class",_)},i:t.noop,o:t.noop,d(w){w&&t.detach(e),u&&u.d(),i[34](null),i[35](null),i[37](null),k=!1,t.run_all(g)}}}function Fe(i,e,r){let{endpoint:o=""}=e,{datasource:l=""}=e,{onclickeventname:s="defaultEvent"}=e,{actionevent:n="defaultEvent"}=e,{favoritesnumber:c="0"}=e,{location:m=""}=e,{clientstyling:v=""}=e,{clientstylingurl:C=""}=e,{identity:f=""}=e,{translationurl:y=""}=e,{isprimarymenu:_=!1}=e,{issecondarymenu:k=!1}=e,{lang:g=""}=e,{activeindex:u="0"}=e,{showsubgroups:w="false"}=e,{categoriesicon:h="false"}=e,{lobbyiconimage:b=""}=e,{mygamesiconimage:L=""}=e;ye({withLocale:"en",translations:{}});const R=()=>{fetch(y).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{U(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(Y).forEach(a=>{U(a,Y[a])});let H,A,E,W,I,N=[],T=[],j=[],F,z=(a,d,p,D,M)=>{var S;if(!(a.subGroups&&D===null)){if(O(),r(6,A=d),r(6,A),M!="secondary"){window.postMessage({type:n=="CategoryChange"?"CategoryChange":"NavigateTo",buzz:"1",itemId:a.id,index:d,item:a,path:a.path,externalLink:a.externalLink||!1,target:((S=a.attrs)==null?void 0:S.target)||null},window.location.href),r(7,E=null),r(8,W=null);return}r(7,E=D),r(7,E),r(8,W=E),window.postMessage({type:n,itemId:p.id,subIndex:D,subItem:p},window.location.href)}},B=()=>{F.scrollBy({left:-250,behavior:"smooth"})},G=()=>{F.scrollBy({left:250,behavior:"smooth"})};const x=a=>{a.data.type=="SliderData"&&a.data.identity==f&&(r(9,N=a.data.data),r(11,j=new Array(N.length).fill(!1)),w=="true"&&oe()),a.data.type=="GoToHomepage"&&N.forEach((d,p)=>{d.path.endsWith("/casino")&&(r(6,A=p),r(6,A))})},ne=()=>{we(g)},ae=(a,d,p)=>{if(m=="secondaryMenu"&&o&&l&&g&&a.id){let D=new URL(`${o}/v1/casino/groups/${l}/${a.id}/subGroups?language=${g}`);fetch(D.href).then(M=>M.json()).then(M=>{M.index=d,r(10,T=T.concat(M)),w=="false"&&window.postMessage({type:n,itemId:a.id,index:d,item:a},window.location.href);const S=[];T.map(pe=>(pe.items.forEach(q=>{S.find(Ce=>q.id==Ce)||S.push(q.id)}),S.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:S},window.location.href)}).then(()=>{H.querySelectorAll(".DropDown")&&O()})}m=="headerMain"&&window.postMessage({type:n,item:a},window.location.href)},O=()=>{const a=H.querySelectorAll(".DropDown");document.activeElement.blur(),F.classList.add("isScrolling");for(let d=0;d<a.length;d++)a[d].style.transform="translateX(-"+F.scrollLeft+"px)";F.classList.remove("isScrolling")},oe=()=>{N.forEach((a,d)=>{var p;((p=a==null?void 0:a.subGroups)==null?void 0:p.count)>0&&(r(11,j[d]=!0,j),ae(a,d))})},ie=()=>{let a=document.createElement("style");a.innerHTML=v,I.appendChild(a)},le=()=>{let a=document.createElement("style"),d=new URL(C);fetch(d.href).then(p=>p.text()).then(p=>{a.innerHTML=p,setTimeout(()=>{I.appendChild(a)},1)})},se=a=>{let d="";return a.id==="LOBBY"?d=b:a.id==="MYGAMES"&&(d=L),a.icon||d};t.onMount(()=>(window.addEventListener("message",x,!1),"ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),setTimeout(()=>{F.addEventListener("scroll",O)},500),window.postMessage({type:"SliderLoaded",identity:f}),()=>{window.removeEventListener("message",x),H.removeEventListener("scroll",O)}));const ce=()=>B(),ue=(a,d,p,D,M)=>{z(a,d,p,D,"secondary"),M.stopPropagation()},de=(a,d,p)=>{z(a,d,null,null,"main"),p.preventDefault()};function me(a){t.binding_callbacks[a?"unshift":"push"](()=>{H=a,r(5,H)})}function he(a){t.binding_callbacks[a?"unshift":"push"](()=>{F=a,r(12,F)})}const fe=()=>G();function ge(a){t.binding_callbacks[a?"unshift":"push"](()=>{I=a,r(4,I)})}return i.$$set=a=>{"endpoint"in a&&r(17,o=a.endpoint),"datasource"in a&&r(18,l=a.datasource),"onclickeventname"in a&&r(19,s=a.onclickeventname),"actionevent"in a&&r(20,n=a.actionevent),"favoritesnumber"in a&&r(21,c=a.favoritesnumber),"location"in a&&r(0,m=a.location),"clientstyling"in a&&r(22,v=a.clientstyling),"clientstylingurl"in a&&r(23,C=a.clientstylingurl),"identity"in a&&r(24,f=a.identity),"translationurl"in a&&r(25,y=a.translationurl),"isprimarymenu"in a&&r(26,_=a.isprimarymenu),"issecondarymenu"in a&&r(27,k=a.issecondarymenu),"lang"in a&&r(28,g=a.lang),"activeindex"in a&&r(1,u=a.activeindex),"showsubgroups"in a&&r(2,w=a.showsubgroups),"categoriesicon"in a&&r(3,h=a.categoriesicon),"lobbyiconimage"in a&&r(29,b=a.lobbyiconimage),"mygamesiconimage"in a&&r(30,L=a.mygamesiconimage)},i.$$.update=()=>{i.$$.dirty[0]&2,i.$$.dirty[0]&33554432&&y&&R(),i.$$.dirty[0]&4194320&&v&&I&&ie(),i.$$.dirty[0]&8388624&&C&&I&&le(),i.$$.dirty[0]&268435456&&g&&ne()},[m,u,w,h,I,H,A,E,W,N,T,j,F,z,B,G,se,o,l,s,n,c,v,C,f,y,_,k,g,b,L,ce,ue,de,me,he,fe,ge]}class re extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Fe,ke,t.safe_not_equal,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:1,showsubgroups:2,categoriesicon:3,lobbyiconimage:29,mygamesiconimage:30},be,[-1,-1])}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),t.flush()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),t.flush()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),t.flush()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),t.flush()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),t.flush()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),t.flush()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),t.flush()}get activeindex(){return this.$$.ctx[1]}set activeindex(e){this.$$set({activeindex:e}),t.flush()}get showsubgroups(){return this.$$.ctx[2]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get categoriesicon(){return this.$$.ctx[3]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[29]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[30]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}}t.create_custom_element(re,{endpoint:{},datasource:{},onclickeventname:{},actionevent:{},favoritesnumber:{},location:{},clientstyling:{},clientstylingurl:{},identity:{},translationurl:{},isprimarymenu:{type:"Boolean"},issecondarymenu:{type:"Boolean"},lang:{},activeindex:{},showsubgroups:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=re;