@everymatrix/casino-last-played-section 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/{CasinoGamesCategorySection-Dm94_v6W.cjs → CasinoGamesCategorySection-2ovoa6CH.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-BCGzm5PP.js → CasinoGamesCategorySection-BAc8lRjx.js} +79 -71
- package/components/{CasinoGamesCategorySection--M4HOJTs.js → CasinoGamesCategorySection-pSYosM4o.js} +67 -59
- package/components/{CasinoLastPlayedSection-COfBV9lA.js → CasinoLastPlayedSection-076P77jo.js} +1 -1
- package/components/{CasinoLastPlayedSection-C0boObsT.cjs → CasinoLastPlayedSection-BWkeZKfB.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-DMmLtujJ.js → CasinoLastPlayedSection-BrNZ3giY.js} +1 -1
- package/es2015/casino-last-played-section.cjs +1 -1
- package/es2015/casino-last-played-section.js +1 -1
- package/esnext/casino-last-played-section.js +1 -1
- package/package.json +1 -1
package/components/{CasinoGamesCategorySection--M4HOJTs.js → CasinoGamesCategorySection-pSYosM4o.js}
RENAMED
@@ -15,7 +15,7 @@ var Ie = (i, e, a) => new Promise((n, o) => {
|
|
15
15
|
m((a = a.apply(i, e)).next());
|
16
16
|
});
|
17
17
|
import { a as Va, $ as qa, S as Wa, i as Ya, f as z, c as Ja, s as Ka, b as Xa, e as C, j as d, l as S, o as pe, p as F, q as Za, I as Qa, r as xa, u as $a, J as je, z as se, A as ei, B as ai, d as K, x as be, m as y, w as Q, E as ii, y as ni, t as P, n as O, C as le, K as wa, h as t, D as ti, G as ae, v as oi, L as ka } from "./CasinoFilter-BPwlHha2.js";
|
18
|
-
import { h as
|
18
|
+
import { h as Le } from "./CasinoGameThumbnail-CRJt980b.js";
|
19
19
|
function na(i, e) {
|
20
20
|
Va(i, e);
|
21
21
|
}
|
@@ -392,7 +392,7 @@ function ui(i) {
|
|
392
392
|
function a(s, r) {
|
393
393
|
return (
|
394
394
|
/*presentFilters*/
|
395
|
-
s[34] ?
|
395
|
+
s[34] ? Li : ji
|
396
396
|
);
|
397
397
|
}
|
398
398
|
let n = a(i), o = n(i);
|
@@ -2471,7 +2471,7 @@ function ji(i) {
|
|
2471
2471
|
}
|
2472
2472
|
};
|
2473
2473
|
}
|
2474
|
-
function
|
2474
|
+
function Li(i) {
|
2475
2475
|
let e, a = (
|
2476
2476
|
/*$_*/
|
2477
2477
|
i[43]("404") + ""
|
@@ -2493,7 +2493,7 @@ function Ai(i) {
|
|
2493
2493
|
}
|
2494
2494
|
};
|
2495
2495
|
}
|
2496
|
-
function
|
2496
|
+
function Ai(i) {
|
2497
2497
|
let e;
|
2498
2498
|
function a(s, r) {
|
2499
2499
|
return (
|
@@ -2527,7 +2527,7 @@ let Ri = 0;
|
|
2527
2527
|
function Ti(i, e, a) {
|
2528
2528
|
let n;
|
2529
2529
|
Za(i, ii, (l) => a(43, n = l));
|
2530
|
-
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:
|
2530
|
+
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: "" };
|
2531
2531
|
const ya = () => {
|
2532
2532
|
fetch(G).then((_) => _.json()).then((_) => {
|
2533
2533
|
Object.keys(_).forEach((w) => {
|
@@ -2553,7 +2553,7 @@ function Ti(i, e, a) {
|
|
2553
2553
|
method: "GET",
|
2554
2554
|
headers: { "X-SessionID": l }
|
2555
2555
|
};
|
2556
|
-
return new Promise((
|
2556
|
+
return new Promise((L, A) => {
|
2557
2557
|
fetch(w, E).then((k) => k.json()).then((k) => {
|
2558
2558
|
var D;
|
2559
2559
|
if (a(25, x = !1), j = [], k) {
|
@@ -2567,19 +2567,19 @@ function Ti(i, e, a) {
|
|
2567
2567
|
});
|
2568
2568
|
} else
|
2569
2569
|
j = [];
|
2570
|
-
v === "FAVORITES" &&
|
2570
|
+
v === "FAVORITES" && Je(j), M.forEach((B) => {
|
2571
2571
|
B.isFavorite = V(B.id);
|
2572
2572
|
});
|
2573
2573
|
let J = M;
|
2574
|
-
a(29, M = void 0), a(29, M = J),
|
2574
|
+
a(29, M = void 0), a(29, M = J), L(j);
|
2575
2575
|
}).catch((k) => {
|
2576
|
-
console.error(k),
|
2576
|
+
console.error(k), A(k);
|
2577
2577
|
});
|
2578
2578
|
});
|
2579
2579
|
}, Sa = (l, _) => new Promise((w, E) => {
|
2580
2580
|
if (l && _) {
|
2581
|
-
let
|
2582
|
-
fetch(
|
2581
|
+
let L = `${o}/v1/player/${_}/favorites/`;
|
2582
|
+
fetch(L, {
|
2583
2583
|
method: "GET",
|
2584
2584
|
headers: { "X-SessionID": l }
|
2585
2585
|
}).then((k) => k.json()).then((k) => {
|
@@ -2595,21 +2595,21 @@ function Ti(i, e, a) {
|
|
2595
2595
|
});
|
2596
2596
|
} else
|
2597
2597
|
j = [];
|
2598
|
-
v === "FAVORITES" &&
|
2598
|
+
v === "FAVORITES" && Je(j), w(j);
|
2599
2599
|
}).catch((k) => {
|
2600
2600
|
console.error(k), E(k);
|
2601
2601
|
});
|
2602
2602
|
} else
|
2603
2603
|
w([]);
|
2604
|
-
}),
|
2604
|
+
}), xe = (l, _, w, E) => {
|
2605
2605
|
Ee && Ee.abort(), Ee = new AbortController();
|
2606
|
-
const
|
2606
|
+
const L = Ee.signal;
|
2607
2607
|
a(25, x = !0);
|
2608
|
-
let
|
2608
|
+
let A = "", k = "", J = JSON.parse(localStorage.getItem("vendorFiltersByCategory")), D = JSON.parse(localStorage.getItem("vendorSortingBy"));
|
2609
2609
|
const B = Se === "true" ? "*" : l;
|
2610
|
-
return (l.match(/\$/g) || []).length > 1 ? (
|
2610
|
+
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) => {
|
2611
2611
|
var ia;
|
2612
|
-
if (k.searchParams.delete("pagination"), k.searchParams.append("expand", "games(vendor)"), k.searchParams.append("fields", "id,name,games"), k.searchParams.append("platform", ni(
|
2612
|
+
if (k.searchParams.delete("pagination"), k.searchParams.append("expand", "games(vendor)"), k.searchParams.append("fields", "id,name,games"), k.searchParams.append("platform", ni(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))
|
2613
2613
|
if (Se === "true" || X === !1 && ge === !1) {
|
2614
2614
|
let U = "";
|
2615
2615
|
a(34, Oe = !0), J[B].forEach((ee) => {
|
@@ -2617,8 +2617,8 @@ function Ti(i, e, a) {
|
|
2617
2617
|
}), k.searchParams.append("filter", `${U}`);
|
2618
2618
|
} else
|
2619
2619
|
a(34, Oe = !1);
|
2620
|
-
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:
|
2621
|
-
|
2620
|
+
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) => {
|
2621
|
+
L.aborted || (a(25, x = !1), (l.match(/\$/g) || []).length > 1 && (U = U.items.filter((ee) => {
|
2622
2622
|
if (ee.id == l)
|
2623
2623
|
return ee;
|
2624
2624
|
})[0]), a(54, qe = !0), a(26, Ue = !1), He = U.games.total, E && U.games.items.forEach((ee) => {
|
@@ -2630,21 +2630,21 @@ function Ti(i, e, a) {
|
|
2630
2630
|
Fa();
|
2631
2631
|
});
|
2632
2632
|
});
|
2633
|
-
}, _e = (l, _, w) => new Promise((E,
|
2634
|
-
f == "true" ? Sa(m, u).then((
|
2635
|
-
|
2633
|
+
}, _e = (l, _, w) => new Promise((E, L) => {
|
2634
|
+
f == "true" ? Sa(m, u).then((A) => {
|
2635
|
+
xe(l, _, w, A).then((k) => {
|
2636
2636
|
E(k);
|
2637
2637
|
});
|
2638
|
-
}) :
|
2639
|
-
E(
|
2638
|
+
}) : xe(l, _, w, null).then((A) => {
|
2639
|
+
E(A);
|
2640
2640
|
});
|
2641
2641
|
}), Fa = () => {
|
2642
2642
|
const l = Y.getRootNode().host;
|
2643
2643
|
l.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: l } }));
|
2644
2644
|
}, Ga = (l, _, w) => {
|
2645
2645
|
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) => {
|
2646
|
-
a(28, I = E), a(29, M = I.games.items), M && M.forEach((
|
2647
|
-
|
2646
|
+
a(28, I = E), a(29, M = I.games.items), M && M.forEach((L) => {
|
2647
|
+
L.isFavorite = V(L.id);
|
2648
2648
|
});
|
2649
2649
|
}));
|
2650
2650
|
}, Ye = (l) => {
|
@@ -2705,7 +2705,7 @@ function Ti(i, e, a) {
|
|
2705
2705
|
});
|
2706
2706
|
break;
|
2707
2707
|
case "CategoryUpdate":
|
2708
|
-
|
2708
|
+
$e(l.data.itemId);
|
2709
2709
|
break;
|
2710
2710
|
case `SetUnfavoredGame${v}`:
|
2711
2711
|
za(`${o}/v1/player/${u}/favorites`, m, l.data.id);
|
@@ -2717,10 +2717,10 @@ function Ti(i, e, a) {
|
|
2717
2717
|
Fe = l.data.session, Ge = l.data.userID, f == "true" && Ge && Ge.length && Fe && Fe.length > 0 && We(Fe, Ge);
|
2718
2718
|
break;
|
2719
2719
|
case "UpdateFavoredList":
|
2720
|
-
v === "FAVORITES" &&
|
2720
|
+
v === "FAVORITES" && ea(l.data.url, l.data.sessionID);
|
2721
2721
|
break;
|
2722
2722
|
}
|
2723
|
-
},
|
2723
|
+
}, $e = (l) => {
|
2724
2724
|
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((_) => {
|
2725
2725
|
var w;
|
2726
2726
|
a(28, I = _), (w = I == null ? void 0 : I.games) == null || w.items.forEach((E) => {
|
@@ -2754,8 +2754,8 @@ function Ti(i, e, a) {
|
|
2754
2754
|
return (_ = j == null ? void 0 : j.some((w) => w.id === l)) != null ? _ : !1;
|
2755
2755
|
};
|
2756
2756
|
let Ma = (l, _, w) => Ie(this, null, function* () {
|
2757
|
-
yield
|
2758
|
-
let
|
2757
|
+
yield ea(l, _), H.includes(w) || H.push(w);
|
2758
|
+
let L = {
|
2759
2759
|
method: "POST",
|
2760
2760
|
headers: {
|
2761
2761
|
"X-SessionID": _,
|
@@ -2764,10 +2764,14 @@ function Ti(i, e, a) {
|
|
2764
2764
|
},
|
2765
2765
|
body: JSON.stringify({ items: H })
|
2766
2766
|
};
|
2767
|
-
fetch(l,
|
2768
|
-
window.postMessage({ type: `AddFavoriteThumbnail_${w}` }, window.location.href)
|
2769
|
-
|
2770
|
-
|
2767
|
+
fetch(l, L).then((A) => A.json()).then(() => {
|
2768
|
+
window.postMessage({ type: `AddFavoriteThumbnail_${w}` }, window.location.href), window.postMessage({
|
2769
|
+
type: "UpdateFavoredList",
|
2770
|
+
url: l,
|
2771
|
+
sessionID: _
|
2772
|
+
});
|
2773
|
+
}).catch((A) => {
|
2774
|
+
console.error("Err", A);
|
2771
2775
|
});
|
2772
2776
|
});
|
2773
2777
|
const za = (l, _, w) => {
|
@@ -2775,34 +2779,38 @@ function Ti(i, e, a) {
|
|
2775
2779
|
method: "DELETE",
|
2776
2780
|
headers: { "X-SessionID": _ }
|
2777
2781
|
};
|
2778
|
-
fetch(`${l}/${w}`, E).then((
|
2782
|
+
fetch(`${l}/${w}`, E).then((L) => L.json()).then(() => {
|
2779
2783
|
window.postMessage(
|
2780
2784
|
{
|
2781
2785
|
type: `RemoveFavoriteThumbnail_${w}`
|
2782
2786
|
},
|
2783
2787
|
window.location.href
|
2784
|
-
),
|
2785
|
-
|
2786
|
-
|
2788
|
+
), window.postMessage({
|
2789
|
+
type: "UpdateFavoredList",
|
2790
|
+
url: l,
|
2791
|
+
sessionID: _
|
2792
|
+
});
|
2793
|
+
}), H.includes(w) && (H = H.filter((L) => L != w));
|
2794
|
+
}, ea = (l, _) => Ie(this, null, function* () {
|
2787
2795
|
return fetch(l, {
|
2788
2796
|
method: "GET",
|
2789
2797
|
headers: { "X-SessionID": _ }
|
2790
2798
|
}).then((E) => E.json()).then((E) => {
|
2791
|
-
var
|
2799
|
+
var A;
|
2792
2800
|
j = E.items, re ? (j.forEach((k) => {
|
2793
2801
|
H.includes(k.id) || H.push(k.id);
|
2794
2802
|
}), Ca()) : j.forEach((k) => {
|
2795
2803
|
k.isFavorite = V(k.id);
|
2796
2804
|
});
|
2797
|
-
const
|
2805
|
+
const L = (A = je(j)) == null ? void 0 : A.length;
|
2798
2806
|
v === "FAVORITES" && (window.postMessage({
|
2799
2807
|
type: "UpdateFavoritesCount",
|
2800
|
-
favoriteGamesLength:
|
2801
|
-
}),
|
2808
|
+
favoriteGamesLength: L
|
2809
|
+
}), Je(j));
|
2802
2810
|
}).catch((E) => {
|
2803
2811
|
console.error(E);
|
2804
2812
|
});
|
2805
|
-
}),
|
2813
|
+
}), Je = (l) => {
|
2806
2814
|
if (!l)
|
2807
2815
|
return;
|
2808
2816
|
let _;
|
@@ -2819,18 +2827,18 @@ function Ti(i, e, a) {
|
|
2819
2827
|
const _ = l != null ? l : [];
|
2820
2828
|
if ((_ == null ? void 0 : _.length) === 0)
|
2821
2829
|
return "";
|
2822
|
-
let w = "", E = 999999999999,
|
2823
|
-
const
|
2830
|
+
let w = "", E = 999999999999, L;
|
2831
|
+
const A = new Date(Date.now());
|
2824
2832
|
return _.forEach((k, J) => {
|
2825
2833
|
const D = new Date(k.schedules[0].startTime), B = new Date(k.schedules[0].endTime);
|
2826
|
-
|
2834
|
+
Le(B).diff(A) < E && (E = Le(B).diff(A), L = J), Le(A).isAfter(D) && Le(A).isBefore(B) && (w = _[L].name);
|
2827
2835
|
}), w;
|
2828
2836
|
}, aa = (l) => {
|
2829
2837
|
a(30, $ = !1), window.postMessage(
|
2830
2838
|
{
|
2831
2839
|
type: `${Re}`,
|
2832
2840
|
itemId: l,
|
2833
|
-
showallpage:
|
2841
|
+
showallpage: Ae
|
2834
2842
|
},
|
2835
2843
|
window.location.href
|
2836
2844
|
);
|
@@ -2846,22 +2854,22 @@ function Ti(i, e, a) {
|
|
2846
2854
|
q === "false" && u && m && a(39, ge = !1);
|
2847
2855
|
break;
|
2848
2856
|
default:
|
2849
|
-
|
2857
|
+
$e(v);
|
2850
2858
|
break;
|
2851
2859
|
}
|
2852
2860
|
}, ja = () => {
|
2853
2861
|
document[ze] ? a(41, Ve = "disconnect") : a(41, Ve = "connect");
|
2854
|
-
},
|
2862
|
+
}, La = () => {
|
2855
2863
|
Me && de.forEach((l, _) => {
|
2856
2864
|
l && (l.elems_index = _, Ne.observe(l));
|
2857
2865
|
});
|
2858
|
-
},
|
2866
|
+
}, Aa = () => {
|
2859
2867
|
si(r);
|
2860
2868
|
};
|
2861
2869
|
Qa(() => {
|
2862
2870
|
Ne == null || Ne.disconnect();
|
2863
2871
|
}), xa(() => (window.addEventListener("visibilitychange", (l) => ja()), window.addEventListener("message", Ye, !1), () => {
|
2864
|
-
window.emMessageBus &&
|
2872
|
+
window.emMessageBus && Ze && Ze.unsubscribe(), window.removeEventListener("message", Ye), window.removeEventListener("visibilitychange", Ye);
|
2865
2873
|
}));
|
2866
2874
|
function Ra(l) {
|
2867
2875
|
se[l ? "unshift" : "push"](() => {
|
@@ -2895,15 +2903,15 @@ function Ti(i, e, a) {
|
|
2895
2903
|
});
|
2896
2904
|
}
|
2897
2905
|
return i.$$set = (l) => {
|
2898
|
-
"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,
|
2906
|
+
"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);
|
2899
2907
|
}, i.$$.update = () => {
|
2900
2908
|
i.$$.dirty[0] & /*lang*/
|
2901
|
-
32 && r &&
|
2909
|
+
32 && r && Aa(), i.$$.dirty[0] & /*endpoint, lang, categoryid, datasource*/
|
2902
2910
|
57 | i.$$.dirty[1] & /*fetchviaevent, displayedgamecount, showallbuttongamescount*/
|
2903
2911
|
1638400 && (re === "false" || re === "") && o && r && v && s && ke && ye && Ga(v, ke, ye), i.$$.dirty[0] & /*favorites, endpoint, session, userid*/
|
2904
2912
|
456 && f === "true" && o && m && u && We(m, u), i.$$.dirty[0] & /*thumbnailContainer*/
|
2905
2913
|
16777216 | i.$$.dirty[1] & /*dataloaded*/
|
2906
|
-
8388608 && qe && de &&
|
2914
|
+
8388608 && qe && de && La(), i.$$.dirty[0] & /*lang, categoryid*/
|
2907
2915
|
33 && r && v && Ia(), i.$$.dirty[0] & /*translationurl*/
|
2908
2916
|
2048 && G && ya(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
2909
2917
|
8389120 && h && Y && ei(Y, h), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
@@ -2929,8 +2937,8 @@ function Ti(i, e, a) {
|
|
2929
2937
|
R,
|
2930
2938
|
b,
|
2931
2939
|
q,
|
2940
|
+
Ke,
|
2932
2941
|
Xe,
|
2933
|
-
Ze,
|
2934
2942
|
Te,
|
2935
2943
|
Se,
|
2936
2944
|
Y,
|
@@ -2954,11 +2962,11 @@ function Ti(i, e, a) {
|
|
2954
2962
|
Ve,
|
2955
2963
|
oe,
|
2956
2964
|
n,
|
2957
|
-
|
2965
|
+
Qe,
|
2958
2966
|
Na,
|
2959
2967
|
aa,
|
2960
2968
|
re,
|
2961
|
-
|
2969
|
+
Ae,
|
2962
2970
|
Re,
|
2963
2971
|
ke,
|
2964
2972
|
ye,
|
@@ -2980,7 +2988,7 @@ class Pi extends Wa {
|
|
2980
2988
|
this,
|
2981
2989
|
e,
|
2982
2990
|
Ti,
|
2983
|
-
|
2991
|
+
Ai,
|
2984
2992
|
Ka,
|
2985
2993
|
{
|
2986
2994
|
endpoint: 3,
|
package/components/{CasinoLastPlayedSection-COfBV9lA.js → CasinoLastPlayedSection-076P77jo.js}
RENAMED
@@ -43,7 +43,7 @@ if (typeof window != "undefined") {
|
|
43
43
|
}
|
44
44
|
};
|
45
45
|
};
|
46
|
-
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection
|
46
|
+
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-pSYosM4o.js").then(({ default: e }) => {
|
47
47
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
48
48
|
});
|
49
49
|
}
|
package/components/{CasinoLastPlayedSection-C0boObsT.cjs → CasinoLastPlayedSection-BWkeZKfB.cjs}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function z(n,e){t.addMessages(n,e)}function K(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."}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-Dm94_v6W.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(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 W(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),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[17]),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},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]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&131072&&t.set_custom_element_data(e,"mbsource",a[17]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),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,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(19,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(21,b=s.translationurl),"livecasino"in s&&a(8,v=s.livecasino),"integratedgameframemobile"in s&&a(9,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,E=s.gamepagemodalurl),"showgamename"in s&&a(12,M=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(15,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(16,F=s.fetchviaevent),"mbsource"in s&&a(17,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&2097152&&b&&J(),n.$$.dirty[0]&262208&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&262272&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&393216&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,v,R,A,E,M,k,D,S,F,q,g,O,i,b,P,L,C,j,p]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:21,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:15,lastplayedunique:25,fetchviaevent:16,mbsource:17},Q,[-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[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}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[15]}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[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}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("./CasinoFilter-BTWS0FsQ.cjs");function z(n,e){t.addMessages(n,e)}function K(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."}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-2ovoa6CH.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(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 W(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),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[17]),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},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]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&131072&&t.set_custom_element_data(e,"mbsource",a[17]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),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,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(19,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(21,b=s.translationurl),"livecasino"in s&&a(8,v=s.livecasino),"integratedgameframemobile"in s&&a(9,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,E=s.gamepagemodalurl),"showgamename"in s&&a(12,M=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(15,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(16,F=s.fetchviaevent),"mbsource"in s&&a(17,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&2097152&&b&&J(),n.$$.dirty[0]&262208&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&262272&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&393216&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,v,R,A,E,M,k,D,S,F,q,g,O,i,b,P,L,C,j,p]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:21,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:15,lastplayedunique:25,fetchviaevent:16,mbsource:17},Q,[-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[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}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[15]}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[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}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-DMmLtujJ.js → CasinoLastPlayedSection-BrNZ3giY.js}
RENAMED
@@ -43,7 +43,7 @@ if (typeof window < "u") {
|
|
43
43
|
}
|
44
44
|
};
|
45
45
|
};
|
46
|
-
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-
|
46
|
+
customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-BAc8lRjx.js").then(({ default: e }) => {
|
47
47
|
!customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
|
48
48
|
});
|
49
49
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLastPlayedSection-
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoLastPlayedSection-BWkeZKfB.cjs")).then(({default:t})=>{!customElements.get("casino-last-played-section")&&customElements.define("casino-last-played-section",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoLastPlayedSection-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoLastPlayedSection-076P77jo.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-last-played-section") && customElements.define("casino-last-played-section", t.element);
|
15
15
|
});
|
16
16
|
}
|