@everymatrix/casino-lobby 1.44.0 → 1.45.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.
- package/components/CasinoCalendar-DEhfBjpm.js +5138 -0
- package/components/CasinoCalendar-egUFg4eK.cjs +9 -0
- package/components/CasinoCalendarDailyDetails-CfTziMCu.js +605 -0
- package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +1 -0
- package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +1 -0
- package/components/CasinoCalendarDailyItem-CQ8syIIe.js +220 -0
- package/components/CasinoCategoriesSlider-BQvWcqNm.js +597 -0
- package/components/CasinoCategoriesSlider-BfuTLKom.cjs +1 -0
- package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +1 -0
- package/components/CasinoCollectionsProviders-CwJY8Pmw.js +659 -0
- package/components/CasinoFavoritesSection-BBWM7_dI.js +418 -0
- package/components/CasinoFavoritesSection-Da0-zSyn.cjs +1 -0
- package/components/CasinoFilter-BkpU5f2V.cjs +1 -0
- package/components/CasinoFilter-D3p7c7qu.js +628 -0
- package/components/CasinoGamePage-BHxY5XUD.cjs +18 -0
- package/components/CasinoGamePage-Bp4OKmdA.js +4282 -0
- package/components/CasinoGameThumbnail-BmmqFK_6.js +1822 -0
- package/components/CasinoGameThumbnail-DVMHCqZf.cjs +38 -0
- package/components/CasinoGamesCategorySection-6X3_pD0A.js +3022 -0
- package/components/CasinoGamesCategorySection-CasxxP7n.cjs +1 -0
- package/components/CasinoJackpotBanner-8_TAP4xY.cjs +1 -0
- package/components/CasinoJackpotBanner-wk2wOmJp.js +619 -0
- package/components/CasinoLastPlayedSection-Dkh43VxC.js +563 -0
- package/components/CasinoLastPlayedSection-DvORiff-.cjs +1 -0
- package/components/CasinoLobby-Djp4HDWL.js +2341 -0
- package/components/CasinoLobby-Jn45jhzr.cjs +1 -0
- package/components/CasinoModal-BebrYWjS.cjs +1 -0
- package/components/CasinoModal-CSwMAX-g.js +372 -0
- package/components/CasinoMostPlayedSection-BDP2HyE6.js +580 -0
- package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +1 -0
- package/components/CasinoMyGames-CILl0Jt1.js +1313 -0
- package/components/CasinoMyGames-shcqTml8.cjs +1 -0
- package/components/CasinoPage-CCcJd2fQ.js +3514 -0
- package/components/CasinoPage-DZmE3VFL.cjs +1 -0
- package/components/CasinoRandomGame-4mi3rRbq.js +641 -0
- package/components/CasinoRandomGame-G4VfFJ2L.cjs +2 -0
- package/components/CasinoSearch-CW-eesDy.cjs +1 -0
- package/components/CasinoSearch-DkEAmw-j.js +1066 -0
- package/components/CasinoSlider-CNWDP_I-.js +803 -0
- package/components/CasinoSlider-CjA8vWoz.cjs +1 -0
- package/components/CasinoSort-BVh0Ouwu.cjs +1 -0
- package/components/CasinoSort-CPcJqhWU.js +425 -0
- package/components/CasinoWinners-BTNdGlUD.cjs +1 -0
- package/components/CasinoWinners-DSsJp1KQ.js +884 -0
- package/components/GeneralAnimationLoading-BtIh_bSy.js +75 -0
- package/components/GeneralAnimationLoading-CEAKVCu9.cjs +1 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/package.json +20 -32
- package/CHANGELOG.md +0 -39
- package/README.md +0 -0
- package/dist/casino-lobby.js +0 -33
- package/dist/casino-lobby.js.map +0 -1
- package/documentation.md +0 -176
- package/index.html +0 -50
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoLobby.svelte +0 -454
- package/src/i18n.js +0 -25
- package/src/index.ts +0 -4
- package/stories/CasinoLobby.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { $ as O, a as pe, I as ye, S as he, i as ve, f as F, c as _e, s as be, b as we, e as _, r as L, d as r, g as C, v as f, w as A, j as D, t as E, h as Ge, k as T, J as Re, p as ke, x as xe, y as Me, z as Fe, q as U, u as B, G as q, A as J, B as Le, D as P, F as Ce, l as Te, L as Se, n as Ie, E as V, C as je, R as We, O as Ne } from "./CasinoCalendar-DEhfBjpm.js";
|
|
2
|
+
function ze({ withLocale: a, translations: e }) {
|
|
3
|
+
O.subscribe((t) => {
|
|
4
|
+
t == null && (pe.set(e), O.set(a));
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
function Z(a, e) {
|
|
8
|
+
ye(a, e);
|
|
9
|
+
}
|
|
10
|
+
function Be(a) {
|
|
11
|
+
O.set(a);
|
|
12
|
+
}
|
|
13
|
+
const K = {
|
|
14
|
+
en: {
|
|
15
|
+
playRandomGame: "Play a random game",
|
|
16
|
+
randomGameLoading: "Selecting ...",
|
|
17
|
+
playNowRandomGame: "Play Now",
|
|
18
|
+
noGames: "There are no random games to play"
|
|
19
|
+
},
|
|
20
|
+
"zh-hk": {
|
|
21
|
+
playRandomGame: "玩隨機遊戲",
|
|
22
|
+
randomGameLoading: "選擇...",
|
|
23
|
+
playNowRandomGame: "現在播放",
|
|
24
|
+
noGames: "There are no random games to play"
|
|
25
|
+
},
|
|
26
|
+
de: {
|
|
27
|
+
playRandomGame: "Spiel ein Zufallsspiel",
|
|
28
|
+
randomGameLoading: "Auswahl läuft",
|
|
29
|
+
playNowRandomGame: "Jetzt spielen",
|
|
30
|
+
noGames: "There are no random games to play"
|
|
31
|
+
},
|
|
32
|
+
fr: {
|
|
33
|
+
playRandomGame: "Jouer à un jeu aléatoire",
|
|
34
|
+
randomGameLoading: "Sélectinner ...",
|
|
35
|
+
playNowRandomGame: "Jouer maintenant",
|
|
36
|
+
noGames: "There are no random games to play"
|
|
37
|
+
},
|
|
38
|
+
ro: {
|
|
39
|
+
playRandomGame: "Joaca-te un joc aleatoriu",
|
|
40
|
+
randomGameLoading: "Se selecteaza ...",
|
|
41
|
+
playNowRandomGame: "Joaca-te Acum",
|
|
42
|
+
noGames: "Nu exista jocuri aleatorii de jucat"
|
|
43
|
+
},
|
|
44
|
+
tr: {
|
|
45
|
+
playRandomGame: "Oynamak için doğru oyunun adını yazın.",
|
|
46
|
+
randomGameLoading: "Henüz son aramalar yok. Herhangi bir oyunu arayın.",
|
|
47
|
+
playNowRandomGame: "Son arama",
|
|
48
|
+
noGames: "Yükleniyor, lütfen bekleyin"
|
|
49
|
+
},
|
|
50
|
+
es: {
|
|
51
|
+
playRandomGame: "Juego aleatorio",
|
|
52
|
+
randomGameLoading: "Seleccionando…",
|
|
53
|
+
playNowRandomGame: "Juega Ya",
|
|
54
|
+
noGames: "There are no random games to play"
|
|
55
|
+
},
|
|
56
|
+
pt: {
|
|
57
|
+
playRandomGame: "Jogue um jogo aleatório",
|
|
58
|
+
randomGameLoading: "Selecionando ...",
|
|
59
|
+
playNowRandomGame: "Jogue agora",
|
|
60
|
+
noGames: "There are no random games to play"
|
|
61
|
+
},
|
|
62
|
+
hr: {
|
|
63
|
+
playRandomGame: "Igrajte nasumičnu igru",
|
|
64
|
+
randomGameLoading: "Odabir...",
|
|
65
|
+
playNowRandomGame: "Igraj sada",
|
|
66
|
+
noGames: "Nema nasumičnih igara za igranje"
|
|
67
|
+
},
|
|
68
|
+
"pt-br": {
|
|
69
|
+
playRandomGame: "Jogue um jogo aleatório",
|
|
70
|
+
randomGameCarregando: "Selecionando...",
|
|
71
|
+
playNowRandomGame: "Jogue agora",
|
|
72
|
+
noGames: "There are no random games to play"
|
|
73
|
+
},
|
|
74
|
+
"es-mx": {
|
|
75
|
+
playRandomGame: "Jugar un juego al azar",
|
|
76
|
+
randomGameCargando: "Seleccionando..",
|
|
77
|
+
playNowRandomGame: "Jugar ahora",
|
|
78
|
+
noGames: "There are no random games to play"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function Je(a) {
|
|
82
|
+
we(a, "svelte-1uy6d6f", ".svelte-1uy6d6f.svelte-1uy6d6f,.svelte-1uy6d6f.svelte-1uy6d6f::before,.svelte-1uy6d6f.svelte-1uy6d6f::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow.svelte-1uy6d6f.svelte-1uy6d6f{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.svelte-1uy6d6f .ModalContainer.svelte-1uy6d6f{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow.svelte-1uy6d6f .ModalCloseBtn.svelte-1uy6d6f{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow.svelte-1uy6d6f .ModalCloseBtn svg.svelte-1uy6d6f{width:28px;height:28px}.ModalWindow.svelte-1uy6d6f .ModalCloseBtn.svelte-1uy6d6f:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow.svelte-1uy6d6f .ModalMobileContainer .ModalCloseBtn.svelte-1uy6d6f{margin:10px}.ModalWindow.svelte-1uy6d6f .ModalMobileContainer .ModalCloseBtn svg.svelte-1uy6d6f{width:24px;height:24px}.RandomGameWrapper.svelte-1uy6d6f.svelte-1uy6d6f{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper.svelte-1uy6d6f.svelte-1uy6d6f{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items.svelte-1uy6d6f.svelte-1uy6d6f{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading.svelte-1uy6d6f.svelte-1uy6d6f{padding:30px 0}.RandomGameImage.svelte-1uy6d6f.svelte-1uy6d6f{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain.svelte-1uy6d6f.svelte-1uy6d6f{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain.svelte-1uy6d6f svg.svelte-1uy6d6f{width:22px;height:22px}.item.svelte-1uy6d6f.svelte-1uy6d6f{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails.svelte-1uy6d6f.svelte-1uy6d6f{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails.svelte-1uy6d6f .RandomGameTitle.svelte-1uy6d6f{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails.svelte-1uy6d6f .RandomGameVendor.svelte-1uy6d6f{font-size:10px;margin-bottom:10px}.RandomGameDetails.svelte-1uy6d6f .RandomGamePlay.svelte-1uy6d6f{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper.svelte-1uy6d6f.svelte-1uy6d6f{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper.svelte-1uy6d6f .RandomButton.svelte-1uy6d6f{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
83
|
+
}
|
|
84
|
+
function Q(a, e, t) {
|
|
85
|
+
const n = a.slice();
|
|
86
|
+
return n[38] = e[t], n[40] = t, n;
|
|
87
|
+
}
|
|
88
|
+
const De = (a) => ({}), X = (a) => ({});
|
|
89
|
+
function $(a) {
|
|
90
|
+
let e, t, n, l, d, u, p, y;
|
|
91
|
+
const g = (
|
|
92
|
+
/*#slots*/
|
|
93
|
+
a[22].close
|
|
94
|
+
), o = ke(
|
|
95
|
+
g,
|
|
96
|
+
a,
|
|
97
|
+
/*$$scope*/
|
|
98
|
+
a[21],
|
|
99
|
+
X
|
|
100
|
+
), h = o || Ae();
|
|
101
|
+
let i = !/*slotDone*/
|
|
102
|
+
a[7] && ee(a), c = (
|
|
103
|
+
/*slotDone*/
|
|
104
|
+
a[7] && ae(a)
|
|
105
|
+
);
|
|
106
|
+
return {
|
|
107
|
+
c() {
|
|
108
|
+
e = _("div"), t = _("div"), n = _("span"), h && h.c(), l = L(), i && i.c(), d = L(), c && c.c(), r(n, "class", "ModalCloseBtn svelte-1uy6d6f"), r(n, "role", "button"), r(t, "class", "ModalContainer svelte-1uy6d6f"), r(e, "class", "ModalWindow svelte-1uy6d6f");
|
|
109
|
+
},
|
|
110
|
+
m(m, v) {
|
|
111
|
+
C(m, e, v), f(e, t), f(t, n), h && h.m(n, null), f(t, l), i && i.m(t, null), f(t, d), c && c.m(t, null), u = !0, p || (y = A(
|
|
112
|
+
n,
|
|
113
|
+
"click",
|
|
114
|
+
/*closeModal*/
|
|
115
|
+
a[12]
|
|
116
|
+
), p = !0);
|
|
117
|
+
},
|
|
118
|
+
p(m, v) {
|
|
119
|
+
o && o.p && (!u || v[0] & /*$$scope*/
|
|
120
|
+
2097152) && xe(
|
|
121
|
+
o,
|
|
122
|
+
g,
|
|
123
|
+
m,
|
|
124
|
+
/*$$scope*/
|
|
125
|
+
m[21],
|
|
126
|
+
u ? Fe(
|
|
127
|
+
g,
|
|
128
|
+
/*$$scope*/
|
|
129
|
+
m[21],
|
|
130
|
+
v,
|
|
131
|
+
De
|
|
132
|
+
) : Me(
|
|
133
|
+
/*$$scope*/
|
|
134
|
+
m[21]
|
|
135
|
+
),
|
|
136
|
+
X
|
|
137
|
+
), /*slotDone*/
|
|
138
|
+
m[7] ? i && (i.d(1), i = null) : i ? i.p(m, v) : (i = ee(m), i.c(), i.m(t, d)), /*slotDone*/
|
|
139
|
+
m[7] ? c ? c.p(m, v) : (c = ae(m), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
|
|
140
|
+
},
|
|
141
|
+
i(m) {
|
|
142
|
+
u || (D(h, m), u = !0);
|
|
143
|
+
},
|
|
144
|
+
o(m) {
|
|
145
|
+
E(h, m), u = !1;
|
|
146
|
+
},
|
|
147
|
+
d(m) {
|
|
148
|
+
m && T(e), h && h.d(m), i && i.d(), c && c.d(), p = !1, y();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function Ae(a) {
|
|
153
|
+
let e, t;
|
|
154
|
+
return {
|
|
155
|
+
c() {
|
|
156
|
+
e = V("svg"), t = V("path"), r(t, "stroke-linecap", "round"), r(t, "stroke-linejoin", "round"), r(t, "stroke-width", "2"), r(t, "d", "M6 18L18 6M6 6l12 12"), r(t, "class", "svelte-1uy6d6f"), r(e, "class", "w-6 h-6 svelte-1uy6d6f"), r(e, "fill", "none"), r(e, "stroke", "currentColor"), r(e, "viewBox", "0 0 24 24"), r(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
157
|
+
},
|
|
158
|
+
m(n, l) {
|
|
159
|
+
C(n, e, l), f(e, t);
|
|
160
|
+
},
|
|
161
|
+
p: je,
|
|
162
|
+
d(n) {
|
|
163
|
+
n && T(e);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function ee(a) {
|
|
168
|
+
let e, t, n, l, d, u = (
|
|
169
|
+
/*$_*/
|
|
170
|
+
a[9]("randomGameLoading") + ""
|
|
171
|
+
), p, y = U(
|
|
172
|
+
/*gamesToShow*/
|
|
173
|
+
a[4]
|
|
174
|
+
), g = [];
|
|
175
|
+
for (let o = 0; o < y.length; o += 1)
|
|
176
|
+
g[o] = te(Q(a, y, o));
|
|
177
|
+
return {
|
|
178
|
+
c() {
|
|
179
|
+
e = _("div"), t = _("main"), n = _("div");
|
|
180
|
+
for (let o = 0; o < g.length; o += 1)
|
|
181
|
+
g[o].c();
|
|
182
|
+
l = L(), d = _("p"), p = B(u), r(n, "class", "items svelte-1uy6d6f"), q(n, "transform", "translateY(" + /*offset*/
|
|
183
|
+
a[6] + "px)"), r(t, "class", "RandomGamesSliderWrapper svelte-1uy6d6f"), r(d, "class", "RandomGameLoading svelte-1uy6d6f"), r(e, "class", "RandomGameWrapper svelte-1uy6d6f");
|
|
184
|
+
},
|
|
185
|
+
m(o, h) {
|
|
186
|
+
C(o, e, h), f(e, t), f(t, n);
|
|
187
|
+
for (let i = 0; i < g.length; i += 1)
|
|
188
|
+
g[i] && g[i].m(n, null);
|
|
189
|
+
f(e, l), f(e, d), f(d, p);
|
|
190
|
+
},
|
|
191
|
+
p(o, h) {
|
|
192
|
+
if (h[0] & /*gamesToShow*/
|
|
193
|
+
16) {
|
|
194
|
+
y = U(
|
|
195
|
+
/*gamesToShow*/
|
|
196
|
+
o[4]
|
|
197
|
+
);
|
|
198
|
+
let i;
|
|
199
|
+
for (i = 0; i < y.length; i += 1) {
|
|
200
|
+
const c = Q(o, y, i);
|
|
201
|
+
g[i] ? g[i].p(c, h) : (g[i] = te(c), g[i].c(), g[i].m(n, null));
|
|
202
|
+
}
|
|
203
|
+
for (; i < g.length; i += 1)
|
|
204
|
+
g[i].d(1);
|
|
205
|
+
g.length = y.length;
|
|
206
|
+
}
|
|
207
|
+
h[0] & /*offset*/
|
|
208
|
+
64 && q(n, "transform", "translateY(" + /*offset*/
|
|
209
|
+
o[6] + "px)"), h[0] & /*$_*/
|
|
210
|
+
512 && u !== (u = /*$_*/
|
|
211
|
+
o[9]("randomGameLoading") + "") && J(p, u);
|
|
212
|
+
},
|
|
213
|
+
d(o) {
|
|
214
|
+
o && T(e), Le(g, o);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
function te(a) {
|
|
219
|
+
let e, t, n, l, d, u;
|
|
220
|
+
return {
|
|
221
|
+
c() {
|
|
222
|
+
e = _("div"), t = _("img"), u = L(), r(t, "class", "RandomGameImage svelte-1uy6d6f"), P(t.src, n = /*game*/
|
|
223
|
+
a[38].thumbnail) || r(t, "src", n), r(t, "alt", l = /*game*/
|
|
224
|
+
a[38].name), r(t, "title", d = /*game*/
|
|
225
|
+
a[38].name), r(e, "class", "item svelte-1uy6d6f");
|
|
226
|
+
},
|
|
227
|
+
m(p, y) {
|
|
228
|
+
C(p, e, y), f(e, t), f(e, u);
|
|
229
|
+
},
|
|
230
|
+
p(p, y) {
|
|
231
|
+
y[0] & /*gamesToShow*/
|
|
232
|
+
16 && !P(t.src, n = /*game*/
|
|
233
|
+
p[38].thumbnail) && r(t, "src", n), y[0] & /*gamesToShow*/
|
|
234
|
+
16 && l !== (l = /*game*/
|
|
235
|
+
p[38].name) && r(t, "alt", l), y[0] & /*gamesToShow*/
|
|
236
|
+
16 && d !== (d = /*game*/
|
|
237
|
+
p[38].name) && r(t, "title", d);
|
|
238
|
+
},
|
|
239
|
+
d(p) {
|
|
240
|
+
p && T(e);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
function ae(a) {
|
|
245
|
+
let e;
|
|
246
|
+
function t(d, u) {
|
|
247
|
+
return (
|
|
248
|
+
/*hasRandomGames*/
|
|
249
|
+
d[8] ? He : Pe
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
let n = t(a), l = n(a);
|
|
253
|
+
return {
|
|
254
|
+
c() {
|
|
255
|
+
l.c(), e = Ce();
|
|
256
|
+
},
|
|
257
|
+
m(d, u) {
|
|
258
|
+
l.m(d, u), C(d, e, u);
|
|
259
|
+
},
|
|
260
|
+
p(d, u) {
|
|
261
|
+
n === (n = t(d)) && l ? l.p(d, u) : (l.d(1), l = n(d), l && (l.c(), l.m(e.parentNode, e)));
|
|
262
|
+
},
|
|
263
|
+
d(d) {
|
|
264
|
+
d && T(e), l.d(d);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function Pe(a) {
|
|
269
|
+
let e, t = (
|
|
270
|
+
/*$_*/
|
|
271
|
+
a[9]("noGames") + ""
|
|
272
|
+
), n;
|
|
273
|
+
return {
|
|
274
|
+
c() {
|
|
275
|
+
e = _("p"), n = B(t), r(e, "class", "RandomGameLoading svelte-1uy6d6f");
|
|
276
|
+
},
|
|
277
|
+
m(l, d) {
|
|
278
|
+
C(l, e, d), f(e, n);
|
|
279
|
+
},
|
|
280
|
+
p(l, d) {
|
|
281
|
+
d[0] & /*$_*/
|
|
282
|
+
512 && t !== (t = /*$_*/
|
|
283
|
+
l[9]("noGames") + "") && J(n, t);
|
|
284
|
+
},
|
|
285
|
+
d(l) {
|
|
286
|
+
l && T(e);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function He(a) {
|
|
291
|
+
let e, t, n, l, d, u, p, y, g, o, h, i = (
|
|
292
|
+
/*randomGame*/
|
|
293
|
+
a[3].name + ""
|
|
294
|
+
), c, m, v, k = (
|
|
295
|
+
/*randomGame*/
|
|
296
|
+
a[3].vendor.name + ""
|
|
297
|
+
), G, S, R, I = (
|
|
298
|
+
/*$_*/
|
|
299
|
+
a[9]("playNowRandomGame") + ""
|
|
300
|
+
), N, j, W;
|
|
301
|
+
return {
|
|
302
|
+
c() {
|
|
303
|
+
e = _("div"), t = _("div"), n = _("img"), p = L(), y = _("button"), y.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve" class="svelte-1uy6d6f"><style type="text/css" class="svelte-1uy6d6f">.st0{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));}
|
|
304
|
+
</style><path class="st0 svelte-1uy6d6f" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, g = L(), o = _("div"), h = _("p"), c = B(i), m = L(), v = _("p"), G = B(k), S = L(), R = _("button"), N = B(I), r(n, "class", "RandomGameImage svelte-1uy6d6f"), P(n.src, l = /*randomGame*/
|
|
305
|
+
a[3].thumbnail) || r(n, "src", l), r(n, "alt", d = /*randomGame*/
|
|
306
|
+
a[3].name), r(n, "title", u = /*randomGame*/
|
|
307
|
+
a[3].name), r(y, "class", "RandomTryAgain svelte-1uy6d6f"), r(t, "class", "item svelte-1uy6d6f"), r(h, "class", "RandomGameTitle svelte-1uy6d6f"), r(v, "class", "RandomGameVendor svelte-1uy6d6f"), r(R, "class", "RandomGamePlay svelte-1uy6d6f"), r(o, "class", "RandomGameDetails svelte-1uy6d6f"), r(e, "class", "RandomGameWrapper svelte-1uy6d6f");
|
|
308
|
+
},
|
|
309
|
+
m(w, x) {
|
|
310
|
+
C(w, e, x), f(e, t), f(t, n), f(t, p), f(t, y), f(e, g), f(e, o), f(o, h), f(h, c), f(o, m), f(o, v), f(v, G), f(o, S), f(o, R), f(R, N), j || (W = [
|
|
311
|
+
A(
|
|
312
|
+
y,
|
|
313
|
+
"click",
|
|
314
|
+
/*click_handler*/
|
|
315
|
+
a[23]
|
|
316
|
+
),
|
|
317
|
+
A(
|
|
318
|
+
R,
|
|
319
|
+
"click",
|
|
320
|
+
/*click_handler_1*/
|
|
321
|
+
a[24]
|
|
322
|
+
)
|
|
323
|
+
], j = !0);
|
|
324
|
+
},
|
|
325
|
+
p(w, x) {
|
|
326
|
+
x[0] & /*randomGame*/
|
|
327
|
+
8 && !P(n.src, l = /*randomGame*/
|
|
328
|
+
w[3].thumbnail) && r(n, "src", l), x[0] & /*randomGame*/
|
|
329
|
+
8 && d !== (d = /*randomGame*/
|
|
330
|
+
w[3].name) && r(n, "alt", d), x[0] & /*randomGame*/
|
|
331
|
+
8 && u !== (u = /*randomGame*/
|
|
332
|
+
w[3].name) && r(n, "title", u), x[0] & /*randomGame*/
|
|
333
|
+
8 && i !== (i = /*randomGame*/
|
|
334
|
+
w[3].name + "") && J(c, i), x[0] & /*randomGame*/
|
|
335
|
+
8 && k !== (k = /*randomGame*/
|
|
336
|
+
w[3].vendor.name + "") && J(G, k), x[0] & /*$_*/
|
|
337
|
+
512 && I !== (I = /*$_*/
|
|
338
|
+
w[9]("playNowRandomGame") + "") && J(N, I);
|
|
339
|
+
},
|
|
340
|
+
d(w) {
|
|
341
|
+
w && T(e), j = !1, We(W);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
function Oe(a) {
|
|
346
|
+
let e, t = (
|
|
347
|
+
/*$_*/
|
|
348
|
+
a[9]("playRandomGame") + ""
|
|
349
|
+
), n;
|
|
350
|
+
return {
|
|
351
|
+
c() {
|
|
352
|
+
e = _("span"), n = B(t), r(e, "class", "RandomButtonText svelte-1uy6d6f");
|
|
353
|
+
},
|
|
354
|
+
m(l, d) {
|
|
355
|
+
C(l, e, d), f(e, n);
|
|
356
|
+
},
|
|
357
|
+
p(l, d) {
|
|
358
|
+
d[0] & /*$_*/
|
|
359
|
+
512 && t !== (t = /*$_*/
|
|
360
|
+
l[9]("playRandomGame") + "") && J(n, t);
|
|
361
|
+
},
|
|
362
|
+
d(l) {
|
|
363
|
+
l && T(e);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function Ee(a) {
|
|
368
|
+
let e, t;
|
|
369
|
+
return {
|
|
370
|
+
c() {
|
|
371
|
+
e = _("span"), t = B(
|
|
372
|
+
/*buttontext*/
|
|
373
|
+
a[1]
|
|
374
|
+
), r(e, "class", "RandomButtonText svelte-1uy6d6f");
|
|
375
|
+
},
|
|
376
|
+
m(n, l) {
|
|
377
|
+
C(n, e, l), f(e, t);
|
|
378
|
+
},
|
|
379
|
+
p(n, l) {
|
|
380
|
+
l[0] & /*buttontext*/
|
|
381
|
+
2 && J(
|
|
382
|
+
t,
|
|
383
|
+
/*buttontext*/
|
|
384
|
+
n[1]
|
|
385
|
+
);
|
|
386
|
+
},
|
|
387
|
+
d(n) {
|
|
388
|
+
n && T(e);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function Ye(a) {
|
|
393
|
+
let e, t, n, l, d, u, p, y, g, o = (
|
|
394
|
+
/*show*/
|
|
395
|
+
a[5] && $(a)
|
|
396
|
+
);
|
|
397
|
+
function h(m, v) {
|
|
398
|
+
if (
|
|
399
|
+
/*buttontext*/
|
|
400
|
+
m[1]
|
|
401
|
+
) return Ee;
|
|
402
|
+
if (!/*buttontext*/
|
|
403
|
+
m[1]) return Oe;
|
|
404
|
+
}
|
|
405
|
+
let i = h(a), c = i && i(a);
|
|
406
|
+
return {
|
|
407
|
+
c() {
|
|
408
|
+
e = _("div"), o && o.c(), t = L(), n = _("div"), l = _("button"), c && c.c(), d = L(), u = _("span"), r(u, "class", "RandomButtonIcon svelte-1uy6d6f"), r(l, "class", "RandomButton svelte-1uy6d6f"), r(n, "class", "RandomButtonWrapper svelte-1uy6d6f"), r(e, "part", "CustomStylingContainer"), r(e, "class", "svelte-1uy6d6f");
|
|
409
|
+
},
|
|
410
|
+
m(m, v) {
|
|
411
|
+
C(m, e, v), o && o.m(e, null), f(e, t), f(e, n), f(n, l), c && c.m(l, null), f(l, d), f(l, u), u.innerHTML = /*randombuttonicon*/
|
|
412
|
+
a[0], a[26](e), p = !0, y || (g = A(
|
|
413
|
+
l,
|
|
414
|
+
"click",
|
|
415
|
+
/*click_handler_2*/
|
|
416
|
+
a[25]
|
|
417
|
+
), y = !0);
|
|
418
|
+
},
|
|
419
|
+
p(m, v) {
|
|
420
|
+
/*show*/
|
|
421
|
+
m[5] ? o ? (o.p(m, v), v[0] & /*show*/
|
|
422
|
+
32 && D(o, 1)) : (o = $(m), o.c(), D(o, 1), o.m(e, t)) : o && (Te(), E(o, 1, 1, () => {
|
|
423
|
+
o = null;
|
|
424
|
+
}), Ge()), i === (i = h(m)) && c ? c.p(m, v) : (c && c.d(1), c = i && i(m), c && (c.c(), c.m(l, d))), (!p || v[0] & /*randombuttonicon*/
|
|
425
|
+
1) && (u.innerHTML = /*randombuttonicon*/
|
|
426
|
+
m[0]);
|
|
427
|
+
},
|
|
428
|
+
i(m) {
|
|
429
|
+
p || (D(o), p = !0);
|
|
430
|
+
},
|
|
431
|
+
o(m) {
|
|
432
|
+
E(o), p = !1;
|
|
433
|
+
},
|
|
434
|
+
d(m) {
|
|
435
|
+
m && T(e), o && o.d(), c && c.d(), a[26](null), y = !1, g();
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function Ue(a, e, t) {
|
|
440
|
+
let n;
|
|
441
|
+
Re(a, Ne, (s) => t(9, n = s));
|
|
442
|
+
let { $$slots: l = {}, $$scope: d } = e, { endpoint: u = "" } = e, { datasource: p = "" } = e, { gameevent: y = "" } = e, { lang: g = "" } = e, { randombuttonicon: o = "" } = e, { buttontext: h = "" } = e, { translationurl: i = "" } = e, { clientstyling: c = "" } = e, { clientstylingurl: m = "" } = e, { filteredrandomgamecategories: v = "" } = e, k = [], G = "", S, R = !1, I = 0, N = 0, j = !1, W = !1, w, x = window.navigator.userAgent, z;
|
|
443
|
+
ze({ withLocale: "en", translations: {} });
|
|
444
|
+
const ne = () => {
|
|
445
|
+
fetch(i).then((b) => b.json()).then((b) => {
|
|
446
|
+
Object.keys(b).forEach((M) => {
|
|
447
|
+
Z(M, b[M]);
|
|
448
|
+
});
|
|
449
|
+
}).catch((b) => {
|
|
450
|
+
console.log(b);
|
|
451
|
+
});
|
|
452
|
+
};
|
|
453
|
+
Object.keys(K).forEach((s) => {
|
|
454
|
+
Z(s, K[s]);
|
|
455
|
+
});
|
|
456
|
+
const le = () => {
|
|
457
|
+
t(4, S = oe(S)), t(6, I = 0), N = 0, t(7, j = !1), t(3, G = k[Math.floor(Math.random() * k.length)]), t(5, R = !0);
|
|
458
|
+
}, H = (s) => {
|
|
459
|
+
W ? (le(), clearInterval(w), w = setInterval(
|
|
460
|
+
() => {
|
|
461
|
+
t(6, I -= 75), N++, N == 20 && (t(7, j = !0), clearInterval(w));
|
|
462
|
+
},
|
|
463
|
+
150
|
|
464
|
+
)) : (t(5, R = !0), t(7, j = !0)), s && typeof gtag == "function" && gtag("event", "RefreshRandomGame", {
|
|
465
|
+
context: "RandomGameWidget",
|
|
466
|
+
gameId: `${G.gId || G.id}`
|
|
467
|
+
}), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href);
|
|
468
|
+
}, oe = (s) => {
|
|
469
|
+
let b = s.length, M;
|
|
470
|
+
for (; b != 0; )
|
|
471
|
+
M = Math.floor(Math.random() * b), b--, [s[b], s[M]] = [s[M], s[b]];
|
|
472
|
+
return s;
|
|
473
|
+
}, Y = () => {
|
|
474
|
+
window.postMessage(
|
|
475
|
+
{
|
|
476
|
+
type: y,
|
|
477
|
+
gameId: G.gId || G.id
|
|
478
|
+
},
|
|
479
|
+
window.location.href
|
|
480
|
+
), t(5, R = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
481
|
+
context: "RandomGameWidget",
|
|
482
|
+
gameId: `${G.gId || G.id}`
|
|
483
|
+
});
|
|
484
|
+
}, se = () => {
|
|
485
|
+
t(5, R = !1), window.postMessage({ type: "RandomWidgetState", state: R }, window.location.href);
|
|
486
|
+
}, ie = () => {
|
|
487
|
+
let s = new URL(`${u}/v1/casino/games`);
|
|
488
|
+
s.searchParams.append("platform", Se(x)), s.searchParams.append("datasource", p), s.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), v && s.searchParams.append("filter", `groups=${v}`), s.searchParams.append("expand", "categories,vendor"), s.searchParams.append("pagination", "offset=0,limit=1000"), fetch(s.href).then((b) => b.json()).then((b) => {
|
|
489
|
+
k = b.items, k.length ? (t(4, S = k.slice(0, 19)), t(8, W = !0)) : (t(4, S = []), t(8, W = !1));
|
|
490
|
+
}).catch((b) => {
|
|
491
|
+
console.log(b), t(8, W = !1);
|
|
492
|
+
});
|
|
493
|
+
}, re = () => {
|
|
494
|
+
Be(g);
|
|
495
|
+
}, de = () => {
|
|
496
|
+
let s = document.createElement("style");
|
|
497
|
+
s.innerHTML = c, z.appendChild(s);
|
|
498
|
+
}, me = () => {
|
|
499
|
+
let s = new URL(m), b = document.createElement("style");
|
|
500
|
+
fetch(s.href).then((M) => M.text()).then((M) => {
|
|
501
|
+
b.innerHTML = M, setTimeout(
|
|
502
|
+
() => {
|
|
503
|
+
z.appendChild(b);
|
|
504
|
+
},
|
|
505
|
+
1
|
|
506
|
+
);
|
|
507
|
+
});
|
|
508
|
+
}, ce = () => H(!0), ue = () => Y(), fe = () => H();
|
|
509
|
+
function ge(s) {
|
|
510
|
+
Ie[s ? "unshift" : "push"](() => {
|
|
511
|
+
z = s, t(2, z);
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
return a.$$set = (s) => {
|
|
515
|
+
"endpoint" in s && t(13, u = s.endpoint), "datasource" in s && t(14, p = s.datasource), "gameevent" in s && t(15, y = s.gameevent), "lang" in s && t(16, g = s.lang), "randombuttonicon" in s && t(0, o = s.randombuttonicon), "buttontext" in s && t(1, h = s.buttontext), "translationurl" in s && t(17, i = s.translationurl), "clientstyling" in s && t(18, c = s.clientstyling), "clientstylingurl" in s && t(19, m = s.clientstylingurl), "filteredrandomgamecategories" in s && t(20, v = s.filteredrandomgamecategories), "$$scope" in s && t(21, d = s.$$scope);
|
|
516
|
+
}, a.$$.update = () => {
|
|
517
|
+
a.$$.dirty[0] & /*lang*/
|
|
518
|
+
65536 && g && re(), a.$$.dirty[0] & /*translationurl*/
|
|
519
|
+
131072 && i && ne(), a.$$.dirty[0] & /*endpoint, datasource*/
|
|
520
|
+
24576 && u && p && ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
521
|
+
262148 && c && z && de(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
522
|
+
524292 && m && z && me();
|
|
523
|
+
}, [
|
|
524
|
+
o,
|
|
525
|
+
h,
|
|
526
|
+
z,
|
|
527
|
+
G,
|
|
528
|
+
S,
|
|
529
|
+
R,
|
|
530
|
+
I,
|
|
531
|
+
j,
|
|
532
|
+
W,
|
|
533
|
+
n,
|
|
534
|
+
H,
|
|
535
|
+
Y,
|
|
536
|
+
se,
|
|
537
|
+
u,
|
|
538
|
+
p,
|
|
539
|
+
y,
|
|
540
|
+
g,
|
|
541
|
+
i,
|
|
542
|
+
c,
|
|
543
|
+
m,
|
|
544
|
+
v,
|
|
545
|
+
d,
|
|
546
|
+
l,
|
|
547
|
+
ce,
|
|
548
|
+
ue,
|
|
549
|
+
fe,
|
|
550
|
+
ge
|
|
551
|
+
];
|
|
552
|
+
}
|
|
553
|
+
class qe extends he {
|
|
554
|
+
constructor(e) {
|
|
555
|
+
super(), ve(
|
|
556
|
+
this,
|
|
557
|
+
e,
|
|
558
|
+
Ue,
|
|
559
|
+
Ye,
|
|
560
|
+
be,
|
|
561
|
+
{
|
|
562
|
+
endpoint: 13,
|
|
563
|
+
datasource: 14,
|
|
564
|
+
gameevent: 15,
|
|
565
|
+
lang: 16,
|
|
566
|
+
randombuttonicon: 0,
|
|
567
|
+
buttontext: 1,
|
|
568
|
+
translationurl: 17,
|
|
569
|
+
clientstyling: 18,
|
|
570
|
+
clientstylingurl: 19,
|
|
571
|
+
filteredrandomgamecategories: 20
|
|
572
|
+
},
|
|
573
|
+
Je,
|
|
574
|
+
[-1, -1]
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
get endpoint() {
|
|
578
|
+
return this.$$.ctx[13];
|
|
579
|
+
}
|
|
580
|
+
set endpoint(e) {
|
|
581
|
+
this.$$set({ endpoint: e }), F();
|
|
582
|
+
}
|
|
583
|
+
get datasource() {
|
|
584
|
+
return this.$$.ctx[14];
|
|
585
|
+
}
|
|
586
|
+
set datasource(e) {
|
|
587
|
+
this.$$set({ datasource: e }), F();
|
|
588
|
+
}
|
|
589
|
+
get gameevent() {
|
|
590
|
+
return this.$$.ctx[15];
|
|
591
|
+
}
|
|
592
|
+
set gameevent(e) {
|
|
593
|
+
this.$$set({ gameevent: e }), F();
|
|
594
|
+
}
|
|
595
|
+
get lang() {
|
|
596
|
+
return this.$$.ctx[16];
|
|
597
|
+
}
|
|
598
|
+
set lang(e) {
|
|
599
|
+
this.$$set({ lang: e }), F();
|
|
600
|
+
}
|
|
601
|
+
get randombuttonicon() {
|
|
602
|
+
return this.$$.ctx[0];
|
|
603
|
+
}
|
|
604
|
+
set randombuttonicon(e) {
|
|
605
|
+
this.$$set({ randombuttonicon: e }), F();
|
|
606
|
+
}
|
|
607
|
+
get buttontext() {
|
|
608
|
+
return this.$$.ctx[1];
|
|
609
|
+
}
|
|
610
|
+
set buttontext(e) {
|
|
611
|
+
this.$$set({ buttontext: e }), F();
|
|
612
|
+
}
|
|
613
|
+
get translationurl() {
|
|
614
|
+
return this.$$.ctx[17];
|
|
615
|
+
}
|
|
616
|
+
set translationurl(e) {
|
|
617
|
+
this.$$set({ translationurl: e }), F();
|
|
618
|
+
}
|
|
619
|
+
get clientstyling() {
|
|
620
|
+
return this.$$.ctx[18];
|
|
621
|
+
}
|
|
622
|
+
set clientstyling(e) {
|
|
623
|
+
this.$$set({ clientstyling: e }), F();
|
|
624
|
+
}
|
|
625
|
+
get clientstylingurl() {
|
|
626
|
+
return this.$$.ctx[19];
|
|
627
|
+
}
|
|
628
|
+
set clientstylingurl(e) {
|
|
629
|
+
this.$$set({ clientstylingurl: e }), F();
|
|
630
|
+
}
|
|
631
|
+
get filteredrandomgamecategories() {
|
|
632
|
+
return this.$$.ctx[20];
|
|
633
|
+
}
|
|
634
|
+
set filteredrandomgamecategories(e) {
|
|
635
|
+
this.$$set({ filteredrandomgamecategories: e }), F();
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
_e(qe, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {} }, ["close"], [], !0);
|
|
639
|
+
export {
|
|
640
|
+
qe as default
|
|
641
|
+
};
|