@everymatrix/casino-tournaments-list-controller 1.45.0 → 1.45.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsListController-DKdmeWUn.js → CasinoTournamentsListController-DQkRGglO.js} +205 -205
- package/components/{CasinoTournamentsListController-BI700b_r.cjs → CasinoTournamentsListController-Dxc2MrGE.cjs} +5 -5
- package/components/CasinoTournamentsThumbnail-F3yd6zuc.cjs +4 -0
- package/components/{CasinoTournamentsThumbnail-DvqVgpqK.js → CasinoTournamentsThumbnail-rgNkt8jX.js} +188 -188
- package/components/CasinoTournamentsThumbnailController-Btof54Ze.js +1881 -0
- package/components/CasinoTournamentsThumbnailController-DT2N9cxC.cjs +3 -0
- package/components/CasinoTournamentsThumbnailDuration-C36qRcBp.js +495 -0
- package/components/CasinoTournamentsThumbnailDuration-CeJ__224.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider--nbq1N9x.js +439 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-a0sQ72y8.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-CyENln5i.cjs +1 -0
- package/components/CasinoTournamentsThumbnailPrizes-e1up8aDE.js +310 -0
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/package.json +2 -2
- package/components/CasinoTournamentsThumbnail-BiHKMblV.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-B9Itmkhr.cjs +0 -3
- package/components/CasinoTournamentsThumbnailController-tU-U1qDq.js +0 -1881
- package/components/CasinoTournamentsThumbnailDuration-BKtOkvAC.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-DFBCO700.js +0 -495
- package/components/CasinoTournamentsThumbnailGamesSlider-BJ6olJeN.js +0 -439
- package/components/CasinoTournamentsThumbnailGamesSlider-Ba6b2okX.cjs +0 -1
- package/components/CasinoTournamentsThumbnailPrizes-BO1L1Nff.js +0 -310
- package/components/CasinoTournamentsThumbnailPrizes-DgXBrfnZ.cjs +0 -1
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { a as A, S as Z, i as j, f as T, c as I, s as R, b as B, e as z, d as b, t as _, g as u, h as k, j as f, k as v, n as M, l as F, m as O, o as U, F as H, J as V, w as W, y as q } from "./CasinoTournamentsListController-DQkRGglO.js";
|
|
2
|
+
function N(l, e) {
|
|
3
|
+
A(l, e);
|
|
4
|
+
}
|
|
5
|
+
const S = {
|
|
6
|
+
en: {
|
|
7
|
+
prizes: "Prizes",
|
|
8
|
+
noprizes: "No available prizes",
|
|
9
|
+
place: "place"
|
|
10
|
+
},
|
|
11
|
+
hr: {
|
|
12
|
+
prizes: "Nagrade",
|
|
13
|
+
noprizes: "Nema dostupnih nagrada",
|
|
14
|
+
place: "mjesto"
|
|
15
|
+
},
|
|
16
|
+
"zh-hk": {
|
|
17
|
+
prizes: "獎品",
|
|
18
|
+
noprizes: "沒有可用的獎品",
|
|
19
|
+
place: "位置"
|
|
20
|
+
},
|
|
21
|
+
fr: {
|
|
22
|
+
prizes: "Prix",
|
|
23
|
+
noprizes: "Aucun prix disponible",
|
|
24
|
+
place: "place"
|
|
25
|
+
},
|
|
26
|
+
ro: {
|
|
27
|
+
prizes: "Premii",
|
|
28
|
+
noprizes: "Nu sunt disponibile premii",
|
|
29
|
+
place: "poziție"
|
|
30
|
+
},
|
|
31
|
+
tr: {
|
|
32
|
+
prizes: "Ödüller",
|
|
33
|
+
noprizes: "Mevcut ödül yok",
|
|
34
|
+
place: "yer"
|
|
35
|
+
},
|
|
36
|
+
el: {
|
|
37
|
+
prizes: "Έπαθλα",
|
|
38
|
+
noprizes: "Μη διαθέσιμα έπαθλα",
|
|
39
|
+
place: "θέση"
|
|
40
|
+
},
|
|
41
|
+
es: {
|
|
42
|
+
prizes: "Premios",
|
|
43
|
+
noprizes: "No hay premios disponibles",
|
|
44
|
+
place: "lugar"
|
|
45
|
+
},
|
|
46
|
+
hu: {
|
|
47
|
+
prizes: "Nyeremények",
|
|
48
|
+
noprizes: "Nincs elérhető nyeremény",
|
|
49
|
+
place: "helyezés"
|
|
50
|
+
},
|
|
51
|
+
pt: {
|
|
52
|
+
prizes: "Prêmios",
|
|
53
|
+
noprizes: "Não há prêmios disponíveis",
|
|
54
|
+
place: "place"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
function D(l) {
|
|
58
|
+
B(l, "svelte-1t3fr3e", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}");
|
|
59
|
+
}
|
|
60
|
+
function E(l, e, t) {
|
|
61
|
+
const n = l.slice();
|
|
62
|
+
return n[13] = e[t], n[15] = t, n;
|
|
63
|
+
}
|
|
64
|
+
function L(l) {
|
|
65
|
+
let e, t = H(
|
|
66
|
+
/*prizes*/
|
|
67
|
+
l[1]
|
|
68
|
+
), n = [];
|
|
69
|
+
for (let i = 0; i < t.length; i += 1)
|
|
70
|
+
n[i] = x(E(l, t, i));
|
|
71
|
+
let r = null;
|
|
72
|
+
return t.length || (r = C(l)), {
|
|
73
|
+
c() {
|
|
74
|
+
e = z("div");
|
|
75
|
+
for (let i = 0; i < n.length; i += 1)
|
|
76
|
+
n[i].c();
|
|
77
|
+
r && r.c(), u(e, "class", "Prizes"), u(e, "part", "Prizes");
|
|
78
|
+
},
|
|
79
|
+
m(i, c) {
|
|
80
|
+
k(i, e, c);
|
|
81
|
+
for (let s = 0; s < n.length; s += 1)
|
|
82
|
+
n[s] && n[s].m(e, null);
|
|
83
|
+
r && r.m(e, null);
|
|
84
|
+
},
|
|
85
|
+
p(i, c) {
|
|
86
|
+
if (c & /*prizes, $_*/
|
|
87
|
+
6) {
|
|
88
|
+
t = H(
|
|
89
|
+
/*prizes*/
|
|
90
|
+
i[1]
|
|
91
|
+
);
|
|
92
|
+
let s;
|
|
93
|
+
for (s = 0; s < t.length; s += 1) {
|
|
94
|
+
const p = E(i, t, s);
|
|
95
|
+
n[s] ? n[s].p(p, c) : (n[s] = x(p), n[s].c(), n[s].m(e, null));
|
|
96
|
+
}
|
|
97
|
+
for (; s < n.length; s += 1)
|
|
98
|
+
n[s].d(1);
|
|
99
|
+
n.length = t.length, !t.length && r ? r.p(i, c) : t.length ? r && (r.d(1), r = null) : (r = C(i), r.c(), r.m(e, null));
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
d(i) {
|
|
103
|
+
i && F(e), V(n, i), r && r.d();
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function C(l) {
|
|
108
|
+
let e, t = (
|
|
109
|
+
/*$_*/
|
|
110
|
+
l[2]("noprizes") + ""
|
|
111
|
+
), n;
|
|
112
|
+
return {
|
|
113
|
+
c() {
|
|
114
|
+
e = z("p"), n = _(t);
|
|
115
|
+
},
|
|
116
|
+
m(r, i) {
|
|
117
|
+
k(r, e, i), f(e, n);
|
|
118
|
+
},
|
|
119
|
+
p(r, i) {
|
|
120
|
+
i & /*$_*/
|
|
121
|
+
4 && t !== (t = /*$_*/
|
|
122
|
+
r[2]("noprizes") + "") && v(n, t);
|
|
123
|
+
},
|
|
124
|
+
d(r) {
|
|
125
|
+
r && F(e);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function x(l) {
|
|
130
|
+
let e, t, n, r = (
|
|
131
|
+
/*prize*/
|
|
132
|
+
(l[13].count > 1 ? `${/*prize*/
|
|
133
|
+
l[13].rank}~${/*prize*/
|
|
134
|
+
l[13].rank + /*prize*/
|
|
135
|
+
l[13].count - 1}` : (
|
|
136
|
+
/*prize*/
|
|
137
|
+
l[13].rank
|
|
138
|
+
)) + ""
|
|
139
|
+
), i, c, s = (
|
|
140
|
+
/*$_*/
|
|
141
|
+
l[2]("place") + ""
|
|
142
|
+
), p, o, d = (
|
|
143
|
+
/*prize*/
|
|
144
|
+
l[13].name + ""
|
|
145
|
+
), g, w;
|
|
146
|
+
return {
|
|
147
|
+
c() {
|
|
148
|
+
e = z("div"), t = z("p"), n = z("span"), i = _(r), c = b(), p = _(s), o = _(": "), g = _(d), w = b(), u(n, "class", "PrizeRank"), u(n, "part", "PrizeRank"), u(t, "class", "PrizeText"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
|
|
149
|
+
l[15]), u(e, "part", "Prize Prize" + /*index*/
|
|
150
|
+
l[15]);
|
|
151
|
+
},
|
|
152
|
+
m(h, y) {
|
|
153
|
+
k(h, e, y), f(e, t), f(t, n), f(n, i), f(t, c), f(t, p), f(t, o), f(t, g), f(e, w);
|
|
154
|
+
},
|
|
155
|
+
p(h, y) {
|
|
156
|
+
y & /*prizes*/
|
|
157
|
+
2 && r !== (r = /*prize*/
|
|
158
|
+
(h[13].count > 1 ? `${/*prize*/
|
|
159
|
+
h[13].rank}~${/*prize*/
|
|
160
|
+
h[13].rank + /*prize*/
|
|
161
|
+
h[13].count - 1}` : (
|
|
162
|
+
/*prize*/
|
|
163
|
+
h[13].rank
|
|
164
|
+
)) + "") && v(i, r), y & /*$_*/
|
|
165
|
+
4 && s !== (s = /*$_*/
|
|
166
|
+
h[2]("place") + "") && v(p, s), y & /*prizes*/
|
|
167
|
+
2 && d !== (d = /*prize*/
|
|
168
|
+
h[13].name + "") && v(g, d);
|
|
169
|
+
},
|
|
170
|
+
d(h) {
|
|
171
|
+
h && F(e);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
function J(l) {
|
|
176
|
+
let e, t, n, r, i, c = (
|
|
177
|
+
/*$_*/
|
|
178
|
+
l[2]("prizes") + ""
|
|
179
|
+
), s, p, o = (
|
|
180
|
+
/*prizes*/
|
|
181
|
+
l[1] && L(l)
|
|
182
|
+
);
|
|
183
|
+
return {
|
|
184
|
+
c() {
|
|
185
|
+
e = z("div"), t = z("div"), n = z("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', r = b(), i = z("p"), s = _(c), p = b(), o && o.c(), u(n, "class", "TournamentPrizesIconWrapper"), u(n, "part", "TournamentPrizesIconWrapper"), u(i, "class", "PrizesTitle"), u(i, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes"), u(e, "part", "TournamentPrizes");
|
|
186
|
+
},
|
|
187
|
+
m(d, g) {
|
|
188
|
+
k(d, e, g), f(e, t), f(t, n), f(t, r), f(t, i), f(i, s), f(e, p), o && o.m(e, null), l[7](e);
|
|
189
|
+
},
|
|
190
|
+
p(d, [g]) {
|
|
191
|
+
g & /*$_*/
|
|
192
|
+
4 && c !== (c = /*$_*/
|
|
193
|
+
d[2]("prizes") + "") && v(s, c), /*prizes*/
|
|
194
|
+
d[1] ? o ? o.p(d, g) : (o = L(d), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
|
|
195
|
+
},
|
|
196
|
+
i: M,
|
|
197
|
+
o: M,
|
|
198
|
+
d(d) {
|
|
199
|
+
d && F(e), o && o.d(), l[7](null);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function G(l, e, t) {
|
|
204
|
+
let n;
|
|
205
|
+
O(l, q, (a) => t(2, n = a));
|
|
206
|
+
let { tourid: r = "" } = e, { clientstyling: i = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, p, o;
|
|
207
|
+
const d = () => {
|
|
208
|
+
fetch(s).then((m) => m.json()).then((m) => {
|
|
209
|
+
Object.keys(m).forEach((P) => {
|
|
210
|
+
N(P, m[P]);
|
|
211
|
+
});
|
|
212
|
+
}).catch((m) => {
|
|
213
|
+
console.log(m);
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
Object.keys(S).forEach((a) => {
|
|
217
|
+
N(a, S[a]);
|
|
218
|
+
});
|
|
219
|
+
const g = (a) => {
|
|
220
|
+
a.data && a.data.type == `TournamentPrizes_${r}` && t(1, o = a.data.prizes);
|
|
221
|
+
}, w = () => {
|
|
222
|
+
let a = document.createElement("style");
|
|
223
|
+
a.innerHTML = i, p.appendChild(a);
|
|
224
|
+
}, h = () => {
|
|
225
|
+
let a = new URL(c), m = document.createElement("style");
|
|
226
|
+
fetch(a.href).then((P) => P.text()).then((P) => {
|
|
227
|
+
m.innerHTML = P, setTimeout(
|
|
228
|
+
() => {
|
|
229
|
+
p.appendChild(m);
|
|
230
|
+
},
|
|
231
|
+
1
|
|
232
|
+
), setTimeout(
|
|
233
|
+
() => {
|
|
234
|
+
},
|
|
235
|
+
500
|
|
236
|
+
);
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
U(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", g, !1), () => {
|
|
240
|
+
window.removeEventListener("message", g);
|
|
241
|
+
}));
|
|
242
|
+
function y(a) {
|
|
243
|
+
W[a ? "unshift" : "push"](() => {
|
|
244
|
+
p = a, t(0, p);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
return l.$$set = (a) => {
|
|
248
|
+
"tourid" in a && t(3, r = a.tourid), "clientstyling" in a && t(4, i = a.clientstyling), "clientstylingurl" in a && t(5, c = a.clientstylingurl), "translationurl" in a && t(6, s = a.translationurl);
|
|
249
|
+
}, l.$$.update = () => {
|
|
250
|
+
l.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
251
|
+
17 && p && i && w(), l.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
252
|
+
33 && p && c && h(), l.$$.dirty & /*translationurl*/
|
|
253
|
+
64 && s && d();
|
|
254
|
+
}, [
|
|
255
|
+
p,
|
|
256
|
+
o,
|
|
257
|
+
n,
|
|
258
|
+
r,
|
|
259
|
+
i,
|
|
260
|
+
c,
|
|
261
|
+
s,
|
|
262
|
+
y
|
|
263
|
+
];
|
|
264
|
+
}
|
|
265
|
+
class K extends Z {
|
|
266
|
+
constructor(e) {
|
|
267
|
+
super(), j(
|
|
268
|
+
this,
|
|
269
|
+
e,
|
|
270
|
+
G,
|
|
271
|
+
J,
|
|
272
|
+
R,
|
|
273
|
+
{
|
|
274
|
+
tourid: 3,
|
|
275
|
+
clientstyling: 4,
|
|
276
|
+
clientstylingurl: 5,
|
|
277
|
+
translationurl: 6
|
|
278
|
+
},
|
|
279
|
+
D
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
get tourid() {
|
|
283
|
+
return this.$$.ctx[3];
|
|
284
|
+
}
|
|
285
|
+
set tourid(e) {
|
|
286
|
+
this.$$set({ tourid: e }), T();
|
|
287
|
+
}
|
|
288
|
+
get clientstyling() {
|
|
289
|
+
return this.$$.ctx[4];
|
|
290
|
+
}
|
|
291
|
+
set clientstyling(e) {
|
|
292
|
+
this.$$set({ clientstyling: e }), T();
|
|
293
|
+
}
|
|
294
|
+
get clientstylingurl() {
|
|
295
|
+
return this.$$.ctx[5];
|
|
296
|
+
}
|
|
297
|
+
set clientstylingurl(e) {
|
|
298
|
+
this.$$set({ clientstylingurl: e }), T();
|
|
299
|
+
}
|
|
300
|
+
get translationurl() {
|
|
301
|
+
return this.$$.ctx[6];
|
|
302
|
+
}
|
|
303
|
+
set translationurl(e) {
|
|
304
|
+
this.$$set({ translationurl: e }), T();
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
I(K, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
308
|
+
export {
|
|
309
|
+
K as default
|
|
310
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-Dxc2MrGE.cjs")).then(e=>e.CasinoTournamentsListController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-DQkRGglO.js").then((e) => e.L).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-list-controller",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/casino-tournaments-list-controller.cjs",
|
|
6
6
|
"module": "es2015/casino-tournaments-list-controller.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./es2015/casino-tournaments-list-controller.cjs": "./es2015/casino-tournaments-list-controller.cjs"
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
15
|
"es2015/",
|
|
16
16
|
"components"
|
|
17
17
|
],
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-BI700b_r.cjs");function x(i,t){e.addMessages(i,t)}function ee(i){e.$locale.set(i)}const E={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function te(i){e.append_styles(i,"svelte-7aiybk",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.svelte-7aiybk.svelte-7aiybk,.svelte-7aiybk.svelte-7aiybk::before,.svelte-7aiybk.svelte-7aiybk::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a.svelte-7aiybk.svelte-7aiybk{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail.svelte-7aiybk.svelte-7aiybk{position:relative}.Thumbnail.svelte-7aiybk .CardImg.svelte-7aiybk{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail.svelte-7aiybk .CardImg.CardImgFinished.svelte-7aiybk{filter:grayscale(1)}.Thumbnail.svelte-7aiybk .Status.svelte-7aiybk{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail.svelte-7aiybk .Enrolled.svelte-7aiybk{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail.svelte-7aiybk .Details.svelte-7aiybk{padding:10px 20px 0}.Thumbnail.svelte-7aiybk .Details .Title.svelte-7aiybk{font-size:18px;padding-bottom:10px}.Thumbnail.svelte-7aiybk .Details .Date.svelte-7aiybk{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail.svelte-7aiybk .Details .ScoreCriteria.svelte-7aiybk{font-size:12px;padding-bottom:4px}.Thumbnail.svelte-7aiybk .Details .Games.svelte-7aiybk{font-size:12px}')}function P(i){let t,a,n,l,u,s;return{c(){t=e.element("div"),a=e.text(i[13]),e.attr(t,"class",n="Status "+i[15]+" svelte-7aiybk"),e.attr(t,"part",l="Status "+i[15])},m(o,b){e.insert(o,t,b),e.append(t,a),u||(s=e.action_destroyer(i[18].call(null,t)),u=!0)},p(o,b){b[0]&8192&&e.set_data(a,o[13]),b[0]&32768&&n!==(n="Status "+o[15]+" svelte-7aiybk")&&e.attr(t,"class",n),b[0]&32768&&l!==(l="Status "+o[15])&&e.attr(t,"part",l)},d(o){o&&e.detach(t),u=!1,s()}}}function L(i){let t,a=i[5]&&B(i);return{c(){a&&a.c(),t=e.empty()},m(n,l){a&&a.m(n,l),e.insert(n,t,l)},p(n,l){n[5]?a?a.p(n,l):(a=B(n),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},d(n){n&&e.detach(t),a&&a.d(n)}}}function B(i){let t,a=i[16]("enrolled")+"",n;return{c(){t=e.element("div"),n=e.text(a),e.attr(t,"class","Enrolled svelte-7aiybk"),e.attr(t,"part","Enrolled")},m(l,u){e.insert(l,t,u),e.append(t,n)},p(l,u){u[0]&65536&&a!==(a=l[16]("enrolled")+"")&&e.set_data(n,a)},d(l){l&&e.detach(t)}}}function ae(i){let t,a,n,l,u;return{c(){t=e.element("div"),e.attr(t,"class",a="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk"),e.attr(t,"part",n="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(i[18].call(null,t)),l=!0)},p(s,o){o[0]&1&&a!==(a="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk")&&e.attr(t,"class",a),o[0]&1&&n!==(n="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",n)},d(s){s&&e.detach(t),l=!1,u()}}}function ie(i){let t,a,n,l,u;return{c(){t=e.element("div"),e.attr(t,"class",a="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk"),e.attr(t,"part",n="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('"+i[4]+"')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(i[18].call(null,t)),l=!0)},p(s,o){o[0]&1&&a!==(a="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":"")+" svelte-7aiybk")&&e.attr(t,"class",a),o[0]&1&&n!==(n="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",n),o[0]&16&&e.set_style(t,"background-image","url('"+s[4]+"')")},d(s){s&&e.detach(t),l=!1,u()}}}function U(i){let t,a,n,l,u;return{c(){t=e.element("div"),a=e.text(i[11]),e.attr(t,"class","Date svelte-7aiybk"),e.attr(t,"part","Date")},m(s,o){e.insert(s,t,o),e.append(t,a),l||(u=e.action_destroyer(n=i[17].call(null,t,i[2])),l=!0)},p(s,o){o[0]&2048&&e.set_data(a,s[11]),n&&e.is_function(n.update)&&o[0]&4&&n.update.call(null,s[2])},d(s){s&&e.detach(t),l=!1,u()}}}function G(i){let t,a,n=i[16]("scoreCriteria")+"",l,u,s,o,b,S=i[16]("minbet")+"",g,f,C,T,y,c,m,d=i[16]("seegames")+"",p,D,k,A=i[16]("here")+"",j,M,w,R;return{c(){t=e.element("div"),a=e.element("p"),l=e.text(n),u=e.text(`:
|
|
2
|
-
|
|
3
|
-
`),s=e.element("span"),o=e.text(i[14]),b=e.text(`
|
|
4
|
-
(`),g=e.text(S),f=e.space(),C=e.text(i[6]),T=e.text(")"),y=e.space(),c=e.element("div"),m=e.element("p"),p=e.text(d),D=e.space(),k=e.element("a"),j=e.text(A),e.attr(s,"part","ScoreCriteriaSpan"),e.attr(s,"class","svelte-7aiybk"),e.attr(a,"part","ScoreCriteriaP"),e.attr(a,"class","svelte-7aiybk"),e.attr(t,"class","ScoreCriteria svelte-7aiybk"),e.attr(t,"part","ScoreCriteria"),e.attr(k,"part","GamesAnchor"),e.attr(k,"href",i[8]),e.attr(k,"target",M=i[9]==="true"?"_self":"_blank"),e.attr(k,"class","svelte-7aiybk"),e.attr(m,"part","GamesP"),e.attr(m,"class","svelte-7aiybk"),e.attr(c,"class","Games svelte-7aiybk"),e.attr(c,"part","Games")},m(h,_){e.insert(h,t,_),e.append(t,a),e.append(a,l),e.append(a,u),e.append(a,s),e.append(s,o),e.append(a,b),e.append(a,g),e.append(a,f),e.append(a,C),e.append(a,T),e.insert(h,y,_),e.insert(h,c,_),e.append(c,m),e.append(m,p),e.append(m,D),e.append(m,k),e.append(k,j),w||(R=[e.action_destroyer(i[19].call(null,s)),e.listen(k,"click",i[28])],w=!0)},p(h,_){_[0]&65536&&n!==(n=h[16]("scoreCriteria")+"")&&e.set_data(l,n),_[0]&16384&&e.set_data(o,h[14]),_[0]&65536&&S!==(S=h[16]("minbet")+"")&&e.set_data(g,S),_[0]&64&&e.set_data(C,h[6]),_[0]&65536&&d!==(d=h[16]("seegames")+"")&&e.set_data(p,d),_[0]&65536&&A!==(A=h[16]("here")+"")&&e.set_data(j,A),_[0]&256&&e.attr(k,"href",h[8]),_[0]&512&&M!==(M=h[9]==="true"?"_self":"_blank")&&e.attr(k,"target",M)},d(h){h&&(e.detach(t),e.detach(y),e.detach(c)),w=!1,e.run_all(R)}}}function re(i){let t,a,n,l,u,s,o,b,S,g=i[0]&&P(i),f=i[7]=="true"&&L(i);function C(d,p){return d[4]?ie:ae}let T=C(i),y=T(i),c=i[2]&&U(i),m=i[12]&&G(i);return{c(){t=e.element("div"),g&&g.c(),a=e.space(),f&&f.c(),n=e.space(),y.c(),l=e.space(),u=e.element("div"),s=e.element("div"),o=e.text(i[1]),b=e.space(),c&&c.c(),S=e.space(),m&&m.c(),e.attr(s,"class","Title svelte-7aiybk"),e.attr(s,"part","Title"),e.attr(u,"class","Details svelte-7aiybk"),e.attr(u,"part","Details"),e.attr(t,"class","Thumbnail svelte-7aiybk"),e.attr(t,"part","Thumbnail")},m(d,p){e.insert(d,t,p),g&&g.m(t,null),e.append(t,a),f&&f.m(t,null),e.append(t,n),y.m(t,null),e.append(t,l),e.append(t,u),e.append(u,s),e.append(s,o),e.append(u,b),c&&c.m(u,null),e.append(u,S),m&&m.m(u,null),i[29](t)},p(d,p){d[0]?g?g.p(d,p):(g=P(d),g.c(),g.m(t,a)):g&&(g.d(1),g=null),d[7]=="true"?f?f.p(d,p):(f=L(d),f.c(),f.m(t,n)):f&&(f.d(1),f=null),T===(T=C(d))&&y?y.p(d,p):(y.d(1),y=T(d),y&&(y.c(),y.m(t,l))),p[0]&2&&e.set_data(o,d[1]),d[2]?c?c.p(d,p):(c=U(d),c.c(),c.m(u,S)):c&&(c.d(1),c=null),d[12]?m?m.p(d,p):(m=G(d),m.c(),m.m(u,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),g&&g.d(),f&&f.d(),y.d(),c&&c.d(),m&&m.d(),i[29](null)}}}function ne(i,t,a){let n;e.component_subscribe(i,e.$format,r=>a(16,n=r));let{session:l=""}=t,{userid:u=""}=t,{title:s=""}=t,{startdate:o=""}=t,{status:b=""}=t,{tourid:S=""}=t,{thumbnail:g=""}=t,{userenrolled:f=""}=t,{scorecriteria:C=""}=t,{minbetcount:T=""}=t,{showenrolled:y="false"}=t,{gameurl:c=""}=t,{lang:m="en"}=t,{keepbrowsercontext:d="false"}=t,{clientstyling:p=""}=t,{clientstylingurl:D=""}=t,{translationurl:k=""}=t,A,j="",M=!1,w="",R="",h="";const _=()=>{fetch(k).then(v=>v.json()).then(v=>{Object.keys(v).forEach(J=>{x(J,v[J])})}).catch(v=>{console.log(v)})};Object.keys(E).forEach(r=>{x(r,E[r])});const N=r=>{r.data&&(r.data&&r.data.type=="SessionID"&&a(12,M=!0),r.data.type==`TournamentStatus_${S}`&&a(0,b=r.data.status))},z=()=>{const r={month:"long"};let v=new Date(o),J=new Intl.DateTimeFormat("en",r).format(v),Q=v.getDate(),X=v.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const $=()=>n(b==="Running"?"startedAt":"startingAt");a(11,j=`${Q} `+n(`${J}`)+", "+$()+` ${X}`)},F=()=>{b=="Unstarted"&&(a(13,w=n("scheduled")),a(15,h="StatusUnstarted")),b=="Running"&&(a(13,w=n("ongoing")),a(15,h="StatusRunning")),(b=="Closed"||b=="Closing")&&a(13,w=n("finished")),b=="Closed"&&a(15,h="StatusClosed"),b=="Closing"&&a(15,h="StatusClosing")},I=()=>{C=="BetCount"&&a(14,R=n("betCount")),C=="MaxWinStakeRatio"&&a(14,R=n("maxWinStakeRatio")),C=="WinStakeRatio"&&a(14,R=n("winStakeRatio")),C=="Stake"&&a(14,R=n("stake"))},O=(r,v)=>{window.postMessage({type:"tournamentGamesClicked",tourId:v},window.location.href)},H=()=>{l.length>0&&l!="false"?a(12,M=!0):a(12,M=!1)},V=()=>{let r=document.createElement("style");r.innerHTML=p,A.appendChild(r)},q=()=>{let r=new URL(D),v=document.createElement("style");fetch(r.href).then(J=>J.text()).then(J=>{v.innerHTML=J,setTimeout(()=>{A.appendChild(v)},1),setTimeout(()=>{},500)})};e.onMount(()=>(setTimeout(()=>W(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N)}));const W=()=>{ee(m),I(),F(),o&&z()},Y=()=>O();function Z(r){e.binding_callbacks[r?"unshift":"push"](()=>{A=r,a(10,A)})}return i.$$set=r=>{"session"in r&&a(21,l=r.session),"userid"in r&&a(22,u=r.userid),"title"in r&&a(1,s=r.title),"startdate"in r&&a(2,o=r.startdate),"status"in r&&a(0,b=r.status),"tourid"in r&&a(3,S=r.tourid),"thumbnail"in r&&a(4,g=r.thumbnail),"userenrolled"in r&&a(5,f=r.userenrolled),"scorecriteria"in r&&a(23,C=r.scorecriteria),"minbetcount"in r&&a(6,T=r.minbetcount),"showenrolled"in r&&a(7,y=r.showenrolled),"gameurl"in r&&a(8,c=r.gameurl),"lang"in r&&a(24,m=r.lang),"keepbrowsercontext"in r&&a(9,d=r.keepbrowsercontext),"clientstyling"in r&&a(25,p=r.clientstyling),"clientstylingurl"in r&&a(26,D=r.clientstylingurl),"translationurl"in r&&a(27,k=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&33555456&&A&&p&&V(),i.$$.dirty[0]&67109888&&A&&D&&q(),i.$$.dirty[0]&134217728&&k&&_(),i.$$.dirty[0]&2097152&&l&&H(),i.$$.dirty[0]&1&&b&&F(),i.$$.dirty[0]&16777218&&s&&m&&W(),i.$$.dirty[0]&4&&o&&z(),i.$$.dirty[0]&8388608&&C&&I()},[b,s,o,S,g,f,T,y,c,d,A,j,M,w,R,h,n,z,F,I,O,l,u,C,m,p,D,k,Y,Z]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ne,re,e.safe_not_equal,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},te,[-1,-1])}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(K,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=K;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";var Q=(n,t,e)=>new Promise((r,o)=>{var s=m=>{try{u(e.next(m))}catch(d){o(d)}},l=m=>{try{u(e.throw(m))}catch(d){o(d)}},u=m=>m.done?r(m.value):Promise.resolve(m.value).then(s,l);u((e=e.apply(n,t)).next())});const i=require("./CasinoTournamentsListController-BI700b_r.cjs");function T(n){return typeof n=="function"}function Le(n){var t=function(r){Error.call(r),r.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $=Le(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
-
`+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var H=function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=i.__values(l),m=u.next();!m.done;m=u.next()){var d=m.value;d.remove(this)}}catch(p){t={error:p}}finally{try{m&&!m.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else l.remove(this);var f=this.initialTeardown;if(T(f))try{f()}catch(p){s=p instanceof $?p.errors:[p]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var z=i.__values(v),g=z.next();!g.done;g=z.next()){var b=g.value;try{ke(b)}catch(p){s=s!=null?s:[],p instanceof $?s=i.__spreadArray(i.__spreadArray([],i.__read(s)),i.__read(p.errors)):s.push(p)}}}catch(p){r={error:p}}finally{try{g&&!g.done&&(o=z.return)&&o.call(z)}finally{if(r)throw r.error}}}if(s)throw new $(s)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ke(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),Re=H.EMPTY;function Ue(n){return n instanceof H||n&&"closed"in n&&T(n.remove)&&T(n.add)&&T(n.unsubscribe)}function ke(n){T(n)?n():n.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},We={setTimeout:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,i.__spreadArray([n,t],i.__read(e)))},clearTimeout:function(n){var t=We.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function lt(n){We.setTimeout(function(){throw n})}function Te(){}function W(n){n()}var He=function(n){i.__extends(t,n);function t(e){var r=n.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Ue(e)&&e.add(r)):r.destination=ct,r}return t.create=function(e,r,o){return new ie(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(H),at=Function.prototype.bind;function ee(n,t){return at.call(n,t)}var ut=function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){J(r)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){J(r)}else J(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){J(e)}},n}(),ie=function(n){i.__extends(t,n);function t(e,r,o){var s=n.call(this)||this,l;if(T(e)||!e)l={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var u;s&&Je.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return s.unsubscribe()},l={next:e.next&&ee(e.next,u),error:e.error&&ee(e.error,u),complete:e.complete&&ee(e.complete,u)}):l=e}return s.destination=new ut(l),s}return t}(He);function J(n){lt(n)}function mt(n){throw n}var ct={closed:!0,next:Te,error:mt,complete:Te},ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dt(n){return n}function ht(n){return n.length===0?dt:n.length===1?n[0]:function(e){return n.reduce(function(r,o){return o(r)},e)}}var Fe=function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var o=this,s=_t(t)?t:new ie(t,e,r);return W(function(){var l=o,u=l.operator,m=l.source;s.add(u?u.call(s,m):m?o._subscribe(s):o._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var r=this;return e=Se(e),new e(function(o,s){var l=new ie({next:function(u){try{t(u)}catch(m){s(m),l.unsubscribe()}},error:s,complete:o});r.subscribe(l)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[ft]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ht(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=Se(t),new t(function(r,o){var s;e.subscribe(function(l){return s=l},function(l){return o(l)},function(){return r(s)})})},n.create=function(t){return new n(t)},n}();function Se(n){var t;return(t=n!=null?n:Je.Promise)!==null&&t!==void 0?t:Promise}function pt(n){return n&&T(n.next)&&T(n.error)&&T(n.complete)}function _t(n){return n&&n instanceof He||pt(n)&&Ue(n)}var vt=Le(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),qe=function(n){i.__extends(t,n);function t(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Ee(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new vt},t.prototype.next=function(e){var r=this;W(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var l=i.__values(r.currentObservers),u=l.next();!u.done;u=l.next()){var m=u.value;m.next(e)}}catch(d){o={error:d}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;W(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,l=o.isStopped,u=o.observers;return s||l?Re:(this.currentObservers=null,u.push(e),new H(function(){r.currentObservers=null,te(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,l=r.isStopped;o?e.error(s):l&&e.complete()},t.prototype.asObservable=function(){var e=new Fe;return e.source=this,e},t.create=function(e,r){return new Ee(e,r)},t}(Fe),Ee=function(n){i.__extends(t,n);function t(e,r){var o=n.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Re},t}(qe),Ge={now:function(){return(Ge.delegate||Date).now()},delegate:void 0},gt=function(n){i.__extends(t,n);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=Ge);var s=n.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,l=r._infiniteTimeWindow,u=r._timestampProvider,m=r._windowTime;o||(s.push(e),!l&&s.push(u.now()+m)),this._trimBuffer(),n.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,l=o._buffer,u=l.slice(),m=0;m<u.length&&!e.closed;m+=s?1:2)e.next(u[m]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,l=e._infiniteTimeWindow,u=(l?1:2)*r;if(r<1/0&&u<s.length&&s.splice(0,s.length-u),!l){for(var m=o.now(),d=0,f=1;f<s.length&&s[f]<=m;f+=2)d=f;d&&s.splice(0,d+1)}},t}(qe);const Ce=[],je={},bt=(n,t=0)=>{if(Ce.indexOf(n)==-1){const e=new gt(t);je[n]=e,Ce.push(n)}return je[n]};window.emWidgets={topic:bt};const ne=n=>n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function zt({withLocale:n,translations:t}){i.$locale.subscribe(e=>{e==null&&(i.$dictionary.set(t),i.$locale.set(n))})}function Pe(n,t){i.addMessages(n,t)}const Be={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}};if(typeof window!="undefined"){let n=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BiHKMblV.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-BKtOkvAC.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-DgXBrfnZ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...e){try{return t.apply(this,e)}catch(r){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"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-Ba6b2okX.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function wt(n){i.append_styles(n,"svelte-m5izi2",'.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before,.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.TournamentCard.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.CardMaxWidth.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{max-width:600px}.TournamentButtons.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons.svelte-m5izi2 button.svelte-m5izi2.svelte-m5izi2{cursor:pointer}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.EnrolledButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:hover{opacity:0.7}.JoinButton.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%}.ErrorText.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::after,.ph-item.svelte-m5izi2 .svelte-m5izi2.svelte-m5izi2::before{box-sizing:border-box}.ph-item.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:svelte-m5izi2-phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item.svelte-m5izi2>.svelte-m5izi2.svelte-m5izi2{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row.svelte-m5izi2 div.svelte-m5izi2.svelte-m5izi2{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row.svelte-m5izi2 .big.svelte-m5izi2.svelte-m5izi2{height:20px}.ph-row.svelte-m5izi2 .empty.svelte-m5izi2.svelte-m5izi2{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 33.3333333333%}.ph-col-6.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 50%}.ph-col-8.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 66.6666666667%}.ph-col-12.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{flex:0 0 100%}[class*=ph-col].svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{direction:ltr}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.ph-row.svelte-m5izi2{margin-top:0}[class*=ph-col].svelte-m5izi2>.svelte-m5izi2+.svelte-m5izi2{margin-top:7.5px}.ph-picture.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes svelte-m5izi2-phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner.svelte-m5izi2 circle.svelte-m5izi2.svelte-m5izi2{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:svelte-m5izi2-spinner 2s linear infinite;-moz-animation:svelte-m5izi2-spinner 2s linear infinite;-ms-animation:svelte-m5izi2-spinner 2s linear infinite;-o-animation:svelte-m5izi2-spinner 2s linear infinite;animation:svelte-m5izi2-spinner 2s linear infinite}@-webkit-keyframes svelte-m5izi2-spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes svelte-m5izi2-spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes svelte-m5izi2-spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes svelte-m5izi2-spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes svelte-m5izi2-spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes svelte-m5izi2-fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes svelte-m5izi2-fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadein 2s linear forwards;animation:svelte-m5izi2-fadein 2s linear forwards}.elementToFadeOut.svelte-m5izi2.svelte-m5izi2.svelte-m5izi2{-webkit-animation:svelte-m5izi2-fadeout 0.1s ease-out forwards;animation:svelte-m5izi2-fadeout 0.1s ease-out forwards}')}function yt(n){let t,e,r,o,s,l,u,m,d,f=n[14]&&xe(n);function v(c,h){if(!c[14])return St;if(c[23]!="Closed"&&c[23]!="Closing")return Ft;if(c[3]=="true")return Tt}let z=v(n),g=z&&z(n),b=(n[17]||n[19])&&Ie(n),p=n[4]=="true"&&Me(n);return{c(){t=i.element("div"),e=i.element("casino-tournaments-thumbnail"),r=i.space(),f&&f.c(),o=i.space(),s=i.element("div"),g&&g.c(),l=i.space(),b&&b.c(),u=i.space(),p&&p.c(),i.set_custom_element_data(e,"session",n[0]),i.set_custom_element_data(e,"userid",n[1]),i.set_custom_element_data(e,"title",n[20]),i.set_custom_element_data(e,"status",n[23]),i.set_custom_element_data(e,"startdate",n[21]),i.set_custom_element_data(e,"tourid",n[24]),i.set_custom_element_data(e,"scorecriteria",n[27]),i.set_custom_element_data(e,"minbetcount",n[28]),i.set_custom_element_data(e,"thumbnail",n[25]),i.set_custom_element_data(e,"showenrolled",n[5]),i.set_custom_element_data(e,"gameurl",n[30]),i.set_custom_element_data(e,"userenrolled",n[26]),i.set_custom_element_data(e,"clientstyling",n[10]),i.set_custom_element_data(e,"clientstylingurl",n[11]),i.set_custom_element_data(e,"translationurl",n[12]),i.set_custom_element_data(e,"lang",n[8]),i.set_custom_element_data(e,"keepbrowsercontext",n[9]),i.set_custom_element_data(e,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),i.set_custom_element_data(e,"class","svelte-m5izi2"),i.attr(s,"class","TournamentButtons svelte-m5izi2"),i.attr(s,"part","TournamentButtons"),i.attr(t,"class",m="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[31]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2"),i.attr(t,"part",d="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[31]?"elementToFadeOut":"elementToFadeIn")+" "+(n[31]?"elementToFadeOut":"elementToFadeIn"))},m(c,h){i.insert(c,t,h),i.append(t,e),i.append(t,r),f&&f.m(t,null),i.append(t,o),i.append(t,s),g&&g.m(s,null),i.append(t,l),b&&b.m(t,null),i.append(t,u),p&&p.m(t,null)},p(c,h){h[0]&1&&i.set_custom_element_data(e,"session",c[0]),h[0]&2&&i.set_custom_element_data(e,"userid",c[1]),h[0]&1048576&&i.set_custom_element_data(e,"title",c[20]),h[0]&8388608&&i.set_custom_element_data(e,"status",c[23]),h[0]&2097152&&i.set_custom_element_data(e,"startdate",c[21]),h[0]&16777216&&i.set_custom_element_data(e,"tourid",c[24]),h[0]&134217728&&i.set_custom_element_data(e,"scorecriteria",c[27]),h[0]&268435456&&i.set_custom_element_data(e,"minbetcount",c[28]),h[0]&33554432&&i.set_custom_element_data(e,"thumbnail",c[25]),h[0]&32&&i.set_custom_element_data(e,"showenrolled",c[5]),h[0]&1073741824&&i.set_custom_element_data(e,"gameurl",c[30]),h[0]&67108864&&i.set_custom_element_data(e,"userenrolled",c[26]),h[0]&1024&&i.set_custom_element_data(e,"clientstyling",c[10]),h[0]&2048&&i.set_custom_element_data(e,"clientstylingurl",c[11]),h[0]&4096&&i.set_custom_element_data(e,"translationurl",c[12]),h[0]&256&&i.set_custom_element_data(e,"lang",c[8]),h[0]&512&&i.set_custom_element_data(e,"keepbrowsercontext",c[9]),c[14]?f?f.p(c,h):(f=xe(c),f.c(),f.m(t,o)):f&&(f.d(1),f=null),z===(z=v(c))&&g?g.p(c,h):(g&&g.d(1),g=z&&z(c),g&&(g.c(),g.m(s,null))),c[17]||c[19]?b?b.p(c,h):(b=Ie(c),b.c(),b.m(t,u)):b&&(b.d(1),b=null),c[4]=="true"?p?p.p(c,h):(p=Me(c),p.c(),p.m(t,null)):p&&(p.d(1),p=null),h[0]&192|h[1]&1&&m!==(m="TournamentCard "+(c[6]?"CardMaxWidth":"")+(c[7]?"CardFullSize":"")+" "+(c[31]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2")&&i.attr(t,"class",m),h[0]&192|h[1]&1&&d!==(d="TournamentCard "+(c[6]?"CardMaxWidth":"")+(c[7]?"CardFullSize":"")+" "+(c[31]?"elementToFadeOut":"elementToFadeIn")+" "+(c[31]?"elementToFadeOut":"elementToFadeIn"))&&i.attr(t,"part",d)},d(c){c&&i.detach(t),f&&f.d(),g&&g.d(),b&&b.d(),p&&p.d()}}}function kt(n){let t,e,r,o;return{c(){t=i.element("div"),e=i.element("div"),e.innerHTML='<div class="ph-col-12 svelte-m5izi2" part="ph-col-12"><div class="ph-picture svelte-m5izi2" part="ph-picture"></div> <div class="ph-row svelte-m5izi2" part="ph-row"><div class="ph-col-6 big svelte-m5izi2" part="ph-col-6 big"></div> <div class="ph-col-4 empty big svelte-m5izi2" part="ph-col-4 empty big"></div> <div class="ph-col-4 svelte-m5izi2" part="ph-col-4"></div> <div class="ph-col-8 empty svelte-m5izi2" part="ph-col-8 empty"></div> <div class="ph-col-6 svelte-m5izi2" part="ph-col-6"></div> <div class="ph-col-6 empty svelte-m5izi2" part="ph-col-6 empty"></div> <div class="ph-col-12 svelte-m5izi2" part="ph-col-12"></div></div></div>',i.attr(e,"class","ph-item svelte-m5izi2"),i.attr(e,"part","ph-item"),i.attr(t,"class",r="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[31]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2"),i.attr(t,"part",o="TournamentCard "+(n[6]?"CardMaxWidth":"")+(n[7]?"CardFullSize":"")+" "+(n[31]?"elementToFadeOut":"elementToFadeIn")+" "+(n[31]?"elementToFadeOut":"elementToFadeIn"))},m(s,l){i.insert(s,t,l),i.append(t,e)},p(s,l){l[0]&192|l[1]&1&&r!==(r="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn")+" svelte-m5izi2")&&i.attr(t,"class",r),l[0]&192|l[1]&1&&o!==(o="TournamentCard "+(s[6]?"CardMaxWidth":"")+(s[7]?"CardFullSize":"")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn")+" "+(s[31]?"elementToFadeOut":"elementToFadeIn"))&&i.attr(t,"part",o)},d(s){s&&i.detach(t)}}}function xe(n){let t,e,r=n[24]&&Oe(n);return{c(){r&&r.c(),t=i.space(),e=i.element("casino-tournaments-thumbnail-duration"),i.set_custom_element_data(e,"clientstyling",n[10]),i.set_custom_element_data(e,"clientstylingurl",n[11]),i.set_custom_element_data(e,"translationurl",n[12]),i.set_custom_element_data(e,"status",n[23]),i.set_custom_element_data(e,"startdate",n[21]),i.set_custom_element_data(e,"lang",n[8]),i.set_custom_element_data(e,"enddate",n[22]),i.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),i.set_custom_element_data(e,"class","svelte-m5izi2")},m(o,s){r&&r.m(o,s),i.insert(o,t,s),i.insert(o,e,s)},p(o,s){o[24]?r?r.p(o,s):(r=Oe(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&1024&&i.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&i.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&i.set_custom_element_data(e,"translationurl",o[12]),s[0]&8388608&&i.set_custom_element_data(e,"status",o[23]),s[0]&2097152&&i.set_custom_element_data(e,"startdate",o[21]),s[0]&256&&i.set_custom_element_data(e,"lang",o[8]),s[0]&4194304&&i.set_custom_element_data(e,"enddate",o[22])},d(o){o&&(i.detach(t),i.detach(e)),r&&r.d(o)}}}function Oe(n){let t,e,r,o;return{c(){t=i.element("casino-tournaments-thumbnail-prizes"),i.set_custom_element_data(t,"tourid",n[24]),i.set_custom_element_data(t,"clientstyling",n[10]),i.set_custom_element_data(t,"clientstylingurl",n[11]),i.set_custom_element_data(t,"translationurl",n[12]),i.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper"),i.set_custom_element_data(t,"class","svelte-m5izi2")},m(s,l){i.insert(s,t,l),r||(o=i.action_destroyer(e=n[37].call(null,t,n[24])),r=!0)},p(s,l){l[0]&16777216&&i.set_custom_element_data(t,"tourid",s[24]),l[0]&1024&&i.set_custom_element_data(t,"clientstyling",s[10]),l[0]&2048&&i.set_custom_element_data(t,"clientstylingurl",s[11]),l[0]&4096&&i.set_custom_element_data(t,"translationurl",s[12]),e&&i.is_function(e.update)&&l[0]&16777216&&e.update.call(null,s[24])},d(s){s&&i.detach(t),r=!1,o()}}}function Tt(n){let t,e=n[32]("details")+"",r,o,s;return{c(){t=i.element("button"),r=i.text(e),i.attr(t,"class","DetailsLargeButton svelte-m5izi2"),i.attr(t,"part","DetailsLargeButton")},m(l,u){i.insert(l,t,u),i.append(t,r),o||(s=i.listen(t,"click",n[51]),o=!0)},p(l,u){u[1]&2&&e!==(e=l[32]("details")+"")&&i.set_data(r,e)},d(l){l&&i.detach(t),o=!1,s()}}}function Ft(n){let t,e,r=n[3]=="true"&&De(n);function o(u,m){return u[26]?Ct:Et}let s=o(n),l=s(n);return{c(){r&&r.c(),t=i.space(),l.c(),e=i.empty()},m(u,m){r&&r.m(u,m),i.insert(u,t,m),l.m(u,m),i.insert(u,e,m)},p(u,m){u[3]=="true"?r?r.p(u,m):(r=De(u),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(u))&&l?l.p(u,m):(l.d(1),l=s(u),l&&(l.c(),l.m(e.parentNode,e)))},d(u){u&&(i.detach(t),i.detach(e)),r&&r.d(u),l.d(u)}}}function St(n){let t,e=n[32]("login")+"",r,o,s,l=n[32]("register")+"",u,m,d;return{c(){t=i.element("button"),r=i.text(e),o=i.space(),s=i.element("button"),u=i.text(l),i.attr(t,"class","LoginButton svelte-m5izi2"),i.attr(t,"part","LoginButton"),i.attr(s,"class","RegisterButton svelte-m5izi2"),i.attr(s,"part","RegisterButton")},m(f,v){i.insert(f,t,v),i.append(t,r),i.insert(f,o,v),i.insert(f,s,v),i.append(s,u),m||(d=[i.listen(t,"click",n[47]),i.listen(s,"click",n[48])],m=!0)},p(f,v){v[1]&2&&e!==(e=f[32]("login")+"")&&i.set_data(r,e),v[1]&2&&l!==(l=f[32]("register")+"")&&i.set_data(u,l)},d(f){f&&(i.detach(t),i.detach(o),i.detach(s)),m=!1,i.run_all(d)}}}function De(n){let t,e=n[32]("details")+"",r,o,s;return{c(){t=i.element("button"),r=i.text(e),i.attr(t,"class","DetailsButton svelte-m5izi2"),i.attr(t,"part","DetailsButton")},m(l,u){i.insert(l,t,u),i.append(t,r),o||(s=i.listen(t,"click",n[49]),o=!0)},p(l,u){u[1]&2&&e!==(e=l[32]("details")+"")&&i.set_data(r,e)},d(l){l&&i.detach(t),o=!1,s()}}}function Et(n){let t,e,r,o,s;function l(d,f){return d[16]==!0?Pt:jt}let u=l(n),m=u(n);return{c(){t=i.element("button"),m.c(),i.attr(t,"class",e="JoinButton "+(n[7]?"JoinButtonFullSize":"")+" svelte-m5izi2"),i.attr(t,"part",r="JoinButton "+(n[7]?"JoinButtonFullSize":"")),t.disabled=n[17]},m(d,f){i.insert(d,t,f),m.m(t,null),o||(s=i.listen(t,"click",n[50]),o=!0)},p(d,f){u===(u=l(d))&&m?m.p(d,f):(m.d(1),m=u(d),m&&(m.c(),m.m(t,null))),f[0]&128&&e!==(e="JoinButton "+(d[7]?"JoinButtonFullSize":"")+" svelte-m5izi2")&&i.attr(t,"class",e),f[0]&128&&r!==(r="JoinButton "+(d[7]?"JoinButtonFullSize":""))&&i.attr(t,"part",r),f[0]&131072&&(t.disabled=d[17])},d(d){d&&i.detach(t),m.d(),o=!1,s()}}}function Ct(n){let t,e=n[3]=="true"&&Ae(n);return{c(){e&&e.c(),t=i.empty()},m(r,o){e&&e.m(r,o),i.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=Ae(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&i.detach(t),e&&e.d(r)}}}function jt(n){let t,e=n[32]("join")+"",r,o,s,l,u,m,d,f;return{c(){t=i.element("span"),r=i.text(e),o=i.space(),s=i.svg_element("svg"),l=i.svg_element("defs"),u=i.svg_element("style"),m=i.text(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),d=i.svg_element("g"),f=i.svg_element("path"),i.attr(t,"part","JoinButtonSpan"),i.attr(t,"class","svelte-m5izi2"),i.attr(u,"class","svelte-m5izi2"),i.attr(l,"class","svelte-m5izi2"),i.attr(f,"class","a svelte-m5izi2"),i.attr(f,"part","a JoinButtonSvgA"),i.attr(f,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),i.attr(f,"transform","translate(26 26) rotate(180)"),i.attr(d,"transform","translate(26 26) rotate(180)"),i.attr(d,"class","svelte-m5izi2"),i.attr(s,"part","JoinButtonSvg"),i.attr(s,"xmlns","http://www.w3.org/2000/svg"),i.attr(s,"width","26"),i.attr(s,"height","26"),i.attr(s,"viewBox","0 0 26 26"),i.attr(s,"class","svelte-m5izi2")},m(v,z){i.insert(v,t,z),i.append(t,r),i.insert(v,o,z),i.insert(v,s,z),i.append(s,l),i.append(l,u),i.append(u,m),i.append(s,d),i.append(d,f)},p(v,z){z[1]&2&&e!==(e=v[32]("join")+"")&&i.set_data(r,e)},d(v){v&&(i.detach(t),i.detach(o),i.detach(s))}}}function Pt(n){let t,e;return{c(){t=i.svg_element("svg"),e=i.svg_element("circle"),i.attr(e,"cx","20"),i.attr(e,"cy","20"),i.attr(e,"r","18"),i.attr(e,"class","svelte-m5izi2"),i.attr(t,"class","spinner svelte-m5izi2"),i.attr(t,"part","spinner")},m(r,o){i.insert(r,t,o),i.append(t,e)},p:i.noop,d(r){r&&i.detach(t)}}}function Ae(n){let t,e=n[32]("enrolled")+"",r;return{c(){t=i.element("button"),r=i.text(e),i.attr(t,"class","EnrolledButton svelte-m5izi2"),i.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){i.insert(o,t,s),i.append(t,r)},p(o,s){s[1]&2&&e!==(e=o[32]("enrolled")+"")&&i.set_data(r,e)},d(o){o&&i.detach(t)}}}function Ie(n){let t,e=n[32]("joinerror")+"",r,o,s;return{c(){t=i.element("span"),r=i.text(e),o=i.space(),s=i.text(n[18]),i.attr(t,"class","ErrorText svelte-m5izi2"),i.attr(t,"part","ErrorText")},m(l,u){i.insert(l,t,u),i.append(t,r),i.append(t,o),i.append(t,s)},p(l,u){u[1]&2&&e!==(e=l[32]("joinerror")+"")&&i.set_data(r,e),u[0]&262144&&i.set_data(s,l[18])},d(l){l&&i.detach(t)}}}function Me(n){let t;return{c(){t=i.element("casino-tournaments-thumbnail-games-slider"),i.set_custom_element_data(t,"clientstyling",n[10]),i.set_custom_element_data(t,"clientstylingurl",n[11]),i.set_custom_element_data(t,"translationurl",n[12]),i.set_custom_element_data(t,"tournamenturl",n[2]),i.set_custom_element_data(t,"lang",n[8]),i.set_custom_element_data(t,"scrollby","2"),i.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton"),i.set_custom_element_data(t,"class","svelte-m5izi2")},m(e,r){i.insert(e,t,r)},p(e,r){r[0]&1024&&i.set_custom_element_data(t,"clientstyling",e[10]),r[0]&2048&&i.set_custom_element_data(t,"clientstylingurl",e[11]),r[0]&4096&&i.set_custom_element_data(t,"translationurl",e[12]),r[0]&4&&i.set_custom_element_data(t,"tournamenturl",e[2]),r[0]&256&&i.set_custom_element_data(t,"lang",e[8])},d(e){e&&i.detach(t)}}}function Bt(n){let t;function e(s,l){if(s[15])return kt;if(s[20])return yt}let r=e(n),o=r&&r(n);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","svelte-m5izi2")},m(s,l){i.insert(s,t,l),o&&o.m(t,null),n[52](t)},p(s,l){r===(r=e(s))&&o?o.p(s,l):(o&&o.d(1),o=r&&r(s),o&&(o.c(),o.m(t,null)))},i:i.noop,o:i.noop,d(s){s&&i.detach(t),o&&o.d(),n[52](null)}}}function xt(n,t,e){let r;i.component_subscribe(n,i.$format,a=>e(32,r=a));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:l=""}=t,{touridx:u}=t,{endpoint:m=""}=t,{showdetails:d=""}=t,{showslider:f=""}=t,{showenrolled:v=""}=t,{maxwidth:z=""}=t,{fullsize:g=""}=t,{lang:b=""}=t,{loginevent:p=""}=t,{registerevent:c=""}=t,{loginurl:h=""}=t,{registerurl:B=""}=t,{currency:q=""}=t,{keepbrowsercontext:re="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:O=""}=t,{translationurl:D=""}=t,{tournamentinfo:A}=t,F,E=!1,I="",C=!0,se=window.navigator.userAgent,M=!1,L=!1,oe="There was an error while trying to join the tournament",G=!1,le,ae,ue,j,k,me,Y,ce,fe,de=[],K=[],he="#",V,R=!1;zt({withLocale:"en",translations:{}});const Ke=()=>{fetch(D).then(_=>_.json()).then(_=>{Object.keys(_).forEach(w=>{Pe(w,_[w])})}).catch(_=>{console.log(_)})};Object.keys(Be).forEach(a=>{Pe(a,Be[a])});const pe=a=>{Ve(a),N(a),ze(this,k)},_e=a=>{if(a.data&&a.data.type=="UserSessionID"&&(e(14,E=!0),I=a.data.session),a.data.type=="UpdateTournamentView"){let _=a.data.tournamentData;if(k&&k!=_.id)return;pe(_)}if(a.data&&a.data.type==`UpdateSingleTournament_${u}`){let _=a.data.tournamentData,w=u<4?u*100:Math.random()*300+300;e(31,R=u==1),setTimeout(()=>{e(31,R=!0),e(24,k=_.id),pe(_)},w),setTimeout(()=>{e(31,R=!1)},w+200)}},Ve=a=>{a.state!=j&&(e(23,j=a.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},ve=()=>{p&&(window.postMessage({type:p,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),h&&(window.location=h)},ge=()=>{c&&(window.postMessage({type:c,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},X=a=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:a,showLeaderboard:!0},window.location.href)},be=(a,_)=>Q(this,null,function*(){var ye;e(17,L=!1),e(19,G=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:a},window.location.href),e(16,M=!0);let w=new URL(`${m}/v1/bonus/claim`),U=new Headers,S={};w.searchParams.append("language",b),w.searchParams.append("platform",ne(se)),U.append("Content-Type","application/json"),U.append("X-SessionID",I),_&&_.length>=1&&(S={language:b,bonusCode:_[0].code,currency:q,type:"tournament"});let ot={method:"PUT",headers:U,body:JSON.stringify(S)};const we=()=>{e(16,M=!1),e(26,Y=!0)},Z=y=>{e(16,M=!1),y&&e(18,oe=y),e(17,L=!0)},P=yield Q(this,null,function*(){let y;try{y=yield fetch(w,ot),y=yield y.json()}catch(At){Z()}return y});if(P)if(P.success==!0)we();else if(P.errorMessage.match("VersionMismatchException")){let y;y=yield fetch(`${m}/tournaments/${k}`,{headers:{"X-SessionID":o}}),y=yield y.json(),(ye=y==null?void 0:y.item)!=null&&ye.playerEnrolled?we():(Z(P.errorMessage),e(19,G=!0),e(17,L=!1))}else Z(P.errorMessage)}),ze=(a,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,prizes:de},window.location.href)},N=a=>{a&&(e(20,le=a.nameOrTitle||""),e(21,ae=a.startTime),e(22,ue=a.endTime),e(23,j=a.state),e(24,k=a.id),e(25,me=a.thumbnail),e(26,Y=a.playerEnrolled==="true"||a.playerEnrolled==!0||!1),e(27,ce=a.scoreCriteria),e(28,fe=a.minBetCount),de=a.prizes,e(29,K=a.wallets||[]),e(30,he=a.termsUrl||"#"))},Xe=a=>{e(15,C=!0);let _=new URL(a),w=new Headers;_.searchParams.append("language",b),_.searchParams.append("platform",ne(se)),E&&w.append("X-SessionID",I),fetch(_,{method:"GET",headers:w}).then(S=>S.json()).then(S=>{e(15,C=!1),N(S.item)})},Ne=()=>{o.length>0&&o!="false"?(I=o,e(14,E=!0)):e(14,E=!1)},Ze=()=>{if(A){N(A);return}e(15,C=!0),Xe(l)},Qe=()=>{let a=document.createElement("style");a.innerHTML=x,F.appendChild(a)},$e=()=>{let a=new URL(O),_=document.createElement("style");fetch(a.href).then(w=>w.text()).then(w=>{_.innerHTML=w,setTimeout(()=>{F.appendChild(_)},1),setTimeout(()=>{},500)})};i.onMount(()=>(e(15,C=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const et=()=>ve(),tt=()=>ge(),it=()=>X(k),nt=()=>be(k,K),rt=()=>X(k);function st(a){i.binding_callbacks[a?"unshift":"push"](()=>{F=a,e(13,F)})}return n.$$set=a=>{"session"in a&&e(0,o=a.session),"userid"in a&&e(1,s=a.userid),"tournamenturl"in a&&e(2,l=a.tournamenturl),"touridx"in a&&e(38,u=a.touridx),"endpoint"in a&&e(39,m=a.endpoint),"showdetails"in a&&e(3,d=a.showdetails),"showslider"in a&&e(4,f=a.showslider),"showenrolled"in a&&e(5,v=a.showenrolled),"maxwidth"in a&&e(6,z=a.maxwidth),"fullsize"in a&&e(7,g=a.fullsize),"lang"in a&&e(8,b=a.lang),"loginevent"in a&&e(40,p=a.loginevent),"registerevent"in a&&e(41,c=a.registerevent),"loginurl"in a&&e(42,h=a.loginurl),"registerurl"in a&&e(43,B=a.registerurl),"currency"in a&&e(44,q=a.currency),"keepbrowsercontext"in a&&e(9,re=a.keepbrowsercontext),"clientstyling"in a&&e(10,x=a.clientstyling),"clientstylingurl"in a&&e(11,O=a.clientstylingurl),"translationurl"in a&&e(12,D=a.translationurl),"tournamentinfo"in a&&e(45,A=a.tournamentinfo)},n.$$.update=()=>{n.$$.dirty[0]&9216&&F&&x&&Qe(),n.$$.dirty[0]&10240&&F&&O&&$e(),n.$$.dirty[0]&4096&&D&&Ke(),n.$$.dirty[0]&1&&o&&Ne(),n.$$.dirty[0]&260&&e(46,V=l&&b),n.$$.dirty[1]&32768&&V&&Ze()},[o,s,l,d,f,v,z,g,b,re,x,O,D,F,E,C,M,L,oe,G,le,ae,ue,j,k,me,Y,ce,fe,K,he,R,r,ve,ge,X,be,ze,u,m,p,c,h,B,q,A,V,et,tt,it,nt,rt,st]}class Ye extends i.SvelteComponent{constructor(t){super(),i.init(this,t,xt,Bt,i.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},wt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),i.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),i.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),i.flush()}get touridx(){return this.$$.ctx[38]}set touridx(t){this.$$set({touridx:t}),i.flush()}get endpoint(){return this.$$.ctx[39]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),i.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),i.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),i.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),i.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),i.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),i.flush()}get loginevent(){return this.$$.ctx[40]}set loginevent(t){this.$$set({loginevent:t}),i.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),i.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),i.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),i.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),i.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),i.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),i.flush()}}i.create_custom_element(Ye,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);const Ot=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Ot;exports.getDevice=ne;
|