@everymatrix/casino-page-nd 1.54.4 → 1.54.8

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 (66) hide show
  1. package/components/CasinoCalendar-C6a9eFaO.cjs +6 -0
  2. package/components/CasinoCalendar-DDVrqLgy.js +5038 -0
  3. package/components/{CasinoCalendar-pVz7jYqi.js → CasinoCalendar-bbQ7XQxy.js} +472 -480
  4. package/components/{CasinoCalendarDailyDetails-D7GkfhmR.js → CasinoCalendarDailyDetails-CHDDIjz6.js} +90 -90
  5. package/components/CasinoCalendarDailyDetails-CjEpB1kl.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-qtzYJYlV.js +701 -0
  7. package/components/{CasinoCalendarDailyItem-CU9qMJji.js → CasinoCalendarDailyItem-Cp39gR0b.js} +46 -46
  8. package/components/CasinoCalendarDailyItem-DT6c5ba5.js +315 -0
  9. package/components/CasinoCalendarDailyItem-DbAPROfK.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-Bat7vjFP.cjs +1 -0
  11. package/components/{CasinoCollectionsProviders-DxgdPTXN.js → CasinoCollectionsProviders-D0OxJ4mu.js} +54 -54
  12. package/components/CasinoCollectionsProviders-DFS4nF-f.js +664 -0
  13. package/components/CasinoFavoritesSectionNd-C-mlwUPF.js +439 -0
  14. package/components/CasinoFavoritesSectionNd-CAzeF_7i.cjs +1 -0
  15. package/components/{CasinoFavoritesSectionNd-B8EIXq01.js → CasinoFavoritesSectionNd-JRM9DmH3.js} +16 -16
  16. package/components/CasinoFilter-CcnQf7Ao.js +634 -0
  17. package/components/CasinoFilter-DzZ9jegE.cjs +1 -0
  18. package/components/{CasinoFilter-C67EHGOs.js → CasinoFilter-eRlmpVPT.js} +55 -55
  19. package/components/CasinoGameThumbnailNd-C-oDcBm6.js +4411 -0
  20. package/components/{CasinoGameThumbnailNd-Dj9aITsK.js → CasinoGameThumbnailNd-DkpEv-Ct.js} +63 -63
  21. package/components/CasinoGameThumbnailNd-PO04kmzB.cjs +39 -0
  22. package/components/{CasinoGamesCategorySectionNd-OZ2HaGrH.js → CasinoGamesCategorySectionNd-BeEANQ42.js} +598 -578
  23. package/components/CasinoGamesCategorySectionNd-CgmxjdqR.cjs +1 -0
  24. package/components/CasinoGamesCategorySectionNd-DZM4fSnF.js +3003 -0
  25. package/components/{CasinoJackpotBanner-BRQqqpK8.js → CasinoJackpotBanner-BW3UHeqB.js} +68 -68
  26. package/components/CasinoJackpotBanner-DyviT8PE.cjs +1 -0
  27. package/components/CasinoJackpotBanner-PNsV-XdJ.js +618 -0
  28. package/components/CasinoLastPlayedSectionNd-Bii3bkmh.cjs +1 -0
  29. package/components/{CasinoLastPlayedSectionNd--_9buYZx.js → CasinoLastPlayedSectionNd-Bu825sC-.js} +26 -26
  30. package/components/CasinoLastPlayedSectionNd-_a-9_9CB.js +566 -0
  31. package/components/{CasinoMostPlayedSectionNd-umJpV9lP.js → CasinoMostPlayedSectionNd-Bc1CtL3u.js} +32 -32
  32. package/components/CasinoMostPlayedSectionNd-BeyWzGzL.cjs +1 -0
  33. package/components/CasinoMostPlayedSectionNd-XrqY9Z0s.js +583 -0
  34. package/components/{CasinoMyGamesNd-Bosn4XLW.js → CasinoMyGamesNd-5Lcn0-GF.js} +42 -42
  35. package/components/CasinoMyGamesNd-Bu5gXn9P.js +1317 -0
  36. package/components/CasinoMyGamesNd-DjSqNSVm.cjs +1 -0
  37. package/components/CasinoPageNd-BMjB-SDR.js +3548 -0
  38. package/components/CasinoPageNd-BYE3mgQK.cjs +1 -0
  39. package/components/{CasinoPageNd-C2EI24cS.js → CasinoPageNd-Cif8W7r5.js} +124 -124
  40. package/components/CasinoRandomGame-CJ-AjCzR.cjs +2 -0
  41. package/components/{CasinoRandomGame-BpYrX4Cp.js → CasinoRandomGame-kyYvcZEe.js} +56 -56
  42. package/components/CasinoRandomGame-pjgjdiS0.js +668 -0
  43. package/components/CasinoSearchNd-CjA2LSbG.js +1072 -0
  44. package/components/{CasinoSearchNd-CmTarxBK.js → CasinoSearchNd-DZxa74P3.js} +69 -69
  45. package/components/CasinoSearchNd-KpuwtpF8.cjs +1 -0
  46. package/components/CasinoSort-1r13Ud33.cjs +1 -0
  47. package/components/CasinoSort-CnCgPeXg.js +432 -0
  48. package/components/{CasinoSort-bFOcp6J4.js → CasinoSort-cgSZzSk9.js} +16 -16
  49. package/components/CasinoWinners-C__0hS-V.cjs +1 -0
  50. package/components/{CasinoWinners-BUoqMo1a.js → CasinoWinners-D5G-uBAw.js} +75 -75
  51. package/components/CasinoWinners-DrSn3Xk6.js +971 -0
  52. package/components/GeneralAnimationLoading-CLCqZfpz.cjs +1 -0
  53. package/components/{GeneralAnimationLoading-CC5IRZHm.js → GeneralAnimationLoading-DZ8DpeOD.js} +8 -8
  54. package/components/GeneralAnimationLoading-Oq6jfcwG.js +75 -0
  55. package/es2015/casino-page-nd.cjs +1 -0
  56. package/es2015/casino-page-nd.js +16 -0
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  60. package/stencil/casino-play-random-game-BKQH1Zx1.cjs +371 -0
  61. package/stencil/casino-play-random-game-BqK1nKDT.js +577 -0
  62. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-pLVMnBV9.js} +1 -1
  63. package/stencil/index-f923e8d1-BWfXmHlD.js +645 -0
  64. package/stencil/index-f923e8d1-DEpJEd5d.cjs +1 -0
  65. package/stencil/index-f923e8d1-DkIbJRWP.js +629 -0
  66. package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
@@ -1,12 +1,12 @@
1
- import { a as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, v as S, d as M, w as J, D as H, j as A, k as le, Q as me, n as re, P as n, u as ge, B as ce, F as de } from "./CasinoCalendar-pVz7jYqi.js";
2
- import "./CasinoFavoritesSectionNd-B8EIXq01.js";
3
- function I(a, e) {
1
+ import { a as ee, $ as te, S as se, i as ae, s as ne, f as l, b as ie, n as I, d as M, h as A, p as Q, j as N, r as S, k as oe, Q as le, C as me, m as re, q as ge, P as n, I as ce, J as de } from "./CasinoCalendar-DDVrqLgy.js";
2
+ import "./CasinoFavoritesSectionNd-C-mlwUPF.js";
3
+ function H(a, e) {
4
4
  ee(a, e);
5
5
  }
6
6
  function ue(a) {
7
7
  te.set(a);
8
8
  }
9
- const B = {
9
+ const J = {
10
10
  en: {
11
11
  noGames: "No games in most played"
12
12
  },
@@ -63,7 +63,7 @@ const B = {
63
63
  }
64
64
  };
65
65
  function fe(a) {
66
- oe(a, "svelte-14zqglz", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
66
+ ie(a, "svelte-14zqglz", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
67
67
  }
68
68
  function he(a) {
69
69
  let e;
@@ -157,7 +157,7 @@ function he(a) {
157
157
  );
158
158
  },
159
159
  m(s, i) {
160
- M(s, e, i);
160
+ A(s, e, i);
161
161
  },
162
162
  p(s, i) {
163
163
  i[0] & /*session*/
@@ -265,7 +265,7 @@ function he(a) {
265
265
  );
266
266
  },
267
267
  d(s) {
268
- s && A(e);
268
+ s && M(e);
269
269
  }
270
270
  };
271
271
  }
@@ -279,15 +279,15 @@ function ye(a) {
279
279
  e = N("p"), i = ge(s), S(e, "class", "SearchLoading");
280
280
  },
281
281
  m(r, m) {
282
- M(r, e, m), J(e, i);
282
+ A(r, e, m), Q(e, i);
283
283
  },
284
284
  p(r, m) {
285
285
  m[0] & /*$_*/
286
286
  524288 && s !== (s = /*$_*/
287
- r[19]("noGames") + "") && ce(i, s);
287
+ r[19]("noGames") + "") && re(i, s);
288
288
  },
289
289
  d(r) {
290
- r && A(e);
290
+ r && M(e);
291
291
  }
292
292
  };
293
293
  }
@@ -305,41 +305,41 @@ function ve(a) {
305
305
  e = N("div"), s = N("div"), m.c(), S(s, "class", "casino-most-played-section"), S(e, "class", "CasinoGamesCategorySectionContainer");
306
306
  },
307
307
  m(g, c) {
308
- M(g, e, c), J(e, s), m.m(s, null), a[23](e);
308
+ A(g, e, c), Q(e, s), m.m(s, null), a[23](e);
309
309
  },
310
310
  p(g, c) {
311
311
  r === (r = i(g)) && m ? m.p(g, c) : (m.d(1), m = r(g), m && (m.c(), m.m(s, null)));
312
312
  },
313
- i: H,
314
- o: H,
313
+ i: I,
314
+ o: I,
315
315
  d(g) {
316
- g && A(e), m.d(), a[23](null);
316
+ g && M(e), m.d(), a[23](null);
317
317
  }
318
318
  };
319
319
  }
320
320
  function be(a, e, s) {
321
321
  let i;
322
- le(a, de, (t) => s(19, i = t));
323
- let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: w = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: R = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: U = "true" } = e, Q = window.navigator.userAgent;
324
- const Y = () => {
322
+ oe(a, de, (t) => s(19, i = t));
323
+ let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: w = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: D = "" } = e, { visiblegames: P } = e, { favorites: R = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: U = "true" } = e, Y = window.navigator.userAgent;
324
+ const B = () => {
325
325
  fetch(k).then((o) => o.json()).then((o) => {
326
326
  Object.keys(o).forEach((d) => {
327
- I(d, o[d]);
327
+ H(d, o[d]);
328
328
  });
329
329
  }).catch((o) => {
330
330
  console.log(o);
331
331
  });
332
332
  };
333
- Object.keys(B).forEach((t) => {
334
- I(t, B[t]);
333
+ Object.keys(J).forEach((t) => {
334
+ H(t, J[t]);
335
335
  });
336
- let G = [], z, p = !1, h;
336
+ let G = [], p, z = !1, h;
337
337
  const K = (t) => {
338
338
  let o = new URL(`${r}/v1/player/${v}/games/most-played`);
339
339
  t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
340
340
  let d = t.device;
341
- return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), z = w ? o : o.href, new Promise((u, y) => {
342
- fetch(z).then((f) => f.json()).then((f) => {
341
+ return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), p = w ? o : o.href, new Promise((u, y) => {
342
+ fetch(p).then((f) => f.json()).then((f) => {
343
343
  f.items = f.items.filter(($) => {
344
344
  let q = !0;
345
345
  return $.gameCode == "OddsMatrix2" && (f.count--, q = !1), q;
@@ -351,7 +351,7 @@ function be(a, e, s) {
351
351
  }, V = () => {
352
352
  K({
353
353
  limit: 100,
354
- device: me(Q),
354
+ device: le(Y),
355
355
  rounds: L
356
356
  }).then((t) => {
357
357
  if (t.count > 0) {
@@ -363,7 +363,7 @@ function be(a, e, s) {
363
363
  G = d.filter((u) => !("error" in u)).map((u) => u[0]), C === "true" && (G = G.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
364
364
  });
365
365
  } else
366
- s(18, p = !0);
366
+ s(18, z = !0);
367
367
  });
368
368
  }, W = () => {
369
369
  ue(c);
@@ -382,18 +382,18 @@ function be(a, e, s) {
382
382
  });
383
383
  };
384
384
  function x(t) {
385
- re[t ? "unshift" : "push"](() => {
385
+ me[t ? "unshift" : "push"](() => {
386
386
  h = t, s(17, h);
387
387
  });
388
388
  }
389
389
  return a.$$set = (t) => {
390
- "endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, E = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, _ = t.clientstylingurl), "livecasino" in t && s(8, w = t.livecasino), "integratedgameframemobile" in t && s(9, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, D = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, R = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, L = t.mostplayedrounds), "fetchviaevent" in t && s(16, U = t.fetchviaevent);
390
+ "endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, E = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, _ = t.clientstylingurl), "livecasino" in t && s(8, w = t.livecasino), "integratedgameframemobile" in t && s(9, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, O = t.gamepagemodalurl), "showgamename" in t && s(12, D = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, R = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, L = t.mostplayedrounds), "fetchviaevent" in t && s(16, U = t.fetchviaevent);
391
391
  }, a.$$.update = () => {
392
392
  a.$$.dirty[0] & /*endpoint, userid, lang*/
393
393
  41 && r && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
394
394
  131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
395
395
  131200 && _ && h && Z(), a.$$.dirty[0] & /*translationurl*/
396
- 1048576 && k && Y(), a.$$.dirty[0] & /*lang*/
396
+ 1048576 && k && B(), a.$$.dirty[0] & /*lang*/
397
397
  8 && c && W();
398
398
  }, [
399
399
  r,
@@ -407,14 +407,14 @@ function be(a, e, s) {
407
407
  w,
408
408
  F,
409
409
  T,
410
- D,
411
410
  O,
411
+ D,
412
412
  P,
413
413
  R,
414
414
  C,
415
415
  U,
416
416
  h,
417
- p,
417
+ z,
418
418
  i,
419
419
  k,
420
420
  j,
@@ -429,7 +429,7 @@ class _e extends se {
429
429
  e,
430
430
  be,
431
431
  ve,
432
- ie,
432
+ ne,
433
433
  {
434
434
  endpoint: 0,
435
435
  datasource: 1,
@@ -577,7 +577,7 @@ class _e extends se {
577
577
  this.$$set({ fetchviaevent: e }), l();
578
578
  }
579
579
  }
580
- ne(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
580
+ ce(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
581
581
  export {
582
582
  _e as default
583
583
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-C6a9eFaO.cjs");require("./CasinoFavoritesSectionNd-CAzeF_7i.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};function W(n){t.append_styles(n,"svelte-14zqglz","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section-nd"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:L="false"}=e,{integratedgameframedesktop:S="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:A=""}=e,{visiblegames:k}=e,{favorites:E=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:T="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let G=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,_)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let p=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,p=!1),p}),d(g)}).catch(g=>{console.error(g),_(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(_=>_.json())):l.push(fetch(d.href).then(_=>_.json()))}),Promise.all(l).then(u=>{G=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(G=G.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:G},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,L=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,S=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,A=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,E=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,T=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,h,y,v,b,L,S,M,A,k,E,N,T,f,O,i,w,P,C,K]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;