@everymatrix/casino-page-nd 1.45.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/components/{CasinoCalendar-BaOBa8QA.cjs → CasinoCalendar-CCJYEXf4.cjs} +4 -4
  2. package/components/{CasinoCalendar-Cy33jV__.js → CasinoCalendar-pVpX-Ke1.js} +44 -48
  3. package/components/CasinoCalendarDailyDetails-BHhY9ypY.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-Ckfs_e45.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-DL8JD9pX.js +220 -0
  6. package/components/CasinoCalendarDailyItem-DLo_a51b.cjs +1 -0
  7. package/components/CasinoCollectionsProviders-Bm_Hg3sA.cjs +1 -0
  8. package/components/CasinoCollectionsProviders-N_DT_pTF.js +659 -0
  9. package/components/CasinoFavoritesSectionNd-DHh5urJy.cjs +1 -0
  10. package/components/{CasinoFavoritesSectionNd-lR4QQgd8.js → CasinoFavoritesSectionNd-zRpL40sm.js} +9 -9
  11. package/components/CasinoFilter-3wP0WzFr.js +628 -0
  12. package/components/CasinoFilter-BPApME58.cjs +1 -0
  13. package/components/CasinoGameThumbnailNd-BL1T_Ubq.js +4403 -0
  14. package/components/CasinoGameThumbnailNd-CYlOZXU1.cjs +39 -0
  15. package/components/CasinoGamesCategorySectionNd-D5sdz-QF.cjs +1 -0
  16. package/components/CasinoGamesCategorySectionNd-UmwUcDF_.js +3018 -0
  17. package/components/CasinoJackpotBanner-BweF75XP.cjs +1 -0
  18. package/components/CasinoJackpotBanner-CBdu85yt.js +615 -0
  19. package/components/{CasinoLastPlayedSectionNd-BDeLZhj5.js → CasinoLastPlayedSectionNd-BVK8AjWk.js} +28 -28
  20. package/components/CasinoLastPlayedSectionNd-D42K7URp.cjs +1 -0
  21. package/components/{CasinoMostPlayedSectionNd-D_44BcJt.js → CasinoMostPlayedSectionNd-C8Bh6PX6.js} +61 -61
  22. package/components/CasinoMostPlayedSectionNd-KBHwWU0c.cjs +1 -0
  23. package/components/{CasinoMyGamesNd-CBKbxt--.js → CasinoMyGamesNd-BsF6E9mr.js} +386 -386
  24. package/components/CasinoMyGamesNd-DerlPrav.cjs +1 -0
  25. package/components/{CasinoPageNd-BTu3kJYN.js → CasinoPageNd-Bi_sIn-A.js} +1203 -1203
  26. package/components/CasinoPageNd-DUU3MOk7.cjs +1 -0
  27. package/components/CasinoRandomGame-B6uB-aJU.js +641 -0
  28. package/components/CasinoRandomGame-Dw46OcYJ.cjs +2 -0
  29. package/components/CasinoSearchNd-DJBmgbvL.cjs +1 -0
  30. package/components/CasinoSearchNd-DsOD-zjx.js +1062 -0
  31. package/components/CasinoSort-BMASc29H.js +425 -0
  32. package/components/CasinoSort-BvQ_4G3H.cjs +1 -0
  33. package/components/CasinoWinners-BfSvCIxR.cjs +1 -0
  34. package/components/CasinoWinners-C-4CQwQE.js +884 -0
  35. package/components/GeneralAnimationLoading-CwBVP5uB.cjs +1 -0
  36. package/components/GeneralAnimationLoading-fooTxdgx.js +75 -0
  37. package/es2015/casino-page-nd.cjs +1 -1
  38. package/es2015/casino-page-nd.js +1 -1
  39. package/package.json +2 -2
  40. package/components/CasinoCalendarDailyDetails-DQQpSkBs.js +0 -605
  41. package/components/CasinoCalendarDailyDetails-GkvtCgJ7.cjs +0 -1
  42. package/components/CasinoCalendarDailyItem-CLTZq-09.cjs +0 -1
  43. package/components/CasinoCalendarDailyItem-DRjYmQvY.js +0 -220
  44. package/components/CasinoCollectionsProviders-BRMP9Loe.js +0 -659
  45. package/components/CasinoCollectionsProviders-BVrM9_-J.cjs +0 -1
  46. package/components/CasinoFavoritesSectionNd-AXQ2JUS4.cjs +0 -1
  47. package/components/CasinoFilter-CoIMk2Uk.js +0 -628
  48. package/components/CasinoFilter-Dtfc6EDd.cjs +0 -1
  49. package/components/CasinoGameThumbnailNd-DqBttZLW.cjs +0 -39
  50. package/components/CasinoGameThumbnailNd-ibSrwQHV.js +0 -4403
  51. package/components/CasinoGamesCategorySectionNd-D0S49tBe.js +0 -3022
  52. package/components/CasinoGamesCategorySectionNd-gNimye8Z.cjs +0 -1
  53. package/components/CasinoJackpotBanner-C1PFzuTK.js +0 -619
  54. package/components/CasinoJackpotBanner-CLzxeM6r.cjs +0 -1
  55. package/components/CasinoLastPlayedSectionNd-BW2xLmkm.cjs +0 -1
  56. package/components/CasinoMostPlayedSectionNd-B-MVHU_k.cjs +0 -1
  57. package/components/CasinoMyGamesNd-D6CSTig2.cjs +0 -1
  58. package/components/CasinoPageNd-DdncSxLp.cjs +0 -1
  59. package/components/CasinoRandomGame-DjPEoghb.js +0 -641
  60. package/components/CasinoRandomGame-Dpvg_Gex.cjs +0 -2
  61. package/components/CasinoSearchNd-BuG6WXHV.cjs +0 -1
  62. package/components/CasinoSearchNd-CEBR6Dyh.js +0 -1066
  63. package/components/CasinoSort-C_BKJyhx.js +0 -425
  64. package/components/CasinoSort-xGpk7scM.cjs +0 -1
  65. package/components/CasinoWinners-BOUVtu8N.cjs +0 -1
  66. package/components/CasinoWinners-DcIZJcp-.js +0 -884
  67. package/components/GeneralAnimationLoading-CEONZ0El.cjs +0 -1
  68. package/components/GeneralAnimationLoading-Ci69lr1N.js +0 -75
@@ -1,5 +1,5 @@
1
- import { I as te, $ as ae, S as se, i as ie, f as l, c as ne, s as le, b as re, e as k, d as G, g as q, v as Q, C as J, k as M, J as oe, n as ge, P as i, u as ce, A as me, N as ue, Q as de } from "./CasinoCalendar-Cy33jV__.js";
2
- import "./CasinoFavoritesSectionNd-lR4QQgd8.js";
1
+ import { I as te, $ as ae, S as se, i as ie, f as l, c as ne, s as le, b as re, e as k, u as G, d as q, v as Q, C as J, j as M, J as oe, m as ce, P as i, r as ge, A as me, N as ue, Q as de } from "./CasinoCalendar-pVpX-Ke1.js";
2
+ import "./CasinoFavoritesSectionNd-zRpL40sm.js";
3
3
  function Y(s, e) {
4
4
  te(s, e);
5
5
  }
@@ -30,7 +30,7 @@ const p = {
30
30
  }
31
31
  };
32
32
  function he(s) {
33
- re(s, "svelte-12g7jmb", ".svelte-12g7jmb,.svelte-12g7jmb::before,.svelte-12g7jmb::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection.svelte-12g7jmb{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
33
+ re(s, "svelte-12y9z0x", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
34
34
  }
35
35
  function ye(s) {
36
36
  let e;
@@ -76,7 +76,7 @@ function ye(s) {
76
76
  "fetchviaevent",
77
77
  /*fetchviaevent*/
78
78
  s[16]
79
- ), i(e, "categoryid", "LASTPLAYED"), i(e, "categoryindex", "1"), i(e, "categorygames", "9"), i(e, "class", "CategoryContainer svelte-12g7jmb"), i(
79
+ ), i(e, "categoryid", "LASTPLAYED"), i(e, "categoryindex", "1"), i(e, "categorygames", "9"), i(e, "class", "CategoryContainer"), i(
80
80
  e,
81
81
  "showgamename",
82
82
  /*showgamename*/
@@ -243,7 +243,7 @@ function be(s) {
243
243
  ), n;
244
244
  return {
245
245
  c() {
246
- e = k("p"), n = ce(a), G(e, "class", "SearchLoading svelte-12g7jmb");
246
+ e = k("p"), n = ge(a), G(e, "class", "SearchLoading");
247
247
  },
248
248
  m(o, r) {
249
249
  q(o, e, r), Q(e, n);
@@ -269,7 +269,7 @@ function ve(s) {
269
269
  let o = n(s), r = o(s);
270
270
  return {
271
271
  c() {
272
- e = k("div"), a = k("div"), r.c(), G(a, "class", "CasinoLastPlayedSection svelte-12g7jmb"), G(e, "class", "CasinoGamesCategorySectionContainer svelte-12g7jmb");
272
+ e = k("div"), a = k("div"), r.c(), G(a, "class", "CasinoLastPlayedSection"), G(e, "class", "CasinoGamesCategorySectionContainer");
273
273
  },
274
274
  m(u, d) {
275
275
  q(u, e, d), Q(e, a), r.m(a, null), s[25](e);
@@ -287,22 +287,22 @@ function ve(s) {
287
287
  function we(s, e, a) {
288
288
  let n;
289
289
  oe(s, ue, (t) => a(19, n = t));
290
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: u = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: N = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: F = "" } = e, { visiblegames: L = "" } = e, { favorites: z = "" } = e, { lastplayedperiod: P = "Last30Days" } = e, { lastplayedorder: C = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: A = "true" } = e, { fetchviaevent: O = "true" } = e, V = window.navigator.userAgent, U = !1, j = [], H, h;
290
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: u = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: N = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: F = "" } = e, { visiblegames: P = "" } = e, { favorites: z = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: A = "true" } = e, { fetchviaevent: O = "true" } = e, V = window.navigator.userAgent, U = !1, L = [], H, h;
291
291
  const Z = () => {
292
- fetch(w).then((g) => g.json()).then((g) => {
293
- Object.keys(g).forEach((c) => {
294
- Y(c, g[c]);
292
+ fetch(w).then((c) => c.json()).then((c) => {
293
+ Object.keys(c).forEach((g) => {
294
+ Y(g, c[g]);
295
295
  });
296
- }).catch((g) => {
297
- console.log(g);
296
+ }).catch((c) => {
297
+ console.log(c);
298
298
  });
299
299
  };
300
300
  Object.keys(p).forEach((t) => {
301
301
  Y(t, p[t]);
302
302
  });
303
- const B = () => new Promise((t, g) => {
304
- let c = new URL(`${o}/v1/player/${y}/games/last-played`);
305
- c.searchParams.append("unique", A), c.searchParams.append("limit", S), c.searchParams.append("order", C), c.searchParams.append("period", P), de(V) === "PC" ? c.searchParams.append("device", "Desktop") : c.searchParams.append("device", "Mobile"), H = _ ? c : c.href, fetch(H).then((m) => m.json()).then((m) => {
303
+ const B = () => new Promise((t, c) => {
304
+ let g = new URL(`${o}/v1/player/${y}/games/last-played`);
305
+ g.searchParams.append("unique", A), g.searchParams.append("limit", S), g.searchParams.append("order", j), g.searchParams.append("period", C), de(V) === "PC" ? g.searchParams.append("device", "Desktop") : g.searchParams.append("device", "Mobile"), H = _ ? g : g.href, fetch(H).then((m) => m.json()).then((m) => {
306
306
  m.items = m.items.filter((ee) => {
307
307
  let I = !0;
308
308
  return ee.gameCode == "OddsMatrix2" && (m.count--, I = !1), I;
@@ -314,17 +314,17 @@ function we(s, e, a) {
314
314
  window.location.href
315
315
  ), window.postMessage({ type: "LastPlayedGames", data: m }, window.location.href);
316
316
  }).catch((m) => {
317
- console.error(m), g(m);
317
+ console.error(m), c(m);
318
318
  });
319
319
  }), K = () => {
320
320
  B().then((t) => {
321
321
  if (t.count > 0) {
322
- let g = [];
323
- t.items.forEach((c) => {
324
- let f = new URL(`${o}/v1/casino/games/${c.gameId}`);
325
- f.searchParams.append("datasource", r), _ ? g.push(fetch(f.href).then((m) => m.json())) : g.push(fetch(f.href).then((m) => m.json()));
326
- }), Promise.all(g).then((c) => {
327
- j = c.filter((f) => !("error" in f)).map((f) => f[0]), R === "true" && (j = j.slice(0, JSON.parse(L))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: j }, window.location.href);
322
+ let c = [];
323
+ t.items.forEach((g) => {
324
+ let f = new URL(`${o}/v1/casino/games/${g.gameId}`);
325
+ f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((m) => m.json())) : c.push(fetch(f.href).then((m) => m.json()));
326
+ }), Promise.all(c).then((g) => {
327
+ L = g.filter((f) => !("error" in f)).map((f) => f[0]), R === "true" && (L = L.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: L }, window.location.href);
328
328
  });
329
329
  } else
330
330
  a(18, U = !0);
@@ -336,8 +336,8 @@ function we(s, e, a) {
336
336
  t.innerHTML = b, h.appendChild(t);
337
337
  }, x = () => {
338
338
  let t = document.createElement("style");
339
- fetch(new URL(v)).then((g) => g.text()).then((g) => {
340
- t.innerHTML = g, setTimeout(
339
+ fetch(new URL(v)).then((c) => c.text()).then((c) => {
340
+ t.innerHTML = c, setTimeout(
341
341
  () => {
342
342
  h.appendChild(t);
343
343
  },
@@ -346,12 +346,12 @@ function we(s, e, a) {
346
346
  });
347
347
  };
348
348
  function $(t) {
349
- ge[t ? "unshift" : "push"](() => {
349
+ ce[t ? "unshift" : "push"](() => {
350
350
  h = t, a(17, h);
351
351
  });
352
352
  }
353
353
  return s.$$set = (t) => {
354
- "endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, u = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, E = t.session), "userid" in t && a(5, y = t.userid), "clientstyling" in t && a(6, b = t.clientstyling), "clientstylingurl" in t && a(7, v = t.clientstylingurl), "translationurl" in t && a(20, w = t.translationurl), "livecasino" in t && a(8, _ = t.livecasino), "integratedgameframemobile" in t && a(9, N = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, D = t.gamepagemodalurl), "showgamename" in t && a(12, F = t.showgamename), "visiblegames" in t && a(13, L = t.visiblegames), "favorites" in t && a(14, z = t.favorites), "lastplayedperiod" in t && a(21, P = t.lastplayedperiod), "lastplayedorder" in t && a(22, C = t.lastplayedorder), "lastplayedlimit" in t && a(23, S = t.lastplayedlimit), "casinomygames" in t && a(15, R = t.casinomygames), "lastplayedunique" in t && a(24, A = t.lastplayedunique), "fetchviaevent" in t && a(16, O = t.fetchviaevent);
354
+ "endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, u = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, E = t.session), "userid" in t && a(5, y = t.userid), "clientstyling" in t && a(6, b = t.clientstyling), "clientstylingurl" in t && a(7, v = t.clientstylingurl), "translationurl" in t && a(20, w = t.translationurl), "livecasino" in t && a(8, _ = t.livecasino), "integratedgameframemobile" in t && a(9, N = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, D = t.gamepagemodalurl), "showgamename" in t && a(12, F = t.showgamename), "visiblegames" in t && a(13, P = t.visiblegames), "favorites" in t && a(14, z = t.favorites), "lastplayedperiod" in t && a(21, C = t.lastplayedperiod), "lastplayedorder" in t && a(22, j = t.lastplayedorder), "lastplayedlimit" in t && a(23, S = t.lastplayedlimit), "casinomygames" in t && a(15, R = t.casinomygames), "lastplayedunique" in t && a(24, A = t.lastplayedunique), "fetchviaevent" in t && a(16, O = t.fetchviaevent);
355
355
  }, s.$$.update = () => {
356
356
  s.$$.dirty[0] & /*endpoint, userid, lang*/
357
357
  41 && o && y && d && K(), s.$$.dirty[0] & /*translationurl*/
@@ -373,7 +373,7 @@ function we(s, e, a) {
373
373
  T,
374
374
  D,
375
375
  F,
376
- L,
376
+ P,
377
377
  z,
378
378
  R,
379
379
  O,
@@ -381,8 +381,8 @@ function we(s, e, a) {
381
381
  U,
382
382
  n,
383
383
  w,
384
- P,
385
384
  C,
385
+ j,
386
386
  S,
387
387
  A,
388
388
  $
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CCJYEXf4.cjs");require("./CasinoFavoritesSectionNd-DHh5urJy.cjs");function z(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const O={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."}};function W(n){t.append_styles(n,"svelte-12y9z0x","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-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","LASTPLAYED"),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(s,i){t.insert(s,e,i)},p(s,i){i[0]&16&&t.set_custom_element_data(e,"session",s[4]),i[0]&32&&t.set_custom_element_data(e,"userid",s[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",s[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",s[1]),i[0]&8&&t.set_custom_element_data(e,"lang",s[3]),i[0]&4&&t.set_custom_element_data(e,"currency",s[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",s[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",s[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",s[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",s[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function x(n){let e,s=n[19]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(s),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&524288&&s!==(s=o[19]("noRecentGames")+"")&&t.set_data(i,s)},d(o){o&&t.detach(e)}}}function $(n){let e,s;function i(c,d){return c[18]?x:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),s=t.element("div"),l.c(),t.attr(s,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(c,d){t.insert(c,e,d),t.append(e,s),l.m(s,null),n[25](e)},p(c,d){o===(o=i(c))&&l?l.p(c,d):(l.d(1),l=o(c),l&&(l.c(),l.m(s,null)))},i:t.noop,o:t.noop,d(c){c&&t.detach(e),l.d(),n[25](null)}}}function ee(n,e,s){let i;t.component_subscribe(n,t.$format,a=>s(19,i=a));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:c=""}=e,{lang:d=""}=e,{session:q=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:G="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:M=""}=e,{visiblegames:L=""}=e,{favorites:T=""}=e,{lastplayedperiod:k="Last30Days"}=e,{lastplayedorder:C=""}=e,{lastplayedlimit:P=""}=e,{casinomygames:j="false"}=e,{lastplayedunique:S="true"}=e,{fetchviaevent:E="true"}=e,p=window.navigator.userAgent,D=!1,w=[],F,f;const H=()=>{fetch(b).then(r=>r.json()).then(r=>{Object.keys(r).forEach(m=>{z(m,r[m])})}).catch(r=>{console.log(r)})};Object.keys(O).forEach(a=>{z(a,O[a])});const Y=()=>new Promise((a,r)=>{let m=new URL(`${o}/v1/player/${h}/games/last-played`);m.searchParams.append("unique",S),m.searchParams.append("limit",P),m.searchParams.append("order",C),m.searchParams.append("period",k),t.getDevice(p)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),F=v?m:m.href,fetch(F).then(u=>u.json()).then(u=>{u.items=u.items.filter(K=>{let N=!0;return K.gameCode=="OddsMatrix2"&&(u.count--,N=!1),N}),a(u),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:u},window.location.href)}).catch(u=>{console.error(u),r(u)})}),I=()=>{Y().then(a=>{if(a.count>0){let r=[];a.items.forEach(m=>{let g=new URL(`${o}/v1/casino/games/${m.gameId}`);g.searchParams.append("datasource",l),v?r.push(fetch(g.href).then(u=>u.json())):r.push(fetch(g.href).then(u=>u.json()))}),Promise.all(r).then(m=>{w=m.filter(g=>!("error"in g)).map(g=>g[0]),j==="true"&&(w=w.slice(0,JSON.parse(L))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else s(18,D=!0)})},J=()=>{Q(d)},V=()=>{let a=document.createElement("style");a.innerHTML=_,f.appendChild(a)},Z=()=>{let a=document.createElement("style");fetch(new URL(y)).then(r=>r.text()).then(r=>{a.innerHTML=r,setTimeout(()=>{f.appendChild(a)},1)})};function B(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(17,f)})}return n.$$set=a=>{"endpoint"in a&&s(0,o=a.endpoint),"datasource"in a&&s(1,l=a.datasource),"currency"in a&&s(2,c=a.currency),"lang"in a&&s(3,d=a.lang),"session"in a&&s(4,q=a.session),"userid"in a&&s(5,h=a.userid),"clientstyling"in a&&s(6,_=a.clientstyling),"clientstylingurl"in a&&s(7,y=a.clientstylingurl),"translationurl"in a&&s(20,b=a.translationurl),"livecasino"in a&&s(8,v=a.livecasino),"integratedgameframemobile"in a&&s(9,R=a.integratedgameframemobile),"integratedgameframedesktop"in a&&s(10,G=a.integratedgameframedesktop),"gamepagemodalurl"in a&&s(11,A=a.gamepagemodalurl),"showgamename"in a&&s(12,M=a.showgamename),"visiblegames"in a&&s(13,L=a.visiblegames),"favorites"in a&&s(14,T=a.favorites),"lastplayedperiod"in a&&s(21,k=a.lastplayedperiod),"lastplayedorder"in a&&s(22,C=a.lastplayedorder),"lastplayedlimit"in a&&s(23,P=a.lastplayedlimit),"casinomygames"in a&&s(15,j=a.casinomygames),"lastplayedunique"in a&&s(24,S=a.lastplayedunique),"fetchviaevent"in a&&s(16,E=a.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&I(),n.$$.dirty[0]&1048576&&b&&H(),n.$$.dirty[0]&131136&&_&&f&&V(),n.$$.dirty[0]&131200&&y&&f&&Z(),n.$$.dirty[0]&8&&d&&J()},[o,l,c,d,q,h,_,y,v,R,G,A,M,L,T,j,E,f,D,i,b,k,C,P,S,B]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ee,$,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:20,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:21,lastplayedorder:22,lastplayedlimit:23,casinomygames:15,lastplayedunique:24,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 translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[21]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[22]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[23]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[24]}set lastplayedunique(e){this.$$set({lastplayedunique: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:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{}},[],[],!0);exports.default=U;
@@ -1,5 +1,5 @@
1
- import { I as ee, $ as te, S as se, i as ae, f as o, c as ne, s as ie, b as le, e as N, d as S, g as p, v as Q, C as H, k as M, J as oe, Q as re, n as me, P as n, u as ge, A as ce, N as de } from "./CasinoCalendar-Cy33jV__.js";
2
- import "./CasinoFavoritesSectionNd-lR4QQgd8.js";
1
+ import { I 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, u as S, d as M, v as Q, C as H, j as A, J as le, Q as re, m as me, P as n, r as ge, A as ce, N as de } from "./CasinoCalendar-pVpX-Ke1.js";
2
+ import "./CasinoFavoritesSectionNd-zRpL40sm.js";
3
3
  function J(a, e) {
4
4
  ee(a, e);
5
5
  }
@@ -60,7 +60,7 @@ const q = {
60
60
  }
61
61
  };
62
62
  function fe(a) {
63
- le(a, "svelte-lpws4r", ".svelte-lpws4r,.svelte-lpws4r::before,.svelte-lpws4r::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section.svelte-lpws4r{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
63
+ oe(a, "svelte-fogubb", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
64
64
  }
65
65
  function he(a) {
66
66
  let e;
@@ -106,7 +106,7 @@ function he(a) {
106
106
  "fetchviaevent",
107
107
  /*fetchviaevent*/
108
108
  a[16]
109
- ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer svelte-lpws4r"), n(
109
+ ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
110
110
  e,
111
111
  "showgamename",
112
112
  /*showgamename*/
@@ -154,7 +154,7 @@ function he(a) {
154
154
  );
155
155
  },
156
156
  m(s, i) {
157
- p(s, e, i);
157
+ M(s, e, i);
158
158
  },
159
159
  p(s, i) {
160
160
  i[0] & /*session*/
@@ -262,7 +262,7 @@ function he(a) {
262
262
  );
263
263
  },
264
264
  d(s) {
265
- s && M(e);
265
+ s && A(e);
266
266
  }
267
267
  };
268
268
  }
@@ -273,10 +273,10 @@ function ye(a) {
273
273
  ), i;
274
274
  return {
275
275
  c() {
276
- e = N("p"), i = ge(s), S(e, "class", "SearchLoading svelte-lpws4r");
276
+ e = N("p"), i = ge(s), S(e, "class", "SearchLoading");
277
277
  },
278
278
  m(m, r) {
279
- p(m, e, r), Q(e, i);
279
+ M(m, e, r), Q(e, i);
280
280
  },
281
281
  p(m, r) {
282
282
  r[0] & /*$_*/
@@ -284,7 +284,7 @@ function ye(a) {
284
284
  m[19]("noGames") + "") && ce(i, s);
285
285
  },
286
286
  d(m) {
287
- m && M(e);
287
+ m && A(e);
288
288
  }
289
289
  };
290
290
  }
@@ -299,10 +299,10 @@ function ve(a) {
299
299
  let m = i(a), r = m(a);
300
300
  return {
301
301
  c() {
302
- e = N("div"), s = N("div"), r.c(), S(s, "class", "casino-most-played-section svelte-lpws4r"), S(e, "class", "CasinoGamesCategorySectionContainer svelte-lpws4r");
302
+ e = N("div"), s = N("div"), r.c(), S(s, "class", "casino-most-played-section"), S(e, "class", "CasinoGamesCategorySectionContainer");
303
303
  },
304
304
  m(g, c) {
305
- p(g, e, c), Q(e, s), r.m(s, null), a[23](e);
305
+ M(g, e, c), Q(e, s), r.m(s, null), a[23](e);
306
306
  },
307
307
  p(g, c) {
308
308
  m === (m = i(g)) && r ? r.p(g, c) : (r.d(1), r = m(g), r && (r.c(), r.m(s, null)));
@@ -310,33 +310,33 @@ function ve(a) {
310
310
  i: H,
311
311
  o: H,
312
312
  d(g) {
313
- g && M(e), r.d(), a[23](null);
313
+ g && A(e), r.d(), a[23](null);
314
314
  }
315
315
  };
316
316
  }
317
317
  function be(a, e, s) {
318
318
  let i;
319
- oe(a, de, (t) => s(19, i = t));
320
- let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: A = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: E = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: T = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: D = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: R = "true" } = e, Y = window.navigator.userAgent;
319
+ le(a, de, (t) => s(19, i = t));
320
+ let { endpoint: m = "" } = e, { datasource: r = "" } = 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;
321
321
  const B = () => {
322
- fetch(k).then((l) => l.json()).then((l) => {
323
- Object.keys(l).forEach((d) => {
324
- J(d, l[d]);
322
+ fetch(k).then((o) => o.json()).then((o) => {
323
+ Object.keys(o).forEach((d) => {
324
+ J(d, o[d]);
325
325
  });
326
- }).catch((l) => {
327
- console.log(l);
326
+ }).catch((o) => {
327
+ console.log(o);
328
328
  });
329
329
  };
330
330
  Object.keys(q).forEach((t) => {
331
331
  J(t, q[t]);
332
332
  });
333
- let G = [], U, I = !1, h;
333
+ let G = [], I, p = !1, h;
334
334
  const K = (t) => {
335
- let l = new URL(`${m}/v1/player/${v}/games/most-played`);
336
- t.limit && l.searchParams.append("limit", t.limit), t.order && l.searchParams.append("order", t.order), l.searchParams.append("expand", "games"), l.searchParams.append("period", j);
335
+ let o = new URL(`${m}/v1/player/${v}/games/most-played`);
336
+ 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);
337
337
  let d = t.device;
338
- return d ? d === "PC" ? l.searchParams.append("device", "Desktop") : l.searchParams.append("device", "Mobile") : l.searchParams.append("device", "All"), t.rounds && l.searchParams.append("rounds", t.rounds), U = _ ? l : l.href, new Promise((u, y) => {
339
- fetch(U).then((f) => f.json()).then((f) => {
338
+ 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), I = w ? o : o.href, new Promise((u, y) => {
339
+ fetch(I).then((f) => f.json()).then((f) => {
340
340
  f.items = f.items.filter(($) => {
341
341
  let z = !0;
342
342
  return $.gameCode == "OddsMatrix2" && (f.count--, z = !1), z;
@@ -352,15 +352,15 @@ function be(a, e, s) {
352
352
  rounds: L
353
353
  }).then((t) => {
354
354
  if (t.count > 0) {
355
- let l = [];
355
+ let o = [];
356
356
  t.items.forEach((d) => {
357
357
  let u = new URL(`${m}/v1/casino/games/${d.gameId}`);
358
- u.searchParams.append("datasource", r), _ ? l.push(fetch(u.href).then((y) => y.json())) : l.push(fetch(u.href).then((y) => y.json()));
359
- }), Promise.all(l).then((d) => {
358
+ u.searchParams.append("datasource", r), w ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
359
+ }), Promise.all(o).then((d) => {
360
360
  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);
361
361
  });
362
362
  } else
363
- s(18, I = !0);
363
+ s(18, p = !0);
364
364
  });
365
365
  }, W = () => {
366
366
  ue(c);
@@ -369,8 +369,8 @@ function be(a, e, s) {
369
369
  t.innerHTML = b, h.appendChild(t);
370
370
  }, Z = () => {
371
371
  let t = document.createElement("style");
372
- fetch(new URL(w)).then((l) => l.text()).then((l) => {
373
- t.innerHTML = l, setTimeout(
372
+ fetch(new URL(_)).then((o) => o.text()).then((o) => {
373
+ t.innerHTML = o, setTimeout(
374
374
  () => {
375
375
  h.appendChild(t);
376
376
  },
@@ -384,12 +384,12 @@ function be(a, e, s) {
384
384
  });
385
385
  }
386
386
  return a.$$set = (t) => {
387
- "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, A = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, w = t.clientstylingurl), "livecasino" in t && s(8, _ = t.livecasino), "integratedgameframemobile" in t && s(9, E = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, T = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, D = 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, R = t.fetchviaevent);
387
+ "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = 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);
388
388
  }, a.$$.update = () => {
389
389
  a.$$.dirty[0] & /*endpoint, userid, lang*/
390
390
  41 && m && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
391
391
  131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
392
- 131200 && w && h && Z(), a.$$.dirty[0] & /*translationurl*/
392
+ 131200 && _ && h && Z(), a.$$.dirty[0] & /*translationurl*/
393
393
  1048576 && k && B(), a.$$.dirty[0] & /*lang*/
394
394
  8 && c && W();
395
395
  }, [
@@ -397,21 +397,21 @@ function be(a, e, s) {
397
397
  r,
398
398
  g,
399
399
  c,
400
- A,
400
+ E,
401
401
  v,
402
402
  b,
403
- w,
404
403
  _,
405
- E,
404
+ w,
406
405
  F,
407
406
  T,
408
407
  O,
409
- P,
410
408
  D,
411
- C,
409
+ P,
412
410
  R,
411
+ C,
412
+ U,
413
413
  h,
414
- I,
414
+ p,
415
415
  i,
416
416
  k,
417
417
  j,
@@ -419,7 +419,7 @@ function be(a, e, s) {
419
419
  x
420
420
  ];
421
421
  }
422
- class we extends se {
422
+ class _e extends se {
423
423
  constructor(e) {
424
424
  super(), ae(
425
425
  this,
@@ -457,124 +457,124 @@ class we extends se {
457
457
  return this.$$.ctx[0];
458
458
  }
459
459
  set endpoint(e) {
460
- this.$$set({ endpoint: e }), o();
460
+ this.$$set({ endpoint: e }), l();
461
461
  }
462
462
  get datasource() {
463
463
  return this.$$.ctx[1];
464
464
  }
465
465
  set datasource(e) {
466
- this.$$set({ datasource: e }), o();
466
+ this.$$set({ datasource: e }), l();
467
467
  }
468
468
  get currency() {
469
469
  return this.$$.ctx[2];
470
470
  }
471
471
  set currency(e) {
472
- this.$$set({ currency: e }), o();
472
+ this.$$set({ currency: e }), l();
473
473
  }
474
474
  get lang() {
475
475
  return this.$$.ctx[3];
476
476
  }
477
477
  set lang(e) {
478
- this.$$set({ lang: e }), o();
478
+ this.$$set({ lang: e }), l();
479
479
  }
480
480
  get session() {
481
481
  return this.$$.ctx[4];
482
482
  }
483
483
  set session(e) {
484
- this.$$set({ session: e }), o();
484
+ this.$$set({ session: e }), l();
485
485
  }
486
486
  get userid() {
487
487
  return this.$$.ctx[5];
488
488
  }
489
489
  set userid(e) {
490
- this.$$set({ userid: e }), o();
490
+ this.$$set({ userid: e }), l();
491
491
  }
492
492
  get clientstyling() {
493
493
  return this.$$.ctx[6];
494
494
  }
495
495
  set clientstyling(e) {
496
- this.$$set({ clientstyling: e }), o();
496
+ this.$$set({ clientstyling: e }), l();
497
497
  }
498
498
  get clientstylingurl() {
499
499
  return this.$$.ctx[7];
500
500
  }
501
501
  set clientstylingurl(e) {
502
- this.$$set({ clientstylingurl: e }), o();
502
+ this.$$set({ clientstylingurl: e }), l();
503
503
  }
504
504
  get livecasino() {
505
505
  return this.$$.ctx[8];
506
506
  }
507
507
  set livecasino(e) {
508
- this.$$set({ livecasino: e }), o();
508
+ this.$$set({ livecasino: e }), l();
509
509
  }
510
510
  get integratedgameframemobile() {
511
511
  return this.$$.ctx[9];
512
512
  }
513
513
  set integratedgameframemobile(e) {
514
- this.$$set({ integratedgameframemobile: e }), o();
514
+ this.$$set({ integratedgameframemobile: e }), l();
515
515
  }
516
516
  get integratedgameframedesktop() {
517
517
  return this.$$.ctx[10];
518
518
  }
519
519
  set integratedgameframedesktop(e) {
520
- this.$$set({ integratedgameframedesktop: e }), o();
520
+ this.$$set({ integratedgameframedesktop: e }), l();
521
521
  }
522
522
  get gamepagemodalurl() {
523
523
  return this.$$.ctx[11];
524
524
  }
525
525
  set gamepagemodalurl(e) {
526
- this.$$set({ gamepagemodalurl: e }), o();
526
+ this.$$set({ gamepagemodalurl: e }), l();
527
527
  }
528
528
  get showgamename() {
529
529
  return this.$$.ctx[12];
530
530
  }
531
531
  set showgamename(e) {
532
- this.$$set({ showgamename: e }), o();
532
+ this.$$set({ showgamename: e }), l();
533
533
  }
534
534
  get visiblegames() {
535
535
  return this.$$.ctx[13];
536
536
  }
537
537
  set visiblegames(e) {
538
- this.$$set({ visiblegames: e }), o();
538
+ this.$$set({ visiblegames: e }), l();
539
539
  }
540
540
  get favorites() {
541
541
  return this.$$.ctx[14];
542
542
  }
543
543
  set favorites(e) {
544
- this.$$set({ favorites: e }), o();
544
+ this.$$set({ favorites: e }), l();
545
545
  }
546
546
  get translationurl() {
547
547
  return this.$$.ctx[20];
548
548
  }
549
549
  set translationurl(e) {
550
- this.$$set({ translationurl: e }), o();
550
+ this.$$set({ translationurl: e }), l();
551
551
  }
552
552
  get casinomygames() {
553
553
  return this.$$.ctx[15];
554
554
  }
555
555
  set casinomygames(e) {
556
- this.$$set({ casinomygames: e }), o();
556
+ this.$$set({ casinomygames: e }), l();
557
557
  }
558
558
  get mostplayedperiod() {
559
559
  return this.$$.ctx[21];
560
560
  }
561
561
  set mostplayedperiod(e) {
562
- this.$$set({ mostplayedperiod: e }), o();
562
+ this.$$set({ mostplayedperiod: e }), l();
563
563
  }
564
564
  get mostplayedrounds() {
565
565
  return this.$$.ctx[22];
566
566
  }
567
567
  set mostplayedrounds(e) {
568
- this.$$set({ mostplayedrounds: e }), o();
568
+ this.$$set({ mostplayedrounds: e }), l();
569
569
  }
570
570
  get fetchviaevent() {
571
571
  return this.$$.ctx[16];
572
572
  }
573
573
  set fetchviaevent(e) {
574
- this.$$set({ fetchviaevent: e }), o();
574
+ this.$$set({ fetchviaevent: e }), l();
575
575
  }
576
576
  }
577
- ne(we, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
577
+ ne(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
578
578
  export {
579
- we as default
579
+ _e as default
580
580
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CCJYEXf4.cjs");require("./CasinoFavoritesSectionNd-DHh5urJy.cjs");function R(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const U={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"}};function W(n){t.append_styles(n,"svelte-fogubb","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-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:G}=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=>{R(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(s=>{R(s,U[s])});let k=[],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 D=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,D=!1),D}),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=>{k=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(k=k.slice(0,JSON.parse(G))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},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,G=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,G,E,N,T,f,O,i,w,P,C,K]}class p 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(p,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=p;