@everymatrix/casino-lobby 1.59.0 → 1.59.2
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-CEPKCmvL.js → CasinoCalendar-6ncpIgng.js} +937 -912
- package/components/CasinoCalendar-CkNAiTx8.cjs +22 -0
- package/components/{CasinoCalendar-BWZKTjt3.js → CasinoCalendar-Km8tdNHN.js} +930 -905
- package/components/{CasinoCalendarDailyDetails-C4rdfT96.js → CasinoCalendarDailyDetails-CAbwFBvZ.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-BZxw5rrd.js → CasinoCalendarDailyDetails-CGaAU2gc.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-CneP-8H4.cjs → CasinoCalendarDailyDetails-CsEZhtVE.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-B3mEEjHA.js → CasinoCalendarDailyItem-5aqnKIMr.js} +41 -41
- package/components/{CasinoCalendarDailyItem-yxm1jout.cjs → CasinoCalendarDailyItem-DSlC0F3s.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DAH0pKrw.js → CasinoCalendarDailyItem-D_MTrKed.js} +41 -41
- package/components/{CasinoCategoriesSlider-t9Ea10Xr.js → CasinoCategoriesSlider-CZHyRC-C.js} +67 -67
- package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +1 -0
- package/components/{CasinoCategoriesSlider-Dd33-jys.js → CasinoCategoriesSlider-Dm2i_QTf.js} +66 -66
- package/components/{CasinoCollectionsProviders-CBiEhbus.cjs → CasinoCollectionsProviders-B6occ8TF.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-bmfbt1iI.js → CasinoCollectionsProviders-B7d5LuGP.js} +145 -142
- package/components/{CasinoCollectionsProviders-DAgGlzwM.js → CasinoCollectionsProviders-pk8jpLQt.js} +142 -139
- package/components/{CasinoFavoritesSection-B9pa_5wC.js → CasinoFavoritesSection-C949lfcK.js} +26 -26
- package/components/{CasinoFavoritesSection-Dm0Ylorq.js → CasinoFavoritesSection-V5ybOUJC.js} +26 -26
- package/components/{CasinoFavoritesSection-n_i25VDL.cjs → CasinoFavoritesSection-hHKNAcoS.cjs} +1 -1
- package/components/{CasinoFilter-BTP1X8zp.js → CasinoFilter-BTof425X.js} +247 -246
- package/components/{CasinoFilter-BaCM2CFg.js → CasinoFilter-BWjq7W1e.js} +234 -235
- package/components/CasinoFilter-C2Q93qQz.cjs +1 -0
- package/components/{CasinoGamePage-DSk7OmI2.js → CasinoGamePage-Cp2CKRka.js} +742 -742
- package/components/{CasinoGamePage-CIvFWln2.cjs → CasinoGamePage-D2huRBJX.cjs} +6 -6
- package/components/{CasinoGamePage-jh3dkrf4.js → CasinoGamePage-ssKF-ZD1.js} +741 -741
- package/components/CasinoGameThumbnail-CVz7FpsB.js +1866 -0
- package/components/CasinoGameThumbnail-DK9cpR-G.cjs +38 -0
- package/components/CasinoGameThumbnail-NLieCJGe.js +1850 -0
- package/components/{CasinoGamesCategorySection-BBfNK7Mo.cjs → CasinoGamesCategorySection-BAcJus2G.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-dyyrntic.js → CasinoGamesCategorySection-BP3bZsZg.js} +433 -428
- package/components/{CasinoGamesCategorySection-BU3JMFcx.js → CasinoGamesCategorySection-Bpy9vh6D.js} +520 -515
- package/components/{CasinoJackpotBanner-BvW5shKI.js → CasinoJackpotBanner-CuP8WP5Q.js} +219 -214
- package/components/{CasinoJackpotBanner-7unbFH4I.js → CasinoJackpotBanner-Dl2rX6vI.js} +191 -186
- package/components/CasinoJackpotBanner-DredUN6K.cjs +1 -0
- package/components/{CasinoLastPlayedSection-BtSsd68j.js → CasinoLastPlayedSection-B9I2fZm5.js} +43 -43
- package/components/{CasinoLastPlayedSection-YmqYIIYS.cjs → CasinoLastPlayedSection-COAM1aoc.cjs} +1 -1
- package/components/{CasinoLastPlayedSection--cJ8dS0F.js → CasinoLastPlayedSection-CVEuFsbi.js} +43 -43
- package/components/{CasinoLobby--nSc5THC.js → CasinoLobby-AoZlXLOV.js} +45 -45
- package/components/{CasinoLobby-DngFRvmY.js → CasinoLobby-BRiasSXJ.js} +47 -47
- package/components/{CasinoLobby-BUcjKu4u.cjs → CasinoLobby-CYqI5Bvp.cjs} +1 -1
- package/components/{CasinoModal-88yfZulM.js → CasinoModal-B9Gmdwc0.js} +41 -41
- package/components/{CasinoModal-D9_hs2c9.js → CasinoModal-DLgyWFbs.js} +41 -41
- package/components/{CasinoModal-Ce5Pthg0.cjs → CasinoModal-d1VUXUWj.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-BldCqqK1.js → CasinoMostPlayedSection-9B6X9czZ.js} +50 -50
- package/components/{CasinoMostPlayedSection-DI5TANog.cjs → CasinoMostPlayedSection-BUwIld9p.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CvX-e31F.js → CasinoMostPlayedSection-DwZh0uxo.js} +50 -50
- package/components/{CasinoMyGames-CJm9ApZ8.js → CasinoMyGames-76IMIo9z.js} +50 -50
- package/components/{CasinoMyGames-CNSxKFTG.js → CasinoMyGames-DRCxYUHg.js} +53 -53
- package/components/{CasinoMyGames-DQEE59aC.cjs → CasinoMyGames-DTGaTHyO.cjs} +1 -1
- package/components/{CasinoPage-Renb8OYu.js → CasinoPage-BPxxsTeq.js} +1502 -1456
- package/components/CasinoPage-CikRIum6.js +3755 -0
- package/components/CasinoPage-DZ6Yhwli.cjs +1 -0
- package/components/{CasinoRandomGame-CjLDPmJh.cjs → CasinoRandomGame-CBcSHzZL.cjs} +1 -1
- package/components/{CasinoRandomGame-CaLII6na.js → CasinoRandomGame-CfOiAKHl.js} +63 -63
- package/components/{CasinoRandomGame-8kMXdgrA.js → CasinoRandomGame-CqripZYr.js} +64 -64
- package/components/{CasinoSearch-eN8ZAKdn.js → CasinoSearch-CCcjmB9U.js} +72 -72
- package/components/{CasinoSearch-Cf4ivtxM.cjs → CasinoSearch-CZSrkWFZ.cjs} +1 -1
- package/components/{CasinoSearch-ISBqoS_l.js → CasinoSearch-Cs8FRwGb.js} +72 -72
- package/components/{CasinoSlider-DLY4ZBJR.js → CasinoSlider-0rdHVHjG.js} +65 -65
- package/components/{CasinoSlider-BqOuFEE1.cjs → CasinoSlider-CMKmgXUK.cjs} +1 -1
- package/components/{CasinoSlider-DTLHID6G.js → CasinoSlider-CleETLFf.js} +74 -74
- package/components/{CasinoSort-DKL_qMEQ.js → CasinoSort-BRC8Jmi_.js} +103 -104
- package/components/{CasinoSort-BpUmCYRy.cjs → CasinoSort-C78a6veQ.cjs} +1 -1
- package/components/{CasinoSort-BNFUwAYT.js → CasinoSort-xZsxfLYC.js} +111 -110
- package/components/{CasinoWinners-Czg0Gq3N.js → CasinoWinners-BEOhs5WG.js} +181 -178
- package/components/{CasinoWinners-DRdsN9K_.cjs → CasinoWinners-Cp1yMlzb.cjs} +1 -1
- package/components/{CasinoWinners-BoSyqMDy.js → CasinoWinners-DD8ZyQkV.js} +187 -184
- package/components/{GeneralAnimationLoading-CVr2zyUi.cjs → GeneralAnimationLoading-Bl6_sP-d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-DL8bFxE7.js → GeneralAnimationLoading-CURVDkRT.js} +16 -16
- package/components/{GeneralAnimationLoading-swHQRr7H.js → GeneralAnimationLoading-uswxvfCW.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 +3 -2
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/{casino-play-random-game-BOnTgUqC.js → casino-play-random-game-BW66Civ1.js} +20 -18
- package/stencil/{casino-play-random-game-NcJEjFWA.js → casino-play-random-game-Bk7toWLj.js} +19 -17
- package/stencil/{casino-play-random-game-DjdZ0XM0.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
- package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
- package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
- package/stencil/index-ae04a8b1-BvZmaj3p.js +532 -0
- package/stencil/index-ae04a8b1-DoeYpoC5.js +516 -0
- package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +1 -0
- package/stencil/ui-skeleton-C02hm1pt.js +29 -0
- package/stencil/ui-skeleton-DET4YE0J.js +11 -0
- package/stencil/ui-skeleton-DlNNnOZy.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-7C4Fyb2d.js +122 -0
- package/stencil/ui-skeleton-a642cced-BhVS1i2r.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-Dn9GOtgo.js +122 -0
- package/components/CasinoCalendar-YzaZrGBf.cjs +0 -22
- package/components/CasinoCategoriesSlider-DozoHOzF.cjs +0 -1
- package/components/CasinoFilter-B7H_n_MD.cjs +0 -1
- package/components/CasinoGameThumbnail-BXCu7VY7.js +0 -1834
- package/components/CasinoGameThumbnail-Mnpd_s_M.js +0 -1850
- package/components/CasinoGameThumbnail-uCJn0tBq.cjs +0 -38
- package/components/CasinoJackpotBanner-RjyciaDJ.cjs +0 -1
- package/components/CasinoPage-DeZ_xrWS.js +0 -3709
- package/components/CasinoPage-_d_6nEdh.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-510a6ba4-1RrL4Z6e.js +0 -564
- package/stencil/index-510a6ba4-CNr-xCZE.js +0 -548
- package/stencil/index-510a6ba4-eEczisTR.cjs +0 -1
package/components/{CasinoCategoriesSlider-Dd33-jys.js → CasinoCategoriesSlider-Dm2i_QTf.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as le, S as ce, i as me, f as l, c as ge, s as ue, b as ye, e as h, d as E, G as S, j, k as fe, o as be, l as de, N as he, O as Ne, q as we, r as Le, m as Me, P as n, y as T, z as _e, Q as ve, I as Ce } from "./CasinoCalendar-6ncpIgng.js";
|
|
2
|
+
function x(i, e) {
|
|
3
|
+
le(i, e);
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const p = {
|
|
6
6
|
en: {
|
|
7
7
|
lobbyName: "Lobby",
|
|
8
8
|
myGamesName: "My games"
|
|
@@ -76,7 +76,7 @@ const x = {
|
|
|
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-CleETLFf.js").then(({ default: e }) => {
|
|
92
92
|
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
93
93
|
});
|
|
94
94
|
}
|
|
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
|
-
}
|
|
98
95
|
function Ge(i) {
|
|
96
|
+
ye(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
|
+
}
|
|
98
|
+
function ke(i) {
|
|
99
99
|
let e, t, r, c;
|
|
100
100
|
return {
|
|
101
101
|
c() {
|
|
@@ -172,7 +172,7 @@ function Ge(i) {
|
|
|
172
172
|
), T(e, "class", "CasinoCategoriesContainer svelte-2g6deg");
|
|
173
173
|
},
|
|
174
174
|
m(a, o) {
|
|
175
|
-
|
|
175
|
+
E(a, e, o), _e(e, t), r || (c = ve(
|
|
176
176
|
/*sendSliderData*/
|
|
177
177
|
i[17].call(null, t)
|
|
178
178
|
), r = !0);
|
|
@@ -265,48 +265,48 @@ function Ge(i) {
|
|
|
265
265
|
);
|
|
266
266
|
},
|
|
267
267
|
d(a) {
|
|
268
|
-
a &&
|
|
268
|
+
a && j(e), r = !1, c();
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Se(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
|
+
E(t, e, r);
|
|
280
280
|
},
|
|
281
281
|
p: S,
|
|
282
282
|
d(t) {
|
|
283
|
-
t &&
|
|
283
|
+
t && j(e);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Ee(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
|
+
E(t, e, r);
|
|
295
295
|
},
|
|
296
296
|
p: S,
|
|
297
297
|
d(t) {
|
|
298
|
-
t &&
|
|
298
|
+
t && j(e);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function je(i) {
|
|
303
303
|
let e;
|
|
304
304
|
function t(a, o) {
|
|
305
305
|
return (
|
|
306
306
|
/*isLoading*/
|
|
307
|
-
a[13] ||
|
|
307
|
+
a[13] || Pe || Fe ? Ee : (
|
|
308
308
|
/*hasErrors*/
|
|
309
|
-
a[15] ?
|
|
309
|
+
a[15] ? Se : ke
|
|
310
310
|
)
|
|
311
311
|
);
|
|
312
312
|
}
|
|
@@ -316,7 +316,7 @@ function Ee(i) {
|
|
|
316
316
|
e = h("div"), c.c();
|
|
317
317
|
},
|
|
318
318
|
m(a, o) {
|
|
319
|
-
|
|
319
|
+
E(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 Ee(i) {
|
|
|
324
324
|
i: S,
|
|
325
325
|
o: S,
|
|
326
326
|
d(a) {
|
|
327
|
-
a &&
|
|
327
|
+
a && j(e), c.d(), i[27](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
let O = "CasinoSliderData",
|
|
332
|
-
function
|
|
331
|
+
let O = "CasinoSliderData", Pe = !1, Fe = !1;
|
|
332
|
+
function Ae(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
|
+
fe(i, Ce, (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: q = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: z = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Q, J, K, y = !0, b, d = [], f = !1, $ = window.navigator.userAgent, g, V, W = !1, F = !1;
|
|
336
|
+
const ee = () => {
|
|
337
337
|
fetch(G).then((m) => m.json()).then((m) => {
|
|
338
338
|
Object.keys(m).forEach((k) => {
|
|
339
|
-
|
|
339
|
+
x(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(p).forEach((s) => {
|
|
346
|
+
x(s, p[s]);
|
|
347
347
|
});
|
|
348
|
-
const
|
|
349
|
-
|
|
348
|
+
const te = () => {
|
|
349
|
+
W == !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
|
+
}), he(), W = !0, t(26, F = !0), A();
|
|
356
|
+
}, se = () => (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), ie = () => {
|
|
357
|
+
if (J = r("myGamesName"), K = r("lobbyName"), !se()) {
|
|
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", Ne($)), fetch(s).then((m) => m.json()).then(
|
|
360
360
|
(m) => {
|
|
361
|
-
let k = C.split(","),
|
|
361
|
+
let k = C.split(","), oe = m.items.filter((Z) => {
|
|
362
362
|
let D = !1;
|
|
363
|
-
if (
|
|
364
|
-
for (let
|
|
365
|
-
|
|
363
|
+
if (Z.games.total > 0 && (D = !0, C))
|
|
364
|
+
for (let re of k)
|
|
365
|
+
Z.flags == re && (D = !1);
|
|
366
366
|
return D;
|
|
367
367
|
});
|
|
368
|
-
d = [], d = d.concat(
|
|
368
|
+
d = [], d = d.concat(oe), d.unshift({
|
|
369
369
|
// @ts-ignore
|
|
370
370
|
id: "LOBBY",
|
|
371
371
|
name: K,
|
|
@@ -380,7 +380,7 @@ function Fe(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
|
+
}, ae = () => {
|
|
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 Fe(i, e, t) {
|
|
|
392
392
|
},
|
|
393
393
|
window.location.href
|
|
394
394
|
);
|
|
395
|
-
},
|
|
395
|
+
}, X = (s) => {
|
|
396
396
|
s.data && s.data.type == "SliderLoaded" && O == s.data.identity && A();
|
|
397
397
|
};
|
|
398
|
-
|
|
399
|
-
window.removeEventListener("message",
|
|
398
|
+
be(() => (window.addEventListener("message", X, !1), () => {
|
|
399
|
+
window.emMessageBus && Q && Q.unsubscribe(), window.removeEventListener("message", X);
|
|
400
400
|
}));
|
|
401
|
-
function
|
|
402
|
-
|
|
401
|
+
function ne(s) {
|
|
402
|
+
we[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, q = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, z = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = 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 && ie(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
411
|
+
7872514 && c && N && (w || L || M) && !y && te(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
412
|
+
67641345 && !y && u && (!N || F) && ae(), i.$$.dirty[0] & /*translationurl*/
|
|
413
|
+
33554432 && G && ee(), 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 && de(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
416
|
+
20480 && g && Me(g, `${P}.Style`);
|
|
417
|
+
}, t(16, V = 0), [
|
|
418
418
|
u,
|
|
419
419
|
c,
|
|
420
420
|
a,
|
|
@@ -423,15 +423,15 @@ function Fe(i, e, t) {
|
|
|
423
423
|
v,
|
|
424
424
|
R,
|
|
425
425
|
B,
|
|
426
|
-
Y,
|
|
427
426
|
q,
|
|
428
427
|
z,
|
|
428
|
+
Y,
|
|
429
429
|
H,
|
|
430
430
|
P,
|
|
431
431
|
y,
|
|
432
432
|
g,
|
|
433
433
|
f,
|
|
434
|
-
|
|
434
|
+
V,
|
|
435
435
|
A,
|
|
436
436
|
I,
|
|
437
437
|
N,
|
|
@@ -442,17 +442,17 @@ function Fe(i, e, t) {
|
|
|
442
442
|
C,
|
|
443
443
|
G,
|
|
444
444
|
F,
|
|
445
|
-
|
|
445
|
+
ne
|
|
446
446
|
];
|
|
447
447
|
}
|
|
448
|
-
class
|
|
448
|
+
class De extends ce {
|
|
449
449
|
constructor(e) {
|
|
450
|
-
super(),
|
|
450
|
+
super(), me(
|
|
451
451
|
this,
|
|
452
452
|
e,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
453
|
+
Ae,
|
|
454
|
+
je,
|
|
455
|
+
ue,
|
|
456
456
|
{
|
|
457
457
|
endpoint: 1,
|
|
458
458
|
datasource: 2,
|
|
@@ -476,7 +476,7 @@ class Ae extends le {
|
|
|
476
476
|
mygamesiconimage: 11,
|
|
477
477
|
mbsource: 12
|
|
478
478
|
},
|
|
479
|
-
|
|
479
|
+
Ge,
|
|
480
480
|
[-1, -1]
|
|
481
481
|
);
|
|
482
482
|
}
|
|
@@ -607,7 +607,7 @@ class Ae extends le {
|
|
|
607
607
|
this.$$set({ mbsource: e }), l();
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
ge(
|
|
610
|
+
ge(De, { 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
|
+
De as default
|
|
613
613
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-YzaZrGBf.cjs");function I(i,t){e.addMessages(i,t)}function re(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 ae(i){e.append_styles(i,"svelte-3oqkg3",'*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function U(i,t,l){const r=i.slice();return r[40]=t[l],r}function V(i,t,l){const r=i.slice();return r[43]=t[l],r}function se(i){let t,l,r,o=(i[0]==="vendor"?i[10]("providers"):i[10]("collections"))+"",a,g,b,v,w,d=i[7]>i[8]&&W(i),m=e.ensure_array_like(i[3]),s=[];for(let c=0;c<m.length;c+=1)s[c]=K(U(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(),b=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,b),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=W(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=U(c,m,h);s[h]?s[h].p(p,u):(s[h]=K(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 de(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 W(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(b,v){e.insert(b,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(b){b&&e.detach(t),a=!1,e.run_all(g)}}}function ce(i){let t,l=i[40].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[40].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ge(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[40].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[40].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[40].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[40].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function E(i){let t,l=i[43].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[43].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[43].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[43].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,o,a,g,b,v;function w(){return i[23](i[43])}let d=i[2]=="true"&&E(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[43].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[43].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),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!0)},p(m,s){i=m,s[0]&8&&!e.src_url_equal(l.src,r=i[43].defaultThumbnail)&&e.attr(l,"src",r),s[0]&8&&o!==(o=i[43].name)&&e.attr(l,"alt",o),i[2]=="true"?d?d.p(i,s):(d=E(i),d.c(),d.m(t,g)):d&&(d.d(1),d=null)},d(m){m&&e.detach(t),d&&d.d(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,v,w;function d(p,f){if(p[1]==="logo")return ge;if(p[1]==="title")return ce}let m=d(i),s=m&&m(i),c=e.ensure_array_like(i[40].games),u=[];for(let p=0;p<c.length;p+=1)u[p]=D(V(i,c,p));function h(){return i[24](i[40])}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 _=0;_<u.length;_+=1)u[_].c();b=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((p=i[40])==null?void 0:p.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[40])==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 _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;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[40].games);let y;for(y=0;y<c.length;y+=1){const L=V(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[40])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[40])==null?void 0:S.background)+")")},d(p){p&&e.detach(t),s&&s.d(),e.destroy_each(u,p),v=!1,w()}}}function ue(i){let t;function l(a,g){return a[6]?de:se}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 pe(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:b=""}=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,_=0,S=0,y,L,x=0,M=50,j=!1,P,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(k=>{I(k,C[k])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{I(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=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let k=C.items.map(G=>{var q,A,N;return{id:G.id,name:G.name,icon:G.icon?G.icon:(N=(A=(q=G.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:G.games.items.slice(0,4).map(oe=>oe),background:G.background,flag:G.flags}});l(3,u=[...u,...k]),l(7,_=u.length)})},O=n=>{L=[...p.children],L.forEach((C,k)=>{C.style.transform=`translateX(${100*(n?k-n:k)}%)`}),y=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},Q=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},$=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,k,G)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:k,subVendor:G},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${k}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},ee=()=>{re(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const te=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),ie=n=>B(n.id);function le(n){e.binding_callbacks[n?"unshift":"push"](()=>{p=n,l(4,p)})}function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{P=n,l(5,P)})}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,b=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&&O(),i.$$.dirty[0]&131072&&g&&ee(),i.$$.dirty[0]&262176&&w&&P&&e.setClientStyling(P,w),i.$$.dirty[0]&524320&&d&&P&&e.setClientStylingURL(P,d),i.$$.dirty[0]&2097184&&P&&e.setStreamStyling(P,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,P,h,_,S,T,r,Q,$,z,B,o,a,g,w,d,m,c,j,te,ie,le,ne]}class Z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pe,ue,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},ae,[-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(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CkNAiTx8.cjs");function E(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-3oqkg3",'*,*::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));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: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:10px;width:auto;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:10px;width:auto;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, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) 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,b,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]=K(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(),b=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,b),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]=K(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(b,v){e.insert(b,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(b){b&&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 D(i){let t,l,r,o,a,g,b,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),b||(v=e.listen(l,"click",e.stop_propagation(w)),b=!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(),b=!1,v()}}}function K(i){let t,l,r,o,a,g,b,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]=D(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 _=0;_<u.length;_+=1)u[_].c();b=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 _=0;_<u.length;_+=1)u[_]&&u[_].m(a,null);e.append(t,b),v||(w=e.listen(l,"click",h),v=!0)},p(p,f){var _,S;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 y;for(y=0;y<c.length;y+=1){const L=U(i,c,y);u[y]?u[y].p(L,f):(u[y]=D(L),u[y].c(),u[y].m(a,null))}for(;y<u.length;y+=1)u[y].d(1);u.length=c.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((S=i[41])==null?void 0:S.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:b=""}=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,_=0,S=0,y,L,x=0,M=50,j=!1,k,J=window.navigator.userAgent,T;const X=()=>{fetch(m).then(C=>C.json()).then(C=>{Object.keys(C).forEach(G=>{E(G,C[G])})}).catch(C=>{console.log(C)})};Object.keys(R).forEach(n=>{E(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=${b})`),n.searchParams.append("pagination",`offset=${x},limit=${M}`),fetch(n.href).then(C=>C.json()).then(C=>{l(6,h=!1),C.total>M&&(x+=50,M+=50,l(22,j=!0));let G=C.items.map(P=>{var q,A,N;return{id:P.id,name:P.name,icon:P.icon?P.icon:(N=(A=(q=P.vendors)==null?void 0:q.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:P.games.items.slice(0,4).map(re=>re),background:P.background,flag:P.flags}});l(3,u=[...u,...G]),l(7,_=u.length),Y()})},Y=()=>{const n=k.getRootNode().host;n.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:n}}))},O=n=>{L=[...p.children],L.forEach((C,G)=>{C.style.transform=`translateX(${100*(n?G-n:G)}%)`}),y=L[0].getBoundingClientRect().width,Q()},Q=()=>{l(8,S=Math.floor(p.clientWidth/y))},H=()=>{O(f)},$=()=>{f===0?f=_-S:f-S<-1?f=0:f--,H()},ee=()=>{f===_-S?f=0:_-S<f+1?f=_-S:f++,H()},z=(n,C,G,P)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:G,subVendor:P},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},B=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},te=()=>{ae(g)};e.onMount(()=>(l(9,T=e.isMobile(J)),()=>{}));const ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>B(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"](()=>{k=n,l(5,k)})}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,b=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&&O(),i.$$.dirty[0]&131072&&g&&te(),i.$$.dirty[0]&262176&&w&&k&&e.setClientStyling(k,w),i.$$.dirty[0]&524320&&d&&k&&e.setClientStylingURL(k,d),i.$$.dirty[0]&2097184&&k&&e.setStreamStyling(k,`${c}.Style`),i.$$.dirty[0]&1048576&&m&&X(),i.$$.dirty[0]&4194304&&j&&F()},[b,v,s,u,p,k,h,_,S,T,r,$,ee,z,B,o,a,g,w,d,m,c,j,ie,le,ne,oe]}class Z 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(Z,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Z;
|