@everymatrix/casino-last-played-section 1.77.26 → 1.77.27

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 (36) hide show
  1. package/components/{CasinoFilter-BPwlHha2.js → CasinoFilter-B298XSri.js} +1056 -1035
  2. package/components/{CasinoFilter-BUlwRomz.js → CasinoFilter-CI9Hpq8Q.js} +1009 -988
  3. package/components/CasinoFilter-Db45KoqP.cjs +18 -0
  4. package/components/{CasinoGameThumbnail-CRJt980b.js → CasinoGameThumbnail-BgCQYWCJ.js} +1257 -1273
  5. package/components/CasinoGameThumbnail-CZ2KyRKH.cjs +47 -0
  6. package/components/{CasinoGameThumbnail-CIPUqxT7.js → CasinoGameThumbnail-DE-9Pj_w.js} +792 -776
  7. package/components/{CasinoGamesCategorySection-3Y0I-nZ-.cjs → CasinoGamesCategorySection-ALBm4PVl.cjs} +1 -1
  8. package/components/{CasinoGamesCategorySection-DAv3CcG_.js → CasinoGamesCategorySection-BeP5JtUd.js} +253 -253
  9. package/components/{CasinoGamesCategorySection-D8tl2e4d.js → CasinoGamesCategorySection-DE5lOQB0.js} +249 -249
  10. package/components/{CasinoLastPlayedSection-B7z0CuCT.js → CasinoLastPlayedSection-9BC9g0Sk.js} +36 -36
  11. package/components/{CasinoLastPlayedSection-lqZGhT7T.js → CasinoLastPlayedSection-BXMDrZsv.js} +28 -28
  12. package/components/{CasinoLastPlayedSection-DdewAHGx.cjs → CasinoLastPlayedSection-YoNKV5jD.cjs} +1 -1
  13. package/components/{CasinoSort-O-SBq3yY.js → CasinoSort-Bq1Eph95.js} +113 -114
  14. package/components/{CasinoSort-CwuCYmVi.js → CasinoSort-Chq8ZphV.js} +108 -107
  15. package/components/{CasinoSort-BC0bXCb5.cjs → CasinoSort-TaExws8s.cjs} +1 -1
  16. package/es2015/casino-last-played-section.cjs +1 -1
  17. package/es2015/casino-last-played-section.js +1 -1
  18. package/esnext/casino-last-played-section.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-97d17652--F7PvMq9.js +542 -0
  21. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  22. package/stencil/index-97d17652-CCFHkzJw.js +558 -0
  23. package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
  24. package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
  25. package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
  26. package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  27. package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  28. package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  29. package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
  30. package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  31. package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
  32. package/components/CasinoFilter-BTWS0FsQ.cjs +0 -18
  33. package/components/CasinoGameThumbnail-6gj212_i.cjs +0 -47
  34. package/stencil/index-97d17652-BD-QREJe.js +0 -558
  35. package/stencil/index-97d17652-DJqGt8q2.js +0 -542
  36. package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { a as ee, $ as te, c as ae, S as se, i as ne, s as ie, f as l, b as le, e as L, j as A, l as E, m as Z, o as B, p as D, q as re, r as oe, u as ue, z as ce, A as me, B as ge, h as n, t as de, n as fe, E as he, y as ye } from "./CasinoFilter-BUlwRomz.js";
2
- function H(s, e) {
1
+ import { a as ee, $ as te, F as ae, S as se, i as ne, s as ie, f as l, b as le, n as H, d as E, j as D, k as B, l as C, h as A, p as re, q as oe, x as ue, g as ce, o as me, e as n, w as ge, G as de, C as fe, D as he, E as ye } from "./CasinoFilter-CI9Hpq8Q.js";
2
+ function V(s, e) {
3
3
  ee(s, e);
4
4
  }
5
5
  function be(s) {
6
6
  te.set(s);
7
7
  }
8
- const V = {
8
+ const Z = {
9
9
  en: {
10
10
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
11
11
  },
@@ -43,7 +43,7 @@ if (typeof window < "u") {
43
43
  }
44
44
  };
45
45
  };
46
- customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-DAv3CcG_.js").then(({ default: e }) => {
46
+ customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-BeP5JtUd.js").then(({ default: e }) => {
47
47
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
48
48
  });
49
49
  }
@@ -54,7 +54,7 @@ function we(s) {
54
54
  let e;
55
55
  return {
56
56
  c() {
57
- e = L("casino-games-category-section"), n(
57
+ e = C("casino-games-category-section"), n(
58
58
  e,
59
59
  "session",
60
60
  /*session*/
@@ -152,7 +152,7 @@ function we(s) {
152
152
  );
153
153
  },
154
154
  m(t, i) {
155
- E(t, e, i);
155
+ D(t, e, i);
156
156
  },
157
157
  p(t, i) {
158
158
  i[0] & /*session*/
@@ -272,7 +272,7 @@ function we(s) {
272
272
  );
273
273
  },
274
274
  d(t) {
275
- t && D(e);
275
+ t && E(e);
276
276
  }
277
277
  };
278
278
  }
@@ -283,18 +283,18 @@ function _e(s) {
283
283
  ), i;
284
284
  return {
285
285
  c() {
286
- e = L("p"), i = de(t), A(e, "class", "SearchLoading");
286
+ e = C("p"), i = me(t), A(e, "class", "SearchLoading");
287
287
  },
288
288
  m(o, r) {
289
- E(o, e, r), Z(e, i);
289
+ D(o, e, r), B(e, i);
290
290
  },
291
291
  p(o, r) {
292
292
  r[0] & /*$_*/
293
293
  2097152 && t !== (t = /*$_*/
294
- o[21]("noRecentGames") + "") && fe(i, t);
294
+ o[21]("noRecentGames") + "") && ce(i, t);
295
295
  },
296
296
  d(o) {
297
- o && D(e);
297
+ o && E(e);
298
298
  }
299
299
  };
300
300
  }
@@ -309,40 +309,40 @@ function ke(s) {
309
309
  let o = i(s), r = o(s);
310
310
  return {
311
311
  c() {
312
- e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
312
+ e = C("div"), t = C("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
313
313
  },
314
314
  m(m, d) {
315
- E(m, e, d), Z(e, t), r.m(t, null), s[26](e);
315
+ D(m, e, d), B(e, t), r.m(t, null), s[26](e);
316
316
  },
317
317
  p(m, d) {
318
318
  o === (o = i(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
319
319
  },
320
- i: B,
321
- o: B,
320
+ i: H,
321
+ o: H,
322
322
  d(m) {
323
- m && D(e), r.d(), s[26](null);
323
+ m && E(e), r.d(), s[26](null);
324
324
  }
325
325
  };
326
326
  }
327
- function Le(s, e, t) {
327
+ function Ce(s, e, t) {
328
328
  let i;
329
- re(s, he, (a) => t(21, i = a));
330
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
329
+ re(s, de, (a) => t(21, i = a));
330
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: N = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: z = "" } = e, { visiblegames: L = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: P = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
331
331
  const Q = () => {
332
332
  fetch(w).then((g) => g.json()).then((g) => {
333
333
  Object.keys(g).forEach((u) => {
334
- H(u, g[u]);
334
+ V(u, g[u]);
335
335
  });
336
336
  }).catch((g) => {
337
337
  console.log(g);
338
338
  });
339
339
  };
340
- Object.keys(V).forEach((a) => {
341
- H(a, V[a]);
340
+ Object.keys(Z).forEach((a) => {
341
+ V(a, Z[a]);
342
342
  });
343
343
  const W = () => new Promise((a, g) => {
344
344
  let u = new URL(`${o}/v1/player/${y}/games/last-played`);
345
- u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
345
+ u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", P), ge(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
346
346
  c.items = c.items.filter(($) => {
347
347
  let J = !0;
348
348
  return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
@@ -364,7 +364,7 @@ function Le(s, e, t) {
364
364
  let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
365
365
  h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((c) => c.json())) : g.push(fetch(h.href).then((c) => c.json()));
366
366
  }), Promise.all(g).then((u) => {
367
- k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
367
+ k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(L))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
368
368
  });
369
369
  } else
370
370
  t(20, Y = !0);
@@ -375,19 +375,19 @@ function Le(s, e, t) {
375
375
  oe(() => () => {
376
376
  });
377
377
  function x(a) {
378
- ce[a ? "unshift" : "push"](() => {
378
+ ue[a ? "unshift" : "push"](() => {
379
379
  f = a, t(19, f);
380
380
  });
381
381
  }
382
382
  return s.$$set = (a) => {
383
- "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
383
+ "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, N = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, O = a.gamepagemodalurl), "showgamename" in a && t(13, z = a.showgamename), "visiblegames" in a && t(14, L = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, P = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
384
384
  }, s.$$.update = () => {
385
385
  s.$$.dirty[0] & /*endpoint, userid, lang*/
386
386
  41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
387
387
  256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
388
- 524352 && b && f && me(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
389
- 524416 && v && f && ue(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
390
- 786432 && f && ge(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
388
+ 524352 && b && f && fe(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
389
+ 524416 && v && f && he(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
390
+ 786432 && f && ye(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
391
391
  8 && d && p();
392
392
  }, [
393
393
  o,
@@ -400,11 +400,11 @@ function Le(s, e, t) {
400
400
  v,
401
401
  w,
402
402
  _,
403
- z,
404
403
  F,
405
404
  N,
406
405
  O,
407
- P,
406
+ z,
407
+ L,
408
408
  T,
409
409
  G,
410
410
  U,
@@ -412,19 +412,19 @@ function Le(s, e, t) {
412
412
  f,
413
413
  Y,
414
414
  i,
415
- C,
415
+ P,
416
416
  S,
417
417
  j,
418
418
  R,
419
419
  x
420
420
  ];
421
421
  }
422
- class Pe extends se {
422
+ class Le extends se {
423
423
  constructor(e) {
424
424
  super(), ne(
425
425
  this,
426
426
  e,
427
- Le,
427
+ Ce,
428
428
  ke,
429
429
  ie,
430
430
  {
@@ -595,7 +595,7 @@ class Pe extends se {
595
595
  this.$$set({ mbsource: e }), l();
596
596
  }
597
597
  }
598
- ae(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
598
+ ae(Le, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
599
599
  export {
600
- Pe as C
600
+ Le as C
601
601
  };
@@ -1,11 +1,11 @@
1
- import { a as ee, $ as te, S as ae, i as se, f as l, c as ne, s as ie, b as le, e as L, j as A, l as E, m as Z, o as B, p as D, q as re, r as oe, u as ue, z as ce, A as me, B as ge, h as n, t as de, n as fe, E as he, y as ye } from "./CasinoFilter-BPwlHha2.js";
2
- function H(s, e) {
1
+ import { a as ee, $ as te, S as ae, i as se, f as l, s as ne, F as ie, b as le, n as H, d as E, j as D, k as B, l as L, h as A, p as re, q as oe, x as ue, g as ce, o as me, e as n, w as ge, G as de, C as fe, D as he, E as ye } from "./CasinoFilter-B298XSri.js";
2
+ function V(s, e) {
3
3
  ee(s, e);
4
4
  }
5
5
  function be(s) {
6
6
  te.set(s);
7
7
  }
8
- const V = {
8
+ const Z = {
9
9
  en: {
10
10
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
11
11
  },
@@ -43,7 +43,7 @@ if (typeof window != "undefined") {
43
43
  }
44
44
  };
45
45
  };
46
- customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-D8tl2e4d.js").then(({ default: e }) => {
46
+ customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-DE5lOQB0.js").then(({ default: e }) => {
47
47
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
48
48
  });
49
49
  }
@@ -152,7 +152,7 @@ function we(s) {
152
152
  );
153
153
  },
154
154
  m(t, i) {
155
- E(t, e, i);
155
+ D(t, e, i);
156
156
  },
157
157
  p(t, i) {
158
158
  i[0] & /*session*/
@@ -272,7 +272,7 @@ function we(s) {
272
272
  );
273
273
  },
274
274
  d(t) {
275
- t && D(e);
275
+ t && E(e);
276
276
  }
277
277
  };
278
278
  }
@@ -283,18 +283,18 @@ function _e(s) {
283
283
  ), i;
284
284
  return {
285
285
  c() {
286
- e = L("p"), i = de(t), A(e, "class", "SearchLoading");
286
+ e = L("p"), i = me(t), A(e, "class", "SearchLoading");
287
287
  },
288
288
  m(o, r) {
289
- E(o, e, r), Z(e, i);
289
+ D(o, e, r), B(e, i);
290
290
  },
291
291
  p(o, r) {
292
292
  r[0] & /*$_*/
293
293
  2097152 && t !== (t = /*$_*/
294
- o[21]("noRecentGames") + "") && fe(i, t);
294
+ o[21]("noRecentGames") + "") && ce(i, t);
295
295
  },
296
296
  d(o) {
297
- o && D(e);
297
+ o && E(e);
298
298
  }
299
299
  };
300
300
  }
@@ -312,37 +312,37 @@ function ke(s) {
312
312
  e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
313
313
  },
314
314
  m(m, d) {
315
- E(m, e, d), Z(e, t), r.m(t, null), s[26](e);
315
+ D(m, e, d), B(e, t), r.m(t, null), s[26](e);
316
316
  },
317
317
  p(m, d) {
318
318
  o === (o = i(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
319
319
  },
320
- i: B,
321
- o: B,
320
+ i: H,
321
+ o: H,
322
322
  d(m) {
323
- m && D(e), r.d(), s[26](null);
323
+ m && E(e), r.d(), s[26](null);
324
324
  }
325
325
  };
326
326
  }
327
327
  function Le(s, e, t) {
328
328
  let i;
329
- re(s, he, (a) => t(21, i = a));
330
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
329
+ re(s, de, (a) => t(21, i = a));
330
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: N = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: z = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
331
331
  const Q = () => {
332
332
  fetch(w).then((g) => g.json()).then((g) => {
333
333
  Object.keys(g).forEach((u) => {
334
- H(u, g[u]);
334
+ V(u, g[u]);
335
335
  });
336
336
  }).catch((g) => {
337
337
  console.log(g);
338
338
  });
339
339
  };
340
- Object.keys(V).forEach((a) => {
341
- H(a, V[a]);
340
+ Object.keys(Z).forEach((a) => {
341
+ V(a, Z[a]);
342
342
  });
343
343
  const W = () => new Promise((a, g) => {
344
344
  let u = new URL(`${o}/v1/player/${y}/games/last-played`);
345
- u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
345
+ u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ge(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
346
346
  c.items = c.items.filter(($) => {
347
347
  let J = !0;
348
348
  return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
@@ -375,19 +375,19 @@ function Le(s, e, t) {
375
375
  oe(() => () => {
376
376
  });
377
377
  function x(a) {
378
- ce[a ? "unshift" : "push"](() => {
378
+ ue[a ? "unshift" : "push"](() => {
379
379
  f = a, t(19, f);
380
380
  });
381
381
  }
382
382
  return s.$$set = (a) => {
383
- "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
383
+ "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, N = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, O = a.gamepagemodalurl), "showgamename" in a && t(13, z = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
384
384
  }, s.$$.update = () => {
385
385
  s.$$.dirty[0] & /*endpoint, userid, lang*/
386
386
  41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
387
387
  256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
388
- 524352 && b && f && me(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
389
- 524416 && v && f && ue(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
390
- 786432 && f && ge(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
388
+ 524352 && b && f && fe(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
389
+ 524416 && v && f && he(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
390
+ 786432 && f && ye(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
391
391
  8 && d && p();
392
392
  }, [
393
393
  o,
@@ -400,10 +400,10 @@ function Le(s, e, t) {
400
400
  v,
401
401
  w,
402
402
  _,
403
- z,
404
403
  F,
405
404
  N,
406
405
  O,
406
+ z,
407
407
  P,
408
408
  T,
409
409
  G,
@@ -426,7 +426,7 @@ class Pe extends ae {
426
426
  e,
427
427
  Le,
428
428
  ke,
429
- ie,
429
+ ne,
430
430
  {
431
431
  endpoint: 0,
432
432
  datasource: 1,
@@ -595,7 +595,7 @@ class Pe extends ae {
595
595
  this.$$set({ mbsource: e }), l();
596
596
  }
597
597
  }
598
- ne(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
598
+ ie(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
599
599
  export {
600
600
  Pe as default
601
601
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={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."}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-3Y0I-nZ-.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(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[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),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,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16])},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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),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,"translationurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[21]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[20]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,E=s.gamepagemodalurl),"showgamename"in s&&a(13,M=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(16,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,F=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,b,v,R,A,E,M,k,D,S,F,q,g,O,i,P,L,C,j,p]}class Y 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,translationurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17,mbsource:18},Q,[-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[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-Db45KoqP.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={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."}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-ALBm4PVl.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(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[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),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,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16])},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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),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,"translationurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[21]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[20]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,E=s.gamepagemodalurl),"showgamename"in s&&a(13,M=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(16,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,F=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,b,v,R,A,E,M,k,D,S,F,q,g,O,i,P,L,C,j,p]}class Y 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,translationurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17,mbsource:18},Q,[-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[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;