@everymatrix/casino-tournaments-list-controller 1.0.69 → 1.0.71
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-CWLfTxVT.js +6960 -0
- package/components/CasinoTournamentsListController-CnWQaXVa.cjs +15 -0
- package/components/CasinoTournamentsThumbnail-BFbGzpfu.cjs +4 -0
- package/components/CasinoTournamentsThumbnail-mcL0JjXT.js +885 -0
- package/components/CasinoTournamentsThumbnailController-Bn8kjfIU.js +1841 -0
- package/components/CasinoTournamentsThumbnailController-CwJ7_v2t.cjs +3 -0
- package/components/CasinoTournamentsThumbnailDuration-Dl-XBfi1.js +515 -0
- package/components/CasinoTournamentsThumbnailDuration-eGvQ1qhM.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-BO_HF7nJ.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-BscFDLzy.js +457 -0
- package/components/CasinoTournamentsThumbnailPrizes-BESiwP4Y.js +330 -0
- package/components/CasinoTournamentsThumbnailPrizes-CEt0S6e4.cjs +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { a as A, S as Z, i as j, f as w, c as I, s as R, b as B, e as f, d as b, t as P, g as u, h as k, j as g, k as _, n as H, l as F, m as O, o as U, F as M, J as V, w as W, y as q } from "./CasinoTournamentsListController-CWLfTxVT.js";
|
|
2
|
+
function N(l, e) {
|
|
3
|
+
A(l, e);
|
|
4
|
+
}
|
|
5
|
+
const S = {
|
|
6
|
+
en: {
|
|
7
|
+
tournamentsPrizes: {
|
|
8
|
+
prizes: "Prizes",
|
|
9
|
+
noprizes: "No available prizes",
|
|
10
|
+
place: "place"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
hr: {
|
|
14
|
+
tournamentsPrizes: {
|
|
15
|
+
prizes: "Nagrade",
|
|
16
|
+
noprizes: "Nema dostupnih nagrada",
|
|
17
|
+
place: "mjesto"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"zh-hk": {
|
|
21
|
+
tournamentsPrizes: {
|
|
22
|
+
prizes: "獎品",
|
|
23
|
+
noprizes: "沒有可用的獎品",
|
|
24
|
+
place: "位置"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
fr: {
|
|
28
|
+
tournamentsPrizes: {
|
|
29
|
+
prizes: "Prix",
|
|
30
|
+
noprizes: "Aucun prix disponible",
|
|
31
|
+
place: "place"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
ro: {
|
|
35
|
+
tournamentsPrizes: {
|
|
36
|
+
prizes: "Premii",
|
|
37
|
+
noprizes: "Nu sunt disponibile premii",
|
|
38
|
+
place: "poziție"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
tr: {
|
|
42
|
+
tournamentsPrizes: {
|
|
43
|
+
prizes: "Ödüller",
|
|
44
|
+
noprizes: "Mevcut ödül yok",
|
|
45
|
+
place: "yer"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
el: {
|
|
49
|
+
tournamentsPrizes: {
|
|
50
|
+
prizes: "Έπαθλα",
|
|
51
|
+
noprizes: "Μη διαθέσιμα έπαθλα",
|
|
52
|
+
place: "θέση"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
es: {
|
|
56
|
+
tournamentsPrizes: {
|
|
57
|
+
prizes: "Premios",
|
|
58
|
+
noprizes: "No hay premios disponibles",
|
|
59
|
+
place: "lugar"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
hu: {
|
|
63
|
+
tournamentsPrizes: {
|
|
64
|
+
prizes: "Nyeremények",
|
|
65
|
+
noprizes: "Nincs elérhető nyeremény",
|
|
66
|
+
place: "helyezés"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
pt: {
|
|
70
|
+
tournamentsPrizes: {
|
|
71
|
+
prizes: "Prêmios",
|
|
72
|
+
noprizes: "Não há prêmios disponíveis",
|
|
73
|
+
place: "place"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function D(l) {
|
|
78
|
+
B(l, "svelte-ypey7g", ".svelte-ypey7g.svelte-ypey7g,.svelte-ypey7g.svelte-ypey7g::before,.svelte-ypey7g.svelte-ypey7g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span.svelte-ypey7g.svelte-ypey7g{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes.svelte-ypey7g.svelte-ypey7g{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle.svelte-ypey7g.svelte-ypey7g{padding-top:8px}.Prizes.svelte-ypey7g.svelte-ypey7g{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize.svelte-ypey7g.svelte-ypey7g{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0.svelte-ypey7g span.svelte-ypey7g{color:#FECF00}.Prize.Prize1.svelte-ypey7g span.svelte-ypey7g{color:#D9B206}.Prize.Prize2.svelte-ypey7g span.svelte-ypey7g{color:#9B8007}.Prize.svelte-ypey7g p.svelte-ypey7g{color:var(--emfe-w-color-white, #FFFFFF)}");
|
|
79
|
+
}
|
|
80
|
+
function E(l, e, t) {
|
|
81
|
+
const s = l.slice();
|
|
82
|
+
return s[13] = e[t], s[15] = t, s;
|
|
83
|
+
}
|
|
84
|
+
function L(l) {
|
|
85
|
+
let e, t = M(
|
|
86
|
+
/*prizes*/
|
|
87
|
+
l[1]
|
|
88
|
+
), s = [];
|
|
89
|
+
for (let n = 0; n < t.length; n += 1)
|
|
90
|
+
s[n] = x(E(l, t, n));
|
|
91
|
+
let i = null;
|
|
92
|
+
return t.length || (i = C(l)), {
|
|
93
|
+
c() {
|
|
94
|
+
e = f("div");
|
|
95
|
+
for (let n = 0; n < s.length; n += 1)
|
|
96
|
+
s[n].c();
|
|
97
|
+
i && i.c(), u(e, "class", "Prizes svelte-ypey7g"), u(e, "part", "Prizes");
|
|
98
|
+
},
|
|
99
|
+
m(n, p) {
|
|
100
|
+
k(n, e, p);
|
|
101
|
+
for (let r = 0; r < s.length; r += 1)
|
|
102
|
+
s[r] && s[r].m(e, null);
|
|
103
|
+
i && i.m(e, null);
|
|
104
|
+
},
|
|
105
|
+
p(n, p) {
|
|
106
|
+
if (p & /*prizes, $_*/
|
|
107
|
+
6) {
|
|
108
|
+
t = M(
|
|
109
|
+
/*prizes*/
|
|
110
|
+
n[1]
|
|
111
|
+
);
|
|
112
|
+
let r;
|
|
113
|
+
for (r = 0; r < t.length; r += 1) {
|
|
114
|
+
const c = E(n, t, r);
|
|
115
|
+
s[r] ? s[r].p(c, p) : (s[r] = x(c), s[r].c(), s[r].m(e, null));
|
|
116
|
+
}
|
|
117
|
+
for (; r < s.length; r += 1)
|
|
118
|
+
s[r].d(1);
|
|
119
|
+
s.length = t.length, !t.length && i ? i.p(n, p) : t.length ? i && (i.d(1), i = null) : (i = C(n), i.c(), i.m(e, null));
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
d(n) {
|
|
123
|
+
n && F(e), V(s, n), i && i.d();
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function C(l) {
|
|
128
|
+
let e, t = (
|
|
129
|
+
/*$_*/
|
|
130
|
+
l[2]("tournamentsPrizes.noprizes") + ""
|
|
131
|
+
), s;
|
|
132
|
+
return {
|
|
133
|
+
c() {
|
|
134
|
+
e = f("p"), s = P(t), u(e, "class", "svelte-ypey7g");
|
|
135
|
+
},
|
|
136
|
+
m(i, n) {
|
|
137
|
+
k(i, e, n), g(e, s);
|
|
138
|
+
},
|
|
139
|
+
p(i, n) {
|
|
140
|
+
n & /*$_*/
|
|
141
|
+
4 && t !== (t = /*$_*/
|
|
142
|
+
i[2]("tournamentsPrizes.noprizes") + "") && _(s, t);
|
|
143
|
+
},
|
|
144
|
+
d(i) {
|
|
145
|
+
i && F(e);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function x(l) {
|
|
150
|
+
let e, t, s, i = (
|
|
151
|
+
/*prize*/
|
|
152
|
+
(l[13].count > 1 ? `${/*prize*/
|
|
153
|
+
l[13].rank}~${/*prize*/
|
|
154
|
+
l[13].rank + /*prize*/
|
|
155
|
+
l[13].count - 1}` : (
|
|
156
|
+
/*prize*/
|
|
157
|
+
l[13].rank
|
|
158
|
+
)) + ""
|
|
159
|
+
), n, p, r = (
|
|
160
|
+
/*$_*/
|
|
161
|
+
l[2]("tournamentsPrizes.place") + ""
|
|
162
|
+
), c, o, y = (
|
|
163
|
+
/*prize*/
|
|
164
|
+
l[13].name + ""
|
|
165
|
+
), m, T;
|
|
166
|
+
return {
|
|
167
|
+
c() {
|
|
168
|
+
e = f("div"), t = f("p"), s = f("span"), n = P(i), p = b(), c = P(r), o = P(": "), m = P(y), T = b(), u(s, "class", "PrizeRank svelte-ypey7g"), u(s, "part", "PrizeRank"), u(t, "class", "PrizeText svelte-ypey7g"), u(t, "part", "PrizeText"), u(e, "class", "Prize Prize" + /*index*/
|
|
169
|
+
l[15] + " svelte-ypey7g"), u(e, "part", "Prize Prize" + /*index*/
|
|
170
|
+
l[15]);
|
|
171
|
+
},
|
|
172
|
+
m(z, h) {
|
|
173
|
+
k(z, e, h), g(e, t), g(t, s), g(s, n), g(t, p), g(t, c), g(t, o), g(t, m), g(e, T);
|
|
174
|
+
},
|
|
175
|
+
p(z, h) {
|
|
176
|
+
h & /*prizes*/
|
|
177
|
+
2 && i !== (i = /*prize*/
|
|
178
|
+
(z[13].count > 1 ? `${/*prize*/
|
|
179
|
+
z[13].rank}~${/*prize*/
|
|
180
|
+
z[13].rank + /*prize*/
|
|
181
|
+
z[13].count - 1}` : (
|
|
182
|
+
/*prize*/
|
|
183
|
+
z[13].rank
|
|
184
|
+
)) + "") && _(n, i), h & /*$_*/
|
|
185
|
+
4 && r !== (r = /*$_*/
|
|
186
|
+
z[2]("tournamentsPrizes.place") + "") && _(c, r), h & /*prizes*/
|
|
187
|
+
2 && y !== (y = /*prize*/
|
|
188
|
+
z[13].name + "") && _(m, y);
|
|
189
|
+
},
|
|
190
|
+
d(z) {
|
|
191
|
+
z && F(e);
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function J(l) {
|
|
196
|
+
let e, t, s, i, n, p = (
|
|
197
|
+
/*$_*/
|
|
198
|
+
l[2]("tournamentsPrizes.prizes") + ""
|
|
199
|
+
), r, c, o = (
|
|
200
|
+
/*prizes*/
|
|
201
|
+
l[1] && L(l)
|
|
202
|
+
);
|
|
203
|
+
return {
|
|
204
|
+
c() {
|
|
205
|
+
e = f("div"), t = f("div"), s = f("span"), s.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454" class="svelte-ypey7g"><defs class="svelte-ypey7g"><style class="svelte-ypey7g">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-ypey7g" 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>', i = b(), n = f("p"), r = P(p), c = b(), o && o.c(), u(s, "class", "TournamentPrizesIconWrapper svelte-ypey7g"), u(s, "part", "TournamentPrizesIconWrapper"), u(n, "class", "PrizesTitle svelte-ypey7g"), u(n, "part", "PrizesTitle"), u(t, "class", "TournamentPrizesIconSection svelte-ypey7g"), u(t, "part", "TournamentPrizesIconSection"), u(e, "class", "TournamentPrizes svelte-ypey7g"), u(e, "part", "TournamentPrizes");
|
|
206
|
+
},
|
|
207
|
+
m(y, m) {
|
|
208
|
+
k(y, e, m), g(e, t), g(t, s), g(t, i), g(t, n), g(n, r), g(e, c), o && o.m(e, null), l[7](e);
|
|
209
|
+
},
|
|
210
|
+
p(y, [m]) {
|
|
211
|
+
m & /*$_*/
|
|
212
|
+
4 && p !== (p = /*$_*/
|
|
213
|
+
y[2]("tournamentsPrizes.prizes") + "") && _(r, p), /*prizes*/
|
|
214
|
+
y[1] ? o ? o.p(y, m) : (o = L(y), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
|
|
215
|
+
},
|
|
216
|
+
i: H,
|
|
217
|
+
o: H,
|
|
218
|
+
d(y) {
|
|
219
|
+
y && F(e), o && o.d(), l[7](null);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function G(l, e, t) {
|
|
224
|
+
let s;
|
|
225
|
+
O(l, q, (a) => t(2, s = a));
|
|
226
|
+
let { tourid: i = "" } = e, { clientstyling: n = "" } = e, { clientstylingurl: p = "" } = e, { translationurl: r = "" } = e, c, o;
|
|
227
|
+
const y = () => {
|
|
228
|
+
fetch(r).then((d) => d.json()).then((d) => {
|
|
229
|
+
Object.keys(d).forEach((v) => {
|
|
230
|
+
N(v, d[v]);
|
|
231
|
+
});
|
|
232
|
+
}).catch((d) => {
|
|
233
|
+
console.log(d);
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
Object.keys(S).forEach((a) => {
|
|
237
|
+
N(a, S[a]);
|
|
238
|
+
});
|
|
239
|
+
const m = (a) => {
|
|
240
|
+
a.data && a.data.type == `TournamentPrizes_${i}` && t(1, o = a.data.prizes);
|
|
241
|
+
}, T = () => {
|
|
242
|
+
let a = document.createElement("style");
|
|
243
|
+
a.innerHTML = n, c.appendChild(a);
|
|
244
|
+
}, z = () => {
|
|
245
|
+
let a = new URL(p), d = document.createElement("style");
|
|
246
|
+
fetch(a.href).then((v) => v.text()).then((v) => {
|
|
247
|
+
d.innerHTML = v, setTimeout(
|
|
248
|
+
() => {
|
|
249
|
+
c.appendChild(d);
|
|
250
|
+
},
|
|
251
|
+
1
|
|
252
|
+
), setTimeout(
|
|
253
|
+
() => {
|
|
254
|
+
},
|
|
255
|
+
500
|
|
256
|
+
);
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
U(() => (window.addEventListener("message", m, !1), () => {
|
|
260
|
+
window.removeEventListener("message", m);
|
|
261
|
+
}));
|
|
262
|
+
function h(a) {
|
|
263
|
+
W[a ? "unshift" : "push"](() => {
|
|
264
|
+
c = a, t(0, c);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return l.$$set = (a) => {
|
|
268
|
+
"tourid" in a && t(3, i = a.tourid), "clientstyling" in a && t(4, n = a.clientstyling), "clientstylingurl" in a && t(5, p = a.clientstylingurl), "translationurl" in a && t(6, r = a.translationurl);
|
|
269
|
+
}, l.$$.update = () => {
|
|
270
|
+
l.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
271
|
+
17 && c && n && T(), l.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
272
|
+
33 && c && p && z(), l.$$.dirty & /*translationurl*/
|
|
273
|
+
64 && r && y();
|
|
274
|
+
}, [
|
|
275
|
+
c,
|
|
276
|
+
o,
|
|
277
|
+
s,
|
|
278
|
+
i,
|
|
279
|
+
n,
|
|
280
|
+
p,
|
|
281
|
+
r,
|
|
282
|
+
h
|
|
283
|
+
];
|
|
284
|
+
}
|
|
285
|
+
class K extends Z {
|
|
286
|
+
constructor(e) {
|
|
287
|
+
super(), j(
|
|
288
|
+
this,
|
|
289
|
+
e,
|
|
290
|
+
G,
|
|
291
|
+
J,
|
|
292
|
+
R,
|
|
293
|
+
{
|
|
294
|
+
tourid: 3,
|
|
295
|
+
clientstyling: 4,
|
|
296
|
+
clientstylingurl: 5,
|
|
297
|
+
translationurl: 6
|
|
298
|
+
},
|
|
299
|
+
D
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
get tourid() {
|
|
303
|
+
return this.$$.ctx[3];
|
|
304
|
+
}
|
|
305
|
+
set tourid(e) {
|
|
306
|
+
this.$$set({ tourid: e }), w();
|
|
307
|
+
}
|
|
308
|
+
get clientstyling() {
|
|
309
|
+
return this.$$.ctx[4];
|
|
310
|
+
}
|
|
311
|
+
set clientstyling(e) {
|
|
312
|
+
this.$$set({ clientstyling: e }), w();
|
|
313
|
+
}
|
|
314
|
+
get clientstylingurl() {
|
|
315
|
+
return this.$$.ctx[5];
|
|
316
|
+
}
|
|
317
|
+
set clientstylingurl(e) {
|
|
318
|
+
this.$$set({ clientstylingurl: e }), w();
|
|
319
|
+
}
|
|
320
|
+
get translationurl() {
|
|
321
|
+
return this.$$.ctx[6];
|
|
322
|
+
}
|
|
323
|
+
set translationurl(e) {
|
|
324
|
+
this.$$set({ translationurl: e }), w();
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
I(K, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
328
|
+
export {
|
|
329
|
+
K as default
|
|
330
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-CnWQaXVa.cjs");function v(r,t){e.addMessages(r,t)}const P={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function F(r){e.append_styles(r,"svelte-ypey7g",".svelte-ypey7g.svelte-ypey7g,.svelte-ypey7g.svelte-ypey7g::before,.svelte-ypey7g.svelte-ypey7g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span.svelte-ypey7g.svelte-ypey7g{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes.svelte-ypey7g.svelte-ypey7g{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle.svelte-ypey7g.svelte-ypey7g{padding-top:8px}.Prizes.svelte-ypey7g.svelte-ypey7g{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize.svelte-ypey7g.svelte-ypey7g{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0.svelte-ypey7g span.svelte-ypey7g{color:#FECF00}.Prize.Prize1.svelte-ypey7g span.svelte-ypey7g{color:#D9B206}.Prize.Prize2.svelte-ypey7g span.svelte-ypey7g{color:#9B8007}.Prize.svelte-ypey7g p.svelte-ypey7g{color:var(--emfe-w-color-white, #FFFFFF)}")}function _(r,t,n){const s=r.slice();return s[13]=t[n],s[15]=n,s}function T(r){let t,n=e.ensure_array_like(r[1]),s=[];for(let l=0;l<n.length;l+=1)s[l]=w(_(r,n,l));let i=null;return n.length||(i=b(r)),{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();i&&i.c(),e.attr(t,"class","Prizes svelte-ypey7g"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let a=0;a<s.length;a+=1)s[a]&&s[a].m(t,null);i&&i.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let a;for(a=0;a<n.length;a+=1){const u=_(l,n,a);s[a]?s[a].p(u,c):(s[a]=w(u),s[a].c(),s[a].m(t,null))}for(;a<s.length;a+=1)s[a].d(1);s.length=n.length,!n.length&&i?i.p(l,c):n.length?i&&(i.d(1),i=null):(i=b(l),i.c(),i.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(s,l),i&&i.d()}}}function b(r){let t,n=r[2]("tournamentsPrizes.noprizes")+"",s;return{c(){t=e.element("p"),s=e.text(n),e.attr(t,"class","svelte-ypey7g")},m(i,l){e.insert(i,t,l),e.append(t,s)},p(i,l){l&4&&n!==(n=i[2]("tournamentsPrizes.noprizes")+"")&&e.set_data(s,n)},d(i){i&&e.detach(t)}}}function w(r){let t,n,s,i=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,a=r[2]("tournamentsPrizes.place")+"",u,o,y=r[13].name+"",d,h;return{c(){t=e.element("div"),n=e.element("p"),s=e.element("span"),l=e.text(i),c=e.space(),u=e.text(a),o=e.text(": "),d=e.text(y),h=e.space(),e.attr(s,"class","PrizeRank svelte-ypey7g"),e.attr(s,"part","PrizeRank"),e.attr(n,"class","PrizeText svelte-ypey7g"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]+" svelte-ypey7g"),e.attr(t,"part","Prize Prize"+r[15])},m(g,z){e.insert(g,t,z),e.append(t,n),e.append(n,s),e.append(s,l),e.append(n,c),e.append(n,u),e.append(n,o),e.append(n,d),e.append(t,h)},p(g,z){z&2&&i!==(i=(g[13].count>1?`${g[13].rank}~${g[13].rank+g[13].count-1}`:g[13].rank)+"")&&e.set_data(l,i),z&4&&a!==(a=g[2]("tournamentsPrizes.place")+"")&&e.set_data(u,a),z&2&&y!==(y=g[13].name+"")&&e.set_data(d,y)},d(g){g&&e.detach(t)}}}function M(r){let t,n,s,i,l,c=r[2]("tournamentsPrizes.prizes")+"",a,u,o=r[1]&&T(r);return{c(){t=e.element("div"),n=e.element("div"),s=e.element("span"),s.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454" class="svelte-ypey7g"><defs class="svelte-ypey7g"><style class="svelte-ypey7g">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-ypey7g" 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>',i=e.space(),l=e.element("p"),a=e.text(c),u=e.space(),o&&o.c(),e.attr(s,"class","TournamentPrizesIconWrapper svelte-ypey7g"),e.attr(s,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle svelte-ypey7g"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection svelte-ypey7g"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes svelte-ypey7g"),e.attr(t,"part","TournamentPrizes")},m(y,d){e.insert(y,t,d),e.append(t,n),e.append(n,s),e.append(n,i),e.append(n,l),e.append(l,a),e.append(t,u),o&&o.m(t,null),r[7](t)},p(y,[d]){d&4&&c!==(c=y[2]("tournamentsPrizes.prizes")+"")&&e.set_data(a,c),y[1]?o?o.p(y,d):(o=T(y),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(y){y&&e.detach(t),o&&o.d(),r[7](null)}}}function S(r,t,n){let s;e.component_subscribe(r,e.$format,p=>n(2,s=p));let{tourid:i=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:a=""}=t,u,o;const y=()=>{fetch(a).then(m=>m.json()).then(m=>{Object.keys(m).forEach(f=>{v(f,m[f])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(p=>{v(p,P[p])});const d=p=>{p.data&&p.data.type==`TournamentPrizes_${i}`&&n(1,o=p.data.prizes)},h=()=>{let p=document.createElement("style");p.innerHTML=l,u.appendChild(p)},g=()=>{let p=new URL(c),m=document.createElement("style");fetch(p.href).then(f=>f.text()).then(f=>{m.innerHTML=f,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function z(p){e.binding_callbacks[p?"unshift":"push"](()=>{u=p,n(0,u)})}return r.$$set=p=>{"tourid"in p&&n(3,i=p.tourid),"clientstyling"in p&&n(4,l=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,a=p.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&h(),r.$$.dirty&33&&u&&c&&g(),r.$$.dirty&64&&a&&y()},[u,o,s,i,l,c,a,z]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,S,M,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},F)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-list-controller",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/casino-tournaments-list-controller.cjs",
|
|
6
6
|
"module": "es2015/casino-tournaments-list-controller.js",
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./es2015/casino-tournaments-list-controller.cjs": "./es2015/casino-tournaments-list-controller.cjs"
|
|
13
13
|
},
|
|
14
|
-
|
|
15
|
-
"es2015/"
|
|
14
|
+
"files": [
|
|
15
|
+
"es2015/",
|
|
16
|
+
"components"
|
|
16
17
|
],
|
|
17
18
|
"publishConfig": {
|
|
18
19
|
"access": "public"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@everymatrix/casino-tournaments-thumbnail-controller": "1.0.
|
|
22
|
+
"@everymatrix/casino-tournaments-thumbnail-controller": "1.0.71"
|
|
22
23
|
}
|
|
23
24
|
}
|