@everymatrix/casino-lobby 1.44.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/components/CasinoCalendar-3HRZGpnG.js +5134 -0
  2. package/components/CasinoCalendar-9cVNHt1-.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-Dcf0TKzH.cjs +1 -0
  4. package/components/CasinoCalendarDailyDetails-MwTyCObT.js +605 -0
  5. package/components/CasinoCalendarDailyItem-B-h-76yh.js +220 -0
  6. package/components/CasinoCalendarDailyItem-Cahte_IM.cjs +1 -0
  7. package/components/CasinoCategoriesSlider-AAgG2_xb.cjs +1 -0
  8. package/components/CasinoCategoriesSlider-B3Aneyii.js +597 -0
  9. package/components/CasinoCollectionsProviders-BvEenHqO.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-D-DgSMvu.js +659 -0
  11. package/components/CasinoFavoritesSection-CxQ69OwL.cjs +1 -0
  12. package/components/CasinoFavoritesSection-DE0M_xZ_.js +418 -0
  13. package/components/CasinoFilter-BWEtfBml.js +628 -0
  14. package/components/CasinoFilter-Bdc0mE0X.cjs +1 -0
  15. package/components/CasinoGamePage-C4x_GUg3.cjs +18 -0
  16. package/components/CasinoGamePage-r1xLmvzf.js +4282 -0
  17. package/components/CasinoGameThumbnail-BG_6FsqW.cjs +38 -0
  18. package/components/CasinoGameThumbnail-wQFR0AuM.js +1822 -0
  19. package/components/CasinoGamesCategorySection-BGgw1sdg.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Cbto2aD4.js +3018 -0
  21. package/components/CasinoJackpotBanner-BftFjZpI.cjs +1 -0
  22. package/components/CasinoJackpotBanner-D1RCyJGt.js +615 -0
  23. package/components/CasinoLastPlayedSection-CAirOYgJ.js +563 -0
  24. package/components/CasinoLastPlayedSection-Dm6f8H02.cjs +1 -0
  25. package/components/CasinoLobby-Cq0Hm2md.js +2337 -0
  26. package/components/CasinoLobby-CvaYUpUV.cjs +1 -0
  27. package/components/CasinoModal-CZbdtmLm.js +372 -0
  28. package/components/CasinoModal-DqBbtAjA.cjs +1 -0
  29. package/components/CasinoMostPlayedSection-DTXKjmPl.cjs +1 -0
  30. package/components/CasinoMostPlayedSection-k3_ln2SB.js +580 -0
  31. package/components/CasinoMyGames-CVTzyBkk.cjs +1 -0
  32. package/components/CasinoMyGames-DcJpzIEq.js +1313 -0
  33. package/components/CasinoPage-BbRpHGEc.js +3514 -0
  34. package/components/CasinoPage-srXwB6ik.cjs +1 -0
  35. package/components/CasinoRandomGame-BSD5DYtt.js +641 -0
  36. package/components/CasinoRandomGame-CNdoKY0C.cjs +2 -0
  37. package/components/CasinoSearch-BsgUvsbs.js +1062 -0
  38. package/components/CasinoSearch-CMn_5Aa4.cjs +1 -0
  39. package/components/CasinoSlider-D5B-CjPM.js +803 -0
  40. package/components/CasinoSlider-kzZxK81G.cjs +1 -0
  41. package/components/CasinoSort-9pQqbHyF.cjs +1 -0
  42. package/components/CasinoSort-T6UQhFka.js +425 -0
  43. package/components/CasinoWinners-CD5HS4Gb.cjs +1 -0
  44. package/components/CasinoWinners-auSd-4D9.js +884 -0
  45. package/components/GeneralAnimationLoading-CIYgtCsE.cjs +1 -0
  46. package/components/GeneralAnimationLoading-DRiG33XR.js +75 -0
  47. package/es2015/casino-lobby.cjs +1 -0
  48. package/es2015/casino-lobby.js +16 -0
  49. package/package.json +20 -32
  50. package/CHANGELOG.md +0 -39
  51. package/README.md +0 -0
  52. package/dist/casino-lobby.js +0 -33
  53. package/dist/casino-lobby.js.map +0 -1
  54. package/documentation.md +0 -176
  55. package/index.html +0 -50
  56. package/index.js +0 -1
  57. package/public/favicon.png +0 -0
  58. package/public/reset.css +0 -48
  59. package/rollup.config.js +0 -67
  60. package/src/CasinoLobby.svelte +0 -454
  61. package/src/i18n.js +0 -25
  62. package/src/index.ts +0 -4
  63. package/stories/CasinoLobby.stories.js +0 -13
  64. 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, d as j, C as S, j as F, J as ye, K as fe, L as he, m as de, M as o, u as E, v as be, N as Ne, O as we } from "./CasinoCalendar-3HRZGpnG.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-D5B-CjPM.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 e=require("./CasinoCalendar-9cVNHt1-.cjs");function N(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const q={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 de(i){e.append_styles(i,"svelte-67y1f9",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--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:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,m,k,u,c=i[8]>i[9]&&E(i),p=e.ensure_array_like(i[3]),f=[];for(let d=0;d<p.length;d+=1)f[d]=V(R(i,p,d));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),c&&c.c(),v=e.space(),m=e.element("div");for(let d=0;d<f.length;d+=1)f[d].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(m,"class","CategoriesSlider"),e.add_render_callback(()=>i[27].call(m)),e.attr(t,"class",u="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(d,y){e.insert(d,t,y),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,m);for(let s=0;s<f.length;s+=1)f[s]&&f[s].m(m,null);i[26](m),k=e.add_iframe_resize_listener(m,i[27].bind(m))},p(d,y){if(y[0]&2049&&o!==(o=(d[0]=="vendor"?d[11]("providers"):d[11]("collections"))+"")&&e.set_data(a,o),d[8]>d[9]?c?c.p(d,y):(c=E(d),c.c(),c.m(l,null)):c&&(c.d(1),c=null),y[0]&49166){p=e.ensure_array_like(d[3]);let s;for(s=0;s<p.length;s+=1){const h=R(d,p,s);f[s]?f[s].p(h,y):(f[s]=V(h),f[s].c(),f[s].m(m,null))}for(;s<f.length;s+=1)f[s].d(1);f.length=p.length}y[0]&1025&&u!==(u="CasinoCollectionsProviders "+(d[10]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",u)},d(d){d&&e.detach(t),c&&c.d(),e.destroy_each(f,d),i[26](null),k()}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function E(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(v,m){e.insert(v,t,m),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[22]),e.listen(o,"click",i[23])],a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,e.run_all(g)}}}function pe(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function I(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function W(i){let t,l,r,o,a,g,v,m;function k(){return i[24](i[44])}let u=i[2]=="true"&&I(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),u&&u.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,p){e.insert(c,t,p),e.append(t,l),e.append(t,a),u&&u.m(t,null),e.append(t,g),v||(m=e.listen(l,"click",e.stop_propagation(k)),v=!0)},p(c,p){i=c,p[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),p[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?u?u.p(i,p):(u=I(i),u.c(),u.m(t,g)):u&&(u.d(1),u=null)},d(c){c&&e.detach(t),u&&u.d(),v=!1,m()}}}function V(i){let t,l,r,o,a,g,v,m,k;function u(s,h){if(s[1]=="logo")return ue;if(s[1]=="title")return pe}let c=u(i),p=c&&c(i),f=e.ensure_array_like(i[41].games),d=[];for(let s=0;s<f.length;s+=1)d[s]=W(U(i,f,s));function y(){return i[25](i[41])}return{c(){var s,h;t=e.element("div"),l=e.element("div"),r=e.element("div"),p&&p.c(),o=e.space(),a=e.element("div");for(let _=0;_<d.length;_+=1)d[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((s=i[41])==null?void 0:s.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((h=i[41])==null?void 0:h.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(s,h){e.insert(s,t,h),e.append(t,l),e.append(l,r),p&&p.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<d.length;_+=1)d[_]&&d[_].m(a,null);e.append(t,v),m||(k=e.listen(l,"click",y),m=!0)},p(s,h){var _,P;if(i=s,c===(c=u(i))&&p?p.p(i,h):(p&&p.d(1),p=c&&c(i),p&&(p.c(),p.m(r,null))),h[0]&16396){f=e.ensure_array_like(i[41].games);let b;for(b=0;b<f.length;b+=1){const G=U(i,f,b);d[b]?d[b].p(G,h):(d[b]=W(G),d[b].c(),d[b].m(a,null))}for(;b<d.length;b+=1)d[b].d(1);d.length=f.length}h[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),h[0]&8&&e.set_style(l,"background-image","url("+((P=i[41])==null?void 0:P.background)+")")},d(s){s&&e.detach(t),p&&p.d(),e.destroy_each(d,s),m=!1,k()}}}function fe(i){let t;function l(a,g){return a[7]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[28](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[28](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(11,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:m=""}=t,{clientstyling:k=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:p=""}=t,f=[],d=!0,y,s=0,h=0,_=0,P,b,G,K=window.navigator.userAgent,M,L=0;const Z=()=>{fetch(c).then(C=>C.json()).then(C=>{Object.keys(C).forEach(w=>{N(w,C[w])})}).catch(C=>{console.log(C)})};Object.keys(q).forEach(n=>{N(n,q[n])});const J=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),fetch(n.href).then(C=>C.json()).then(C=>{l(7,d=!1);let w=C.items.filter(S=>S.flags==v);l(3,f=w.map(S=>{var O,B,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(B=(O=S.vendors)==null?void 0:O.items[0])==null?void 0:B.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}})),l(8,h=f.length)})},j=n=>{b=[...y.children],b.forEach((C,w)=>{C.style.transform=`translateX(${100*(n?w-n:w)}%)`}),P=b[0].getBoundingClientRect().width,X()},X=()=>{l(9,_=Math.floor(L/P))},T=()=>{j(s)},x=()=>{s===0?s=h-_:s-_<-1?s=0:s--,T()},F=()=>{s===h-_?s=0:h-_<s+1?s=h-_:s++,T()},z=(n,C,w,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:w,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${w}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},Y=()=>{se(g)},Q=()=>{let n=document.createElement("style");n.innerHTML=k,G.appendChild(n)},$=()=>{let n=new URL(u),C=document.createElement("style");fetch(n.href).then(w=>w.text()).then(w=>{C.innerHTML=w,setTimeout(()=>{G.appendChild(C)},1)})};e.onMount(()=>{l(10,M=e.isMobile(K))});const ee=()=>x(),te=()=>F(),ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{y=n,l(4,y)})}function oe(){L=this.clientWidth,l(6,L)}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(16,o=n.endpoint),"datasource"in n&&l(17,a=n.datasource),"lang"in n&&l(18,g=n.lang),"type"in n&&l(0,v=n.type),"titletype"in n&&l(1,m=n.titletype),"clientstyling"in n&&l(19,k=n.clientstyling),"clientstylingurl"in n&&l(20,u=n.clientstylingurl),"translationurl"in n&&l(21,c=n.translationurl),"collectionprovidersgamenames"in n&&l(2,p=n.collectionprovidersgamenames)},i.$$.update=()=>{i.$$.dirty[0]&458752&&o&&a&&g&&J(),i.$$.dirty[0]&88&&L&&f&&y&&j(),i.$$.dirty[0]&262144&&g&&Y(),i.$$.dirty[0]&524320&&k&&G&&Q(),i.$$.dirty[0]&1048608&&u&&G&&$(),i.$$.dirty[0]&2097152&&c&&Z()},[v,m,p,f,y,G,L,d,h,_,M,r,x,F,z,H,o,a,g,k,u,c,ee,te,ie,le,ne,oe,re]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,fe,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},de,[-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;