@everymatrix/casino-lobby 1.47.4 → 1.48.1
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.
- package/components/{CasinoCalendar-BuNYmxT2.js → CasinoCalendar-CCQut7OA.js} +7 -7
- package/components/{CasinoCalendarDailyDetails-CXA-hOPw.js → CasinoCalendarDailyDetails-AzSENZXw.js} +1 -1
- package/components/{CasinoCalendarDailyItem-CXBzGC5j.js → CasinoCalendarDailyItem-DD924Zcr.js} +1 -1
- package/components/CasinoCategoriesSlider-DI2g7-y8.cjs +1 -0
- package/components/{CasinoCategoriesSlider-Dfx9Vnxp.js → CasinoCategoriesSlider-Dd30AvK0.js} +91 -91
- package/components/{CasinoCollectionsProviders-rLy8aW01.js → CasinoCollectionsProviders-Cc1u_orw.js} +1 -1
- package/components/{CasinoFavoritesSection-uqcus7J_.js → CasinoFavoritesSection-BQ0dNWae.js} +2 -2
- package/components/{CasinoFavoritesSection-RMtaQmk3.cjs → CasinoFavoritesSection-CvuIQnV8.cjs} +1 -1
- package/components/{CasinoFilter-DvTOnHYj.js → CasinoFilter-BzIcUbXi.js} +1 -1
- package/components/{CasinoGamePage-DAsfOU8X.js → CasinoGamePage-CGpIAfYK.js} +1 -1
- package/components/{CasinoGameThumbnail-CIjludJv.js → CasinoGameThumbnail-CF6611k4.js} +2 -2
- package/components/CasinoGamesCategorySection-BdxhFGQE.cjs +1 -0
- package/components/{CasinoGamesCategorySection-DmNsoS_K.js → CasinoGamesCategorySection-rgBbE8Qs.js} +1205 -1205
- package/components/{CasinoJackpotBanner-hWTETjFb.js → CasinoJackpotBanner-CJJFsnyb.js} +1 -1
- package/components/{CasinoLastPlayedSection-B1ezatY7.js → CasinoLastPlayedSection-B3mcmNGi.js} +2 -2
- package/components/{CasinoLastPlayedSection-B9y4sMJw.cjs → CasinoLastPlayedSection-DS-qDWQD.cjs} +1 -1
- package/components/{CasinoLobby-DgrgfPpR.js → CasinoLobby-5wVsL48R.js} +5 -5
- package/components/{CasinoLobby-CpOHG2Go.cjs → CasinoLobby-D1xQ7qWy.cjs} +1 -1
- package/components/{CasinoModal-C0mMA0JZ.js → CasinoModal-lLGEeGcU.js} +11 -11
- package/components/{CasinoMostPlayedSection-DgiDKdly.cjs → CasinoMostPlayedSection-649-AWp8.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-CQWFs5qH.js → CasinoMostPlayedSection-BEOghmSJ.js} +2 -2
- package/components/{CasinoMyGames-B1qu8JUd.js → CasinoMyGames-BtmzB5iD.js} +4 -4
- package/components/{CasinoMyGames-BxbclHBX.cjs → CasinoMyGames-Dxt44vYz.cjs} +1 -1
- package/components/{CasinoPage-DqINO6SW.cjs → CasinoPage-BXL4JPvT.cjs} +1 -1
- package/components/{CasinoPage-6L1WKOYd.js → CasinoPage-S2nvrLJc.js} +9 -9
- package/components/{CasinoRandomGame-DLcF2u3L.js → CasinoRandomGame-DGD52sa7.js} +107 -106
- package/components/CasinoRandomGame-DiITGB_u.cjs +2 -0
- package/components/{CasinoSearch-CY-mTY8I.cjs → CasinoSearch-BD3LQbss.cjs} +1 -1
- package/components/{CasinoSearch-CYWXVXo2.js → CasinoSearch-DXk8R2Ge.js} +3 -3
- package/components/{CasinoSlider-B1E3wbGI.js → CasinoSlider-CyXzUPtq.js} +155 -155
- package/components/{CasinoSlider-BMDqluc_.cjs → CasinoSlider-Cyun8L26.cjs} +1 -1
- package/components/{CasinoSort-CcG6ImMT.js → CasinoSort-DGyT01Gf.js} +1 -1
- package/components/CasinoWinners-CflzKW0N.cjs +1 -0
- package/components/{CasinoWinners-CA6s2Z0J.js → CasinoWinners-DSCWZZgk.js} +219 -205
- package/components/{GeneralAnimationLoading-DG0Zw3Hq.js → GeneralAnimationLoading-DE8HSm4C.js} +1 -1
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-B8xMrRuK.cjs +0 -1
- package/components/CasinoGamesCategorySection-CbKid5So.cjs +0 -1
- package/components/CasinoRandomGame-Dw5KkOWz.cjs +0 -2
- package/components/CasinoWinners-B1LRzKTu.cjs +0 -1
|
@@ -5,19 +5,19 @@ var P = (a, e, t) => new Promise((n, l) => {
|
|
|
5
5
|
} catch (f) {
|
|
6
6
|
l(f);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, d = (g) => {
|
|
9
9
|
try {
|
|
10
10
|
p(t.throw(g));
|
|
11
11
|
} catch (f) {
|
|
12
12
|
l(f);
|
|
13
13
|
}
|
|
14
|
-
}, p = (g) => g.done ? n(g.value) : Promise.resolve(g.value).then(r,
|
|
14
|
+
}, p = (g) => g.done ? n(g.value) : Promise.resolve(g.value).then(r, d);
|
|
15
15
|
p((t = t.apply(a, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { $ as H, a as
|
|
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 O, g as Ce, j as v, 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-CCQut7OA.js";
|
|
18
18
|
function Ae({ withLocale: a, translations: e }) {
|
|
19
19
|
H.subscribe((t) => {
|
|
20
|
-
t == null && (
|
|
20
|
+
t == null && (_e.set(e), H.set(a));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function Z(a, e) {
|
|
@@ -95,7 +95,7 @@ const Q = {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
function He(a) {
|
|
98
|
-
Me(a, "svelte-
|
|
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
99
|
}
|
|
100
100
|
function $(a, e, t) {
|
|
101
101
|
const n = a.slice();
|
|
@@ -103,7 +103,7 @@ function $(a, e, t) {
|
|
|
103
103
|
}
|
|
104
104
|
const Oe = (a) => ({}), ee = (a) => ({});
|
|
105
105
|
function te(a) {
|
|
106
|
-
let e, t, n, l, r,
|
|
106
|
+
let e, t, n, l, r, d, p;
|
|
107
107
|
const g = (
|
|
108
108
|
/*#slots*/
|
|
109
109
|
a[22].close
|
|
@@ -114,24 +114,24 @@ function te(a) {
|
|
|
114
114
|
a[21],
|
|
115
115
|
ee
|
|
116
116
|
), o = f || Ee();
|
|
117
|
-
function
|
|
117
|
+
function _(s, w) {
|
|
118
118
|
return (
|
|
119
119
|
/*hasRandomGames*/
|
|
120
120
|
s[7] ? qe : Ue
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
let
|
|
123
|
+
let m = _(a), c = m(a);
|
|
124
124
|
return {
|
|
125
125
|
c() {
|
|
126
|
-
e =
|
|
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
127
|
},
|
|
128
128
|
m(s, w) {
|
|
129
|
-
|
|
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
130
|
n,
|
|
131
131
|
"click",
|
|
132
132
|
/*closeModal*/
|
|
133
133
|
a[12]
|
|
134
|
-
),
|
|
134
|
+
), d = !0);
|
|
135
135
|
},
|
|
136
136
|
p(s, w) {
|
|
137
137
|
f && f.p && (!r || w[0] & /*$$scope*/
|
|
@@ -152,7 +152,7 @@ function te(a) {
|
|
|
152
152
|
s[21]
|
|
153
153
|
),
|
|
154
154
|
ee
|
|
155
|
-
),
|
|
155
|
+
), m === (m = _(s)) && c ? c.p(s, w) : (c.d(1), c = m(s), c && (c.c(), c.m(t, null)));
|
|
156
156
|
},
|
|
157
157
|
i(s) {
|
|
158
158
|
r || (I(o, s), r = !0);
|
|
@@ -161,7 +161,7 @@ function te(a) {
|
|
|
161
161
|
O(o, s), r = !1;
|
|
162
162
|
},
|
|
163
163
|
d(s) {
|
|
164
|
-
s &&
|
|
164
|
+
s && v(e), o && o.d(s), c.d(), d = !1, p();
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
}
|
|
@@ -172,11 +172,11 @@ function Ee(a) {
|
|
|
172
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
173
|
},
|
|
174
174
|
m(n, l) {
|
|
175
|
-
|
|
175
|
+
k(n, e, l), y(e, t);
|
|
176
176
|
},
|
|
177
177
|
p: ze,
|
|
178
178
|
d(n) {
|
|
179
|
-
n &&
|
|
179
|
+
n && v(e);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -187,10 +187,10 @@ function Ue(a) {
|
|
|
187
187
|
), n;
|
|
188
188
|
return {
|
|
189
189
|
c() {
|
|
190
|
-
e =
|
|
190
|
+
e = b("p"), n = L(t), u(e, "class", "RandomGameLoading");
|
|
191
191
|
},
|
|
192
192
|
m(l, r) {
|
|
193
|
-
|
|
193
|
+
k(l, e, r), y(e, n);
|
|
194
194
|
},
|
|
195
195
|
p(l, r) {
|
|
196
196
|
r[0] & /*$_*/
|
|
@@ -198,7 +198,7 @@ function Ue(a) {
|
|
|
198
198
|
l[9]("noGames") + "") && T(n, t);
|
|
199
199
|
},
|
|
200
200
|
d(l) {
|
|
201
|
-
l &&
|
|
201
|
+
l && v(e);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
@@ -206,10 +206,10 @@ function qe(a) {
|
|
|
206
206
|
let e, t, n, l, r = K(
|
|
207
207
|
/*gamesToShow*/
|
|
208
208
|
a[4]
|
|
209
|
-
),
|
|
209
|
+
), d = [];
|
|
210
210
|
for (let o = 0; o < r.length; o += 1)
|
|
211
|
-
|
|
212
|
-
function p(o,
|
|
211
|
+
d[o] = ae($(a, r, o));
|
|
212
|
+
function p(o, _) {
|
|
213
213
|
return (
|
|
214
214
|
/*animationDone*/
|
|
215
215
|
o[6] ? Ye : Ve
|
|
@@ -218,51 +218,51 @@ function qe(a) {
|
|
|
218
218
|
let g = p(a), f = g(a);
|
|
219
219
|
return {
|
|
220
220
|
c() {
|
|
221
|
-
e =
|
|
222
|
-
for (let o = 0; o <
|
|
223
|
-
|
|
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
224
|
l = C(), f.c(), u(n, "class", "GamesContainer"), u(t, "class", "RandomGamesSliderWrapper"), u(e, "class", "RandomGameWrapper");
|
|
225
225
|
},
|
|
226
|
-
m(o,
|
|
227
|
-
|
|
228
|
-
for (let
|
|
229
|
-
m
|
|
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
230
|
a[23](n), y(e, l), f.m(e, null);
|
|
231
231
|
},
|
|
232
|
-
p(o,
|
|
233
|
-
if (
|
|
232
|
+
p(o, _) {
|
|
233
|
+
if (_[0] & /*gamesToShow*/
|
|
234
234
|
16) {
|
|
235
235
|
r = K(
|
|
236
236
|
/*gamesToShow*/
|
|
237
237
|
o[4]
|
|
238
238
|
);
|
|
239
|
-
let
|
|
240
|
-
for (
|
|
241
|
-
const
|
|
242
|
-
m
|
|
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
243
|
}
|
|
244
|
-
for (;
|
|
245
|
-
m
|
|
246
|
-
|
|
244
|
+
for (; m < d.length; m += 1)
|
|
245
|
+
d[m].d(1);
|
|
246
|
+
d.length = r.length;
|
|
247
247
|
}
|
|
248
|
-
g === (g = p(o)) && f ? f.p(o,
|
|
248
|
+
g === (g = p(o)) && f ? f.p(o, _) : (f.d(1), f = g(o), f && (f.c(), f.m(e, null)));
|
|
249
249
|
},
|
|
250
250
|
d(o) {
|
|
251
|
-
o &&
|
|
251
|
+
o && v(e), Be(d, o), a[23](null), f.d();
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
function ae(a) {
|
|
256
|
-
let e, t, n, l, r,
|
|
256
|
+
let e, t, n, l, r, d;
|
|
257
257
|
return {
|
|
258
258
|
c() {
|
|
259
|
-
e =
|
|
259
|
+
e = b("div"), t = b("img"), d = C(), u(t, "class", "RandomGameImage"), X(t.src, n = /*game*/
|
|
260
260
|
a[41].thumbnail) || u(t, "src", n), u(t, "alt", l = /*game*/
|
|
261
261
|
a[41].name), u(t, "title", r = /*game*/
|
|
262
262
|
a[41].name), u(e, "class", "item");
|
|
263
263
|
},
|
|
264
264
|
m(p, g) {
|
|
265
|
-
|
|
265
|
+
k(p, e, g), y(e, t), y(e, d);
|
|
266
266
|
},
|
|
267
267
|
p(p, g) {
|
|
268
268
|
g[0] & /*gamesToShow*/
|
|
@@ -274,7 +274,7 @@ function ae(a) {
|
|
|
274
274
|
p[41].name) && u(t, "title", r);
|
|
275
275
|
},
|
|
276
276
|
d(p) {
|
|
277
|
-
p &&
|
|
277
|
+
p && v(e);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
@@ -285,10 +285,10 @@ function Ve(a) {
|
|
|
285
285
|
), n;
|
|
286
286
|
return {
|
|
287
287
|
c() {
|
|
288
|
-
e =
|
|
288
|
+
e = b("p"), n = L(t), u(e, "class", "RandomGameLoading");
|
|
289
289
|
},
|
|
290
290
|
m(l, r) {
|
|
291
|
-
|
|
291
|
+
k(l, e, r), y(e, n);
|
|
292
292
|
},
|
|
293
293
|
p(l, r) {
|
|
294
294
|
r[0] & /*$_*/
|
|
@@ -296,7 +296,7 @@ function Ve(a) {
|
|
|
296
296
|
l[9]("randomGameLoading") + "") && T(n, t);
|
|
297
297
|
},
|
|
298
298
|
d(l) {
|
|
299
|
-
l &&
|
|
299
|
+
l && v(e);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
}
|
|
@@ -304,20 +304,20 @@ function Ye(a) {
|
|
|
304
304
|
let e, t, n, l, r = (
|
|
305
305
|
/*randomGame*/
|
|
306
306
|
a[3].name + ""
|
|
307
|
-
),
|
|
307
|
+
), d, p, g, f = (
|
|
308
308
|
/*randomGame*/
|
|
309
309
|
a[3].vendor.name + ""
|
|
310
|
-
), o,
|
|
310
|
+
), o, _, m, c = (
|
|
311
311
|
/*$_*/
|
|
312
312
|
a[9]("playNowRandomGame") + ""
|
|
313
313
|
), s, w, S;
|
|
314
314
|
return {
|
|
315
315
|
c() {
|
|
316
|
-
e =
|
|
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 =
|
|
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
318
|
},
|
|
319
|
-
m(G,
|
|
320
|
-
|
|
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
321
|
J(
|
|
322
322
|
e,
|
|
323
323
|
"click",
|
|
@@ -325,24 +325,24 @@ function Ye(a) {
|
|
|
325
325
|
a[24]
|
|
326
326
|
),
|
|
327
327
|
J(
|
|
328
|
-
|
|
328
|
+
m,
|
|
329
329
|
"click",
|
|
330
330
|
/*click_handler_1*/
|
|
331
331
|
a[25]
|
|
332
332
|
)
|
|
333
333
|
], w = !0);
|
|
334
334
|
},
|
|
335
|
-
p(G,
|
|
336
|
-
|
|
335
|
+
p(G, R) {
|
|
336
|
+
R[0] & /*randomGame*/
|
|
337
337
|
8 && r !== (r = /*randomGame*/
|
|
338
|
-
G[3].name + "") && T(
|
|
338
|
+
G[3].name + "") && T(d, r), R[0] & /*randomGame*/
|
|
339
339
|
8 && f !== (f = /*randomGame*/
|
|
340
|
-
G[3].vendor.name + "") && T(o, f),
|
|
341
|
-
512 &&
|
|
342
|
-
G[9]("playNowRandomGame") + "") && T(s,
|
|
340
|
+
G[3].vendor.name + "") && T(o, f), R[0] & /*$_*/
|
|
341
|
+
512 && c !== (c = /*$_*/
|
|
342
|
+
G[9]("playNowRandomGame") + "") && T(s, c);
|
|
343
343
|
},
|
|
344
344
|
d(G) {
|
|
345
|
-
G && (
|
|
345
|
+
G && (v(e), v(t), v(n)), w = !1, De(S);
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
}
|
|
@@ -353,10 +353,10 @@ function Ke(a) {
|
|
|
353
353
|
), n;
|
|
354
354
|
return {
|
|
355
355
|
c() {
|
|
356
|
-
e =
|
|
356
|
+
e = b("span"), n = L(t), u(e, "class", "RandomButtonText");
|
|
357
357
|
},
|
|
358
358
|
m(l, r) {
|
|
359
|
-
|
|
359
|
+
k(l, e, r), y(e, n);
|
|
360
360
|
},
|
|
361
361
|
p(l, r) {
|
|
362
362
|
r[0] & /*$_*/
|
|
@@ -364,7 +364,7 @@ function Ke(a) {
|
|
|
364
364
|
l[9]("playRandomGame") + "") && T(n, t);
|
|
365
365
|
},
|
|
366
366
|
d(l) {
|
|
367
|
-
l &&
|
|
367
|
+
l && v(e);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
@@ -372,13 +372,13 @@ function Xe(a) {
|
|
|
372
372
|
let e, t;
|
|
373
373
|
return {
|
|
374
374
|
c() {
|
|
375
|
-
e =
|
|
375
|
+
e = b("span"), t = L(
|
|
376
376
|
/*buttontext*/
|
|
377
377
|
a[1]
|
|
378
378
|
), u(e, "class", "RandomButtonText");
|
|
379
379
|
},
|
|
380
380
|
m(n, l) {
|
|
381
|
-
|
|
381
|
+
k(n, e, l), y(e, t);
|
|
382
382
|
},
|
|
383
383
|
p(n, l) {
|
|
384
384
|
l[0] & /*buttontext*/
|
|
@@ -389,16 +389,16 @@ function Xe(a) {
|
|
|
389
389
|
);
|
|
390
390
|
},
|
|
391
391
|
d(n) {
|
|
392
|
-
n &&
|
|
392
|
+
n && v(e);
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
function Ze(a) {
|
|
397
|
-
let e, t, n, l, r,
|
|
397
|
+
let e, t, n, l, r, d, p, g, f, o = (
|
|
398
398
|
/*show*/
|
|
399
399
|
a[5] && te(a)
|
|
400
400
|
);
|
|
401
|
-
function
|
|
401
|
+
function _(s, w) {
|
|
402
402
|
if (
|
|
403
403
|
/*buttontext*/
|
|
404
404
|
s[1]
|
|
@@ -406,13 +406,13 @@ function Ze(a) {
|
|
|
406
406
|
if (!/*buttontext*/
|
|
407
407
|
s[1]) return Ke;
|
|
408
408
|
}
|
|
409
|
-
let
|
|
409
|
+
let m = _(a), c = m && m(a);
|
|
410
410
|
return {
|
|
411
411
|
c() {
|
|
412
|
-
e =
|
|
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
413
|
},
|
|
414
414
|
m(s, w) {
|
|
415
|
-
|
|
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
416
|
a[0], a[27](e), p = !0, g || (f = J(
|
|
417
417
|
l,
|
|
418
418
|
"click",
|
|
@@ -425,8 +425,8 @@ function Ze(a) {
|
|
|
425
425
|
s[5] ? o ? (o.p(s, w), w[0] & /*show*/
|
|
426
426
|
32 && I(o, 1)) : (o = te(s), o.c(), I(o, 1), o.m(e, t)) : o && (We(), O(o, 1, 1, () => {
|
|
427
427
|
o = null;
|
|
428
|
-
}), Ce()),
|
|
429
|
-
1) && (
|
|
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
430
|
s[0]);
|
|
431
431
|
},
|
|
432
432
|
i(s) {
|
|
@@ -436,19 +436,19 @@ function Ze(a) {
|
|
|
436
436
|
O(o), p = !1;
|
|
437
437
|
},
|
|
438
438
|
d(s) {
|
|
439
|
-
s &&
|
|
439
|
+
s && v(e), o && o.d(), c && c.d(), a[27](null), g = !1, f();
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
443
|
function Qe(a, e, t) {
|
|
444
444
|
let n;
|
|
445
445
|
Fe(a, Ie, (i) => t(9, n = i));
|
|
446
|
-
let { $$slots: l = {}, $$scope: r } = e, { endpoint:
|
|
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, E, B, U = null;
|
|
447
447
|
Ae({ withLocale: "en", translations: {} });
|
|
448
448
|
const oe = () => {
|
|
449
|
-
fetch(
|
|
450
|
-
Object.keys(h).forEach((
|
|
451
|
-
Z(
|
|
449
|
+
fetch(m).then((h) => h.json()).then((h) => {
|
|
450
|
+
Object.keys(h).forEach((x) => {
|
|
451
|
+
Z(x, h[x]);
|
|
452
452
|
});
|
|
453
453
|
}).catch((h) => {
|
|
454
454
|
console.log(h);
|
|
@@ -458,9 +458,9 @@ function Qe(a, e, t) {
|
|
|
458
458
|
Z(i, Q[i]);
|
|
459
459
|
});
|
|
460
460
|
const le = () => {
|
|
461
|
-
let i = new URL(`${
|
|
461
|
+
let i = new URL(`${d}/v1/casino/games`);
|
|
462
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,
|
|
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
464
|
}).catch((h) => {
|
|
465
465
|
console.log(h), t(7, z = !1);
|
|
466
466
|
});
|
|
@@ -468,27 +468,28 @@ function Qe(a, e, t) {
|
|
|
468
468
|
const h = se(i);
|
|
469
469
|
return h.concat(h);
|
|
470
470
|
}, re = () => P(this, null, function* () {
|
|
471
|
-
yield Je(), B = Math.floor(Math.random() * (
|
|
471
|
+
yield Je(), B = Math.floor(Math.random() * (R.length / 2)) + R.length / 2, t(3, G = R[B]), E = j.children[B];
|
|
472
472
|
}), A = () => P(this, null, function* () {
|
|
473
473
|
t(6, D = !1), t(5, W = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield re();
|
|
474
474
|
const i = window.getComputedStyle(j).getPropertyValue("gap"), h = parseInt(i, 10) || 0, N = (E.offsetHeight + h) * B, we = [
|
|
475
475
|
{ transform: "translateX(0px)" },
|
|
476
|
+
{ filter: "blur(5px)" },
|
|
476
477
|
{
|
|
477
478
|
transform: `translateY(-${N}px)`
|
|
478
479
|
}
|
|
479
|
-
],
|
|
480
|
+
], be = {
|
|
480
481
|
duration: 2e3,
|
|
481
482
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
482
483
|
fill: "forwards"
|
|
483
484
|
};
|
|
484
|
-
U = j.animate(we,
|
|
485
|
+
U = j.animate(we, be), U.onfinish = () => {
|
|
485
486
|
t(6, D = !0);
|
|
486
487
|
};
|
|
487
488
|
}), se = (i) => {
|
|
488
489
|
const h = structuredClone(i);
|
|
489
|
-
let
|
|
490
|
-
for (;
|
|
491
|
-
N = Math.floor(Math.random() *
|
|
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]];
|
|
492
493
|
return h;
|
|
493
494
|
}, q = () => {
|
|
494
495
|
window.postMessage(
|
|
@@ -501,17 +502,17 @@ function Qe(a, e, t) {
|
|
|
501
502
|
context: "RandomGameWidget",
|
|
502
503
|
gameId: `${G.gId || G.id}`
|
|
503
504
|
});
|
|
504
|
-
}, ce = () => {
|
|
505
|
-
t(5, W = !1), window.postMessage({ type: "RandomWidgetState", state: W }, window.location.href);
|
|
506
505
|
}, me = () => {
|
|
507
|
-
|
|
506
|
+
t(5, W = !1), window.postMessage({ type: "RandomWidgetState", state: W }, window.location.href);
|
|
508
507
|
}, de = () => {
|
|
508
|
+
Pe(f);
|
|
509
|
+
}, ce = () => {
|
|
509
510
|
let i = document.createElement("style");
|
|
510
|
-
i.innerHTML =
|
|
511
|
+
i.innerHTML = c, F.appendChild(i);
|
|
511
512
|
}, ue = () => {
|
|
512
513
|
let i = new URL(s), h = document.createElement("style");
|
|
513
|
-
fetch(i.href).then((
|
|
514
|
-
h.innerHTML =
|
|
514
|
+
fetch(i.href).then((x) => x.text()).then((x) => {
|
|
515
|
+
h.innerHTML = x, setTimeout(
|
|
515
516
|
() => {
|
|
516
517
|
F.appendChild(h);
|
|
517
518
|
},
|
|
@@ -531,20 +532,20 @@ function Qe(a, e, t) {
|
|
|
531
532
|
});
|
|
532
533
|
}
|
|
533
534
|
return a.$$set = (i) => {
|
|
534
|
-
"endpoint" in i && t(13,
|
|
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);
|
|
535
536
|
}, a.$$.update = () => {
|
|
536
537
|
a.$$.dirty[0] & /*lang*/
|
|
537
|
-
65536 && f &&
|
|
538
|
-
131072 &&
|
|
539
|
-
24576 &&
|
|
540
|
-
262148 &&
|
|
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*/
|
|
541
542
|
524292 && s && F && ue();
|
|
542
543
|
}, [
|
|
543
544
|
o,
|
|
544
|
-
|
|
545
|
+
_,
|
|
545
546
|
F,
|
|
546
547
|
G,
|
|
547
|
-
|
|
548
|
+
R,
|
|
548
549
|
W,
|
|
549
550
|
D,
|
|
550
551
|
z,
|
|
@@ -552,13 +553,13 @@ function Qe(a, e, t) {
|
|
|
552
553
|
n,
|
|
553
554
|
A,
|
|
554
555
|
q,
|
|
555
|
-
|
|
556
|
-
|
|
556
|
+
me,
|
|
557
|
+
d,
|
|
557
558
|
p,
|
|
558
559
|
g,
|
|
559
560
|
f,
|
|
561
|
+
m,
|
|
560
562
|
c,
|
|
561
|
-
d,
|
|
562
563
|
s,
|
|
563
564
|
w,
|
|
564
565
|
r,
|
|
@@ -570,14 +571,14 @@ function Qe(a, e, t) {
|
|
|
570
571
|
ye
|
|
571
572
|
];
|
|
572
573
|
}
|
|
573
|
-
class $e extends
|
|
574
|
+
class $e extends Re {
|
|
574
575
|
constructor(e) {
|
|
575
|
-
super(),
|
|
576
|
+
super(), xe(
|
|
576
577
|
this,
|
|
577
578
|
e,
|
|
578
579
|
Qe,
|
|
579
580
|
Ze,
|
|
580
|
-
|
|
581
|
+
ve,
|
|
581
582
|
{
|
|
582
583
|
endpoint: 13,
|
|
583
584
|
datasource: 14,
|
|
@@ -655,7 +656,7 @@ class $e extends xe {
|
|
|
655
656
|
this.$$set({ filteredrandomgamecategories: e }), M();
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
|
|
659
|
+
ke($e, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
|
|
659
660
|
export {
|
|
660
661
|
$e as default
|
|
661
662
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var S=(n,t,a)=>new Promise((o,r)=>{var s=p=>{try{f(a.next(p))}catch(g){r(g)}},m=p=>{try{f(a.throw(p))}catch(g){r(g)}},f=p=>p.done?o(p.value):Promise.resolve(p.value).then(s,m);f((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B3jjGeXh.cjs");function le({withLocale:n,translations:t}){e.$locale.subscribe(a=>{a==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function z(n,t){e.addMessages(n,t)}function re(n){e.$locale.set(n)}const B={en:{playRandomGame:"Play a random game",randomGameLoading:"Selecting ...",playNowRandomGame:"Play Now",noGames:"There are no random games to play"},"zh-hk":{playRandomGame:"玩隨機遊戲",randomGameLoading:"選擇...",playNowRandomGame:"現在播放",noGames:"There are no random games to play"},de:{playRandomGame:"Spiel ein Zufallsspiel",randomGameLoading:"Auswahl läuft",playNowRandomGame:"Jetzt spielen",noGames:"There are no random games to play"},fr:{playRandomGame:"Jouer à un jeu aléatoire",randomGameLoading:"Sélectinner ...",playNowRandomGame:"Jouer maintenant",noGames:"There are no random games to play"},ro:{playRandomGame:"Joaca-te un joc aleatoriu",randomGameLoading:"Se selecteaza ...",playNowRandomGame:"Joaca-te Acum",noGames:"Nu exista jocuri aleatorii de jucat"},tr:{playRandomGame:"Oynamak için doğru oyunun adını yazın.",randomGameLoading:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",playNowRandomGame:"Son arama",noGames:"Yükleniyor, lütfen bekleyin"},es:{playRandomGame:"Juego aleatorio",randomGameLoading:"Seleccionando…",playNowRandomGame:"Juega Ya",noGames:"There are no random games to play"},pt:{playRandomGame:"Jogue um jogo aleatório",randomGameLoading:"Selecionando ...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},hr:{playRandomGame:"Igrajte nasumičnu igru",randomGameLoading:"Odabir...",playNowRandomGame:"Igraj sada",noGames:"Nema nasumičnih igara za igranje"},"pt-br":{playRandomGame:"Jogue um jogo aleatório",randomGameCarregando:"Selecionando...",playNowRandomGame:"Jogue agora",noGames:"There are no random games to play"},"es-mx":{playRandomGame:"Jugar un juego al azar",randomGameCargando:"Seleccionando..",playNowRandomGame:"Jugar ahora",noGames:"There are no random games to play"}};function ie(n){e.append_styles(n,"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}")}function I(n,t,a){const o=n.slice();return o[41]=t[a],o}const se=n=>({}),J=n=>({});function D(n){let t,a,o,r,s,m,f;const p=n[22].close,g=e.create_slot(p,n,n[21],J),l=g||de();function _(d,y){return d[7]?me:ce}let c=_(n),u=c(n);return{c(){t=e.element("div"),a=e.element("div"),o=e.element("span"),l&&l.c(),r=e.space(),u.c(),e.attr(o,"class","ModalCloseBtn"),e.attr(o,"role","button"),e.attr(a,"class","ModalContainer"),e.attr(t,"class","ModalWindow")},m(d,y){e.insert(d,t,y),e.append(t,a),e.append(a,o),l&&l.m(o,null),e.append(a,r),u.m(a,null),s=!0,m||(f=e.listen(o,"click",n[12]),m=!0)},p(d,y){g&&g.p&&(!s||y[0]&2097152)&&e.update_slot_base(g,p,d,d[21],s?e.get_slot_changes(p,d[21],y,se):e.get_all_dirty_from_scope(d[21]),J),c===(c=_(d))&&u?u.p(d,y):(u.d(1),u=c(d),u&&(u.c(),u.m(a,null)))},i(d){s||(e.transition_in(l,d),s=!0)},o(d){e.transition_out(l,d),s=!1},d(d){d&&e.detach(t),l&&l.d(d),u.d(),m=!1,f()}}}function de(n){let t,a;return{c(){t=e.svg_element("svg"),a=e.svg_element("path"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(a,"stroke-width","2"),e.attr(a,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(o,r){e.insert(o,t,r),e.append(t,a)},p:e.noop,d(o){o&&e.detach(t)}}}function ce(n){let t,a=n[9]("noGames")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("noGames")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function me(n){let t,a,o,r,s=e.ensure_array_like(n[4]),m=[];for(let l=0;l<s.length;l+=1)m[l]=P(I(n,s,l));function f(l,_){return l[6]?pe:ue}let p=f(n),g=p(n);return{c(){t=e.element("div"),a=e.element("main"),o=e.element("div");for(let l=0;l<m.length;l+=1)m[l].c();r=e.space(),g.c(),e.attr(o,"class","GamesContainer"),e.attr(a,"class","RandomGamesSliderWrapper"),e.attr(t,"class","RandomGameWrapper")},m(l,_){e.insert(l,t,_),e.append(t,a),e.append(a,o);for(let c=0;c<m.length;c+=1)m[c]&&m[c].m(o,null);n[23](o),e.append(t,r),g.m(t,null)},p(l,_){if(_[0]&16){s=e.ensure_array_like(l[4]);let c;for(c=0;c<s.length;c+=1){const u=I(l,s,c);m[c]?m[c].p(u,_):(m[c]=P(u),m[c].c(),m[c].m(o,null))}for(;c<m.length;c+=1)m[c].d(1);m.length=s.length}p===(p=f(l))&&g?g.p(l,_):(g.d(1),g=p(l),g&&(g.c(),g.m(t,null)))},d(l){l&&e.detach(t),e.destroy_each(m,l),n[23](null),g.d()}}}function P(n){let t,a,o,r,s,m;return{c(){t=e.element("div"),a=e.element("img"),m=e.space(),e.attr(a,"class","RandomGameImage"),e.src_url_equal(a.src,o=n[41].thumbnail)||e.attr(a,"src",o),e.attr(a,"alt",r=n[41].name),e.attr(a,"title",s=n[41].name),e.attr(t,"class","item")},m(f,p){e.insert(f,t,p),e.append(t,a),e.append(t,m)},p(f,p){p[0]&16&&!e.src_url_equal(a.src,o=f[41].thumbnail)&&e.attr(a,"src",o),p[0]&16&&r!==(r=f[41].name)&&e.attr(a,"alt",r),p[0]&16&&s!==(s=f[41].name)&&e.attr(a,"title",s)},d(f){f&&e.detach(t)}}}function ue(n){let t,a=n[9]("randomGameLoading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","RandomGameLoading")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("randomGameLoading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function pe(n){let t,a,o,r,s=n[3].name+"",m,f,p,g=n[3].vendor.name+"",l,_,c,u=n[9]("playNowRandomGame")+"",d,y,R;return{c(){t=e.element("button"),t.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
|
|
2
|
+
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`,a=e.space(),o=e.element("div"),r=e.element("p"),m=e.text(s),f=e.space(),p=e.element("p"),l=e.text(g),_=e.space(),c=e.element("button"),d=e.text(u),e.attr(t,"class","RandomTryAgain"),e.attr(r,"class","RandomGameTitle"),e.attr(p,"class","RandomGameVendor"),e.attr(c,"class","RandomGamePlay"),e.attr(o,"class","RandomGameDetails")},m(b,w){e.insert(b,t,w),e.insert(b,a,w),e.insert(b,o,w),e.append(o,r),e.append(r,m),e.append(o,f),e.append(o,p),e.append(p,l),e.append(o,_),e.append(o,c),e.append(c,d),y||(R=[e.listen(t,"click",n[24]),e.listen(c,"click",n[25])],y=!0)},p(b,w){w[0]&8&&s!==(s=b[3].name+"")&&e.set_data(m,s),w[0]&8&&g!==(g=b[3].vendor.name+"")&&e.set_data(l,g),w[0]&512&&u!==(u=b[9]("playNowRandomGame")+"")&&e.set_data(d,u)},d(b){b&&(e.detach(t),e.detach(a),e.detach(o)),y=!1,e.run_all(R)}}}function ge(n){let t,a=n[9]("playRandomGame")+"",o;return{c(){t=e.element("span"),o=e.text(a),e.attr(t,"class","RandomButtonText")},m(r,s){e.insert(r,t,s),e.append(t,o)},p(r,s){s[0]&512&&a!==(a=r[9]("playRandomGame")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function fe(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","RandomButtonText")},m(o,r){e.insert(o,t,r),e.append(t,a)},p(o,r){r[0]&2&&e.set_data(a,o[1])},d(o){o&&e.detach(t)}}}function he(n){let t,a,o,r,s,m,f,p,g,l=n[5]&&D(n);function _(d,y){if(d[1])return fe;if(!d[1])return ge}let c=_(n),u=c&&c(n);return{c(){t=e.element("div"),l&&l.c(),a=e.space(),o=e.element("div"),r=e.element("button"),u&&u.c(),s=e.space(),m=e.element("span"),e.attr(m,"class","RandomButtonIcon"),e.attr(r,"class","RandomButton"),e.attr(o,"class","RandomButtonWrapper"),e.attr(t,"part","CustomStylingContainer")},m(d,y){e.insert(d,t,y),l&&l.m(t,null),e.append(t,a),e.append(t,o),e.append(o,r),u&&u.m(r,null),e.append(r,s),e.append(r,m),m.innerHTML=n[0],n[27](t),f=!0,p||(g=e.listen(r,"click",n[26]),p=!0)},p(d,y){d[5]?l?(l.p(d,y),y[0]&32&&e.transition_in(l,1)):(l=D(d),l.c(),e.transition_in(l,1),l.m(t,a)):l&&(e.group_outros(),e.transition_out(l,1,1,()=>{l=null}),e.check_outros()),c===(c=_(d))&&u?u.p(d,y):(u&&u.d(1),u=c&&c(d),u&&(u.c(),u.m(r,s))),(!f||y[0]&1)&&(m.innerHTML=d[0])},i(d){f||(e.transition_in(l),f=!0)},o(d){e.transition_out(l),f=!1},d(d){d&&e.detach(t),l&&l.d(),u&&u.d(),n[27](null),p=!1,g()}}}function ye(n,t,a){let o;e.component_subscribe(n,e.$format,i=>a(9,o=i));let{$$slots:r={},$$scope:s}=t,{endpoint:m=""}=t,{datasource:f=""}=t,{gameevent:p=""}=t,{lang:g=""}=t,{randombuttonicon:l=""}=t,{buttontext:_=""}=t,{translationurl:c=""}=t,{clientstyling:u=""}=t,{clientstylingurl:d=""}=t,{filteredrandomgamecategories:y=""}=t,R=[],b="",w,v=!1,L=!1,C=!1,H=window.navigator.userAgent,x,k,j,F,W=null;le({withLocale:"en",translations:{}});const O=()=>{fetch(c).then(h=>h.json()).then(h=>{Object.keys(h).forEach(G=>{z(G,h[G])})}).catch(h=>{console.log(h)})};Object.keys(B).forEach(i=>{z(i,B[i])});const E=()=>{let i=new URL(`${m}/v1/casino/games`);i.searchParams.append("platform",e.getDevice(H)),i.searchParams.append("datasource",f),i.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),y&&i.searchParams.append("filter",`groups=${y}`),i.searchParams.append("expand","categories,vendor"),i.searchParams.append("pagination","offset=0,limit=1000"),fetch(i.href).then(h=>h.json()).then(h=>{R=h.items,R.length?(a(4,w=U(R.slice(0,19))),a(7,C=!0)):(a(4,w=[]),a(7,C=!1))}).catch(h=>{console.log(h),a(7,C=!1)})},U=i=>{const h=V(i);return h.concat(h)},q=()=>S(this,null,function*(){yield e.tick(),F=Math.floor(Math.random()*(w.length/2))+w.length/2,a(3,b=w[F]),j=k.children[F]}),T=()=>S(this,null,function*(){a(6,L=!1),a(5,v=!0),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href),yield q();const i=window.getComputedStyle(k).getPropertyValue("gap"),h=parseInt(i,10)||0,M=(j.offsetHeight+h)*F,ne=[{transform:"translateX(0px)"},{filter:"blur(5px)"},{transform:`translateY(-${M}px)`}],oe={duration:2e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};W=k.animate(ne,oe),W.onfinish=()=>{a(6,L=!0)}}),V=i=>{const h=structuredClone(i);let G=h.length,M;for(;G!=0;)M=Math.floor(Math.random()*G),G--,[h[G],h[M]]=[h[M],h[G]];return h},N=()=>{window.postMessage({type:p,gameId:b.gId||b.id},window.location.href),a(5,v=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"RandomGameWidget",gameId:`${b.gId||b.id}`})},Y=()=>{a(5,v=!1),window.postMessage({type:"RandomWidgetState",state:v},window.location.href)},X=()=>{re(g)},Z=()=>{let i=document.createElement("style");i.innerHTML=u,x.appendChild(i)},K=()=>{let i=new URL(d),h=document.createElement("style");fetch(i.href).then(G=>G.text()).then(G=>{h.innerHTML=G,setTimeout(()=>{x.appendChild(h)},1)})};function Q(i){e.binding_callbacks[i?"unshift":"push"](()=>{k=i,a(8,k)})}const $=()=>T(),ee=()=>N(),te=()=>T();function ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{x=i,a(2,x)})}return n.$$set=i=>{"endpoint"in i&&a(13,m=i.endpoint),"datasource"in i&&a(14,f=i.datasource),"gameevent"in i&&a(15,p=i.gameevent),"lang"in i&&a(16,g=i.lang),"randombuttonicon"in i&&a(0,l=i.randombuttonicon),"buttontext"in i&&a(1,_=i.buttontext),"translationurl"in i&&a(17,c=i.translationurl),"clientstyling"in i&&a(18,u=i.clientstyling),"clientstylingurl"in i&&a(19,d=i.clientstylingurl),"filteredrandomgamecategories"in i&&a(20,y=i.filteredrandomgamecategories),"$$scope"in i&&a(21,s=i.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&65536&&g&&X(),n.$$.dirty[0]&131072&&c&&O(),n.$$.dirty[0]&24576&&m&&f&&E(),n.$$.dirty[0]&262148&&u&&x&&Z(),n.$$.dirty[0]&524292&&d&&x&&K()},[l,_,x,b,w,v,L,C,k,o,T,N,Y,m,f,p,g,c,u,d,y,s,r,Q,$,ee,te,ae]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ye,he,e.safe_not_equal,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},ie,[-1,-1])}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[14]}set datasource(t){this.$$set({datasource:t}),e.flush()}get gameevent(){return this.$$.ctx[15]}set gameevent(t){this.$$set({gameevent:t}),e.flush()}get lang(){return this.$$.ctx[16]}set lang(t){this.$$set({lang:t}),e.flush()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(t){this.$$set({randombuttonicon:t}),e.flush()}get buttontext(){return this.$$.ctx[1]}set buttontext(t){this.$$set({buttontext:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(t){this.$$set({filteredrandomgamecategories:t}),e.flush()}}e.create_custom_element(A,{endpoint:{},datasource:{},gameevent:{},lang:{},randombuttonicon:{},buttontext:{},translationurl:{},clientstyling:{},clientstylingurl:{},filteredrandomgamecategories:{}},["close"],[],!0);exports.default=A;
|