@everymatrix/casino-lobby 1.47.1 → 1.47.3

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