@everymatrix/casino-lobby 1.86.3 → 1.86.5

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 (110) hide show
  1. package/components/CasinoCalendar-CDybCkBw.cjs +19 -0
  2. package/components/{CasinoCalendar-CTTcluAF.js → CasinoCalendar-DeuDpvc7.js} +1033 -1012
  3. package/components/{CasinoCalendar-g3C0yL-l.js → CasinoCalendar-qxlVRlx3.js} +849 -828
  4. package/components/{CasinoCalendarDailyDetails-MbSzyBl-.cjs → CasinoCalendarDailyDetails-0DzEjr4I.cjs} +1 -1
  5. package/components/{CasinoCalendarDailyDetails-C6NZu63m.js → CasinoCalendarDailyDetails-DgSA6Oos.js} +38 -38
  6. package/components/{CasinoCalendarDailyDetails-BReSw0PH.js → CasinoCalendarDailyDetails-oDArpqk3.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-D_-hgIOG.js → CasinoCalendarDailyItem--x4C1v1R.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-vF8QUewM.cjs → CasinoCalendarDailyItem-BT_oTw81.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-DW4bwJrg.js → CasinoCalendarDailyItem-D1UMrOrr.js} +34 -34
  10. package/components/{CasinoCategoriesSlider-uIpxZEDW.js → CasinoCategoriesSlider-BmkD2GJJ.js} +70 -70
  11. package/components/CasinoCategoriesSlider-CDsrUsbe.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-DLioXO8u.js → CasinoCategoriesSlider-DnJiwJ-i.js} +73 -73
  13. package/components/{CasinoCollectionsProviders-BDJPyhyP.js → CasinoCollectionsProviders-DS-cICru.js} +64 -64
  14. package/components/{CasinoCollectionsProviders-C66FXn8E.cjs → CasinoCollectionsProviders-KucGv4ev.cjs} +1 -1
  15. package/components/{CasinoCollectionsProviders-l8Bj7gLF.js → CasinoCollectionsProviders-SF9NUz_s.js} +77 -77
  16. package/components/{CasinoFavoritesSection-1xjeruY9.js → CasinoFavoritesSection-DBOa4rLG.js} +19 -19
  17. package/components/{CasinoFavoritesSection-JbXta4ej.js → CasinoFavoritesSection-Q91WkZtR.js} +19 -19
  18. package/components/{CasinoFavoritesSection-flqQ1Txz.cjs → CasinoFavoritesSection-ioWl2WWa.cjs} +1 -1
  19. package/components/{CasinoFilter-DK1IJtKj.js → CasinoFilter-Iy2ZAp7X.js} +244 -245
  20. package/components/CasinoFilter-S-pUTxvR.cjs +1 -0
  21. package/components/{CasinoFilter-AWMGrvg7.js → CasinoFilter-WlNu83Yo.js} +223 -222
  22. package/components/CasinoGameThumbnail-B386-P3k.cjs +47 -0
  23. package/components/{CasinoGameThumbnail-DgEB-dkM.js → CasinoGameThumbnail-Ddpsxirj.js} +1252 -1268
  24. package/components/{CasinoGameThumbnail-AMyBxNdq.js → CasinoGameThumbnail-yvrHp66V.js} +778 -762
  25. package/components/{CasinoGamesCategorySection-UbxtEgDx.js → CasinoGamesCategorySection-COcAuqTG.js} +301 -301
  26. package/components/{CasinoGamesCategorySection-blhrWiJn.js → CasinoGamesCategorySection-DDqd3M8L.js} +302 -302
  27. package/components/{CasinoGamesCategorySection-ZiaOwaIX.cjs → CasinoGamesCategorySection-DUgz8uau.cjs} +1 -1
  28. package/components/{CasinoJackpotBanner-sKWQEAXI.js → CasinoJackpotBanner-CuHjieHv.js} +89 -89
  29. package/components/{CasinoJackpotBanner-15vjCxeq.cjs → CasinoJackpotBanner-DEsoDJ4R.cjs} +1 -1
  30. package/components/{CasinoJackpotBanner-OEQ6kTNX.js → CasinoJackpotBanner-ovGVK744.js} +84 -84
  31. package/components/{CasinoLastPlayedSection-kM9yLvhD.cjs → CasinoLastPlayedSection-BHV-LRk1.cjs} +1 -1
  32. package/components/{CasinoLastPlayedSection-DlDq9l_7.js → CasinoLastPlayedSection-C8WSFXnj.js} +33 -33
  33. package/components/{CasinoLastPlayedSection-Dv7S9x-o.js → CasinoLastPlayedSection-cSkPcLtL.js} +33 -33
  34. package/components/{CasinoLobby-Dho7eG4P.js → CasinoLobby-Bc2QHTe4.js} +59 -59
  35. package/components/{CasinoLobby-BknjaOeS.js → CasinoLobby-Bkj4ZQu6.js} +59 -59
  36. package/components/{CasinoLobby-odJbcWRR.cjs → CasinoLobby-Cs6HmQRu.cjs} +1 -1
  37. package/components/{CasinoMostPlayedSection-CGxtqevB.js → CasinoMostPlayedSection-CQdqKCZj.js} +45 -45
  38. package/components/{CasinoMostPlayedSection-BJpdcEGe.cjs → CasinoMostPlayedSection-DsX-pIXm.cjs} +1 -1
  39. package/components/{CasinoMostPlayedSection-PvqfZR6v.js → CasinoMostPlayedSection-smiwW5Ol.js} +45 -45
  40. package/components/{CasinoMyGames-Baaz8xfL.cjs → CasinoMyGames-CJ7rioBh.cjs} +1 -1
  41. package/components/{CasinoMyGames-C22R6240.js → CasinoMyGames-CYZ5nWjJ.js} +29 -29
  42. package/components/{CasinoMyGames-Cr-QJTaa.js → CasinoMyGames-CnnjGYeT.js} +29 -29
  43. package/components/{CasinoPage-BZnxTJSo.cjs → CasinoPage-BzASY7Hg.cjs} +1 -1
  44. package/components/{CasinoPage-DcXwVMup.js → CasinoPage-CUUEVdPt.js} +123 -123
  45. package/components/{CasinoPage-BGrASQhH.js → CasinoPage-Dg5sPuQa.js} +109 -109
  46. package/components/{CasinoRandomGame-DoBaxDNA.js → CasinoRandomGame-DBzLZj0J.js} +52 -52
  47. package/components/{CasinoRandomGame-Cz5w1Xkm.cjs → CasinoRandomGame-DRJXaM_Z.cjs} +1 -1
  48. package/components/{CasinoRandomGame-CLsTaSPD.js → CasinoRandomGame-Dh5EVxCR.js} +53 -53
  49. package/components/{CasinoSearch-D4nuoT1C.js → CasinoSearch--8BCnmOG.js} +85 -85
  50. package/components/{CasinoSearch-M-zypI5B.js → CasinoSearch-BxyP0Ga2.js} +82 -82
  51. package/components/{CasinoSearch-DHRGmpEd.cjs → CasinoSearch-r9ofFlZt.cjs} +1 -1
  52. package/components/{CasinoSlider-DvI5SCyj.js → CasinoSlider-BihCQ92y.js} +86 -86
  53. package/components/{CasinoSlider-B_WI_7Qb.cjs → CasinoSlider-C0mxz0hk.cjs} +1 -1
  54. package/components/{CasinoSlider-OSPrTvMo.js → CasinoSlider-DpYeYJhK.js} +87 -87
  55. package/components/{CasinoSort-DEbYB6BH.js → CasinoSort-BOsO5Bfe.js} +111 -112
  56. package/components/{CasinoSort-COpZLKBV.js → CasinoSort-CbOOYzWs.js} +103 -102
  57. package/components/{CasinoSort-KSHMLnqL.cjs → CasinoSort-L9UM4M85.cjs} +1 -1
  58. package/components/{CasinoWinners-CtR1v_xw.js → CasinoWinners-CDQfWIM6.js} +148 -148
  59. package/components/{CasinoWinners-DlPnBzX-.cjs → CasinoWinners-CxuidCR1.cjs} +1 -1
  60. package/components/{CasinoWinners-6u19h4xG.js → CasinoWinners-DAW-pGRt.js} +151 -151
  61. package/components/{GeneralAnimationLoading-oehLt3ob.cjs → GeneralAnimationLoading-CFokXkWs.cjs} +1 -1
  62. package/components/{GeneralAnimationLoading-CEqG5qMY.js → GeneralAnimationLoading-CPc2UOwA.js} +14 -14
  63. package/components/{GeneralAnimationLoading-rntZi33z.js → GeneralAnimationLoading-D0quTPWA.js} +14 -14
  64. package/es2015/casino-lobby.cjs +1 -1
  65. package/es2015/casino-lobby.js +1 -1
  66. package/esnext/casino-lobby.js +1 -1
  67. package/package.json +1 -1
  68. package/stencil/{casino-play-random-game-Dge6-qaF.js → casino-play-random-game-DmsXPThq.js} +1 -1
  69. package/stencil/{casino-play-random-game-D9PFB7B2.js → casino-play-random-game-bUDjgSKo.js} +1 -1
  70. package/stencil/{casino-play-random-game-111R1Frl.cjs → casino-play-random-game-rBIQ75Yb.cjs} +1 -1
  71. package/stencil/{casino-play-random-game_2-CunwpDd1.js → casino-play-random-game_2-Bf4CHBc9.js} +2 -2
  72. package/stencil/{casino-play-random-game_2-auPXMZnz.js → casino-play-random-game_2-C30-vRGp.js} +2 -2
  73. package/stencil/{casino-play-random-game_2-cZvlv_fo.cjs → casino-play-random-game_2-CCCLDakd.cjs} +2 -2
  74. package/stencil/index-328e660d-B6ge05AJ.js +560 -0
  75. package/stencil/index-328e660d-C6OCQOhB.cjs +1 -0
  76. package/stencil/index-328e660d-Duk3nD23.js +576 -0
  77. package/stencil/index-97d17652-B6BYeRne.js +542 -0
  78. package/stencil/index-97d17652-BOr4KAqq.js +558 -0
  79. package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
  80. package/stencil/index-b2193545-BZAG_Jnw.js +503 -0
  81. package/stencil/index-b2193545-DG7pnr-7.js +519 -0
  82. package/stencil/index-b2193545-DuCTLpV-.cjs +1 -0
  83. package/stencil/{ui-image-C1Fl5HOc.cjs → ui-image-BmLAbwvr.cjs} +1 -1
  84. package/stencil/{ui-image-DnOuibDF.js → ui-image-DDulMZDF.js} +1 -1
  85. package/stencil/{ui-image-_mAQXh8W.js → ui-image-DwWgscwP.js} +1 -1
  86. package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  87. package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  88. package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  89. package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-CmVho0dS.js} +2 -2
  90. package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
  91. package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-Daq38JGa.js} +2 -2
  92. package/stencil/{ui-skeleton-CWdppDyF.cjs → ui-skeleton-BWEKzqTN.cjs} +1 -1
  93. package/stencil/{ui-skeleton-TkMXeWrD.js → ui-skeleton-D_tu1FGi.js} +2 -2
  94. package/stencil/{ui-skeleton-QCtPK7l5.js → ui-skeleton-DgZQnowa.js} +2 -2
  95. package/stencil/{ui-skeleton-ed169f8f-CiWqRE71.js → ui-skeleton-ed169f8f-Bs1q2JQr.js} +1 -1
  96. package/stencil/{ui-skeleton-ed169f8f-pTYMIneT.js → ui-skeleton-ed169f8f-D2rWx_KU.js} +1 -1
  97. package/stencil/{ui-skeleton-ed169f8f-BT7QFq3s.cjs → ui-skeleton-ed169f8f-Ti6Ksz7V.cjs} +1 -1
  98. package/components/CasinoCalendar-Bh1m4DYa.cjs +0 -19
  99. package/components/CasinoCategoriesSlider-CMW1BzhU.cjs +0 -1
  100. package/components/CasinoFilter-CrCTTPvH.cjs +0 -1
  101. package/components/CasinoGameThumbnail-Dymq8wWq.cjs +0 -47
  102. package/stencil/index-328e660d-A_dWaOAX.cjs +0 -1
  103. package/stencil/index-328e660d-BiHqu78m.js +0 -576
  104. package/stencil/index-328e660d-DJbpQFmN.js +0 -560
  105. package/stencil/index-97d17652-DvplcHtm.js +0 -558
  106. package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
  107. package/stencil/index-97d17652-p-iQtjus.js +0 -542
  108. package/stencil/index-b2193545-BkP0Nc2C.cjs +0 -1
  109. package/stencil/index-b2193545-CejVSlwL.js +0 -519
  110. package/stencil/index-b2193545-DL1I-QYR.js +0 -503
@@ -1,8 +1,8 @@
1
- import { a as le, S as ce, i as me, f as r, 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, M as de, N as he, p as we, q as Ne, r as Le, l as Me, H as o, y as O, z as _e, J as ve } from "./CasinoCalendar-g3C0yL-l.js";
2
- function Z(i, e) {
3
- le(i, e);
1
+ import { a as re, S as le, i as ce, f as r, s as me, K as ge, b as ue, n as S, d as E, h as j, j as h, k as ye, o as fe, M as be, C as de, r as O, E as o, p as he, L as we, H as Ne, I as Le, J as Me, N as _e } from "./CasinoCalendar-qxlVRlx3.js";
2
+ function X(i, e) {
3
+ re(i, e);
4
4
  }
5
- const p = {
5
+ const Z = {
6
6
  en: {
7
7
  lobbyName: "Lobby",
8
8
  myGamesName: "My games"
@@ -88,12 +88,12 @@ if (typeof window < "u") {
88
88
  }
89
89
  };
90
90
  };
91
- customElements.define = i(customElements.define), import("./CasinoSlider-DvI5SCyj.js").then(({ default: e }) => {
91
+ customElements.define = i(customElements.define), import("./CasinoSlider-BihCQ92y.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-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
95
+ function ve(i) {
96
+ ue(i, "svelte-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
97
97
  }
98
98
  function Ce(i) {
99
99
  let e, t;
@@ -172,7 +172,7 @@ function Ce(i) {
172
172
  ), O(e, "class", "CasinoCategoriesContainer svelte-1my2wow");
173
173
  },
174
174
  m(a, n) {
175
- E(a, e, n), _e(e, t);
175
+ j(a, e, n), he(e, t);
176
176
  },
177
177
  p(a, n) {
178
178
  n[0] & /*lang*/
@@ -262,48 +262,48 @@ function Ce(i) {
262
262
  );
263
263
  },
264
264
  d(a) {
265
- a && j(e);
265
+ a && E(e);
266
266
  }
267
267
  };
268
268
  }
269
- function ke(i) {
269
+ function Ge(i) {
270
270
  let e;
271
271
  return {
272
272
  c() {
273
273
  e = h("p"), e.textContent = "500 Error - Internal Server Error.", O(e, "class", "SearchLoading svelte-1my2wow");
274
274
  },
275
275
  m(t, a) {
276
- E(t, e, a);
276
+ j(t, e, a);
277
277
  },
278
278
  p: S,
279
279
  d(t) {
280
- t && j(e);
280
+ t && E(e);
281
281
  }
282
282
  };
283
283
  }
284
- function Se(i) {
284
+ function ke(i) {
285
285
  let e;
286
286
  return {
287
287
  c() {
288
288
  e = h("div"), O(e, "class", "CasinoCategoriesLoading svelte-1my2wow");
289
289
  },
290
290
  m(t, a) {
291
- E(t, e, a);
291
+ j(t, e, a);
292
292
  },
293
293
  p: S,
294
294
  d(t) {
295
- t && j(e);
295
+ t && E(e);
296
296
  }
297
297
  };
298
298
  }
299
- function Ee(i) {
299
+ function Se(i) {
300
300
  let e;
301
301
  function t(l, m) {
302
302
  return (
303
303
  /*isLoading*/
304
- l[13] || je || Pe ? Se : (
304
+ l[13] || Ee || je ? ke : (
305
305
  /*hasErrors*/
306
- l[15] ? ke : Ce
306
+ l[15] ? Ge : Ce
307
307
  )
308
308
  );
309
309
  }
@@ -313,7 +313,7 @@ function Ee(i) {
313
313
  e = h("div"), n.c();
314
314
  },
315
315
  m(l, m) {
316
- E(l, e, m), n.m(e, null), i[26](e);
316
+ j(l, e, m), n.m(e, null), i[26](e);
317
317
  },
318
318
  p(l, m) {
319
319
  a === (a = t(l)) && n ? n.p(l, m) : (n.d(1), n = a(l), n && (n.c(), n.m(e, null)));
@@ -321,51 +321,51 @@ function Ee(i) {
321
321
  i: S,
322
322
  o: S,
323
323
  d(l) {
324
- l && j(e), n.d(), i[26](null);
324
+ l && E(e), n.d(), i[26](null);
325
325
  }
326
326
  };
327
327
  }
328
- let D = "CasinoSliderData", je = !1, Pe = !1;
329
- function Ae(i, e, t) {
328
+ let D = "CasinoSliderData", Ee = !1, je = !1;
329
+ function Pe(i, e, t) {
330
330
  let a;
331
- fe(i, ve, (s) => t(32, a = s));
332
- let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: B = "" } = e, { sessioncheck: R = "" } = e, { location: U = "secondaryMenu" } = e, { showsubgroups: I = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: C = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Y, x, J, y = !0, b, d = [], f = !1, $ = window.navigator.userAgent, g, K, Q = !1, A = !1;
333
- const ee = () => {
334
- fetch(C).then((c) => c.json()).then((c) => {
331
+ ye(i, we, (s) => t(32, a = s));
332
+ let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: I = "" } = e, { sessioncheck: R = "" } = e, { location: U = "secondaryMenu" } = e, { showsubgroups: B = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: H = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: q = "" } = e, { mbsource: P } = e, x, z, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, J, K = !1, A = !1;
333
+ const $ = () => {
334
+ fetch(G).then((c) => c.json()).then((c) => {
335
335
  Object.keys(c).forEach((k) => {
336
- Z(k, c[k]);
336
+ X(k, c[k]);
337
337
  });
338
338
  }).catch((c) => {
339
339
  console.log(c);
340
340
  });
341
341
  };
342
- Object.keys(p).forEach((s) => {
343
- Z(s, p[s]);
342
+ Object.keys(Z).forEach((s) => {
343
+ X(s, Z[s]);
344
344
  });
345
- const te = () => {
346
- Q == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
345
+ const ee = () => {
346
+ K == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
347
347
  // @ts-ignore
348
348
  id: "MYGAMES",
349
349
  name: x,
350
350
  href: "",
351
351
  games: []
352
- }), de(), Q = !0, t(25, A = !0), V();
353
- }, se = () => (n || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), l || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!m || m.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 = () => {
354
- if (x = a("myGamesName"), J = a("lobbyName"), !se()) {
352
+ }), _e(), K = !0, t(25, A = !0), Q();
353
+ }, te = () => (n || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), l || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!m || m.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), se = () => {
354
+ if (x = a("myGamesName"), z = a("lobbyName"), !te()) {
355
355
  let s = new URL(`${n}/v2/casino/groups/${l}`);
356
- s.searchParams.append("language", m), s.searchParams.append("platform", he($)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((c) => c.json()).then(
356
+ s.searchParams.append("language", m), s.searchParams.append("platform", be(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((c) => c.json()).then(
357
357
  (c) => {
358
- let k = G.split(","), oe = c.items.filter((X) => {
358
+ let k = C.split(","), ne = c.items.filter((W) => {
359
359
  let F = !1;
360
- if (X.games.total > 0 && (F = !0, G))
361
- for (let re of k)
362
- X.flags == re && (F = !1);
360
+ if (W.games.total > 0 && (F = !0, C))
361
+ for (let oe of k)
362
+ W.flags == oe && (F = !1);
363
363
  return F;
364
364
  });
365
- d = [], d = d.concat(oe), d.unshift({
365
+ d = [], d = d.concat(ne), d.unshift({
366
366
  // @ts-ignore
367
367
  id: "LOBBY",
368
- name: J,
368
+ name: z,
369
369
  href: "",
370
370
  games: []
371
371
  }), t(13, y = !1);
@@ -377,10 +377,10 @@ function Ae(i, e, t) {
377
377
  t(15, f = !0), console.error("There was an error while fetching the categories", c);
378
378
  });
379
379
  }
380
- }, ae = () => {
380
+ }, ie = () => {
381
381
  let s = u.split("$");
382
382
  t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
383
- }, V = () => {
383
+ }, Q = () => {
384
384
  window.postMessage(
385
385
  {
386
386
  type: "SliderData",
@@ -389,66 +389,66 @@ function Ae(i, e, t) {
389
389
  },
390
390
  window.location.href
391
391
  );
392
- }, W = (s) => {
393
- s.data && s.data.type == "SliderLoaded" && D == s.data.identity && V();
392
+ }, V = (s) => {
393
+ s.data && s.data.type == "SliderLoaded" && D == s.data.identity && Q();
394
394
  };
395
- be(() => (window.addEventListener("message", W, !1), () => {
396
- window.emMessageBus && Y && Y.unsubscribe(), window.removeEventListener("message", W);
395
+ fe(() => (window.addEventListener("message", V, !1), () => {
396
+ window.removeEventListener("message", V);
397
397
  }));
398
- function ne(s) {
399
- we[s ? "unshift" : "push"](() => {
398
+ function ae(s) {
399
+ de[s ? "unshift" : "push"](() => {
400
400
  g = s, t(14, g);
401
401
  });
402
402
  }
403
403
  return i.$$set = (s) => {
404
- "endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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, B = s.actionevent), "sessioncheck" in s && t(22, R = s.sessioncheck), "location" in s && t(7, U = s.location), "showsubgroups" in s && t(8, I = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, C = 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);
404
+ "endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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, I = s.actionevent), "sessioncheck" in s && t(22, R = s.sessioncheck), "location" in s && t(7, U = s.location), "showsubgroups" in s && t(8, B = s.showsubgroups), "filteredcategories" in s && t(23, C = s.filteredcategories), "translationurl" in s && t(24, G = s.translationurl), "categoriesicon" in s && t(9, H = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, q = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
405
405
  }, i.$$.update = () => {
406
406
  i.$$.dirty[0] & /*endpoint, datasource, lang*/
407
- 14 && n && l && m && ie(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
408
- 3940354 && n && w && (N || L || M) && !y && te(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
409
- 33824769 && !y && u && (!w || A) && ae(), i.$$.dirty[0] & /*translationurl*/
410
- 16777216 && C && ee(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
407
+ 14 && n && l && m && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
408
+ 3940354 && n && w && (N || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
409
+ 33824769 && !y && u && (!w || A) && ie(), i.$$.dirty[0] & /*translationurl*/
410
+ 16777216 && G && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
411
411
  16400 && _ && g && Ne(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
412
412
  16416 && v && g && Le(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
413
413
  20480 && g && Me(g, `${P}.Style`);
414
- }, t(16, K = 0), [
414
+ }, t(16, J = 0), [
415
415
  u,
416
416
  n,
417
417
  l,
418
418
  m,
419
419
  _,
420
420
  v,
421
- B,
422
- U,
423
421
  I,
424
- q,
425
- z,
422
+ U,
423
+ B,
426
424
  H,
425
+ Y,
426
+ q,
427
427
  P,
428
428
  y,
429
429
  g,
430
430
  f,
431
- K,
431
+ J,
432
432
  T,
433
433
  w,
434
434
  N,
435
435
  L,
436
436
  M,
437
437
  R,
438
- G,
439
438
  C,
439
+ G,
440
440
  A,
441
- ne
441
+ ae
442
442
  ];
443
443
  }
444
- class Fe extends ce {
444
+ class Ae extends le {
445
445
  constructor(e) {
446
- super(), me(
446
+ super(), ce(
447
447
  this,
448
448
  e,
449
- Ae,
450
- Ee,
451
- ue,
449
+ Pe,
450
+ Se,
451
+ me,
452
452
  {
453
453
  endpoint: 1,
454
454
  datasource: 2,
@@ -472,7 +472,7 @@ class Fe extends ce {
472
472
  mygamesiconimage: 11,
473
473
  mbsource: 12
474
474
  },
475
- Ge,
475
+ ve,
476
476
  [-1, -1]
477
477
  );
478
478
  }
@@ -603,7 +603,7 @@ class Fe extends ce {
603
603
  this.$$set({ mbsource: e }), r();
604
604
  }
605
605
  }
606
- ge(Fe, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
606
+ ge(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
607
607
  export {
608
- Fe as default
608
+ Ae as default
609
609
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CDybCkBw.cjs");function x(i,e){t.addMessages(i,e)}const J={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(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-C0mxz0hk.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(i){t.append_styles(i,"svelte-1my2wow",".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}")}function ae(i){let e,s;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",E),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-1my2wow")},m(n,o){t.insert(n,e,o),t.append(e,s)},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)}}}function ie(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-1my2wow")},m(s,n){t.insert(s,e,n)},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-1my2wow")},m(s,n){t.insert(s,e,n)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;function s(l,m){return l[13]||le||re?ne:l[15]?ie:ae}let n=s(i),o=n(i);return{c(){e=t.element("div"),o.c()},m(l,m){t.insert(l,e,m),o.m(e,null),i[26](e)},p(l,m){n===(n=s(l))&&o?o.p(l,m):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null)))},i:t.noop,o:t.noop,d(l){l&&t.detach(e),o.d(),i[26](null)}}}let E="CasinoSliderData",le=!1,re=!1;function me(i,e,s){let n;t.component_subscribe(i,t.$format,a=>s(32,n=a));let{endpoint:o=""}=e,{datasource:l=""}=e,{lang:m=""}=e,{userid:j=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:w=""}=e,{clientstyling:N=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:P=""}=e,{sessioncheck:A=""}=e,{location:F="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:D=""}=e,{mygamesiconimage:R=""}=e,{mbsource:G}=e,U,q,g=!0,f,d=[],y=!1,Q=window.navigator.userAgent,c,B,I=!1,k=!1;const V=()=>{fetch(v).then(r=>r.json()).then(r=>{Object.keys(r).forEach(C=>{x(C,r[C])})}).catch(r=>{console.log(r)})};Object.keys(J).forEach(a=>{x(a,J[a])});const W=()=>{I==!1&&(w=="true"||b=="true"||_=="true")&&d.splice(1,0,{id:"MYGAMES",name:U,href:"",games:[]}),t.tick(),I=!0,s(25,k=!0),Y()},X=()=>(o||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,y=!0),s(13,g=!1),console.error(f)),l||(f="Datasource is missing! Please provide a valid datasource.",s(15,y=!0),s(13,g=!1),console.error(f)),(!m||m.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,y=!0),s(13,g=!1),console.error(f)),y),Z=()=>{if(U=n("myGamesName"),q=n("lobbyName"),!X()){let a=new URL(`${o}/v2/casino/groups/${l}`);a.searchParams.append("language",m),a.searchParams.append("platform",t.getDevice(Q)),a.searchParams.append("fields","id,name,games(href)"),fetch(a).then(r=>r.json()).then(r=>{let C=M.split(","),ee=r.items.filter(H=>{let S=!1;if(H.games.total>0&&(S=!0,M))for(let te of C)H.flags==te&&(S=!1);return S});d=[],d=d.concat(ee),d.unshift({id:"LOBBY",name:q,href:"",games:[]}),s(13,g=!1)},r=>{s(15,y=!0),console.error("There was an error while fetching the categories",r)}).catch(r=>{s(15,y=!0),console.error("There was an error while fetching the categories",r)})}},p=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},Y=()=>{window.postMessage({type:"SliderData",identity:E,data:d},window.location.href)},z=a=>{a.data&&a.data.type=="SliderLoaded"&&E==a.data.identity&&Y()};t.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{c=a,s(14,c)})}return i.$$set=a=>{"endpoint"in a&&s(1,o=a.endpoint),"datasource"in a&&s(2,l=a.datasource),"lang"in a&&s(3,m=a.lang),"userid"in a&&s(17,j=a.userid),"session"in a&&s(18,h=a.session),"mostplayed"in a&&s(19,b=a.mostplayed),"lastplayed"in a&&s(20,_=a.lastplayed),"favorites"in a&&s(21,w=a.favorites),"clientstyling"in a&&s(4,N=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,P=a.actionevent),"sessioncheck"in a&&s(22,A=a.sessioncheck),"location"in a&&s(7,F=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,D=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,R=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&o&&l&&m&&Z(),i.$$.dirty[0]&3940354&&o&&h&&(b||_||w)&&!g&&W(),i.$$.dirty[0]&33824769&&!g&&u&&(!h||k)&&p(),i.$$.dirty[0]&16777216&&v&&V(),i.$$.dirty[0]&16400&&N&&c&&t.setClientStyling(c,N),i.$$.dirty[0]&16416&&L&&c&&t.setClientStylingURL(c,L),i.$$.dirty[0]&20480&&c&&t.setStreamStyling(c,`${G}.Style`)},s(16,B=0),[u,o,l,m,N,L,P,F,O,T,D,R,G,g,c,y,B,j,h,b,_,w,A,M,v,k,$]}class K extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,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[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}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[22]}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[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}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(K,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=K;
@@ -1,8 +1,8 @@
1
- import { a as le, S as ce, i as me, f as r, 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, M as de, N as he, p as we, q as Ne, r as Le, l as Me, H as o, y as O, z as _e, J as ve } from "./CasinoCalendar-CTTcluAF.js";
2
- function Z(i, e) {
3
- le(i, e);
1
+ import { a as re, S as le, i as ce, s as me, f as r, b as ge, n as S, d as E, h as j, j as h, k as ue, o as ye, M as fe, C as be, r as O, E as o, p as de, H as he, I as we, J as Ne, K as Le, N as Me, L as _e } from "./CasinoCalendar-DeuDpvc7.js";
2
+ function X(i, e) {
3
+ re(i, e);
4
4
  }
5
- const p = {
5
+ const Z = {
6
6
  en: {
7
7
  lobbyName: "Lobby",
8
8
  myGamesName: "My games"
@@ -88,12 +88,12 @@ if (typeof window != "undefined") {
88
88
  }
89
89
  };
90
90
  };
91
- customElements.define = i(customElements.define), import("./CasinoSlider-OSPrTvMo.js").then(({ default: e }) => {
91
+ customElements.define = i(customElements.define), import("./CasinoSlider-DpYeYJhK.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-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
95
+ function ve(i) {
96
+ ge(i, "svelte-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
97
97
  }
98
98
  function Ce(i) {
99
99
  let e, t;
@@ -172,7 +172,7 @@ function Ce(i) {
172
172
  ), O(e, "class", "CasinoCategoriesContainer svelte-1my2wow");
173
173
  },
174
174
  m(a, n) {
175
- E(a, e, n), _e(e, t);
175
+ j(a, e, n), de(e, t);
176
176
  },
177
177
  p(a, n) {
178
178
  n[0] & /*lang*/
@@ -262,48 +262,48 @@ function Ce(i) {
262
262
  );
263
263
  },
264
264
  d(a) {
265
- a && j(e);
265
+ a && E(e);
266
266
  }
267
267
  };
268
268
  }
269
- function ke(i) {
269
+ function Ge(i) {
270
270
  let e;
271
271
  return {
272
272
  c() {
273
273
  e = h("p"), e.textContent = "500 Error - Internal Server Error.", O(e, "class", "SearchLoading svelte-1my2wow");
274
274
  },
275
275
  m(t, a) {
276
- E(t, e, a);
276
+ j(t, e, a);
277
277
  },
278
278
  p: S,
279
279
  d(t) {
280
- t && j(e);
280
+ t && E(e);
281
281
  }
282
282
  };
283
283
  }
284
- function Se(i) {
284
+ function ke(i) {
285
285
  let e;
286
286
  return {
287
287
  c() {
288
288
  e = h("div"), O(e, "class", "CasinoCategoriesLoading svelte-1my2wow");
289
289
  },
290
290
  m(t, a) {
291
- E(t, e, a);
291
+ j(t, e, a);
292
292
  },
293
293
  p: S,
294
294
  d(t) {
295
- t && j(e);
295
+ t && E(e);
296
296
  }
297
297
  };
298
298
  }
299
- function Ee(i) {
299
+ function Se(i) {
300
300
  let e;
301
301
  function t(l, m) {
302
302
  return (
303
303
  /*isLoading*/
304
- l[13] || je || Pe ? Se : (
304
+ l[13] || Ee || je ? ke : (
305
305
  /*hasErrors*/
306
- l[15] ? ke : Ce
306
+ l[15] ? Ge : Ce
307
307
  )
308
308
  );
309
309
  }
@@ -313,7 +313,7 @@ function Ee(i) {
313
313
  e = h("div"), n.c();
314
314
  },
315
315
  m(l, m) {
316
- E(l, e, m), n.m(e, null), i[26](e);
316
+ j(l, e, m), n.m(e, null), i[26](e);
317
317
  },
318
318
  p(l, m) {
319
319
  a === (a = t(l)) && n ? n.p(l, m) : (n.d(1), n = a(l), n && (n.c(), n.m(e, null)));
@@ -321,51 +321,51 @@ function Ee(i) {
321
321
  i: S,
322
322
  o: S,
323
323
  d(l) {
324
- l && j(e), n.d(), i[26](null);
324
+ l && E(e), n.d(), i[26](null);
325
325
  }
326
326
  };
327
327
  }
328
- let D = "CasinoSliderData", je = !1, Pe = !1;
329
- function Ae(i, e, t) {
328
+ let D = "CasinoSliderData", Ee = !1, je = !1;
329
+ function Pe(i, e, t) {
330
330
  let a;
331
- fe(i, ve, (s) => t(32, a = s));
332
- let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: B = "" } = e, { sessioncheck: R = "" } = e, { location: U = "secondaryMenu" } = e, { showsubgroups: I = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: C = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Y, x, J, y = !0, b, d = [], f = !1, $ = window.navigator.userAgent, g, K, Q = !1, A = !1;
333
- const ee = () => {
334
- fetch(C).then((c) => c.json()).then((c) => {
331
+ ue(i, _e, (s) => t(32, a = s));
332
+ let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: I = "" } = e, { sessioncheck: R = "" } = e, { location: U = "secondaryMenu" } = e, { showsubgroups: B = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: H = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: q = "" } = e, { mbsource: P } = e, x, z, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, J, K = !1, A = !1;
333
+ const $ = () => {
334
+ fetch(G).then((c) => c.json()).then((c) => {
335
335
  Object.keys(c).forEach((k) => {
336
- Z(k, c[k]);
336
+ X(k, c[k]);
337
337
  });
338
338
  }).catch((c) => {
339
339
  console.log(c);
340
340
  });
341
341
  };
342
- Object.keys(p).forEach((s) => {
343
- Z(s, p[s]);
342
+ Object.keys(Z).forEach((s) => {
343
+ X(s, Z[s]);
344
344
  });
345
- const te = () => {
346
- Q == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
345
+ const ee = () => {
346
+ K == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
347
347
  // @ts-ignore
348
348
  id: "MYGAMES",
349
349
  name: x,
350
350
  href: "",
351
351
  games: []
352
- }), de(), Q = !0, t(25, A = !0), V();
353
- }, se = () => (n || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), l || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!m || m.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 = () => {
354
- if (x = a("myGamesName"), J = a("lobbyName"), !se()) {
352
+ }), Me(), K = !0, t(25, A = !0), Q();
353
+ }, te = () => (n || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), l || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!m || m.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), se = () => {
354
+ if (x = a("myGamesName"), z = a("lobbyName"), !te()) {
355
355
  let s = new URL(`${n}/v2/casino/groups/${l}`);
356
- s.searchParams.append("language", m), s.searchParams.append("platform", he($)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((c) => c.json()).then(
356
+ s.searchParams.append("language", m), s.searchParams.append("platform", fe(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((c) => c.json()).then(
357
357
  (c) => {
358
- let k = G.split(","), oe = c.items.filter((X) => {
358
+ let k = C.split(","), ne = c.items.filter((W) => {
359
359
  let F = !1;
360
- if (X.games.total > 0 && (F = !0, G))
361
- for (let re of k)
362
- X.flags == re && (F = !1);
360
+ if (W.games.total > 0 && (F = !0, C))
361
+ for (let oe of k)
362
+ W.flags == oe && (F = !1);
363
363
  return F;
364
364
  });
365
- d = [], d = d.concat(oe), d.unshift({
365
+ d = [], d = d.concat(ne), d.unshift({
366
366
  // @ts-ignore
367
367
  id: "LOBBY",
368
- name: J,
368
+ name: z,
369
369
  href: "",
370
370
  games: []
371
371
  }), t(13, y = !1);
@@ -377,10 +377,10 @@ function Ae(i, e, t) {
377
377
  t(15, f = !0), console.error("There was an error while fetching the categories", c);
378
378
  });
379
379
  }
380
- }, ae = () => {
380
+ }, ie = () => {
381
381
  let s = u.split("$");
382
382
  t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
383
- }, V = () => {
383
+ }, Q = () => {
384
384
  window.postMessage(
385
385
  {
386
386
  type: "SliderData",
@@ -389,66 +389,66 @@ function Ae(i, e, t) {
389
389
  },
390
390
  window.location.href
391
391
  );
392
- }, W = (s) => {
393
- s.data && s.data.type == "SliderLoaded" && D == s.data.identity && V();
392
+ }, V = (s) => {
393
+ s.data && s.data.type == "SliderLoaded" && D == s.data.identity && Q();
394
394
  };
395
- be(() => (window.addEventListener("message", W, !1), () => {
396
- window.emMessageBus && Y && Y.unsubscribe(), window.removeEventListener("message", W);
395
+ ye(() => (window.addEventListener("message", V, !1), () => {
396
+ window.removeEventListener("message", V);
397
397
  }));
398
- function ne(s) {
399
- we[s ? "unshift" : "push"](() => {
398
+ function ae(s) {
399
+ be[s ? "unshift" : "push"](() => {
400
400
  g = s, t(14, g);
401
401
  });
402
402
  }
403
403
  return i.$$set = (s) => {
404
- "endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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, B = s.actionevent), "sessioncheck" in s && t(22, R = s.sessioncheck), "location" in s && t(7, U = s.location), "showsubgroups" in s && t(8, I = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, C = 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);
404
+ "endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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, I = s.actionevent), "sessioncheck" in s && t(22, R = s.sessioncheck), "location" in s && t(7, U = s.location), "showsubgroups" in s && t(8, B = s.showsubgroups), "filteredcategories" in s && t(23, C = s.filteredcategories), "translationurl" in s && t(24, G = s.translationurl), "categoriesicon" in s && t(9, H = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, q = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
405
405
  }, i.$$.update = () => {
406
406
  i.$$.dirty[0] & /*endpoint, datasource, lang*/
407
- 14 && n && l && m && ie(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
408
- 3940354 && n && w && (N || L || M) && !y && te(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
409
- 33824769 && !y && u && (!w || A) && ae(), i.$$.dirty[0] & /*translationurl*/
410
- 16777216 && C && ee(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
411
- 16400 && _ && g && Ne(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
412
- 16416 && v && g && Le(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
413
- 20480 && g && Me(g, `${P}.Style`);
414
- }, t(16, K = 0), [
407
+ 14 && n && l && m && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
408
+ 3940354 && n && w && (N || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
409
+ 33824769 && !y && u && (!w || A) && ie(), i.$$.dirty[0] & /*translationurl*/
410
+ 16777216 && G && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
411
+ 16400 && _ && g && he(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
412
+ 16416 && v && g && we(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
413
+ 20480 && g && Ne(g, `${P}.Style`);
414
+ }, t(16, J = 0), [
415
415
  u,
416
416
  n,
417
417
  l,
418
418
  m,
419
419
  _,
420
420
  v,
421
- B,
422
- U,
423
421
  I,
424
- q,
425
- z,
422
+ U,
423
+ B,
426
424
  H,
425
+ Y,
426
+ q,
427
427
  P,
428
428
  y,
429
429
  g,
430
430
  f,
431
- K,
431
+ J,
432
432
  T,
433
433
  w,
434
434
  N,
435
435
  L,
436
436
  M,
437
437
  R,
438
- G,
439
438
  C,
439
+ G,
440
440
  A,
441
- ne
441
+ ae
442
442
  ];
443
443
  }
444
- class Fe extends ce {
444
+ class Ae extends le {
445
445
  constructor(e) {
446
- super(), me(
446
+ super(), ce(
447
447
  this,
448
448
  e,
449
- Ae,
450
- Ee,
451
- ue,
449
+ Pe,
450
+ Se,
451
+ me,
452
452
  {
453
453
  endpoint: 1,
454
454
  datasource: 2,
@@ -472,7 +472,7 @@ class Fe extends ce {
472
472
  mygamesiconimage: 11,
473
473
  mbsource: 12
474
474
  },
475
- Ge,
475
+ ve,
476
476
  [-1, -1]
477
477
  );
478
478
  }
@@ -603,7 +603,7 @@ class Fe extends ce {
603
603
  this.$$set({ mbsource: e }), r();
604
604
  }
605
605
  }
606
- ge(Fe, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
606
+ Le(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
607
607
  export {
608
- Fe as default
608
+ Ae as default
609
609
  };