@everymatrix/casino-tournaments-controller 1.67.0 → 1.68.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.
Files changed (40) hide show
  1. package/components/CasinoTournamentsController-C99E3MCm.cjs +27 -0
  2. package/components/{CasinoTournamentsController-BULZ_y4b.js → CasinoTournamentsController-CtQ0SbZ1.js} +974 -934
  3. package/components/{CasinoTournamentsController-2bTwgvFF.js → CasinoTournamentsController-Dv0w6uxv.js} +1042 -1002
  4. package/components/CasinoTournamentsFilterController-CA_x2Klb.js +531 -0
  5. package/components/CasinoTournamentsFilterController-D8z30hIO.cjs +1 -0
  6. package/components/{CasinoTournamentsFilterController-CoqpuR3P.js → CasinoTournamentsFilterController-ZPodzMjS.js} +164 -169
  7. package/components/{CasinoTournamentsListController-DuHpRjLq.js → CasinoTournamentsListController-BYjVebPq.js} +960 -958
  8. package/components/CasinoTournamentsListController-CMsPWeSH.cjs +13 -0
  9. package/components/{CasinoTournamentsListController-DT6zQNpY.js → CasinoTournamentsListController-CWtG_Kjm.js} +960 -958
  10. package/components/{CasinoTournamentsThumbnail-lBi843NX.js → CasinoTournamentsThumbnail-DIFGhQrc.js} +185 -193
  11. package/components/{CasinoTournamentsThumbnail-CueG5cos.js → CasinoTournamentsThumbnail-Dtfyse7r.js} +185 -193
  12. package/components/{CasinoTournamentsThumbnail-BWfbNcYT.cjs → CasinoTournamentsThumbnail-zXFGDGG1.cjs} +2 -2
  13. package/components/CasinoTournamentsThumbnailController-Cjehrx7D.cjs +1 -0
  14. package/components/{CasinoTournamentsThumbnailController-eBnrMpwv.js → CasinoTournamentsThumbnailController-DChZllZ4.js} +470 -434
  15. package/components/{CasinoTournamentsThumbnailController-CBp3ylH6.js → CasinoTournamentsThumbnailController-cPtKiglf.js} +397 -361
  16. package/components/{CasinoTournamentsThumbnailDuration-B87YJ1nA.js → CasinoTournamentsThumbnailDuration-CRqfmGfU.js} +156 -162
  17. package/components/{CasinoTournamentsThumbnailDuration-CEChJpk4.js → CasinoTournamentsThumbnailDuration-DFTngt18.js} +154 -160
  18. package/components/CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js +434 -0
  20. package/components/CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs +1 -0
  21. package/components/CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js +434 -0
  22. package/components/CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js +307 -0
  23. package/components/CasinoTournamentsThumbnailPrizes-C1nsvr3R.js +307 -0
  24. package/components/CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs +1 -0
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/components/CasinoTournamentsController-CYyTUNIz.cjs +0 -27
  30. package/components/CasinoTournamentsFilterController-DXDkdo0S.js +0 -536
  31. package/components/CasinoTournamentsFilterController-DjLEXDTC.cjs +0 -1
  32. package/components/CasinoTournamentsListController-DWgmnfOc.cjs +0 -13
  33. package/components/CasinoTournamentsThumbnailController-CE8cLaj5.cjs +0 -1
  34. package/components/CasinoTournamentsThumbnailDuration-DYI4yj5n.cjs +0 -1
  35. package/components/CasinoTournamentsThumbnailGamesSlider-DODIM4Fk.js +0 -442
  36. package/components/CasinoTournamentsThumbnailGamesSlider-DWAgOpLA.cjs +0 -1
  37. package/components/CasinoTournamentsThumbnailGamesSlider-LtmE1Ho2.js +0 -442
  38. package/components/CasinoTournamentsThumbnailPrizes-BpQPVoHy.cjs +0 -1
  39. package/components/CasinoTournamentsThumbnailPrizes-CWqeOB0q.js +0 -315
  40. package/components/CasinoTournamentsThumbnailPrizes-DBsFGpAH.js +0 -315
@@ -0,0 +1,531 @@
1
+ import { a as W, S as X, i as Y, s as x, f as S, b as $, n as I, d as k, c as A, e as z, g as f, h as _, j as ee, o as le, k as L, l as te, m as B, p as y, t as E, q as N, r as ie, u as ne, v as P, w as se, x as oe, y as re, z as ae, $ as ue } from "./CasinoTournamentsController-Dv0w6uxv.js";
2
+ function U(e, l) {
3
+ W(e, l);
4
+ }
5
+ const q = {
6
+ en: {
7
+ tournaments: "Tournaments",
8
+ all: "All",
9
+ scheduled: "Scheduled",
10
+ ongoing: "Ongoing",
11
+ finished: "Finished"
12
+ },
13
+ hr: {
14
+ tournaments: "Turniri",
15
+ all: "Svi",
16
+ scheduled: "Planirani",
17
+ ongoing: "U tijeku",
18
+ finished: "Završeni"
19
+ },
20
+ "zh-hk": {
21
+ tournaments: "錦標賽",
22
+ all: "全部",
23
+ scheduled: "預定的",
24
+ ongoing: "進行中",
25
+ finished: "完成的"
26
+ },
27
+ fr: {
28
+ tournaments: "Tournois",
29
+ all: "Tous",
30
+ scheduled: "Programmé",
31
+ ongoing: "En cours",
32
+ finished: "Fini"
33
+ },
34
+ ro: {
35
+ tournaments: "Turnee",
36
+ all: "Toate",
37
+ scheduled: "Programate",
38
+ ongoing: "În curs",
39
+ finished: "Finalizat"
40
+ },
41
+ tr: {
42
+ tournaments: "Turnuvalar",
43
+ all: "Hepsi",
44
+ scheduled: "Planlanmış",
45
+ ongoing: "Devam ediyor",
46
+ finished: "Tamamlanmış"
47
+ },
48
+ el: {
49
+ tournaments: "Τουρνουά",
50
+ all: "Όλα",
51
+ scheduled: "Προγραμματισμένα",
52
+ ongoing: "Τρέχοντα",
53
+ finished: "Ολοκληρωμένα"
54
+ },
55
+ es: {
56
+ tournaments: "Torneos",
57
+ all: "Todos",
58
+ scheduled: "Programado",
59
+ ongoing: "En vivo",
60
+ finished: "Finalizado"
61
+ },
62
+ hu: {
63
+ tournaments: "Versenyek",
64
+ all: "Mind",
65
+ scheduled: "Ütemezés",
66
+ ongoing: "Folyamatban",
67
+ finished: "Befejezett"
68
+ },
69
+ pt: {
70
+ tournaments: "Torneios",
71
+ all: "Tudo",
72
+ scheduled: "Agendado",
73
+ ongoing: "Em progresso",
74
+ finished: "Finalizado"
75
+ },
76
+ "en-us": {
77
+ tournaments: "Tournaments",
78
+ all: "All",
79
+ scheduled: "Scheduled",
80
+ ongoing: "Ongoing",
81
+ finished: "Finished"
82
+ }
83
+ };
84
+ function fe(e) {
85
+ $(e, "svelte-szp116", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emw--color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emw--color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);cursor:pointer}.FiltersController{color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}");
86
+ }
87
+ function R(e, l, t) {
88
+ const i = e.slice();
89
+ return i[21] = l[t], i[23] = t, i;
90
+ }
91
+ function D(e) {
92
+ let l, t, i = (
93
+ /*$_*/
94
+ e[4]("tournaments") + ""
95
+ ), n, F, C, b = L(
96
+ /*filterItems*/
97
+ e[1]
98
+ ), u = [];
99
+ for (let o = 0; o < b.length; o += 1)
100
+ u[o] = K(R(e, b, o));
101
+ return {
102
+ c() {
103
+ l = z("ul"), t = z("li"), n = E(i), F = E(":"), C = N();
104
+ for (let o = 0; o < u.length; o += 1)
105
+ u[o].c();
106
+ f(t, "class", "FiltersTitle " + (_(
107
+ /*userAgent*/
108
+ e[5]
109
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(t, "part", "FiltersTitle " + (_(
110
+ /*userAgent*/
111
+ e[5]
112
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "class", "FiltersList " + (_(
113
+ /*userAgent*/
114
+ e[5]
115
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "part", "FiltersList " + (_(
116
+ /*userAgent*/
117
+ e[5]
118
+ ) ? "MobileClass" : "Non-MobileClass/empty"));
119
+ },
120
+ m(o, d) {
121
+ A(o, l, d), y(l, t), y(t, n), y(t, F), y(l, C);
122
+ for (let s = 0; s < u.length; s += 1)
123
+ u[s] && u[s].m(l, null);
124
+ },
125
+ p(o, d) {
126
+ if (d & /*$_*/
127
+ 16 && i !== (i = /*$_*/
128
+ o[4]("tournaments") + "") && B(n, i), d & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
129
+ 126) {
130
+ b = L(
131
+ /*filterItems*/
132
+ o[1]
133
+ );
134
+ let s;
135
+ for (s = 0; s < b.length; s += 1) {
136
+ const v = R(o, b, s);
137
+ u[s] ? u[s].p(v, d) : (u[s] = K(v), u[s].c(), u[s].m(l, null));
138
+ }
139
+ for (; s < u.length; s += 1)
140
+ u[s].d(1);
141
+ u.length = b.length;
142
+ }
143
+ },
144
+ d(o) {
145
+ o && k(l), te(u, o);
146
+ }
147
+ };
148
+ }
149
+ function H(e) {
150
+ let l, t;
151
+ return {
152
+ c() {
153
+ l = P("svg"), t = P("path"), f(t, "d", "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"), f(l, "xmlns", "http://www.w3.org/2000/svg"), f(l, "width", "16"), f(l, "height", "16"), f(l, "fill", "currentColor"), f(l, "class", "bi bi-check"), f(l, "part", "bi bi-check"), f(l, "viewBox", "0 0 16 16");
154
+ },
155
+ m(i, n) {
156
+ A(i, l, n), y(l, t);
157
+ },
158
+ d(i) {
159
+ i && k(l);
160
+ }
161
+ };
162
+ }
163
+ function V(e) {
164
+ let l = (
165
+ /*$_*/
166
+ e[4]("scheduled") + ""
167
+ ), t;
168
+ return {
169
+ c() {
170
+ t = E(l);
171
+ },
172
+ m(i, n) {
173
+ A(i, t, n);
174
+ },
175
+ p(i, n) {
176
+ n & /*$_*/
177
+ 16 && l !== (l = /*$_*/
178
+ i[4]("scheduled") + "") && B(t, l);
179
+ },
180
+ d(i) {
181
+ i && k(t);
182
+ }
183
+ };
184
+ }
185
+ function Z(e) {
186
+ let l = (
187
+ /*$_*/
188
+ e[4]("ongoing") + ""
189
+ ), t;
190
+ return {
191
+ c() {
192
+ t = E(l);
193
+ },
194
+ m(i, n) {
195
+ A(i, t, n);
196
+ },
197
+ p(i, n) {
198
+ n & /*$_*/
199
+ 16 && l !== (l = /*$_*/
200
+ i[4]("ongoing") + "") && B(t, l);
201
+ },
202
+ d(i) {
203
+ i && k(t);
204
+ }
205
+ };
206
+ }
207
+ function G(e) {
208
+ let l = (
209
+ /*$_*/
210
+ e[4]("finished") + ""
211
+ ), t;
212
+ return {
213
+ c() {
214
+ t = E(l);
215
+ },
216
+ m(i, n) {
217
+ A(i, t, n);
218
+ },
219
+ p(i, n) {
220
+ n & /*$_*/
221
+ 16 && l !== (l = /*$_*/
222
+ i[4]("finished") + "") && B(t, l);
223
+ },
224
+ d(i) {
225
+ i && k(t);
226
+ }
227
+ };
228
+ }
229
+ function J(e) {
230
+ let l = (
231
+ /*$_*/
232
+ e[4]("all") + ""
233
+ ), t;
234
+ return {
235
+ c() {
236
+ t = E(l);
237
+ },
238
+ m(i, n) {
239
+ A(i, t, n);
240
+ },
241
+ p(i, n) {
242
+ n & /*$_*/
243
+ 16 && l !== (l = /*$_*/
244
+ i[4]("all") + "") && B(t, l);
245
+ },
246
+ d(i) {
247
+ i && k(t);
248
+ }
249
+ };
250
+ }
251
+ function K(e) {
252
+ let l, t, i, n, F, C, b, u, o, d, s, v, r = (
253
+ /*activeIndexes*/
254
+ (e[2][
255
+ /*index*/
256
+ e[23]
257
+ ] == 1 || /*allActive*/
258
+ e[3] && /*index*/
259
+ e[23] == 0) && H()
260
+ ), c = (
261
+ /*filter*/
262
+ e[21] == "Scheduled" && V(e)
263
+ ), m = (
264
+ /*filter*/
265
+ e[21] == "Ongoing" && Z(e)
266
+ ), h = (
267
+ /*filter*/
268
+ e[21] == "Finished" && G(e)
269
+ ), g = (
270
+ /*filter*/
271
+ e[21] == "All" && J(e)
272
+ );
273
+ function j() {
274
+ return (
275
+ /*click_handler*/
276
+ e[13](
277
+ /*filter*/
278
+ e[21],
279
+ /*index*/
280
+ e[23]
281
+ )
282
+ );
283
+ }
284
+ return {
285
+ c() {
286
+ l = z("li"), t = z("button"), r && r.c(), i = N(), n = z("div"), c && c.c(), F = N(), m && m.c(), C = N(), h && h.c(), b = N(), g && g.c(), d = N(), f(n, "class", "FilterButton " + (_(
287
+ /*userAgent*/
288
+ e[5]
289
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(n, "part", "FilterButton " + (_(
290
+ /*userAgent*/
291
+ e[5]
292
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(t, "class", u = /*activeIndexes*/
293
+ (e[2][
294
+ /*index*/
295
+ e[23]
296
+ ] == 1 || /*allActive*/
297
+ e[3] && /*index*/
298
+ e[23] == 0 ? "Active" : "") + " " + (_(
299
+ /*userAgent*/
300
+ e[5]
301
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(t, "part", o = /*activeIndexes*/
302
+ (e[2][
303
+ /*index*/
304
+ e[23]
305
+ ] == 1 || /*allActive*/
306
+ e[3] && /*index*/
307
+ e[23] == 0 ? "Active" : "") + " " + (_(
308
+ /*userAgent*/
309
+ e[5]
310
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "class", "FiltersItem"), f(l, "part", "FiltersItem");
311
+ },
312
+ m(T, w) {
313
+ A(T, l, w), y(l, t), r && r.m(t, null), y(t, i), y(t, n), c && c.m(n, null), y(n, F), m && m.m(n, null), y(n, C), h && h.m(n, null), y(n, b), g && g.m(n, null), y(l, d), s || (v = ne(l, "click", j), s = !0);
314
+ },
315
+ p(T, w) {
316
+ e = T, /*activeIndexes*/
317
+ e[2][
318
+ /*index*/
319
+ e[23]
320
+ ] == 1 || /*allActive*/
321
+ e[3] && /*index*/
322
+ e[23] == 0 ? r || (r = H(), r.c(), r.m(t, i)) : r && (r.d(1), r = null), /*filter*/
323
+ e[21] == "Scheduled" ? c ? c.p(e, w) : (c = V(e), c.c(), c.m(n, F)) : c && (c.d(1), c = null), /*filter*/
324
+ e[21] == "Ongoing" ? m ? m.p(e, w) : (m = Z(e), m.c(), m.m(n, C)) : m && (m.d(1), m = null), /*filter*/
325
+ e[21] == "Finished" ? h ? h.p(e, w) : (h = G(e), h.c(), h.m(n, b)) : h && (h.d(1), h = null), /*filter*/
326
+ e[21] == "All" ? g ? g.p(e, w) : (g = J(e), g.c(), g.m(n, null)) : g && (g.d(1), g = null), w & /*activeIndexes, allActive*/
327
+ 12 && u !== (u = /*activeIndexes*/
328
+ (e[2][
329
+ /*index*/
330
+ e[23]
331
+ ] == 1 || /*allActive*/
332
+ e[3] && /*index*/
333
+ e[23] == 0 ? "Active" : "") + " " + (_(
334
+ /*userAgent*/
335
+ e[5]
336
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && f(t, "class", u), w & /*activeIndexes, allActive*/
337
+ 12 && o !== (o = /*activeIndexes*/
338
+ (e[2][
339
+ /*index*/
340
+ e[23]
341
+ ] == 1 || /*allActive*/
342
+ e[3] && /*index*/
343
+ e[23] == 0 ? "Active" : "") + " " + (_(
344
+ /*userAgent*/
345
+ e[5]
346
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && f(t, "part", o);
347
+ },
348
+ d(T) {
349
+ T && k(l), r && r.d(), c && c.d(), m && m.d(), h && h.d(), g && g.d(), s = !1, v();
350
+ }
351
+ };
352
+ }
353
+ function ce(e) {
354
+ let l, t = (
355
+ /*filterItems*/
356
+ e[1].length > 0 && D(e)
357
+ );
358
+ return {
359
+ c() {
360
+ l = z("div"), t && t.c(), f(l, "class", "FiltersController " + (_(
361
+ /*userAgent*/
362
+ e[5]
363
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "part", "FiltersController " + (_(
364
+ /*userAgent*/
365
+ e[5]
366
+ ) ? "MobileClass" : "Non-MobileClass/empty"));
367
+ },
368
+ m(i, n) {
369
+ A(i, l, n), t && t.m(l, null), e[14](l);
370
+ },
371
+ p(i, [n]) {
372
+ /*filterItems*/
373
+ i[1].length > 0 ? t ? t.p(i, n) : (t = D(i), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
374
+ },
375
+ i: I,
376
+ o: I,
377
+ d(i) {
378
+ i && k(l), t && t.d(), e[14](null);
379
+ }
380
+ };
381
+ }
382
+ function de(e, l, t) {
383
+ let i;
384
+ ee(e, ue, (a) => t(4, i = a));
385
+ let { filters: n = "" } = l, { activefilters: F = "" } = l, { translationurl: C = "" } = l, { clientstyling: b = "" } = l, { clientstylingurl: u = "" } = l, { mbsource: o } = l, d, s = [], v = 0, r = new Array(100), c = !0, m = window.navigator.userAgent;
386
+ const h = () => {
387
+ fetch(C).then((p) => p.json()).then((p) => {
388
+ Object.keys(p).forEach((M) => {
389
+ U(M, p[M]);
390
+ });
391
+ }).catch((p) => {
392
+ console.log(p);
393
+ });
394
+ };
395
+ Object.keys(q).forEach((a) => {
396
+ U(a, q[a]);
397
+ });
398
+ const g = (a, p) => {
399
+ if (p == 0)
400
+ t(3, c = !0), t(2, r = new Array(v)), window.postMessage(
401
+ {
402
+ type: "TournamentsFiltersSelected",
403
+ filters: ["All"]
404
+ },
405
+ window.location.href
406
+ );
407
+ else if (t(3, c = !1), r[p] == 1 ? (t(2, r[p] = 0, r), r.indexOf(1) == -1 && t(3, c = !0)) : t(2, r[p] = 1, r), r.indexOf(1) == -1)
408
+ window.postMessage(
409
+ {
410
+ type: "TournamentsFiltersSelected",
411
+ filters: ["All"]
412
+ },
413
+ window.location.href
414
+ );
415
+ else {
416
+ let M = [];
417
+ for (let O = 0; O < s.length; O++)
418
+ r[O] == 1 && M.push(s[O]);
419
+ window.postMessage(
420
+ {
421
+ type: "TournamentsFiltersSelected",
422
+ filters: M
423
+ },
424
+ window.location.href
425
+ );
426
+ }
427
+ }, j = () => {
428
+ t(1, s = n.split(",")), v = s.length;
429
+ }, T = () => {
430
+ let a = F.split(",");
431
+ t(2, r = new Array(v)), a.indexOf("All") != -1 ? t(3, c = !0) : (t(3, c = !1), a.forEach((p) => {
432
+ let M = s.indexOf(p);
433
+ M > 0 && t(2, r[M] = 1, r);
434
+ }));
435
+ };
436
+ le(() => () => {
437
+ });
438
+ const w = (a, p) => g(a, p);
439
+ function Q(a) {
440
+ ie[a ? "unshift" : "push"](() => {
441
+ d = a, t(0, d);
442
+ });
443
+ }
444
+ return e.$$set = (a) => {
445
+ "filters" in a && t(7, n = a.filters), "activefilters" in a && t(8, F = a.activefilters), "translationurl" in a && t(9, C = a.translationurl), "clientstyling" in a && t(10, b = a.clientstyling), "clientstylingurl" in a && t(11, u = a.clientstylingurl), "mbsource" in a && t(12, o = a.mbsource);
446
+ }, e.$$.update = () => {
447
+ e.$$.dirty & /*translationurl*/
448
+ 512 && C && h(), e.$$.dirty & /*filters*/
449
+ 128 && n && j(), e.$$.dirty & /*activefilters*/
450
+ 256 && F && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
451
+ 1025 && b && d && se(d, b), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
452
+ 2049 && u && d && oe(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
453
+ 4097 && o && d && re(d, `${o}.Style`);
454
+ }, [
455
+ d,
456
+ s,
457
+ r,
458
+ c,
459
+ i,
460
+ m,
461
+ g,
462
+ n,
463
+ F,
464
+ C,
465
+ b,
466
+ u,
467
+ o,
468
+ w,
469
+ Q
470
+ ];
471
+ }
472
+ class ge extends X {
473
+ constructor(l) {
474
+ super(), Y(
475
+ this,
476
+ l,
477
+ de,
478
+ ce,
479
+ x,
480
+ {
481
+ filters: 7,
482
+ activefilters: 8,
483
+ translationurl: 9,
484
+ clientstyling: 10,
485
+ clientstylingurl: 11,
486
+ mbsource: 12
487
+ },
488
+ fe
489
+ );
490
+ }
491
+ get filters() {
492
+ return this.$$.ctx[7];
493
+ }
494
+ set filters(l) {
495
+ this.$$set({ filters: l }), S();
496
+ }
497
+ get activefilters() {
498
+ return this.$$.ctx[8];
499
+ }
500
+ set activefilters(l) {
501
+ this.$$set({ activefilters: l }), S();
502
+ }
503
+ get translationurl() {
504
+ return this.$$.ctx[9];
505
+ }
506
+ set translationurl(l) {
507
+ this.$$set({ translationurl: l }), S();
508
+ }
509
+ get clientstyling() {
510
+ return this.$$.ctx[10];
511
+ }
512
+ set clientstyling(l) {
513
+ this.$$set({ clientstyling: l }), S();
514
+ }
515
+ get clientstylingurl() {
516
+ return this.$$.ctx[11];
517
+ }
518
+ set clientstylingurl(l) {
519
+ this.$$set({ clientstylingurl: l }), S();
520
+ }
521
+ get mbsource() {
522
+ return this.$$.ctx[12];
523
+ }
524
+ set mbsource(l) {
525
+ this.$$set({ mbsource: l }), S();
526
+ }
527
+ }
528
+ ae(ge, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
529
+ export {
530
+ ge as default
531
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-C99E3MCm.cjs");function A(t,l){e.addMessages(t,l)}const T={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"},"en-us":{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"}};function U(t){e.append_styles(t,"svelte-szp116","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emw--color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emw--color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);cursor:pointer}.FiltersController{color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}")}function S(t,l,i){const n=t.slice();return n[21]=l[i],n[23]=i,n}function N(t){let l,i,n=t[4]("tournaments")+"",s,_,y,p=e.ensure_array_like(t[1]),c=[];for(let r=0;r<p.length;r+=1)c[r]=P(S(t,p,r));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),_=e.text(":"),y=e.space();for(let r=0;r<c.length;r+=1)c[r].c();e.attr(i,"class","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(r,d){e.insert(r,l,d),e.append(l,i),e.append(i,s),e.append(i,_),e.append(l,y);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(l,null)},p(r,d){if(d&16&&n!==(n=r[4]("tournaments")+"")&&e.set_data(s,n),d&126){p=e.ensure_array_like(r[1]);let o;for(o=0;o<p.length;o+=1){const M=S(r,p,o);c[o]?c[o].p(M,d):(c[o]=P(M),c[o].c(),c[o].m(l,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=p.length}},d(r){r&&e.detach(l),e.destroy_each(c,r)}}}function z(t){let l,i;return{c(){l=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","16"),e.attr(l,"height","16"),e.attr(l,"fill","currentColor"),e.attr(l,"class","bi bi-check"),e.attr(l,"part","bi bi-check"),e.attr(l,"viewBox","0 0 16 16")},m(n,s){e.insert(n,l,s),e.append(l,i)},d(n){n&&e.detach(l)}}}function E(t){let l=t[4]("scheduled")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("scheduled")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function O(t){let l=t[4]("ongoing")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("ongoing")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function B(t){let l=t[4]("finished")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("finished")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function j(t){let l=t[4]("all")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("all")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function P(t){let l,i,n,s,_,y,p,c,r,d,o,M,a=(t[2][t[23]]==1||t[3]&&t[23]==0)&&z(),f=t[21]=="Scheduled"&&E(t),h=t[21]=="Ongoing"&&O(t),m=t[21]=="Finished"&&B(t),g=t[21]=="All"&&j(t);function k(){return t[13](t[21],t[23])}return{c(){l=e.element("li"),i=e.element("button"),a&&a.c(),n=e.space(),s=e.element("div"),f&&f.c(),_=e.space(),h&&h.c(),y=e.space(),m&&m.c(),p=e.space(),g&&g.c(),d=e.space(),e.attr(s,"class","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(s,"part","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"class",c=(t[2][t[23]]==1||t[3]&&t[23]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",r=(t[2][t[23]]==1||t[3]&&t[23]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,F){e.insert(v,l,F),e.append(l,i),a&&a.m(i,null),e.append(i,n),e.append(i,s),f&&f.m(s,null),e.append(s,_),h&&h.m(s,null),e.append(s,y),m&&m.m(s,null),e.append(s,p),g&&g.m(s,null),e.append(l,d),o||(M=e.listen(l,"click",k),o=!0)},p(v,F){t=v,t[2][t[23]]==1||t[3]&&t[23]==0?a||(a=z(),a.c(),a.m(i,n)):a&&(a.d(1),a=null),t[21]=="Scheduled"?f?f.p(t,F):(f=E(t),f.c(),f.m(s,_)):f&&(f.d(1),f=null),t[21]=="Ongoing"?h?h.p(t,F):(h=O(t),h.c(),h.m(s,y)):h&&(h.d(1),h=null),t[21]=="Finished"?m?m.p(t,F):(m=B(t),m.c(),m.m(s,p)):m&&(m.d(1),m=null),t[21]=="All"?g?g.p(t,F):(g=j(t),g.c(),g.m(s,null)):g&&(g.d(1),g=null),F&12&&c!==(c=(t[2][t[23]]==1||t[3]&&t[23]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",c),F&12&&r!==(r=(t[2][t[23]]==1||t[3]&&t[23]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",r)},d(v){v&&e.detach(l),a&&a.d(),f&&f.d(),h&&h.d(),m&&m.d(),g&&g.d(),o=!1,M()}}}function q(t){let l,i=t[1].length>0&&N(t);return{c(){l=e.element("div"),i&&i.c(),e.attr(l,"class","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(n,s){e.insert(n,l,s),i&&i.m(l,null),t[14](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=N(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(n){n&&e.detach(l),i&&i.d(),t[14](null)}}}function R(t,l,i){let n;e.component_subscribe(t,e.$format,u=>i(4,n=u));let{filters:s=""}=l,{activefilters:_=""}=l,{translationurl:y=""}=l,{clientstyling:p=""}=l,{clientstylingurl:c=""}=l,{mbsource:r}=l,d,o=[],M=0,a=new Array(100),f=!0,h=window.navigator.userAgent;const m=()=>{fetch(y).then(b=>b.json()).then(b=>{Object.keys(b).forEach(C=>{A(C,b[C])})}).catch(b=>{console.log(b)})};Object.keys(T).forEach(u=>{A(u,T[u])});const g=(u,b)=>{if(b==0)i(3,f=!0),i(2,a=new Array(M)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,f=!1),a[b]==1?(i(2,a[b]=0,a),a.indexOf(1)==-1&&i(3,f=!0)):i(2,a[b]=1,a),a.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let C=[];for(let w=0;w<o.length;w++)a[w]==1&&C.push(o[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:C},window.location.href)}},k=()=>{i(1,o=s.split(",")),M=o.length},v=()=>{let u=_.split(",");i(2,a=new Array(M)),u.indexOf("All")!=-1?i(3,f=!0):(i(3,f=!1),u.forEach(b=>{let C=o.indexOf(b);C>0&&i(2,a[C]=1,a)}))};e.onMount(()=>()=>{});const F=(u,b)=>g(u,b);function L(u){e.binding_callbacks[u?"unshift":"push"](()=>{d=u,i(0,d)})}return t.$$set=u=>{"filters"in u&&i(7,s=u.filters),"activefilters"in u&&i(8,_=u.activefilters),"translationurl"in u&&i(9,y=u.translationurl),"clientstyling"in u&&i(10,p=u.clientstyling),"clientstylingurl"in u&&i(11,c=u.clientstylingurl),"mbsource"in u&&i(12,r=u.mbsource)},t.$$.update=()=>{t.$$.dirty&512&&y&&m(),t.$$.dirty&128&&s&&k(),t.$$.dirty&256&&_&&v(),t.$$.dirty&1025&&p&&d&&e.setClientStyling(d,p),t.$$.dirty&2049&&c&&d&&e.setClientStylingURL(d,c),t.$$.dirty&4097&&r&&d&&e.setStreamStyling(d,`${r}.Style`)},[d,o,a,f,n,h,g,s,_,y,p,c,r,F,L]}class I extends e.SvelteComponent{constructor(l){super(),e.init(this,l,R,q,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11,mbsource:12},U)}get filters(){return this.$$.ctx[7]}set filters(l){this.$$set({filters:l}),e.flush()}get activefilters(){return this.$$.ctx[8]}set activefilters(l){this.$$set({activefilters:l}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(I,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=I;