@everymatrix/casino-most-played-section-nd 1.86.27 → 1.86.28

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.
@@ -1,11 +1,12 @@
1
- import { a as $, $ as ee, S as te, i as se, f as l, s as ae, G as ne, b as ie, n as Y, d as L, j as A, k as K, l as P, g as M, o as oe, p as le, w as re, x as me, q as ge, u as ce, e as n, I as ue, D as de, E as fe, F as he } from "./CasinoFilter-CfmNpR8n.js";
2
- function B(a, e) {
1
+ import { a as $, $ as ee, S as te, i as se, f as r, s as ae, G as ne, b as ie, n as J, d as A, j as D, k as Y, l as P, g as L, o as oe, p as re, w as le, x as me, q as ge, u as ce, e as n, I as ue, D as de, E as fe, F as he } from "./CasinoFilter-CfmNpR8n.js";
2
+ import { g as ye } from "./CasinoGameThumbnailNd-W1Ctut9b.js";
3
+ function be(a, e) {
3
4
  $(a, e);
4
5
  }
5
- function ye(a) {
6
+ function ve(a) {
6
7
  ee.set(a);
7
8
  }
8
- const H = {
9
+ const we = {
9
10
  en: {
10
11
  noGames: "No games in most played"
11
12
  },
@@ -73,14 +74,14 @@ if (typeof window != "undefined") {
73
74
  }
74
75
  };
75
76
  };
76
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySectionNd-Te4Oav94.js").then(({ default: e }) => {
77
+ customElements.define = a(customElements.define), import("./CasinoGamesCategorySectionNd-8hb9Mnyd.js").then(({ default: e }) => {
77
78
  !customElements.get("casino-games-category-section-nd") && customElements.define("casino-games-category-section-nd", e.element);
78
79
  });
79
80
  }
80
- function be(a) {
81
+ function _e(a) {
81
82
  ie(a, "svelte-1de9den", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
82
83
  }
83
- function ve(a) {
84
+ function Ge(a) {
84
85
  let e;
85
86
  return {
86
87
  c() {
@@ -182,7 +183,7 @@ function ve(a) {
182
183
  );
183
184
  },
184
185
  m(s, i) {
185
- A(s, e, i);
186
+ D(s, e, i);
186
187
  },
187
188
  p(s, i) {
188
189
  i[0] & /*session*/
@@ -302,161 +303,162 @@ function ve(a) {
302
303
  );
303
304
  },
304
305
  d(s) {
305
- s && L(e);
306
+ s && A(e);
306
307
  }
307
308
  };
308
309
  }
309
- function we(a) {
310
+ function ke(a) {
310
311
  let e, s = (
311
312
  /*$_*/
312
313
  a[21]("noGames") + ""
313
314
  ), i;
314
315
  return {
315
316
  c() {
316
- e = P("p"), i = ce(s), M(e, "class", "SearchLoading");
317
+ e = P("p"), i = ce(s), L(e, "class", "SearchLoading");
317
318
  },
318
- m(m, r) {
319
- A(m, e, r), K(e, i);
319
+ m(m, l) {
320
+ D(m, e, l), Y(e, i);
320
321
  },
321
- p(m, r) {
322
- r[0] & /*$_*/
322
+ p(m, l) {
323
+ l[0] & /*$_*/
323
324
  2097152 && s !== (s = /*$_*/
324
325
  m[21]("noGames") + "") && ge(i, s);
325
326
  },
326
327
  d(m) {
327
- m && L(e);
328
+ m && A(e);
328
329
  }
329
330
  };
330
331
  }
331
- function _e(a) {
332
+ function Ne(a) {
332
333
  let e, s;
333
334
  function i(g, c) {
334
335
  return (
335
336
  /*mostPlayedEmpty*/
336
- g[20] ? we : ve
337
+ g[20] ? ke : Ge
337
338
  );
338
339
  }
339
- let m = i(a), r = m(a);
340
+ let m = i(a), l = m(a);
340
341
  return {
341
342
  c() {
342
- e = P("div"), s = P("div"), r.c(), M(s, "class", "casino-most-played-section"), M(e, "class", "CasinoGamesCategorySectionContainer");
343
+ e = P("div"), s = P("div"), l.c(), L(s, "class", "casino-most-played-section"), L(e, "class", "CasinoGamesCategorySectionContainer");
343
344
  },
344
345
  m(g, c) {
345
- A(g, e, c), K(e, s), r.m(s, null), a[24](e);
346
+ D(g, e, c), Y(e, s), l.m(s, null), a[24](e);
346
347
  },
347
348
  p(g, c) {
348
- m === (m = i(g)) && r ? r.p(g, c) : (r.d(1), r = m(g), r && (r.c(), r.m(s, null)));
349
+ m === (m = i(g)) && l ? l.p(g, c) : (l.d(1), l = m(g), l && (l.c(), l.m(s, null)));
349
350
  },
350
- i: Y,
351
- o: Y,
351
+ i: J,
352
+ o: J,
352
353
  d(g) {
353
- g && L(e), r.d(), a[24](null);
354
+ g && A(e), l.d(), a[24](null);
354
355
  }
355
356
  };
356
357
  }
357
- function Ge(a, e, s) {
358
+ function Pe(a, e, s) {
358
359
  let i;
359
360
  oe(a, ue, (t) => s(21, i = t));
360
- let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: w = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: G = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: O = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: j } = e, { favorites: U = "" } = e, { translationurl: k = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: I = "true" } = e, Q = window.navigator.userAgent;
361
- const V = () => {
362
- fetch(k).then((o) => o.json()).then((o) => {
363
- Object.keys(o).forEach((d) => {
364
- B(d, o[d]);
365
- });
361
+ let { endpoint: m = "" } = e, { datasource: l = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: F = "" } = e, { userid: w = "" } = e, { mbsource: h } = e, { clientstyling: _ = "" } = e, { clientstylingurl: G = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: T = "false" } = e, { integratedgameframedesktop: O = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: U = "" } = e, { visiblegames: S } = e, { favorites: I = "" } = e, { translationurl: b = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: E = "10" } = e, { fetchviaevent: q = "true" } = e, H = window.navigator.userAgent, K;
362
+ const M = (t) => {
363
+ Object.keys(t).forEach((o) => {
364
+ be(o, t[o]);
365
+ });
366
+ }, Q = () => {
367
+ fetch(b).then((o) => o.json()).then((o) => {
368
+ M(o);
366
369
  }).catch((o) => {
367
370
  console.log(o);
368
371
  });
369
372
  };
370
- Object.keys(H).forEach((t) => {
371
- B(t, H[t]);
372
- });
373
- let N = [], q, z = !1, u;
374
- const W = (t) => {
375
- let o = new URL(`${m}/v1/player/${b}/games/most-played`);
376
- 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", S);
377
- let d = t.device;
378
- 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), q = G ? o : o.href, new Promise((f, y) => {
379
- fetch(q).then((h) => h.json()).then((h) => {
380
- h.items = h.items.filter((x) => {
381
- let J = !0;
382
- return x.gameCode == "OddsMatrix2" && (h.count--, J = !1), J;
383
- }), f(h);
384
- }).catch((h) => {
385
- console.error(h), y(h);
373
+ M(we);
374
+ let N = [], z, p = !1, u;
375
+ const V = (t) => {
376
+ let o = new URL(`${m}/v1/player/${w}/games/most-played`);
377
+ 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);
378
+ let y = t.device;
379
+ return y ? y === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), z = k ? o : o.href, new Promise((d, v) => {
380
+ fetch(z).then((f) => f.json()).then((f) => {
381
+ f.items = f.items.filter((x) => {
382
+ let B = !0;
383
+ return x.gameCode == "OddsMatrix2" && (f.count--, B = !1), B;
384
+ }), d(f);
385
+ }).catch((f) => {
386
+ console.error(f), v(f);
386
387
  });
387
388
  });
388
- }, X = () => {
389
- W({
389
+ }, W = () => {
390
+ V({
390
391
  limit: 100,
391
- device: re(Q),
392
+ device: le(H),
392
393
  rounds: E
393
394
  }).then((t) => {
394
395
  if (t.count > 0) {
395
396
  let o = [];
396
- t.items.forEach((d) => {
397
- let f = new URL(`${m}/v1/casino/games/${d.gameId}`);
398
- f.searchParams.append("datasource", r), G ? o.push(fetch(f.href).then((y) => y.json())) : o.push(fetch(f.href).then((y) => y.json()));
399
- }), Promise.all(o).then((d) => {
400
- N = d.filter((f) => !("error" in f)).map((f) => f[0]), C === "true" && (N = N.slice(0, JSON.parse(j))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
397
+ t.items.forEach((y) => {
398
+ let d = new URL(`${m}/v1/casino/games/${y.gameId}`);
399
+ d.searchParams.append("datasource", l), k ? o.push(fetch(d.href).then((v) => v.json())) : o.push(fetch(d.href).then((v) => v.json()));
400
+ }), Promise.all(o).then((y) => {
401
+ N = y.filter((d) => !("error" in d)).map((d) => d[0]), C === "true" && (N = N.slice(0, JSON.parse(S))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
401
402
  });
402
403
  } else
403
- s(20, z = !0);
404
+ s(20, p = !0);
404
405
  });
405
- }, Z = () => {
406
- ye(c);
406
+ }, X = () => {
407
+ ve(c);
407
408
  };
408
- le(() => () => {
409
+ re(() => () => {
409
410
  });
410
- function p(t) {
411
+ function Z(t) {
411
412
  me[t ? "unshift" : "push"](() => {
412
413
  u = t, s(19, u);
413
414
  });
414
415
  }
415
416
  return a.$$set = (t) => {
416
- "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, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, w = t.clientstyling), "clientstylingurl" in t && s(8, _ = t.clientstylingurl), "livecasino" in t && s(9, G = t.livecasino), "integratedgameframemobile" in t && s(10, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, O = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, j = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(16, k = t.translationurl), "casinomygames" in t && s(17, C = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(18, I = t.fetchviaevent);
417
+ "endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, l = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, F = t.session), "userid" in t && s(5, w = t.userid), "mbsource" in t && s(6, h = t.mbsource), "clientstyling" in t && s(7, _ = t.clientstyling), "clientstylingurl" in t && s(8, G = t.clientstylingurl), "livecasino" in t && s(9, k = t.livecasino), "integratedgameframemobile" in t && s(10, T = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, O = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, U = t.showgamename), "visiblegames" in t && s(14, S = t.visiblegames), "favorites" in t && s(15, I = t.favorites), "translationurl" in t && s(16, b = t.translationurl), "casinomygames" in t && s(17, C = t.casinomygames), "mostplayedperiod" in t && s(22, j = t.mostplayedperiod), "mostplayedrounds" in t && s(23, E = t.mostplayedrounds), "fetchviaevent" in t && s(18, q = t.fetchviaevent);
417
418
  }, a.$$.update = () => {
418
419
  a.$$.dirty[0] & /*endpoint, userid, lang*/
419
- 41 && m && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
420
- 524416 && w && u && de(u, w), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
421
- 524544 && _ && u && fe(u, _), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
422
- 524352 && v && u && he(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
423
- 65536 && k && V(), a.$$.dirty[0] & /*lang*/
424
- 8 && c && Z();
420
+ 41 && m && w && c && W(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
421
+ 524416 && _ && u && de(u, _), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
422
+ 524544 && G && u && fe(u, G), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
423
+ 524352 && h && u && he(u, `${h}.Style`), a.$$.dirty[0] & /*mbsource, translationurl*/
424
+ 65600 && h && !b && ye(`${h}.Translation`, K, M), a.$$.dirty[0] & /*translationurl*/
425
+ 65536 && b && Q(), a.$$.dirty[0] & /*lang*/
426
+ 8 && c && X();
425
427
  }, [
426
428
  m,
427
- r,
429
+ l,
428
430
  g,
429
431
  c,
430
- D,
431
- b,
432
- v,
432
+ F,
433
433
  w,
434
+ h,
434
435
  _,
435
436
  G,
436
- F,
437
+ k,
438
+ T,
437
439
  O,
438
440
  R,
439
- T,
440
- j,
441
441
  U,
442
- k,
443
- C,
442
+ S,
444
443
  I,
444
+ b,
445
+ C,
446
+ q,
445
447
  u,
446
- z,
448
+ p,
447
449
  i,
448
- S,
450
+ j,
449
451
  E,
450
- p
452
+ Z
451
453
  ];
452
454
  }
453
- class ke extends te {
455
+ class Se extends te {
454
456
  constructor(e) {
455
457
  super(), se(
456
458
  this,
457
459
  e,
458
- Ge,
459
- _e,
460
+ Pe,
461
+ Ne,
460
462
  ae,
461
463
  {
462
464
  endpoint: 0,
@@ -481,7 +483,7 @@ class ke extends te {
481
483
  mostplayedrounds: 23,
482
484
  fetchviaevent: 18
483
485
  },
484
- be,
486
+ _e,
485
487
  [-1, -1]
486
488
  );
487
489
  }
@@ -489,130 +491,130 @@ class ke extends te {
489
491
  return this.$$.ctx[0];
490
492
  }
491
493
  set endpoint(e) {
492
- this.$$set({ endpoint: e }), l();
494
+ this.$$set({ endpoint: e }), r();
493
495
  }
494
496
  get datasource() {
495
497
  return this.$$.ctx[1];
496
498
  }
497
499
  set datasource(e) {
498
- this.$$set({ datasource: e }), l();
500
+ this.$$set({ datasource: e }), r();
499
501
  }
500
502
  get currency() {
501
503
  return this.$$.ctx[2];
502
504
  }
503
505
  set currency(e) {
504
- this.$$set({ currency: e }), l();
506
+ this.$$set({ currency: e }), r();
505
507
  }
506
508
  get lang() {
507
509
  return this.$$.ctx[3];
508
510
  }
509
511
  set lang(e) {
510
- this.$$set({ lang: e }), l();
512
+ this.$$set({ lang: e }), r();
511
513
  }
512
514
  get session() {
513
515
  return this.$$.ctx[4];
514
516
  }
515
517
  set session(e) {
516
- this.$$set({ session: e }), l();
518
+ this.$$set({ session: e }), r();
517
519
  }
518
520
  get userid() {
519
521
  return this.$$.ctx[5];
520
522
  }
521
523
  set userid(e) {
522
- this.$$set({ userid: e }), l();
524
+ this.$$set({ userid: e }), r();
523
525
  }
524
526
  get mbsource() {
525
527
  return this.$$.ctx[6];
526
528
  }
527
529
  set mbsource(e) {
528
- this.$$set({ mbsource: e }), l();
530
+ this.$$set({ mbsource: e }), r();
529
531
  }
530
532
  get clientstyling() {
531
533
  return this.$$.ctx[7];
532
534
  }
533
535
  set clientstyling(e) {
534
- this.$$set({ clientstyling: e }), l();
536
+ this.$$set({ clientstyling: e }), r();
535
537
  }
536
538
  get clientstylingurl() {
537
539
  return this.$$.ctx[8];
538
540
  }
539
541
  set clientstylingurl(e) {
540
- this.$$set({ clientstylingurl: e }), l();
542
+ this.$$set({ clientstylingurl: e }), r();
541
543
  }
542
544
  get livecasino() {
543
545
  return this.$$.ctx[9];
544
546
  }
545
547
  set livecasino(e) {
546
- this.$$set({ livecasino: e }), l();
548
+ this.$$set({ livecasino: e }), r();
547
549
  }
548
550
  get integratedgameframemobile() {
549
551
  return this.$$.ctx[10];
550
552
  }
551
553
  set integratedgameframemobile(e) {
552
- this.$$set({ integratedgameframemobile: e }), l();
554
+ this.$$set({ integratedgameframemobile: e }), r();
553
555
  }
554
556
  get integratedgameframedesktop() {
555
557
  return this.$$.ctx[11];
556
558
  }
557
559
  set integratedgameframedesktop(e) {
558
- this.$$set({ integratedgameframedesktop: e }), l();
560
+ this.$$set({ integratedgameframedesktop: e }), r();
559
561
  }
560
562
  get gamepagemodalurl() {
561
563
  return this.$$.ctx[12];
562
564
  }
563
565
  set gamepagemodalurl(e) {
564
- this.$$set({ gamepagemodalurl: e }), l();
566
+ this.$$set({ gamepagemodalurl: e }), r();
565
567
  }
566
568
  get showgamename() {
567
569
  return this.$$.ctx[13];
568
570
  }
569
571
  set showgamename(e) {
570
- this.$$set({ showgamename: e }), l();
572
+ this.$$set({ showgamename: e }), r();
571
573
  }
572
574
  get visiblegames() {
573
575
  return this.$$.ctx[14];
574
576
  }
575
577
  set visiblegames(e) {
576
- this.$$set({ visiblegames: e }), l();
578
+ this.$$set({ visiblegames: e }), r();
577
579
  }
578
580
  get favorites() {
579
581
  return this.$$.ctx[15];
580
582
  }
581
583
  set favorites(e) {
582
- this.$$set({ favorites: e }), l();
584
+ this.$$set({ favorites: e }), r();
583
585
  }
584
586
  get translationurl() {
585
587
  return this.$$.ctx[16];
586
588
  }
587
589
  set translationurl(e) {
588
- this.$$set({ translationurl: e }), l();
590
+ this.$$set({ translationurl: e }), r();
589
591
  }
590
592
  get casinomygames() {
591
593
  return this.$$.ctx[17];
592
594
  }
593
595
  set casinomygames(e) {
594
- this.$$set({ casinomygames: e }), l();
596
+ this.$$set({ casinomygames: e }), r();
595
597
  }
596
598
  get mostplayedperiod() {
597
599
  return this.$$.ctx[22];
598
600
  }
599
601
  set mostplayedperiod(e) {
600
- this.$$set({ mostplayedperiod: e }), l();
602
+ this.$$set({ mostplayedperiod: e }), r();
601
603
  }
602
604
  get mostplayedrounds() {
603
605
  return this.$$.ctx[23];
604
606
  }
605
607
  set mostplayedrounds(e) {
606
- this.$$set({ mostplayedrounds: e }), l();
608
+ this.$$set({ mostplayedrounds: e }), r();
607
609
  }
608
610
  get fetchviaevent() {
609
611
  return this.$$.ctx[18];
610
612
  }
611
613
  set fetchviaevent(e) {
612
- this.$$set({ fetchviaevent: e }), l();
614
+ this.$$set({ fetchviaevent: e }), r();
613
615
  }
614
616
  }
615
- ne(ke, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
617
+ ne(Se, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
616
618
  export {
617
- ke as default
619
+ Se as default
618
620
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-kyZEUL_7.cjs"),Q=require("./CasinoGameThumbnailNd-BWO6ZzAR.cjs");function V(n,e){t.addMessages(n,e)}function W(n){t.$locale.set(n)}const X={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};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("./CasinoGamesCategorySectionNd-D6qXgeyz.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section-nd")&&customElements.define("casino-games-category-section-nd",e.element)})}function Z(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function x(n){let e;return{c(){e=t.element("casino-games-category-section-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[15]),t.set_custom_element_data(e,"fetchviaevent",n[18]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),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[13]),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[16]),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[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]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&262144&&t.set_custom_element_data(e,"fetchviaevent",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),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]&65536&&t.set_custom_element_data(e,"translationurl",a[16]),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]&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 $(n){let e,a=n[21]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&2097152&&a!==(a=l[21]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function ee(n){let e,a;function i(r,u){return r[20]?$:x}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),o.m(a,null),n[24](e)},p(r,u){l===(l=i(r))&&o?o.p(r,u):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function te(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:M=""}=e,{userid:b=""}=e,{mbsource:f}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{livecasino:G="false"}=e,{integratedgameframemobile:E="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:T="false"}=e,{showgamename:A=""}=e,{visiblegames:k}=e,{favorites:D=""}=e,{translationurl:h=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:S="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:F="true"}=e,p=window.navigator.userAgent,z;const j=s=>{Object.keys(s).forEach(m=>{V(m,s[m])})},I=()=>{fetch(h).then(m=>m.json()).then(m=>{j(m)}).catch(m=>{console.log(m)})};j(X);let N=[],O,q=!1,c;const B=s=>{let m=new URL(`${l}/v1/player/${b}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",S);let _=s.device;return _?_==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),O=G?m:m.href,new Promise((d,y)=>{fetch(O).then(g=>g.json()).then(g=>{g.items=g.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(g.count--,R=!1),R}),d(g)}).catch(g=>{console.error(g),y(g)})})},J=()=>{B({limit:100,device:t.getDevice(p),rounds:C}).then(s=>{if(s.count>0){let m=[];s.items.forEach(_=>{let d=new URL(`${l}/v1/casino/games/${_.gameId}`);d.searchParams.append("datasource",o),G?m.push(fetch(d.href).then(y=>y.json())):m.push(fetch(d.href).then(y=>y.json()))}),Promise.all(m).then(_=>{N=_.filter(d=>!("error"in d)).map(d=>d[0]),P==="true"&&(N=N.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:N},window.location.href)})}else a(20,q=!0)})},Y=()=>{W(u)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(19,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,M=s.session),"userid"in s&&a(5,b=s.userid),"mbsource"in s&&a(6,f=s.mbsource),"clientstyling"in s&&a(7,v=s.clientstyling),"clientstylingurl"in s&&a(8,w=s.clientstylingurl),"livecasino"in s&&a(9,G=s.livecasino),"integratedgameframemobile"in s&&a(10,E=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,T=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"translationurl"in s&&a(16,h=s.translationurl),"casinomygames"in s&&a(17,P=s.casinomygames),"mostplayedperiod"in s&&a(22,S=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,C=s.mostplayedrounds),"fetchviaevent"in s&&a(18,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&b&&u&&J(),n.$$.dirty[0]&524416&&v&&c&&t.setClientStyling(c,v),n.$$.dirty[0]&524544&&w&&c&&t.setClientStylingURL(c,w),n.$$.dirty[0]&524352&&f&&c&&t.setStreamStyling(c,`${f}.Style`),n.$$.dirty[0]&65600&&f&&!h&&Q.getStreamTranslations(`${f}.Translation`,z,j),n.$$.dirty[0]&65536&&h&&I(),n.$$.dirty[0]&8&&u&&Y()},[l,o,r,u,M,b,f,v,w,G,E,L,T,A,k,D,h,P,F,c,q,i,S,C,H]}class U extends t.SvelteComponent{constructor(e){super(),t.init(this,e,te,ee,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:16,casinomygames:17,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:18},Z,[-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 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 translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds: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:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSectionNd-DgaCO6Wp.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section-nd")&&customElements.define("casino-most-played-section-nd",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoMostPlayedSectionNd-qRVzPM1d.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section-nd")&&customElements.define("casino-most-played-section-nd",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSectionNd-Dx3zuzVd.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSectionNd-DmhT9KoM.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-most-played-section-nd") && customElements.define("casino-most-played-section-nd", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoMostPlayedSectionNd-BjJt6Ha_.js";
1
+ import { C as s } from "../components/CasinoMostPlayedSectionNd-B66p19G2.js";
2
2
  function o(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-most-played-section-nd",
3
- "version": "1.86.27",
3
+ "version": "1.86.28",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-most-played-section-nd.cjs",
6
6
  "module": "esnext/casino-most-played-section-nd.js",