@everymatrix/casino-lobby 1.0.69 → 1.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/components/CasinoCalendar-1k0BBA2l.js +5133 -0
  2. package/components/CasinoCalendar-BWBvGSII.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-BJKIAkbG.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-DgCaDV2E.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-C_l5_Cbi.cjs +1 -0
  6. package/components/CasinoCalendarDailyItem-TzcXj_xp.js +228 -0
  7. package/components/CasinoCategoriesSlider-DOK-1TsD.cjs +1 -0
  8. package/components/CasinoCategoriesSlider-H9kgmTPC.js +597 -0
  9. package/components/CasinoCollectionsProviders-CTMcJfG2.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-DcAD0Be0.js +624 -0
  11. package/components/CasinoFavoritesSection-BZ_XLRmR.cjs +1 -0
  12. package/components/CasinoFavoritesSection-DH6BKL3S.js +418 -0
  13. package/components/CasinoFilter-D7CEXK-l.cjs +1 -0
  14. package/components/CasinoFilter-ud_GEK1c.js +628 -0
  15. package/components/CasinoGamePage-CCUgU-We.js +4282 -0
  16. package/components/CasinoGamePage-DWdj6K_K.cjs +18 -0
  17. package/components/CasinoGameThumbnail-C1lv7WRh.js +1823 -0
  18. package/components/CasinoGameThumbnail-d4TgneFz.cjs +38 -0
  19. package/components/CasinoGamesCategorySection-BHD5W6Ng.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Exr1MKB1.js +3018 -0
  21. package/components/CasinoJackpotBanner-BFf1l5SE.cjs +1 -0
  22. package/components/CasinoJackpotBanner-CQopUNVw.js +619 -0
  23. package/components/CasinoLastPlayedSection-CT0J4KWo.cjs +1 -0
  24. package/components/CasinoLastPlayedSection-Cg5CoSZQ.js +563 -0
  25. package/components/CasinoLobby-CQ5QQCC5.js +2341 -0
  26. package/components/CasinoLobby-CeXBQomU.cjs +1 -0
  27. package/components/CasinoModal-DRQwRcHh.cjs +1 -0
  28. package/components/CasinoModal-tGpCX8AS.js +372 -0
  29. package/components/CasinoMostPlayedSection-DxHuPS1x.js +580 -0
  30. package/components/CasinoMostPlayedSection-mR65chYs.cjs +1 -0
  31. package/components/CasinoMyGames-BEQmLbuR.js +1313 -0
  32. package/components/CasinoMyGames-fIZN6Hwx.cjs +1 -0
  33. package/components/CasinoPage-B3P3Beyx.js +3525 -0
  34. package/components/CasinoPage-CV3pXWvT.cjs +1 -0
  35. package/components/CasinoRandomGame-BHTCDUvy.cjs +2 -0
  36. package/components/CasinoRandomGame-DVAINYig.js +641 -0
  37. package/components/CasinoSearch-CEyowN7y.cjs +1 -0
  38. package/components/CasinoSearch-DhJUhsQG.js +1066 -0
  39. package/components/CasinoSlider-C9caYXJM.js +803 -0
  40. package/components/CasinoSlider-CeyUOxE1.cjs +1 -0
  41. package/components/CasinoSort-BKpaIJVo.js +425 -0
  42. package/components/CasinoSort-C_BR2AM6.cjs +1 -0
  43. package/components/CasinoWinners-OIwhz7Uv.cjs +1 -0
  44. package/components/CasinoWinners-osa_wAsU.js +878 -0
  45. package/components/GeneralAnimationLoading-Bn_rjnZO.cjs +1 -0
  46. package/components/GeneralAnimationLoading-hP0Vi1pK.js +75 -0
  47. package/package.json +8 -7
@@ -0,0 +1,641 @@
1
+ import { $ as O, a as pe, I as be, S as he, i as ve, f as M, c as ke, s as xe, b as ye, e as k, r as F, d as r, g as L, v as f, w as A, j as D, t as E, h as _e, k as C, J as we, p as ze, x as Ge, y as Re, z as Me, q as U, u as B, G as q, A as J, B as Fe, D as P, F as Le, l as Ce, L as Te, n as Se, E as V, C as Ie, P as je, O as We } from "./CasinoCalendar-1k0BBA2l.js";
2
+ function Ne({ 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
+ be(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
+ ye(a, "svelte-zkb07x", ".svelte-zkb07x.svelte-zkb07x,.svelte-zkb07x.svelte-zkb07x::before,.svelte-zkb07x.svelte-zkb07x::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow.svelte-zkb07x.svelte-zkb07x{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow.svelte-zkb07x .ModalContainer.svelte-zkb07x{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.svelte-zkb07x .ModalCloseBtn.svelte-zkb07x{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.svelte-zkb07x .ModalCloseBtn svg.svelte-zkb07x{width:28px;height:28px}.ModalWindow.svelte-zkb07x .ModalCloseBtn.svelte-zkb07x:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow.svelte-zkb07x .ModalMobileContainer .ModalCloseBtn.svelte-zkb07x{margin:10px}.ModalWindow.svelte-zkb07x .ModalMobileContainer .ModalCloseBtn svg.svelte-zkb07x{width:24px;height:24px}.RandomGameWrapper.svelte-zkb07x.svelte-zkb07x{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper.svelte-zkb07x.svelte-zkb07x{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items.svelte-zkb07x.svelte-zkb07x{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading.svelte-zkb07x.svelte-zkb07x{padding:30px 0}.RandomGameImage.svelte-zkb07x.svelte-zkb07x{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain.svelte-zkb07x.svelte-zkb07x{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.svelte-zkb07x svg.svelte-zkb07x{width:22px;height:22px}.item.svelte-zkb07x.svelte-zkb07x{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails.svelte-zkb07x.svelte-zkb07x{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails.svelte-zkb07x .RandomGameTitle.svelte-zkb07x{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails.svelte-zkb07x .RandomGameVendor.svelte-zkb07x{font-size:10px;margin-bottom:10px}.RandomGameDetails.svelte-zkb07x .RandomGamePlay.svelte-zkb07x{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.svelte-zkb07x.svelte-zkb07x{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper.svelte-zkb07x .RandomButton.svelte-zkb07x{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, l, m, u, p, b;
91
+ const g = (
92
+ /*#slots*/
93
+ a[22].close
94
+ ), o = ze(
95
+ g,
96
+ a,
97
+ /*$$scope*/
98
+ a[21],
99
+ X
100
+ ), h = o || Ae();
101
+ let i = !/*slotDone*/
102
+ a[7] && ee(a), d = (
103
+ /*slotDone*/
104
+ a[7] && ae(a)
105
+ );
106
+ return {
107
+ c() {
108
+ e = k("div"), t = k("div"), n = k("span"), h && h.c(), l = F(), i && i.c(), m = F(), d && d.c(), r(n, "class", "ModalCloseBtn svelte-zkb07x"), r(n, "role", "button"), r(t, "class", "ModalContainer svelte-zkb07x"), r(e, "class", "ModalWindow svelte-zkb07x");
109
+ },
110
+ m(c, v) {
111
+ L(c, e, v), f(e, t), f(t, n), h && h.m(n, null), f(t, l), i && i.m(t, null), f(t, m), d && d.m(t, null), u = !0, p || (b = A(
112
+ n,
113
+ "click",
114
+ /*closeModal*/
115
+ a[12]
116
+ ), p = !0);
117
+ },
118
+ p(c, v) {
119
+ o && o.p && (!u || v[0] & /*$$scope*/
120
+ 2097152) && Ge(
121
+ o,
122
+ g,
123
+ c,
124
+ /*$$scope*/
125
+ c[21],
126
+ u ? Me(
127
+ g,
128
+ /*$$scope*/
129
+ c[21],
130
+ v,
131
+ De
132
+ ) : Re(
133
+ /*$$scope*/
134
+ c[21]
135
+ ),
136
+ X
137
+ ), /*slotDone*/
138
+ c[7] ? i && (i.d(1), i = null) : i ? i.p(c, v) : (i = ee(c), i.c(), i.m(t, m)), /*slotDone*/
139
+ c[7] ? d ? d.p(c, v) : (d = ae(c), d.c(), d.m(t, null)) : d && (d.d(1), d = null);
140
+ },
141
+ i(c) {
142
+ u || (D(h, c), u = !0);
143
+ },
144
+ o(c) {
145
+ E(h, c), u = !1;
146
+ },
147
+ d(c) {
148
+ c && C(e), h && h.d(c), i && i.d(), d && d.d(), p = !1, b();
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(t, "class", "svelte-zkb07x"), r(e, "class", "w-6 h-6 svelte-zkb07x"), 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, l) {
159
+ L(n, e, l), f(e, t);
160
+ },
161
+ p: Ie,
162
+ d(n) {
163
+ n && C(e);
164
+ }
165
+ };
166
+ }
167
+ function ee(a) {
168
+ let e, t, n, l, m, u = (
169
+ /*$_*/
170
+ a[9]("randomGameLoading") + ""
171
+ ), p, b = U(
172
+ /*gamesToShow*/
173
+ a[4]
174
+ ), g = [];
175
+ for (let o = 0; o < b.length; o += 1)
176
+ g[o] = te(Q(a, b, o));
177
+ return {
178
+ c() {
179
+ e = k("div"), t = k("main"), n = k("div");
180
+ for (let o = 0; o < g.length; o += 1)
181
+ g[o].c();
182
+ l = F(), m = k("p"), p = B(u), r(n, "class", "items svelte-zkb07x"), q(n, "transform", "translateY(" + /*offset*/
183
+ a[6] + "px)"), r(t, "class", "RandomGamesSliderWrapper svelte-zkb07x"), r(m, "class", "RandomGameLoading svelte-zkb07x"), r(e, "class", "RandomGameWrapper svelte-zkb07x");
184
+ },
185
+ m(o, h) {
186
+ L(o, e, h), f(e, t), f(t, n);
187
+ for (let i = 0; i < g.length; i += 1)
188
+ g[i] && g[i].m(n, null);
189
+ f(e, l), f(e, m), f(m, p);
190
+ },
191
+ p(o, h) {
192
+ if (h[0] & /*gamesToShow*/
193
+ 16) {
194
+ b = U(
195
+ /*gamesToShow*/
196
+ o[4]
197
+ );
198
+ let i;
199
+ for (i = 0; i < b.length; i += 1) {
200
+ const d = Q(o, b, i);
201
+ g[i] ? g[i].p(d, h) : (g[i] = te(d), g[i].c(), g[i].m(n, null));
202
+ }
203
+ for (; i < g.length; i += 1)
204
+ g[i].d(1);
205
+ g.length = b.length;
206
+ }
207
+ h[0] & /*offset*/
208
+ 64 && q(n, "transform", "translateY(" + /*offset*/
209
+ o[6] + "px)"), h[0] & /*$_*/
210
+ 512 && u !== (u = /*$_*/
211
+ o[9]("randomGameLoading") + "") && J(p, u);
212
+ },
213
+ d(o) {
214
+ o && C(e), Fe(g, o);
215
+ }
216
+ };
217
+ }
218
+ function te(a) {
219
+ let e, t, n, l, m, u;
220
+ return {
221
+ c() {
222
+ e = k("div"), t = k("img"), u = F(), r(t, "class", "RandomGameImage svelte-zkb07x"), P(t.src, n = /*game*/
223
+ a[38].thumbnail) || r(t, "src", n), r(t, "alt", l = /*game*/
224
+ a[38].name), r(t, "title", m = /*game*/
225
+ a[38].name), r(e, "class", "item svelte-zkb07x");
226
+ },
227
+ m(p, b) {
228
+ L(p, e, b), f(e, t), f(e, u);
229
+ },
230
+ p(p, b) {
231
+ b[0] & /*gamesToShow*/
232
+ 16 && !P(t.src, n = /*game*/
233
+ p[38].thumbnail) && r(t, "src", n), b[0] & /*gamesToShow*/
234
+ 16 && l !== (l = /*game*/
235
+ p[38].name) && r(t, "alt", l), b[0] & /*gamesToShow*/
236
+ 16 && m !== (m = /*game*/
237
+ p[38].name) && r(t, "title", m);
238
+ },
239
+ d(p) {
240
+ p && C(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), l = n(a);
253
+ return {
254
+ c() {
255
+ l.c(), e = Le();
256
+ },
257
+ m(m, u) {
258
+ l.m(m, u), L(m, e, u);
259
+ },
260
+ p(m, u) {
261
+ n === (n = t(m)) && l ? l.p(m, u) : (l.d(1), l = n(m), l && (l.c(), l.m(e.parentNode, e)));
262
+ },
263
+ d(m) {
264
+ m && C(e), l.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 = k("p"), n = B(t), r(e, "class", "RandomGameLoading svelte-zkb07x");
276
+ },
277
+ m(l, m) {
278
+ L(l, e, m), f(e, n);
279
+ },
280
+ p(l, m) {
281
+ m[0] & /*$_*/
282
+ 512 && t !== (t = /*$_*/
283
+ l[9]("noGames") + "") && J(n, t);
284
+ },
285
+ d(l) {
286
+ l && C(e);
287
+ }
288
+ };
289
+ }
290
+ function He(a) {
291
+ let e, t, n, l, m, u, p, b, g, o, h, i = (
292
+ /*randomGame*/
293
+ a[3].name + ""
294
+ ), d, c, v, z = (
295
+ /*randomGame*/
296
+ a[3].vendor.name + ""
297
+ ), _, T, w, S = (
298
+ /*$_*/
299
+ a[9]("playNowRandomGame") + ""
300
+ ), W, I, j;
301
+ return {
302
+ c() {
303
+ e = k("div"), t = k("div"), n = k("img"), p = F(), b = k("button"), b.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" class="svelte-zkb07x"><style type="text/css" class="svelte-zkb07x">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
304
+ </style><path class="st0 svelte-zkb07x" 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 = F(), o = k("div"), h = k("p"), d = B(i), c = F(), v = k("p"), _ = B(z), T = F(), w = k("button"), W = B(S), r(n, "class", "RandomGameImage svelte-zkb07x"), P(n.src, l = /*randomGame*/
305
+ a[3].thumbnail) || r(n, "src", l), r(n, "alt", m = /*randomGame*/
306
+ a[3].name), r(n, "title", u = /*randomGame*/
307
+ a[3].name), r(b, "class", "RandomTryAgain svelte-zkb07x"), r(t, "class", "item svelte-zkb07x"), r(h, "class", "RandomGameTitle svelte-zkb07x"), r(v, "class", "RandomGameVendor svelte-zkb07x"), r(w, "class", "RandomGamePlay svelte-zkb07x"), r(o, "class", "RandomGameDetails svelte-zkb07x"), r(e, "class", "RandomGameWrapper svelte-zkb07x");
308
+ },
309
+ m(y, G) {
310
+ L(y, e, G), f(e, t), f(t, n), f(t, p), f(t, b), f(e, g), f(e, o), f(o, h), f(h, d), f(o, c), f(o, v), f(v, _), f(o, T), f(o, w), f(w, W), I || (j = [
311
+ A(
312
+ b,
313
+ "click",
314
+ /*click_handler*/
315
+ a[23]
316
+ ),
317
+ A(
318
+ w,
319
+ "click",
320
+ /*click_handler_1*/
321
+ a[24]
322
+ )
323
+ ], I = !0);
324
+ },
325
+ p(y, G) {
326
+ G[0] & /*randomGame*/
327
+ 8 && !P(n.src, l = /*randomGame*/
328
+ y[3].thumbnail) && r(n, "src", l), G[0] & /*randomGame*/
329
+ 8 && m !== (m = /*randomGame*/
330
+ y[3].name) && r(n, "alt", m), G[0] & /*randomGame*/
331
+ 8 && u !== (u = /*randomGame*/
332
+ y[3].name) && r(n, "title", u), G[0] & /*randomGame*/
333
+ 8 && i !== (i = /*randomGame*/
334
+ y[3].name + "") && J(d, i), G[0] & /*randomGame*/
335
+ 8 && z !== (z = /*randomGame*/
336
+ y[3].vendor.name + "") && J(_, z), G[0] & /*$_*/
337
+ 512 && S !== (S = /*$_*/
338
+ y[9]("playNowRandomGame") + "") && J(W, S);
339
+ },
340
+ d(y) {
341
+ y && C(e), I = !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 = k("span"), n = B(t), r(e, "class", "RandomButtonText svelte-zkb07x");
353
+ },
354
+ m(l, m) {
355
+ L(l, e, m), f(e, n);
356
+ },
357
+ p(l, m) {
358
+ m[0] & /*$_*/
359
+ 512 && t !== (t = /*$_*/
360
+ l[9]("playRandomGame") + "") && J(n, t);
361
+ },
362
+ d(l) {
363
+ l && C(e);
364
+ }
365
+ };
366
+ }
367
+ function Ee(a) {
368
+ let e, t;
369
+ return {
370
+ c() {
371
+ e = k("span"), t = B(
372
+ /*buttontext*/
373
+ a[1]
374
+ ), r(e, "class", "RandomButtonText svelte-zkb07x");
375
+ },
376
+ m(n, l) {
377
+ L(n, e, l), f(e, t);
378
+ },
379
+ p(n, l) {
380
+ l[0] & /*buttontext*/
381
+ 2 && J(
382
+ t,
383
+ /*buttontext*/
384
+ n[1]
385
+ );
386
+ },
387
+ d(n) {
388
+ n && C(e);
389
+ }
390
+ };
391
+ }
392
+ function Ye(a) {
393
+ let e, t, n, l, m, u, p, b, g, o = (
394
+ /*show*/
395
+ a[5] && $(a)
396
+ );
397
+ function h(c, v) {
398
+ if (
399
+ /*buttontext*/
400
+ c[1]
401
+ ) return Ee;
402
+ if (!/*buttontext*/
403
+ c[1]) return Oe;
404
+ }
405
+ let i = h(a), d = i && i(a);
406
+ return {
407
+ c() {
408
+ e = k("div"), o && o.c(), t = F(), n = k("div"), l = k("button"), d && d.c(), m = F(), u = k("span"), r(u, "class", "RandomButtonIcon svelte-zkb07x"), r(l, "class", "RandomButton svelte-zkb07x"), r(n, "class", "RandomButtonWrapper svelte-zkb07x"), r(e, "part", "CustomStylingContainer"), r(e, "class", "svelte-zkb07x");
409
+ },
410
+ m(c, v) {
411
+ L(c, e, v), o && o.m(e, null), f(e, t), f(e, n), f(n, l), d && d.m(l, null), f(l, m), f(l, u), u.innerHTML = /*randombuttonicon*/
412
+ a[0], a[26](e), p = !0, b || (g = A(
413
+ l,
414
+ "click",
415
+ /*click_handler_2*/
416
+ a[25]
417
+ ), b = !0);
418
+ },
419
+ p(c, v) {
420
+ /*show*/
421
+ c[5] ? o ? (o.p(c, v), v[0] & /*show*/
422
+ 32 && D(o, 1)) : (o = $(c), o.c(), D(o, 1), o.m(e, t)) : o && (Ce(), E(o, 1, 1, () => {
423
+ o = null;
424
+ }), _e()), i === (i = h(c)) && d ? d.p(c, v) : (d && d.d(1), d = i && i(c), d && (d.c(), d.m(l, m))), (!p || v[0] & /*randombuttonicon*/
425
+ 1) && (u.innerHTML = /*randombuttonicon*/
426
+ c[0]);
427
+ },
428
+ i(c) {
429
+ p || (D(o), p = !0);
430
+ },
431
+ o(c) {
432
+ E(o), p = !1;
433
+ },
434
+ d(c) {
435
+ c && C(e), o && o.d(), d && d.d(), a[26](null), b = !1, g();
436
+ }
437
+ };
438
+ }
439
+ function Ue(a, e, t) {
440
+ let n;
441
+ we(a, We, (s) => t(9, n = s));
442
+ let { $$slots: l = {}, $$scope: m } = e, { endpoint: u = "" } = e, { datasource: p = "" } = e, { gameevent: b = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: h = "" } = e, { translationurl: i = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: c = "" } = e, { filteredrandomgamecategories: v = "" } = e, z = [], _ = "", T, w = !1, S = 0, W = 0, I = !1, j = !1, y, G = window.navigator.userAgent, N;
443
+ Ne({ withLocale: "en", translations: {} });
444
+ const ne = () => {
445
+ fetch(i).then((x) => x.json()).then((x) => {
446
+ Object.keys(x).forEach((R) => {
447
+ Z(R, x[R]);
448
+ });
449
+ }).catch((x) => {
450
+ console.log(x);
451
+ });
452
+ };
453
+ Object.keys(K).forEach((s) => {
454
+ Z(s, K[s]);
455
+ });
456
+ const le = () => {
457
+ t(4, T = oe(T)), t(6, S = 0), W = 0, t(7, I = !1), t(3, _ = z[Math.floor(Math.random() * z.length)]), t(5, w = !0);
458
+ }, H = (s) => {
459
+ j ? (le(), clearInterval(y), y = setInterval(
460
+ () => {
461
+ t(6, S -= 75), W++, W == 20 && (t(7, I = !0), clearInterval(y));
462
+ },
463
+ 150
464
+ )) : (t(5, w = !0), t(7, I = !0)), s && typeof gtag == "function" && gtag("event", "RefreshRandomGame", {
465
+ context: "RandomGameWidget",
466
+ gameId: `${_.gId || _.id}`
467
+ }), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href);
468
+ }, oe = (s) => {
469
+ let x = s.length, R;
470
+ for (; x != 0; )
471
+ R = Math.floor(Math.random() * x), x--, [s[x], s[R]] = [s[R], s[x]];
472
+ return s;
473
+ }, Y = () => {
474
+ window.postMessage(
475
+ {
476
+ type: b,
477
+ gameId: _.gId || _.id
478
+ },
479
+ window.location.href
480
+ ), t(5, w = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
481
+ context: "RandomGameWidget",
482
+ gameId: `${_.gId || _.id}`
483
+ });
484
+ }, se = () => {
485
+ t(5, w = !1), window.postMessage({ type: "RandomWidgetState", state: w }, window.location.href);
486
+ }, ie = () => {
487
+ let s = new URL(`${u}/v1/casino/games`);
488
+ s.searchParams.append("platform", Te(G)), s.searchParams.append("datasource", p), s.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), v && s.searchParams.append("filter", `groups=${v}`), s.searchParams.append("expand", "categories,vendor"), s.searchParams.append("pagination", "offset=0,limit=1000"), fetch(s.href).then((x) => x.json()).then((x) => {
489
+ z = x.items, z.length ? (t(4, T = z.slice(0, 19)), t(8, j = !0)) : (t(4, T = []), t(8, j = !1));
490
+ }).catch((x) => {
491
+ console.log(x), t(8, j = !1);
492
+ });
493
+ }, re = () => {
494
+ Be(g);
495
+ }, me = () => {
496
+ let s = document.createElement("style");
497
+ s.innerHTML = d, N.appendChild(s);
498
+ }, ce = () => {
499
+ let s = new URL(c), x = document.createElement("style");
500
+ fetch(s.href).then((R) => R.text()).then((R) => {
501
+ x.innerHTML = R, setTimeout(
502
+ () => {
503
+ N.appendChild(x);
504
+ },
505
+ 1
506
+ );
507
+ });
508
+ }, de = () => H(!0), ue = () => Y(), fe = () => H();
509
+ function ge(s) {
510
+ Se[s ? "unshift" : "push"](() => {
511
+ N = s, t(2, N);
512
+ });
513
+ }
514
+ return a.$$set = (s) => {
515
+ "endpoint" in s && t(13, u = s.endpoint), "datasource" in s && t(14, p = s.datasource), "gameevent" in s && t(15, b = s.gameevent), "lang" in s && t(16, g = s.lang), "randombuttonicon" in s && t(0, o = s.randombuttonicon), "buttontext" in s && t(1, h = s.buttontext), "translationurl" in s && t(17, i = s.translationurl), "clientstyling" in s && t(18, d = s.clientstyling), "clientstylingurl" in s && t(19, c = s.clientstylingurl), "filteredrandomgamecategories" in s && t(20, v = s.filteredrandomgamecategories), "$$scope" in s && t(21, m = s.$$scope);
516
+ }, a.$$.update = () => {
517
+ a.$$.dirty[0] & /*lang*/
518
+ 65536 && g && re(), a.$$.dirty[0] & /*translationurl*/
519
+ 131072 && i && ne(), a.$$.dirty[0] & /*endpoint, datasource*/
520
+ 24576 && u && p && ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
521
+ 262148 && d && N && me(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
522
+ 524292 && c && N && ce();
523
+ }, [
524
+ o,
525
+ h,
526
+ N,
527
+ _,
528
+ T,
529
+ w,
530
+ S,
531
+ I,
532
+ j,
533
+ n,
534
+ H,
535
+ Y,
536
+ se,
537
+ u,
538
+ p,
539
+ b,
540
+ g,
541
+ i,
542
+ d,
543
+ c,
544
+ v,
545
+ m,
546
+ l,
547
+ de,
548
+ ue,
549
+ fe,
550
+ ge
551
+ ];
552
+ }
553
+ class qe extends he {
554
+ constructor(e) {
555
+ super(), ve(
556
+ this,
557
+ e,
558
+ Ue,
559
+ Ye,
560
+ xe,
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 }), M();
582
+ }
583
+ get datasource() {
584
+ return this.$$.ctx[14];
585
+ }
586
+ set datasource(e) {
587
+ this.$$set({ datasource: e }), M();
588
+ }
589
+ get gameevent() {
590
+ return this.$$.ctx[15];
591
+ }
592
+ set gameevent(e) {
593
+ this.$$set({ gameevent: e }), M();
594
+ }
595
+ get lang() {
596
+ return this.$$.ctx[16];
597
+ }
598
+ set lang(e) {
599
+ this.$$set({ lang: e }), M();
600
+ }
601
+ get randombuttonicon() {
602
+ return this.$$.ctx[0];
603
+ }
604
+ set randombuttonicon(e) {
605
+ this.$$set({ randombuttonicon: e }), M();
606
+ }
607
+ get buttontext() {
608
+ return this.$$.ctx[1];
609
+ }
610
+ set buttontext(e) {
611
+ this.$$set({ buttontext: e }), M();
612
+ }
613
+ get translationurl() {
614
+ return this.$$.ctx[17];
615
+ }
616
+ set translationurl(e) {
617
+ this.$$set({ translationurl: e }), M();
618
+ }
619
+ get clientstyling() {
620
+ return this.$$.ctx[18];
621
+ }
622
+ set clientstyling(e) {
623
+ this.$$set({ clientstyling: e }), M();
624
+ }
625
+ get clientstylingurl() {
626
+ return this.$$.ctx[19];
627
+ }
628
+ set clientstylingurl(e) {
629
+ this.$$set({ clientstylingurl: e }), M();
630
+ }
631
+ get filteredrandomgamecategories() {
632
+ return this.$$.ctx[20];
633
+ }
634
+ set filteredrandomgamecategories(e) {
635
+ this.$$set({ filteredrandomgamecategories: e }), M();
636
+ }
637
+ }
638
+ ke(qe, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
639
+ export {
640
+ qe as default
641
+ };