@everymatrix/casino-most-played-section-nd 1.86.27 → 1.86.29
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.
- package/components/{CasinoGameThumbnailNd-cuDYIs62.cjs → CasinoGameThumbnailNd-BWO6ZzAR.cjs} +2 -2
- package/components/{CasinoGameThumbnailNd-CUiNMO2u.js → CasinoGameThumbnailNd-CgZi3oOs.js} +115 -115
- package/components/{CasinoGameThumbnailNd-DNt3bPWO.js → CasinoGameThumbnailNd-W1Ctut9b.js} +115 -115
- package/components/{CasinoGamesCategorySectionNd-Te4Oav94.js → CasinoGamesCategorySectionNd-8hb9Mnyd.js} +481 -471
- package/components/CasinoGamesCategorySectionNd-D6qXgeyz.cjs +1 -0
- package/components/{CasinoGamesCategorySectionNd-A0kcIH4s.js → CasinoGamesCategorySectionNd-dtAk40LM.js} +416 -406
- package/components/{CasinoMostPlayedSectionNd-BjJt6Ha_.js → CasinoMostPlayedSectionNd-B66p19G2.js} +81 -79
- package/components/{CasinoMostPlayedSectionNd-Dx3zuzVd.js → CasinoMostPlayedSectionNd-DmhT9KoM.js} +109 -107
- package/components/CasinoMostPlayedSectionNd-qRVzPM1d.cjs +1 -0
- package/es2015/casino-most-played-section-nd.cjs +1 -1
- package/es2015/casino-most-played-section-nd.js +1 -1
- package/esnext/casino-most-played-section-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoGamesCategorySectionNd-c6vfwELO.cjs +0 -1
- package/components/CasinoMostPlayedSectionNd-DgaCO6Wp.cjs +0 -1
package/components/{CasinoMostPlayedSectionNd-BjJt6Ha_.js → CasinoMostPlayedSectionNd-B66p19G2.js}
RENAMED
|
@@ -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
|
|
2
|
-
|
|
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
|
|
6
|
+
function ve(a) {
|
|
6
7
|
ee.set(a);
|
|
7
8
|
}
|
|
8
|
-
const
|
|
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-
|
|
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
|
|
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
|
|
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
|
-
|
|
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 &&
|
|
306
|
+
s && A(e);
|
|
306
307
|
}
|
|
307
308
|
};
|
|
308
309
|
}
|
|
309
|
-
function
|
|
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),
|
|
317
|
+
e = P("p"), i = ce(s), L(e, "class", "SearchLoading");
|
|
317
318
|
},
|
|
318
319
|
m(m, l) {
|
|
319
|
-
|
|
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 &&
|
|
328
|
+
m && A(e);
|
|
328
329
|
}
|
|
329
330
|
};
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
+
function Ne(a) {
|
|
332
333
|
let e, s;
|
|
333
334
|
function i(g, c) {
|
|
334
335
|
return (
|
|
335
336
|
/*mostPlayedEmpty*/
|
|
336
|
-
g[20] ?
|
|
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(),
|
|
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
|
-
|
|
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:
|
|
351
|
-
o:
|
|
351
|
+
i: J,
|
|
352
|
+
o: J,
|
|
352
353
|
d(g) {
|
|
353
|
-
g &&
|
|
354
|
+
g && A(e), l.d(), a[24](null);
|
|
354
355
|
}
|
|
355
356
|
};
|
|
356
357
|
}
|
|
357
|
-
function
|
|
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:
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
let
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
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
|
-
},
|
|
389
|
-
|
|
389
|
+
}, W = () => {
|
|
390
|
+
V({
|
|
390
391
|
limit: 100,
|
|
391
|
-
device: le(
|
|
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((
|
|
397
|
-
let
|
|
398
|
-
|
|
399
|
-
}), Promise.all(o).then((
|
|
400
|
-
N =
|
|
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,
|
|
404
|
+
s(20, p = !0);
|
|
404
405
|
});
|
|
405
|
-
},
|
|
406
|
-
|
|
406
|
+
}, X = () => {
|
|
407
|
+
ve(c);
|
|
407
408
|
};
|
|
408
409
|
re(() => () => {
|
|
409
410
|
});
|
|
410
|
-
function
|
|
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,
|
|
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 &&
|
|
420
|
-
524416 &&
|
|
421
|
-
524544 &&
|
|
422
|
-
524352 &&
|
|
423
|
-
|
|
424
|
-
|
|
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
|
-
|
|
431
|
-
b,
|
|
432
|
-
v,
|
|
432
|
+
F,
|
|
433
433
|
w,
|
|
434
|
+
h,
|
|
434
435
|
_,
|
|
435
436
|
G,
|
|
436
|
-
|
|
437
|
+
k,
|
|
438
|
+
T,
|
|
437
439
|
O,
|
|
438
440
|
R,
|
|
439
|
-
T,
|
|
440
|
-
C,
|
|
441
441
|
U,
|
|
442
|
-
|
|
443
|
-
j,
|
|
442
|
+
S,
|
|
444
443
|
I,
|
|
444
|
+
b,
|
|
445
|
+
C,
|
|
446
|
+
q,
|
|
445
447
|
u,
|
|
446
|
-
|
|
448
|
+
p,
|
|
447
449
|
i,
|
|
448
|
-
|
|
450
|
+
j,
|
|
449
451
|
E,
|
|
450
|
-
|
|
452
|
+
Z
|
|
451
453
|
];
|
|
452
454
|
}
|
|
453
|
-
class
|
|
455
|
+
class Se extends se {
|
|
454
456
|
constructor(e) {
|
|
455
457
|
super(), ae(
|
|
456
458
|
this,
|
|
457
459
|
e,
|
|
458
|
-
|
|
459
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
619
|
+
Se as C
|
|
618
620
|
};
|