@everymatrix/casino-lobby 1.44.0 → 1.45.2

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 (64) hide show
  1. package/components/CasinoCalendar-3HRZGpnG.js +5134 -0
  2. package/components/CasinoCalendar-9cVNHt1-.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-Dcf0TKzH.cjs +1 -0
  4. package/components/CasinoCalendarDailyDetails-MwTyCObT.js +605 -0
  5. package/components/CasinoCalendarDailyItem-B-h-76yh.js +220 -0
  6. package/components/CasinoCalendarDailyItem-Cahte_IM.cjs +1 -0
  7. package/components/CasinoCategoriesSlider-AAgG2_xb.cjs +1 -0
  8. package/components/CasinoCategoriesSlider-B3Aneyii.js +597 -0
  9. package/components/CasinoCollectionsProviders-BvEenHqO.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-D-DgSMvu.js +659 -0
  11. package/components/CasinoFavoritesSection-CxQ69OwL.cjs +1 -0
  12. package/components/CasinoFavoritesSection-DE0M_xZ_.js +418 -0
  13. package/components/CasinoFilter-BWEtfBml.js +628 -0
  14. package/components/CasinoFilter-Bdc0mE0X.cjs +1 -0
  15. package/components/CasinoGamePage-C4x_GUg3.cjs +18 -0
  16. package/components/CasinoGamePage-r1xLmvzf.js +4282 -0
  17. package/components/CasinoGameThumbnail-BG_6FsqW.cjs +38 -0
  18. package/components/CasinoGameThumbnail-wQFR0AuM.js +1822 -0
  19. package/components/CasinoGamesCategorySection-BGgw1sdg.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Cbto2aD4.js +3018 -0
  21. package/components/CasinoJackpotBanner-BftFjZpI.cjs +1 -0
  22. package/components/CasinoJackpotBanner-D1RCyJGt.js +615 -0
  23. package/components/CasinoLastPlayedSection-CAirOYgJ.js +563 -0
  24. package/components/CasinoLastPlayedSection-Dm6f8H02.cjs +1 -0
  25. package/components/CasinoLobby-Cq0Hm2md.js +2337 -0
  26. package/components/CasinoLobby-CvaYUpUV.cjs +1 -0
  27. package/components/CasinoModal-CZbdtmLm.js +372 -0
  28. package/components/CasinoModal-DqBbtAjA.cjs +1 -0
  29. package/components/CasinoMostPlayedSection-DTXKjmPl.cjs +1 -0
  30. package/components/CasinoMostPlayedSection-k3_ln2SB.js +580 -0
  31. package/components/CasinoMyGames-CVTzyBkk.cjs +1 -0
  32. package/components/CasinoMyGames-DcJpzIEq.js +1313 -0
  33. package/components/CasinoPage-BbRpHGEc.js +3514 -0
  34. package/components/CasinoPage-srXwB6ik.cjs +1 -0
  35. package/components/CasinoRandomGame-BSD5DYtt.js +641 -0
  36. package/components/CasinoRandomGame-CNdoKY0C.cjs +2 -0
  37. package/components/CasinoSearch-BsgUvsbs.js +1062 -0
  38. package/components/CasinoSearch-CMn_5Aa4.cjs +1 -0
  39. package/components/CasinoSlider-D5B-CjPM.js +803 -0
  40. package/components/CasinoSlider-kzZxK81G.cjs +1 -0
  41. package/components/CasinoSort-9pQqbHyF.cjs +1 -0
  42. package/components/CasinoSort-T6UQhFka.js +425 -0
  43. package/components/CasinoWinners-CD5HS4Gb.cjs +1 -0
  44. package/components/CasinoWinners-auSd-4D9.js +884 -0
  45. package/components/GeneralAnimationLoading-CIYgtCsE.cjs +1 -0
  46. package/components/GeneralAnimationLoading-DRiG33XR.js +75 -0
  47. package/es2015/casino-lobby.cjs +1 -0
  48. package/es2015/casino-lobby.js +16 -0
  49. package/package.json +20 -32
  50. package/CHANGELOG.md +0 -39
  51. package/README.md +0 -0
  52. package/dist/casino-lobby.js +0 -33
  53. package/dist/casino-lobby.js.map +0 -1
  54. package/documentation.md +0 -176
  55. package/index.html +0 -50
  56. package/index.js +0 -1
  57. package/public/favicon.png +0 -0
  58. package/public/reset.css +0 -48
  59. package/rollup.config.js +0 -67
  60. package/src/CasinoLobby.svelte +0 -454
  61. package/src/i18n.js +0 -25
  62. package/src/index.ts +0 -4
  63. package/stories/CasinoLobby.stories.js +0 -13
  64. package/tsconfig.json +0 -6
@@ -0,0 +1,884 @@
1
+ import { I as Ke, $ as Ze, S as Je, i as Xe, f as y, c as Ye, s as Qe, b as $e, e as W, d as I, C as ye, j as P, J as et, o as tt, l as nt, m as oe, p as te, q as R, E as ee, u as a, v as u, w as J, B as Se, R as it, M as H, F as rt, O as st, r as V, A as q, D as we } from "./CasinoCalendar-3HRZGpnG.js";
2
+ function _e(n, e) {
3
+ Ke(n, e);
4
+ }
5
+ function lt(n) {
6
+ Ze.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
+ };
100
+ if (typeof window != "undefined") {
101
+ let n = function(e) {
102
+ return function(...t) {
103
+ try {
104
+ return e.apply(this, t);
105
+ } catch (r) {
106
+ 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"))
107
+ return !1;
108
+ throw r;
109
+ }
110
+ };
111
+ };
112
+ customElements.define = n(customElements.define), import("./GeneralAnimationLoading-DRiG33XR.js").then(({ default: e }) => {
113
+ !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", e.element);
114
+ });
115
+ }
116
+ function ot(n) {
117
+ $e(n, "svelte-14orrs9", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-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(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-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(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-casino-color-primary, var(--emfe-w-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}");
118
+ }
119
+ function ve(n, e, t) {
120
+ const r = n.slice();
121
+ return r[70] = e[t], r;
122
+ }
123
+ function Ce(n, e, t) {
124
+ const r = n.slice();
125
+ return r[73] = e[t], r;
126
+ }
127
+ function at(n) {
128
+ let e, t, r, s, l, o, f, d, C, D, x, v, w, E, T, z, A, L, S, M = te(
129
+ /*tabs*/
130
+ n[17]
131
+ ), g = [];
132
+ for (let c = 0; c < M.length; c += 1)
133
+ g[c] = Fe(Ce(n, M, c));
134
+ function G(c, b) {
135
+ return (
136
+ /*isLoadingDelayed*/
137
+ c[18] ? ft : ut
138
+ );
139
+ }
140
+ let j = G(n), _ = j(n);
141
+ return {
142
+ c() {
143
+ e = W("div"), t = W("div"), r = W("div");
144
+ for (let c = 0; c < g.length; c += 1)
145
+ g[c].c();
146
+ s = R(), l = W("div"), o = W("button"), f = ee("svg"), d = ee("path"), D = R(), x = W("button"), v = ee("svg"), w = ee("path"), z = R(), _.c(), a(r, "class", "WinnerButtonsContainer"), a(d, "style", C = /*numberOfVisibleSlides*/
147
+ n[12] >= /*winners*/
148
+ 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(w, "style", E = /*numberOfVisibleSlides*/
149
+ n[12] >= /*winners*/
150
+ n[11].length ? "fill:#F6F6F62E" : ""), a(w, "id", "Path_36"), a(w, "data-name", "Path 36"), a(w, "d", "M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"), a(w, "transform", "translate(0 24.656) rotate(-90)"), a(w, "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*/
151
+ (n[6] == "true" ? "ButtonsContainerNone" : "")), a(t, "class", "WinnersHeader"), a(e, "class", A = "CasinoWinners " + /*mobile*/
152
+ (n[13] ? "Mobile" : ""));
153
+ },
154
+ m(c, b) {
155
+ I(c, e, b), u(e, t), u(t, r);
156
+ for (let m = 0; m < g.length; m += 1)
157
+ g[m] && g[m].m(r, null);
158
+ u(t, s), u(t, l), u(l, o), u(o, f), u(f, d), u(l, D), u(l, x), u(x, v), u(v, w), u(e, z), _.m(e, null), L || (S = [
159
+ J(
160
+ o,
161
+ "click",
162
+ /*click_handler_2*/
163
+ n[43]
164
+ ),
165
+ J(
166
+ x,
167
+ "click",
168
+ /*click_handler_3*/
169
+ n[44]
170
+ )
171
+ ], L = !0);
172
+ },
173
+ p(c, b) {
174
+ if (b[0] & /*winnersType, istopavailable, toggleTab, $_, tabs, isrecentavailable*/
175
+ 3277827) {
176
+ M = te(
177
+ /*tabs*/
178
+ c[17]
179
+ );
180
+ let m;
181
+ for (m = 0; m < M.length; m += 1) {
182
+ const h = Ce(c, M, m);
183
+ g[m] ? g[m].p(h, b) : (g[m] = Fe(h), g[m].c(), g[m].m(r, null));
184
+ }
185
+ for (; m < g.length; m += 1)
186
+ g[m].d(1);
187
+ g.length = M.length;
188
+ }
189
+ b[0] & /*numberOfVisibleSlides, winners*/
190
+ 6144 && C !== (C = /*numberOfVisibleSlides*/
191
+ c[12] >= /*winners*/
192
+ c[11].length ? "fill:#F6F6F62E" : "") && a(d, "style", C), b[0] & /*numberOfVisibleSlides, winners*/
193
+ 6144 && E !== (E = /*numberOfVisibleSlides*/
194
+ c[12] >= /*winners*/
195
+ c[11].length ? "fill:#F6F6F62E" : "") && a(w, "style", E), b[0] & /*enableautoscroll*/
196
+ 64 && T !== (T = "ButtonsContainer " + /*enableautoscroll*/
197
+ (c[6] == "true" ? "ButtonsContainerNone" : "")) && a(l, "class", T), j === (j = G(c)) && _ ? _.p(c, b) : (_.d(1), _ = j(c), _ && (_.c(), _.m(e, null))), b[0] & /*mobile*/
198
+ 8192 && A !== (A = "CasinoWinners " + /*mobile*/
199
+ (c[13] ? "Mobile" : "")) && a(e, "class", A);
200
+ },
201
+ d(c) {
202
+ c && P(e), Se(g, c), _.d(), L = !1, it(S);
203
+ }
204
+ };
205
+ }
206
+ function ct(n) {
207
+ let e;
208
+ return {
209
+ c() {
210
+ e = W("general-animation-loading"), H(
211
+ e,
212
+ "clientstyling",
213
+ /*clientstyling*/
214
+ n[4]
215
+ ), H(
216
+ e,
217
+ "clientstylingurl",
218
+ /*clientstylingurl*/
219
+ n[5]
220
+ );
221
+ },
222
+ m(t, r) {
223
+ I(t, e, r);
224
+ },
225
+ p(t, r) {
226
+ r[0] & /*clientstyling*/
227
+ 16 && H(
228
+ e,
229
+ "clientstyling",
230
+ /*clientstyling*/
231
+ t[4]
232
+ ), r[0] & /*clientstylingurl*/
233
+ 32 && H(
234
+ e,
235
+ "clientstylingurl",
236
+ /*clientstylingurl*/
237
+ t[5]
238
+ );
239
+ },
240
+ d(t) {
241
+ t && P(e);
242
+ }
243
+ };
244
+ }
245
+ function ke(n) {
246
+ let e, t = (
247
+ /*$_*/
248
+ n[20]("recentWinners") + ""
249
+ ), r, s, l, o;
250
+ return {
251
+ c() {
252
+ e = W("button"), r = V(t), a(e, "class", s = "WinnersButton " + /*winnersType*/
253
+ (n[10] == "recent" ? "Active" : "") + " " + /*isrecentavailable*/
254
+ (n[0] == "false" ? "Off" : ""));
255
+ },
256
+ m(f, d) {
257
+ I(f, e, d), u(e, r), l || (o = J(
258
+ e,
259
+ "click",
260
+ /*click_handler*/
261
+ n[41]
262
+ ), l = !0);
263
+ },
264
+ p(f, d) {
265
+ d[0] & /*$_*/
266
+ 1048576 && t !== (t = /*$_*/
267
+ f[20]("recentWinners") + "") && q(r, t), d[0] & /*winnersType, isrecentavailable*/
268
+ 1025 && s !== (s = "WinnersButton " + /*winnersType*/
269
+ (f[10] == "recent" ? "Active" : "") + " " + /*isrecentavailable*/
270
+ (f[0] == "false" ? "Off" : "")) && a(e, "class", s);
271
+ },
272
+ d(f) {
273
+ f && P(e), l = !1, o();
274
+ }
275
+ };
276
+ }
277
+ function Me(n) {
278
+ let e, t = (
279
+ /*$_*/
280
+ n[20]("topWinners") + ""
281
+ ), r, s, l, o, f;
282
+ return {
283
+ c() {
284
+ e = W("button"), r = V(t), s = R(), a(e, "class", l = "WinnersButton " + /*winnersType*/
285
+ (n[10] == "top" ? "Active" : "") + " " + /*istopavailable*/
286
+ (n[1] == "false" ? "Off" : ""));
287
+ },
288
+ m(d, C) {
289
+ I(d, e, C), u(e, r), u(e, s), o || (f = J(
290
+ e,
291
+ "click",
292
+ /*click_handler_1*/
293
+ n[42]
294
+ ), o = !0);
295
+ },
296
+ p(d, C) {
297
+ C[0] & /*$_*/
298
+ 1048576 && t !== (t = /*$_*/
299
+ d[20]("topWinners") + "") && q(r, t), C[0] & /*winnersType, istopavailable*/
300
+ 1026 && l !== (l = "WinnersButton " + /*winnersType*/
301
+ (d[10] == "top" ? "Active" : "") + " " + /*istopavailable*/
302
+ (d[1] == "false" ? "Off" : "")) && a(e, "class", l);
303
+ },
304
+ d(d) {
305
+ d && P(e), o = !1, f();
306
+ }
307
+ };
308
+ }
309
+ function Fe(n) {
310
+ let e, t, r = (
311
+ /*tab*/
312
+ n[73] == "recent" && ke(n)
313
+ ), s = (
314
+ /*tab*/
315
+ n[73] == "top" && Me(n)
316
+ );
317
+ return {
318
+ c() {
319
+ r && r.c(), e = R(), s && s.c(), t = rt();
320
+ },
321
+ m(l, o) {
322
+ r && r.m(l, o), I(l, e, o), s && s.m(l, o), I(l, t, o);
323
+ },
324
+ p(l, o) {
325
+ /*tab*/
326
+ 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*/
327
+ l[73] == "top" ? s ? s.p(l, o) : (s = Me(l), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
328
+ },
329
+ d(l) {
330
+ l && (P(e), P(t)), r && r.d(l), s && s.d(l);
331
+ }
332
+ };
333
+ }
334
+ function ut(n) {
335
+ let e, t = te(
336
+ /*winners*/
337
+ n[11]
338
+ ), r = [];
339
+ for (let s = 0; s < t.length; s += 1)
340
+ r[s] = xe(ve(n, t, s));
341
+ return {
342
+ c() {
343
+ e = W("div");
344
+ for (let s = 0; s < r.length; s += 1)
345
+ r[s].c();
346
+ a(e, "class", "WinnersSlider");
347
+ },
348
+ m(s, l) {
349
+ I(s, e, l);
350
+ for (let o = 0; o < r.length; o += 1)
351
+ r[o] && r[o].m(e, null);
352
+ n[47](e);
353
+ },
354
+ p(s, l) {
355
+ if (l[0] & /*addAnimation, winnersGameCard, isLoggedIn, usercurrency, defaultcurrency, winners, $_, maskUsername, openWinnersGame*/
356
+ 14223500) {
357
+ t = te(
358
+ /*winners*/
359
+ s[11]
360
+ );
361
+ let o;
362
+ for (o = 0; o < t.length; o += 1) {
363
+ const f = ve(s, t, o);
364
+ r[o] ? r[o].p(f, l) : (r[o] = xe(f), r[o].c(), r[o].m(e, null));
365
+ }
366
+ for (; o < r.length; o += 1)
367
+ r[o].d(1);
368
+ r.length = t.length;
369
+ }
370
+ },
371
+ d(s) {
372
+ s && P(e), Se(r, s), n[47](null);
373
+ }
374
+ };
375
+ }
376
+ function ft(n) {
377
+ let e;
378
+ return {
379
+ c() {
380
+ e = W("general-animation-loading"), H(
381
+ e,
382
+ "clientstyling",
383
+ /*clientstyling*/
384
+ n[4]
385
+ ), H(
386
+ e,
387
+ "clientstylingurl",
388
+ /*clientstylingurl*/
389
+ n[5]
390
+ );
391
+ },
392
+ m(t, r) {
393
+ I(t, e, r);
394
+ },
395
+ p(t, r) {
396
+ r[0] & /*clientstyling*/
397
+ 16 && H(
398
+ e,
399
+ "clientstyling",
400
+ /*clientstyling*/
401
+ t[4]
402
+ ), r[0] & /*clientstylingurl*/
403
+ 32 && H(
404
+ e,
405
+ "clientstylingurl",
406
+ /*clientstylingurl*/
407
+ t[5]
408
+ );
409
+ },
410
+ d(t) {
411
+ t && P(e);
412
+ }
413
+ };
414
+ }
415
+ function xe(n) {
416
+ let e, t, r, s, l, o, f, d = (
417
+ /*winner*/
418
+ n[70].gameName + ""
419
+ ), C, D, x, v = (
420
+ /*maskUsername*/
421
+ n[22](
422
+ /*winner*/
423
+ n[70].username
424
+ ) + ""
425
+ ), w, E, T, z = (
426
+ /*$_*/
427
+ n[20]("won") + ""
428
+ ), A, L, S, M = (
429
+ /*winner*/
430
+ n[70].specifiedCurrencyAmount.toFixed(2) + ""
431
+ ), g, G, j, _ = (
432
+ /*isLoggedIn*/
433
+ (n[7] ? (
434
+ /*usercurrency*/
435
+ n[3]
436
+ ) : (
437
+ /*defaultcurrency*/
438
+ n[2]
439
+ )) + ""
440
+ ), c, b, m, h, F;
441
+ function ne() {
442
+ return (
443
+ /*click_handler_4*/
444
+ n[45](
445
+ /*winner*/
446
+ n[70]
447
+ )
448
+ );
449
+ }
450
+ return {
451
+ c() {
452
+ var N, k, U, B;
453
+ e = W("div"), t = W("div"), r = W("img"), o = R(), f = W("p"), C = V(d), D = R(), x = W("p"), w = V(v), E = R(), T = W("p"), A = V(z), L = R(), S = W("p"), g = V(M), G = R(), j = W("span"), c = V(_), b = R(), we(r.src, s = /*winner*/
454
+ (k = (N = n[70]) == null ? void 0 : N.gameModel) == null ? void 0 : k.thumbnail) || a(r, "src", s), a(r, "alt", l = /*winner*/
455
+ (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*/
456
+ (n[16] ? "CardWrapperAnimation" : ""));
457
+ },
458
+ m(N, k) {
459
+ I(N, e, k), u(e, t), u(t, r), u(t, o), u(t, f), u(f, C), u(t, D), u(t, x), u(x, w), u(t, E), u(t, T), u(T, A), u(t, L), u(t, S), u(S, g), u(S, G), u(S, j), u(j, c), u(e, b), n[46](e), h || (F = J(r, "click", ne), h = !0);
460
+ },
461
+ p(N, k) {
462
+ var U, B, K, Z;
463
+ n = N, k[0] & /*winners*/
464
+ 2048 && !we(r.src, s = /*winner*/
465
+ (B = (U = n[70]) == null ? void 0 : U.gameModel) == null ? void 0 : B.thumbnail) && a(r, "src", s), k[0] & /*winners*/
466
+ 2048 && l !== (l = /*winner*/
467
+ (Z = (K = n[70]) == null ? void 0 : K.gameModel) == null ? void 0 : Z.thumbnail) && a(r, "alt", l), k[0] & /*winners*/
468
+ 2048 && d !== (d = /*winner*/
469
+ n[70].gameName + "") && q(C, d), k[0] & /*winners*/
470
+ 2048 && v !== (v = /*maskUsername*/
471
+ n[22](
472
+ /*winner*/
473
+ n[70].username
474
+ ) + "") && q(w, v), k[0] & /*$_*/
475
+ 1048576 && z !== (z = /*$_*/
476
+ n[20]("won") + "") && q(A, z), k[0] & /*winners*/
477
+ 2048 && M !== (M = /*winner*/
478
+ n[70].specifiedCurrencyAmount.toFixed(2) + "") && q(g, M), k[0] & /*isLoggedIn, usercurrency, defaultcurrency*/
479
+ 140 && _ !== (_ = /*isLoggedIn*/
480
+ (n[7] ? (
481
+ /*usercurrency*/
482
+ n[3]
483
+ ) : (
484
+ /*defaultcurrency*/
485
+ n[2]
486
+ )) + "") && q(c, _), k[0] & /*addAnimation*/
487
+ 65536 && m !== (m = "CardWrapper " + /*addAnimation*/
488
+ (n[16] ? "CardWrapperAnimation" : "")) && a(e, "class", m);
489
+ },
490
+ d(N) {
491
+ N && P(e), n[46](null), h = !1, F();
492
+ }
493
+ };
494
+ }
495
+ function dt(n) {
496
+ let e;
497
+ function t(l, o) {
498
+ return (
499
+ /*isLoading*/
500
+ l[14] || /*isLoadingCustomStyling*/
501
+ l[15] ? ct : at
502
+ );
503
+ }
504
+ let r = t(n), s = r(n);
505
+ return {
506
+ c() {
507
+ e = W("div"), s.c();
508
+ },
509
+ m(l, o) {
510
+ I(l, e, o), s.m(e, null), n[48](e);
511
+ },
512
+ p(l, o) {
513
+ r === (r = t(l)) && s ? s.p(l, o) : (s.d(1), s = r(l), s && (s.c(), s.m(e, null)));
514
+ },
515
+ i: ye,
516
+ o: ye,
517
+ d(l) {
518
+ l && P(e), s.d(), n[48](null);
519
+ }
520
+ };
521
+ }
522
+ function mt(n, e, t) {
523
+ let r;
524
+ et(n, st, (i) => t(20, r = i));
525
+ let { endpoint: s = "" } = e, { session: l = "" } = e, { userid: o = "" } = e, { periodrecent: f = "Today" } = e, { periodtop: d = "Last7Days" } = e, { numberusersrecent: C = "20" } = e, { numberuserstop: D = "20" } = e, { amountlimit: x = "1" } = e, { vendorCategory: v = "All" } = e, { lang: w = "en" } = e, { isrecentavailable: E = "true" } = e, { istopavailable: T = "true" } = e, { defaultcurrency: z = "" } = e, { usercurrency: A = "" } = e, { clientstyling: L = "" } = e, { clientstylingurl: S = "" } = e, { enableautoscroll: M = "" } = e, { tabsorder: g = "" } = e, { translationurl: G = "" } = e, { winnersdatasources: j = "" } = e, { hascustomstyling: _ = "false" } = e, c, b, m = [], h = 0, F = 0, ne = window.navigator.userAgent, N, k, U, B, K = !0, Z = !1, ae = !1, ce, X, ie, Y, ue = [], re = !1, Q, fe = 0;
526
+ const Be = () => {
527
+ let i = new URL(G);
528
+ fetch(i.href).then((p) => p.json()).then((p) => {
529
+ Object.keys(p).forEach((O) => {
530
+ _e(O, p[O]);
531
+ });
532
+ }).catch((p) => {
533
+ console.log(p);
534
+ });
535
+ };
536
+ Object.keys(We).forEach((i) => {
537
+ _e(i, We[i]);
538
+ });
539
+ const de = () => {
540
+ ue = j.split(",").map(function(p) {
541
+ return p.trim();
542
+ });
543
+ const i = new URL(`${s}/v1/casino/${b}-winners`);
544
+ t(18, re = !0), i.searchParams.append("limit", b == "recent" ? C : D), i.searchParams.append("specifiedCurrency", Y), i.searchParams.append("period", b == "recent" ? f : d), i.searchParams.append("language", w), i.searchParams.append("amountLimit", x), i.searchParams.append("vendorCategory", v), ue.forEach((p) => {
545
+ i.searchParams.append("dataSource", p);
546
+ }), setTimeout(
547
+ () => {
548
+ fetch(i.href).then((p) => p.json()).then((p) => {
549
+ t(11, m = []), t(11, m = p.items.map((O) => O)), t(18, re = !1), setTimeout(
550
+ () => {
551
+ Le(), ge(), M == "true" && (clearInterval(X), Ae()), t(14, K = !1);
552
+ },
553
+ 5
554
+ );
555
+ });
556
+ },
557
+ 1e3
558
+ );
559
+ }, se = (i) => {
560
+ b !== i && (t(11, m = []), t(10, b = i), de());
561
+ }, Te = (i) => i.slice(0, 2) + i.slice(2, -2).replace(/./g, "*") + i.slice(-2), me = (i, p, O, $) => {
562
+ window.postMessage(
563
+ {
564
+ type: "OpenCasinoWinnersGame",
565
+ gameId: i,
566
+ launchUrl: p,
567
+ gameName: O,
568
+ subVendor: $
569
+ },
570
+ window.location.href
571
+ ), typeof gtag == "function" && gtag("event", "OpenGame", {
572
+ context: "WinnersWidget",
573
+ gameId: `${i}`,
574
+ userId: `${U || "Not logged in"}`
575
+ });
576
+ }, ge = (i) => {
577
+ const p = [...c.children];
578
+ ce = p.length, p.forEach((O, $) => {
579
+ O.style.transform = `translateX(${100 * (i ? $ - i : $)}%)`;
580
+ }), setTimeout(
581
+ () => {
582
+ t(16, ae = !0);
583
+ },
584
+ 10
585
+ );
586
+ }, Ae = () => {
587
+ h = 0, F < ce ? X = setInterval(
588
+ () => {
589
+ le();
590
+ },
591
+ 3e3
592
+ ) : clearInterval(X);
593
+ }, he = () => {
594
+ ge(h);
595
+ }, Le = () => {
596
+ fe = Q.offsetWidth, t(12, F = Math.round(c.offsetWidth / fe));
597
+ }, pe = () => {
598
+ if (F >= m.length) return;
599
+ const i = m.length;
600
+ h === 0 ? h = i - F : h - F < 0 ? h = 0 : h = h - F, he();
601
+ }, le = () => {
602
+ if (F >= m.length) return;
603
+ const i = m.length;
604
+ 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();
605
+ }, je = () => {
606
+ lt(w);
607
+ }, Ee = () => {
608
+ t(7, k = !0), U = o;
609
+ }, be = () => {
610
+ t(40, Y = k ? A : z);
611
+ }, ze = () => {
612
+ let i = document.createElement("style");
613
+ i.innerHTML = L, B.appendChild(i);
614
+ }, Oe = () => {
615
+ let i = new URL(S), p = document.createElement("style");
616
+ fetch(i.href).then((O) => O.text()).then((O) => {
617
+ p.innerHTML = O, setTimeout(
618
+ () => {
619
+ B.appendChild(p);
620
+ },
621
+ 1
622
+ ), setTimeout(
623
+ () => {
624
+ },
625
+ 500
626
+ ), t(15, Z = !1);
627
+ });
628
+ }, Ne = () => {
629
+ _ === "true" && (!L && !S && B && console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"), !L && S && t(15, Z = !0));
630
+ }, Re = () => {
631
+ t(17, ie = g.split(",")), t(10, b = ie[0]), E == "false" && t(26, x = ""), be(), t(14, K = !1);
632
+ };
633
+ tt(() => (t(13, N = nt(ne)), () => {
634
+ clearInterval(X);
635
+ }));
636
+ const De = () => se("recent"), Ge = () => se("top"), Ie = () => pe(), Pe = () => le(), Ue = (i) => me(i.gameId, i.gameModel.launchUrl, i.gameModel.name, i.gameModel.subVendor);
637
+ function He(i) {
638
+ oe[i ? "unshift" : "push"](() => {
639
+ Q = i, t(19, Q);
640
+ });
641
+ }
642
+ function Ve(i) {
643
+ oe[i ? "unshift" : "push"](() => {
644
+ c = i, t(9, c);
645
+ });
646
+ }
647
+ function qe(i) {
648
+ oe[i ? "unshift" : "push"](() => {
649
+ B = i, t(8, B);
650
+ });
651
+ }
652
+ return n.$$set = (i) => {
653
+ "endpoint" in i && t(27, s = i.endpoint), "session" in i && t(28, l = i.session), "userid" in i && t(29, o = i.userid), "periodrecent" in i && t(30, f = i.periodrecent), "periodtop" in i && t(31, d = i.periodtop), "numberusersrecent" in i && t(32, C = i.numberusersrecent), "numberuserstop" in i && t(33, D = i.numberuserstop), "amountlimit" in i && t(26, x = i.amountlimit), "vendorCategory" in i && t(34, v = i.vendorCategory), "lang" in i && t(35, w = i.lang), "isrecentavailable" in i && t(0, E = i.isrecentavailable), "istopavailable" in i && t(1, T = i.istopavailable), "defaultcurrency" in i && t(2, z = i.defaultcurrency), "usercurrency" in i && t(3, A = i.usercurrency), "clientstyling" in i && t(4, L = 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, G = i.translationurl), "winnersdatasources" in i && t(38, j = i.winnersdatasources), "hascustomstyling" in i && t(39, _ = i.hascustomstyling);
654
+ }, n.$$.update = () => {
655
+ n.$$.dirty[0] & /*isrecentavailable, istopavailable, periodrecent, amountlimit*/
656
+ 1140850691 | n.$$.dirty[1] & /*periodtop, numberusersrecent, numberuserstop, vendorCategory, lang, tabsorder*/
657
+ 63 && E && T && f && d && C && D && x && v && w && g && Re(), n.$$.dirty[0] & /*session*/
658
+ 268435456 && l && Ee(), n.$$.dirty[0] & /*isLoggedIn, usercurrency, defaultcurrency*/
659
+ 140 && k && (A || z) && be(), n.$$.dirty[0] & /*endpoint*/
660
+ 134217728 | n.$$.dirty[1] & /*winnersdatasources, currency*/
661
+ 640 && s && j && Y && de(), n.$$.dirty[1] & /*lang*/
662
+ 16 && w && je(), n.$$.dirty[1] & /*translationurl*/
663
+ 64 && G && Be(), n.$$.dirty[1] & /*hascustomstyling*/
664
+ 256 && _ && Ne(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
665
+ 272 && L && B && ze(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
666
+ 288 && S && B && Oe();
667
+ }, [
668
+ E,
669
+ T,
670
+ z,
671
+ A,
672
+ L,
673
+ S,
674
+ M,
675
+ k,
676
+ B,
677
+ c,
678
+ b,
679
+ m,
680
+ F,
681
+ N,
682
+ K,
683
+ Z,
684
+ ae,
685
+ ie,
686
+ re,
687
+ Q,
688
+ r,
689
+ se,
690
+ Te,
691
+ me,
692
+ pe,
693
+ le,
694
+ x,
695
+ s,
696
+ l,
697
+ o,
698
+ f,
699
+ d,
700
+ C,
701
+ D,
702
+ v,
703
+ w,
704
+ g,
705
+ G,
706
+ j,
707
+ _,
708
+ Y,
709
+ De,
710
+ Ge,
711
+ Ie,
712
+ Pe,
713
+ Ue,
714
+ He,
715
+ Ve,
716
+ qe
717
+ ];
718
+ }
719
+ class gt extends Je {
720
+ constructor(e) {
721
+ super(), Xe(
722
+ this,
723
+ e,
724
+ mt,
725
+ dt,
726
+ Qe,
727
+ {
728
+ endpoint: 27,
729
+ session: 28,
730
+ userid: 29,
731
+ periodrecent: 30,
732
+ periodtop: 31,
733
+ numberusersrecent: 32,
734
+ numberuserstop: 33,
735
+ amountlimit: 26,
736
+ vendorCategory: 34,
737
+ lang: 35,
738
+ isrecentavailable: 0,
739
+ istopavailable: 1,
740
+ defaultcurrency: 2,
741
+ usercurrency: 3,
742
+ clientstyling: 4,
743
+ clientstylingurl: 5,
744
+ enableautoscroll: 6,
745
+ tabsorder: 36,
746
+ translationurl: 37,
747
+ winnersdatasources: 38,
748
+ hascustomstyling: 39
749
+ },
750
+ ot,
751
+ [-1, -1, -1]
752
+ );
753
+ }
754
+ get endpoint() {
755
+ return this.$$.ctx[27];
756
+ }
757
+ set endpoint(e) {
758
+ this.$$set({ endpoint: e }), y();
759
+ }
760
+ get session() {
761
+ return this.$$.ctx[28];
762
+ }
763
+ set session(e) {
764
+ this.$$set({ session: e }), y();
765
+ }
766
+ get userid() {
767
+ return this.$$.ctx[29];
768
+ }
769
+ set userid(e) {
770
+ this.$$set({ userid: e }), y();
771
+ }
772
+ get periodrecent() {
773
+ return this.$$.ctx[30];
774
+ }
775
+ set periodrecent(e) {
776
+ this.$$set({ periodrecent: e }), y();
777
+ }
778
+ get periodtop() {
779
+ return this.$$.ctx[31];
780
+ }
781
+ set periodtop(e) {
782
+ this.$$set({ periodtop: e }), y();
783
+ }
784
+ get numberusersrecent() {
785
+ return this.$$.ctx[32];
786
+ }
787
+ set numberusersrecent(e) {
788
+ this.$$set({ numberusersrecent: e }), y();
789
+ }
790
+ get numberuserstop() {
791
+ return this.$$.ctx[33];
792
+ }
793
+ set numberuserstop(e) {
794
+ this.$$set({ numberuserstop: e }), y();
795
+ }
796
+ get amountlimit() {
797
+ return this.$$.ctx[26];
798
+ }
799
+ set amountlimit(e) {
800
+ this.$$set({ amountlimit: e }), y();
801
+ }
802
+ get vendorCategory() {
803
+ return this.$$.ctx[34];
804
+ }
805
+ set vendorCategory(e) {
806
+ this.$$set({ vendorCategory: e }), y();
807
+ }
808
+ get lang() {
809
+ return this.$$.ctx[35];
810
+ }
811
+ set lang(e) {
812
+ this.$$set({ lang: e }), y();
813
+ }
814
+ get isrecentavailable() {
815
+ return this.$$.ctx[0];
816
+ }
817
+ set isrecentavailable(e) {
818
+ this.$$set({ isrecentavailable: e }), y();
819
+ }
820
+ get istopavailable() {
821
+ return this.$$.ctx[1];
822
+ }
823
+ set istopavailable(e) {
824
+ this.$$set({ istopavailable: e }), y();
825
+ }
826
+ get defaultcurrency() {
827
+ return this.$$.ctx[2];
828
+ }
829
+ set defaultcurrency(e) {
830
+ this.$$set({ defaultcurrency: e }), y();
831
+ }
832
+ get usercurrency() {
833
+ return this.$$.ctx[3];
834
+ }
835
+ set usercurrency(e) {
836
+ this.$$set({ usercurrency: e }), y();
837
+ }
838
+ get clientstyling() {
839
+ return this.$$.ctx[4];
840
+ }
841
+ set clientstyling(e) {
842
+ this.$$set({ clientstyling: e }), y();
843
+ }
844
+ get clientstylingurl() {
845
+ return this.$$.ctx[5];
846
+ }
847
+ set clientstylingurl(e) {
848
+ this.$$set({ clientstylingurl: e }), y();
849
+ }
850
+ get enableautoscroll() {
851
+ return this.$$.ctx[6];
852
+ }
853
+ set enableautoscroll(e) {
854
+ this.$$set({ enableautoscroll: e }), y();
855
+ }
856
+ get tabsorder() {
857
+ return this.$$.ctx[36];
858
+ }
859
+ set tabsorder(e) {
860
+ this.$$set({ tabsorder: e }), y();
861
+ }
862
+ get translationurl() {
863
+ return this.$$.ctx[37];
864
+ }
865
+ set translationurl(e) {
866
+ this.$$set({ translationurl: e }), y();
867
+ }
868
+ get winnersdatasources() {
869
+ return this.$$.ctx[38];
870
+ }
871
+ set winnersdatasources(e) {
872
+ this.$$set({ winnersdatasources: e }), y();
873
+ }
874
+ get hascustomstyling() {
875
+ return this.$$.ctx[39];
876
+ }
877
+ set hascustomstyling(e) {
878
+ this.$$set({ hascustomstyling: e }), y();
879
+ }
880
+ }
881
+ Ye(gt, { endpoint: {}, session: {}, userid: {}, periodrecent: {}, periodtop: {}, numberusersrecent: {}, numberuserstop: {}, amountlimit: {}, vendorCategory: {}, lang: {}, isrecentavailable: {}, istopavailable: {}, defaultcurrency: {}, usercurrency: {}, clientstyling: {}, clientstylingurl: {}, enableautoscroll: {}, tabsorder: {}, translationurl: {}, winnersdatasources: {}, hascustomstyling: {} }, [], [], !0);
882
+ export {
883
+ gt as default
884
+ };