@everymatrix/casino-lobby 1.45.0 → 1.45.3

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 (84) hide show
  1. package/components/{CasinoCalendar-DEhfBjpm.js → CasinoCalendar-3HRZGpnG.js} +57 -61
  2. package/components/{CasinoCalendar-egUFg4eK.cjs → CasinoCalendar-9cVNHt1-.cjs} +5 -5
  3. package/components/CasinoCalendarDailyDetails-Dcf0TKzH.cjs +1 -0
  4. package/components/CasinoCalendarDailyDetails-MwTyCObT.js +605 -0
  5. package/components/CasinoCalendarDailyItem-B-h-76yh.js +220 -0
  6. package/components/CasinoCalendarDailyItem-Cahte_IM.cjs +1 -0
  7. package/components/{CasinoCategoriesSlider-BfuTLKom.cjs → CasinoCategoriesSlider-AAgG2_xb.cjs} +1 -1
  8. package/components/{CasinoCategoriesSlider-BQvWcqNm.js → CasinoCategoriesSlider-B3Aneyii.js} +2 -2
  9. package/components/CasinoCollectionsProviders-BvEenHqO.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-D-DgSMvu.js +659 -0
  11. package/components/CasinoFavoritesSection-CxQ69OwL.cjs +1 -0
  12. package/components/{CasinoFavoritesSection-BBWM7_dI.js → CasinoFavoritesSection-DE0M_xZ_.js} +8 -8
  13. package/components/CasinoFilter-BWEtfBml.js +628 -0
  14. package/components/CasinoFilter-Bdc0mE0X.cjs +1 -0
  15. package/components/{CasinoGamePage-BHxY5XUD.cjs → CasinoGamePage-C4x_GUg3.cjs} +5 -5
  16. package/components/CasinoGamePage-r1xLmvzf.js +4282 -0
  17. package/components/CasinoGameThumbnail-BG_6FsqW.cjs +38 -0
  18. package/components/CasinoGameThumbnail-wQFR0AuM.js +1822 -0
  19. package/components/CasinoGamesCategorySection-BGgw1sdg.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Cbto2aD4.js +3018 -0
  21. package/components/CasinoJackpotBanner-BftFjZpI.cjs +1 -0
  22. package/components/CasinoJackpotBanner-D1RCyJGt.js +615 -0
  23. package/components/{CasinoLastPlayedSection-Dkh43VxC.js → CasinoLastPlayedSection-CAirOYgJ.js} +31 -31
  24. package/components/CasinoLastPlayedSection-Dm6f8H02.cjs +1 -0
  25. package/components/{CasinoLobby-Djp4HDWL.js → CasinoLobby-Cq0Hm2md.js} +88 -92
  26. package/components/CasinoLobby-CvaYUpUV.cjs +1 -0
  27. package/components/CasinoModal-CZbdtmLm.js +372 -0
  28. package/components/CasinoModal-DqBbtAjA.cjs +1 -0
  29. package/components/CasinoMostPlayedSection-DTXKjmPl.cjs +1 -0
  30. package/components/{CasinoMostPlayedSection-BDP2HyE6.js → CasinoMostPlayedSection-k3_ln2SB.js} +58 -58
  31. package/components/CasinoMyGames-CVTzyBkk.cjs +1 -0
  32. package/components/{CasinoMyGames-CILl0Jt1.js → CasinoMyGames-DcJpzIEq.js} +385 -385
  33. package/components/{CasinoPage-CCcJd2fQ.js → CasinoPage-BbRpHGEc.js} +1171 -1171
  34. package/components/CasinoPage-srXwB6ik.cjs +1 -0
  35. package/components/CasinoRandomGame-BSD5DYtt.js +641 -0
  36. package/components/CasinoRandomGame-CNdoKY0C.cjs +2 -0
  37. package/components/CasinoSearch-BsgUvsbs.js +1062 -0
  38. package/components/CasinoSearch-CMn_5Aa4.cjs +1 -0
  39. package/components/CasinoSlider-D5B-CjPM.js +803 -0
  40. package/components/CasinoSlider-kzZxK81G.cjs +1 -0
  41. package/components/CasinoSort-9pQqbHyF.cjs +1 -0
  42. package/components/CasinoSort-T6UQhFka.js +425 -0
  43. package/components/CasinoWinners-CD5HS4Gb.cjs +1 -0
  44. package/components/CasinoWinners-auSd-4D9.js +884 -0
  45. package/components/GeneralAnimationLoading-CIYgtCsE.cjs +1 -0
  46. package/components/GeneralAnimationLoading-DRiG33XR.js +75 -0
  47. package/es2015/casino-lobby.cjs +1 -1
  48. package/es2015/casino-lobby.js +1 -1
  49. package/package.json +2 -2
  50. package/components/CasinoCalendarDailyDetails-CfTziMCu.js +0 -605
  51. package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +0 -1
  52. package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +0 -1
  53. package/components/CasinoCalendarDailyItem-CQ8syIIe.js +0 -220
  54. package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +0 -1
  55. package/components/CasinoCollectionsProviders-CwJY8Pmw.js +0 -659
  56. package/components/CasinoFavoritesSection-Da0-zSyn.cjs +0 -1
  57. package/components/CasinoFilter-BkpU5f2V.cjs +0 -1
  58. package/components/CasinoFilter-D3p7c7qu.js +0 -628
  59. package/components/CasinoGamePage-Bp4OKmdA.js +0 -4282
  60. package/components/CasinoGameThumbnail-BmmqFK_6.js +0 -1822
  61. package/components/CasinoGameThumbnail-DVMHCqZf.cjs +0 -38
  62. package/components/CasinoGamesCategorySection-6X3_pD0A.js +0 -3022
  63. package/components/CasinoGamesCategorySection-CasxxP7n.cjs +0 -1
  64. package/components/CasinoJackpotBanner-8_TAP4xY.cjs +0 -1
  65. package/components/CasinoJackpotBanner-wk2wOmJp.js +0 -619
  66. package/components/CasinoLastPlayedSection-DvORiff-.cjs +0 -1
  67. package/components/CasinoLobby-Jn45jhzr.cjs +0 -1
  68. package/components/CasinoModal-BebrYWjS.cjs +0 -1
  69. package/components/CasinoModal-CSwMAX-g.js +0 -372
  70. package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +0 -1
  71. package/components/CasinoMyGames-shcqTml8.cjs +0 -1
  72. package/components/CasinoPage-DZmE3VFL.cjs +0 -1
  73. package/components/CasinoRandomGame-4mi3rRbq.js +0 -641
  74. package/components/CasinoRandomGame-G4VfFJ2L.cjs +0 -2
  75. package/components/CasinoSearch-CW-eesDy.cjs +0 -1
  76. package/components/CasinoSearch-DkEAmw-j.js +0 -1066
  77. package/components/CasinoSlider-CNWDP_I-.js +0 -803
  78. package/components/CasinoSlider-CjA8vWoz.cjs +0 -1
  79. package/components/CasinoSort-BVh0Ouwu.cjs +0 -1
  80. package/components/CasinoSort-CPcJqhWU.js +0 -425
  81. package/components/CasinoWinners-BTNdGlUD.cjs +0 -1
  82. package/components/CasinoWinners-DSsJp1KQ.js +0 -884
  83. package/components/GeneralAnimationLoading-BtIh_bSy.js +0 -75
  84. package/components/GeneralAnimationLoading-CEAKVCu9.cjs +0 -1
@@ -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 L, d as G, g as q, v as V, C as J, k as M, J as oe, n as ge, M as i, u as ce, A as me, O as ue, L as de } from "./CasinoCalendar-DEhfBjpm.js";
2
- import "./CasinoFavoritesSection-BBWM7_dI.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 V, C as J, j as M, J as oe, m as ce, M as i, r as ge, A as me, O as ue, L as de } from "./CasinoCalendar-3HRZGpnG.js";
2
+ import "./CasinoFavoritesSection-DE0M_xZ_.js";
3
3
  function Y(s, e) {
4
4
  te(s, e);
5
5
  }
@@ -30,13 +30,13 @@ 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;
37
37
  return {
38
38
  c() {
39
- e = L("casino-games-category-section"), i(
39
+ e = k("casino-games-category-section"), i(
40
40
  e,
41
41
  "session",
42
42
  /*session*/
@@ -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 = L("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), V(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 = L("div"), a = L("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), V(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: T = "false" } = e, { integratedgameframedesktop: D = "false" } = e, { gamepagemodalurl: F = "false" } = e, { showgamename: N = "" } = e, { visiblegames: k = "" } = e, { favorites: O = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: P = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: A = "true" } = e, { fetchviaevent: z = "true" } = e, Z = 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: T = "false" } = e, { integratedgameframedesktop: D = "false" } = e, { gamepagemodalurl: F = "false" } = e, { showgamename: z = "" } = e, { visiblegames: C = "" } = e, { favorites: N = "" } = e, { lastplayedperiod: P = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: A = "true" } = e, { fetchviaevent: O = "true" } = e, Z = window.navigator.userAgent, U = !1, L = [], H, h;
291
291
  const B = () => {
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 K = () => 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", P), c.searchParams.append("period", C), de(Z) === "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 K = () => 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", P), de(Z) === "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
  }), Q = () => {
320
320
  K().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(k))), 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(C))), 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, T = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, D = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, F = t.gamepagemodalurl), "showgamename" in t && a(12, N = t.showgamename), "visiblegames" in t && a(13, k = t.visiblegames), "favorites" in t && a(14, O = t.favorites), "lastplayedperiod" in t && a(21, C = t.lastplayedperiod), "lastplayedorder" in t && a(22, P = 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, z = 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, T = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, D = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, F = t.gamepagemodalurl), "showgamename" in t && a(12, z = t.showgamename), "visiblegames" in t && a(13, C = t.visiblegames), "favorites" in t && a(14, N = t.favorites), "lastplayedperiod" in t && a(21, P = 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 && Q(), s.$$.dirty[0] & /*translationurl*/
@@ -372,17 +372,17 @@ function we(s, e, a) {
372
372
  T,
373
373
  D,
374
374
  F,
375
+ z,
376
+ C,
375
377
  N,
376
- k,
377
- O,
378
378
  R,
379
- z,
379
+ O,
380
380
  h,
381
381
  U,
382
382
  n,
383
383
  w,
384
- C,
385
384
  P,
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-9cVNHt1-.cjs");require("./CasinoFavoritesSection-CxQ69OwL.cjs");function N(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"),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=>{N(m,r[m])})}).catch(r=>{console.log(r)})};Object.keys(O).forEach(a=>{N(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 z=!0;return K.gameCode=="OddsMatrix2"&&(u.count--,z=!1),z}),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;