@everymatrix/casino-lobby 1.43.4 → 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,659 @@
|
|
|
1
|
+
import { I as qe, $ as we, S as Se, i as ke, f as L, c as Ge, s as Pe, b as Le, e as C, d as g, g as M, C as z, k as j, J as Me, o as je, m as Te, n as X, q as H, u as N, r as T, P as xe, v as _, Q as Fe, A as R, B as ae, w as O, R as ze, G as A, O as He, D as B, T as Oe } from "./CasinoCalendar-DEhfBjpm.js";
|
|
2
|
+
function Y(t, e) {
|
|
3
|
+
qe(t, e);
|
|
4
|
+
}
|
|
5
|
+
function Be(t) {
|
|
6
|
+
we.set(t);
|
|
7
|
+
}
|
|
8
|
+
const $ = {
|
|
9
|
+
en: {
|
|
10
|
+
collections: "Game Collections",
|
|
11
|
+
providers: "Game Providers",
|
|
12
|
+
loading: "Loading, please wait ..."
|
|
13
|
+
},
|
|
14
|
+
"zh-hk": {
|
|
15
|
+
collections: "收藏品",
|
|
16
|
+
providers: "供应商",
|
|
17
|
+
loading: "加載請稍候 ..."
|
|
18
|
+
},
|
|
19
|
+
de: {
|
|
20
|
+
collections: "Game Collections",
|
|
21
|
+
providers: "Game Providers",
|
|
22
|
+
loading: "Laden, bitte warten..."
|
|
23
|
+
},
|
|
24
|
+
it: {
|
|
25
|
+
collections: "Game Collections",
|
|
26
|
+
providers: "Game Providers",
|
|
27
|
+
loading: "Loading, please wait ..."
|
|
28
|
+
},
|
|
29
|
+
fr: {
|
|
30
|
+
collections: "Collections",
|
|
31
|
+
providers: "Fournisseurs",
|
|
32
|
+
loading: "Chargement, veuillez patienter ..."
|
|
33
|
+
},
|
|
34
|
+
es: {
|
|
35
|
+
collections: "Colecciones de juegos",
|
|
36
|
+
providers: "Proveedores de juegos",
|
|
37
|
+
loading: "Cargando…"
|
|
38
|
+
},
|
|
39
|
+
el: {
|
|
40
|
+
collections: "Game Collections",
|
|
41
|
+
providers: "Game Providers",
|
|
42
|
+
loading: "Φορτώνει, παρακαλούμε περιμένετε ..."
|
|
43
|
+
},
|
|
44
|
+
tr: {
|
|
45
|
+
collections: "Oyun Koleksiyonları",
|
|
46
|
+
providers: "Oyun Sağlayıcıları",
|
|
47
|
+
loading: "Yükleniyor, lütfen bekleyin..."
|
|
48
|
+
},
|
|
49
|
+
ru: {
|
|
50
|
+
collections: "Game Collections",
|
|
51
|
+
providers: "Game Providers",
|
|
52
|
+
loading: "Loading, please wait ..."
|
|
53
|
+
},
|
|
54
|
+
ro: {
|
|
55
|
+
collections: "Selectie Jocuri",
|
|
56
|
+
providers: "Furnizori",
|
|
57
|
+
loading: "Se încarcă, asteptati ..."
|
|
58
|
+
},
|
|
59
|
+
hr: {
|
|
60
|
+
collections: "Kolekcije igara",
|
|
61
|
+
providers: "Brendovi igara",
|
|
62
|
+
loading: "Učitavam"
|
|
63
|
+
},
|
|
64
|
+
hu: {
|
|
65
|
+
collections: "Game Collections",
|
|
66
|
+
providers: "Game Providers",
|
|
67
|
+
loading: "Betöltés, kérjük várjon..."
|
|
68
|
+
},
|
|
69
|
+
pl: {
|
|
70
|
+
collections: "Game Collections",
|
|
71
|
+
providers: "Game Providers",
|
|
72
|
+
loading: "Loading, please wait ..."
|
|
73
|
+
},
|
|
74
|
+
pt: {
|
|
75
|
+
collections: "Game Collections",
|
|
76
|
+
providers: "Game Providers",
|
|
77
|
+
loading: "Carregando, por favor espere ..."
|
|
78
|
+
},
|
|
79
|
+
sl: {
|
|
80
|
+
collections: "Game Collections",
|
|
81
|
+
providers: "Game Providers",
|
|
82
|
+
loading: "Loading, please wait ..."
|
|
83
|
+
},
|
|
84
|
+
sr: {
|
|
85
|
+
collections: "Game Collections",
|
|
86
|
+
providers: "Game Providers",
|
|
87
|
+
loading: "Loading, please wait ..."
|
|
88
|
+
},
|
|
89
|
+
"pt-br": {
|
|
90
|
+
collections: "Coleções de jogos",
|
|
91
|
+
providers: "Provedores de jogos",
|
|
92
|
+
Loading: "Carregando, por favor espere..."
|
|
93
|
+
},
|
|
94
|
+
"es-mx": {
|
|
95
|
+
collections: "Colecciones de juego",
|
|
96
|
+
providers: "Proveedores de juego",
|
|
97
|
+
Loading: "Cargando, por favor espere..."
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
function Ae(t) {
|
|
101
|
+
Le(t, "svelte-5qs4ma", '.svelte-5qs4ma.svelte-5qs4ma,.svelte-5qs4ma.svelte-5qs4ma::before,.svelte-5qs4ma.svelte-5qs4ma::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders.svelte-5qs4ma.svelte-5qs4ma{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader.svelte-5qs4ma.svelte-5qs4ma{display:flex;justify-content:space-between;height:70px}.CategoriesHeader.svelte-5qs4ma .Title.svelte-5qs4ma{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader.svelte-5qs4ma .ButtonsContainer button.svelte-5qs4ma{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader.svelte-5qs4ma .ButtonsContainer button.svelte-5qs4ma:active{opacity:0.7}.CategoriesSlider.svelte-5qs4ma.svelte-5qs4ma{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper.svelte-5qs4ma.svelte-5qs4ma{position:absolute;top:0;left:0}.CategoriesSlider.svelte-5qs4ma .Animation.svelte-5qs4ma{transition:transform 0.8s}.CategoriesSlider.svelte-5qs4ma .CategorySlide.svelte-5qs4ma{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider.svelte-5qs4ma .CategorySlide.svelte-5qs4ma:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider.svelte-5qs4ma .CategorySlideTopContainer.svelte-5qs4ma{height:100px;display:flex;align-items:center}.CategoriesSlider.svelte-5qs4ma .CategorySlideLogo.svelte-5qs4ma{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider.svelte-5qs4ma .CategorySlideTitle.svelte-5qs4ma{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider.svelte-5qs4ma .CategorySlideGameContainer.svelte-5qs4ma{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider.svelte-5qs4ma .CategorySlideGameImage.svelte-5qs4ma{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider.svelte-5qs4ma .CategorySlideGames.svelte-5qs4ma{color:white;text-align:center}.CategoriesSlider.svelte-5qs4ma .CategorySlideGames p.svelte-5qs4ma{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers.svelte-5qs4ma.svelte-5qs4ma{padding:25px 10px}.Mobile.Collections.svelte-5qs4ma.svelte-5qs4ma{padding:25px 10px}.Mobile.CasinoCollectionsProviders.svelte-5qs4ma.svelte-5qs4ma{padding:25px 10px}.Mobile.svelte-5qs4ma .CategoriesSlider.svelte-5qs4ma{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile.svelte-5qs4ma .CategoriesSlider.svelte-5qs4ma::-webkit-scrollbar{display:none}.Mobile.svelte-5qs4ma .CategorySlide.svelte-5qs4ma{width:80vw;scroll-snap-align:start}.Mobile.svelte-5qs4ma .ButtonsContainer.svelte-5qs4ma{display:none}.Mobile.svelte-5qs4ma .CategorySlideGameImage.svelte-5qs4ma{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner.svelte-5qs4ma.svelte-5qs4ma{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner.svelte-5qs4ma.svelte-5qs4ma:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:svelte-5qs4ma-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5qs4ma-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
102
|
+
}
|
|
103
|
+
function ee(t, e, l) {
|
|
104
|
+
const o = t.slice();
|
|
105
|
+
return o[41] = e[l], o;
|
|
106
|
+
}
|
|
107
|
+
function te(t, e, l) {
|
|
108
|
+
const o = t.slice();
|
|
109
|
+
return o[44] = e[l], o;
|
|
110
|
+
}
|
|
111
|
+
function Ne(t) {
|
|
112
|
+
let e, l, o, i = (
|
|
113
|
+
/*type*/
|
|
114
|
+
(t[0] == "vendor" ? (
|
|
115
|
+
/*$_*/
|
|
116
|
+
t[11]("providers")
|
|
117
|
+
) : (
|
|
118
|
+
/*$_*/
|
|
119
|
+
t[11]("collections")
|
|
120
|
+
)) + ""
|
|
121
|
+
), a, d, b, f, k, v, c = (
|
|
122
|
+
/*numberOfSlides*/
|
|
123
|
+
t[8] > /*numberOfVisibleSlides*/
|
|
124
|
+
t[9] && le(t)
|
|
125
|
+
), m = H(
|
|
126
|
+
/*gameCategories*/
|
|
127
|
+
t[3]
|
|
128
|
+
), u = [];
|
|
129
|
+
for (let r = 0; r < m.length; r += 1)
|
|
130
|
+
u[r] = oe(ee(t, m, r));
|
|
131
|
+
return {
|
|
132
|
+
c() {
|
|
133
|
+
e = C("div"), l = C("div"), o = C("p"), a = N(i), d = T(), c && c.c(), b = T(), f = C("div");
|
|
134
|
+
for (let r = 0; r < u.length; r += 1)
|
|
135
|
+
u[r].c();
|
|
136
|
+
g(o, "class", "Title svelte-5qs4ma"), g(l, "class", "CategoriesHeader svelte-5qs4ma"), g(f, "class", "CategoriesSlider svelte-5qs4ma"), xe(() => (
|
|
137
|
+
/*div1_elementresize_handler*/
|
|
138
|
+
t[27].call(f)
|
|
139
|
+
)), g(e, "class", v = "CasinoCollectionsProviders " + /*mobile*/
|
|
140
|
+
(t[10] ? "Mobile" : "") + " " + /*type*/
|
|
141
|
+
(t[0] === "vendor" ? "Providers" : "Collections") + " svelte-5qs4ma");
|
|
142
|
+
},
|
|
143
|
+
m(r, w) {
|
|
144
|
+
M(r, e, w), _(e, l), _(l, o), _(o, a), _(l, d), c && c.m(l, null), _(e, b), _(e, f);
|
|
145
|
+
for (let n = 0; n < u.length; n += 1)
|
|
146
|
+
u[n] && u[n].m(f, null);
|
|
147
|
+
t[26](f), k = Fe(
|
|
148
|
+
f,
|
|
149
|
+
/*div1_elementresize_handler*/
|
|
150
|
+
t[27].bind(f)
|
|
151
|
+
);
|
|
152
|
+
},
|
|
153
|
+
p(r, w) {
|
|
154
|
+
if (w[0] & /*type, $_*/
|
|
155
|
+
2049 && i !== (i = /*type*/
|
|
156
|
+
(r[0] == "vendor" ? (
|
|
157
|
+
/*$_*/
|
|
158
|
+
r[11]("providers")
|
|
159
|
+
) : (
|
|
160
|
+
/*$_*/
|
|
161
|
+
r[11]("collections")
|
|
162
|
+
)) + "") && R(a, i), /*numberOfSlides*/
|
|
163
|
+
r[8] > /*numberOfVisibleSlides*/
|
|
164
|
+
r[9] ? c ? c.p(r, w) : (c = le(r), c.c(), c.m(l, null)) : c && (c.d(1), c = null), w[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
|
|
165
|
+
49166) {
|
|
166
|
+
m = H(
|
|
167
|
+
/*gameCategories*/
|
|
168
|
+
r[3]
|
|
169
|
+
);
|
|
170
|
+
let n;
|
|
171
|
+
for (n = 0; n < m.length; n += 1) {
|
|
172
|
+
const p = ee(r, m, n);
|
|
173
|
+
u[n] ? u[n].p(p, w) : (u[n] = oe(p), u[n].c(), u[n].m(f, null));
|
|
174
|
+
}
|
|
175
|
+
for (; n < u.length; n += 1)
|
|
176
|
+
u[n].d(1);
|
|
177
|
+
u.length = m.length;
|
|
178
|
+
}
|
|
179
|
+
w[0] & /*mobile, type*/
|
|
180
|
+
1025 && v !== (v = "CasinoCollectionsProviders " + /*mobile*/
|
|
181
|
+
(r[10] ? "Mobile" : "") + " " + /*type*/
|
|
182
|
+
(r[0] === "vendor" ? "Providers" : "Collections") + " svelte-5qs4ma") && g(e, "class", v);
|
|
183
|
+
},
|
|
184
|
+
d(r) {
|
|
185
|
+
r && j(e), c && c.d(), ae(u, r), t[26](null), k();
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function Re(t) {
|
|
190
|
+
let e;
|
|
191
|
+
return {
|
|
192
|
+
c() {
|
|
193
|
+
e = C("div"), g(e, "class", "LoadingSpinner svelte-5qs4ma");
|
|
194
|
+
},
|
|
195
|
+
m(l, o) {
|
|
196
|
+
M(l, e, o);
|
|
197
|
+
},
|
|
198
|
+
p: z,
|
|
199
|
+
d(l) {
|
|
200
|
+
l && j(e);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function le(t) {
|
|
205
|
+
let e, l, o, i, a, d;
|
|
206
|
+
return {
|
|
207
|
+
c() {
|
|
208
|
+
e = C("div"), l = C("button"), l.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656" class="svelte-5qs4ma"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff" class="svelte-5qs4ma"></path></svg>', o = T(), i = C("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656" class="svelte-5qs4ma"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff" class="svelte-5qs4ma"></path></svg>', g(l, "class", "svelte-5qs4ma"), g(i, "class", "svelte-5qs4ma"), g(e, "class", "ButtonsContainer svelte-5qs4ma");
|
|
209
|
+
},
|
|
210
|
+
m(b, f) {
|
|
211
|
+
M(b, e, f), _(e, l), _(e, o), _(e, i), a || (d = [
|
|
212
|
+
O(
|
|
213
|
+
l,
|
|
214
|
+
"click",
|
|
215
|
+
/*click_handler*/
|
|
216
|
+
t[22]
|
|
217
|
+
),
|
|
218
|
+
O(
|
|
219
|
+
i,
|
|
220
|
+
"click",
|
|
221
|
+
/*click_handler_1*/
|
|
222
|
+
t[23]
|
|
223
|
+
)
|
|
224
|
+
], a = !0);
|
|
225
|
+
},
|
|
226
|
+
p: z,
|
|
227
|
+
d(b) {
|
|
228
|
+
b && j(e), a = !1, ze(d);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function Ie(t) {
|
|
233
|
+
let e, l = (
|
|
234
|
+
/*category*/
|
|
235
|
+
t[41].name + ""
|
|
236
|
+
), o;
|
|
237
|
+
return {
|
|
238
|
+
c() {
|
|
239
|
+
e = C("p"), o = N(l), g(e, "class", "CategorySlideTitle svelte-5qs4ma");
|
|
240
|
+
},
|
|
241
|
+
m(i, a) {
|
|
242
|
+
M(i, e, a), _(e, o);
|
|
243
|
+
},
|
|
244
|
+
p(i, a) {
|
|
245
|
+
a[0] & /*gameCategories*/
|
|
246
|
+
8 && l !== (l = /*category*/
|
|
247
|
+
i[41].name + "") && R(o, l);
|
|
248
|
+
},
|
|
249
|
+
d(i) {
|
|
250
|
+
i && j(e);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
function Ue(t) {
|
|
255
|
+
let e, l, o;
|
|
256
|
+
return {
|
|
257
|
+
c() {
|
|
258
|
+
e = C("img"), g(e, "class", "CategorySlideLogo svelte-5qs4ma"), B(e.src, l = /*category*/
|
|
259
|
+
t[41].icon) || g(e, "src", l), g(e, "alt", o = /*category*/
|
|
260
|
+
t[41].name + " icon");
|
|
261
|
+
},
|
|
262
|
+
m(i, a) {
|
|
263
|
+
M(i, e, a);
|
|
264
|
+
},
|
|
265
|
+
p(i, a) {
|
|
266
|
+
a[0] & /*gameCategories*/
|
|
267
|
+
8 && !B(e.src, l = /*category*/
|
|
268
|
+
i[41].icon) && g(e, "src", l), a[0] & /*gameCategories*/
|
|
269
|
+
8 && o !== (o = /*category*/
|
|
270
|
+
i[41].name + " icon") && g(e, "alt", o);
|
|
271
|
+
},
|
|
272
|
+
d(i) {
|
|
273
|
+
i && j(e);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
function se(t) {
|
|
278
|
+
let e, l = (
|
|
279
|
+
/*game*/
|
|
280
|
+
t[44].name + ""
|
|
281
|
+
), o, i;
|
|
282
|
+
return {
|
|
283
|
+
c() {
|
|
284
|
+
e = C("p"), o = N(l), g(e, "title", i = /*game*/
|
|
285
|
+
t[44].name), g(e, "class", "svelte-5qs4ma");
|
|
286
|
+
},
|
|
287
|
+
m(a, d) {
|
|
288
|
+
M(a, e, d), _(e, o);
|
|
289
|
+
},
|
|
290
|
+
p(a, d) {
|
|
291
|
+
d[0] & /*gameCategories*/
|
|
292
|
+
8 && l !== (l = /*game*/
|
|
293
|
+
a[44].name + "") && R(o, l), d[0] & /*gameCategories*/
|
|
294
|
+
8 && i !== (i = /*game*/
|
|
295
|
+
a[44].name) && g(e, "title", i);
|
|
296
|
+
},
|
|
297
|
+
d(a) {
|
|
298
|
+
a && j(e);
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function ie(t) {
|
|
303
|
+
let e, l, o, i, a, d, b, f;
|
|
304
|
+
function k() {
|
|
305
|
+
return (
|
|
306
|
+
/*click_handler_2*/
|
|
307
|
+
t[24](
|
|
308
|
+
/*game*/
|
|
309
|
+
t[44]
|
|
310
|
+
)
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
let v = (
|
|
314
|
+
/*collectionprovidersgamenames*/
|
|
315
|
+
t[2] == "true" && se(t)
|
|
316
|
+
);
|
|
317
|
+
return {
|
|
318
|
+
c() {
|
|
319
|
+
e = C("div"), l = C("img"), a = T(), v && v.c(), d = T(), g(l, "class", "CategorySlideGameImage svelte-5qs4ma"), B(l.src, o = /*game*/
|
|
320
|
+
t[44].defaultThumbnail) || g(l, "src", o), g(l, "alt", i = /*game*/
|
|
321
|
+
t[44].name), g(e, "class", "CategorySlideGames svelte-5qs4ma");
|
|
322
|
+
},
|
|
323
|
+
m(c, m) {
|
|
324
|
+
M(c, e, m), _(e, l), _(e, a), v && v.m(e, null), _(e, d), b || (f = O(l, "click", Oe(k)), b = !0);
|
|
325
|
+
},
|
|
326
|
+
p(c, m) {
|
|
327
|
+
t = c, m[0] & /*gameCategories*/
|
|
328
|
+
8 && !B(l.src, o = /*game*/
|
|
329
|
+
t[44].defaultThumbnail) && g(l, "src", o), m[0] & /*gameCategories*/
|
|
330
|
+
8 && i !== (i = /*game*/
|
|
331
|
+
t[44].name) && g(l, "alt", i), /*collectionprovidersgamenames*/
|
|
332
|
+
t[2] == "true" ? v ? v.p(t, m) : (v = se(t), v.c(), v.m(e, d)) : v && (v.d(1), v = null);
|
|
333
|
+
},
|
|
334
|
+
d(c) {
|
|
335
|
+
c && j(e), v && v.d(), b = !1, f();
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
function oe(t) {
|
|
340
|
+
let e, l, o, i, a, d, b, f, k;
|
|
341
|
+
function v(n, p) {
|
|
342
|
+
if (
|
|
343
|
+
/*titletype*/
|
|
344
|
+
n[1] == "logo"
|
|
345
|
+
) return Ue;
|
|
346
|
+
if (
|
|
347
|
+
/*titletype*/
|
|
348
|
+
n[1] == "title"
|
|
349
|
+
) return Ie;
|
|
350
|
+
}
|
|
351
|
+
let c = v(t), m = c && c(t), u = H(
|
|
352
|
+
/*category*/
|
|
353
|
+
t[41].games
|
|
354
|
+
), r = [];
|
|
355
|
+
for (let n = 0; n < u.length; n += 1)
|
|
356
|
+
r[n] = ie(te(t, u, n));
|
|
357
|
+
function w() {
|
|
358
|
+
return (
|
|
359
|
+
/*click_handler_3*/
|
|
360
|
+
t[25](
|
|
361
|
+
/*category*/
|
|
362
|
+
t[41]
|
|
363
|
+
)
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
return {
|
|
367
|
+
c() {
|
|
368
|
+
var n, p;
|
|
369
|
+
e = C("div"), l = C("div"), o = C("div"), m && m.c(), i = T(), a = C("div");
|
|
370
|
+
for (let h = 0; h < r.length; h += 1)
|
|
371
|
+
r[h].c();
|
|
372
|
+
b = T(), g(o, "class", "CategorySlideTopContainer svelte-5qs4ma"), g(a, "class", "CategorySlideGameContainer svelte-5qs4ma"), g(l, "class", d = "CategorySlide " + /*category*/
|
|
373
|
+
(((n = t[41]) == null ? void 0 : n.flag[0]) == "vendor" ? "CategorySlideNoHighlight" : "") + " svelte-5qs4ma"), A(l, "background-image", "url(" + /*category*/
|
|
374
|
+
((p = t[41]) == null ? void 0 : p.background) + ")"), A(l, "background-size", "cover"), g(e, "class", "CategoriesSliderWrapper Animation svelte-5qs4ma");
|
|
375
|
+
},
|
|
376
|
+
m(n, p) {
|
|
377
|
+
M(n, e, p), _(e, l), _(l, o), m && m.m(o, null), _(l, i), _(l, a);
|
|
378
|
+
for (let h = 0; h < r.length; h += 1)
|
|
379
|
+
r[h] && r[h].m(a, null);
|
|
380
|
+
_(e, b), f || (k = O(l, "click", w), f = !0);
|
|
381
|
+
},
|
|
382
|
+
p(n, p) {
|
|
383
|
+
var h, x;
|
|
384
|
+
if (t = n, c === (c = v(t)) && m ? m.p(t, p) : (m && m.d(1), m = c && c(t), m && (m.c(), m.m(o, null))), p[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
|
385
|
+
16396) {
|
|
386
|
+
u = H(
|
|
387
|
+
/*category*/
|
|
388
|
+
t[41].games
|
|
389
|
+
);
|
|
390
|
+
let q;
|
|
391
|
+
for (q = 0; q < u.length; q += 1) {
|
|
392
|
+
const P = te(t, u, q);
|
|
393
|
+
r[q] ? r[q].p(P, p) : (r[q] = ie(P), r[q].c(), r[q].m(a, null));
|
|
394
|
+
}
|
|
395
|
+
for (; q < r.length; q += 1)
|
|
396
|
+
r[q].d(1);
|
|
397
|
+
r.length = u.length;
|
|
398
|
+
}
|
|
399
|
+
p[0] & /*gameCategories*/
|
|
400
|
+
8 && d !== (d = "CategorySlide " + /*category*/
|
|
401
|
+
(((h = t[41]) == null ? void 0 : h.flag[0]) == "vendor" ? "CategorySlideNoHighlight" : "") + " svelte-5qs4ma") && g(l, "class", d), p[0] & /*gameCategories*/
|
|
402
|
+
8 && A(l, "background-image", "url(" + /*category*/
|
|
403
|
+
((x = t[41]) == null ? void 0 : x.background) + ")");
|
|
404
|
+
},
|
|
405
|
+
d(n) {
|
|
406
|
+
n && j(e), m && m.d(), ae(r, n), f = !1, k();
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
function Ee(t) {
|
|
411
|
+
let e;
|
|
412
|
+
function l(a, d) {
|
|
413
|
+
return (
|
|
414
|
+
/*isLoading*/
|
|
415
|
+
a[7] ? Re : Ne
|
|
416
|
+
);
|
|
417
|
+
}
|
|
418
|
+
let o = l(t), i = o(t);
|
|
419
|
+
return {
|
|
420
|
+
c() {
|
|
421
|
+
e = C("div"), i.c(), g(e, "class", "svelte-5qs4ma");
|
|
422
|
+
},
|
|
423
|
+
m(a, d) {
|
|
424
|
+
M(a, e, d), i.m(e, null), t[28](e);
|
|
425
|
+
},
|
|
426
|
+
p(a, d) {
|
|
427
|
+
o === (o = l(a)) && i ? i.p(a, d) : (i.d(1), i = o(a), i && (i.c(), i.m(e, null)));
|
|
428
|
+
},
|
|
429
|
+
i: z,
|
|
430
|
+
o: z,
|
|
431
|
+
d(a) {
|
|
432
|
+
a && j(e), i.d(), t[28](null);
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
function We(t, e, l) {
|
|
437
|
+
let o;
|
|
438
|
+
Me(t, He, (s) => l(11, o = s));
|
|
439
|
+
let { endpoint: i = "" } = e, { datasource: a = "" } = e, { lang: d = "" } = e, { type: b = "" } = e, { titletype: f = "" } = e, { clientstyling: k = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: c = "" } = e, { collectionprovidersgamenames: m = "" } = e, u = [], r = !0, w, n = 0, p = 0, h = 0, x, q, P, ne = window.navigator.userAgent, I, F = 0;
|
|
440
|
+
const re = () => {
|
|
441
|
+
fetch(c).then((y) => y.json()).then((y) => {
|
|
442
|
+
Object.keys(y).forEach((S) => {
|
|
443
|
+
Y(S, y[S]);
|
|
444
|
+
});
|
|
445
|
+
}).catch((y) => {
|
|
446
|
+
console.log(y);
|
|
447
|
+
});
|
|
448
|
+
};
|
|
449
|
+
Object.keys($).forEach((s) => {
|
|
450
|
+
Y(s, $[s]);
|
|
451
|
+
});
|
|
452
|
+
const ce = () => {
|
|
453
|
+
const s = new URL(`${i}/v2/casino/groups/${a}`);
|
|
454
|
+
s.searchParams.append("language", d), s.searchParams.append("expand", "games"), fetch(s.href).then((y) => y.json()).then((y) => {
|
|
455
|
+
l(7, r = !1);
|
|
456
|
+
let S = y.items.filter((G) => G.flags == b);
|
|
457
|
+
l(3, u = S.map((G) => {
|
|
458
|
+
var K, Z, Q;
|
|
459
|
+
return {
|
|
460
|
+
id: G.id,
|
|
461
|
+
name: G.name,
|
|
462
|
+
icon: G.icon ? G.icon : (Q = (Z = (K = G.vendors) == null ? void 0 : K.items[0]) == null ? void 0 : Z.subVendors[0]) == null ? void 0 : Q.logo,
|
|
463
|
+
games: G.games.items.slice(0, 4).map((ye) => ye),
|
|
464
|
+
background: G.background,
|
|
465
|
+
flag: G.flags
|
|
466
|
+
};
|
|
467
|
+
})), l(8, p = u.length);
|
|
468
|
+
});
|
|
469
|
+
}, U = (s) => {
|
|
470
|
+
q = [...w.children], q.forEach((y, S) => {
|
|
471
|
+
y.style.transform = `translateX(${100 * (s ? S - s : S)}%)`;
|
|
472
|
+
}), x = q[0].getBoundingClientRect().width, de();
|
|
473
|
+
}, de = () => {
|
|
474
|
+
l(9, h = Math.floor(F / x));
|
|
475
|
+
}, E = () => {
|
|
476
|
+
U(n);
|
|
477
|
+
}, W = () => {
|
|
478
|
+
n === 0 ? n = p - h : n - h < -1 ? n = 0 : n--, E();
|
|
479
|
+
}, D = () => {
|
|
480
|
+
n === p - h ? n = 0 : p - h < n + 1 ? n = p - h : n++, E();
|
|
481
|
+
}, V = (s, y, S, G) => {
|
|
482
|
+
window.postMessage(
|
|
483
|
+
{
|
|
484
|
+
type: "OpenCollectionsProvidersGame",
|
|
485
|
+
gameId: s,
|
|
486
|
+
launchUrl: y,
|
|
487
|
+
gameName: S,
|
|
488
|
+
subVendor: G
|
|
489
|
+
},
|
|
490
|
+
window.location.href
|
|
491
|
+
), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
492
|
+
context: "CollectionsProviders",
|
|
493
|
+
gameName: `${S}`
|
|
494
|
+
});
|
|
495
|
+
}, J = (s) => {
|
|
496
|
+
window.postMessage(
|
|
497
|
+
{
|
|
498
|
+
type: "OpenCollectionsProvidersCategory",
|
|
499
|
+
categoryId: s
|
|
500
|
+
},
|
|
501
|
+
window.location.href
|
|
502
|
+
);
|
|
503
|
+
}, me = () => {
|
|
504
|
+
Be(d);
|
|
505
|
+
}, ge = () => {
|
|
506
|
+
let s = document.createElement("style");
|
|
507
|
+
s.innerHTML = k, P.appendChild(s);
|
|
508
|
+
}, ve = () => {
|
|
509
|
+
let s = new URL(v), y = document.createElement("style");
|
|
510
|
+
fetch(s.href).then((S) => S.text()).then((S) => {
|
|
511
|
+
y.innerHTML = S, setTimeout(
|
|
512
|
+
() => {
|
|
513
|
+
P.appendChild(y);
|
|
514
|
+
},
|
|
515
|
+
1
|
|
516
|
+
);
|
|
517
|
+
});
|
|
518
|
+
};
|
|
519
|
+
je(() => {
|
|
520
|
+
l(10, I = Te(ne));
|
|
521
|
+
});
|
|
522
|
+
const ue = () => W(), fe = () => D(), pe = (s) => V(s.gameId, s.launchUrl, s.name, s.subVendor), he = (s) => J(s.id);
|
|
523
|
+
function _e(s) {
|
|
524
|
+
X[s ? "unshift" : "push"](() => {
|
|
525
|
+
w = s, l(4, w);
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
function Ce() {
|
|
529
|
+
F = this.clientWidth, l(6, F);
|
|
530
|
+
}
|
|
531
|
+
function be(s) {
|
|
532
|
+
X[s ? "unshift" : "push"](() => {
|
|
533
|
+
P = s, l(5, P);
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
return t.$$set = (s) => {
|
|
537
|
+
"endpoint" in s && l(16, i = s.endpoint), "datasource" in s && l(17, a = s.datasource), "lang" in s && l(18, d = s.lang), "type" in s && l(0, b = s.type), "titletype" in s && l(1, f = s.titletype), "clientstyling" in s && l(19, k = s.clientstyling), "clientstylingurl" in s && l(20, v = s.clientstylingurl), "translationurl" in s && l(21, c = s.translationurl), "collectionprovidersgamenames" in s && l(2, m = s.collectionprovidersgamenames);
|
|
538
|
+
}, t.$$.update = () => {
|
|
539
|
+
t.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
540
|
+
458752 && i && a && d && ce(), t.$$.dirty[0] & /*categoriesSliderWidth, gameCategories, categoriesSlider*/
|
|
541
|
+
88 && F && u && w && U(), t.$$.dirty[0] & /*lang*/
|
|
542
|
+
262144 && d && me(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
543
|
+
524320 && k && P && ge(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
544
|
+
1048608 && v && P && ve(), t.$$.dirty[0] & /*translationurl*/
|
|
545
|
+
2097152 && c && re();
|
|
546
|
+
}, [
|
|
547
|
+
b,
|
|
548
|
+
f,
|
|
549
|
+
m,
|
|
550
|
+
u,
|
|
551
|
+
w,
|
|
552
|
+
P,
|
|
553
|
+
F,
|
|
554
|
+
r,
|
|
555
|
+
p,
|
|
556
|
+
h,
|
|
557
|
+
I,
|
|
558
|
+
o,
|
|
559
|
+
W,
|
|
560
|
+
D,
|
|
561
|
+
V,
|
|
562
|
+
J,
|
|
563
|
+
i,
|
|
564
|
+
a,
|
|
565
|
+
d,
|
|
566
|
+
k,
|
|
567
|
+
v,
|
|
568
|
+
c,
|
|
569
|
+
ue,
|
|
570
|
+
fe,
|
|
571
|
+
pe,
|
|
572
|
+
he,
|
|
573
|
+
_e,
|
|
574
|
+
Ce,
|
|
575
|
+
be
|
|
576
|
+
];
|
|
577
|
+
}
|
|
578
|
+
class De extends Se {
|
|
579
|
+
constructor(e) {
|
|
580
|
+
super(), ke(
|
|
581
|
+
this,
|
|
582
|
+
e,
|
|
583
|
+
We,
|
|
584
|
+
Ee,
|
|
585
|
+
Pe,
|
|
586
|
+
{
|
|
587
|
+
endpoint: 16,
|
|
588
|
+
datasource: 17,
|
|
589
|
+
lang: 18,
|
|
590
|
+
type: 0,
|
|
591
|
+
titletype: 1,
|
|
592
|
+
clientstyling: 19,
|
|
593
|
+
clientstylingurl: 20,
|
|
594
|
+
translationurl: 21,
|
|
595
|
+
collectionprovidersgamenames: 2
|
|
596
|
+
},
|
|
597
|
+
Ae,
|
|
598
|
+
[-1, -1]
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
get endpoint() {
|
|
602
|
+
return this.$$.ctx[16];
|
|
603
|
+
}
|
|
604
|
+
set endpoint(e) {
|
|
605
|
+
this.$$set({ endpoint: e }), L();
|
|
606
|
+
}
|
|
607
|
+
get datasource() {
|
|
608
|
+
return this.$$.ctx[17];
|
|
609
|
+
}
|
|
610
|
+
set datasource(e) {
|
|
611
|
+
this.$$set({ datasource: e }), L();
|
|
612
|
+
}
|
|
613
|
+
get lang() {
|
|
614
|
+
return this.$$.ctx[18];
|
|
615
|
+
}
|
|
616
|
+
set lang(e) {
|
|
617
|
+
this.$$set({ lang: e }), L();
|
|
618
|
+
}
|
|
619
|
+
get type() {
|
|
620
|
+
return this.$$.ctx[0];
|
|
621
|
+
}
|
|
622
|
+
set type(e) {
|
|
623
|
+
this.$$set({ type: e }), L();
|
|
624
|
+
}
|
|
625
|
+
get titletype() {
|
|
626
|
+
return this.$$.ctx[1];
|
|
627
|
+
}
|
|
628
|
+
set titletype(e) {
|
|
629
|
+
this.$$set({ titletype: e }), L();
|
|
630
|
+
}
|
|
631
|
+
get clientstyling() {
|
|
632
|
+
return this.$$.ctx[19];
|
|
633
|
+
}
|
|
634
|
+
set clientstyling(e) {
|
|
635
|
+
this.$$set({ clientstyling: e }), L();
|
|
636
|
+
}
|
|
637
|
+
get clientstylingurl() {
|
|
638
|
+
return this.$$.ctx[20];
|
|
639
|
+
}
|
|
640
|
+
set clientstylingurl(e) {
|
|
641
|
+
this.$$set({ clientstylingurl: e }), L();
|
|
642
|
+
}
|
|
643
|
+
get translationurl() {
|
|
644
|
+
return this.$$.ctx[21];
|
|
645
|
+
}
|
|
646
|
+
set translationurl(e) {
|
|
647
|
+
this.$$set({ translationurl: e }), L();
|
|
648
|
+
}
|
|
649
|
+
get collectionprovidersgamenames() {
|
|
650
|
+
return this.$$.ctx[2];
|
|
651
|
+
}
|
|
652
|
+
set collectionprovidersgamenames(e) {
|
|
653
|
+
this.$$set({ collectionprovidersgamenames: e }), L();
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
Ge(De, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {} }, [], [], !0);
|
|
657
|
+
export {
|
|
658
|
+
De as default
|
|
659
|
+
};
|