@everymatrix/casino-lobby 1.62.0 → 1.62.2

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 (127) hide show
  1. package/components/CasinoCalendar-B4GcXKnc.cjs +22 -0
  2. package/components/{CasinoCalendar-Ds_auLbt.js → CasinoCalendar-CinFtvuW.js} +1099 -1078
  3. package/components/{CasinoCalendar-DwNK-Krf.js → CasinoCalendar-zRo_9Za0.js} +873 -852
  4. package/components/{CasinoCalendarDailyDetails-CfPB55Pq.cjs → CasinoCalendarDailyDetails-Cn37GUIj.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-C_XI9wqh.js → CasinoCalendarDailyDetails-DL8uHwSN.js} +49 -49
  6. package/components/{CasinoCalendarDailyDetails-Bsp_M9tm.js → CasinoCalendarDailyDetails-qkwXMyxI.js} +49 -49
  7. package/components/{CasinoCalendarDailyItem-DKNNV9h9.cjs → CasinoCalendarDailyItem-Bo9evLEj.cjs} +1 -1
  8. package/components/{CasinoCalendarDailyItem-DX4mmW--.js → CasinoCalendarDailyItem-DcqDKyz5.js} +33 -33
  9. package/components/{CasinoCalendarDailyItem-BZFRiT1-.js → CasinoCalendarDailyItem-DoK3veTp.js} +33 -33
  10. package/components/{CasinoCategoriesSlider-3nT06xt_.js → CasinoCategoriesSlider-BBVXEukg.js} +70 -70
  11. package/components/{CasinoCategoriesSlider-BpGXCaMb.js → CasinoCategoriesSlider-YxbN9BpC.js} +71 -71
  12. package/components/CasinoCategoriesSlider-n2yKGzdi.cjs +1 -0
  13. package/components/{CasinoCollectionsProviders-Dk4psn1e.js → CasinoCollectionsProviders-BvaxV9cb.js} +77 -77
  14. package/components/CasinoCollectionsProviders-CPX65G1M.cjs +1 -0
  15. package/components/{CasinoCollectionsProviders-BGPURFbw.js → CasinoCollectionsProviders-Q0qcn7b_.js} +58 -58
  16. package/components/{CasinoFavoritesSection-vRmZpBaX.cjs → CasinoFavoritesSection-B1f0uSCY.cjs} +1 -1
  17. package/components/{CasinoFavoritesSection-C0CsEcw_.js → CasinoFavoritesSection-CR--CUNF.js} +23 -23
  18. package/components/{CasinoFavoritesSection-Bc0fMYjF.js → CasinoFavoritesSection-DG1Vt4HX.js} +23 -23
  19. package/components/CasinoFilter-ChsEa9Bx.js +645 -0
  20. package/components/CasinoFilter-DbcntrTg.js +644 -0
  21. package/components/CasinoFilter-DhiwjMr2.cjs +1 -0
  22. package/components/{CasinoGamePage-JBZLEvnG.js → CasinoGamePage-C7LOIY6s.js} +783 -783
  23. package/components/{CasinoGamePage-ChuDdD-6.cjs → CasinoGamePage-CmF8v1Cv.cjs} +6 -6
  24. package/components/{CasinoGamePage-DJvIg2Lf.js → CasinoGamePage-DccB7M76.js} +746 -746
  25. package/components/CasinoGameThumbnail-BtO5lRYS.cjs +38 -0
  26. package/components/CasinoGameThumbnail-CZYWQzTY.js +1836 -0
  27. package/components/CasinoGameThumbnail-DZFIn3jP.js +1852 -0
  28. package/components/{CasinoGamesCategorySection-GOjPf7-0.cjs → CasinoGamesCategorySection-CQaK0CN3.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-foSq_Gr6.js → CasinoGamesCategorySection-CujQbdKb.js} +249 -249
  30. package/components/{CasinoGamesCategorySection-Ch0WIANe.js → CasinoGamesCategorySection-DFNU_Gsz.js} +332 -332
  31. package/components/{CasinoJackpotBanner-Iq9Ey3dk.js → CasinoJackpotBanner-BhgV3UvA.js} +131 -131
  32. package/components/{CasinoJackpotBanner-B2CksgLI.js → CasinoJackpotBanner-CkVmxLVH.js} +163 -163
  33. package/components/CasinoJackpotBanner-D5DqHlAR.cjs +1 -0
  34. package/components/{CasinoLastPlayedSection-DbANdFuL.js → CasinoLastPlayedSection-CE97lSQ6.js} +46 -46
  35. package/components/{CasinoLastPlayedSection-Bp4Lsv3s.js → CasinoLastPlayedSection-CTorwEQu.js} +46 -46
  36. package/components/{CasinoLastPlayedSection-cmf92qRb.cjs → CasinoLastPlayedSection-U57Y5miR.cjs} +1 -1
  37. package/components/{CasinoLobby-siRHhGuy.js → CasinoLobby-80EyIh80.js} +74 -74
  38. package/components/{CasinoLobby-CAeLQ5BE.cjs → CasinoLobby-C1-TdZOS.cjs} +1 -1
  39. package/components/{CasinoLobby-B8ucHOFp.js → CasinoLobby-hiqWHHHg.js} +73 -73
  40. package/components/{CasinoModal-DGa_AIvk.cjs → CasinoModal-7GCtnm_K.cjs} +1 -1
  41. package/components/{CasinoModal-Pt4nHM76.js → CasinoModal-DRoX6zuP.js} +43 -43
  42. package/components/{CasinoModal-e0s3ToYA.js → CasinoModal-DTJpGGWW.js} +43 -43
  43. package/components/{CasinoMostPlayedSection-Dk8rng9q.js → CasinoMostPlayedSection-CKuVf-En.js} +44 -44
  44. package/components/{CasinoMostPlayedSection-Cxmg0Bai.cjs → CasinoMostPlayedSection-Cptq1E56.cjs} +1 -1
  45. package/components/{CasinoMostPlayedSection-DuO2XrE8.js → CasinoMostPlayedSection-oxfCPIeN.js} +44 -44
  46. package/components/{CasinoMyGames-BXV5DJsV.cjs → CasinoMyGames-DhHqogUJ.cjs} +1 -1
  47. package/components/{CasinoMyGames-ZgZazIms.js → CasinoMyGames-gq_8VbcF.js} +47 -47
  48. package/components/{CasinoMyGames-DDhJiodD.js → CasinoMyGames-sC9ouRW_.js} +51 -51
  49. package/components/{CasinoPage-BfG57-mo.js → CasinoPage-BCAEtuBw.js} +77 -77
  50. package/components/{CasinoPage-DlenCL5e.js → CasinoPage-Bh2MrJ1P.js} +77 -77
  51. package/components/{CasinoPage-QkYfyrIK.cjs → CasinoPage-BzbZtzqt.cjs} +1 -1
  52. package/components/{CasinoRandomGame-CFxey-Hj.js → CasinoRandomGame-CbQvQHMi.js} +165 -166
  53. package/components/CasinoRandomGame-D4bGW7wH.cjs +2 -0
  54. package/components/{CasinoRandomGame-C-KByRhW.js → CasinoRandomGame-neIdOgUC.js} +201 -202
  55. package/components/{CasinoSearch-BjnGir-z.js → CasinoSearch-B65DzQEn.js} +69 -69
  56. package/components/{CasinoSearch-Ci-NvpMW.cjs → CasinoSearch-BYuM1VFZ.cjs} +1 -1
  57. package/components/{CasinoSearch-Cwi_srKc.js → CasinoSearch-d7Y-IpLr.js} +69 -69
  58. package/components/CasinoSlider-CotyciEv.cjs +1 -0
  59. package/components/{CasinoSlider-39QtmWWi.js → CasinoSlider-DGETBGTm.js} +177 -178
  60. package/components/{CasinoSlider-C7tccz8y.js → CasinoSlider-TfFHBss2.js} +228 -229
  61. package/components/{CasinoSort-DgtkEGDb.js → CasinoSort-B-2h6Htw.js} +110 -111
  62. package/components/{CasinoSort-BvuV6OEx.js → CasinoSort-Cmgp5JM5.js} +104 -103
  63. package/components/{CasinoSort-Big21575.cjs → CasinoSort-X6V8pABW.cjs} +1 -1
  64. package/components/{CasinoWinners-CAaxaJlt.js → CasinoWinners-BSQs3S54.js} +151 -151
  65. package/components/{CasinoWinners-YGc-x05i.cjs → CasinoWinners-CuaTZjz4.cjs} +1 -1
  66. package/components/{CasinoWinners-CUHNrZzd.js → CasinoWinners-CyDC7j5x.js} +138 -138
  67. package/components/{GeneralAnimationLoading-DgYbDns-.js → GeneralAnimationLoading-B1-7gNLR.js} +18 -18
  68. package/components/{GeneralAnimationLoading-GRiNTyhV.js → GeneralAnimationLoading-BV3DII71.js} +18 -18
  69. package/components/{GeneralAnimationLoading-DS00gkfg.cjs → GeneralAnimationLoading-DasE8cAb.cjs} +1 -1
  70. package/es2015/casino-lobby.cjs +1 -1
  71. package/es2015/casino-lobby.js +1 -1
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +1 -1
  74. package/stencil/{casino-play-random-game-C7EJAFXg.js → casino-play-random-game-6EpPs13y.js} +2 -2
  75. package/stencil/{casino-play-random-game-BXqbLgi6.js → casino-play-random-game-BUvMKyaw.js} +2 -2
  76. package/stencil/{casino-play-random-game-DjzHFI4S.cjs → casino-play-random-game-IjQER553.cjs} +2 -2
  77. package/stencil/index-97d17652-B8yQdy7J.js +542 -0
  78. package/stencil/index-97d17652-C616IYj2.js +558 -0
  79. package/stencil/index-97d17652-C9Ph2JiE.cjs +1 -0
  80. package/stencil/index-ab3202d6-9zuW-dLG.js +575 -0
  81. package/stencil/index-ab3202d6-CGVciVSL.js +559 -0
  82. package/stencil/index-ab3202d6-c7Vf1NJ1.cjs +1 -0
  83. package/stencil/index-b2193545-60VR4wV3.js +519 -0
  84. package/stencil/index-b2193545-LYFajSbf.js +503 -0
  85. package/stencil/index-b2193545-nJb2J-aJ.cjs +1 -0
  86. package/stencil/ui-image-7da92f1f-26DzsVFt.js +39 -0
  87. package/stencil/ui-image-7da92f1f-BAghvEDf.js +39 -0
  88. package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +1 -0
  89. package/stencil/ui-image-BSTP7sZO.js +7 -0
  90. package/stencil/ui-image-C3XzpHRB.cjs +1 -0
  91. package/stencil/ui-image-CYB9UUHg.js +25 -0
  92. package/stencil/ui-image_2-BXgptLvl.js +154 -0
  93. package/stencil/ui-image_2-Cctik3aF.cjs +73 -0
  94. package/stencil/ui-image_2-Cyqb4u7k.js +154 -0
  95. package/stencil/{ui-skeleton-6d1c12ae-CrQ3Yom_.js → ui-skeleton-1cb75d00-BWUmrSx4.js} +4 -4
  96. package/stencil/{ui-skeleton-6d1c12ae-C2t65ZQ6.cjs → ui-skeleton-1cb75d00-C9ZtbYpX.cjs} +2 -2
  97. package/stencil/{ui-skeleton-6d1c12ae-D9cBvSa8.js → ui-skeleton-1cb75d00-D5AevndQ.js} +4 -4
  98. package/stencil/{ui-skeleton-BEBLuDwu.js → ui-skeleton-CDhNSEbX.js} +2 -2
  99. package/stencil/{ui-skeleton-D595e_7Y.cjs → ui-skeleton-CUmVjhrn.cjs} +1 -1
  100. package/stencil/{ui-skeleton-Z7IcB7dJ.js → ui-skeleton-D5ACyLBl.js} +2 -2
  101. package/components/CasinoCalendar-mfnJr7FR.cjs +0 -22
  102. package/components/CasinoCategoriesSlider-BcnId76H.cjs +0 -1
  103. package/components/CasinoCollectionsProviders-By4Ga1uR.cjs +0 -1
  104. package/components/CasinoFilter-CAtpk4a4.js +0 -645
  105. package/components/CasinoFilter-CtjgbEie.js +0 -646
  106. package/components/CasinoFilter-dn8i37bN.cjs +0 -1
  107. package/components/CasinoGameThumbnail-DjAdZZBA.js +0 -1883
  108. package/components/CasinoGameThumbnail-DrQpg0EE.js +0 -1867
  109. package/components/CasinoGameThumbnail-Ue2ReDmO.cjs +0 -38
  110. package/components/CasinoJackpotBanner-B_eZxp_D.cjs +0 -1
  111. package/components/CasinoRandomGame-Cs9kjDxc.cjs +0 -2
  112. package/components/CasinoSlider-DrdLTNh9.cjs +0 -1
  113. package/stencil/index-ab3202d6-CMLJROQf.cjs +0 -1
  114. package/stencil/index-ab3202d6-CqQYxn8J.js +0 -575
  115. package/stencil/index-ab3202d6-D5caeC50.js +0 -559
  116. package/stencil/index-b2193545-CJX9lIo2.js +0 -519
  117. package/stencil/index-b2193545-CbB5TWd2.js +0 -503
  118. package/stencil/index-b2193545-DQd_Uk3t.cjs +0 -1
  119. package/stencil/index-b7bbd57e-BO976FKE.js +0 -534
  120. package/stencil/index-b7bbd57e-CRts68dn.cjs +0 -1
  121. package/stencil/index-b7bbd57e-ChiHMF5W.js +0 -550
  122. package/stencil/ui-image-38c3c15f-C4x7O9FA.js +0 -39
  123. package/stencil/ui-image-38c3c15f-DQqFo7p2.cjs +0 -1
  124. package/stencil/ui-image-38c3c15f-DY2A0QkK.js +0 -39
  125. package/stencil/ui-image-CzWACXX6.js +0 -11
  126. package/stencil/ui-image-c5YAxRRi.cjs +0 -1
  127. package/stencil/ui-image-shmNN3yX.js +0 -29
@@ -1,8 +1,8 @@
1
- import { a as le, S as ce, i as me, f as l, c as ge, s as ue, b as ye, e as h, d as E, G as S, j, k as fe, o as be, l as de, O as he, P as we, q as Ne, r as Le, m as Me, H as n, y as T, z as _e, Q as ve, J as Ce } from "./CasinoCalendar-DwNK-Krf.js";
2
- function x(i, e) {
3
- le(i, e);
1
+ import { a as re, S as le, i as ce, s as me, f as l, b as ge, n as S, d as E, h as j, j as h, k as ue, o as ye, O as fe, C as de, r as T, E as n, p as be, P as he, J as Ne, K as we, L as Le, M as Me, Q as _e, N as ve } from "./CasinoCalendar-zRo_9Za0.js";
2
+ function Z(i, e) {
3
+ re(i, e);
4
4
  }
5
- const p = {
5
+ const x = {
6
6
  en: {
7
7
  lobbyName: "Lobby",
8
8
  myGamesName: "My games"
@@ -88,14 +88,14 @@ if (typeof window != "undefined") {
88
88
  }
89
89
  };
90
90
  };
91
- customElements.define = i(customElements.define), import("./CasinoSlider-C7tccz8y.js").then(({ default: e }) => {
91
+ customElements.define = i(customElements.define), import("./CasinoSlider-TfFHBss2.js").then(({ default: e }) => {
92
92
  !customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
93
93
  });
94
94
  }
95
- function Ge(i) {
96
- ye(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
95
+ function Ce(i) {
96
+ ge(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
97
97
  }
98
- function ke(i) {
98
+ function Ge(i) {
99
99
  let e, t, r, c;
100
100
  return {
101
101
  c() {
@@ -172,7 +172,7 @@ function ke(i) {
172
172
  ), T(e, "class", "CasinoCategoriesContainer svelte-2g6deg");
173
173
  },
174
174
  m(a, o) {
175
- E(a, e, o), _e(e, t), r || (c = ve(
175
+ j(a, e, o), be(e, t), r || (c = he(
176
176
  /*sendSliderData*/
177
177
  i[17].call(null, t)
178
178
  ), r = !0);
@@ -265,48 +265,48 @@ function ke(i) {
265
265
  );
266
266
  },
267
267
  d(a) {
268
- a && j(e), r = !1, c();
268
+ a && E(e), r = !1, c();
269
269
  }
270
270
  };
271
271
  }
272
- function Se(i) {
272
+ function ke(i) {
273
273
  let e;
274
274
  return {
275
275
  c() {
276
276
  e = h("p"), e.textContent = "500 Error - Internal Server Error.", T(e, "class", "SearchLoading svelte-2g6deg");
277
277
  },
278
278
  m(t, r) {
279
- E(t, e, r);
279
+ j(t, e, r);
280
280
  },
281
281
  p: S,
282
282
  d(t) {
283
- t && j(e);
283
+ t && E(e);
284
284
  }
285
285
  };
286
286
  }
287
- function Ee(i) {
287
+ function Se(i) {
288
288
  let e;
289
289
  return {
290
290
  c() {
291
291
  e = h("div"), T(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
292
292
  },
293
293
  m(t, r) {
294
- E(t, e, r);
294
+ j(t, e, r);
295
295
  },
296
296
  p: S,
297
297
  d(t) {
298
- t && j(e);
298
+ t && E(e);
299
299
  }
300
300
  };
301
301
  }
302
- function je(i) {
302
+ function Ee(i) {
303
303
  let e;
304
304
  function t(a, o) {
305
305
  return (
306
306
  /*isLoading*/
307
- a[13] || Pe || Fe ? Ee : (
307
+ a[13] || je || Pe ? Se : (
308
308
  /*hasErrors*/
309
- a[15] ? Se : ke
309
+ a[15] ? ke : Ge
310
310
  )
311
311
  );
312
312
  }
@@ -316,7 +316,7 @@ function je(i) {
316
316
  e = h("div"), c.c();
317
317
  },
318
318
  m(a, o) {
319
- E(a, e, o), c.m(e, null), i[27](e);
319
+ j(a, e, o), c.m(e, null), i[27](e);
320
320
  },
321
321
  p(a, o) {
322
322
  r === (r = t(a)) && c ? c.p(a, o) : (c.d(1), c = r(a), c && (c.c(), c.m(e, null)));
@@ -324,48 +324,48 @@ function je(i) {
324
324
  i: S,
325
325
  o: S,
326
326
  d(a) {
327
- a && j(e), c.d(), i[27](null);
327
+ a && E(e), c.d(), i[27](null);
328
328
  }
329
329
  };
330
330
  }
331
- let O = "CasinoSliderData", Pe = !1, Fe = !1;
332
- function Ae(i, e, t) {
331
+ let O = "CasinoSliderData", je = !1, Pe = !1;
332
+ function Fe(i, e, t) {
333
333
  let r;
334
- fe(i, Ce, (s) => t(33, r = s));
335
- let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: R = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: U = "" } = e, { sessioncheck: B = "" } = e, { location: I = "secondaryMenu" } = e, { showsubgroups: q = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: z = "" } = e, { lobbyiconimage: H = "" } = e, { mygamesiconimage: Y = "" } = e, { mbsource: P } = e, J, Q, K, y = !0, b, d = [], f = !1, $ = window.navigator.userAgent, g, V, W = !1, F = !1;
336
- const ee = () => {
334
+ ue(i, ve, (s) => t(33, r = s));
335
+ let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: R = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: U = "" } = e, { sessioncheck: I = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: Y = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, J, K, y = !0, d, b = [], f = !1, p = window.navigator.userAgent, g, Q, V = !1, F = !1;
336
+ const $ = () => {
337
337
  fetch(G).then((m) => m.json()).then((m) => {
338
338
  Object.keys(m).forEach((k) => {
339
- x(k, m[k]);
339
+ Z(k, m[k]);
340
340
  });
341
341
  }).catch((m) => {
342
342
  console.log(m);
343
343
  });
344
344
  };
345
- Object.keys(p).forEach((s) => {
346
- x(s, p[s]);
345
+ Object.keys(x).forEach((s) => {
346
+ Z(s, x[s]);
347
347
  });
348
- const te = () => {
349
- W == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
348
+ const ee = () => {
349
+ V == !1 && (M == "true" || w == "true" || L == "true") && b.splice(1, 0, {
350
350
  // @ts-ignore
351
351
  id: "MYGAMES",
352
- name: Q,
352
+ name: J,
353
353
  href: "",
354
354
  games: []
355
- }), he(), W = !0, t(26, F = !0), A();
356
- }, se = () => (c || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!o || o.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), ie = () => {
357
- if (Q = r("myGamesName"), K = r("lobbyName"), !se()) {
355
+ }), _e(), V = !0, t(26, F = !0), A();
356
+ }, te = () => (c || (d = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(d)), a || (d = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(d)), (!o || o.length < 2) && (d = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(d)), f), se = () => {
357
+ if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
358
358
  let s = new URL(`${c}/v2/casino/groups/${a}`);
359
- s.searchParams.append("language", o), s.searchParams.append("platform", we($)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((m) => m.json()).then(
359
+ s.searchParams.append("language", o), s.searchParams.append("platform", fe(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((m) => m.json()).then(
360
360
  (m) => {
361
- let k = C.split(","), oe = m.items.filter((Z) => {
361
+ let k = C.split(","), ne = m.items.filter((X) => {
362
362
  let D = !1;
363
- if (Z.games.total > 0 && (D = !0, C))
364
- for (let re of k)
365
- Z.flags == re && (D = !1);
363
+ if (X.games.total > 0 && (D = !0, C))
364
+ for (let oe of k)
365
+ X.flags == oe && (D = !1);
366
366
  return D;
367
367
  });
368
- d = [], d = d.concat(oe), d.unshift({
368
+ b = [], b = b.concat(ne), b.unshift({
369
369
  // @ts-ignore
370
370
  id: "LOBBY",
371
371
  name: K,
@@ -380,7 +380,7 @@ function Ae(i, e, t) {
380
380
  t(15, f = !0), console.error("There was an error while fetching the categories", m);
381
381
  });
382
382
  }
383
- }, ae = () => {
383
+ }, ie = () => {
384
384
  let s = u.split("$");
385
385
  t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
386
386
  }, A = () => {
@@ -388,33 +388,33 @@ function Ae(i, e, t) {
388
388
  {
389
389
  type: "SliderData",
390
390
  identity: O,
391
- data: d
391
+ data: b
392
392
  },
393
393
  window.location.href
394
394
  );
395
- }, X = (s) => {
395
+ }, W = (s) => {
396
396
  s.data && s.data.type == "SliderLoaded" && O == s.data.identity && A();
397
397
  };
398
- be(() => (window.addEventListener("message", X, !1), () => {
399
- window.emMessageBus && J && J.unsubscribe(), window.removeEventListener("message", X);
398
+ ye(() => (window.addEventListener("message", W, !1), () => {
399
+ window.removeEventListener("message", W);
400
400
  }));
401
- function ne(s) {
402
- Ne[s ? "unshift" : "push"](() => {
401
+ function ae(s) {
402
+ de[s ? "unshift" : "push"](() => {
403
403
  g = s, t(14, g);
404
404
  });
405
405
  }
406
406
  return i.$$set = (s) => {
407
- "endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, R = s.userid), "session" in s && t(19, w = s.session), "mostplayed" in s && t(20, N = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, U = s.actionevent), "sessioncheck" in s && t(23, B = s.sessioncheck), "location" in s && t(7, I = s.location), "showsubgroups" in s && t(8, q = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, z = s.categoriesicon), "lobbyiconimage" in s && t(10, H = s.lobbyiconimage), "mygamesiconimage" in s && t(11, Y = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
407
+ "endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, R = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, U = s.actionevent), "sessioncheck" in s && t(23, I = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, Y = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, q = s.categoriesicon), "lobbyiconimage" in s && t(10, z = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
408
408
  }, i.$$.update = () => {
409
409
  i.$$.dirty[0] & /*endpoint, datasource, lang*/
410
- 14 && c && a && o && ie(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
411
- 7872514 && c && w && (N || L || M) && !y && te(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
412
- 67641345 && !y && u && (!w || F) && ae(), i.$$.dirty[0] & /*translationurl*/
413
- 33554432 && G && ee(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
414
- 16400 && _ && g && Le(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
415
- 16416 && v && g && de(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
416
- 20480 && g && Me(g, `${P}.Style`);
417
- }, t(16, V = 0), [
410
+ 14 && c && a && o && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
411
+ 7872514 && c && N && (w || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
412
+ 67641345 && !y && u && (!N || F) && ie(), i.$$.dirty[0] & /*translationurl*/
413
+ 33554432 && G && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
414
+ 16400 && _ && g && Ne(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
415
+ 16416 && v && g && we(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
416
+ 20480 && g && Le(g, `${P}.Style`);
417
+ }, t(16, Q = 0), [
418
418
  u,
419
419
  c,
420
420
  a,
@@ -422,37 +422,37 @@ function Ae(i, e, t) {
422
422
  _,
423
423
  v,
424
424
  U,
425
- I,
425
+ B,
426
+ Y,
426
427
  q,
427
428
  z,
428
429
  H,
429
- Y,
430
430
  P,
431
431
  y,
432
432
  g,
433
433
  f,
434
- V,
434
+ Q,
435
435
  A,
436
436
  R,
437
- w,
438
437
  N,
438
+ w,
439
439
  L,
440
440
  M,
441
- B,
441
+ I,
442
442
  C,
443
443
  G,
444
444
  F,
445
- ne
445
+ ae
446
446
  ];
447
447
  }
448
- class De extends ce {
448
+ class Ae extends le {
449
449
  constructor(e) {
450
- super(), me(
450
+ super(), ce(
451
451
  this,
452
452
  e,
453
- Ae,
454
- je,
455
- ue,
453
+ Fe,
454
+ Ee,
455
+ me,
456
456
  {
457
457
  endpoint: 1,
458
458
  datasource: 2,
@@ -476,7 +476,7 @@ class De extends ce {
476
476
  mygamesiconimage: 11,
477
477
  mbsource: 12
478
478
  },
479
- Ge,
479
+ Ce,
480
480
  [-1, -1]
481
481
  );
482
482
  }
@@ -607,7 +607,7 @@ class De extends ce {
607
607
  this.$$set({ mbsource: e }), l();
608
608
  }
609
609
  }
610
- ge(De, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
610
+ Me(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
611
611
  export {
612
- De as default
612
+ Ae as default
613
613
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B4GcXKnc.cjs");function J(i,e){t.addMessages(i,e)}const K={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-CotyciEv.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(i){t.append_styles(i,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ae(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ie(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ne(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;function s(n,o){return n[13]||le||re?ne:n[15]?ie:ae}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",le=!1,re=!1;function ce(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:N=""}=e,{clientstyling:w=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,I,g=!0,f,y=[],d=!1,V=window.navigator.userAgent,m,B,Y=!1,S=!1;const W=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{J(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(a=>{J(a,K[a])});const X=()=>{Y==!1&&(N=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:q,href:"",games:[]}),t.tick(),Y=!0,s(26,S=!0),k()},Z=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),x=()=>{if(q=l("myGamesName"),I=l("lobbyName"),!Z()){let a=new URL(`${r}/v2/casino/groups/${n}`);a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(V)),a.searchParams.append("fields","id,name,games(href)"),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),ee=c.items.filter(H=>{let E=!1;if(H.games.total>0&&(E=!0,M))for(let te of C)H.flags==te&&(E=!1);return E});y=[],y=y.concat(ee),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},p=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},z=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,N=a.favorites),"clientstyling"in a&&s(4,w=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&x(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||N)&&!g&&X(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&p(),i.$$.dirty[0]&33554432&&v&&W(),i.$$.dirty[0]&16400&&w&&m&&t.setClientStyling(m,w),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,B=0),[u,r,n,o,w,L,F,D,O,T,R,U,G,g,m,d,B,k,P,h,b,_,N,A,M,v,S,$]}class Q extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[23]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Q,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=Q;