@everymatrix/casino-most-played-section 1.54.4 → 1.54.6
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/{CasinoGameThumbnail-BfeiKtC4.js → CasinoGameThumbnail-JaA-bmMs.js} +4 -4
- package/components/{CasinoGamesCategorySection-mzPrMyYZ.js → CasinoGamesCategorySection-hT0scUNY.js} +78 -78
- package/components/{CasinoMostPlayedSection-CN_wisPE.js → CasinoMostPlayedSection-CMEgkbWJ.js} +1 -1
- package/esnext/casino-most-played-section.js +1 -1
- package/package.json +1 -1
@@ -3653,7 +3653,7 @@ function vu(e) {
|
|
3653
3653
|
e[1] && Sn(e)
|
3654
3654
|
), A = (
|
3655
3655
|
/*gameisnew*/
|
3656
|
-
e[7]
|
3656
|
+
e[7] && Gn(e)
|
3657
3657
|
), B = (
|
3658
3658
|
/*gametag*/
|
3659
3659
|
e[8] && Dn(e)
|
@@ -3744,7 +3744,7 @@ function vu(e) {
|
|
3744
3744
|
/*gamevendor*/
|
3745
3745
|
g[5]
|
3746
3746
|
) : "-") + "") && Ie(Y, K), /*gameisnew*/
|
3747
|
-
g[7]
|
3747
|
+
g[7] ? A ? A.p(g, D) : (A = Gn(g), A.c(), A.m(q, ke)) : A && (A.d(1), A = null), /*gametag*/
|
3748
3748
|
g[8] ? B ? B.p(g, D) : (B = Dn(g), B.c(), B.m(q, He)) : B && (B.d(1), B = null), /*livegamedata*/
|
3749
3749
|
g[13] ? z ? z.p(g, D) : (z = Mn(g), z.c(), z.m(q, null)) : z && (z.d(1), z = null), pe === (pe = st(g, D)) && V ? V.p(g, D) : (V && V.d(1), V = pe && pe(g), V && (V.c(), V.m(he, null))), D[0] & /*livegamedata, isopen, openhours*/
|
3750
3750
|
12591104 | D[1] & /*istablefull*/
|
@@ -3778,7 +3778,7 @@ const Ga = "blackjack", Da = "roulette", Yn = "doubleballroulette", ku = 7, Su =
|
|
3778
3778
|
function Gu(e, t, a) {
|
3779
3779
|
let n;
|
3780
3780
|
ni(e, si, (l) => a(35, n = l));
|
3781
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { lang: s = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: c = "" } = t, { favorites: _ = "" } = t, { gamethumbnail: m = "" } = t, { gamename: y = "" } = t, { gamevendor: w = "" } = t, { gamelaunchurl: K = "" } = t, { gameid: Y = "" } = t, { gameisnew: te =
|
3781
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { lang: s = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: c = "" } = t, { favorites: _ = "" } = t, { gamethumbnail: m = "" } = t, { gamename: y = "" } = t, { gamevendor: w = "" } = t, { gamelaunchurl: K = "" } = t, { gameid: Y = "" } = t, { gameisnew: te = !1 } = t, { gametag: he = "" } = t, { gamefunmode: q = !1 } = t, { gamefavorite: ke = !1 } = t, { gamecellsize: He = "" } = t, { showfavoredcategory: Be = !1 } = t, { showgamename: ze = "" } = t, { currency: Q = "" } = t, { gamepagemodalurl: Se = "false" } = t, { endpoint: me = "" } = t, { categoryid: se = "" } = t, { livelobbyendpoint: ge = "" } = t, { connectlive: W = "" } = t, { visibilityconnect: A = "" } = t, { integratedgameframedesktop: B = "false" } = t, { integratedgameframemobile: z = "false" } = t, { casinogamesgridslider: st = "false" } = t, pe = !1, V, J = !1, g, D = window.navigator.userAgent, Ne, O, Pe, Ja, Xt, Qt = "HH:mm", Ve, $t = {}, ot, qa = [], Xa = "EUR", ea, ta, aa, lt, na, ra, ia, Gt, sa, oa, Qa, qe, la, oe = "", ut, $a, ua;
|
3782
3782
|
const Lr = [Ga], en = [Da, Yn], tn = {
|
3783
3783
|
"01": "Yellow",
|
3784
3784
|
"02": "Blue",
|
@@ -4405,7 +4405,7 @@ class Mr extends Qr {
|
|
4405
4405
|
return this.$$.ctx[61];
|
4406
4406
|
}
|
4407
4407
|
}
|
4408
|
-
ei(Mr, { session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, favorites: {}, gamethumbnail: {}, gamename: {}, gamevendor: {}, gamelaunchurl: {}, gameid: {}, gameisnew: {}, gametag: {}, gamefunmode: { type: "Boolean" }, gamefavorite: { type: "Boolean" }, gamecellsize: {}, showfavoredcategory: { type: "Boolean" }, showgamename: {}, currency: {}, gamepagemodalurl: {}, endpoint: {}, categoryid: {}, livelobbyendpoint: {}, connectlive: {}, visibilityconnect: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, casinogamesgridslider: {} }, [], ["MONEY_WHEEL_COLOR_MAP", "ROULETTE_COLOR_MAP"], !0);
|
4408
|
+
ei(Mr, { session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, favorites: {}, gamethumbnail: {}, gamename: {}, gamevendor: {}, gamelaunchurl: {}, gameid: {}, gameisnew: { type: "Boolean" }, gametag: {}, gamefunmode: { type: "Boolean" }, gamefavorite: { type: "Boolean" }, gamecellsize: {}, showfavoredcategory: { type: "Boolean" }, showgamename: {}, currency: {}, gamepagemodalurl: {}, endpoint: {}, categoryid: {}, livelobbyendpoint: {}, connectlive: {}, visibilityconnect: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, casinogamesgridslider: {} }, [], ["MONEY_WHEEL_COLOR_MAP", "ROULETTE_COLOR_MAP"], !0);
|
4409
4409
|
const Mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4410
4410
|
__proto__: null,
|
4411
4411
|
default: Mr
|
package/components/{CasinoGamesCategorySection-mzPrMyYZ.js → CasinoGamesCategorySection-hT0scUNY.js}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { a as La, $ as Ta, S as Pa, i as Da, f as N, c as Ua, s as Oa, b as Ha, e as C, h, k as y, n as _e, o as S, p as Va, q as qa, D as Oe, w as Wa, x as oe, d as Y, v as ve, l as k, u as Z, A as Ba, t as L, m as H, y as le, E as fa, F as n, z as Ya, C as
|
2
|
-
import { h as Ie } from "./CasinoGameThumbnail-
|
1
|
+
import { a as La, $ as Ta, S as Pa, i as Da, f as N, c as Ua, s as Oa, b as Ha, e as C, h, k as y, n as _e, o as S, p as Va, q as qa, D as Oe, w as Wa, x as oe, d as Y, v as ve, l as k, u as Z, A as Ba, t as L, m as H, y as le, E as fa, F as n, z as Ya, C as $, r as Ja, G as ga } from "./CasinoFilter-BYeEBK-a.js";
|
2
|
+
import { h as Ie } from "./CasinoGameThumbnail-JaA-bmMs.js";
|
3
3
|
function Xe(t, a) {
|
4
4
|
La(t, a);
|
5
5
|
}
|
@@ -217,7 +217,7 @@ if (typeof window < "u") {
|
|
217
217
|
}
|
218
218
|
};
|
219
219
|
};
|
220
|
-
customElements.define = t(customElements.define), import("./CasinoGameThumbnail-
|
220
|
+
customElements.define = t(customElements.define), import("./CasinoGameThumbnail-JaA-bmMs.js").then((a) => a.C).then(({ default: a }) => {
|
221
221
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", a.element);
|
222
222
|
});
|
223
223
|
}
|
@@ -544,7 +544,7 @@ function aa(t) {
|
|
544
544
|
let q = d(t)(t);
|
545
545
|
return {
|
546
546
|
c() {
|
547
|
-
a = C("p"), i =
|
547
|
+
a = C("p"), i = $("svg"), o = $("rect"), l = $("rect"), s = $("circle"), m = $("path"), u = $("path"), c = $("path"), g = $("path"), p = Y(), v = C("span"), I = L(G), w = Y(), q.c(), R = Y(), h(o, "x", "1"), h(o, "y", "18.053"), h(o, "width", "90.263"), h(o, "height", "90.263"), h(o, "rx", "12"), h(o, "stroke", "var(--emw--color-gray-150, #828282)"), h(o, "stroke-width", "1.5"), h(l, "x", "106.737"), h(l, "y", "56.737"), h(l, "width", "90.263"), h(l, "height", "90.263"), h(l, "rx", "12"), h(l, "stroke", "var(--emw--color-gray-150, #828282)"), h(l, "stroke-width", "1.5"), h(s, "cx", "70.5"), h(s, "cy", "32.237"), h(s, "r", "31.487"), h(s, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))"), h(s, "stroke-width", "1.5"), h(s, "stroke-dasharray", "5 0"), h(m, "d", "M153.909 81.631a.747.747 0 0 0-.166-1.046l-5.466-3.954a.751.751 0 0 0-.882 1.214l4.859 3.514-3.529 4.858a.75.75 0 1 0 1.215.878l3.969-5.464zm-.725-1.18c-.501.081-.999.159-1.493.233l.223 1.482c.498-.075 1-.153 1.506-.234l-.236-1.48zm-4.457.654c-1.006.133-1.996.253-2.97.36l.162 1.49c.985-.109 1.986-.23 3.002-.364l-.194-1.486zm-5.944.65c-1.01.085-2.002.155-2.978.209l.081 1.496c.991-.054 1.997-.125 3.021-.212l-.124-1.493zm-5.955.326c-1.009.022-2 .026-2.974.01l-.026 1.5c.994.015 2.003.011 3.031-.012l-.031-1.498zm-5.953-.099a61.03 61.03 0 0 1-2.961-.245l-.164 1.49c.995.107 2.006.19 3.035.251l.09-1.496zm-5.898-.641a49.97 49.97 0 0 1-2.907-.56l-.332 1.462c.983.22 1.98.412 2.995.577l.244-1.48zm-5.773-1.298a44.435 44.435 0 0 1-2.807-.92l-.518 1.407c.953.348 1.92.665 2.901.951l.424-1.438zm-5.546-2.027A44.285 44.285 0 0 1 111 76.73l-.702 1.326a45.9 45.9 0 0 0 2.748 1.331l.612-1.37zm-5.23-2.75a49.031 49.031 0 0 1-2.472-1.616l-.861 1.229a50.27 50.27 0 0 0 2.548 1.666l.785-1.278zm-4.851-3.378c-.767-.601-1.529-1.231-2.289-1.891l-.987 1.131c.778.676 1.56 1.322 2.348 1.94l.928-1.18zm-4.486-3.889a74.64 74.64 0 0 1-2.11-2.088l-1.078 1.044a76.17 76.17 0 0 0 2.152 2.13L99.091 68zm-4.143-4.259a97.17 97.17 0 0 1-1.965-2.239l-1.145.972a98.31 98.31 0 0 0 1.996 2.274l1.114-1.007zm-3.867-4.536a127.63 127.63 0 0 1-1.845-2.346l-1.192.914c.624.812 1.246 1.603 1.867 2.373l1.17-.94zm-3.64-4.733c-.58-.788-1.163-1.596-1.749-2.423l-1.225.867c.59.834 1.179 1.649 1.764 2.445l1.21-.89z"), h(m, "fill", "var(--emw--color-gray-150, #828282)"), h(u, "d", "M78 43h11v13H78V43z"), h(u, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))"), h(c, "d", "m180 65 2.021 6.219h6.539l-5.291 3.843 2.021 6.22-5.29-3.844-5.29 3.843 2.021-6.219-5.291-3.843h6.539L180 65z"), h(c, "fill", "var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))"), h(c, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))"), h(c, "stroke-linecap", "round"), h(c, "stroke-linejoin", "round"), h(g, "d", "m74 27 2.02 6.219h6.54l-5.29 3.843 2.02 6.22L74 39.437l-5.29 3.843 2.02-6.219-5.29-3.843h6.54L74 27z"), h(g, "stroke", "var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))"), h(g, "stroke-width", "1.5"), h(g, "stroke-linecap", "round"), h(g, "stroke-linejoin", "round"), h(i, "width", "198"), h(i, "height", "148"), h(i, "viewBox", "0 0 198 148"), h(i, "fill", "none"), h(i, "xmlns", "http://www.w3.org/2000/svg"), h(v, "class", "NoFavoriteText NoFavoriteTextHighlight"), h(a, "class", "NoFavoriteGames " + (ve(
|
548
548
|
/*userAgent*/
|
549
549
|
t[42]
|
550
550
|
) ? "NoFavoriteGamesMobile" : ""));
|
@@ -2414,7 +2414,7 @@ let Si = 0;
|
|
2414
2414
|
function Fi(t, a, i) {
|
2415
2415
|
let o;
|
2416
2416
|
Va(t, Ba, (r) => i(41, o = r));
|
2417
|
-
let { endpoint: l = "" } = a, { datasource: s = "" } = a, { lang: m = "" } = a, { session: u = "" } = a, { userid: c = "" } = a, { favorites: g = "" } = a, { clientstyling: p = "" } = a, { clientstylingurl: v = "" } = a, { translationurl: G = "" } = a, { currency: I = "" } = a, { categoryid: w = "" } = a, { showgamename: R = "" } = a, { livecasino: d = "false" } = a, { gamepagemodalurl: f = "true" } = a, { integratedgameframedesktop: q = "false" } = a, { integratedgameframemobile: T = "false" } = a, { casinomygames: b = "false" } = a, { addfilterselector: be = "false" } = a, { addsortingselector: we = "false" } = a, { filterbylogo: He = "" } = a, { casinogamesgridslider: Ve = "false" } = a, { fetchviaevent: se = "false" } = a, { showallpage: Ne = "casino" } = a, { actionevent: Re = "CategoryChange" } = a, { displayedgamecount: ke = "10" } = a, { showallbuttongamescount: ye = "10" } = a, Q = !0, Ee = !1, Se, Fe,
|
2417
|
+
let { endpoint: l = "" } = a, { datasource: s = "" } = a, { lang: m = "" } = a, { session: u = "" } = a, { userid: c = "" } = a, { favorites: g = "" } = a, { clientstyling: p = "" } = a, { clientstylingurl: v = "" } = a, { translationurl: G = "" } = a, { currency: I = "" } = a, { categoryid: w = "" } = a, { showgamename: R = "" } = a, { livecasino: d = "false" } = a, { gamepagemodalurl: f = "true" } = a, { integratedgameframedesktop: q = "false" } = a, { integratedgameframemobile: T = "false" } = a, { casinomygames: b = "false" } = a, { addfilterselector: be = "false" } = a, { addsortingselector: we = "false" } = a, { filterbylogo: He = "" } = a, { casinogamesgridslider: Ve = "false" } = a, { fetchviaevent: se = "false" } = a, { showallpage: Ne = "casino" } = a, { actionevent: Re = "CategoryChange" } = a, { displayedgamecount: ke = "10" } = a, { showallbuttongamescount: ye = "10" } = a, Q = !0, Ee = !1, Se, Fe, ee = !0, qe = window.navigator.userAgent, A, z = [], J = !0, ae = 40, K = !1, Ge = !1, We = !1, re = !1, Ae = !1, je = !0, me = !1, ue, Le, ce, fe = !1, ie, Ce = !1, ge = new Array(1e4), de = {}, Te = "", te = "", Me, Pe, O, W = [], ze = new AbortController(), ne = { items: [], count: 0, name: "" };
|
2418
2418
|
const da = () => {
|
2419
2419
|
fetch(G).then((_) => _.json()).then((_) => {
|
2420
2420
|
Object.keys(_).forEach((F) => {
|
@@ -2430,7 +2430,7 @@ function Fi(t, a, i) {
|
|
2430
2430
|
let ha = new IntersectionObserver((r) => {
|
2431
2431
|
r.forEach(async (_) => {
|
2432
2432
|
let F = _.target.gameid, E = _.target.elems_index;
|
2433
|
-
_.isIntersecting ? (E * 1.2 >
|
2433
|
+
_.isIntersecting ? (E * 1.2 > ae && wa(w), i(38, de[F] = 1, de)) : i(38, de[F] = 0, de);
|
2434
2434
|
});
|
2435
2435
|
});
|
2436
2436
|
const Be = (r, _) => {
|
@@ -2440,61 +2440,61 @@ function Fi(t, a, i) {
|
|
2440
2440
|
method: "GET",
|
2441
2441
|
headers: { "X-SessionID": r }
|
2442
2442
|
};
|
2443
|
-
return new Promise((
|
2444
|
-
fetch(F, E).then((
|
2445
|
-
if (i(23, Q = !1),
|
2446
|
-
|
2447
|
-
|
2443
|
+
return new Promise((j, M) => {
|
2444
|
+
fetch(F, E).then((D) => D.json()).then((D) => {
|
2445
|
+
if (i(23, Q = !1), O = [], D) {
|
2446
|
+
D.items.forEach((B) => {
|
2447
|
+
B.gameModel && (O.push(B), W.includes(B.id) || W.push(B.id));
|
2448
2448
|
});
|
2449
|
-
const
|
2449
|
+
const x = Oe(O)?.length;
|
2450
2450
|
window.postMessage({
|
2451
2451
|
type: "UpdateFavoritesCount",
|
2452
|
-
favoriteGamesLength:
|
2452
|
+
favoriteGamesLength: x
|
2453
2453
|
});
|
2454
2454
|
} else
|
2455
|
-
|
2456
|
-
w === "FAVORITES" && Je(
|
2457
|
-
|
2455
|
+
O = [];
|
2456
|
+
w === "FAVORITES" && Je(O), z.forEach((x) => {
|
2457
|
+
x.isFavorite = X(x.id);
|
2458
2458
|
});
|
2459
2459
|
let V = z;
|
2460
|
-
i(27, z = void 0), i(27, z = V),
|
2461
|
-
}).catch((
|
2462
|
-
console.error(
|
2460
|
+
i(27, z = void 0), i(27, z = V), j(O);
|
2461
|
+
}).catch((D) => {
|
2462
|
+
console.error(D), M(D);
|
2463
2463
|
});
|
2464
2464
|
});
|
2465
2465
|
}, he = (r, _, F) => {
|
2466
2466
|
ze && ze.abort(), ze = new AbortController();
|
2467
2467
|
const E = ze.signal;
|
2468
2468
|
i(23, Q = !0);
|
2469
|
-
let
|
2470
|
-
return (r.match(/\$/g) || []).length > 1 ? (
|
2471
|
-
if (M.searchParams.delete("pagination"), M.searchParams.append("expand", "games(vendor)"), M.searchParams.append("fields", "id,name,games"), M.searchParams.append("platform", Wa(qe)), M.searchParams.append("pagination", `games(offset=${_},limit=${F})`), M.searchParams.append("language", m), window.postMessage({ type: "CategoryVendors", categoryid: r }, window.location.href),
|
2472
|
-
if (
|
2473
|
-
let
|
2474
|
-
i(32, Ae = !0),
|
2475
|
-
|
2476
|
-
}), M.searchParams.append("filter", `${
|
2469
|
+
let j = "", M = "", D = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), V = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
2470
|
+
return (r.match(/\$/g) || []).length > 1 ? (j = r.split("$").slice(0, 2).join("$"), M = new URL(`${l}/v1/casino/groups/${s}/${j}/subGroups`)) : M = new URL(`${l}/v1/casino/groups/${s}/${r}`), new Promise((x, B) => {
|
2471
|
+
if (M.searchParams.delete("pagination"), M.searchParams.append("expand", "games(vendor)"), M.searchParams.append("fields", "id,name,games"), M.searchParams.append("platform", Wa(qe)), M.searchParams.append("pagination", `games(offset=${_},limit=${F})`), M.searchParams.append("language", m), window.postMessage({ type: "CategoryVendors", categoryid: r }, window.location.href), D && D[r])
|
2472
|
+
if (D[r].length && ee === !1 && fe === !1) {
|
2473
|
+
let U = "";
|
2474
|
+
i(32, Ae = !0), D[r].forEach((pe) => {
|
2475
|
+
U = U + (U ? `,games(vendor(id=${pe}))` : `games(vendor(id=${pe}))`);
|
2476
|
+
}), M.searchParams.append("filter", `${U}`);
|
2477
2477
|
} else
|
2478
2478
|
i(32, Ae = !1);
|
2479
|
-
V && (V[r] ? V[r] && V[r] != "All" && (V[r] == "isNew" || V[r] == "advancedTags(name(hot))" ? (M.searchParams.append("sortedField", `games(${V[r]})`), M.searchParams.append("orderBy", "DES")) : M.searchParams.append("sortedField", `games(${V[r]})`)) :
|
2480
|
-
E.aborted || (i(23, Q = !1), (r.match(/\$/g) || []).length > 1 && (
|
2479
|
+
V && (V[r] ? V[r] && V[r] != "All" && (V[r] == "isNew" || V[r] == "advancedTags(name(hot))" ? (M.searchParams.append("sortedField", `games(${V[r]})`), M.searchParams.append("orderBy", "DES")) : M.searchParams.append("sortedField", `games(${V[r]})`)) : te && te != "All" && (te == "advancedTags(name(hot))" || te == "isNew" ? (M.searchParams.append("sortedField", `games(${te})`), M.searchParams.append("orderBy", "DES")) : M.searchParams.append("sortedField", `games(${te})`))), fetch(M, { signal: E }).then((U) => U.json()).then((U) => {
|
2480
|
+
E.aborted || (i(23, Q = !1), (r.match(/\$/g) || []).length > 1 && (U = U.items.filter((pe) => {
|
2481
2481
|
if (pe.id == r) return pe;
|
2482
|
-
})[0]), i(50, Pe = !0), i(24, Ee = !1), Le =
|
2483
|
-
}).catch((
|
2484
|
-
|
2482
|
+
})[0]), i(50, Pe = !0), i(24, Ee = !1), Le = U.games.total, i(34, me = !0), x(U));
|
2483
|
+
}).catch((U) => {
|
2484
|
+
U.name !== "AbortError" && (i(24, Ee = !0), console.error(U), B(U));
|
2485
2485
|
});
|
2486
2486
|
});
|
2487
2487
|
}, pa = (r, _, F) => {
|
2488
|
-
r !== "" && (i(29, K = !1), i(25,
|
2489
|
-
i(26,
|
2490
|
-
|
2488
|
+
r !== "" && (i(29, K = !1), i(25, ee = !0), i(1, be = "false"), i(2, we = "false"), i(31, re = !1), Ce = !1, i(28, J = +_ > +F), he(r, 0, +_).then((E) => {
|
2489
|
+
i(26, A = E), i(27, z = A.games.items), z && z.forEach((j) => {
|
2490
|
+
j.isFavorite = X(j.id);
|
2491
2491
|
});
|
2492
2492
|
}));
|
2493
2493
|
}, De = (r) => {
|
2494
2494
|
if (r.data)
|
2495
2495
|
switch (r.data.type) {
|
2496
2496
|
case "MostPlayedData":
|
2497
|
-
w == "MOSTPLAYED" && (i(29, K = !1), i(25,
|
2497
|
+
w == "MOSTPLAYED" && (i(29, K = !1), i(25, ee = !1), i(28, J = !1), i(27, z = r.data.mostPlayedGames), i(26, A = {
|
2498
2498
|
id: "MOSTPLAYED",
|
2499
2499
|
name: "Most Played Games",
|
2500
2500
|
games: {
|
@@ -2505,7 +2505,7 @@ function Fi(t, a, i) {
|
|
2505
2505
|
})), i(23, Q = !1);
|
2506
2506
|
break;
|
2507
2507
|
case "LastPlayedData":
|
2508
|
-
w == "LASTPLAYED" && (i(29, K = !1), i(25,
|
2508
|
+
w == "LASTPLAYED" && (i(29, K = !1), i(25, ee = !1), i(28, J = !1), i(27, z = r.data.lastPlayedGames), i(26, A = {
|
2509
2509
|
id: "LASTPLAYED",
|
2510
2510
|
name: "Last Played Games",
|
2511
2511
|
games: {
|
@@ -2527,23 +2527,23 @@ function Fi(t, a, i) {
|
|
2527
2527
|
i(29, K = !1), i(30, Ge = !1);
|
2528
2528
|
break;
|
2529
2529
|
case "SearchData":
|
2530
|
-
i(29, K = !0), i(30, Ge = !1), i(27, z = r.data.searchData.items || []), i(31, re = !0), r.data.receivedFavoriteResults && (
|
2530
|
+
i(29, K = !0), i(30, Ge = !1), i(27, z = r.data.searchData.items || []), i(31, re = !0), r.data.receivedFavoriteResults && (O = r.data.receivedFavoriteResults.items), z && z.forEach((_) => {
|
2531
2531
|
_.isFavorite = X(_.id);
|
2532
2532
|
});
|
2533
2533
|
break;
|
2534
2534
|
case `CategoryData_${w}`:
|
2535
|
-
i(29, K = !1), i(25,
|
2536
|
-
i(26,
|
2535
|
+
i(29, K = !1), i(25, ee = !0), i(1, be = "false"), i(2, we = "false"), i(31, re = !1), Ce = !1, r.data.receivedFavoriteResults && (O = r.data.receivedFavoriteResults.items), he(r.data.categoryId, 0, r.data.visiblegames).then((_) => {
|
2536
|
+
i(26, A = _), i(27, z = A.games.items), Le <= r.data.visiblegames ? i(28, J = !1) : i(28, J = !0), z && z.forEach((F) => {
|
2537
2537
|
F.isFavorite = X(F.id);
|
2538
2538
|
});
|
2539
2539
|
});
|
2540
2540
|
break;
|
2541
2541
|
case "CategoryChange":
|
2542
|
-
|
2542
|
+
ae = 20;
|
2543
2543
|
break;
|
2544
2544
|
case "ApplySorter":
|
2545
|
-
i(0, w = r.data.itemId),
|
2546
|
-
i(26,
|
2545
|
+
i(0, w = r.data.itemId), te = r.data.sortBy, he(w, 0, ae).then((_) => {
|
2546
|
+
i(26, A = _), i(27, z = A.games.items), i(28, J = !1);
|
2547
2547
|
});
|
2548
2548
|
break;
|
2549
2549
|
case "CategoryUpdate":
|
@@ -2563,10 +2563,10 @@ function Fi(t, a, i) {
|
|
2563
2563
|
break;
|
2564
2564
|
}
|
2565
2565
|
}, Ye = (r) => {
|
2566
|
-
i(29, K = !1), i(25,
|
2567
|
-
i(26,
|
2566
|
+
i(29, K = !1), i(25, ee = !1), i(31, re = !1), Ce = !0, i(34, me = !1), i(0, w = r), w !== "MOSTPLAYED" && i(28, J = !1), b !== "true" && he(w, 0, ae).then((_) => {
|
2567
|
+
i(26, A = _), A.games.items.forEach((F) => {
|
2568
2568
|
F.isFavorite = X(F.id);
|
2569
|
-
}), i(27, z =
|
2569
|
+
}), i(27, z = A.games.items), i(28, J = !1), z.length < 10 && e.data.origin == !1 && (We = !0, setTimeout(
|
2570
2570
|
() => {
|
2571
2571
|
window.postMessage({ type: "WidgetTopReference", scrollTop: We }, window.location.href);
|
2572
2572
|
},
|
@@ -2574,13 +2574,13 @@ function Fi(t, a, i) {
|
|
2574
2574
|
));
|
2575
2575
|
});
|
2576
2576
|
}, _a = () => {
|
2577
|
-
|
2577
|
+
A && (i(27, z = A.games.items), z.forEach((r) => {
|
2578
2578
|
r.isFavorite = X(r.id);
|
2579
2579
|
}));
|
2580
|
-
}, X = (r) =>
|
2580
|
+
}, X = (r) => O?.some((_) => _.id === r) ?? !1;
|
2581
2581
|
let va = async (r, _, F) => {
|
2582
2582
|
await Ue(r, _), W.includes(F) || W.push(F);
|
2583
|
-
let
|
2583
|
+
let j = {
|
2584
2584
|
method: "POST",
|
2585
2585
|
headers: {
|
2586
2586
|
"X-SessionID": _,
|
@@ -2589,7 +2589,7 @@ function Fi(t, a, i) {
|
|
2589
2589
|
},
|
2590
2590
|
body: JSON.stringify({ items: W })
|
2591
2591
|
};
|
2592
|
-
fetch(r,
|
2592
|
+
fetch(r, j).then((M) => M.json()).then(() => {
|
2593
2593
|
window.postMessage({ type: `AddFavoriteThumbnail_${F}` }, window.location.href);
|
2594
2594
|
}).catch((M) => {
|
2595
2595
|
console.error("Err", M);
|
@@ -2600,28 +2600,28 @@ function Fi(t, a, i) {
|
|
2600
2600
|
method: "DELETE",
|
2601
2601
|
headers: { "X-SessionID": _ }
|
2602
2602
|
};
|
2603
|
-
fetch(`${r}/${F}`, E).then((
|
2603
|
+
fetch(`${r}/${F}`, E).then((j) => j.json()).then(() => {
|
2604
2604
|
window.postMessage(
|
2605
2605
|
{
|
2606
2606
|
type: `RemoveFavoriteThumbnail_${F}`
|
2607
2607
|
},
|
2608
2608
|
window.location.href
|
2609
2609
|
), Ue(r, _);
|
2610
|
-
}), W.includes(F) && (W = W.filter((
|
2610
|
+
}), W.includes(F) && (W = W.filter((j) => j != F));
|
2611
2611
|
}, Ue = async (r, _) => fetch(r, {
|
2612
2612
|
method: "GET",
|
2613
2613
|
headers: { "X-SessionID": _ }
|
2614
2614
|
}).then((E) => E.json()).then((E) => {
|
2615
|
-
|
2615
|
+
O = E.items, se ? (O.forEach((M) => {
|
2616
2616
|
W.includes(M.id) || W.push(M.id);
|
2617
|
-
}), _a()) :
|
2617
|
+
}), _a()) : O.forEach((M) => {
|
2618
2618
|
M.isFavorite = X(M.id);
|
2619
2619
|
});
|
2620
|
-
const
|
2620
|
+
const j = Oe(O)?.length;
|
2621
2621
|
w === "FAVORITES" && (window.postMessage({
|
2622
2622
|
type: "UpdateFavoritesCount",
|
2623
|
-
favoriteGamesLength:
|
2624
|
-
}), Je(
|
2623
|
+
favoriteGamesLength: j
|
2624
|
+
}), Je(O));
|
2625
2625
|
}).catch((E) => {
|
2626
2626
|
console.error(E);
|
2627
2627
|
}), Je = (r) => {
|
@@ -2629,22 +2629,22 @@ function Fi(t, a, i) {
|
|
2629
2629
|
let _;
|
2630
2630
|
_ = r?.items || r || [], _.length > 0 && _.forEach((F) => {
|
2631
2631
|
F.gameModel && (F.gameModel.isFavorite = !0);
|
2632
|
-
}), i(40,
|
2632
|
+
}), i(40, ne.items = Oe(_, ne.items), ne), i(40, ne.name = "Favorites", ne), i(23, Q = !1);
|
2633
2633
|
}, wa = (r) => {
|
2634
|
-
|
2635
|
-
i(26,
|
2634
|
+
ae += 1, i(34, me = !0), ae <= Le && he(r, Si, ae).then((_) => {
|
2635
|
+
i(26, A = _), A.games.items.length > z.length && (i(27, z = A.games.items), z.forEach((F) => {
|
2636
2636
|
F.isFavorite = X(F.id);
|
2637
2637
|
})), i(34, me = !1);
|
2638
2638
|
});
|
2639
2639
|
}, ka = (r) => {
|
2640
|
-
|
2641
|
-
if (
|
2642
|
-
let
|
2643
|
-
const
|
2644
|
-
return
|
2645
|
-
const
|
2646
|
-
Ie(B).diff(
|
2647
|
-
}),
|
2640
|
+
const _ = r ?? [];
|
2641
|
+
if (_?.length === 0) return "";
|
2642
|
+
let F = "", E = 999999999999, j;
|
2643
|
+
const M = new Date(Date.now());
|
2644
|
+
return _.forEach((D, V) => {
|
2645
|
+
const x = new Date(D.schedules[0].startTime), B = new Date(D.schedules[0].endTime);
|
2646
|
+
Ie(B).diff(M) < E && (E = Ie(B).diff(M), j = V), Ie(M).isAfter(x) && Ie(M).isBefore(B) && (F = _[j].name);
|
2647
|
+
}), F;
|
2648
2648
|
}, Ke = (r) => {
|
2649
2649
|
window.postMessage(
|
2650
2650
|
{
|
@@ -2679,13 +2679,13 @@ function Fi(t, a, i) {
|
|
2679
2679
|
Ka(m);
|
2680
2680
|
}, Ca = () => {
|
2681
2681
|
let r = document.createElement("style");
|
2682
|
-
r.innerHTML = p,
|
2682
|
+
r.innerHTML = p, ie.appendChild(r);
|
2683
2683
|
}, Ma = () => {
|
2684
2684
|
let r = new URL(v), _ = document.createElement("style");
|
2685
2685
|
fetch(r.href).then((F) => F.text()).then((F) => {
|
2686
2686
|
_.innerHTML = F, setTimeout(
|
2687
2687
|
() => {
|
2688
|
-
|
2688
|
+
ie.appendChild(_);
|
2689
2689
|
},
|
2690
2690
|
1
|
2691
2691
|
);
|
@@ -2699,7 +2699,7 @@ function Fi(t, a, i) {
|
|
2699
2699
|
ce = r, i(36, ce);
|
2700
2700
|
});
|
2701
2701
|
}
|
2702
|
-
const Ia = (r) => Ke(
|
2702
|
+
const Ia = (r) => Ke(A.id);
|
2703
2703
|
function Na(r, _) {
|
2704
2704
|
oe[r ? "unshift" : "push"](() => {
|
2705
2705
|
ge[_] = r, i(22, ge);
|
@@ -2722,7 +2722,7 @@ function Fi(t, a, i) {
|
|
2722
2722
|
}
|
2723
2723
|
function ja(r) {
|
2724
2724
|
oe[r ? "unshift" : "push"](() => {
|
2725
|
-
|
2725
|
+
ie = r, i(21, ie);
|
2726
2726
|
});
|
2727
2727
|
}
|
2728
2728
|
return t.$$set = (r) => {
|
@@ -2737,8 +2737,8 @@ function Fi(t, a, i) {
|
|
2737
2737
|
524288 && Pe && ge && Fa(), t.$$.dirty[0] & /*lang, categoryid*/
|
2738
2738
|
33 && m && w && ya(), t.$$.dirty[0] & /*translationurl*/
|
2739
2739
|
2048 && G && da(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
2740
|
-
2097664 && p &&
|
2741
|
-
2098176 && v &&
|
2740
|
+
2097664 && p && ie && Ca(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
2741
|
+
2098176 && v && ie && Ma();
|
2742
2742
|
}, [
|
2743
2743
|
w,
|
2744
2744
|
be,
|
@@ -2761,12 +2761,12 @@ function Fi(t, a, i) {
|
|
2761
2761
|
b,
|
2762
2762
|
He,
|
2763
2763
|
Ve,
|
2764
|
-
|
2764
|
+
ie,
|
2765
2765
|
ge,
|
2766
2766
|
Q,
|
2767
2767
|
Ee,
|
2768
|
-
|
2769
|
-
|
2768
|
+
ee,
|
2769
|
+
A,
|
2770
2770
|
z,
|
2771
2771
|
J,
|
2772
2772
|
K,
|
@@ -2780,7 +2780,7 @@ function Fi(t, a, i) {
|
|
2780
2780
|
fe,
|
2781
2781
|
de,
|
2782
2782
|
Te,
|
2783
|
-
|
2783
|
+
ne,
|
2784
2784
|
o,
|
2785
2785
|
qe,
|
2786
2786
|
ka,
|
package/components/{CasinoMostPlayedSection-CN_wisPE.js → CasinoMostPlayedSection-CMEgkbWJ.js}
RENAMED
@@ -73,7 +73,7 @@ if (typeof window < "u") {
|
|
73
73
|
}
|
74
74
|
};
|
75
75
|
};
|
76
|
-
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-
|
76
|
+
customElements.define = a(customElements.define), import("./CasinoGamesCategorySection-hT0scUNY.js").then(({ default: e }) => {
|
77
77
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
78
78
|
});
|
79
79
|
}
|