@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,641 @@
1
+ import { $ as O, a as pe, I as he, S as ye, i as _e, f as F, c as be, s as we, b as Ge, e as b, q as L, u as r, d as C, v as f, w as A, h as D, t as E, g as Re, j as T, J as ve, n as ke, x as xe, y as Me, z as Fe, p as U, r as B, G as q, A as J, B as Le, D as P, F as Ce, k as Te, L as Se, m as Ie, E as V, C as We, R as je, O as Ne } from "./CasinoCalendar-3HRZGpnG.js";
2
+ function ze({ withLocale: a, translations: e }) {
3
+ O.subscribe((t) => {
4
+ t == null && (pe.set(e), O.set(a));
5
+ });
6
+ }
7
+ function Z(a, e) {
8
+ he(a, e);
9
+ }
10
+ function Be(a) {
11
+ O.set(a);
12
+ }
13
+ const K = {
14
+ en: {
15
+ playRandomGame: "Play a random game",
16
+ randomGameLoading: "Selecting ...",
17
+ playNowRandomGame: "Play Now",
18
+ noGames: "There are no random games to play"
19
+ },
20
+ "zh-hk": {
21
+ playRandomGame: "玩隨機遊戲",
22
+ randomGameLoading: "選擇...",
23
+ playNowRandomGame: "現在播放",
24
+ noGames: "There are no random games to play"
25
+ },
26
+ de: {
27
+ playRandomGame: "Spiel ein Zufallsspiel",
28
+ randomGameLoading: "Auswahl läuft",
29
+ playNowRandomGame: "Jetzt spielen",
30
+ noGames: "There are no random games to play"
31
+ },
32
+ fr: {
33
+ playRandomGame: "Jouer à un jeu aléatoire",
34
+ randomGameLoading: "Sélectinner ...",
35
+ playNowRandomGame: "Jouer maintenant",
36
+ noGames: "There are no random games to play"
37
+ },
38
+ ro: {
39
+ playRandomGame: "Joaca-te un joc aleatoriu",
40
+ randomGameLoading: "Se selecteaza ...",
41
+ playNowRandomGame: "Joaca-te Acum",
42
+ noGames: "Nu exista jocuri aleatorii de jucat"
43
+ },
44
+ tr: {
45
+ playRandomGame: "Oynamak için doğru oyunun adını yazın.",
46
+ randomGameLoading: "Henüz son aramalar yok. Herhangi bir oyunu arayın.",
47
+ playNowRandomGame: "Son arama",
48
+ noGames: "Yükleniyor, lütfen bekleyin"
49
+ },
50
+ es: {
51
+ playRandomGame: "Juego aleatorio",
52
+ randomGameLoading: "Seleccionando…",
53
+ playNowRandomGame: "Juega Ya",
54
+ noGames: "There are no random games to play"
55
+ },
56
+ pt: {
57
+ playRandomGame: "Jogue um jogo aleatório",
58
+ randomGameLoading: "Selecionando ...",
59
+ playNowRandomGame: "Jogue agora",
60
+ noGames: "There are no random games to play"
61
+ },
62
+ hr: {
63
+ playRandomGame: "Igrajte nasumičnu igru",
64
+ randomGameLoading: "Odabir...",
65
+ playNowRandomGame: "Igraj sada",
66
+ noGames: "Nema nasumičnih igara za igranje"
67
+ },
68
+ "pt-br": {
69
+ playRandomGame: "Jogue um jogo aleatório",
70
+ randomGameCarregando: "Selecionando...",
71
+ playNowRandomGame: "Jogue agora",
72
+ noGames: "There are no random games to play"
73
+ },
74
+ "es-mx": {
75
+ playRandomGame: "Jugar un juego al azar",
76
+ randomGameCargando: "Seleccionando..",
77
+ playNowRandomGame: "Jugar ahora",
78
+ noGames: "There are no random games to play"
79
+ }
80
+ };
81
+ function Je(a) {
82
+ Ge(a, "svelte-15ssipt", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
83
+ }
84
+ function Q(a, e, t) {
85
+ const n = a.slice();
86
+ return n[38] = e[t], n[40] = t, n;
87
+ }
88
+ const De = (a) => ({}), X = (a) => ({});
89
+ function $(a) {
90
+ let e, t, n, o, m, u, p, h;
91
+ const g = (
92
+ /*#slots*/
93
+ a[22].close
94
+ ), l = ke(
95
+ g,
96
+ a,
97
+ /*$$scope*/
98
+ a[21],
99
+ X
100
+ ), y = l || Ae();
101
+ let s = !/*slotDone*/
102
+ a[7] && ee(a), c = (
103
+ /*slotDone*/
104
+ a[7] && ae(a)
105
+ );
106
+ return {
107
+ c() {
108
+ e = b("div"), t = b("div"), n = b("span"), y && y.c(), o = L(), s && s.c(), m = L(), c && c.c(), r(n, "class", "ModalCloseBtn"), r(n, "role", "button"), r(t, "class", "ModalContainer"), r(e, "class", "ModalWindow");
109
+ },
110
+ m(d, _) {
111
+ C(d, e, _), f(e, t), f(t, n), y && y.m(n, null), f(t, o), s && s.m(t, null), f(t, m), c && c.m(t, null), u = !0, p || (h = A(
112
+ n,
113
+ "click",
114
+ /*closeModal*/
115
+ a[12]
116
+ ), p = !0);
117
+ },
118
+ p(d, _) {
119
+ l && l.p && (!u || _[0] & /*$$scope*/
120
+ 2097152) && xe(
121
+ l,
122
+ g,
123
+ d,
124
+ /*$$scope*/
125
+ d[21],
126
+ u ? Fe(
127
+ g,
128
+ /*$$scope*/
129
+ d[21],
130
+ _,
131
+ De
132
+ ) : Me(
133
+ /*$$scope*/
134
+ d[21]
135
+ ),
136
+ X
137
+ ), /*slotDone*/
138
+ d[7] ? s && (s.d(1), s = null) : s ? s.p(d, _) : (s = ee(d), s.c(), s.m(t, m)), /*slotDone*/
139
+ d[7] ? c ? c.p(d, _) : (c = ae(d), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
140
+ },
141
+ i(d) {
142
+ u || (D(y, d), u = !0);
143
+ },
144
+ o(d) {
145
+ E(y, d), u = !1;
146
+ },
147
+ d(d) {
148
+ d && T(e), y && y.d(d), s && s.d(), c && c.d(), p = !1, h();
149
+ }
150
+ };
151
+ }
152
+ function Ae(a) {
153
+ let e, t;
154
+ return {
155
+ c() {
156
+ e = V("svg"), t = V("path"), r(t, "stroke-linecap", "round"), r(t, "stroke-linejoin", "round"), r(t, "stroke-width", "2"), r(t, "d", "M6 18L18 6M6 6l12 12"), r(e, "class", "w-6 h-6"), r(e, "fill", "none"), r(e, "stroke", "currentColor"), r(e, "viewBox", "0 0 24 24"), r(e, "xmlns", "http://www.w3.org/2000/svg");
157
+ },
158
+ m(n, o) {
159
+ C(n, e, o), f(e, t);
160
+ },
161
+ p: We,
162
+ d(n) {
163
+ n && T(e);
164
+ }
165
+ };
166
+ }
167
+ function ee(a) {
168
+ let e, t, n, o, m, u = (
169
+ /*$_*/
170
+ a[9]("randomGameLoading") + ""
171
+ ), p, h = U(
172
+ /*gamesToShow*/
173
+ a[4]
174
+ ), g = [];
175
+ for (let l = 0; l < h.length; l += 1)
176
+ g[l] = te(Q(a, h, l));
177
+ return {
178
+ c() {
179
+ e = b("div"), t = b("main"), n = b("div");
180
+ for (let l = 0; l < g.length; l += 1)
181
+ g[l].c();
182
+ o = L(), m = b("p"), p = B(u), r(n, "class", "items"), q(n, "transform", "translateY(" + /*offset*/
183
+ a[6] + "px)"), r(t, "class", "RandomGamesSliderWrapper"), r(m, "class", "RandomGameLoading"), r(e, "class", "RandomGameWrapper");
184
+ },
185
+ m(l, y) {
186
+ C(l, e, y), f(e, t), f(t, n);
187
+ for (let s = 0; s < g.length; s += 1)
188
+ g[s] && g[s].m(n, null);
189
+ f(e, o), f(e, m), f(m, p);
190
+ },
191
+ p(l, y) {
192
+ if (y[0] & /*gamesToShow*/
193
+ 16) {
194
+ h = U(
195
+ /*gamesToShow*/
196
+ l[4]
197
+ );
198
+ let s;
199
+ for (s = 0; s < h.length; s += 1) {
200
+ const c = Q(l, h, s);
201
+ g[s] ? g[s].p(c, y) : (g[s] = te(c), g[s].c(), g[s].m(n, null));
202
+ }
203
+ for (; s < g.length; s += 1)
204
+ g[s].d(1);
205
+ g.length = h.length;
206
+ }
207
+ y[0] & /*offset*/
208
+ 64 && q(n, "transform", "translateY(" + /*offset*/
209
+ l[6] + "px)"), y[0] & /*$_*/
210
+ 512 && u !== (u = /*$_*/
211
+ l[9]("randomGameLoading") + "") && J(p, u);
212
+ },
213
+ d(l) {
214
+ l && T(e), Le(g, l);
215
+ }
216
+ };
217
+ }
218
+ function te(a) {
219
+ let e, t, n, o, m, u;
220
+ return {
221
+ c() {
222
+ e = b("div"), t = b("img"), u = L(), r(t, "class", "RandomGameImage"), P(t.src, n = /*game*/
223
+ a[38].thumbnail) || r(t, "src", n), r(t, "alt", o = /*game*/
224
+ a[38].name), r(t, "title", m = /*game*/
225
+ a[38].name), r(e, "class", "item");
226
+ },
227
+ m(p, h) {
228
+ C(p, e, h), f(e, t), f(e, u);
229
+ },
230
+ p(p, h) {
231
+ h[0] & /*gamesToShow*/
232
+ 16 && !P(t.src, n = /*game*/
233
+ p[38].thumbnail) && r(t, "src", n), h[0] & /*gamesToShow*/
234
+ 16 && o !== (o = /*game*/
235
+ p[38].name) && r(t, "alt", o), h[0] & /*gamesToShow*/
236
+ 16 && m !== (m = /*game*/
237
+ p[38].name) && r(t, "title", m);
238
+ },
239
+ d(p) {
240
+ p && T(e);
241
+ }
242
+ };
243
+ }
244
+ function ae(a) {
245
+ let e;
246
+ function t(m, u) {
247
+ return (
248
+ /*hasRandomGames*/
249
+ m[8] ? He : Pe
250
+ );
251
+ }
252
+ let n = t(a), o = n(a);
253
+ return {
254
+ c() {
255
+ o.c(), e = Ce();
256
+ },
257
+ m(m, u) {
258
+ o.m(m, u), C(m, e, u);
259
+ },
260
+ p(m, u) {
261
+ n === (n = t(m)) && o ? o.p(m, u) : (o.d(1), o = n(m), o && (o.c(), o.m(e.parentNode, e)));
262
+ },
263
+ d(m) {
264
+ m && T(e), o.d(m);
265
+ }
266
+ };
267
+ }
268
+ function Pe(a) {
269
+ let e, t = (
270
+ /*$_*/
271
+ a[9]("noGames") + ""
272
+ ), n;
273
+ return {
274
+ c() {
275
+ e = b("p"), n = B(t), r(e, "class", "RandomGameLoading");
276
+ },
277
+ m(o, m) {
278
+ C(o, e, m), f(e, n);
279
+ },
280
+ p(o, m) {
281
+ m[0] & /*$_*/
282
+ 512 && t !== (t = /*$_*/
283
+ o[9]("noGames") + "") && J(n, t);
284
+ },
285
+ d(o) {
286
+ o && T(e);
287
+ }
288
+ };
289
+ }
290
+ function He(a) {
291
+ let e, t, n, o, m, u, p, h, g, l, y, s = (
292
+ /*randomGame*/
293
+ a[3].name + ""
294
+ ), c, d, _, k = (
295
+ /*randomGame*/
296
+ a[3].vendor.name + ""
297
+ ), R, S, v, I = (
298
+ /*$_*/
299
+ a[9]("playNowRandomGame") + ""
300
+ ), N, W, j;
301
+ return {
302
+ c() {
303
+ e = b("div"), t = b("div"), n = b("img"), p = L(), h = b("button"), h.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
304
+ </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, g = L(), l = b("div"), y = b("p"), c = B(s), d = L(), _ = b("p"), R = B(k), S = L(), v = b("button"), N = B(I), r(n, "class", "RandomGameImage"), P(n.src, o = /*randomGame*/
305
+ a[3].thumbnail) || r(n, "src", o), r(n, "alt", m = /*randomGame*/
306
+ a[3].name), r(n, "title", u = /*randomGame*/
307
+ a[3].name), r(h, "class", "RandomTryAgain"), r(t, "class", "item"), r(y, "class", "RandomGameTitle"), r(_, "class", "RandomGameVendor"), r(v, "class", "RandomGamePlay"), r(l, "class", "RandomGameDetails"), r(e, "class", "RandomGameWrapper");
308
+ },
309
+ m(G, x) {
310
+ C(G, e, x), f(e, t), f(t, n), f(t, p), f(t, h), f(e, g), f(e, l), f(l, y), f(y, c), f(l, d), f(l, _), f(_, R), f(l, S), f(l, v), f(v, N), W || (j = [
311
+ A(
312
+ h,
313
+ "click",
314
+ /*click_handler*/
315
+ a[23]
316
+ ),
317
+ A(
318
+ v,
319
+ "click",
320
+ /*click_handler_1*/
321
+ a[24]
322
+ )
323
+ ], W = !0);
324
+ },
325
+ p(G, x) {
326
+ x[0] & /*randomGame*/
327
+ 8 && !P(n.src, o = /*randomGame*/
328
+ G[3].thumbnail) && r(n, "src", o), x[0] & /*randomGame*/
329
+ 8 && m !== (m = /*randomGame*/
330
+ G[3].name) && r(n, "alt", m), x[0] & /*randomGame*/
331
+ 8 && u !== (u = /*randomGame*/
332
+ G[3].name) && r(n, "title", u), x[0] & /*randomGame*/
333
+ 8 && s !== (s = /*randomGame*/
334
+ G[3].name + "") && J(c, s), x[0] & /*randomGame*/
335
+ 8 && k !== (k = /*randomGame*/
336
+ G[3].vendor.name + "") && J(R, k), x[0] & /*$_*/
337
+ 512 && I !== (I = /*$_*/
338
+ G[9]("playNowRandomGame") + "") && J(N, I);
339
+ },
340
+ d(G) {
341
+ G && T(e), W = !1, je(j);
342
+ }
343
+ };
344
+ }
345
+ function Oe(a) {
346
+ let e, t = (
347
+ /*$_*/
348
+ a[9]("playRandomGame") + ""
349
+ ), n;
350
+ return {
351
+ c() {
352
+ e = b("span"), n = B(t), r(e, "class", "RandomButtonText");
353
+ },
354
+ m(o, m) {
355
+ C(o, e, m), f(e, n);
356
+ },
357
+ p(o, m) {
358
+ m[0] & /*$_*/
359
+ 512 && t !== (t = /*$_*/
360
+ o[9]("playRandomGame") + "") && J(n, t);
361
+ },
362
+ d(o) {
363
+ o && T(e);
364
+ }
365
+ };
366
+ }
367
+ function Ee(a) {
368
+ let e, t;
369
+ return {
370
+ c() {
371
+ e = b("span"), t = B(
372
+ /*buttontext*/
373
+ a[1]
374
+ ), r(e, "class", "RandomButtonText");
375
+ },
376
+ m(n, o) {
377
+ C(n, e, o), f(e, t);
378
+ },
379
+ p(n, o) {
380
+ o[0] & /*buttontext*/
381
+ 2 && J(
382
+ t,
383
+ /*buttontext*/
384
+ n[1]
385
+ );
386
+ },
387
+ d(n) {
388
+ n && T(e);
389
+ }
390
+ };
391
+ }
392
+ function Ye(a) {
393
+ let e, t, n, o, m, u, p, h, g, l = (
394
+ /*show*/
395
+ a[5] && $(a)
396
+ );
397
+ function y(d, _) {
398
+ if (
399
+ /*buttontext*/
400
+ d[1]
401
+ ) return Ee;
402
+ if (!/*buttontext*/
403
+ d[1]) return Oe;
404
+ }
405
+ let s = y(a), c = s && s(a);
406
+ return {
407
+ c() {
408
+ e = b("div"), l && l.c(), t = L(), n = b("div"), o = b("button"), c && c.c(), m = L(), u = b("span"), r(u, "class", "RandomButtonIcon"), r(o, "class", "RandomButton"), r(n, "class", "RandomButtonWrapper"), r(e, "part", "CustomStylingContainer");
409
+ },
410
+ m(d, _) {
411
+ C(d, e, _), l && l.m(e, null), f(e, t), f(e, n), f(n, o), c && c.m(o, null), f(o, m), f(o, u), u.innerHTML = /*randombuttonicon*/
412
+ a[0], a[26](e), p = !0, h || (g = A(
413
+ o,
414
+ "click",
415
+ /*click_handler_2*/
416
+ a[25]
417
+ ), h = !0);
418
+ },
419
+ p(d, _) {
420
+ /*show*/
421
+ d[5] ? l ? (l.p(d, _), _[0] & /*show*/
422
+ 32 && D(l, 1)) : (l = $(d), l.c(), D(l, 1), l.m(e, t)) : l && (Te(), E(l, 1, 1, () => {
423
+ l = null;
424
+ }), Re()), s === (s = y(d)) && c ? c.p(d, _) : (c && c.d(1), c = s && s(d), c && (c.c(), c.m(o, m))), (!p || _[0] & /*randombuttonicon*/
425
+ 1) && (u.innerHTML = /*randombuttonicon*/
426
+ d[0]);
427
+ },
428
+ i(d) {
429
+ p || (D(l), p = !0);
430
+ },
431
+ o(d) {
432
+ E(l), p = !1;
433
+ },
434
+ d(d) {
435
+ d && T(e), l && l.d(), c && c.d(), a[26](null), h = !1, g();
436
+ }
437
+ };
438
+ }
439
+ function Ue(a, e, t) {
440
+ let n;
441
+ ve(a, Ne, (i) => t(9, n = i));
442
+ let { $$slots: o = {}, $$scope: m } = e, { endpoint: u = "" } = e, { datasource: p = "" } = e, { gameevent: h = "" } = e, { lang: g = "" } = e, { randombuttonicon: l = "" } = e, { buttontext: y = "" } = e, { translationurl: s = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: d = "" } = e, { filteredrandomgamecategories: _ = "" } = e, k = [], R = "", S, v = !1, I = 0, N = 0, W = !1, j = !1, G, x = window.navigator.userAgent, z;
443
+ ze({ withLocale: "en", translations: {} });
444
+ const ne = () => {
445
+ fetch(s).then((w) => w.json()).then((w) => {
446
+ Object.keys(w).forEach((M) => {
447
+ Z(M, w[M]);
448
+ });
449
+ }).catch((w) => {
450
+ console.log(w);
451
+ });
452
+ };
453
+ Object.keys(K).forEach((i) => {
454
+ Z(i, K[i]);
455
+ });
456
+ const oe = () => {
457
+ t(4, S = le(S)), t(6, I = 0), N = 0, t(7, W = !1), t(3, R = k[Math.floor(Math.random() * k.length)]), t(5, v = !0);
458
+ }, H = (i) => {
459
+ j ? (oe(), clearInterval(G), G = setInterval(
460
+ () => {
461
+ t(6, I -= 75), N++, N == 20 && (t(7, W = !0), clearInterval(G));
462
+ },
463
+ 150
464
+ )) : (t(5, v = !0), t(7, W = !0)), i && typeof gtag == "function" && gtag("event", "RefreshRandomGame", {
465
+ context: "RandomGameWidget",
466
+ gameId: `${R.gId || R.id}`
467
+ }), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href);
468
+ }, le = (i) => {
469
+ let w = i.length, M;
470
+ for (; w != 0; )
471
+ M = Math.floor(Math.random() * w), w--, [i[w], i[M]] = [i[M], i[w]];
472
+ return i;
473
+ }, Y = () => {
474
+ window.postMessage(
475
+ {
476
+ type: h,
477
+ gameId: R.gId || R.id
478
+ },
479
+ window.location.href
480
+ ), t(5, v = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
481
+ context: "RandomGameWidget",
482
+ gameId: `${R.gId || R.id}`
483
+ });
484
+ }, ie = () => {
485
+ t(5, v = !1), window.postMessage({ type: "RandomWidgetState", state: v }, window.location.href);
486
+ }, se = () => {
487
+ let i = new URL(`${u}/v1/casino/games`);
488
+ i.searchParams.append("platform", Se(x)), i.searchParams.append("datasource", p), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), _ && i.searchParams.append("filter", `groups=${_}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((w) => w.json()).then((w) => {
489
+ k = w.items, k.length ? (t(4, S = k.slice(0, 19)), t(8, j = !0)) : (t(4, S = []), t(8, j = !1));
490
+ }).catch((w) => {
491
+ console.log(w), t(8, j = !1);
492
+ });
493
+ }, re = () => {
494
+ Be(g);
495
+ }, me = () => {
496
+ let i = document.createElement("style");
497
+ i.innerHTML = c, z.appendChild(i);
498
+ }, de = () => {
499
+ let i = new URL(d), w = document.createElement("style");
500
+ fetch(i.href).then((M) => M.text()).then((M) => {
501
+ w.innerHTML = M, setTimeout(
502
+ () => {
503
+ z.appendChild(w);
504
+ },
505
+ 1
506
+ );
507
+ });
508
+ }, ce = () => H(!0), ue = () => Y(), fe = () => H();
509
+ function ge(i) {
510
+ Ie[i ? "unshift" : "push"](() => {
511
+ z = i, t(2, z);
512
+ });
513
+ }
514
+ return a.$$set = (i) => {
515
+ "endpoint" in i && t(13, u = i.endpoint), "datasource" in i && t(14, p = i.datasource), "gameevent" in i && t(15, h = i.gameevent), "lang" in i && t(16, g = i.lang), "randombuttonicon" in i && t(0, l = i.randombuttonicon), "buttontext" in i && t(1, y = i.buttontext), "translationurl" in i && t(17, s = i.translationurl), "clientstyling" in i && t(18, c = i.clientstyling), "clientstylingurl" in i && t(19, d = i.clientstylingurl), "filteredrandomgamecategories" in i && t(20, _ = i.filteredrandomgamecategories), "$$scope" in i && t(21, m = i.$$scope);
516
+ }, a.$$.update = () => {
517
+ a.$$.dirty[0] & /*lang*/
518
+ 65536 && g && re(), a.$$.dirty[0] & /*translationurl*/
519
+ 131072 && s && ne(), a.$$.dirty[0] & /*endpoint, datasource*/
520
+ 24576 && u && p && se(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
521
+ 262148 && c && z && me(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
522
+ 524292 && d && z && de();
523
+ }, [
524
+ l,
525
+ y,
526
+ z,
527
+ R,
528
+ S,
529
+ v,
530
+ I,
531
+ W,
532
+ j,
533
+ n,
534
+ H,
535
+ Y,
536
+ ie,
537
+ u,
538
+ p,
539
+ h,
540
+ g,
541
+ s,
542
+ c,
543
+ d,
544
+ _,
545
+ m,
546
+ o,
547
+ ce,
548
+ ue,
549
+ fe,
550
+ ge
551
+ ];
552
+ }
553
+ class qe extends ye {
554
+ constructor(e) {
555
+ super(), _e(
556
+ this,
557
+ e,
558
+ Ue,
559
+ Ye,
560
+ we,
561
+ {
562
+ endpoint: 13,
563
+ datasource: 14,
564
+ gameevent: 15,
565
+ lang: 16,
566
+ randombuttonicon: 0,
567
+ buttontext: 1,
568
+ translationurl: 17,
569
+ clientstyling: 18,
570
+ clientstylingurl: 19,
571
+ filteredrandomgamecategories: 20
572
+ },
573
+ Je,
574
+ [-1, -1]
575
+ );
576
+ }
577
+ get endpoint() {
578
+ return this.$$.ctx[13];
579
+ }
580
+ set endpoint(e) {
581
+ this.$$set({ endpoint: e }), F();
582
+ }
583
+ get datasource() {
584
+ return this.$$.ctx[14];
585
+ }
586
+ set datasource(e) {
587
+ this.$$set({ datasource: e }), F();
588
+ }
589
+ get gameevent() {
590
+ return this.$$.ctx[15];
591
+ }
592
+ set gameevent(e) {
593
+ this.$$set({ gameevent: e }), F();
594
+ }
595
+ get lang() {
596
+ return this.$$.ctx[16];
597
+ }
598
+ set lang(e) {
599
+ this.$$set({ lang: e }), F();
600
+ }
601
+ get randombuttonicon() {
602
+ return this.$$.ctx[0];
603
+ }
604
+ set randombuttonicon(e) {
605
+ this.$$set({ randombuttonicon: e }), F();
606
+ }
607
+ get buttontext() {
608
+ return this.$$.ctx[1];
609
+ }
610
+ set buttontext(e) {
611
+ this.$$set({ buttontext: e }), F();
612
+ }
613
+ get translationurl() {
614
+ return this.$$.ctx[17];
615
+ }
616
+ set translationurl(e) {
617
+ this.$$set({ translationurl: e }), F();
618
+ }
619
+ get clientstyling() {
620
+ return this.$$.ctx[18];
621
+ }
622
+ set clientstyling(e) {
623
+ this.$$set({ clientstyling: e }), F();
624
+ }
625
+ get clientstylingurl() {
626
+ return this.$$.ctx[19];
627
+ }
628
+ set clientstylingurl(e) {
629
+ this.$$set({ clientstylingurl: e }), F();
630
+ }
631
+ get filteredrandomgamecategories() {
632
+ return this.$$.ctx[20];
633
+ }
634
+ set filteredrandomgamecategories(e) {
635
+ this.$$set({ filteredrandomgamecategories: e }), F();
636
+ }
637
+ }
638
+ be(qe, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
639
+ export {
640
+ qe as default
641
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function ee({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function j(n,t){e.addMessages(n,t)}function te(n){e.$locale.set(n)}const I={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"}};function ae(n){e.append_styles(n,"svelte-15ssipt","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}")}function N(n,t,a){const o=n.slice();return o[38]=t[a],o[40]=a,o}const ne=n=>({}),z=n=>({});function B(n){let t,a,o,l,d,u,f,g;const p=n[22].close,i=e.create_slot(p,n,n[21],z),h=i||oe();let s=!n[7]&&J(n),c=n[7]&&P(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),h&&h.c(),l=e.space(),s&&s.c(),d=e.space(),c&&c.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(m,_){e.insert(m,t,_),e.append(t,a),e.append(a,o),h&&h.m(o,null),e.append(a,l),s&&s.m(a,null),e.append(a,d),c&&c.m(a,null),u=!0,f||(g=e.listen(o,"click",n[12]),f=!0)},p(m,_){i&&i.p&&(!u||_[0]&2097152)&&e.update_slot_base(i,p,m,m[21],u?e.get_slot_changes(p,m[21],_,ne):e.get_all_dirty_from_scope(m[21]),z),m[7]?s&&(s.d(1),s=null):s?s.p(m,_):(s=J(m),s.c(),s.m(a,d)),m[7]?c?c.p(m,_):(c=P(m),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},i(m){u||(e.transition_in(h,m),u=!0)},o(m){e.transition_out(h,m),u=!1},d(m){m&&e.detach(t),h&&h.d(m),s&&s.d(),c&&c.d(),f=!1,g()}}}function oe(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,l){e.insert(o,t,l),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function J(n){let t,a,o,l,d,u=n[9]("randomGameLoading")+"",f,g=e.ensure_array_like(n[4]),p=[];for(let i=0;i<g.length;i+=1)p[i]=D(N(n,g,i));return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let i=0;i<p.length;i+=1)p[i].c();l=e.space(),d=e.element("p"),f=e.text(u),e.attr(o,"class","items"),e.set_style(o,"transform","translateY("+n[6]+"px)"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(d,"class","RandomGameLoading"),e.attr(t,"class","RandomGameWrapper")},m(i,h){e.insert(i,t,h),e.append(t,a),e.append(a,o);for(let s=0;s<p.length;s+=1)p[s]&&p[s].m(o,null);e.append(t,l),e.append(t,d),e.append(d,f)},p(i,h){if(h[0]&16){g=e.ensure_array_like(i[4]);let s;for(s=0;s<g.length;s+=1){const c=N(i,g,s);p[s]?p[s].p(c,h):(p[s]=D(c),p[s].c(),p[s].m(o,null))}for(;s<p.length;s+=1)p[s].d(1);p.length=g.length}h[0]&64&&e.set_style(o,"transform","translateY("+i[6]+"px)"),h[0]&512&&u!==(u=i[9]("randomGameLoading")+"")&&e.set_data(f,u)},d(i){i&&e.detach(t),e.destroy_each(p,i)}}}function D(n){let t,a,o,l,d,u;return{c(){t=e.element("div"),a=e.element("img"),u=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[38].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",l=n[38].name),e.attr(a,"title",d=n[38].name),e.attr(t,"class","item")},m(f,g){e.insert(f,t,g),e.append(t,a),e.append(t,u)},p(f,g){g[0]&16&&!e.src_url_equal(a.src,o=f[38].thumbnail)&&e.attr(a,"src",o),g[0]&16&&l!==(l=f[38].name)&&e.attr(a,"alt",l),g[0]&16&&d!==(d=f[38].name)&&e.attr(a,"title",d)},d(f){f&&e.detach(t)}}}function P(n){let t;function a(d,u){return d[8]?ie:le}let o=a(n),l=o(n);return{c(){l.c(),t=e.empty()},m(d,u){l.m(d,u),e.insert(d,t,u)},p(d,u){o===(o=a(d))&&l?l.p(d,u):(l.d(1),l=o(d),l&&(l.c(),l.m(t.parentNode,t)))},d(d){d&&e.detach(t),l.d(d)}}}function le(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(l,d){e.insert(l,t,d),e.append(t,o)},p(l,d){d[0]&512&&a!==(a=l[9]("noGames")+"")&&e.set_data(o,a)},d(l){l&&e.detach(t)}}}function ie(n){let t,a,o,l,d,u,f,g,p,i,h,s=n[3].name+"",c,m,_,R=n[3].vendor.name+"",w,k,G,M=n[9]("playNowRandomGame")+"",L,C,F;return{c(){t=e.element("div"),a=e.element("div"),o=e.element("img"),f=e.space(),g=e.element("button"),g.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
2
+ </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,p=e.space(),i=e.element("div"),h=e.element("p"),c=e.text(s),m=e.space(),_=e.element("p"),w=e.text(R),k=e.space(),G=e.element("button"),L=e.text(M),e.attr(o,"class","RandomGameImage"),e.src_url_equal(o.src,l=n[3].thumbnail)||e.attr(o,"src",l),e.attr(o,"alt",d=n[3].name),e.attr(o,"title",u=n[3].name),e.attr(g,"class","RandomTryAgain"),e.attr(a,"class","item"),e.attr(h,"class","RandomGameTitle"),e.attr(_,"class","RandomGameVendor"),e.attr(G,"class","RandomGamePlay"),e.attr(i,"class","RandomGameDetails"),e.attr(t,"class","RandomGameWrapper")},m(b,v){e.insert(b,t,v),e.append(t,a),e.append(a,o),e.append(a,f),e.append(a,g),e.append(t,p),e.append(t,i),e.append(i,h),e.append(h,c),e.append(i,m),e.append(i,_),e.append(_,w),e.append(i,k),e.append(i,G),e.append(G,L),C||(F=[e.listen(g,"click",n[23]),e.listen(G,"click",n[24])],C=!0)},p(b,v){v[0]&8&&!e.src_url_equal(o.src,l=b[3].thumbnail)&&e.attr(o,"src",l),v[0]&8&&d!==(d=b[3].name)&&e.attr(o,"alt",d),v[0]&8&&u!==(u=b[3].name)&&e.attr(o,"title",u),v[0]&8&&s!==(s=b[3].name+"")&&e.set_data(c,s),v[0]&8&&R!==(R=b[3].vendor.name+"")&&e.set_data(w,R),v[0]&512&&M!==(M=b[9]("playNowRandomGame")+"")&&e.set_data(L,M)},d(b){b&&e.detach(t),C=!1,e.run_all(F)}}}function re(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(l,d){e.insert(l,t,d),e.append(t,o)},p(l,d){d[0]&512&&a!==(a=l[9]("playRandomGame")+"")&&e.set_data(o,a)},d(l){l&&e.detach(t)}}}function se(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,l){e.insert(o,t,l),e.append(t,a)},p(o,l){l[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function de(n){let t,a,o,l,d,u,f,g,p,i=n[5]&&B(n);function h(m,_){if(m[1])return se;if(!m[1])return re}let s=h(n),c=s&&s(n);return{c(){t=e.element("div"),i&&i.c(),a=e.space(),o=e.element("div"),l=e.element("button"),c&&c.c(),d=e.space(),u=e.element("span"),e.attr(u,"class","RandomButtonIcon"),e.attr(l,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper"),e.attr(t,"part","CustomStylingContainer")},m(m,_){e.insert(m,t,_),i&&i.m(t,null),e.append(t,a),e.append(t,o),e.append(o,l),c&&c.m(l,null),e.append(l,d),e.append(l,u),u.innerHTML=n[0],n[26](t),f=!0,g||(p=e.listen(l,"click",n[25]),g=!0)},p(m,_){m[5]?i?(i.p(m,_),_[0]&32&&e.transition_in(i,1)):(i=B(m),i.c(),e.transition_in(i,1),i.m(t,a)):i&&(e.group_outros(),e.transition_out(i,1,1,()=>{i=null}),e.check_outros()),s===(s=h(m))&&c?c.p(m,_):(c&&c.d(1),c=s&&s(m),c&&(c.c(),c.m(l,d))),(!f||_[0]&1)&&(u.innerHTML=m[0])},i(m){f||(e.transition_in(i),f=!0)},o(m){e.transition_out(i),f=!1},d(m){m&&e.detach(t),i&&i.d(),c&&c.d(),n[26](null),g=!1,p()}}}function me(n,t,a){let o;e.component_subscribe(n,e.$format,r=>a(9,o=r));let{$$slots:l={},$$scope:d}=t,{endpoint:u=""}=t,{datasource:f=""}=t,{gameevent:g=""}=t,{lang:p=""}=t,{randombuttonicon:i=""}=t,{buttontext:h=""}=t,{translationurl:s=""}=t,{clientstyling:c=""}=t,{clientstylingurl:m=""}=t,{filteredrandomgamecategories:_=""}=t,R=[],w="",k,G=!1,M=0,L=0,C=!1,F=!1,b,v=window.navigator.userAgent,T;ee({withLocale:"en",translations:{}});const H=()=>{fetch(s).then(y=>y.json()).then(y=>{Object.keys(y).forEach(x=>{j(x,y[x])})}).catch(y=>{console.log(y)})};Object.keys(I).forEach(r=>{j(r,I[r])});const O=()=>{a(4,k=q(k)),a(6,M=0),L=0,a(7,C=!1),a(3,w=R[Math.floor(Math.random()*R.length)]),a(5,G=!0)},S=r=>{F?(O(),clearInterval(b),b=setInterval(()=>{a(6,M-=75),L++,L==20&&(a(7,C=!0),clearInterval(b))},150)):(a(5,G=!0),a(7,C=!0)),r&&typeof gtag=="function"&&gtag("event","RefreshRandomGame",{context:"RandomGameWidget",gameId:`${w.gId||w.id}`}),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href)},q=r=>{let y=r.length,x;for(;y!=0;)x=Math.floor(Math.random()*y),y--,[r[y],r[x]]=[r[x],r[y]];return r},W=()=>{window.postMessage({type:g,gameId:w.gId||w.id},window.location.href),a(5,G=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${w.gId||w.id}`})},Y=()=>{a(5,G=!1),window.postMessage({type:"RandomWidgetState",state:G},window.location.href)},E=()=>{let r=new URL(`${u}/v1/casino/games`);r.searchParams.append("platform",e.getDevice(v)),r.searchParams.append("datasource",f),r.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),_&&r.searchParams.append("filter",`groups=${_}`),r.searchParams.append("expand","categories,vendor"),r.searchParams.append("pagination","offset=0,limit=1000"),fetch(r.href).then(y=>y.json()).then(y=>{R=y.items,R.length?(a(4,k=R.slice(0,19)),a(8,F=!0)):(a(4,k=[]),a(8,F=!1))}).catch(y=>{console.log(y),a(8,F=!1)})},U=()=>{te(p)},V=()=>{let r=document.createElement("style");r.innerHTML=c,T.appendChild(r)},Z=()=>{let r=new URL(m),y=document.createElement("style");fetch(r.href).then(x=>x.text()).then(x=>{y.innerHTML=x,setTimeout(()=>{T.appendChild(y)},1)})},K=()=>S(!0),Q=()=>W(),X=()=>S();function $(r){e.binding_callbacks[r?"unshift":"push"](()=>{T=r,a(2,T)})}return n.$$set=r=>{"endpoint"in r&&a(13,u=r.endpoint),"datasource"in r&&a(14,f=r.datasource),"gameevent"in r&&a(15,g=r.gameevent),"lang"in r&&a(16,p=r.lang),"randombuttonicon"in r&&a(0,i=r.randombuttonicon),"buttontext"in r&&a(1,h=r.buttontext),"translationurl"in r&&a(17,s=r.translationurl),"clientstyling"in r&&a(18,c=r.clientstyling),"clientstylingurl"in r&&a(19,m=r.clientstylingurl),"filteredrandomgamecategories"in r&&a(20,_=r.filteredrandomgamecategories),"$$scope"in r&&a(21,d=r.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&p&&U(),n.$$.dirty[0]&131072&&s&&H(),n.$$.dirty[0]&24576&&u&&f&&E(),n.$$.dirty[0]&262148&&c&&T&&V(),n.$$.dirty[0]&524292&&m&&T&&Z()},[i,h,T,w,k,G,M,C,F,o,S,W,Y,u,f,g,p,s,c,m,_,d,l,K,Q,X,$]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,de,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},ae,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}}e.create_custom_element(A,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{}},["close"],[],!0);exports.default=A;