@everymatrix/casino-lobby 1.52.3 → 1.52.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/components/{CasinoFavoritesSection-B9gBh0NZ.js → CasinoFavoritesSection-BBB31zDY.js} +1 -1
  2. package/components/{CasinoFavoritesSection-ChFh3su6.cjs → CasinoFavoritesSection-BHrmxWuN.cjs} +1 -1
  3. package/components/{CasinoFilter-D4w5681f.js → CasinoFilter-CxB9D2A4.js} +26 -26
  4. package/components/CasinoFilter-DdhssY81.cjs +1 -0
  5. package/components/{CasinoGamesCategorySection-BMrvvE60.js → CasinoGamesCategorySection-C_kk0DKd.js} +1 -1
  6. package/components/{CasinoGamesCategorySection-B4Qu6J6Z.cjs → CasinoGamesCategorySection-DRTO5RGa.cjs} +1 -1
  7. package/components/{CasinoLastPlayedSection-dSLftjtV.js → CasinoLastPlayedSection-CLnhsvP9.js} +1 -1
  8. package/components/{CasinoLastPlayedSection-DffnfNRE.cjs → CasinoLastPlayedSection-CXT1cjKT.cjs} +1 -1
  9. package/components/{CasinoLobby-oK0DUqXw.cjs → CasinoLobby-DSzDWiIw.cjs} +1 -1
  10. package/components/{CasinoLobby-D0fx3faE.js → CasinoLobby-pjumhRDZ.js} +1 -1
  11. package/components/{CasinoMostPlayedSection-CVtfFNhO.js → CasinoMostPlayedSection-5-RVoCb-.js} +1 -1
  12. package/components/{CasinoMostPlayedSection-DZGaHB3O.cjs → CasinoMostPlayedSection-Bl6GtlIg.cjs} +1 -1
  13. package/components/{CasinoMyGames-ByIkK-pB.js → CasinoMyGames-6DZcdRjD.js} +3 -3
  14. package/components/{CasinoMyGames-jDm4pm63.cjs → CasinoMyGames-Dk_pu9Qu.cjs} +1 -1
  15. package/components/CasinoPage-2oHimQvG.cjs +1 -0
  16. package/components/{CasinoPage-Bd9QG8fM.js → CasinoPage-C4py41GG.js} +15 -4
  17. package/components/{CasinoSearch-Dd4amKB_.cjs → CasinoSearch-BzNr7mJS.cjs} +1 -1
  18. package/components/{CasinoSearch-Y5NcDcXt.js → CasinoSearch-D5Ytqppn.js} +1 -1
  19. package/components/CasinoWinners-B4eUo0-6.cjs +1 -0
  20. package/components/CasinoWinners-BZNLRgvw.js +971 -0
  21. package/es2015/casino-lobby.cjs +1 -1
  22. package/es2015/casino-lobby.js +1 -1
  23. package/package.json +1 -1
  24. package/components/CasinoFilter-BRH4KgQb.cjs +0 -1
  25. package/components/CasinoPage-WPmHsvYH.cjs +0 -1
  26. package/components/CasinoWinners-CUORt5E8.cjs +0 -1
  27. package/components/CasinoWinners-CwPF3r2V.js +0 -908
@@ -1,908 +0,0 @@
1
- import { I as Je, $ as Xe, S as Ye, i as Qe, f as y, c as $e, s as et, b as tt, e as W, d as D, C as ye, j as G, J as nt, o as it, l as rt, m as oe, p as te, q as O, E as ee, u as a, v as u, w as J, B as Be, R as st, M as H, F as Te, O as lt, r as V, A as q, D as _e } from "./CasinoCalendar-0AyYaYr6.js";
2
- function we(n, e) {
3
- Je(n, e);
4
- }
5
- function ot(n) {
6
- Xe.set(n);
7
- }
8
- const We = {
9
- en: {
10
- recentWinners: "Recent Winners",
11
- topWinners: "Top Winners",
12
- won: "just won"
13
- },
14
- "zh-hk": {
15
- recentWinners: "最近的获奖者",
16
- topWinners: "最佳获奖者",
17
- won: "刚赢"
18
- },
19
- de: {
20
- recentWinners: "Kürzliche Gewinner",
21
- topWinners: "Top Gewinner",
22
- won: "Eben gewonnen"
23
- },
24
- it: {
25
- recentWinners: "Recent Winners",
26
- topWinners: "Top Winners",
27
- won: "just won"
28
- },
29
- fr: {
30
- recentWinners: "Gagnants récents",
31
- topWinners: "Meilleurs gagnants",
32
- won: "vient de gagner"
33
- },
34
- es: {
35
- recentWinners: "Ganadores Recientes",
36
- topWinners: "Ganadores Top",
37
- won: "Últimos Ganadores"
38
- },
39
- el: {
40
- recentWinners: "Πρόσφατοι νικητές",
41
- topWinners: "Κορυφαίοι νικητές",
42
- won: "μόλις κέρδισε"
43
- },
44
- tr: {
45
- recentWinners: "Son Kazananlar",
46
- topWinners: "En Çok Kazananlar",
47
- won: "Sadece kazandı"
48
- },
49
- ru: {
50
- recentWinners: "Recent Winners",
51
- topWinners: "Top Winners",
52
- won: "just won"
53
- },
54
- ro: {
55
- recentWinners: "Ultimii câștigători",
56
- topWinners: "Câștigători de top",
57
- won: "tocmai a câștigat"
58
- },
59
- hr: {
60
- recentWinners: "Nedavni dobitnici",
61
- topWinners: "Top dobitnici",
62
- won: "upravo osvojio"
63
- },
64
- hu: {
65
- recentWinners: "Legutóbbi nyertesek",
66
- topWinners: "Top nyertesek",
67
- won: "Nyert"
68
- },
69
- pl: {
70
- recentWinners: "Recent Winners",
71
- topWinners: "Top Winners",
72
- won: "just won"
73
- },
74
- pt: {
75
- recentWinners: "Recent Winners",
76
- topWinners: "Top Winners",
77
- won: "just won"
78
- },
79
- sl: {
80
- recentWinners: "Recent Winners",
81
- topWinners: "Top Winners",
82
- won: "just won"
83
- },
84
- sr: {
85
- recentWinners: "Recent Winners",
86
- topWinners: "Top Winners",
87
- won: "just won"
88
- },
89
- "pt-br": {
90
- recentWinners: "Vencedores recentes",
91
- topWinners: "Principais vencedores",
92
- won: "acabei de ganhar"
93
- },
94
- "es-mx": {
95
- recentWinners: "Ganadores recientes",
96
- topWinners: "Mejores Ganadores",
97
- won: "recién gano"
98
- },
99
- "en-us": {
100
- recentWinners: "Recent Winners",
101
- topWinners: "Top Winners",
102
- won: "just won"
103
- }
104
- };
105
- if (typeof window != "undefined") {
106
- let n = function(e) {
107
- return function(...t) {
108
- try {
109
- return e.apply(this, t);
110
- } catch (r) {
111
- if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
112
- return !1;
113
- throw r;
114
- }
115
- };
116
- };
117
- customElements.define = n(customElements.define), import("./GeneralAnimationLoading-C-B40oIV.js").then(({ default: e }) => {
118
- !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", e.element);
119
- });
120
- }
121
- function at(n) {
122
- tt(n, "svelte-157tecu", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emw--casino-typography, var(--emw--color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.WinnersSlider::-webkit-scrollbar{display:none}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emw--color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .CasinoWinners{width:320px;max-width:320px}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton:last-child{margin-right:0}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}");
123
- }
124
- function ve(n, e, t) {
125
- const r = n.slice();
126
- return r[70] = e[t], r;
127
- }
128
- function Ce(n, e, t) {
129
- const r = n.slice();
130
- return r[73] = e[t], r;
131
- }
132
- function ct(n) {
133
- let e, t, r, s, l, o, f, d, C, I, x, v, _, N, T, E, A, j, S, M = te(
134
- /*tabs*/
135
- n[17]
136
- ), g = [];
137
- for (let c = 0; c < M.length; c += 1)
138
- g[c] = Se(Ce(n, M, c));
139
- function P(c, b) {
140
- return (
141
- /*isLoadingDelayed*/
142
- c[18] ? ft : dt
143
- );
144
- }
145
- let L = P(n), w = L(n);
146
- return {
147
- c() {
148
- e = W("div"), t = W("div"), r = W("div");
149
- for (let c = 0; c < g.length; c += 1)
150
- g[c].c();
151
- s = O(), l = W("div"), o = W("button"), f = ee("svg"), d = ee("path"), I = O(), x = W("button"), v = ee("svg"), _ = ee("path"), E = O(), w.c(), a(r, "class", "WinnerButtonsContainer"), a(d, "style", C = /*numberOfVisibleSlides*/
152
- n[12] >= /*winners*/
153
- n[11].length ? "fill:#F6F6F62E" : ""), a(d, "id", "Path_36"), a(d, "data-name", "Path 36"), a(d, "d", "M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"), a(d, "transform", "translate(14.656 0) rotate(90)"), a(d, "fill", "#fff"), a(f, "id", "Component_46_2"), a(f, "data-name", "Component 46 – 2"), a(f, "xmlns", "http://www.w3.org/2000/svg"), a(f, "width", "15"), a(f, "height", "15"), a(f, "viewBox", "0 0 16 24.656"), a(o, "class", "SliderButton"), a(_, "style", N = /*numberOfVisibleSlides*/
154
- n[12] >= /*winners*/
155
- n[11].length ? "fill:#F6F6F62E" : ""), a(_, "id", "Path_36"), a(_, "data-name", "Path 36"), a(_, "d", "M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"), a(_, "transform", "translate(0 24.656) rotate(-90)"), a(_, "fill", "#fff"), a(v, "id", "Component_46_2"), a(v, "data-name", "Component 46 – 2"), a(v, "xmlns", "http://www.w3.org/2000/svg"), a(v, "width", "15"), a(v, "height", "15"), a(v, "viewBox", "0 0 16 24.656"), a(x, "class", "SliderButton"), a(l, "class", T = "ButtonsContainer " + /*enableautoscroll*/
156
- (n[6] == "true" ? "ButtonsContainerNone" : "")), a(t, "class", "WinnersHeader"), a(e, "class", A = "CasinoWinners " + /*mobile*/
157
- (n[13] ? "Mobile" : ""));
158
- },
159
- m(c, b) {
160
- D(c, e, b), u(e, t), u(t, r);
161
- for (let m = 0; m < g.length; m += 1)
162
- g[m] && g[m].m(r, null);
163
- u(t, s), u(t, l), u(l, o), u(o, f), u(f, d), u(l, I), u(l, x), u(x, v), u(v, _), u(e, E), w.m(e, null), j || (S = [
164
- J(
165
- o,
166
- "click",
167
- /*click_handler_2*/
168
- n[43]
169
- ),
170
- J(
171
- x,
172
- "click",
173
- /*click_handler_3*/
174
- n[44]
175
- )
176
- ], j = !0);
177
- },
178
- p(c, b) {
179
- if (b[0] & /*winnersType, istopavailable, toggleTab, $_, tabs, isrecentavailable*/
180
- 3277827) {
181
- M = te(
182
- /*tabs*/
183
- c[17]
184
- );
185
- let m;
186
- for (m = 0; m < M.length; m += 1) {
187
- const h = Ce(c, M, m);
188
- g[m] ? g[m].p(h, b) : (g[m] = Se(h), g[m].c(), g[m].m(r, null));
189
- }
190
- for (; m < g.length; m += 1)
191
- g[m].d(1);
192
- g.length = M.length;
193
- }
194
- b[0] & /*numberOfVisibleSlides, winners*/
195
- 6144 && C !== (C = /*numberOfVisibleSlides*/
196
- c[12] >= /*winners*/
197
- c[11].length ? "fill:#F6F6F62E" : "") && a(d, "style", C), b[0] & /*numberOfVisibleSlides, winners*/
198
- 6144 && N !== (N = /*numberOfVisibleSlides*/
199
- c[12] >= /*winners*/
200
- c[11].length ? "fill:#F6F6F62E" : "") && a(_, "style", N), b[0] & /*enableautoscroll*/
201
- 64 && T !== (T = "ButtonsContainer " + /*enableautoscroll*/
202
- (c[6] == "true" ? "ButtonsContainerNone" : "")) && a(l, "class", T), L === (L = P(c)) && w ? w.p(c, b) : (w.d(1), w = L(c), w && (w.c(), w.m(e, null))), b[0] & /*mobile*/
203
- 8192 && A !== (A = "CasinoWinners " + /*mobile*/
204
- (c[13] ? "Mobile" : "")) && a(e, "class", A);
205
- },
206
- d(c) {
207
- c && G(e), Be(g, c), w.d(), j = !1, st(S);
208
- }
209
- };
210
- }
211
- function ut(n) {
212
- let e;
213
- return {
214
- c() {
215
- e = W("general-animation-loading"), H(
216
- e,
217
- "clientstyling",
218
- /*clientstyling*/
219
- n[4]
220
- ), H(
221
- e,
222
- "clientstylingurl",
223
- /*clientstylingurl*/
224
- n[5]
225
- );
226
- },
227
- m(t, r) {
228
- D(t, e, r);
229
- },
230
- p(t, r) {
231
- r[0] & /*clientstyling*/
232
- 16 && H(
233
- e,
234
- "clientstyling",
235
- /*clientstyling*/
236
- t[4]
237
- ), r[0] & /*clientstylingurl*/
238
- 32 && H(
239
- e,
240
- "clientstylingurl",
241
- /*clientstylingurl*/
242
- t[5]
243
- );
244
- },
245
- d(t) {
246
- t && G(e);
247
- }
248
- };
249
- }
250
- function ke(n) {
251
- let e, t = (
252
- /*isrecentavailable*/
253
- n[0] === "true" && Me(n)
254
- );
255
- return {
256
- c() {
257
- t && t.c(), e = Te();
258
- },
259
- m(r, s) {
260
- t && t.m(r, s), D(r, e, s);
261
- },
262
- p(r, s) {
263
- /*isrecentavailable*/
264
- r[0] === "true" ? t ? t.p(r, s) : (t = Me(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
265
- },
266
- d(r) {
267
- r && G(e), t && t.d(r);
268
- }
269
- };
270
- }
271
- function Me(n) {
272
- let e, t = (
273
- /*$_*/
274
- n[20]("recentWinners") + ""
275
- ), r, s, l, o;
276
- return {
277
- c() {
278
- e = W("button"), r = V(t), a(e, "class", s = "WinnersButton " + /*winnersType*/
279
- (n[10] == "recent" ? "Active" : ""));
280
- },
281
- m(f, d) {
282
- D(f, e, d), u(e, r), l || (o = J(
283
- e,
284
- "click",
285
- /*click_handler*/
286
- n[41]
287
- ), l = !0);
288
- },
289
- p(f, d) {
290
- d[0] & /*$_*/
291
- 1048576 && t !== (t = /*$_*/
292
- f[20]("recentWinners") + "") && q(r, t), d[0] & /*winnersType*/
293
- 1024 && s !== (s = "WinnersButton " + /*winnersType*/
294
- (f[10] == "recent" ? "Active" : "")) && a(e, "class", s);
295
- },
296
- d(f) {
297
- f && G(e), l = !1, o();
298
- }
299
- };
300
- }
301
- function Fe(n) {
302
- let e, t = (
303
- /*$_*/
304
- n[20]("topWinners") + ""
305
- ), r, s, l, o, f;
306
- return {
307
- c() {
308
- e = W("button"), r = V(t), s = O(), a(e, "class", l = "WinnersButton " + /*winnersType*/
309
- (n[10] == "top" ? "Active" : "") + " " + /*istopavailable*/
310
- (n[1] == "false" ? "Off" : ""));
311
- },
312
- m(d, C) {
313
- D(d, e, C), u(e, r), u(e, s), o || (f = J(
314
- e,
315
- "click",
316
- /*click_handler_1*/
317
- n[42]
318
- ), o = !0);
319
- },
320
- p(d, C) {
321
- C[0] & /*$_*/
322
- 1048576 && t !== (t = /*$_*/
323
- d[20]("topWinners") + "") && q(r, t), C[0] & /*winnersType, istopavailable*/
324
- 1026 && l !== (l = "WinnersButton " + /*winnersType*/
325
- (d[10] == "top" ? "Active" : "") + " " + /*istopavailable*/
326
- (d[1] == "false" ? "Off" : "")) && a(e, "class", l);
327
- },
328
- d(d) {
329
- d && G(e), o = !1, f();
330
- }
331
- };
332
- }
333
- function Se(n) {
334
- let e, t, r = (
335
- /*tab*/
336
- n[73] == "recent" && ke(n)
337
- ), s = (
338
- /*tab*/
339
- n[73] == "top" && Fe(n)
340
- );
341
- return {
342
- c() {
343
- r && r.c(), e = O(), s && s.c(), t = Te();
344
- },
345
- m(l, o) {
346
- r && r.m(l, o), D(l, e, o), s && s.m(l, o), D(l, t, o);
347
- },
348
- p(l, o) {
349
- /*tab*/
350
- l[73] == "recent" ? r ? r.p(l, o) : (r = ke(l), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*tab*/
351
- l[73] == "top" ? s ? s.p(l, o) : (s = Fe(l), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
352
- },
353
- d(l) {
354
- l && (G(e), G(t)), r && r.d(l), s && s.d(l);
355
- }
356
- };
357
- }
358
- function dt(n) {
359
- let e, t = te(
360
- /*winners*/
361
- n[11]
362
- ), r = [];
363
- for (let s = 0; s < t.length; s += 1)
364
- r[s] = xe(ve(n, t, s));
365
- return {
366
- c() {
367
- e = W("div");
368
- for (let s = 0; s < r.length; s += 1)
369
- r[s].c();
370
- a(e, "class", "WinnersSlider");
371
- },
372
- m(s, l) {
373
- D(s, e, l);
374
- for (let o = 0; o < r.length; o += 1)
375
- r[o] && r[o].m(e, null);
376
- n[47](e);
377
- },
378
- p(s, l) {
379
- if (l[0] & /*addAnimation, winnersGameCard, isLoggedIn, usercurrency, defaultcurrency, winners, $_, maskUsername, openWinnersGame*/
380
- 14223500) {
381
- t = te(
382
- /*winners*/
383
- s[11]
384
- );
385
- let o;
386
- for (o = 0; o < t.length; o += 1) {
387
- const f = ve(s, t, o);
388
- r[o] ? r[o].p(f, l) : (r[o] = xe(f), r[o].c(), r[o].m(e, null));
389
- }
390
- for (; o < r.length; o += 1)
391
- r[o].d(1);
392
- r.length = t.length;
393
- }
394
- },
395
- d(s) {
396
- s && G(e), Be(r, s), n[47](null);
397
- }
398
- };
399
- }
400
- function ft(n) {
401
- let e;
402
- return {
403
- c() {
404
- e = W("general-animation-loading"), H(
405
- e,
406
- "clientstyling",
407
- /*clientstyling*/
408
- n[4]
409
- ), H(
410
- e,
411
- "clientstylingurl",
412
- /*clientstylingurl*/
413
- n[5]
414
- );
415
- },
416
- m(t, r) {
417
- D(t, e, r);
418
- },
419
- p(t, r) {
420
- r[0] & /*clientstyling*/
421
- 16 && H(
422
- e,
423
- "clientstyling",
424
- /*clientstyling*/
425
- t[4]
426
- ), r[0] & /*clientstylingurl*/
427
- 32 && H(
428
- e,
429
- "clientstylingurl",
430
- /*clientstylingurl*/
431
- t[5]
432
- );
433
- },
434
- d(t) {
435
- t && G(e);
436
- }
437
- };
438
- }
439
- function xe(n) {
440
- let e, t, r, s, l, o, f, d = (
441
- /*winner*/
442
- n[70].gameName + ""
443
- ), C, I, x, v = (
444
- /*maskUsername*/
445
- n[22](
446
- /*winner*/
447
- n[70].username
448
- ) + ""
449
- ), _, N, T, E = (
450
- /*$_*/
451
- n[20]("won") + ""
452
- ), A, j, S, M = (
453
- /*winner*/
454
- n[70].specifiedCurrencyAmount.toFixed(2) + ""
455
- ), g, P, L, w = (
456
- /*isLoggedIn*/
457
- (n[7] ? (
458
- /*usercurrency*/
459
- n[3]
460
- ) : (
461
- /*defaultcurrency*/
462
- n[2]
463
- )) + ""
464
- ), c, b, m, h, F;
465
- function ne() {
466
- return (
467
- /*click_handler_4*/
468
- n[45](
469
- /*winner*/
470
- n[70]
471
- )
472
- );
473
- }
474
- return {
475
- c() {
476
- var R, k, U, B;
477
- e = W("div"), t = W("div"), r = W("img"), o = O(), f = W("p"), C = V(d), I = O(), x = W("p"), _ = V(v), N = O(), T = W("p"), A = V(E), j = O(), S = W("p"), g = V(M), P = O(), L = W("span"), c = V(w), b = O(), _e(r.src, s = /*winner*/
478
- (k = (R = n[70]) == null ? void 0 : R.gameModel) == null ? void 0 : k.thumbnail) || a(r, "src", s), a(r, "alt", l = /*winner*/
479
- (B = (U = n[70]) == null ? void 0 : U.gameModel) == null ? void 0 : B.thumbnail), a(r, "class", "WinnersImage"), a(T, "class", "WinnerUsername"), a(t, "class", "WinnerCard"), a(e, "class", m = "CardWrapper " + /*addAnimation*/
480
- (n[16] ? "CardWrapperAnimation" : ""));
481
- },
482
- m(R, k) {
483
- D(R, e, k), u(e, t), u(t, r), u(t, o), u(t, f), u(f, C), u(t, I), u(t, x), u(x, _), u(t, N), u(t, T), u(T, A), u(t, j), u(t, S), u(S, g), u(S, P), u(S, L), u(L, c), u(e, b), n[46](e), h || (F = J(r, "click", ne), h = !0);
484
- },
485
- p(R, k) {
486
- var U, B, K, Z;
487
- n = R, k[0] & /*winners*/
488
- 2048 && !_e(r.src, s = /*winner*/
489
- (B = (U = n[70]) == null ? void 0 : U.gameModel) == null ? void 0 : B.thumbnail) && a(r, "src", s), k[0] & /*winners*/
490
- 2048 && l !== (l = /*winner*/
491
- (Z = (K = n[70]) == null ? void 0 : K.gameModel) == null ? void 0 : Z.thumbnail) && a(r, "alt", l), k[0] & /*winners*/
492
- 2048 && d !== (d = /*winner*/
493
- n[70].gameName + "") && q(C, d), k[0] & /*winners*/
494
- 2048 && v !== (v = /*maskUsername*/
495
- n[22](
496
- /*winner*/
497
- n[70].username
498
- ) + "") && q(_, v), k[0] & /*$_*/
499
- 1048576 && E !== (E = /*$_*/
500
- n[20]("won") + "") && q(A, E), k[0] & /*winners*/
501
- 2048 && M !== (M = /*winner*/
502
- n[70].specifiedCurrencyAmount.toFixed(2) + "") && q(g, M), k[0] & /*isLoggedIn, usercurrency, defaultcurrency*/
503
- 140 && w !== (w = /*isLoggedIn*/
504
- (n[7] ? (
505
- /*usercurrency*/
506
- n[3]
507
- ) : (
508
- /*defaultcurrency*/
509
- n[2]
510
- )) + "") && q(c, w), k[0] & /*addAnimation*/
511
- 65536 && m !== (m = "CardWrapper " + /*addAnimation*/
512
- (n[16] ? "CardWrapperAnimation" : "")) && a(e, "class", m);
513
- },
514
- d(R) {
515
- R && G(e), n[46](null), h = !1, F();
516
- }
517
- };
518
- }
519
- function mt(n) {
520
- let e;
521
- function t(l, o) {
522
- return (
523
- /*isLoading*/
524
- l[14] || /*isLoadingCustomStyling*/
525
- l[15] ? ut : ct
526
- );
527
- }
528
- let r = t(n), s = r(n);
529
- return {
530
- c() {
531
- e = W("div"), s.c();
532
- },
533
- m(l, o) {
534
- D(l, e, o), s.m(e, null), n[48](e);
535
- },
536
- p(l, o) {
537
- r === (r = t(l)) && s ? s.p(l, o) : (s.d(1), s = r(l), s && (s.c(), s.m(e, null)));
538
- },
539
- i: ye,
540
- o: ye,
541
- d(l) {
542
- l && G(e), s.d(), n[48](null);
543
- }
544
- };
545
- }
546
- function gt(n, e, t) {
547
- let r;
548
- nt(n, lt, (i) => t(20, r = i));
549
- let { endpoint: s = "" } = e, { session: l = "" } = e, { userid: o = "" } = e, { periodrecent: f = "Today" } = e, { periodtop: d = "Last7Days" } = e, { numberusersrecent: C = "20" } = e, { numberuserstop: I = "20" } = e, { amountlimit: x = "1" } = e, { vendorCategory: v = "All" } = e, { lang: _ = "en" } = e, { isrecentavailable: N = "true" } = e, { istopavailable: T = "true" } = e, { defaultcurrency: E = "" } = e, { usercurrency: A = "" } = e, { clientstyling: j = "" } = e, { clientstylingurl: S = "" } = e, { enableautoscroll: M = "" } = e, { tabsorder: g = "" } = e, { translationurl: P = "" } = e, { winnersdatasources: L = "" } = e, { hascustomstyling: w = "false" } = e, c, b, m = [], h = 0, F = 0, ne = window.navigator.userAgent, R, k, U, B, K = !0, Z = !1, ae = !1, ce, X, ie, Y, ue = [], re = !1, Q, de = 0;
550
- const Ae = () => {
551
- let i = new URL(P);
552
- fetch(i.href).then((p) => p.json()).then((p) => {
553
- Object.keys(p).forEach((z) => {
554
- we(z, p[z]);
555
- });
556
- }).catch((p) => {
557
- console.log(p);
558
- });
559
- };
560
- Object.keys(We).forEach((i) => {
561
- we(i, We[i]);
562
- });
563
- const fe = () => {
564
- ue = L.split(",").map(function(p) {
565
- return p.trim();
566
- });
567
- const i = new URL(`${s}/v1/casino/${b}-winners`);
568
- t(18, re = !0), i.searchParams.append("limit", b == "recent" ? C : I), i.searchParams.append("specifiedCurrency", Y), i.searchParams.append("period", b == "recent" ? f : d), i.searchParams.append("language", _), i.searchParams.append("amountLimit", x), i.searchParams.append("vendorCategory", v), ue.forEach((p) => {
569
- i.searchParams.append("dataSource", p);
570
- }), setTimeout(
571
- () => {
572
- fetch(i.href).then((p) => p.json()).then((p) => {
573
- t(11, m = []), t(11, m = p.items.map((z) => z)), t(18, re = !1), setTimeout(
574
- () => {
575
- Ee(), ge(), M == "true" && (clearInterval(X), Le()), t(14, K = !1);
576
- },
577
- 5
578
- );
579
- });
580
- },
581
- 1e3
582
- );
583
- }, se = (i) => {
584
- b !== i && (t(11, m = []), t(10, b = i), fe());
585
- }, je = (i) => i.slice(0, 2) + i.slice(2, -2).replace(/./g, "*") + i.slice(-2), me = (i, p, z, $) => {
586
- window.postMessage(
587
- {
588
- type: "OpenCasinoWinnersGame",
589
- gameId: i,
590
- launchUrl: p,
591
- gameName: z,
592
- subVendor: $
593
- },
594
- window.location.href
595
- ), typeof gtag == "function" && gtag("event", "OpenGame", {
596
- context: "WinnersWidget",
597
- gameId: `${i}`,
598
- userId: `${U || "Not logged in"}`
599
- });
600
- }, ge = (i) => {
601
- const p = [...c.children];
602
- ce = p.length, p.forEach((z, $) => {
603
- z.style.transform = `translateX(${100 * (i ? $ - i : $)}%)`;
604
- }), setTimeout(
605
- () => {
606
- t(16, ae = !0);
607
- },
608
- 10
609
- );
610
- }, Le = () => {
611
- h = 0, F < ce ? X = setInterval(
612
- () => {
613
- le();
614
- },
615
- 3e3
616
- ) : clearInterval(X);
617
- }, he = () => {
618
- ge(h);
619
- }, Ee = () => {
620
- de = Q.offsetWidth, t(12, F = Math.round(c.offsetWidth / de));
621
- }, pe = () => {
622
- if (F >= m.length) return;
623
- const i = m.length;
624
- h === 0 ? h = i - F : h - F < 0 ? h = 0 : h = h - F, he();
625
- }, le = () => {
626
- if (F >= m.length) return;
627
- const i = m.length;
628
- M == "true" && (h === i - F ? h = 0 : h++), M == "false" && (h === i - F ? h = 0 : i - F < h + F ? h = i - F : h += F), he();
629
- }, ze = () => {
630
- ot(_);
631
- }, Ne = () => {
632
- t(7, k = !0), U = o;
633
- }, be = () => {
634
- t(40, Y = k ? A : E);
635
- }, Re = () => {
636
- let i = document.createElement("style");
637
- i.innerHTML = j, B.appendChild(i);
638
- }, Oe = () => {
639
- let i = new URL(S), p = document.createElement("style");
640
- fetch(i.href).then((z) => z.text()).then((z) => {
641
- p.innerHTML = z, setTimeout(
642
- () => {
643
- B.appendChild(p);
644
- },
645
- 1
646
- ), setTimeout(
647
- () => {
648
- },
649
- 500
650
- ), t(15, Z = !1);
651
- });
652
- }, De = () => {
653
- w === "true" && (!j && !S && B && console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"), !j && S && t(15, Z = !0));
654
- }, Ge = () => {
655
- t(17, ie = g.split(",")), t(10, b = ie[0]), be(), t(14, K = !1);
656
- };
657
- it(() => (t(13, R = rt(ne)), () => {
658
- clearInterval(X);
659
- }));
660
- const Ie = () => se("recent"), Pe = () => se("top"), Ue = () => pe(), He = () => le(), Ve = (i) => me(i.gameId, i.gameModel.launchUrl, i.gameModel.name, i.gameModel.subVendor);
661
- function qe(i) {
662
- oe[i ? "unshift" : "push"](() => {
663
- Q = i, t(19, Q);
664
- });
665
- }
666
- function Ke(i) {
667
- oe[i ? "unshift" : "push"](() => {
668
- c = i, t(9, c);
669
- });
670
- }
671
- function Ze(i) {
672
- oe[i ? "unshift" : "push"](() => {
673
- B = i, t(8, B);
674
- });
675
- }
676
- return n.$$set = (i) => {
677
- "endpoint" in i && t(26, s = i.endpoint), "session" in i && t(27, l = i.session), "userid" in i && t(28, o = i.userid), "periodrecent" in i && t(29, f = i.periodrecent), "periodtop" in i && t(30, d = i.periodtop), "numberusersrecent" in i && t(31, C = i.numberusersrecent), "numberuserstop" in i && t(32, I = i.numberuserstop), "amountlimit" in i && t(33, x = i.amountlimit), "vendorCategory" in i && t(34, v = i.vendorCategory), "lang" in i && t(35, _ = i.lang), "isrecentavailable" in i && t(0, N = i.isrecentavailable), "istopavailable" in i && t(1, T = i.istopavailable), "defaultcurrency" in i && t(2, E = i.defaultcurrency), "usercurrency" in i && t(3, A = i.usercurrency), "clientstyling" in i && t(4, j = i.clientstyling), "clientstylingurl" in i && t(5, S = i.clientstylingurl), "enableautoscroll" in i && t(6, M = i.enableautoscroll), "tabsorder" in i && t(36, g = i.tabsorder), "translationurl" in i && t(37, P = i.translationurl), "winnersdatasources" in i && t(38, L = i.winnersdatasources), "hascustomstyling" in i && t(39, w = i.hascustomstyling);
678
- }, n.$$.update = () => {
679
- n.$$.dirty[0] & /*isrecentavailable, istopavailable, periodrecent, periodtop*/
680
- 1610612739 | n.$$.dirty[1] & /*numberusersrecent, numberuserstop, amountlimit, vendorCategory, lang, tabsorder*/
681
- 63 && N && T && f && d && C && I && x && v && _ && g && Ge(), n.$$.dirty[0] & /*session*/
682
- 134217728 && l && Ne(), n.$$.dirty[0] & /*isLoggedIn, usercurrency, defaultcurrency*/
683
- 140 && k && (A || E) && be(), n.$$.dirty[0] & /*endpoint*/
684
- 67108864 | n.$$.dirty[1] & /*winnersdatasources, currency*/
685
- 640 && s && L && Y && fe(), n.$$.dirty[1] & /*lang*/
686
- 16 && _ && ze(), n.$$.dirty[1] & /*translationurl*/
687
- 64 && P && Ae(), n.$$.dirty[1] & /*hascustomstyling*/
688
- 256 && w && De(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
689
- 272 && j && B && Re(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
690
- 288 && S && B && Oe();
691
- }, [
692
- N,
693
- T,
694
- E,
695
- A,
696
- j,
697
- S,
698
- M,
699
- k,
700
- B,
701
- c,
702
- b,
703
- m,
704
- F,
705
- R,
706
- K,
707
- Z,
708
- ae,
709
- ie,
710
- re,
711
- Q,
712
- r,
713
- se,
714
- je,
715
- me,
716
- pe,
717
- le,
718
- s,
719
- l,
720
- o,
721
- f,
722
- d,
723
- C,
724
- I,
725
- x,
726
- v,
727
- _,
728
- g,
729
- P,
730
- L,
731
- w,
732
- Y,
733
- Ie,
734
- Pe,
735
- Ue,
736
- He,
737
- Ve,
738
- qe,
739
- Ke,
740
- Ze
741
- ];
742
- }
743
- class ht extends Ye {
744
- constructor(e) {
745
- super(), Qe(
746
- this,
747
- e,
748
- gt,
749
- mt,
750
- et,
751
- {
752
- endpoint: 26,
753
- session: 27,
754
- userid: 28,
755
- periodrecent: 29,
756
- periodtop: 30,
757
- numberusersrecent: 31,
758
- numberuserstop: 32,
759
- amountlimit: 33,
760
- vendorCategory: 34,
761
- lang: 35,
762
- isrecentavailable: 0,
763
- istopavailable: 1,
764
- defaultcurrency: 2,
765
- usercurrency: 3,
766
- clientstyling: 4,
767
- clientstylingurl: 5,
768
- enableautoscroll: 6,
769
- tabsorder: 36,
770
- translationurl: 37,
771
- winnersdatasources: 38,
772
- hascustomstyling: 39
773
- },
774
- at,
775
- [-1, -1, -1]
776
- );
777
- }
778
- get endpoint() {
779
- return this.$$.ctx[26];
780
- }
781
- set endpoint(e) {
782
- this.$$set({ endpoint: e }), y();
783
- }
784
- get session() {
785
- return this.$$.ctx[27];
786
- }
787
- set session(e) {
788
- this.$$set({ session: e }), y();
789
- }
790
- get userid() {
791
- return this.$$.ctx[28];
792
- }
793
- set userid(e) {
794
- this.$$set({ userid: e }), y();
795
- }
796
- get periodrecent() {
797
- return this.$$.ctx[29];
798
- }
799
- set periodrecent(e) {
800
- this.$$set({ periodrecent: e }), y();
801
- }
802
- get periodtop() {
803
- return this.$$.ctx[30];
804
- }
805
- set periodtop(e) {
806
- this.$$set({ periodtop: e }), y();
807
- }
808
- get numberusersrecent() {
809
- return this.$$.ctx[31];
810
- }
811
- set numberusersrecent(e) {
812
- this.$$set({ numberusersrecent: e }), y();
813
- }
814
- get numberuserstop() {
815
- return this.$$.ctx[32];
816
- }
817
- set numberuserstop(e) {
818
- this.$$set({ numberuserstop: e }), y();
819
- }
820
- get amountlimit() {
821
- return this.$$.ctx[33];
822
- }
823
- set amountlimit(e) {
824
- this.$$set({ amountlimit: e }), y();
825
- }
826
- get vendorCategory() {
827
- return this.$$.ctx[34];
828
- }
829
- set vendorCategory(e) {
830
- this.$$set({ vendorCategory: e }), y();
831
- }
832
- get lang() {
833
- return this.$$.ctx[35];
834
- }
835
- set lang(e) {
836
- this.$$set({ lang: e }), y();
837
- }
838
- get isrecentavailable() {
839
- return this.$$.ctx[0];
840
- }
841
- set isrecentavailable(e) {
842
- this.$$set({ isrecentavailable: e }), y();
843
- }
844
- get istopavailable() {
845
- return this.$$.ctx[1];
846
- }
847
- set istopavailable(e) {
848
- this.$$set({ istopavailable: e }), y();
849
- }
850
- get defaultcurrency() {
851
- return this.$$.ctx[2];
852
- }
853
- set defaultcurrency(e) {
854
- this.$$set({ defaultcurrency: e }), y();
855
- }
856
- get usercurrency() {
857
- return this.$$.ctx[3];
858
- }
859
- set usercurrency(e) {
860
- this.$$set({ usercurrency: e }), y();
861
- }
862
- get clientstyling() {
863
- return this.$$.ctx[4];
864
- }
865
- set clientstyling(e) {
866
- this.$$set({ clientstyling: e }), y();
867
- }
868
- get clientstylingurl() {
869
- return this.$$.ctx[5];
870
- }
871
- set clientstylingurl(e) {
872
- this.$$set({ clientstylingurl: e }), y();
873
- }
874
- get enableautoscroll() {
875
- return this.$$.ctx[6];
876
- }
877
- set enableautoscroll(e) {
878
- this.$$set({ enableautoscroll: e }), y();
879
- }
880
- get tabsorder() {
881
- return this.$$.ctx[36];
882
- }
883
- set tabsorder(e) {
884
- this.$$set({ tabsorder: e }), y();
885
- }
886
- get translationurl() {
887
- return this.$$.ctx[37];
888
- }
889
- set translationurl(e) {
890
- this.$$set({ translationurl: e }), y();
891
- }
892
- get winnersdatasources() {
893
- return this.$$.ctx[38];
894
- }
895
- set winnersdatasources(e) {
896
- this.$$set({ winnersdatasources: e }), y();
897
- }
898
- get hascustomstyling() {
899
- return this.$$.ctx[39];
900
- }
901
- set hascustomstyling(e) {
902
- this.$$set({ hascustomstyling: e }), y();
903
- }
904
- }
905
- $e(ht, { endpoint: {}, session: {}, userid: {}, periodrecent: {}, periodtop: {}, numberusersrecent: {}, numberuserstop: {}, amountlimit: {}, vendorCategory: {}, lang: {}, isrecentavailable: {}, istopavailable: {}, defaultcurrency: {}, usercurrency: {}, clientstyling: {}, clientstylingurl: {}, enableautoscroll: {}, tabsorder: {}, translationurl: {}, winnersdatasources: {}, hascustomstyling: {} }, [], [], !0);
906
- export {
907
- ht as default
908
- };