@everymatrix/casino-lobby 1.54.6 → 1.54.9

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 (81) hide show
  1. package/components/CasinoCalendar-BlfnJwZ-.cjs +9 -0
  2. package/components/{CasinoCalendar-Ic3lq1UY.js → CasinoCalendar-CKCvu8d9.js} +1370 -1378
  3. package/components/CasinoCalendar-D3cTwZsW.js +5197 -0
  4. package/components/{CasinoCalendarDailyDetails-buDoufAV.js → CasinoCalendarDailyDetails-B7hChP4v.js} +90 -90
  5. package/components/CasinoCalendarDailyDetails-C1T0xNcn.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-CCIR8eIp.js +701 -0
  7. package/components/{CasinoCalendarDailyItem-koPRd703.js → CasinoCalendarDailyItem-1iPwEmjb.js} +46 -46
  8. package/components/CasinoCalendarDailyItem-BNNa1Jdv.js +315 -0
  9. package/components/CasinoCalendarDailyItem-Bp_PImhJ.cjs +1 -0
  10. package/components/{CasinoCategoriesSlider-Bp9JHeM_.js → CasinoCategoriesSlider-06Zx2Iq-.js} +29 -29
  11. package/components/CasinoCategoriesSlider-Bjd1r5S5.js +606 -0
  12. package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +1 -0
  13. package/components/{CasinoCollectionsProviders-CrpNb22N.js → CasinoCollectionsProviders-BQPjVzK8.js} +58 -58
  14. package/components/CasinoCollectionsProviders-CSISd5u6.cjs +1 -0
  15. package/components/CasinoCollectionsProviders-CVDFBiI0.js +664 -0
  16. package/components/{CasinoFavoritesSection-D4Du3N5n.js → CasinoFavoritesSection-BtAZ0obR.js} +16 -16
  17. package/components/CasinoFavoritesSection-CeNe7gym.js +439 -0
  18. package/components/CasinoFavoritesSection-D7g9PfaJ.cjs +1 -0
  19. package/components/CasinoFilter-C10Tgn3c.cjs +1 -0
  20. package/components/CasinoFilter-CT6gjm3V.js +634 -0
  21. package/components/{CasinoFilter-CYZHW74M.js → CasinoFilter-ckjDwsuD.js} +55 -55
  22. package/components/CasinoGamePage-BXEw8hFH.js +4300 -0
  23. package/components/{CasinoGamePage-C0VvUfCV.js → CasinoGamePage-CtPmWXKS.js} +90 -90
  24. package/components/CasinoGamePage-DishJnnG.cjs +18 -0
  25. package/components/{CasinoGameThumbnail-C-zG9Jn9.js → CasinoGameThumbnail-CPtgI_Ou.js} +63 -63
  26. package/components/CasinoGameThumbnail-DEA-lJVL.cjs +38 -0
  27. package/components/CasinoGameThumbnail-DlUjmcUF.js +1850 -0
  28. package/components/CasinoGamesCategorySection-C004qi0F.cjs +1 -0
  29. package/components/CasinoGamesCategorySection-DNDGzt_C.js +3032 -0
  30. package/components/{CasinoGamesCategorySection-DVd_DDkc.js → CasinoGamesCategorySection-DeKVT6Qy.js} +125 -125
  31. package/components/{CasinoJackpotBanner-CL7SMQDH.js → CasinoJackpotBanner-D3s92J-3.js} +68 -68
  32. package/components/CasinoJackpotBanner-q02RPv4N.js +618 -0
  33. package/components/CasinoJackpotBanner-uWVFzOiI.cjs +1 -0
  34. package/components/{CasinoLastPlayedSection-VbQH2qG2.js → CasinoLastPlayedSection-CRSWVIu_.js} +29 -29
  35. package/components/CasinoLastPlayedSection-tgXO-MUK.cjs +1 -0
  36. package/components/CasinoLastPlayedSection-vWwXDUsk.js +566 -0
  37. package/components/CasinoLobby-CzD2DAYm.cjs +1 -0
  38. package/components/{CasinoLobby-CSsnpzSn.js → CasinoLobby-aK6BWuTG.js} +49 -49
  39. package/components/CasinoLobby-cHs3HImA.js +2337 -0
  40. package/components/{CasinoModal-z0xixUlG.js → CasinoModal-C1oW3YF4.js} +69 -69
  41. package/components/CasinoModal-DRtZi6gR.cjs +1 -0
  42. package/components/CasinoModal-IbVlgg7Z.js +372 -0
  43. package/components/CasinoMostPlayedSection-1h4sJVZB.cjs +1 -0
  44. package/components/{CasinoMostPlayedSection-BIXY9riB.js → CasinoMostPlayedSection-CqCeL-T3.js} +32 -32
  45. package/components/CasinoMostPlayedSection-GdgKELMj.js +583 -0
  46. package/components/CasinoMyGames-B_NJlfMk.cjs +1 -0
  47. package/components/{CasinoMyGames-DqRPb7fX.js → CasinoMyGames-C96xDtTs.js} +52 -52
  48. package/components/CasinoMyGames-crupH86Y.js +1318 -0
  49. package/components/CasinoPage-BP3C9X12.cjs +1 -0
  50. package/components/{CasinoPage-Cm-vD67m.js → CasinoPage-BmaJqL6b.js} +123 -123
  51. package/components/CasinoPage-LZWtHc8W.js +3550 -0
  52. package/components/CasinoRandomGame-C6-dDxie.cjs +2 -0
  53. package/components/CasinoRandomGame-DXFHIw0O.js +668 -0
  54. package/components/{CasinoRandomGame-efA8CEqy.js → CasinoRandomGame-Df62wtxc.js} +51 -51
  55. package/components/CasinoSearch-BcFA6QGN.js +1072 -0
  56. package/components/CasinoSearch-Dnm7_nuc.cjs +1 -0
  57. package/components/{CasinoSearch-BEXK-fFP.js → CasinoSearch-akpXIDh-.js} +83 -83
  58. package/components/CasinoSlider-BDjskQjI.cjs +1 -0
  59. package/components/{CasinoSlider-BPqJIB5d.js → CasinoSlider-BWEc4YT5.js} +78 -78
  60. package/components/CasinoSlider-BjpV4pLV.js +806 -0
  61. package/components/CasinoSort-CS53Uvnz.cjs +1 -0
  62. package/components/CasinoSort-DFdgT3Dt.js +432 -0
  63. package/components/{CasinoSort-CBtcK7i0.js → CasinoSort-DFljh5Sg.js} +16 -16
  64. package/components/CasinoWinners-6mr0X-kZ.js +971 -0
  65. package/components/{CasinoWinners-Db2ivy-R.js → CasinoWinners-CADOvOsd.js} +62 -62
  66. package/components/CasinoWinners-DU3xFq2b.cjs +1 -0
  67. package/components/GeneralAnimationLoading-BG_QynCK.cjs +1 -0
  68. package/components/{GeneralAnimationLoading-DiwFEyef.js → GeneralAnimationLoading-CX9baArf.js} +8 -8
  69. package/components/GeneralAnimationLoading-DVLCsjn0.js +75 -0
  70. package/es2015/casino-lobby.cjs +1 -0
  71. package/es2015/casino-lobby.js +16 -0
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +4 -1
  74. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  75. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-CoygOtgn.js} +1 -1
  76. package/stencil/casino-play-random-game-DjMkr-Sg.cjs +371 -0
  77. package/stencil/casino-play-random-game-DkjQlTyE.js +577 -0
  78. package/stencil/index-f923e8d1-D64rZ7vf.js +645 -0
  79. package/stencil/index-f923e8d1-D8EldEUs.js +629 -0
  80. package/stencil/index-f923e8d1-QzT30J3F.cjs +1 -0
  81. package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
@@ -1,5 +1,5 @@
1
- import { a 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, v as q, d as A, w as B, D as H, j as M, k as oe, n as ce, L as i, u as ue, B as ge, F as me, K as de } from "./CasinoCalendar-Ic3lq1UY.js";
2
- import "./CasinoFavoritesSection-D4Du3N5n.js";
1
+ import { a as te, $ as ae, S as se, i as ie, s as ne, f as l, b as le, n as H, d as A, h as M, p as K, j as k, r as q, k as re, C as oe, m as ce, q as ue, L as i, K as ge, I as me, J as de } from "./CasinoCalendar-CKCvu8d9.js";
2
+ import "./CasinoFavoritesSection-BtAZ0obR.js";
3
3
  function I(s, e) {
4
4
  te(s, e);
5
5
  }
@@ -33,7 +33,7 @@ const J = {
33
33
  }
34
34
  };
35
35
  function he(s) {
36
- re(s, "svelte-w4ziup", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
36
+ le(s, "svelte-w4ziup", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
37
37
  }
38
38
  function ye(s) {
39
39
  let e;
@@ -127,7 +127,7 @@ function ye(s) {
127
127
  );
128
128
  },
129
129
  m(a, n) {
130
- A(a, e, n);
130
+ M(a, e, n);
131
131
  },
132
132
  p(a, n) {
133
133
  n[0] & /*session*/
@@ -235,7 +235,7 @@ function ye(s) {
235
235
  );
236
236
  },
237
237
  d(a) {
238
- a && M(e);
238
+ a && A(e);
239
239
  }
240
240
  };
241
241
  }
@@ -249,15 +249,15 @@ function be(s) {
249
249
  e = k("p"), n = ue(a), q(e, "class", "SearchLoading");
250
250
  },
251
251
  m(o, r) {
252
- A(o, e, r), B(e, n);
252
+ M(o, e, r), K(e, n);
253
253
  },
254
254
  p(o, r) {
255
255
  r[0] & /*$_*/
256
256
  524288 && a !== (a = /*$_*/
257
- o[19]("noRecentGames") + "") && ge(n, a);
257
+ o[19]("noRecentGames") + "") && ce(n, a);
258
258
  },
259
259
  d(o) {
260
- o && M(e);
260
+ o && A(e);
261
261
  }
262
262
  };
263
263
  }
@@ -275,7 +275,7 @@ function ve(s) {
275
275
  e = k("div"), a = k("div"), r.c(), q(a, "class", "CasinoLastPlayedSection"), q(e, "class", "CasinoGamesCategorySectionContainer");
276
276
  },
277
277
  m(m, d) {
278
- A(m, e, d), B(e, a), r.m(a, null), s[25](e);
278
+ M(m, e, d), K(e, a), r.m(a, null), s[25](e);
279
279
  },
280
280
  p(m, d) {
281
281
  o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(a, null)));
@@ -283,15 +283,15 @@ function ve(s) {
283
283
  i: H,
284
284
  o: H,
285
285
  d(m) {
286
- m && M(e), r.d(), s[25](null);
286
+ m && A(e), r.d(), s[25](null);
287
287
  }
288
288
  };
289
289
  }
290
290
  function we(s, e, a) {
291
291
  let n;
292
- oe(s, me, (t) => a(19, n = t));
293
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: D = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: E = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: T = "false" } = e, { showgamename: z = "" } = e, { visiblegames: P = "" } = e, { favorites: N = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: G = "true" } = e, { fetchviaevent: O = "true" } = e, K = window.navigator.userAgent, U = !1, L = [], Y, h;
294
- const V = () => {
292
+ re(s, de, (t) => a(19, n = t));
293
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = 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: G = "true" } = e, { fetchviaevent: O = "true" } = e, V = window.navigator.userAgent, U = !1, L = [], p, h;
294
+ const Z = () => {
295
295
  fetch(w).then((c) => c.json()).then((c) => {
296
296
  Object.keys(c).forEach((u) => {
297
297
  I(u, c[u]);
@@ -303,12 +303,12 @@ function we(s, e, a) {
303
303
  Object.keys(J).forEach((t) => {
304
304
  I(t, J[t]);
305
305
  });
306
- const Z = () => new Promise((t, c) => {
306
+ const B = () => new Promise((t, c) => {
307
307
  let u = new URL(`${o}/v1/player/${y}/games/last-played`);
308
- u.searchParams.append("unique", G), u.searchParams.append("limit", S), u.searchParams.append("order", j), u.searchParams.append("period", C), de(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), Y = _ ? u : u.href, fetch(Y).then((g) => g.json()).then((g) => {
308
+ u.searchParams.append("unique", G), u.searchParams.append("limit", S), u.searchParams.append("order", j), u.searchParams.append("period", P), ge(V) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), p = _ ? u : u.href, fetch(p).then((g) => g.json()).then((g) => {
309
309
  g.items = g.items.filter((ee) => {
310
- let p = !0;
311
- return ee.gameCode == "OddsMatrix2" && (g.count--, p = !1), p;
310
+ let Y = !0;
311
+ return ee.gameCode == "OddsMatrix2" && (g.count--, Y = !1), Y;
312
312
  }), t(g), window.postMessage(
313
313
  {
314
314
  type: "AddNewCategory",
@@ -320,14 +320,14 @@ function we(s, e, a) {
320
320
  console.error(g), c(g);
321
321
  });
322
322
  }), Q = () => {
323
- Z().then((t) => {
323
+ B().then((t) => {
324
324
  if (t.count > 0) {
325
325
  let c = [];
326
326
  t.items.forEach((u) => {
327
327
  let f = new URL(`${o}/v1/casino/games/${u.gameId}`);
328
328
  f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((g) => g.json())) : c.push(fetch(f.href).then((g) => g.json()));
329
329
  }), Promise.all(c).then((u) => {
330
- L = u.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);
330
+ L = u.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);
331
331
  });
332
332
  } else
333
333
  a(18, U = !0);
@@ -349,16 +349,16 @@ function we(s, e, a) {
349
349
  });
350
350
  };
351
351
  function $(t) {
352
- ce[t ? "unshift" : "push"](() => {
352
+ oe[t ? "unshift" : "push"](() => {
353
353
  h = t, a(17, h);
354
354
  });
355
355
  }
356
356
  return s.$$set = (t) => {
357
- "endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, m = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, D = 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, E = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, T = t.gamepagemodalurl), "showgamename" in t && a(12, z = t.showgamename), "visiblegames" in t && a(13, P = t.visiblegames), "favorites" in t && a(14, N = 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, G = t.lastplayedunique), "fetchviaevent" in t && a(16, O = t.fetchviaevent);
357
+ "endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, m = 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, G = t.lastplayedunique), "fetchviaevent" in t && a(16, O = t.fetchviaevent);
358
358
  }, s.$$.update = () => {
359
359
  s.$$.dirty[0] & /*endpoint, userid, lang*/
360
360
  41 && o && y && d && Q(), s.$$.dirty[0] & /*translationurl*/
361
- 1048576 && w && V(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
361
+ 1048576 && w && Z(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
362
362
  131136 && b && h && X(), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
363
363
  131200 && v && h && x(), s.$$.dirty[0] & /*lang*/
364
364
  8 && d && W();
@@ -367,16 +367,16 @@ function we(s, e, a) {
367
367
  r,
368
368
  m,
369
369
  d,
370
- D,
370
+ E,
371
371
  y,
372
372
  b,
373
373
  v,
374
374
  _,
375
- E,
376
- F,
377
375
  T,
376
+ D,
377
+ F,
378
378
  z,
379
- P,
379
+ C,
380
380
  N,
381
381
  R,
382
382
  O,
@@ -384,7 +384,7 @@ function we(s, e, a) {
384
384
  U,
385
385
  n,
386
386
  w,
387
- C,
387
+ P,
388
388
  j,
389
389
  S,
390
390
  G,
@@ -398,7 +398,7 @@ class _e extends se {
398
398
  e,
399
399
  we,
400
400
  ve,
401
- le,
401
+ ne,
402
402
  {
403
403
  endpoint: 0,
404
404
  datasource: 1,
@@ -560,7 +560,7 @@ class _e extends se {
560
560
  this.$$set({ fetchviaevent: e }), l();
561
561
  }
562
562
  }
563
- ne(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
563
+ me(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
564
564
  export {
565
565
  _e as default
566
566
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-BlfnJwZ-.cjs");require("./CasinoFavoritesSection-D7g9PfaJ.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."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};function W(n){t.append_styles(n,"svelte-w4ziup","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{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"),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:R=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:q="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,U=window.navigator.userAgent,D=!1,w=[],F,f;const Y=()=>{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 H=()=>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(U)==="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=()=>{H().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,R=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,q=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&&Y(),n.$$.dirty[0]&131136&&_&&f&&V(),n.$$.dirty[0]&131200&&y&&f&&Z(),n.$$.dirty[0]&8&&d&&J()},[o,l,c,d,R,h,_,y,v,q,G,A,M,L,T,j,E,f,D,i,b,k,C,P,S,B]}class p 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(p,{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=p;