@everymatrix/casino-most-played-section 1.66.0 → 1.66.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.
- package/components/{CasinoGamesCategorySection-DzlgMDxz.cjs → CasinoGamesCategorySection-BCeh01vB.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-C0WDmDjO.js → CasinoGamesCategorySection-DtM-qLXG.js} +85 -81
- package/components/{CasinoGamesCategorySection-1AF6bS-v.js → CasinoGamesCategorySection-fgHQUZ4F.js} +86 -82
- package/components/{CasinoMostPlayedSection-2J65I1-u.js → CasinoMostPlayedSection-Bywnxo_6.js} +1 -1
- package/components/{CasinoMostPlayedSection-D-5n1d4y.cjs → CasinoMostPlayedSection-CcSJLqHm.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CdcxLKU9.js → CasinoMostPlayedSection-DkjX_LCw.js} +1 -1
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/esnext/casino-most-played-section.js +1 -1
- package/package.json +1 -1
package/components/{CasinoGamesCategorySection-1AF6bS-v.js → CasinoGamesCategorySection-fgHQUZ4F.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as Oa, $ as Ba, S as Ha, i as Va, f as
|
1
|
+
import { a as Oa, $ as Ba, S as Ha, i as Va, f as z, s as qa, F as Wa, b as Ya, n as _e, d as y, j as S, l as G, h as d, p as Ja, I as Ka, q as Xa, J as Ee, x as oe, u as X, k, m as W, v as pe, w as Za, g as D, o as T, y as se, K as _a, e as t, L as pa, z as Qa, r as xa, B as $, G as $a, C as ei, D as ai, E as ii } from "./CasinoFilter-CZl1cztJ.js";
|
2
2
|
import { h as Ne } from "./CasinoGameThumbnail-BS8fymkb.js";
|
3
3
|
function $e(i, e) {
|
4
4
|
Oa(i, e);
|
@@ -573,7 +573,7 @@ function oa(i) {
|
|
573
573
|
/*$_*/
|
574
574
|
i[43]("noFavoritesTitle") + ""
|
575
575
|
), E, v, g;
|
576
|
-
function c(b,
|
576
|
+
function c(b, H) {
|
577
577
|
return pe(
|
578
578
|
/*userAgent*/
|
579
579
|
b[44]
|
@@ -587,13 +587,13 @@ function oa(i) {
|
|
587
587
|
i[44]
|
588
588
|
) ? "NoFavoriteGamesMobile" : ""));
|
589
589
|
},
|
590
|
-
m(b,
|
591
|
-
S(b, e,
|
590
|
+
m(b, H) {
|
591
|
+
S(b, e, H), k(e, a), k(a, n), k(a, o), k(a, s), k(a, r), k(a, m), k(a, u), k(a, f), k(e, h), k(e, p), k(p, E), k(e, v), U.m(e, null), k(e, g);
|
592
592
|
},
|
593
|
-
p(b,
|
594
|
-
|
593
|
+
p(b, H) {
|
594
|
+
H[1] & /*$_*/
|
595
595
|
4096 && F !== (F = /*$_*/
|
596
|
-
b[43]("noFavoritesTitle") + "") && D(E, F), U.p(b,
|
596
|
+
b[43]("noFavoritesTitle") + "") && D(E, F), U.p(b, H);
|
597
597
|
},
|
598
598
|
d(b) {
|
599
599
|
b && y(e), U.d();
|
@@ -2505,7 +2505,7 @@ let ji = 0;
|
|
2505
2505
|
function Ri(i, e, a) {
|
2506
2506
|
let n;
|
2507
2507
|
Ja(i, $a, (l) => a(43, n = l));
|
2508
|
-
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: u = "" } = e, { favorites: f = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: p = "" } = e, { translationurl: F = "" } = e, { currency: E = "" } = e, { categoryid: v = "" } = e, { showgamename: g = "" } = e, { livecasino: c = "false" } = e, { gamepagemodalurl: ne = "true" } = e, { integratedgameframedesktop: U = "false" } = e, { integratedgameframemobile: b = "false" } = e, { casinomygames:
|
2508
|
+
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: u = "" } = e, { favorites: f = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: p = "" } = e, { translationurl: F = "" } = e, { currency: E = "" } = e, { categoryid: v = "" } = e, { showgamename: g = "" } = e, { livecasino: c = "false" } = e, { gamepagemodalurl: ne = "true" } = e, { integratedgameframedesktop: U = "false" } = e, { integratedgameframemobile: b = "false" } = e, { casinomygames: H = "false" } = e, { addfilterselector: ve = "false" } = e, { addsortingselector: be = "false" } = e, { filterbylogo: Ye = "" } = e, { casinogamesgridslider: Je = "false" } = e, { fetchviaevent: le = "false" } = e, { showallpage: Ie = "casino" } = e, { actionevent: je = "CategoryChange" } = e, { displayedgamecount: we = "10" } = e, { showallbuttongamescount: ke = "10" } = e, { mbsource: Re } = e, { lobbyscreen: Le = "true" } = e, { usesinglevendorfilter: ye = "false" } = e, { visiblegames: Ae = "10" } = e, Z = !0, Te = !1, Se, Fe, Y = !0, Ke = window.navigator.userAgent, A, M = [], Q = !0, ae = 40, J = !1, Ge = !1, re = !1, Pe = !1, De = !0, me = !1, ue, Ue, ce, fe = !1, q, Ce = !1, ge = new Array(1e4), de = {}, Oe = "", ie = "", Me, Be, R, O = [], ze = new AbortController(), te = { items: [], count: 0, name: "" };
|
2509
2509
|
const va = () => {
|
2510
2510
|
fetch(F).then((_) => _.json()).then((_) => {
|
2511
2511
|
Object.keys(_).forEach((w) => {
|
@@ -2534,8 +2534,8 @@ function Ri(i, e, a) {
|
|
2534
2534
|
return new Promise((j, I) => {
|
2535
2535
|
fetch(w, N).then((C) => C.json()).then((C) => {
|
2536
2536
|
if (a(25, Z = !1), R = [], C) {
|
2537
|
-
C.items.forEach((
|
2538
|
-
|
2537
|
+
C.items.forEach((V) => {
|
2538
|
+
V.gameModel && (R.push(V), O.includes(V.id) || O.push(V.id));
|
2539
2539
|
});
|
2540
2540
|
const L = Ee(R)?.length;
|
2541
2541
|
window.postMessage({
|
@@ -2544,11 +2544,11 @@ function Ri(i, e, a) {
|
|
2544
2544
|
});
|
2545
2545
|
} else
|
2546
2546
|
R = [];
|
2547
|
-
v === "FAVORITES" && We(R),
|
2548
|
-
L.isFavorite =
|
2547
|
+
v === "FAVORITES" && We(R), M.forEach((L) => {
|
2548
|
+
L.isFavorite = B(L.id);
|
2549
2549
|
});
|
2550
|
-
let K =
|
2551
|
-
a(29,
|
2550
|
+
let K = M;
|
2551
|
+
a(29, M = void 0), a(29, M = K), j(R);
|
2552
2552
|
}).catch((C) => {
|
2553
2553
|
console.error(C), I(C);
|
2554
2554
|
});
|
@@ -2582,12 +2582,12 @@ function Ri(i, e, a) {
|
|
2582
2582
|
const j = ze.signal;
|
2583
2583
|
a(25, Z = !0);
|
2584
2584
|
let I = "", C = "", K = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), L = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
2585
|
-
const
|
2585
|
+
const V = ye === "true" ? "*" : l;
|
2586
2586
|
return (l.match(/\$/g) || []).length > 1 ? (I = l.split("$").slice(0, 2).join("$"), C = new URL(`${o}/v1/casino/groups/${s}/${I}/subGroups`)) : C = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((Da, Ua) => {
|
2587
|
-
if (C.searchParams.delete("pagination"), C.searchParams.append("expand", "games(vendor)"), C.searchParams.append("fields", "id,name,games"), C.searchParams.append("platform", Za(Ke)), C.searchParams.append("pagination", `games(offset=${_},limit=${w})`), C.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), K && K[
|
2587
|
+
if (C.searchParams.delete("pagination"), C.searchParams.append("expand", "games(vendor)"), C.searchParams.append("fields", "id,name,games"), C.searchParams.append("platform", Za(Ke)), C.searchParams.append("pagination", `games(offset=${_},limit=${w})`), C.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), K && K[V]?.length)
|
2588
2588
|
if (ye === "true" || Y === !1 && fe === !1) {
|
2589
2589
|
let P = "";
|
2590
|
-
a(34, Pe = !0), K[
|
2590
|
+
a(34, Pe = !0), K[V].forEach((x) => {
|
2591
2591
|
P = P + (P ? `,games(vendor(id=${x}))` : `games(vendor(id=${x}))`);
|
2592
2592
|
}), C.searchParams.append("filter", `${P}`);
|
2593
2593
|
} else
|
@@ -2597,7 +2597,7 @@ function Ri(i, e, a) {
|
|
2597
2597
|
if (x.id == l)
|
2598
2598
|
return x;
|
2599
2599
|
})[0]), a(54, Be = !0), a(26, Te = !1), Ue = P.games.total, N && P.games.items.forEach((x) => {
|
2600
|
-
x.isFavorite =
|
2600
|
+
x.isFavorite = B(x.id);
|
2601
2601
|
}), a(36, me = !0), Da(P));
|
2602
2602
|
}).catch((P) => {
|
2603
2603
|
P.name !== "AbortError" && (a(26, Te = !0), console.error(P), Ua(P));
|
@@ -2614,19 +2614,19 @@ function Ri(i, e, a) {
|
|
2614
2614
|
N(I);
|
2615
2615
|
});
|
2616
2616
|
}), wa = () => {
|
2617
|
-
const l =
|
2617
|
+
const l = q.getRootNode().host;
|
2618
2618
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
2619
2619
|
}, ka = (l, _, w) => {
|
2620
2620
|
l !== "" && (a(31, J = !1), a(27, Y = !0), a(1, ve = "false"), a(2, be = "false"), a(33, re = !1), Ce = !1, a(30, Q = +_ > +w), he(l, 0, +_).then((N) => {
|
2621
|
-
a(28, A = N), a(29,
|
2622
|
-
j.isFavorite =
|
2621
|
+
a(28, A = N), a(29, M = A.games.items), M && M.forEach((j) => {
|
2622
|
+
j.isFavorite = B(j.id);
|
2623
2623
|
});
|
2624
2624
|
}));
|
2625
2625
|
}, Ve = (l) => {
|
2626
2626
|
if (l.data)
|
2627
2627
|
switch (l.data.type) {
|
2628
2628
|
case "MostPlayedData":
|
2629
|
-
v == "MOSTPLAYED" && (a(31, J = !1), a(27, Y = !1), a(30, Q = !1), a(29,
|
2629
|
+
v == "MOSTPLAYED" && (a(31, J = !1), a(27, Y = !1), a(30, Q = !1), a(29, M = l.data.mostPlayedGames), a(28, A = {
|
2630
2630
|
id: "MOSTPLAYED",
|
2631
2631
|
name: "Most Played Games",
|
2632
2632
|
games: {
|
@@ -2634,10 +2634,12 @@ function Ri(i, e, a) {
|
|
2634
2634
|
total: l.data.mostPlayedGames.length,
|
2635
2635
|
items: l.data.mostPlayedGames
|
2636
2636
|
}
|
2637
|
+
}), M && M.forEach((_) => {
|
2638
|
+
_.isFavorite = B(_.id);
|
2637
2639
|
})), a(25, Z = !1);
|
2638
2640
|
break;
|
2639
2641
|
case "LastPlayedData":
|
2640
|
-
v == "LASTPLAYED" && (a(31, J = !1), a(27, Y = !1), a(30, Q = !1), a(29,
|
2642
|
+
v == "LASTPLAYED" && (a(31, J = !1), a(27, Y = !1), a(30, Q = !1), a(29, M = l.data.lastPlayedGames), a(28, A = {
|
2641
2643
|
id: "LASTPLAYED",
|
2642
2644
|
name: "Last Played Games",
|
2643
2645
|
games: {
|
@@ -2645,25 +2647,27 @@ function Ri(i, e, a) {
|
|
2645
2647
|
total: l.data.lastPlayedGames.length,
|
2646
2648
|
items: l.data.lastPlayedGames
|
2647
2649
|
}
|
2650
|
+
}), M && M.forEach((_) => {
|
2651
|
+
_.isFavorite = B(_.id);
|
2648
2652
|
})), a(25, Z = !1);
|
2649
2653
|
break;
|
2650
2654
|
case "RecentSearchData":
|
2651
|
-
a(31, J = !0), a(32, Ge = !0), l.data.searchData.length > 0 ? (a(29,
|
2652
|
-
_.isFavorite =
|
2653
|
-
})) : (a(29,
|
2655
|
+
a(31, J = !0), a(32, Ge = !0), l.data.searchData.length > 0 ? (a(29, M = l.data.searchData), a(35, De = !0), M && M.forEach((_) => {
|
2656
|
+
_.isFavorite = B(_.id);
|
2657
|
+
})) : (a(29, M = []), a(35, De = !1));
|
2654
2658
|
break;
|
2655
2659
|
case "OutOfRecentSearches":
|
2656
2660
|
a(31, J = !1), a(32, Ge = !1);
|
2657
2661
|
break;
|
2658
2662
|
case "SearchData":
|
2659
|
-
a(31, J = !0), a(32, Ge = !1), a(29,
|
2660
|
-
_.isFavorite =
|
2663
|
+
a(31, J = !0), a(32, Ge = !1), a(29, M = l.data.searchData.items || []), a(33, re = !0), l.data.receivedFavoriteResults && (R = l.data.receivedFavoriteResults.items), M && M.forEach((_) => {
|
2664
|
+
_.isFavorite = B(_.id);
|
2661
2665
|
});
|
2662
2666
|
break;
|
2663
2667
|
case `CategoryData_${v}`:
|
2664
2668
|
a(31, J = !1), a(27, Y = !0), a(1, ve = "false"), a(2, be = "false"), a(33, re = !1), Ce = !1, he(l.data.categoryId, 0, l.data.visiblegames).then((_) => {
|
2665
|
-
a(28, A = _), a(29,
|
2666
|
-
w.isFavorite =
|
2669
|
+
a(28, A = _), a(29, M = A.games.items), a(30, Q = !!(Ue <= l.data.visiblegames && Y)), M && M.forEach((w) => {
|
2670
|
+
w.isFavorite = B(w.id);
|
2667
2671
|
});
|
2668
2672
|
});
|
2669
2673
|
break;
|
@@ -2672,7 +2676,7 @@ function Ri(i, e, a) {
|
|
2672
2676
|
break;
|
2673
2677
|
case "ApplySorter":
|
2674
2678
|
a(0, v = l.data.itemId), ie = l.data.sortBy, he(v, 0, ae).then((_) => {
|
2675
|
-
a(28, A = _), a(29,
|
2679
|
+
a(28, A = _), a(29, M = A.games.items), a(30, Q = !1);
|
2676
2680
|
});
|
2677
2681
|
break;
|
2678
2682
|
case "CategoryUpdate":
|
@@ -2692,10 +2696,10 @@ function Ri(i, e, a) {
|
|
2692
2696
|
break;
|
2693
2697
|
}
|
2694
2698
|
}, Qe = (l) => {
|
2695
|
-
a(31, J = !1), a(27, Y = Le === "true"), a(33, re = !1), Ce = !0, a(36, me = !1), a(0, v = l), v !== "MOSTPLAYED" && a(30, Q = !1),
|
2699
|
+
a(31, J = !1), a(27, Y = Le === "true"), a(33, re = !1), Ce = !0, a(36, me = !1), a(0, v = l), v !== "MOSTPLAYED" && a(30, Q = !1), H !== "true" && (!R && m && He(m, u), he(v, 0, ae).then((_) => {
|
2696
2700
|
a(28, A = _), A?.games?.items.forEach((w) => {
|
2697
|
-
w.isFavorite =
|
2698
|
-
}), a(29,
|
2701
|
+
w.isFavorite = B(w.id);
|
2702
|
+
}), a(29, M = A?.games.items);
|
2699
2703
|
}).finally(
|
2700
2704
|
/*// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
2701
2705
|
if (shownCategoryData?.length < 10 && e.data.origin ==! 'filters') {
|
@@ -2716,10 +2720,10 @@ function Ri(i, e, a) {
|
|
2716
2720
|
}
|
2717
2721
|
));
|
2718
2722
|
}, ya = () => {
|
2719
|
-
A && (a(29,
|
2720
|
-
l.isFavorite =
|
2723
|
+
A && (a(29, M = A.games.items), M.forEach((l) => {
|
2724
|
+
l.isFavorite = B(l.id);
|
2721
2725
|
}));
|
2722
|
-
},
|
2726
|
+
}, B = (l) => R?.some((_) => _.id === l) ?? !1;
|
2723
2727
|
let Sa = async (l, _, w) => {
|
2724
2728
|
await qe(l, _), O.includes(w) || O.push(w);
|
2725
2729
|
let j = {
|
@@ -2757,7 +2761,7 @@ function Ri(i, e, a) {
|
|
2757
2761
|
R = N.items, le ? (R.forEach((I) => {
|
2758
2762
|
O.includes(I.id) || O.push(I.id);
|
2759
2763
|
}), ya()) : R.forEach((I) => {
|
2760
|
-
I.isFavorite =
|
2764
|
+
I.isFavorite = B(I.id);
|
2761
2765
|
});
|
2762
2766
|
const j = Ee(R)?.length;
|
2763
2767
|
v === "FAVORITES" && (window.postMessage({
|
@@ -2775,8 +2779,8 @@ function Ri(i, e, a) {
|
|
2775
2779
|
}), a(42, te.items = Ee(_, te.items), te), a(42, te.name = "Favorites", te), a(25, Z = !1);
|
2776
2780
|
}, Ga = (l) => {
|
2777
2781
|
ae += 1, a(36, me = !0), ae <= Ue && he(l, ji, ae).then((_) => {
|
2778
|
-
a(28, A = _), A.games.items.length >
|
2779
|
-
w.isFavorite =
|
2782
|
+
a(28, A = _), A.games.items.length > M.length && (a(29, M = A.games.items), M.forEach((w) => {
|
2783
|
+
w.isFavorite = B(w.id);
|
2780
2784
|
})), a(36, me = !1);
|
2781
2785
|
});
|
2782
2786
|
}, Ca = (l) => {
|
@@ -2786,8 +2790,8 @@ function Ri(i, e, a) {
|
|
2786
2790
|
let w = "", N = 999999999999, j;
|
2787
2791
|
const I = new Date(Date.now());
|
2788
2792
|
return _.forEach((C, K) => {
|
2789
|
-
const L = new Date(C.schedules[0].startTime),
|
2790
|
-
Ne(
|
2793
|
+
const L = new Date(C.schedules[0].startTime), V = new Date(C.schedules[0].endTime);
|
2794
|
+
Ne(V).diff(I) < N && (N = Ne(V).diff(I), j = K), Ne(I).isAfter(L) && Ne(I).isBefore(V) && (w = _[j].name);
|
2791
2795
|
}), w;
|
2792
2796
|
}, xe = (l) => {
|
2793
2797
|
a(30, Q = !1), window.postMessage(
|
@@ -2804,10 +2808,10 @@ function Ri(i, e, a) {
|
|
2804
2808
|
u && m && a(39, fe = !0);
|
2805
2809
|
break;
|
2806
2810
|
case "MOSTPLAYED":
|
2807
|
-
|
2811
|
+
H === "false" && u && m && a(39, fe = !1);
|
2808
2812
|
break;
|
2809
2813
|
case "LASTPLAYED":
|
2810
|
-
|
2814
|
+
H === "false" && u && m && a(39, fe = !1);
|
2811
2815
|
break;
|
2812
2816
|
default:
|
2813
2817
|
Qe(v);
|
@@ -2855,11 +2859,11 @@ function Ri(i, e, a) {
|
|
2855
2859
|
}
|
2856
2860
|
function Pa(l) {
|
2857
2861
|
oe[l ? "unshift" : "push"](() => {
|
2858
|
-
|
2862
|
+
q = l, a(23, q);
|
2859
2863
|
});
|
2860
2864
|
}
|
2861
2865
|
return i.$$set = (l) => {
|
2862
|
-
"endpoint" in l && a(3, o = l.endpoint), "datasource" in l && a(4, s = l.datasource), "lang" in l && a(5, r = l.lang), "session" in l && a(6, m = l.session), "userid" in l && a(7, u = l.userid), "favorites" in l && a(8, f = l.favorites), "clientstyling" in l && a(9, h = l.clientstyling), "clientstylingurl" in l && a(10, p = l.clientstylingurl), "translationurl" in l && a(11, F = l.translationurl), "currency" in l && a(12, E = l.currency), "categoryid" in l && a(0, v = l.categoryid), "showgamename" in l && a(13, g = l.showgamename), "livecasino" in l && a(14, c = l.livecasino), "gamepagemodalurl" in l && a(15, ne = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(16, U = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(17, b = l.integratedgameframemobile), "casinomygames" in l && a(18,
|
2866
|
+
"endpoint" in l && a(3, o = l.endpoint), "datasource" in l && a(4, s = l.datasource), "lang" in l && a(5, r = l.lang), "session" in l && a(6, m = l.session), "userid" in l && a(7, u = l.userid), "favorites" in l && a(8, f = l.favorites), "clientstyling" in l && a(9, h = l.clientstyling), "clientstylingurl" in l && a(10, p = l.clientstylingurl), "translationurl" in l && a(11, F = l.translationurl), "currency" in l && a(12, E = l.currency), "categoryid" in l && a(0, v = l.categoryid), "showgamename" in l && a(13, g = l.showgamename), "livecasino" in l && a(14, c = l.livecasino), "gamepagemodalurl" in l && a(15, ne = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(16, U = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(17, b = l.integratedgameframemobile), "casinomygames" in l && a(18, H = l.casinomygames), "addfilterselector" in l && a(1, ve = l.addfilterselector), "addsortingselector" in l && a(2, be = l.addsortingselector), "filterbylogo" in l && a(19, Ye = l.filterbylogo), "casinogamesgridslider" in l && a(20, Je = l.casinogamesgridslider), "fetchviaevent" in l && a(47, le = l.fetchviaevent), "showallpage" in l && a(48, Ie = l.showallpage), "actionevent" in l && a(49, je = l.actionevent), "displayedgamecount" in l && a(50, we = l.displayedgamecount), "showallbuttongamescount" in l && a(51, ke = l.showallbuttongamescount), "mbsource" in l && a(21, Re = l.mbsource), "lobbyscreen" in l && a(52, Le = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, ye = l.usesinglevendorfilter), "visiblegames" in l && a(53, Ae = l.visiblegames);
|
2863
2867
|
}, i.$$.update = () => {
|
2864
2868
|
i.$$.dirty[0] & /*lang*/
|
2865
2869
|
32 && r && Na(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
@@ -2870,9 +2874,9 @@ function Ri(i, e, a) {
|
|
2870
2874
|
8388608 && Be && ge && Ea(), i.$$.dirty[0] & /*lang, categoryid*/
|
2871
2875
|
33 && r && v && Ma(), i.$$.dirty[0] & /*translationurl*/
|
2872
2876
|
2048 && F && va(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
2873
|
-
8389120 && h &&
|
2874
|
-
8389632 && p &&
|
2875
|
-
10485760 &&
|
2877
|
+
8389120 && h && q && ei(q, h), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
2878
|
+
8389632 && p && q && ai(q, p), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
2879
|
+
10485760 && q && ii(q, `${Re}.Style`);
|
2876
2880
|
}, [
|
2877
2881
|
v,
|
2878
2882
|
ve,
|
@@ -2892,18 +2896,18 @@ function Ri(i, e, a) {
|
|
2892
2896
|
ne,
|
2893
2897
|
U,
|
2894
2898
|
b,
|
2895
|
-
|
2899
|
+
H,
|
2896
2900
|
Ye,
|
2897
2901
|
Je,
|
2898
2902
|
Re,
|
2899
2903
|
ye,
|
2900
|
-
|
2904
|
+
q,
|
2901
2905
|
ge,
|
2902
2906
|
Z,
|
2903
2907
|
Te,
|
2904
2908
|
Y,
|
2905
2909
|
A,
|
2906
|
-
|
2910
|
+
M,
|
2907
2911
|
Q,
|
2908
2912
|
J,
|
2909
2913
|
Ge,
|
@@ -2986,181 +2990,181 @@ class Li extends Ha {
|
|
2986
2990
|
return this.$$.ctx[3];
|
2987
2991
|
}
|
2988
2992
|
set endpoint(e) {
|
2989
|
-
this.$$set({ endpoint: e }),
|
2993
|
+
this.$$set({ endpoint: e }), z();
|
2990
2994
|
}
|
2991
2995
|
get datasource() {
|
2992
2996
|
return this.$$.ctx[4];
|
2993
2997
|
}
|
2994
2998
|
set datasource(e) {
|
2995
|
-
this.$$set({ datasource: e }),
|
2999
|
+
this.$$set({ datasource: e }), z();
|
2996
3000
|
}
|
2997
3001
|
get lang() {
|
2998
3002
|
return this.$$.ctx[5];
|
2999
3003
|
}
|
3000
3004
|
set lang(e) {
|
3001
|
-
this.$$set({ lang: e }),
|
3005
|
+
this.$$set({ lang: e }), z();
|
3002
3006
|
}
|
3003
3007
|
get session() {
|
3004
3008
|
return this.$$.ctx[6];
|
3005
3009
|
}
|
3006
3010
|
set session(e) {
|
3007
|
-
this.$$set({ session: e }),
|
3011
|
+
this.$$set({ session: e }), z();
|
3008
3012
|
}
|
3009
3013
|
get userid() {
|
3010
3014
|
return this.$$.ctx[7];
|
3011
3015
|
}
|
3012
3016
|
set userid(e) {
|
3013
|
-
this.$$set({ userid: e }),
|
3017
|
+
this.$$set({ userid: e }), z();
|
3014
3018
|
}
|
3015
3019
|
get favorites() {
|
3016
3020
|
return this.$$.ctx[8];
|
3017
3021
|
}
|
3018
3022
|
set favorites(e) {
|
3019
|
-
this.$$set({ favorites: e }),
|
3023
|
+
this.$$set({ favorites: e }), z();
|
3020
3024
|
}
|
3021
3025
|
get clientstyling() {
|
3022
3026
|
return this.$$.ctx[9];
|
3023
3027
|
}
|
3024
3028
|
set clientstyling(e) {
|
3025
|
-
this.$$set({ clientstyling: e }),
|
3029
|
+
this.$$set({ clientstyling: e }), z();
|
3026
3030
|
}
|
3027
3031
|
get clientstylingurl() {
|
3028
3032
|
return this.$$.ctx[10];
|
3029
3033
|
}
|
3030
3034
|
set clientstylingurl(e) {
|
3031
|
-
this.$$set({ clientstylingurl: e }),
|
3035
|
+
this.$$set({ clientstylingurl: e }), z();
|
3032
3036
|
}
|
3033
3037
|
get translationurl() {
|
3034
3038
|
return this.$$.ctx[11];
|
3035
3039
|
}
|
3036
3040
|
set translationurl(e) {
|
3037
|
-
this.$$set({ translationurl: e }),
|
3041
|
+
this.$$set({ translationurl: e }), z();
|
3038
3042
|
}
|
3039
3043
|
get currency() {
|
3040
3044
|
return this.$$.ctx[12];
|
3041
3045
|
}
|
3042
3046
|
set currency(e) {
|
3043
|
-
this.$$set({ currency: e }),
|
3047
|
+
this.$$set({ currency: e }), z();
|
3044
3048
|
}
|
3045
3049
|
get categoryid() {
|
3046
3050
|
return this.$$.ctx[0];
|
3047
3051
|
}
|
3048
3052
|
set categoryid(e) {
|
3049
|
-
this.$$set({ categoryid: e }),
|
3053
|
+
this.$$set({ categoryid: e }), z();
|
3050
3054
|
}
|
3051
3055
|
get showgamename() {
|
3052
3056
|
return this.$$.ctx[13];
|
3053
3057
|
}
|
3054
3058
|
set showgamename(e) {
|
3055
|
-
this.$$set({ showgamename: e }),
|
3059
|
+
this.$$set({ showgamename: e }), z();
|
3056
3060
|
}
|
3057
3061
|
get livecasino() {
|
3058
3062
|
return this.$$.ctx[14];
|
3059
3063
|
}
|
3060
3064
|
set livecasino(e) {
|
3061
|
-
this.$$set({ livecasino: e }),
|
3065
|
+
this.$$set({ livecasino: e }), z();
|
3062
3066
|
}
|
3063
3067
|
get gamepagemodalurl() {
|
3064
3068
|
return this.$$.ctx[15];
|
3065
3069
|
}
|
3066
3070
|
set gamepagemodalurl(e) {
|
3067
|
-
this.$$set({ gamepagemodalurl: e }),
|
3071
|
+
this.$$set({ gamepagemodalurl: e }), z();
|
3068
3072
|
}
|
3069
3073
|
get integratedgameframedesktop() {
|
3070
3074
|
return this.$$.ctx[16];
|
3071
3075
|
}
|
3072
3076
|
set integratedgameframedesktop(e) {
|
3073
|
-
this.$$set({ integratedgameframedesktop: e }),
|
3077
|
+
this.$$set({ integratedgameframedesktop: e }), z();
|
3074
3078
|
}
|
3075
3079
|
get integratedgameframemobile() {
|
3076
3080
|
return this.$$.ctx[17];
|
3077
3081
|
}
|
3078
3082
|
set integratedgameframemobile(e) {
|
3079
|
-
this.$$set({ integratedgameframemobile: e }),
|
3083
|
+
this.$$set({ integratedgameframemobile: e }), z();
|
3080
3084
|
}
|
3081
3085
|
get casinomygames() {
|
3082
3086
|
return this.$$.ctx[18];
|
3083
3087
|
}
|
3084
3088
|
set casinomygames(e) {
|
3085
|
-
this.$$set({ casinomygames: e }),
|
3089
|
+
this.$$set({ casinomygames: e }), z();
|
3086
3090
|
}
|
3087
3091
|
get addfilterselector() {
|
3088
3092
|
return this.$$.ctx[1];
|
3089
3093
|
}
|
3090
3094
|
set addfilterselector(e) {
|
3091
|
-
this.$$set({ addfilterselector: e }),
|
3095
|
+
this.$$set({ addfilterselector: e }), z();
|
3092
3096
|
}
|
3093
3097
|
get addsortingselector() {
|
3094
3098
|
return this.$$.ctx[2];
|
3095
3099
|
}
|
3096
3100
|
set addsortingselector(e) {
|
3097
|
-
this.$$set({ addsortingselector: e }),
|
3101
|
+
this.$$set({ addsortingselector: e }), z();
|
3098
3102
|
}
|
3099
3103
|
get filterbylogo() {
|
3100
3104
|
return this.$$.ctx[19];
|
3101
3105
|
}
|
3102
3106
|
set filterbylogo(e) {
|
3103
|
-
this.$$set({ filterbylogo: e }),
|
3107
|
+
this.$$set({ filterbylogo: e }), z();
|
3104
3108
|
}
|
3105
3109
|
get casinogamesgridslider() {
|
3106
3110
|
return this.$$.ctx[20];
|
3107
3111
|
}
|
3108
3112
|
set casinogamesgridslider(e) {
|
3109
|
-
this.$$set({ casinogamesgridslider: e }),
|
3113
|
+
this.$$set({ casinogamesgridslider: e }), z();
|
3110
3114
|
}
|
3111
3115
|
get fetchviaevent() {
|
3112
3116
|
return this.$$.ctx[47];
|
3113
3117
|
}
|
3114
3118
|
set fetchviaevent(e) {
|
3115
|
-
this.$$set({ fetchviaevent: e }),
|
3119
|
+
this.$$set({ fetchviaevent: e }), z();
|
3116
3120
|
}
|
3117
3121
|
get showallpage() {
|
3118
3122
|
return this.$$.ctx[48];
|
3119
3123
|
}
|
3120
3124
|
set showallpage(e) {
|
3121
|
-
this.$$set({ showallpage: e }),
|
3125
|
+
this.$$set({ showallpage: e }), z();
|
3122
3126
|
}
|
3123
3127
|
get actionevent() {
|
3124
3128
|
return this.$$.ctx[49];
|
3125
3129
|
}
|
3126
3130
|
set actionevent(e) {
|
3127
|
-
this.$$set({ actionevent: e }),
|
3131
|
+
this.$$set({ actionevent: e }), z();
|
3128
3132
|
}
|
3129
3133
|
get displayedgamecount() {
|
3130
3134
|
return this.$$.ctx[50];
|
3131
3135
|
}
|
3132
3136
|
set displayedgamecount(e) {
|
3133
|
-
this.$$set({ displayedgamecount: e }),
|
3137
|
+
this.$$set({ displayedgamecount: e }), z();
|
3134
3138
|
}
|
3135
3139
|
get showallbuttongamescount() {
|
3136
3140
|
return this.$$.ctx[51];
|
3137
3141
|
}
|
3138
3142
|
set showallbuttongamescount(e) {
|
3139
|
-
this.$$set({ showallbuttongamescount: e }),
|
3143
|
+
this.$$set({ showallbuttongamescount: e }), z();
|
3140
3144
|
}
|
3141
3145
|
get mbsource() {
|
3142
3146
|
return this.$$.ctx[21];
|
3143
3147
|
}
|
3144
3148
|
set mbsource(e) {
|
3145
|
-
this.$$set({ mbsource: e }),
|
3149
|
+
this.$$set({ mbsource: e }), z();
|
3146
3150
|
}
|
3147
3151
|
get lobbyscreen() {
|
3148
3152
|
return this.$$.ctx[52];
|
3149
3153
|
}
|
3150
3154
|
set lobbyscreen(e) {
|
3151
|
-
this.$$set({ lobbyscreen: e }),
|
3155
|
+
this.$$set({ lobbyscreen: e }), z();
|
3152
3156
|
}
|
3153
3157
|
get usesinglevendorfilter() {
|
3154
3158
|
return this.$$.ctx[22];
|
3155
3159
|
}
|
3156
3160
|
set usesinglevendorfilter(e) {
|
3157
|
-
this.$$set({ usesinglevendorfilter: e }),
|
3161
|
+
this.$$set({ usesinglevendorfilter: e }), z();
|
3158
3162
|
}
|
3159
3163
|
get visiblegames() {
|
3160
3164
|
return this.$$.ctx[53];
|
3161
3165
|
}
|
3162
3166
|
set visiblegames(e) {
|
3163
|
-
this.$$set({ visiblegames: e }),
|
3167
|
+
this.$$set({ visiblegames: e }), z();
|
3164
3168
|
}
|
3165
3169
|
}
|
3166
3170
|
Wa(Li, { endpoint: {}, datasource: {}, lang: {}, session: {}, userid: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, currency: {}, categoryid: {}, showgamename: {}, livecasino: {}, gamepagemodalurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, casinomygames: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, casinogamesgridslider: {}, fetchviaevent: {}, showallpage: {}, actionevent: {}, displayedgamecount: {}, showallbuttongamescount: {}, mbsource: {}, lobbyscreen: {}, usesinglevendorfilter: {}, visiblegames: {} }, [], [], !0);
|
package/components/{CasinoMostPlayedSection-2J65I1-u.js → CasinoMostPlayedSection-Bywnxo_6.js}
RENAMED
@@ -73,7 +73,7 @@ if (typeof window < "u") {
|
|
73
73
|
}
|
74
74
|
};
|
75
75
|
};
|
76
|
-
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-
|
76
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-fgHQUZ4F.js").then(({ default: e }) => {
|
77
77
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
78
78
|
});
|
79
79
|
}
|
package/components/{CasinoMostPlayedSection-D-5n1d4y.cjs → CasinoMostPlayedSection-CcSJLqHm.cjs}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-WNFrQkQJ.cjs");function U(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const q={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("./CasinoGamesCategorySection-DzlgMDxz.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function V(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 W(n){let e;return{c(){e=t.element("casino-games-category-section"),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[17]),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,"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[16]),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]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),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]&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]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("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]&1048576&&a!==(a=l[20]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function Z(n){let e,a;function i(r,c){return r[19]?X:W}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,c){t.insert(r,e,c),t.append(e,a),o.m(a,null),n[24](e)},p(r,c){l===(l=i(r))&&o?o.p(r,c):(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 x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:A=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:D="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],F,T=!1,u;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/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",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),F=w?m:m.href,new Promise((g,_)=>{fetch(F).then(f=>f.json()).then(f=>{f.items=f.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},p=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},B=()=>{Q(c)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{u=s,a(18,u)})}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,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,L=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,D=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&c&&p(),n.$$.dirty[0]&262272&&b&&u&&t.setClientStyling(u,b),n.$$.dirty[0]&262400&&v&&u&&t.setClientStylingURL(u,v),n.$$.dirty[0]&262208&&y&&u&&t.setStreamStyling(u,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&c&&B()},[l,o,r,c,j,h,y,b,v,w,M,E,L,A,N,O,P,D,u,T,i,G,C,S,H]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,Z,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:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},V,[-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[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}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[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-WNFrQkQJ.cjs");function U(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const q={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("./CasinoGamesCategorySection-BCeh01vB.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function V(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 W(n){let e;return{c(){e=t.element("casino-games-category-section"),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[17]),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,"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[16]),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]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),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]&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]&65536&&t.set_custom_element_data(e,"casinomygames",a[16]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("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]&1048576&&a!==(a=l[20]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function Z(n){let e,a;function i(r,c){return r[19]?X:W}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,c){t.insert(r,e,c),t.append(e,a),o.m(a,null),n[24](e)},p(r,c){l===(l=i(r))&&o?o.p(r,c):(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 x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:L="false"}=e,{showgamename:A=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:D="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],F,T=!1,u;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/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",C);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),F=w?m:m.href,new Promise((g,_)=>{fetch(F).then(f=>f.json()).then(f=>{f.items=f.items.filter(K=>{let R=!0;return K.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},p=()=>{Y({limit:100,device:t.getDevice(I),rounds:S}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(_=>_.json())):m.push(fetch(g.href).then(_=>_.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(19,T=!0)})},B=()=>{Q(c)};t.onMount(()=>()=>{});function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{u=s,a(18,u)})}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,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,E=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,L=s.gamepagemodalurl),"showgamename"in s&&a(13,A=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(21,G=s.translationurl),"casinomygames"in s&&a(16,P=s.casinomygames),"mostplayedperiod"in s&&a(22,C=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,S=s.mostplayedrounds),"fetchviaevent"in s&&a(17,D=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&c&&p(),n.$$.dirty[0]&262272&&b&&u&&t.setClientStyling(u,b),n.$$.dirty[0]&262400&&v&&u&&t.setClientStylingURL(u,v),n.$$.dirty[0]&262208&&y&&u&&t.setStreamStyling(u,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&c&&B()},[l,o,r,c,j,h,y,b,v,w,M,E,L,A,N,O,P,D,u,T,i,G,C,S,H]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,Z,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:21,casinomygames:16,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:17},V,[-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[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}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[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
|
package/components/{CasinoMostPlayedSection-CdcxLKU9.js → CasinoMostPlayedSection-DkjX_LCw.js}
RENAMED
@@ -73,7 +73,7 @@ if (typeof window != "undefined") {
|
|
73
73
|
}
|
74
74
|
};
|
75
75
|
};
|
76
|
-
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-
|
76
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-DtM-qLXG.js").then(({ default: e }) => {
|
77
77
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
78
78
|
});
|
79
79
|
}
|
@@ -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/CasinoMostPlayedSection-
|
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/CasinoMostPlayedSection-CcSJLqHm.cjs")).then(({default:t})=>{!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoMostPlayedSection-DkjX_LCw.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", t.element);
|
15
15
|
});
|
16
16
|
}
|