@everymatrix/casino-my-games-nd 1.87.26 → 1.87.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 (46) hide show
  1. package/components/CasinoFavoritesSectionNd-B2O5ZJ7U.js +465 -0
  2. package/components/CasinoFavoritesSectionNd-C_IhNI6X.js +465 -0
  3. package/components/CasinoFavoritesSectionNd-Cdy5njPd.cjs +1 -0
  4. package/components/CasinoFilter-BHp-ceif.js +644 -0
  5. package/components/CasinoFilter-BxbOeQca.cjs +1 -0
  6. package/components/CasinoFilter-CZ5MibUb.js +645 -0
  7. package/components/CasinoGameThumbnailNd-CvwOiPVg.cjs +30 -0
  8. package/components/CasinoGameThumbnailNd-DF51S3O0.js +1825 -0
  9. package/components/CasinoGameThumbnailNd-DoWO2XT4.js +1841 -0
  10. package/components/CasinoGamesCategorySectionNd-BCRe5jM4.cjs +1 -0
  11. package/components/CasinoGamesCategorySectionNd-COK29j6T.js +4644 -0
  12. package/components/CasinoGamesCategorySectionNd-o6TspFsQ.js +4611 -0
  13. package/components/{CasinoLastPlayedSectionNd-BNqrgb0a.js → CasinoLastPlayedSectionNd-7Wrhf-Cs.js} +71 -72
  14. package/components/{CasinoLastPlayedSectionNd-BlqDt6rh.js → CasinoLastPlayedSectionNd-DLZwmT_F.js} +71 -72
  15. package/components/CasinoLastPlayedSectionNd-DZ6Cs4tA.cjs +1 -0
  16. package/components/CasinoMostPlayedSectionNd-D3f36lEH.cjs +1 -0
  17. package/components/{CasinoMostPlayedSectionNd-BBa-HSUH.js → CasinoMostPlayedSectionNd-DTY09L5X.js} +92 -93
  18. package/components/{CasinoMostPlayedSectionNd-cnY_XdFa.js → CasinoMostPlayedSectionNd-EUGxyFvb.js} +92 -93
  19. package/components/CasinoMyGamesNd-BpPfnub_.cjs +18 -0
  20. package/components/CasinoMyGamesNd-DXMMIiZf.js +5854 -0
  21. package/components/CasinoMyGamesNd-L5aDat7v.js +5811 -0
  22. package/components/{CasinoSort-1CGgZmtY.js → CasinoSort-Bt1yZsWS.js} +103 -103
  23. package/components/{CasinoSort-DnexQ1Yk.js → CasinoSort-CivOK-Iv.js} +102 -102
  24. package/components/CasinoSort-CxMfIVPn.cjs +1 -0
  25. package/es2015/casino-my-games-nd.cjs +1 -1
  26. package/es2015/casino-my-games-nd.js +7 -7
  27. package/esnext/casino-my-games-nd.js +1 -1
  28. package/package.json +1 -1
  29. package/components/CasinoFavoritesSectionNd-BeNK2H3t.cjs +0 -3
  30. package/components/CasinoFavoritesSectionNd-CW_9L0KX.js +0 -4402
  31. package/components/CasinoFavoritesSectionNd-Df7AsFyl.js +0 -4365
  32. package/components/CasinoFilter-B5ctcxIi.js +0 -1185
  33. package/components/CasinoFilter-BAF26Qks.cjs +0 -16
  34. package/components/CasinoFilter-CkDqcbsE.js +0 -1184
  35. package/components/CasinoGameThumbnailNd-BC4qO6Wv.cjs +0 -30
  36. package/components/CasinoGameThumbnailNd-Cf0yYAlm.js +0 -3122
  37. package/components/CasinoGameThumbnailNd-krS0hcHc.js +0 -3106
  38. package/components/CasinoGamesCategorySectionNd--26wgDSA.js +0 -3371
  39. package/components/CasinoGamesCategorySectionNd-CAPj_mei.cjs +0 -1
  40. package/components/CasinoGamesCategorySectionNd-CcHVOCjP.js +0 -3338
  41. package/components/CasinoLastPlayedSectionNd-BiN-eLjS.cjs +0 -1
  42. package/components/CasinoMostPlayedSectionNd-xhyYFecB.cjs +0 -1
  43. package/components/CasinoMyGamesNd-BuINvDGu.js +0 -1351
  44. package/components/CasinoMyGamesNd-CteUrSBV.js +0 -1350
  45. package/components/CasinoMyGamesNd-DOYU176c.cjs +0 -1
  46. package/components/CasinoSort-ChRHQzFr.cjs +0 -1
@@ -1,13 +1,12 @@
1
- import { b as ee, $ as te, S as ae, i as se, s as ie, f as l, c as ne, n as H, d as M, e as T, q as V, g as P, k as D, h as le, o as re, j as oe, p as ue, w as me, E as i, z as ce, A as ge, B as de, C as fe, D as he } from "./CasinoFavoritesSectionNd-CW_9L0KX.js";
2
- import { g as ye } from "./CasinoFilter-B5ctcxIi.js";
3
- import { g as be } from "./CasinoGameThumbnailNd-Cf0yYAlm.js";
4
- function ve(s, e) {
5
- ee(s, e);
1
+ import { q as te, $ as ae, S as se, i as ie, s as ne, f as l, b as le, n as H, d as T, c as D, r as V, e as L, g as M, t as re, o as oe, u as ue, j as ce, v as me, w as ge, h as i, x as de, k as fe, l as he, m as ye, p as be, y as ve } from "./CasinoMyGamesNd-DXMMIiZf.js";
2
+ import "./CasinoFavoritesSectionNd-C_IhNI6X.js";
3
+ function we(s, e) {
4
+ te(s, e);
6
5
  }
7
- function we(s) {
8
- te.set(s);
6
+ function _e(s) {
7
+ ae.set(s);
9
8
  }
10
- const _e = {
9
+ const ke = {
11
10
  en: {
12
11
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
13
12
  },
@@ -33,14 +32,14 @@ const _e = {
33
32
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
34
33
  }
35
34
  };
36
- function ke(s) {
37
- ne(s, "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))}");
35
+ function Se(s) {
36
+ le(s, "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))}");
38
37
  }
39
38
  function Le(s) {
40
39
  let e;
41
40
  return {
42
41
  c() {
43
- e = P("casino-games-category-section-nd"), i(
42
+ e = L("casino-games-category-section-nd"), i(
44
43
  e,
45
44
  "session",
46
45
  /*session*/
@@ -138,7 +137,7 @@ function Le(s) {
138
137
  );
139
138
  },
140
139
  m(t, n) {
141
- T(t, e, n);
140
+ D(t, e, n);
142
141
  },
143
142
  p(t, n) {
144
143
  n[0] & /*session*/
@@ -258,7 +257,7 @@ function Le(s) {
258
257
  );
259
258
  },
260
259
  d(t) {
261
- t && M(e);
260
+ t && T(e);
262
261
  }
263
262
  };
264
263
  }
@@ -269,117 +268,117 @@ function Pe(s) {
269
268
  ), n;
270
269
  return {
271
270
  c() {
272
- e = P("p"), n = me(t), D(e, "class", "SearchLoading");
271
+ e = L("p"), n = ge(t), M(e, "class", "SearchLoading");
273
272
  },
274
273
  m(o, r) {
275
- T(o, e, r), V(e, n);
274
+ D(o, e, r), V(e, n);
276
275
  },
277
276
  p(o, r) {
278
277
  r[0] & /*$_*/
279
278
  2097152 && t !== (t = /*$_*/
280
- o[21]("noRecentGames") + "") && ue(n, t);
279
+ o[21]("noRecentGames") + "") && me(n, t);
281
280
  },
282
281
  d(o) {
283
- o && M(e);
282
+ o && T(e);
284
283
  }
285
284
  };
286
285
  }
287
- function Se(s) {
286
+ function Ce(s) {
288
287
  let e, t;
289
- function n(c, d) {
288
+ function n(m, d) {
290
289
  return (
291
290
  /*lastPlayedEmpty*/
292
- c[20] ? Pe : Le
291
+ m[20] ? Pe : Le
293
292
  );
294
293
  }
295
294
  let o = n(s), r = o(s);
296
295
  return {
297
296
  c() {
298
- e = P("div"), t = P("div"), r.c(), D(t, "class", "CasinoLastPlayedSection"), D(e, "class", "CasinoGamesCategorySectionContainer");
297
+ e = L("div"), t = L("div"), r.c(), M(t, "class", "CasinoLastPlayedSection"), M(e, "class", "CasinoGamesCategorySectionContainer");
299
298
  },
300
- m(c, d) {
301
- T(c, e, d), V(e, t), r.m(t, null), s[26](e);
299
+ m(m, d) {
300
+ D(m, e, d), V(e, t), r.m(t, null), s[26](e);
302
301
  },
303
- p(c, d) {
304
- o === (o = n(c)) && r ? r.p(c, d) : (r.d(1), r = o(c), r && (r.c(), r.m(t, null)));
302
+ p(m, d) {
303
+ o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
305
304
  },
306
305
  i: H,
307
306
  o: H,
308
- d(c) {
309
- c && M(e), r.d(), s[26](null);
307
+ d(m) {
308
+ m && T(e), r.d(), s[26](null);
310
309
  }
311
310
  };
312
311
  }
313
- function Ce(s, e, t) {
312
+ function je(s, e, t) {
314
313
  let n;
315
- le(s, he, (a) => t(21, n = a));
316
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: c = "" } = e, { lang: d = "" } = e, { session: N = "" } = e, { userid: v = "" } = e, { mbsource: y } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: b = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: E = "false" } = e, { gamepagemodalurl: F = "false" } = e, { showgamename: O = "" } = e, { visiblegames: S = "" } = e, { favorites: U = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: G = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: q = "true" } = e, { fetchviaevent: Y = "true" } = e, Z = window.navigator.userAgent, B = !1, L = [], I, f, K;
314
+ re(s, ve, (a) => t(21, n = a));
315
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: N = "" } = e, { userid: v = "" } = e, { mbsource: y } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: b = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: z = "false" } = e, { gamepagemodalurl: E = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: U = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: G = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: q = "true" } = e, { fetchviaevent: Y = "true" } = e, Z = window.navigator.userAgent, I = !1, S = [], J, f, K, Q;
317
316
  const A = (a) => {
318
317
  Object.keys(a).forEach((u) => {
319
- ve(u, a[u]);
318
+ we(u, a[u]);
320
319
  });
321
- }, Q = () => {
320
+ }, W = () => {
322
321
  fetch(b).then((u) => u.json()).then((u) => {
323
322
  A(u);
324
323
  }).catch((u) => {
325
324
  console.log(u);
326
325
  });
327
326
  };
328
- A(_e);
329
- const W = () => new Promise((a, u) => {
327
+ A(ke);
328
+ const X = () => new Promise((a, u) => {
330
329
  let g = new URL(`${o}/v1/player/${v}/games/last-played`);
331
- g.searchParams.append("unique", q), g.searchParams.append("limit", G), g.searchParams.append("order", j), g.searchParams.append("period", C), ye(Z) === "PC" ? g.searchParams.append("device", "Desktop") : g.searchParams.append("device", "Mobile"), I = k ? g : g.href, fetch(I).then((m) => m.json()).then((m) => {
332
- m.items = m.items.filter(($) => {
333
- let J = !0;
334
- return $.gameCode == "OddsMatrix2" && (m.count--, J = !1), J;
335
- }), a(m), window.postMessage(
330
+ g.searchParams.append("unique", q), g.searchParams.append("limit", G), g.searchParams.append("order", j), g.searchParams.append("period", C), de(Z) === "PC" ? g.searchParams.append("device", "Desktop") : g.searchParams.append("device", "Mobile"), J = k ? g : g.href, fetch(J).then((c) => c.json()).then((c) => {
331
+ c.items = c.items.filter((ee) => {
332
+ let B = !0;
333
+ return ee.gameCode == "OddsMatrix2" && (c.count--, B = !1), B;
334
+ }), a(c), window.postMessage(
336
335
  {
337
336
  type: "AddNewCategory",
338
337
  category: { name: "Last Played", id: "LASTPLAYED" }
339
338
  },
340
339
  window.location.href
341
- ), window.postMessage({ type: "LastPlayedGames", data: m }, window.location.href);
342
- }).catch((m) => {
343
- console.error(m), u(m);
340
+ ), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
341
+ }).catch((c) => {
342
+ console.error(c), u(c);
344
343
  });
345
- }), X = () => {
346
- W().then((a) => {
344
+ }), p = () => {
345
+ X().then((a) => {
347
346
  if (a.count > 0) {
348
347
  let u = [];
349
348
  a.items.forEach((g) => {
350
349
  let h = new URL(`${o}/v1/casino/games/${g.gameId}`);
351
- h.searchParams.append("datasource", r), k ? u.push(fetch(h.href).then((m) => m.json())) : u.push(fetch(h.href).then((m) => m.json()));
350
+ h.searchParams.append("datasource", r), k ? u.push(fetch(h.href).then((c) => c.json())) : u.push(fetch(h.href).then((c) => c.json()));
352
351
  }), Promise.all(u).then((g) => {
353
- L = g.filter((h) => !("error" in h)).map((h) => h[0]), R === "true" && (L = L.slice(0, JSON.parse(S))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: L }, window.location.href);
352
+ S = g.filter((h) => !("error" in h)).map((h) => h[0]), R === "true" && (S = S.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: S }, window.location.href);
354
353
  });
355
354
  } else
356
- t(20, B = !0);
355
+ t(20, I = !0);
357
356
  });
358
- }, p = () => {
359
- we(d);
357
+ }, x = () => {
358
+ _e(d);
360
359
  };
361
- re(() => () => {
360
+ oe(() => () => {
362
361
  });
363
- function x(a) {
364
- oe[a ? "unshift" : "push"](() => {
362
+ function $(a) {
363
+ ce[a ? "unshift" : "push"](() => {
365
364
  f = a, t(19, f);
366
365
  });
367
366
  }
368
367
  return s.$$set = (a) => {
369
- "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, c = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, N = a.session), "userid" in a && t(5, v = a.userid), "mbsource" in a && t(6, y = a.mbsource), "clientstyling" in a && t(7, w = a.clientstyling), "clientstylingurl" in a && t(8, _ = a.clientstylingurl), "translationurl" in a && t(9, b = a.translationurl), "livecasino" in a && t(10, k = a.livecasino), "integratedgameframemobile" in a && t(11, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(12, E = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(13, F = a.gamepagemodalurl), "showgamename" in a && t(14, O = a.showgamename), "visiblegames" in a && t(15, S = a.visiblegames), "favorites" in a && t(16, U = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, j = a.lastplayedorder), "lastplayedlimit" in a && t(24, G = a.lastplayedlimit), "casinomygames" in a && t(17, R = a.casinomygames), "lastplayedunique" in a && t(25, q = a.lastplayedunique), "fetchviaevent" in a && t(18, Y = a.fetchviaevent);
368
+ "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, N = a.session), "userid" in a && t(5, v = a.userid), "mbsource" in a && t(6, y = a.mbsource), "clientstyling" in a && t(7, w = a.clientstyling), "clientstylingurl" in a && t(8, _ = a.clientstylingurl), "translationurl" in a && t(9, b = a.translationurl), "livecasino" in a && t(10, k = a.livecasino), "integratedgameframemobile" in a && t(11, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(12, z = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(13, E = a.gamepagemodalurl), "showgamename" in a && t(14, O = a.showgamename), "visiblegames" in a && t(15, P = a.visiblegames), "favorites" in a && t(16, U = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, j = a.lastplayedorder), "lastplayedlimit" in a && t(24, G = a.lastplayedlimit), "casinomygames" in a && t(17, R = a.casinomygames), "lastplayedunique" in a && t(25, q = a.lastplayedunique), "fetchviaevent" in a && t(18, Y = a.fetchviaevent);
370
369
  }, s.$$.update = () => {
371
370
  s.$$.dirty[0] & /*endpoint, userid, lang*/
372
- 41 && o && v && d && X(), s.$$.dirty[0] & /*translationurl*/
373
- 512 && b && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
374
- 524416 && w && f && ce(f, w), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
375
- 524544 && _ && f && ge(f, _), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
376
- 524352 && y && f && de(f, `${y}.Style`), s.$$.dirty[0] & /*mbsource, translationurl*/
377
- 576 && y && !b && be(`${y}.Translation`, K, A), s.$$.dirty[0] & /*lang*/
378
- 8 && d && p();
371
+ 41 && o && v && d && p(), s.$$.dirty[0] & /*translationurl*/
372
+ 512 && b && W(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
373
+ 524416 && w && f && fe(f, w), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
374
+ 524544 && _ && f && he(f, _), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
375
+ 524352 && y && f && ye(f, `${y}.Style`, K), s.$$.dirty[0] & /*mbsource, translationurl*/
376
+ 576 && y && !b && ue(`${y}.Translation`, Q, A), s.$$.dirty[0] & /*lang*/
377
+ 8 && d && x();
379
378
  }, [
380
379
  o,
381
380
  r,
382
- c,
381
+ m,
383
382
  d,
384
383
  N,
385
384
  v,
@@ -388,32 +387,32 @@ function Ce(s, e, t) {
388
387
  _,
389
388
  b,
390
389
  k,
390
+ F,
391
391
  z,
392
392
  E,
393
- F,
394
393
  O,
395
- S,
394
+ P,
396
395
  U,
397
396
  R,
398
397
  Y,
399
398
  f,
400
- B,
399
+ I,
401
400
  n,
402
401
  C,
403
402
  j,
404
403
  G,
405
404
  q,
406
- x
405
+ $
407
406
  ];
408
407
  }
409
- class je extends ae {
408
+ class Ge extends se {
410
409
  constructor(e) {
411
- super(), se(
410
+ super(), ie(
412
411
  this,
413
412
  e,
413
+ je,
414
414
  Ce,
415
- Se,
416
- ie,
415
+ ne,
417
416
  {
418
417
  endpoint: 0,
419
418
  datasource: 1,
@@ -439,7 +438,7 @@ class je extends ae {
439
438
  lastplayedunique: 25,
440
439
  fetchviaevent: 18
441
440
  },
442
- ke,
441
+ Se,
443
442
  [-1, -1]
444
443
  );
445
444
  }
@@ -582,7 +581,7 @@ class je extends ae {
582
581
  this.$$set({ fetchviaevent: e }), l();
583
582
  }
584
583
  }
585
- fe(je, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
584
+ be(Ge, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
586
585
  export {
587
- je as default
586
+ Ge as default
588
587
  };
@@ -1,13 +1,12 @@
1
- import { b as ee, $ as te, S as ae, i as se, s as ie, f as l, c as ne, n as H, d as M, e as T, q as V, g as P, k as D, h as le, o as re, j as oe, p as ue, w as me, E as i, z as ce, A as ge, B as de, C as fe, D as he } from "./CasinoFavoritesSectionNd-Df7AsFyl.js";
2
- import { g as ye } from "./CasinoFilter-CkDqcbsE.js";
3
- import { g as be } from "./CasinoGameThumbnailNd-krS0hcHc.js";
4
- function ve(s, e) {
5
- ee(s, e);
1
+ import { q as te, $ as ae, S as se, i as ie, s as ne, f as l, b as le, n as H, d as T, e as D, r as V, g as L, h as M, t as re, o as oe, u as ue, k as ce, v as me, w as ge, j as i, x as de, l as fe, m as he, p as ye, c as be, y as ve } from "./CasinoMyGamesNd-L5aDat7v.js";
2
+ import "./CasinoFavoritesSectionNd-B2O5ZJ7U.js";
3
+ function we(s, e) {
4
+ te(s, e);
6
5
  }
7
- function we(s) {
8
- te.set(s);
6
+ function _e(s) {
7
+ ae.set(s);
9
8
  }
10
- const _e = {
9
+ const ke = {
11
10
  en: {
12
11
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
13
12
  },
@@ -33,14 +32,14 @@ const _e = {
33
32
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
34
33
  }
35
34
  };
36
- function ke(s) {
37
- ne(s, "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))}");
35
+ function Se(s) {
36
+ le(s, "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))}");
38
37
  }
39
38
  function Le(s) {
40
39
  let e;
41
40
  return {
42
41
  c() {
43
- e = P("casino-games-category-section-nd"), i(
42
+ e = L("casino-games-category-section-nd"), i(
44
43
  e,
45
44
  "session",
46
45
  /*session*/
@@ -138,7 +137,7 @@ function Le(s) {
138
137
  );
139
138
  },
140
139
  m(t, n) {
141
- T(t, e, n);
140
+ D(t, e, n);
142
141
  },
143
142
  p(t, n) {
144
143
  n[0] & /*session*/
@@ -258,7 +257,7 @@ function Le(s) {
258
257
  );
259
258
  },
260
259
  d(t) {
261
- t && M(e);
260
+ t && T(e);
262
261
  }
263
262
  };
264
263
  }
@@ -269,117 +268,117 @@ function Pe(s) {
269
268
  ), n;
270
269
  return {
271
270
  c() {
272
- e = P("p"), n = me(t), D(e, "class", "SearchLoading");
271
+ e = L("p"), n = ge(t), M(e, "class", "SearchLoading");
273
272
  },
274
273
  m(o, r) {
275
- T(o, e, r), V(e, n);
274
+ D(o, e, r), V(e, n);
276
275
  },
277
276
  p(o, r) {
278
277
  r[0] & /*$_*/
279
278
  2097152 && t !== (t = /*$_*/
280
- o[21]("noRecentGames") + "") && ue(n, t);
279
+ o[21]("noRecentGames") + "") && me(n, t);
281
280
  },
282
281
  d(o) {
283
- o && M(e);
282
+ o && T(e);
284
283
  }
285
284
  };
286
285
  }
287
- function Se(s) {
286
+ function Ce(s) {
288
287
  let e, t;
289
- function n(c, d) {
288
+ function n(m, d) {
290
289
  return (
291
290
  /*lastPlayedEmpty*/
292
- c[20] ? Pe : Le
291
+ m[20] ? Pe : Le
293
292
  );
294
293
  }
295
294
  let o = n(s), r = o(s);
296
295
  return {
297
296
  c() {
298
- e = P("div"), t = P("div"), r.c(), D(t, "class", "CasinoLastPlayedSection"), D(e, "class", "CasinoGamesCategorySectionContainer");
297
+ e = L("div"), t = L("div"), r.c(), M(t, "class", "CasinoLastPlayedSection"), M(e, "class", "CasinoGamesCategorySectionContainer");
299
298
  },
300
- m(c, d) {
301
- T(c, e, d), V(e, t), r.m(t, null), s[26](e);
299
+ m(m, d) {
300
+ D(m, e, d), V(e, t), r.m(t, null), s[26](e);
302
301
  },
303
- p(c, d) {
304
- o === (o = n(c)) && r ? r.p(c, d) : (r.d(1), r = o(c), r && (r.c(), r.m(t, null)));
302
+ p(m, d) {
303
+ o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
305
304
  },
306
305
  i: H,
307
306
  o: H,
308
- d(c) {
309
- c && M(e), r.d(), s[26](null);
307
+ d(m) {
308
+ m && T(e), r.d(), s[26](null);
310
309
  }
311
310
  };
312
311
  }
313
- function Ce(s, e, t) {
312
+ function je(s, e, t) {
314
313
  let n;
315
- le(s, he, (a) => t(21, n = a));
316
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: c = "" } = e, { lang: d = "" } = e, { session: N = "" } = e, { userid: v = "" } = e, { mbsource: y } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: b = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: E = "false" } = e, { gamepagemodalurl: F = "false" } = e, { showgamename: O = "" } = e, { visiblegames: S = "" } = e, { favorites: U = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: G = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: q = "true" } = e, { fetchviaevent: Y = "true" } = e, Z = window.navigator.userAgent, B = !1, L = [], I, f, K;
314
+ re(s, ve, (a) => t(21, n = a));
315
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: N = "" } = e, { userid: v = "" } = e, { mbsource: y } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: b = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: z = "false" } = e, { gamepagemodalurl: E = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: U = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: G = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: q = "true" } = e, { fetchviaevent: Y = "true" } = e, Z = window.navigator.userAgent, I = !1, S = [], J, f, K, Q;
317
316
  const A = (a) => {
318
317
  Object.keys(a).forEach((u) => {
319
- ve(u, a[u]);
318
+ we(u, a[u]);
320
319
  });
321
- }, Q = () => {
320
+ }, W = () => {
322
321
  fetch(b).then((u) => u.json()).then((u) => {
323
322
  A(u);
324
323
  }).catch((u) => {
325
324
  console.log(u);
326
325
  });
327
326
  };
328
- A(_e);
329
- const W = () => new Promise((a, u) => {
327
+ A(ke);
328
+ const X = () => new Promise((a, u) => {
330
329
  let g = new URL(`${o}/v1/player/${v}/games/last-played`);
331
- g.searchParams.append("unique", q), g.searchParams.append("limit", G), g.searchParams.append("order", j), g.searchParams.append("period", C), ye(Z) === "PC" ? g.searchParams.append("device", "Desktop") : g.searchParams.append("device", "Mobile"), I = k ? g : g.href, fetch(I).then((m) => m.json()).then((m) => {
332
- m.items = m.items.filter(($) => {
333
- let J = !0;
334
- return $.gameCode == "OddsMatrix2" && (m.count--, J = !1), J;
335
- }), a(m), window.postMessage(
330
+ g.searchParams.append("unique", q), g.searchParams.append("limit", G), g.searchParams.append("order", j), g.searchParams.append("period", C), de(Z) === "PC" ? g.searchParams.append("device", "Desktop") : g.searchParams.append("device", "Mobile"), J = k ? g : g.href, fetch(J).then((c) => c.json()).then((c) => {
331
+ c.items = c.items.filter((ee) => {
332
+ let B = !0;
333
+ return ee.gameCode == "OddsMatrix2" && (c.count--, B = !1), B;
334
+ }), a(c), window.postMessage(
336
335
  {
337
336
  type: "AddNewCategory",
338
337
  category: { name: "Last Played", id: "LASTPLAYED" }
339
338
  },
340
339
  window.location.href
341
- ), window.postMessage({ type: "LastPlayedGames", data: m }, window.location.href);
342
- }).catch((m) => {
343
- console.error(m), u(m);
340
+ ), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
341
+ }).catch((c) => {
342
+ console.error(c), u(c);
344
343
  });
345
- }), X = () => {
346
- W().then((a) => {
344
+ }), p = () => {
345
+ X().then((a) => {
347
346
  if (a.count > 0) {
348
347
  let u = [];
349
348
  a.items.forEach((g) => {
350
349
  let h = new URL(`${o}/v1/casino/games/${g.gameId}`);
351
- h.searchParams.append("datasource", r), k ? u.push(fetch(h.href).then((m) => m.json())) : u.push(fetch(h.href).then((m) => m.json()));
350
+ h.searchParams.append("datasource", r), k ? u.push(fetch(h.href).then((c) => c.json())) : u.push(fetch(h.href).then((c) => c.json()));
352
351
  }), Promise.all(u).then((g) => {
353
- L = g.filter((h) => !("error" in h)).map((h) => h[0]), R === "true" && (L = L.slice(0, JSON.parse(S))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: L }, window.location.href);
352
+ S = g.filter((h) => !("error" in h)).map((h) => h[0]), R === "true" && (S = S.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: S }, window.location.href);
354
353
  });
355
354
  } else
356
- t(20, B = !0);
355
+ t(20, I = !0);
357
356
  });
358
- }, p = () => {
359
- we(d);
357
+ }, x = () => {
358
+ _e(d);
360
359
  };
361
- re(() => () => {
360
+ oe(() => () => {
362
361
  });
363
- function x(a) {
364
- oe[a ? "unshift" : "push"](() => {
362
+ function $(a) {
363
+ ce[a ? "unshift" : "push"](() => {
365
364
  f = a, t(19, f);
366
365
  });
367
366
  }
368
367
  return s.$$set = (a) => {
369
- "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, c = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, N = a.session), "userid" in a && t(5, v = a.userid), "mbsource" in a && t(6, y = a.mbsource), "clientstyling" in a && t(7, w = a.clientstyling), "clientstylingurl" in a && t(8, _ = a.clientstylingurl), "translationurl" in a && t(9, b = a.translationurl), "livecasino" in a && t(10, k = a.livecasino), "integratedgameframemobile" in a && t(11, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(12, E = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(13, F = a.gamepagemodalurl), "showgamename" in a && t(14, O = a.showgamename), "visiblegames" in a && t(15, S = a.visiblegames), "favorites" in a && t(16, U = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, j = a.lastplayedorder), "lastplayedlimit" in a && t(24, G = a.lastplayedlimit), "casinomygames" in a && t(17, R = a.casinomygames), "lastplayedunique" in a && t(25, q = a.lastplayedunique), "fetchviaevent" in a && t(18, Y = a.fetchviaevent);
368
+ "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, N = a.session), "userid" in a && t(5, v = a.userid), "mbsource" in a && t(6, y = a.mbsource), "clientstyling" in a && t(7, w = a.clientstyling), "clientstylingurl" in a && t(8, _ = a.clientstylingurl), "translationurl" in a && t(9, b = a.translationurl), "livecasino" in a && t(10, k = a.livecasino), "integratedgameframemobile" in a && t(11, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(12, z = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(13, E = a.gamepagemodalurl), "showgamename" in a && t(14, O = a.showgamename), "visiblegames" in a && t(15, P = a.visiblegames), "favorites" in a && t(16, U = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, j = a.lastplayedorder), "lastplayedlimit" in a && t(24, G = a.lastplayedlimit), "casinomygames" in a && t(17, R = a.casinomygames), "lastplayedunique" in a && t(25, q = a.lastplayedunique), "fetchviaevent" in a && t(18, Y = a.fetchviaevent);
370
369
  }, s.$$.update = () => {
371
370
  s.$$.dirty[0] & /*endpoint, userid, lang*/
372
- 41 && o && v && d && X(), s.$$.dirty[0] & /*translationurl*/
373
- 512 && b && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
374
- 524416 && w && f && ce(f, w), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
375
- 524544 && _ && f && ge(f, _), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
376
- 524352 && y && f && de(f, `${y}.Style`), s.$$.dirty[0] & /*mbsource, translationurl*/
377
- 576 && y && !b && be(`${y}.Translation`, K, A), s.$$.dirty[0] & /*lang*/
378
- 8 && d && p();
371
+ 41 && o && v && d && p(), s.$$.dirty[0] & /*translationurl*/
372
+ 512 && b && W(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
373
+ 524416 && w && f && fe(f, w), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
374
+ 524544 && _ && f && he(f, _), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
375
+ 524352 && y && f && ye(f, `${y}.Style`, K), s.$$.dirty[0] & /*mbsource, translationurl*/
376
+ 576 && y && !b && ue(`${y}.Translation`, Q, A), s.$$.dirty[0] & /*lang*/
377
+ 8 && d && x();
379
378
  }, [
380
379
  o,
381
380
  r,
382
- c,
381
+ m,
383
382
  d,
384
383
  N,
385
384
  v,
@@ -388,32 +387,32 @@ function Ce(s, e, t) {
388
387
  _,
389
388
  b,
390
389
  k,
390
+ F,
391
391
  z,
392
392
  E,
393
- F,
394
393
  O,
395
- S,
394
+ P,
396
395
  U,
397
396
  R,
398
397
  Y,
399
398
  f,
400
- B,
399
+ I,
401
400
  n,
402
401
  C,
403
402
  j,
404
403
  G,
405
404
  q,
406
- x
405
+ $
407
406
  ];
408
407
  }
409
- class je extends ae {
408
+ class Ge extends se {
410
409
  constructor(e) {
411
- super(), se(
410
+ super(), ie(
412
411
  this,
413
412
  e,
413
+ je,
414
414
  Ce,
415
- Se,
416
- ie,
415
+ ne,
417
416
  {
418
417
  endpoint: 0,
419
418
  datasource: 1,
@@ -439,7 +438,7 @@ class je extends ae {
439
438
  lastplayedunique: 25,
440
439
  fetchviaevent: 18
441
440
  },
442
- ke,
441
+ Se,
443
442
  [-1, -1]
444
443
  );
445
444
  }
@@ -582,7 +581,7 @@ class je extends ae {
582
581
  this.$$set({ fetchviaevent: e }), l();
583
582
  }
584
583
  }
585
- fe(je, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
584
+ be(Ge, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {} }, [], [], !0);
586
585
  export {
587
- je as default
586
+ Ge as default
588
587
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoMyGamesNd-BpPfnub_.cjs");require("./CasinoFavoritesSectionNd-Cdy5njPd.cjs");function W(n,e){t.addMessages(n,e)}function X(n){t.$locale.set(n)}const p={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 x(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 $(n){let e;return{c(){e=t.element("casino-games-category-section-nd"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[16]),t.set_custom_element_data(e,"fetchviaevent",n[18]),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[14]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"translationurl",n[9]),t.set_custom_element_data(e,"livecasino",n[10]),t.set_custom_element_data(e,"visiblegames",n[15]),t.set_custom_element_data(e,"gamepagemodalurl",n[13]),t.set_custom_element_data(e,"integratedgameframedesktop",n[12]),t.set_custom_element_data(e,"integratedgameframemobile",n[11]),t.set_custom_element_data(e,"casinomygames",n[17]),t.set_custom_element_data(e,"mbsource",n[6])},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]&65536&&t.set_custom_element_data(e,"favorites",a[16]),i[0]&262144&&t.set_custom_element_data(e,"fetchviaevent",a[18]),i[0]&16384&&t.set_custom_element_data(e,"showgamename",a[14]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"translationurl",a[9]),i[0]&1024&&t.set_custom_element_data(e,"livecasino",a[10]),i[0]&32768&&t.set_custom_element_data(e,"visiblegames",a[15]),i[0]&8192&&t.set_custom_element_data(e,"gamepagemodalurl",a[13]),i[0]&4096&&t.set_custom_element_data(e,"integratedgameframedesktop",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframemobile",a[11]),i[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function ee(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 te(n){let e,a;function i(u,d){return u[20]?ee:$}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 ae(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:R=""}=e,{userid:y=""}=e,{mbsource:_}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{translationurl:h=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:A="false"}=e,{integratedgameframedesktop:M="false"}=e,{gamepagemodalurl:T="false"}=e,{showgamename:N=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:j="false"}=e,{lastplayedunique:G="true"}=e,{fetchviaevent:F="true"}=e,Y=window.navigator.userAgent,z=!1,S=[],E,g,I,J;const q=s=>{Object.keys(s).forEach(r=>{W(r,s[r])})},B=()=>{fetch(h).then(r=>r.json()).then(r=>{q(r)}).catch(r=>{console.log(r)})};q(p);const H=()=>new Promise((s,r)=>{let c=new URL(`${o}/v1/player/${y}/games/last-played`);c.searchParams.append("unique",G),c.searchParams.append("limit",C),c.searchParams.append("order",L),c.searchParams.append("period",P),t.getDevice(Y)==="PC"?c.searchParams.append("device","Desktop"):c.searchParams.append("device","Mobile"),E=w?c:c.href,fetch(E).then(m=>m.json()).then(m=>{m.items=m.items.filter(Q=>{let O=!0;return Q.gameCode=="OddsMatrix2"&&(m.count--,O=!1),O}),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),r(m)})}),V=()=>{H().then(s=>{if(s.count>0){let r=[];s.items.forEach(c=>{let f=new URL(`${o}/v1/casino/games/${c.gameId}`);f.searchParams.append("datasource",l),w?r.push(fetch(f.href).then(m=>m.json())):r.push(fetch(f.href).then(m=>m.json()))}),Promise.all(r).then(c=>{S=c.filter(f=>!("error"in f)).map(f=>f[0]),j==="true"&&(S=S.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:S},window.location.href)})}else a(20,z=!0)})},Z=()=>{X(d)};t.onMount(()=>()=>{});function K(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,R=s.session),"userid"in s&&a(5,y=s.userid),"mbsource"in s&&a(6,_=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"translationurl"in s&&a(9,h=s.translationurl),"livecasino"in s&&a(10,w=s.livecasino),"integratedgameframemobile"in s&&a(11,A=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(12,M=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(13,T=s.gamepagemodalurl),"showgamename"in s&&a(14,N=s.showgamename),"visiblegames"in s&&a(15,k=s.visiblegames),"favorites"in s&&a(16,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(17,j=s.casinomygames),"lastplayedunique"in s&&a(25,G=s.lastplayedunique),"fetchviaevent"in s&&a(18,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&y&&d&&V(),n.$$.dirty[0]&512&&h&&B(),n.$$.dirty[0]&524416&&b&&g&&t.setClientStyling(g,b),n.$$.dirty[0]&524544&&v&&g&&t.setClientStylingURL(g,v),n.$$.dirty[0]&524352&&_&&g&&t.setStreamStyling(g,`${_}.Style`,I),n.$$.dirty[0]&576&&_&&!h&&t.getStreamTranslations(`${_}.Translation`,J,q),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,R,y,_,b,v,h,w,A,M,T,N,k,D,j,F,g,z,i,P,L,C,G,K]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ae,te,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,translationurl:9,livecasino:10,integratedgameframemobile:11,integratedgameframedesktop:12,gamepagemodalurl:13,showgamename:14,visiblegames:15,favorites:16,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:17,lastplayedunique:25,fetchviaevent:18},x,[-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 mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[10]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[11]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[13]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[14]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[15]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[16]}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[17]}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[18]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{}},[],[],!0);exports.default=U;