@everymatrix/tournament-details-page 0.0.8 → 0.0.9
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/{TournamentDetailsPage-B5bbvugX.js → TournamentDetailsPage-0JKgpPb4.js} +125 -125
- package/components/{TournamentDetailsPage-DrDTbkUX.cjs → TournamentDetailsPage-CNDHXiDn.cjs} +6 -6
- package/components/{TournamentDetailsPage-CjBmguAV.js → TournamentDetailsPage-D-pwFR-w.js} +44 -44
- package/components/TournamentGames-COHWeopg.js +377 -0
- package/components/TournamentGames-DLS2XJfo.js +403 -0
- package/components/TournamentGames-DO485kHn.cjs +27 -0
- package/components/{TournamentLeaderboard-xrrrpKix.cjs → TournamentLeaderboard-BnP-SIlN.cjs} +1 -1
- package/components/{TournamentLeaderboard-Cvo-K1Xv.js → TournamentLeaderboard-Dnpxq0_A.js} +1 -1
- package/components/{TournamentLeaderboard-Bdrmjyzv.js → TournamentLeaderboard-ivZpO_TZ.js} +1 -1
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +1 -1
- package/esnext/tournament-details-page.js +1 -1
- package/package.json +1 -1
- package/components/TournamentGames-CATtl7ab.js +0 -377
- package/components/TournamentGames-CXKhYSVz.js +0 -405
- package/components/TournamentGames-Dz1Ddedp.cjs +0 -27
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { b as Je, $ as Ke, p as qe, g as Xe, h as x, i as Qe, u as ce, s as M, j as Ve, k as b, m as y, n as i, l as S, C as T, y as Ye, G as w, E as A, w as a, q as m, r as Ze, t as $e, z as et, v as g, x as k, e as tt, f as at, A as s, K, L as q, J as X, B as Q, M as oe, F as ve } from "./TournamentDetails-H6pHb_yG.js";
|
|
2
|
-
import { g as nt } from "./TournamentDetailsPage-CjBmguAV.js";
|
|
3
|
-
function ue(B, c) {
|
|
4
|
-
Je(B, c);
|
|
5
|
-
}
|
|
6
|
-
function de(B) {
|
|
7
|
-
Ke.set(B);
|
|
8
|
-
}
|
|
9
|
-
const fe = {
|
|
10
|
-
en: {
|
|
11
|
-
previousButton: "Previous",
|
|
12
|
-
nextButton: "Next",
|
|
13
|
-
casinoTab: "Casino",
|
|
14
|
-
sportsbookTab: "Sportsbook",
|
|
15
|
-
gamesDescriptionTitle: "Participating games",
|
|
16
|
-
gamesDescriptionSubtitle: "Discover the games",
|
|
17
|
-
sportsRulesParseError: "Error parsing tournament rules",
|
|
18
|
-
noAvailableGames: "No games have been configured yet!"
|
|
19
|
-
},
|
|
20
|
-
tr: {
|
|
21
|
-
previousButton: "Önceki",
|
|
22
|
-
nextButton: "Sonraki",
|
|
23
|
-
casinoTab: "Casino",
|
|
24
|
-
sportsbookTab: "Spor Bahisleri",
|
|
25
|
-
gamesDescriptionTitle: "Katılımcı oyunlar",
|
|
26
|
-
gamesDescriptionSubtitle: "Oyunları keşfedin",
|
|
27
|
-
sportsRulesParseError: "Turnuva kuralları ayrıştırma hatası",
|
|
28
|
-
noAvailableGames: "Henüz oyun yapılandırılmamış!"
|
|
29
|
-
}
|
|
30
|
-
}, ot = () => typeof window > "u";
|
|
31
|
-
var rt = b('<div class="TournamentGamesTabs svelte-p7mf8l"><button> </button> <button> </button></div>'), st = b('<p class="svelte-p7mf8l"> </p>'), it = b("<div></div>"), lt = b('<div class="TournamentGameThumbnailSkeleton svelte-p7mf8l"></div>'), pt = b('<div class="TournamentGameThumbnail svelte-p7mf8l"><div class="ImageContainer svelte-p7mf8l"><img class="svelte-p7mf8l"/> <div class="PlayButtonOverlay svelte-p7mf8l"><button class="PlayGameButton svelte-p7mf8l"> </button></div></div></div>'), mt = b('<span class="PaginationButton Elipsis svelte-p7mf8l">...</span>'), ct = b("<button> </button>"), vt = b('<div><button class="PaginationButton svelte-p7mf8l"> </button> <div class="PageNumberWrapper svelte-p7mf8l"></div> <button class="PaginationButton svelte-p7mf8l"> </button></div>'), ut = b("<p> </p>"), dt = b('<div class="PaginationSkeleton svelte-p7mf8l"><div class="PaginationSkeletonButton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationNumberSkeleton svelte-p7mf8l"></div> <div class="PaginationSkeletonButton svelte-p7mf8l"></div></div>'), ft = b('<div class="TournamentGamesWrapper svelte-p7mf8l"><div class="GamesDescription svelte-p7mf8l"><p class="GamesDescriptionTitle svelte-p7mf8l"> </p> <p class="GamesDescriptionSubTitle svelte-p7mf8l"> </p></div> <!> <!> <div><!></div> <!> <!></div>');
|
|
32
|
-
const gt = {
|
|
33
|
-
hash: "svelte-p7mf8l",
|
|
34
|
-
code: `.svelte-p7mf8l,
|
|
35
|
-
.svelte-p7mf8l::before,
|
|
36
|
-
.svelte-p7mf8l::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.GamesDescription.svelte-p7mf8l {display:flex;flex-direction:column;gap:6px;margin:10px 0;.GamesDescriptionTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:16px;font-weight:600;}.GamesDescriptionSubTitle:where(.svelte-p7mf8l) {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:200;}}.TournamentGamesTabs.svelte-p7mf8l {display:flex;border-radius:50px;background-color:var(--emw-color-bg-section, #434343);padding:6px;margin-bottom:6px;width:100%;justify-content:center;.Tab:where(.svelte-p7mf8l) {padding:5px 20px;color:var(--emw-color-typography, #ffffff);width:100%;border-radius:50px;background-color:transparent;border:none;cursor:pointer;}.Active:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-elements, #4A4A4A);border:none;}}.TournamentRulesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:400;margin:10px 0;}.TournamentGamesWrapper.svelte-p7mf8l {display:flex;flex-direction:column;gap:10px;background-color:var(--emw-color-bg-secondary, #333232);padding:10px;border-radius:6px;}.TournamentGamesContainer.svelte-p7mf8l {display:grid;gap:12px;grid-template-columns:repeat(auto-fit, minmax(min(150px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
37
|
-
to top,
|
|
38
|
-
var(--emw-color-primary, #FF1D4E),
|
|
39
|
-
transparent
|
|
40
|
-
);background-size:100% 200%;
|
|
41
|
-
animation: svelte-p7mf8l-pulse 1.5s ease-in-out infinite;}.ImageContainer:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;}img:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.PlayButtonOverlay:where(.svelte-p7mf8l) {position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(0, 0, 0, 0.6);display:flex;justify-content:center;align-items:center;opacity:0;&:hover {opacity:1;transition:opacity 0.5s;}.PlayGameButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-primary, #FF1D4E);border-radius:6px;color:var(--emw-color-typography, #ffffff);padding:10px;border:none;outline:none;min-width:50%;cursor:pointer;&:hover {background-color:var(--emw-color-primary-hover, #ff3a65);cursor:pointer;}&:active {transform:scale(0.9);}}}}.PaginationWrapper.svelte-p7mf8l {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-p7mf8l) {display:flex;gap:3px;}.PaginationButton:where(.svelte-p7mf8l) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.NoGamesAvailable.svelte-p7mf8l {color:var(--emw-color-typography, #ffffff);font-size:14px;font-weight:300;}.PaginationSkeleton.svelte-p7mf8l {display:flex;justify-content:space-between;gap:6px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:60px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
42
|
-
animation: svelte-p7mf8l-pulse 1s infinite;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:40px;height:35px;border-radius:6px;background-color:var(--emw-color-skeleton, #535353);overflow:hidden;position:relative;
|
|
43
|
-
animation: svelte-p7mf8l-pulse 1s infinite;}}
|
|
44
|
-
|
|
45
|
-
@keyframes svelte-p7mf8l-pulse {
|
|
46
|
-
0% {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
50% {
|
|
50
|
-
opacity: 1;
|
|
51
|
-
}
|
|
52
|
-
100% {
|
|
53
|
-
opacity: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
@media (min-width: 750px) {.TournamentGamesTabs.svelte-p7mf8l {width:fit-content;}.PaginationWrapper.svelte-p7mf8l, .PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;}.PaginationButton.svelte-p7mf8l {min-width:75px;}.PaginationSkeleton.svelte-p7mf8l {justify-content:end;gap:10px;.PaginationSkeletonButton:where(.svelte-p7mf8l) {width:auto;min-width:55px;}.PaginationNumberSkeleton:where(.svelte-p7mf8l) {width:35px;}}
|
|
59
|
-
|
|
60
|
-
}.Hidden.svelte-p7mf8l {display:none;}`
|
|
61
|
-
};
|
|
62
|
-
function bt(B, c) {
|
|
63
|
-
qe(c, !0), Xe(B, gt);
|
|
64
|
-
const h = () => Ye(et, "$_", ge), [ge, be] = $e(), O = x(c, "initialGames"), V = x(c, "endpoint"), N = x(c, "language", 7, "en"), R = x(c, "session"), W = x(c, "tournamentid"), d = x(c, "gamesLimit", 7, 6), E = x(c, "totalGames"), Y = x(c, "platformProp", 7, null), D = x(c, "tournamentMetadata"), z = x(c, "translationurl"), he = () => {
|
|
65
|
-
let e = new URL(z());
|
|
66
|
-
fetch(e.href).then((t) => t.json()).then((t) => {
|
|
67
|
-
Object.keys(t).forEach((n) => {
|
|
68
|
-
ue(n, t[n]);
|
|
69
|
-
});
|
|
70
|
-
}).catch((t) => {
|
|
71
|
-
console.log(t);
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
Object.keys(fe).forEach((e) => {
|
|
75
|
-
ue(e, fe[e]);
|
|
76
|
-
}), de(N());
|
|
77
|
-
const _e = () => {
|
|
78
|
-
de(N());
|
|
79
|
-
};
|
|
80
|
-
Qe(() => {
|
|
81
|
-
z() && he();
|
|
82
|
-
}), ce(() => {
|
|
83
|
-
_e();
|
|
84
|
-
});
|
|
85
|
-
let L = M(Ve(O() || [])), C = M(!1), u = M(0), H = M(void 0), F = M(!0);
|
|
86
|
-
const xe = ot() ? Y() ?? "dk" : nt(window.navigator.userAgent), Z = async () => {
|
|
87
|
-
if ($.has(a(I)))
|
|
88
|
-
return;
|
|
89
|
-
g(C, !0);
|
|
90
|
-
const e = new URL(`${V()}/v1/tournaments/${W()}`), t = new Headers();
|
|
91
|
-
R() && t.append("X-SessionId", R());
|
|
92
|
-
const n = { method: "GET", headers: t };
|
|
93
|
-
e.searchParams.append("filter", `id=${W()}`), e.searchParams.append("language", N()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${d()},offset=${a(u)})`), e.searchParams.append("platform", xe), fetch(e, n).then((o) => o.json()).then((o) => {
|
|
94
|
-
g(L, o?.item?.games?.items, !0), $.set(a(I), a(L)), a(F) || g(F, !0);
|
|
95
|
-
}).catch((o) => console.log(o)).finally(() => g(C, !1));
|
|
96
|
-
}, ye = () => {
|
|
97
|
-
const e = Math.ceil(E() / d()), t = Math.floor(a(u) / d()) + 1;
|
|
98
|
-
if (e <= 5)
|
|
99
|
-
return Array.from({ length: e }, (o, l) => l + 1);
|
|
100
|
-
const n = [];
|
|
101
|
-
return n.push(1), t <= 3 ? (n.push(2, 3), n.push("..."), n.push(e)) : t >= e - 2 ? (n.push("..."), n.push(e - 2, e - 1, e)) : (n.push("..."), n.push(t - 1, t, t + 1), n.push("..."), n.push(e)), n;
|
|
102
|
-
}, we = () => {
|
|
103
|
-
a(u) < E() && (g(u, a(u) + d()), Z());
|
|
104
|
-
}, ke = () => {
|
|
105
|
-
a(u) !== 0 && (g(u, a(u) - d()), Z());
|
|
106
|
-
}, Pe = (e) => {
|
|
107
|
-
g(u, (e - 1) * d()), Z();
|
|
108
|
-
}, Te = oe(ye), I = oe(() => Math.floor(a(u) / d()) + 1);
|
|
109
|
-
let $ = /* @__PURE__ */ new Map([[1, O()]]), Ge = oe(() => $.get(a(I)) ?? []), P = M("casino");
|
|
110
|
-
const Se = () => {
|
|
111
|
-
if (!D()) return;
|
|
112
|
-
const e = D().sports?.rules;
|
|
113
|
-
let t;
|
|
114
|
-
if (e)
|
|
115
|
-
try {
|
|
116
|
-
t = JSON.parse(e), g(H, t[N()] || t["*"], !0);
|
|
117
|
-
} catch (n) {
|
|
118
|
-
console.log(n), g(H, `${h()("sportsRulesParseError")}`);
|
|
119
|
-
}
|
|
120
|
-
}, Ae = (e) => {
|
|
121
|
-
window.postMessage(
|
|
122
|
-
{
|
|
123
|
-
type: "Tournaments:PlayGame",
|
|
124
|
-
launchUrl: e.launchUrl,
|
|
125
|
-
id: e.gameId,
|
|
126
|
-
thumbnail: e.thumbnail,
|
|
127
|
-
name: e.name
|
|
128
|
-
},
|
|
129
|
-
window.location.href
|
|
130
|
-
);
|
|
131
|
-
};
|
|
132
|
-
ce(() => {
|
|
133
|
-
Object.keys(D()).length !== 0 && Se();
|
|
134
|
-
});
|
|
135
|
-
var Be = {
|
|
136
|
-
get initialGames() {
|
|
137
|
-
return O();
|
|
138
|
-
},
|
|
139
|
-
set initialGames(e) {
|
|
140
|
-
O(e), k();
|
|
141
|
-
},
|
|
142
|
-
get endpoint() {
|
|
143
|
-
return V();
|
|
144
|
-
},
|
|
145
|
-
set endpoint(e) {
|
|
146
|
-
V(e), k();
|
|
147
|
-
},
|
|
148
|
-
get language() {
|
|
149
|
-
return N();
|
|
150
|
-
},
|
|
151
|
-
set language(e = "en") {
|
|
152
|
-
N(e), k();
|
|
153
|
-
},
|
|
154
|
-
get session() {
|
|
155
|
-
return R();
|
|
156
|
-
},
|
|
157
|
-
set session(e) {
|
|
158
|
-
R(e), k();
|
|
159
|
-
},
|
|
160
|
-
get tournamentid() {
|
|
161
|
-
return W();
|
|
162
|
-
},
|
|
163
|
-
set tournamentid(e) {
|
|
164
|
-
W(e), k();
|
|
165
|
-
},
|
|
166
|
-
get gamesLimit() {
|
|
167
|
-
return d();
|
|
168
|
-
},
|
|
169
|
-
set gamesLimit(e = 6) {
|
|
170
|
-
d(e), k();
|
|
171
|
-
},
|
|
172
|
-
get totalGames() {
|
|
173
|
-
return E();
|
|
174
|
-
},
|
|
175
|
-
set totalGames(e) {
|
|
176
|
-
E(e), k();
|
|
177
|
-
},
|
|
178
|
-
get platformProp() {
|
|
179
|
-
return Y();
|
|
180
|
-
},
|
|
181
|
-
set platformProp(e = null) {
|
|
182
|
-
Y(e), k();
|
|
183
|
-
},
|
|
184
|
-
get tournamentMetadata() {
|
|
185
|
-
return D();
|
|
186
|
-
},
|
|
187
|
-
set tournamentMetadata(e) {
|
|
188
|
-
D(e), k();
|
|
189
|
-
},
|
|
190
|
-
get translationurl() {
|
|
191
|
-
return z();
|
|
192
|
-
},
|
|
193
|
-
set translationurl(e) {
|
|
194
|
-
z(e), k();
|
|
195
|
-
}
|
|
196
|
-
}, ee = ft(), te = i(ee), ae = i(te), Ne = i(ae, !0);
|
|
197
|
-
s(ae);
|
|
198
|
-
var re = y(ae, 2), De = i(re, !0);
|
|
199
|
-
s(re), s(te);
|
|
200
|
-
var se = y(te, 2);
|
|
201
|
-
{
|
|
202
|
-
var je = (e) => {
|
|
203
|
-
var t = rt(), n = i(t);
|
|
204
|
-
let o;
|
|
205
|
-
n.__click = () => g(P, "casino");
|
|
206
|
-
var l = i(n, !0);
|
|
207
|
-
s(n);
|
|
208
|
-
var r = y(n, 2);
|
|
209
|
-
let p;
|
|
210
|
-
r.__click = () => g(P, "sports");
|
|
211
|
-
var v = i(r, !0);
|
|
212
|
-
s(r), s(t), T(
|
|
213
|
-
(_, f) => {
|
|
214
|
-
o = A(n, 1, "Tab svelte-p7mf8l", null, o, { Active: a(P) === "casino" }), w(l, _), p = A(r, 1, "Tab svelte-p7mf8l", null, p, { Active: a(P) === "sports" }), w(v, f);
|
|
215
|
-
},
|
|
216
|
-
[() => h()("casinoTab"), () => h()("sportsbookTab")]
|
|
217
|
-
), m(e, t);
|
|
218
|
-
};
|
|
219
|
-
S(se, (e) => {
|
|
220
|
-
Object.keys(D()).length !== 0 && e(je);
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
var ie = y(se, 2);
|
|
224
|
-
{
|
|
225
|
-
var Me = (e) => {
|
|
226
|
-
var t = it();
|
|
227
|
-
let n;
|
|
228
|
-
K(t, 21, () => a(H), q, (o, l) => {
|
|
229
|
-
var r = st(), p = i(r);
|
|
230
|
-
s(r), T((v) => w(p, `${a(l).rule ?? ""} ${v ?? ""}`), [() => h()("contribution")]), m(o, r);
|
|
231
|
-
}), s(t), T(() => n = A(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(P) === "casino" })), m(e, t);
|
|
232
|
-
};
|
|
233
|
-
S(ie, (e) => {
|
|
234
|
-
a(H) && e(Me);
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
var U = y(ie, 2);
|
|
238
|
-
let le;
|
|
239
|
-
var Ee = i(U);
|
|
240
|
-
{
|
|
241
|
-
var Le = (e) => {
|
|
242
|
-
var t = X(), n = Q(t);
|
|
243
|
-
K(n, 17, () => Array(d()), q, (o, l, r, p) => {
|
|
244
|
-
var v = lt();
|
|
245
|
-
m(o, v);
|
|
246
|
-
}), m(e, t);
|
|
247
|
-
}, Oe = (e) => {
|
|
248
|
-
var t = X(), n = Q(t);
|
|
249
|
-
K(n, 17, () => a(Ge), q, (o, l) => {
|
|
250
|
-
var r = pt();
|
|
251
|
-
r.__click = () => Ae(a(l));
|
|
252
|
-
var p = i(r), v = i(p), _ = y(v, 2), f = i(_), J = i(f, !0);
|
|
253
|
-
s(f), s(_), s(p), s(r), T(
|
|
254
|
-
(ne) => {
|
|
255
|
-
ve(v, "src", `https:${a(l).thumbnail}`), ve(v, "alt", a(l).name), w(J, ne);
|
|
256
|
-
},
|
|
257
|
-
[() => h()("play")]
|
|
258
|
-
), m(o, r);
|
|
259
|
-
}), m(e, t);
|
|
260
|
-
};
|
|
261
|
-
S(Ee, (e) => {
|
|
262
|
-
a(C) || a(L)?.length === 0 ? e(Le) : e(Oe, !1);
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
s(U);
|
|
266
|
-
var pe = y(U, 2);
|
|
267
|
-
{
|
|
268
|
-
var Re = (e) => {
|
|
269
|
-
var t = vt();
|
|
270
|
-
let n;
|
|
271
|
-
var o = i(t);
|
|
272
|
-
o.__click = ke;
|
|
273
|
-
var l = i(o, !0);
|
|
274
|
-
s(o);
|
|
275
|
-
var r = y(o, 2);
|
|
276
|
-
K(r, 21, () => a(Te), q, (_, f) => {
|
|
277
|
-
var J = X(), ne = Q(J);
|
|
278
|
-
{
|
|
279
|
-
var Fe = (j) => {
|
|
280
|
-
var G = mt();
|
|
281
|
-
m(j, G);
|
|
282
|
-
}, Ie = (j) => {
|
|
283
|
-
var G = ct();
|
|
284
|
-
let me;
|
|
285
|
-
G.__click = () => Pe(a(f));
|
|
286
|
-
var Ue = i(G, !0);
|
|
287
|
-
s(G), T(() => {
|
|
288
|
-
me = A(G, 1, "PaginationButton Number svelte-p7mf8l", null, me, { Active: a(f) === a(I) }), w(Ue, a(f));
|
|
289
|
-
}), m(j, G);
|
|
290
|
-
};
|
|
291
|
-
S(ne, (j) => {
|
|
292
|
-
typeof a(f) != "number" ? j(Fe) : j(Ie, !1);
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
m(_, J);
|
|
296
|
-
}), s(r);
|
|
297
|
-
var p = y(r, 2);
|
|
298
|
-
p.__click = we;
|
|
299
|
-
var v = i(p, !0);
|
|
300
|
-
s(p), s(t), T(
|
|
301
|
-
(_, f) => {
|
|
302
|
-
n = A(t, 1, "PaginationWrapper svelte-p7mf8l", null, n, { Hidden: a(P) === "sports" }), o.disabled = a(u) === 0, w(l, _), p.disabled = a(u) >= E() - d(), w(v, f);
|
|
303
|
-
},
|
|
304
|
-
[() => h()("previousButton"), () => h()("nextButton")]
|
|
305
|
-
), m(e, t);
|
|
306
|
-
}, We = (e) => {
|
|
307
|
-
var t = X(), n = Q(t);
|
|
308
|
-
{
|
|
309
|
-
var o = (l) => {
|
|
310
|
-
var r = ut();
|
|
311
|
-
let p;
|
|
312
|
-
var v = i(r, !0);
|
|
313
|
-
s(r), T(
|
|
314
|
-
(_) => {
|
|
315
|
-
p = A(r, 1, "NoGamesAvailable svelte-p7mf8l", null, p, { Hidden: a(P) === "sports" }), w(v, _);
|
|
316
|
-
},
|
|
317
|
-
[() => h()("noAvailableGames")]
|
|
318
|
-
), m(l, r);
|
|
319
|
-
};
|
|
320
|
-
S(
|
|
321
|
-
n,
|
|
322
|
-
(l) => {
|
|
323
|
-
!a(C) && a(L)?.length === 0 && l(o);
|
|
324
|
-
},
|
|
325
|
-
!0
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
m(e, t);
|
|
329
|
-
};
|
|
330
|
-
S(pe, (e) => {
|
|
331
|
-
a(F) && a(L)?.length > 0 ? e(Re) : e(We, !1);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
var ze = y(pe, 2);
|
|
335
|
-
{
|
|
336
|
-
var Ce = (e) => {
|
|
337
|
-
var t = dt();
|
|
338
|
-
m(e, t);
|
|
339
|
-
};
|
|
340
|
-
S(ze, (e) => {
|
|
341
|
-
a(F) || e(Ce);
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
s(ee), T(
|
|
345
|
-
(e, t) => {
|
|
346
|
-
w(Ne, e), w(De, t), le = A(U, 1, "TournamentGamesContainer svelte-p7mf8l", null, le, { Hidden: a(P) === "sports" });
|
|
347
|
-
},
|
|
348
|
-
[
|
|
349
|
-
() => h()("gamesDescriptionTitle"),
|
|
350
|
-
() => h()("gamesDescriptionSubtitle")
|
|
351
|
-
]
|
|
352
|
-
), m(B, ee);
|
|
353
|
-
var He = Ze(Be);
|
|
354
|
-
return be(), He;
|
|
355
|
-
}
|
|
356
|
-
tt(["click"]);
|
|
357
|
-
customElements.define("tournament-games", at(
|
|
358
|
-
bt,
|
|
359
|
-
{
|
|
360
|
-
initialGames: {},
|
|
361
|
-
endpoint: {},
|
|
362
|
-
language: {},
|
|
363
|
-
session: {},
|
|
364
|
-
tournamentid: {},
|
|
365
|
-
gamesLimit: {},
|
|
366
|
-
totalGames: {},
|
|
367
|
-
platformProp: {},
|
|
368
|
-
tournamentMetadata: {},
|
|
369
|
-
translationurl: {}
|
|
370
|
-
},
|
|
371
|
-
[],
|
|
372
|
-
[],
|
|
373
|
-
!1
|
|
374
|
-
));
|
|
375
|
-
export {
|
|
376
|
-
bt as default
|
|
377
|
-
};
|