fansunited-frontend-components 0.0.71 → 0.0.73
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/PlayerOfTheMatch.js +8 -8
- package/Predictor.js +288 -302
- package/TopX.js +326 -340
- package/chunks/WorkspacePremiumOutlined-CwPqytci.js +121 -0
- package/index.js +1 -1
- package/package.json +2 -2
- package/chunks/index-C_R74meU.js +0 -4819
package/Predictor.js
CHANGED
|
@@ -10,27 +10,27 @@ import { F as tn, C as on } from "./chunks/FormControl-fKyT2Mql.js";
|
|
|
10
10
|
import { T as k } from "./chunks/Typography-B8CtvKkm.js";
|
|
11
11
|
import { B as Ae, I as mt } from "./chunks/Button-CO-k2gLb.js";
|
|
12
12
|
import { h as gt, o as tt, c as rn } from "./chunks/helpers-DgUDSfd1.js";
|
|
13
|
-
import { S as wo, W as nn, E as _t, M as sn, A as ln, a as an, G as Kt, C as qt, b as Io, c as cn,
|
|
13
|
+
import { S as wo, W as nn, E as _t, M as sn, A as ln, a as an, G as Kt, C as qt, b as Io, c as cn, d as dn, e as nr, L as pn, V as fo, f as un, g as mn, h as ir, i as fn, P as xn, j as hn, k as St, l as gn, B as yn, H as Wo, m as bn, R as sr, n as Ao, o as Cn, p as Sn, q as kn, r as Mo, T as vn, s as wn, t as In, N as Rn, u as Ln, v as $n, w as zn } from "./chunks/WorkspacePremiumOutlined-CwPqytci.js";
|
|
14
14
|
import { a as Ro, K as lr } from "./chunks/KeyboardArrowDown-DL8VjkJT.js";
|
|
15
15
|
import { D as ct } from "./chunks/DirectionScope-BGDPaR6B.js";
|
|
16
16
|
import { P as Tt } from "./chunks/Person-CLQl7Sxs.js";
|
|
17
|
-
import { S as
|
|
18
|
-
import { C as
|
|
19
|
-
import { C as
|
|
17
|
+
import { S as Tn } from "./chunks/Spinner-Bb4eb64F.js";
|
|
18
|
+
import { C as En, a as Fn } from "./chunks/chevrons-right-CXSpQt9w.js";
|
|
19
|
+
import { C as Pn, a as Wn } from "./chunks/chevron-right-eZEqQ93O.js";
|
|
20
20
|
import { S as Qt } from "./chunks/Sheet-sYNAL7gX.js";
|
|
21
21
|
import { T as xo } from "./chunks/Table-C09wF6nK.js";
|
|
22
22
|
import { A as Jt } from "./chunks/Avatar-CEbT4X-o.js";
|
|
23
23
|
import { E as kt } from "./chunks/EmojiEvents-CpsA2Qo0.js";
|
|
24
|
-
import { D as ar, C as cr, E as
|
|
24
|
+
import { D as ar, C as cr, E as An } from "./chunks/EditOutlined-B__rjTwX.js";
|
|
25
25
|
import { N as Zt } from "./chunks/Notification-CEdU0opQ.js";
|
|
26
26
|
import { C as dr, a as pr, S as Lo } from "./chunks/Search-BXhhax8M.js";
|
|
27
27
|
import { M as $o, a as zo } from "./chunks/ModalDialog-B0DLv5vW.js";
|
|
28
28
|
import { C as ur } from "./chunks/Close-BiMLcNyG.js";
|
|
29
29
|
import { I as Ft } from "./chunks/Input-CkSIGH-d.js";
|
|
30
30
|
import { T as mr } from "./chunks/Textarea-DWyUKbVv.js";
|
|
31
|
-
import { D as
|
|
32
|
-
import { a as
|
|
33
|
-
const
|
|
31
|
+
import { D as Mn } from "./chunks/Divider-Dueyhj7K.js";
|
|
32
|
+
import { a as Dn } from "./chunks/AlertMessage-DwSmhmHt.js";
|
|
33
|
+
const Bn = "https://search.fansunitedapi.com/v1", _n = (t) => (t ?? "").split("-")[0].toUpperCase(), Nn = (t, o) => {
|
|
34
34
|
var n;
|
|
35
35
|
const i = (n = t.translations) == null ? void 0 : n.find(
|
|
36
36
|
(c) => {
|
|
@@ -39,7 +39,7 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
return (i == null ? void 0 : i.name) ?? null;
|
|
42
|
-
},
|
|
42
|
+
}, Hn = (t) => {
|
|
43
43
|
var o, i;
|
|
44
44
|
return ((i = (o = t.assets) == null ? void 0 : o.find((n) => n.key === "LOGO")) == null ? void 0 : i.value) ?? null;
|
|
45
45
|
}, To = async (t, o, i) => {
|
|
@@ -70,15 +70,15 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
70
70
|
ids: g.join(","),
|
|
71
71
|
limit: String(g.length)
|
|
72
72
|
}), f = await fetch(
|
|
73
|
-
`${
|
|
73
|
+
`${Bn}/entities/search?${p.toString()}`
|
|
74
74
|
);
|
|
75
75
|
if (!f.ok) return n;
|
|
76
|
-
const u = await f.json(), y =
|
|
76
|
+
const u = await f.json(), y = _n(i);
|
|
77
77
|
(u.data ?? []).forEach((h) => {
|
|
78
78
|
const w = h.id ? x.get(h.id) : void 0;
|
|
79
79
|
w && n.set(w, {
|
|
80
|
-
name:
|
|
81
|
-
logo:
|
|
80
|
+
name: Nn(h, y),
|
|
81
|
+
logo: Hn(h)
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
} catch {
|
|
@@ -99,7 +99,7 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
99
99
|
"usePredictorContext must be used within PredictorProvider"
|
|
100
100
|
);
|
|
101
101
|
return t;
|
|
102
|
-
},
|
|
102
|
+
}, On = (t) => {
|
|
103
103
|
switch (t) {
|
|
104
104
|
case "finished":
|
|
105
105
|
return "FINISHED";
|
|
@@ -127,7 +127,7 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
127
127
|
logo: ((i = t.awayTeam.assets) == null ? void 0 : i.logo) ?? null
|
|
128
128
|
},
|
|
129
129
|
kickoffAt: t.kickoffAt ?? "",
|
|
130
|
-
status:
|
|
130
|
+
status: On((n = t.status) == null ? void 0 : n.type),
|
|
131
131
|
homeScore: ((l = (c = t.scores) == null ? void 0 : c.ftScore) == null ? void 0 : l.homeGoals) ?? null,
|
|
132
132
|
awayScore: ((d = (s = t.scores) == null ? void 0 : s.ftScore) == null ? void 0 : d.awayGoals) ?? null
|
|
133
133
|
};
|
|
@@ -179,19 +179,19 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
179
179
|
"PENALTY_MATCH",
|
|
180
180
|
"CORRECT_SCORE_HT",
|
|
181
181
|
"CORRECT_SCORE_ADVANCED"
|
|
182
|
-
],
|
|
182
|
+
], jn = [
|
|
183
183
|
"HT_1X2",
|
|
184
184
|
"FT_1X2",
|
|
185
185
|
"CORRECT_SCORE_ADVANCED",
|
|
186
186
|
"CORRECT_SCORE_HT"
|
|
187
|
-
], Pt = "CORRECT_SCORE_ADVANCED", go = gr, ot = (t) => hr[t], It = (t) => typeof t == "string" && t in hr,
|
|
187
|
+
], Pt = "CORRECT_SCORE_ADVANCED", go = gr, ot = (t) => hr[t], It = (t) => typeof t == "string" && t in hr, Vn = (t) => {
|
|
188
188
|
const o = /* @__PURE__ */ new Set(), i = [];
|
|
189
189
|
(t ?? []).forEach((s) => {
|
|
190
190
|
It(s) ? o.add(s) : i.push(s);
|
|
191
191
|
}), i.length && console.warn(
|
|
192
192
|
`[Predictor] Ignoring unsupported prediction market(s): ${i.map((s) => JSON.stringify(s)).join(", ")}. Supported: ${go.join(", ")}.`
|
|
193
193
|
);
|
|
194
|
-
const n = gr.filter((s) => o.has(s)), c = n.length > 0 ? n : [...go], l =
|
|
194
|
+
const n = gr.filter((s) => o.has(s)), c = n.length > 0 ? n : [...go], l = jn.find((s) => c.includes(s));
|
|
195
195
|
return l ? [l, ...c.filter((s) => s !== l)] : c;
|
|
196
196
|
}, Do = (t, o) => Math.floor(parseFloat(t.replace(o, "").replace("_", "."))), Eo = (t, o) => {
|
|
197
197
|
switch (t) {
|
|
@@ -245,7 +245,7 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
245
245
|
default:
|
|
246
246
|
return null;
|
|
247
247
|
}
|
|
248
|
-
}, to = 15,
|
|
248
|
+
}, to = 15, Xn = 0, Yn = 20, Un = 0, Gn = 30, oo = (t) => Math.max(Xn, Math.min(Yn, t)), Bo = (t) => Math.max(Un, Math.min(Gn, t)), _o = (t) => {
|
|
249
249
|
const o = t.FT_1X2;
|
|
250
250
|
if (o != null && o !== "")
|
|
251
251
|
return String(o).toUpperCase();
|
|
@@ -253,8 +253,8 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
253
253
|
if (typeof i != "string") return null;
|
|
254
254
|
const [n, c] = i.split(":").map((l) => parseInt(l, 10));
|
|
255
255
|
return Number.isNaN(n) || Number.isNaN(c) ? null : n > c ? "1" : n < c ? "2" : "X";
|
|
256
|
-
},
|
|
257
|
-
outcome:
|
|
256
|
+
}, Kn = (t, o) => t > o ? "1" : t < o ? "2" : "x", br = (t, o, i, n, c) => ot(t) !== "oneXTwo" || o == null || i == null ? null : {
|
|
257
|
+
outcome: Kn(o, i),
|
|
258
258
|
live: n,
|
|
259
259
|
// Taken from the API's own settlement rather than compared here, so a void or re-graded match
|
|
260
260
|
// never gets a ✓ the leaderboard disagrees with.
|
|
@@ -291,7 +291,7 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
}), n;
|
|
294
|
-
},
|
|
294
|
+
}, qn = () => {
|
|
295
295
|
const [t, o] = E(
|
|
296
296
|
/* @__PURE__ */ new Map()
|
|
297
297
|
), i = ee((l) => {
|
|
@@ -315,20 +315,20 @@ const Nn = "https://search.fansunitedapi.com/v1", Hn = (t) => (t ?? "").split("-
|
|
|
315
315
|
);
|
|
316
316
|
return { predictions: t, setPredictions: i, updatePredictions: n, removePrediction: c };
|
|
317
317
|
};
|
|
318
|
-
function
|
|
318
|
+
function Qn(t) {
|
|
319
319
|
if (!t) return !0;
|
|
320
320
|
const o = t.replace("#", "");
|
|
321
321
|
if (o.length < 6) return !0;
|
|
322
322
|
const i = parseInt(o.substring(0, 2), 16), n = parseInt(o.substring(2, 4), 16), c = parseInt(o.substring(4, 6), 16);
|
|
323
323
|
return (0.2126 * i + 0.7152 * n + 0.0722 * c) / 255 < 0.5;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Jn(t) {
|
|
326
326
|
const o = /* @__PURE__ */ new Map();
|
|
327
327
|
return t.forEach((i, n) => {
|
|
328
328
|
if (!i || i.length === 0) return;
|
|
329
329
|
const c = i.filter((l) => l.bookmaker && l.markets && l.markets.length > 0).map((l) => {
|
|
330
330
|
var f, u, y, h, w, b, C, R;
|
|
331
|
-
const s = l.bookmaker, d = (f = s.assets) == null ? void 0 : f[0], a = ((u = s.branding) == null ? void 0 : u.backgroundColor) || (d == null ? void 0 : d.backgroundColor), x = ((y = s.branding) == null ? void 0 : y.textColor) || (
|
|
331
|
+
const s = l.bookmaker, d = (f = s.assets) == null ? void 0 : f[0], a = ((u = s.branding) == null ? void 0 : u.backgroundColor) || (d == null ? void 0 : d.backgroundColor), x = ((y = s.branding) == null ? void 0 : y.textColor) || (Qn(a) ? "#FFFFFF" : "#000000"), g = (d == null ? void 0 : d.transparentBackgroundUrl) || (d == null ? void 0 : d.logo) || ((h = s.branding) == null ? void 0 : h.logo), p = ((b = (w = s.eventUrls) == null ? void 0 : w.find((I) => I.appType === "desktop")) == null ? void 0 : b.url) || ((R = (C = s.links) == null ? void 0 : C.find((I) => I.appType === "desktop")) == null ? void 0 : R.homepageUrl) || s.url || "";
|
|
332
332
|
return {
|
|
333
333
|
operator: {
|
|
334
334
|
id: s.id,
|
|
@@ -362,7 +362,7 @@ function ei(t) {
|
|
|
362
362
|
c.length > 0 && o.set(n, c);
|
|
363
363
|
}), o;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Zn(t) {
|
|
366
366
|
var l, s, d;
|
|
367
367
|
if (!t.operator || t.markets.length === 0) return null;
|
|
368
368
|
const i = t.markets[0].selections.map((a) => {
|
|
@@ -386,21 +386,21 @@ function ti(t) {
|
|
|
386
386
|
};
|
|
387
387
|
return { odds: i, operator: c };
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ei(t) {
|
|
390
390
|
const o = /* @__PURE__ */ new Map();
|
|
391
391
|
return t.forEach((i, n) => {
|
|
392
|
-
const c = i.map(
|
|
392
|
+
const c = i.map(Zn).filter((l) => l !== null);
|
|
393
393
|
c.length > 0 && o.set(n, c);
|
|
394
394
|
}), o;
|
|
395
395
|
}
|
|
396
|
-
const
|
|
396
|
+
const ti = 3e4;
|
|
397
397
|
function Fo({
|
|
398
398
|
sdk: t,
|
|
399
399
|
matchIds: o,
|
|
400
400
|
markets: i = ["1x2"],
|
|
401
401
|
oddType: n = Zr.ALL,
|
|
402
402
|
isLive: c = !1,
|
|
403
|
-
pollingIntervalMs: l =
|
|
403
|
+
pollingIntervalMs: l = ti,
|
|
404
404
|
operatorId: s
|
|
405
405
|
}) {
|
|
406
406
|
const [d, a] = E(/* @__PURE__ */ new Map()), [x, g] = E(!0), p = _e(!0), f = fe(() => [...o].sort().join(","), [o]), u = fe(() => [...i].sort().join(","), [i]), y = ee(
|
|
@@ -417,7 +417,7 @@ function Fo({
|
|
|
417
417
|
oddFormat: Qr.DECIMAL,
|
|
418
418
|
marketTypes: [Jr.FT_1X2]
|
|
419
419
|
}, b = await t.odds.getByMatchIds(o, w);
|
|
420
|
-
let C =
|
|
420
|
+
let C = Jn(b);
|
|
421
421
|
if (s) {
|
|
422
422
|
const R = /* @__PURE__ */ new Map();
|
|
423
423
|
C.forEach((I, S) => {
|
|
@@ -427,7 +427,7 @@ function Fo({
|
|
|
427
427
|
v.length > 0 && R.set(S, v);
|
|
428
428
|
}), C = R;
|
|
429
429
|
}
|
|
430
|
-
a(
|
|
430
|
+
a(ei(C));
|
|
431
431
|
} catch {
|
|
432
432
|
a(/* @__PURE__ */ new Map());
|
|
433
433
|
} finally {
|
|
@@ -445,7 +445,7 @@ function Fo({
|
|
|
445
445
|
return () => clearInterval(h);
|
|
446
446
|
}, [c, f, l, y]), { oddsMap: d, loading: x };
|
|
447
447
|
}
|
|
448
|
-
async function
|
|
448
|
+
async function oi(t) {
|
|
449
449
|
try {
|
|
450
450
|
const o = await t.profile.getOwnConsents();
|
|
451
451
|
return new Set(o.map((i) => i.consentId));
|
|
@@ -453,7 +453,7 @@ async function ni(t) {
|
|
|
453
453
|
return console.warn("[predictor-consent] failed to load own consents:", o), /* @__PURE__ */ new Set();
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
async function
|
|
456
|
+
async function ri(t, o, i, n) {
|
|
457
457
|
i.length !== 0 && await t.profile.collectConsents(
|
|
458
458
|
i.map((c) => {
|
|
459
459
|
const l = o.find((s) => s.consentId === c);
|
|
@@ -466,7 +466,7 @@ async function ii(t, o, i, n) {
|
|
|
466
466
|
})
|
|
467
467
|
);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function ni() {
|
|
470
470
|
const { sdk: t, userIsLoggedIn: o, consents: i, entityId: n } = at(), [c, l] = E(null), [s, d] = E(!0), a = ee(async () => {
|
|
471
471
|
if (!o) {
|
|
472
472
|
l(null), d(!1);
|
|
@@ -474,7 +474,7 @@ function si() {
|
|
|
474
474
|
}
|
|
475
475
|
d(!0);
|
|
476
476
|
try {
|
|
477
|
-
const f = await
|
|
477
|
+
const f = await oi(t);
|
|
478
478
|
l(f);
|
|
479
479
|
} finally {
|
|
480
480
|
d(!1);
|
|
@@ -485,7 +485,7 @@ function si() {
|
|
|
485
485
|
}, [a]);
|
|
486
486
|
const x = ee(
|
|
487
487
|
async (f) => {
|
|
488
|
-
await
|
|
488
|
+
await ri(t, i, f, n), l((u) => {
|
|
489
489
|
const y = new Set(u ?? []);
|
|
490
490
|
return f.forEach((h) => y.add(h)), y;
|
|
491
491
|
});
|
|
@@ -494,7 +494,7 @@ function si() {
|
|
|
494
494
|
), g = fe(() => c ? i.filter((f) => !c.has(f.consentId)) : i, [i, c]), p = fe(() => g.filter((f) => f.required), [g]);
|
|
495
495
|
return { accepted: c, loading: s, available: g, missingRequired: p, submit: x, refresh: a };
|
|
496
496
|
}
|
|
497
|
-
const
|
|
497
|
+
const ii = ({
|
|
498
498
|
consents: t,
|
|
499
499
|
initialAccepted: o,
|
|
500
500
|
onChange: i
|
|
@@ -577,7 +577,7 @@ const li = ({
|
|
|
577
577
|
}
|
|
578
578
|
) }, u.consentId);
|
|
579
579
|
}) });
|
|
580
|
-
},
|
|
580
|
+
}, si = ({
|
|
581
581
|
isOpen: t,
|
|
582
582
|
available: o,
|
|
583
583
|
missingRequired: i,
|
|
@@ -720,7 +720,7 @@ const li = ({
|
|
|
720
720
|
}
|
|
721
721
|
),
|
|
722
722
|
/* @__PURE__ */ e(
|
|
723
|
-
|
|
723
|
+
ii,
|
|
724
724
|
{
|
|
725
725
|
consents: o,
|
|
726
726
|
initialAccepted: n ?? void 0,
|
|
@@ -818,7 +818,7 @@ const li = ({
|
|
|
818
818
|
);
|
|
819
819
|
};
|
|
820
820
|
function wr() {
|
|
821
|
-
const { available: t, missingRequired: o, accepted: i, loading: n, submit: c } =
|
|
821
|
+
const { available: t, missingRequired: o, accepted: i, loading: n, submit: c } = ni(), [l, s] = E(!1), d = _e(null), a = ee(async () => (n && await new Promise((p) => setTimeout(p, 50)), o.length === 0 ? !0 : new Promise((p) => {
|
|
822
822
|
d.current = p, s(!0);
|
|
823
823
|
})), [n, o]), x = ee(() => {
|
|
824
824
|
var p;
|
|
@@ -830,7 +830,7 @@ function wr() {
|
|
|
830
830
|
return {
|
|
831
831
|
ensureConsents: a,
|
|
832
832
|
modal: /* @__PURE__ */ e(
|
|
833
|
-
|
|
833
|
+
si,
|
|
834
834
|
{
|
|
835
835
|
isOpen: l,
|
|
836
836
|
available: t,
|
|
@@ -843,7 +843,7 @@ function wr() {
|
|
|
843
843
|
)
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function li(t) {
|
|
847
847
|
if (!t) return null;
|
|
848
848
|
const o = t.split(":");
|
|
849
849
|
if (o.length !== 2) return null;
|
|
@@ -1228,7 +1228,7 @@ const Ir = ({
|
|
|
1228
1228
|
)
|
|
1229
1229
|
}
|
|
1230
1230
|
);
|
|
1231
|
-
}, ro = 1.75, Rr = 0.8125, Lr = 0.75,
|
|
1231
|
+
}, ro = 1.75, Rr = 0.8125, Lr = 0.75, ai = 1, ci = ({
|
|
1232
1232
|
home: t,
|
|
1233
1233
|
away: o,
|
|
1234
1234
|
value: i,
|
|
@@ -1358,7 +1358,7 @@ const Ir = ({
|
|
|
1358
1358
|
),
|
|
1359
1359
|
b(o, "2")
|
|
1360
1360
|
] });
|
|
1361
|
-
},
|
|
1361
|
+
}, di = () => /* @__PURE__ */ e(
|
|
1362
1362
|
"svg",
|
|
1363
1363
|
{
|
|
1364
1364
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1372,7 +1372,7 @@ const Ir = ({
|
|
|
1372
1372
|
strokeLinejoin: "round",
|
|
1373
1373
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
1374
1374
|
}
|
|
1375
|
-
),
|
|
1375
|
+
), pi = () => /* @__PURE__ */ e(
|
|
1376
1376
|
"svg",
|
|
1377
1377
|
{
|
|
1378
1378
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1386,7 +1386,7 @@ const Ir = ({
|
|
|
1386
1386
|
strokeLinejoin: "round",
|
|
1387
1387
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
1388
1388
|
}
|
|
1389
|
-
),
|
|
1389
|
+
), ui = ({
|
|
1390
1390
|
score: t,
|
|
1391
1391
|
onIncrement: o,
|
|
1392
1392
|
onDecrement: i,
|
|
@@ -1428,7 +1428,7 @@ const Ir = ({
|
|
|
1428
1428
|
},
|
|
1429
1429
|
"&:active": { transform: n ? "none" : "scale(0.95)" }
|
|
1430
1430
|
},
|
|
1431
|
-
children: /* @__PURE__ */ e(
|
|
1431
|
+
children: /* @__PURE__ */ e(di, {})
|
|
1432
1432
|
}
|
|
1433
1433
|
),
|
|
1434
1434
|
/* @__PURE__ */ e(
|
|
@@ -1476,13 +1476,13 @@ const Ir = ({
|
|
|
1476
1476
|
},
|
|
1477
1477
|
"&:active": { transform: n ? "none" : "scale(0.95)" }
|
|
1478
1478
|
},
|
|
1479
|
-
children: /* @__PURE__ */ e(
|
|
1479
|
+
children: /* @__PURE__ */ e(pi, {})
|
|
1480
1480
|
}
|
|
1481
1481
|
)
|
|
1482
1482
|
]
|
|
1483
1483
|
}
|
|
1484
1484
|
);
|
|
1485
|
-
}, no = ze.memo(
|
|
1485
|
+
}, no = ze.memo(ui), mi = ({
|
|
1486
1486
|
home: t,
|
|
1487
1487
|
away: o,
|
|
1488
1488
|
value: i,
|
|
@@ -1538,7 +1538,7 @@ const Ir = ({
|
|
|
1538
1538
|
]
|
|
1539
1539
|
}
|
|
1540
1540
|
);
|
|
1541
|
-
},
|
|
1541
|
+
}, fi = ({
|
|
1542
1542
|
value: t,
|
|
1543
1543
|
onChange: o,
|
|
1544
1544
|
disabled: i = !1
|
|
@@ -1553,7 +1553,7 @@ const Ir = ({
|
|
|
1553
1553
|
disabled: i
|
|
1554
1554
|
}
|
|
1555
1555
|
) });
|
|
1556
|
-
},
|
|
1556
|
+
}, xi = ({
|
|
1557
1557
|
value: t,
|
|
1558
1558
|
onChange: o,
|
|
1559
1559
|
disabled: i = !1,
|
|
@@ -1603,7 +1603,7 @@ const Ir = ({
|
|
|
1603
1603
|
switch (ot(t)) {
|
|
1604
1604
|
case "oneXTwo":
|
|
1605
1605
|
return /* @__PURE__ */ e(
|
|
1606
|
-
|
|
1606
|
+
ci,
|
|
1607
1607
|
{
|
|
1608
1608
|
home: o,
|
|
1609
1609
|
away: i,
|
|
@@ -1617,7 +1617,7 @@ const Ir = ({
|
|
|
1617
1617
|
);
|
|
1618
1618
|
case "correctScore":
|
|
1619
1619
|
return /* @__PURE__ */ e(
|
|
1620
|
-
|
|
1620
|
+
mi,
|
|
1621
1621
|
{
|
|
1622
1622
|
home: o,
|
|
1623
1623
|
away: i,
|
|
@@ -1628,7 +1628,7 @@ const Ir = ({
|
|
|
1628
1628
|
);
|
|
1629
1629
|
case "corners":
|
|
1630
1630
|
return /* @__PURE__ */ e(
|
|
1631
|
-
|
|
1631
|
+
fi,
|
|
1632
1632
|
{
|
|
1633
1633
|
value: n ?? null,
|
|
1634
1634
|
onChange: c,
|
|
@@ -1637,7 +1637,7 @@ const Ir = ({
|
|
|
1637
1637
|
);
|
|
1638
1638
|
case "yesNo":
|
|
1639
1639
|
return /* @__PURE__ */ e(
|
|
1640
|
-
|
|
1640
|
+
xi,
|
|
1641
1641
|
{
|
|
1642
1642
|
value: n ?? null,
|
|
1643
1643
|
onChange: c,
|
|
@@ -1653,7 +1653,7 @@ const Ir = ({
|
|
|
1653
1653
|
away: i,
|
|
1654
1654
|
value: n,
|
|
1655
1655
|
crestEm: c = 1.25,
|
|
1656
|
-
fontEm: l =
|
|
1656
|
+
fontEm: l = ai,
|
|
1657
1657
|
tone: s = "saved"
|
|
1658
1658
|
}) => {
|
|
1659
1659
|
const { t: d } = Re("common"), { colors: a, fonts: x, spacing: g } = dt(), p = Nt(n), f = p ? yr(t, n, {
|
|
@@ -1801,7 +1801,7 @@ const Ir = ({
|
|
|
1801
1801
|
]
|
|
1802
1802
|
}
|
|
1803
1803
|
);
|
|
1804
|
-
},
|
|
1804
|
+
}, hi = ({ px: t }) => /* @__PURE__ */ m(
|
|
1805
1805
|
"svg",
|
|
1806
1806
|
{
|
|
1807
1807
|
width: t,
|
|
@@ -1818,7 +1818,7 @@ const Ir = ({
|
|
|
1818
1818
|
/* @__PURE__ */ e("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
1819
1819
|
]
|
|
1820
1820
|
}
|
|
1821
|
-
),
|
|
1821
|
+
), gi = ({ px: t }) => /* @__PURE__ */ m(
|
|
1822
1822
|
"svg",
|
|
1823
1823
|
{
|
|
1824
1824
|
width: t,
|
|
@@ -1883,7 +1883,7 @@ const Ir = ({
|
|
|
1883
1883
|
outlineOffset: "2px"
|
|
1884
1884
|
}
|
|
1885
1885
|
},
|
|
1886
|
-
children: d ? /* @__PURE__ */ e(
|
|
1886
|
+
children: d ? /* @__PURE__ */ e(gi, { px: g }) : /* @__PURE__ */ e(hi, { px: g })
|
|
1887
1887
|
}
|
|
1888
1888
|
);
|
|
1889
1889
|
}, No = 0.1875, $r = ({
|
|
@@ -2402,12 +2402,12 @@ const Ir = ({
|
|
|
2402
2402
|
}
|
|
2403
2403
|
)
|
|
2404
2404
|
] });
|
|
2405
|
-
},
|
|
2405
|
+
}, yi = (t, o) => t.toLocaleDateString(zt(o), {
|
|
2406
2406
|
day: "2-digit",
|
|
2407
2407
|
month: "short",
|
|
2408
2408
|
hour: "2-digit",
|
|
2409
2409
|
minute: "2-digit"
|
|
2410
|
-
}),
|
|
2410
|
+
}), bi = ({
|
|
2411
2411
|
kickoffDate: t,
|
|
2412
2412
|
locale: o,
|
|
2413
2413
|
rightContent: i
|
|
@@ -2434,14 +2434,14 @@ const Ir = ({
|
|
|
2434
2434
|
fontWeight: 500,
|
|
2435
2435
|
letterSpacing: "0.05em"
|
|
2436
2436
|
},
|
|
2437
|
-
children:
|
|
2437
|
+
children: yi(t, o)
|
|
2438
2438
|
}
|
|
2439
2439
|
),
|
|
2440
2440
|
i ?? null
|
|
2441
2441
|
]
|
|
2442
2442
|
}
|
|
2443
2443
|
);
|
|
2444
|
-
}, Er = ze.memo(
|
|
2444
|
+
}, Er = ze.memo(bi), Ci = ({
|
|
2445
2445
|
team: t,
|
|
2446
2446
|
score: o,
|
|
2447
2447
|
isPast: i,
|
|
@@ -2820,7 +2820,7 @@ const Ir = ({
|
|
|
2820
2820
|
]
|
|
2821
2821
|
}
|
|
2822
2822
|
);
|
|
2823
|
-
}, Ho = ze.memo(
|
|
2823
|
+
}, Ho = ze.memo(Ci), Si = ({
|
|
2824
2824
|
odds: t,
|
|
2825
2825
|
operator: o,
|
|
2826
2826
|
onOddClick: i
|
|
@@ -2984,7 +2984,7 @@ const Ir = ({
|
|
|
2984
2984
|
f({ flex: 1, maxWidth: 90 }),
|
|
2985
2985
|
t.map((u) => g(u))
|
|
2986
2986
|
] });
|
|
2987
|
-
},
|
|
2987
|
+
}, ki = ze.memo(Si), Fr = ({
|
|
2988
2988
|
oddsLoading: t,
|
|
2989
2989
|
odds: o,
|
|
2990
2990
|
operator: i,
|
|
@@ -3007,14 +3007,14 @@ const Ir = ({
|
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
3009
|
) }) : o.length > 0 && i ? /* @__PURE__ */ e(
|
|
3010
|
-
|
|
3010
|
+
ki,
|
|
3011
3011
|
{
|
|
3012
3012
|
odds: o,
|
|
3013
3013
|
operator: i,
|
|
3014
3014
|
onOddClick: n ? (d) => n(d.label) : void 0
|
|
3015
3015
|
}
|
|
3016
3016
|
) : null;
|
|
3017
|
-
},
|
|
3017
|
+
}, vi = ({
|
|
3018
3018
|
showSubmit: t,
|
|
3019
3019
|
submitDisabled: o,
|
|
3020
3020
|
showOdds: i,
|
|
@@ -3106,7 +3106,7 @@ const Ir = ({
|
|
|
3106
3106
|
}
|
|
3107
3107
|
)
|
|
3108
3108
|
] });
|
|
3109
|
-
},
|
|
3109
|
+
}, wi = ze.memo(vi), Ii = ({
|
|
3110
3110
|
prediction: t,
|
|
3111
3111
|
predictedScore: o = null,
|
|
3112
3112
|
matchHomeScore: i,
|
|
@@ -3426,7 +3426,7 @@ const Ir = ({
|
|
|
3426
3426
|
}
|
|
3427
3427
|
)
|
|
3428
3428
|
] });
|
|
3429
|
-
},
|
|
3429
|
+
}, Ri = ze.memo(Ii), Li = ({
|
|
3430
3430
|
isLive: t,
|
|
3431
3431
|
isPast: o,
|
|
3432
3432
|
isPredicted: i,
|
|
@@ -3548,7 +3548,7 @@ const Ir = ({
|
|
|
3548
3548
|
);
|
|
3549
3549
|
}
|
|
3550
3550
|
return s ? /* @__PURE__ */ e(
|
|
3551
|
-
|
|
3551
|
+
Ri,
|
|
3552
3552
|
{
|
|
3553
3553
|
prediction: s,
|
|
3554
3554
|
predictedScore: d,
|
|
@@ -3692,7 +3692,7 @@ const Ir = ({
|
|
|
3692
3692
|
}
|
|
3693
3693
|
)
|
|
3694
3694
|
] }) : null;
|
|
3695
|
-
}, Pr = ze.memo(
|
|
3695
|
+
}, Pr = ze.memo(Li), $i = () => {
|
|
3696
3696
|
var d, a, x, g, p, f, u, y, h, w, b, C, R, I, S, v, $, L, W, z, B, F;
|
|
3697
3697
|
const { t } = Re("common"), o = xe(), i = ke(), { signInCTA: n } = at();
|
|
3698
3698
|
if (n != null && n.component) return /* @__PURE__ */ e(Fe, { children: n.component });
|
|
@@ -3756,7 +3756,7 @@ const Ir = ({
|
|
|
3756
3756
|
children: s
|
|
3757
3757
|
}
|
|
3758
3758
|
) : /* @__PURE__ */ e(Ae, { fullWidth: !0, size: "sm", variant: "soft", sx: l, children: s });
|
|
3759
|
-
}, Wr = ze.memo(
|
|
3759
|
+
}, Wr = ze.memo($i), zi = ({
|
|
3760
3760
|
match: t,
|
|
3761
3761
|
markets: o,
|
|
3762
3762
|
predictions: i,
|
|
@@ -4100,7 +4100,7 @@ const Ir = ({
|
|
|
4100
4100
|
children: g("predictor.play.predictionsClosed")
|
|
4101
4101
|
}
|
|
4102
4102
|
) : w ? /* @__PURE__ */ e(
|
|
4103
|
-
|
|
4103
|
+
wi,
|
|
4104
4104
|
{
|
|
4105
4105
|
showSubmit: !L && (j.length > 0 || re < o.length),
|
|
4106
4106
|
submitDisabled: j.length === 0,
|
|
@@ -4117,7 +4117,7 @@ const Ir = ({
|
|
|
4117
4117
|
]
|
|
4118
4118
|
}
|
|
4119
4119
|
);
|
|
4120
|
-
},
|
|
4120
|
+
}, Ti = ze.memo(zi), Ei = ({ index: t = 0 }) => {
|
|
4121
4121
|
const o = xe(), i = me(), n = Se(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", l = o.surfaceVariant, s = o.surfaceVariant + "80";
|
|
4122
4122
|
return /* @__PURE__ */ m(
|
|
4123
4123
|
r,
|
|
@@ -4279,7 +4279,7 @@ const Ir = ({
|
|
|
4279
4279
|
]
|
|
4280
4280
|
}
|
|
4281
4281
|
);
|
|
4282
|
-
}, So = ze.memo(
|
|
4282
|
+
}, So = ze.memo(Ei), Fi = () => /* @__PURE__ */ e(
|
|
4283
4283
|
"svg",
|
|
4284
4284
|
{
|
|
4285
4285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4293,7 +4293,7 @@ const Ir = ({
|
|
|
4293
4293
|
strokeLinejoin: "round",
|
|
4294
4294
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
4295
4295
|
}
|
|
4296
|
-
),
|
|
4296
|
+
), Pi = () => /* @__PURE__ */ e(
|
|
4297
4297
|
"svg",
|
|
4298
4298
|
{
|
|
4299
4299
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4307,7 +4307,7 @@ const Ir = ({
|
|
|
4307
4307
|
strokeLinejoin: "round",
|
|
4308
4308
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
4309
4309
|
}
|
|
4310
|
-
),
|
|
4310
|
+
), Wi = ({
|
|
4311
4311
|
groups: t,
|
|
4312
4312
|
groupIndex: o,
|
|
4313
4313
|
currentGroup: i,
|
|
@@ -4355,7 +4355,7 @@ const Ir = ({
|
|
|
4355
4355
|
disabled: o === 0,
|
|
4356
4356
|
onClick: c,
|
|
4357
4357
|
sx: p(o === 0),
|
|
4358
|
-
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(
|
|
4358
|
+
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(Fi, {}) })
|
|
4359
4359
|
}
|
|
4360
4360
|
),
|
|
4361
4361
|
/* @__PURE__ */ m(r, { sx: { textAlign: "center" }, children: [
|
|
@@ -4398,13 +4398,13 @@ const Ir = ({
|
|
|
4398
4398
|
disabled: o === t.length - 1,
|
|
4399
4399
|
onClick: l,
|
|
4400
4400
|
sx: p(o === t.length - 1),
|
|
4401
|
-
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(
|
|
4401
|
+
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(Pi, {}) })
|
|
4402
4402
|
}
|
|
4403
4403
|
)
|
|
4404
4404
|
]
|
|
4405
4405
|
}
|
|
4406
4406
|
);
|
|
4407
|
-
},
|
|
4407
|
+
}, Ai = ze.memo(Wi), Mi = ({
|
|
4408
4408
|
matches: t,
|
|
4409
4409
|
predictions: o,
|
|
4410
4410
|
predictedCount: i,
|
|
@@ -4668,7 +4668,7 @@ const Ir = ({
|
|
|
4668
4668
|
]
|
|
4669
4669
|
}
|
|
4670
4670
|
) });
|
|
4671
|
-
},
|
|
4671
|
+
}, Di = ze.memo(Mi), Rt = (t, o) => (t == null ? void 0 : t.filter((i) => i.position === o)) ?? [], Lt = ({ banners: t }) => t.length === 0 ? null : /* @__PURE__ */ e(Fe, { children: t.map((o, i) => /* @__PURE__ */ e(r, { children: o.render() }, i)) }), Oo = (t, o) => t.toLocaleDateString(zt(o), { day: "2-digit", month: "short" }), Bi = (t) => {
|
|
4672
4672
|
const o = /* @__PURE__ */ new Date();
|
|
4673
4673
|
o.setHours(0, 0, 0, 0);
|
|
4674
4674
|
for (let i = 0; i < t.length; i++) {
|
|
@@ -4678,7 +4678,7 @@ const Ir = ({
|
|
|
4678
4678
|
if (c.setHours(23, 59, 59, 999), c >= o) return i;
|
|
4679
4679
|
}
|
|
4680
4680
|
return Math.max(0, t.length - 1);
|
|
4681
|
-
},
|
|
4681
|
+
}, _i = ({
|
|
4682
4682
|
template: t,
|
|
4683
4683
|
loading: o,
|
|
4684
4684
|
error: i,
|
|
@@ -4687,7 +4687,7 @@ const Ir = ({
|
|
|
4687
4687
|
}) => {
|
|
4688
4688
|
var te;
|
|
4689
4689
|
const { t: l } = Re("common"), s = xe(), d = ke(), a = me(), x = Se(), g = so(), { entityId: p, sdk: f, userIsLoggedIn: u, useSearchTeamData: y } = at(), { language: h } = vt(wt), { ensureConsents: w, modal: b } = wr(), C = (t == null ? void 0 : t.groups) ?? [], R = fe(
|
|
4690
|
-
() =>
|
|
4690
|
+
() => Bi(C),
|
|
4691
4691
|
[C]
|
|
4692
4692
|
), [I, S] = E(null), v = _e(R);
|
|
4693
4693
|
ge(() => {
|
|
@@ -4699,7 +4699,7 @@ const Ir = ({
|
|
|
4699
4699
|
), W = ee(
|
|
4700
4700
|
() => S((V) => (V ?? R) + 1),
|
|
4701
4701
|
[R]
|
|
4702
|
-
), [z, B] = E([]), [F, P] = E(!1), T = C[$] ?? null, { predictions: M, setPredictions: O, updatePredictions: U, removePrediction: H } =
|
|
4702
|
+
), [z, B] = E([]), [F, P] = E(!1), T = C[$] ?? null, { predictions: M, setPredictions: O, updatePredictions: U, removePrediction: H } = qn(), D = (te = t == null ? void 0 : t.markets) != null && te.length ? t.markets : [Pt], _ = D.join(","), A = D[0], N = fe(() => {
|
|
4703
4703
|
const V = /* @__PURE__ */ new Map();
|
|
4704
4704
|
return M.forEach((oe, be) => {
|
|
4705
4705
|
const ye = oe.get(A);
|
|
@@ -4869,7 +4869,7 @@ const Ir = ({
|
|
|
4869
4869
|
},
|
|
4870
4870
|
children: [
|
|
4871
4871
|
C.length > 0 && /* @__PURE__ */ e(
|
|
4872
|
-
|
|
4872
|
+
Ai,
|
|
4873
4873
|
{
|
|
4874
4874
|
groups: C,
|
|
4875
4875
|
groupIndex: $,
|
|
@@ -4924,7 +4924,7 @@ const Ir = ({
|
|
|
4924
4924
|
z.map((V) => {
|
|
4925
4925
|
var oe;
|
|
4926
4926
|
return /* @__PURE__ */ e(
|
|
4927
|
-
|
|
4927
|
+
Ti,
|
|
4928
4928
|
{
|
|
4929
4929
|
match: V,
|
|
4930
4930
|
markets: D,
|
|
@@ -4946,7 +4946,7 @@ const Ir = ({
|
|
|
4946
4946
|
),
|
|
4947
4947
|
/* @__PURE__ */ e(Lt, { banners: Rt(n, "below-matches") }),
|
|
4948
4948
|
u && z.length > 0 && !F && /* @__PURE__ */ e(
|
|
4949
|
-
|
|
4949
|
+
Di,
|
|
4950
4950
|
{
|
|
4951
4951
|
matches: z,
|
|
4952
4952
|
predictions: N,
|
|
@@ -4977,7 +4977,7 @@ const Ir = ({
|
|
|
4977
4977
|
] }),
|
|
4978
4978
|
/* @__PURE__ */ e(Lt, { banners: Rt(n, "bottom") })
|
|
4979
4979
|
] });
|
|
4980
|
-
},
|
|
4980
|
+
}, Ni = ({
|
|
4981
4981
|
count: t = 10,
|
|
4982
4982
|
page: o = 1,
|
|
4983
4983
|
onChange: i,
|
|
@@ -5033,7 +5033,7 @@ const Ir = ({
|
|
|
5033
5033
|
onClick: () => x(1),
|
|
5034
5034
|
disabled: a || o === 1,
|
|
5035
5035
|
sx: w(),
|
|
5036
|
-
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(
|
|
5036
|
+
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(En, { size: y }) })
|
|
5037
5037
|
}
|
|
5038
5038
|
),
|
|
5039
5039
|
/* @__PURE__ */ e(
|
|
@@ -5045,7 +5045,7 @@ const Ir = ({
|
|
|
5045
5045
|
onClick: () => x(o - 1),
|
|
5046
5046
|
disabled: a || o === 1,
|
|
5047
5047
|
sx: w(),
|
|
5048
|
-
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(
|
|
5048
|
+
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(Pn, { size: y }) })
|
|
5049
5049
|
}
|
|
5050
5050
|
),
|
|
5051
5051
|
f.map((b, C) => {
|
|
@@ -5090,7 +5090,7 @@ const Ir = ({
|
|
|
5090
5090
|
onClick: () => x(o + 1),
|
|
5091
5091
|
disabled: a || o === t,
|
|
5092
5092
|
sx: w(),
|
|
5093
|
-
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(
|
|
5093
|
+
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(Wn, { size: y }) })
|
|
5094
5094
|
}
|
|
5095
5095
|
),
|
|
5096
5096
|
s && /* @__PURE__ */ e(
|
|
@@ -5102,13 +5102,13 @@ const Ir = ({
|
|
|
5102
5102
|
onClick: () => x(t),
|
|
5103
5103
|
disabled: a || o === t,
|
|
5104
5104
|
sx: w(),
|
|
5105
|
-
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(
|
|
5105
|
+
children: /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(Fn, { size: y }) })
|
|
5106
5106
|
}
|
|
5107
5107
|
)
|
|
5108
5108
|
]
|
|
5109
5109
|
}
|
|
5110
5110
|
);
|
|
5111
|
-
},
|
|
5111
|
+
}, Hi = 10, Oi = () => {
|
|
5112
5112
|
var M, O;
|
|
5113
5113
|
const { t } = Re("common"), o = xe(), i = me(), n = Se(), c = ke(), l = Yr(), s = tr(), { entityId: d, sdk: a, userIsLoggedIn: x } = at(), g = ((O = (M = o.palette) == null ? void 0 : M.primary) == null ? void 0 : O.plainColor) ?? o.textPrimary, p = l.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", f = o.textColor ?? o.textPrimary, u = o.surfaceVariant, y = o.outlineEnabledBorder, [h, w] = E([]), [b, C] = E(null), [R, I] = E(null), [S, v] = E(!0), [$, L] = E(null), [W, z] = E(1), [B, F] = E(1);
|
|
5114
5114
|
ge(() => {
|
|
@@ -5141,7 +5141,7 @@ const Ir = ({
|
|
|
5141
5141
|
}, [d, a, x]), ge(() => {
|
|
5142
5142
|
if (!d || !a) return;
|
|
5143
5143
|
let U = !1;
|
|
5144
|
-
return v(!0), L(null), w([]), a.loyalty.getLeaderboard(d, { limit:
|
|
5144
|
+
return v(!0), L(null), w([]), a.loyalty.getLeaderboard(d, { limit: Hi, page: W }, !0).then((H) => {
|
|
5145
5145
|
var _, A;
|
|
5146
5146
|
if (U) return;
|
|
5147
5147
|
const D = (H.data ?? []).map(
|
|
@@ -5281,7 +5281,7 @@ const Ir = ({
|
|
|
5281
5281
|
}
|
|
5282
5282
|
};
|
|
5283
5283
|
if (S)
|
|
5284
|
-
return /* @__PURE__ */ e(
|
|
5284
|
+
return /* @__PURE__ */ e(Tn, { my: 10 });
|
|
5285
5285
|
if ($)
|
|
5286
5286
|
return /* @__PURE__ */ e(k, { level: "body-lg", sx: P.noLeaderboardText, children: t("predictor.errors.loadFailed") });
|
|
5287
5287
|
if (h.length === 0)
|
|
@@ -5355,11 +5355,11 @@ const Ir = ({
|
|
|
5355
5355
|
]
|
|
5356
5356
|
}
|
|
5357
5357
|
) }),
|
|
5358
|
-
B > 1 && /* @__PURE__ */ e(
|
|
5358
|
+
B > 1 && /* @__PURE__ */ e(Ni, { count: B, page: W, onChange: z })
|
|
5359
5359
|
]
|
|
5360
5360
|
}
|
|
5361
5361
|
);
|
|
5362
|
-
},
|
|
5362
|
+
}, ji = (t) => t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th", Vi = ({
|
|
5363
5363
|
league: t,
|
|
5364
5364
|
onClick: o,
|
|
5365
5365
|
isAdmin: i = !1,
|
|
@@ -5570,7 +5570,7 @@ const Ir = ({
|
|
|
5570
5570
|
},
|
|
5571
5571
|
children: [
|
|
5572
5572
|
t.userPosition,
|
|
5573
|
-
|
|
5573
|
+
ji(t.userPosition)
|
|
5574
5574
|
]
|
|
5575
5575
|
}
|
|
5576
5576
|
)
|
|
@@ -5771,7 +5771,7 @@ const Ir = ({
|
|
|
5771
5771
|
]
|
|
5772
5772
|
}
|
|
5773
5773
|
);
|
|
5774
|
-
},
|
|
5774
|
+
}, Xi = ze.memo(Vi), Yi = ({ index: t = 0 }) => {
|
|
5775
5775
|
const o = xe(), i = me(), n = Se(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", l = o.surfaceVariant, s = o.surfaceVariant + "80";
|
|
5776
5776
|
return /* @__PURE__ */ m(
|
|
5777
5777
|
r,
|
|
@@ -5860,7 +5860,7 @@ const Ir = ({
|
|
|
5860
5860
|
]
|
|
5861
5861
|
}
|
|
5862
5862
|
);
|
|
5863
|
-
},
|
|
5863
|
+
}, Ui = ze.memo(Yi), Gi = ({
|
|
5864
5864
|
leagues: t,
|
|
5865
5865
|
activeId: o,
|
|
5866
5866
|
onSelect: i,
|
|
@@ -6252,7 +6252,7 @@ const Ir = ({
|
|
|
6252
6252
|
)
|
|
6253
6253
|
] })
|
|
6254
6254
|
] });
|
|
6255
|
-
},
|
|
6255
|
+
}, Ki = ze.memo(Gi), qi = ({
|
|
6256
6256
|
open: t,
|
|
6257
6257
|
onClose: o,
|
|
6258
6258
|
title: i,
|
|
@@ -6356,7 +6356,7 @@ const Ir = ({
|
|
|
6356
6356
|
)
|
|
6357
6357
|
}
|
|
6358
6358
|
);
|
|
6359
|
-
}, lo = ze.memo(
|
|
6359
|
+
}, lo = ze.memo(qi), Qi = ({ rounds: t, transparent: o = !1, loading: i = !1 }) => {
|
|
6360
6360
|
var T, M, O, U;
|
|
6361
6361
|
const n = rr(), [c, l] = E(null), { t: s } = Re("common"), d = xe(), a = me(), x = Se(), g = ke(), p = ((M = (T = d.palette) == null ? void 0 : T.primary) == null ? void 0 : M.plainColor) ?? "#1A77D2", f = ((U = (O = d.palette) == null ? void 0 : O.success) == null ? void 0 : U.plainColor) ?? "#4CAF50", u = d.textSecondary ?? "#757575", y = d.textTertiary ?? d.textSecondary ?? "#9E9E9E", h = d.surfaceVariant ?? d.surface ?? "#F5F5F5", w = d.outlineEnabledBorder ?? "#E0E0E0", b = t.slice(-5), C = {
|
|
6362
6362
|
display: "flex",
|
|
@@ -6582,7 +6582,7 @@ function po({ outcome: t, color: o }) {
|
|
|
6582
6582
|
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
6583
6583
|
] }) : null;
|
|
6584
6584
|
}
|
|
6585
|
-
function
|
|
6585
|
+
function Ji({
|
|
6586
6586
|
outcome: t,
|
|
6587
6587
|
successColor: o,
|
|
6588
6588
|
warningColor: i,
|
|
@@ -6656,7 +6656,7 @@ function uo({
|
|
|
6656
6656
|
onTouchStart: () => B(Y),
|
|
6657
6657
|
onTouchEnd: () => setTimeout(() => R(null), 2500),
|
|
6658
6658
|
children: /* @__PURE__ */ e(
|
|
6659
|
-
|
|
6659
|
+
Ji,
|
|
6660
6660
|
{
|
|
6661
6661
|
outcome: G.outcome,
|
|
6662
6662
|
successColor: c,
|
|
@@ -6803,7 +6803,7 @@ function uo({
|
|
|
6803
6803
|
)
|
|
6804
6804
|
] });
|
|
6805
6805
|
}
|
|
6806
|
-
const
|
|
6806
|
+
const Zi = ({
|
|
6807
6807
|
loading: t = !1,
|
|
6808
6808
|
formMatches: o,
|
|
6809
6809
|
selfFormMatches: i = [],
|
|
@@ -7001,7 +7001,7 @@ const ts = ({
|
|
|
7001
7001
|
}
|
|
7002
7002
|
);
|
|
7003
7003
|
}, ko = 22, jo = 2 * Math.PI * ko, Bt = 24, jt = 2 * Math.PI * Bt;
|
|
7004
|
-
function
|
|
7004
|
+
function es({
|
|
7005
7005
|
loading: t = !1,
|
|
7006
7006
|
accuracy: o,
|
|
7007
7007
|
streak: i,
|
|
@@ -7595,7 +7595,7 @@ function os({
|
|
|
7595
7595
|
)
|
|
7596
7596
|
] });
|
|
7597
7597
|
}
|
|
7598
|
-
function
|
|
7598
|
+
function ts({
|
|
7599
7599
|
filters: t,
|
|
7600
7600
|
counts: o,
|
|
7601
7601
|
activeFilter: i,
|
|
@@ -7721,7 +7721,7 @@ function rs({
|
|
|
7721
7721
|
}
|
|
7722
7722
|
);
|
|
7723
7723
|
}
|
|
7724
|
-
function
|
|
7724
|
+
function os(t, o) {
|
|
7725
7725
|
if (!t || !o) return 0;
|
|
7726
7726
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
7727
7727
|
const i = (n, c) => n > c ? "H" : n < c ? "A" : "D";
|
|
@@ -7769,11 +7769,11 @@ function Xo({
|
|
|
7769
7769
|
flexShrink: 0,
|
|
7770
7770
|
boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.06)"
|
|
7771
7771
|
},
|
|
7772
|
-
children: /* @__PURE__ */ e(
|
|
7772
|
+
children: /* @__PURE__ */ e(dn, { sx: { fontSize: i * 0.6, color: "#5A6473" } })
|
|
7773
7773
|
}
|
|
7774
7774
|
);
|
|
7775
7775
|
}
|
|
7776
|
-
function
|
|
7776
|
+
function rs({
|
|
7777
7777
|
text: t,
|
|
7778
7778
|
color: o,
|
|
7779
7779
|
bg: i,
|
|
@@ -7811,7 +7811,7 @@ function is({
|
|
|
7811
7811
|
}
|
|
7812
7812
|
);
|
|
7813
7813
|
}
|
|
7814
|
-
function
|
|
7814
|
+
function ns({
|
|
7815
7815
|
matches: t,
|
|
7816
7816
|
successColor: o,
|
|
7817
7817
|
warningColor: i,
|
|
@@ -7868,7 +7868,7 @@ function ss({
|
|
|
7868
7868
|
}
|
|
7869
7869
|
);
|
|
7870
7870
|
}
|
|
7871
|
-
const
|
|
7871
|
+
const is = ze.memo(function({
|
|
7872
7872
|
label: o,
|
|
7873
7873
|
matches: i,
|
|
7874
7874
|
isOpen: n,
|
|
@@ -8008,7 +8008,7 @@ const ls = ze.memo(function({
|
|
|
8008
8008
|
pointerEvents: "none"
|
|
8009
8009
|
},
|
|
8010
8010
|
children: /* @__PURE__ */ e(
|
|
8011
|
-
|
|
8011
|
+
ns,
|
|
8012
8012
|
{
|
|
8013
8013
|
matches: i,
|
|
8014
8014
|
successColor: f,
|
|
@@ -8168,7 +8168,7 @@ const ls = ze.memo(function({
|
|
|
8168
8168
|
}
|
|
8169
8169
|
);
|
|
8170
8170
|
});
|
|
8171
|
-
function
|
|
8171
|
+
function ss({
|
|
8172
8172
|
match: t,
|
|
8173
8173
|
compareMode: o,
|
|
8174
8174
|
selfName: i,
|
|
@@ -8202,7 +8202,7 @@ function as({
|
|
|
8202
8202
|
partial: `${s}18`,
|
|
8203
8203
|
incorrect: `${d}14`,
|
|
8204
8204
|
pending: f
|
|
8205
|
-
}[t.outcome], W = o && t.played ? t.selfPoints !== null ? t.selfPoints :
|
|
8205
|
+
}[t.outcome], W = o && t.played ? t.selfPoints !== null ? t.selfPoints : os(t.selfPrediction, t.result) : null, z = o && t.played ? t.points ?? 0 : null, B = t.played && W != null && z != null && W > z, F = t.played && W != null && z != null && z > W;
|
|
8206
8206
|
return /* @__PURE__ */ m(
|
|
8207
8207
|
r,
|
|
8208
8208
|
{
|
|
@@ -8517,7 +8517,7 @@ function as({
|
|
|
8517
8517
|
}
|
|
8518
8518
|
),
|
|
8519
8519
|
t.predictionLabel ? /* @__PURE__ */ e(
|
|
8520
|
-
|
|
8520
|
+
rs,
|
|
8521
8521
|
{
|
|
8522
8522
|
text: t.predictionLabel,
|
|
8523
8523
|
color: c,
|
|
@@ -8580,7 +8580,7 @@ function as({
|
|
|
8580
8580
|
}
|
|
8581
8581
|
),
|
|
8582
8582
|
t.outcome === "pending" && /* @__PURE__ */ e(
|
|
8583
|
-
|
|
8583
|
+
cn,
|
|
8584
8584
|
{
|
|
8585
8585
|
sx: { fontSize: b ? 13 : 10, color: v }
|
|
8586
8586
|
}
|
|
@@ -8777,7 +8777,7 @@ function as({
|
|
|
8777
8777
|
}
|
|
8778
8778
|
);
|
|
8779
8779
|
}
|
|
8780
|
-
function
|
|
8780
|
+
function ls(t) {
|
|
8781
8781
|
const o = Date.now(), i = t.map((l) => {
|
|
8782
8782
|
const s = l.matches.map((d) => d.kickoffIso ? new Date(d.kickoffIso).getTime() : null).filter((d) => d !== null);
|
|
8783
8783
|
return {
|
|
@@ -8790,7 +8790,7 @@ function cs(t) {
|
|
|
8790
8790
|
const c = i.filter((l) => l.min > o).sort((l, s) => l.min - s.min);
|
|
8791
8791
|
return c.length > 0 ? c[0].round : t[0].round;
|
|
8792
8792
|
}
|
|
8793
|
-
function
|
|
8793
|
+
function as({
|
|
8794
8794
|
groups: t,
|
|
8795
8795
|
loading: o,
|
|
8796
8796
|
selfName: i,
|
|
@@ -8830,7 +8830,7 @@ function ds({
|
|
|
8830
8830
|
const T = P.current === 0;
|
|
8831
8831
|
if (P.current = t.length, t.length !== 0)
|
|
8832
8832
|
if (T)
|
|
8833
|
-
L(/* @__PURE__ */ new Set([
|
|
8833
|
+
L(/* @__PURE__ */ new Set([ls(t)]));
|
|
8834
8834
|
else {
|
|
8835
8835
|
const M = t[0].round;
|
|
8836
8836
|
L(
|
|
@@ -9036,7 +9036,7 @@ function ds({
|
|
|
9036
9036
|
},
|
|
9037
9037
|
children: [
|
|
9038
9038
|
/* @__PURE__ */ e(
|
|
9039
|
-
|
|
9039
|
+
is,
|
|
9040
9040
|
{
|
|
9041
9041
|
label: T.label,
|
|
9042
9042
|
matches: T.matches,
|
|
@@ -9067,50 +9067,36 @@ function ds({
|
|
|
9067
9067
|
compareTooltip: S("predictor.userPredictions.compareWith")
|
|
9068
9068
|
}
|
|
9069
9069
|
),
|
|
9070
|
-
/* @__PURE__ */ e(
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9070
|
+
M && /* @__PURE__ */ e(r, { children: T.matches.map((O) => {
|
|
9071
|
+
var U;
|
|
9072
|
+
return /* @__PURE__ */ e(
|
|
9073
|
+
ss,
|
|
9074
|
+
{
|
|
9075
|
+
match: O,
|
|
9076
|
+
compareMode: !v && W.has(T.round),
|
|
9077
|
+
selfName: i,
|
|
9078
|
+
theirName: n,
|
|
9079
|
+
primaryColor: s,
|
|
9080
|
+
successColor: d,
|
|
9081
|
+
warningColor: a,
|
|
9082
|
+
dangerColor: x,
|
|
9083
|
+
textPrimary: g,
|
|
9084
|
+
textSecondary: p,
|
|
9085
|
+
textTertiary: f,
|
|
9086
|
+
outlineEnabledBorder: u,
|
|
9087
|
+
outlineEnabledBorderSoft: y,
|
|
9088
|
+
surfaceVariant: w,
|
|
9089
|
+
fonts: b,
|
|
9090
|
+
spacing: C,
|
|
9091
|
+
radius: R,
|
|
9092
|
+
outcomeLabel: c[O.outcome] ?? "",
|
|
9093
|
+
isMobile: I,
|
|
9094
|
+
matchOdds: ((U = l == null ? void 0 : l.get(O.matchId)) == null ? void 0 : U[0]) ?? null,
|
|
9095
|
+
t: S
|
|
9079
9096
|
},
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
return /* @__PURE__ */ e(
|
|
9084
|
-
as,
|
|
9085
|
-
{
|
|
9086
|
-
match: O,
|
|
9087
|
-
compareMode: !v && W.has(T.round),
|
|
9088
|
-
selfName: i,
|
|
9089
|
-
theirName: n,
|
|
9090
|
-
primaryColor: s,
|
|
9091
|
-
successColor: d,
|
|
9092
|
-
warningColor: a,
|
|
9093
|
-
dangerColor: x,
|
|
9094
|
-
textPrimary: g,
|
|
9095
|
-
textSecondary: p,
|
|
9096
|
-
textTertiary: f,
|
|
9097
|
-
outlineEnabledBorder: u,
|
|
9098
|
-
outlineEnabledBorderSoft: y,
|
|
9099
|
-
surfaceVariant: w,
|
|
9100
|
-
fonts: b,
|
|
9101
|
-
spacing: C,
|
|
9102
|
-
radius: R,
|
|
9103
|
-
outcomeLabel: c[O.outcome] ?? "",
|
|
9104
|
-
isMobile: I,
|
|
9105
|
-
matchOdds: ((U = l == null ? void 0 : l.get(O.matchId)) == null ? void 0 : U[0]) ?? null,
|
|
9106
|
-
t: S
|
|
9107
|
-
},
|
|
9108
|
-
O.id
|
|
9109
|
-
);
|
|
9110
|
-
})
|
|
9111
|
-
},
|
|
9112
|
-
`content-${T.round}`
|
|
9113
|
-
) })
|
|
9097
|
+
O.id
|
|
9098
|
+
);
|
|
9099
|
+
}) })
|
|
9114
9100
|
]
|
|
9115
9101
|
},
|
|
9116
9102
|
T.round
|
|
@@ -9160,7 +9146,7 @@ function Yo({ name: t, avatarUrl: o, size: i, ring: n }) {
|
|
|
9160
9146
|
}
|
|
9161
9147
|
);
|
|
9162
9148
|
}
|
|
9163
|
-
const
|
|
9149
|
+
const cs = ({
|
|
9164
9150
|
h2h: t,
|
|
9165
9151
|
selfName: o,
|
|
9166
9152
|
selfAvatar: i,
|
|
@@ -9363,7 +9349,7 @@ const ps = ({
|
|
|
9363
9349
|
id: a.id ?? t,
|
|
9364
9350
|
title: a.name ?? "",
|
|
9365
9351
|
// Narrowed and re-sorted here so every consumer reads one already-logical market list.
|
|
9366
|
-
markets:
|
|
9352
|
+
markets: Vn(a.markets),
|
|
9367
9353
|
description: a.description ?? null,
|
|
9368
9354
|
image: ((x = a.images) == null ? void 0 : x.cover) || ((g = a.images) == null ? void 0 : g.main) || null,
|
|
9369
9355
|
rules: a.rules ?? null,
|
|
@@ -9420,20 +9406,20 @@ function Ar(t, o, i, n, c) {
|
|
|
9420
9406
|
no: c("matchQuiz.fixtures.no")
|
|
9421
9407
|
});
|
|
9422
9408
|
}
|
|
9423
|
-
function
|
|
9409
|
+
function ds(t, o) {
|
|
9424
9410
|
return t === Pt ? null : It(t) ? Eo(t, o) : t;
|
|
9425
9411
|
}
|
|
9426
|
-
function
|
|
9412
|
+
function ps(t, o) {
|
|
9427
9413
|
if (t === "FT_1X2" && o) return String(o).toUpperCase();
|
|
9428
9414
|
if (!It(t) || ot(t) !== "correctScore")
|
|
9429
9415
|
return null;
|
|
9430
9416
|
const i = ao(o);
|
|
9431
|
-
return i ?
|
|
9417
|
+
return i ? li(`${i.home}:${i.away}`) : null;
|
|
9432
9418
|
}
|
|
9433
9419
|
function Mr(t) {
|
|
9434
9420
|
return t === "CORRECT" ? "correct" : t === "PARTIALLY_CORRECT" ? "partial" : t === "INCORRECT" ? "incorrect" : "pending";
|
|
9435
9421
|
}
|
|
9436
|
-
function
|
|
9422
|
+
function us(t, o) {
|
|
9437
9423
|
if (!t) return { kickoff: "", dateLabel: "" };
|
|
9438
9424
|
try {
|
|
9439
9425
|
const i = new Date(t), n = i.toLocaleTimeString(zt(o), {
|
|
@@ -9457,7 +9443,7 @@ function Dr(t, o) {
|
|
|
9457
9443
|
return /^\d{4}-\d{2}-\d{2}$/.test(t) ? (/* @__PURE__ */ new Date(t + "T00:00:00Z")).toLocaleDateString(zt(o), { month: "short", day: "numeric" }) : t;
|
|
9458
9444
|
}
|
|
9459
9445
|
const Br = (t, o) => `${t}::${o}`;
|
|
9460
|
-
function
|
|
9446
|
+
function ms(t, o, i, n = [], c, l) {
|
|
9461
9447
|
const s = [], d = new Map(n.map((x) => [x.id, x])), a = (x) => {
|
|
9462
9448
|
if (!x) return null;
|
|
9463
9449
|
const g = new Date(x).getTime();
|
|
@@ -9474,7 +9460,7 @@ function xs(t, o, i, n = [], c, l) {
|
|
|
9474
9460
|
const y = (u == null ? void 0 : u.id) ?? p ?? (f ? io(f) : "unknown"), h = (u == null ? void 0 : u.name) ?? (f ? Dr(io(f), c) : "—"), w = String(y).split("").reduce((S, v) => S * 31 + v.charCodeAt(0) >>> 0, 0);
|
|
9475
9461
|
g.forEach((S) => {
|
|
9476
9462
|
var A, N, G, Y, Q, pe, j, re, he, ie, ce, Ce, He, J, se, ne, ve, te, V, oe, be, ye, le, ue, je, Ge, Xe, rt, Je, nt, it, Ke, et, K, X, q, de, Me, Be, De, Ie, Ve, $e, ae, We, qe, Ye, st, lt;
|
|
9477
|
-
const v = S.matchId ?? ((A = S.matchModel) == null ? void 0 : A.id) ?? String(Math.random()), $ = S.market ?? Pt, L = `${x.predictionId}::${v}::${$}`, W = It($) && ot($) === "correctScore" ? ao((N = S.prediction) == null ? void 0 : N.value) : null, z = Mr((G = S.result) == null ? void 0 : G.outcome), B = z !== "pending", F = ((pe = (Q = (Y = S.matchModel) == null ? void 0 : Y.scores) == null ? void 0 : Q.ftScore) == null ? void 0 : pe.homeGoals) ?? null, P = ((he = (re = (j = S.matchModel) == null ? void 0 : j.scores) == null ? void 0 : re.ftScore) == null ? void 0 : he.awayGoals) ?? null, T = B && F != null && P != null ? { home: F, away: P } : null, M = ((ie = S.matchModel) == null ? void 0 : ie.kickoffAt) ?? null, { kickoff: O, dateLabel: U } =
|
|
9463
|
+
const v = S.matchId ?? ((A = S.matchModel) == null ? void 0 : A.id) ?? String(Math.random()), $ = S.market ?? Pt, L = `${x.predictionId}::${v}::${$}`, W = It($) && ot($) === "correctScore" ? ao((N = S.prediction) == null ? void 0 : N.value) : null, z = Mr((G = S.result) == null ? void 0 : G.outcome), B = z !== "pending", F = ((pe = (Q = (Y = S.matchModel) == null ? void 0 : Y.scores) == null ? void 0 : Q.ftScore) == null ? void 0 : pe.homeGoals) ?? null, P = ((he = (re = (j = S.matchModel) == null ? void 0 : j.scores) == null ? void 0 : re.ftScore) == null ? void 0 : he.awayGoals) ?? null, T = B && F != null && P != null ? { home: F, away: P } : null, M = ((ie = S.matchModel) == null ? void 0 : ie.kickoffAt) ?? null, { kickoff: O, dateLabel: U } = us(M, c), H = ((He = l == null ? void 0 : l.get(((Ce = (ce = S.matchModel) == null ? void 0 : ce.homeTeam) == null ? void 0 : Ce.id) ?? "")) == null ? void 0 : He.name) || (((se = (J = S.matchModel) == null ? void 0 : J.homeTeam) == null ? void 0 : se.name) ?? "—"), D = ((te = l == null ? void 0 : l.get(((ve = (ne = S.matchModel) == null ? void 0 : ne.awayTeam) == null ? void 0 : ve.id) ?? "")) == null ? void 0 : te.name) || (((oe = (V = S.matchModel) == null ? void 0 : V.awayTeam) == null ? void 0 : oe.name) ?? "—"), _ = i == null ? void 0 : i.get(Br(v, $));
|
|
9478
9464
|
s.push({
|
|
9479
9465
|
id: L,
|
|
9480
9466
|
matchId: v,
|
|
@@ -9499,7 +9485,7 @@ function xs(t, o, i, n = [], c, l) {
|
|
|
9499
9485
|
outcome: z,
|
|
9500
9486
|
points: ((Ye = S.result) == null ? void 0 : Ye.points) ?? null,
|
|
9501
9487
|
market: $,
|
|
9502
|
-
marketLabel:
|
|
9488
|
+
marketLabel: ds($, o),
|
|
9503
9489
|
predictionLabel: Ar(
|
|
9504
9490
|
$,
|
|
9505
9491
|
(st = S.prediction) == null ? void 0 : st.value,
|
|
@@ -9507,7 +9493,7 @@ function xs(t, o, i, n = [], c, l) {
|
|
|
9507
9493
|
D,
|
|
9508
9494
|
o
|
|
9509
9495
|
),
|
|
9510
|
-
outcomeKey:
|
|
9496
|
+
outcomeKey: ps($, (lt = S.prediction) == null ? void 0 : lt.value),
|
|
9511
9497
|
selfPrediction: (_ == null ? void 0 : _.score) ?? null,
|
|
9512
9498
|
selfPredictionLabel: (_ == null ? void 0 : _.label) ?? null,
|
|
9513
9499
|
selfPoints: (_ == null ? void 0 : _.points) ?? null,
|
|
@@ -9516,7 +9502,7 @@ function xs(t, o, i, n = [], c, l) {
|
|
|
9516
9502
|
});
|
|
9517
9503
|
}), s;
|
|
9518
9504
|
}
|
|
9519
|
-
function
|
|
9505
|
+
function fs(t, o) {
|
|
9520
9506
|
const i = /* @__PURE__ */ new Map();
|
|
9521
9507
|
return t.forEach((n) => {
|
|
9522
9508
|
var l;
|
|
@@ -9540,7 +9526,7 @@ function hs(t, o) {
|
|
|
9540
9526
|
});
|
|
9541
9527
|
}), i;
|
|
9542
9528
|
}
|
|
9543
|
-
function
|
|
9529
|
+
function xs(t) {
|
|
9544
9530
|
const o = /* @__PURE__ */ new Map();
|
|
9545
9531
|
return t.forEach((i) => {
|
|
9546
9532
|
if (!i.played) return;
|
|
@@ -9551,7 +9537,7 @@ function gs(t) {
|
|
|
9551
9537
|
correct: 0,
|
|
9552
9538
|
partial: 0,
|
|
9553
9539
|
incorrect: 0
|
|
9554
|
-
}, c = i.points != null ? i.points : i.prediction && i.result ?
|
|
9540
|
+
}, c = i.points != null ? i.points : i.prediction && i.result ? bs(i.prediction, i.result) : 0;
|
|
9555
9541
|
o.set(i.round, {
|
|
9556
9542
|
...n,
|
|
9557
9543
|
pts: n.pts + c,
|
|
@@ -9561,8 +9547,8 @@ function gs(t) {
|
|
|
9561
9547
|
});
|
|
9562
9548
|
}), [...o.values()].sort((i, n) => i.round - n.round);
|
|
9563
9549
|
}
|
|
9564
|
-
function
|
|
9565
|
-
const o =
|
|
9550
|
+
function hs(t) {
|
|
9551
|
+
const o = xs(t), i = o.reduce(
|
|
9566
9552
|
(p, f) => ({
|
|
9567
9553
|
correct: p.correct + f.correct,
|
|
9568
9554
|
partial: p.partial + f.partial,
|
|
@@ -9586,7 +9572,7 @@ function ys(t) {
|
|
|
9586
9572
|
avgPts: g
|
|
9587
9573
|
};
|
|
9588
9574
|
}
|
|
9589
|
-
function
|
|
9575
|
+
function gs(t) {
|
|
9590
9576
|
const o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
9591
9577
|
t.forEach((s) => {
|
|
9592
9578
|
if (!s.played) return;
|
|
@@ -9599,7 +9585,7 @@ function bs(t) {
|
|
|
9599
9585
|
s > a ? n++ : a > s ? c++ : l++;
|
|
9600
9586
|
}), { selfBetter: n, theyBetter: c, tied: l };
|
|
9601
9587
|
}
|
|
9602
|
-
function
|
|
9588
|
+
function ys(t) {
|
|
9603
9589
|
const o = t.filter(
|
|
9604
9590
|
(y) => y.played && y.selfPredictionLabel != null && y.selfOutcome != null && y.selfOutcome !== "pending"
|
|
9605
9591
|
), i = o.filter((y) => y.selfOutcome === "correct").length, n = o.filter((y) => y.selfOutcome === "partial").length, c = o.length, l = c > 0 ? Math.round((i + n * 0.4) / c * 100) : 0, s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
@@ -9621,12 +9607,12 @@ function Cs(t) {
|
|
|
9621
9607
|
const g = s.size > 0 ? Math.max(...s.values()) : 0, p = o.reduce((y, h) => y + (h.selfPoints ?? 0), 0), f = o.length > 0 ? p / o.length : 0, u = t.filter((y) => y.selfPredictionLabel != null).length;
|
|
9622
9608
|
return { accuracy: l, streak: x, bestRoundPts: g, avgPts: f, total: u };
|
|
9623
9609
|
}
|
|
9624
|
-
function
|
|
9610
|
+
function bs(t, o) {
|
|
9625
9611
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
9626
9612
|
const i = (n, c) => n > c ? "H" : n < c ? "A" : "D";
|
|
9627
9613
|
return i(t.home, t.away) === i(o.home, o.away) ? 2 : 0;
|
|
9628
9614
|
}
|
|
9629
|
-
function
|
|
9615
|
+
function Cs(t, o = 900) {
|
|
9630
9616
|
const [i, n] = E(0);
|
|
9631
9617
|
return ge(() => {
|
|
9632
9618
|
let c, l = null;
|
|
@@ -9638,7 +9624,7 @@ function ks(t, o = 900) {
|
|
|
9638
9624
|
return c = requestAnimationFrame(s), () => cancelAnimationFrame(c);
|
|
9639
9625
|
}, [t, o]), i;
|
|
9640
9626
|
}
|
|
9641
|
-
function
|
|
9627
|
+
function Ss({
|
|
9642
9628
|
name: t,
|
|
9643
9629
|
avatarUrl: o,
|
|
9644
9630
|
size: i
|
|
@@ -9677,7 +9663,7 @@ function vs({
|
|
|
9677
9663
|
}
|
|
9678
9664
|
);
|
|
9679
9665
|
}
|
|
9680
|
-
const
|
|
9666
|
+
const ks = ({
|
|
9681
9667
|
open: t,
|
|
9682
9668
|
onClose: o,
|
|
9683
9669
|
leagueId: i,
|
|
@@ -9696,7 +9682,7 @@ const ws = ({
|
|
|
9696
9682
|
}) => {
|
|
9697
9683
|
var qe, Ye, st, lt, ft, xt, Te, Ue;
|
|
9698
9684
|
const { t: h } = Re("common"), w = xe(), b = me(), C = Se(), R = ke(), I = tr(), { shadowRootElement: S, language: v } = vt(wt), { sdk: $, useSearchTeamData: L } = at(), { template: W } = Po(n, $), [z, B] = E(/* @__PURE__ */ new Map()), F = ((Ye = (qe = w.palette) == null ? void 0 : qe.primary) == null ? void 0 : Ye.plainColor) ?? "#1A77D2", P = ((lt = (st = w.palette) == null ? void 0 : st.success) == null ? void 0 : lt.plainColor) ?? "#4CAF50", T = ((xt = (ft = w.palette) == null ? void 0 : ft.warning) == null ? void 0 : xt.plainColor) ?? "#DC6803", M = ((Ue = (Te = w.palette) == null ? void 0 : Te.danger) == null ? void 0 : Ue.plainColor) ?? "#F44336", O = w.textPrimary ?? "#212121", U = w.textSecondary ?? "#757575", H = w.textTertiary ?? w.textSecondary ?? "#9E9E9E", D = w.surface ?? "#FFFFFF", _ = w.surfaceVariant ?? "#F5F5F5", A = w.outlineEnabledBorder ?? "#E0E0E0", N = `${A}88`, [G, Y] = E(/* @__PURE__ */ new Map()), [Q, pe] = E([]), [j, re] = E(!1), [he, ie] = E("all"), [ce, Ce] = E("profile"), [He, J] = E(!1), [se, ne] = E(0), [ve, te] = E(!1), [V, oe] = E(!1), be = _e(null), ye = _e(null), le = fe(
|
|
9699
|
-
() =>
|
|
9685
|
+
() => ms(
|
|
9700
9686
|
Q,
|
|
9701
9687
|
h,
|
|
9702
9688
|
G,
|
|
@@ -9816,7 +9802,7 @@ const ws = ({
|
|
|
9816
9802
|
Ee.filter((Qe) => Qe.profileId === l)
|
|
9817
9803
|
), Oe = !ue && p ? Pe(
|
|
9818
9804
|
Ee.filter((Qe) => Qe.profileId === p)
|
|
9819
|
-
) : Ne, Ze =
|
|
9805
|
+
) : Ne, Ze = fs(Oe, h);
|
|
9820
9806
|
pe(Ne), Y(Ze);
|
|
9821
9807
|
} finally {
|
|
9822
9808
|
re(!1);
|
|
@@ -9845,7 +9831,7 @@ const ws = ({
|
|
|
9845
9831
|
const ht = ((Dt = Le.predictionModel) == null ? void 0 : Dt.points) ?? 0, pt = Pe.get(Ze);
|
|
9846
9832
|
Pe.set(Ze, { points: ((pt == null ? void 0 : pt.points) ?? 0) + ht, label: Qe });
|
|
9847
9833
|
}), [...Pe.values()].slice(-5);
|
|
9848
|
-
}, [Q, W, v]), Ke = fe(() =>
|
|
9834
|
+
}, [Q, W, v]), Ke = fe(() => hs(le), [le]), et = fe(() => ue || G.size === 0 ? null : gs(le), [le, G, ue]), K = fe(() => ue ? null : ys(le), [le, ue]), X = fe(() => [...le].filter((Z) => Z.played).slice(-5), [le]), q = fe(() => ue ? [] : X.map((Z) => {
|
|
9849
9835
|
const we = Z.selfPrediction;
|
|
9850
9836
|
return !we || !Z.result ? {
|
|
9851
9837
|
outcome: "pending",
|
|
@@ -9893,7 +9879,7 @@ const ws = ({
|
|
|
9893
9879
|
(Le, Ee) => (Ee.kickoffIso ?? "") > (Le.kickoffIso ?? "") ? 1 : (Ee.kickoffIso ?? "") < (Le.kickoffIso ?? "") ? -1 : 0
|
|
9894
9880
|
)
|
|
9895
9881
|
}));
|
|
9896
|
-
}, [Me]), De =
|
|
9882
|
+
}, [Me]), De = Cs(x, 1100), Ie = [
|
|
9897
9883
|
{ id: "all", label: h("predictor.userPredictions.allFilter") },
|
|
9898
9884
|
{ id: "correct", label: h("predictor.userPredictions.correctFilter") },
|
|
9899
9885
|
{ id: "partial", label: h("predictor.userPredictions.partialFilter") },
|
|
@@ -9991,7 +9977,7 @@ const ws = ({
|
|
|
9991
9977
|
},
|
|
9992
9978
|
children: [
|
|
9993
9979
|
/* @__PURE__ */ e(
|
|
9994
|
-
|
|
9980
|
+
Ss,
|
|
9995
9981
|
{
|
|
9996
9982
|
name: s,
|
|
9997
9983
|
id: l,
|
|
@@ -10194,7 +10180,7 @@ const ws = ({
|
|
|
10194
10180
|
}
|
|
10195
10181
|
),
|
|
10196
10182
|
/* @__PURE__ */ e(r, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
10197
|
-
|
|
10183
|
+
Qi,
|
|
10198
10184
|
{
|
|
10199
10185
|
rounds: it,
|
|
10200
10186
|
transparent: !0,
|
|
@@ -10205,7 +10191,7 @@ const ws = ({
|
|
|
10205
10191
|
}
|
|
10206
10192
|
),
|
|
10207
10193
|
/* @__PURE__ */ e(r, { sx: { mx: b.md }, children: /* @__PURE__ */ e(
|
|
10208
|
-
|
|
10194
|
+
Zi,
|
|
10209
10195
|
{
|
|
10210
10196
|
loading: j,
|
|
10211
10197
|
formMatches: X,
|
|
@@ -10231,7 +10217,7 @@ const ws = ({
|
|
|
10231
10217
|
}
|
|
10232
10218
|
) }),
|
|
10233
10219
|
!ue && et && /* @__PURE__ */ e(
|
|
10234
|
-
|
|
10220
|
+
cs,
|
|
10235
10221
|
{
|
|
10236
10222
|
h2h: et,
|
|
10237
10223
|
selfName: f ?? h("predictor.userPredictions.you"),
|
|
@@ -10244,7 +10230,7 @@ const ws = ({
|
|
|
10244
10230
|
)
|
|
10245
10231
|
] }),
|
|
10246
10232
|
ce === "statistics" && /* @__PURE__ */ e(
|
|
10247
|
-
|
|
10233
|
+
es,
|
|
10248
10234
|
{
|
|
10249
10235
|
loading: j,
|
|
10250
10236
|
accuracy: Ke.accuracy,
|
|
@@ -10274,7 +10260,7 @@ const ws = ({
|
|
|
10274
10260
|
),
|
|
10275
10261
|
ce === "predictions" && /* @__PURE__ */ m(Fe, { children: [
|
|
10276
10262
|
/* @__PURE__ */ e(
|
|
10277
|
-
|
|
10263
|
+
ts,
|
|
10278
10264
|
{
|
|
10279
10265
|
filters: Ie,
|
|
10280
10266
|
counts: de,
|
|
@@ -10295,7 +10281,7 @@ const ws = ({
|
|
|
10295
10281
|
}
|
|
10296
10282
|
),
|
|
10297
10283
|
/* @__PURE__ */ e(
|
|
10298
|
-
|
|
10284
|
+
as,
|
|
10299
10285
|
{
|
|
10300
10286
|
groups: Be,
|
|
10301
10287
|
loading: j,
|
|
@@ -10435,7 +10421,7 @@ const ws = ({
|
|
|
10435
10421
|
)
|
|
10436
10422
|
}
|
|
10437
10423
|
);
|
|
10438
|
-
},
|
|
10424
|
+
}, vs = ({
|
|
10439
10425
|
leagueId: t,
|
|
10440
10426
|
templateId: o,
|
|
10441
10427
|
leagueName: i,
|
|
@@ -10972,7 +10958,7 @@ const ws = ({
|
|
|
10972
10958
|
] });
|
|
10973
10959
|
})(),
|
|
10974
10960
|
/* @__PURE__ */ e(
|
|
10975
|
-
|
|
10961
|
+
ks,
|
|
10976
10962
|
{
|
|
10977
10963
|
open: L !== null,
|
|
10978
10964
|
onClose: () => W(null),
|
|
@@ -10992,7 +10978,7 @@ const ws = ({
|
|
|
10992
10978
|
}
|
|
10993
10979
|
)
|
|
10994
10980
|
] });
|
|
10995
|
-
},
|
|
10981
|
+
}, ws = ({
|
|
10996
10982
|
league: t,
|
|
10997
10983
|
leagueDetail: o,
|
|
10998
10984
|
loading: i,
|
|
@@ -11093,7 +11079,7 @@ const ws = ({
|
|
|
11093
11079
|
},
|
|
11094
11080
|
"&:active": { transform: "scale(0.92)" }
|
|
11095
11081
|
},
|
|
11096
|
-
children: /* @__PURE__ */ e(
|
|
11082
|
+
children: /* @__PURE__ */ e(An, { sx: { fontSize: 15 } })
|
|
11097
11083
|
}
|
|
11098
11084
|
),
|
|
11099
11085
|
/* @__PURE__ */ e(
|
|
@@ -11143,7 +11129,7 @@ const ws = ({
|
|
|
11143
11129
|
"&:hover": { backgroundColor: R },
|
|
11144
11130
|
"&:active": { transform: "scale(0.92)" }
|
|
11145
11131
|
},
|
|
11146
|
-
children: /* @__PURE__ */ e(
|
|
11132
|
+
children: /* @__PURE__ */ e(pn, { sx: { fontSize: 15 } })
|
|
11147
11133
|
}
|
|
11148
11134
|
)
|
|
11149
11135
|
}
|
|
@@ -11414,7 +11400,7 @@ const ws = ({
|
|
|
11414
11400
|
py: "5px"
|
|
11415
11401
|
},
|
|
11416
11402
|
children: [
|
|
11417
|
-
/* @__PURE__ */ e(
|
|
11403
|
+
/* @__PURE__ */ e(un, { sx: { fontSize: 12, color: I } }),
|
|
11418
11404
|
/* @__PURE__ */ m(
|
|
11419
11405
|
k,
|
|
11420
11406
|
{
|
|
@@ -11459,7 +11445,7 @@ const ws = ({
|
|
|
11459
11445
|
},
|
|
11460
11446
|
children: [
|
|
11461
11447
|
/* @__PURE__ */ e(
|
|
11462
|
-
|
|
11448
|
+
mn,
|
|
11463
11449
|
{
|
|
11464
11450
|
sx: { fontSize: 14, color: b, flexShrink: 0, opacity: 0.7 }
|
|
11465
11451
|
}
|
|
@@ -11531,7 +11517,7 @@ const ws = ({
|
|
|
11531
11517
|
borderColor: S ? I : b
|
|
11532
11518
|
}
|
|
11533
11519
|
},
|
|
11534
|
-
children: S ? /* @__PURE__ */ e(ir, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(
|
|
11520
|
+
children: S ? /* @__PURE__ */ e(ir, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(fn, { sx: { fontSize: 15 } })
|
|
11535
11521
|
}
|
|
11536
11522
|
)
|
|
11537
11523
|
]
|
|
@@ -11540,7 +11526,7 @@ const ws = ({
|
|
|
11540
11526
|
]
|
|
11541
11527
|
}
|
|
11542
11528
|
);
|
|
11543
|
-
},
|
|
11529
|
+
}, Is = ze.memo(ws), Rs = ({
|
|
11544
11530
|
sdk: t,
|
|
11545
11531
|
leagueId: o,
|
|
11546
11532
|
existingMemberIds: i,
|
|
@@ -11630,7 +11616,7 @@ const ws = ({
|
|
|
11630
11616
|
borderBottom: `1px solid ${a.outlineEnabledBorder}`
|
|
11631
11617
|
},
|
|
11632
11618
|
children: [
|
|
11633
|
-
/* @__PURE__ */ e(
|
|
11619
|
+
/* @__PURE__ */ e(xn, { sx: { fontSize: 16, color: f } }),
|
|
11634
11620
|
/* @__PURE__ */ e(
|
|
11635
11621
|
k,
|
|
11636
11622
|
{
|
|
@@ -12048,7 +12034,7 @@ const ws = ({
|
|
|
12048
12034
|
/* @__PURE__ */ e(
|
|
12049
12035
|
Ae,
|
|
12050
12036
|
{
|
|
12051
|
-
startDecorator: R ? void 0 : /* @__PURE__ */ e(
|
|
12037
|
+
startDecorator: R ? void 0 : /* @__PURE__ */ e(hn, { sx: { fontSize: 14 } }),
|
|
12052
12038
|
loading: R,
|
|
12053
12039
|
disabled: b.length === 0,
|
|
12054
12040
|
onClick: _,
|
|
@@ -12073,7 +12059,7 @@ const ws = ({
|
|
|
12073
12059
|
]
|
|
12074
12060
|
}
|
|
12075
12061
|
) : null;
|
|
12076
|
-
},
|
|
12062
|
+
}, Ls = ze.memo(Rs), $s = ({ checked: t, onChange: o, primaryColor: i }) => /* @__PURE__ */ e(
|
|
12077
12063
|
r,
|
|
12078
12064
|
{
|
|
12079
12065
|
component: "button",
|
|
@@ -12113,7 +12099,7 @@ const ws = ({
|
|
|
12113
12099
|
}
|
|
12114
12100
|
)
|
|
12115
12101
|
}
|
|
12116
|
-
),
|
|
12102
|
+
), zs = ({
|
|
12117
12103
|
open: t,
|
|
12118
12104
|
onClose: o,
|
|
12119
12105
|
sdk: i,
|
|
@@ -12347,7 +12333,7 @@ const ws = ({
|
|
|
12347
12333
|
)
|
|
12348
12334
|
] }),
|
|
12349
12335
|
/* @__PURE__ */ e(
|
|
12350
|
-
|
|
12336
|
+
$s,
|
|
12351
12337
|
{
|
|
12352
12338
|
checked: S,
|
|
12353
12339
|
onChange: v,
|
|
@@ -12411,7 +12397,7 @@ const ws = ({
|
|
|
12411
12397
|
]
|
|
12412
12398
|
}
|
|
12413
12399
|
);
|
|
12414
|
-
},
|
|
12400
|
+
}, Ts = ze.memo(zs), Es = ({
|
|
12415
12401
|
open: t,
|
|
12416
12402
|
onClose: o,
|
|
12417
12403
|
sdk: i,
|
|
@@ -12639,7 +12625,7 @@ const ws = ({
|
|
|
12639
12625
|
]
|
|
12640
12626
|
}
|
|
12641
12627
|
);
|
|
12642
|
-
},
|
|
12628
|
+
}, Fs = ze.memo(Es), Ps = ({
|
|
12643
12629
|
targetId: t,
|
|
12644
12630
|
memberProfiles: o,
|
|
12645
12631
|
sdk: i,
|
|
@@ -12837,13 +12823,13 @@ const ws = ({
|
|
|
12837
12823
|
] })
|
|
12838
12824
|
}
|
|
12839
12825
|
);
|
|
12840
|
-
},
|
|
12826
|
+
}, Ws = ze.memo(Ps), As = (t, o) => {
|
|
12841
12827
|
const i = o.get(t);
|
|
12842
12828
|
return (i == null ? void 0 : i.nickname) ?? (i == null ? void 0 : i.name) ?? t.slice(0, 8);
|
|
12843
|
-
},
|
|
12829
|
+
}, Ms = (t) => {
|
|
12844
12830
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
12845
12831
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
12846
|
-
},
|
|
12832
|
+
}, Ds = ({
|
|
12847
12833
|
leagueDetail: t,
|
|
12848
12834
|
memberProfiles: o,
|
|
12849
12835
|
loading: i,
|
|
@@ -12926,7 +12912,7 @@ const ws = ({
|
|
|
12926
12912
|
rowGap: f.xs
|
|
12927
12913
|
},
|
|
12928
12914
|
children: [
|
|
12929
|
-
/* @__PURE__ */ e(
|
|
12915
|
+
/* @__PURE__ */ e(gn, { sx: { fontSize: 16, color: h } }),
|
|
12930
12916
|
/* @__PURE__ */ e(
|
|
12931
12917
|
k,
|
|
12932
12918
|
{
|
|
@@ -13012,7 +12998,7 @@ const ws = ({
|
|
|
13012
12998
|
))
|
|
13013
12999
|
}
|
|
13014
13000
|
) : /* @__PURE__ */ e(r, { sx: { maxHeight: "380px", overflowY: "auto" }, children: z.length > 0 ? z.map((D, _) => {
|
|
13015
|
-
const A = D === n, N = ((t == null ? void 0 : t.administrators) ?? []).includes(D), G = o.get(D), Y =
|
|
13001
|
+
const A = D === n, N = ((t == null ? void 0 : t.administrators) ?? []).includes(D), G = o.get(D), Y = As(D, o), Q = Ms(Y), pe = c && !A;
|
|
13016
13002
|
return /* @__PURE__ */ m(
|
|
13017
13003
|
r,
|
|
13018
13004
|
{
|
|
@@ -13259,7 +13245,7 @@ const ws = ({
|
|
|
13259
13245
|
},
|
|
13260
13246
|
p: 0
|
|
13261
13247
|
},
|
|
13262
|
-
children: /* @__PURE__ */ e(
|
|
13248
|
+
children: /* @__PURE__ */ e(yn, { sx: { fontSize: 15 } })
|
|
13263
13249
|
}
|
|
13264
13250
|
)
|
|
13265
13251
|
]
|
|
@@ -13300,7 +13286,7 @@ const ws = ({
|
|
|
13300
13286
|
}
|
|
13301
13287
|
),
|
|
13302
13288
|
/* @__PURE__ */ e(
|
|
13303
|
-
|
|
13289
|
+
Ws,
|
|
13304
13290
|
{
|
|
13305
13291
|
targetId: v,
|
|
13306
13292
|
memberProfiles: o,
|
|
@@ -13312,13 +13298,13 @@ const ws = ({
|
|
|
13312
13298
|
}
|
|
13313
13299
|
)
|
|
13314
13300
|
] });
|
|
13315
|
-
},
|
|
13301
|
+
}, Bs = ze.memo(Ds), _s = (t, o) => {
|
|
13316
13302
|
const i = o.get(t);
|
|
13317
13303
|
return (i == null ? void 0 : i.nickname) ?? (i == null ? void 0 : i.name) ?? t.slice(0, 8);
|
|
13318
|
-
},
|
|
13304
|
+
}, Ns = (t) => {
|
|
13319
13305
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
13320
13306
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
13321
|
-
},
|
|
13307
|
+
}, Hs = ({
|
|
13322
13308
|
pendingInviteIds: t,
|
|
13323
13309
|
memberProfiles: o,
|
|
13324
13310
|
isAdmin: i,
|
|
@@ -13416,7 +13402,7 @@ const ws = ({
|
|
|
13416
13402
|
),
|
|
13417
13403
|
t.map(($, L) => {
|
|
13418
13404
|
var P, T, M, O, U, H;
|
|
13419
|
-
const W = y === $, z = o.get($), B =
|
|
13405
|
+
const W = y === $, z = o.get($), B = _s($, o), F = Ns(B);
|
|
13420
13406
|
return /* @__PURE__ */ m(
|
|
13421
13407
|
r,
|
|
13422
13408
|
{
|
|
@@ -13657,7 +13643,7 @@ const ws = ({
|
|
|
13657
13643
|
animation: "spin 0.7s linear infinite"
|
|
13658
13644
|
}
|
|
13659
13645
|
}
|
|
13660
|
-
) : /* @__PURE__ */ e(
|
|
13646
|
+
) : /* @__PURE__ */ e(bn, { sx: { fontSize: 18, color: u } })
|
|
13661
13647
|
}
|
|
13662
13648
|
)
|
|
13663
13649
|
] })
|
|
@@ -13669,7 +13655,7 @@ const ws = ({
|
|
|
13669
13655
|
]
|
|
13670
13656
|
}
|
|
13671
13657
|
);
|
|
13672
|
-
},
|
|
13658
|
+
}, Os = ze.memo(Hs), js = Vr(() => import("./chunks/index-PC-q6Shn.js")), Vs = ({
|
|
13673
13659
|
league: t,
|
|
13674
13660
|
onBack: o,
|
|
13675
13661
|
onLeagueLeft: i,
|
|
@@ -13892,7 +13878,7 @@ const ws = ({
|
|
|
13892
13878
|
},
|
|
13893
13879
|
children: [
|
|
13894
13880
|
/* @__PURE__ */ e(
|
|
13895
|
-
|
|
13881
|
+
Ki,
|
|
13896
13882
|
{
|
|
13897
13883
|
leagues: x ?? [],
|
|
13898
13884
|
activeId: t.id,
|
|
@@ -13902,7 +13888,7 @@ const ws = ({
|
|
|
13902
13888
|
}
|
|
13903
13889
|
),
|
|
13904
13890
|
/* @__PURE__ */ e(
|
|
13905
|
-
|
|
13891
|
+
Is,
|
|
13906
13892
|
{
|
|
13907
13893
|
league: t,
|
|
13908
13894
|
leagueDetail: v,
|
|
@@ -14046,7 +14032,7 @@ const ws = ({
|
|
|
14046
14032
|
}
|
|
14047
14033
|
),
|
|
14048
14034
|
children: /* @__PURE__ */ e(
|
|
14049
|
-
|
|
14035
|
+
js,
|
|
14050
14036
|
{
|
|
14051
14037
|
entityId: t.id,
|
|
14052
14038
|
sdk: w,
|
|
@@ -14060,7 +14046,7 @@ const ws = ({
|
|
|
14060
14046
|
) }),
|
|
14061
14047
|
O === "members" && /* @__PURE__ */ m(r, { sx: { display: "flex", flexDirection: "column", gap: u.sm }, children: [
|
|
14062
14048
|
/* @__PURE__ */ e(
|
|
14063
|
-
|
|
14049
|
+
Bs,
|
|
14064
14050
|
{
|
|
14065
14051
|
leagueDetail: v,
|
|
14066
14052
|
memberProfiles: pe,
|
|
@@ -14075,7 +14061,7 @@ const ws = ({
|
|
|
14075
14061
|
}
|
|
14076
14062
|
),
|
|
14077
14063
|
/* @__PURE__ */ e(
|
|
14078
|
-
|
|
14064
|
+
Os,
|
|
14079
14065
|
{
|
|
14080
14066
|
pendingInviteIds: Y,
|
|
14081
14067
|
memberProfiles: pe,
|
|
@@ -14087,7 +14073,7 @@ const ws = ({
|
|
|
14087
14073
|
}
|
|
14088
14074
|
),
|
|
14089
14075
|
Ge && /* @__PURE__ */ e(
|
|
14090
|
-
|
|
14076
|
+
Ls,
|
|
14091
14077
|
{
|
|
14092
14078
|
sdk: w,
|
|
14093
14079
|
leagueId: t.id,
|
|
@@ -14100,7 +14086,7 @@ const ws = ({
|
|
|
14100
14086
|
)
|
|
14101
14087
|
] }),
|
|
14102
14088
|
O === "standings" && /* @__PURE__ */ e(
|
|
14103
|
-
|
|
14089
|
+
vs,
|
|
14104
14090
|
{
|
|
14105
14091
|
leagueId: t.id,
|
|
14106
14092
|
templateId: t.templateId,
|
|
@@ -14110,7 +14096,7 @@ const ws = ({
|
|
|
14110
14096
|
}
|
|
14111
14097
|
),
|
|
14112
14098
|
/* @__PURE__ */ e(
|
|
14113
|
-
|
|
14099
|
+
Ts,
|
|
14114
14100
|
{
|
|
14115
14101
|
open: re,
|
|
14116
14102
|
onClose: () => he(!1),
|
|
@@ -14213,7 +14199,7 @@ const ws = ({
|
|
|
14213
14199
|
}
|
|
14214
14200
|
),
|
|
14215
14201
|
/* @__PURE__ */ e(
|
|
14216
|
-
|
|
14202
|
+
Fs,
|
|
14217
14203
|
{
|
|
14218
14204
|
open: H === "delete",
|
|
14219
14205
|
onClose: () => D(null),
|
|
@@ -14233,13 +14219,13 @@ const ws = ({
|
|
|
14233
14219
|
]
|
|
14234
14220
|
}
|
|
14235
14221
|
);
|
|
14236
|
-
},
|
|
14222
|
+
}, Xs = ze.memo(Vs), ut = 8, mo = () => {
|
|
14237
14223
|
const t = "abcdefghijklmnopqrstuvwxyz0123456789", o = Date.now().toString(36).slice(-3);
|
|
14238
14224
|
return (Array.from(
|
|
14239
14225
|
{ length: 5 },
|
|
14240
14226
|
() => t[Math.floor(Math.random() * t.length)]
|
|
14241
14227
|
).join("") + o).slice(0, 8);
|
|
14242
|
-
},
|
|
14228
|
+
}, Ys = (t) => {
|
|
14243
14229
|
const o = {}, i = t.split(/,\s*/);
|
|
14244
14230
|
for (const n of i) {
|
|
14245
14231
|
const c = n.indexOf(":");
|
|
@@ -14351,7 +14337,7 @@ const ws = ({
|
|
|
14351
14337
|
})
|
|
14352
14338
|
}
|
|
14353
14339
|
);
|
|
14354
|
-
},
|
|
14340
|
+
}, Us = ({
|
|
14355
14341
|
open: t,
|
|
14356
14342
|
onClose: o,
|
|
14357
14343
|
title: i,
|
|
@@ -14468,7 +14454,7 @@ const ws = ({
|
|
|
14468
14454
|
children: t
|
|
14469
14455
|
}
|
|
14470
14456
|
) : null;
|
|
14471
|
-
},
|
|
14457
|
+
}, Gs = ({
|
|
14472
14458
|
checked: t,
|
|
14473
14459
|
onChange: o,
|
|
14474
14460
|
primaryColor: i
|
|
@@ -14515,7 +14501,7 @@ const ws = ({
|
|
|
14515
14501
|
}
|
|
14516
14502
|
)
|
|
14517
14503
|
}
|
|
14518
|
-
),
|
|
14504
|
+
), Ks = ({
|
|
14519
14505
|
onLeagueCreated: t,
|
|
14520
14506
|
onLeagueJoined: o
|
|
14521
14507
|
}) => {
|
|
@@ -14567,7 +14553,7 @@ const ws = ({
|
|
|
14567
14553
|
message: i("predictor.privateLeagues.createSuccessMessage") || "Your private league is ready. Share the invitation code with friends."
|
|
14568
14554
|
});
|
|
14569
14555
|
} catch (te) {
|
|
14570
|
-
T(
|
|
14556
|
+
T(Ys(tt(te, d)));
|
|
14571
14557
|
} finally {
|
|
14572
14558
|
z(!1);
|
|
14573
14559
|
}
|
|
@@ -14690,7 +14676,7 @@ const ws = ({
|
|
|
14690
14676
|
)
|
|
14691
14677
|
] }),
|
|
14692
14678
|
/* @__PURE__ */ e(
|
|
14693
|
-
|
|
14679
|
+
Cn,
|
|
14694
14680
|
{
|
|
14695
14681
|
sx: { fontSize: 18, color: n.textSecondary, flexShrink: 0 }
|
|
14696
14682
|
}
|
|
@@ -15002,7 +14988,7 @@ const ws = ({
|
|
|
15002
14988
|
] })
|
|
15003
14989
|
),
|
|
15004
14990
|
/* @__PURE__ */ m(
|
|
15005
|
-
|
|
14991
|
+
Us,
|
|
15006
14992
|
{
|
|
15007
14993
|
open: x,
|
|
15008
14994
|
onClose: () => !W && g(!1),
|
|
@@ -15148,7 +15134,7 @@ const ws = ({
|
|
|
15148
15134
|
transition: "all 0.15s",
|
|
15149
15135
|
"&:hover": { color: _, borderColor: _ }
|
|
15150
15136
|
},
|
|
15151
|
-
children: S ? /* @__PURE__ */ e(ir, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(
|
|
15137
|
+
children: S ? /* @__PURE__ */ e(ir, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(Sn, { sx: { fontSize: 16 } })
|
|
15152
15138
|
}
|
|
15153
15139
|
),
|
|
15154
15140
|
/* @__PURE__ */ e(
|
|
@@ -15245,7 +15231,7 @@ const ws = ({
|
|
|
15245
15231
|
)
|
|
15246
15232
|
] }),
|
|
15247
15233
|
/* @__PURE__ */ e(
|
|
15248
|
-
|
|
15234
|
+
Gs,
|
|
15249
15235
|
{
|
|
15250
15236
|
checked: h,
|
|
15251
15237
|
onChange: w,
|
|
@@ -15340,7 +15326,7 @@ const ws = ({
|
|
|
15340
15326
|
}
|
|
15341
15327
|
)
|
|
15342
15328
|
] });
|
|
15343
|
-
},
|
|
15329
|
+
}, qs = ({
|
|
15344
15330
|
open: t,
|
|
15345
15331
|
onClose: o,
|
|
15346
15332
|
title: i,
|
|
@@ -15456,7 +15442,7 @@ const ws = ({
|
|
|
15456
15442
|
)
|
|
15457
15443
|
}
|
|
15458
15444
|
) : null;
|
|
15459
|
-
},
|
|
15445
|
+
}, Qs = (t) => {
|
|
15460
15446
|
var Ge, Xe, rt, Je, nt, it, Ke, et;
|
|
15461
15447
|
const { t: o } = Re("common"), i = xe(), n = me(), c = Se(), l = ke(), { sdk: s, userIsLoggedIn: d, signInCTA: a, entityId: x } = at(), g = ((Xe = (Ge = i.palette) == null ? void 0 : Ge.primary) == null ? void 0 : Xe.plainColor) ?? "#1A77D2", p = ((Je = (rt = i.palette) == null ? void 0 : rt.primary) == null ? void 0 : Je.onPrimary) ?? "#fff", f = (it = (nt = i.palette) == null ? void 0 : nt.primary) == null ? void 0 : it.primaryButtonGradient, u = ((et = (Ke = i.palette) == null ? void 0 : Ke.danger) == null ? void 0 : et.plainColor) ?? "#F44336", [y, h] = E([]), [w, b] = E(!0), [C, R] = E(null), [I, S] = E(
|
|
15462
15448
|
null
|
|
@@ -15723,7 +15709,7 @@ const ws = ({
|
|
|
15723
15709
|
}
|
|
15724
15710
|
) : /* @__PURE__ */ e(k, { level: "body-sm", sx: { fontFamily: l.primary, fontSize: "0.875em", color: i.textSecondary }, children: o("predictor.privateLeagues.signInPrompt") }), X = [
|
|
15725
15711
|
{
|
|
15726
|
-
icon: /* @__PURE__ */ e(
|
|
15712
|
+
icon: /* @__PURE__ */ e(kn, { sx: { fontSize: 24, color: g } }),
|
|
15727
15713
|
title: o("predictor.privateLeagues.featureCreateTitle"),
|
|
15728
15714
|
desc: o("predictor.privateLeagues.featureCreateDesc")
|
|
15729
15715
|
},
|
|
@@ -15739,7 +15725,7 @@ const ws = ({
|
|
|
15739
15725
|
}
|
|
15740
15726
|
], q = [
|
|
15741
15727
|
{
|
|
15742
|
-
icon: /* @__PURE__ */ e(
|
|
15728
|
+
icon: /* @__PURE__ */ e(vn, { sx: { fontSize: 18, color: g, flexShrink: 0, mt: n["3xs"] } }),
|
|
15743
15729
|
text: o("predictor.privateLeagues.benefitCreateUnlimited")
|
|
15744
15730
|
},
|
|
15745
15731
|
{
|
|
@@ -15751,7 +15737,7 @@ const ws = ({
|
|
|
15751
15737
|
text: o("predictor.privateLeagues.benefitCompeteForTop")
|
|
15752
15738
|
},
|
|
15753
15739
|
{
|
|
15754
|
-
icon: /* @__PURE__ */ e(
|
|
15740
|
+
icon: /* @__PURE__ */ e(wn, { sx: { fontSize: 18, color: g, flexShrink: 0, mt: n["3xs"] } }),
|
|
15755
15741
|
text: o("predictor.privateLeagues.benefitDiscussPredictions")
|
|
15756
15742
|
}
|
|
15757
15743
|
];
|
|
@@ -15770,7 +15756,7 @@ const ws = ({
|
|
|
15770
15756
|
alignItems: "center",
|
|
15771
15757
|
justifyContent: "center"
|
|
15772
15758
|
},
|
|
15773
|
-
children: /* @__PURE__ */ e(
|
|
15759
|
+
children: /* @__PURE__ */ e(In, { sx: { fontSize: 32, color: g } })
|
|
15774
15760
|
}
|
|
15775
15761
|
),
|
|
15776
15762
|
/* @__PURE__ */ e(
|
|
@@ -15915,7 +15901,7 @@ const ws = ({
|
|
|
15915
15901
|
}
|
|
15916
15902
|
return I ? /* @__PURE__ */ m(Fe, { children: [
|
|
15917
15903
|
/* @__PURE__ */ e(
|
|
15918
|
-
|
|
15904
|
+
Xs,
|
|
15919
15905
|
{
|
|
15920
15906
|
league: I,
|
|
15921
15907
|
onBack: ce,
|
|
@@ -15940,7 +15926,7 @@ const ws = ({
|
|
|
15940
15926
|
)
|
|
15941
15927
|
] }) : /* @__PURE__ */ m(r, { sx: { display: "flex", flexDirection: "column", gap: n.md }, children: [
|
|
15942
15928
|
/* @__PURE__ */ e(
|
|
15943
|
-
|
|
15929
|
+
Ks,
|
|
15944
15930
|
{
|
|
15945
15931
|
onLeagueCreated: he,
|
|
15946
15932
|
onLeagueJoined: ie
|
|
@@ -15949,7 +15935,7 @@ const ws = ({
|
|
|
15949
15935
|
v.length > 0 && /* @__PURE__ */ m(r, { sx: { display: "flex", flexDirection: "column", gap: n.sm }, children: [
|
|
15950
15936
|
/* @__PURE__ */ m(r, { sx: { display: "flex", alignItems: "center", gap: n.xs }, children: [
|
|
15951
15937
|
/* @__PURE__ */ e(
|
|
15952
|
-
|
|
15938
|
+
Rn,
|
|
15953
15939
|
{
|
|
15954
15940
|
sx: { fontSize: 18, color: g }
|
|
15955
15941
|
}
|
|
@@ -16208,7 +16194,7 @@ const ws = ({
|
|
|
16208
16194
|
}
|
|
16209
16195
|
)
|
|
16210
16196
|
] }),
|
|
16211
|
-
w ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: n.xs }, children: Array.from({ length: 5 }, (K, X) => /* @__PURE__ */ e(
|
|
16197
|
+
w ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: n.xs }, children: Array.from({ length: 5 }, (K, X) => /* @__PURE__ */ e(Ui, { index: X }, X)) }) : y.length === 0 ? /* @__PURE__ */ m(
|
|
16212
16198
|
r,
|
|
16213
16199
|
{
|
|
16214
16200
|
sx: {
|
|
@@ -16283,7 +16269,7 @@ const ws = ({
|
|
|
16283
16269
|
opacity: 0
|
|
16284
16270
|
},
|
|
16285
16271
|
children: /* @__PURE__ */ e(
|
|
16286
|
-
|
|
16272
|
+
Xi,
|
|
16287
16273
|
{
|
|
16288
16274
|
league: K,
|
|
16289
16275
|
onClick: be,
|
|
@@ -16303,7 +16289,7 @@ const ws = ({
|
|
|
16303
16289
|
}
|
|
16304
16290
|
),
|
|
16305
16291
|
/* @__PURE__ */ m(
|
|
16306
|
-
|
|
16292
|
+
qs,
|
|
16307
16293
|
{
|
|
16308
16294
|
open: !!O,
|
|
16309
16295
|
onClose: ue,
|
|
@@ -16526,7 +16512,7 @@ const ws = ({
|
|
|
16526
16512
|
)
|
|
16527
16513
|
] });
|
|
16528
16514
|
};
|
|
16529
|
-
function
|
|
16515
|
+
function Js(t) {
|
|
16530
16516
|
if (!t) return "";
|
|
16531
16517
|
const o = document.createElement("template");
|
|
16532
16518
|
o.innerHTML = t;
|
|
@@ -16559,7 +16545,7 @@ function el(t) {
|
|
|
16559
16545
|
return n(o.content), o.innerHTML;
|
|
16560
16546
|
}
|
|
16561
16547
|
function _r(t) {
|
|
16562
|
-
const o =
|
|
16548
|
+
const o = Js(t), i = document.createElement("template");
|
|
16563
16549
|
i.innerHTML = o;
|
|
16564
16550
|
const n = i.content, c = (u) => u.toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g, "").replace(/\s+/g, "-").replace(/[^\p{L}\p{N}-]+/gu, "").replace(/^-+|-+$/g, "").slice(0, 60) || "sec", l = [], s = /^\s*(?:ČASŤ|ČÁST|Část|PART)?\s*(\d+)[.:\s ]+(.+?)\s*$/i, d = (u, y, h) => {
|
|
16565
16551
|
const w = `sec-${y}-${c(h)}`, b = document.createElement("h2");
|
|
@@ -16646,7 +16632,7 @@ function vo(t, o, i) {
|
|
|
16646
16632
|
}), c;
|
|
16647
16633
|
}
|
|
16648
16634
|
const Go = "rules-tab-prose-styles";
|
|
16649
|
-
function
|
|
16635
|
+
function Zs(t) {
|
|
16650
16636
|
let o = document.getElementById(
|
|
16651
16637
|
Go
|
|
16652
16638
|
);
|
|
@@ -16702,7 +16688,7 @@ function tl(t) {
|
|
|
16702
16688
|
.rules-tab-scrollbar::-webkit-scrollbar-thumb:hover { background: ${t.surfaceVariant}; }
|
|
16703
16689
|
`;
|
|
16704
16690
|
}
|
|
16705
|
-
const
|
|
16691
|
+
const el = ({ t }) => /* @__PURE__ */ e(
|
|
16706
16692
|
r,
|
|
16707
16693
|
{
|
|
16708
16694
|
sx: {
|
|
@@ -16724,7 +16710,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
16724
16710
|
i
|
|
16725
16711
|
))
|
|
16726
16712
|
}
|
|
16727
|
-
),
|
|
16713
|
+
), tl = ze.memo(el), ol = ({
|
|
16728
16714
|
query: t,
|
|
16729
16715
|
setQuery: o,
|
|
16730
16716
|
hits: i = [],
|
|
@@ -16818,7 +16804,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
16818
16804
|
}
|
|
16819
16805
|
}
|
|
16820
16806
|
);
|
|
16821
|
-
}, Nr = ze.memo(
|
|
16807
|
+
}, Nr = ze.memo(ol), rl = ({ rawHtml: t, t: o, tl: i }) => {
|
|
16822
16808
|
var C;
|
|
16823
16809
|
const n = me(), { html: c, sections: l } = fe(() => _r(t), [t]), s = _e(null), [d, a] = E((C = l[0]) == null ? void 0 : C.id), [x, g] = E(""), [p, f] = E([]), [u, y] = E(0), h = fe(
|
|
16824
16810
|
() => ({ bg: o.warnSoftBg, color: o.warnColor }),
|
|
@@ -17028,7 +17014,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17028
17014
|
)
|
|
17029
17015
|
] })
|
|
17030
17016
|
] });
|
|
17031
|
-
},
|
|
17017
|
+
}, nl = ze.memo(rl), il = ({
|
|
17032
17018
|
section: t,
|
|
17033
17019
|
dir: o,
|
|
17034
17020
|
onClick: i,
|
|
@@ -17070,7 +17056,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17070
17056
|
justifyContent: o === "prev" ? "flex-start" : "flex-end"
|
|
17071
17057
|
},
|
|
17072
17058
|
children: [
|
|
17073
|
-
o === "prev" && /* @__PURE__ */ e(
|
|
17059
|
+
o === "prev" && /* @__PURE__ */ e(Ln, { sx: { fontSize: 9, color: l.textSecondary } }),
|
|
17074
17060
|
/* @__PURE__ */ e(
|
|
17075
17061
|
k,
|
|
17076
17062
|
{
|
|
@@ -17085,7 +17071,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17085
17071
|
children: o === "prev" ? n : c
|
|
17086
17072
|
}
|
|
17087
17073
|
),
|
|
17088
|
-
o === "next" && /* @__PURE__ */ e(
|
|
17074
|
+
o === "next" && /* @__PURE__ */ e($n, { sx: { fontSize: 9, color: l.textSecondary } })
|
|
17089
17075
|
]
|
|
17090
17076
|
}
|
|
17091
17077
|
),
|
|
@@ -17108,7 +17094,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17108
17094
|
]
|
|
17109
17095
|
}
|
|
17110
17096
|
);
|
|
17111
|
-
}, Ko = ze.memo(
|
|
17097
|
+
}, Ko = ze.memo(il), sl = ({ rawHtml: t, t: o, tl: i }) => {
|
|
17112
17098
|
var $;
|
|
17113
17099
|
const n = me(), { html: c } = fe(() => _r(t), [t]), l = fe(() => {
|
|
17114
17100
|
var B, F, P;
|
|
@@ -17343,7 +17329,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17343
17329
|
]
|
|
17344
17330
|
}
|
|
17345
17331
|
),
|
|
17346
|
-
/* @__PURE__ */ e(
|
|
17332
|
+
/* @__PURE__ */ e(Mn, { sx: { flex: 1 } }),
|
|
17347
17333
|
/* @__PURE__ */ m(
|
|
17348
17334
|
k,
|
|
17349
17335
|
{
|
|
@@ -17421,7 +17407,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17421
17407
|
}
|
|
17422
17408
|
)
|
|
17423
17409
|
] });
|
|
17424
|
-
},
|
|
17410
|
+
}, ll = ze.memo(sl), al = ({ template: t, loading: o }) => {
|
|
17425
17411
|
const { t: i } = Re("common"), n = xe(), c = ke(), l = me(), s = Se(), d = so(), a = fe(
|
|
17426
17412
|
() => {
|
|
17427
17413
|
var x, g, p, f, u, y, h, w, b, C;
|
|
@@ -17453,8 +17439,8 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17453
17439
|
[n, c, l, s]
|
|
17454
17440
|
);
|
|
17455
17441
|
return ge(() => {
|
|
17456
|
-
|
|
17457
|
-
}, [a]), o ? /* @__PURE__ */ e(
|
|
17442
|
+
Zs(a);
|
|
17443
|
+
}, [a]), o ? /* @__PURE__ */ e(tl, { t: a }) : t != null && t.rules ? /* @__PURE__ */ e(
|
|
17458
17444
|
r,
|
|
17459
17445
|
{
|
|
17460
17446
|
sx: {
|
|
@@ -17465,7 +17451,7 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17465
17451
|
fontFamily: a.fontPrimary,
|
|
17466
17452
|
minHeight: 0
|
|
17467
17453
|
},
|
|
17468
|
-
children: d ? /* @__PURE__ */ e(
|
|
17454
|
+
children: d ? /* @__PURE__ */ e(ll, { rawHtml: t.rules, t: a, tl: i }) : /* @__PURE__ */ e(nl, { rawHtml: t.rules, t: a, tl: i })
|
|
17469
17455
|
}
|
|
17470
17456
|
) : /* @__PURE__ */ e(
|
|
17471
17457
|
r,
|
|
@@ -17492,8 +17478,8 @@ const ol = ({ t }) => /* @__PURE__ */ e(
|
|
|
17492
17478
|
)
|
|
17493
17479
|
}
|
|
17494
17480
|
);
|
|
17495
|
-
},
|
|
17496
|
-
function
|
|
17481
|
+
}, cl = ze.memo(al);
|
|
17482
|
+
function dl(t) {
|
|
17497
17483
|
if (!t) return "";
|
|
17498
17484
|
const o = document.createElement("template");
|
|
17499
17485
|
o.innerHTML = t;
|
|
@@ -17525,10 +17511,10 @@ function ul(t) {
|
|
|
17525
17511
|
};
|
|
17526
17512
|
return n(o.content), o.innerHTML;
|
|
17527
17513
|
}
|
|
17528
|
-
function
|
|
17514
|
+
function pl(t) {
|
|
17529
17515
|
return /<[a-zA-Z]/.test(t);
|
|
17530
17516
|
}
|
|
17531
|
-
const
|
|
17517
|
+
const ul = ({ template: t, loading: o }) => {
|
|
17532
17518
|
var u, y, h;
|
|
17533
17519
|
const { t: i } = Re("common"), n = xe(), c = me(), l = ke(), s = Se(), d = n.textPrimary, a = n.textSecondary ?? n.textPrimary, x = n.surfaceVariant, g = n.outlineEnabledBorder;
|
|
17534
17520
|
if (o)
|
|
@@ -17597,7 +17583,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17597
17583
|
)
|
|
17598
17584
|
]
|
|
17599
17585
|
}
|
|
17600
|
-
) : !f || !
|
|
17586
|
+
) : !f || !pl(f) ? /* @__PURE__ */ m(
|
|
17601
17587
|
r,
|
|
17602
17588
|
{
|
|
17603
17589
|
sx: {
|
|
@@ -17610,7 +17596,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17610
17596
|
},
|
|
17611
17597
|
children: [
|
|
17612
17598
|
/* @__PURE__ */ e(
|
|
17613
|
-
|
|
17599
|
+
zn,
|
|
17614
17600
|
{
|
|
17615
17601
|
sx: { fontSize: "3em", color: g }
|
|
17616
17602
|
}
|
|
@@ -17639,7 +17625,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17639
17625
|
"& img": { maxWidth: "100%", height: "auto" },
|
|
17640
17626
|
"& a": { color: ((h = (y = n.palette) == null ? void 0 : y.primary) == null ? void 0 : h.plainColor) ?? "#1A77D2" }
|
|
17641
17627
|
},
|
|
17642
|
-
dangerouslySetInnerHTML: { __html:
|
|
17628
|
+
dangerouslySetInnerHTML: { __html: dl(f) }
|
|
17643
17629
|
}
|
|
17644
17630
|
);
|
|
17645
17631
|
}, Hr = [
|
|
@@ -17652,7 +17638,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17652
17638
|
if (typeof window > "u") return null;
|
|
17653
17639
|
const t = window.location.hash.replace("#", "");
|
|
17654
17640
|
return Hr.includes(t) ? t : null;
|
|
17655
|
-
},
|
|
17641
|
+
}, ml = (t) => {
|
|
17656
17642
|
const {
|
|
17657
17643
|
entityId: o,
|
|
17658
17644
|
sdk: i,
|
|
@@ -17691,7 +17677,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17691
17677
|
switch (v) {
|
|
17692
17678
|
case "play":
|
|
17693
17679
|
return /* @__PURE__ */ e(
|
|
17694
|
-
|
|
17680
|
+
_i,
|
|
17695
17681
|
{
|
|
17696
17682
|
template: L,
|
|
17697
17683
|
loading: W,
|
|
@@ -17701,13 +17687,13 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17701
17687
|
}
|
|
17702
17688
|
);
|
|
17703
17689
|
case "leaderboard":
|
|
17704
|
-
return /* @__PURE__ */ e(
|
|
17690
|
+
return /* @__PURE__ */ e(Oi, {});
|
|
17705
17691
|
case "private-leagues":
|
|
17706
|
-
return /* @__PURE__ */ e(
|
|
17692
|
+
return /* @__PURE__ */ e(Qs, { template: L });
|
|
17707
17693
|
case "rules":
|
|
17708
|
-
return /* @__PURE__ */ e(
|
|
17694
|
+
return /* @__PURE__ */ e(cl, { template: L, loading: W });
|
|
17709
17695
|
case "prizes":
|
|
17710
|
-
return /* @__PURE__ */ e(
|
|
17696
|
+
return /* @__PURE__ */ e(ul, { template: L, loading: W });
|
|
17711
17697
|
default:
|
|
17712
17698
|
return null;
|
|
17713
17699
|
}
|
|
@@ -17908,14 +17894,14 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17908
17894
|
)
|
|
17909
17895
|
}
|
|
17910
17896
|
);
|
|
17911
|
-
},
|
|
17897
|
+
}, fl = (t) => {
|
|
17912
17898
|
const o = Date.now();
|
|
17913
17899
|
return t.filter(
|
|
17914
17900
|
(n) => n.status === "PENDING" && new Date(n.kickoffAt).getTime() >= o
|
|
17915
17901
|
).sort(
|
|
17916
17902
|
(n, c) => new Date(n.kickoffAt).getTime() - new Date(c.kickoffAt).getTime()
|
|
17917
17903
|
)[0] ?? null;
|
|
17918
|
-
},
|
|
17904
|
+
}, xl = ({
|
|
17919
17905
|
entityId: t,
|
|
17920
17906
|
sdk: o,
|
|
17921
17907
|
language: i,
|
|
@@ -17936,7 +17922,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
17936
17922
|
S = ho(v);
|
|
17937
17923
|
} else {
|
|
17938
17924
|
const v = await o.loyalty.getTemplateMatches(t);
|
|
17939
|
-
S =
|
|
17925
|
+
S = fl(v.map(ho));
|
|
17940
17926
|
}
|
|
17941
17927
|
if (I) return;
|
|
17942
17928
|
if (S && l) {
|
|
@@ -18006,7 +17992,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18006
17992
|
matchOdds: s ? ((R = h.get(s.id)) == null ? void 0 : R[0]) ?? null : null,
|
|
18007
17993
|
oddsLoading: w
|
|
18008
17994
|
};
|
|
18009
|
-
},
|
|
17995
|
+
}, hl = ({ team: t }) => {
|
|
18010
17996
|
const o = xe(), i = ke(), n = me(), c = t.logo ?? null;
|
|
18011
17997
|
return /* @__PURE__ */ m(
|
|
18012
17998
|
r,
|
|
@@ -18075,7 +18061,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18075
18061
|
]
|
|
18076
18062
|
}
|
|
18077
18063
|
);
|
|
18078
|
-
}, Qo = ze.memo(
|
|
18064
|
+
}, Qo = ze.memo(hl), gl = ({
|
|
18079
18065
|
score: t,
|
|
18080
18066
|
editable: o,
|
|
18081
18067
|
onIncrement: i,
|
|
@@ -18160,7 +18146,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18160
18146
|
]
|
|
18161
18147
|
}
|
|
18162
18148
|
);
|
|
18163
|
-
}, Jo = ze.memo(
|
|
18149
|
+
}, Jo = ze.memo(gl), yl = ({
|
|
18164
18150
|
match: t,
|
|
18165
18151
|
kickoffDate: o,
|
|
18166
18152
|
isLive: i,
|
|
@@ -18366,7 +18352,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18366
18352
|
}
|
|
18367
18353
|
) })
|
|
18368
18354
|
] });
|
|
18369
|
-
},
|
|
18355
|
+
}, bl = ze.memo(yl), Zo = ({
|
|
18370
18356
|
label: t,
|
|
18371
18357
|
onClick: o,
|
|
18372
18358
|
loading: i = !1,
|
|
@@ -18433,7 +18419,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18433
18419
|
]
|
|
18434
18420
|
}
|
|
18435
18421
|
);
|
|
18436
|
-
},
|
|
18422
|
+
}, Cl = ({
|
|
18437
18423
|
embed: t,
|
|
18438
18424
|
template: o,
|
|
18439
18425
|
templateLoading: i,
|
|
@@ -18660,7 +18646,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18660
18646
|
children: f("predictor.play.noMatches")
|
|
18661
18647
|
}
|
|
18662
18648
|
) : /* @__PURE__ */ e(
|
|
18663
|
-
|
|
18649
|
+
bl,
|
|
18664
18650
|
{
|
|
18665
18651
|
match: n,
|
|
18666
18652
|
kickoffDate: D,
|
|
@@ -18808,7 +18794,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18808
18794
|
}
|
|
18809
18795
|
},
|
|
18810
18796
|
children: /* @__PURE__ */ e(
|
|
18811
|
-
|
|
18797
|
+
Dn,
|
|
18812
18798
|
{
|
|
18813
18799
|
variant: "success",
|
|
18814
18800
|
title: t.successMessage.title,
|
|
@@ -18826,7 +18812,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18826
18812
|
)
|
|
18827
18813
|
}
|
|
18828
18814
|
);
|
|
18829
|
-
},
|
|
18815
|
+
}, Sl = (t) => {
|
|
18830
18816
|
const {
|
|
18831
18817
|
entityId: o,
|
|
18832
18818
|
sdk: i,
|
|
@@ -18849,7 +18835,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18849
18835
|
onPredictionRemove: I,
|
|
18850
18836
|
matchOdds: S,
|
|
18851
18837
|
oddsLoading: v
|
|
18852
|
-
} =
|
|
18838
|
+
} = xl({
|
|
18853
18839
|
entityId: o,
|
|
18854
18840
|
sdk: i,
|
|
18855
18841
|
language: n,
|
|
@@ -18876,7 +18862,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18876
18862
|
p ?? to
|
|
18877
18863
|
),
|
|
18878
18864
|
children: /* @__PURE__ */ e(
|
|
18879
|
-
|
|
18865
|
+
Cl,
|
|
18880
18866
|
{
|
|
18881
18867
|
embed: f,
|
|
18882
18868
|
template: u,
|
|
@@ -18894,10 +18880,10 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18894
18880
|
)
|
|
18895
18881
|
}
|
|
18896
18882
|
);
|
|
18897
|
-
},
|
|
18883
|
+
}, kl = (t) => {
|
|
18898
18884
|
var o, i, n, c, l, s, d, a, x;
|
|
18899
18885
|
return /* @__PURE__ */ m(Fe, { children: [
|
|
18900
|
-
/* @__PURE__ */ e(Ur, { packageName: "predictor", ...t, template: void 0, children: t.template === "embed" ? /* @__PURE__ */ e(
|
|
18886
|
+
/* @__PURE__ */ e(Ur, { packageName: "predictor", ...t, template: void 0, children: t.template === "embed" ? /* @__PURE__ */ e(Sl, { ...t }) : /* @__PURE__ */ e(ml, { ...t }) }),
|
|
18901
18887
|
/* @__PURE__ */ e(
|
|
18902
18888
|
Kr,
|
|
18903
18889
|
{
|
|
@@ -18915,7 +18901,7 @@ const fl = ({ template: t, loading: o }) => {
|
|
|
18915
18901
|
}
|
|
18916
18902
|
)
|
|
18917
18903
|
] });
|
|
18918
|
-
},
|
|
18904
|
+
}, ta = kl;
|
|
18919
18905
|
export {
|
|
18920
|
-
|
|
18906
|
+
ta as Predictor
|
|
18921
18907
|
};
|