@everymatrix/casino-page-nd 1.65.2 → 1.66.0
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/{CasinoFavoritesSectionNd-CYL77qZa.cjs → CasinoFavoritesSectionNd-B1NVWXYP.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-DPAWixea.js → CasinoFavoritesSectionNd-C09OTRhH.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-B6fsgOs7.js → CasinoFavoritesSectionNd-DEvisfOt.js} +1 -1
- package/components/{CasinoGamesCategorySectionNd-CIA0TRVM.cjs → CasinoGamesCategorySectionNd-CERzSxRw.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-Be7Qfn5c.js → CasinoGamesCategorySectionNd-CTrNmMfs.js} +28 -29
- package/components/{CasinoGamesCategorySectionNd-BYwes68y.js → CasinoGamesCategorySectionNd-L2sKM70V.js} +35 -36
- package/components/{CasinoLastPlayedSectionNd-Dz1oo9A7.cjs → CasinoLastPlayedSectionNd-CZwFFaCA.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-CnwubYqY.js → CasinoLastPlayedSectionNd-D6yEXD1e.js} +1 -1
- package/components/{CasinoLastPlayedSectionNd-BBeTLhUX.js → CasinoLastPlayedSectionNd-DYUJ5-Ab.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-CWFe1luB.js → CasinoMostPlayedSectionNd-DQITf_dR.js} +1 -1
- package/components/{CasinoMostPlayedSectionNd-VqMAMreI.cjs → CasinoMostPlayedSectionNd-DRyCicTP.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-BP0YRpR5.js → CasinoMostPlayedSectionNd-zmoPHeAN.js} +1 -1
- package/components/{CasinoMyGamesNd-DWe9uLSc.js → CasinoMyGamesNd-BjBcccR1.js} +3 -3
- package/components/{CasinoMyGamesNd-B0dh_VBU.cjs → CasinoMyGamesNd-JVob9p5h.cjs} +1 -1
- package/components/{CasinoMyGamesNd-Dh-2ja5Q.js → CasinoMyGamesNd-u3kn_4lB.js} +3 -3
- package/components/{CasinoPageNd-oFfaEHQy.cjs → CasinoPageNd-BBw94T3r.cjs} +1 -1
- package/components/{CasinoPageNd-BgasrBgb.js → CasinoPageNd-IOn4ANbU.js} +29 -29
- package/components/{CasinoPageNd-CqKpSw45.js → CasinoPageNd-uRlKBK6I.js} +29 -29
- package/components/{CasinoSearchNd--4cyW0U2.js → CasinoSearchNd-BAvnA8PM.js} +1 -1
- package/components/{CasinoSearchNd-DEuvcjXU.cjs → CasinoSearchNd-Bep2KBmO.cjs} +1 -1
- package/components/{CasinoSearchNd-CvkmSIOX.js → CasinoSearchNd-BjIA3WMr.js} +1 -1
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Oa, $ as Ba, S as Ha, i as Va, f as F, s as qa, K as Wa, b as Ya, n as pe, d as y, h as k, j as C, r as h, k as Ja, W as Ka, o as Xa, X as
|
|
1
|
+
import { a as Oa, $ as Ba, S as Ha, i as Va, f as F, s as qa, K as Wa, b as Ya, n as pe, d as y, h as k, j as C, r as h, k as Ja, W as Ka, o as Xa, X as Ee, C as oe, T as K, p as w, B as H, l as ve, P as Za, m as D, q as L, v as se, Y as _a, Z as pa, E as n, w as Qa, A as xa, F as $, L as $a, H as ei, I as ai, J as ii } from "./CasinoCalendar-gzR0syWU.js";
|
|
2
2
|
import { d as xe, i as ni, a as ti } from "./CasinoGameThumbnailNd-aQNB3bNo.js";
|
|
3
3
|
if (typeof window < "u") {
|
|
4
4
|
let i = function(e) {
|
|
@@ -2453,7 +2453,7 @@ let ji = 0;
|
|
|
2453
2453
|
function Li(i, e, a) {
|
|
2454
2454
|
let t;
|
|
2455
2455
|
Ja(i, $a, (l) => a(43, t = l));
|
|
2456
|
-
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: _ = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: z = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: ne = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: X = "false" } = e, { casinomygames: le = "false" } = e, { addfilterselector: be = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo: We = "" } = e, { casinogamesgridslider: Ye = "false" } = e, { fetchviaevent: re = "false" } = e, { showallpage:
|
|
2456
|
+
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: _ = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: z = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: ne = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: X = "false" } = e, { casinomygames: le = "false" } = e, { addfilterselector: be = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo: We = "" } = e, { casinogamesgridslider: Ye = "false" } = e, { fetchviaevent: re = "false" } = e, { showallpage: Re = "casino" } = e, { actionevent: Ae = "CategoryChange" } = e, { displayedgamecount: ye = "10" } = e, { showallbuttongamescount: ke = "10" } = e, { lobbyscreen: Ne = "true" } = e, { usesinglevendorfilter: Ge = "false" } = e, { visiblegames: je = "10" } = e, Z = !0, Le = !1, Ce, Se, q = !0, Je = window.navigator.userAgent, T, M = [], Q = !0, ae = 40, W = !1, Fe = !1, me = !1, Te = !1, Pe = !0, ce = !1, ge, De, de, ue = !1, V, ze = !1, fe = new Array(1e4), he = {}, Ue = "", ie = "", Me, Oe, N, O = [], Ie = new AbortController(), te = { items: [], count: 0, name: "" };
|
|
2457
2457
|
const va = () => {
|
|
2458
2458
|
fetch(z).then((p) => p.json()).then((p) => {
|
|
2459
2459
|
Object.keys(p).forEach((G) => {
|
|
@@ -2465,7 +2465,7 @@ function Li(i, e, a) {
|
|
|
2465
2465
|
};
|
|
2466
2466
|
Object.keys(ea).forEach((l) => {
|
|
2467
2467
|
$e(l, ea[l]);
|
|
2468
|
-
}), typeof document.hidden < "u" ?
|
|
2468
|
+
}), typeof document.hidden < "u" ? Me = "hidden" : typeof document.msHidden < "u" ? Me = "msHidden" : typeof document.webkitHidden < "u" && (Me = "webkitHidden");
|
|
2469
2469
|
let Ke = new IntersectionObserver((l) => {
|
|
2470
2470
|
l.forEach(async (p) => {
|
|
2471
2471
|
let G = p.target.gameid, E = p.target.elems_index;
|
|
@@ -2483,7 +2483,7 @@ function Li(i, e, a) {
|
|
|
2483
2483
|
S.items?.forEach((j) => {
|
|
2484
2484
|
j.gameModel && (N.push(j), O.includes(j.id) || O.push(j.id));
|
|
2485
2485
|
});
|
|
2486
|
-
const J =
|
|
2486
|
+
const J = Ee(N)?.length;
|
|
2487
2487
|
window.postMessage({
|
|
2488
2488
|
type: "UpdateFavoritesCount",
|
|
2489
2489
|
favoriteGamesLength: J
|
|
@@ -2509,7 +2509,7 @@ function Li(i, e, a) {
|
|
|
2509
2509
|
S.items?.forEach((B) => {
|
|
2510
2510
|
B.gameModel && (N.push(B), O.includes(B.id) || O.push(B.id));
|
|
2511
2511
|
});
|
|
2512
|
-
const j =
|
|
2512
|
+
const j = Ee(N)?.length;
|
|
2513
2513
|
window.postMessage({
|
|
2514
2514
|
type: "UpdateFavoritesCount",
|
|
2515
2515
|
favoriteGamesLength: j
|
|
@@ -2526,14 +2526,14 @@ function Li(i, e, a) {
|
|
|
2526
2526
|
});
|
|
2527
2527
|
});
|
|
2528
2528
|
}, Xe = (l, p, G, E) => {
|
|
2529
|
-
|
|
2530
|
-
const A =
|
|
2529
|
+
Ie && Ie.abort(), Ie = new AbortController();
|
|
2530
|
+
const A = Ie.signal;
|
|
2531
2531
|
a(25, Z = !0);
|
|
2532
2532
|
let R = "", S = "", J = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), j = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2533
|
-
const B =
|
|
2533
|
+
const B = Ge === "true" ? "*" : l;
|
|
2534
2534
|
return (l.match(/\$/g) || []).length > 1 ? (R = l.split("$").slice(0, 2).join("$"), S = new URL(`${o}/v1/casino/groups/${s}/${R}/subGroups`)) : S = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((Da, Ua) => {
|
|
2535
2535
|
if (S.searchParams.delete("pagination"), S.searchParams.append("expand", "games(vendor)"), S.searchParams.append("fields", "id,name,games"), S.searchParams.append("platform", Za(Je)), S.searchParams.append("pagination", `games(offset=${p},limit=${G})`), S.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), J && J[B]?.length)
|
|
2536
|
-
if (
|
|
2536
|
+
if (Ge === "true" || q === !1 && ue === !1) {
|
|
2537
2537
|
let P = "";
|
|
2538
2538
|
a(34, Te = !0), J[B].forEach((x) => {
|
|
2539
2539
|
P = P + (P ? `,games(vendor(id=${x}))` : `games(vendor(id=${x}))`);
|
|
@@ -2565,7 +2565,7 @@ function Li(i, e, a) {
|
|
|
2565
2565
|
const l = V.getRootNode().host;
|
|
2566
2566
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
|
2567
2567
|
}, ya = (l, p, G) => {
|
|
2568
|
-
l !== "" && (a(31, W = !1), a(27, q = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1),
|
|
2568
|
+
l !== "" && (a(31, W = !1), a(27, q = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1), ze = !1, a(30, Q = +p > +G), _e(l, 0, +p).then((E) => {
|
|
2569
2569
|
a(28, T = E), a(29, M = T.games.items), M && M.forEach((A) => {
|
|
2570
2570
|
A.isFavorite = Y(A.id);
|
|
2571
2571
|
});
|
|
@@ -2596,20 +2596,20 @@ function Li(i, e, a) {
|
|
|
2596
2596
|
})), a(25, Z = !1);
|
|
2597
2597
|
break;
|
|
2598
2598
|
case "RecentSearchData":
|
|
2599
|
-
a(31, W = !0), a(32,
|
|
2599
|
+
a(31, W = !0), a(32, Fe = !0), l.data.searchData.length > 0 ? (a(29, M = l.data.searchData), a(35, Pe = !0), M && M.forEach((p) => {
|
|
2600
2600
|
p.isFavorite = Y(p.id);
|
|
2601
2601
|
})) : (a(29, M = []), a(35, Pe = !1));
|
|
2602
2602
|
break;
|
|
2603
2603
|
case "OutOfRecentSearches":
|
|
2604
|
-
a(31, W = !1), a(32,
|
|
2604
|
+
a(31, W = !1), a(32, Fe = !1);
|
|
2605
2605
|
break;
|
|
2606
2606
|
case "SearchData":
|
|
2607
|
-
a(31, W = !0), a(32,
|
|
2607
|
+
a(31, W = !0), a(32, Fe = !1), a(29, M = l.data.searchData.items || []), a(33, me = !0), l.data.receivedFavoriteResults && (N = l.data.receivedFavoriteResults.items), M && M.forEach((p) => {
|
|
2608
2608
|
p.isFavorite = Y(p.id);
|
|
2609
2609
|
});
|
|
2610
2610
|
break;
|
|
2611
2611
|
case `CategoryData_${g}`:
|
|
2612
|
-
a(31, W = !1), a(27, q = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1),
|
|
2612
|
+
a(31, W = !1), a(27, q = !0), a(1, be = "false"), a(2, we = "false"), a(33, me = !1), ze = !1, _e(l.data.categoryId, 0, l.data.visiblegames).then((p) => {
|
|
2613
2613
|
a(28, T = p), a(29, M = T.games.items), a(30, Q = !!(De <= l.data.visiblegames && q)), M && M.forEach((G) => {
|
|
2614
2614
|
G.isFavorite = Y(G.id);
|
|
2615
2615
|
});
|
|
@@ -2633,14 +2633,14 @@ function Li(i, e, a) {
|
|
|
2633
2633
|
Ga(`${o}/v1/player/${c}/favorites`, m, l.data.id);
|
|
2634
2634
|
break;
|
|
2635
2635
|
case "UserSessionID":
|
|
2636
|
-
|
|
2636
|
+
Ce = l.data.session, Se = l.data.userID, u == "true" && Se && Se.length && Ce && Ce.length > 0 && Be(Ce, Se);
|
|
2637
2637
|
break;
|
|
2638
2638
|
case "UpdateFavoredList":
|
|
2639
2639
|
g === "FAVORITES" && Ve(l.data.url, l.data.sessionID);
|
|
2640
2640
|
break;
|
|
2641
2641
|
}
|
|
2642
2642
|
}, Ze = (l) => {
|
|
2643
|
-
a(31, W = !1), a(27, q =
|
|
2643
|
+
a(31, W = !1), a(27, q = Ne === "true"), a(33, me = !1), ze = !0, a(36, ce = !1), a(0, g = l), g !== "MOSTPLAYED" && a(30, Q = !1), le !== "true" && (!N && m && Be(m, c), _e(g, 0, ae).then((p) => {
|
|
2644
2644
|
a(28, T = p), a(29, M = T.games.items);
|
|
2645
2645
|
}).finally(
|
|
2646
2646
|
/*// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
@@ -2705,7 +2705,7 @@ function Li(i, e, a) {
|
|
|
2705
2705
|
}), ka()) : N.forEach((R) => {
|
|
2706
2706
|
R.isFavorite = Y(R.id);
|
|
2707
2707
|
});
|
|
2708
|
-
const A =
|
|
2708
|
+
const A = Ee(N)?.length;
|
|
2709
2709
|
g === "FAVORITES" && (window.postMessage({
|
|
2710
2710
|
type: "UpdateFavoritesCount",
|
|
2711
2711
|
favoriteGamesLength: A
|
|
@@ -2718,7 +2718,7 @@ function Li(i, e, a) {
|
|
|
2718
2718
|
let p;
|
|
2719
2719
|
p = l?.items || l || [], p.length > 0 && p.forEach((G) => {
|
|
2720
2720
|
G.gameModel && (G.gameModel.isFavorite = !0);
|
|
2721
|
-
}), a(42, te.items =
|
|
2721
|
+
}), a(42, te.items = Ee(p, te.items), te), a(42, te.name = "Favorites", te), a(25, Z = !1);
|
|
2722
2722
|
}, Sa = (l) => {
|
|
2723
2723
|
ae += 1, a(36, ce = !0), ae <= De && _e(l, ji, ae).then((p) => {
|
|
2724
2724
|
a(28, T = p), T.games.items.length > M.length && (a(29, M = T.games.items), M.forEach((G) => {
|
|
@@ -2738,9 +2738,9 @@ function Li(i, e, a) {
|
|
|
2738
2738
|
}, Qe = (l) => {
|
|
2739
2739
|
a(30, Q = !1), window.postMessage(
|
|
2740
2740
|
{
|
|
2741
|
-
type: `${
|
|
2741
|
+
type: `${Ae}`,
|
|
2742
2742
|
itemId: l,
|
|
2743
|
-
showallpage:
|
|
2743
|
+
showallpage: Re
|
|
2744
2744
|
},
|
|
2745
2745
|
window.location.href
|
|
2746
2746
|
);
|
|
@@ -2760,9 +2760,9 @@ function Li(i, e, a) {
|
|
|
2760
2760
|
break;
|
|
2761
2761
|
}
|
|
2762
2762
|
}, Ma = () => {
|
|
2763
|
-
document[
|
|
2763
|
+
document[Me] ? a(41, Ue = "disconnect") : a(41, Ue = "connect");
|
|
2764
2764
|
}, Ia = () => {
|
|
2765
|
-
|
|
2765
|
+
ze && fe.forEach((l, p) => {
|
|
2766
2766
|
l && (l.elems_index = p, Ke.observe(l));
|
|
2767
2767
|
});
|
|
2768
2768
|
}, Ea = () => {
|
|
@@ -2805,7 +2805,7 @@ function Li(i, e, a) {
|
|
|
2805
2805
|
});
|
|
2806
2806
|
}
|
|
2807
2807
|
return i.$$set = (l) => {
|
|
2808
|
-
"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, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, _ = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, z = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, ne = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, X = l.integratedgameframemobile), "casinomygames" in l && a(19, le = l.casinomygames), "addfilterselector" in l && a(1, be = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(20, We = l.filterbylogo), "casinogamesgridslider" in l && a(21, Ye = l.casinogamesgridslider), "fetchviaevent" in l && a(47, re = l.fetchviaevent), "showallpage" in l && a(48,
|
|
2808
|
+
"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, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, _ = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, z = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, ne = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, X = l.integratedgameframemobile), "casinomygames" in l && a(19, le = l.casinomygames), "addfilterselector" in l && a(1, be = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(20, We = l.filterbylogo), "casinogamesgridslider" in l && a(21, Ye = l.casinogamesgridslider), "fetchviaevent" in l && a(47, re = l.fetchviaevent), "showallpage" in l && a(48, Re = l.showallpage), "actionevent" in l && a(49, Ae = l.actionevent), "displayedgamecount" in l && a(50, ye = l.displayedgamecount), "showallbuttongamescount" in l && a(51, ke = l.showallbuttongamescount), "lobbyscreen" in l && a(52, Ne = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, Ge = l.usesinglevendorfilter), "visiblegames" in l && a(53, je = l.visiblegames);
|
|
2809
2809
|
}, i.$$.update = () => {
|
|
2810
2810
|
i.$$.dirty[0] & /*lang*/
|
|
2811
2811
|
32 && r && Ea(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
|
@@ -2814,8 +2814,7 @@ function Li(i, e, a) {
|
|
|
2814
2814
|
456 && u === "true" && o && m && c && Be(m, c), i.$$.dirty[0] & /*thumbnailContainer*/
|
|
2815
2815
|
16777216 | i.$$.dirty[1] & /*dataloaded*/
|
|
2816
2816
|
8388608 && Oe && fe && Ia(), i.$$.dirty[0] & /*lang, categoryid*/
|
|
2817
|
-
33
|
|
2818
|
-
2097152 && Ge && r && g && za(), i.$$.dirty[0] & /*translationurl*/
|
|
2817
|
+
33 && r && g && za(), i.$$.dirty[0] & /*translationurl*/
|
|
2819
2818
|
4096 && z && va(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
2820
2819
|
8389632 && _ && V && ei(V, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
2821
2820
|
8390656 && b && V && ai(V, b), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
@@ -2843,7 +2842,7 @@ function Li(i, e, a) {
|
|
|
2843
2842
|
le,
|
|
2844
2843
|
We,
|
|
2845
2844
|
Ye,
|
|
2846
|
-
|
|
2845
|
+
Ge,
|
|
2847
2846
|
V,
|
|
2848
2847
|
fe,
|
|
2849
2848
|
Z,
|
|
@@ -2853,7 +2852,7 @@ function Li(i, e, a) {
|
|
|
2853
2852
|
M,
|
|
2854
2853
|
Q,
|
|
2855
2854
|
W,
|
|
2856
|
-
|
|
2855
|
+
Fe,
|
|
2857
2856
|
me,
|
|
2858
2857
|
Te,
|
|
2859
2858
|
Pe,
|
|
@@ -2869,11 +2868,11 @@ function Li(i, e, a) {
|
|
|
2869
2868
|
Fa,
|
|
2870
2869
|
Qe,
|
|
2871
2870
|
re,
|
|
2871
|
+
Re,
|
|
2872
2872
|
Ae,
|
|
2873
|
-
Ne,
|
|
2874
2873
|
ye,
|
|
2875
2874
|
ke,
|
|
2876
|
-
|
|
2875
|
+
Ne,
|
|
2877
2876
|
je,
|
|
2878
2877
|
Oe,
|
|
2879
2878
|
Ra,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ne = (i, e, a) => new Promise((t, o) => {
|
|
2
2
|
var s = (c) => {
|
|
3
3
|
try {
|
|
4
4
|
m(a.next(c));
|
|
@@ -14,7 +14,7 @@ var je = (i, e, a) => new Promise((t, o) => {
|
|
|
14
14
|
}, m = (c) => c.done ? t(c.value) : Promise.resolve(c.value).then(s, r);
|
|
15
15
|
m((a = a.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { a as Ha, $ as Va, S as qa, i as Wa, s as Ya, f as F, b as Ja, n as be, d as G, h as C, j as S, r as h, k as Ka, W as Xa, o as Za, X as
|
|
17
|
+
import { a as Ha, $ as Va, S as qa, i as Wa, s as Ya, f as F, b as Ja, n as be, d as G, h as C, j as S, r as h, k as Ka, W as Xa, o as Za, X as je, C as le, T as Z, p as w, B as q, l as we, P as Qa, m as D, q as j, v as re, Y as wa, E as n, Z as ya, w as xa, A as $a, F as ae, H as ei, I as ai, J as ii, K as ni, L as ti } from "./CasinoCalendar-Vkb-R-ZX.js";
|
|
18
18
|
import { d as ia, i as oi, a as si } from "./CasinoGameThumbnailNd-BDbD2umK.js";
|
|
19
19
|
if (typeof window != "undefined") {
|
|
20
20
|
let i = function(e) {
|
|
@@ -2473,7 +2473,7 @@ let Ti = 0;
|
|
|
2473
2473
|
function Pi(i, e, a) {
|
|
2474
2474
|
let t;
|
|
2475
2475
|
Ka(i, ti, (l) => a(43, t = l));
|
|
2476
|
-
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: p = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: z = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: O = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: Q = "false" } = e, { casinomygames: me = "false" } = e, { addfilterselector: ye = "false" } = e, { addsortingselector: ke = "false" } = e, { filterbylogo: Xe = "" } = e, { casinogamesgridslider: Ze = "false" } = e, { fetchviaevent: ce = "false" } = e, { showallpage:
|
|
2476
|
+
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: c = "" } = e, { favorites: u = "" } = e, { mbsource: f } = e, { clientstyling: p = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: z = "" } = e, { currency: I = "" } = e, { categoryid: g = "" } = e, { showgamename: d = "" } = e, { livecasino: O = "false" } = e, { gamepagemodalurl: U = "true" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: Q = "false" } = e, { casinomygames: me = "false" } = e, { addfilterselector: ye = "false" } = e, { addsortingselector: ke = "false" } = e, { filterbylogo: Xe = "" } = e, { casinogamesgridslider: Ze = "false" } = e, { fetchviaevent: ce = "false" } = e, { showallpage: Le = "casino" } = e, { actionevent: Te = "CategoryChange" } = e, { displayedgamecount: Ge = "10" } = e, { showallbuttongamescount: Ce = "10" } = e, { lobbyscreen: Pe = "true" } = e, { usesinglevendorfilter: Se = "false" } = e, { visiblegames: De = "10" } = e, x = !0, Ue = !1, Fe, ze, J = !0, Qe = window.navigator.userAgent, L, M = [], $ = !0, ne = 40, K = !1, Me = !1, ge = !1, Oe = !1, Be = !0, de = !1, ue, He, fe, he = !1, W, Ie = !1, _e = new Array(1e4), pe = {}, Ve = "", te = "", Ee, qe, A, B = [], Ae = new AbortController(), oe = { items: [], count: 0, name: "" };
|
|
2477
2477
|
const ka = () => {
|
|
2478
2478
|
fetch(z).then((_) => _.json()).then((_) => {
|
|
2479
2479
|
Object.keys(_).forEach((k) => {
|
|
@@ -2485,9 +2485,9 @@ function Pi(i, e, a) {
|
|
|
2485
2485
|
};
|
|
2486
2486
|
Object.keys(ta).forEach((l) => {
|
|
2487
2487
|
na(l, ta[l]);
|
|
2488
|
-
}), typeof document.hidden != "undefined" ?
|
|
2489
|
-
let
|
|
2490
|
-
l.forEach((_) =>
|
|
2488
|
+
}), typeof document.hidden != "undefined" ? Ee = "hidden" : typeof document.msHidden != "undefined" ? Ee = "msHidden" : typeof document.webkitHidden != "undefined" && (Ee = "webkitHidden");
|
|
2489
|
+
let Re = new IntersectionObserver((l) => {
|
|
2490
|
+
l.forEach((_) => Ne(this, null, function* () {
|
|
2491
2491
|
let k = _.target.gameid, E = _.target.elems_index;
|
|
2492
2492
|
_.isIntersecting ? (E * 1.2 > ne && Ia(g), a(40, pe[k] = 1, pe)) : a(40, pe[k] = 0, pe);
|
|
2493
2493
|
}));
|
|
@@ -2504,7 +2504,7 @@ function Pi(i, e, a) {
|
|
|
2504
2504
|
(Y = y.items) == null || Y.forEach((V) => {
|
|
2505
2505
|
V.gameModel && (A.push(V), B.includes(V.id) || B.push(V.id));
|
|
2506
2506
|
});
|
|
2507
|
-
const H = (T =
|
|
2507
|
+
const H = (T = je(A)) == null ? void 0 : T.length;
|
|
2508
2508
|
window.postMessage({
|
|
2509
2509
|
type: "UpdateFavoritesCount",
|
|
2510
2510
|
favoriteGamesLength: H
|
|
@@ -2531,7 +2531,7 @@ function Pi(i, e, a) {
|
|
|
2531
2531
|
(T = y.items) == null || T.forEach((se) => {
|
|
2532
2532
|
se.gameModel && (A.push(se), B.includes(se.id) || B.push(se.id));
|
|
2533
2533
|
});
|
|
2534
|
-
const V = (H =
|
|
2534
|
+
const V = (H = je(A)) == null ? void 0 : H.length;
|
|
2535
2535
|
window.postMessage({
|
|
2536
2536
|
type: "UpdateFavoritesCount",
|
|
2537
2537
|
favoriteGamesLength: V
|
|
@@ -2548,15 +2548,15 @@ function Pi(i, e, a) {
|
|
|
2548
2548
|
});
|
|
2549
2549
|
});
|
|
2550
2550
|
}, xe = (l, _, k, E) => {
|
|
2551
|
-
|
|
2552
|
-
const R =
|
|
2551
|
+
Ae && Ae.abort(), Ae = new AbortController();
|
|
2552
|
+
const R = Ae.signal;
|
|
2553
2553
|
a(25, x = !0);
|
|
2554
2554
|
let N = "", y = "", Y = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), T = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2555
|
-
const H =
|
|
2555
|
+
const H = Se === "true" ? "*" : l;
|
|
2556
2556
|
return (l.match(/\$/g) || []).length > 1 ? (N = l.split("$").slice(0, 2).join("$"), y = new URL(`${o}/v1/casino/groups/${s}/${N}/subGroups`)) : y = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((V, se) => {
|
|
2557
2557
|
var aa;
|
|
2558
2558
|
if (y.searchParams.delete("pagination"), y.searchParams.append("expand", "games(vendor)"), y.searchParams.append("fields", "id,name,games"), y.searchParams.append("platform", Qa(Qe)), y.searchParams.append("pagination", `games(offset=${_},limit=${k})`), y.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), Y && ((aa = Y[H]) != null && aa.length))
|
|
2559
|
-
if (
|
|
2559
|
+
if (Se === "true" || J === !1 && he === !1) {
|
|
2560
2560
|
let P = "";
|
|
2561
2561
|
a(34, Oe = !0), Y[H].forEach((ee) => {
|
|
2562
2562
|
P = P + (P ? `,games(vendor(id=${ee}))` : `games(vendor(id=${ee}))`);
|
|
@@ -2588,7 +2588,7 @@ function Pi(i, e, a) {
|
|
|
2588
2588
|
const l = W.getRootNode().host;
|
|
2589
2589
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
|
2590
2590
|
}, Sa = (l, _, k) => {
|
|
2591
|
-
l !== "" && (a(31, K = !1), a(27, J = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1),
|
|
2591
|
+
l !== "" && (a(31, K = !1), a(27, J = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1), Ie = !1, a(30, $ = +_ > +k), ve(l, 0, +_).then((E) => {
|
|
2592
2592
|
a(28, L = E), a(29, M = L.games.items), M && M.forEach((R) => {
|
|
2593
2593
|
R.isFavorite = X(R.id);
|
|
2594
2594
|
});
|
|
@@ -2619,20 +2619,20 @@ function Pi(i, e, a) {
|
|
|
2619
2619
|
})), a(25, x = !1);
|
|
2620
2620
|
break;
|
|
2621
2621
|
case "RecentSearchData":
|
|
2622
|
-
a(31, K = !0), a(32,
|
|
2622
|
+
a(31, K = !0), a(32, Me = !0), l.data.searchData.length > 0 ? (a(29, M = l.data.searchData), a(35, Be = !0), M && M.forEach((_) => {
|
|
2623
2623
|
_.isFavorite = X(_.id);
|
|
2624
2624
|
})) : (a(29, M = []), a(35, Be = !1));
|
|
2625
2625
|
break;
|
|
2626
2626
|
case "OutOfRecentSearches":
|
|
2627
|
-
a(31, K = !1), a(32,
|
|
2627
|
+
a(31, K = !1), a(32, Me = !1);
|
|
2628
2628
|
break;
|
|
2629
2629
|
case "SearchData":
|
|
2630
|
-
a(31, K = !0), a(32,
|
|
2630
|
+
a(31, K = !0), a(32, Me = !1), a(29, M = l.data.searchData.items || []), a(33, ge = !0), l.data.receivedFavoriteResults && (A = l.data.receivedFavoriteResults.items), M && M.forEach((_) => {
|
|
2631
2631
|
_.isFavorite = X(_.id);
|
|
2632
2632
|
});
|
|
2633
2633
|
break;
|
|
2634
2634
|
case `CategoryData_${g}`:
|
|
2635
|
-
a(31, K = !1), a(27, J = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1),
|
|
2635
|
+
a(31, K = !1), a(27, J = !0), a(1, ye = "false"), a(2, ke = "false"), a(33, ge = !1), Ie = !1, ve(l.data.categoryId, 0, l.data.visiblegames).then((_) => {
|
|
2636
2636
|
a(28, L = _), a(29, M = L.games.items), a(30, $ = !!(He <= l.data.visiblegames && J)), M && M.forEach((k) => {
|
|
2637
2637
|
k.isFavorite = X(k.id);
|
|
2638
2638
|
});
|
|
@@ -2656,14 +2656,14 @@ function Pi(i, e, a) {
|
|
|
2656
2656
|
za(`${o}/v1/player/${c}/favorites`, m, l.data.id);
|
|
2657
2657
|
break;
|
|
2658
2658
|
case "UserSessionID":
|
|
2659
|
-
|
|
2659
|
+
Fe = l.data.session, ze = l.data.userID, u == "true" && ze && ze.length && Fe && Fe.length > 0 && We(Fe, ze);
|
|
2660
2660
|
break;
|
|
2661
2661
|
case "UpdateFavoredList":
|
|
2662
2662
|
g === "FAVORITES" && Je(l.data.url, l.data.sessionID);
|
|
2663
2663
|
break;
|
|
2664
2664
|
}
|
|
2665
2665
|
}, $e = (l) => {
|
|
2666
|
-
a(31, K = !1), a(27, J =
|
|
2666
|
+
a(31, K = !1), a(27, J = Pe === "true"), a(33, ge = !1), Ie = !0, a(36, de = !1), a(0, g = l), g !== "MOSTPLAYED" && a(30, $ = !1), me !== "true" && (!A && m && We(m, c), ve(g, 0, ne).then((_) => {
|
|
2667
2667
|
a(28, L = _), a(29, M = L.games.items);
|
|
2668
2668
|
}).finally(
|
|
2669
2669
|
/*// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
@@ -2692,7 +2692,7 @@ function Pi(i, e, a) {
|
|
|
2692
2692
|
var _;
|
|
2693
2693
|
return (_ = A == null ? void 0 : A.some((k) => k.id === l)) != null ? _ : !1;
|
|
2694
2694
|
};
|
|
2695
|
-
let za = (l, _, k) =>
|
|
2695
|
+
let za = (l, _, k) => Ne(this, null, function* () {
|
|
2696
2696
|
yield Je(l, _), B.includes(k) || B.push(k);
|
|
2697
2697
|
let R = {
|
|
2698
2698
|
method: "POST",
|
|
@@ -2722,7 +2722,7 @@ function Pi(i, e, a) {
|
|
|
2722
2722
|
window.location.href
|
|
2723
2723
|
), Je(l, _);
|
|
2724
2724
|
}), B.includes(k) && (B = B.filter((R) => R != k));
|
|
2725
|
-
}, Je = (l, _) =>
|
|
2725
|
+
}, Je = (l, _) => Ne(this, null, function* () {
|
|
2726
2726
|
return fetch(l, {
|
|
2727
2727
|
method: "GET",
|
|
2728
2728
|
headers: { "X-SessionID": _ }
|
|
@@ -2733,7 +2733,7 @@ function Pi(i, e, a) {
|
|
|
2733
2733
|
}), Fa()) : A.forEach((y) => {
|
|
2734
2734
|
y.isFavorite = X(y.id);
|
|
2735
2735
|
});
|
|
2736
|
-
const R = (N =
|
|
2736
|
+
const R = (N = je(A)) == null ? void 0 : N.length;
|
|
2737
2737
|
g === "FAVORITES" && (window.postMessage({
|
|
2738
2738
|
type: "UpdateFavoritesCount",
|
|
2739
2739
|
favoriteGamesLength: R
|
|
@@ -2747,7 +2747,7 @@ function Pi(i, e, a) {
|
|
|
2747
2747
|
let _;
|
|
2748
2748
|
_ = (l == null ? void 0 : l.items) || l || [], _.length > 0 && _.forEach((k) => {
|
|
2749
2749
|
k.gameModel && (k.gameModel.isFavorite = !0);
|
|
2750
|
-
}), a(42, oe.items =
|
|
2750
|
+
}), a(42, oe.items = je(_, oe.items), oe), a(42, oe.name = "Favorites", oe), a(25, x = !1);
|
|
2751
2751
|
}, Ia = (l) => {
|
|
2752
2752
|
ne += 1, a(36, de = !0), ne <= He && ve(l, Ti, ne).then((_) => {
|
|
2753
2753
|
a(28, L = _), L.games.items.length > M.length && (a(29, M = L.games.items), M.forEach((k) => {
|
|
@@ -2767,9 +2767,9 @@ function Pi(i, e, a) {
|
|
|
2767
2767
|
}, ea = (l) => {
|
|
2768
2768
|
a(30, $ = !1), window.postMessage(
|
|
2769
2769
|
{
|
|
2770
|
-
type: `${
|
|
2770
|
+
type: `${Te}`,
|
|
2771
2771
|
itemId: l,
|
|
2772
|
-
showallpage:
|
|
2772
|
+
showallpage: Le
|
|
2773
2773
|
},
|
|
2774
2774
|
window.location.href
|
|
2775
2775
|
);
|
|
@@ -2789,16 +2789,16 @@ function Pi(i, e, a) {
|
|
|
2789
2789
|
break;
|
|
2790
2790
|
}
|
|
2791
2791
|
}, Ra = () => {
|
|
2792
|
-
document[
|
|
2792
|
+
document[Ee] ? a(41, Ve = "disconnect") : a(41, Ve = "connect");
|
|
2793
2793
|
}, Na = () => {
|
|
2794
|
-
|
|
2795
|
-
l && (l.elems_index = _,
|
|
2794
|
+
Ie && _e.forEach((l, _) => {
|
|
2795
|
+
l && (l.elems_index = _, Re.observe(l));
|
|
2796
2796
|
});
|
|
2797
2797
|
}, ja = () => {
|
|
2798
2798
|
li(r);
|
|
2799
2799
|
};
|
|
2800
2800
|
Xa(() => {
|
|
2801
|
-
|
|
2801
|
+
Re == null || Re.disconnect();
|
|
2802
2802
|
}), Za(() => (window.addEventListener("visibilitychange", (l) => Ra()), window.addEventListener("message", Ye, !1), () => {
|
|
2803
2803
|
window.removeEventListener("message", Ye), window.removeEventListener("visibilitychange", Ye);
|
|
2804
2804
|
}));
|
|
@@ -2834,7 +2834,7 @@ function Pi(i, e, a) {
|
|
|
2834
2834
|
});
|
|
2835
2835
|
}
|
|
2836
2836
|
return i.$$set = (l) => {
|
|
2837
|
-
"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, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, p = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, z = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, O = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, Q = l.integratedgameframemobile), "casinomygames" in l && a(19, me = l.casinomygames), "addfilterselector" in l && a(1, ye = l.addfilterselector), "addsortingselector" in l && a(2, ke = l.addsortingselector), "filterbylogo" in l && a(20, Xe = l.filterbylogo), "casinogamesgridslider" in l && a(21, Ze = l.casinogamesgridslider), "fetchviaevent" in l && a(47, ce = l.fetchviaevent), "showallpage" in l && a(48,
|
|
2837
|
+
"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, c = l.userid), "favorites" in l && a(8, u = l.favorites), "mbsource" in l && a(9, f = l.mbsource), "clientstyling" in l && a(10, p = l.clientstyling), "clientstylingurl" in l && a(11, b = l.clientstylingurl), "translationurl" in l && a(12, z = l.translationurl), "currency" in l && a(13, I = l.currency), "categoryid" in l && a(0, g = l.categoryid), "showgamename" in l && a(14, d = l.showgamename), "livecasino" in l && a(15, O = l.livecasino), "gamepagemodalurl" in l && a(16, U = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(17, v = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(18, Q = l.integratedgameframemobile), "casinomygames" in l && a(19, me = l.casinomygames), "addfilterselector" in l && a(1, ye = l.addfilterselector), "addsortingselector" in l && a(2, ke = l.addsortingselector), "filterbylogo" in l && a(20, Xe = l.filterbylogo), "casinogamesgridslider" in l && a(21, Ze = l.casinogamesgridslider), "fetchviaevent" in l && a(47, ce = l.fetchviaevent), "showallpage" in l && a(48, Le = l.showallpage), "actionevent" in l && a(49, Te = l.actionevent), "displayedgamecount" in l && a(50, Ge = l.displayedgamecount), "showallbuttongamescount" in l && a(51, Ce = l.showallbuttongamescount), "lobbyscreen" in l && a(52, Pe = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, Se = l.usesinglevendorfilter), "visiblegames" in l && a(53, De = l.visiblegames);
|
|
2838
2838
|
}, i.$$.update = () => {
|
|
2839
2839
|
i.$$.dirty[0] & /*lang*/
|
|
2840
2840
|
32 && r && ja(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
|
@@ -2843,8 +2843,7 @@ function Pi(i, e, a) {
|
|
|
2843
2843
|
456 && u === "true" && o && m && c && We(m, c), i.$$.dirty[0] & /*thumbnailContainer*/
|
|
2844
2844
|
16777216 | i.$$.dirty[1] & /*dataloaded*/
|
|
2845
2845
|
8388608 && qe && _e && Na(), i.$$.dirty[0] & /*lang, categoryid*/
|
|
2846
|
-
33
|
|
2847
|
-
2097152 && Se && r && g && Aa(), i.$$.dirty[0] & /*translationurl*/
|
|
2846
|
+
33 && r && g && Aa(), i.$$.dirty[0] & /*translationurl*/
|
|
2848
2847
|
4096 && z && ka(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
2849
2848
|
8389632 && p && W && ei(W, p), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
2850
2849
|
8390656 && b && W && ai(W, b), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
@@ -2872,7 +2871,7 @@ function Pi(i, e, a) {
|
|
|
2872
2871
|
me,
|
|
2873
2872
|
Xe,
|
|
2874
2873
|
Ze,
|
|
2875
|
-
|
|
2874
|
+
Se,
|
|
2876
2875
|
W,
|
|
2877
2876
|
_e,
|
|
2878
2877
|
x,
|
|
@@ -2882,7 +2881,7 @@ function Pi(i, e, a) {
|
|
|
2882
2881
|
M,
|
|
2883
2882
|
$,
|
|
2884
2883
|
K,
|
|
2885
|
-
|
|
2884
|
+
Me,
|
|
2886
2885
|
ge,
|
|
2887
2886
|
Oe,
|
|
2888
2887
|
Be,
|
|
@@ -2898,11 +2897,11 @@ function Pi(i, e, a) {
|
|
|
2898
2897
|
Ea,
|
|
2899
2898
|
ea,
|
|
2900
2899
|
ce,
|
|
2900
|
+
Le,
|
|
2901
2901
|
Te,
|
|
2902
|
-
Pe,
|
|
2903
2902
|
Ge,
|
|
2904
2903
|
Ce,
|
|
2905
|
-
|
|
2904
|
+
Pe,
|
|
2906
2905
|
De,
|
|
2907
2906
|
qe,
|
|
2908
2907
|
La,
|
package/components/{CasinoLastPlayedSectionNd-Dz1oo9A7.cjs → CasinoLastPlayedSectionNd-CZwFFaCA.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B7HDzCMK.cjs");require("./CasinoFavoritesSectionNd-CYL77qZa.cjs");function z(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};function W(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{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[17]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),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 p(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?p:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:_=""}=e,{mbsource:h}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:D=""}=e,{visiblegames:P=""}=e,{favorites:N=""}=e,{lastplayedperiod:L="Last30Days"}=e,{lastplayedorder:C=""}=e,{lastplayedlimit:S=""}=e,{casinomygames:j="false"}=e,{lastplayedunique:q="true"}=e,{fetchviaevent:E="true"}=e,I=window.navigator.userAgent,F=!1,k=[],O,g;const J=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${_}/games/last-played`);r.searchParams.append("unique",q),r.searchParams.append("limit",S),r.searchParams.append("order",C),r.searchParams.append("period",L),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),O=w?r:r.href,fetch(O).then(m=>m.json()).then(m=>{m.items=m.items.filter(K=>{let T=!0;return K.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),w?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{k=r.filter(f=>!("error"in f)).map(f=>f[0]),j==="true"&&(k=k.slice(0,JSON.parse(P))),window.postMessage({type:"LastPlayedData",lastPlayedGames:k},window.location.href)})}else a(19,F=!0)})},Z=()=>{Q(d)};t.onMount(()=>()=>{});function B(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,_=s.userid),"mbsource"in s&&a(6,h=s.mbsource),"clientstyling"in s&&a(7,y=s.clientstyling),"clientstylingurl"in s&&a(8,b=s.clientstylingurl),"translationurl"in s&&a(21,v=s.translationurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,M=s.gamepagemodalurl),"showgamename"in s&&a(13,D=s.showgamename),"visiblegames"in s&&a(14,P=s.visiblegames),"favorites"in s&&a(15,N=s.favorites),"lastplayedperiod"in s&&a(22,L=s.lastplayedperiod),"lastplayedorder"in s&&a(23,C=s.lastplayedorder),"lastplayedlimit"in s&&a(24,S=s.lastplayedlimit),"casinomygames"in s&&a(16,j=s.casinomygames),"lastplayedunique"in s&&a(25,q=s.lastplayedunique),"fetchviaevent"in s&&a(17,E=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&d&&V(),n.$$.dirty[0]&2097152&&v&&J(),n.$$.dirty[0]&262272&&y&&g&&t.setClientStyling(g,y),n.$$.dirty[0]&262400&&b&&g&&t.setClientStylingURL(g,b),n.$$.dirty[0]&262208&&h&&g&&t.setStreamStyling(g,`${h}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,_,h,y,b,w,R,A,M,D,P,N,j,E,g,F,i,v,L,C,S,q,B]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,translationurl:21,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17},W,[-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 translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{}},[],[],!0);exports.default=Y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B7HDzCMK.cjs");require("./CasinoFavoritesSectionNd-B1NVWXYP.cjs");function z(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};function W(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{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[17]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),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 p(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?p:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:_=""}=e,{mbsource:h}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:D=""}=e,{visiblegames:P=""}=e,{favorites:N=""}=e,{lastplayedperiod:L="Last30Days"}=e,{lastplayedorder:C=""}=e,{lastplayedlimit:S=""}=e,{casinomygames:j="false"}=e,{lastplayedunique:q="true"}=e,{fetchviaevent:E="true"}=e,I=window.navigator.userAgent,F=!1,k=[],O,g;const J=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${_}/games/last-played`);r.searchParams.append("unique",q),r.searchParams.append("limit",S),r.searchParams.append("order",C),r.searchParams.append("period",L),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),O=w?r:r.href,fetch(O).then(m=>m.json()).then(m=>{m.items=m.items.filter(K=>{let T=!0;return K.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),w?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{k=r.filter(f=>!("error"in f)).map(f=>f[0]),j==="true"&&(k=k.slice(0,JSON.parse(P))),window.postMessage({type:"LastPlayedData",lastPlayedGames:k},window.location.href)})}else a(19,F=!0)})},Z=()=>{Q(d)};t.onMount(()=>()=>{});function B(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,_=s.userid),"mbsource"in s&&a(6,h=s.mbsource),"clientstyling"in s&&a(7,y=s.clientstyling),"clientstylingurl"in s&&a(8,b=s.clientstylingurl),"translationurl"in s&&a(21,v=s.translationurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,M=s.gamepagemodalurl),"showgamename"in s&&a(13,D=s.showgamename),"visiblegames"in s&&a(14,P=s.visiblegames),"favorites"in s&&a(15,N=s.favorites),"lastplayedperiod"in s&&a(22,L=s.lastplayedperiod),"lastplayedorder"in s&&a(23,C=s.lastplayedorder),"lastplayedlimit"in s&&a(24,S=s.lastplayedlimit),"casinomygames"in s&&a(16,j=s.casinomygames),"lastplayedunique"in s&&a(25,q=s.lastplayedunique),"fetchviaevent"in s&&a(17,E=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&d&&V(),n.$$.dirty[0]&2097152&&v&&J(),n.$$.dirty[0]&262272&&y&&g&&t.setClientStyling(g,y),n.$$.dirty[0]&262400&&b&&g&&t.setClientStylingURL(g,b),n.$$.dirty[0]&262208&&h&&g&&t.setStreamStyling(g,`${h}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,_,h,y,b,w,R,A,M,D,P,N,j,E,g,F,i,v,L,C,S,q,B]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,mbsource:6,clientstyling:7,clientstylingurl:8,translationurl:21,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17},W,[-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 translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl: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 lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{}},[],[],!0);exports.default=Y;
|
package/components/{CasinoLastPlayedSectionNd-CnwubYqY.js → CasinoLastPlayedSectionNd-D6yEXD1e.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ee, $ as te, S as ae, i as se, s as ie, f as l, b as ne, n as H, d as M, h as D, p as Z, j as P, r as A, k as le, o as re, C as oe, m as ue, q as ce, E as i, P as me, H as ge, I as de, J as fe, K as he, L as ye } from "./CasinoCalendar-Vkb-R-ZX.js";
|
|
2
|
-
import "./CasinoFavoritesSectionNd-
|
|
2
|
+
import "./CasinoFavoritesSectionNd-C09OTRhH.js";
|
|
3
3
|
function K(s, e) {
|
|
4
4
|
ee(s, e);
|
|
5
5
|
}
|
package/components/{CasinoLastPlayedSectionNd-BBeTLhUX.js → CasinoLastPlayedSectionNd-DYUJ5-Ab.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ee, $ as te, S as ae, i as se, s as ie, f as l, b as ne, n as H, d as M, h as D, p as Z, j as P, r as A, k as le, o as re, C as oe, m as ue, q as ce, E as i, P as me, H as ge, I as de, J as fe, K as he, L as ye } from "./CasinoCalendar-gzR0syWU.js";
|
|
2
|
-
import "./CasinoFavoritesSectionNd-
|
|
2
|
+
import "./CasinoFavoritesSectionNd-DEvisfOt.js";
|
|
3
3
|
function K(s, e) {
|
|
4
4
|
ee(s, e);
|
|
5
5
|
}
|
package/components/{CasinoMostPlayedSectionNd-CWFe1luB.js → CasinoMostPlayedSectionNd-DQITf_dR.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as $, $ as ee, S as te, i as se, s as ae, f as l, b as ne, n as H, d as A, h as E, p as B, j as P, r as M, k as ie, o as oe, P as le, C as re, m as me, q as ge, E as n, H as ce, I as ue, J as de, K as fe, L as he } from "./CasinoCalendar-Vkb-R-ZX.js";
|
|
2
|
-
import "./CasinoFavoritesSectionNd-
|
|
2
|
+
import "./CasinoFavoritesSectionNd-C09OTRhH.js";
|
|
3
3
|
function K(a, e) {
|
|
4
4
|
$(a, e);
|
|
5
5
|
}
|
package/components/{CasinoMostPlayedSectionNd-VqMAMreI.cjs → CasinoMostPlayedSectionNd-DRyCicTP.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B7HDzCMK.cjs");require("./CasinoFavoritesSectionNd-CYL77qZa.cjs");function U(n,e){t.addMessages(n,e)}function V(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"}};function W(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[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 Z(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function p(n){let e,a;function i(r,u){return r[19]?Z:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.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),l.m(a,null),n[24](e)},p(r,u){o===(o=i(r))&&l?l.p(r,u):(l.d(1),l=o(r),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),l.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:r=""}=e,{lang:u=""}=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:L="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:O=""}=e,{visiblegames:N}=e,{favorites:E=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:F="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=[],D,T=!1,c;const Y=s=>{let m=new URL(`${o}/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),D=w?m:m.href,new Promise((g,_)=>{fetch(D).then(f=>f.json()).then(f=>{f.items=f.items.filter(Q=>{let R=!0;return Q.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},B=()=>{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(`${o}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",l),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)})},H=()=>{V(u)};t.onMount(()=>()=>{});function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(18,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=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,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,A=s.gamepagemodalurl),"showgamename"in s&&a(13,O=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,E=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,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&u&&B(),n.$$.dirty[0]&262272&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&262400&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&262208&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&u&&H()},[o,l,r,u,j,h,y,b,v,w,M,L,A,O,N,E,P,F,c,T,i,G,C,S,K]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,p,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},W,[-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("./CasinoCalendar-B7HDzCMK.cjs");require("./CasinoFavoritesSectionNd-B1NVWXYP.cjs");function U(n,e){t.addMessages(n,e)}function V(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"}};function W(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[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 Z(n){let e,a=n[20]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function p(n){let e,a;function i(r,u){return r[19]?Z:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.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),l.m(a,null),n[24](e)},p(r,u){o===(o=i(r))&&l?l.p(r,u):(l.d(1),l=o(r),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),l.d(),n[24](null)}}}function x(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:r=""}=e,{lang:u=""}=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:L="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:O=""}=e,{visiblegames:N}=e,{favorites:E=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:C="Last30Days"}=e,{mostplayedrounds:S="10"}=e,{fetchviaevent:F="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=[],D,T=!1,c;const Y=s=>{let m=new URL(`${o}/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),D=w?m:m.href,new Promise((g,_)=>{fetch(D).then(f=>f.json()).then(f=>{f.items=f.items.filter(Q=>{let R=!0;return Q.gameCode=="OddsMatrix2"&&(f.count--,R=!1),R}),g(f)}).catch(f=>{console.error(f),_(f)})})},B=()=>{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(`${o}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",l),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)})},H=()=>{V(u)};t.onMount(()=>()=>{});function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(18,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=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,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,A=s.gamepagemodalurl),"showgamename"in s&&a(13,O=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,E=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,F=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&u&&B(),n.$$.dirty[0]&262272&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&262400&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&262208&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&2097152&&G&&J(),n.$$.dirty[0]&8&&u&&H()},[o,l,r,u,j,h,y,b,v,w,M,L,A,O,N,E,P,F,c,T,i,G,C,S,K]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,x,p,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},W,[-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;
|