@everymatrix/tournament-details-page 0.0.9 → 0.1.1
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/TournamentDetails--114uLDg.cjs +3 -0
- package/components/TournamentDetails-DXDC_ZT1.js +380 -0
- package/components/TournamentDetails-DgrFAkq4.js +381 -0
- package/components/TournamentDetailsPage-BL5YSX6c.js +7594 -0
- package/components/TournamentDetailsPage-CqwgEfgR.js +7686 -0
- package/components/TournamentDetailsPage-DBFnctSf.cjs +63 -0
- package/components/TournamentGames--p8n0yMO.cjs +27 -0
- package/components/{TournamentGames-COHWeopg.js → TournamentGames-32LeAEHF.js} +35 -36
- package/components/{TournamentGames-DLS2XJfo.js → TournamentGames-CWA8cn1W.js} +39 -40
- package/components/TournamentLeaderboard-BCKfK_kj.js +848 -0
- package/components/TournamentLeaderboard-DFXwvz7Z.js +832 -0
- package/components/TournamentLeaderboard-Q44uv2lQ.cjs +31 -0
- 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/TournamentDetails-CKMkVYxd.js +0 -6961
- package/components/TournamentDetails-H6pHb_yG.js +0 -6879
- package/components/TournamentDetails-nG7lN2NT.cjs +0 -7
- package/components/TournamentDetailsPage-0JKgpPb4.js +0 -1107
- package/components/TournamentDetailsPage-CNDHXiDn.cjs +0 -59
- package/components/TournamentDetailsPage-D-pwFR-w.js +0 -1082
- package/components/TournamentGames-DO485kHn.cjs +0 -27
- package/components/TournamentLeaderboard-BnP-SIlN.cjs +0 -31
- package/components/TournamentLeaderboard-Dnpxq0_A.js +0 -839
- package/components/TournamentLeaderboard-ivZpO_TZ.js +0 -823
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as at } from "./TournamentDetailsPage-D-pwFR-w.js";
|
|
1
|
+
import { a as Fe, $ as qe, j as Je, b as Ke, p as _, u as Xe, d as ue, y as L, L as Qe, P as Ve, k as x, i as B, t as S, l as y, G as N, r as a, e as p, f as Ye, w as Ze, x as $e, s as et, q as f, h as w, v as l, g, m as tt, n as at, A as s, D as Q, E as V, B as Y, C as Z, z as ie, N as de } from "./TournamentDetailsPage-BL5YSX6c.js";
|
|
3
2
|
function fe(D, c) {
|
|
4
|
-
|
|
3
|
+
Fe(D, c);
|
|
5
4
|
}
|
|
6
5
|
function ge(D) {
|
|
7
|
-
|
|
6
|
+
qe.set(D);
|
|
8
7
|
}
|
|
9
8
|
const be = {
|
|
10
9
|
en: {
|
|
@@ -33,7 +32,7 @@ const ft = {
|
|
|
33
32
|
hash: "svelte-p7mf8l",
|
|
34
33
|
code: `.svelte-p7mf8l,
|
|
35
34
|
.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;min-height:150px;}.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-
|
|
35
|
+
.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;min-height:150px;}.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-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
37
36
|
to top,
|
|
38
37
|
var(--emw-color-primary, #FF1D4E),
|
|
39
38
|
transparent
|
|
@@ -60,8 +59,8 @@ const ft = {
|
|
|
60
59
|
}.Hidden.svelte-p7mf8l {display:none;}`
|
|
61
60
|
};
|
|
62
61
|
function gt(D, c) {
|
|
63
|
-
|
|
64
|
-
const b = () =>
|
|
62
|
+
Je(c, !0), Ke(D, ft);
|
|
63
|
+
const b = () => Ze($e, "$_", he), [he, _e] = et(), R = _(c, "initialGames"), $ = _(c, "endpoint"), j = _(c, "language", 7, "en"), W = _(c, "session"), z = _(c, "tournamentid"), v = _(c, "gamesLimit", 7, 6), M = _(c, "totalGames"), ee = _(c, "platformProp", 7, null), E = _(c, "tournamentMetadata"), C = _(c, "translationurl"), xe = () => {
|
|
65
64
|
let e = new URL(C());
|
|
66
65
|
fetch(e.href).then((t) => t.json()).then((t) => {
|
|
67
66
|
Object.keys(t).forEach((n) => {
|
|
@@ -82,16 +81,16 @@ function gt(D, c) {
|
|
|
82
81
|
}), ue(() => {
|
|
83
82
|
ye();
|
|
84
83
|
});
|
|
85
|
-
let te = L(Qe(R() || [])), H = L(!1), u = L(0),
|
|
86
|
-
const we = nt() ? ee() ?? "dk" :
|
|
87
|
-
if (ne.has(a(
|
|
84
|
+
let te = L(Qe(R() || [])), H = L(!1), u = L(0), I = L(void 0), U = L(!0);
|
|
85
|
+
const we = nt() ? ee() ?? "dk" : Ve(window.navigator.userAgent), ae = async () => {
|
|
86
|
+
if (ne.has(a(F)))
|
|
88
87
|
return;
|
|
89
88
|
f(H, !0);
|
|
90
89
|
const e = new URL(`${$()}/v1/tournaments/${z()}`), t = new Headers();
|
|
91
90
|
W() && t.append("X-SessionId", W());
|
|
92
91
|
const n = { method: "GET", headers: t };
|
|
93
92
|
e.searchParams.append("filter", `id=${z()}`), e.searchParams.append("language", j()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${v()},offset=${a(u)})`), e.searchParams.append("platform", we), fetch(e, n).then((o) => o.json()).then((o) => {
|
|
94
|
-
f(te, o?.item?.games?.items, !0), ne.set(a(
|
|
93
|
+
f(te, o?.item?.games?.items, !0), ne.set(a(F), a(te)), a(U) || f(U, !0);
|
|
95
94
|
}).catch((o) => console.log(o)).finally(() => f(H, !1));
|
|
96
95
|
}, ke = () => {
|
|
97
96
|
const e = Math.ceil(M() / v()), t = Math.floor(a(u) / v()) + 1;
|
|
@@ -105,17 +104,17 @@ function gt(D, c) {
|
|
|
105
104
|
a(u) !== 0 && (f(u, a(u) - v()), ae());
|
|
106
105
|
}, Ge = (e) => {
|
|
107
106
|
f(u, (e - 1) * v()), ae();
|
|
108
|
-
}, Se = ie(ke),
|
|
109
|
-
let ne = /* @__PURE__ */ new Map([[1, R()]]), Ae = ie(() => ne.get(a(
|
|
107
|
+
}, Se = ie(ke), F = ie(() => Math.floor(a(u) / v()) + 1);
|
|
108
|
+
let ne = /* @__PURE__ */ new Map([[1, R()]]), Ae = ie(() => ne.get(a(F)) ?? []), G = L("casino");
|
|
110
109
|
const Be = () => {
|
|
111
110
|
if (!E()) return;
|
|
112
111
|
const e = E().sports?.rules;
|
|
113
112
|
let t;
|
|
114
113
|
if (e)
|
|
115
114
|
try {
|
|
116
|
-
t = JSON.parse(e), f(
|
|
115
|
+
t = JSON.parse(e), f(I, t[j()] || t["*"], !0);
|
|
117
116
|
} catch (n) {
|
|
118
|
-
console.log(n), f(
|
|
117
|
+
console.log(n), f(I, `${b()("sportsRulesParseError")}`);
|
|
119
118
|
}
|
|
120
119
|
}, Ne = (e) => {
|
|
121
120
|
window.postMessage(
|
|
@@ -225,18 +224,18 @@ function gt(D, c) {
|
|
|
225
224
|
var Le = (e) => {
|
|
226
225
|
var t = st();
|
|
227
226
|
let n;
|
|
228
|
-
Q(t, 21, () => a(
|
|
227
|
+
Q(t, 21, () => a(I), V, (o, h) => {
|
|
229
228
|
var r = rt(), i = l(r);
|
|
230
229
|
s(r), S((d) => y(i, `${a(h).rule ?? ""} ${d ?? ""}`), [() => b()("contribution")]), p(o, r);
|
|
231
230
|
}), s(t), S(() => n = N(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(G) === "casino" })), p(e, t);
|
|
232
231
|
};
|
|
233
232
|
B(me, (e) => {
|
|
234
|
-
a(
|
|
233
|
+
a(I) && e(Le);
|
|
235
234
|
});
|
|
236
235
|
}
|
|
237
|
-
var
|
|
236
|
+
var q = x(me, 2);
|
|
238
237
|
let ce;
|
|
239
|
-
var Oe = l(
|
|
238
|
+
var Oe = l(q);
|
|
240
239
|
{
|
|
241
240
|
var Re = (e) => {
|
|
242
241
|
var t = Y(), n = Z(t);
|
|
@@ -262,8 +261,8 @@ function gt(D, c) {
|
|
|
262
261
|
Q(d, 17, () => a(Ae), V, (k, m) => {
|
|
263
262
|
var A = pt();
|
|
264
263
|
A.__click = () => Ne(a(m));
|
|
265
|
-
var
|
|
266
|
-
s(P), s(
|
|
264
|
+
var J = l(A), O = l(J), K = x(O, 2), P = l(K), T = l(P, !0);
|
|
265
|
+
s(P), s(K), s(J), s(A), S(
|
|
267
266
|
(X) => {
|
|
268
267
|
de(O, "src", `https:${a(m).thumbnail}`), de(O, "alt", a(m).name), y(T, X);
|
|
269
268
|
},
|
|
@@ -285,8 +284,8 @@ function gt(D, c) {
|
|
|
285
284
|
a(H) ? e(Re) : e(We, !1);
|
|
286
285
|
});
|
|
287
286
|
}
|
|
288
|
-
s(
|
|
289
|
-
var ve = x(
|
|
287
|
+
s(q);
|
|
288
|
+
var ve = x(q, 2);
|
|
290
289
|
{
|
|
291
290
|
var ze = (e) => {
|
|
292
291
|
var t = vt();
|
|
@@ -297,22 +296,22 @@ function gt(D, c) {
|
|
|
297
296
|
s(o);
|
|
298
297
|
var r = x(o, 2);
|
|
299
298
|
Q(r, 21, () => a(Se), V, (k, m) => {
|
|
300
|
-
var A = Y(),
|
|
299
|
+
var A = Y(), J = Z(A);
|
|
301
300
|
{
|
|
302
301
|
var O = (P) => {
|
|
303
302
|
var T = mt();
|
|
304
303
|
p(P, T);
|
|
305
|
-
},
|
|
304
|
+
}, K = (P) => {
|
|
306
305
|
var T = ct();
|
|
307
306
|
let X;
|
|
308
307
|
T.__click = () => Ge(a(m));
|
|
309
|
-
var
|
|
308
|
+
var Ue = l(T, !0);
|
|
310
309
|
s(T), S(() => {
|
|
311
|
-
X = N(T, 1, "PaginationButton Number svelte-p7mf8l", null, X, { Active: a(m) === a(
|
|
310
|
+
X = N(T, 1, "PaginationButton Number svelte-p7mf8l", null, X, { Active: a(m) === a(F) }), y(Ue, a(m));
|
|
312
311
|
}), p(P, T);
|
|
313
312
|
};
|
|
314
|
-
B(
|
|
315
|
-
typeof a(m) != "number" ? P(O) : P(
|
|
313
|
+
B(J, (P) => {
|
|
314
|
+
typeof a(m) != "number" ? P(O) : P(K, !1);
|
|
316
315
|
});
|
|
317
316
|
}
|
|
318
317
|
p(k, A);
|
|
@@ -328,7 +327,7 @@ function gt(D, c) {
|
|
|
328
327
|
), p(e, t);
|
|
329
328
|
};
|
|
330
329
|
B(ve, (e) => {
|
|
331
|
-
a(
|
|
330
|
+
a(U) && M() > v() && e(ze);
|
|
332
331
|
});
|
|
333
332
|
}
|
|
334
333
|
var Ce = x(ve, 2);
|
|
@@ -338,23 +337,23 @@ function gt(D, c) {
|
|
|
338
337
|
p(e, t);
|
|
339
338
|
};
|
|
340
339
|
B(Ce, (e) => {
|
|
341
|
-
a(
|
|
340
|
+
a(U) || e(He);
|
|
342
341
|
});
|
|
343
342
|
}
|
|
344
343
|
s(oe), S(
|
|
345
344
|
(e, t) => {
|
|
346
|
-
y(je, e), y(Me, t), ce = N(
|
|
345
|
+
y(je, e), y(Me, t), ce = N(q, 1, "TournamentGamesContainer svelte-p7mf8l", null, ce, { Hidden: a(G) === "sports" });
|
|
347
346
|
},
|
|
348
347
|
[
|
|
349
348
|
() => b()("gamesDescriptionTitle"),
|
|
350
349
|
() => b()("gamesDescriptionSubtitle")
|
|
351
350
|
]
|
|
352
351
|
), p(D, oe);
|
|
353
|
-
var
|
|
354
|
-
return _e(),
|
|
352
|
+
var Ie = Ye(De);
|
|
353
|
+
return _e(), Ie;
|
|
355
354
|
}
|
|
356
|
-
|
|
357
|
-
customElements.define("tournament-games",
|
|
355
|
+
tt(["click"]);
|
|
356
|
+
customElements.define("tournament-games", at(
|
|
358
357
|
gt,
|
|
359
358
|
{
|
|
360
359
|
initialGames: {},
|
|
@@ -14,13 +14,12 @@ var ge = (A, p, m) => new Promise((te, C) => {
|
|
|
14
14
|
}, y = (f) => f.done ? te(f.value) : Promise.resolve(f.value).then(L, z);
|
|
15
15
|
y((m = m.apply(A, p)).next());
|
|
16
16
|
});
|
|
17
|
-
import { a as
|
|
18
|
-
import { g as ot } from "./TournamentDetailsPage-0JKgpPb4.js";
|
|
17
|
+
import { a as Je, $ as Ke, p as Xe, b as Qe, d as w, u as Ve, e as be, j as W, L as Ye, P as Ze, w as k, i as M, g as a, t as D, y as P, H as E, f as c, h as $e, C as et, D as tt, s as at, k as _, m as T, n as l, v as Y, z as Z, q as $, r as ee, x, l as pe, A as nt, B as ot, E as i, N as he } from "./TournamentDetailsPage-CqwgEfgR.js";
|
|
19
18
|
function _e(A, p) {
|
|
20
|
-
|
|
19
|
+
Je(A, p);
|
|
21
20
|
}
|
|
22
21
|
function xe(A) {
|
|
23
|
-
|
|
22
|
+
Ke.set(A);
|
|
24
23
|
}
|
|
25
24
|
const ye = {
|
|
26
25
|
en: {
|
|
@@ -49,7 +48,7 @@ const bt = {
|
|
|
49
48
|
hash: "svelte-p7mf8l",
|
|
50
49
|
code: `.svelte-p7mf8l,
|
|
51
50
|
.svelte-p7mf8l::before,
|
|
52
|
-
.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;min-height:150px;}.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-
|
|
51
|
+
.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;min-height:150px;}.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-fill, minmax(min(170px, 100%), 1fr));.TournamentGameThumbnailSkeleton:where(.svelte-p7mf8l) {position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:6px;background:linear-gradient(
|
|
53
52
|
to top,
|
|
54
53
|
var(--emw-color-primary, #FF1D4E),
|
|
55
54
|
transparent
|
|
@@ -78,8 +77,8 @@ const bt = {
|
|
|
78
77
|
function ht(A, p) {
|
|
79
78
|
var fe;
|
|
80
79
|
Xe(p, !0), Qe(A, bt);
|
|
81
|
-
const m = () =>
|
|
82
|
-
let e = new URL(
|
|
80
|
+
const m = () => et(tt, "$_", te), [te, C] = at(), L = w(p, "initialGames"), z = w(p, "endpoint"), y = w(p, "language", 7, "en"), f = w(p, "session"), B = w(p, "tournamentid"), g = w(p, "gamesLimit", 7, 6), O = w(p, "totalGames"), ae = w(p, "platformProp", 7, null), R = w(p, "tournamentMetadata"), I = w(p, "translationurl"), we = () => {
|
|
81
|
+
let e = new URL(I());
|
|
83
82
|
fetch(e.href).then((t) => t.json()).then((t) => {
|
|
84
83
|
Object.keys(t).forEach((n) => {
|
|
85
84
|
_e(n, t[n]);
|
|
@@ -95,22 +94,22 @@ function ht(A, p) {
|
|
|
95
94
|
xe(y());
|
|
96
95
|
};
|
|
97
96
|
Ve(() => {
|
|
98
|
-
|
|
97
|
+
I() && we();
|
|
99
98
|
}), be(() => {
|
|
100
99
|
ke();
|
|
101
100
|
});
|
|
102
|
-
let ne = W(Ye(L() || [])),
|
|
103
|
-
const Pe = rt() ? (fe = ae()) != null ? fe : "dk" :
|
|
104
|
-
if (re.has(a(
|
|
101
|
+
let ne = W(Ye(L() || [])), U = W(!1), b = W(0), F = W(void 0), q = W(!0);
|
|
102
|
+
const Pe = rt() ? (fe = ae()) != null ? fe : "dk" : Ze(window.navigator.userAgent), oe = () => ge(this, null, function* () {
|
|
103
|
+
if (re.has(a(J)))
|
|
105
104
|
return;
|
|
106
|
-
_(
|
|
105
|
+
_(U, !0);
|
|
107
106
|
const e = new URL(`${z()}/v1/tournaments/${B()}`), t = new Headers();
|
|
108
107
|
f() && t.append("X-SessionId", f());
|
|
109
108
|
const n = { method: "GET", headers: t };
|
|
110
109
|
e.searchParams.append("filter", `id=${B()}`), e.searchParams.append("language", y()), e.searchParams.append("expand", "games"), e.searchParams.append("pagination", `games(limit=${g()},offset=${a(b)})`), e.searchParams.append("platform", Pe), fetch(e, n).then((o) => o.json()).then((o) => {
|
|
111
110
|
var d, r;
|
|
112
|
-
_(ne, (r = (d = o == null ? void 0 : o.item) == null ? void 0 : d.games) == null ? void 0 : r.items, !0), re.set(a(
|
|
113
|
-
}).catch((o) => console.log(o)).finally(() => _(
|
|
111
|
+
_(ne, (r = (d = o == null ? void 0 : o.item) == null ? void 0 : d.games) == null ? void 0 : r.items, !0), re.set(a(J), a(ne)), a(q) || _(q, !0);
|
|
112
|
+
}).catch((o) => console.log(o)).finally(() => _(U, !1));
|
|
114
113
|
}), Te = () => {
|
|
115
114
|
const e = Math.ceil(O() / g()), t = Math.floor(a(b) / g()) + 1;
|
|
116
115
|
if (e <= 5)
|
|
@@ -123,10 +122,10 @@ function ht(A, p) {
|
|
|
123
122
|
a(b) !== 0 && (_(b, a(b) - g()), oe());
|
|
124
123
|
}, Ae = (e) => {
|
|
125
124
|
_(b, (e - 1) * g()), oe();
|
|
126
|
-
}, Be = pe(Te),
|
|
125
|
+
}, Be = pe(Te), J = pe(() => Math.floor(a(b) / g()) + 1);
|
|
127
126
|
let re = /* @__PURE__ */ new Map([[1, L()]]), Ne = pe(() => {
|
|
128
127
|
var e;
|
|
129
|
-
return (e = re.get(a(
|
|
128
|
+
return (e = re.get(a(J))) != null ? e : [];
|
|
130
129
|
}), N = W("casino");
|
|
131
130
|
const De = () => {
|
|
132
131
|
var n;
|
|
@@ -135,9 +134,9 @@ function ht(A, p) {
|
|
|
135
134
|
let t;
|
|
136
135
|
if (e)
|
|
137
136
|
try {
|
|
138
|
-
t = JSON.parse(e), _(
|
|
137
|
+
t = JSON.parse(e), _(F, t[y()] || t["*"], !0);
|
|
139
138
|
} catch (o) {
|
|
140
|
-
console.log(o), _(
|
|
139
|
+
console.log(o), _(F, `${m()("sportsRulesParseError")}`);
|
|
141
140
|
}
|
|
142
141
|
}, je = (e) => {
|
|
143
142
|
window.postMessage(
|
|
@@ -210,10 +209,10 @@ function ht(A, p) {
|
|
|
210
209
|
R(e), T();
|
|
211
210
|
},
|
|
212
211
|
get translationurl() {
|
|
213
|
-
return
|
|
212
|
+
return I();
|
|
214
213
|
},
|
|
215
214
|
set translationurl(e) {
|
|
216
|
-
|
|
215
|
+
I(e), T();
|
|
217
216
|
}
|
|
218
217
|
}, se = gt(), ie = l(se), le = l(ie), Ee = l(le, !0);
|
|
219
218
|
i(le);
|
|
@@ -247,7 +246,7 @@ function ht(A, p) {
|
|
|
247
246
|
var Re = (e) => {
|
|
248
247
|
var t = lt();
|
|
249
248
|
let n;
|
|
250
|
-
Y(t, 21, () => a(
|
|
249
|
+
Y(t, 21, () => a(F), Z, (o, d) => {
|
|
251
250
|
var r = it(), s = l(r);
|
|
252
251
|
i(r), D((v) => {
|
|
253
252
|
var h;
|
|
@@ -256,12 +255,12 @@ function ht(A, p) {
|
|
|
256
255
|
}), i(t), D(() => n = E(t, 1, "TournamentRulesWrapper svelte-p7mf8l", null, n, { Hidden: a(N) === "casino" })), c(e, t);
|
|
257
256
|
};
|
|
258
257
|
M(ve, (e) => {
|
|
259
|
-
a(
|
|
258
|
+
a(F) && e(Re);
|
|
260
259
|
});
|
|
261
260
|
}
|
|
262
|
-
var
|
|
261
|
+
var K = k(ve, 2);
|
|
263
262
|
let ue;
|
|
264
|
-
var We = l(
|
|
263
|
+
var We = l(K);
|
|
265
264
|
{
|
|
266
265
|
var ze = (e) => {
|
|
267
266
|
var t = $(), n = ee(t);
|
|
@@ -300,7 +299,7 @@ function ht(A, p) {
|
|
|
300
299
|
n,
|
|
301
300
|
(r) => {
|
|
302
301
|
var s;
|
|
303
|
-
!a(
|
|
302
|
+
!a(U) && ((s = a(ne)) == null ? void 0 : s.length) === 0 ? r(o) : r(d, !1);
|
|
304
303
|
},
|
|
305
304
|
!0
|
|
306
305
|
);
|
|
@@ -308,11 +307,11 @@ function ht(A, p) {
|
|
|
308
307
|
c(e, t);
|
|
309
308
|
};
|
|
310
309
|
M(We, (e) => {
|
|
311
|
-
a(
|
|
310
|
+
a(U) ? e(ze) : e(He, !1);
|
|
312
311
|
});
|
|
313
312
|
}
|
|
314
|
-
i(
|
|
315
|
-
var de = k(
|
|
313
|
+
i(K);
|
|
314
|
+
var de = k(K, 2);
|
|
316
315
|
{
|
|
317
316
|
var Ce = (e) => {
|
|
318
317
|
var t = dt();
|
|
@@ -332,9 +331,9 @@ function ht(A, p) {
|
|
|
332
331
|
var S = ut();
|
|
333
332
|
let V;
|
|
334
333
|
S.__click = () => Ae(a(u));
|
|
335
|
-
var
|
|
334
|
+
var qe = l(S, !0);
|
|
336
335
|
i(S), D(() => {
|
|
337
|
-
V = E(S, 1, "PaginationButton Number svelte-p7mf8l", null, V, { Active: a(u) === a(
|
|
336
|
+
V = E(S, 1, "PaginationButton Number svelte-p7mf8l", null, V, { Active: a(u) === a(J) }), P(qe, a(u));
|
|
338
337
|
}), c(G, S);
|
|
339
338
|
};
|
|
340
339
|
M(X, (G) => {
|
|
@@ -354,33 +353,33 @@ function ht(A, p) {
|
|
|
354
353
|
), c(e, t);
|
|
355
354
|
};
|
|
356
355
|
M(de, (e) => {
|
|
357
|
-
a(
|
|
356
|
+
a(q) && O() > g() && e(Ce);
|
|
358
357
|
});
|
|
359
358
|
}
|
|
360
|
-
var
|
|
359
|
+
var Ie = k(de, 2);
|
|
361
360
|
{
|
|
362
|
-
var
|
|
361
|
+
var Ue = (e) => {
|
|
363
362
|
var t = ft();
|
|
364
363
|
c(e, t);
|
|
365
364
|
};
|
|
366
|
-
M(
|
|
367
|
-
a(
|
|
365
|
+
M(Ie, (e) => {
|
|
366
|
+
a(q) || e(Ue);
|
|
368
367
|
});
|
|
369
368
|
}
|
|
370
369
|
i(se), D(
|
|
371
370
|
(e, t) => {
|
|
372
|
-
P(Ee, e), P(Le, t), ue = E(
|
|
371
|
+
P(Ee, e), P(Le, t), ue = E(K, 1, "TournamentGamesContainer svelte-p7mf8l", null, ue, { Hidden: a(N) === "sports" });
|
|
373
372
|
},
|
|
374
373
|
[
|
|
375
374
|
() => m()("gamesDescriptionTitle"),
|
|
376
375
|
() => m()("gamesDescriptionSubtitle")
|
|
377
376
|
]
|
|
378
377
|
), c(A, se);
|
|
379
|
-
var
|
|
380
|
-
return C(),
|
|
378
|
+
var Fe = $e(Me);
|
|
379
|
+
return C(), Fe;
|
|
381
380
|
}
|
|
382
|
-
|
|
383
|
-
customElements.define("tournament-games",
|
|
381
|
+
nt(["click"]);
|
|
382
|
+
customElements.define("tournament-games", ot(
|
|
384
383
|
ht,
|
|
385
384
|
{
|
|
386
385
|
initialGames: {},
|