@everymatrix/casino-lobby 1.59.2 → 1.59.3
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/{CasinoCalendar-Km8tdNHN.js → CasinoCalendar-BYTytQgJ.js} +690 -712
- package/components/{CasinoCalendar-6ncpIgng.js → CasinoCalendar-CI-C6zUY.js} +696 -718
- package/components/CasinoCalendar-DqS7aKva.cjs +22 -0
- package/components/{CasinoCalendarDailyDetails-CGaAU2gc.js → CasinoCalendarDailyDetails-DQB9Y3_Q.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-CsEZhtVE.cjs → CasinoCalendarDailyDetails-DUQWFLJJ.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-CAbwFBvZ.js → CasinoCalendarDailyDetails-Xi-Uo8v-.js} +48 -48
- package/components/{CasinoCalendarDailyItem-DSlC0F3s.cjs → CasinoCalendarDailyItem-CVt2FFo1.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-5aqnKIMr.js → CasinoCalendarDailyItem-CjRZKnnD.js} +41 -41
- package/components/{CasinoCalendarDailyItem-D_MTrKed.js → CasinoCalendarDailyItem-DC91__VM.js} +41 -41
- package/components/{CasinoCategoriesSlider-CZHyRC-C.js → CasinoCategoriesSlider-BeqGvJrA.js} +67 -67
- package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-Cvb-krxJ.js} +66 -66
- package/components/CasinoCategoriesSlider-DZpvR9sw.cjs +1 -0
- package/components/{CasinoCollectionsProviders-B7d5LuGP.js → CasinoCollectionsProviders-BMyAx20Y.js} +73 -73
- package/components/{CasinoCollectionsProviders-pk8jpLQt.js → CasinoCollectionsProviders-B_4F6cIK.js} +71 -71
- package/components/{CasinoCollectionsProviders-B6occ8TF.cjs → CasinoCollectionsProviders-FGrPURo4.cjs} +1 -1
- package/components/{CasinoFavoritesSection-C949lfcK.js → CasinoFavoritesSection-BZmf5I3g.js} +26 -26
- package/components/{CasinoFavoritesSection-hHKNAcoS.cjs → CasinoFavoritesSection-CBb3Eo8J.cjs} +1 -1
- package/components/{CasinoFavoritesSection-V5ybOUJC.js → CasinoFavoritesSection-Dmko0_Ik.js} +26 -26
- package/components/{CasinoFilter-BWjq7W1e.js → CasinoFilter-BHLJqOwW.js} +235 -234
- package/components/CasinoFilter-Bg-VilMd.cjs +1 -0
- package/components/{CasinoFilter-BTof425X.js → CasinoFilter-Dt8GhenI.js} +246 -247
- package/components/{CasinoGamePage-ssKF-ZD1.js → CasinoGamePage-5moXxd0d.js} +741 -741
- package/components/{CasinoGamePage-D2huRBJX.cjs → CasinoGamePage-BmgERtPr.cjs} +6 -6
- package/components/{CasinoGamePage-Cp2CKRka.js → CasinoGamePage-D_TzJsC-.js} +742 -742
- package/components/{CasinoGameThumbnail-CVz7FpsB.js → CasinoGameThumbnail-DSjNVacg.js} +512 -528
- package/components/{CasinoGameThumbnail-NLieCJGe.js → CasinoGameThumbnail-DqBpfUwf.js} +436 -420
- package/components/{CasinoGameThumbnail-DK9cpR-G.cjs → CasinoGameThumbnail-OrvrYv4V.cjs} +15 -15
- package/components/{CasinoGamesCategorySection-BP3bZsZg.js → CasinoGamesCategorySection-Ce43OSOZ.js} +247 -247
- package/components/{CasinoGamesCategorySection-BAcJus2G.cjs → CasinoGamesCategorySection-DEh7yuGp.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-Bpy9vh6D.js → CasinoGamesCategorySection-d8QOFywW.js} +247 -247
- package/components/{CasinoJackpotBanner-DredUN6K.cjs → CasinoJackpotBanner-B_CnR3Kj.cjs} +1 -1
- package/components/{CasinoJackpotBanner-CuP8WP5Q.js → CasinoJackpotBanner-Dxq2Y_-S.js} +74 -74
- package/components/{CasinoJackpotBanner-Dl2rX6vI.js → CasinoJackpotBanner-UQaC63Zv.js} +69 -69
- package/components/{CasinoLastPlayedSection-CVEuFsbi.js → CasinoLastPlayedSection-BVANPPTi.js} +43 -43
- package/components/{CasinoLastPlayedSection-B9I2fZm5.js → CasinoLastPlayedSection-Bmr8n1pA.js} +43 -43
- package/components/{CasinoLastPlayedSection-COAM1aoc.cjs → CasinoLastPlayedSection-CyL83M3y.cjs} +1 -1
- package/components/{CasinoLobby-AoZlXLOV.js → CasinoLobby-CWzN0imw.js} +45 -45
- package/components/{CasinoLobby-BRiasSXJ.js → CasinoLobby-DUI1Ki3q.js} +47 -47
- package/components/{CasinoLobby-CYqI5Bvp.cjs → CasinoLobby-os94WdnE.cjs} +1 -1
- package/components/{CasinoModal-B9Gmdwc0.js → CasinoModal-BaV1FE12.js} +41 -41
- package/components/{CasinoModal-DLgyWFbs.js → CasinoModal-Bn6r73ff.js} +41 -41
- package/components/{CasinoModal-d1VUXUWj.cjs → CasinoModal-DWbCqr0p.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-9B6X9czZ.js → CasinoMostPlayedSection-B4SHGVp4.js} +50 -50
- package/components/{CasinoMostPlayedSection-DwZh0uxo.js → CasinoMostPlayedSection-CD00UC6r.js} +50 -50
- package/components/{CasinoMostPlayedSection-BUwIld9p.cjs → CasinoMostPlayedSection-y-GWnOes.cjs} +1 -1
- package/components/{CasinoMyGames-76IMIo9z.js → CasinoMyGames-BBsq56wQ.js} +50 -50
- package/components/{CasinoMyGames-DTGaTHyO.cjs → CasinoMyGames-DKu8rYmc.cjs} +1 -1
- package/components/{CasinoMyGames-DRCxYUHg.js → CasinoMyGames-DRCL87dq.js} +53 -53
- package/components/{CasinoPage-CikRIum6.js → CasinoPage-BJ2hLXJb.js} +93 -93
- package/components/{CasinoPage-DZ6Yhwli.cjs → CasinoPage-CXAKd3oS.cjs} +1 -1
- package/components/{CasinoPage-BPxxsTeq.js → CasinoPage-DXP80Vgm.js} +85 -85
- package/components/{CasinoRandomGame-CBcSHzZL.cjs → CasinoRandomGame-BO7BqLXA.cjs} +1 -1
- package/components/{CasinoRandomGame-CfOiAKHl.js → CasinoRandomGame-CsA5xgwc.js} +63 -63
- package/components/{CasinoRandomGame-CqripZYr.js → CasinoRandomGame-DLzqJj4x.js} +64 -64
- package/components/{CasinoSearch-CZSrkWFZ.cjs → CasinoSearch-CxFbGTdy.cjs} +1 -1
- package/components/{CasinoSearch-CCcjmB9U.js → CasinoSearch-CzUqsTgU.js} +72 -72
- package/components/{CasinoSearch-Cs8FRwGb.js → CasinoSearch-atJ6AGYa.js} +72 -72
- package/components/{CasinoSlider-CMKmgXUK.cjs → CasinoSlider-CgiDJzPs.cjs} +1 -1
- package/components/{CasinoSlider-0rdHVHjG.js → CasinoSlider-DjqwMakd.js} +65 -65
- package/components/{CasinoSlider-CleETLFf.js → CasinoSlider-zHVThApL.js} +74 -74
- package/components/{CasinoSort-C78a6veQ.cjs → CasinoSort-23PYwtO1.cjs} +1 -1
- package/components/{CasinoSort-xZsxfLYC.js → CasinoSort-B3A_Ar_A.js} +110 -111
- package/components/{CasinoSort-BRC8Jmi_.js → CasinoSort-DtUIrmuZ.js} +104 -103
- package/components/{CasinoWinners-DD8ZyQkV.js → CasinoWinners-CF_PptIS.js} +162 -162
- package/components/{CasinoWinners-BEOhs5WG.js → CasinoWinners-Gb2w2dXe.js} +179 -179
- package/components/{CasinoWinners-Cp1yMlzb.cjs → CasinoWinners-KEY7dD3z.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CURVDkRT.js → GeneralAnimationLoading-8TvNjXay.js} +16 -16
- package/components/{GeneralAnimationLoading-Bl6_sP-d.cjs → GeneralAnimationLoading-B-6s0l9d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-uswxvfCW.js → GeneralAnimationLoading-Bbxdne1m.js} +16 -16
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +2 -2
- package/stencil/{casino-play-random-game-Bk7toWLj.js → casino-play-random-game-CLSQBVzD.js} +2 -2
- package/stencil/{casino-play-random-game-CKM_xKne.cjs → casino-play-random-game-CdZKN03s.cjs} +2 -2
- package/stencil/{casino-play-random-game-BW66Civ1.js → casino-play-random-game-Dm8A9dTR.js} +2 -2
- package/stencil/index-ab3202d6-C1hgKWrC.cjs +1 -0
- package/stencil/index-ab3202d6-OPh7hJp9.js +575 -0
- package/stencil/index-ab3202d6-hGs51skN.js +559 -0
- package/stencil/index-ae04a8b1-BhaHMrLE.js +516 -0
- package/stencil/index-ae04a8b1-Dn3cponN.js +532 -0
- package/stencil/index-ae04a8b1-jEvGbYrB.cjs +1 -0
- package/stencil/{ui-skeleton-DET4YE0J.js → ui-skeleton-Bz6cw7xJ.js} +2 -2
- package/stencil/{ui-skeleton-DlNNnOZy.cjs → ui-skeleton-D9k-xWaS.cjs} +1 -1
- package/stencil/{ui-skeleton-C02hm1pt.js → ui-skeleton-DDYD_XHU.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-Dn9GOtgo.js → ui-skeleton-a642cced-Bg6oYmhk.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-BhVS1i2r.cjs → ui-skeleton-a642cced-CVw8zpGJ.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-7C4Fyb2d.js → ui-skeleton-a642cced-MvzXi5-c.js} +1 -1
- package/components/CasinoCalendar-CkNAiTx8.cjs +0 -22
- package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +0 -1
- package/components/CasinoFilter-C2Q93qQz.cjs +0 -1
- package/stencil/index-ab3202d6-BW1TSmQg.js +0 -575
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +0 -1
- package/stencil/index-ab3202d6-CkTejM5U.js +0 -559
- package/stencil/index-ae04a8b1-BvZmaj3p.js +0 -532
- package/stencil/index-ae04a8b1-DoeYpoC5.js +0 -516
- package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +0 -1
package/components/{CasinoCategoriesSlider-CZHyRC-C.js → CasinoCategoriesSlider-BeqGvJrA.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as re, S as le, i as ce, s as me, f as l, b as ge, n as S, d as E, h as j, j as h, k as ue, o as ye, N as fe, C as be, r as T, O as n, p as de, P as he, I as Ne, J as we, K as Le, L as Me, Q as _e, M as ve } from "./CasinoCalendar-CI-C6zUY.js";
|
|
2
|
+
function Z(i, e) {
|
|
3
|
+
re(i, e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const x = {
|
|
6
6
|
en: {
|
|
7
7
|
lobbyName: "Lobby",
|
|
8
8
|
myGamesName: "My games"
|
|
@@ -76,7 +76,7 @@ const p = {
|
|
|
76
76
|
myGamesName: "My games"
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
if (typeof window
|
|
79
|
+
if (typeof window != "undefined") {
|
|
80
80
|
let i = function(e) {
|
|
81
81
|
return function(...t) {
|
|
82
82
|
try {
|
|
@@ -88,14 +88,14 @@ if (typeof window < "u") {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
customElements.define = i(customElements.define), import("./CasinoSlider-
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-zHVThApL.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
95
|
+
function Ce(i) {
|
|
96
|
+
ge(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ge(i) {
|
|
99
99
|
let e, t, r, c;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
@@ -172,7 +172,7 @@ function ke(i) {
|
|
|
172
172
|
), T(e, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
|
173
173
|
},
|
|
174
174
|
m(a, o) {
|
|
175
|
-
|
|
175
|
+
j(a, e, o), de(e, t), r || (c = he(
|
|
176
176
|
/*sendSliderData*/
|
|
177
177
|
i[17].call(null, t)
|
|
178
178
|
), r = !0);
|
|
@@ -265,48 +265,48 @@ function ke(i) {
|
|
|
265
265
|
);
|
|
266
266
|
},
|
|
267
267
|
d(a) {
|
|
268
|
-
a &&
|
|
268
|
+
a && E(e), r = !1, c();
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function ke(i) {
|
|
273
273
|
let e;
|
|
274
274
|
return {
|
|
275
275
|
c() {
|
|
276
276
|
e = h("p"), e.textContent = "500 Error - Internal Server Error.", T(e, "class", "SearchLoading svelte-2g6deg");
|
|
277
277
|
},
|
|
278
278
|
m(t, r) {
|
|
279
|
-
|
|
279
|
+
j(t, e, r);
|
|
280
280
|
},
|
|
281
281
|
p: S,
|
|
282
282
|
d(t) {
|
|
283
|
-
t &&
|
|
283
|
+
t && E(e);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Se(i) {
|
|
288
288
|
let e;
|
|
289
289
|
return {
|
|
290
290
|
c() {
|
|
291
291
|
e = h("div"), T(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
|
|
292
292
|
},
|
|
293
293
|
m(t, r) {
|
|
294
|
-
|
|
294
|
+
j(t, e, r);
|
|
295
295
|
},
|
|
296
296
|
p: S,
|
|
297
297
|
d(t) {
|
|
298
|
-
t &&
|
|
298
|
+
t && E(e);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Ee(i) {
|
|
303
303
|
let e;
|
|
304
304
|
function t(a, o) {
|
|
305
305
|
return (
|
|
306
306
|
/*isLoading*/
|
|
307
|
-
a[13] ||
|
|
307
|
+
a[13] || je || Pe ? Se : (
|
|
308
308
|
/*hasErrors*/
|
|
309
|
-
a[15] ?
|
|
309
|
+
a[15] ? ke : Ge
|
|
310
310
|
)
|
|
311
311
|
);
|
|
312
312
|
}
|
|
@@ -316,7 +316,7 @@ function je(i) {
|
|
|
316
316
|
e = h("div"), c.c();
|
|
317
317
|
},
|
|
318
318
|
m(a, o) {
|
|
319
|
-
|
|
319
|
+
j(a, e, o), c.m(e, null), i[27](e);
|
|
320
320
|
},
|
|
321
321
|
p(a, o) {
|
|
322
322
|
r === (r = t(a)) && c ? c.p(a, o) : (c.d(1), c = r(a), c && (c.c(), c.m(e, null)));
|
|
@@ -324,48 +324,48 @@ function je(i) {
|
|
|
324
324
|
i: S,
|
|
325
325
|
o: S,
|
|
326
326
|
d(a) {
|
|
327
|
-
a &&
|
|
327
|
+
a && E(e), c.d(), i[27](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
let O = "CasinoSliderData",
|
|
332
|
-
function
|
|
331
|
+
let O = "CasinoSliderData", je = !1, Pe = !1;
|
|
332
|
+
function Fe(i, e, t) {
|
|
333
333
|
let r;
|
|
334
|
-
|
|
335
|
-
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups:
|
|
336
|
-
const
|
|
334
|
+
ue(i, ve, (s) => t(33, r = s));
|
|
335
|
+
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: Y = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, J, K, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, Q, V = !1, F = !1;
|
|
336
|
+
const $ = () => {
|
|
337
337
|
fetch(G).then((m) => m.json()).then((m) => {
|
|
338
338
|
Object.keys(m).forEach((k) => {
|
|
339
|
-
|
|
339
|
+
Z(k, m[k]);
|
|
340
340
|
});
|
|
341
341
|
}).catch((m) => {
|
|
342
342
|
console.log(m);
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
|
-
Object.keys(
|
|
346
|
-
|
|
345
|
+
Object.keys(x).forEach((s) => {
|
|
346
|
+
Z(s, x[s]);
|
|
347
347
|
});
|
|
348
|
-
const
|
|
349
|
-
|
|
348
|
+
const ee = () => {
|
|
349
|
+
V == !1 && (M == "true" || w == "true" || L == "true") && d.splice(1, 0, {
|
|
350
350
|
// @ts-ignore
|
|
351
351
|
id: "MYGAMES",
|
|
352
352
|
name: J,
|
|
353
353
|
href: "",
|
|
354
354
|
games: []
|
|
355
|
-
}),
|
|
356
|
-
},
|
|
357
|
-
if (J = r("myGamesName"), K = r("lobbyName"), !
|
|
355
|
+
}), _e(), V = !0, t(26, F = !0), A();
|
|
356
|
+
}, te = () => (c || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!o || o.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), se = () => {
|
|
357
|
+
if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
|
|
358
358
|
let s = new URL(`${c}/v1/casino/groups/${a}`);
|
|
359
|
-
s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform",
|
|
359
|
+
s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform", fe(p)), fetch(s).then((m) => m.json()).then(
|
|
360
360
|
(m) => {
|
|
361
|
-
let k = C.split(","),
|
|
361
|
+
let k = C.split(","), ne = m.items.filter((X) => {
|
|
362
362
|
let D = !1;
|
|
363
|
-
if (
|
|
364
|
-
for (let
|
|
365
|
-
|
|
363
|
+
if (X.games.total > 0 && (D = !0, C))
|
|
364
|
+
for (let oe of k)
|
|
365
|
+
X.flags == oe && (D = !1);
|
|
366
366
|
return D;
|
|
367
367
|
});
|
|
368
|
-
d = [], d = d.concat(
|
|
368
|
+
d = [], d = d.concat(ne), d.unshift({
|
|
369
369
|
// @ts-ignore
|
|
370
370
|
id: "LOBBY",
|
|
371
371
|
name: K,
|
|
@@ -380,7 +380,7 @@ function Ae(i, e, t) {
|
|
|
380
380
|
t(15, f = !0), console.error("There was an error while fetching the categories", m);
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
},
|
|
383
|
+
}, ie = () => {
|
|
384
384
|
let s = u.split("$");
|
|
385
385
|
t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
|
|
386
386
|
}, A = () => {
|
|
@@ -392,29 +392,29 @@ function Ae(i, e, t) {
|
|
|
392
392
|
},
|
|
393
393
|
window.location.href
|
|
394
394
|
);
|
|
395
|
-
},
|
|
395
|
+
}, W = (s) => {
|
|
396
396
|
s.data && s.data.type == "SliderLoaded" && O == s.data.identity && A();
|
|
397
397
|
};
|
|
398
|
-
|
|
399
|
-
window.
|
|
398
|
+
ye(() => (window.addEventListener("message", W, !1), () => {
|
|
399
|
+
window.removeEventListener("message", W);
|
|
400
400
|
}));
|
|
401
|
-
function
|
|
402
|
-
|
|
401
|
+
function ae(s) {
|
|
402
|
+
be[s ? "unshift" : "push"](() => {
|
|
403
403
|
g = s, t(14, g);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return i.$$set = (s) => {
|
|
407
|
-
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, I = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8,
|
|
407
|
+
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, I = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, Y = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, q = s.categoriesicon), "lobbyiconimage" in s && t(10, z = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
|
|
408
408
|
}, i.$$.update = () => {
|
|
409
409
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
410
|
-
14 && c && a && o &&
|
|
411
|
-
7872514 && c && N && (w || L || M) && !y &&
|
|
412
|
-
67641345 && !y && u && (!N || F) &&
|
|
413
|
-
33554432 && G &&
|
|
414
|
-
16400 && _ && g &&
|
|
415
|
-
16416 && v && g &&
|
|
416
|
-
20480 && g &&
|
|
417
|
-
}, t(16,
|
|
410
|
+
14 && c && a && o && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
411
|
+
7872514 && c && N && (w || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
412
|
+
67641345 && !y && u && (!N || F) && ie(), i.$$.dirty[0] & /*translationurl*/
|
|
413
|
+
33554432 && G && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
414
|
+
16400 && _ && g && Ne(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
415
|
+
16416 && v && g && we(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
416
|
+
20480 && g && Le(g, `${P}.Style`);
|
|
417
|
+
}, t(16, Q = 0), [
|
|
418
418
|
u,
|
|
419
419
|
c,
|
|
420
420
|
a,
|
|
@@ -423,15 +423,15 @@ function Ae(i, e, t) {
|
|
|
423
423
|
v,
|
|
424
424
|
R,
|
|
425
425
|
B,
|
|
426
|
+
Y,
|
|
426
427
|
q,
|
|
427
428
|
z,
|
|
428
|
-
Y,
|
|
429
429
|
H,
|
|
430
430
|
P,
|
|
431
431
|
y,
|
|
432
432
|
g,
|
|
433
433
|
f,
|
|
434
|
-
|
|
434
|
+
Q,
|
|
435
435
|
A,
|
|
436
436
|
I,
|
|
437
437
|
N,
|
|
@@ -442,17 +442,17 @@ function Ae(i, e, t) {
|
|
|
442
442
|
C,
|
|
443
443
|
G,
|
|
444
444
|
F,
|
|
445
|
-
|
|
445
|
+
ae
|
|
446
446
|
];
|
|
447
447
|
}
|
|
448
|
-
class
|
|
448
|
+
class Ae extends le {
|
|
449
449
|
constructor(e) {
|
|
450
|
-
super(),
|
|
450
|
+
super(), ce(
|
|
451
451
|
this,
|
|
452
452
|
e,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
453
|
+
Fe,
|
|
454
|
+
Ee,
|
|
455
|
+
me,
|
|
456
456
|
{
|
|
457
457
|
endpoint: 1,
|
|
458
458
|
datasource: 2,
|
|
@@ -476,7 +476,7 @@ class De extends ce {
|
|
|
476
476
|
mygamesiconimage: 11,
|
|
477
477
|
mbsource: 12
|
|
478
478
|
},
|
|
479
|
-
|
|
479
|
+
Ce,
|
|
480
480
|
[-1, -1]
|
|
481
481
|
);
|
|
482
482
|
}
|
|
@@ -607,7 +607,7 @@ class De extends ce {
|
|
|
607
607
|
this.$$set({ mbsource: e }), l();
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
|
|
610
|
+
Me(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
|
611
611
|
export {
|
|
612
|
-
|
|
612
|
+
Ae as default
|
|
613
613
|
};
|
package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-Cvb-krxJ.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as re, S as le, i as ce, f as l, s as me, L as ge, b as ue, n as S, d as E, h as j, j as h, k as ye, o as fe, N as be, C as de, r as T, O as n, p as he, P as Ne, M as we, I as Le, J as Me, K as _e, Q as ve } from "./CasinoCalendar-BYTytQgJ.js";
|
|
2
|
+
function Z(i, e) {
|
|
3
|
+
re(i, e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const x = {
|
|
6
6
|
en: {
|
|
7
7
|
lobbyName: "Lobby",
|
|
8
8
|
myGamesName: "My games"
|
|
@@ -76,7 +76,7 @@ const p = {
|
|
|
76
76
|
myGamesName: "My games"
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
if (typeof window
|
|
79
|
+
if (typeof window < "u") {
|
|
80
80
|
let i = function(e) {
|
|
81
81
|
return function(...t) {
|
|
82
82
|
try {
|
|
@@ -88,14 +88,14 @@ if (typeof window != "undefined") {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
customElements.define = i(customElements.define), import("./CasinoSlider-
|
|
91
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-DjqwMakd.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
95
|
+
function Ce(i) {
|
|
96
|
+
ue(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ge(i) {
|
|
99
99
|
let e, t, r, c;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
@@ -172,7 +172,7 @@ function ke(i) {
|
|
|
172
172
|
), T(e, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
|
173
173
|
},
|
|
174
174
|
m(a, o) {
|
|
175
|
-
|
|
175
|
+
j(a, e, o), he(e, t), r || (c = Ne(
|
|
176
176
|
/*sendSliderData*/
|
|
177
177
|
i[17].call(null, t)
|
|
178
178
|
), r = !0);
|
|
@@ -265,48 +265,48 @@ function ke(i) {
|
|
|
265
265
|
);
|
|
266
266
|
},
|
|
267
267
|
d(a) {
|
|
268
|
-
a &&
|
|
268
|
+
a && E(e), r = !1, c();
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function ke(i) {
|
|
273
273
|
let e;
|
|
274
274
|
return {
|
|
275
275
|
c() {
|
|
276
276
|
e = h("p"), e.textContent = "500 Error - Internal Server Error.", T(e, "class", "SearchLoading svelte-2g6deg");
|
|
277
277
|
},
|
|
278
278
|
m(t, r) {
|
|
279
|
-
|
|
279
|
+
j(t, e, r);
|
|
280
280
|
},
|
|
281
281
|
p: S,
|
|
282
282
|
d(t) {
|
|
283
|
-
t &&
|
|
283
|
+
t && E(e);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Se(i) {
|
|
288
288
|
let e;
|
|
289
289
|
return {
|
|
290
290
|
c() {
|
|
291
291
|
e = h("div"), T(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
|
|
292
292
|
},
|
|
293
293
|
m(t, r) {
|
|
294
|
-
|
|
294
|
+
j(t, e, r);
|
|
295
295
|
},
|
|
296
296
|
p: S,
|
|
297
297
|
d(t) {
|
|
298
|
-
t &&
|
|
298
|
+
t && E(e);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Ee(i) {
|
|
303
303
|
let e;
|
|
304
304
|
function t(a, o) {
|
|
305
305
|
return (
|
|
306
306
|
/*isLoading*/
|
|
307
|
-
a[13] ||
|
|
307
|
+
a[13] || je || Pe ? Se : (
|
|
308
308
|
/*hasErrors*/
|
|
309
|
-
a[15] ?
|
|
309
|
+
a[15] ? ke : Ge
|
|
310
310
|
)
|
|
311
311
|
);
|
|
312
312
|
}
|
|
@@ -316,7 +316,7 @@ function je(i) {
|
|
|
316
316
|
e = h("div"), c.c();
|
|
317
317
|
},
|
|
318
318
|
m(a, o) {
|
|
319
|
-
|
|
319
|
+
j(a, e, o), c.m(e, null), i[27](e);
|
|
320
320
|
},
|
|
321
321
|
p(a, o) {
|
|
322
322
|
r === (r = t(a)) && c ? c.p(a, o) : (c.d(1), c = r(a), c && (c.c(), c.m(e, null)));
|
|
@@ -324,48 +324,48 @@ function je(i) {
|
|
|
324
324
|
i: S,
|
|
325
325
|
o: S,
|
|
326
326
|
d(a) {
|
|
327
|
-
a &&
|
|
327
|
+
a && E(e), c.d(), i[27](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
let O = "CasinoSliderData",
|
|
332
|
-
function
|
|
331
|
+
let O = "CasinoSliderData", je = !1, Pe = !1;
|
|
332
|
+
function Fe(i, e, t) {
|
|
333
333
|
let r;
|
|
334
|
-
|
|
335
|
-
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups:
|
|
336
|
-
const
|
|
334
|
+
ye(i, we, (s) => t(33, r = s));
|
|
335
|
+
let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: Y = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, J, K, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, Q, V = !1, F = !1;
|
|
336
|
+
const $ = () => {
|
|
337
337
|
fetch(G).then((m) => m.json()).then((m) => {
|
|
338
338
|
Object.keys(m).forEach((k) => {
|
|
339
|
-
|
|
339
|
+
Z(k, m[k]);
|
|
340
340
|
});
|
|
341
341
|
}).catch((m) => {
|
|
342
342
|
console.log(m);
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
|
-
Object.keys(
|
|
346
|
-
|
|
345
|
+
Object.keys(x).forEach((s) => {
|
|
346
|
+
Z(s, x[s]);
|
|
347
347
|
});
|
|
348
|
-
const
|
|
349
|
-
|
|
348
|
+
const ee = () => {
|
|
349
|
+
V == !1 && (M == "true" || w == "true" || L == "true") && d.splice(1, 0, {
|
|
350
350
|
// @ts-ignore
|
|
351
351
|
id: "MYGAMES",
|
|
352
352
|
name: J,
|
|
353
353
|
href: "",
|
|
354
354
|
games: []
|
|
355
|
-
}),
|
|
356
|
-
},
|
|
357
|
-
if (J = r("myGamesName"), K = r("lobbyName"), !
|
|
355
|
+
}), ve(), V = !0, t(26, F = !0), A();
|
|
356
|
+
}, te = () => (c || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!o || o.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), se = () => {
|
|
357
|
+
if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
|
|
358
358
|
let s = new URL(`${c}/v1/casino/groups/${a}`);
|
|
359
|
-
s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform",
|
|
359
|
+
s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform", be(p)), fetch(s).then((m) => m.json()).then(
|
|
360
360
|
(m) => {
|
|
361
|
-
let k = C.split(","),
|
|
361
|
+
let k = C.split(","), ne = m.items.filter((X) => {
|
|
362
362
|
let D = !1;
|
|
363
|
-
if (
|
|
364
|
-
for (let
|
|
365
|
-
|
|
363
|
+
if (X.games.total > 0 && (D = !0, C))
|
|
364
|
+
for (let oe of k)
|
|
365
|
+
X.flags == oe && (D = !1);
|
|
366
366
|
return D;
|
|
367
367
|
});
|
|
368
|
-
d = [], d = d.concat(
|
|
368
|
+
d = [], d = d.concat(ne), d.unshift({
|
|
369
369
|
// @ts-ignore
|
|
370
370
|
id: "LOBBY",
|
|
371
371
|
name: K,
|
|
@@ -380,7 +380,7 @@ function Ae(i, e, t) {
|
|
|
380
380
|
t(15, f = !0), console.error("There was an error while fetching the categories", m);
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
},
|
|
383
|
+
}, ie = () => {
|
|
384
384
|
let s = u.split("$");
|
|
385
385
|
t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
|
|
386
386
|
}, A = () => {
|
|
@@ -392,29 +392,29 @@ function Ae(i, e, t) {
|
|
|
392
392
|
},
|
|
393
393
|
window.location.href
|
|
394
394
|
);
|
|
395
|
-
},
|
|
395
|
+
}, W = (s) => {
|
|
396
396
|
s.data && s.data.type == "SliderLoaded" && O == s.data.identity && A();
|
|
397
397
|
};
|
|
398
|
-
|
|
399
|
-
window.
|
|
398
|
+
fe(() => (window.addEventListener("message", W, !1), () => {
|
|
399
|
+
window.removeEventListener("message", W);
|
|
400
400
|
}));
|
|
401
|
-
function
|
|
402
|
-
|
|
401
|
+
function ae(s) {
|
|
402
|
+
de[s ? "unshift" : "push"](() => {
|
|
403
403
|
g = s, t(14, g);
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
return i.$$set = (s) => {
|
|
407
|
-
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, I = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8,
|
|
407
|
+
"endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, I = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, Y = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, q = s.categoriesicon), "lobbyiconimage" in s && t(10, z = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
|
|
408
408
|
}, i.$$.update = () => {
|
|
409
409
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
410
|
-
14 && c && a && o &&
|
|
411
|
-
7872514 && c && N && (w || L || M) && !y &&
|
|
412
|
-
67641345 && !y && u && (!N || F) &&
|
|
413
|
-
33554432 && G &&
|
|
410
|
+
14 && c && a && o && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
411
|
+
7872514 && c && N && (w || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
412
|
+
67641345 && !y && u && (!N || F) && ie(), i.$$.dirty[0] & /*translationurl*/
|
|
413
|
+
33554432 && G && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
414
414
|
16400 && _ && g && Le(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
415
|
-
16416 && v && g &&
|
|
416
|
-
20480 && g &&
|
|
417
|
-
}, t(16,
|
|
415
|
+
16416 && v && g && Me(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
416
|
+
20480 && g && _e(g, `${P}.Style`);
|
|
417
|
+
}, t(16, Q = 0), [
|
|
418
418
|
u,
|
|
419
419
|
c,
|
|
420
420
|
a,
|
|
@@ -423,15 +423,15 @@ function Ae(i, e, t) {
|
|
|
423
423
|
v,
|
|
424
424
|
R,
|
|
425
425
|
B,
|
|
426
|
+
Y,
|
|
426
427
|
q,
|
|
427
428
|
z,
|
|
428
|
-
Y,
|
|
429
429
|
H,
|
|
430
430
|
P,
|
|
431
431
|
y,
|
|
432
432
|
g,
|
|
433
433
|
f,
|
|
434
|
-
|
|
434
|
+
Q,
|
|
435
435
|
A,
|
|
436
436
|
I,
|
|
437
437
|
N,
|
|
@@ -442,17 +442,17 @@ function Ae(i, e, t) {
|
|
|
442
442
|
C,
|
|
443
443
|
G,
|
|
444
444
|
F,
|
|
445
|
-
|
|
445
|
+
ae
|
|
446
446
|
];
|
|
447
447
|
}
|
|
448
|
-
class
|
|
448
|
+
class Ae extends le {
|
|
449
449
|
constructor(e) {
|
|
450
|
-
super(),
|
|
450
|
+
super(), ce(
|
|
451
451
|
this,
|
|
452
452
|
e,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
453
|
+
Fe,
|
|
454
|
+
Ee,
|
|
455
|
+
me,
|
|
456
456
|
{
|
|
457
457
|
endpoint: 1,
|
|
458
458
|
datasource: 2,
|
|
@@ -476,7 +476,7 @@ class De extends ce {
|
|
|
476
476
|
mygamesiconimage: 11,
|
|
477
477
|
mbsource: 12
|
|
478
478
|
},
|
|
479
|
-
|
|
479
|
+
Ce,
|
|
480
480
|
[-1, -1]
|
|
481
481
|
);
|
|
482
482
|
}
|
|
@@ -607,7 +607,7 @@ class De extends ce {
|
|
|
607
607
|
this.$$set({ mbsource: e }), l();
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
ge(
|
|
610
|
+
ge(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
|
611
611
|
export {
|
|
612
|
-
|
|
612
|
+
Ae as default
|
|
613
613
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-DqS7aKva.cjs");function J(i,e){t.addMessages(i,e)}const K={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}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=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-CgiDJzPs.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(i){t.append_styles(i,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ae(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ie(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ne(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;function s(n,o){return n[13]||le||re?ne:n[15]?ie:ae}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",le=!1,re=!1;function ce(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:N=""}=e,{clientstyling:w=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,I,g=!0,f,y=[],d=!1,V=window.navigator.userAgent,m,B,Y=!1,S=!1;const W=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{J(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(K).forEach(a=>{J(a,K[a])});const X=()=>{Y==!1&&(N=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:q,href:"",games:[]}),t.tick(),Y=!0,s(26,S=!0),k()},Z=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),x=()=>{if(q=l("myGamesName"),I=l("lobbyName"),!Z()){let a=new URL(`${r}/v1/casino/groups/${n}`);a.searchParams.append("datasource",n),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(V)),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),ee=c.items.filter(H=>{let E=!1;if(H.games.total>0&&(E=!0,M))for(let te of C)H.flags==te&&(E=!1);return E});y=[],y=y.concat(ee),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},p=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},z=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,N=a.favorites),"clientstyling"in a&&s(4,w=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&x(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||N)&&!g&&X(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&p(),i.$$.dirty[0]&33554432&&v&&W(),i.$$.dirty[0]&16400&&w&&m&&t.setClientStyling(m,w),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,B=0),[u,r,n,o,w,L,F,D,O,T,R,U,G,g,m,d,B,k,P,h,b,_,N,A,M,v,S,$]}class Q extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[23]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Q,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=Q;
|