@everymatrix/casino-lobby 1.76.1 → 1.76.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-BMDbprh6.js → CasinoCalendar-B0K8z0GJ.js} +781 -795
- package/components/CasinoCalendar-Bo-lripz.cjs +19 -0
- package/components/{CasinoCalendar-FUyH3So6.js → CasinoCalendar-CzMBlFEu.js} +995 -1009
- package/components/{CasinoCalendarDailyDetails-PT-ciuLj.js → CasinoCalendarDailyDetails-8b-Ie2Hl.js} +75 -75
- package/components/{CasinoCalendarDailyDetails-qb4mpvz6.js → CasinoCalendarDailyDetails-D5cq8_6v.js} +75 -75
- package/components/CasinoCalendarDailyDetails-DZ2juA5b.cjs +1 -0
- package/components/{CasinoCalendarDailyItem-E_UK8J-P.js → CasinoCalendarDailyItem-BglEC2TQ.js} +6 -6
- package/components/{CasinoCalendarDailyItem-BJAYmacx.cjs → CasinoCalendarDailyItem-Cl7eHYxY.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-Ddvjsin9.js → CasinoCalendarDailyItem-DXREwm9q.js} +6 -6
- package/components/CasinoCategoriesSlider-B6_EYUBm.cjs +1 -0
- package/components/{CasinoCategoriesSlider-CyY1HQ0P.js → CasinoCategoriesSlider-BKQxQQyV.js} +64 -64
- package/components/{CasinoCategoriesSlider-DTKia-BC.js → CasinoCategoriesSlider-C7_ke4uB.js} +64 -64
- package/components/{CasinoCollectionsProviders-DnxgcymV.cjs → CasinoCollectionsProviders-Abg7c3OD.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-G6IEHMff.js → CasinoCollectionsProviders-BpkF43eH.js} +4 -4
- package/components/{CasinoCollectionsProviders-C66vF5px.js → CasinoCollectionsProviders-BzU-DnW_.js} +4 -4
- package/components/{CasinoFavoritesSection-PPBNhkaO.js → CasinoFavoritesSection-CVZktd79.js} +5 -5
- package/components/{CasinoFavoritesSection-CIqr5hSL.js → CasinoFavoritesSection-R-FdmVCi.js} +5 -5
- package/components/{CasinoFavoritesSection-CGDPR_2d.cjs → CasinoFavoritesSection-_ilSY3sa.cjs} +1 -1
- package/components/CasinoFilter-Bc_k_xiT.cjs +1 -0
- package/components/{CasinoFilter-CFd1r73g.js → CasinoFilter-CekYy95Z.js} +225 -224
- package/components/{CasinoFilter-BW0CkIQU.js → CasinoFilter-Cve0ticX.js} +253 -254
- package/components/{CasinoGameThumbnail-CP707TN8.js → CasinoGameThumbnail-1vnHRePz.js} +1239 -1255
- package/components/{CasinoGameThumbnail-Cl2nd2Ao.js → CasinoGameThumbnail-CWVvNagJ.js} +768 -752
- package/components/CasinoGameThumbnail-MNCUvtBB.cjs +47 -0
- package/components/CasinoGamesCategorySection-D9LYDRb0.cjs +1 -0
- package/components/{CasinoGamesCategorySection-BARNYUDI.js → CasinoGamesCategorySection-DbTE8dp4.js} +182 -182
- package/components/{CasinoGamesCategorySection-CN0uiXIM.js → CasinoGamesCategorySection-ORk-4Z5T.js} +179 -179
- package/components/{CasinoJackpotBanner-DdPrmZDs.js → CasinoJackpotBanner-B_dYLQp4.js} +8 -8
- package/components/{CasinoJackpotBanner-nsvJTIO2.js → CasinoJackpotBanner-CBz6E__7.js} +8 -8
- package/components/{CasinoJackpotBanner-0uMNuf8D.cjs → CasinoJackpotBanner-DrTQC7xJ.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-CGe9Lvyy.js → CasinoLastPlayedSection-DPQb7w2E.js} +8 -8
- package/components/{CasinoLastPlayedSection-Cl51bWwe.js → CasinoLastPlayedSection-F_nICX3T.js} +8 -8
- package/components/{CasinoLastPlayedSection-hGpqxQPr.cjs → CasinoLastPlayedSection-dsIlnh3O.cjs} +1 -1
- package/components/{CasinoLobby-D2fRYD3x.js → CasinoLobby-DKn7cqKR.js} +7 -7
- package/components/{CasinoLobby-CSbhqZMO.cjs → CasinoLobby-Dbhuiv5E.cjs} +1 -1
- package/components/{CasinoLobby-B9cbj7HU.js → CasinoLobby-DwSpwsm2.js} +7 -7
- package/components/{CasinoMostPlayedSection-olYCMGD_.cjs → CasinoMostPlayedSection-BxTpYnOu.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CC4q2-1X.js → CasinoMostPlayedSection-Dgv78Mz4.js} +13 -13
- package/components/{CasinoMostPlayedSection-GgfJzAoC.js → CasinoMostPlayedSection-Q71YToxb.js} +13 -13
- package/components/{CasinoMyGames-Cl_LymiN.js → CasinoMyGames-C95f0LUG.js} +8 -8
- package/components/{CasinoMyGames-BvzXaeVu.js → CasinoMyGames-CUUW-jsz.js} +8 -8
- package/components/{CasinoMyGames-DvhGoexd.cjs → CasinoMyGames-CxJ9bl_4.cjs} +1 -1
- package/components/{CasinoPage-BBr1YJlC.js → CasinoPage-DlqPwpLJ.js} +15 -15
- package/components/{CasinoPage-CeFf1zPQ.js → CasinoPage-IgKPkViB.js} +15 -15
- package/components/{CasinoPage-DSYBePfa.cjs → CasinoPage-eSiTBBlE.cjs} +1 -1
- package/components/{CasinoRandomGame-CytI5GjM.js → CasinoRandomGame-Bqh0v1th.js} +83 -83
- package/components/{CasinoRandomGame-R-0QqjwX.js → CasinoRandomGame-DUQ2O7Ih.js} +12 -12
- package/components/{CasinoRandomGame-D6dNIU7H.cjs → CasinoRandomGame-DwpEKRBx.cjs} +2 -2
- package/components/{CasinoSearch-B69rKg0E.cjs → CasinoSearch-DN57CePH.cjs} +1 -1
- package/components/{CasinoSearch-D1YbhPEq.js → CasinoSearch-DtTyugw1.js} +5 -5
- package/components/{CasinoSearch-DFW6fTkK.js → CasinoSearch-qwCltuQO.js} +5 -5
- package/components/{CasinoSlider-BUdXNBUn.js → CasinoSlider-BSy-pbt8.js} +5 -5
- package/components/{CasinoSlider-CgGTFca7.js → CasinoSlider-BZe1q5jA.js} +5 -5
- package/components/{CasinoSlider-B_4OKAXx.cjs → CasinoSlider-Gf_263k6.cjs} +1 -1
- package/components/{CasinoSort-d_O_44vv.js → CasinoSort-B25h8Cud.js} +102 -103
- package/components/{CasinoSort-_My6LmSq.cjs → CasinoSort-BjPW0QaZ.cjs} +1 -1
- package/components/{CasinoSort-CFRGv5Ze.js → CasinoSort-DHRPAHDE.js} +94 -93
- package/components/{CasinoWinners-BX9jBJGA.cjs → CasinoWinners-D1tkG_oD.cjs} +1 -1
- package/components/{CasinoWinners-Co-G3_VH.js → CasinoWinners-DUN0A3--.js} +122 -122
- package/components/{CasinoWinners-DBM7TeCL.js → CasinoWinners-DYd8q5Sh.js} +126 -126
- package/components/{GeneralAnimationLoading-CfouZ-sx.js → GeneralAnimationLoading-8efHmhFw.js} +7 -7
- package/components/{GeneralAnimationLoading-D47HGjTy.cjs → GeneralAnimationLoading-CUK4MKI8.cjs} +1 -1
- package/components/{GeneralAnimationLoading-eg8O-l55.js → GeneralAnimationLoading-DUAt1hpi.js} +7 -7
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-CNwOj3DJ.js → casino-play-random-game-BGnpW6-t.js} +1 -1
- package/stencil/{casino-play-random-game-Cchj3hDo.js → casino-play-random-game-Dkt8_s5i.js} +1 -1
- package/stencil/{casino-play-random-game-9qJt7GKy.cjs → casino-play-random-game-DxDk4Aim.cjs} +1 -1
- package/stencil/{casino-play-random-game_2-DVELgSp-.cjs → casino-play-random-game_2-BxEiwCaH.cjs} +2 -2
- package/stencil/{casino-play-random-game_2-BBqDze0C.js → casino-play-random-game_2-CO_ycbvG.js} +2 -2
- package/stencil/{casino-play-random-game_2-BoSB4X57.js → casino-play-random-game_2-OLkBGlKQ.js} +2 -2
- package/stencil/{index-328e660d-BUOKdOvn.js → index-328e660d-CgCMs0nk.js} +195 -195
- package/stencil/{index-328e660d-O5RXzgXA.js → index-328e660d-DIiqSVTN.js} +186 -186
- package/stencil/index-328e660d-pKNw3-4H.cjs +1 -0
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
- package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
- package/stencil/{index-b2193545-kN0z2MLt.js → index-b2193545-BL364Gzq.js} +169 -169
- package/stencil/{index-b2193545-D_cUvAA-.js → index-b2193545-DdqB2rk5.js} +176 -176
- package/stencil/index-b2193545-DmjUkkS8.cjs +1 -0
- package/stencil/{ui-image-I_uR7pAI.js → ui-image-B_HWMBI-.js} +1 -1
- package/stencil/{ui-image-BAqS-hS6.js → ui-image-CzGNxx73.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-wubI3fkK.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CsmgJUYN.js} +2 -2
- package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DTQ__6LQ.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-BRNiEwlg.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-CZuWo9GO.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-CxSezPtG.js} +1 -1
- package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-yRWBmyfK.js} +2 -2
- package/components/CasinoCalendar-BGhJ1cEV.cjs +0 -19
- package/components/CasinoCalendarDailyDetails-DyNw1uMX.cjs +0 -1
- package/components/CasinoCategoriesSlider-CMchkLFc.cjs +0 -1
- package/components/CasinoFilter-BKrzmU_V.cjs +0 -1
- package/components/CasinoGameThumbnail-xpkz1cUi.cjs +0 -47
- package/components/CasinoGamesCategorySection-KN7fBDE1.cjs +0 -1
- package/stencil/index-328e660d-04xW6326.cjs +0 -1
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
package/components/{CasinoCategoriesSlider-CyY1HQ0P.js → CasinoCategoriesSlider-BKQxQQyV.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 r, c as me, s as ge, b as ue, e as h, d as E, G as S, j, k as ye, o as fe, M as be, n as de, p as he, q as we, r as Ne, H as o, y as O, z as Le, J as Me, N as _e } from "./CasinoCalendar-B0K8z0GJ.js";
|
|
2
|
+
function X(i, e) {
|
|
3
|
+
re(i, e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const Z = {
|
|
6
6
|
en: {
|
|
7
7
|
lobbyName: "Lobby",
|
|
8
8
|
myGamesName: "My games"
|
|
@@ -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-BSy-pbt8.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 ve(i) {
|
|
96
|
+
ue(i, "svelte-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ge(i) {
|
|
99
99
|
let e, t;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
@@ -172,7 +172,7 @@ function Ce(i) {
|
|
|
172
172
|
), O(e, "class", "CasinoCategoriesContainer svelte-1my2wow");
|
|
173
173
|
},
|
|
174
174
|
m(a, n) {
|
|
175
|
-
E(a, e, n),
|
|
175
|
+
E(a, e, n), Le(e, t);
|
|
176
176
|
},
|
|
177
177
|
p(a, n) {
|
|
178
178
|
n[0] & /*lang*/
|
|
@@ -266,7 +266,7 @@ function Ce(i) {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ce(i) {
|
|
270
270
|
let e;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
@@ -281,7 +281,7 @@ function ke(i) {
|
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function ke(i) {
|
|
285
285
|
let e;
|
|
286
286
|
return {
|
|
287
287
|
c() {
|
|
@@ -296,14 +296,14 @@ function Se(i) {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Se(i) {
|
|
300
300
|
let e;
|
|
301
301
|
function t(l, m) {
|
|
302
302
|
return (
|
|
303
303
|
/*isLoading*/
|
|
304
|
-
l[13] ||
|
|
304
|
+
l[13] || Ee || je ? ke : (
|
|
305
305
|
/*hasErrors*/
|
|
306
|
-
l[15] ?
|
|
306
|
+
l[15] ? Ce : Ge
|
|
307
307
|
)
|
|
308
308
|
);
|
|
309
309
|
}
|
|
@@ -325,47 +325,47 @@ function Ee(i) {
|
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
let D = "CasinoSliderData",
|
|
329
|
-
function
|
|
328
|
+
let D = "CasinoSliderData", Ee = !1, je = !1;
|
|
329
|
+
function Pe(i, e, t) {
|
|
330
330
|
let a;
|
|
331
|
-
|
|
332
|
-
let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent:
|
|
333
|
-
const
|
|
331
|
+
ye(i, Me, (s) => t(32, a = s));
|
|
332
|
+
let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = 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: I = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: C = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Y, x, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, J, K = !1, A = !1;
|
|
333
|
+
const $ = () => {
|
|
334
334
|
fetch(C).then((c) => c.json()).then((c) => {
|
|
335
335
|
Object.keys(c).forEach((k) => {
|
|
336
|
-
|
|
336
|
+
X(k, c[k]);
|
|
337
337
|
});
|
|
338
338
|
}).catch((c) => {
|
|
339
339
|
console.log(c);
|
|
340
340
|
});
|
|
341
341
|
};
|
|
342
|
-
Object.keys(
|
|
343
|
-
|
|
342
|
+
Object.keys(Z).forEach((s) => {
|
|
343
|
+
X(s, Z[s]);
|
|
344
344
|
});
|
|
345
|
-
const
|
|
346
|
-
|
|
345
|
+
const ee = () => {
|
|
346
|
+
K == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
|
|
347
347
|
// @ts-ignore
|
|
348
348
|
id: "MYGAMES",
|
|
349
|
-
name:
|
|
349
|
+
name: Y,
|
|
350
350
|
href: "",
|
|
351
351
|
games: []
|
|
352
|
-
}),
|
|
353
|
-
},
|
|
354
|
-
if (
|
|
352
|
+
}), _e(), K = !0, t(25, A = !0), Q();
|
|
353
|
+
}, te = () => (n || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), l || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!m || m.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 = () => {
|
|
354
|
+
if (Y = a("myGamesName"), x = a("lobbyName"), !te()) {
|
|
355
355
|
let s = new URL(`${n}/v2/casino/groups/${l}`);
|
|
356
|
-
s.searchParams.append("language", m), s.searchParams.append("platform",
|
|
356
|
+
s.searchParams.append("language", m), s.searchParams.append("platform", be(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((c) => c.json()).then(
|
|
357
357
|
(c) => {
|
|
358
|
-
let k = G.split(","),
|
|
358
|
+
let k = G.split(","), ne = c.items.filter((W) => {
|
|
359
359
|
let F = !1;
|
|
360
|
-
if (
|
|
361
|
-
for (let
|
|
362
|
-
|
|
360
|
+
if (W.games.total > 0 && (F = !0, G))
|
|
361
|
+
for (let oe of k)
|
|
362
|
+
W.flags == oe && (F = !1);
|
|
363
363
|
return F;
|
|
364
364
|
});
|
|
365
|
-
d = [], d = d.concat(
|
|
365
|
+
d = [], d = d.concat(ne), d.unshift({
|
|
366
366
|
// @ts-ignore
|
|
367
367
|
id: "LOBBY",
|
|
368
|
-
name:
|
|
368
|
+
name: x,
|
|
369
369
|
href: "",
|
|
370
370
|
games: []
|
|
371
371
|
}), t(13, y = !1);
|
|
@@ -377,10 +377,10 @@ function Ae(i, e, t) {
|
|
|
377
377
|
t(15, f = !0), console.error("There was an error while fetching the categories", c);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
},
|
|
380
|
+
}, ie = () => {
|
|
381
381
|
let s = u.split("$");
|
|
382
382
|
t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
|
|
383
|
-
},
|
|
383
|
+
}, Q = () => {
|
|
384
384
|
window.postMessage(
|
|
385
385
|
{
|
|
386
386
|
type: "SliderData",
|
|
@@ -389,37 +389,37 @@ function Ae(i, e, t) {
|
|
|
389
389
|
},
|
|
390
390
|
window.location.href
|
|
391
391
|
);
|
|
392
|
-
},
|
|
393
|
-
s.data && s.data.type == "SliderLoaded" && D == s.data.identity &&
|
|
392
|
+
}, V = (s) => {
|
|
393
|
+
s.data && s.data.type == "SliderLoaded" && D == s.data.identity && Q();
|
|
394
394
|
};
|
|
395
|
-
|
|
396
|
-
window.
|
|
395
|
+
fe(() => (window.addEventListener("message", V, !1), () => {
|
|
396
|
+
window.removeEventListener("message", V);
|
|
397
397
|
}));
|
|
398
|
-
function
|
|
399
|
-
|
|
398
|
+
function ae(s) {
|
|
399
|
+
de[s ? "unshift" : "push"](() => {
|
|
400
400
|
g = s, t(14, g);
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
return i.$$set = (s) => {
|
|
404
|
-
"endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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,
|
|
404
|
+
"endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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(22, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, I = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, C = 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);
|
|
405
405
|
}, i.$$.update = () => {
|
|
406
406
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
407
|
-
14 && n && l && m &&
|
|
408
|
-
3940354 && n && w && (N || L || M) && !y &&
|
|
409
|
-
33824769 && !y && u && (!w || A) &&
|
|
410
|
-
16777216 && C &&
|
|
411
|
-
16400 && _ && g &&
|
|
412
|
-
16416 && v && g &&
|
|
413
|
-
20480 && g &&
|
|
414
|
-
}, t(16,
|
|
407
|
+
14 && n && l && m && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
408
|
+
3940354 && n && w && (N || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
409
|
+
33824769 && !y && u && (!w || A) && ie(), i.$$.dirty[0] & /*translationurl*/
|
|
410
|
+
16777216 && C && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
411
|
+
16400 && _ && g && he(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
412
|
+
16416 && v && g && we(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
413
|
+
20480 && g && Ne(g, `${P}.Style`);
|
|
414
|
+
}, t(16, J = 0), [
|
|
415
415
|
u,
|
|
416
416
|
n,
|
|
417
417
|
l,
|
|
418
418
|
m,
|
|
419
419
|
_,
|
|
420
420
|
v,
|
|
421
|
+
R,
|
|
421
422
|
B,
|
|
422
|
-
U,
|
|
423
423
|
I,
|
|
424
424
|
q,
|
|
425
425
|
z,
|
|
@@ -428,27 +428,27 @@ function Ae(i, e, t) {
|
|
|
428
428
|
y,
|
|
429
429
|
g,
|
|
430
430
|
f,
|
|
431
|
-
|
|
431
|
+
J,
|
|
432
432
|
T,
|
|
433
433
|
w,
|
|
434
434
|
N,
|
|
435
435
|
L,
|
|
436
436
|
M,
|
|
437
|
-
|
|
437
|
+
U,
|
|
438
438
|
G,
|
|
439
439
|
C,
|
|
440
440
|
A,
|
|
441
|
-
|
|
441
|
+
ae
|
|
442
442
|
];
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class Ae extends le {
|
|
445
445
|
constructor(e) {
|
|
446
|
-
super(),
|
|
446
|
+
super(), ce(
|
|
447
447
|
this,
|
|
448
448
|
e,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
449
|
+
Pe,
|
|
450
|
+
Se,
|
|
451
|
+
ge,
|
|
452
452
|
{
|
|
453
453
|
endpoint: 1,
|
|
454
454
|
datasource: 2,
|
|
@@ -472,7 +472,7 @@ class Fe extends ce {
|
|
|
472
472
|
mygamesiconimage: 11,
|
|
473
473
|
mbsource: 12
|
|
474
474
|
},
|
|
475
|
-
|
|
475
|
+
ve,
|
|
476
476
|
[-1, -1]
|
|
477
477
|
);
|
|
478
478
|
}
|
|
@@ -603,7 +603,7 @@ class Fe extends ce {
|
|
|
603
603
|
this.$$set({ mbsource: e }), r();
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
|
|
606
|
+
me(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
|
607
607
|
export {
|
|
608
|
-
|
|
608
|
+
Ae as default
|
|
609
609
|
};
|
package/components/{CasinoCategoriesSlider-DTKia-BC.js → CasinoCategoriesSlider-C7_ke4uB.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 r, c as me, s as ge, b as ue, e as h, d as E, G as S, j, k as ye, o as fe, M as be, n as de, p as he, q as we, r as Ne, H as o, y as O, z as Le, J as Me, N as _e } from "./CasinoCalendar-CzMBlFEu.js";
|
|
2
|
+
function X(i, e) {
|
|
3
|
+
re(i, e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const Z = {
|
|
6
6
|
en: {
|
|
7
7
|
lobbyName: "Lobby",
|
|
8
8
|
myGamesName: "My games"
|
|
@@ -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-BZe1q5jA.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 ve(i) {
|
|
96
|
+
ue(i, "svelte-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ge(i) {
|
|
99
99
|
let e, t;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
@@ -172,7 +172,7 @@ function Ce(i) {
|
|
|
172
172
|
), O(e, "class", "CasinoCategoriesContainer svelte-1my2wow");
|
|
173
173
|
},
|
|
174
174
|
m(a, n) {
|
|
175
|
-
E(a, e, n),
|
|
175
|
+
E(a, e, n), Le(e, t);
|
|
176
176
|
},
|
|
177
177
|
p(a, n) {
|
|
178
178
|
n[0] & /*lang*/
|
|
@@ -266,7 +266,7 @@ function Ce(i) {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ce(i) {
|
|
270
270
|
let e;
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
@@ -281,7 +281,7 @@ function ke(i) {
|
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function ke(i) {
|
|
285
285
|
let e;
|
|
286
286
|
return {
|
|
287
287
|
c() {
|
|
@@ -296,14 +296,14 @@ function Se(i) {
|
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Se(i) {
|
|
300
300
|
let e;
|
|
301
301
|
function t(l, m) {
|
|
302
302
|
return (
|
|
303
303
|
/*isLoading*/
|
|
304
|
-
l[13] ||
|
|
304
|
+
l[13] || Ee || je ? ke : (
|
|
305
305
|
/*hasErrors*/
|
|
306
|
-
l[15] ?
|
|
306
|
+
l[15] ? Ce : Ge
|
|
307
307
|
)
|
|
308
308
|
);
|
|
309
309
|
}
|
|
@@ -325,47 +325,47 @@ function Ee(i) {
|
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
let D = "CasinoSliderData",
|
|
329
|
-
function
|
|
328
|
+
let D = "CasinoSliderData", Ee = !1, je = !1;
|
|
329
|
+
function Pe(i, e, t) {
|
|
330
330
|
let a;
|
|
331
|
-
|
|
332
|
-
let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent:
|
|
333
|
-
const
|
|
331
|
+
ye(i, Me, (s) => t(32, a = s));
|
|
332
|
+
let { endpoint: n = "" } = e, { datasource: l = "" } = e, { lang: m = "" } = e, { userid: T = "" } = e, { session: w = "" } = e, { mostplayed: N = "" } = 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: I = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: C = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Y, x, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, J, K = !1, A = !1;
|
|
333
|
+
const $ = () => {
|
|
334
334
|
fetch(C).then((c) => c.json()).then((c) => {
|
|
335
335
|
Object.keys(c).forEach((k) => {
|
|
336
|
-
|
|
336
|
+
X(k, c[k]);
|
|
337
337
|
});
|
|
338
338
|
}).catch((c) => {
|
|
339
339
|
console.log(c);
|
|
340
340
|
});
|
|
341
341
|
};
|
|
342
|
-
Object.keys(
|
|
343
|
-
|
|
342
|
+
Object.keys(Z).forEach((s) => {
|
|
343
|
+
X(s, Z[s]);
|
|
344
344
|
});
|
|
345
|
-
const
|
|
346
|
-
|
|
345
|
+
const ee = () => {
|
|
346
|
+
K == !1 && (M == "true" || N == "true" || L == "true") && d.splice(1, 0, {
|
|
347
347
|
// @ts-ignore
|
|
348
348
|
id: "MYGAMES",
|
|
349
|
-
name:
|
|
349
|
+
name: Y,
|
|
350
350
|
href: "",
|
|
351
351
|
games: []
|
|
352
|
-
}),
|
|
353
|
-
},
|
|
354
|
-
if (
|
|
352
|
+
}), _e(), K = !0, t(25, A = !0), Q();
|
|
353
|
+
}, te = () => (n || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), l || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!m || m.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 = () => {
|
|
354
|
+
if (Y = a("myGamesName"), x = a("lobbyName"), !te()) {
|
|
355
355
|
let s = new URL(`${n}/v2/casino/groups/${l}`);
|
|
356
|
-
s.searchParams.append("language", m), s.searchParams.append("platform",
|
|
356
|
+
s.searchParams.append("language", m), s.searchParams.append("platform", be(p)), s.searchParams.append("fields", "id,name,games(href)"), fetch(s).then((c) => c.json()).then(
|
|
357
357
|
(c) => {
|
|
358
|
-
let k = G.split(","),
|
|
358
|
+
let k = G.split(","), ne = c.items.filter((W) => {
|
|
359
359
|
let F = !1;
|
|
360
|
-
if (
|
|
361
|
-
for (let
|
|
362
|
-
|
|
360
|
+
if (W.games.total > 0 && (F = !0, G))
|
|
361
|
+
for (let oe of k)
|
|
362
|
+
W.flags == oe && (F = !1);
|
|
363
363
|
return F;
|
|
364
364
|
});
|
|
365
|
-
d = [], d = d.concat(
|
|
365
|
+
d = [], d = d.concat(ne), d.unshift({
|
|
366
366
|
// @ts-ignore
|
|
367
367
|
id: "LOBBY",
|
|
368
|
-
name:
|
|
368
|
+
name: x,
|
|
369
369
|
href: "",
|
|
370
370
|
games: []
|
|
371
371
|
}), t(13, y = !1);
|
|
@@ -377,10 +377,10 @@ function Ae(i, e, t) {
|
|
|
377
377
|
t(15, f = !0), console.error("There was an error while fetching the categories", c);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
},
|
|
380
|
+
}, ie = () => {
|
|
381
381
|
let s = u.split("$");
|
|
382
382
|
t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
|
|
383
|
-
},
|
|
383
|
+
}, Q = () => {
|
|
384
384
|
window.postMessage(
|
|
385
385
|
{
|
|
386
386
|
type: "SliderData",
|
|
@@ -389,37 +389,37 @@ function Ae(i, e, t) {
|
|
|
389
389
|
},
|
|
390
390
|
window.location.href
|
|
391
391
|
);
|
|
392
|
-
},
|
|
393
|
-
s.data && s.data.type == "SliderLoaded" && D == s.data.identity &&
|
|
392
|
+
}, V = (s) => {
|
|
393
|
+
s.data && s.data.type == "SliderLoaded" && D == s.data.identity && Q();
|
|
394
394
|
};
|
|
395
|
-
|
|
396
|
-
window.
|
|
395
|
+
fe(() => (window.addEventListener("message", V, !1), () => {
|
|
396
|
+
window.removeEventListener("message", V);
|
|
397
397
|
}));
|
|
398
|
-
function
|
|
399
|
-
|
|
398
|
+
function ae(s) {
|
|
399
|
+
de[s ? "unshift" : "push"](() => {
|
|
400
400
|
g = s, t(14, g);
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
return i.$$set = (s) => {
|
|
404
|
-
"endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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,
|
|
404
|
+
"endpoint" in s && t(1, n = s.endpoint), "datasource" in s && t(2, l = s.datasource), "lang" in s && t(3, m = s.lang), "userid" in s && t(17, T = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, N = s.mostplayed), "lastplayed" in s && t(20, L = s.lastplayed), "favorites" in s && t(21, 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(22, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, I = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, C = 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);
|
|
405
405
|
}, i.$$.update = () => {
|
|
406
406
|
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
407
|
-
14 && n && l && m &&
|
|
408
|
-
3940354 && n && w && (N || L || M) && !y &&
|
|
409
|
-
33824769 && !y && u && (!w || A) &&
|
|
410
|
-
16777216 && C &&
|
|
411
|
-
16400 && _ && g &&
|
|
412
|
-
16416 && v && g &&
|
|
413
|
-
20480 && g &&
|
|
414
|
-
}, t(16,
|
|
407
|
+
14 && n && l && m && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
408
|
+
3940354 && n && w && (N || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
409
|
+
33824769 && !y && u && (!w || A) && ie(), i.$$.dirty[0] & /*translationurl*/
|
|
410
|
+
16777216 && C && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
411
|
+
16400 && _ && g && he(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
412
|
+
16416 && v && g && we(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
413
|
+
20480 && g && Ne(g, `${P}.Style`);
|
|
414
|
+
}, t(16, J = 0), [
|
|
415
415
|
u,
|
|
416
416
|
n,
|
|
417
417
|
l,
|
|
418
418
|
m,
|
|
419
419
|
_,
|
|
420
420
|
v,
|
|
421
|
+
R,
|
|
421
422
|
B,
|
|
422
|
-
U,
|
|
423
423
|
I,
|
|
424
424
|
q,
|
|
425
425
|
z,
|
|
@@ -428,27 +428,27 @@ function Ae(i, e, t) {
|
|
|
428
428
|
y,
|
|
429
429
|
g,
|
|
430
430
|
f,
|
|
431
|
-
|
|
431
|
+
J,
|
|
432
432
|
T,
|
|
433
433
|
w,
|
|
434
434
|
N,
|
|
435
435
|
L,
|
|
436
436
|
M,
|
|
437
|
-
|
|
437
|
+
U,
|
|
438
438
|
G,
|
|
439
439
|
C,
|
|
440
440
|
A,
|
|
441
|
-
|
|
441
|
+
ae
|
|
442
442
|
];
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class Ae extends le {
|
|
445
445
|
constructor(e) {
|
|
446
|
-
super(),
|
|
446
|
+
super(), ce(
|
|
447
447
|
this,
|
|
448
448
|
e,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
449
|
+
Pe,
|
|
450
|
+
Se,
|
|
451
|
+
ge,
|
|
452
452
|
{
|
|
453
453
|
endpoint: 1,
|
|
454
454
|
datasource: 2,
|
|
@@ -472,7 +472,7 @@ class Fe extends ce {
|
|
|
472
472
|
mygamesiconimage: 11,
|
|
473
473
|
mbsource: 12
|
|
474
474
|
},
|
|
475
|
-
|
|
475
|
+
ve,
|
|
476
476
|
[-1, -1]
|
|
477
477
|
);
|
|
478
478
|
}
|
|
@@ -603,7 +603,7 @@ class Fe extends ce {
|
|
|
603
603
|
this.$$set({ mbsource: e }), r();
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
|
|
606
|
+
me(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
|
607
607
|
export {
|
|
608
|
-
|
|
608
|
+
Ae as default
|
|
609
609
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BGhJ1cEV.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T;const Y=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),Q()})},Q=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,D()},D=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},$=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},ee=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&Y(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,$,ee,z,H,o,a,g,w,d,m,c,x,ie,le,ne,oe]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-Bo-lripz.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const R={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:var(--emw--border-radius-medium, 10px);width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function I(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function de(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,_,v,w,d=i[7]>i[8]&&V(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=Z(I(i,m,c));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(v,"class","CategoriesSlider"),e.attr(t,"class",w="CasinoCollectionsProviders "+(i[9]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),d&&d.m(l,null),e.append(t,_),e.append(t,v);for(let h=0;h<s.length;h+=1)s[h]&&s[h].m(v,null);i[25](v)},p(c,u){if(u[0]&1025&&o!==(o=(c[0]==="vendor"?c[10]("providers"):c[10]("collections"))+"")&&e.set_data(a,o),c[7]>c[8]?d?d.p(c,u):(d=V(c),d.c(),d.m(l,null)):d&&(d.d(1),d=null),u[0]&24590){m=e.ensure_array_like(c[3]);let h;for(h=0;h<m.length;h+=1){const p=I(c,m,h);s[h]?s[h].p(p,u):(s[h]=Z(p),s[h].c(),s[h].m(v,null))}for(;h<s.length;h+=1)s[h].d(1);s.length=m.length}u[0]&513&&w!==(w="CasinoCollectionsProviders "+(c[9]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",w)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(s,c),i[25](null)}}}function ce(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function V(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(_,v){e.insert(_,t,v),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[11]),e.listen(o,"click",i[12])],a=!0)},p:e.noop,d(_){_&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function W(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function K(i){let t,l,r,o,a,g,_,v;function w(){return i[23](i[44])}let d=i[2]=="true"&&W(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),d&&d.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(m,s){e.insert(m,t,s),e.append(t,l),e.append(t,a),d&&d.m(t,null),e.append(t,g),_||(v=e.listen(l,"click",e.stop_propagation(w)),_=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=W(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),_=!1,v()}}}function Z(i){let t,l,r,o,a,g,_,v,w;function d(p,f){if(p[1]==="logo")return ue;if(p[1]==="title")return ge}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[41].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=K(U(i,c,p));function h(){return i[24](i[41])}return{c(){var p,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),s&&s.c(),o=e.space(),a=e.element("div");for(let b=0;b<u.length;b+=1)u[b].c();_=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[41])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(p,f){e.insert(p,t,f),e.append(t,l),e.append(l,r),s&&s.m(r,null),e.append(l,o),e.append(l,a);for(let b=0;b<u.length;b+=1)u[b]&&u[b].m(a,null);e.append(t,_),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var b,k;if(i=p,m===(m=d(i))&&s?s.p(i,f):(s&&s.d(1),s=m&&m(i),s&&(s.c(),s.m(r,null))),f[0]&8204){c=e.ensure_array_like(i[41].games);let C;for(C=0;C<c.length;C+=1){const L=U(i,c,C);u[C]?u[C].p(L,f):(u[C]=K(L),u[C].c(),u[C].m(a,null))}for(;C<u.length;C+=1)u[C].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((b=i[41])==null?void 0:b.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function pe(i){let t;function l(a,g){return a[6]?ce:de}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[26](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[26](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(10,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:d=""}=t,{translationurl:m=""}=t,{collectionprovidersgamenames:s=""}=t,{mbsource:c}=t,u=[],h=!0,p,f=0,b=0,k=0,C,L,j=0,M=50,x=!1,G,X=window.navigator.userAgent,T;const Y=()=>{fetch(m).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{q(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(R).forEach(n=>{q(n,R[n])});const F=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),n.searchParams.append("filter",`$and(flags=${_})`),n.searchParams.append("pagination",`offset=${j},limit=${M}`),fetch(n.href).then(y=>y.json()).then(y=>{l(6,h=!1),y.total>M&&(j+=50,M+=50,l(22,x=!0));let P=y.items.map(S=>{var E,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(E=S.vendors)==null?void 0:E.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}});l(3,u=[...u,...P]),l(7,b=u.length),Q()})},Q=()=>{const n=G.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},B=n=>{var y;L=[...p.children],L.forEach((P,S)=>{P.style.transform=`translateX(${100*(n?S-n:S)}%)`}),C=(y=L[0])==null?void 0:y.getBoundingClientRect().width,D()},D=()=>{l(8,k=Math.floor(p.clientWidth/C))},O=()=>{B(f)},$=()=>{f===0?f=b-k:f-k<-1?f=0:f--,O()},ee=()=>{f===b-k?f=0:b-k<f+1?f=b-k:f++,O()},z=(n,y,P,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:y,gameName:P,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${P}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(X)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function oe(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(15,o=n.endpoint),"datasource"in n&&l(16,a=n.datasource),"lang"in n&&l(17,g=n.lang),"type"in n&&l(0,_=n.type),"titletype"in n&&l(1,v=n.titletype),"clientstyling"in n&&l(18,w=n.clientstyling),"clientstylingurl"in n&&l(19,d=n.clientstylingurl),"translationurl"in n&&l(20,m=n.translationurl),"collectionprovidersgamenames"in n&&l(2,s=n.collectionprovidersgamenames),"mbsource"in n&&l(21,c=n.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&229376&&o&&a&&g&&F(),i.$$.dirty[0]&24&&u&&p&&B(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&G&&e.setClientStyling(G,w),i.$$.dirty[0]&524320&&d&&G&&e.setClientStylingURL(G,d),i.$$.dirty[0]&2097184&&G&&e.setStreamStyling(G,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&Y(),i.$$.dirty[0]&4194304&&x&&F()},[_,v,s,u,p,G,h,b,k,T,r,$,ee,z,H,o,a,g,w,d,m,c,x,ie,le,ne,oe]}class J extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},se,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(J,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=J;
|