@everymatrix/casino-my-games 1.77.20 → 1.77.21
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-B3MsVclW.js → CasinoFavoritesSection-BXiNKajp.js} +1108 -1138
- package/components/{CasinoFavoritesSection-DJJcT8CL.js → CasinoFavoritesSection-BhmYNoJe.js} +1131 -1161
- package/components/CasinoFavoritesSection-D6yt1tzP.cjs +3 -0
- package/components/{CasinoFilter-BN6M_P7p.js → CasinoFilter-ChoCgQ3w.js} +225 -157
- package/components/{CasinoFilter-D6drjDYX.js → CasinoFilter-CrAzQ_l-.js} +309 -239
- package/components/CasinoFilter-CtdTUQqV.cjs +16 -0
- package/components/{CasinoGameThumbnail-BH5vZ0wV.js → CasinoGameThumbnail-D1swZOWG.js} +104 -104
- package/components/{CasinoGameThumbnail-DBUGOyur.cjs → CasinoGameThumbnail-DEm78qtm.cjs} +1 -1
- package/components/{CasinoGameThumbnail-Gl-ZOHSx.js → CasinoGameThumbnail-DuJWa1yd.js} +107 -107
- package/components/{CasinoGamesCategorySection-CfSdzyPY.cjs → CasinoGamesCategorySection-BbI9zz0I.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-CxYAj6g8.js → CasinoGamesCategorySection-BnYJNqCW.js} +130 -130
- package/components/{CasinoGamesCategorySection-55-bWuYY.js → CasinoGamesCategorySection-K8poTXpJ.js} +71 -71
- package/components/{CasinoLastPlayedSection-Fn6HoEzj.cjs → CasinoLastPlayedSection-BiJT2JQs.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-B07ZSpFr.js → CasinoLastPlayedSection-COP0YJ11.js} +36 -36
- package/components/{CasinoLastPlayedSection-DtPqZF5Z.js → CasinoLastPlayedSection-D-enGXQ_.js} +36 -36
- package/components/{CasinoMostPlayedSection-6ZvIKOsQ.js → CasinoMostPlayedSection-Bqi_S8FR.js} +26 -26
- package/components/{CasinoMostPlayedSection-BIMIYNKw.cjs → CasinoMostPlayedSection-DZelWQsM.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-msk1gRdJ.js → CasinoMostPlayedSection-xfiPNhaG.js} +26 -26
- package/components/{CasinoMyGames-DS93f9XA.js → CasinoMyGames-BunXTxhl.js} +11 -11
- package/components/{CasinoMyGames-DN0dXvLl.js → CasinoMyGames-UmtQ5bU9.js} +11 -11
- package/components/{CasinoMyGames-Du1qlAYw.cjs → CasinoMyGames-ZGQP5CPd.cjs} +1 -1
- package/components/{CasinoSort-ByN7XZEq.js → CasinoSort-COot142U.js} +13 -13
- package/components/{CasinoSort-BZ2Z7Itc.js → CasinoSort-ClLb_08t.js} +13 -13
- package/components/{CasinoSort-DpGUwI27.cjs → CasinoSort-HBfFAv9Z.cjs} +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/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
- package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-DfVgiF6v.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BY8ZO6br.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoFavoritesSection-fjgz8yhg.cjs +0 -16
- package/components/CasinoFilter-DX-4wkxD.cjs +0 -3
- package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
package/components/{CasinoGamesCategorySection-55-bWuYY.js → CasinoGamesCategorySection-K8poTXpJ.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as Ee, i as _e, g as ii } from "./CasinoFilter-
|
|
3
|
-
import { h as Ne } from "./CasinoGameThumbnail-
|
|
1
|
+
import { b as Oa, $ as Ba, S as Ha, i as Va, s as qa, f as z, c as Wa, n as pe, d as y, e as S, g as G, k as d, h as Ya, J as Ja, o as Ka, j as se, G as X, q as w, v as W, p as D, w as T, l as le, K as pa, E as t, L as _a, m as Xa, t as Za, u as $, z as Qa, A as xa, B as $a, C as ei, D as ai } from "./CasinoFavoritesSection-BXiNKajp.js";
|
|
2
|
+
import { p as Ee, i as _e, g as ii } from "./CasinoFilter-ChoCgQ3w.js";
|
|
3
|
+
import { h as Ne } from "./CasinoGameThumbnail-D1swZOWG.js";
|
|
4
4
|
function $e(i, e) {
|
|
5
5
|
Oa(i, e);
|
|
6
6
|
}
|
|
7
7
|
function ni(i) {
|
|
8
|
-
|
|
8
|
+
Ba.set(i);
|
|
9
9
|
}
|
|
10
10
|
const ea = {
|
|
11
11
|
en: {
|
|
@@ -254,7 +254,7 @@ if (typeof window < "u") {
|
|
|
254
254
|
}
|
|
255
255
|
};
|
|
256
256
|
};
|
|
257
|
-
customElements.define = i(customElements.define), import("./CasinoGameThumbnail-
|
|
257
|
+
customElements.define = i(customElements.define), import("./CasinoGameThumbnail-D1swZOWG.js").then((e) => e.C).then(({ default: e }) => {
|
|
258
258
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
259
259
|
});
|
|
260
260
|
}
|
|
@@ -270,7 +270,7 @@ if (typeof window < "u") {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
};
|
|
273
|
-
customElements.define = i(customElements.define), import("./CasinoFilter-
|
|
273
|
+
customElements.define = i(customElements.define), import("./CasinoFilter-ChoCgQ3w.js").then((e) => e.C).then(({ default: e }) => {
|
|
274
274
|
!customElements.get("casino-filter") && customElements.define("casino-filter", e.element);
|
|
275
275
|
});
|
|
276
276
|
}
|
|
@@ -286,7 +286,7 @@ if (typeof window < "u") {
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
-
customElements.define = i(customElements.define), import("./CasinoSort-
|
|
289
|
+
customElements.define = i(customElements.define), import("./CasinoSort-ClLb_08t.js").then(({ default: e }) => {
|
|
290
290
|
!customElements.get("casino-sort") && customElements.define("casino-sort", e.element);
|
|
291
291
|
});
|
|
292
292
|
}
|
|
@@ -574,7 +574,7 @@ function oa(i) {
|
|
|
574
574
|
/*$_*/
|
|
575
575
|
i[43]("noFavoritesTitle") + ""
|
|
576
576
|
), N, v, g;
|
|
577
|
-
function c(b,
|
|
577
|
+
function c(b, H) {
|
|
578
578
|
return _e(
|
|
579
579
|
/*userAgent*/
|
|
580
580
|
b[44]
|
|
@@ -588,13 +588,13 @@ function oa(i) {
|
|
|
588
588
|
i[44]
|
|
589
589
|
) ? "NoFavoriteGamesMobile" : ""));
|
|
590
590
|
},
|
|
591
|
-
m(b,
|
|
592
|
-
S(b, e,
|
|
591
|
+
m(b, H) {
|
|
592
|
+
S(b, e, H), w(e, a), w(a, n), w(a, o), w(a, s), w(a, r), w(a, m), w(a, u), w(a, f), w(e, h), w(e, _), w(_, N), w(e, v), U.m(e, null), w(e, g);
|
|
593
593
|
},
|
|
594
|
-
p(b,
|
|
595
|
-
|
|
594
|
+
p(b, H) {
|
|
595
|
+
H[1] & /*$_*/
|
|
596
596
|
4096 && F !== (F = /*$_*/
|
|
597
|
-
b[43]("noFavoritesTitle") + "") && D(N, F), U.p(b,
|
|
597
|
+
b[43]("noFavoritesTitle") + "") && D(N, F), U.p(b, H);
|
|
598
598
|
},
|
|
599
599
|
d(b) {
|
|
600
600
|
b && y(e), U.d();
|
|
@@ -2503,10 +2503,10 @@ function Ii(i) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
const ee = "game-tile-";
|
|
2505
2505
|
let ji = 0;
|
|
2506
|
-
function
|
|
2506
|
+
function Li(i, e, a) {
|
|
2507
2507
|
let n;
|
|
2508
2508
|
Ya(i, ai, (l) => a(43, n = l));
|
|
2509
|
-
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: u = "" } = e, { favorites: f = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: F = "" } = e, { currency: N = "" } = e, { categoryid: v = "" } = e, { showgamename: g = "" } = e, { livecasino: c = "false" } = e, { gamepagemodalurl: ne = "true" } = e, { integratedgameframedesktop: U = "false" } = e, { integratedgameframemobile: b = "false" } = e, { casinomygames:
|
|
2509
|
+
let { endpoint: o = "" } = e, { datasource: s = "" } = e, { lang: r = "" } = e, { session: m = "" } = e, { userid: u = "" } = e, { favorites: f = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: F = "" } = e, { currency: N = "" } = e, { categoryid: v = "" } = e, { showgamename: g = "" } = e, { livecasino: c = "false" } = e, { gamepagemodalurl: ne = "true" } = e, { integratedgameframedesktop: U = "false" } = e, { integratedgameframemobile: b = "false" } = e, { casinomygames: H = "false" } = e, { addfilterselector: ve = "false" } = e, { addsortingselector: be = "false" } = e, { filterbylogo: We = "" } = e, { casinogamesgridslider: Ye = "false" } = e, { fetchviaevent: re = "false" } = e, { showallpage: Ie = "casino" } = e, { actionevent: je = "CategoryChange" } = e, { displayedgamecount: we = "10" } = e, { showallbuttongamescount: ke = "10" } = e, { mbsource: Le } = e, { lobbyscreen: Re = "true" } = e, { usesinglevendorfilter: ye = "false" } = e, { visiblegames: Ae = "10" } = e, Z = !0, Te = !1, Se, Fe, Y = !0, Je = window.navigator.userAgent, A, M = [], Q = !0, ae = 40, J = !1, Ge = !1, me = !1, Pe = !1, De = !0, te = !1, ue, Ue, ce, fe = !1, q, Ce = !1, ge = new Array(1e4), de = {}, Oe = "", ie = "", Me, Be, L, O = [], ze = new AbortController(), oe = { items: [], count: 0, name: "" };
|
|
2510
2510
|
const va = () => {
|
|
2511
2511
|
fetch(F).then((p) => p.json()).then((p) => {
|
|
2512
2512
|
Object.keys(p).forEach((k) => {
|
|
@@ -2525,7 +2525,7 @@ function Ri(i, e, a) {
|
|
|
2525
2525
|
p.isIntersecting ? (E * 1.2 > ae && Ga(v), a(40, de[k] = 1, de)) : a(40, de[k] = 0, de);
|
|
2526
2526
|
});
|
|
2527
2527
|
});
|
|
2528
|
-
const
|
|
2528
|
+
const He = (l, p) => {
|
|
2529
2529
|
let k = `${o}/v1/player/${p}/favorites/`;
|
|
2530
2530
|
a(25, Z = !0);
|
|
2531
2531
|
let E = {
|
|
@@ -2534,22 +2534,22 @@ function Ri(i, e, a) {
|
|
|
2534
2534
|
};
|
|
2535
2535
|
return new Promise((j, I) => {
|
|
2536
2536
|
fetch(k, E).then((C) => C.json()).then((C) => {
|
|
2537
|
-
if (a(25, Z = !1),
|
|
2537
|
+
if (a(25, Z = !1), L = [], C) {
|
|
2538
2538
|
C.items.forEach((V) => {
|
|
2539
|
-
V.gameModel && (
|
|
2539
|
+
V.gameModel && (L.push(V), O.includes(V.id) || O.push(V.id));
|
|
2540
2540
|
});
|
|
2541
|
-
const
|
|
2541
|
+
const R = Ee(L)?.length;
|
|
2542
2542
|
window.postMessage({
|
|
2543
2543
|
type: "UpdateFavoritesCount",
|
|
2544
|
-
favoriteGamesLength:
|
|
2544
|
+
favoriteGamesLength: R
|
|
2545
2545
|
});
|
|
2546
2546
|
} else
|
|
2547
|
-
|
|
2548
|
-
v === "FAVORITES" && qe(
|
|
2549
|
-
|
|
2547
|
+
L = [];
|
|
2548
|
+
v === "FAVORITES" && qe(L), M.forEach((R) => {
|
|
2549
|
+
R.isFavorite = B(R.id);
|
|
2550
2550
|
});
|
|
2551
2551
|
let K = M;
|
|
2552
|
-
a(29, M = void 0), a(29, M = K), j(
|
|
2552
|
+
a(29, M = void 0), a(29, M = K), j(L);
|
|
2553
2553
|
}).catch((C) => {
|
|
2554
2554
|
console.error(C), I(C);
|
|
2555
2555
|
});
|
|
@@ -2561,18 +2561,18 @@ function Ri(i, e, a) {
|
|
|
2561
2561
|
method: "GET",
|
|
2562
2562
|
headers: { "X-SessionID": l }
|
|
2563
2563
|
}).then((C) => C.json()).then((C) => {
|
|
2564
|
-
if (
|
|
2565
|
-
C.items?.forEach((
|
|
2566
|
-
|
|
2564
|
+
if (L = [], C) {
|
|
2565
|
+
C.items?.forEach((R) => {
|
|
2566
|
+
R.gameModel && (L.push(R), O.includes(R.id) || O.push(R.id));
|
|
2567
2567
|
});
|
|
2568
|
-
const K = Ee(
|
|
2568
|
+
const K = Ee(L)?.length;
|
|
2569
2569
|
window.postMessage({
|
|
2570
2570
|
type: "UpdateFavoritesCount",
|
|
2571
2571
|
favoriteGamesLength: K
|
|
2572
2572
|
});
|
|
2573
2573
|
} else
|
|
2574
|
-
|
|
2575
|
-
v === "FAVORITES" && qe(
|
|
2574
|
+
L = [];
|
|
2575
|
+
v === "FAVORITES" && qe(L), k(L);
|
|
2576
2576
|
}).catch((C) => {
|
|
2577
2577
|
console.error(C), E(C);
|
|
2578
2578
|
});
|
|
@@ -2582,7 +2582,7 @@ function Ri(i, e, a) {
|
|
|
2582
2582
|
ze && ze.abort(), ze = new AbortController();
|
|
2583
2583
|
const j = ze.signal;
|
|
2584
2584
|
te && a(25, Z = !0);
|
|
2585
|
-
let I = "", C = "", K = JSON.parse(localStorage.getItem("vendorFiltersByCategory")),
|
|
2585
|
+
let I = "", C = "", K = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), R = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
|
2586
2586
|
const V = ye === "true" ? "*" : l;
|
|
2587
2587
|
return (l.match(/\$/g) || []).length > 1 ? (I = l.split("$").slice(0, 2).join("$"), C = new URL(`${o}/v1/casino/groups/${s}/${I}/subGroups`)) : C = new URL(`${o}/v1/casino/groups/${s}/${l}`), new Promise((Da, Ua) => {
|
|
2588
2588
|
if (C.searchParams.delete("pagination"), C.searchParams.append("expand", "games(vendor)"), C.searchParams.append("fields", "id,name,games"), C.searchParams.append("platform", ii(Je)), C.searchParams.append("pagination", `games(offset=${p},limit=${k})`), C.searchParams.append("language", r), window.postMessage({ type: "CategoryVendors", categoryid: l }, window.location.href), K && K[V]?.length)
|
|
@@ -2593,12 +2593,12 @@ function Ri(i, e, a) {
|
|
|
2593
2593
|
}), C.searchParams.append("filter", `${P}`);
|
|
2594
2594
|
} else
|
|
2595
2595
|
a(34, Pe = !1);
|
|
2596
|
-
|
|
2596
|
+
R && (R[l] ? R[l] && R[l] != "All" && (R[l] == "isNew" || R[l] == "advancedTags(name(hot))" ? (C.searchParams.append("sortedField", `games(${R[l]})`), C.searchParams.append("orderBy", "DES")) : C.searchParams.append("sortedField", `games(${R[l]})`)) : ie && ie != "All" && (ie == "advancedTags(name(hot))" || ie == "isNew" ? (C.searchParams.append("sortedField", `games(${ie})`), C.searchParams.append("orderBy", "DES")) : C.searchParams.append("sortedField", `games(${ie})`))), fetch(C, { signal: j }).then((P) => P.json()).then((P) => {
|
|
2597
2597
|
j.aborted || (a(25, Z = !1), (l.match(/\$/g) || []).length > 1 && (P = P.items.filter((x) => {
|
|
2598
2598
|
if (x.id == l)
|
|
2599
2599
|
return x;
|
|
2600
|
-
})[0]), a(54,
|
|
2601
|
-
x.isFavorite =
|
|
2600
|
+
})[0]), a(54, Be = !0), a(26, Te = !1), Ue = P.games.total, E && P.games.items.forEach((x) => {
|
|
2601
|
+
x.isFavorite = B(x.id);
|
|
2602
2602
|
}), a(36, te = !0), Da(P));
|
|
2603
2603
|
}).catch((P) => {
|
|
2604
2604
|
P.name !== "AbortError" && (a(26, Te = !0), console.error(P), Ua(P));
|
|
@@ -2620,7 +2620,7 @@ function Ri(i, e, a) {
|
|
|
2620
2620
|
}, ka = (l, p, k) => {
|
|
2621
2621
|
l !== "" && (a(31, J = !1), a(27, Y = !0), a(1, ve = "false"), a(2, be = "false"), a(33, me = !1), Ce = !1, a(30, Q = +p > +k), he(l, 0, +p).then((E) => {
|
|
2622
2622
|
a(28, A = E), a(29, M = A.games.items), M && M.forEach((j) => {
|
|
2623
|
-
j.isFavorite =
|
|
2623
|
+
j.isFavorite = B(j.id);
|
|
2624
2624
|
});
|
|
2625
2625
|
}));
|
|
2626
2626
|
}, Ve = (l) => {
|
|
@@ -2636,7 +2636,7 @@ function Ri(i, e, a) {
|
|
|
2636
2636
|
items: l.data.mostPlayedGames
|
|
2637
2637
|
}
|
|
2638
2638
|
}), M && M.forEach((p) => {
|
|
2639
|
-
p.isFavorite =
|
|
2639
|
+
p.isFavorite = B(p.id);
|
|
2640
2640
|
})), a(25, Z = !1);
|
|
2641
2641
|
break;
|
|
2642
2642
|
case "LastPlayedData":
|
|
@@ -2649,26 +2649,26 @@ function Ri(i, e, a) {
|
|
|
2649
2649
|
items: l.data.lastPlayedGames
|
|
2650
2650
|
}
|
|
2651
2651
|
}), M && M.forEach((p) => {
|
|
2652
|
-
p.isFavorite =
|
|
2652
|
+
p.isFavorite = B(p.id);
|
|
2653
2653
|
})), a(25, Z = !1);
|
|
2654
2654
|
break;
|
|
2655
2655
|
case "RecentSearchData":
|
|
2656
2656
|
a(31, J = !0), a(32, Ge = !0), l.data.searchData.length > 0 ? (a(29, M = l.data.searchData), a(35, De = !0), M && M.forEach((p) => {
|
|
2657
|
-
p.isFavorite =
|
|
2657
|
+
p.isFavorite = B(p.id);
|
|
2658
2658
|
})) : (a(29, M = []), a(35, De = !1));
|
|
2659
2659
|
break;
|
|
2660
2660
|
case "OutOfRecentSearches":
|
|
2661
2661
|
a(31, J = !1), a(32, Ge = !1);
|
|
2662
2662
|
break;
|
|
2663
2663
|
case "SearchData":
|
|
2664
|
-
a(31, J = !0), a(32, Ge = !1), a(29, M = l.data.searchData.items || []), a(33, me = !0), l.data.receivedFavoriteResults && (
|
|
2665
|
-
p.isFavorite =
|
|
2664
|
+
a(31, J = !0), a(32, Ge = !1), a(29, M = l.data.searchData.items || []), a(33, me = !0), l.data.receivedFavoriteResults && (L = l.data.receivedFavoriteResults.items), M && M.forEach((p) => {
|
|
2665
|
+
p.isFavorite = B(p.id);
|
|
2666
2666
|
});
|
|
2667
2667
|
break;
|
|
2668
2668
|
case `CategoryData_${v}`:
|
|
2669
2669
|
a(31, J = !1), a(27, Y = !0), a(1, ve = "false"), a(2, be = "false"), a(33, me = !1), Ce = !1, he(l.data.categoryId, 0, l.data.visiblegames).then((p) => {
|
|
2670
2670
|
a(28, A = p), a(29, M = A.games.items), a(30, Q = !!(Ue <= l.data.visiblegames && Y)), M && M.forEach((k) => {
|
|
2671
|
-
k.isFavorite =
|
|
2671
|
+
k.isFavorite = B(k.id);
|
|
2672
2672
|
});
|
|
2673
2673
|
});
|
|
2674
2674
|
break;
|
|
@@ -2690,16 +2690,16 @@ function Ri(i, e, a) {
|
|
|
2690
2690
|
Sa(`${o}/v1/player/${u}/favorites`, m, l.data.id);
|
|
2691
2691
|
break;
|
|
2692
2692
|
case "UserSessionID":
|
|
2693
|
-
Se = l.data.session, Fe = l.data.userID, f == "true" && Fe && Fe.length && Se && Se.length > 0 &&
|
|
2693
|
+
Se = l.data.session, Fe = l.data.userID, f == "true" && Fe && Fe.length && Se && Se.length > 0 && He(Se, Fe);
|
|
2694
2694
|
break;
|
|
2695
2695
|
case "UpdateFavoredList":
|
|
2696
2696
|
v === "FAVORITES" && Qe(l.data.url, l.data.sessionID);
|
|
2697
2697
|
break;
|
|
2698
2698
|
}
|
|
2699
2699
|
}, Ze = (l, p = !1) => {
|
|
2700
|
-
a(31, J = !1), a(27, Y =
|
|
2700
|
+
a(31, J = !1), a(27, Y = Re === "true"), a(33, me = !1), Ce = !0, a(36, te = !1), a(0, v = l), v !== "MOSTPLAYED" && !p && a(30, Q = !1), H !== "true" && (!L && m && He(m, u), he(v, 0, ae).then((k) => {
|
|
2701
2701
|
a(28, A = k), A?.games?.items.forEach((E) => {
|
|
2702
|
-
E.isFavorite =
|
|
2702
|
+
E.isFavorite = B(E.id);
|
|
2703
2703
|
}), a(29, M = A?.games.items);
|
|
2704
2704
|
}).finally(
|
|
2705
2705
|
/*// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
|
@@ -2722,9 +2722,9 @@ function Ri(i, e, a) {
|
|
|
2722
2722
|
));
|
|
2723
2723
|
}, ya = () => {
|
|
2724
2724
|
A && (a(29, M = A.games.items), M.forEach((l) => {
|
|
2725
|
-
l.isFavorite =
|
|
2725
|
+
l.isFavorite = B(l.id);
|
|
2726
2726
|
}));
|
|
2727
|
-
},
|
|
2727
|
+
}, B = (l) => L?.some((p) => p.id === l) ?? !1;
|
|
2728
2728
|
let Sa = async (l, p, k) => {
|
|
2729
2729
|
await Qe(l, p), O.includes(k) || O.push(k);
|
|
2730
2730
|
let j = {
|
|
@@ -2767,16 +2767,16 @@ function Ri(i, e, a) {
|
|
|
2767
2767
|
method: "GET",
|
|
2768
2768
|
headers: { "X-SessionID": p }
|
|
2769
2769
|
}).then((E) => E.json()).then((E) => {
|
|
2770
|
-
|
|
2770
|
+
L = E.items, re ? (L.forEach((I) => {
|
|
2771
2771
|
O.includes(I.id) || O.push(I.id);
|
|
2772
|
-
}), ya()) :
|
|
2773
|
-
I.isFavorite =
|
|
2772
|
+
}), ya()) : L.forEach((I) => {
|
|
2773
|
+
I.isFavorite = B(I.id);
|
|
2774
2774
|
});
|
|
2775
|
-
const j = Ee(
|
|
2775
|
+
const j = Ee(L)?.length;
|
|
2776
2776
|
v === "FAVORITES" && (window.postMessage({
|
|
2777
2777
|
type: "UpdateFavoritesCount",
|
|
2778
2778
|
favoriteGamesLength: j
|
|
2779
|
-
}), qe(
|
|
2779
|
+
}), qe(L));
|
|
2780
2780
|
}).catch((E) => {
|
|
2781
2781
|
console.error(E);
|
|
2782
2782
|
}), qe = (l) => {
|
|
@@ -2789,7 +2789,7 @@ function Ri(i, e, a) {
|
|
|
2789
2789
|
}, Ga = (l) => {
|
|
2790
2790
|
ae += 1, a(36, te = !0), ae <= Ue && he(l, ji, ae).then((p) => {
|
|
2791
2791
|
a(28, A = p), A.games.items.length > M.length && (a(29, M = A.games.items), M.forEach((k) => {
|
|
2792
|
-
k.isFavorite =
|
|
2792
|
+
k.isFavorite = B(k.id);
|
|
2793
2793
|
})), a(36, te = !1);
|
|
2794
2794
|
});
|
|
2795
2795
|
}, Ca = (l) => {
|
|
@@ -2799,8 +2799,8 @@ function Ri(i, e, a) {
|
|
|
2799
2799
|
let k = "", E = 999999999999, j;
|
|
2800
2800
|
const I = new Date(Date.now());
|
|
2801
2801
|
return p.forEach((C, K) => {
|
|
2802
|
-
const
|
|
2803
|
-
Ne(V).diff(I) < E && (E = Ne(V).diff(I), j = K), Ne(I).isAfter(
|
|
2802
|
+
const R = new Date(C.schedules[0].startTime), V = new Date(C.schedules[0].endTime);
|
|
2803
|
+
Ne(V).diff(I) < E && (E = Ne(V).diff(I), j = K), Ne(I).isAfter(R) && Ne(I).isBefore(V) && (k = p[j].name);
|
|
2804
2804
|
}), k;
|
|
2805
2805
|
}, xe = (l) => {
|
|
2806
2806
|
a(30, Q = !1), window.postMessage(
|
|
@@ -2817,10 +2817,10 @@ function Ri(i, e, a) {
|
|
|
2817
2817
|
u && m && a(39, fe = !0);
|
|
2818
2818
|
break;
|
|
2819
2819
|
case "MOSTPLAYED":
|
|
2820
|
-
|
|
2820
|
+
H === "false" && u && m && a(39, fe = !1);
|
|
2821
2821
|
break;
|
|
2822
2822
|
case "LASTPLAYED":
|
|
2823
|
-
|
|
2823
|
+
H === "false" && u && m && a(39, fe = !1);
|
|
2824
2824
|
break;
|
|
2825
2825
|
default:
|
|
2826
2826
|
Ze(v, !0);
|
|
@@ -2846,12 +2846,12 @@ function Ri(i, e, a) {
|
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
2848
|
const ja = (l) => xe(A.id);
|
|
2849
|
-
function
|
|
2849
|
+
function La(l, p) {
|
|
2850
2850
|
se[l ? "unshift" : "push"](() => {
|
|
2851
2851
|
ge[p] = l, a(24, ge);
|
|
2852
2852
|
});
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function Ra(l) {
|
|
2855
2855
|
se[l ? "unshift" : "push"](() => {
|
|
2856
2856
|
ue = l, a(37, ue);
|
|
2857
2857
|
});
|
|
@@ -2872,20 +2872,20 @@ function Ri(i, e, a) {
|
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
return i.$$set = (l) => {
|
|
2875
|
-
"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, _ = l.clientstylingurl), "translationurl" in l && a(11, F = 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, ne = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(16, U = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(17, b = l.integratedgameframemobile), "casinomygames" in l && a(18,
|
|
2875
|
+
"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, _ = l.clientstylingurl), "translationurl" in l && a(11, F = 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, ne = l.gamepagemodalurl), "integratedgameframedesktop" in l && a(16, U = l.integratedgameframedesktop), "integratedgameframemobile" in l && a(17, b = l.integratedgameframemobile), "casinomygames" in l && a(18, H = l.casinomygames), "addfilterselector" in l && a(1, ve = l.addfilterselector), "addsortingselector" in l && a(2, be = l.addsortingselector), "filterbylogo" in l && a(19, We = l.filterbylogo), "casinogamesgridslider" in l && a(20, Ye = l.casinogamesgridslider), "fetchviaevent" in l && a(47, re = l.fetchviaevent), "showallpage" in l && a(48, Ie = l.showallpage), "actionevent" in l && a(49, je = l.actionevent), "displayedgamecount" in l && a(50, we = l.displayedgamecount), "showallbuttongamescount" in l && a(51, ke = l.showallbuttongamescount), "mbsource" in l && a(21, Le = l.mbsource), "lobbyscreen" in l && a(52, Re = l.lobbyscreen), "usesinglevendorfilter" in l && a(22, ye = l.usesinglevendorfilter), "visiblegames" in l && a(53, Ae = l.visiblegames);
|
|
2876
2876
|
}, i.$$.update = () => {
|
|
2877
2877
|
i.$$.dirty[0] & /*lang*/
|
|
2878
2878
|
32 && r && Na(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
|
2879
2879
|
57 | i.$$.dirty[1] & /*fetchviaevent, displayedgamecount, showallbuttongamescount*/
|
|
2880
2880
|
1638400 && (re === "false" || re === "") && o && r && v && s && we && ke && ka(v, we, ke), i.$$.dirty[0] & /*favorites, endpoint, session, userid*/
|
|
2881
|
-
456 && f === "true" && o && m && u &&
|
|
2881
|
+
456 && f === "true" && o && m && u && He(m, u), i.$$.dirty[0] & /*thumbnailContainer*/
|
|
2882
2882
|
16777216 | i.$$.dirty[1] & /*dataloaded*/
|
|
2883
|
-
8388608 &&
|
|
2883
|
+
8388608 && Be && ge && Ea(), i.$$.dirty[0] & /*lang, categoryid*/
|
|
2884
2884
|
33 && r && v && Ma(), i.$$.dirty[0] & /*translationurl*/
|
|
2885
2885
|
2048 && F && va(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
2886
2886
|
8389120 && h && q && Qa(q, h), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
2887
2887
|
8389632 && _ && q && xa(q, _), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
2888
|
-
10485760 && q && $a(q, `${
|
|
2888
|
+
10485760 && q && $a(q, `${Le}.Style`);
|
|
2889
2889
|
}, [
|
|
2890
2890
|
v,
|
|
2891
2891
|
ve,
|
|
@@ -2905,10 +2905,10 @@ function Ri(i, e, a) {
|
|
|
2905
2905
|
ne,
|
|
2906
2906
|
U,
|
|
2907
2907
|
b,
|
|
2908
|
-
|
|
2908
|
+
H,
|
|
2909
2909
|
We,
|
|
2910
2910
|
Ye,
|
|
2911
|
-
|
|
2911
|
+
Le,
|
|
2912
2912
|
ye,
|
|
2913
2913
|
q,
|
|
2914
2914
|
ge,
|
|
@@ -2939,24 +2939,24 @@ function Ri(i, e, a) {
|
|
|
2939
2939
|
je,
|
|
2940
2940
|
we,
|
|
2941
2941
|
ke,
|
|
2942
|
-
|
|
2942
|
+
Re,
|
|
2943
2943
|
Ae,
|
|
2944
|
-
|
|
2944
|
+
Be,
|
|
2945
2945
|
Ia,
|
|
2946
2946
|
ja,
|
|
2947
|
-
Ra,
|
|
2948
2947
|
La,
|
|
2948
|
+
Ra,
|
|
2949
2949
|
Aa,
|
|
2950
2950
|
Ta,
|
|
2951
2951
|
Pa
|
|
2952
2952
|
];
|
|
2953
2953
|
}
|
|
2954
|
-
class
|
|
2954
|
+
class Ri extends Ha {
|
|
2955
2955
|
constructor(e) {
|
|
2956
2956
|
super(), Va(
|
|
2957
2957
|
this,
|
|
2958
2958
|
e,
|
|
2959
|
-
|
|
2959
|
+
Li,
|
|
2960
2960
|
Ii,
|
|
2961
2961
|
qa,
|
|
2962
2962
|
{
|
|
@@ -3176,7 +3176,7 @@ class Li extends Ba {
|
|
|
3176
3176
|
this.$$set({ visiblegames: e }), z();
|
|
3177
3177
|
}
|
|
3178
3178
|
}
|
|
3179
|
-
ei(
|
|
3179
|
+
ei(Ri, { endpoint: {}, datasource: {}, lang: {}, session: {}, userid: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, currency: {}, categoryid: {}, showgamename: {}, livecasino: {}, gamepagemodalurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, casinomygames: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, casinogamesgridslider: {}, fetchviaevent: {}, showallpage: {}, actionevent: {}, displayedgamecount: {}, showallbuttongamescount: {}, mbsource: {}, lobbyscreen: {}, usesinglevendorfilter: {}, visiblegames: {} }, [], [], !0);
|
|
3180
3180
|
export {
|
|
3181
|
-
|
|
3181
|
+
Ri as default
|
|
3182
3182
|
};
|
package/components/{CasinoLastPlayedSection-Fn6HoEzj.cjs → CasinoLastPlayedSection-BiJT2JQs.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFavoritesSection-fjgz8yhg.cjs"),Q=require("./CasinoFilter-DX-4wkxD.cjs");function z(n,e){t.addMessages(n,e)}function W(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 X(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 p(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),t.set_custom_element_data(e,"categoryid","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,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",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])},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]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"translationurl",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])},d(a){a&&t.detach(e)}}}function x(n){let e,a=n[21]("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]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function $(n){let e,a;function i(u,d){return u[20]?x:p}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 ee(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:_=""}=e,{clientstyling:h=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:F=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:S=""}=e,{casinomygames:C="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:E="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,N=!1,w=[],O,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let m=new URL(`${o}/v1/player/${_}/games/last-played`);m.searchParams.append("unique",j),m.searchParams.append("limit",S),m.searchParams.append("order",L),m.searchParams.append("period",P),Q.getDevice(I)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),O=v?m:m.href,fetch(O).then(r=>r.json()).then(r=>{r.items=r.items.filter(K=>{let T=!0;return K.gameCode=="OddsMatrix2"&&(r.count--,T=!1),T}),s(r),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:r},window.location.href)}).catch(r=>{console.error(r),c(r)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(m=>{let f=new URL(`${o}/v1/casino/games/${m.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(r=>r.json())):c.push(fetch(f.href).then(r=>r.json()))}),Promise.all(c).then(m=>{w=m.filter(f=>!("error"in f)).map(f=>f[0]),C==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,N=!0)})},Z=()=>{W(d)};t.onMount(()=>()=>{});function B(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,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),"clientstyling"in s&&a(6,h=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=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,F=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,S=s.lastplayedlimit),"casinomygames"in s&&a(16,C=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,E=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&h&&g&&t.setClientStyling(g,h),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,_,h,y,b,v,R,A,M,F,k,D,C,E,q,g,N,i,P,L,S,j,B]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ee,$,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:8,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,mbsource:18},X,[-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 clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}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()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFavoritesSection-D6yt1tzP.cjs"),Q=require("./CasinoFilter-CtdTUQqV.cjs");function z(n,e){t.addMessages(n,e)}function W(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 X(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 p(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),t.set_custom_element_data(e,"categoryid","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,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",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])},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]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"translationurl",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])},d(a){a&&t.detach(e)}}}function x(n){let e,a=n[21]("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]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function $(n){let e,a;function i(u,d){return u[20]?x:p}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 ee(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:_=""}=e,{clientstyling:h=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:F=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:S=""}=e,{casinomygames:C="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:E="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,N=!1,w=[],O,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let m=new URL(`${o}/v1/player/${_}/games/last-played`);m.searchParams.append("unique",j),m.searchParams.append("limit",S),m.searchParams.append("order",L),m.searchParams.append("period",P),Q.getDevice(I)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),O=v?m:m.href,fetch(O).then(r=>r.json()).then(r=>{r.items=r.items.filter(K=>{let T=!0;return K.gameCode=="OddsMatrix2"&&(r.count--,T=!1),T}),s(r),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:r},window.location.href)}).catch(r=>{console.error(r),c(r)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(m=>{let f=new URL(`${o}/v1/casino/games/${m.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(r=>r.json())):c.push(fetch(f.href).then(r=>r.json()))}),Promise.all(c).then(m=>{w=m.filter(f=>!("error"in f)).map(f=>f[0]),C==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,N=!0)})},Z=()=>{W(d)};t.onMount(()=>()=>{});function B(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,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),"clientstyling"in s&&a(6,h=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=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,F=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,S=s.lastplayedlimit),"casinomygames"in s&&a(16,C=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,E=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&h&&g&&t.setClientStyling(g,h),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,_,h,y,b,v,R,A,M,F,k,D,C,E,q,g,N,i,P,L,S,j,B]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ee,$,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:8,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,mbsource:18},X,[-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 clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}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()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
|
package/components/{CasinoLastPlayedSection-B07ZSpFr.js → CasinoLastPlayedSection-COP0YJ11.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as ye } from "./CasinoFilter-
|
|
3
|
-
function
|
|
1
|
+
import { b as ee, $ as te, S as ae, i as se, s as ie, f as l, c as ne, n as B, d as D, e as M, q as Z, g as L, k as A, h as le, o as re, j as oe, p as ue, w as ce, E as i, z as ge, A as me, B as de, C as fe, D as he } from "./CasinoFavoritesSection-BhmYNoJe.js";
|
|
2
|
+
import { g as ye } from "./CasinoFilter-CrAzQ_l-.js";
|
|
3
|
+
function H(s, e) {
|
|
4
4
|
ee(s, e);
|
|
5
5
|
}
|
|
6
6
|
function be(s) {
|
|
7
7
|
te.set(s);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const V = {
|
|
10
10
|
en: {
|
|
11
11
|
noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
|
|
12
12
|
},
|
|
@@ -271,7 +271,7 @@ function _e(s) {
|
|
|
271
271
|
e = L("p"), n = ce(t), A(e, "class", "SearchLoading");
|
|
272
272
|
},
|
|
273
273
|
m(o, r) {
|
|
274
|
-
M(o, e, r),
|
|
274
|
+
M(o, e, r), Z(e, n);
|
|
275
275
|
},
|
|
276
276
|
p(o, r) {
|
|
277
277
|
r[0] & /*$_*/
|
|
@@ -285,10 +285,10 @@ function _e(s) {
|
|
|
285
285
|
}
|
|
286
286
|
function ke(s) {
|
|
287
287
|
let e, t;
|
|
288
|
-
function n(
|
|
288
|
+
function n(g, d) {
|
|
289
289
|
return (
|
|
290
290
|
/*lastPlayedEmpty*/
|
|
291
|
-
|
|
291
|
+
g[20] ? _e : we
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
let o = n(s), r = o(s);
|
|
@@ -296,41 +296,41 @@ function ke(s) {
|
|
|
296
296
|
c() {
|
|
297
297
|
e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
|
298
298
|
},
|
|
299
|
-
m(
|
|
300
|
-
M(
|
|
299
|
+
m(g, d) {
|
|
300
|
+
M(g, e, d), Z(e, t), r.m(t, null), s[26](e);
|
|
301
301
|
},
|
|
302
|
-
p(
|
|
303
|
-
o === (o = n(
|
|
302
|
+
p(g, d) {
|
|
303
|
+
o === (o = n(g)) && r ? r.p(g, d) : (r.d(1), r = o(g), r && (r.c(), r.m(t, null)));
|
|
304
304
|
},
|
|
305
|
-
i:
|
|
306
|
-
o:
|
|
307
|
-
d(
|
|
308
|
-
|
|
305
|
+
i: B,
|
|
306
|
+
o: B,
|
|
307
|
+
d(g) {
|
|
308
|
+
g && D(e), r.d(), s[26](null);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
function Le(s, e, t) {
|
|
313
313
|
let n;
|
|
314
314
|
le(s, he, (a) => t(21, n = a));
|
|
315
|
-
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency:
|
|
315
|
+
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
|
|
316
316
|
const Q = () => {
|
|
317
|
-
fetch(w).then((
|
|
318
|
-
Object.keys(
|
|
319
|
-
|
|
317
|
+
fetch(w).then((m) => m.json()).then((m) => {
|
|
318
|
+
Object.keys(m).forEach((u) => {
|
|
319
|
+
H(u, m[u]);
|
|
320
320
|
});
|
|
321
|
-
}).catch((
|
|
322
|
-
console.log(
|
|
321
|
+
}).catch((m) => {
|
|
322
|
+
console.log(m);
|
|
323
323
|
});
|
|
324
324
|
};
|
|
325
|
-
Object.keys(
|
|
326
|
-
|
|
325
|
+
Object.keys(V).forEach((a) => {
|
|
326
|
+
H(a, V[a]);
|
|
327
327
|
});
|
|
328
|
-
const W = () => new Promise((a,
|
|
328
|
+
const W = () => new Promise((a, m) => {
|
|
329
329
|
let u = new URL(`${o}/v1/player/${y}/games/last-played`);
|
|
330
|
-
u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"),
|
|
330
|
+
u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
|
|
331
331
|
c.items = c.items.filter(($) => {
|
|
332
|
-
let
|
|
333
|
-
return $.gameCode == "OddsMatrix2" && (c.count--,
|
|
332
|
+
let J = !0;
|
|
333
|
+
return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
|
|
334
334
|
}), a(c), window.postMessage(
|
|
335
335
|
{
|
|
336
336
|
type: "AddNewCategory",
|
|
@@ -339,16 +339,16 @@ function Le(s, e, t) {
|
|
|
339
339
|
window.location.href
|
|
340
340
|
), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
|
|
341
341
|
}).catch((c) => {
|
|
342
|
-
console.error(c),
|
|
342
|
+
console.error(c), m(c);
|
|
343
343
|
});
|
|
344
344
|
}), X = () => {
|
|
345
345
|
W().then((a) => {
|
|
346
346
|
if (a.count > 0) {
|
|
347
|
-
let
|
|
347
|
+
let m = [];
|
|
348
348
|
a.items.forEach((u) => {
|
|
349
349
|
let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
|
|
350
|
-
h.searchParams.append("datasource", r), _ ?
|
|
351
|
-
}), Promise.all(
|
|
350
|
+
h.searchParams.append("datasource", r), _ ? m.push(fetch(h.href).then((c) => c.json())) : m.push(fetch(h.href).then((c) => c.json()));
|
|
351
|
+
}), Promise.all(m).then((u) => {
|
|
352
352
|
k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
|
|
353
353
|
});
|
|
354
354
|
} else
|
|
@@ -365,19 +365,19 @@ function Le(s, e, t) {
|
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
return s.$$set = (a) => {
|
|
368
|
-
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2,
|
|
368
|
+
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, g = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, E = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
|
|
369
369
|
}, s.$$.update = () => {
|
|
370
370
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
371
371
|
41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
|
|
372
372
|
256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
373
|
-
524352 && b && f &&
|
|
374
|
-
524416 && v && f &&
|
|
373
|
+
524352 && b && f && ge(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
374
|
+
524416 && v && f && me(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
375
375
|
786432 && f && de(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
|
|
376
376
|
8 && d && p();
|
|
377
377
|
}, [
|
|
378
378
|
o,
|
|
379
379
|
r,
|
|
380
|
-
|
|
380
|
+
g,
|
|
381
381
|
d,
|
|
382
382
|
E,
|
|
383
383
|
y,
|
|
@@ -385,8 +385,8 @@ function Le(s, e, t) {
|
|
|
385
385
|
v,
|
|
386
386
|
w,
|
|
387
387
|
_,
|
|
388
|
-
F,
|
|
389
388
|
z,
|
|
389
|
+
F,
|
|
390
390
|
N,
|
|
391
391
|
O,
|
|
392
392
|
P,
|