@everymatrix/casino-lobby 1.57.0 → 1.58.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 (85) hide show
  1. package/components/{CasinoCalendar-BU2gZgoA.js → CasinoCalendar-BWZKTjt3.js} +931 -953
  2. package/components/{CasinoCalendar-BYhP1252.js → CasinoCalendar-CEPKCmvL.js} +903 -925
  3. package/components/CasinoCalendar-YzaZrGBf.cjs +22 -0
  4. package/components/{CasinoCalendarDailyDetails-zomrPGwC.js → CasinoCalendarDailyDetails-BZxw5rrd.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-BvbgM2tY.js → CasinoCalendarDailyDetails-C4rdfT96.js} +48 -48
  6. package/components/{CasinoCalendarDailyDetails-DkbuLEg5.cjs → CasinoCalendarDailyDetails-CneP-8H4.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-BCuBW8Ar.js → CasinoCalendarDailyItem-B3mEEjHA.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-DO4dUNpH.js → CasinoCalendarDailyItem-DAH0pKrw.js} +41 -41
  9. package/components/{CasinoCalendarDailyItem-DX_5vyqn.cjs → CasinoCalendarDailyItem-yxm1jout.cjs} +1 -1
  10. package/components/{CasinoCategoriesSlider-BOJ1THEs.js → CasinoCategoriesSlider-Dd33-jys.js} +65 -65
  11. package/components/CasinoCategoriesSlider-DozoHOzF.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-BXOmh9s8.js → CasinoCategoriesSlider-t9Ea10Xr.js} +66 -66
  13. package/components/{CasinoCollectionsProviders-BFNXK0mZ.cjs → CasinoCollectionsProviders-CBiEhbus.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-CRAmbMuu.js → CasinoCollectionsProviders-DAgGlzwM.js} +77 -77
  15. package/components/{CasinoCollectionsProviders-BX_dEzdy.js → CasinoCollectionsProviders-bmfbt1iI.js} +75 -75
  16. package/components/{CasinoFavoritesSection-DkMuV4ev.js → CasinoFavoritesSection-B9pa_5wC.js} +26 -26
  17. package/components/{CasinoFavoritesSection-BpiA2iBc.js → CasinoFavoritesSection-Dm0Ylorq.js} +26 -26
  18. package/components/{CasinoFavoritesSection-21RKmDna.cjs → CasinoFavoritesSection-n_i25VDL.cjs} +1 -1
  19. package/components/CasinoFilter-B7H_n_MD.cjs +1 -0
  20. package/components/{CasinoFilter-BtQon8od.js → CasinoFilter-BTP1X8zp.js} +246 -247
  21. package/components/{CasinoFilter-Du7IqNdv.js → CasinoFilter-BaCM2CFg.js} +235 -234
  22. package/components/{CasinoGamePage-D6WlJtbq.cjs → CasinoGamePage-CIvFWln2.cjs} +6 -6
  23. package/components/{CasinoGamePage-CAR8Lbbu.js → CasinoGamePage-DSk7OmI2.js} +1271 -1282
  24. package/components/{CasinoGamePage-SkHZ0J32.js → CasinoGamePage-jh3dkrf4.js} +914 -925
  25. package/components/{CasinoGameThumbnail-C5zpCoxS.js → CasinoGameThumbnail-BXCu7VY7.js} +353 -369
  26. package/components/{CasinoGameThumbnail-C8-30qgE.js → CasinoGameThumbnail-Mnpd_s_M.js} +281 -265
  27. package/components/{CasinoGameThumbnail-CX3_s0pB.cjs → CasinoGameThumbnail-uCJn0tBq.cjs} +7 -7
  28. package/components/{CasinoGamesCategorySection-CXHto_G8.cjs → CasinoGamesCategorySection-BBfNK7Mo.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-tBfZtEqo.js → CasinoGamesCategorySection-BU3JMFcx.js} +245 -245
  30. package/components/{CasinoGamesCategorySection-DGep1gpT.js → CasinoGamesCategorySection-dyyrntic.js} +245 -245
  31. package/components/{CasinoJackpotBanner-B6za0Zjf.js → CasinoJackpotBanner-7unbFH4I.js} +72 -72
  32. package/components/{CasinoJackpotBanner-DVU6U9lr.js → CasinoJackpotBanner-BvW5shKI.js} +79 -79
  33. package/components/{CasinoJackpotBanner-CRGjJl2y.cjs → CasinoJackpotBanner-RjyciaDJ.cjs} +1 -1
  34. package/components/{CasinoLastPlayedSection-w-DOhWFY.js → CasinoLastPlayedSection--cJ8dS0F.js} +43 -43
  35. package/components/{CasinoLastPlayedSection-grLc4PdV.js → CasinoLastPlayedSection-BtSsd68j.js} +43 -43
  36. package/components/{CasinoLastPlayedSection-DuDTrTEV.cjs → CasinoLastPlayedSection-YmqYIIYS.cjs} +1 -1
  37. package/components/{CasinoLobby-C_dHD756.js → CasinoLobby--nSc5THC.js} +45 -45
  38. package/components/{CasinoLobby-7M5tWyyJ.cjs → CasinoLobby-BUcjKu4u.cjs} +1 -1
  39. package/components/{CasinoLobby-CJaplwul.js → CasinoLobby-DngFRvmY.js} +47 -47
  40. package/components/{CasinoModal-BEa4Ij-6.js → CasinoModal-88yfZulM.js} +41 -41
  41. package/components/{CasinoModal-35QTkTq-.cjs → CasinoModal-Ce5Pthg0.cjs} +1 -1
  42. package/components/{CasinoModal-CFbQNGPR.js → CasinoModal-D9_hs2c9.js} +41 -41
  43. package/components/{CasinoMostPlayedSection-CSKQtJpR.js → CasinoMostPlayedSection-BldCqqK1.js} +50 -50
  44. package/components/{CasinoMostPlayedSection-CXjNel4O.js → CasinoMostPlayedSection-CvX-e31F.js} +50 -50
  45. package/components/{CasinoMostPlayedSection-BlcQlzEc.cjs → CasinoMostPlayedSection-DI5TANog.cjs} +1 -1
  46. package/components/{CasinoMyGames-5jrRlRZ3.js → CasinoMyGames-CJm9ApZ8.js} +50 -50
  47. package/components/{CasinoMyGames-28VFQfos.js → CasinoMyGames-CNSxKFTG.js} +53 -53
  48. package/components/{CasinoMyGames-CPwnBj_e.cjs → CasinoMyGames-DQEE59aC.cjs} +1 -1
  49. package/components/{CasinoPage-BelcpcFg.js → CasinoPage-DeZ_xrWS.js} +91 -91
  50. package/components/{CasinoPage-Dx4ipUxr.js → CasinoPage-Renb8OYu.js} +91 -91
  51. package/components/{CasinoPage-CpV6CfKv.cjs → CasinoPage-_d_6nEdh.cjs} +1 -1
  52. package/components/{CasinoRandomGame-DcHbcmu8.js → CasinoRandomGame-8kMXdgrA.js} +64 -64
  53. package/components/{CasinoRandomGame-Njs6ODWp.js → CasinoRandomGame-CaLII6na.js} +63 -63
  54. package/components/{CasinoRandomGame-DnwNz2Jt.cjs → CasinoRandomGame-CjLDPmJh.cjs} +1 -1
  55. package/components/{CasinoSearch-Cv1lRhic.cjs → CasinoSearch-Cf4ivtxM.cjs} +1 -1
  56. package/components/{CasinoSearch-Biq528Xd.js → CasinoSearch-ISBqoS_l.js} +72 -72
  57. package/components/{CasinoSearch-BbORpTNK.js → CasinoSearch-eN8ZAKdn.js} +72 -72
  58. package/components/{CasinoSlider-BiIS2-lS.cjs → CasinoSlider-BqOuFEE1.cjs} +1 -1
  59. package/components/{CasinoSlider-BbRVIW35.js → CasinoSlider-DLY4ZBJR.js} +65 -65
  60. package/components/{CasinoSlider-BpVYjfEZ.js → CasinoSlider-DTLHID6G.js} +74 -74
  61. package/components/{CasinoSort-BIiSCydQ.js → CasinoSort-BNFUwAYT.js} +110 -111
  62. package/components/{CasinoSort-ClDrkZcs.cjs → CasinoSort-BpUmCYRy.cjs} +1 -1
  63. package/components/{CasinoSort-BCZs_7vq.js → CasinoSort-DKL_qMEQ.js} +104 -103
  64. package/components/{CasinoWinners-D9QEbcwQ.js → CasinoWinners-BoSyqMDy.js} +157 -157
  65. package/components/{CasinoWinners-fcmQdKZx.js → CasinoWinners-Czg0Gq3N.js} +148 -148
  66. package/components/{CasinoWinners-CNAN8Ko7.cjs → CasinoWinners-DRdsN9K_.cjs} +1 -1
  67. package/components/{GeneralAnimationLoading-dlh-TGCV.cjs → GeneralAnimationLoading-CVr2zyUi.cjs} +1 -1
  68. package/components/{GeneralAnimationLoading-BEyM9jr_.js → GeneralAnimationLoading-DL8bFxE7.js} +16 -16
  69. package/components/{GeneralAnimationLoading-uTgCxIjZ.js → GeneralAnimationLoading-swHQRr7H.js} +16 -16
  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-B9yaAMOE.js → casino-play-random-game-BOnTgUqC.js} +1 -1
  75. package/stencil/{casino-play-random-game-a53bUW_d.cjs → casino-play-random-game-DjdZ0XM0.cjs} +1 -1
  76. package/stencil/{casino-play-random-game-BTXyM5es.js → casino-play-random-game-NcJEjFWA.js} +1 -1
  77. package/stencil/index-510a6ba4-1RrL4Z6e.js +564 -0
  78. package/stencil/index-510a6ba4-CNr-xCZE.js +548 -0
  79. package/stencil/index-510a6ba4-eEczisTR.cjs +1 -0
  80. package/components/CasinoCalendar-pDYRKcjG.cjs +0 -22
  81. package/components/CasinoCategoriesSlider-3PL0POlf.cjs +0 -1
  82. package/components/CasinoFilter-D06f7IqM.cjs +0 -1
  83. package/stencil/index-510a6ba4-B9_VY7vu.cjs +0 -1
  84. package/stencil/index-510a6ba4-CYFuKFRQ.js +0 -564
  85. package/stencil/index-510a6ba4-CzpWs0jf.js +0 -548
@@ -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, N as he, O as Ne, q as we, r as Le, m as Me, P as n, y as T, z as _e, Q as ve, I as Ce } from "./CasinoCalendar-BYhP1252.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, N as fe, C as be, r as T, O as n, p as de, P as he, I as Ne, J as we, K as Le, L as Me, Q as _e, M as ve } from "./CasinoCalendar-CEPKCmvL.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-BpVYjfEZ.js").then(({ default: e }) => {
91
+ customElements.define = i(customElements.define), import("./CasinoSlider-DTLHID6G.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), de(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: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: q = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: z = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Q, J, 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: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = 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, b, d = [], 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" || w == "true" || L == "true") && d.splice(1, 0, {
348
+ const ee = () => {
349
+ V == !1 && (M == "true" || w == "true" || L == "true") && d.splice(1, 0, {
350
350
  // @ts-ignore
351
351
  id: "MYGAMES",
352
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 (J = r("myGamesName"), K = r("lobbyName"), !se()) {
355
+ }), _e(), V = !0, t(26, F = !0), A();
356
+ }, te = () => (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), se = () => {
357
+ if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
358
358
  let s = new URL(`${c}/v1/casino/groups/${a}`);
359
- s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform", Ne($)), fetch(s).then((m) => m.json()).then(
359
+ s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform", fe(p)), 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
+ d = [], d = d.concat(ne), d.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 = () => {
@@ -392,29 +392,29 @@ function Ae(i, e, t) {
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 && Q && Q.unsubscribe(), window.removeEventListener("message", X);
398
+ ye(() => (window.addEventListener("message", W, !1), () => {
399
+ window.removeEventListener("message", W);
400
400
  }));
401
- function ne(s) {
402
- we[s ? "unshift" : "push"](() => {
401
+ function ae(s) {
402
+ be[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, I = 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, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = 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, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = 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, I = 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, R = s.actionevent), "sessioncheck" in s && t(23, U = 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 && N && (w || L || M) && !y && te(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
412
- 67641345 && !y && u && (!N || 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,
@@ -423,15 +423,15 @@ function Ae(i, e, t) {
423
423
  v,
424
424
  R,
425
425
  B,
426
+ Y,
426
427
  q,
427
428
  z,
428
- Y,
429
429
  H,
430
430
  P,
431
431
  y,
432
432
  g,
433
433
  f,
434
- V,
434
+ Q,
435
435
  A,
436
436
  I,
437
437
  N,
@@ -442,17 +442,17 @@ function Ae(i, e, t) {
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
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-pDYRKcjG.cjs");function I(i,t){e.addMessages(i,t)}function re(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function ae(i){e.append_styles(i,"svelte-3oqkg3",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function U(i,t,l){const r=i.slice();return r[40]=t[l],r}function V(i,t,l){const r=i.slice();return r[43]=t[l],r}function se(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,v,w,d=i[7]>i[8]&&W(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=K(U(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),b=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,b),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=W(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=U(c,m,h);s[h]?s[h].p(p,u):(s[h]=K(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function de(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function W(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(b,v){e.insert(b,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ce(i){let t,l=i[40].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[40].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ge(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[40].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[40].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[40].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[40].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function E(i){let t,l=i[43].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[43].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[43].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[43].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,o,a,g,b,v;function w(){return i[23](i[43])}let d=i[2]=="true"&&E(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[43].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[43].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[43].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[43].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=E(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ge;if(p[1]==="title")return ce}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[40].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=D(V(i,c,p));function h(){return i[24](i[40])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let _=0;_<u.length;_+=1)u[_].c();b=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[40])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[40])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[40].games);let y;for(y=0;y<c.length;y+=1){const L=V(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[40])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[40])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function ue(i){let t;function l(a,g){return a[6]?de:se}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function pe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:b=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,_=0,S=0,y,L,x=0,M=50,j=!1,P,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(k=>{I(k,C[k])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{I(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let k=C.items.map(G=>{var q,A,N;return{id:G.id,name:G.name,icon:G.icon?G.icon:(N=(A=(q=G.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:G.games.items.slice(0,4).map(oe=>oe),background:G.background,flag:G.flags}});l(3,u=[...u,...k]),l(7,_=u.length)})},O=n=>{L=[...p.children],L.forEach((C,k)=>{C.style.transform=`translateX(${100*(n?k-n:k)}%)`}),y=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},Q=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},$=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,k,G)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:k,subVendor:G},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${k}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ee=()=>{re(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const te=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ie=n=>B(n.id);function le(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{P=n,l(5,P)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,b=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&O(),i.$$.dirty[0]&131072&&g&&ee(),i.$$.dirty[0]&262176&&w&&P&&e.setClientStyling(P,w),i.$$.dirty[0]&524320&&d&&P&&e.setClientStylingURL(P,d),i.$$.dirty[0]&2097184&&P&&e.setStreamStyling(P,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,P,h,_,S,T,r,Q,$,z,B,o,a,g,w,d,m,c,j,te,ie,le,ne]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pe,ue,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},ae,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-YzaZrGBf.cjs");function I(i,t){e.addMessages(i,t)}function re(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function ae(i){e.append_styles(i,"svelte-3oqkg3",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function U(i,t,l){const r=i.slice();return r[40]=t[l],r}function V(i,t,l){const r=i.slice();return r[43]=t[l],r}function se(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,v,w,d=i[7]>i[8]&&W(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=K(U(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),b=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,b),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=W(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=U(c,m,h);s[h]?s[h].p(p,u):(s[h]=K(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function de(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function W(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(b,v){e.insert(b,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ce(i){let t,l=i[40].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[40].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ge(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[40].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[40].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[40].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[40].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function E(i){let t,l=i[43].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[43].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[43].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[43].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,o,a,g,b,v;function w(){return i[23](i[43])}let d=i[2]=="true"&&E(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[43].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[43].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[43].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[43].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=E(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ge;if(p[1]==="title")return ce}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[40].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=D(V(i,c,p));function h(){return i[24](i[40])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let _=0;_<u.length;_+=1)u[_].c();b=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[40])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[40])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[40].games);let y;for(y=0;y<c.length;y+=1){const L=V(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[40])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[40])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function ue(i){let t;function l(a,g){return a[6]?de:se}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function pe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:b=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,_=0,S=0,y,L,x=0,M=50,j=!1,P,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(k=>{I(k,C[k])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{I(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let k=C.items.map(G=>{var q,A,N;return{id:G.id,name:G.name,icon:G.icon?G.icon:(N=(A=(q=G.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:G.games.items.slice(0,4).map(oe=>oe),background:G.background,flag:G.flags}});l(3,u=[...u,...k]),l(7,_=u.length)})},O=n=>{L=[...p.children],L.forEach((C,k)=>{C.style.transform=`translateX(${100*(n?k-n:k)}%)`}),y=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},Q=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},$=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,k,G)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:k,subVendor:G},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${k}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ee=()=>{re(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const te=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ie=n=>B(n.id);function le(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{P=n,l(5,P)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,b=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&O(),i.$$.dirty[0]&131072&&g&&ee(),i.$$.dirty[0]&262176&&w&&P&&e.setClientStyling(P,w),i.$$.dirty[0]&524320&&d&&P&&e.setClientStylingURL(P,d),i.$$.dirty[0]&2097184&&P&&e.setStreamStyling(P,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,P,h,_,S,T,r,Q,$,z,B,o,a,g,w,d,m,c,j,te,ie,le,ne]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pe,ue,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},ae,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;