@everymatrix/casino-tournaments-controller 1.54.6 → 1.54.8

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 (28) hide show
  1. package/components/{CasinoTournamentsController-B6mh3T8V.js → CasinoTournamentsController-D3kqTQoy.js} +442 -450
  2. package/components/CasinoTournamentsController-DeYJxMsf.js +5639 -0
  3. package/components/CasinoTournamentsController-Y02EoFCS.cjs +14 -0
  4. package/components/{CasinoTournamentsFilterController-crq752J3.js → CasinoTournamentsFilterController-Bi4mtrGz.js} +20 -20
  5. package/components/CasinoTournamentsFilterController-Pk2Wa5yj.js +536 -0
  6. package/components/CasinoTournamentsFilterController-fOgvqafN.cjs +1 -0
  7. package/components/{CasinoTournamentsListController-BHaCpLNs.js → CasinoTournamentsListController-BLr2UHB9.js} +21 -21
  8. package/components/CasinoTournamentsListController-Bkpb3QRw.cjs +13 -0
  9. package/components/CasinoTournamentsListController-CPTUlGJx.js +3117 -0
  10. package/components/{CasinoTournamentsThumbnail-BpY5tzvh.js → CasinoTournamentsThumbnail-8YRhmoBw.js} +36 -36
  11. package/components/CasinoTournamentsThumbnail-L4q_bfod.js +896 -0
  12. package/components/CasinoTournamentsThumbnail-bO_BSouL.cjs +4 -0
  13. package/components/{CasinoTournamentsThumbnailController-CmauHmt0.js → CasinoTournamentsThumbnailController-BWFh-Hhd.js} +73 -73
  14. package/components/CasinoTournamentsThumbnailController-CuHFVK14.cjs +1 -0
  15. package/components/CasinoTournamentsThumbnailController-Dr72UUqk.js +1417 -0
  16. package/components/CasinoTournamentsThumbnailDuration-BC5szfDe.cjs +1 -0
  17. package/components/CasinoTournamentsThumbnailDuration-CLfidISH.js +504 -0
  18. package/components/{CasinoTournamentsThumbnailDuration-Bl9YXTWz.js → CasinoTournamentsThumbnailDuration-CpyA1Eo1.js} +40 -40
  19. package/components/CasinoTournamentsThumbnailGamesSlider-BaWB-VH_.js +441 -0
  20. package/components/CasinoTournamentsThumbnailGamesSlider-DRGprCzj.cjs +1 -0
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-7LdDhi2Q.js → CasinoTournamentsThumbnailGamesSlider-DhPlpDeb.js} +37 -37
  22. package/components/CasinoTournamentsThumbnailPrizes-BteGHS2o.js +315 -0
  23. package/components/CasinoTournamentsThumbnailPrizes-DeYHCkas.cjs +1 -0
  24. package/components/{CasinoTournamentsThumbnailPrizes-nDu0SMUv.js → CasinoTournamentsThumbnailPrizes-wp2hG8Ny.js} +15 -15
  25. package/es2015/casino-tournaments-controller.cjs +1 -0
  26. package/es2015/casino-tournaments-controller.js +16 -0
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
@@ -0,0 +1,536 @@
1
+ import { a as X, S as Y, i as x, s as $, f as z, b as ee, n as L, d as k, c as T, e as S, g as u, h as C, j as le, k as I, l as te, m as B, o as F, t as E, p as N, q as ie, r as ne, u as P, v as se, $ as oe } from "./CasinoTournamentsController-DeYJxMsf.js";
2
+ function U(e, l) {
3
+ X(e, l);
4
+ }
5
+ const H = {
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 re(e) {
85
+ ee(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[22] = l[t], i[24] = t, i;
90
+ }
91
+ function q(e) {
92
+ let l, t, i = (
93
+ /*$_*/
94
+ e[4]("tournaments") + ""
95
+ ), n, v, w, b = I(
96
+ /*filterItems*/
97
+ e[1]
98
+ ), r = [];
99
+ for (let s = 0; s < b.length; s += 1)
100
+ r[s] = K(R(e, b, s));
101
+ return {
102
+ c() {
103
+ l = S("ul"), t = S("li"), n = E(i), v = E(":"), w = N();
104
+ for (let s = 0; s < r.length; s += 1)
105
+ r[s].c();
106
+ u(t, "class", "FiltersTitle " + (C(
107
+ /*userAgent*/
108
+ e[5]
109
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(t, "part", "FiltersTitle " + (C(
110
+ /*userAgent*/
111
+ e[5]
112
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(l, "class", "FiltersList " + (C(
113
+ /*userAgent*/
114
+ e[5]
115
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(l, "part", "FiltersList " + (C(
116
+ /*userAgent*/
117
+ e[5]
118
+ ) ? "MobileClass" : "Non-MobileClass/empty"));
119
+ },
120
+ m(s, _) {
121
+ T(s, l, _), F(l, t), F(t, n), F(t, v), F(l, w);
122
+ for (let a = 0; a < r.length; a += 1)
123
+ r[a] && r[a].m(l, null);
124
+ },
125
+ p(s, _) {
126
+ if (_ & /*$_*/
127
+ 16 && i !== (i = /*$_*/
128
+ s[4]("tournaments") + "") && B(n, i), _ & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
129
+ 126) {
130
+ b = I(
131
+ /*filterItems*/
132
+ s[1]
133
+ );
134
+ let a;
135
+ for (a = 0; a < b.length; a += 1) {
136
+ const c = R(s, b, a);
137
+ r[a] ? r[a].p(c, _) : (r[a] = K(c), r[a].c(), r[a].m(l, null));
138
+ }
139
+ for (; a < r.length; a += 1)
140
+ r[a].d(1);
141
+ r.length = b.length;
142
+ }
143
+ },
144
+ d(s) {
145
+ s && k(l), te(r, s);
146
+ }
147
+ };
148
+ }
149
+ function D(e) {
150
+ let l, t;
151
+ return {
152
+ c() {
153
+ l = P("svg"), t = P("path"), u(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"), u(l, "xmlns", "http://www.w3.org/2000/svg"), u(l, "width", "16"), u(l, "height", "16"), u(l, "fill", "currentColor"), u(l, "class", "bi bi-check"), u(l, "part", "bi bi-check"), u(l, "viewBox", "0 0 16 16");
154
+ },
155
+ m(i, n) {
156
+ T(i, l, n), F(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
+ T(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
+ T(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
+ T(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
+ T(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, v, w, b, r, s, _, a, c, f = (
253
+ /*activeIndexes*/
254
+ (e[2][
255
+ /*index*/
256
+ e[24]
257
+ ] == 1 || /*allActive*/
258
+ e[3] && /*index*/
259
+ e[24] == 0) && D()
260
+ ), h = (
261
+ /*filter*/
262
+ e[22] == "Scheduled" && V(e)
263
+ ), m = (
264
+ /*filter*/
265
+ e[22] == "Ongoing" && Z(e)
266
+ ), g = (
267
+ /*filter*/
268
+ e[22] == "Finished" && G(e)
269
+ ), p = (
270
+ /*filter*/
271
+ e[22] == "All" && J(e)
272
+ );
273
+ function j() {
274
+ return (
275
+ /*click_handler*/
276
+ e[12](
277
+ /*filter*/
278
+ e[22],
279
+ /*index*/
280
+ e[24]
281
+ )
282
+ );
283
+ }
284
+ return {
285
+ c() {
286
+ l = S("li"), t = S("button"), f && f.c(), i = N(), n = S("div"), h && h.c(), v = N(), m && m.c(), w = N(), g && g.c(), b = N(), p && p.c(), _ = N(), u(n, "class", "FilterButton " + (C(
287
+ /*userAgent*/
288
+ e[5]
289
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(n, "part", "FilterButton " + (C(
290
+ /*userAgent*/
291
+ e[5]
292
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(t, "class", r = /*activeIndexes*/
293
+ (e[2][
294
+ /*index*/
295
+ e[24]
296
+ ] == 1 || /*allActive*/
297
+ e[3] && /*index*/
298
+ e[24] == 0 ? "Active" : "") + " " + (C(
299
+ /*userAgent*/
300
+ e[5]
301
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(t, "part", s = /*activeIndexes*/
302
+ (e[2][
303
+ /*index*/
304
+ e[24]
305
+ ] == 1 || /*allActive*/
306
+ e[3] && /*index*/
307
+ e[24] == 0 ? "Active" : "") + " " + (C(
308
+ /*userAgent*/
309
+ e[5]
310
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(l, "class", "FiltersItem"), u(l, "part", "FiltersItem");
311
+ },
312
+ m(A, M) {
313
+ T(A, l, M), F(l, t), f && f.m(t, null), F(t, i), F(t, n), h && h.m(n, null), F(n, v), m && m.m(n, null), F(n, w), g && g.m(n, null), F(n, b), p && p.m(n, null), F(l, _), a || (c = ne(l, "click", j), a = !0);
314
+ },
315
+ p(A, M) {
316
+ e = A, /*activeIndexes*/
317
+ e[2][
318
+ /*index*/
319
+ e[24]
320
+ ] == 1 || /*allActive*/
321
+ e[3] && /*index*/
322
+ e[24] == 0 ? f || (f = D(), f.c(), f.m(t, i)) : f && (f.d(1), f = null), /*filter*/
323
+ e[22] == "Scheduled" ? h ? h.p(e, M) : (h = V(e), h.c(), h.m(n, v)) : h && (h.d(1), h = null), /*filter*/
324
+ e[22] == "Ongoing" ? m ? m.p(e, M) : (m = Z(e), m.c(), m.m(n, w)) : m && (m.d(1), m = null), /*filter*/
325
+ e[22] == "Finished" ? g ? g.p(e, M) : (g = G(e), g.c(), g.m(n, b)) : g && (g.d(1), g = null), /*filter*/
326
+ e[22] == "All" ? p ? p.p(e, M) : (p = J(e), p.c(), p.m(n, null)) : p && (p.d(1), p = null), M & /*activeIndexes, allActive*/
327
+ 12 && r !== (r = /*activeIndexes*/
328
+ (e[2][
329
+ /*index*/
330
+ e[24]
331
+ ] == 1 || /*allActive*/
332
+ e[3] && /*index*/
333
+ e[24] == 0 ? "Active" : "") + " " + (C(
334
+ /*userAgent*/
335
+ e[5]
336
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && u(t, "class", r), M & /*activeIndexes, allActive*/
337
+ 12 && s !== (s = /*activeIndexes*/
338
+ (e[2][
339
+ /*index*/
340
+ e[24]
341
+ ] == 1 || /*allActive*/
342
+ e[3] && /*index*/
343
+ e[24] == 0 ? "Active" : "") + " " + (C(
344
+ /*userAgent*/
345
+ e[5]
346
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && u(t, "part", s);
347
+ },
348
+ d(A) {
349
+ A && k(l), f && f.d(), h && h.d(), m && m.d(), g && g.d(), p && p.d(), a = !1, c();
350
+ }
351
+ };
352
+ }
353
+ function ae(e) {
354
+ let l, t = (
355
+ /*filterItems*/
356
+ e[1].length > 0 && q(e)
357
+ );
358
+ return {
359
+ c() {
360
+ l = S("div"), t && t.c(), u(l, "class", "FiltersController " + (C(
361
+ /*userAgent*/
362
+ e[5]
363
+ ) ? "MobileClass" : "Non-MobileClass/empty")), u(l, "part", "FiltersController " + (C(
364
+ /*userAgent*/
365
+ e[5]
366
+ ) ? "MobileClass" : "Non-MobileClass/empty"));
367
+ },
368
+ m(i, n) {
369
+ T(i, l, n), t && t.m(l, null), e[13](l);
370
+ },
371
+ p(i, [n]) {
372
+ /*filterItems*/
373
+ i[1].length > 0 ? t ? t.p(i, n) : (t = q(i), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
374
+ },
375
+ i: L,
376
+ o: L,
377
+ d(i) {
378
+ i && k(l), t && t.d(), e[13](null);
379
+ }
380
+ };
381
+ }
382
+ function ue(e, l, t) {
383
+ let i;
384
+ le(e, oe, (o) => t(4, i = o));
385
+ let { filters: n = "" } = l, { activefilters: v = "" } = l, { translationurl: w = "" } = l, { clientstyling: b = "" } = l, { clientstylingurl: r = "" } = l, s, _ = [], a = 0, c = new Array(100), f = !0, h = window.navigator.userAgent;
386
+ const m = () => {
387
+ fetch(w).then((d) => d.json()).then((d) => {
388
+ Object.keys(d).forEach((y) => {
389
+ U(y, d[y]);
390
+ });
391
+ }).catch((d) => {
392
+ console.log(d);
393
+ });
394
+ };
395
+ Object.keys(H).forEach((o) => {
396
+ U(o, H[o]);
397
+ });
398
+ const g = (o, d) => {
399
+ if (d == 0)
400
+ t(3, f = !0), t(2, c = new Array(a)), window.postMessage(
401
+ {
402
+ type: "TournamentsFiltersSelected",
403
+ filters: ["All"]
404
+ },
405
+ window.location.href
406
+ );
407
+ else if (t(3, f = !1), c[d] == 1 ? (t(2, c[d] = 0, c), c.indexOf(1) == -1 && t(3, f = !0)) : t(2, c[d] = 1, c), c.indexOf(1) == -1)
408
+ window.postMessage(
409
+ {
410
+ type: "TournamentsFiltersSelected",
411
+ filters: ["All"]
412
+ },
413
+ window.location.href
414
+ );
415
+ else {
416
+ let y = [];
417
+ for (let O = 0; O < _.length; O++)
418
+ c[O] == 1 && y.push(_[O]);
419
+ window.postMessage(
420
+ {
421
+ type: "TournamentsFiltersSelected",
422
+ filters: y
423
+ },
424
+ window.location.href
425
+ );
426
+ }
427
+ }, p = () => {
428
+ t(1, _ = n.split(",")), a = _.length;
429
+ }, j = () => {
430
+ let o = v.split(",");
431
+ t(2, c = new Array(a)), o.indexOf("All") != -1 ? t(3, f = !0) : (t(3, f = !1), o.forEach((d) => {
432
+ let y = _.indexOf(d);
433
+ y > 0 && t(2, c[y] = 1, c);
434
+ }));
435
+ }, A = () => {
436
+ let o = document.createElement("style");
437
+ o.innerHTML = b, s.appendChild(o);
438
+ }, M = () => {
439
+ let o = new URL(r), d = document.createElement("style");
440
+ fetch(o.href).then((y) => y.text()).then((y) => {
441
+ d.innerHTML = y, setTimeout(
442
+ () => {
443
+ s.appendChild(d);
444
+ },
445
+ 1
446
+ ), setTimeout(
447
+ () => {
448
+ },
449
+ 500
450
+ );
451
+ });
452
+ }, Q = (o, d) => g(o, d);
453
+ function W(o) {
454
+ ie[o ? "unshift" : "push"](() => {
455
+ s = o, t(0, s);
456
+ });
457
+ }
458
+ return e.$$set = (o) => {
459
+ "filters" in o && t(7, n = o.filters), "activefilters" in o && t(8, v = o.activefilters), "translationurl" in o && t(9, w = o.translationurl), "clientstyling" in o && t(10, b = o.clientstyling), "clientstylingurl" in o && t(11, r = o.clientstylingurl);
460
+ }, e.$$.update = () => {
461
+ e.$$.dirty & /*customStylingContainer, clientstyling*/
462
+ 1025 && s && b && A(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
463
+ 2049 && s && r && M(), e.$$.dirty & /*translationurl*/
464
+ 512 && w && m(), e.$$.dirty & /*filters*/
465
+ 128 && n && p(), e.$$.dirty & /*activefilters*/
466
+ 256 && v && j();
467
+ }, [
468
+ s,
469
+ _,
470
+ c,
471
+ f,
472
+ i,
473
+ h,
474
+ g,
475
+ n,
476
+ v,
477
+ w,
478
+ b,
479
+ r,
480
+ Q,
481
+ W
482
+ ];
483
+ }
484
+ class fe extends Y {
485
+ constructor(l) {
486
+ super(), x(
487
+ this,
488
+ l,
489
+ ue,
490
+ ae,
491
+ $,
492
+ {
493
+ filters: 7,
494
+ activefilters: 8,
495
+ translationurl: 9,
496
+ clientstyling: 10,
497
+ clientstylingurl: 11
498
+ },
499
+ re
500
+ );
501
+ }
502
+ get filters() {
503
+ return this.$$.ctx[7];
504
+ }
505
+ set filters(l) {
506
+ this.$$set({ filters: l }), z();
507
+ }
508
+ get activefilters() {
509
+ return this.$$.ctx[8];
510
+ }
511
+ set activefilters(l) {
512
+ this.$$set({ activefilters: l }), z();
513
+ }
514
+ get translationurl() {
515
+ return this.$$.ctx[9];
516
+ }
517
+ set translationurl(l) {
518
+ this.$$set({ translationurl: l }), z();
519
+ }
520
+ get clientstyling() {
521
+ return this.$$.ctx[10];
522
+ }
523
+ set clientstyling(l) {
524
+ this.$$set({ clientstyling: l }), z();
525
+ }
526
+ get clientstylingurl() {
527
+ return this.$$.ctx[11];
528
+ }
529
+ set clientstylingurl(l) {
530
+ this.$$set({ clientstylingurl: l }), z();
531
+ }
532
+ }
533
+ se(fe, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
534
+ export {
535
+ fe as default
536
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-Y02EoFCS.cjs");function T(t,l){e.addMessages(t,l)}const A={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 H(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 N(t,l,i){const n=t.slice();return n[22]=l[i],n[24]=i,n}function S(t){let l,i,n=t[4]("tournaments")+"",s,F,M,b=e.ensure_array_like(t[1]),a=[];for(let o=0;o<b.length;o+=1)a[o]=L(N(t,b,o));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),F=e.text(":"),M=e.space();for(let o=0;o<a.length;o+=1)a[o].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(o,_){e.insert(o,l,_),e.append(l,i),e.append(i,s),e.append(i,F),e.append(l,M);for(let u=0;u<a.length;u+=1)a[u]&&a[u].m(l,null)},p(o,_){if(_&16&&n!==(n=o[4]("tournaments")+"")&&e.set_data(s,n),_&126){b=e.ensure_array_like(o[1]);let u;for(u=0;u<b.length;u+=1){const f=N(o,b,u);a[u]?a[u].p(f,_):(a[u]=L(f),a[u].c(),a[u].m(l,null))}for(;u<a.length;u+=1)a[u].d(1);a.length=b.length}},d(o){o&&e.detach(l),e.destroy_each(a,o)}}}function E(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 z(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 L(t){let l,i,n,s,F,M,b,a,o,_,u,f,c=(t[2][t[24]]==1||t[3]&&t[24]==0)&&E(),g=t[22]=="Scheduled"&&z(t),m=t[22]=="Ongoing"&&O(t),h=t[22]=="Finished"&&B(t),p=t[22]=="All"&&j(t);function k(){return t[12](t[22],t[24])}return{c(){l=e.element("li"),i=e.element("button"),c&&c.c(),n=e.space(),s=e.element("div"),g&&g.c(),F=e.space(),m&&m.c(),M=e.space(),h&&h.c(),b=e.space(),p&&p.c(),_=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",a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,C){e.insert(v,l,C),e.append(l,i),c&&c.m(i,null),e.append(i,n),e.append(i,s),g&&g.m(s,null),e.append(s,F),m&&m.m(s,null),e.append(s,M),h&&h.m(s,null),e.append(s,b),p&&p.m(s,null),e.append(l,_),u||(f=e.listen(l,"click",k),u=!0)},p(v,C){t=v,t[2][t[24]]==1||t[3]&&t[24]==0?c||(c=E(),c.c(),c.m(i,n)):c&&(c.d(1),c=null),t[22]=="Scheduled"?g?g.p(t,C):(g=z(t),g.c(),g.m(s,F)):g&&(g.d(1),g=null),t[22]=="Ongoing"?m?m.p(t,C):(m=O(t),m.c(),m.m(s,M)):m&&(m.d(1),m=null),t[22]=="Finished"?h?h.p(t,C):(h=B(t),h.c(),h.m(s,b)):h&&(h.d(1),h=null),t[22]=="All"?p?p.p(t,C):(p=j(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),C&12&&a!==(a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",a),C&12&&o!==(o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",o)},d(v){v&&e.detach(l),c&&c.d(),g&&g.d(),m&&m.d(),h&&h.d(),p&&p.d(),u=!1,f()}}}function R(t){let l,i=t[1].length>0&&S(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[13](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=S(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[13](null)}}}function q(t,l,i){let n;e.component_subscribe(t,e.$format,r=>i(4,n=r));let{filters:s=""}=l,{activefilters:F=""}=l,{translationurl:M=""}=l,{clientstyling:b=""}=l,{clientstylingurl:a=""}=l,o,_=[],u=0,f=new Array(100),c=!0,g=window.navigator.userAgent;const m=()=>{fetch(M).then(d=>d.json()).then(d=>{Object.keys(d).forEach(y=>{T(y,d[y])})}).catch(d=>{console.log(d)})};Object.keys(A).forEach(r=>{T(r,A[r])});const h=(r,d)=>{if(d==0)i(3,c=!0),i(2,f=new Array(u)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,c=!1),f[d]==1?(i(2,f[d]=0,f),f.indexOf(1)==-1&&i(3,c=!0)):i(2,f[d]=1,f),f.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let y=[];for(let w=0;w<_.length;w++)f[w]==1&&y.push(_[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:y},window.location.href)}},p=()=>{i(1,_=s.split(",")),u=_.length},k=()=>{let r=F.split(",");i(2,f=new Array(u)),r.indexOf("All")!=-1?i(3,c=!0):(i(3,c=!1),r.forEach(d=>{let y=_.indexOf(d);y>0&&i(2,f[y]=1,f)}))},v=()=>{let r=document.createElement("style");r.innerHTML=b,o.appendChild(r)},C=()=>{let r=new URL(a),d=document.createElement("style");fetch(r.href).then(y=>y.text()).then(y=>{d.innerHTML=y,setTimeout(()=>{o.appendChild(d)},1),setTimeout(()=>{},500)})},I=(r,d)=>h(r,d);function U(r){e.binding_callbacks[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"filters"in r&&i(7,s=r.filters),"activefilters"in r&&i(8,F=r.activefilters),"translationurl"in r&&i(9,M=r.translationurl),"clientstyling"in r&&i(10,b=r.clientstyling),"clientstylingurl"in r&&i(11,a=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1025&&o&&b&&v(),t.$$.dirty&2049&&o&&a&&C(),t.$$.dirty&512&&M&&m(),t.$$.dirty&128&&s&&p(),t.$$.dirty&256&&F&&k()},[o,_,f,c,n,g,h,s,F,M,b,a,I,U]}class P extends e.SvelteComponent{constructor(l){super(),e.init(this,l,q,R,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},H)}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()}}e.create_custom_element(P,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=P;