@everymatrix/casino-lobby 1.54.4 → 1.54.8

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 (81) hide show
  1. package/components/{CasinoCalendar-Ic3lq1UY.js → CasinoCalendar-B6zL0TaE.js} +506 -514
  2. package/components/CasinoCalendar-BMfA7KN3.cjs +9 -0
  3. package/components/CasinoCalendar-yoWAbEkY.js +5197 -0
  4. package/components/{CasinoCalendarDailyDetails-buDoufAV.js → CasinoCalendarDailyDetails-CHjjPOPl.js} +90 -90
  5. package/components/CasinoCalendarDailyDetails-CfDJdZRl.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-D3u4HZe8.js +701 -0
  7. package/components/{CasinoCalendarDailyItem-koPRd703.js → CasinoCalendarDailyItem-C0cqN7uc.js} +46 -46
  8. package/components/CasinoCalendarDailyItem-CUUQD6LO.cjs +1 -0
  9. package/components/CasinoCalendarDailyItem-DMCRSt77.js +315 -0
  10. package/components/CasinoCategoriesSlider-BcJr5qw4.js +606 -0
  11. package/components/{CasinoCategoriesSlider-Bp9JHeM_.js → CasinoCategoriesSlider-ClyY2tVk.js} +29 -29
  12. package/components/CasinoCategoriesSlider-Du23Vwbe.cjs +1 -0
  13. package/components/CasinoCollectionsProviders-D_RrWmcu.js +664 -0
  14. package/components/{CasinoCollectionsProviders-CrpNb22N.js → CasinoCollectionsProviders-DfPQERZb.js} +58 -58
  15. package/components/CasinoCollectionsProviders-okanqqGb.cjs +1 -0
  16. package/components/CasinoFavoritesSection-6Sdpq5gN.cjs +1 -0
  17. package/components/CasinoFavoritesSection-B73CXUAy.js +439 -0
  18. package/components/{CasinoFavoritesSection-D_VjX8kh.js → CasinoFavoritesSection-Bueg3sTp.js} +16 -16
  19. package/components/CasinoFilter-CLgilXuM.js +634 -0
  20. package/components/{CasinoFilter-CYZHW74M.js → CasinoFilter-Ck2-RKNG.js} +55 -55
  21. package/components/CasinoFilter-d5NvPsIU.cjs +1 -0
  22. package/components/{CasinoGamePage-CCqWDOmI.js → CasinoGamePage-B9T32UnC.js} +769 -769
  23. package/components/CasinoGamePage-BvAh0DGO.js +4300 -0
  24. package/components/CasinoGamePage-C99GYj8V.cjs +18 -0
  25. package/components/{CasinoGameThumbnail-DuQXK0BS.js → CasinoGameThumbnail-Bl2lRTS5.js} +66 -66
  26. package/components/CasinoGameThumbnail-Cnth3w2v.js +1850 -0
  27. package/components/CasinoGameThumbnail-DFxPFhew.cjs +38 -0
  28. package/components/CasinoGamesCategorySection-Cy8ehDrS.cjs +1 -0
  29. package/components/{CasinoGamesCategorySection-B7unf50a.js → CasinoGamesCategorySection-DU23YHrX.js} +157 -157
  30. package/components/CasinoGamesCategorySection-Vx-6j2_y.js +3032 -0
  31. package/components/{CasinoJackpotBanner-CL7SMQDH.js → CasinoJackpotBanner-CwBo5Mul.js} +68 -68
  32. package/components/CasinoJackpotBanner-D8mirkf9.js +618 -0
  33. package/components/CasinoJackpotBanner-pF19c3bB.cjs +1 -0
  34. package/components/CasinoLastPlayedSection-CTeLaz5e.cjs +1 -0
  35. package/components/{CasinoLastPlayedSection-DtUKV7qS.js → CasinoLastPlayedSection-D2i1KYd6.js} +29 -29
  36. package/components/CasinoLastPlayedSection-DeHKMRjb.js +566 -0
  37. package/components/{CasinoLobby-Bhufm6di.js → CasinoLobby-DIuXNBMc.js} +49 -49
  38. package/components/CasinoLobby-DjqoKJ_Z.cjs +1 -0
  39. package/components/CasinoLobby-Ds8nok67.js +2337 -0
  40. package/components/{CasinoModal-z0xixUlG.js → CasinoModal-CdxckMSF.js} +69 -69
  41. package/components/CasinoModal-Cj4CFSu2.cjs +1 -0
  42. package/components/CasinoModal-_ukjEJqy.js +372 -0
  43. package/components/CasinoMostPlayedSection-BRG_Uq6C.cjs +1 -0
  44. package/components/{CasinoMostPlayedSection-DATKT5NZ.js → CasinoMostPlayedSection-BvIjl5pV.js} +32 -32
  45. package/components/CasinoMostPlayedSection-C9ey8EVj.js +583 -0
  46. package/components/CasinoMyGames-BH19YGDz.js +1318 -0
  47. package/components/{CasinoMyGames-CT8sf3p5.js → CasinoMyGames-CO15Aytm.js} +52 -52
  48. package/components/CasinoMyGames-DNs8c3Rb.cjs +1 -0
  49. package/components/CasinoPage-BEFfjziT.js +3550 -0
  50. package/components/{CasinoPage-CLrMZJtx.js → CasinoPage-DXue0b0t.js} +123 -123
  51. package/components/CasinoPage-sSUBPWhS.cjs +1 -0
  52. package/components/CasinoRandomGame-C57JuHHz.cjs +2 -0
  53. package/components/CasinoRandomGame-r6ZN573_.js +668 -0
  54. package/components/{CasinoRandomGame-efA8CEqy.js → CasinoRandomGame-z14CxLuC.js} +51 -51
  55. package/components/CasinoSearch-C5_rhVBG.js +1072 -0
  56. package/components/{CasinoSearch-DuPhm9II.js → CasinoSearch-Cbyb3s0J.js} +83 -83
  57. package/components/CasinoSearch-D1uEkiG3.cjs +1 -0
  58. package/components/CasinoSlider-C7bHIIsP.js +806 -0
  59. package/components/{CasinoSlider-BPqJIB5d.js → CasinoSlider-C90aPXd2.js} +78 -78
  60. package/components/CasinoSlider-D1u-7DmV.cjs +1 -0
  61. package/components/CasinoSort-5a6WYp-y.cjs +1 -0
  62. package/components/{CasinoSort-CBtcK7i0.js → CasinoSort-B9ucfWgD.js} +16 -16
  63. package/components/CasinoSort-DWu-WSlc.js +432 -0
  64. package/components/{CasinoWinners-Db2ivy-R.js → CasinoWinners-BFkE1Nu3.js} +62 -62
  65. package/components/CasinoWinners-D-KQ7v4o.cjs +1 -0
  66. package/components/CasinoWinners-fPZD2C86.js +971 -0
  67. package/components/{GeneralAnimationLoading-DiwFEyef.js → GeneralAnimationLoading-BCUksgAT.js} +8 -8
  68. package/components/GeneralAnimationLoading-BtZxU34J.cjs +1 -0
  69. package/components/GeneralAnimationLoading-DSCrLTeR.js +75 -0
  70. package/es2015/casino-lobby.cjs +1 -0
  71. package/es2015/casino-lobby.js +16 -0
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +4 -1
  74. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  75. package/stencil/casino-play-random-game-BKQH1Zx1.cjs +371 -0
  76. package/stencil/casino-play-random-game-BqK1nKDT.js +577 -0
  77. package/stencil/{casino-play-random-game-BrayzMrR.js → casino-play-random-game-pLVMnBV9.js} +1 -1
  78. package/stencil/index-f923e8d1-BWfXmHlD.js +645 -0
  79. package/stencil/index-f923e8d1-DEpJEd5d.cjs +1 -0
  80. package/stencil/index-f923e8d1-DkIbJRWP.js +629 -0
  81. package/stencil/index-47910d1c-CWwDm8i3.js +0 -623
@@ -0,0 +1,668 @@
1
+ var A = (a, e, t) => new Promise((n, l) => {
2
+ var r = (g) => {
3
+ try {
4
+ f(t.next(g));
5
+ } catch (p) {
6
+ l(p);
7
+ }
8
+ }, d = (g) => {
9
+ try {
10
+ f(t.throw(g));
11
+ } catch (p) {
12
+ l(p);
13
+ }
14
+ }, f = (g) => g.done ? n(g.value) : Promise.resolve(g.value).then(r, d);
15
+ f((t = t.apply(a, e)).next());
16
+ });
17
+ import { $ as H, T as _e, a as Ge, S as Re, i as xe, s as ke, f as M, b as ve, d as k, t as E, c as I, g as Me, e as Ce, h as v, p as y, A as J, j as b, B as C, r as u, k as Fe, u as Le, x as Te, y as Se, z as We, K as je, C as V, n as Ne, E as Y, m as L, q as T, N as ze, v as K, w as Be, D as Q, Q as Ie, I as Je, J as De } from "./CasinoCalendar-yoWAbEkY.js";
18
+ function Pe({ withLocale: a, translations: e }) {
19
+ H.subscribe((t) => {
20
+ t == null && (_e.set(e), H.set(a));
21
+ });
22
+ }
23
+ function X(a, e) {
24
+ Ge(a, e);
25
+ }
26
+ function Ae(a) {
27
+ H.set(a);
28
+ }
29
+ const Z = {
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
+ "en-us": {
97
+ playRandomGame: "Play a random game",
98
+ randomGameLoading: "Selecting ...",
99
+ playNowRandomGame: "Play Now",
100
+ noGames: "There are no random games to play"
101
+ }
102
+ };
103
+ function He(a) {
104
+ ve(a, "svelte-fd0a5p", "*,*::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(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--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(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--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(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--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(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
105
+ }
106
+ function $(a, e, t) {
107
+ const n = a.slice();
108
+ return n[41] = e[t], n;
109
+ }
110
+ const Ee = (a) => ({}), ee = (a) => ({});
111
+ function te(a) {
112
+ let e, t, n, l, r, d, f;
113
+ const g = (
114
+ /*#slots*/
115
+ a[22].close
116
+ ), p = Le(
117
+ g,
118
+ a,
119
+ /*$$scope*/
120
+ a[21],
121
+ ee
122
+ ), o = p || Oe();
123
+ function _(s, w) {
124
+ return (
125
+ /*hasRandomGames*/
126
+ s[7] ? qe : Ue
127
+ );
128
+ }
129
+ let m = _(a), c = m(a);
130
+ return {
131
+ c() {
132
+ 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");
133
+ },
134
+ m(s, w) {
135
+ v(s, e, w), y(e, t), y(t, n), o && o.m(n, null), y(t, l), c.m(t, null), r = !0, d || (f = J(
136
+ n,
137
+ "click",
138
+ /*closeModal*/
139
+ a[12]
140
+ ), d = !0);
141
+ },
142
+ p(s, w) {
143
+ p && p.p && (!r || w[0] & /*$$scope*/
144
+ 2097152) && Te(
145
+ p,
146
+ g,
147
+ s,
148
+ /*$$scope*/
149
+ s[21],
150
+ r ? We(
151
+ g,
152
+ /*$$scope*/
153
+ s[21],
154
+ w,
155
+ Ee
156
+ ) : Se(
157
+ /*$$scope*/
158
+ s[21]
159
+ ),
160
+ ee
161
+ ), m === (m = _(s)) && c ? c.p(s, w) : (c.d(1), c = m(s), c && (c.c(), c.m(t, null)));
162
+ },
163
+ i(s) {
164
+ r || (I(o, s), r = !0);
165
+ },
166
+ o(s) {
167
+ E(o, s), r = !1;
168
+ },
169
+ d(s) {
170
+ s && k(e), o && o.d(s), c.d(), d = !1, f();
171
+ }
172
+ };
173
+ }
174
+ function Oe(a) {
175
+ let e, t;
176
+ return {
177
+ c() {
178
+ 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");
179
+ },
180
+ m(n, l) {
181
+ v(n, e, l), y(e, t);
182
+ },
183
+ p: Ne,
184
+ d(n) {
185
+ n && k(e);
186
+ }
187
+ };
188
+ }
189
+ function Ue(a) {
190
+ let e, t = (
191
+ /*$_*/
192
+ a[9]("noGames") + ""
193
+ ), n;
194
+ return {
195
+ c() {
196
+ e = b("p"), n = T(t), u(e, "class", "RandomGameLoading");
197
+ },
198
+ m(l, r) {
199
+ v(l, e, r), y(e, n);
200
+ },
201
+ p(l, r) {
202
+ r[0] & /*$_*/
203
+ 512 && t !== (t = /*$_*/
204
+ l[9]("noGames") + "") && L(n, t);
205
+ },
206
+ d(l) {
207
+ l && k(e);
208
+ }
209
+ };
210
+ }
211
+ function qe(a) {
212
+ let e, t, n, l, r = K(
213
+ /*gamesToShow*/
214
+ a[4]
215
+ ), d = [];
216
+ for (let o = 0; o < r.length; o += 1)
217
+ d[o] = ae($(a, r, o));
218
+ function f(o, _) {
219
+ return (
220
+ /*animationDone*/
221
+ o[6] ? Ye : Ve
222
+ );
223
+ }
224
+ let g = f(a), p = g(a);
225
+ return {
226
+ c() {
227
+ e = b("div"), t = b("main"), n = b("div");
228
+ for (let o = 0; o < d.length; o += 1)
229
+ d[o].c();
230
+ l = C(), p.c(), u(n, "class", "GamesContainer"), u(t, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
231
+ },
232
+ m(o, _) {
233
+ v(o, e, _), y(e, t), y(t, n);
234
+ for (let m = 0; m < d.length; m += 1)
235
+ d[m] && d[m].m(n, null);
236
+ a[23](n), y(e, l), p.m(e, null);
237
+ },
238
+ p(o, _) {
239
+ if (_[0] & /*gamesToShow*/
240
+ 16) {
241
+ r = K(
242
+ /*gamesToShow*/
243
+ o[4]
244
+ );
245
+ let m;
246
+ for (m = 0; m < r.length; m += 1) {
247
+ const c = $(o, r, m);
248
+ d[m] ? d[m].p(c, _) : (d[m] = ae(c), d[m].c(), d[m].m(n, null));
249
+ }
250
+ for (; m < d.length; m += 1)
251
+ d[m].d(1);
252
+ d.length = r.length;
253
+ }
254
+ g === (g = f(o)) && p ? p.p(o, _) : (p.d(1), p = g(o), p && (p.c(), p.m(e, null)));
255
+ },
256
+ d(o) {
257
+ o && k(e), Be(d, o), a[23](null), p.d();
258
+ }
259
+ };
260
+ }
261
+ function ae(a) {
262
+ let e, t, n, l, r, d;
263
+ return {
264
+ c() {
265
+ e = b("div"), t = b("img"), d = C(), u(t, "class", "RandomGameImage"), Q(t.src, n = /*game*/
266
+ a[41].thumbnail) || u(t, "src", n), u(t, "alt", l = /*game*/
267
+ a[41].name), u(t, "title", r = /*game*/
268
+ a[41].name), u(e, "class", "item");
269
+ },
270
+ m(f, g) {
271
+ v(f, e, g), y(e, t), y(e, d);
272
+ },
273
+ p(f, g) {
274
+ g[0] & /*gamesToShow*/
275
+ 16 && !Q(t.src, n = /*game*/
276
+ f[41].thumbnail) && u(t, "src", n), g[0] & /*gamesToShow*/
277
+ 16 && l !== (l = /*game*/
278
+ f[41].name) && u(t, "alt", l), g[0] & /*gamesToShow*/
279
+ 16 && r !== (r = /*game*/
280
+ f[41].name) && u(t, "title", r);
281
+ },
282
+ d(f) {
283
+ f && k(e);
284
+ }
285
+ };
286
+ }
287
+ function Ve(a) {
288
+ let e, t = (
289
+ /*$_*/
290
+ a[9]("randomGameLoading") + ""
291
+ ), n;
292
+ return {
293
+ c() {
294
+ e = b("p"), n = T(t), u(e, "class", "RandomGameLoading");
295
+ },
296
+ m(l, r) {
297
+ v(l, e, r), y(e, n);
298
+ },
299
+ p(l, r) {
300
+ r[0] & /*$_*/
301
+ 512 && t !== (t = /*$_*/
302
+ l[9]("randomGameLoading") + "") && L(n, t);
303
+ },
304
+ d(l) {
305
+ l && k(e);
306
+ }
307
+ };
308
+ }
309
+ function Ye(a) {
310
+ let e, t, n, l, r = (
311
+ /*randomGame*/
312
+ a[3].name + ""
313
+ ), d, f, g, p = (
314
+ /*randomGame*/
315
+ a[3].vendor.name + ""
316
+ ), o, _, m, c = (
317
+ /*$_*/
318
+ a[9]("playNowRandomGame") + ""
319
+ ), s, w, S;
320
+ return {
321
+ c() {
322
+ 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(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
323
+ </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 = T(r), f = C(), g = b("p"), o = T(p), _ = C(), m = b("button"), s = T(c), u(e, "class", "RandomTryAgain"), u(l, "class", "RandomGameTitle"), u(g, "class", "RandomGameVendor"), u(m, "class", "RandomGamePlay"), u(n, "class", "RandomGameDetails");
324
+ },
325
+ m(G, R) {
326
+ v(G, e, R), v(G, t, R), v(G, n, R), y(n, l), y(l, d), y(n, f), y(n, g), y(g, o), y(n, _), y(n, m), y(m, s), w || (S = [
327
+ J(
328
+ e,
329
+ "click",
330
+ /*click_handler*/
331
+ a[24]
332
+ ),
333
+ J(
334
+ m,
335
+ "click",
336
+ /*click_handler_1*/
337
+ a[25]
338
+ )
339
+ ], w = !0);
340
+ },
341
+ p(G, R) {
342
+ R[0] & /*randomGame*/
343
+ 8 && r !== (r = /*randomGame*/
344
+ G[3].name + "") && L(d, r), R[0] & /*randomGame*/
345
+ 8 && p !== (p = /*randomGame*/
346
+ G[3].vendor.name + "") && L(o, p), R[0] & /*$_*/
347
+ 512 && c !== (c = /*$_*/
348
+ G[9]("playNowRandomGame") + "") && L(s, c);
349
+ },
350
+ d(G) {
351
+ G && (k(e), k(t), k(n)), w = !1, Ie(S);
352
+ }
353
+ };
354
+ }
355
+ function Ke(a) {
356
+ let e, t = (
357
+ /*$_*/
358
+ a[9]("playRandomGame") + ""
359
+ ), n;
360
+ return {
361
+ c() {
362
+ e = b("span"), n = T(t), u(e, "class", "RandomButtonText");
363
+ },
364
+ m(l, r) {
365
+ v(l, e, r), y(e, n);
366
+ },
367
+ p(l, r) {
368
+ r[0] & /*$_*/
369
+ 512 && t !== (t = /*$_*/
370
+ l[9]("playRandomGame") + "") && L(n, t);
371
+ },
372
+ d(l) {
373
+ l && k(e);
374
+ }
375
+ };
376
+ }
377
+ function Qe(a) {
378
+ let e, t;
379
+ return {
380
+ c() {
381
+ e = b("span"), t = T(
382
+ /*buttontext*/
383
+ a[1]
384
+ ), u(e, "class", "RandomButtonText");
385
+ },
386
+ m(n, l) {
387
+ v(n, e, l), y(e, t);
388
+ },
389
+ p(n, l) {
390
+ l[0] & /*buttontext*/
391
+ 2 && L(
392
+ t,
393
+ /*buttontext*/
394
+ n[1]
395
+ );
396
+ },
397
+ d(n) {
398
+ n && k(e);
399
+ }
400
+ };
401
+ }
402
+ function Xe(a) {
403
+ let e, t, n, l, r, d, f, g, p, o = (
404
+ /*show*/
405
+ a[5] && te(a)
406
+ );
407
+ function _(s, w) {
408
+ if (
409
+ /*buttontext*/
410
+ s[1]
411
+ ) return Qe;
412
+ if (!/*buttontext*/
413
+ s[1]) return Ke;
414
+ }
415
+ let m = _(a), c = m && m(a);
416
+ return {
417
+ c() {
418
+ 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");
419
+ },
420
+ m(s, w) {
421
+ v(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*/
422
+ a[0], a[27](e), f = !0, g || (p = J(
423
+ l,
424
+ "click",
425
+ /*click_handler_2*/
426
+ a[26]
427
+ ), g = !0);
428
+ },
429
+ p(s, w) {
430
+ /*show*/
431
+ s[5] ? o ? (o.p(s, w), w[0] & /*show*/
432
+ 32 && I(o, 1)) : (o = te(s), o.c(), I(o, 1), o.m(e, t)) : o && (Me(), E(o, 1, 1, () => {
433
+ o = null;
434
+ }), Ce()), m === (m = _(s)) && c ? c.p(s, w) : (c && c.d(1), c = m && m(s), c && (c.c(), c.m(l, r))), (!f || w[0] & /*randombuttonicon*/
435
+ 1) && (d.innerHTML = /*randombuttonicon*/
436
+ s[0]);
437
+ },
438
+ i(s) {
439
+ f || (I(o), f = !0);
440
+ },
441
+ o(s) {
442
+ E(o), f = !1;
443
+ },
444
+ d(s) {
445
+ s && k(e), o && o.d(), c && c.d(), a[27](null), g = !1, p();
446
+ }
447
+ };
448
+ }
449
+ function Ze(a, e, t) {
450
+ let n;
451
+ Fe(a, De, (i) => t(9, n = i));
452
+ let { $$slots: l = {}, $$scope: r } = e, { endpoint: d = "" } = e, { datasource: f = "" } = e, { gameevent: g = "" } = e, { lang: p = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: _ = "" } = e, { translationurl: m = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: s = "" } = e, { filteredrandomgamecategories: w = "" } = e, S = [], G = "", R, j = !1, D = !1, z = !1, ne = window.navigator.userAgent, F, W, O, B, U = null;
453
+ Pe({ withLocale: "en", translations: {} });
454
+ const oe = () => {
455
+ fetch(m).then((h) => h.json()).then((h) => {
456
+ Object.keys(h).forEach((x) => {
457
+ X(x, h[x]);
458
+ });
459
+ }).catch((h) => {
460
+ console.log(h);
461
+ });
462
+ };
463
+ Object.keys(Z).forEach((i) => {
464
+ X(i, Z[i]);
465
+ });
466
+ const le = () => {
467
+ let i = new URL(`${d}/v1/casino/games`);
468
+ i.searchParams.append("platform", je(ne)), i.searchParams.append("datasource", f), 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) => {
469
+ S = h.items, S.length ? (t(4, R = ie(S.slice(0, 19))), t(7, z = !0)) : (t(4, R = []), t(7, z = !1));
470
+ }).catch((h) => {
471
+ console.log(h), t(7, z = !1);
472
+ });
473
+ }, ie = (i) => {
474
+ const h = se(i);
475
+ return h.concat(h);
476
+ }, re = () => A(this, null, function* () {
477
+ yield ze(), B = Math.floor(Math.random() * (R.length / 2)) + R.length / 2, t(3, G = R[B]), O = W.children[B];
478
+ }), P = () => A(this, null, function* () {
479
+ t(6, D = !1), t(5, j = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield re();
480
+ const i = window.getComputedStyle(W).getPropertyValue("gap"), h = parseInt(i, 10) || 0, N = (O.offsetHeight + h) * B, we = [
481
+ { transform: "translateX(0px)" },
482
+ { filter: "blur(5px)" },
483
+ {
484
+ transform: `translateY(-${N}px)`
485
+ }
486
+ ], be = {
487
+ duration: 2e3,
488
+ easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
489
+ fill: "forwards"
490
+ };
491
+ U = W.animate(we, be), U.onfinish = () => {
492
+ t(6, D = !0);
493
+ };
494
+ }), se = (i) => {
495
+ const h = structuredClone(i);
496
+ let x = h.length, N;
497
+ for (; x != 0; )
498
+ N = Math.floor(Math.random() * x), x--, [h[x], h[N]] = [h[N], h[x]];
499
+ return h;
500
+ }, q = () => {
501
+ window.postMessage(
502
+ {
503
+ type: g,
504
+ gameId: G.gId || G.id
505
+ },
506
+ window.location.href
507
+ ), t(5, j = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
508
+ context: "RandomGameWidget",
509
+ gameId: `${G.gId || G.id}`
510
+ });
511
+ }, me = () => {
512
+ t(5, j = !1), window.postMessage({ type: "RandomWidgetState", state: j }, window.location.href);
513
+ }, de = () => {
514
+ Ae(p);
515
+ }, ce = () => {
516
+ let i = document.createElement("style");
517
+ i.innerHTML = c, F.appendChild(i);
518
+ }, ue = () => {
519
+ let i = new URL(s), h = document.createElement("style");
520
+ fetch(i.href).then((x) => x.text()).then((x) => {
521
+ h.innerHTML = x, setTimeout(
522
+ () => {
523
+ F.appendChild(h);
524
+ },
525
+ 1
526
+ );
527
+ });
528
+ };
529
+ function ge(i) {
530
+ V[i ? "unshift" : "push"](() => {
531
+ W = i, t(8, W);
532
+ });
533
+ }
534
+ const pe = () => P(), fe = () => q(), he = () => P();
535
+ function ye(i) {
536
+ V[i ? "unshift" : "push"](() => {
537
+ F = i, t(2, F);
538
+ });
539
+ }
540
+ return a.$$set = (i) => {
541
+ "endpoint" in i && t(13, d = i.endpoint), "datasource" in i && t(14, f = i.datasource), "gameevent" in i && t(15, g = i.gameevent), "lang" in i && t(16, p = 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);
542
+ }, a.$$.update = () => {
543
+ a.$$.dirty[0] & /*lang*/
544
+ 65536 && p && de(), a.$$.dirty[0] & /*translationurl*/
545
+ 131072 && m && oe(), a.$$.dirty[0] & /*endpoint, datasource*/
546
+ 24576 && d && f && le(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
547
+ 262148 && c && F && ce(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
548
+ 524292 && s && F && ue();
549
+ }, [
550
+ o,
551
+ _,
552
+ F,
553
+ G,
554
+ R,
555
+ j,
556
+ D,
557
+ z,
558
+ W,
559
+ n,
560
+ P,
561
+ q,
562
+ me,
563
+ d,
564
+ f,
565
+ g,
566
+ p,
567
+ m,
568
+ c,
569
+ s,
570
+ w,
571
+ r,
572
+ l,
573
+ ge,
574
+ pe,
575
+ fe,
576
+ he,
577
+ ye
578
+ ];
579
+ }
580
+ class $e extends Re {
581
+ constructor(e) {
582
+ super(), xe(
583
+ this,
584
+ e,
585
+ Ze,
586
+ Xe,
587
+ ke,
588
+ {
589
+ endpoint: 13,
590
+ datasource: 14,
591
+ gameevent: 15,
592
+ lang: 16,
593
+ randombuttonicon: 0,
594
+ buttontext: 1,
595
+ translationurl: 17,
596
+ clientstyling: 18,
597
+ clientstylingurl: 19,
598
+ filteredrandomgamecategories: 20
599
+ },
600
+ He,
601
+ [-1, -1]
602
+ );
603
+ }
604
+ get endpoint() {
605
+ return this.$$.ctx[13];
606
+ }
607
+ set endpoint(e) {
608
+ this.$$set({ endpoint: e }), M();
609
+ }
610
+ get datasource() {
611
+ return this.$$.ctx[14];
612
+ }
613
+ set datasource(e) {
614
+ this.$$set({ datasource: e }), M();
615
+ }
616
+ get gameevent() {
617
+ return this.$$.ctx[15];
618
+ }
619
+ set gameevent(e) {
620
+ this.$$set({ gameevent: e }), M();
621
+ }
622
+ get lang() {
623
+ return this.$$.ctx[16];
624
+ }
625
+ set lang(e) {
626
+ this.$$set({ lang: e }), M();
627
+ }
628
+ get randombuttonicon() {
629
+ return this.$$.ctx[0];
630
+ }
631
+ set randombuttonicon(e) {
632
+ this.$$set({ randombuttonicon: e }), M();
633
+ }
634
+ get buttontext() {
635
+ return this.$$.ctx[1];
636
+ }
637
+ set buttontext(e) {
638
+ this.$$set({ buttontext: e }), M();
639
+ }
640
+ get translationurl() {
641
+ return this.$$.ctx[17];
642
+ }
643
+ set translationurl(e) {
644
+ this.$$set({ translationurl: e }), M();
645
+ }
646
+ get clientstyling() {
647
+ return this.$$.ctx[18];
648
+ }
649
+ set clientstyling(e) {
650
+ this.$$set({ clientstyling: e }), M();
651
+ }
652
+ get clientstylingurl() {
653
+ return this.$$.ctx[19];
654
+ }
655
+ set clientstylingurl(e) {
656
+ this.$$set({ clientstylingurl: e }), M();
657
+ }
658
+ get filteredrandomgamecategories() {
659
+ return this.$$.ctx[20];
660
+ }
661
+ set filteredrandomgamecategories(e) {
662
+ this.$$set({ filteredrandomgamecategories: e }), M();
663
+ }
664
+ }
665
+ Je($e, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
666
+ export {
667
+ $e as default
668
+ };