@everymatrix/casino-page-nd 1.50.1 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCollectionsProviders-CKwYUDjs.js → CasinoCollectionsProviders--fiR9zGC.js} +5 -0
- package/components/CasinoCollectionsProviders-Cg6Drvjc.cjs +1 -0
- package/components/{CasinoFavoritesSectionNd-WAt5xtT2.cjs → CasinoFavoritesSectionNd-C1153GlJ.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-BfXCO_ps.js → CasinoFavoritesSectionNd-DSeuuLtY.js} +1 -1
- package/components/{CasinoFilter-DBVXUEwE.js → CasinoFilter-DKjI7P-Q.js} +6 -0
- package/components/CasinoFilter-DPnwUm9Y.cjs +1 -0
- package/components/{CasinoGameThumbnailNd-BzUE1xEf.cjs → CasinoGameThumbnailNd-CvUlQLWz.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-2t_-sr1M.js → CasinoGameThumbnailNd-OcelQvI7.js} +8 -0
- package/components/{CasinoGamesCategorySectionNd-0b7W_YTC.js → CasinoGamesCategorySectionNd-C_ARG2Et.js} +203 -190
- package/components/CasinoGamesCategorySectionNd-yig6p1c3.cjs +1 -0
- package/components/{CasinoJackpotBanner-BBPz6fJs.js → CasinoJackpotBanner-DWGfhATO.js} +30 -27
- package/components/CasinoJackpotBanner-DxmBYDQZ.cjs +1 -0
- package/components/CasinoLastPlayedSectionNd-BqTS0sBE.cjs +1 -0
- package/components/{CasinoLastPlayedSectionNd-B8uYy0lx.js → CasinoLastPlayedSectionNd-C-5tfNvV.js} +43 -40
- package/components/{CasinoMostPlayedSectionNd-D02yV4gY.js → CasinoMostPlayedSectionNd-CMOMYpjt.js} +35 -32
- package/components/CasinoMostPlayedSectionNd-DKpVU4pB.cjs +1 -0
- package/components/CasinoMyGamesNd-Blwl1jVl.cjs +1 -0
- package/components/{CasinoMyGamesNd-DiwwLNV_.js → CasinoMyGamesNd-Dbi1-8t7.js} +40 -35
- package/components/{CasinoPageNd-47r62ZN1.js → CasinoPageNd-Ch1Q5T2P.js} +249 -237
- package/components/CasinoPageNd-Ct2s0-2Y.cjs +1 -0
- package/components/CasinoRandomGame-D6B_2z33.cjs +2 -0
- package/components/{CasinoRandomGame-DMy0-33C.js → CasinoRandomGame-Dual7qoW.js} +63 -57
- package/components/{CasinoSearchNd-DIzJ4XVt.js → CasinoSearchNd-D3FVE2oW.js} +35 -25
- package/components/CasinoSearchNd-DtjjLZOk.cjs +1 -0
- package/components/CasinoSort-E-_378b4.cjs +1 -0
- package/components/{CasinoSort-Box235sv.js → CasinoSort-Nb_NdM0g.js} +29 -22
- package/components/CasinoWinners-CSgsVlTu.cjs +1 -0
- package/components/{CasinoWinners-D52EAddg.js → CasinoWinners-dnaElXcd.js} +102 -92
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCollectionsProviders-YR7GKLly.cjs +0 -1
- package/components/CasinoFilter-D6eMFElH.cjs +0 -1
- package/components/CasinoGamesCategorySectionNd-BPSV_HLq.cjs +0 -1
- package/components/CasinoJackpotBanner-G5Nb0_vs.cjs +0 -1
- package/components/CasinoLastPlayedSectionNd-C_7Lr07v.cjs +0 -1
- package/components/CasinoMostPlayedSectionNd-DrgACeul.cjs +0 -1
- package/components/CasinoMyGamesNd-Dl37BG8j.cjs +0 -1
- package/components/CasinoPageNd-sEt7woKn.cjs +0 -1
- package/components/CasinoRandomGame-_nxxS7dr.cjs +0 -2
- package/components/CasinoSearchNd-B-_YK9Lp.cjs +0 -1
- package/components/CasinoSort-DhHO6YL0.cjs +0 -1
- package/components/CasinoWinners-BKrBPGeL.cjs +0 -1
package/components/{CasinoLastPlayedSectionNd-B8uYy0lx.js → CasinoLastPlayedSectionNd-C-5tfNvV.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { I as te, $ as ae, S as se, i as ie, f as l, c as ne, s as le, b as re, e as k, u as
|
|
2
|
-
import "./CasinoFavoritesSectionNd-
|
|
3
|
-
function
|
|
1
|
+
import { I as te, $ as ae, S as se, i as ie, f as l, c as ne, s as le, b as re, e as k, u as A, d as q, v as Q, C as H, j as M, J as oe, m as ce, P as i, r as ue, A as ge, N as me, Q as de } from "./CasinoCalendar-DOhm0UH1.js";
|
|
2
|
+
import "./CasinoFavoritesSectionNd-DSeuuLtY.js";
|
|
3
|
+
function I(s, e) {
|
|
4
4
|
te(s, e);
|
|
5
5
|
}
|
|
6
6
|
function fe(s) {
|
|
7
7
|
ae.set(s);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const J = {
|
|
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
|
},
|
|
@@ -27,6 +27,9 @@ const p = {
|
|
|
27
27
|
},
|
|
28
28
|
tr: {
|
|
29
29
|
noRecentGames: "Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."
|
|
30
|
+
},
|
|
31
|
+
"en-us": {
|
|
32
|
+
noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
function he(s) {
|
|
@@ -243,7 +246,7 @@ function be(s) {
|
|
|
243
246
|
), n;
|
|
244
247
|
return {
|
|
245
248
|
c() {
|
|
246
|
-
e = k("p"), n =
|
|
249
|
+
e = k("p"), n = ue(a), A(e, "class", "SearchLoading");
|
|
247
250
|
},
|
|
248
251
|
m(o, r) {
|
|
249
252
|
q(o, e, r), Q(e, n);
|
|
@@ -251,7 +254,7 @@ function be(s) {
|
|
|
251
254
|
p(o, r) {
|
|
252
255
|
r[0] & /*$_*/
|
|
253
256
|
524288 && a !== (a = /*$_*/
|
|
254
|
-
o[19]("noRecentGames") + "") &&
|
|
257
|
+
o[19]("noRecentGames") + "") && ge(n, a);
|
|
255
258
|
},
|
|
256
259
|
d(o) {
|
|
257
260
|
o && M(e);
|
|
@@ -260,71 +263,71 @@ function be(s) {
|
|
|
260
263
|
}
|
|
261
264
|
function ve(s) {
|
|
262
265
|
let e, a;
|
|
263
|
-
function n(
|
|
266
|
+
function n(m, d) {
|
|
264
267
|
return (
|
|
265
268
|
/*lastPlayedEmpty*/
|
|
266
|
-
|
|
269
|
+
m[18] ? be : ye
|
|
267
270
|
);
|
|
268
271
|
}
|
|
269
272
|
let o = n(s), r = o(s);
|
|
270
273
|
return {
|
|
271
274
|
c() {
|
|
272
|
-
e = k("div"), a = k("div"), r.c(),
|
|
275
|
+
e = k("div"), a = k("div"), r.c(), A(a, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
|
273
276
|
},
|
|
274
|
-
m(
|
|
275
|
-
q(
|
|
277
|
+
m(m, d) {
|
|
278
|
+
q(m, e, d), Q(e, a), r.m(a, null), s[25](e);
|
|
276
279
|
},
|
|
277
|
-
p(
|
|
278
|
-
o === (o = n(
|
|
280
|
+
p(m, d) {
|
|
281
|
+
o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(a, null)));
|
|
279
282
|
},
|
|
280
|
-
i:
|
|
281
|
-
o:
|
|
282
|
-
d(
|
|
283
|
-
|
|
283
|
+
i: H,
|
|
284
|
+
o: H,
|
|
285
|
+
d(m) {
|
|
286
|
+
m && M(e), r.d(), s[25](null);
|
|
284
287
|
}
|
|
285
288
|
};
|
|
286
289
|
}
|
|
287
290
|
function we(s, e, a) {
|
|
288
291
|
let n;
|
|
289
|
-
oe(s,
|
|
290
|
-
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency:
|
|
292
|
+
oe(s, me, (t) => a(19, n = t));
|
|
293
|
+
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: N = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: D = "false" } = e, { showgamename: F = "" } = e, { visiblegames: P = "" } = e, { favorites: z = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: G = "true" } = e, { fetchviaevent: O = "true" } = e, V = window.navigator.userAgent, U = !1, L = [], Y, h;
|
|
291
294
|
const Z = () => {
|
|
292
295
|
fetch(w).then((c) => c.json()).then((c) => {
|
|
293
|
-
Object.keys(c).forEach((
|
|
294
|
-
|
|
296
|
+
Object.keys(c).forEach((u) => {
|
|
297
|
+
I(u, c[u]);
|
|
295
298
|
});
|
|
296
299
|
}).catch((c) => {
|
|
297
300
|
console.log(c);
|
|
298
301
|
});
|
|
299
302
|
};
|
|
300
|
-
Object.keys(
|
|
301
|
-
|
|
303
|
+
Object.keys(J).forEach((t) => {
|
|
304
|
+
I(t, J[t]);
|
|
302
305
|
});
|
|
303
306
|
const B = () => new Promise((t, c) => {
|
|
304
|
-
let
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
let
|
|
308
|
-
return ee.gameCode == "OddsMatrix2" && (
|
|
309
|
-
}), t(
|
|
307
|
+
let u = new URL(`${o}/v1/player/${y}/games/last-played`);
|
|
308
|
+
u.searchParams.append("unique", G), u.searchParams.append("limit", S), u.searchParams.append("order", j), u.searchParams.append("period", C), de(V) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), Y = _ ? u : u.href, fetch(Y).then((g) => g.json()).then((g) => {
|
|
309
|
+
g.items = g.items.filter((ee) => {
|
|
310
|
+
let p = !0;
|
|
311
|
+
return ee.gameCode == "OddsMatrix2" && (g.count--, p = !1), p;
|
|
312
|
+
}), t(g), window.postMessage(
|
|
310
313
|
{
|
|
311
314
|
type: "AddNewCategory",
|
|
312
315
|
category: { name: "Last Played", id: "LASTPLAYED" }
|
|
313
316
|
},
|
|
314
317
|
window.location.href
|
|
315
|
-
), window.postMessage({ type: "LastPlayedGames", data:
|
|
316
|
-
}).catch((
|
|
317
|
-
console.error(
|
|
318
|
+
), window.postMessage({ type: "LastPlayedGames", data: g }, window.location.href);
|
|
319
|
+
}).catch((g) => {
|
|
320
|
+
console.error(g), c(g);
|
|
318
321
|
});
|
|
319
322
|
}), K = () => {
|
|
320
323
|
B().then((t) => {
|
|
321
324
|
if (t.count > 0) {
|
|
322
325
|
let c = [];
|
|
323
|
-
t.items.forEach((
|
|
324
|
-
let f = new URL(`${o}/v1/casino/games/${
|
|
325
|
-
f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((
|
|
326
|
-
}), Promise.all(c).then((
|
|
327
|
-
L =
|
|
326
|
+
t.items.forEach((u) => {
|
|
327
|
+
let f = new URL(`${o}/v1/casino/games/${u.gameId}`);
|
|
328
|
+
f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((g) => g.json())) : c.push(fetch(f.href).then((g) => g.json()));
|
|
329
|
+
}), Promise.all(c).then((u) => {
|
|
330
|
+
L = u.filter((f) => !("error" in f)).map((f) => f[0]), R === "true" && (L = L.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: L }, window.location.href);
|
|
328
331
|
});
|
|
329
332
|
} else
|
|
330
333
|
a(18, U = !0);
|
|
@@ -351,7 +354,7 @@ function we(s, e, a) {
|
|
|
351
354
|
});
|
|
352
355
|
}
|
|
353
356
|
return s.$$set = (t) => {
|
|
354
|
-
"endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2,
|
|
357
|
+
"endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, m = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, E = t.session), "userid" in t && a(5, y = t.userid), "clientstyling" in t && a(6, b = t.clientstyling), "clientstylingurl" in t && a(7, v = t.clientstylingurl), "translationurl" in t && a(20, w = t.translationurl), "livecasino" in t && a(8, _ = t.livecasino), "integratedgameframemobile" in t && a(9, N = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, D = t.gamepagemodalurl), "showgamename" in t && a(12, F = t.showgamename), "visiblegames" in t && a(13, P = t.visiblegames), "favorites" in t && a(14, z = t.favorites), "lastplayedperiod" in t && a(21, C = t.lastplayedperiod), "lastplayedorder" in t && a(22, j = t.lastplayedorder), "lastplayedlimit" in t && a(23, S = t.lastplayedlimit), "casinomygames" in t && a(15, R = t.casinomygames), "lastplayedunique" in t && a(24, G = t.lastplayedunique), "fetchviaevent" in t && a(16, O = t.fetchviaevent);
|
|
355
358
|
}, s.$$.update = () => {
|
|
356
359
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
357
360
|
41 && o && y && d && K(), s.$$.dirty[0] & /*translationurl*/
|
|
@@ -362,7 +365,7 @@ function we(s, e, a) {
|
|
|
362
365
|
}, [
|
|
363
366
|
o,
|
|
364
367
|
r,
|
|
365
|
-
|
|
368
|
+
m,
|
|
366
369
|
d,
|
|
367
370
|
E,
|
|
368
371
|
y,
|
|
@@ -384,7 +387,7 @@ function we(s, e, a) {
|
|
|
384
387
|
C,
|
|
385
388
|
j,
|
|
386
389
|
S,
|
|
387
|
-
|
|
390
|
+
G,
|
|
388
391
|
$
|
|
389
392
|
];
|
|
390
393
|
}
|
package/components/{CasinoMostPlayedSectionNd-D02yV4gY.js → CasinoMostPlayedSectionNd-CMOMYpjt.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, u as S, d as M, v as Q, C as q, j as A, J as le, Q as
|
|
2
|
-
import "./CasinoFavoritesSectionNd-
|
|
1
|
+
import { I as ee, $ as te, S as se, i as ae, f as l, c as ne, s as ie, b as oe, e as N, u as S, d as M, v as Q, C as q, j as A, J as le, Q as me, m as re, P as n, r as ge, A as ce, N as de } from "./CasinoCalendar-DOhm0UH1.js";
|
|
2
|
+
import "./CasinoFavoritesSectionNd-DSeuuLtY.js";
|
|
3
3
|
function H(a, e) {
|
|
4
4
|
ee(a, e);
|
|
5
5
|
}
|
|
@@ -57,6 +57,9 @@ const J = {
|
|
|
57
57
|
},
|
|
58
58
|
"es-mx": {
|
|
59
59
|
noGames: "No hay juegos en los más jugados"
|
|
60
|
+
},
|
|
61
|
+
"en-us": {
|
|
62
|
+
noGames: "No games in most played"
|
|
60
63
|
}
|
|
61
64
|
};
|
|
62
65
|
function fe(a) {
|
|
@@ -275,16 +278,16 @@ function ye(a) {
|
|
|
275
278
|
c() {
|
|
276
279
|
e = N("p"), i = ge(s), S(e, "class", "SearchLoading");
|
|
277
280
|
},
|
|
278
|
-
m(
|
|
279
|
-
M(
|
|
281
|
+
m(r, m) {
|
|
282
|
+
M(r, e, m), Q(e, i);
|
|
280
283
|
},
|
|
281
|
-
p(
|
|
282
|
-
|
|
284
|
+
p(r, m) {
|
|
285
|
+
m[0] & /*$_*/
|
|
283
286
|
524288 && s !== (s = /*$_*/
|
|
284
|
-
|
|
287
|
+
r[19]("noGames") + "") && ce(i, s);
|
|
285
288
|
},
|
|
286
|
-
d(
|
|
287
|
-
|
|
289
|
+
d(r) {
|
|
290
|
+
r && A(e);
|
|
288
291
|
}
|
|
289
292
|
};
|
|
290
293
|
}
|
|
@@ -296,30 +299,30 @@ function ve(a) {
|
|
|
296
299
|
g[18] ? ye : he
|
|
297
300
|
);
|
|
298
301
|
}
|
|
299
|
-
let
|
|
302
|
+
let r = i(a), m = r(a);
|
|
300
303
|
return {
|
|
301
304
|
c() {
|
|
302
|
-
e = N("div"), s = N("div"),
|
|
305
|
+
e = N("div"), s = N("div"), m.c(), S(s, "class", "casino-most-played-section"), S(e, "class", "CasinoGamesCategorySectionContainer");
|
|
303
306
|
},
|
|
304
307
|
m(g, c) {
|
|
305
|
-
M(g, e, c), Q(e, s),
|
|
308
|
+
M(g, e, c), Q(e, s), m.m(s, null), a[23](e);
|
|
306
309
|
},
|
|
307
310
|
p(g, c) {
|
|
308
|
-
|
|
311
|
+
r === (r = i(g)) && m ? m.p(g, c) : (m.d(1), m = r(g), m && (m.c(), m.m(s, null)));
|
|
309
312
|
},
|
|
310
313
|
i: q,
|
|
311
314
|
o: q,
|
|
312
315
|
d(g) {
|
|
313
|
-
g && A(e),
|
|
316
|
+
g && A(e), m.d(), a[23](null);
|
|
314
317
|
}
|
|
315
318
|
};
|
|
316
319
|
}
|
|
317
320
|
function be(a, e, s) {
|
|
318
321
|
let i;
|
|
319
322
|
le(a, de, (t) => s(19, i = t));
|
|
320
|
-
let { endpoint:
|
|
323
|
+
let { endpoint: r = "" } = e, { datasource: m = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: E = "" } = e, { userid: v = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: _ = "" } = e, { livecasino: w = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: O = "false" } = e, { showgamename: D = "" } = e, { visiblegames: P } = e, { favorites: R = "" } = e, { translationurl: G = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: j = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: U = "true" } = e, Y = window.navigator.userAgent;
|
|
321
324
|
const B = () => {
|
|
322
|
-
fetch(
|
|
325
|
+
fetch(G).then((o) => o.json()).then((o) => {
|
|
323
326
|
Object.keys(o).forEach((d) => {
|
|
324
327
|
H(d, o[d]);
|
|
325
328
|
});
|
|
@@ -330,16 +333,16 @@ function be(a, e, s) {
|
|
|
330
333
|
Object.keys(J).forEach((t) => {
|
|
331
334
|
H(t, J[t]);
|
|
332
335
|
});
|
|
333
|
-
let
|
|
336
|
+
let k = [], z, p = !1, h;
|
|
334
337
|
const K = (t) => {
|
|
335
|
-
let o = new URL(`${
|
|
338
|
+
let o = new URL(`${r}/v1/player/${v}/games/most-played`);
|
|
336
339
|
t.limit && o.searchParams.append("limit", t.limit), t.order && o.searchParams.append("order", t.order), o.searchParams.append("expand", "games"), o.searchParams.append("period", j);
|
|
337
340
|
let d = t.device;
|
|
338
341
|
return d ? d === "PC" ? o.searchParams.append("device", "Desktop") : o.searchParams.append("device", "Mobile") : o.searchParams.append("device", "All"), t.rounds && o.searchParams.append("rounds", t.rounds), z = w ? o : o.href, new Promise((u, y) => {
|
|
339
342
|
fetch(z).then((f) => f.json()).then((f) => {
|
|
340
343
|
f.items = f.items.filter(($) => {
|
|
341
|
-
let
|
|
342
|
-
return $.gameCode == "OddsMatrix2" && (f.count--,
|
|
344
|
+
let I = !0;
|
|
345
|
+
return $.gameCode == "OddsMatrix2" && (f.count--, I = !1), I;
|
|
343
346
|
}), u(f);
|
|
344
347
|
}).catch((f) => {
|
|
345
348
|
console.error(f), y(f);
|
|
@@ -348,19 +351,19 @@ function be(a, e, s) {
|
|
|
348
351
|
}, V = () => {
|
|
349
352
|
K({
|
|
350
353
|
limit: 100,
|
|
351
|
-
device:
|
|
354
|
+
device: me(Y),
|
|
352
355
|
rounds: L
|
|
353
356
|
}).then((t) => {
|
|
354
357
|
if (t.count > 0) {
|
|
355
358
|
let o = [];
|
|
356
359
|
t.items.forEach((d) => {
|
|
357
|
-
let u = new URL(`${
|
|
358
|
-
u.searchParams.append("datasource",
|
|
360
|
+
let u = new URL(`${r}/v1/casino/games/${d.gameId}`);
|
|
361
|
+
u.searchParams.append("datasource", m), w ? o.push(fetch(u.href).then((y) => y.json())) : o.push(fetch(u.href).then((y) => y.json()));
|
|
359
362
|
}), Promise.all(o).then((d) => {
|
|
360
|
-
|
|
363
|
+
k = d.filter((u) => !("error" in u)).map((u) => u[0]), C === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: k }, window.location.href);
|
|
361
364
|
});
|
|
362
365
|
} else
|
|
363
|
-
s(18,
|
|
366
|
+
s(18, p = !0);
|
|
364
367
|
});
|
|
365
368
|
}, W = () => {
|
|
366
369
|
ue(c);
|
|
@@ -379,22 +382,22 @@ function be(a, e, s) {
|
|
|
379
382
|
});
|
|
380
383
|
};
|
|
381
384
|
function x(t) {
|
|
382
|
-
|
|
385
|
+
re[t ? "unshift" : "push"](() => {
|
|
383
386
|
h = t, s(17, h);
|
|
384
387
|
});
|
|
385
388
|
}
|
|
386
389
|
return a.$$set = (t) => {
|
|
387
|
-
"endpoint" in t && s(0,
|
|
390
|
+
"endpoint" in t && s(0, r = t.endpoint), "datasource" in t && s(1, m = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, E = t.session), "userid" in t && s(5, v = t.userid), "clientstyling" in t && s(6, b = t.clientstyling), "clientstylingurl" in t && s(7, _ = t.clientstylingurl), "livecasino" in t && s(8, w = t.livecasino), "integratedgameframemobile" in t && s(9, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(11, O = t.gamepagemodalurl), "showgamename" in t && s(12, D = t.showgamename), "visiblegames" in t && s(13, P = t.visiblegames), "favorites" in t && s(14, R = t.favorites), "translationurl" in t && s(20, G = t.translationurl), "casinomygames" in t && s(15, C = t.casinomygames), "mostplayedperiod" in t && s(21, j = t.mostplayedperiod), "mostplayedrounds" in t && s(22, L = t.mostplayedrounds), "fetchviaevent" in t && s(16, U = t.fetchviaevent);
|
|
388
391
|
}, a.$$.update = () => {
|
|
389
392
|
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
390
|
-
41 &&
|
|
393
|
+
41 && r && v && c && V(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
391
394
|
131136 && b && h && X(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
392
395
|
131200 && _ && h && Z(), a.$$.dirty[0] & /*translationurl*/
|
|
393
|
-
1048576 &&
|
|
396
|
+
1048576 && G && B(), a.$$.dirty[0] & /*lang*/
|
|
394
397
|
8 && c && W();
|
|
395
398
|
}, [
|
|
396
|
-
m,
|
|
397
399
|
r,
|
|
400
|
+
m,
|
|
398
401
|
g,
|
|
399
402
|
c,
|
|
400
403
|
E,
|
|
@@ -411,9 +414,9 @@ function be(a, e, s) {
|
|
|
411
414
|
C,
|
|
412
415
|
U,
|
|
413
416
|
h,
|
|
414
|
-
|
|
417
|
+
p,
|
|
415
418
|
i,
|
|
416
|
-
|
|
419
|
+
G,
|
|
417
420
|
j,
|
|
418
421
|
L,
|
|
419
422
|
x
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B-gPVc8F.cjs");require("./CasinoFavoritesSectionNd-C1153GlJ.cjs");function D(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const R={en:{noGames:"No games in most played"},"zh-hk":{noGames:"No games in most played"},de:{noGames:"No games in most played"},it:{noGames:"No games in most played"},fr:{noGames:"No games in most played"},es:{noGames:"No hay juegos en más jugados."},tr:{noGames:"En çok oynananlarda oyun yok"},ru:{noGames:"No games in most played"},ro:{noGames:"No games in most played"},hr:{noGames:"Nema igara u najigranijim"},hu:{noGames:"No games in most played"},pl:{noGames:"No games in most played"},pt:{noGames:"No games in most played"},sl:{noGames:"No games in most played"},sr:{noGames:"No games in most played"},"pt-br":{noGames:"Não há jogos nos mais jogados"},"es-mx":{noGames:"No hay juegos en los más jugados"},"en-us":{noGames:"No games in most played"}};function W(n){t.append_styles(n,"svelte-14zqglz","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section-nd"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","MOSTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",n[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]&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 Z(n){let e,a=n[19]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,m){t.insert(o,e,m),t.append(e,i)},p(o,m){m[0]&524288&&a!==(a=o[19]("noGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(r,c){return r[18]?Z:X}let o=i(n),m=o(n);return{c(){e=t.element("div"),a=t.element("div"),m.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,c){t.insert(r,e,c),t.append(e,a),m.m(a,null),n[23](e)},p(r,c){o===(o=i(r))&&m?m.p(r,c):(m.d(1),m=o(r),m&&(m.c(),m.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),m.d(),n[23](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(19,i=s));let{endpoint:o=""}=e,{datasource:m=""}=e,{currency:r=""}=e,{lang:c=""}=e,{session:j=""}=e,{userid:h=""}=e,{clientstyling:y=""}=e,{clientstylingurl:v=""}=e,{livecasino:b="false"}=e,{integratedgameframemobile:L="false"}=e,{integratedgameframedesktop:S="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:A=""}=e,{visiblegames:k}=e,{favorites:E=""}=e,{translationurl:w=""}=e,{casinomygames:N="false"}=e,{mostplayedperiod:P="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:T="true"}=e,q=window.navigator.userAgent;const z=()=>{fetch(w).then(l=>l.json()).then(l=>{Object.keys(l).forEach(u=>{D(u,l[u])})}).catch(l=>{console.log(l)})};Object.keys(R).forEach(s=>{D(s,R[s])});let G=[],F,O=!1,f;const H=s=>{let l=new URL(`${o}/v1/player/${h}/games/most-played`);s.limit&&l.searchParams.append("limit",s.limit),s.order&&l.searchParams.append("order",s.order),l.searchParams.append("expand","games"),l.searchParams.append("period",P);let u=s.device;return u?u==="PC"?l.searchParams.append("device","Desktop"):l.searchParams.append("device","Mobile"):l.searchParams.append("device","All"),s.rounds&&l.searchParams.append("rounds",s.rounds),F=b?l:l.href,new Promise((d,_)=>{fetch(F).then(g=>g.json()).then(g=>{g.items=g.items.filter(Q=>{let p=!0;return Q.gameCode=="OddsMatrix2"&&(g.count--,p=!1),p}),d(g)}).catch(g=>{console.error(g),_(g)})})},I=()=>{H({limit:100,device:t.getDevice(q),rounds:C}).then(s=>{if(s.count>0){let l=[];s.items.forEach(u=>{let d=new URL(`${o}/v1/casino/games/${u.gameId}`);d.searchParams.append("datasource",m),b?l.push(fetch(d.href).then(_=>_.json())):l.push(fetch(d.href).then(_=>_.json()))}),Promise.all(l).then(u=>{G=u.filter(d=>!("error"in d)).map(d=>d[0]),N==="true"&&(G=G.slice(0,JSON.parse(k))),window.postMessage({type:"MostPlayedData",mostPlayedGames:G},window.location.href)})}else a(18,O=!0)})},J=()=>{V(c)},Y=()=>{let s=document.createElement("style");s.innerHTML=y,f.appendChild(s)},B=()=>{let s=document.createElement("style");fetch(new URL(v)).then(l=>l.text()).then(l=>{s.innerHTML=l,setTimeout(()=>{f.appendChild(s)},1)})};function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{f=s,a(17,f)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,m=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,c=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,y=s.clientstyling),"clientstylingurl"in s&&a(7,v=s.clientstylingurl),"livecasino"in s&&a(8,b=s.livecasino),"integratedgameframemobile"in s&&a(9,L=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,S=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,M=s.gamepagemodalurl),"showgamename"in s&&a(12,A=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,E=s.favorites),"translationurl"in s&&a(20,w=s.translationurl),"casinomygames"in s&&a(15,N=s.casinomygames),"mostplayedperiod"in s&&a(21,P=s.mostplayedperiod),"mostplayedrounds"in s&&a(22,C=s.mostplayedrounds),"fetchviaevent"in s&&a(16,T=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&c&&I(),n.$$.dirty[0]&131136&&y&&f&&Y(),n.$$.dirty[0]&131200&&v&&f&&B(),n.$$.dirty[0]&1048576&&w&&z(),n.$$.dirty[0]&8&&c&&J()},[o,m,r,c,j,h,y,v,b,L,S,M,A,k,E,N,T,f,O,i,w,P,C,K]}class U 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,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,translationurl:20,casinomygames:15,mostplayedperiod:21,mostplayedrounds:22,fetchviaevent:16},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get 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 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 translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[21]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[22]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(U,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=U;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-B-gPVc8F.cjs");function se({withLocale:s,translations:e}){t.$locale.subscribe(a=>{a==null&&(t.$dictionary.set(e),t.$locale.set(s))})}function U(s,e){t.addMessages(s,e)}function le(s){t.$locale.set(s)}const z={en:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},"zh-hk":{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},de:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},it:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},fr:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},es:{favorites:"Favoritos",mostPlayed:"Más jugados",recentlyPlayed:"Últimos jugados"},tr:{favorites:"Favoriler",mostPlayed:"En Çok Oynananlar",recentlyPlayed:"Son Oynananlar"},ru:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},ro:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},hr:{favorites:"Favoriti",mostPlayed:"Najčešće igrano",recentlyPlayed:"Zadnje igrano"},hu:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},pl:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},pt:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},sl:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},sr:{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"},"pt-br":{favorites:"Favoritos",mostPlayed:"O mais jogado",recentlyPlayed:"Ultimo jogo"},"es-mx":{favorites:"Favoritos",mostPlayed:"Los más Jugados",recentlyPlayed:"Último juego"},"en-us":{favorites:"Favorites",mostPlayed:"Most Played",recentlyPlayed:"Last Played"}};if(typeof window!="undefined"){let s=function(e){return function(...a){try{return e.apply(this,a)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CasinoFavoritesSectionNd-C1153GlJ.cjs")).then(({default:e})=>{!customElements.get("casino-favorites-section-nd")&&customElements.define("casino-favorites-section-nd",e.element)})}if(typeof window!="undefined"){let s=function(e){return function(...a){try{return e.apply(this,a)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CasinoLastPlayedSectionNd-BqTS0sBE.cjs")).then(({default:e})=>{!customElements.get("casino-last-played-section-nd")&&customElements.define("casino-last-played-section-nd",e.element)})}if(typeof window!="undefined"){let s=function(e){return function(...a){try{return e.apply(this,a)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CasinoMostPlayedSectionNd-DKpVU4pB.cjs")).then(({default:e})=>{!customElements.get("casino-most-played-section-nd")&&customElements.define("casino-most-played-section-nd",e.element)})}function ne(s){t.append_styles(s,"svelte-nbkt6a",".CasinoMyGames{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;margin:50px 0;box-sizing:border-box}.CasinoMyGames.Mobile{padding:25px 10px}.MyGamesHeader{display:flex;justify-content:space-between;margin-bottom:40px}.MyGamesButtonsContainer{display:flex;flex-direction:row;-ms-overflow-style:none;scrollbar-width:none;overflow-y:scroll;gap:32px}.MyGamesButton{border:none;background:none;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:20px;font-weight:500;margin-right:0px;transition:linear 100ms;border-bottom:1px solid transparent;cursor:pointer}.MyGamesButton:hover{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:36px;padding-bottom:10px}.MyGamesButton:focus{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:36px;padding-bottom:10px}.MyGamesButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));padding-bottom:10px}.MyGamesButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:36px}.ButtonsContainerNone{display:none}.Mobile .MyGamesButtonsContainer{width:100%;gap:32px;align-items:center;justify-content:space-evenly}.Mobile .CasinoMyGames{margin:30px 0}.Mobile .CasinoMyGames{width:320px;max-width:320px}.Mobile .MyGamesHeader{justify-content:flex-start}.Mobile .MyGamesButton{font-size:16px;white-space:nowrap;padding:5px}.Mobile .MyGamesButton.Active{padding-bottom:5px}")}function R(s,e,a){const l=s.slice();return l[43]=e[a],l}function ie(s){let e,a,l,r,i,d,o=t.ensure_array_like(s[27]),m=[];for(let u=0;u<o.length;u+=1)m[u]=Z(R(s,o,u));function y(u,f){if(u[25]=="Favorites")return re;if(u[25]=="MostPlayed")return me;if(u[25]=="LastPlayed")return oe}let g=y(s),_=g&&g(s);return{c(){e=t.element("div"),a=t.element("div"),l=t.element("div");for(let u=0;u<m.length;u+=1)m[u].c();r=t.space(),i=t.element("div"),_&&_.c(),t.attr(l,"class","MyGamesButtonsContainer"),t.attr(a,"class","MyGamesHeader"),t.attr(e,"class",d="CasinoMyGames "+(s[26]?"Mobile":""))},m(u,f){t.insert(u,e,f),t.append(e,a),t.append(a,l);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(l,null);t.append(e,r),t.append(e,i),_&&_.m(i,null)},p(u,f){if(f[0]&2046935040){o=t.ensure_array_like(u[27]);let c;for(c=0;c<o.length;c+=1){const b=R(u,o,c);m[c]?m[c].p(b,f):(m[c]=Z(b),m[c].c(),m[c].m(l,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=o.length}g===(g=y(u))&&_?_.p(u,f):(_&&_.d(1),_=g&&g(u),_&&(_.c(),_.m(i,null))),f[0]&67108864&&d!==(d="CasinoMyGames "+(u[26]?"Mobile":""))&&t.attr(e,"class",d)},d(u){u&&t.detach(e),t.destroy_each(m,u),_&&_.d()}}}function I(s){let e,a=s[29]("favorites")+"",l,r,i,d,o,m,y,g,_;return{c(){e=t.element("button"),l=t.text(a),r=t.space(),i=t.element("span"),d=t.text("("),o=t.text(s[28]),m=t.text(")"),t.attr(e,"class",y="MyGamesButton "+(s[25]=="Favorites"?"Active":"")+" "+(s[14]=="false"?"Off":""))},m(u,f){t.insert(u,e,f),t.append(e,l),t.append(e,r),t.append(e,i),t.append(i,d),t.append(i,o),t.append(i,m),g||(_=t.listen(e,"click",s[32]),g=!0)},p(u,f){f[0]&536870912&&a!==(a=u[29]("favorites")+"")&&t.set_data(l,a),f[0]&268435456&&t.set_data(o,u[28]),f[0]&33570816&&y!==(y="MyGamesButton "+(u[25]=="Favorites"?"Active":"")+" "+(u[14]=="false"?"Off":""))&&t.attr(e,"class",y)},d(u){u&&t.detach(e),g=!1,_()}}}function J(s){let e,a=s[29]("mostPlayed")+"",l,r,i,d;return{c(){e=t.element("button"),l=t.text(a),t.attr(e,"class",r="MyGamesButton "+(s[25]=="MostPlayed"?"Active":"")+" "+(s[15]=="false"?"Off":""))},m(o,m){t.insert(o,e,m),t.append(e,l),i||(d=t.listen(e,"click",s[33]),i=!0)},p(o,m){m[0]&536870912&&a!==(a=o[29]("mostPlayed")+"")&&t.set_data(l,a),m[0]&33587200&&r!==(r="MyGamesButton "+(o[25]=="MostPlayed"?"Active":"")+" "+(o[15]=="false"?"Off":""))&&t.attr(e,"class",r)},d(o){o&&t.detach(e),i=!1,d()}}}function V(s){let e,a=s[29]("recentlyPlayed")+"",l,r,i,d,o;return{c(){e=t.element("button"),l=t.text(a),r=t.space(),t.attr(e,"class",i="MyGamesButton "+(s[25]=="LastPlayed"?"Active":"")+" "+(s[16]=="false"?"Off":""))},m(m,y){t.insert(m,e,y),t.append(e,l),t.append(e,r),d||(o=t.listen(e,"click",s[34]),d=!0)},p(m,y){y[0]&536870912&&a!==(a=m[29]("recentlyPlayed")+"")&&t.set_data(l,a),y[0]&33619968&&i!==(i="MyGamesButton "+(m[25]=="LastPlayed"?"Active":"")+" "+(m[16]=="false"?"Off":""))&&t.attr(e,"class",i)},d(m){m&&t.detach(e),d=!1,o()}}}function Z(s){let e,a,l,r=s[43]=="Favorites"&&I(s),i=s[43]=="MostPlayed"&&J(s),d=s[43]=="LastPlayed"&&V(s);return{c(){r&&r.c(),e=t.space(),i&&i.c(),a=t.space(),d&&d.c(),l=t.empty()},m(o,m){r&&r.m(o,m),t.insert(o,e,m),i&&i.m(o,m),t.insert(o,a,m),d&&d.m(o,m),t.insert(o,l,m)},p(o,m){o[43]=="Favorites"?r?r.p(o,m):(r=I(o),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),o[43]=="MostPlayed"?i?i.p(o,m):(i=J(o),i.c(),i.m(a.parentNode,a)):i&&(i.d(1),i=null),o[43]=="LastPlayed"?d?d.p(o,m):(d=V(o),d.c(),d.m(l.parentNode,l)):d&&(d.d(1),d=null)},d(o){o&&(t.detach(e),t.detach(a),t.detach(l)),r&&r.d(o),i&&i.d(o),d&&d.d(o)}}}function oe(s){let e;return{c(){e=t.element("casino-last-played-section-nd"),t.set_custom_element_data(e,"userid",s[0]),t.set_custom_element_data(e,"endpoint",s[2]),t.set_custom_element_data(e,"datasource",s[3]),t.set_custom_element_data(e,"favorites",s[14]),t.set_custom_element_data(e,"lang",s[4]),t.set_custom_element_data(e,"currency",s[5]),t.set_custom_element_data(e,"session",s[1]),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",s[11]),t.set_custom_element_data(e,"clientstyling",s[6]),t.set_custom_element_data(e,"clientstylingurl",s[7]),t.set_custom_element_data(e,"livecasino",s[8]),t.set_custom_element_data(e,"visiblegames",s[9]),t.set_custom_element_data(e,"lastplayedperiod",s[18]),t.set_custom_element_data(e,"lastplayedorder",s[20]),t.set_custom_element_data(e,"lastplayedlimit",s[21]),t.set_custom_element_data(e,"lastplayedunique",s[22]),t.set_custom_element_data(e,"gamepagemodalurl",s[10]),t.set_custom_element_data(e,"integratedgameframedesktop",s[12]),t.set_custom_element_data(e,"integratedgameframemobile",s[13]),t.set_custom_element_data(e,"casinomygames",s[17])},m(a,l){t.insert(a,e,l)},p(a,l){l[0]&1&&t.set_custom_element_data(e,"userid",a[0]),l[0]&4&&t.set_custom_element_data(e,"endpoint",a[2]),l[0]&8&&t.set_custom_element_data(e,"datasource",a[3]),l[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),l[0]&16&&t.set_custom_element_data(e,"lang",a[4]),l[0]&32&&t.set_custom_element_data(e,"currency",a[5]),l[0]&2&&t.set_custom_element_data(e,"session",a[1]),l[0]&2048&&t.set_custom_element_data(e,"showgamename",a[11]),l[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),l[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),l[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),l[0]&512&&t.set_custom_element_data(e,"visiblegames",a[9]),l[0]&262144&&t.set_custom_element_data(e,"lastplayedperiod",a[18]),l[0]&1048576&&t.set_custom_element_data(e,"lastplayedorder",a[20]),l[0]&2097152&&t.set_custom_element_data(e,"lastplayedlimit",a[21]),l[0]&4194304&&t.set_custom_element_data(e,"lastplayedunique",a[22]),l[0]&1024&&t.set_custom_element_data(e,"gamepagemodalurl",a[10]),l[0]&4096&&t.set_custom_element_data(e,"integratedgameframedesktop",a[12]),l[0]&8192&&t.set_custom_element_data(e,"integratedgameframemobile",a[13]),l[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17])},d(a){a&&t.detach(e)}}}function me(s){let e;return{c(){e=t.element("casino-most-played-section-nd"),t.set_custom_element_data(e,"endpoint",s[2]),t.set_custom_element_data(e,"datasource",s[3]),t.set_custom_element_data(e,"lang",s[4]),t.set_custom_element_data(e,"currency",s[5]),t.set_custom_element_data(e,"session",s[1]),t.set_custom_element_data(e,"userid",s[0]),t.set_custom_element_data(e,"favorites",s[14]),t.set_custom_element_data(e,"categoryindex","0"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",s[11]),t.set_custom_element_data(e,"clientstyling",s[6]),t.set_custom_element_data(e,"clientstylingurl",s[7]),t.set_custom_element_data(e,"livecasino",s[8]),t.set_custom_element_data(e,"visiblegames",s[9]),t.set_custom_element_data(e,"gamepagemodalurl",s[10]),t.set_custom_element_data(e,"mostplayedrounds",s[23]),t.set_custom_element_data(e,"integratedgameframedesktop",s[12]),t.set_custom_element_data(e,"integratedgameframemobile",s[13]),t.set_custom_element_data(e,"mostplayedperiod",s[19]),t.set_custom_element_data(e,"casinomygames",s[17])},m(a,l){t.insert(a,e,l)},p(a,l){l[0]&4&&t.set_custom_element_data(e,"endpoint",a[2]),l[0]&8&&t.set_custom_element_data(e,"datasource",a[3]),l[0]&16&&t.set_custom_element_data(e,"lang",a[4]),l[0]&32&&t.set_custom_element_data(e,"currency",a[5]),l[0]&2&&t.set_custom_element_data(e,"session",a[1]),l[0]&1&&t.set_custom_element_data(e,"userid",a[0]),l[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),l[0]&2048&&t.set_custom_element_data(e,"showgamename",a[11]),l[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),l[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),l[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),l[0]&512&&t.set_custom_element_data(e,"visiblegames",a[9]),l[0]&1024&&t.set_custom_element_data(e,"gamepagemodalurl",a[10]),l[0]&8388608&&t.set_custom_element_data(e,"mostplayedrounds",a[23]),l[0]&4096&&t.set_custom_element_data(e,"integratedgameframedesktop",a[12]),l[0]&8192&&t.set_custom_element_data(e,"integratedgameframemobile",a[13]),l[0]&524288&&t.set_custom_element_data(e,"mostplayedperiod",a[19]),l[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17])},d(a){a&&t.detach(e)}}}function re(s){let e;return{c(){e=t.element("casino-favorites-section-nd"),t.set_custom_element_data(e,"session",s[1]),t.set_custom_element_data(e,"userid",s[0]),t.set_custom_element_data(e,"endpoint",s[2]),t.set_custom_element_data(e,"datasource",s[3]),t.set_custom_element_data(e,"lang",s[4]),t.set_custom_element_data(e,"currency",s[5]),t.set_custom_element_data(e,"favorites",s[14]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",s[11]),t.set_custom_element_data(e,"clientstyling",s[6]),t.set_custom_element_data(e,"clientstylingurl",s[7]),t.set_custom_element_data(e,"livecasino",s[8]),t.set_custom_element_data(e,"visiblegames",s[9]),t.set_custom_element_data(e,"gamepagemodalurl",s[10]),t.set_custom_element_data(e,"integratedgameframedesktop",s[12]),t.set_custom_element_data(e,"integratedgameframemobile",s[13]),t.set_custom_element_data(e,"casinomygames",s[17])},m(a,l){t.insert(a,e,l)},p(a,l){l[0]&2&&t.set_custom_element_data(e,"session",a[1]),l[0]&1&&t.set_custom_element_data(e,"userid",a[0]),l[0]&4&&t.set_custom_element_data(e,"endpoint",a[2]),l[0]&8&&t.set_custom_element_data(e,"datasource",a[3]),l[0]&16&&t.set_custom_element_data(e,"lang",a[4]),l[0]&32&&t.set_custom_element_data(e,"currency",a[5]),l[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),l[0]&2048&&t.set_custom_element_data(e,"showgamename",a[11]),l[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),l[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),l[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),l[0]&512&&t.set_custom_element_data(e,"visiblegames",a[9]),l[0]&1024&&t.set_custom_element_data(e,"gamepagemodalurl",a[10]),l[0]&4096&&t.set_custom_element_data(e,"integratedgameframedesktop",a[12]),l[0]&8192&&t.set_custom_element_data(e,"integratedgameframemobile",a[13]),l[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17])},d(a){a&&t.detach(e)}}}function de(s){let e;function a(i,d){if(i[17])return ie}let l=a(s),r=l&&l(s);return{c(){e=t.element("div"),r&&r.c()},m(i,d){t.insert(i,e,d),r&&r.m(e,null),s[35](e)},p(i,d){l===(l=a(i))&&r?r.p(i,d):(r&&r.d(1),r=l&&l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r&&r.d(),s[35](null)}}}function ue(s,e,a){let l;t.component_subscribe(s,t.$format,n=>a(29,l=n));let{userid:r=""}=e,{session:i=""}=e,{endpoint:d=""}=e,{datasource:o=""}=e,{lang:m=""}=e,{currency:y=""}=e,{clientstyling:g=""}=e,{clientstylingurl:_=""}=e,{livecasino:u=""}=e,{visiblegames:f=""}=e,{gamepagemodalurl:c=""}=e,{showgamename:b=""}=e,{integratedgameframedesktop:G=""}=e,{integratedgameframemobile:E=""}=e,{translationurl:k=""}=e,{favorites:P="false"}=e,{mostplayed:w="false"}=e,{lastplayed:M="false"}=e,{casinomygames:O="false"}=e,{lastplayedperiod:B="Last30Days"}=e,{mostplayedperiod:A="Last30Days"}=e,{lastplayedorder:j=""}=e,{lastplayedlimit:q=""}=e,{lastplayedunique:D="true"}=e,{mostplayedrounds:S=""}=e,Q=window.navigator.userAgent,p,C="",T=!1,v=["","",""],L="0";se({withLocale:"en",translations:{}});const W=()=>{fetch(k).then(h=>h.json()).then(h=>{Object.keys(h).forEach(H=>{U(H,h[H])})}).catch(h=>{console.log(h)})};Object.keys(z).forEach(n=>{U(n,z[n])});const F=n=>{C!==n&&a(25,C=n)},X=()=>{a(25,C=P==="true"?"Favorites":w==="true"?"MostPlayed":M==="true"?"LastPlayed":""),a(27,v[0]=P==="true"?"Favorites":"",v),a(27,v[1]=w==="true"?"MostPlayed":"",v),a(27,v[2]=M==="true"?"LastPlayed":"",v),le(m)},Y=()=>{let n=document.createElement("style");n.innerHTML=g,p.appendChild(n)},x=()=>{let n=document.createElement("style");fetch(new URL(_)).then(h=>h.text()).then(h=>{n.innerHTML=h,setTimeout(()=>{p.appendChild(n)},1)})},N=n=>{var h;if(n.data)switch(n.data.type){case"UpdateFavoritesCount":n.data.favoriteGamesLength?a(28,L=n.data.favoriteGamesLength):a(28,L=(h=n.data.listOfFavoritesGames)==null?void 0:h.length);break}};t.onMount(()=>(window.addEventListener("message",N,!1),a(26,T=t.isMobile(Q)),()=>{window.removeEventListener("message",N)}));const $=()=>F("Favorites"),ee=()=>F("MostPlayed"),te=()=>F("LastPlayed");function ae(n){t.binding_callbacks[n?"unshift":"push"](()=>{p=n,a(24,p)})}return s.$$set=n=>{"userid"in n&&a(0,r=n.userid),"session"in n&&a(1,i=n.session),"endpoint"in n&&a(2,d=n.endpoint),"datasource"in n&&a(3,o=n.datasource),"lang"in n&&a(4,m=n.lang),"currency"in n&&a(5,y=n.currency),"clientstyling"in n&&a(6,g=n.clientstyling),"clientstylingurl"in n&&a(7,_=n.clientstylingurl),"livecasino"in n&&a(8,u=n.livecasino),"visiblegames"in n&&a(9,f=n.visiblegames),"gamepagemodalurl"in n&&a(10,c=n.gamepagemodalurl),"showgamename"in n&&a(11,b=n.showgamename),"integratedgameframedesktop"in n&&a(12,G=n.integratedgameframedesktop),"integratedgameframemobile"in n&&a(13,E=n.integratedgameframemobile),"translationurl"in n&&a(31,k=n.translationurl),"favorites"in n&&a(14,P=n.favorites),"mostplayed"in n&&a(15,w=n.mostplayed),"lastplayed"in n&&a(16,M=n.lastplayed),"casinomygames"in n&&a(17,O=n.casinomygames),"lastplayedperiod"in n&&a(18,B=n.lastplayedperiod),"mostplayedperiod"in n&&a(19,A=n.mostplayedperiod),"lastplayedorder"in n&&a(20,j=n.lastplayedorder),"lastplayedlimit"in n&&a(21,q=n.lastplayedlimit),"lastplayedunique"in n&&a(22,D=n.lastplayedunique),"mostplayedrounds"in n&&a(23,S=n.mostplayedrounds)},s.$$.update=()=>{s.$$.dirty[0]&114716&&d&&o&&m&&P&&w&&M&&X(),s.$$.dirty[1]&1&&k&&W(),s.$$.dirty[0]&16777280&&g&&p&&Y(),s.$$.dirty[0]&16777344&&_&&p&&x()},[r,i,d,o,m,y,g,_,u,f,c,b,G,E,P,w,M,O,B,A,j,q,D,S,p,C,T,v,L,l,F,k,$,ee,te,ae]}class K extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ue,de,t.safe_not_equal,{userid:0,session:1,endpoint:2,datasource:3,lang:4,currency:5,clientstyling:6,clientstylingurl:7,livecasino:8,visiblegames:9,gamepagemodalurl:10,showgamename:11,integratedgameframedesktop:12,integratedgameframemobile:13,translationurl:31,favorites:14,mostplayed:15,lastplayed:16,casinomygames:17,lastplayedperiod:18,mostplayedperiod:19,lastplayedorder:20,lastplayedlimit:21,lastplayedunique:22,mostplayedrounds:23},ne,[-1,-1])}get userid(){return this.$$.ctx[0]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[1]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[3]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),t.flush()}get currency(){return this.$$.ctx[5]}set currency(e){this.$$set({currency: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 livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get visiblegames(){return this.$$.ctx[9]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[10]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[11]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[12]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[13]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get mostplayed(){return this.$$.ctx[15]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[16]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[18]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[19]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[20]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[21]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[22]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}}t.create_custom_element(K,{userid:{},session:{},endpoint:{},datasource:{},lang:{},currency:{},clientstyling:{},clientstylingurl:{},livecasino:{},visiblegames:{},gamepagemodalurl:{},showgamename:{},integratedgameframedesktop:{},integratedgameframemobile:{},translationurl:{},favorites:{},mostplayed:{},lastplayed:{},casinomygames:{},lastplayedperiod:{},mostplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},lastplayedunique:{},mostplayedrounds:{}},[],[],!0);exports.default=K;
|