@everymatrix/casino-tournaments-controller 1.44.0 → 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoTournamentsController-CQ5C1jDl.cjs +14 -0
- package/components/CasinoTournamentsController-Cr8b4j7l.js +5627 -0
- package/components/CasinoTournamentsFilterController-BtuK-ddv.cjs +1 -0
- package/components/CasinoTournamentsFilterController-Chy_sE0V.js +529 -0
- package/components/CasinoTournamentsListController-BinvLjvx.cjs +13 -0
- package/components/CasinoTournamentsListController-DXHqP9An.js +3103 -0
- package/components/CasinoTournamentsThumbnail-BFS6MlWH.js +865 -0
- package/components/CasinoTournamentsThumbnail-CM3Rfdn3.cjs +4 -0
- package/components/CasinoTournamentsThumbnailController-C71hXcQP.cjs +1 -0
- package/components/CasinoTournamentsThumbnailController-NEf6XMRB.js +1405 -0
- package/components/CasinoTournamentsThumbnailDuration-CrS_PUCZ.cjs +1 -0
- package/components/CasinoTournamentsThumbnailDuration-bu3Mm2Ay.js +495 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-DNrAc-zm.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGamesSlider-_haSuIUI.js +438 -0
- package/components/CasinoTournamentsThumbnailPrizes-BRcfU1P4.js +310 -0
- package/components/CasinoTournamentsThumbnailPrizes-E5pafLaj.cjs +1 -0
- package/es2015/casino-tournaments-controller.cjs +1 -0
- package/es2015/casino-tournaments-controller.js +16 -0
- package/package.json +18 -32
- package/.eslintrc +0 -84
- package/CHANGELOG.md +0 -11
- package/README.md +0 -0
- package/dist/casino-tournaments-controller.js +0 -2
- package/dist/casino-tournaments-controller.js.map +0 -1
- package/documentation.md +0 -170
- package/index.html +0 -29
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoTournamentsController.svelte +0 -527
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -62
- package/src/util.ts +0 -2
- package/stories/CasinoTournamentsController.stories.js +0 -13
- package/svelte.config.js +0 -7
- package/tsconfig.json +0 -6
|
@@ -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, m as b, t as _, d as u, h as k, o as f, p as v, n as M, j as F, k as O, w as U, l as H, q, u as V, $ as W } from "./CasinoTournamentsController-Cr8b4j7l.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), q(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
|
+
), m, w;
|
|
146
|
+
return {
|
|
147
|
+
c() {
|
|
148
|
+
e = z("div"), t = z("p"), n = z("span"), i = _(r), c = b(), p = _(s), o = _(": "), m = _(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, m), 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(m, d);
|
|
169
|
+
},
|
|
170
|
+
d(h) {
|
|
171
|
+
h && F(e);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
function G(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, m) {
|
|
188
|
+
k(d, e, m), 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, [m]) {
|
|
191
|
+
m & /*$_*/
|
|
192
|
+
4 && c !== (c = /*$_*/
|
|
193
|
+
d[2]("prizes") + "") && v(s, c), /*prizes*/
|
|
194
|
+
d[1] ? o ? o.p(d, m) : (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 J(l, e, t) {
|
|
204
|
+
let n;
|
|
205
|
+
O(l, W, (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((g) => g.json()).then((g) => {
|
|
209
|
+
Object.keys(g).forEach((P) => {
|
|
210
|
+
N(P, g[P]);
|
|
211
|
+
});
|
|
212
|
+
}).catch((g) => {
|
|
213
|
+
console.log(g);
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
Object.keys(S).forEach((a) => {
|
|
217
|
+
N(a, S[a]);
|
|
218
|
+
});
|
|
219
|
+
const m = (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), g = document.createElement("style");
|
|
226
|
+
fetch(a.href).then((P) => P.text()).then((P) => {
|
|
227
|
+
g.innerHTML = P, setTimeout(
|
|
228
|
+
() => {
|
|
229
|
+
p.appendChild(g);
|
|
230
|
+
},
|
|
231
|
+
1
|
|
232
|
+
), setTimeout(
|
|
233
|
+
() => {
|
|
234
|
+
},
|
|
235
|
+
500
|
|
236
|
+
);
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
U(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", m, !1), () => {
|
|
240
|
+
window.removeEventListener("message", m);
|
|
241
|
+
}));
|
|
242
|
+
function y(a) {
|
|
243
|
+
V[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
|
+
J,
|
|
271
|
+
G,
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CQ5C1jDl.cjs");function y(r,t){e.addMessages(r,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}};function F(r){e.append_styles(r,"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)}")}function T(r,t,n){const i=r.slice();return i[13]=t[n],i[15]=n,i}function v(r){let t,n=e.ensure_array_like(r[1]),i=[];for(let l=0;l<n.length;l+=1)i[l]=b(T(r,n,l));let a=null;return n.length||(a=w(r)),{c(){t=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(l,c){e.insert(l,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(l,c){if(c&6){n=e.ensure_array_like(l[1]);let s;for(s=0;s<n.length;s+=1){const u=T(l,n,s);i[s]?i[s].p(u,c):(i[s]=b(u),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(l,c):n.length?a&&(a.d(1),a=null):(a=w(l),a.c(),a.m(t,null))}},d(l){l&&e.detach(t),e.destroy_each(i,l),a&&a.d()}}}function w(r){let t,n=r[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,l){e.insert(a,t,l),e.append(t,i)},p(a,l){l&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function b(r){let t,n,i,a=(r[13].count>1?`${r[13].rank}~${r[13].rank+r[13].count-1}`:r[13].rank)+"",l,c,s=r[2]("place")+"",u,p,d=r[13].name+"",h,_;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),l=e.text(a),c=e.space(),u=e.text(s),p=e.text(": "),h=e.text(d),_=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+r[15]),e.attr(t,"part","Prize Prize"+r[15])},m(f,g){e.insert(f,t,g),e.append(t,n),e.append(n,i),e.append(i,l),e.append(n,c),e.append(n,u),e.append(n,p),e.append(n,h),e.append(t,_)},p(f,g){g&2&&a!==(a=(f[13].count>1?`${f[13].rank}~${f[13].rank+f[13].count-1}`:f[13].rank)+"")&&e.set_data(l,a),g&4&&s!==(s=f[2]("place")+"")&&e.set_data(u,s),g&2&&d!==(d=f[13].name+"")&&e.set_data(h,d)},d(f){f&&e.detach(t)}}}function M(r){let t,n,i,a,l,c=r[2]("prizes")+"",s,u,p=r[1]&&v(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.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>',a=e.space(),l=e.element("p"),s=e.text(c),u=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(l,"class","PrizesTitle"),e.attr(l,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(d,h){e.insert(d,t,h),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,l),e.append(l,s),e.append(t,u),p&&p.m(t,null),r[7](t)},p(d,[h]){h&4&&c!==(c=d[2]("prizes")+"")&&e.set_data(s,c),d[1]?p?p.p(d,h):(p=v(d),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),p&&p.d(),r[7](null)}}}function S(r,t,n){let i;e.component_subscribe(r,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,u,p;const d=()=>{fetch(s).then(m=>m.json()).then(m=>{Object.keys(m).forEach(z=>{y(z,m[z])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(o=>{y(o,P[o])});const h=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,p=o.data.prizes)},_=()=>{let o=document.createElement("style");o.innerHTML=l,u.appendChild(o)},f=()=>{let o=new URL(c),m=document.createElement("style");fetch(o.href).then(z=>z.text()).then(z=>{m.innerHTML=z,setTimeout(()=>{u.appendChild(m)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function g(o){e.binding_callbacks[o?"unshift":"push"](()=>{u=o,n(0,u)})}return r.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,l=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl)},r.$$.update=()=>{r.$$.dirty&17&&u&&l&&_(),r.$$.dirty&33&&u&&c&&f(),r.$$.dirty&64&&s&&d()},[u,p,i,a,l,c,s,g]}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;
|
|
@@ -0,0 +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/CasinoTournamentsController-CQ5C1jDl.cjs")).then(e=>e.CasinoTournamentsController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-controller")&&customElements.define("casino-tournaments-controller",e.element)})}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (typeof window != "undefined") {
|
|
2
|
+
let n = function(e) {
|
|
3
|
+
return function(...s) {
|
|
4
|
+
try {
|
|
5
|
+
return e.apply(this, s);
|
|
6
|
+
} catch (t) {
|
|
7
|
+
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"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw t;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsController-Cr8b4j7l.js").then((e) => e.K).then(({ default: e }) => {
|
|
14
|
+
!customElements.get("casino-tournaments-controller") && customElements.define("casino-tournaments-controller", e.element);
|
|
15
|
+
});
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,39 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-controller",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@rollup/plugin-babel": "^5.3.0",
|
|
15
|
-
"@rollup/plugin-commonjs": "^16.0.0",
|
|
16
|
-
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
17
|
-
"@rollup/plugin-typescript": "^6.0.0",
|
|
18
|
-
"@tsconfig/svelte": "^1.0.0",
|
|
19
|
-
"rollup": "^2.3.4",
|
|
20
|
-
"rollup-plugin-dev-server": "^0.4.3",
|
|
21
|
-
"rollup-plugin-livereload": "^2.0.0",
|
|
22
|
-
"rollup-plugin-svelte": "^7.0.0",
|
|
23
|
-
"rollup-plugin-terser": "^7.0.0",
|
|
24
|
-
"rollup-plugin-uglify": "^6.0.4",
|
|
25
|
-
"svelte-check": "^1.0.0",
|
|
26
|
-
"svelte-preprocess": "^5.0.0",
|
|
27
|
-
"tslib": "^2.0.0",
|
|
28
|
-
"typescript": "^3.9.3"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"cross-env": "^7.0.3",
|
|
32
|
-
"sirv-cli": "^1.0.0",
|
|
33
|
-
"svelte": "^3.0.0"
|
|
3
|
+
"version": "1.45.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "es2015/casino-tournaments-controller.cjs",
|
|
6
|
+
"module": "es2015/casino-tournaments-controller.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./es2015/casino-tournaments-controller.js",
|
|
10
|
+
"require": "./es2015/casino-tournaments-controller.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./es2015/casino-tournaments-controller.cjs": "./es2015/casino-tournaments-controller.cjs"
|
|
34
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"es2015/",
|
|
16
|
+
"components"
|
|
17
|
+
],
|
|
35
18
|
"publishConfig": {
|
|
36
19
|
"access": "public"
|
|
37
20
|
},
|
|
38
|
-
"
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@everymatrix/casino-tournaments-filter-controller": "1.0.72",
|
|
23
|
+
"@everymatrix/casino-tournaments-list-controller": "1.0.72"
|
|
24
|
+
}
|
|
39
25
|
}
|
package/.eslintrc
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"rules": {
|
|
3
|
-
"camelcase": "off",
|
|
4
|
-
"comma-dangle": [ "error", "never" ],
|
|
5
|
-
"no-unused-vars": "off",
|
|
6
|
-
"semi": [ 2, "always" ],
|
|
7
|
-
"keyword-spacing": [ 2, { "before": true, "after": true } ],
|
|
8
|
-
"space-before-blocks": [ 2, "always" ],
|
|
9
|
-
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
|
|
10
|
-
"no-cond-assign": 0,
|
|
11
|
-
"object-shorthand": [ 2, "always" ],
|
|
12
|
-
"no-const-assign": 2,
|
|
13
|
-
"no-class-assign": 2,
|
|
14
|
-
"no-this-before-super": 2,
|
|
15
|
-
"no-var": 2,
|
|
16
|
-
"no-unreachable": 2,
|
|
17
|
-
"valid-typeof": 2,
|
|
18
|
-
"quote-props": [ 2, "as-needed" ],
|
|
19
|
-
"quotes": ["error", "single", { "avoidEscape": true }],
|
|
20
|
-
"prefer-arrow-callback": 2,
|
|
21
|
-
"prefer-const": [ 2, { "destructuring": "all" } ],
|
|
22
|
-
"arrow-spacing": 2,
|
|
23
|
-
"no-inner-declarations": 0,
|
|
24
|
-
"one-var": "off",
|
|
25
|
-
"require-atomic-updates": "off",
|
|
26
|
-
"no-import-assign": "warn",
|
|
27
|
-
"eol-last": "error",
|
|
28
|
-
"@typescript-eslint/camelcase": "off",
|
|
29
|
-
"@typescript-eslint/no-use-before-define": "off",
|
|
30
|
-
"@typescript-eslint/array-type": [ "error", { "default": "array-simple" } ],
|
|
31
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
32
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
33
|
-
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
34
|
-
"@typescript-eslint/no-object-literal-type-assertion": "off",
|
|
35
|
-
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
|
|
36
|
-
"@typescript-eslint/prefer-interface": "off",
|
|
37
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
38
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
39
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
40
|
-
"@typescript-eslint/no-this-alias": "off",
|
|
41
|
-
"@typescript-eslint/no-inferrable-types": "off",
|
|
42
|
-
"@typescript-eslint/ban-types": "off",
|
|
43
|
-
"@typescript-eslint/naming-convention": "off",
|
|
44
|
-
"@typescript-eslint/class-name-casing": "off"
|
|
45
|
-
},
|
|
46
|
-
"globals": {
|
|
47
|
-
"globalThis": false
|
|
48
|
-
},
|
|
49
|
-
"env": {
|
|
50
|
-
"es6": true,
|
|
51
|
-
"browser": true,
|
|
52
|
-
"node": true,
|
|
53
|
-
"mocha": true
|
|
54
|
-
},
|
|
55
|
-
"extends": [
|
|
56
|
-
"eslint:recommended",
|
|
57
|
-
"plugin:import/errors",
|
|
58
|
-
"plugin:import/warnings",
|
|
59
|
-
"plugin:import/typescript",
|
|
60
|
-
"plugin:@typescript-eslint/recommended"
|
|
61
|
-
],
|
|
62
|
-
"parserOptions": {
|
|
63
|
-
"ecmaVersion": 9,
|
|
64
|
-
"sourceType": "module"
|
|
65
|
-
},
|
|
66
|
-
"plugins": ["svelte3"],
|
|
67
|
-
"settings": {
|
|
68
|
-
"svelte3/compiler-options": {
|
|
69
|
-
"customElement": true,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
"overrides": [
|
|
73
|
-
{
|
|
74
|
-
"files": ["*.js"],
|
|
75
|
-
"rules": {
|
|
76
|
-
"@typescript-eslint/no-var-requires": "off"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"files": ["*.svelte"],
|
|
81
|
-
"processor": "svelte3/svelte3"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## casino-tournaments-controller widget changelogs
|
|
3
|
-
|
|
4
|
-
| Version | Release date | Impacted areas | Changes |
|
|
5
|
-
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
|
6
|
-
| 1.39.1 | Fri Sep 06 2024 | casino-tournaments-controller | fix(FEW-334)(casino-tournaments-controller,casino-tournaments-thumbnail-controller): Improvements to load the tournament widget faster |
|
|
7
|
-
| 1.37.2 | Mon Aug 12 2024 | casino-tournaments-controller | feat(PTH-184)(casino-tournaments-controller,casino-tournaments-customize-page-controller): add a parameter for bonus claim api <br /> fix(EMFE-30672)(casino-tournaments-controller): fix conflict <br /> fix(EMFE-29348)(casino-tournaments-controller,casino-tournaments-filter-controller): fix the scrolling issue |
|
|
8
|
-
| 1.36.0 | Mon Jul 29 2024 | casino-tournaments-controller | feat(PTH-184)(casino-tournaments-controller,casino-tournaments-customize-page-controller): add a parameter for bonus claim api |
|
|
9
|
-
| 1.29.8 | Tue May 14 2024 | casino-tournaments-controller | fix(EMFE-30672)(casino-tournaments-controller): fix conflict |
|
|
10
|
-
| 1.29.7 | Thu May 09 2024 | casino-tournaments-controller | fix(EMFE-30672)(casino-tournaments-controller): fix conflict |
|
|
11
|
-
| 1.25.0 | Fri Jan 26 2024 | casino-tournaments-controller | fix(EMFE-29348)(casino-tournaments-controller,casino-tournaments-filter-controller): fix the scrolling issue |
|
package/README.md
DELETED
|
File without changes
|