@everymatrix/casino-my-games 1.74.2 → 1.74.4
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/{CasinoFavoritesSection-CRww1NN4.cjs → CasinoFavoritesSection-B6rI3zJo.cjs} +1 -1
- package/components/{CasinoFavoritesSection-DMkV8HyP.js → CasinoFavoritesSection-BGPdK-QD.js} +1 -1
- package/components/{CasinoFavoritesSection-DMcr3szm.js → CasinoFavoritesSection-CeUwLVP1.js} +1 -1
- package/components/{CasinoFilter-DFU4ir1Y.cjs → CasinoFilter-Beqf7q2z.cjs} +1 -1
- package/components/{CasinoFilter-CrOAYqjr.js → CasinoFilter-CF783AsG.js} +1 -1
- package/components/{CasinoFilter-BUdCzoW9.js → CasinoFilter-CX97a_JI.js} +1 -1
- package/components/{CasinoGameThumbnail--v814Ice.js → CasinoGameThumbnail-BajhDXuo.js} +2 -2
- package/components/{CasinoGameThumbnail-VIKHBbQz.js → CasinoGameThumbnail-BqvxpLlu.js} +2 -2
- package/components/{CasinoGameThumbnail-BbQBtEV0.cjs → CasinoGameThumbnail-DsYtaw8y.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-g3rKrGNH.js → CasinoGamesCategorySection-CXSZztQo.js} +168 -160
- package/components/{CasinoGamesCategorySection-Dbsqr7oG.js → CasinoGamesCategorySection-DVtf1Fs3.js} +72 -64
- package/components/{CasinoGamesCategorySection-CzbBgyIM.cjs → CasinoGamesCategorySection-oqVPS4F1.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CgP1EpZ5.js → CasinoLastPlayedSection-CMqShY7P.js} +2 -2
- package/components/{CasinoLastPlayedSection-Bd-6uDXk.cjs → CasinoLastPlayedSection-CP26Vh_m.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-ChqZAUb2.js → CasinoLastPlayedSection-lNIDmZmt.js} +2 -2
- package/components/{CasinoMostPlayedSection-B7CNdPl9.js → CasinoMostPlayedSection-Bq-uKXMk.js} +2 -2
- package/components/{CasinoMostPlayedSection-BhQOjQ4Q.js → CasinoMostPlayedSection-DWguXf2v.js} +2 -2
- package/components/{CasinoMostPlayedSection-DrpVPyp1.cjs → CasinoMostPlayedSection-NcJxNYFy.cjs} +1 -1
- package/components/CasinoMyGames-C7gEB7tY.js +1316 -0
- package/components/CasinoMyGames-Dcf9WXJi.cjs +1 -0
- package/components/CasinoMyGames-y0C16M31.js +1317 -0
- package/components/{CasinoSort-uNkXBWss.cjs → CasinoSort-DnuK6toS.cjs} +1 -1
- package/components/{CasinoSort-D8OyOCu4.js → CasinoSort-DrB6HoZI.js} +1 -1
- package/components/{CasinoSort-B8Omjlx0.js → CasinoSort-S7XEvenE.js} +1 -1
- package/es2015/casino-my-games.cjs +1 -1
- package/es2015/casino-my-games.js +1 -1
- package/esnext/casino-my-games.js +1 -1
- package/package.json +1 -1
- package/components/CasinoMyGames-C6blrddx.cjs +0 -1
- package/components/CasinoMyGames-CCniTKPK.js +0 -1352
- package/components/CasinoMyGames-DonHCEUG.js +0 -1353
package/components/{CasinoGamesCategorySection-Dbsqr7oG.js → CasinoGamesCategorySection-DVtf1Fs3.js}
RENAMED
|
@@ -14,9 +14,9 @@ var Ie = (i, e, a) => new Promise((n, o) => {
|
|
|
14
14
|
}, m = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, r);
|
|
15
15
|
m((a = a.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { e as Va, $ as qa, S as Wa, i as Ya, f as z, g as Ja, s as Ka, h as Xa, j as C, y as d, k as S, n as pe, l as F, m as Za, M as Qa, o as xa, p as $a, q as se, r as ei, t as ai, w as K, z as y, J as Q, F as ii, x as P, B as O, u as le, N as wa, H as t, C as ni, v as ae, A as ti, O as ka } from "./CasinoFavoritesSection-
|
|
18
|
-
import { p as je, i as be, g as oi } from "./CasinoFilter-
|
|
19
|
-
import { h as
|
|
17
|
+
import { e as Va, $ as qa, S as Wa, i as Ya, f as z, g as Ja, s as Ka, h as Xa, j as C, y as d, k as S, n as pe, l as F, m as Za, M as Qa, o as xa, p as $a, q as se, r as ei, t as ai, w as K, z as y, J as Q, F as ii, x as P, B as O, u as le, N as wa, H as t, C as ni, v as ae, A as ti, O as ka } from "./CasinoFavoritesSection-BGPdK-QD.js";
|
|
18
|
+
import { p as je, i as be, g as oi } from "./CasinoFilter-CX97a_JI.js";
|
|
19
|
+
import { h as Le } from "./CasinoGameThumbnail-BqvxpLlu.js";
|
|
20
20
|
function na(i, e) {
|
|
21
21
|
Va(i, e);
|
|
22
22
|
}
|
|
@@ -270,7 +270,7 @@ if (typeof window != "undefined") {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
customElements.define = i(customElements.define), import("./CasinoGameThumbnail-
|
|
273
|
+
customElements.define = i(customElements.define), import("./CasinoGameThumbnail-BqvxpLlu.js").then((e) => e.C).then(({ default: e }) => {
|
|
274
274
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
275
275
|
});
|
|
276
276
|
}
|
|
@@ -286,7 +286,7 @@ if (typeof window != "undefined") {
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
-
customElements.define = i(customElements.define), import("./CasinoFilter-
|
|
289
|
+
customElements.define = i(customElements.define), import("./CasinoFilter-CX97a_JI.js").then((e) => e.C).then(({ default: e }) => {
|
|
290
290
|
!customElements.get("casino-filter") && customElements.define("casino-filter", e.element);
|
|
291
291
|
});
|
|
292
292
|
}
|
|
@@ -302,7 +302,7 @@ if (typeof window != "undefined") {
|
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
|
-
customElements.define = i(customElements.define), import("./CasinoSort-
|
|
305
|
+
customElements.define = i(customElements.define), import("./CasinoSort-S7XEvenE.js").then(({ default: e }) => {
|
|
306
306
|
!customElements.get("casino-sort") && customElements.define("casino-sort", e.element);
|
|
307
307
|
});
|
|
308
308
|
}
|
|
@@ -393,7 +393,7 @@ function ui(i) {
|
|
|
393
393
|
function a(s, r) {
|
|
394
394
|
return (
|
|
395
395
|
/*presentFilters*/
|
|
396
|
-
s[34] ?
|
|
396
|
+
s[34] ? Li : ji
|
|
397
397
|
);
|
|
398
398
|
}
|
|
399
399
|
let n = a(i), o = n(i);
|
|
@@ -2472,7 +2472,7 @@ function ji(i) {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Li(i) {
|
|
2476
2476
|
let e, a = (
|
|
2477
2477
|
/*$_*/
|
|
2478
2478
|
i[43]("404") + ""
|
|
@@ -2494,7 +2494,7 @@ function Ai(i) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
};
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function Ai(i) {
|
|
2498
2498
|
let e;
|
|
2499
2499
|
function a(s, r) {
|
|
2500
2500
|
return (
|
|
@@ -2528,7 +2528,7 @@ let Ri = 0;
|
|
|
2528
2528
|
function Ti(i, e, a) {
|
|
2529
2529
|
let n;
|
|
2530
2530
|
Za(i, ii, (l) => a(43, n = l));
|
|
2531
|
-
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: G = "" } = e, { currency: N = "" } = e, { categoryid: v = "" } = e, { showgamename: g = "" } = e, { livecasino: c = "false" } = e, { gamepagemodalurl: T = "true" } = e, { integratedgameframedesktop: R = "false" } = e, { integratedgameframemobile: b = "false" } = e, { casinomygames: q = "false" } = e, { addfilterselector: ve = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo:
|
|
2531
|
+
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: G = "" } = e, { currency: N = "" } = e, { categoryid: v = "" } = e, { showgamename: g = "" } = e, { livecasino: c = "false" } = e, { gamepagemodalurl: T = "true" } = e, { integratedgameframedesktop: R = "false" } = e, { integratedgameframemobile: b = "false" } = e, { casinomygames: q = "false" } = e, { addfilterselector: ve = "false" } = e, { addsortingselector: we = "false" } = e, { filterbylogo: Ke = "" } = e, { casinogamesgridslider: Xe = "false" } = e, { fetchviaevent: re = "false" } = e, { showallpage: Ae = "casino" } = e, { actionevent: Re = "CategoryChange" } = e, { displayedgamecount: ke = "10" } = e, { showallbuttongamescount: ye = "10" } = e, { mbsource: Te } = e, { lobbyscreen: Pe = "true" } = e, { usesinglevendorfilter: Se = "false" } = e, { visiblegames: De = "10" } = e, Ze, x = !0, Ue = !1, Fe, Ge, X = !0, Qe = window.navigator.userAgent, I, M = [], $ = !0, ne = 40, Z = !1, Ce = !1, me = !1, Oe = !1, Be = !0, ue = !1, ce, He, fe, ge = !1, Y, Me = !1, de = new Array(1e4), he = {}, Ve = "", te = "", ze, qe, j, H = [], Ee = new AbortController(), oe = { items: [], count: 0, name: "" };
|
|
2532
2532
|
const ya = () => {
|
|
2533
2533
|
fetch(G).then((_) => _.json()).then((_) => {
|
|
2534
2534
|
Object.keys(_).forEach((w) => {
|
|
@@ -2554,7 +2554,7 @@ function Ti(i, e, a) {
|
|
|
2554
2554
|
method: "GET",
|
|
2555
2555
|
headers: { "X-SessionID": l }
|
|
2556
2556
|
};
|
|
2557
|
-
return new Promise((
|
|
2557
|
+
return new Promise((L, A) => {
|
|
2558
2558
|
fetch(w, E).then((k) => k.json()).then((k) => {
|
|
2559
2559
|
var D;
|
|
2560
2560
|
if (a(25, x = !1), j = [], k) {
|
|
@@ -2568,19 +2568,19 @@ function Ti(i, e, a) {
|
|
|
2568
2568
|
});
|
|
2569
2569
|
} else
|
|
2570
2570
|
j = [];
|
|
2571
|
-
v === "FAVORITES" &&
|
|
2571
|
+
v === "FAVORITES" && Je(j), M.forEach((B) => {
|
|
2572
2572
|
B.isFavorite = V(B.id);
|
|
2573
2573
|
});
|
|
2574
2574
|
let J = M;
|
|
2575
|
-
a(29, M = void 0), a(29, M = J),
|
|
2575
|
+
a(29, M = void 0), a(29, M = J), L(j);
|
|
2576
2576
|
}).catch((k) => {
|
|
2577
|
-
console.error(k),
|
|
2577
|
+
console.error(k), A(k);
|
|
2578
2578
|
});
|
|
2579
2579
|
});
|
|
2580
2580
|
}, Sa = (l, _) => new Promise((w, E) => {
|
|
2581
2581
|
if (l && _) {
|
|
2582
|
-
let
|
|
2583
|
-
fetch(
|
|
2582
|
+
let L = `${o}/v1/player/${_}/favorites/`;
|
|
2583
|
+
fetch(L, {
|
|
2584
2584
|
method: "GET",
|
|
2585
2585
|
headers: { "X-SessionID": l }
|
|
2586
2586
|
}).then((k) => k.json()).then((k) => {
|
|
@@ -2596,21 +2596,21 @@ function Ti(i, e, a) {
|
|
|
2596
2596
|
});
|
|
2597
2597
|
} else
|
|
2598
2598
|
j = [];
|
|
2599
|
-
v === "FAVORITES" &&
|
|
2599
|
+
v === "FAVORITES" && Je(j), w(j);
|
|
2600
2600
|
}).catch((k) => {
|
|
2601
2601
|
console.error(k), E(k);
|
|
2602
2602
|
});
|
|
2603
2603
|
} else
|
|
2604
2604
|
w([]);
|
|
2605
|
-
}),
|
|
2605
|
+
}), xe = (l, _, w, E) => {
|
|
2606
2606
|
Ee && Ee.abort(), Ee = new AbortController();
|
|
2607
|
-
const
|
|
2607
|
+
const L = Ee.signal;
|
|
2608
2608
|
a(25, x = !0);
|
|
2609
|
-
let
|
|
2609
|
+
let A = "", k = "", J = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), D = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2610
2610
|
const B = Se === "true" ? "*" : l;
|
|
2611
|
-
return (l.match(/\$/g) || []).length > 1 ? (
|
|
2611
|
+
return (l.match(/\$/g) || []).length > 1 ? (A = l.split("$").slice(0, 2).join("$"), k = new URL(`${o}/v1/casino/groups/${s}/${A}/subGroups`)) : k = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((W, Ha) => {
|
|
2612
2612
|
var ia;
|
|
2613
|
-
if (k.searchParams.delete("pagination"), k.searchParams.append("expand", "games(vendor)"), k.searchParams.append("fields", "id,name,games"), k.searchParams.append("platform", oi(
|
|
2613
|
+
if (k.searchParams.delete("pagination"), k.searchParams.append("expand", "games(vendor)"), k.searchParams.append("fields", "id,name,games"), k.searchParams.append("platform", oi(Qe)), k.searchParams.append("pagination", `games(offset=${_},limit=${w})`), k.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), J && ((ia = J[B]) != null && ia.length))
|
|
2614
2614
|
if (Se === "true" || X === !1 && ge === !1) {
|
|
2615
2615
|
let U = "";
|
|
2616
2616
|
a(34, Oe = !0), J[B].forEach((ee) => {
|
|
@@ -2618,8 +2618,8 @@ function Ti(i, e, a) {
|
|
|
2618
2618
|
}), k.searchParams.append("filter", `${U}`);
|
|
2619
2619
|
} else
|
|
2620
2620
|
a(34, Oe = !1);
|
|
2621
|
-
D && (D[l] ? D[l] && D[l] != "All" && (D[l] == "isNew" || D[l] == "advancedTags(name(hot))" ? (k.searchParams.append("sortedField", `games(${D[l]})`), k.searchParams.append("orderBy", "DES")) : k.searchParams.append("sortedField", `games(${D[l]})`)) : te && te != "All" && (te == "advancedTags(name(hot))" || te == "isNew" ? (k.searchParams.append("sortedField", `games(${te})`), k.searchParams.append("orderBy", "DES")) : k.searchParams.append("sortedField", `games(${te})`))), fetch(k, { signal:
|
|
2622
|
-
|
|
2621
|
+
D && (D[l] ? D[l] && D[l] != "All" && (D[l] == "isNew" || D[l] == "advancedTags(name(hot))" ? (k.searchParams.append("sortedField", `games(${D[l]})`), k.searchParams.append("orderBy", "DES")) : k.searchParams.append("sortedField", `games(${D[l]})`)) : te && te != "All" && (te == "advancedTags(name(hot))" || te == "isNew" ? (k.searchParams.append("sortedField", `games(${te})`), k.searchParams.append("orderBy", "DES")) : k.searchParams.append("sortedField", `games(${te})`))), fetch(k, { signal: L }).then((U) => U.json()).then((U) => {
|
|
2622
|
+
L.aborted || (a(25, x = !1), (l.match(/\$/g) || []).length > 1 && (U = U.items.filter((ee) => {
|
|
2623
2623
|
if (ee.id == l)
|
|
2624
2624
|
return ee;
|
|
2625
2625
|
})[0]), a(54, qe = !0), a(26, Ue = !1), He = U.games.total, E && U.games.items.forEach((ee) => {
|
|
@@ -2631,21 +2631,21 @@ function Ti(i, e, a) {
|
|
|
2631
2631
|
Fa();
|
|
2632
2632
|
});
|
|
2633
2633
|
});
|
|
2634
|
-
}, _e = (l, _, w) => new Promise((E,
|
|
2635
|
-
f == "true" ? Sa(m, u).then((
|
|
2636
|
-
|
|
2634
|
+
}, _e = (l, _, w) => new Promise((E, L) => {
|
|
2635
|
+
f == "true" ? Sa(m, u).then((A) => {
|
|
2636
|
+
xe(l, _, w, A).then((k) => {
|
|
2637
2637
|
E(k);
|
|
2638
2638
|
});
|
|
2639
|
-
}) :
|
|
2640
|
-
E(
|
|
2639
|
+
}) : xe(l, _, w, null).then((A) => {
|
|
2640
|
+
E(A);
|
|
2641
2641
|
});
|
|
2642
2642
|
}), Fa = () => {
|
|
2643
2643
|
const l = Y.getRootNode().host;
|
|
2644
2644
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
|
2645
2645
|
}, Ga = (l, _, w) => {
|
|
2646
2646
|
l !== "" && (a(31, Z = !1), a(27, X = !0), a(1, ve = "false"), a(2, we = "false"), a(33, me = !1), Me = !1, a(30, $ = +_ > +w), _e(l, 0, +_).then((E) => {
|
|
2647
|
-
a(28, I = E), a(29, M = I.games.items), M && M.forEach((
|
|
2648
|
-
|
|
2647
|
+
a(28, I = E), a(29, M = I.games.items), M && M.forEach((L) => {
|
|
2648
|
+
L.isFavorite = V(L.id);
|
|
2649
2649
|
});
|
|
2650
2650
|
}));
|
|
2651
2651
|
}, Ye = (l) => {
|
|
@@ -2706,7 +2706,7 @@ function Ti(i, e, a) {
|
|
|
2706
2706
|
});
|
|
2707
2707
|
break;
|
|
2708
2708
|
case "CategoryUpdate":
|
|
2709
|
-
|
|
2709
|
+
$e(l.data.itemId);
|
|
2710
2710
|
break;
|
|
2711
2711
|
case `SetUnfavoredGame${v}`:
|
|
2712
2712
|
za(`${o}/v1/player/${u}/favorites`, m, l.data.id);
|
|
@@ -2718,10 +2718,10 @@ function Ti(i, e, a) {
|
|
|
2718
2718
|
Fe = l.data.session, Ge = l.data.userID, f == "true" && Ge && Ge.length && Fe && Fe.length > 0 && We(Fe, Ge);
|
|
2719
2719
|
break;
|
|
2720
2720
|
case "UpdateFavoredList":
|
|
2721
|
-
v === "FAVORITES" &&
|
|
2721
|
+
v === "FAVORITES" && ea(l.data.url, l.data.sessionID);
|
|
2722
2722
|
break;
|
|
2723
2723
|
}
|
|
2724
|
-
},
|
|
2724
|
+
}, $e = (l) => {
|
|
2725
2725
|
a(31, Z = !1), a(27, X = Pe === "true"), a(33, me = !1), Me = !0, a(36, ue = !1), a(0, v = l), v !== "MOSTPLAYED" && a(30, $ = !1), q !== "true" && (!j && m && We(m, u), _e(v, 0, ne).then((_) => {
|
|
2726
2726
|
var w;
|
|
2727
2727
|
a(28, I = _), (w = I == null ? void 0 : I.games) == null || w.items.forEach((E) => {
|
|
@@ -2755,8 +2755,8 @@ function Ti(i, e, a) {
|
|
|
2755
2755
|
return (_ = j == null ? void 0 : j.some((w) => w.id === l)) != null ? _ : !1;
|
|
2756
2756
|
};
|
|
2757
2757
|
let Ma = (l, _, w) => Ie(this, null, function* () {
|
|
2758
|
-
yield
|
|
2759
|
-
let
|
|
2758
|
+
yield ea(l, _), H.includes(w) || H.push(w);
|
|
2759
|
+
let L = {
|
|
2760
2760
|
method: "POST",
|
|
2761
2761
|
headers: {
|
|
2762
2762
|
"X-SessionID": _,
|
|
@@ -2765,10 +2765,14 @@ function Ti(i, e, a) {
|
|
|
2765
2765
|
},
|
|
2766
2766
|
body: JSON.stringify({ items: H })
|
|
2767
2767
|
};
|
|
2768
|
-
fetch(l,
|
|
2769
|
-
window.postMessage({ type: `AddFavoriteThumbnail_${w}` }, window.location.href)
|
|
2770
|
-
|
|
2771
|
-
|
|
2768
|
+
fetch(l, L).then((A) => A.json()).then(() => {
|
|
2769
|
+
window.postMessage({ type: `AddFavoriteThumbnail_${w}` }, window.location.href), window.postMessage({
|
|
2770
|
+
type: "UpdateFavoredList",
|
|
2771
|
+
url: l,
|
|
2772
|
+
sessionID: _
|
|
2773
|
+
});
|
|
2774
|
+
}).catch((A) => {
|
|
2775
|
+
console.error("Err", A);
|
|
2772
2776
|
});
|
|
2773
2777
|
});
|
|
2774
2778
|
const za = (l, _, w) => {
|
|
@@ -2776,34 +2780,38 @@ function Ti(i, e, a) {
|
|
|
2776
2780
|
method: "DELETE",
|
|
2777
2781
|
headers: { "X-SessionID": _ }
|
|
2778
2782
|
};
|
|
2779
|
-
fetch(`${l}/${w}`, E).then((
|
|
2783
|
+
fetch(`${l}/${w}`, E).then((L) => L.json()).then(() => {
|
|
2780
2784
|
window.postMessage(
|
|
2781
2785
|
{
|
|
2782
2786
|
type: `RemoveFavoriteThumbnail_${w}`
|
|
2783
2787
|
},
|
|
2784
2788
|
window.location.href
|
|
2785
|
-
),
|
|
2786
|
-
|
|
2787
|
-
|
|
2789
|
+
), window.postMessage({
|
|
2790
|
+
type: "UpdateFavoredList",
|
|
2791
|
+
url: l,
|
|
2792
|
+
sessionID: _
|
|
2793
|
+
});
|
|
2794
|
+
}), H.includes(w) && (H = H.filter((L) => L != w));
|
|
2795
|
+
}, ea = (l, _) => Ie(this, null, function* () {
|
|
2788
2796
|
return fetch(l, {
|
|
2789
2797
|
method: "GET",
|
|
2790
2798
|
headers: { "X-SessionID": _ }
|
|
2791
2799
|
}).then((E) => E.json()).then((E) => {
|
|
2792
|
-
var
|
|
2800
|
+
var A;
|
|
2793
2801
|
j = E.items, re ? (j.forEach((k) => {
|
|
2794
2802
|
H.includes(k.id) || H.push(k.id);
|
|
2795
2803
|
}), Ca()) : j.forEach((k) => {
|
|
2796
2804
|
k.isFavorite = V(k.id);
|
|
2797
2805
|
});
|
|
2798
|
-
const
|
|
2806
|
+
const L = (A = je(j)) == null ? void 0 : A.length;
|
|
2799
2807
|
v === "FAVORITES" && (window.postMessage({
|
|
2800
2808
|
type: "UpdateFavoritesCount",
|
|
2801
|
-
favoriteGamesLength:
|
|
2802
|
-
}),
|
|
2809
|
+
favoriteGamesLength: L
|
|
2810
|
+
}), Je(j));
|
|
2803
2811
|
}).catch((E) => {
|
|
2804
2812
|
console.error(E);
|
|
2805
2813
|
});
|
|
2806
|
-
}),
|
|
2814
|
+
}), Je = (l) => {
|
|
2807
2815
|
if (!l)
|
|
2808
2816
|
return;
|
|
2809
2817
|
let _;
|
|
@@ -2820,18 +2828,18 @@ function Ti(i, e, a) {
|
|
|
2820
2828
|
const _ = l != null ? l : [];
|
|
2821
2829
|
if ((_ == null ? void 0 : _.length) === 0)
|
|
2822
2830
|
return "";
|
|
2823
|
-
let w = "", E = 999999999999,
|
|
2824
|
-
const
|
|
2831
|
+
let w = "", E = 999999999999, L;
|
|
2832
|
+
const A = new Date(Date.now());
|
|
2825
2833
|
return _.forEach((k, J) => {
|
|
2826
2834
|
const D = new Date(k.schedules[0].startTime), B = new Date(k.schedules[0].endTime);
|
|
2827
|
-
|
|
2835
|
+
Le(B).diff(A) < E && (E = Le(B).diff(A), L = J), Le(A).isAfter(D) && Le(A).isBefore(B) && (w = _[L].name);
|
|
2828
2836
|
}), w;
|
|
2829
2837
|
}, aa = (l) => {
|
|
2830
2838
|
a(30, $ = !1), window.postMessage(
|
|
2831
2839
|
{
|
|
2832
2840
|
type: `${Re}`,
|
|
2833
2841
|
itemId: l,
|
|
2834
|
-
showallpage:
|
|
2842
|
+
showallpage: Ae
|
|
2835
2843
|
},
|
|
2836
2844
|
window.location.href
|
|
2837
2845
|
);
|
|
@@ -2847,22 +2855,22 @@ function Ti(i, e, a) {
|
|
|
2847
2855
|
q === "false" && u && m && a(39, ge = !1);
|
|
2848
2856
|
break;
|
|
2849
2857
|
default:
|
|
2850
|
-
|
|
2858
|
+
$e(v);
|
|
2851
2859
|
break;
|
|
2852
2860
|
}
|
|
2853
2861
|
}, ja = () => {
|
|
2854
2862
|
document[ze] ? a(41, Ve = "disconnect") : a(41, Ve = "connect");
|
|
2855
|
-
},
|
|
2863
|
+
}, La = () => {
|
|
2856
2864
|
Me && de.forEach((l, _) => {
|
|
2857
2865
|
l && (l.elems_index = _, Ne.observe(l));
|
|
2858
2866
|
});
|
|
2859
|
-
},
|
|
2867
|
+
}, Aa = () => {
|
|
2860
2868
|
si(r);
|
|
2861
2869
|
};
|
|
2862
2870
|
Qa(() => {
|
|
2863
2871
|
Ne == null || Ne.disconnect();
|
|
2864
2872
|
}), xa(() => (window.addEventListener("visibilitychange", (l) => ja()), window.addEventListener("message", Ye, !1), () => {
|
|
2865
|
-
window.emMessageBus &&
|
|
2873
|
+
window.emMessageBus && Ze && Ze.unsubscribe(), window.removeEventListener("message", Ye), window.removeEventListener("visibilitychange", Ye);
|
|
2866
2874
|
}));
|
|
2867
2875
|
function Ra(l) {
|
|
2868
2876
|
se[l ? "unshift" : "push"](() => {
|
|
@@ -2896,15 +2904,15 @@ function Ti(i, e, a) {
|
|
|
2896
2904
|
});
|
|
2897
2905
|
}
|
|
2898
2906
|
return i.$$set = (l) => {
|
|
2899
|
-
"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, G = l.translationurl), "currency" in l && a(12, N = 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, T = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(16, R = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(17, b = l.integratedgameframemobile), "casinomygames" in l && a(18, q = l.casinomygames), "addfilterselector" in l && a(1, ve = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(19,
|
|
2907
|
+
"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, G = l.translationurl), "currency" in l && a(12, N = 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, T = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(16, R = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(17, b = l.integratedgameframemobile), "casinomygames" in l && a(18, q = l.casinomygames), "addfilterselector" in l && a(1, ve = l.addfilterselector), "addsortingselector" in l && a(2, we = l.addsortingselector), "filterbylogo" in l && a(19, Ke = l.filterbylogo), "casinogamesgridslider" in l && a(20, Xe = l.casinogamesgridslider), "fetchviaevent" in l && a(47, re = l.fetchviaevent), "showallpage" in l && a(48, Ae = l.showallpage), "actionevent" in l && a(49, Re = l.actionevent), "displayedgamecount" in l && a(50, ke = l.displayedgamecount), "showallbuttongamescount" in l && a(51, ye = l.showallbuttongamescount), "mbsource" in l && a(21, Te = l.mbsource), "lobbyscreen" in l && a(52, Pe = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, Se = l.usesinglevendorfilter), "visiblegames" in l && a(53, De = l.visiblegames);
|
|
2900
2908
|
}, i.$$.update = () => {
|
|
2901
2909
|
i.$$.dirty[0] & /*lang*/
|
|
2902
|
-
32 && r &&
|
|
2910
|
+
32 && r && Aa(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
|
2903
2911
|
57 | i.$$.dirty[1] & /*fetchviaevent, displayedgamecount, showallbuttongamescount*/
|
|
2904
2912
|
1638400 && (re === "false" || re === "") && o && r && v && s && ke && ye && Ga(v, ke, ye), i.$$.dirty[0] & /*favorites, endpoint, session, userid*/
|
|
2905
2913
|
456 && f === "true" && o && m && u && We(m, u), i.$$.dirty[0] & /*thumbnailContainer*/
|
|
2906
2914
|
16777216 | i.$$.dirty[1] & /*dataloaded*/
|
|
2907
|
-
8388608 && qe && de &&
|
|
2915
|
+
8388608 && qe && de && La(), i.$$.dirty[0] & /*lang, categoryid*/
|
|
2908
2916
|
33 && r && v && Ia(), i.$$.dirty[0] & /*translationurl*/
|
|
2909
2917
|
2048 && G && ya(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
2910
2918
|
8389120 && h && Y && ei(Y, h), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
@@ -2930,8 +2938,8 @@ function Ti(i, e, a) {
|
|
|
2930
2938
|
R,
|
|
2931
2939
|
b,
|
|
2932
2940
|
q,
|
|
2941
|
+
Ke,
|
|
2933
2942
|
Xe,
|
|
2934
|
-
Ze,
|
|
2935
2943
|
Te,
|
|
2936
2944
|
Se,
|
|
2937
2945
|
Y,
|
|
@@ -2955,11 +2963,11 @@ function Ti(i, e, a) {
|
|
|
2955
2963
|
Ve,
|
|
2956
2964
|
oe,
|
|
2957
2965
|
n,
|
|
2958
|
-
|
|
2966
|
+
Qe,
|
|
2959
2967
|
Na,
|
|
2960
2968
|
aa,
|
|
2961
2969
|
re,
|
|
2962
|
-
|
|
2970
|
+
Ae,
|
|
2963
2971
|
Re,
|
|
2964
2972
|
ke,
|
|
2965
2973
|
ye,
|
|
@@ -2981,7 +2989,7 @@ class Pi extends Wa {
|
|
|
2981
2989
|
this,
|
|
2982
2990
|
e,
|
|
2983
2991
|
Ti,
|
|
2984
|
-
|
|
2992
|
+
Ai,
|
|
2985
2993
|
Ka,
|
|
2986
2994
|
{
|
|
2987
2995
|
endpoint: 3,
|