@everymatrix/casino-lobby 1.54.6 → 1.54.9

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.
Files changed (81) hide show
  1. package/components/CasinoCalendar-BlfnJwZ-.cjs +9 -0
  2. package/components/{CasinoCalendar-Ic3lq1UY.js → CasinoCalendar-CKCvu8d9.js} +1370 -1378
  3. package/components/CasinoCalendar-D3cTwZsW.js +5197 -0
  4. package/components/{CasinoCalendarDailyDetails-buDoufAV.js → CasinoCalendarDailyDetails-B7hChP4v.js} +90 -90
  5. package/components/CasinoCalendarDailyDetails-C1T0xNcn.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-CCIR8eIp.js +701 -0
  7. package/components/{CasinoCalendarDailyItem-koPRd703.js → CasinoCalendarDailyItem-1iPwEmjb.js} +46 -46
  8. package/components/CasinoCalendarDailyItem-BNNa1Jdv.js +315 -0
  9. package/components/CasinoCalendarDailyItem-Bp_PImhJ.cjs +1 -0
  10. package/components/{CasinoCategoriesSlider-Bp9JHeM_.js → CasinoCategoriesSlider-06Zx2Iq-.js} +29 -29
  11. package/components/CasinoCategoriesSlider-Bjd1r5S5.js +606 -0
  12. package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +1 -0
  13. package/components/{CasinoCollectionsProviders-CrpNb22N.js → CasinoCollectionsProviders-BQPjVzK8.js} +58 -58
  14. package/components/CasinoCollectionsProviders-CSISd5u6.cjs +1 -0
  15. package/components/CasinoCollectionsProviders-CVDFBiI0.js +664 -0
  16. package/components/{CasinoFavoritesSection-D4Du3N5n.js → CasinoFavoritesSection-BtAZ0obR.js} +16 -16
  17. package/components/CasinoFavoritesSection-CeNe7gym.js +439 -0
  18. package/components/CasinoFavoritesSection-D7g9PfaJ.cjs +1 -0
  19. package/components/CasinoFilter-C10Tgn3c.cjs +1 -0
  20. package/components/CasinoFilter-CT6gjm3V.js +634 -0
  21. package/components/{CasinoFilter-CYZHW74M.js → CasinoFilter-ckjDwsuD.js} +55 -55
  22. package/components/CasinoGamePage-BXEw8hFH.js +4300 -0
  23. package/components/{CasinoGamePage-C0VvUfCV.js → CasinoGamePage-CtPmWXKS.js} +90 -90
  24. package/components/CasinoGamePage-DishJnnG.cjs +18 -0
  25. package/components/{CasinoGameThumbnail-C-zG9Jn9.js → CasinoGameThumbnail-CPtgI_Ou.js} +63 -63
  26. package/components/CasinoGameThumbnail-DEA-lJVL.cjs +38 -0
  27. package/components/CasinoGameThumbnail-DlUjmcUF.js +1850 -0
  28. package/components/CasinoGamesCategorySection-C004qi0F.cjs +1 -0
  29. package/components/CasinoGamesCategorySection-DNDGzt_C.js +3032 -0
  30. package/components/{CasinoGamesCategorySection-DVd_DDkc.js → CasinoGamesCategorySection-DeKVT6Qy.js} +125 -125
  31. package/components/{CasinoJackpotBanner-CL7SMQDH.js → CasinoJackpotBanner-D3s92J-3.js} +68 -68
  32. package/components/CasinoJackpotBanner-q02RPv4N.js +618 -0
  33. package/components/CasinoJackpotBanner-uWVFzOiI.cjs +1 -0
  34. package/components/{CasinoLastPlayedSection-VbQH2qG2.js → CasinoLastPlayedSection-CRSWVIu_.js} +29 -29
  35. package/components/CasinoLastPlayedSection-tgXO-MUK.cjs +1 -0
  36. package/components/CasinoLastPlayedSection-vWwXDUsk.js +566 -0
  37. package/components/CasinoLobby-CzD2DAYm.cjs +1 -0
  38. package/components/{CasinoLobby-CSsnpzSn.js → CasinoLobby-aK6BWuTG.js} +49 -49
  39. package/components/CasinoLobby-cHs3HImA.js +2337 -0
  40. package/components/{CasinoModal-z0xixUlG.js → CasinoModal-C1oW3YF4.js} +69 -69
  41. package/components/CasinoModal-DRtZi6gR.cjs +1 -0
  42. package/components/CasinoModal-IbVlgg7Z.js +372 -0
  43. package/components/CasinoMostPlayedSection-1h4sJVZB.cjs +1 -0
  44. package/components/{CasinoMostPlayedSection-BIXY9riB.js → CasinoMostPlayedSection-CqCeL-T3.js} +32 -32
  45. package/components/CasinoMostPlayedSection-GdgKELMj.js +583 -0
  46. package/components/CasinoMyGames-B_NJlfMk.cjs +1 -0
  47. package/components/{CasinoMyGames-DqRPb7fX.js → CasinoMyGames-C96xDtTs.js} +52 -52
  48. package/components/CasinoMyGames-crupH86Y.js +1318 -0
  49. package/components/CasinoPage-BP3C9X12.cjs +1 -0
  50. package/components/{CasinoPage-Cm-vD67m.js → CasinoPage-BmaJqL6b.js} +123 -123
  51. package/components/CasinoPage-LZWtHc8W.js +3550 -0
  52. package/components/CasinoRandomGame-C6-dDxie.cjs +2 -0
  53. package/components/CasinoRandomGame-DXFHIw0O.js +668 -0
  54. package/components/{CasinoRandomGame-efA8CEqy.js → CasinoRandomGame-Df62wtxc.js} +51 -51
  55. package/components/CasinoSearch-BcFA6QGN.js +1072 -0
  56. package/components/CasinoSearch-Dnm7_nuc.cjs +1 -0
  57. package/components/{CasinoSearch-BEXK-fFP.js → CasinoSearch-akpXIDh-.js} +83 -83
  58. package/components/CasinoSlider-BDjskQjI.cjs +1 -0
  59. package/components/{CasinoSlider-BPqJIB5d.js → CasinoSlider-BWEc4YT5.js} +78 -78
  60. package/components/CasinoSlider-BjpV4pLV.js +806 -0
  61. package/components/CasinoSort-CS53Uvnz.cjs +1 -0
  62. package/components/CasinoSort-DFdgT3Dt.js +432 -0
  63. package/components/{CasinoSort-CBtcK7i0.js → CasinoSort-DFljh5Sg.js} +16 -16
  64. package/components/CasinoWinners-6mr0X-kZ.js +971 -0
  65. package/components/{CasinoWinners-Db2ivy-R.js → CasinoWinners-CADOvOsd.js} +62 -62
  66. package/components/CasinoWinners-DU3xFq2b.cjs +1 -0
  67. package/components/GeneralAnimationLoading-BG_QynCK.cjs +1 -0
  68. package/components/{GeneralAnimationLoading-DiwFEyef.js → GeneralAnimationLoading-CX9baArf.js} +8 -8
  69. package/components/GeneralAnimationLoading-DVLCsjn0.js +75 -0
  70. package/es2015/casino-lobby.cjs +1 -0
  71. package/es2015/casino-lobby.js +16 -0
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +4 -1
  74. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  75. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-CoygOtgn.js} +1 -1
  76. package/stencil/casino-play-random-game-DjMkr-Sg.cjs +371 -0
  77. package/stencil/casino-play-random-game-DkjQlTyE.js +577 -0
  78. package/stencil/index-f923e8d1-D64rZ7vf.js +645 -0
  79. package/stencil/index-f923e8d1-D8EldEUs.js +629 -0
  80. package/stencil/index-f923e8d1-QzT30J3F.cjs +1 -0
  81. package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
@@ -0,0 +1,606 @@
1
+ import { a as re, S as ce, i as me, s as ge, f as c, b as ue, n as S, d as j, h as F, j as N, k as ye, o as fe, K as de, C as be, r as E, L as o, p as he, M as Ne, I as we, N as Le, J as Me } from "./CasinoCalendar-D3cTwZsW.js";
2
+ function W(i, e) {
3
+ re(i, e);
4
+ }
5
+ const X = {
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
+ "en-us": {
75
+ lobbyName: "Lobby",
76
+ myGamesName: "My games"
77
+ }
78
+ };
79
+ if (typeof window != "undefined") {
80
+ let i = function(e) {
81
+ return function(...t) {
82
+ try {
83
+ return e.apply(this, t);
84
+ } catch (l) {
85
+ 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"))
86
+ return !1;
87
+ throw l;
88
+ }
89
+ };
90
+ };
91
+ customElements.define = i(customElements.define), import("./CasinoSlider-BjpV4pLV.js").then(({ default: e }) => {
92
+ !customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
93
+ });
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
+ function _e(i) {
99
+ let e, t, l, r;
100
+ return {
101
+ c() {
102
+ e = N("div"), t = N("casino-slider"), o(
103
+ t,
104
+ "lang",
105
+ /*lang*/
106
+ i[3]
107
+ ), o(
108
+ t,
109
+ "datasource",
110
+ /*datasource*/
111
+ i[2]
112
+ ), o(
113
+ t,
114
+ "endpoint",
115
+ /*endpoint*/
116
+ i[1]
117
+ ), o(t, "identity", D), o(
118
+ t,
119
+ "favoritesnumber",
120
+ /*numberOfFavoredGames*/
121
+ i[15]
122
+ ), o(
123
+ t,
124
+ "showsubgroups",
125
+ /*showsubgroups*/
126
+ i[8]
127
+ ), o(
128
+ t,
129
+ "clientstyling",
130
+ /*clientstyling*/
131
+ i[4]
132
+ ), o(
133
+ t,
134
+ "clientstylingurl",
135
+ /*clientstylingurl*/
136
+ i[5]
137
+ ), o(
138
+ t,
139
+ "activeindex",
140
+ /*activecategory*/
141
+ i[0]
142
+ ), o(
143
+ t,
144
+ "actionevent",
145
+ /*actionevent*/
146
+ i[6]
147
+ ), o(
148
+ t,
149
+ "location",
150
+ /*location*/
151
+ i[7]
152
+ ), o(
153
+ t,
154
+ "categoriesicon",
155
+ /*categoriesicon*/
156
+ i[9]
157
+ ), o(
158
+ t,
159
+ "lobbyiconimage",
160
+ /*lobbyiconimage*/
161
+ i[10]
162
+ ), o(
163
+ t,
164
+ "mygamesiconimage",
165
+ /*mygamesiconimage*/
166
+ i[11]
167
+ ), E(e, "class", "CasinoCategoriesContainer svelte-2g6deg"), E(e, "part", "CasinoCategoriesContainer");
168
+ },
169
+ m(a, n) {
170
+ F(a, e, n), he(e, t), l || (r = Ne(
171
+ /*sendSliderData*/
172
+ i[16].call(null, t)
173
+ ), l = !0);
174
+ },
175
+ p(a, n) {
176
+ n[0] & /*lang*/
177
+ 8 && o(
178
+ t,
179
+ "lang",
180
+ /*lang*/
181
+ a[3]
182
+ ), n[0] & /*datasource*/
183
+ 4 && o(
184
+ t,
185
+ "datasource",
186
+ /*datasource*/
187
+ a[2]
188
+ ), n[0] & /*endpoint*/
189
+ 2 && o(
190
+ t,
191
+ "endpoint",
192
+ /*endpoint*/
193
+ a[1]
194
+ ), n[0] & /*numberOfFavoredGames*/
195
+ 32768 && o(
196
+ t,
197
+ "favoritesnumber",
198
+ /*numberOfFavoredGames*/
199
+ a[15]
200
+ ), n[0] & /*showsubgroups*/
201
+ 256 && o(
202
+ t,
203
+ "showsubgroups",
204
+ /*showsubgroups*/
205
+ a[8]
206
+ ), n[0] & /*clientstyling*/
207
+ 16 && o(
208
+ t,
209
+ "clientstyling",
210
+ /*clientstyling*/
211
+ a[4]
212
+ ), n[0] & /*clientstylingurl*/
213
+ 32 && o(
214
+ t,
215
+ "clientstylingurl",
216
+ /*clientstylingurl*/
217
+ a[5]
218
+ ), n[0] & /*activecategory*/
219
+ 1 && o(
220
+ t,
221
+ "activeindex",
222
+ /*activecategory*/
223
+ a[0]
224
+ ), n[0] & /*actionevent*/
225
+ 64 && o(
226
+ t,
227
+ "actionevent",
228
+ /*actionevent*/
229
+ a[6]
230
+ ), n[0] & /*location*/
231
+ 128 && o(
232
+ t,
233
+ "location",
234
+ /*location*/
235
+ a[7]
236
+ ), n[0] & /*categoriesicon*/
237
+ 512 && o(
238
+ t,
239
+ "categoriesicon",
240
+ /*categoriesicon*/
241
+ a[9]
242
+ ), n[0] & /*lobbyiconimage*/
243
+ 1024 && o(
244
+ t,
245
+ "lobbyiconimage",
246
+ /*lobbyiconimage*/
247
+ a[10]
248
+ ), n[0] & /*mygamesiconimage*/
249
+ 2048 && o(
250
+ t,
251
+ "mygamesiconimage",
252
+ /*mygamesiconimage*/
253
+ a[11]
254
+ );
255
+ },
256
+ d(a) {
257
+ a && j(e), l = !1, r();
258
+ }
259
+ };
260
+ }
261
+ function ve(i) {
262
+ let e;
263
+ return {
264
+ c() {
265
+ e = N("p"), e.textContent = "500 Error - Internal Server Error.", E(e, "class", "SearchLoading svelte-2g6deg");
266
+ },
267
+ m(t, l) {
268
+ F(t, e, l);
269
+ },
270
+ p: S,
271
+ d(t) {
272
+ t && j(e);
273
+ }
274
+ };
275
+ }
276
+ function Ge(i) {
277
+ let e;
278
+ return {
279
+ c() {
280
+ e = N("div"), E(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
281
+ },
282
+ m(t, l) {
283
+ F(t, e, l);
284
+ },
285
+ p: S,
286
+ d(t) {
287
+ t && j(e);
288
+ }
289
+ };
290
+ }
291
+ function ke(i) {
292
+ let e;
293
+ function t(a, n) {
294
+ return (
295
+ /*isLoading*/
296
+ a[12] || Se || Ee ? Ge : (
297
+ /*hasErrors*/
298
+ a[14] ? ve : _e
299
+ )
300
+ );
301
+ }
302
+ let l = t(i), r = l(i);
303
+ return {
304
+ c() {
305
+ e = N("div"), r.c();
306
+ },
307
+ m(a, n) {
308
+ F(a, e, n), r.m(e, null), i[26](e);
309
+ },
310
+ p(a, n) {
311
+ l === (l = t(a)) && r ? r.p(a, n) : (r.d(1), r = l(a), r && (r.c(), r.m(e, null)));
312
+ },
313
+ i: S,
314
+ o: S,
315
+ d(a) {
316
+ a && j(e), r.d(), i[26](null);
317
+ }
318
+ };
319
+ }
320
+ let D = "CasinoSliderData", Se = !1, Ee = !1;
321
+ function je(i, e, t) {
322
+ let l;
323
+ ye(i, Me, (s) => t(32, l = s));
324
+ let { endpoint: r = "" } = e, { datasource: a = "" } = e, { lang: n = "" } = e, { userid: O = "" } = e, { session: w = "" } = e, { mostplayed: L = "" } = e, { lastplayed: M = "false" } = e, { favorites: C = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: I = "secondaryMenu" } = e, { showsubgroups: H = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: k = "" } = e, { categoriesicon: B = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: q = "" } = e, x, z, y = !0, b, h = [], f = !1, Z = window.navigator.userAgent, d, J, K = !1, T = !1;
325
+ const p = () => {
326
+ fetch(k).then((m) => m.json()).then((m) => {
327
+ Object.keys(m).forEach((g) => {
328
+ W(g, m[g]);
329
+ });
330
+ }).catch((m) => {
331
+ console.log(m);
332
+ });
333
+ };
334
+ Object.keys(X).forEach((s) => {
335
+ W(s, X[s]);
336
+ });
337
+ const $ = () => {
338
+ K == !1 && (C == "true" || L == "true" || M == "true") && h.splice(1, 0, {
339
+ // @ts-ignore
340
+ id: "MYGAMES",
341
+ name: x,
342
+ href: "",
343
+ games: []
344
+ }), Le(), K = !0, t(25, T = !0), P();
345
+ }, ee = () => (r || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(14, f = !0), t(12, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(14, f = !0), t(12, y = !1), console.error(b)), (!n || n.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(14, f = !0), t(12, y = !1), console.error(b)), f), te = () => {
346
+ if (x = l("myGamesName"), z = l("lobbyName"), !ee()) {
347
+ let s = new URL(`${r}/v1/casino/groups/${a}`);
348
+ s.searchParams.append("datasource", a), s.searchParams.append("language", n), s.searchParams.append("platform", de(Z)), fetch(s).then((m) => m.json()).then(
349
+ (m) => {
350
+ let g = G.split(","), oe = m.items.filter((V) => {
351
+ let A = !1;
352
+ if (V.games.total > 0 && (A = !0, G))
353
+ for (let le of g)
354
+ V.flags == le && (A = !1);
355
+ return A;
356
+ });
357
+ h = [], h = h.concat(oe), h.unshift({
358
+ // @ts-ignore
359
+ id: "LOBBY",
360
+ name: z,
361
+ href: "",
362
+ games: []
363
+ }), t(12, y = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
364
+ },
365
+ (m) => {
366
+ t(14, f = !0), console.error("There was an error while fetching the categories", m);
367
+ }
368
+ ).catch((m) => {
369
+ t(14, f = !0), console.error("There was an error while fetching the categories", m);
370
+ });
371
+ }
372
+ }, se = () => {
373
+ let s = u.split("$");
374
+ t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
375
+ }, ie = () => {
376
+ let s = document.createElement("style");
377
+ s.innerHTML = _, d.appendChild(s);
378
+ }, ae = () => {
379
+ let s = document.createElement("style"), m = new URL(v);
380
+ fetch(m.href).then((g) => g.text()).then((g) => {
381
+ s.innerHTML = g, setTimeout(
382
+ () => {
383
+ d.appendChild(s);
384
+ },
385
+ 1
386
+ );
387
+ });
388
+ }, P = () => {
389
+ window.postMessage(
390
+ {
391
+ type: "SliderData",
392
+ identity: D,
393
+ data: h
394
+ },
395
+ window.location.href
396
+ );
397
+ }, Q = (s) => {
398
+ s.data && s.data.type == "SliderLoaded" && D == s.data.identity && P();
399
+ };
400
+ fe(() => (window.addEventListener("message", Q, !1), () => {
401
+ window.removeEventListener("message", Q);
402
+ }));
403
+ function ne(s) {
404
+ be[s ? "unshift" : "push"](() => {
405
+ d = s, t(13, d);
406
+ });
407
+ }
408
+ return i.$$set = (s) => {
409
+ "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, O = s.userid), "session" in s && t(18, w = s.session), "mostplayed" in s && t(19, L = s.mostplayed), "lastplayed" in s && t(20, M = s.lastplayed), "favorites" in s && t(21, C = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(22, U = s.sessioncheck), "location" in s && t(7, I = s.location), "showsubgroups" in s && t(8, H = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, k = s.translationurl), "categoriesicon" in s && t(9, B = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, q = s.mygamesiconimage);
410
+ }, i.$$.update = () => {
411
+ i.$$.dirty[0] & /*endpoint, datasource, lang*/
412
+ 14 && r && a && n && te(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
413
+ 3936258 && r && w && (L || M || C) && !y && $(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
414
+ 33820673 && !y && u && (!w || T) && se(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
415
+ 8208 && _ && d && ie(), i.$$.dirty[0] & /*translationurl*/
416
+ 16777216 && k && p(), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
417
+ 8224 && v && d && ae();
418
+ }, t(15, J = 0), [
419
+ u,
420
+ r,
421
+ a,
422
+ n,
423
+ _,
424
+ v,
425
+ R,
426
+ I,
427
+ H,
428
+ B,
429
+ Y,
430
+ q,
431
+ y,
432
+ d,
433
+ f,
434
+ J,
435
+ P,
436
+ O,
437
+ w,
438
+ L,
439
+ M,
440
+ C,
441
+ U,
442
+ G,
443
+ k,
444
+ T,
445
+ ne
446
+ ];
447
+ }
448
+ class Fe extends ce {
449
+ constructor(e) {
450
+ super(), me(
451
+ this,
452
+ e,
453
+ je,
454
+ ke,
455
+ ge,
456
+ {
457
+ endpoint: 1,
458
+ datasource: 2,
459
+ lang: 3,
460
+ userid: 17,
461
+ session: 18,
462
+ mostplayed: 19,
463
+ lastplayed: 20,
464
+ favorites: 21,
465
+ clientstyling: 4,
466
+ clientstylingurl: 5,
467
+ activecategory: 0,
468
+ actionevent: 6,
469
+ sessioncheck: 22,
470
+ location: 7,
471
+ showsubgroups: 8,
472
+ filteredcategories: 23,
473
+ translationurl: 24,
474
+ categoriesicon: 9,
475
+ lobbyiconimage: 10,
476
+ mygamesiconimage: 11
477
+ },
478
+ Ce,
479
+ [-1, -1]
480
+ );
481
+ }
482
+ get endpoint() {
483
+ return this.$$.ctx[1];
484
+ }
485
+ set endpoint(e) {
486
+ this.$$set({ endpoint: e }), c();
487
+ }
488
+ get datasource() {
489
+ return this.$$.ctx[2];
490
+ }
491
+ set datasource(e) {
492
+ this.$$set({ datasource: e }), c();
493
+ }
494
+ get lang() {
495
+ return this.$$.ctx[3];
496
+ }
497
+ set lang(e) {
498
+ this.$$set({ lang: e }), c();
499
+ }
500
+ get userid() {
501
+ return this.$$.ctx[17];
502
+ }
503
+ set userid(e) {
504
+ this.$$set({ userid: e }), c();
505
+ }
506
+ get session() {
507
+ return this.$$.ctx[18];
508
+ }
509
+ set session(e) {
510
+ this.$$set({ session: e }), c();
511
+ }
512
+ get mostplayed() {
513
+ return this.$$.ctx[19];
514
+ }
515
+ set mostplayed(e) {
516
+ this.$$set({ mostplayed: e }), c();
517
+ }
518
+ get lastplayed() {
519
+ return this.$$.ctx[20];
520
+ }
521
+ set lastplayed(e) {
522
+ this.$$set({ lastplayed: e }), c();
523
+ }
524
+ get favorites() {
525
+ return this.$$.ctx[21];
526
+ }
527
+ set favorites(e) {
528
+ this.$$set({ favorites: e }), c();
529
+ }
530
+ get clientstyling() {
531
+ return this.$$.ctx[4];
532
+ }
533
+ set clientstyling(e) {
534
+ this.$$set({ clientstyling: e }), c();
535
+ }
536
+ get clientstylingurl() {
537
+ return this.$$.ctx[5];
538
+ }
539
+ set clientstylingurl(e) {
540
+ this.$$set({ clientstylingurl: e }), c();
541
+ }
542
+ get activecategory() {
543
+ return this.$$.ctx[0];
544
+ }
545
+ set activecategory(e) {
546
+ this.$$set({ activecategory: e }), c();
547
+ }
548
+ get actionevent() {
549
+ return this.$$.ctx[6];
550
+ }
551
+ set actionevent(e) {
552
+ this.$$set({ actionevent: e }), c();
553
+ }
554
+ get sessioncheck() {
555
+ return this.$$.ctx[22];
556
+ }
557
+ set sessioncheck(e) {
558
+ this.$$set({ sessioncheck: e }), c();
559
+ }
560
+ get location() {
561
+ return this.$$.ctx[7];
562
+ }
563
+ set location(e) {
564
+ this.$$set({ location: e }), c();
565
+ }
566
+ get showsubgroups() {
567
+ return this.$$.ctx[8];
568
+ }
569
+ set showsubgroups(e) {
570
+ this.$$set({ showsubgroups: e }), c();
571
+ }
572
+ get filteredcategories() {
573
+ return this.$$.ctx[23];
574
+ }
575
+ set filteredcategories(e) {
576
+ this.$$set({ filteredcategories: e }), c();
577
+ }
578
+ get translationurl() {
579
+ return this.$$.ctx[24];
580
+ }
581
+ set translationurl(e) {
582
+ this.$$set({ translationurl: e }), c();
583
+ }
584
+ get categoriesicon() {
585
+ return this.$$.ctx[9];
586
+ }
587
+ set categoriesicon(e) {
588
+ this.$$set({ categoriesicon: e }), c();
589
+ }
590
+ get lobbyiconimage() {
591
+ return this.$$.ctx[10];
592
+ }
593
+ set lobbyiconimage(e) {
594
+ this.$$set({ lobbyiconimage: e }), c();
595
+ }
596
+ get mygamesiconimage() {
597
+ return this.$$.ctx[11];
598
+ }
599
+ set mygamesiconimage(e) {
600
+ this.$$set({ mygamesiconimage: e }), c();
601
+ }
602
+ }
603
+ we(Fe, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
604
+ export {
605
+ Fe as default
606
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-BlfnJwZ-.cjs");function z(n,e){t.addMessages(n,e)}const x={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let 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-BDjskQjI.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(n){t.append_styles(n,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ne(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",E),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-2g6deg"),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 ie(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function le(n){let e;function s(i,o){return i[12]||re||ce?oe:i[14]?ie:ne}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 E="CasinoSliderData",re=!1,ce=!1;function me(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:j=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:P=""}=e,{sessioncheck:T=""}=e,{location:F="secondaryMenu"}=e,{showsubgroups:A="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:D=""}=e,{lobbyiconimage:O=""}=e,{mygamesiconimage:R=""}=e,U,q,g=!0,f,h=[],d=!1,K=window.navigator.userAgent,y,H,I=!1,G=!1;const Q=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(x).forEach(a=>{z(a,x[a])});const V=()=>{I==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:U,href:"",games:[]}),t.tick(),I=!0,s(25,G=!0),k()},W=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(14,d=!0),s(12,g=!1),console.error(f)),i||(f="Datasource is missing! Please provide a valid datasource.",s(14,d=!0),s(12,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(14,d=!0),s(12,g=!1),console.error(f)),d),X=()=>{if(U=l("myGamesName"),q=l("lobbyName"),!W()){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(K)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),te=c.items.filter(Y=>{let S=!1;if(Y.games.total>0&&(S=!0,M))for(let se of m)Y.flags==se&&(S=!1);return S});h=[],h=h.concat(te),h.unshift({id:"LOBBY",name:q,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,d=!0),console.error("There was an error while fetching the categories",c)})}},Z=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},p=()=>{let a=document.createElement("style");a.innerHTML=L,y.appendChild(a)},$=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{y.appendChild(a)},1)})},k=()=>{window.postMessage({type:"SliderData",identity:E,data:h},window.location.href)},B=a=>{a.data&&a.data.type=="SliderLoaded"&&E==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{y=a,s(13,y)})}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,j=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,P=a.actionevent),"sessioncheck"in a&&s(22,T=a.sessioncheck),"location"in a&&s(7,F=a.location),"showsubgroups"in a&&s(8,A=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,D=a.categoriesicon),"lobbyiconimage"in a&&s(10,O=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,R=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&X(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&V(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&Z(),n.$$.dirty[0]&8208&&L&&y&&p(),n.$$.dirty[0]&16777216&&v&&Q(),n.$$.dirty[0]&8224&&C&&y&&$()},s(15,H=0),[u,r,i,o,L,C,P,F,A,D,O,R,g,y,d,H,k,j,b,_,N,w,T,M,v,G,ee]}class J extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,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},ae,[-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(J,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=J;