@everymatrix/casino-my-games 1.45.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/components/CasinoFavoritesSection-CH3Lqq9F.cjs +3 -0
  2. package/components/{CasinoFavoritesSection-BV6hTS5C.js → CasinoFavoritesSection-Dskphnqq.js} +34 -38
  3. package/components/CasinoFilter-BID-K58X.cjs +3 -0
  4. package/components/CasinoFilter-BL4Si3BV.js +1116 -0
  5. package/components/CasinoGameThumbnail-C5vfXyQD.cjs +47 -0
  6. package/components/CasinoGameThumbnail-DM4MBVLD.js +4405 -0
  7. package/components/CasinoGamesCategorySection-BCzNljKC.js +3019 -0
  8. package/components/CasinoGamesCategorySection-CqYKQlBg.cjs +1 -0
  9. package/components/CasinoLastPlayedSection-4mEzDqDl.cjs +1 -0
  10. package/components/{CasinoLastPlayedSection-yMoCKFv_.js → CasinoLastPlayedSection-9Pluu6X3.js} +48 -48
  11. package/components/CasinoMostPlayedSection-CWtl_ZnZ.cjs +1 -0
  12. package/components/{CasinoMostPlayedSection-D6b06OOV.js → CasinoMostPlayedSection-DzfIdnnG.js} +69 -69
  13. package/components/{CasinoMyGames-D1D23r5K.js → CasinoMyGames-MTmuuayw.js} +371 -371
  14. package/components/CasinoMyGames-cpUGmtos.cjs +1 -0
  15. package/components/CasinoSort-BfcsvFqx.js +425 -0
  16. package/components/CasinoSort-BrPaelpm.cjs +1 -0
  17. package/es2015/casino-my-games.cjs +1 -1
  18. package/es2015/casino-my-games.js +1 -1
  19. package/package.json +2 -2
  20. package/components/CasinoFavoritesSection-D9ecm-38.cjs +0 -3
  21. package/components/CasinoFilter-DdR2ao1V.js +0 -1116
  22. package/components/CasinoFilter-lLwFUd4o.cjs +0 -3
  23. package/components/CasinoGameThumbnail-Csj1LkxW.js +0 -4405
  24. package/components/CasinoGameThumbnail-DqoW33Zf.cjs +0 -47
  25. package/components/CasinoGamesCategorySection-CxJxQ1Xt.js +0 -3023
  26. package/components/CasinoGamesCategorySection-UNyRZN7B.cjs +0 -1
  27. package/components/CasinoLastPlayedSection-60iRiHLa.cjs +0 -1
  28. package/components/CasinoMostPlayedSection-DsIgWKz2.cjs +0 -1
  29. package/components/CasinoMyGames-BBoCsuaf.cjs +0 -1
  30. package/components/CasinoSort-BvUxf_TE.cjs +0 -1
  31. package/components/CasinoSort-Cl46Mkr1.js +0 -425
@@ -1,12 +1,12 @@
1
- import { e as ee, $ as te, S as se, i as ae, f as o, g as ne, s as ie, h as le, j as N, v as p, k as S, w as Y, n as I, l as M, m as oe, p as re, J as n, u as me, y as ge, C as ce } from "./CasinoFavoritesSection-BV6hTS5C.js";
2
- import { g as de } from "./CasinoFilter-DdR2ao1V.js";
3
- function J(a, e) {
1
+ import { e as ee, $ as te, S as se, i as ae, f as l, g as ne, s as ie, h as oe, j as N, v as S, k as M, w as Y, n as H, l as A, m as le, p as re, I as n, u as me, y as ge, C as ce } from "./CasinoFavoritesSection-Dskphnqq.js";
2
+ import { g as de } from "./CasinoFilter-BL4Si3BV.js";
3
+ function q(a, e) {
4
4
  ee(a, e);
5
5
  }
6
6
  function ue(a) {
7
7
  te.set(a);
8
8
  }
9
- const q = {
9
+ const J = {
10
10
  en: {
11
11
  noGames: "No games in most played"
12
12
  },
@@ -60,7 +60,7 @@ const q = {
60
60
  }
61
61
  };
62
62
  function fe(a) {
63
- le(a, "svelte-lpws4r", ".svelte-lpws4r,.svelte-lpws4r::before,.svelte-lpws4r::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section.svelte-lpws4r{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
63
+ oe(a, "svelte-fogubb", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
64
64
  }
65
65
  function he(a) {
66
66
  let e;
@@ -106,7 +106,7 @@ function he(a) {
106
106
  "fetchviaevent",
107
107
  /*fetchviaevent*/
108
108
  a[16]
109
- ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer svelte-lpws4r"), n(
109
+ ), n(e, "categoryid", "MOSTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
110
110
  e,
111
111
  "showgamename",
112
112
  /*showgamename*/
@@ -154,7 +154,7 @@ function he(a) {
154
154
  );
155
155
  },
156
156
  m(s, i) {
157
- S(s, e, i);
157
+ M(s, e, i);
158
158
  },
159
159
  p(s, i) {
160
160
  i[0] & /*session*/
@@ -262,7 +262,7 @@ function he(a) {
262
262
  );
263
263
  },
264
264
  d(s) {
265
- s && M(e);
265
+ s && A(e);
266
266
  }
267
267
  };
268
268
  }
@@ -273,10 +273,10 @@ function ye(a) {
273
273
  ), i;
274
274
  return {
275
275
  c() {
276
- e = N("p"), i = me(s), p(e, "class", "SearchLoading svelte-lpws4r");
276
+ e = N("p"), i = me(s), S(e, "class", "SearchLoading");
277
277
  },
278
278
  m(m, r) {
279
- S(m, e, r), Y(e, i);
279
+ M(m, e, r), Y(e, i);
280
280
  },
281
281
  p(m, r) {
282
282
  r[0] & /*$_*/
@@ -284,7 +284,7 @@ function ye(a) {
284
284
  m[19]("noGames") + "") && ge(i, s);
285
285
  },
286
286
  d(m) {
287
- m && M(e);
287
+ m && A(e);
288
288
  }
289
289
  };
290
290
  }
@@ -299,47 +299,47 @@ function ve(a) {
299
299
  let m = i(a), r = m(a);
300
300
  return {
301
301
  c() {
302
- e = N("div"), s = N("div"), r.c(), p(s, "class", "casino-most-played-section svelte-lpws4r"), p(e, "class", "CasinoGamesCategorySectionContainer svelte-lpws4r");
302
+ e = N("div"), s = N("div"), r.c(), S(s, "class", "casino-most-played-section"), S(e, "class", "CasinoGamesCategorySectionContainer");
303
303
  },
304
304
  m(g, c) {
305
- S(g, e, c), Y(e, s), r.m(s, null), a[23](e);
305
+ M(g, e, c), Y(e, s), r.m(s, null), a[23](e);
306
306
  },
307
307
  p(g, c) {
308
308
  m === (m = i(g)) && r ? r.p(g, c) : (r.d(1), r = m(g), r && (r.c(), r.m(s, null)));
309
309
  },
310
- i: I,
311
- o: I,
310
+ i: H,
311
+ o: H,
312
312
  d(g) {
313
- g && M(e), r.d(), a[23](null);
313
+ g && A(e), r.d(), a[23](null);
314
314
  }
315
315
  };
316
316
  }
317
317
  function be(a, e, s) {
318
318
  let i;
319
- oe(a, ce, (t) => s(19, i = t));
320
- let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: A = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: E = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: T = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P } = e, { favorites: D = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: R = "true" } = e, B = window.navigator.userAgent;
319
+ le(a, ce, (t) => s(19, i = t));
320
+ let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: w = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: D = "" } = e, { visiblegames: P } = e, { favorites: R = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: U = "true" } = e, B = window.navigator.userAgent;
321
321
  const K = () => {
322
- fetch(k).then((l) => l.json()).then((l) => {
323
- Object.keys(l).forEach((d) => {
324
- J(d, l[d]);
322
+ fetch(k).then((o) => o.json()).then((o) => {
323
+ Object.keys(o).forEach((d) => {
324
+ q(d, o[d]);
325
325
  });
326
- }).catch((l) => {
327
- console.log(l);
326
+ }).catch((o) => {
327
+ console.log(o);
328
328
  });
329
329
  };
330
- Object.keys(q).forEach((t) => {
331
- J(t, q[t]);
330
+ Object.keys(J).forEach((t) => {
331
+ q(t, J[t]);
332
332
  });
333
- let G = [], U, z = !1, h;
333
+ let G = [], p, I = !1, h;
334
334
  const Q = (t) => {
335
- let l = new URL(`${m}/v1/player/${v}/games/most-played`);
336
- t.limit && l.searchParams.append("limit", t.limit), t.order && l.searchParams.append("order", t.order), l.searchParams.append("expand", "games"), l.searchParams.append("period", j);
335
+ let o = new URL(`${m}/v1/player/${v}/games/most-played`);
336
+ t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
337
337
  let d = t.device;
338
- return d ? d === "PC" ? l.searchParams.append("device", "Desktop") : l.searchParams.append("device", "Mobile") : l.searchParams.append("device", "All"), t.rounds && l.searchParams.append("rounds", t.rounds), U = _ ? l : l.href, new Promise((u, y) => {
339
- fetch(U).then((f) => f.json()).then((f) => {
338
+ return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), p = w ? o : o.href, new Promise((u, y) => {
339
+ fetch(p).then((f) => f.json()).then((f) => {
340
340
  f.items = f.items.filter(($) => {
341
- let H = !0;
342
- return $.gameCode == "OddsMatrix2" && (f.count--, H = !1), H;
341
+ let z = !0;
342
+ return $.gameCode == "OddsMatrix2" && (f.count--, z = !1), z;
343
343
  }), u(f);
344
344
  }).catch((f) => {
345
345
  console.error(f), y(f);
@@ -352,15 +352,15 @@ function be(a, e, s) {
352
352
  rounds: L
353
353
  }).then((t) => {
354
354
  if (t.count > 0) {
355
- let l = [];
355
+ let o = [];
356
356
  t.items.forEach((d) => {
357
357
  let u = new URL(`${m}/v1/casino/games/${d.gameId}`);
358
- u.searchParams.append("datasource", r), _ ? l.push(fetch(u.href).then((y) => y.json())) : l.push(fetch(u.href).then((y) => y.json()));
359
- }), Promise.all(l).then((d) => {
358
+ u.searchParams.append("datasource", r), w ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
359
+ }), Promise.all(o).then((d) => {
360
360
  G = d.filter((u) => !("error" in u)).map((u) => u[0]), C === "true" && (G = G.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: G }, window.location.href);
361
361
  });
362
362
  } else
363
- s(18, z = !0);
363
+ s(18, I = !0);
364
364
  });
365
365
  }, W = () => {
366
366
  ue(c);
@@ -369,8 +369,8 @@ function be(a, e, s) {
369
369
  t.innerHTML = b, h.appendChild(t);
370
370
  }, Z = () => {
371
371
  let t = document.createElement("style");
372
- fetch(new URL(w)).then((l) => l.text()).then((l) => {
373
- t.innerHTML = l, setTimeout(
372
+ fetch(new URL(_)).then((o) => o.text()).then((o) => {
373
+ t.innerHTML = o, setTimeout(
374
374
  () => {
375
375
  h.appendChild(t);
376
376
  },
@@ -384,12 +384,12 @@ function be(a, e, s) {
384
384
  });
385
385
  }
386
386
  return a.$$set = (t) => {
387
- "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, A = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, w = t.clientstylingurl), "livecasino" in t && s(8, _ = t.livecasino), "integratedgameframemobile" in t && s(9, E = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, T = t.gamepagemodalurl), "showgamename" in t && s(12, O = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, D = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, L = t.mostplayedrounds), "fetchviaevent" in t && s(16, R = t.fetchviaevent);
387
+ "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, E = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, _ = t.clientstylingurl), "livecasino" in t && s(8, w = t.livecasino), "integratedgameframemobile" in t && s(9, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, O = t.gamepagemodalurl), "showgamename" in t && s(12, D = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, R = t.favorites), "translationurl" in t && s(20, k = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, L = t.mostplayedrounds), "fetchviaevent" in t && s(16, U = t.fetchviaevent);
388
388
  }, a.$$.update = () => {
389
389
  a.$$.dirty[0] & /*endpoint, userid, lang*/
390
390
  41 && m && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
391
391
  131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
392
- 131200 && w && h && Z(), a.$$.dirty[0] & /*translationurl*/
392
+ 131200 && _ && h && Z(), a.$$.dirty[0] & /*translationurl*/
393
393
  1048576 && k && K(), a.$$.dirty[0] & /*lang*/
394
394
  8 && c && W();
395
395
  }, [
@@ -397,21 +397,21 @@ function be(a, e, s) {
397
397
  r,
398
398
  g,
399
399
  c,
400
- A,
400
+ E,
401
401
  v,
402
402
  b,
403
- w,
404
403
  _,
405
- E,
404
+ w,
406
405
  F,
407
406
  T,
408
407
  O,
409
- P,
410
408
  D,
411
- C,
409
+ P,
412
410
  R,
411
+ C,
412
+ U,
413
413
  h,
414
- z,
414
+ I,
415
415
  i,
416
416
  k,
417
417
  j,
@@ -419,7 +419,7 @@ function be(a, e, s) {
419
419
  x
420
420
  ];
421
421
  }
422
- class we extends se {
422
+ class _e extends se {
423
423
  constructor(e) {
424
424
  super(), ae(
425
425
  this,
@@ -457,124 +457,124 @@ class we extends se {
457
457
  return this.$$.ctx[0];
458
458
  }
459
459
  set endpoint(e) {
460
- this.$$set({ endpoint: e }), o();
460
+ this.$$set({ endpoint: e }), l();
461
461
  }
462
462
  get datasource() {
463
463
  return this.$$.ctx[1];
464
464
  }
465
465
  set datasource(e) {
466
- this.$$set({ datasource: e }), o();
466
+ this.$$set({ datasource: e }), l();
467
467
  }
468
468
  get currency() {
469
469
  return this.$$.ctx[2];
470
470
  }
471
471
  set currency(e) {
472
- this.$$set({ currency: e }), o();
472
+ this.$$set({ currency: e }), l();
473
473
  }
474
474
  get lang() {
475
475
  return this.$$.ctx[3];
476
476
  }
477
477
  set lang(e) {
478
- this.$$set({ lang: e }), o();
478
+ this.$$set({ lang: e }), l();
479
479
  }
480
480
  get session() {
481
481
  return this.$$.ctx[4];
482
482
  }
483
483
  set session(e) {
484
- this.$$set({ session: e }), o();
484
+ this.$$set({ session: e }), l();
485
485
  }
486
486
  get userid() {
487
487
  return this.$$.ctx[5];
488
488
  }
489
489
  set userid(e) {
490
- this.$$set({ userid: e }), o();
490
+ this.$$set({ userid: e }), l();
491
491
  }
492
492
  get clientstyling() {
493
493
  return this.$$.ctx[6];
494
494
  }
495
495
  set clientstyling(e) {
496
- this.$$set({ clientstyling: e }), o();
496
+ this.$$set({ clientstyling: e }), l();
497
497
  }
498
498
  get clientstylingurl() {
499
499
  return this.$$.ctx[7];
500
500
  }
501
501
  set clientstylingurl(e) {
502
- this.$$set({ clientstylingurl: e }), o();
502
+ this.$$set({ clientstylingurl: e }), l();
503
503
  }
504
504
  get livecasino() {
505
505
  return this.$$.ctx[8];
506
506
  }
507
507
  set livecasino(e) {
508
- this.$$set({ livecasino: e }), o();
508
+ this.$$set({ livecasino: e }), l();
509
509
  }
510
510
  get integratedgameframemobile() {
511
511
  return this.$$.ctx[9];
512
512
  }
513
513
  set integratedgameframemobile(e) {
514
- this.$$set({ integratedgameframemobile: e }), o();
514
+ this.$$set({ integratedgameframemobile: e }), l();
515
515
  }
516
516
  get integratedgameframedesktop() {
517
517
  return this.$$.ctx[10];
518
518
  }
519
519
  set integratedgameframedesktop(e) {
520
- this.$$set({ integratedgameframedesktop: e }), o();
520
+ this.$$set({ integratedgameframedesktop: e }), l();
521
521
  }
522
522
  get gamepagemodalurl() {
523
523
  return this.$$.ctx[11];
524
524
  }
525
525
  set gamepagemodalurl(e) {
526
- this.$$set({ gamepagemodalurl: e }), o();
526
+ this.$$set({ gamepagemodalurl: e }), l();
527
527
  }
528
528
  get showgamename() {
529
529
  return this.$$.ctx[12];
530
530
  }
531
531
  set showgamename(e) {
532
- this.$$set({ showgamename: e }), o();
532
+ this.$$set({ showgamename: e }), l();
533
533
  }
534
534
  get visiblegames() {
535
535
  return this.$$.ctx[13];
536
536
  }
537
537
  set visiblegames(e) {
538
- this.$$set({ visiblegames: e }), o();
538
+ this.$$set({ visiblegames: e }), l();
539
539
  }
540
540
  get favorites() {
541
541
  return this.$$.ctx[14];
542
542
  }
543
543
  set favorites(e) {
544
- this.$$set({ favorites: e }), o();
544
+ this.$$set({ favorites: e }), l();
545
545
  }
546
546
  get translationurl() {
547
547
  return this.$$.ctx[20];
548
548
  }
549
549
  set translationurl(e) {
550
- this.$$set({ translationurl: e }), o();
550
+ this.$$set({ translationurl: e }), l();
551
551
  }
552
552
  get casinomygames() {
553
553
  return this.$$.ctx[15];
554
554
  }
555
555
  set casinomygames(e) {
556
- this.$$set({ casinomygames: e }), o();
556
+ this.$$set({ casinomygames: e }), l();
557
557
  }
558
558
  get mostplayedperiod() {
559
559
  return this.$$.ctx[21];
560
560
  }
561
561
  set mostplayedperiod(e) {
562
- this.$$set({ mostplayedperiod: e }), o();
562
+ this.$$set({ mostplayedperiod: e }), l();
563
563
  }
564
564
  get mostplayedrounds() {
565
565
  return this.$$.ctx[22];
566
566
  }
567
567
  set mostplayedrounds(e) {
568
- this.$$set({ mostplayedrounds: e }), o();
568
+ this.$$set({ mostplayedrounds: e }), l();
569
569
  }
570
570
  get fetchviaevent() {
571
571
  return this.$$.ctx[16];
572
572
  }
573
573
  set fetchviaevent(e) {
574
- this.$$set({ fetchviaevent: e }), o();
574
+ this.$$set({ fetchviaevent: e }), l();
575
575
  }
576
576
  }
577
- ne(we, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
577
+ ne(_e, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
578
578
  export {
579
- we as default
579
+ _e as default
580
580
  };