@everymatrix/casino-my-games 1.77.20 → 1.77.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoFavoritesSection-B3MsVclW.js → CasinoFavoritesSection-BXiNKajp.js} +1108 -1138
- package/components/{CasinoFavoritesSection-DJJcT8CL.js → CasinoFavoritesSection-BhmYNoJe.js} +1131 -1161
- package/components/CasinoFavoritesSection-D6yt1tzP.cjs +3 -0
- package/components/{CasinoFilter-BN6M_P7p.js → CasinoFilter-ChoCgQ3w.js} +225 -157
- package/components/{CasinoFilter-D6drjDYX.js → CasinoFilter-CrAzQ_l-.js} +309 -239
- package/components/CasinoFilter-CtdTUQqV.cjs +16 -0
- package/components/{CasinoGameThumbnail-BH5vZ0wV.js → CasinoGameThumbnail-D1swZOWG.js} +104 -104
- package/components/{CasinoGameThumbnail-DBUGOyur.cjs → CasinoGameThumbnail-DEm78qtm.cjs} +1 -1
- package/components/{CasinoGameThumbnail-Gl-ZOHSx.js → CasinoGameThumbnail-DuJWa1yd.js} +107 -107
- package/components/{CasinoGamesCategorySection-CfSdzyPY.cjs → CasinoGamesCategorySection-BbI9zz0I.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-CxYAj6g8.js → CasinoGamesCategorySection-BnYJNqCW.js} +130 -130
- package/components/{CasinoGamesCategorySection-55-bWuYY.js → CasinoGamesCategorySection-K8poTXpJ.js} +71 -71
- package/components/{CasinoLastPlayedSection-Fn6HoEzj.cjs → CasinoLastPlayedSection-BiJT2JQs.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-B07ZSpFr.js → CasinoLastPlayedSection-COP0YJ11.js} +36 -36
- package/components/{CasinoLastPlayedSection-DtPqZF5Z.js → CasinoLastPlayedSection-D-enGXQ_.js} +36 -36
- package/components/{CasinoMostPlayedSection-6ZvIKOsQ.js → CasinoMostPlayedSection-Bqi_S8FR.js} +26 -26
- package/components/{CasinoMostPlayedSection-BIMIYNKw.cjs → CasinoMostPlayedSection-DZelWQsM.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-msk1gRdJ.js → CasinoMostPlayedSection-xfiPNhaG.js} +26 -26
- package/components/{CasinoMyGames-DS93f9XA.js → CasinoMyGames-BunXTxhl.js} +11 -11
- package/components/{CasinoMyGames-DN0dXvLl.js → CasinoMyGames-UmtQ5bU9.js} +11 -11
- package/components/{CasinoMyGames-Du1qlAYw.cjs → CasinoMyGames-ZGQP5CPd.cjs} +1 -1
- package/components/{CasinoSort-ByN7XZEq.js → CasinoSort-COot142U.js} +13 -13
- package/components/{CasinoSort-BZ2Z7Itc.js → CasinoSort-ClLb_08t.js} +13 -13
- package/components/{CasinoSort-DpGUwI27.cjs → CasinoSort-HBfFAv9Z.cjs} +1 -1
- package/es2015/casino-my-games.cjs +1 -1
- package/es2015/casino-my-games.js +1 -1
- package/esnext/casino-my-games.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
- package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-DfVgiF6v.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BY8ZO6br.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoFavoritesSection-fjgz8yhg.cjs +0 -16
- package/components/CasinoFilter-DX-4wkxD.cjs +0 -3
- package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
package/components/{CasinoLastPlayedSection-DtPqZF5Z.js → CasinoLastPlayedSection-D-enGXQ_.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as ye } from "./CasinoFilter-
|
|
3
|
-
function
|
|
1
|
+
import { b as ee, $ as te, S as ae, i as se, s as ie, f as l, c as ne, n as B, d as D, e as M, q as Z, g as L, k as A, h as le, o as re, j as oe, p as ue, w as ce, E as i, z as ge, A as me, B as de, C as fe, D as he } from "./CasinoFavoritesSection-BXiNKajp.js";
|
|
2
|
+
import { g as ye } from "./CasinoFilter-ChoCgQ3w.js";
|
|
3
|
+
function H(s, e) {
|
|
4
4
|
ee(s, e);
|
|
5
5
|
}
|
|
6
6
|
function be(s) {
|
|
7
7
|
te.set(s);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const V = {
|
|
10
10
|
en: {
|
|
11
11
|
noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
|
|
12
12
|
},
|
|
@@ -271,7 +271,7 @@ function _e(s) {
|
|
|
271
271
|
e = L("p"), n = ce(t), A(e, "class", "SearchLoading");
|
|
272
272
|
},
|
|
273
273
|
m(o, r) {
|
|
274
|
-
M(o, e, r),
|
|
274
|
+
M(o, e, r), Z(e, n);
|
|
275
275
|
},
|
|
276
276
|
p(o, r) {
|
|
277
277
|
r[0] & /*$_*/
|
|
@@ -285,10 +285,10 @@ function _e(s) {
|
|
|
285
285
|
}
|
|
286
286
|
function ke(s) {
|
|
287
287
|
let e, t;
|
|
288
|
-
function n(
|
|
288
|
+
function n(g, d) {
|
|
289
289
|
return (
|
|
290
290
|
/*lastPlayedEmpty*/
|
|
291
|
-
|
|
291
|
+
g[20] ? _e : we
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
let o = n(s), r = o(s);
|
|
@@ -296,41 +296,41 @@ function ke(s) {
|
|
|
296
296
|
c() {
|
|
297
297
|
e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
|
298
298
|
},
|
|
299
|
-
m(
|
|
300
|
-
M(
|
|
299
|
+
m(g, d) {
|
|
300
|
+
M(g, e, d), Z(e, t), r.m(t, null), s[26](e);
|
|
301
301
|
},
|
|
302
|
-
p(
|
|
303
|
-
o === (o = n(
|
|
302
|
+
p(g, d) {
|
|
303
|
+
o === (o = n(g)) && r ? r.p(g, d) : (r.d(1), r = o(g), r && (r.c(), r.m(t, null)));
|
|
304
304
|
},
|
|
305
|
-
i:
|
|
306
|
-
o:
|
|
307
|
-
d(
|
|
308
|
-
|
|
305
|
+
i: B,
|
|
306
|
+
o: B,
|
|
307
|
+
d(g) {
|
|
308
|
+
g && D(e), r.d(), s[26](null);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
function Le(s, e, t) {
|
|
313
313
|
let n;
|
|
314
314
|
le(s, he, (a) => t(21, n = a));
|
|
315
|
-
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency:
|
|
315
|
+
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
|
|
316
316
|
const Q = () => {
|
|
317
|
-
fetch(w).then((
|
|
318
|
-
Object.keys(
|
|
319
|
-
|
|
317
|
+
fetch(w).then((m) => m.json()).then((m) => {
|
|
318
|
+
Object.keys(m).forEach((u) => {
|
|
319
|
+
H(u, m[u]);
|
|
320
320
|
});
|
|
321
|
-
}).catch((
|
|
322
|
-
console.log(
|
|
321
|
+
}).catch((m) => {
|
|
322
|
+
console.log(m);
|
|
323
323
|
});
|
|
324
324
|
};
|
|
325
|
-
Object.keys(
|
|
326
|
-
|
|
325
|
+
Object.keys(V).forEach((a) => {
|
|
326
|
+
H(a, V[a]);
|
|
327
327
|
});
|
|
328
|
-
const W = () => new Promise((a,
|
|
328
|
+
const W = () => new Promise((a, m) => {
|
|
329
329
|
let u = new URL(`${o}/v1/player/${y}/games/last-played`);
|
|
330
|
-
u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"),
|
|
330
|
+
u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
|
|
331
331
|
c.items = c.items.filter(($) => {
|
|
332
|
-
let
|
|
333
|
-
return $.gameCode == "OddsMatrix2" && (c.count--,
|
|
332
|
+
let J = !0;
|
|
333
|
+
return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
|
|
334
334
|
}), a(c), window.postMessage(
|
|
335
335
|
{
|
|
336
336
|
type: "AddNewCategory",
|
|
@@ -339,16 +339,16 @@ function Le(s, e, t) {
|
|
|
339
339
|
window.location.href
|
|
340
340
|
), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
|
|
341
341
|
}).catch((c) => {
|
|
342
|
-
console.error(c),
|
|
342
|
+
console.error(c), m(c);
|
|
343
343
|
});
|
|
344
344
|
}), X = () => {
|
|
345
345
|
W().then((a) => {
|
|
346
346
|
if (a.count > 0) {
|
|
347
|
-
let
|
|
347
|
+
let m = [];
|
|
348
348
|
a.items.forEach((u) => {
|
|
349
349
|
let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
|
|
350
|
-
h.searchParams.append("datasource", r), _ ?
|
|
351
|
-
}), Promise.all(
|
|
350
|
+
h.searchParams.append("datasource", r), _ ? m.push(fetch(h.href).then((c) => c.json())) : m.push(fetch(h.href).then((c) => c.json()));
|
|
351
|
+
}), Promise.all(m).then((u) => {
|
|
352
352
|
k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
|
|
353
353
|
});
|
|
354
354
|
} else
|
|
@@ -365,19 +365,19 @@ function Le(s, e, t) {
|
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
367
|
return s.$$set = (a) => {
|
|
368
|
-
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2,
|
|
368
|
+
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, g = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, E = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
|
|
369
369
|
}, s.$$.update = () => {
|
|
370
370
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
371
371
|
41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
|
|
372
372
|
256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
373
|
-
524352 && b && f &&
|
|
374
|
-
524416 && v && f &&
|
|
373
|
+
524352 && b && f && ge(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
374
|
+
524416 && v && f && me(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
375
375
|
786432 && f && de(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
|
|
376
376
|
8 && d && p();
|
|
377
377
|
}, [
|
|
378
378
|
o,
|
|
379
379
|
r,
|
|
380
|
-
|
|
380
|
+
g,
|
|
381
381
|
d,
|
|
382
382
|
E,
|
|
383
383
|
y,
|
|
@@ -385,8 +385,8 @@ function Le(s, e, t) {
|
|
|
385
385
|
v,
|
|
386
386
|
w,
|
|
387
387
|
_,
|
|
388
|
-
F,
|
|
389
388
|
z,
|
|
389
|
+
F,
|
|
390
390
|
N,
|
|
391
391
|
O,
|
|
392
392
|
P,
|
package/components/{CasinoMostPlayedSection-6ZvIKOsQ.js → CasinoMostPlayedSection-Bqi_S8FR.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as he } from "./CasinoFilter-
|
|
1
|
+
import { b as $, $ as ee, S as te, i as se, s as ae, f as l, c as ne, n as J, d as A, e as E, q as K, g as P, k as M, h as ie, o as oe, j as le, p as re, w as me, E as n, z as ge, A as ce, B as ue, C as de, D as fe } from "./CasinoFavoritesSection-BXiNKajp.js";
|
|
2
|
+
import { g as he } from "./CasinoFilter-ChoCgQ3w.js";
|
|
3
3
|
function Y(a, e) {
|
|
4
4
|
$(a, e);
|
|
5
5
|
}
|
|
6
6
|
function ye(a) {
|
|
7
7
|
ee.set(a);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const H = {
|
|
10
10
|
en: {
|
|
11
11
|
noGames: "No games in most played"
|
|
12
12
|
},
|
|
@@ -313,7 +313,7 @@ function _e(a) {
|
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function we(a) {
|
|
317
317
|
let e, s;
|
|
318
318
|
function i(g, c) {
|
|
319
319
|
return (
|
|
@@ -342,9 +342,9 @@ function Ge(a) {
|
|
|
342
342
|
function ke(a, e, s) {
|
|
343
343
|
let i;
|
|
344
344
|
ie(a, fe, (t) => s(21, i = t));
|
|
345
|
-
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session:
|
|
345
|
+
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: _ = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: O = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: j } = e, { favorites: U = "" } = e, { translationurl: G = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
|
|
346
346
|
const V = () => {
|
|
347
|
-
fetch(
|
|
347
|
+
fetch(G).then((o) => o.json()).then((o) => {
|
|
348
348
|
Object.keys(o).forEach((d) => {
|
|
349
349
|
Y(d, o[d]);
|
|
350
350
|
});
|
|
@@ -352,19 +352,19 @@ function ke(a, e, s) {
|
|
|
352
352
|
console.log(o);
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
|
-
Object.keys(
|
|
356
|
-
Y(t,
|
|
355
|
+
Object.keys(H).forEach((t) => {
|
|
356
|
+
Y(t, H[t]);
|
|
357
357
|
});
|
|
358
|
-
let N = [],
|
|
358
|
+
let N = [], q, I = !1, u;
|
|
359
359
|
const W = (t) => {
|
|
360
360
|
let o = new URL(`${m}/v1/player/${b}/games/most-played`);
|
|
361
361
|
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", S);
|
|
362
362
|
let d = t.device;
|
|
363
|
-
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),
|
|
364
|
-
fetch(
|
|
363
|
+
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), q = k ? o : o.href, new Promise((f, y) => {
|
|
364
|
+
fetch(q).then((h) => h.json()).then((h) => {
|
|
365
365
|
h.items = h.items.filter((x) => {
|
|
366
|
-
let
|
|
367
|
-
return x.gameCode == "OddsMatrix2" && (h.count--,
|
|
366
|
+
let B = !0;
|
|
367
|
+
return x.gameCode == "OddsMatrix2" && (h.count--, B = !1), B;
|
|
368
368
|
}), f(h);
|
|
369
369
|
}).catch((h) => {
|
|
370
370
|
console.error(h), y(h);
|
|
@@ -385,7 +385,7 @@ function ke(a, e, s) {
|
|
|
385
385
|
N = d.filter((f) => !("error" in f)).map((f) => f[0]), C === "true" && (N = N.slice(0, JSON.parse(j))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
|
|
386
386
|
});
|
|
387
387
|
} else
|
|
388
|
-
s(20,
|
|
388
|
+
s(20, I = !0);
|
|
389
389
|
});
|
|
390
390
|
}, Z = () => {
|
|
391
391
|
ye(c);
|
|
@@ -398,50 +398,50 @@ function ke(a, e, s) {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
return a.$$set = (t) => {
|
|
401
|
-
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4,
|
|
401
|
+
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, _ = t.clientstyling), "clientstylingurl" in t && s(8, w = t.clientstylingurl), "livecasino" in t && s(9, k = t.livecasino), "integratedgameframemobile" in t && s(10, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, O = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, j = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(16, G = t.translationurl), "casinomygames" in t && s(17, C = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, L = t.mostplayedrounds), "fetchviaevent" in t && s(18, z = t.fetchviaevent);
|
|
402
402
|
}, a.$$.update = () => {
|
|
403
403
|
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
404
404
|
41 && m && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
405
405
|
524416 && _ && u && ge(u, _), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
406
|
-
524544 &&
|
|
406
|
+
524544 && w && u && ce(u, w), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
407
407
|
524352 && v && u && ue(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
|
|
408
|
-
65536 &&
|
|
408
|
+
65536 && G && V(), a.$$.dirty[0] & /*lang*/
|
|
409
409
|
8 && c && Z();
|
|
410
410
|
}, [
|
|
411
411
|
m,
|
|
412
412
|
r,
|
|
413
413
|
g,
|
|
414
414
|
c,
|
|
415
|
-
|
|
415
|
+
D,
|
|
416
416
|
b,
|
|
417
417
|
v,
|
|
418
418
|
_,
|
|
419
|
-
|
|
419
|
+
w,
|
|
420
420
|
k,
|
|
421
|
-
|
|
421
|
+
F,
|
|
422
422
|
O,
|
|
423
423
|
R,
|
|
424
424
|
T,
|
|
425
425
|
j,
|
|
426
426
|
U,
|
|
427
|
-
|
|
427
|
+
G,
|
|
428
428
|
C,
|
|
429
429
|
z,
|
|
430
430
|
u,
|
|
431
|
-
|
|
431
|
+
I,
|
|
432
432
|
i,
|
|
433
433
|
S,
|
|
434
434
|
L,
|
|
435
435
|
p
|
|
436
436
|
];
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Ge extends te {
|
|
439
439
|
constructor(e) {
|
|
440
440
|
super(), se(
|
|
441
441
|
this,
|
|
442
442
|
e,
|
|
443
443
|
ke,
|
|
444
|
-
|
|
444
|
+
we,
|
|
445
445
|
ae,
|
|
446
446
|
{
|
|
447
447
|
endpoint: 0,
|
|
@@ -597,7 +597,7 @@ class we extends te {
|
|
|
597
597
|
this.$$set({ fetchviaevent: e }), l();
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
de(
|
|
600
|
+
de(Ge, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
|
|
601
601
|
export {
|
|
602
|
-
|
|
602
|
+
Ge as default
|
|
603
603
|
};
|
package/components/{CasinoMostPlayedSection-BIMIYNKw.cjs → CasinoMostPlayedSection-DZelWQsM.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFavoritesSection-fjgz8yhg.cjs"),V=require("./CasinoFilter-DX-4wkxD.cjs");function U(n,e){t.addMessages(n,e)}function W(n){t.$locale.set(n)}const q={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 X(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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 Z(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[18]),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[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"translationurl",n[16]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[17]),t.set_custom_element_data(e,"mbsource",n[6])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&262144&&t.set_custom_element_data(e,"fetchviaevent",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&65536&&t.set_custom_element_data(e,"translationurl",a[16]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function p(n){let e,a=n[21]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&2097152&&a!==(a=l[21]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function x(n){let e,a;function i(r,u){return r[20]?p:Z}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),o.m(a,null),n[24](e)},p(r,u){l===(l=i(r))&&o?o.p(r,u):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:F=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:S="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:E="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],D,T=!1,c;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",S);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),D=w?m:m.href,new Promise((g,f)=>{fetch(D).then(_=>_.json()).then(_=>{_.items=_.items.filter(Q=>{let R=!0;return Q.gameCode=="OddsMatrix2"&&(_.count--,R=!1),R}),g(_)}).catch(_=>{console.error(_),f(_)})})},B=()=>{Y({limit:100,device:V.getDevice(I),rounds:C}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(f=>f.json())):m.push(fetch(g.href).then(f=>f.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(20,T=!0)})},H=()=>{W(u)};t.onMount(()=>()=>{});function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(19,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,A=s.gamepagemodalurl),"showgamename"in s&&a(13,F=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(16,G=s.translationurl),"casinomygames"in s&&a(17,P=s.casinomygames),"mostplayedperiod"in s&&a(22,S=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,C=s.mostplayedrounds),"fetchviaevent"in s&&a(18,E=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&u&&B(),n.$$.dirty[0]&524416&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&524544&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&524352&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&65536&&G&&J(),n.$$.dirty[0]&8&&u&&H()},[l,o,r,u,j,h,y,b,v,w,M,L,A,F,N,O,G,P,E,c,T,i,S,C,K]}class z 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,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:16,casinomygames:17,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:18},X,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[18]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFavoritesSection-D6yt1tzP.cjs"),V=require("./CasinoFilter-CtdTUQqV.cjs");function U(n,e){t.addMessages(n,e)}function W(n){t.$locale.set(n)}const q={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 X(n){t.append_styles(n,"svelte-1de9den","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.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 Z(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[18]),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[13]),t.set_custom_element_data(e,"clientstyling",n[7]),t.set_custom_element_data(e,"clientstylingurl",n[8]),t.set_custom_element_data(e,"translationurl",n[16]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[17]),t.set_custom_element_data(e,"mbsource",n[6])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&262144&&t.set_custom_element_data(e,"fetchviaevent",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&128&&t.set_custom_element_data(e,"clientstyling",a[7]),i[0]&256&&t.set_custom_element_data(e,"clientstylingurl",a[8]),i[0]&65536&&t.set_custom_element_data(e,"translationurl",a[16]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&131072&&t.set_custom_element_data(e,"casinomygames",a[17]),i[0]&64&&t.set_custom_element_data(e,"mbsource",a[6])},d(a){a&&t.detach(e)}}}function p(n){let e,a=n[21]("noGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(l,o){t.insert(l,e,o),t.append(e,i)},p(l,o){o[0]&2097152&&a!==(a=l[21]("noGames")+"")&&t.set_data(i,a)},d(l){l&&t.detach(e)}}}function x(n){let e,a;function i(r,u){return r[20]?p:Z}let l=i(n),o=l(n);return{c(){e=t.element("div"),a=t.element("div"),o.c(),t.attr(a,"class","casino-most-played-section"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(r,u){t.insert(r,e,u),t.append(e,a),o.m(a,null),n[24](e)},p(r,u){l===(l=i(r))&&o?o.p(r,u):(o.d(1),o=l(r),o&&(o.c(),o.m(a,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),o.d(),n[24](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:l=""}=e,{datasource:o=""}=e,{currency:r=""}=e,{lang:u=""}=e,{session:j=""}=e,{userid:h=""}=e,{mbsource:y}=e,{clientstyling:b=""}=e,{clientstylingurl:v=""}=e,{livecasino:w="false"}=e,{integratedgameframemobile:M="false"}=e,{integratedgameframedesktop:L="false"}=e,{gamepagemodalurl:A="false"}=e,{showgamename:F=""}=e,{visiblegames:N}=e,{favorites:O=""}=e,{translationurl:G=""}=e,{casinomygames:P="false"}=e,{mostplayedperiod:S="Last30Days"}=e,{mostplayedrounds:C="10"}=e,{fetchviaevent:E="true"}=e,I=window.navigator.userAgent;const J=()=>{fetch(G).then(m=>m.json()).then(m=>{Object.keys(m).forEach(d=>{U(d,m[d])})}).catch(m=>{console.log(m)})};Object.keys(q).forEach(s=>{U(s,q[s])});let k=[],D,T=!1,c;const Y=s=>{let m=new URL(`${l}/v1/player/${h}/games/most-played`);s.limit&&m.searchParams.append("limit",s.limit),s.order&&m.searchParams.append("order",s.order),m.searchParams.append("expand","games"),m.searchParams.append("period",S);let d=s.device;return d?d==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"):m.searchParams.append("device","All"),s.rounds&&m.searchParams.append("rounds",s.rounds),D=w?m:m.href,new Promise((g,f)=>{fetch(D).then(_=>_.json()).then(_=>{_.items=_.items.filter(Q=>{let R=!0;return Q.gameCode=="OddsMatrix2"&&(_.count--,R=!1),R}),g(_)}).catch(_=>{console.error(_),f(_)})})},B=()=>{Y({limit:100,device:V.getDevice(I),rounds:C}).then(s=>{if(s.count>0){let m=[];s.items.forEach(d=>{let g=new URL(`${l}/v1/casino/games/${d.gameId}`);g.searchParams.append("datasource",o),w?m.push(fetch(g.href).then(f=>f.json())):m.push(fetch(g.href).then(f=>f.json()))}),Promise.all(m).then(d=>{k=d.filter(g=>!("error"in g)).map(g=>g[0]),P==="true"&&(k=k.slice(0,JSON.parse(N))),window.postMessage({type:"MostPlayedData",mostPlayedGames:k},window.location.href)})}else a(20,T=!0)})},H=()=>{W(u)};t.onMount(()=>()=>{});function K(s){t.binding_callbacks[s?"unshift":"push"](()=>{c=s,a(19,c)})}return n.$$set=s=>{"endpoint"in s&&a(0,l=s.endpoint),"datasource"in s&&a(1,o=s.datasource),"currency"in s&&a(2,r=s.currency),"lang"in s&&a(3,u=s.lang),"session"in s&&a(4,j=s.session),"userid"in s&&a(5,h=s.userid),"mbsource"in s&&a(6,y=s.mbsource),"clientstyling"in s&&a(7,b=s.clientstyling),"clientstylingurl"in s&&a(8,v=s.clientstylingurl),"livecasino"in s&&a(9,w=s.livecasino),"integratedgameframemobile"in s&&a(10,M=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,L=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,A=s.gamepagemodalurl),"showgamename"in s&&a(13,F=s.showgamename),"visiblegames"in s&&a(14,N=s.visiblegames),"favorites"in s&&a(15,O=s.favorites),"translationurl"in s&&a(16,G=s.translationurl),"casinomygames"in s&&a(17,P=s.casinomygames),"mostplayedperiod"in s&&a(22,S=s.mostplayedperiod),"mostplayedrounds"in s&&a(23,C=s.mostplayedrounds),"fetchviaevent"in s&&a(18,E=s.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&l&&h&&u&&B(),n.$$.dirty[0]&524416&&b&&c&&t.setClientStyling(c,b),n.$$.dirty[0]&524544&&v&&c&&t.setClientStylingURL(c,v),n.$$.dirty[0]&524352&&y&&c&&t.setStreamStyling(c,`${y}.Style`),n.$$.dirty[0]&65536&&G&&J(),n.$$.dirty[0]&8&&u&&H()},[l,o,r,u,j,h,y,b,v,w,M,L,A,F,N,O,G,P,E,c,T,i,S,C,K]}class z 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,mbsource:6,clientstyling:7,clientstylingurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,translationurl:16,casinomygames:17,mostplayedperiod:22,mostplayedrounds:23,fetchviaevent:18},X,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get casinomygames(){return this.$$.ctx[17]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get mostplayedperiod(){return this.$$.ctx[22]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),t.flush()}get mostplayedrounds(){return this.$$.ctx[23]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[18]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(z,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},mbsource:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},translationurl:{},casinomygames:{},mostplayedperiod:{},mostplayedrounds:{},fetchviaevent:{}},[],[],!0);exports.default=z;
|
package/components/{CasinoMostPlayedSection-msk1gRdJ.js → CasinoMostPlayedSection-xfiPNhaG.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as he } from "./CasinoFilter-
|
|
1
|
+
import { b as $, $ as ee, S as te, i as se, s as ae, f as l, c as ne, n as J, d as A, e as E, q as K, g as P, k as M, h as ie, o as oe, j as le, p as re, w as me, E as n, z as ge, A as ce, B as ue, C as de, D as fe } from "./CasinoFavoritesSection-BhmYNoJe.js";
|
|
2
|
+
import { g as he } from "./CasinoFilter-CrAzQ_l-.js";
|
|
3
3
|
function Y(a, e) {
|
|
4
4
|
$(a, e);
|
|
5
5
|
}
|
|
6
6
|
function ye(a) {
|
|
7
7
|
ee.set(a);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const H = {
|
|
10
10
|
en: {
|
|
11
11
|
noGames: "No games in most played"
|
|
12
12
|
},
|
|
@@ -313,7 +313,7 @@ function _e(a) {
|
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function we(a) {
|
|
317
317
|
let e, s;
|
|
318
318
|
function i(g, c) {
|
|
319
319
|
return (
|
|
@@ -342,9 +342,9 @@ function Ge(a) {
|
|
|
342
342
|
function ke(a, e, s) {
|
|
343
343
|
let i;
|
|
344
344
|
ie(a, fe, (t) => s(21, i = t));
|
|
345
|
-
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session:
|
|
345
|
+
let { endpoint: m = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: c = "" } = e, { session: D = "" } = e, { userid: b = "" } = e, { mbsource: v } = e, { clientstyling: _ = "" } = e, { clientstylingurl: w = "" } = e, { livecasino: k = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: O = "false" } = e, { gamepagemodalurl: R = "false" } = e, { showgamename: T = "" } = e, { visiblegames: j } = e, { favorites: U = "" } = e, { translationurl: G = "" } = e, { casinomygames: C = "false" } = e, { mostplayedperiod: S = "Last30Days" } = e, { mostplayedrounds: L = "10" } = e, { fetchviaevent: z = "true" } = e, Q = window.navigator.userAgent;
|
|
346
346
|
const V = () => {
|
|
347
|
-
fetch(
|
|
347
|
+
fetch(G).then((o) => o.json()).then((o) => {
|
|
348
348
|
Object.keys(o).forEach((d) => {
|
|
349
349
|
Y(d, o[d]);
|
|
350
350
|
});
|
|
@@ -352,19 +352,19 @@ function ke(a, e, s) {
|
|
|
352
352
|
console.log(o);
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
|
-
Object.keys(
|
|
356
|
-
Y(t,
|
|
355
|
+
Object.keys(H).forEach((t) => {
|
|
356
|
+
Y(t, H[t]);
|
|
357
357
|
});
|
|
358
|
-
let N = [],
|
|
358
|
+
let N = [], q, I = !1, u;
|
|
359
359
|
const W = (t) => {
|
|
360
360
|
let o = new URL(`${m}/v1/player/${b}/games/most-played`);
|
|
361
361
|
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", S);
|
|
362
362
|
let d = t.device;
|
|
363
|
-
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),
|
|
364
|
-
fetch(
|
|
363
|
+
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), q = k ? o : o.href, new Promise((f, y) => {
|
|
364
|
+
fetch(q).then((h) => h.json()).then((h) => {
|
|
365
365
|
h.items = h.items.filter((x) => {
|
|
366
|
-
let
|
|
367
|
-
return x.gameCode == "OddsMatrix2" && (h.count--,
|
|
366
|
+
let B = !0;
|
|
367
|
+
return x.gameCode == "OddsMatrix2" && (h.count--, B = !1), B;
|
|
368
368
|
}), f(h);
|
|
369
369
|
}).catch((h) => {
|
|
370
370
|
console.error(h), y(h);
|
|
@@ -385,7 +385,7 @@ function ke(a, e, s) {
|
|
|
385
385
|
N = d.filter((f) => !("error" in f)).map((f) => f[0]), C === "true" && (N = N.slice(0, JSON.parse(j))), window.postMessage({ type: "MostPlayedData", mostPlayedGames: N }, window.location.href);
|
|
386
386
|
});
|
|
387
387
|
} else
|
|
388
|
-
s(20,
|
|
388
|
+
s(20, I = !0);
|
|
389
389
|
});
|
|
390
390
|
}, Z = () => {
|
|
391
391
|
ye(c);
|
|
@@ -398,50 +398,50 @@ function ke(a, e, s) {
|
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
return a.$$set = (t) => {
|
|
401
|
-
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4,
|
|
401
|
+
"endpoint" in t && s(0, m = t.endpoint), "datasource" in t && s(1, r = t.datasource), "currency" in t && s(2, g = t.currency), "lang" in t && s(3, c = t.lang), "session" in t && s(4, D = t.session), "userid" in t && s(5, b = t.userid), "mbsource" in t && s(6, v = t.mbsource), "clientstyling" in t && s(7, _ = t.clientstyling), "clientstylingurl" in t && s(8, w = t.clientstylingurl), "livecasino" in t && s(9, k = t.livecasino), "integratedgameframemobile" in t && s(10, F = t.integratedgameframemobile), "integratedgameframedesktop" in t && s(11, O = t.integratedgameframedesktop), "gamepagemodalurl" in t && s(12, R = t.gamepagemodalurl), "showgamename" in t && s(13, T = t.showgamename), "visiblegames" in t && s(14, j = t.visiblegames), "favorites" in t && s(15, U = t.favorites), "translationurl" in t && s(16, G = t.translationurl), "casinomygames" in t && s(17, C = t.casinomygames), "mostplayedperiod" in t && s(22, S = t.mostplayedperiod), "mostplayedrounds" in t && s(23, L = t.mostplayedrounds), "fetchviaevent" in t && s(18, z = t.fetchviaevent);
|
|
402
402
|
}, a.$$.update = () => {
|
|
403
403
|
a.$$.dirty[0] & /*endpoint, userid, lang*/
|
|
404
404
|
41 && m && b && c && X(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
405
405
|
524416 && _ && u && ge(u, _), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
406
|
-
524544 &&
|
|
406
|
+
524544 && w && u && ce(u, w), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
407
407
|
524352 && v && u && ue(u, `${v}.Style`), a.$$.dirty[0] & /*translationurl*/
|
|
408
|
-
65536 &&
|
|
408
|
+
65536 && G && V(), a.$$.dirty[0] & /*lang*/
|
|
409
409
|
8 && c && Z();
|
|
410
410
|
}, [
|
|
411
411
|
m,
|
|
412
412
|
r,
|
|
413
413
|
g,
|
|
414
414
|
c,
|
|
415
|
-
|
|
415
|
+
D,
|
|
416
416
|
b,
|
|
417
417
|
v,
|
|
418
418
|
_,
|
|
419
|
-
|
|
419
|
+
w,
|
|
420
420
|
k,
|
|
421
|
-
|
|
421
|
+
F,
|
|
422
422
|
O,
|
|
423
423
|
R,
|
|
424
424
|
T,
|
|
425
425
|
j,
|
|
426
426
|
U,
|
|
427
|
-
|
|
427
|
+
G,
|
|
428
428
|
C,
|
|
429
429
|
z,
|
|
430
430
|
u,
|
|
431
|
-
|
|
431
|
+
I,
|
|
432
432
|
i,
|
|
433
433
|
S,
|
|
434
434
|
L,
|
|
435
435
|
p
|
|
436
436
|
];
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Ge extends te {
|
|
439
439
|
constructor(e) {
|
|
440
440
|
super(), se(
|
|
441
441
|
this,
|
|
442
442
|
e,
|
|
443
443
|
ke,
|
|
444
|
-
|
|
444
|
+
we,
|
|
445
445
|
ae,
|
|
446
446
|
{
|
|
447
447
|
endpoint: 0,
|
|
@@ -597,7 +597,7 @@ class we extends te {
|
|
|
597
597
|
this.$$set({ fetchviaevent: e }), l();
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
de(
|
|
600
|
+
de(Ge, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, translationurl: {}, casinomygames: {}, mostplayedperiod: {}, mostplayedrounds: {}, fetchviaevent: {} }, [], [], !0);
|
|
601
601
|
export {
|
|
602
|
-
|
|
602
|
+
Ge as default
|
|
603
603
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { i as Be } from "./CasinoFilter-
|
|
1
|
+
import { $ as U, a as ce, b as he, C as ve, S as be, i as pe, s as Pe, f as g, c as _e, n as ee, d as k, e as F, g as _, h as Me, o as we, j as ke, l as ae, m as Fe, E as a, F as E, k as M, q as b, v as C, G as Ge, p as z, t as I, w as A, D as Ce, z as Le, A as Ee, B as Ae } from "./CasinoFavoritesSection-BXiNKajp.js";
|
|
2
|
+
import { i as Be } from "./CasinoFilter-ChoCgQ3w.js";
|
|
3
3
|
function Oe({ withLocale: t, translations: e }) {
|
|
4
|
-
|
|
5
|
-
n == null && (ce.set(e),
|
|
4
|
+
U.subscribe((n) => {
|
|
5
|
+
n == null && (ce.set(e), U.set(t));
|
|
6
6
|
});
|
|
7
7
|
}
|
|
8
8
|
function te(t, e) {
|
|
9
9
|
he(t, e);
|
|
10
10
|
}
|
|
11
11
|
function je(t) {
|
|
12
|
-
|
|
12
|
+
U.set(t);
|
|
13
13
|
}
|
|
14
14
|
const se = {
|
|
15
15
|
en: {
|
|
@@ -115,7 +115,7 @@ if (typeof window < "u") {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
|
-
customElements.define = t(customElements.define), import("./CasinoFavoritesSection-
|
|
118
|
+
customElements.define = t(customElements.define), import("./CasinoFavoritesSection-BXiNKajp.js").then((e) => e.M).then(({ default: e }) => {
|
|
119
119
|
!customElements.get("casino-favorites-section") && customElements.define("casino-favorites-section", e.element);
|
|
120
120
|
});
|
|
121
121
|
}
|
|
@@ -131,7 +131,7 @@ if (typeof window < "u") {
|
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
customElements.define = t(customElements.define), import("./CasinoLastPlayedSection-
|
|
134
|
+
customElements.define = t(customElements.define), import("./CasinoLastPlayedSection-D-enGXQ_.js").then(({ default: e }) => {
|
|
135
135
|
!customElements.get("casino-last-played-section") && customElements.define("casino-last-played-section", e.element);
|
|
136
136
|
});
|
|
137
137
|
}
|
|
@@ -147,7 +147,7 @@ if (typeof window < "u") {
|
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
customElements.define = t(customElements.define), import("./CasinoMostPlayedSection-
|
|
150
|
+
customElements.define = t(customElements.define), import("./CasinoMostPlayedSection-Bqi_S8FR.js").then(({ default: e }) => {
|
|
151
151
|
!customElements.get("casino-most-played-section") && customElements.define("casino-most-played-section", e.element);
|
|
152
152
|
});
|
|
153
153
|
}
|
|
@@ -913,7 +913,7 @@ function le(t) {
|
|
|
913
913
|
(t[15] == "false" ? "Off" : ""));
|
|
914
914
|
},
|
|
915
915
|
m(v, c) {
|
|
916
|
-
F(v, e, c), b(e, d), b(e, u), b(e, f), b(f, l), b(f, y), b(f, i), m || (P =
|
|
916
|
+
F(v, e, c), b(e, d), b(e, u), b(e, f), b(f, l), b(f, y), b(f, i), m || (P = I(
|
|
917
917
|
e,
|
|
918
918
|
"click",
|
|
919
919
|
/*click_handler*/
|
|
@@ -950,7 +950,7 @@ function ne(t) {
|
|
|
950
950
|
(t[16] == "false" ? "Off" : ""));
|
|
951
951
|
},
|
|
952
952
|
m(y, i) {
|
|
953
|
-
F(y, e, i), b(e, d), f || (l =
|
|
953
|
+
F(y, e, i), b(e, d), f || (l = I(
|
|
954
954
|
e,
|
|
955
955
|
"click",
|
|
956
956
|
/*click_handler_1*/
|
|
@@ -982,7 +982,7 @@ function oe(t) {
|
|
|
982
982
|
(t[17] == "false" ? "Off" : ""));
|
|
983
983
|
},
|
|
984
984
|
m(i, p) {
|
|
985
|
-
F(i, e, p), b(e, d), b(e, u), l || (y =
|
|
985
|
+
F(i, e, p), b(e, d), b(e, u), l || (y = I(
|
|
986
986
|
e,
|
|
987
987
|
"click",
|
|
988
988
|
/*click_handler_2*/
|