@everymatrix/casino-most-played-section-nd 1.86.26 → 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, G as te, S as se, i as ae, s as ne, f as r, 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 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-Bewb2r1U.js";
2
- function B(a, e) {
1
+ import { a as $, $ as ee, G as te, S as se, i as ae, s as ne, f as r, 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-Bewb2r1U.js";
2
+ import { g as ye } from "./CasinoGameThumbnailNd-CgZi3oOs.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 < "u") {
73
74
  }
74
75
  };
75
76
  };
76
- customElements.define = a(customElements.define), import("./CasinoGamesCategorySectionNd-A0kcIH4s.js").then(({ default: e }) => {
77
+ customElements.define = a(customElements.define), import("./CasinoGamesCategorySectionNd-dtAk40LM.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,21 +303,21 @@ 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
319
  m(m, l) {
319
- A(m, e, l), K(e, i);
320
+ D(m, e, l), Y(e, i);
320
321
  },
321
322
  p(m, l) {
322
323
  l[0] & /*$_*/
@@ -324,139 +325,140 @@ function we(a) {
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
340
  let m = i(a), l = m(a);
340
341
  return {
341
342
  c() {
342
- e = P("div"), s = P("div"), l.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), l.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
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), l.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: l = "" } = 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: C } = e, { favorites: U = "" } = e, { translationurl: k = "" } = e, { casinomygames: j = "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: le(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", l), 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]), j === "true" && (N = N.slice(0, JSON.parse(C))), 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
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, l = 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, C = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(16, k = t.translationurl), "casinomygames" in t && s(17, j = 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
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
- C,
441
441
  U,
442
- k,
443
- j,
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 se {
455
+ class Se extends se {
454
456
  constructor(e) {
455
457
  super(), ae(
456
458
  this,
457
459
  e,
458
- Ge,
459
- _e,
460
+ Pe,
461
+ Ne,
460
462
  ne,
461
463
  {
462
464
  endpoint: 0,
@@ -481,7 +483,7 @@ class ke extends se {
481
483
  mostplayedrounds: 23,
482
484
  fetchviaevent: 18
483
485
  },
484
- be,
486
+ _e,
485
487
  [-1, -1]
486
488
  );
487
489
  }
@@ -612,7 +614,7 @@ class ke extends se {
612
614
  this.$$set({ fetchviaevent: e }), r();
613
615
  }
614
616
  }
615
- te(ke, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
617
+ te(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 C
619
+ Se as C
618
620
  };