@everymatrix/casino-lobby 1.0.69 → 1.0.71
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-1k0BBA2l.js +5133 -0
- package/components/CasinoCalendar-BWBvGSII.cjs +9 -0
- package/components/CasinoCalendarDailyDetails-BJKIAkbG.js +605 -0
- package/components/CasinoCalendarDailyDetails-DgCaDV2E.cjs +1 -0
- package/components/CasinoCalendarDailyItem-C_l5_Cbi.cjs +1 -0
- package/components/CasinoCalendarDailyItem-TzcXj_xp.js +228 -0
- package/components/CasinoCategoriesSlider-DOK-1TsD.cjs +1 -0
- package/components/CasinoCategoriesSlider-H9kgmTPC.js +597 -0
- package/components/CasinoCollectionsProviders-CTMcJfG2.cjs +1 -0
- package/components/CasinoCollectionsProviders-DcAD0Be0.js +624 -0
- package/components/CasinoFavoritesSection-BZ_XLRmR.cjs +1 -0
- package/components/CasinoFavoritesSection-DH6BKL3S.js +418 -0
- package/components/CasinoFilter-D7CEXK-l.cjs +1 -0
- package/components/CasinoFilter-ud_GEK1c.js +628 -0
- package/components/CasinoGamePage-CCUgU-We.js +4282 -0
- package/components/CasinoGamePage-DWdj6K_K.cjs +18 -0
- package/components/CasinoGameThumbnail-C1lv7WRh.js +1823 -0
- package/components/CasinoGameThumbnail-d4TgneFz.cjs +38 -0
- package/components/CasinoGamesCategorySection-BHD5W6Ng.cjs +1 -0
- package/components/CasinoGamesCategorySection-Exr1MKB1.js +3018 -0
- package/components/CasinoJackpotBanner-BFf1l5SE.cjs +1 -0
- package/components/CasinoJackpotBanner-CQopUNVw.js +619 -0
- package/components/CasinoLastPlayedSection-CT0J4KWo.cjs +1 -0
- package/components/CasinoLastPlayedSection-Cg5CoSZQ.js +563 -0
- package/components/CasinoLobby-CQ5QQCC5.js +2341 -0
- package/components/CasinoLobby-CeXBQomU.cjs +1 -0
- package/components/CasinoModal-DRQwRcHh.cjs +1 -0
- package/components/CasinoModal-tGpCX8AS.js +372 -0
- package/components/CasinoMostPlayedSection-DxHuPS1x.js +580 -0
- package/components/CasinoMostPlayedSection-mR65chYs.cjs +1 -0
- package/components/CasinoMyGames-BEQmLbuR.js +1313 -0
- package/components/CasinoMyGames-fIZN6Hwx.cjs +1 -0
- package/components/CasinoPage-B3P3Beyx.js +3525 -0
- package/components/CasinoPage-CV3pXWvT.cjs +1 -0
- package/components/CasinoRandomGame-BHTCDUvy.cjs +2 -0
- package/components/CasinoRandomGame-DVAINYig.js +641 -0
- package/components/CasinoSearch-CEyowN7y.cjs +1 -0
- package/components/CasinoSearch-DhJUhsQG.js +1066 -0
- package/components/CasinoSlider-C9caYXJM.js +803 -0
- package/components/CasinoSlider-CeyUOxE1.cjs +1 -0
- package/components/CasinoSort-BKpaIJVo.js +425 -0
- package/components/CasinoSort-C_BR2AM6.cjs +1 -0
- package/components/CasinoWinners-OIwhz7Uv.cjs +1 -0
- package/components/CasinoWinners-osa_wAsU.js +878 -0
- package/components/GeneralAnimationLoading-Bn_rjnZO.cjs +1 -0
- package/components/GeneralAnimationLoading-hP0Vi1pK.js +75 -0
- package/package.json +8 -7
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
import { I as le, S as re, i as ce, f as c, c as me, s as ge, b as ue, e as N, g as F, C as S, k as T, J as ye, K as fe, L as he, n as de, M as o, d as E, v as be, N as Ne, O as we } from "./CasinoCalendar-1k0BBA2l.js";
|
|
2
|
+
function Q(i, e) {
|
|
3
|
+
le(i, e);
|
|
4
|
+
}
|
|
5
|
+
const V = {
|
|
6
|
+
en: {
|
|
7
|
+
lobbyName: "Lobby",
|
|
8
|
+
myGamesName: "My games"
|
|
9
|
+
},
|
|
10
|
+
de: {
|
|
11
|
+
lobbyName: "Lobby",
|
|
12
|
+
myGamesName: "My games"
|
|
13
|
+
},
|
|
14
|
+
es: {
|
|
15
|
+
lobbyName: "Sala",
|
|
16
|
+
myGamesName: "Mis juegos"
|
|
17
|
+
},
|
|
18
|
+
"zh-hk": {
|
|
19
|
+
lobbyName: "Lobby",
|
|
20
|
+
myGamesName: "My games"
|
|
21
|
+
},
|
|
22
|
+
it: {
|
|
23
|
+
lobbyName: "Lobby",
|
|
24
|
+
myGamesName: "My games"
|
|
25
|
+
},
|
|
26
|
+
fr: {
|
|
27
|
+
lobbyName: "Lobby",
|
|
28
|
+
myGamesName: "My games"
|
|
29
|
+
},
|
|
30
|
+
tr: {
|
|
31
|
+
lobbyName: "Lobi",
|
|
32
|
+
myGamesName: "Oyunlarım"
|
|
33
|
+
},
|
|
34
|
+
ru: {
|
|
35
|
+
lobbyName: "Lobby",
|
|
36
|
+
myGamesName: "My games"
|
|
37
|
+
},
|
|
38
|
+
ro: {
|
|
39
|
+
lobbyName: "Lobby",
|
|
40
|
+
myGamesName: "My games"
|
|
41
|
+
},
|
|
42
|
+
hr: {
|
|
43
|
+
lobbyName: "Lobby",
|
|
44
|
+
myGamesName: "Moje igre"
|
|
45
|
+
},
|
|
46
|
+
hu: {
|
|
47
|
+
lobbyName: "Lobby",
|
|
48
|
+
myGamesName: "My games"
|
|
49
|
+
},
|
|
50
|
+
pl: {
|
|
51
|
+
lobbyName: "Lobby",
|
|
52
|
+
myGamesName: "My games"
|
|
53
|
+
},
|
|
54
|
+
pt: {
|
|
55
|
+
lobbyName: "Lobby",
|
|
56
|
+
myGamesName: "My games"
|
|
57
|
+
},
|
|
58
|
+
sl: {
|
|
59
|
+
lobbyName: "Lobby",
|
|
60
|
+
myGamesName: "My games"
|
|
61
|
+
},
|
|
62
|
+
sr: {
|
|
63
|
+
lobbyName: "Lobby",
|
|
64
|
+
myGamesName: "My games"
|
|
65
|
+
},
|
|
66
|
+
"pt-br": {
|
|
67
|
+
lobbyName: "Lobby",
|
|
68
|
+
myGamesName: "Meus jogos"
|
|
69
|
+
},
|
|
70
|
+
"es-mx": {
|
|
71
|
+
lobbyName: "Lobby",
|
|
72
|
+
myGamesName: "Mis juegos"
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
if (typeof window != "undefined") {
|
|
76
|
+
let i = function(e) {
|
|
77
|
+
return function(...t) {
|
|
78
|
+
try {
|
|
79
|
+
return e.apply(this, t);
|
|
80
|
+
} catch (l) {
|
|
81
|
+
if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
82
|
+
return !1;
|
|
83
|
+
throw l;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
customElements.define = i(customElements.define), import("./CasinoSlider-C9caYXJM.js").then(({ default: e }) => {
|
|
88
|
+
!customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function Le(i) {
|
|
92
|
+
ue(i, "svelte-1ydghqy", ".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}");
|
|
93
|
+
}
|
|
94
|
+
function Ce(i) {
|
|
95
|
+
let e, t, l, r;
|
|
96
|
+
return {
|
|
97
|
+
c() {
|
|
98
|
+
e = N("div"), t = N("casino-slider"), o(
|
|
99
|
+
t,
|
|
100
|
+
"lang",
|
|
101
|
+
/*lang*/
|
|
102
|
+
i[3]
|
|
103
|
+
), o(
|
|
104
|
+
t,
|
|
105
|
+
"datasource",
|
|
106
|
+
/*datasource*/
|
|
107
|
+
i[2]
|
|
108
|
+
), o(
|
|
109
|
+
t,
|
|
110
|
+
"endpoint",
|
|
111
|
+
/*endpoint*/
|
|
112
|
+
i[1]
|
|
113
|
+
), o(t, "identity", W), o(
|
|
114
|
+
t,
|
|
115
|
+
"favoritesnumber",
|
|
116
|
+
/*numberOfFavoredGames*/
|
|
117
|
+
i[15]
|
|
118
|
+
), o(
|
|
119
|
+
t,
|
|
120
|
+
"showsubgroups",
|
|
121
|
+
/*showsubgroups*/
|
|
122
|
+
i[8]
|
|
123
|
+
), o(
|
|
124
|
+
t,
|
|
125
|
+
"clientstyling",
|
|
126
|
+
/*clientstyling*/
|
|
127
|
+
i[4]
|
|
128
|
+
), o(
|
|
129
|
+
t,
|
|
130
|
+
"clientstylingurl",
|
|
131
|
+
/*clientstylingurl*/
|
|
132
|
+
i[5]
|
|
133
|
+
), o(
|
|
134
|
+
t,
|
|
135
|
+
"activeindex",
|
|
136
|
+
/*activecategory*/
|
|
137
|
+
i[0]
|
|
138
|
+
), o(
|
|
139
|
+
t,
|
|
140
|
+
"actionevent",
|
|
141
|
+
/*actionevent*/
|
|
142
|
+
i[6]
|
|
143
|
+
), o(
|
|
144
|
+
t,
|
|
145
|
+
"location",
|
|
146
|
+
/*location*/
|
|
147
|
+
i[7]
|
|
148
|
+
), o(
|
|
149
|
+
t,
|
|
150
|
+
"categoriesicon",
|
|
151
|
+
/*categoriesicon*/
|
|
152
|
+
i[9]
|
|
153
|
+
), o(
|
|
154
|
+
t,
|
|
155
|
+
"lobbyiconimage",
|
|
156
|
+
/*lobbyiconimage*/
|
|
157
|
+
i[10]
|
|
158
|
+
), o(
|
|
159
|
+
t,
|
|
160
|
+
"mygamesiconimage",
|
|
161
|
+
/*mygamesiconimage*/
|
|
162
|
+
i[11]
|
|
163
|
+
), E(e, "class", "CasinoCategoriesContainer svelte-1ydghqy"), E(e, "part", "CasinoCategoriesContainer");
|
|
164
|
+
},
|
|
165
|
+
m(a, n) {
|
|
166
|
+
F(a, e, n), be(e, t), l || (r = Ne(
|
|
167
|
+
/*sendSliderData*/
|
|
168
|
+
i[16].call(null, t)
|
|
169
|
+
), l = !0);
|
|
170
|
+
},
|
|
171
|
+
p(a, n) {
|
|
172
|
+
n[0] & /*lang*/
|
|
173
|
+
8 && o(
|
|
174
|
+
t,
|
|
175
|
+
"lang",
|
|
176
|
+
/*lang*/
|
|
177
|
+
a[3]
|
|
178
|
+
), n[0] & /*datasource*/
|
|
179
|
+
4 && o(
|
|
180
|
+
t,
|
|
181
|
+
"datasource",
|
|
182
|
+
/*datasource*/
|
|
183
|
+
a[2]
|
|
184
|
+
), n[0] & /*endpoint*/
|
|
185
|
+
2 && o(
|
|
186
|
+
t,
|
|
187
|
+
"endpoint",
|
|
188
|
+
/*endpoint*/
|
|
189
|
+
a[1]
|
|
190
|
+
), n[0] & /*numberOfFavoredGames*/
|
|
191
|
+
32768 && o(
|
|
192
|
+
t,
|
|
193
|
+
"favoritesnumber",
|
|
194
|
+
/*numberOfFavoredGames*/
|
|
195
|
+
a[15]
|
|
196
|
+
), n[0] & /*showsubgroups*/
|
|
197
|
+
256 && o(
|
|
198
|
+
t,
|
|
199
|
+
"showsubgroups",
|
|
200
|
+
/*showsubgroups*/
|
|
201
|
+
a[8]
|
|
202
|
+
), n[0] & /*clientstyling*/
|
|
203
|
+
16 && o(
|
|
204
|
+
t,
|
|
205
|
+
"clientstyling",
|
|
206
|
+
/*clientstyling*/
|
|
207
|
+
a[4]
|
|
208
|
+
), n[0] & /*clientstylingurl*/
|
|
209
|
+
32 && o(
|
|
210
|
+
t,
|
|
211
|
+
"clientstylingurl",
|
|
212
|
+
/*clientstylingurl*/
|
|
213
|
+
a[5]
|
|
214
|
+
), n[0] & /*activecategory*/
|
|
215
|
+
1 && o(
|
|
216
|
+
t,
|
|
217
|
+
"activeindex",
|
|
218
|
+
/*activecategory*/
|
|
219
|
+
a[0]
|
|
220
|
+
), n[0] & /*actionevent*/
|
|
221
|
+
64 && o(
|
|
222
|
+
t,
|
|
223
|
+
"actionevent",
|
|
224
|
+
/*actionevent*/
|
|
225
|
+
a[6]
|
|
226
|
+
), n[0] & /*location*/
|
|
227
|
+
128 && o(
|
|
228
|
+
t,
|
|
229
|
+
"location",
|
|
230
|
+
/*location*/
|
|
231
|
+
a[7]
|
|
232
|
+
), n[0] & /*categoriesicon*/
|
|
233
|
+
512 && o(
|
|
234
|
+
t,
|
|
235
|
+
"categoriesicon",
|
|
236
|
+
/*categoriesicon*/
|
|
237
|
+
a[9]
|
|
238
|
+
), n[0] & /*lobbyiconimage*/
|
|
239
|
+
1024 && o(
|
|
240
|
+
t,
|
|
241
|
+
"lobbyiconimage",
|
|
242
|
+
/*lobbyiconimage*/
|
|
243
|
+
a[10]
|
|
244
|
+
), n[0] & /*mygamesiconimage*/
|
|
245
|
+
2048 && o(
|
|
246
|
+
t,
|
|
247
|
+
"mygamesiconimage",
|
|
248
|
+
/*mygamesiconimage*/
|
|
249
|
+
a[11]
|
|
250
|
+
);
|
|
251
|
+
},
|
|
252
|
+
d(a) {
|
|
253
|
+
a && T(e), l = !1, r();
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
function Me(i) {
|
|
258
|
+
let e;
|
|
259
|
+
return {
|
|
260
|
+
c() {
|
|
261
|
+
e = N("p"), e.textContent = "500 Error - Internal Server Error.", E(e, "class", "SearchLoading svelte-1ydghqy");
|
|
262
|
+
},
|
|
263
|
+
m(t, l) {
|
|
264
|
+
F(t, e, l);
|
|
265
|
+
},
|
|
266
|
+
p: S,
|
|
267
|
+
d(t) {
|
|
268
|
+
t && T(e);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
function _e(i) {
|
|
273
|
+
let e;
|
|
274
|
+
return {
|
|
275
|
+
c() {
|
|
276
|
+
e = N("div"), E(e, "class", "CasinoCategoriesLoading svelte-1ydghqy");
|
|
277
|
+
},
|
|
278
|
+
m(t, l) {
|
|
279
|
+
F(t, e, l);
|
|
280
|
+
},
|
|
281
|
+
p: S,
|
|
282
|
+
d(t) {
|
|
283
|
+
t && T(e);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
function ve(i) {
|
|
288
|
+
let e;
|
|
289
|
+
function t(a, n) {
|
|
290
|
+
return (
|
|
291
|
+
/*isLoading*/
|
|
292
|
+
a[12] || Ge || ke ? _e : (
|
|
293
|
+
/*hasErrors*/
|
|
294
|
+
a[14] ? Me : Ce
|
|
295
|
+
)
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
let l = t(i), r = l(i);
|
|
299
|
+
return {
|
|
300
|
+
c() {
|
|
301
|
+
e = N("div"), r.c();
|
|
302
|
+
},
|
|
303
|
+
m(a, n) {
|
|
304
|
+
F(a, e, n), r.m(e, null), i[26](e);
|
|
305
|
+
},
|
|
306
|
+
p(a, n) {
|
|
307
|
+
l === (l = t(a)) && r ? r.p(a, n) : (r.d(1), r = l(a), r && (r.c(), r.m(e, null)));
|
|
308
|
+
},
|
|
309
|
+
i: S,
|
|
310
|
+
o: S,
|
|
311
|
+
d(a) {
|
|
312
|
+
a && T(e), r.d(), i[26](null);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
let W = "CasinoSliderData", Ge = !1, ke = !1;
|
|
317
|
+
function Se(i, e, t) {
|
|
318
|
+
let l;
|
|
319
|
+
ye(i, we, (s) => t(32, l = s));
|
|
320
|
+
let { endpoint: r = "" } = e, { datasource: a = "" } = e, { lang: n = "" } = e, { userid: q = "" } = e, { session: w = "" } = e, { mostplayed: L = "" } = e, { lastplayed: C = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: A = "" } = e, { sessioncheck: D = "" } = e, { location: O = "secondaryMenu" } = e, { showsubgroups: R = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: k = "" } = e, { categoriesicon: U = "" } = e, { lobbyiconimage: I = "" } = e, { mygamesiconimage: B = "" } = e, H, Y, y = !0, d, b = [], f = !1, X = window.navigator.userAgent, h, x, z = !1, j = !1;
|
|
321
|
+
const Z = () => {
|
|
322
|
+
fetch(k).then((m) => m.json()).then((m) => {
|
|
323
|
+
Object.keys(m).forEach((g) => {
|
|
324
|
+
Q(g, m[g]);
|
|
325
|
+
});
|
|
326
|
+
}).catch((m) => {
|
|
327
|
+
console.log(m);
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
Object.keys(V).forEach((s) => {
|
|
331
|
+
Q(s, V[s]);
|
|
332
|
+
});
|
|
333
|
+
const p = () => {
|
|
334
|
+
z == !1 && (M == "true" || L == "true" || C == "true") && b.splice(1, 0, {
|
|
335
|
+
// @ts-ignore
|
|
336
|
+
id: "MYGAMES",
|
|
337
|
+
name: H,
|
|
338
|
+
href: "",
|
|
339
|
+
games: []
|
|
340
|
+
}), fe(), z = !0, t(25, j = !0), J();
|
|
341
|
+
}, $ = () => (r || (d = "Endpoint is missing! Please provide a valid endpointURL.", t(14, f = !0), t(12, y = !1), console.error(d)), a || (d = "Datasource is missing! Please provide a valid datasource.", t(14, f = !0), t(12, y = !1), console.error(d)), (!n || n.length < 2) && (d = "Language is missing! Please provide a valid language (alpha2code)", t(14, f = !0), t(12, y = !1), console.error(d)), f), ee = () => {
|
|
342
|
+
if (H = l("myGamesName"), Y = l("lobbyName"), !$()) {
|
|
343
|
+
let s = new URL(`${r}/v1/casino/groups/${a}`);
|
|
344
|
+
s.searchParams.append("datasource", a), s.searchParams.append("language", n), s.searchParams.append("platform", he(X)), fetch(s).then((m) => m.json()).then(
|
|
345
|
+
(m) => {
|
|
346
|
+
let g = G.split(","), ne = m.items.filter((K) => {
|
|
347
|
+
let P = !1;
|
|
348
|
+
if (K.games.total > 0 && (P = !0, G))
|
|
349
|
+
for (let oe of g)
|
|
350
|
+
K.flags == oe && (P = !1);
|
|
351
|
+
return P;
|
|
352
|
+
});
|
|
353
|
+
b = [], b = b.concat(ne), b.unshift({
|
|
354
|
+
// @ts-ignore
|
|
355
|
+
id: "LOBBY",
|
|
356
|
+
name: Y,
|
|
357
|
+
href: "",
|
|
358
|
+
games: []
|
|
359
|
+
}), t(12, y = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
|
|
360
|
+
},
|
|
361
|
+
(m) => {
|
|
362
|
+
t(14, f = !0), console.error("There was an error while fetching the categories", m);
|
|
363
|
+
}
|
|
364
|
+
).catch((m) => {
|
|
365
|
+
t(14, f = !0), console.error("There was an error while fetching the categories", m);
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
}, te = () => {
|
|
369
|
+
let s = u.split("$");
|
|
370
|
+
t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
|
|
371
|
+
}, se = () => {
|
|
372
|
+
let s = document.createElement("style");
|
|
373
|
+
s.innerHTML = _, h.appendChild(s);
|
|
374
|
+
}, ie = () => {
|
|
375
|
+
let s = document.createElement("style"), m = new URL(v);
|
|
376
|
+
fetch(m.href).then((g) => g.text()).then((g) => {
|
|
377
|
+
s.innerHTML = g, setTimeout(
|
|
378
|
+
() => {
|
|
379
|
+
h.appendChild(s);
|
|
380
|
+
},
|
|
381
|
+
1
|
|
382
|
+
);
|
|
383
|
+
});
|
|
384
|
+
}, J = () => {
|
|
385
|
+
window.postMessage(
|
|
386
|
+
{
|
|
387
|
+
type: "SliderData",
|
|
388
|
+
identity: W,
|
|
389
|
+
data: b
|
|
390
|
+
},
|
|
391
|
+
window.location.href
|
|
392
|
+
);
|
|
393
|
+
};
|
|
394
|
+
function ae(s) {
|
|
395
|
+
de[s ? "unshift" : "push"](() => {
|
|
396
|
+
h = s, t(13, h);
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
return i.$$set = (s) => {
|
|
400
|
+
"endpoint" in s && t(1, r = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, n = s.lang), "userid" in s && t(17, q = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, L = s.mostplayed), "lastplayed" in s && t(20, C = 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, A = s.actionevent), "sessioncheck" in s && t(22, D = s.sessioncheck), "location" in s && t(7, O = s.location), "showsubgroups" in s && t(8, R = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, k = s.translationurl), "categoriesicon" in s && t(9, U = s.categoriesicon), "lobbyiconimage" in s && t(10, I = s.lobbyiconimage), "mygamesiconimage" in s && t(11, B = s.mygamesiconimage);
|
|
401
|
+
}, i.$$.update = () => {
|
|
402
|
+
i.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
403
|
+
14 && r && a && n && ee(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
404
|
+
3936258 && r && w && (L || C || M) && !y && p(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
405
|
+
33820673 && !y && u && (!w || j) && te(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
406
|
+
8208 && _ && h && se(), i.$$.dirty[0] & /*translationurl*/
|
|
407
|
+
16777216 && k && Z(), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
408
|
+
8224 && v && h && ie();
|
|
409
|
+
}, t(15, x = 0), [
|
|
410
|
+
u,
|
|
411
|
+
r,
|
|
412
|
+
a,
|
|
413
|
+
n,
|
|
414
|
+
_,
|
|
415
|
+
v,
|
|
416
|
+
A,
|
|
417
|
+
O,
|
|
418
|
+
R,
|
|
419
|
+
U,
|
|
420
|
+
I,
|
|
421
|
+
B,
|
|
422
|
+
y,
|
|
423
|
+
h,
|
|
424
|
+
f,
|
|
425
|
+
x,
|
|
426
|
+
J,
|
|
427
|
+
q,
|
|
428
|
+
w,
|
|
429
|
+
L,
|
|
430
|
+
C,
|
|
431
|
+
M,
|
|
432
|
+
D,
|
|
433
|
+
G,
|
|
434
|
+
k,
|
|
435
|
+
j,
|
|
436
|
+
ae
|
|
437
|
+
];
|
|
438
|
+
}
|
|
439
|
+
class Ee extends re {
|
|
440
|
+
constructor(e) {
|
|
441
|
+
super(), ce(
|
|
442
|
+
this,
|
|
443
|
+
e,
|
|
444
|
+
Se,
|
|
445
|
+
ve,
|
|
446
|
+
ge,
|
|
447
|
+
{
|
|
448
|
+
endpoint: 1,
|
|
449
|
+
datasource: 2,
|
|
450
|
+
lang: 3,
|
|
451
|
+
userid: 17,
|
|
452
|
+
session: 18,
|
|
453
|
+
mostplayed: 19,
|
|
454
|
+
lastplayed: 20,
|
|
455
|
+
favorites: 21,
|
|
456
|
+
clientstyling: 4,
|
|
457
|
+
clientstylingurl: 5,
|
|
458
|
+
activecategory: 0,
|
|
459
|
+
actionevent: 6,
|
|
460
|
+
sessioncheck: 22,
|
|
461
|
+
location: 7,
|
|
462
|
+
showsubgroups: 8,
|
|
463
|
+
filteredcategories: 23,
|
|
464
|
+
translationurl: 24,
|
|
465
|
+
categoriesicon: 9,
|
|
466
|
+
lobbyiconimage: 10,
|
|
467
|
+
mygamesiconimage: 11
|
|
468
|
+
},
|
|
469
|
+
Le,
|
|
470
|
+
[-1, -1]
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
get endpoint() {
|
|
474
|
+
return this.$$.ctx[1];
|
|
475
|
+
}
|
|
476
|
+
set endpoint(e) {
|
|
477
|
+
this.$$set({ endpoint: e }), c();
|
|
478
|
+
}
|
|
479
|
+
get datasource() {
|
|
480
|
+
return this.$$.ctx[2];
|
|
481
|
+
}
|
|
482
|
+
set datasource(e) {
|
|
483
|
+
this.$$set({ datasource: e }), c();
|
|
484
|
+
}
|
|
485
|
+
get lang() {
|
|
486
|
+
return this.$$.ctx[3];
|
|
487
|
+
}
|
|
488
|
+
set lang(e) {
|
|
489
|
+
this.$$set({ lang: e }), c();
|
|
490
|
+
}
|
|
491
|
+
get userid() {
|
|
492
|
+
return this.$$.ctx[17];
|
|
493
|
+
}
|
|
494
|
+
set userid(e) {
|
|
495
|
+
this.$$set({ userid: e }), c();
|
|
496
|
+
}
|
|
497
|
+
get session() {
|
|
498
|
+
return this.$$.ctx[18];
|
|
499
|
+
}
|
|
500
|
+
set session(e) {
|
|
501
|
+
this.$$set({ session: e }), c();
|
|
502
|
+
}
|
|
503
|
+
get mostplayed() {
|
|
504
|
+
return this.$$.ctx[19];
|
|
505
|
+
}
|
|
506
|
+
set mostplayed(e) {
|
|
507
|
+
this.$$set({ mostplayed: e }), c();
|
|
508
|
+
}
|
|
509
|
+
get lastplayed() {
|
|
510
|
+
return this.$$.ctx[20];
|
|
511
|
+
}
|
|
512
|
+
set lastplayed(e) {
|
|
513
|
+
this.$$set({ lastplayed: e }), c();
|
|
514
|
+
}
|
|
515
|
+
get favorites() {
|
|
516
|
+
return this.$$.ctx[21];
|
|
517
|
+
}
|
|
518
|
+
set favorites(e) {
|
|
519
|
+
this.$$set({ favorites: e }), c();
|
|
520
|
+
}
|
|
521
|
+
get clientstyling() {
|
|
522
|
+
return this.$$.ctx[4];
|
|
523
|
+
}
|
|
524
|
+
set clientstyling(e) {
|
|
525
|
+
this.$$set({ clientstyling: e }), c();
|
|
526
|
+
}
|
|
527
|
+
get clientstylingurl() {
|
|
528
|
+
return this.$$.ctx[5];
|
|
529
|
+
}
|
|
530
|
+
set clientstylingurl(e) {
|
|
531
|
+
this.$$set({ clientstylingurl: e }), c();
|
|
532
|
+
}
|
|
533
|
+
get activecategory() {
|
|
534
|
+
return this.$$.ctx[0];
|
|
535
|
+
}
|
|
536
|
+
set activecategory(e) {
|
|
537
|
+
this.$$set({ activecategory: e }), c();
|
|
538
|
+
}
|
|
539
|
+
get actionevent() {
|
|
540
|
+
return this.$$.ctx[6];
|
|
541
|
+
}
|
|
542
|
+
set actionevent(e) {
|
|
543
|
+
this.$$set({ actionevent: e }), c();
|
|
544
|
+
}
|
|
545
|
+
get sessioncheck() {
|
|
546
|
+
return this.$$.ctx[22];
|
|
547
|
+
}
|
|
548
|
+
set sessioncheck(e) {
|
|
549
|
+
this.$$set({ sessioncheck: e }), c();
|
|
550
|
+
}
|
|
551
|
+
get location() {
|
|
552
|
+
return this.$$.ctx[7];
|
|
553
|
+
}
|
|
554
|
+
set location(e) {
|
|
555
|
+
this.$$set({ location: e }), c();
|
|
556
|
+
}
|
|
557
|
+
get showsubgroups() {
|
|
558
|
+
return this.$$.ctx[8];
|
|
559
|
+
}
|
|
560
|
+
set showsubgroups(e) {
|
|
561
|
+
this.$$set({ showsubgroups: e }), c();
|
|
562
|
+
}
|
|
563
|
+
get filteredcategories() {
|
|
564
|
+
return this.$$.ctx[23];
|
|
565
|
+
}
|
|
566
|
+
set filteredcategories(e) {
|
|
567
|
+
this.$$set({ filteredcategories: e }), c();
|
|
568
|
+
}
|
|
569
|
+
get translationurl() {
|
|
570
|
+
return this.$$.ctx[24];
|
|
571
|
+
}
|
|
572
|
+
set translationurl(e) {
|
|
573
|
+
this.$$set({ translationurl: e }), c();
|
|
574
|
+
}
|
|
575
|
+
get categoriesicon() {
|
|
576
|
+
return this.$$.ctx[9];
|
|
577
|
+
}
|
|
578
|
+
set categoriesicon(e) {
|
|
579
|
+
this.$$set({ categoriesicon: e }), c();
|
|
580
|
+
}
|
|
581
|
+
get lobbyiconimage() {
|
|
582
|
+
return this.$$.ctx[10];
|
|
583
|
+
}
|
|
584
|
+
set lobbyiconimage(e) {
|
|
585
|
+
this.$$set({ lobbyiconimage: e }), c();
|
|
586
|
+
}
|
|
587
|
+
get mygamesiconimage() {
|
|
588
|
+
return this.$$.ctx[11];
|
|
589
|
+
}
|
|
590
|
+
set mygamesiconimage(e) {
|
|
591
|
+
this.$$set({ mygamesiconimage: e }), c();
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
me(Ee, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
|
595
|
+
export {
|
|
596
|
+
Ee as default
|
|
597
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BWBvGSII.cjs");function B(l,t){e.addMessages(l,t)}function ae(l){e.$locale.set(l)}const A={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..."}};function ne(l){e.append_styles(l,"svelte-5qs4ma",'.svelte-5qs4ma.svelte-5qs4ma,.svelte-5qs4ma.svelte-5qs4ma::before,.svelte-5qs4ma.svelte-5qs4ma::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders.svelte-5qs4ma.svelte-5qs4ma{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader.svelte-5qs4ma.svelte-5qs4ma{display:flex;justify-content:space-between;height:70px}.CategoriesHeader.svelte-5qs4ma .Title.svelte-5qs4ma{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader.svelte-5qs4ma .ButtonsContainer button.svelte-5qs4ma{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.svelte-5qs4ma .ButtonsContainer button.svelte-5qs4ma:active{opacity:0.7}.CategoriesSlider.svelte-5qs4ma.svelte-5qs4ma{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper.svelte-5qs4ma.svelte-5qs4ma{position:absolute;top:0;left:0}.CategoriesSlider.svelte-5qs4ma .Animation.svelte-5qs4ma{transition:transform 0.8s}.CategoriesSlider.svelte-5qs4ma .CategorySlide.svelte-5qs4ma{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.svelte-5qs4ma .CategorySlide.svelte-5qs4ma:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider.svelte-5qs4ma .CategorySlideTopContainer.svelte-5qs4ma{height:100px;display:flex;align-items:center}.CategoriesSlider.svelte-5qs4ma .CategorySlideLogo.svelte-5qs4ma{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider.svelte-5qs4ma .CategorySlideTitle.svelte-5qs4ma{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider.svelte-5qs4ma .CategorySlideGameContainer.svelte-5qs4ma{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider.svelte-5qs4ma .CategorySlideGameImage.svelte-5qs4ma{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider.svelte-5qs4ma .CategorySlideGames.svelte-5qs4ma{color:white;text-align:center}.CategoriesSlider.svelte-5qs4ma .CategorySlideGames p.svelte-5qs4ma{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers.svelte-5qs4ma.svelte-5qs4ma{padding:25px 10px}.Mobile.Collections.svelte-5qs4ma.svelte-5qs4ma{padding:25px 10px}.Mobile.CasinoCollectionsProviders.svelte-5qs4ma.svelte-5qs4ma{padding:25px 10px}.Mobile.svelte-5qs4ma .CategoriesSlider.svelte-5qs4ma{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile.svelte-5qs4ma .CategoriesSlider.svelte-5qs4ma::-webkit-scrollbar{display:none}.Mobile.svelte-5qs4ma .CategorySlide.svelte-5qs4ma{width:80vw;scroll-snap-align:start}.Mobile.svelte-5qs4ma .ButtonsContainer.svelte-5qs4ma{display:none}.Mobile.svelte-5qs4ma .CategorySlideGameImage.svelte-5qs4ma{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner.svelte-5qs4ma.svelte-5qs4ma{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner.svelte-5qs4ma.svelte-5qs4ma:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:svelte-5qs4ma-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5qs4ma-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function N(l,t,s){const n=l.slice();return n[39]=t[s],n}function R(l,t,s){const n=l.slice();return n[42]=t[s],n}function oe(l){let t,s,n,a=(l[0]=="vendor"?l[8]("providers"):l[8]("collections"))+"",o,p,_,y,w,u,f,g,C,v,G,c=e.ensure_array_like(l[3]),d=[];for(let r=0;r<c.length;r+=1)d[r]=I(N(l,c,r));return{c(){t=e.element("div"),s=e.element("div"),n=e.element("p"),o=e.text(a),p=e.space(),_=e.element("div"),y=e.element("button"),y.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" class="svelte-5qs4ma"><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" class="svelte-5qs4ma"></path></svg>',w=e.space(),u=e.element("button"),u.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" class="svelte-5qs4ma"><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" class="svelte-5qs4ma"></path></svg>',f=e.space(),g=e.element("div");for(let r=0;r<d.length;r+=1)d[r].c();e.attr(n,"class","Title svelte-5qs4ma"),e.attr(y,"class","svelte-5qs4ma"),e.attr(u,"class","svelte-5qs4ma"),e.attr(_,"class","ButtonsContainer svelte-5qs4ma"),e.attr(s,"class","CategoriesHeader svelte-5qs4ma"),e.attr(g,"class","CategoriesSlider svelte-5qs4ma"),e.attr(t,"class",C="CasinoCollectionsProviders "+(l[7]?"Mobile":"")+" "+(l[0]==="vendor"?"Providers":"Collections")+" svelte-5qs4ma")},m(r,S){e.insert(r,t,S),e.append(t,s),e.append(s,n),e.append(n,o),e.append(s,p),e.append(s,_),e.append(_,y),e.append(_,w),e.append(_,u),e.append(t,f),e.append(t,g);for(let m=0;m<d.length;m+=1)d[m]&&d[m].m(g,null);l[23](g),v||(G=[e.listen(y,"click",l[19]),e.listen(u,"click",l[20])],v=!0)},p(r,S){if(S[0]&257&&a!==(a=(r[0]=="vendor"?r[8]("providers"):r[8]("collections"))+"")&&e.set_data(o,a),S[0]&6158){c=e.ensure_array_like(r[3]);let m;for(m=0;m<c.length;m+=1){const q=N(r,c,m);d[m]?d[m].p(q,S):(d[m]=I(q),d[m].c(),d[m].m(g,null))}for(;m<d.length;m+=1)d[m].d(1);d.length=c.length}S[0]&129&&C!==(C="CasinoCollectionsProviders "+(r[7]?"Mobile":"")+" "+(r[0]==="vendor"?"Providers":"Collections")+" svelte-5qs4ma")&&e.attr(t,"class",C)},d(r){r&&e.detach(t),e.destroy_each(d,r),l[23](null),v=!1,e.run_all(G)}}}function re(l){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner svelte-5qs4ma")},m(s,n){e.insert(s,t,n)},p:e.noop,d(s){s&&e.detach(t)}}}function ce(l){let t,s=l[39].name+"",n;return{c(){t=e.element("p"),n=e.text(s),e.attr(t,"class","CategorySlideTitle svelte-5qs4ma")},m(a,o){e.insert(a,t,o),e.append(t,n)},p(a,o){o[0]&8&&s!==(s=a[39].name+"")&&e.set_data(n,s)},d(a){a&&e.detach(t)}}}function de(l){let t,s,n;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo svelte-5qs4ma"),e.src_url_equal(t.src,s=l[39].icon)||e.attr(t,"src",s),e.attr(t,"alt",n=l[39].name+" icon")},m(a,o){e.insert(a,t,o)},p(a,o){o[0]&8&&!e.src_url_equal(t.src,s=a[39].icon)&&e.attr(t,"src",s),o[0]&8&&n!==(n=a[39].name+" icon")&&e.attr(t,"alt",n)},d(a){a&&e.detach(t)}}}function U(l){let t,s=l[42].name+"",n,a;return{c(){t=e.element("p"),n=e.text(s),e.attr(t,"title",a=l[42].name),e.attr(t,"class","svelte-5qs4ma")},m(o,p){e.insert(o,t,p),e.append(t,n)},p(o,p){p[0]&8&&s!==(s=o[42].name+"")&&e.set_data(n,s),p[0]&8&&a!==(a=o[42].name)&&e.attr(t,"title",a)},d(o){o&&e.detach(t)}}}function E(l){let t,s,n,a,o,p,_,y;function w(){return l[21](l[42])}let u=l[2]=="true"&&U(l);return{c(){t=e.element("div"),s=e.element("img"),o=e.space(),u&&u.c(),p=e.space(),e.attr(s,"class","CategorySlideGameImage svelte-5qs4ma"),e.src_url_equal(s.src,n=l[42].defaultThumbnail)||e.attr(s,"src",n),e.attr(s,"alt",a=l[42].name),e.attr(t,"class","CategorySlideGames svelte-5qs4ma")},m(f,g){e.insert(f,t,g),e.append(t,s),e.append(t,o),u&&u.m(t,null),e.append(t,p),_||(y=e.listen(s,"click",e.stop_propagation(w)),_=!0)},p(f,g){l=f,g[0]&8&&!e.src_url_equal(s.src,n=l[42].defaultThumbnail)&&e.attr(s,"src",n),g[0]&8&&a!==(a=l[42].name)&&e.attr(s,"alt",a),l[2]=="true"?u?u.p(l,g):(u=U(l),u.c(),u.m(t,p)):u&&(u.d(1),u=null)},d(f){f&&e.detach(t),u&&u.d(),_=!1,y()}}}function I(l){let t,s,n,a,o,p,_,y,w;function u(c,d){if(c[1]=="logo")return de;if(c[1]=="title")return ce}let f=u(l),g=f&&f(l),C=e.ensure_array_like(l[39].games),v=[];for(let c=0;c<C.length;c+=1)v[c]=E(R(l,C,c));function G(){return l[22](l[39])}return{c(){var c,d;t=e.element("div"),s=e.element("div"),n=e.element("div"),g&&g.c(),a=e.space(),o=e.element("div");for(let r=0;r<v.length;r+=1)v[r].c();_=e.space(),e.attr(n,"class","CategorySlideTopContainer svelte-5qs4ma"),e.attr(o,"class","CategorySlideGameContainer svelte-5qs4ma"),e.attr(s,"class",p="CategorySlide "+(((c=l[39])==null?void 0:c.flag[0])=="vendor"?"CategorySlideNoHighlight":"")+" svelte-5qs4ma"),e.set_style(s,"background-image","url("+((d=l[39])==null?void 0:d.background)+")"),e.set_style(s,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation svelte-5qs4ma")},m(c,d){e.insert(c,t,d),e.append(t,s),e.append(s,n),g&&g.m(n,null),e.append(s,a),e.append(s,o);for(let r=0;r<v.length;r+=1)v[r]&&v[r].m(o,null);e.append(t,_),y||(w=e.listen(s,"click",G),y=!0)},p(c,d){var r,S;if(l=c,f===(f=u(l))&&g?g.p(l,d):(g&&g.d(1),g=f&&f(l),g&&(g.c(),g.m(n,null))),d[0]&2060){C=e.ensure_array_like(l[39].games);let m;for(m=0;m<C.length;m+=1){const q=R(l,C,m);v[m]?v[m].p(q,d):(v[m]=E(q),v[m].c(),v[m].m(o,null))}for(;m<v.length;m+=1)v[m].d(1);v.length=C.length}d[0]&8&&p!==(p="CategorySlide "+(((r=l[39])==null?void 0:r.flag[0])=="vendor"?"CategorySlideNoHighlight":"")+" svelte-5qs4ma")&&e.attr(s,"class",p),d[0]&8&&e.set_style(s,"background-image","url("+((S=l[39])==null?void 0:S.background)+")")},d(c){c&&e.detach(t),g&&g.d(),e.destroy_each(v,c),y=!1,w()}}}function me(l){let t;function s(o,p){return o[6]?re:oe}let n=s(l),a=n(l);return{c(){t=e.element("div"),a.c(),e.attr(t,"class","svelte-5qs4ma")},m(o,p){e.insert(o,t,p),a.m(t,null),l[24](t)},p(o,p){n===(n=s(o))&&a?a.p(o,p):(a.d(1),a=n(o),a&&(a.c(),a.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),a.d(),l[24](null)}}}function ge(l,t,s){let n;e.component_subscribe(l,e.$format,i=>s(8,n=i));let{endpoint:a=""}=t,{datasource:o=""}=t,{lang:p=""}=t,{type:_=""}=t,{titletype:y=""}=t,{clientstyling:w=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{collectionprovidersgamenames:g=""}=t,C=[],v=!0,G,c=0,d=0,r=0,S,m,q,W=window.navigator.userAgent,P;const D=()=>{fetch(f).then(h=>h.json()).then(h=>{Object.keys(h).forEach(b=>{B(b,h[b])})}).catch(h=>{console.log(h)})};Object.keys(A).forEach(i=>{B(i,A[i])});const K=()=>{const i=new URL(`${a}/v2/casino/groups/${o}`);i.searchParams.append("language",p),i.searchParams.append("expand","games"),fetch(i.href).then(h=>h.json()).then(h=>{s(6,v=!1);let b=h.items.filter(k=>k.flags==_);s(3,C=b.map(k=>{var H,O,z;return{id:k.id,name:k.name,icon:k.icon?k.icon:(z=(O=(H=k.vendors)==null?void 0:H.items[0])==null?void 0:O.subVendors[0])==null?void 0:z.logo,games:k.games.items.slice(0,4).map(ie=>ie),background:k.background,flag:k.flags}})),d=C.length})},L=i=>{m=[...G.children],m.forEach((h,b)=>{h.style.transform=`translateX(${100*(i?b-i:b)}%)`}),m.map(h=>S=h.getBoundingClientRect().width),Z()},Z=()=>{r=Math.round(G.offsetWidth/S)},x=()=>{L(c)},M=()=>{r>=d||(c===0?c=d-r:c-r<-1?c=0:c--,x())},j=()=>{r>=d||(c===d-r?c=0:d-r<c+1?c=d-r:c++,x())},T=(i,h,b,k)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:i,launchUrl:h,gameName:b,subVendor:k},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${b}`})},F=i=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:i},window.location.href)},J=()=>{ae(p)},X=()=>{let i=document.createElement("style");i.innerHTML=w,q.appendChild(i)},Y=()=>{let i=new URL(u),h=document.createElement("style");fetch(i.href).then(b=>b.text()).then(b=>{h.innerHTML=b,setTimeout(()=>{q.appendChild(h)},1)})};e.onMount(()=>{s(7,P=e.isMobile(W))});const Q=()=>M(),$=()=>j(),ee=i=>T(i.gameId,i.launchUrl,i.name,i.subVendor),te=i=>F(i.id);function le(i){e.binding_callbacks[i?"unshift":"push"](()=>{G=i,s(4,G)})}function se(i){e.binding_callbacks[i?"unshift":"push"](()=>{q=i,s(5,q)})}return l.$$set=i=>{"endpoint"in i&&s(13,a=i.endpoint),"datasource"in i&&s(14,o=i.datasource),"lang"in i&&s(15,p=i.lang),"type"in i&&s(0,_=i.type),"titletype"in i&&s(1,y=i.titletype),"clientstyling"in i&&s(16,w=i.clientstyling),"clientstylingurl"in i&&s(17,u=i.clientstylingurl),"translationurl"in i&&s(18,f=i.translationurl),"collectionprovidersgamenames"in i&&s(2,g=i.collectionprovidersgamenames)},l.$$.update=()=>{l.$$.dirty[0]&57344&&a&&o&&p&&K(),l.$$.dirty[0]&24&&C&&G&&L(),l.$$.dirty[0]&32768&&p&&J(),l.$$.dirty[0]&65568&&w&&q&&X(),l.$$.dirty[0]&131104&&u&&q&&Y(),l.$$.dirty[0]&262144&&f&&D()},[_,y,g,C,G,q,v,P,n,M,j,T,F,a,o,p,w,u,f,Q,$,ee,te,le,se]}class V extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ge,me,e.safe_not_equal,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},ne,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[15]}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[16]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}}e.create_custom_element(V,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=V;
|