@everymatrix/casino-lobby 1.43.4 → 1.45.0
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-DEhfBjpm.js +5138 -0
- package/components/CasinoCalendar-egUFg4eK.cjs +9 -0
- package/components/CasinoCalendarDailyDetails-CfTziMCu.js +605 -0
- package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +1 -0
- package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +1 -0
- package/components/CasinoCalendarDailyItem-CQ8syIIe.js +220 -0
- package/components/CasinoCategoriesSlider-BQvWcqNm.js +597 -0
- package/components/CasinoCategoriesSlider-BfuTLKom.cjs +1 -0
- package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +1 -0
- package/components/CasinoCollectionsProviders-CwJY8Pmw.js +659 -0
- package/components/CasinoFavoritesSection-BBWM7_dI.js +418 -0
- package/components/CasinoFavoritesSection-Da0-zSyn.cjs +1 -0
- package/components/CasinoFilter-BkpU5f2V.cjs +1 -0
- package/components/CasinoFilter-D3p7c7qu.js +628 -0
- package/components/CasinoGamePage-BHxY5XUD.cjs +18 -0
- package/components/CasinoGamePage-Bp4OKmdA.js +4282 -0
- package/components/CasinoGameThumbnail-BmmqFK_6.js +1822 -0
- package/components/CasinoGameThumbnail-DVMHCqZf.cjs +38 -0
- package/components/CasinoGamesCategorySection-6X3_pD0A.js +3022 -0
- package/components/CasinoGamesCategorySection-CasxxP7n.cjs +1 -0
- package/components/CasinoJackpotBanner-8_TAP4xY.cjs +1 -0
- package/components/CasinoJackpotBanner-wk2wOmJp.js +619 -0
- package/components/CasinoLastPlayedSection-Dkh43VxC.js +563 -0
- package/components/CasinoLastPlayedSection-DvORiff-.cjs +1 -0
- package/components/CasinoLobby-Djp4HDWL.js +2341 -0
- package/components/CasinoLobby-Jn45jhzr.cjs +1 -0
- package/components/CasinoModal-BebrYWjS.cjs +1 -0
- package/components/CasinoModal-CSwMAX-g.js +372 -0
- package/components/CasinoMostPlayedSection-BDP2HyE6.js +580 -0
- package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +1 -0
- package/components/CasinoMyGames-CILl0Jt1.js +1313 -0
- package/components/CasinoMyGames-shcqTml8.cjs +1 -0
- package/components/CasinoPage-CCcJd2fQ.js +3514 -0
- package/components/CasinoPage-DZmE3VFL.cjs +1 -0
- package/components/CasinoRandomGame-4mi3rRbq.js +641 -0
- package/components/CasinoRandomGame-G4VfFJ2L.cjs +2 -0
- package/components/CasinoSearch-CW-eesDy.cjs +1 -0
- package/components/CasinoSearch-DkEAmw-j.js +1066 -0
- package/components/CasinoSlider-CNWDP_I-.js +803 -0
- package/components/CasinoSlider-CjA8vWoz.cjs +1 -0
- package/components/CasinoSort-BVh0Ouwu.cjs +1 -0
- package/components/CasinoSort-CPcJqhWU.js +425 -0
- package/components/CasinoWinners-BTNdGlUD.cjs +1 -0
- package/components/CasinoWinners-DSsJp1KQ.js +884 -0
- package/components/GeneralAnimationLoading-BtIh_bSy.js +75 -0
- package/components/GeneralAnimationLoading-CEAKVCu9.cjs +1 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/package.json +20 -32
- package/CHANGELOG.md +0 -39
- package/README.md +0 -0
- package/dist/casino-lobby.js +0 -33
- package/dist/casino-lobby.js.map +0 -1
- package/documentation.md +0 -176
- package/index.html +0 -50
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoLobby.svelte +0 -454
- package/src/i18n.js +0 -25
- package/src/index.ts +0 -4
- package/stories/CasinoLobby.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -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 j, C as S, k as F, 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-DEhfBjpm.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: "Moj casino",
|
|
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-CNWDP_I-.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
|
+
j(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 && F(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
|
+
j(t, e, l);
|
|
265
|
+
},
|
|
266
|
+
p: S,
|
|
267
|
+
d(t) {
|
|
268
|
+
t && F(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
|
+
j(t, e, l);
|
|
280
|
+
},
|
|
281
|
+
p: S,
|
|
282
|
+
d(t) {
|
|
283
|
+
t && F(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
|
+
j(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 && F(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, T = !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, T = !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 || T) && 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
|
+
T,
|
|
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 t=require("./CasinoCalendar-egUFg4eK.cjs");function H(n,e){t.addMessages(n,e)}const Y={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-CjA8vWoz.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(n){t.append_styles(n,"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))}")}function ae(n){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",n[3]),t.set_custom_element_data(s,"datasource",n[2]),t.set_custom_element_data(s,"endpoint",n[1]),t.set_custom_element_data(s,"identity",z),t.set_custom_element_data(s,"favoritesnumber",n[15]),t.set_custom_element_data(s,"showsubgroups",n[8]),t.set_custom_element_data(s,"clientstyling",n[4]),t.set_custom_element_data(s,"clientstylingurl",n[5]),t.set_custom_element_data(s,"activeindex",n[0]),t.set_custom_element_data(s,"actionevent",n[6]),t.set_custom_element_data(s,"location",n[7]),t.set_custom_element_data(s,"categoriesicon",n[9]),t.set_custom_element_data(s,"lobbyiconimage",n[10]),t.set_custom_element_data(s,"mygamesiconimage",n[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-1ydghqy"),t.attr(e,"part","CasinoCategoriesContainer")},m(i,o){t.insert(i,e,o),t.append(e,s),l||(r=t.action_destroyer(n[16].call(null,s)),l=!0)},p(i,o){o[0]&8&&t.set_custom_element_data(s,"lang",i[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",i[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",i[1]),o[0]&32768&&t.set_custom_element_data(s,"favoritesnumber",i[15]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",i[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",i[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",i[5]),o[0]&1&&t.set_custom_element_data(s,"activeindex",i[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",i[6]),o[0]&128&&t.set_custom_element_data(s,"location",i[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",i[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",i[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",i[11])},d(i){i&&t.detach(e),l=!1,r()}}}function ne(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ie(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;function s(i,o){return i[12]||le||re?ie:i[14]?ne:ae}let l=s(n),r=l(n);return{c(){e=t.element("div"),r.c()},m(i,o){t.insert(i,e,o),r.m(e,null),n[26](e)},p(i,o){l===(l=s(i))&&r?r.p(i,o):(r.d(1),r=l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r.d(),n[26](null)}}}let z="CasinoSliderData",le=!1,re=!1;function ce(n,e,s){let l;t.component_subscribe(n,t.$format,a=>s(32,l=a));let{endpoint:r=""}=e,{datasource:i=""}=e,{lang:o=""}=e,{userid:S=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:E=""}=e,{sessioncheck:j=""}=e,{location:P="secondaryMenu"}=e,{showsubgroups:T="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:q=""}=e,{lobbyiconimage:F=""}=e,{mygamesiconimage:A=""}=e,D,O,g=!0,d,h=[],y=!1,J=window.navigator.userAgent,f,R,U=!1,G=!1;const K=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{H(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(Y).forEach(a=>{H(a,Y[a])});const Q=()=>{U==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:D,href:"",games:[]}),t.tick(),U=!0,s(25,G=!0),I()},V=()=>(r||(d="Endpoint is missing! Please provide a valid endpointURL.",s(14,y=!0),s(12,g=!1),console.error(d)),i||(d="Datasource is missing! Please provide a valid datasource.",s(14,y=!0),s(12,g=!1),console.error(d)),(!o||o.length<2)&&(d="Language is missing! Please provide a valid language (alpha2code)",s(14,y=!0),s(12,g=!1),console.error(d)),y),W=()=>{if(D=l("myGamesName"),O=l("lobbyName"),!V()){let a=new URL(`${r}/v1/casino/groups/${i}`);a.searchParams.append("datasource",i),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(J)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),ee=c.items.filter(B=>{let k=!1;if(B.games.total>0&&(k=!0,M))for(let te of m)B.flags==te&&(k=!1);return k});h=[],h=h.concat(ee),h.unshift({id:"LOBBY",name:O,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)})}},X=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},Z=()=>{let a=document.createElement("style");a.innerHTML=L,f.appendChild(a)},p=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{f.appendChild(a)},1)})},I=()=>{window.postMessage({type:"SliderData",identity:z,data:h},window.location.href)};function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(13,f)})}return n.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,i=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(17,S=a.userid),"session"in a&&s(18,b=a.session),"mostplayed"in a&&s(19,_=a.mostplayed),"lastplayed"in a&&s(20,N=a.lastplayed),"favorites"in a&&s(21,w=a.favorites),"clientstyling"in a&&s(4,L=a.clientstyling),"clientstylingurl"in a&&s(5,C=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,E=a.actionevent),"sessioncheck"in a&&s(22,j=a.sessioncheck),"location"in a&&s(7,P=a.location),"showsubgroups"in a&&s(8,T=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,q=a.categoriesicon),"lobbyiconimage"in a&&s(10,F=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,A=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&W(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&Q(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&X(),n.$$.dirty[0]&8208&&L&&f&&Z(),n.$$.dirty[0]&16777216&&v&&K(),n.$$.dirty[0]&8224&&C&&f&&p()},s(15,R=0),[u,r,i,o,L,C,E,P,T,q,F,A,g,f,y,R,I,S,b,_,N,w,j,M,v,G,$]}class x extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[22]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}}t.create_custom_element(x,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-egUFg4eK.cjs");function A(l,t){e.addMessages(l,t)}function re(l){e.$locale.set(l)}const N={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 ce(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 R(l,t,i){const n=l.slice();return n[41]=t[i],n}function U(l,t,i){const n=l.slice();return n[44]=t[i],n}function de(l){let t,i,n,a=(l[0]=="vendor"?l[11]("providers"):l[11]("collections"))+"",o,m,_,v,w,p,d=l[8]>l[9]&&E(l),g=e.ensure_array_like(l[3]),u=[];for(let c=0;c<g.length;c+=1)u[c]=V(R(l,g,c));return{c(){t=e.element("div"),i=e.element("div"),n=e.element("p"),o=e.text(a),m=e.space(),d&&d.c(),_=e.space(),v=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();e.attr(n,"class","Title svelte-5qs4ma"),e.attr(i,"class","CategoriesHeader svelte-5qs4ma"),e.attr(v,"class","CategoriesSlider svelte-5qs4ma"),e.add_render_callback(()=>l[27].call(v)),e.attr(t,"class",p="CasinoCollectionsProviders "+(l[10]?"Mobile":"")+" "+(l[0]==="vendor"?"Providers":"Collections")+" svelte-5qs4ma")},m(c,y){e.insert(c,t,y),e.append(t,i),e.append(i,n),e.append(n,o),e.append(i,m),d&&d.m(i,null),e.append(t,_),e.append(t,v);for(let r=0;r<u.length;r+=1)u[r]&&u[r].m(v,null);l[26](v),w=e.add_iframe_resize_listener(v,l[27].bind(v))},p(c,y){if(y[0]&2049&&a!==(a=(c[0]=="vendor"?c[11]("providers"):c[11]("collections"))+"")&&e.set_data(o,a),c[8]>c[9]?d?d.p(c,y):(d=E(c),d.c(),d.m(i,null)):d&&(d.d(1),d=null),y[0]&49166){g=e.ensure_array_like(c[3]);let r;for(r=0;r<g.length;r+=1){const f=R(c,g,r);u[r]?u[r].p(f,y):(u[r]=V(f),u[r].c(),u[r].m(v,null))}for(;r<u.length;r+=1)u[r].d(1);u.length=g.length}y[0]&1025&&p!==(p="CasinoCollectionsProviders "+(c[10]?"Mobile":"")+" "+(c[0]==="vendor"?"Providers":"Collections")+" svelte-5qs4ma")&&e.attr(t,"class",p)},d(c){c&&e.detach(t),d&&d.d(),e.destroy_each(u,c),l[26](null),w()}}}function me(l){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner svelte-5qs4ma")},m(i,n){e.insert(i,t,n)},p:e.noop,d(i){i&&e.detach(t)}}}function E(l){let t,i,n,a,o,m;return{c(){t=e.element("div"),i=e.element("button"),i.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>',n=e.space(),a=e.element("button"),a.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>',e.attr(i,"class","svelte-5qs4ma"),e.attr(a,"class","svelte-5qs4ma"),e.attr(t,"class","ButtonsContainer svelte-5qs4ma")},m(_,v){e.insert(_,t,v),e.append(t,i),e.append(t,n),e.append(t,a),o||(m=[e.listen(i,"click",l[22]),e.listen(a,"click",l[23])],o=!0)},p:e.noop,d(_){_&&e.detach(t),o=!1,e.run_all(m)}}}function ge(l){let t,i=l[41].name+"",n;return{c(){t=e.element("p"),n=e.text(i),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&&i!==(i=a[41].name+"")&&e.set_data(n,i)},d(a){a&&e.detach(t)}}}function pe(l){let t,i,n;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo svelte-5qs4ma"),e.src_url_equal(t.src,i=l[41].icon)||e.attr(t,"src",i),e.attr(t,"alt",n=l[41].name+" icon")},m(a,o){e.insert(a,t,o)},p(a,o){o[0]&8&&!e.src_url_equal(t.src,i=a[41].icon)&&e.attr(t,"src",i),o[0]&8&&n!==(n=a[41].name+" icon")&&e.attr(t,"alt",n)},d(a){a&&e.detach(t)}}}function I(l){let t,i=l[44].name+"",n,a;return{c(){t=e.element("p"),n=e.text(i),e.attr(t,"title",a=l[44].name),e.attr(t,"class","svelte-5qs4ma")},m(o,m){e.insert(o,t,m),e.append(t,n)},p(o,m){m[0]&8&&i!==(i=o[44].name+"")&&e.set_data(n,i),m[0]&8&&a!==(a=o[44].name)&&e.attr(t,"title",a)},d(o){o&&e.detach(t)}}}function W(l){let t,i,n,a,o,m,_,v;function w(){return l[24](l[44])}let p=l[2]=="true"&&I(l);return{c(){t=e.element("div"),i=e.element("img"),o=e.space(),p&&p.c(),m=e.space(),e.attr(i,"class","CategorySlideGameImage svelte-5qs4ma"),e.src_url_equal(i.src,n=l[44].defaultThumbnail)||e.attr(i,"src",n),e.attr(i,"alt",a=l[44].name),e.attr(t,"class","CategorySlideGames svelte-5qs4ma")},m(d,g){e.insert(d,t,g),e.append(t,i),e.append(t,o),p&&p.m(t,null),e.append(t,m),_||(v=e.listen(i,"click",e.stop_propagation(w)),_=!0)},p(d,g){l=d,g[0]&8&&!e.src_url_equal(i.src,n=l[44].defaultThumbnail)&&e.attr(i,"src",n),g[0]&8&&a!==(a=l[44].name)&&e.attr(i,"alt",a),l[2]=="true"?p?p.p(l,g):(p=I(l),p.c(),p.m(t,m)):p&&(p.d(1),p=null)},d(d){d&&e.detach(t),p&&p.d(),_=!1,v()}}}function V(l){let t,i,n,a,o,m,_,v,w;function p(r,f){if(r[1]=="logo")return pe;if(r[1]=="title")return ge}let d=p(l),g=d&&d(l),u=e.ensure_array_like(l[41].games),c=[];for(let r=0;r<u.length;r+=1)c[r]=W(U(l,u,r));function y(){return l[25](l[41])}return{c(){var r,f;t=e.element("div"),i=e.element("div"),n=e.element("div"),g&&g.c(),a=e.space(),o=e.element("div");for(let h=0;h<c.length;h+=1)c[h].c();_=e.space(),e.attr(n,"class","CategorySlideTopContainer svelte-5qs4ma"),e.attr(o,"class","CategorySlideGameContainer svelte-5qs4ma"),e.attr(i,"class",m="CategorySlide "+(((r=l[41])==null?void 0:r.flag[0])=="vendor"?"CategorySlideNoHighlight":"")+" svelte-5qs4ma"),e.set_style(i,"background-image","url("+((f=l[41])==null?void 0:f.background)+")"),e.set_style(i,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation svelte-5qs4ma")},m(r,f){e.insert(r,t,f),e.append(t,i),e.append(i,n),g&&g.m(n,null),e.append(i,a),e.append(i,o);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(o,null);e.append(t,_),v||(w=e.listen(i,"click",y),v=!0)},p(r,f){var h,G;if(l=r,d===(d=p(l))&&g?g.p(l,f):(g&&g.d(1),g=d&&d(l),g&&(g.c(),g.m(n,null))),f[0]&16396){u=e.ensure_array_like(l[41].games);let b;for(b=0;b<u.length;b+=1){const S=U(l,u,b);c[b]?c[b].p(S,f):(c[b]=W(S),c[b].c(),c[b].m(o,null))}for(;b<c.length;b+=1)c[b].d(1);c.length=u.length}f[0]&8&&m!==(m="CategorySlide "+(((h=l[41])==null?void 0:h.flag[0])=="vendor"?"CategorySlideNoHighlight":"")+" svelte-5qs4ma")&&e.attr(i,"class",m),f[0]&8&&e.set_style(i,"background-image","url("+((G=l[41])==null?void 0:G.background)+")")},d(r){r&&e.detach(t),g&&g.d(),e.destroy_each(c,r),v=!1,w()}}}function ue(l){let t;function i(o,m){return o[7]?me:de}let n=i(l),a=n(l);return{c(){t=e.element("div"),a.c(),e.attr(t,"class","svelte-5qs4ma")},m(o,m){e.insert(o,t,m),a.m(t,null),l[28](t)},p(o,m){n===(n=i(o))&&a?a.p(o,m):(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[28](null)}}}function ve(l,t,i){let n;e.component_subscribe(l,e.$format,s=>i(11,n=s));let{endpoint:a=""}=t,{datasource:o=""}=t,{lang:m=""}=t,{type:_=""}=t,{titletype:v=""}=t,{clientstyling:w=""}=t,{clientstylingurl:p=""}=t,{translationurl:d=""}=t,{collectionprovidersgamenames:g=""}=t,u=[],c=!0,y,r=0,f=0,h=0,G,b,S,K=window.navigator.userAgent,L,P=0;const Z=()=>{fetch(d).then(C=>C.json()).then(C=>{Object.keys(C).forEach(q=>{A(q,C[q])})}).catch(C=>{console.log(C)})};Object.keys(N).forEach(s=>{A(s,N[s])});const J=()=>{const s=new URL(`${a}/v2/casino/groups/${o}`);s.searchParams.append("language",m),s.searchParams.append("expand","games"),fetch(s.href).then(C=>C.json()).then(C=>{i(7,c=!1);let q=C.items.filter(k=>k.flags==_);i(3,u=q.map(k=>{var H,O,B;return{id:k.id,name:k.name,icon:k.icon?k.icon:(B=(O=(H=k.vendors)==null?void 0:H.items[0])==null?void 0:O.subVendors[0])==null?void 0:B.logo,games:k.games.items.slice(0,4).map(oe=>oe),background:k.background,flag:k.flags}})),i(8,f=u.length)})},M=s=>{b=[...y.children],b.forEach((C,q)=>{C.style.transform=`translateX(${100*(s?q-s:q)}%)`}),G=b[0].getBoundingClientRect().width,X()},X=()=>{i(9,h=Math.floor(P/G))},j=()=>{M(r)},T=()=>{r===0?r=f-h:r-h<-1?r=0:r--,j()},x=()=>{r===f-h?r=0:f-h<r+1?r=f-h:r++,j()},F=(s,C,q,k)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:s,launchUrl:C,gameName:q,subVendor:k},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${q}`})},z=s=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:s},window.location.href)},Y=()=>{re(m)},Q=()=>{let s=document.createElement("style");s.innerHTML=w,S.appendChild(s)},$=()=>{let s=new URL(p),C=document.createElement("style");fetch(s.href).then(q=>q.text()).then(q=>{C.innerHTML=q,setTimeout(()=>{S.appendChild(C)},1)})};e.onMount(()=>{i(10,L=e.isMobile(K))});const ee=()=>T(),te=()=>x(),le=s=>F(s.gameId,s.launchUrl,s.name,s.subVendor),ie=s=>z(s.id);function se(s){e.binding_callbacks[s?"unshift":"push"](()=>{y=s,i(4,y)})}function ae(){P=this.clientWidth,i(6,P)}function ne(s){e.binding_callbacks[s?"unshift":"push"](()=>{S=s,i(5,S)})}return l.$$set=s=>{"endpoint"in s&&i(16,a=s.endpoint),"datasource"in s&&i(17,o=s.datasource),"lang"in s&&i(18,m=s.lang),"type"in s&&i(0,_=s.type),"titletype"in s&&i(1,v=s.titletype),"clientstyling"in s&&i(19,w=s.clientstyling),"clientstylingurl"in s&&i(20,p=s.clientstylingurl),"translationurl"in s&&i(21,d=s.translationurl),"collectionprovidersgamenames"in s&&i(2,g=s.collectionprovidersgamenames)},l.$$.update=()=>{l.$$.dirty[0]&458752&&a&&o&&m&&J(),l.$$.dirty[0]&88&&P&&u&&y&&M(),l.$$.dirty[0]&262144&&m&&Y(),l.$$.dirty[0]&524320&&w&&S&&Q(),l.$$.dirty[0]&1048608&&p&&S&&$(),l.$$.dirty[0]&2097152&&d&&Z()},[_,v,g,u,y,S,P,c,f,h,L,n,T,x,F,z,a,o,m,w,p,d,ee,te,le,ie,se,ae,ne]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ve,ue,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},ce,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}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[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}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(D,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=D;
|