@everymatrix/casino-page-nd 1.47.2 → 1.48.0

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,662 @@
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
+ }, d = (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, d);
15
+ p((t = t.apply(a, e)).next());
16
+ });
17
+ import { $ as H, a as _e, I as Ge, S as Re, i as xe, f as M, c as ke, s as ve, b as Me, e as b, q as C, u, d as k, v as y, w as J, h as I, t as E, g as Ce, j as v, J as Fe, n as Le, x as Te, y as Se, z as je, k as We, Q as Ne, m as V, E as Y, C as ze, r as L, A as T, p as Q, B as Be, D as X, N as Ie, U as Je, M as De } from "./CasinoCalendar-pVpX-Ke1.js";
18
+ function Ae({ withLocale: a, translations: e }) {
19
+ H.subscribe((t) => {
20
+ t == null && (_e.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 K = {
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-jp1l3j", "*,*::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: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;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .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;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.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 Ee = (a) => ({}), ee = (a) => ({});
105
+ function te(a) {
106
+ let e, t, n, l, r, d, 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 || Oe();
117
+ function _(s, w) {
118
+ return (
119
+ /*hasRandomGames*/
120
+ s[7] ? qe : Ue
121
+ );
122
+ }
123
+ let m = _(a), c = m(a);
124
+ return {
125
+ c() {
126
+ e = b("div"), t = b("div"), n = b("span"), o && o.c(), l = C(), c.c(), u(n, "class", "ModalCloseBtn"), u(n, "role", "button"), u(t, "class", "ModalContainer"), u(e, "class", "ModalWindow");
127
+ },
128
+ m(s, w) {
129
+ k(s, e, w), y(e, t), y(t, n), o && o.m(n, null), y(t, l), c.m(t, null), r = !0, d || (p = J(
130
+ n,
131
+ "click",
132
+ /*closeModal*/
133
+ a[12]
134
+ ), d = !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
+ Ee
150
+ ) : Se(
151
+ /*$$scope*/
152
+ s[21]
153
+ ),
154
+ ee
155
+ ), m === (m = _(s)) && c ? c.p(s, w) : (c.d(1), c = m(s), c && (c.c(), c.m(t, null)));
156
+ },
157
+ i(s) {
158
+ r || (I(o, s), r = !0);
159
+ },
160
+ o(s) {
161
+ E(o, s), r = !1;
162
+ },
163
+ d(s) {
164
+ s && v(e), o && o.d(s), c.d(), d = !1, p();
165
+ }
166
+ };
167
+ }
168
+ function Oe(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
+ k(n, e, l), y(e, t);
176
+ },
177
+ p: ze,
178
+ d(n) {
179
+ n && v(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 = b("p"), n = L(t), u(e, "class", "RandomGameLoading");
191
+ },
192
+ m(l, r) {
193
+ k(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 && v(e);
202
+ }
203
+ };
204
+ }
205
+ function qe(a) {
206
+ let e, t, n, l, r = Q(
207
+ /*gamesToShow*/
208
+ a[4]
209
+ ), d = [];
210
+ for (let o = 0; o < r.length; o += 1)
211
+ d[o] = ae($(a, r, o));
212
+ function p(o, _) {
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 = b("div"), t = b("main"), n = b("div");
222
+ for (let o = 0; o < d.length; o += 1)
223
+ d[o].c();
224
+ l = C(), f.c(), u(n, "class", "GamesContainer"), u(t, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
225
+ },
226
+ m(o, _) {
227
+ k(o, e, _), y(e, t), y(t, n);
228
+ for (let m = 0; m < d.length; m += 1)
229
+ d[m] && d[m].m(n, null);
230
+ a[23](n), y(e, l), f.m(e, null);
231
+ },
232
+ p(o, _) {
233
+ if (_[0] & /*gamesToShow*/
234
+ 16) {
235
+ r = Q(
236
+ /*gamesToShow*/
237
+ o[4]
238
+ );
239
+ let m;
240
+ for (m = 0; m < r.length; m += 1) {
241
+ const c = $(o, r, m);
242
+ d[m] ? d[m].p(c, _) : (d[m] = ae(c), d[m].c(), d[m].m(n, null));
243
+ }
244
+ for (; m < d.length; m += 1)
245
+ d[m].d(1);
246
+ d.length = r.length;
247
+ }
248
+ g === (g = p(o)) && f ? f.p(o, _) : (f.d(1), f = g(o), f && (f.c(), f.m(e, null)));
249
+ },
250
+ d(o) {
251
+ o && v(e), Be(d, o), a[23](null), f.d();
252
+ }
253
+ };
254
+ }
255
+ function ae(a) {
256
+ let e, t, n, l, r, d;
257
+ return {
258
+ c() {
259
+ e = b("div"), t = b("img"), d = 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
+ k(p, e, g), y(e, t), y(e, d);
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 && v(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 = b("p"), n = L(t), u(e, "class", "RandomGameLoading");
289
+ },
290
+ m(l, r) {
291
+ k(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 && v(e);
300
+ }
301
+ };
302
+ }
303
+ function Ye(a) {
304
+ let e, t, n, l, r = (
305
+ /*randomGame*/
306
+ a[3].name + ""
307
+ ), d, p, g, f = (
308
+ /*randomGame*/
309
+ a[3].vendor.name + ""
310
+ ), o, _, m, c = (
311
+ /*$_*/
312
+ a[9]("playNowRandomGame") + ""
313
+ ), s, w, S;
314
+ return {
315
+ c() {
316
+ e = b("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 = b("div"), l = b("p"), d = L(r), p = C(), g = b("p"), o = L(f), _ = C(), m = b("button"), s = L(c), u(e, "class", "RandomTryAgain"), u(l, "class", "RandomGameTitle"), u(g, "class", "RandomGameVendor"), u(m, "class", "RandomGamePlay"), u(n, "class", "RandomGameDetails");
318
+ },
319
+ m(G, R) {
320
+ k(G, e, R), k(G, t, R), k(G, n, R), y(n, l), y(l, d), y(n, p), y(n, g), y(g, o), y(n, _), y(n, m), y(m, s), w || (S = [
321
+ J(
322
+ e,
323
+ "click",
324
+ /*click_handler*/
325
+ a[24]
326
+ ),
327
+ J(
328
+ m,
329
+ "click",
330
+ /*click_handler_1*/
331
+ a[25]
332
+ )
333
+ ], w = !0);
334
+ },
335
+ p(G, R) {
336
+ R[0] & /*randomGame*/
337
+ 8 && r !== (r = /*randomGame*/
338
+ G[3].name + "") && T(d, r), R[0] & /*randomGame*/
339
+ 8 && f !== (f = /*randomGame*/
340
+ G[3].vendor.name + "") && T(o, f), R[0] & /*$_*/
341
+ 512 && c !== (c = /*$_*/
342
+ G[9]("playNowRandomGame") + "") && T(s, c);
343
+ },
344
+ d(G) {
345
+ G && (v(e), v(t), v(n)), w = !1, De(S);
346
+ }
347
+ };
348
+ }
349
+ function Qe(a) {
350
+ let e, t = (
351
+ /*$_*/
352
+ a[9]("playRandomGame") + ""
353
+ ), n;
354
+ return {
355
+ c() {
356
+ e = b("span"), n = L(t), u(e, "class", "RandomButtonText");
357
+ },
358
+ m(l, r) {
359
+ k(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 && v(e);
368
+ }
369
+ };
370
+ }
371
+ function Xe(a) {
372
+ let e, t;
373
+ return {
374
+ c() {
375
+ e = b("span"), t = L(
376
+ /*buttontext*/
377
+ a[1]
378
+ ), u(e, "class", "RandomButtonText");
379
+ },
380
+ m(n, l) {
381
+ k(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 && v(e);
393
+ }
394
+ };
395
+ }
396
+ function Ze(a) {
397
+ let e, t, n, l, r, d, p, g, f, o = (
398
+ /*show*/
399
+ a[5] && te(a)
400
+ );
401
+ function _(s, w) {
402
+ if (
403
+ /*buttontext*/
404
+ s[1]
405
+ ) return Xe;
406
+ if (!/*buttontext*/
407
+ s[1]) return Qe;
408
+ }
409
+ let m = _(a), c = m && m(a);
410
+ return {
411
+ c() {
412
+ e = b("div"), o && o.c(), t = C(), n = b("div"), l = b("button"), c && c.c(), r = C(), d = b("span"), u(d, "class", "RandomButtonIcon"), u(l, "class", "RandomButton"), u(n, "class", "RandomButtonWrapper"), u(e, "part", "CustomStylingContainer");
413
+ },
414
+ m(s, w) {
415
+ k(s, e, w), o && o.m(e, null), y(e, t), y(e, n), y(n, l), c && c.m(l, null), y(l, r), y(l, d), d.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(), E(o, 1, 1, () => {
427
+ o = null;
428
+ }), Ce()), m === (m = _(s)) && c ? c.p(s, w) : (c && c.d(1), c = m && m(s), c && (c.c(), c.m(l, r))), (!p || w[0] & /*randombuttonicon*/
429
+ 1) && (d.innerHTML = /*randombuttonicon*/
430
+ s[0]);
431
+ },
432
+ i(s) {
433
+ p || (I(o), p = !0);
434
+ },
435
+ o(s) {
436
+ E(o), p = !1;
437
+ },
438
+ d(s) {
439
+ s && v(e), o && o.d(), c && c.d(), a[27](null), g = !1, f();
440
+ }
441
+ };
442
+ }
443
+ function Ke(a, e, t) {
444
+ let n;
445
+ Fe(a, Ie, (i) => t(9, n = i));
446
+ let { $$slots: l = {}, $$scope: r } = e, { endpoint: d = "" } = e, { datasource: p = "" } = e, { gameevent: g = "" } = e, { lang: f = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: s = "" } = e, { filteredrandomgamecategories: w = "" } = e, S = [], G = "", R, W = !1, D = !1, z = !1, ne = window.navigator.userAgent, F, j, O, B, U = null;
447
+ Ae({ withLocale: "en", translations: {} });
448
+ const oe = () => {
449
+ fetch(m).then((h) => h.json()).then((h) => {
450
+ Object.keys(h).forEach((x) => {
451
+ Z(x, h[x]);
452
+ });
453
+ }).catch((h) => {
454
+ console.log(h);
455
+ });
456
+ };
457
+ Object.keys(K).forEach((i) => {
458
+ Z(i, K[i]);
459
+ });
460
+ const le = () => {
461
+ let i = new URL(`${d}/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, R = ie(S.slice(0, 19))), t(7, z = !0)) : (t(4, R = []), 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() * (R.length / 2)) + R.length / 2, t(3, G = R[B]), O = 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 = (O.offsetHeight + h) * B, we = [
475
+ { transform: "translateX(0px)" },
476
+ { filter: "blur(5px)" },
477
+ {
478
+ transform: `translateY(-${N}px)`
479
+ }
480
+ ], be = {
481
+ duration: 2e3,
482
+ easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
483
+ fill: "forwards"
484
+ };
485
+ U = j.animate(we, be), U.onfinish = () => {
486
+ t(6, D = !0);
487
+ };
488
+ }), se = (i) => {
489
+ const h = structuredClone(i);
490
+ let x = h.length, N;
491
+ for (; x != 0; )
492
+ N = Math.floor(Math.random() * x), x--, [h[x], h[N]] = [h[N], h[x]];
493
+ return h;
494
+ }, q = () => {
495
+ window.postMessage(
496
+ {
497
+ type: g,
498
+ gameId: G.gId || G.id
499
+ },
500
+ window.location.href
501
+ ), t(5, W = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
502
+ context: "RandomGameWidget",
503
+ gameId: `${G.gId || G.id}`
504
+ });
505
+ }, me = () => {
506
+ t(5, W = !1), window.postMessage({ type: "RandomWidgetState", state: W }, window.location.href);
507
+ }, de = () => {
508
+ Pe(f);
509
+ }, ce = () => {
510
+ let i = document.createElement("style");
511
+ i.innerHTML = c, F.appendChild(i);
512
+ }, ue = () => {
513
+ let i = new URL(s), h = document.createElement("style");
514
+ fetch(i.href).then((x) => x.text()).then((x) => {
515
+ h.innerHTML = x, setTimeout(
516
+ () => {
517
+ F.appendChild(h);
518
+ },
519
+ 1
520
+ );
521
+ });
522
+ };
523
+ function ge(i) {
524
+ V[i ? "unshift" : "push"](() => {
525
+ j = i, t(8, j);
526
+ });
527
+ }
528
+ const fe = () => A(), pe = () => q(), he = () => A();
529
+ function ye(i) {
530
+ V[i ? "unshift" : "push"](() => {
531
+ F = i, t(2, F);
532
+ });
533
+ }
534
+ return a.$$set = (i) => {
535
+ "endpoint" in i && t(13, d = 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, _ = i.buttontext), "translationurl" in i && t(17, m = i.translationurl), "clientstyling" in i && t(18, c = 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);
536
+ }, a.$$.update = () => {
537
+ a.$$.dirty[0] & /*lang*/
538
+ 65536 && f && de(), a.$$.dirty[0] & /*translationurl*/
539
+ 131072 && m && oe(), a.$$.dirty[0] & /*endpoint, datasource*/
540
+ 24576 && d && p && le(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
541
+ 262148 && c && F && ce(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
542
+ 524292 && s && F && ue();
543
+ }, [
544
+ o,
545
+ _,
546
+ F,
547
+ G,
548
+ R,
549
+ W,
550
+ D,
551
+ z,
552
+ j,
553
+ n,
554
+ A,
555
+ q,
556
+ me,
557
+ d,
558
+ p,
559
+ g,
560
+ f,
561
+ m,
562
+ c,
563
+ s,
564
+ w,
565
+ r,
566
+ l,
567
+ ge,
568
+ fe,
569
+ pe,
570
+ he,
571
+ ye
572
+ ];
573
+ }
574
+ class $e extends Re {
575
+ constructor(e) {
576
+ super(), xe(
577
+ this,
578
+ e,
579
+ Ke,
580
+ Ze,
581
+ ve,
582
+ {
583
+ endpoint: 13,
584
+ datasource: 14,
585
+ gameevent: 15,
586
+ lang: 16,
587
+ randombuttonicon: 0,
588
+ buttontext: 1,
589
+ translationurl: 17,
590
+ clientstyling: 18,
591
+ clientstylingurl: 19,
592
+ filteredrandomgamecategories: 20
593
+ },
594
+ He,
595
+ [-1, -1]
596
+ );
597
+ }
598
+ get endpoint() {
599
+ return this.$$.ctx[13];
600
+ }
601
+ set endpoint(e) {
602
+ this.$$set({ endpoint: e }), M();
603
+ }
604
+ get datasource() {
605
+ return this.$$.ctx[14];
606
+ }
607
+ set datasource(e) {
608
+ this.$$set({ datasource: e }), M();
609
+ }
610
+ get gameevent() {
611
+ return this.$$.ctx[15];
612
+ }
613
+ set gameevent(e) {
614
+ this.$$set({ gameevent: e }), M();
615
+ }
616
+ get lang() {
617
+ return this.$$.ctx[16];
618
+ }
619
+ set lang(e) {
620
+ this.$$set({ lang: e }), M();
621
+ }
622
+ get randombuttonicon() {
623
+ return this.$$.ctx[0];
624
+ }
625
+ set randombuttonicon(e) {
626
+ this.$$set({ randombuttonicon: e }), M();
627
+ }
628
+ get buttontext() {
629
+ return this.$$.ctx[1];
630
+ }
631
+ set buttontext(e) {
632
+ this.$$set({ buttontext: e }), M();
633
+ }
634
+ get translationurl() {
635
+ return this.$$.ctx[17];
636
+ }
637
+ set translationurl(e) {
638
+ this.$$set({ translationurl: e }), M();
639
+ }
640
+ get clientstyling() {
641
+ return this.$$.ctx[18];
642
+ }
643
+ set clientstyling(e) {
644
+ this.$$set({ clientstyling: e }), M();
645
+ }
646
+ get clientstylingurl() {
647
+ return this.$$.ctx[19];
648
+ }
649
+ set clientstylingurl(e) {
650
+ this.$$set({ clientstylingurl: e }), M();
651
+ }
652
+ get filteredrandomgamecategories() {
653
+ return this.$$.ctx[20];
654
+ }
655
+ set filteredrandomgamecategories(e) {
656
+ this.$$set({ filteredrandomgamecategories: e }), M();
657
+ }
658
+ }
659
+ ke($e, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
660
+ export {
661
+ $e as default
662
+ };