fansunited-frontend-components 0.0.63 → 0.0.65
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/Betslip.js +1 -1
- package/ChanceGame.js +8 -8
- package/ClassicQuizPlay.js +20 -20
- package/CollectLead.js +6 -6
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +21 -21
- package/EventGamePlay.js +24 -24
- package/Leaderboard.js +11 -11
- package/MatchQuizPlay.js +27 -27
- package/PersonalityQuizPlay.js +19 -19
- package/PickThePair.js +9 -9
- package/PollVote.js +17 -17
- package/Predictor.js +327 -327
- package/Standings.js +267 -252
- package/TopX.js +382 -382
- package/chunks/{AlertMessage-AyMEW3JL.js → AlertMessage-CGsgz9QP.js} +4 -4
- package/chunks/{ArrowRightAlt-DVXOeIJN.js → ArrowRightAlt-CrbCfPqF.js} +1 -1
- package/chunks/{Avatar-CBP4sabd.js → Avatar-DEfTQJbR.js} +3 -3
- package/chunks/{Button-DOVRR2Sy.js → Button-BpDNOp4E.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-kBcjiKzu.js → ChanceGameEmbedVariant-D9VI-mrP.js} +9 -9
- package/chunks/{createSvgIcon-C-cmTwJ_.js → CheckCircle-MCCIVdJW.js} +49 -42
- package/chunks/{Chip-DeEjQ2-F.js → Chip-BJbMDObW.js} +3 -3
- package/chunks/{Close-CdWk2nDh.js → Close-CDADoRFh.js} +1 -1
- package/chunks/{Close-CS-wfAnO.js → Close-qW9PQXAh.js} +1 -1
- package/chunks/{CollectLeadForm-DevgGzsO.js → CollectLeadForm-DRgerBFl.js} +29 -30
- package/chunks/{Divider-D6QU-XQ5.js → Divider-CwD6e_Mx.js} +3 -3
- package/chunks/{Edit-B2N_Ry9g.js → Edit-DVRP51mF.js} +6 -6
- package/chunks/{EmojiEvents-E7Oqv7rk.js → EmojiEvents-Bd4EnqWZ.js} +1 -1
- package/chunks/{FavoriteBorder-CguT2h2c.js → FavoriteBorder-DZah1leY.js} +1 -1
- package/chunks/{FormControl-D32DP14w.js → FormControl-Cy95xh7G.js} +4 -5
- package/chunks/{FormLabel-BYtvETHS.js → FormLabel-CZa1RF9H.js} +3 -3
- package/chunks/{Input-D81KBU9B.js → Input-BBd-zRYm.js} +3 -3
- package/chunks/{KeyboardArrowDown-CvGmYfHu.js → KeyboardArrowDown-o7vmCVYf.js} +1 -1
- package/chunks/{ModalDialog-D63x8ebf.js → ModalDialog-eI1ziPEO.js} +4 -4
- package/chunks/{NotFoundSkeleton-B4r94g0a.js → NotFoundSkeleton-BvpmzWrD.js} +8 -8
- package/chunks/{Notification-wXJmjBSg.js → Notification-gs4R9LQ1.js} +6 -6
- package/chunks/{OverlayApiErrorSkeleton-DwV9wIov.js → OverlayApiErrorSkeleton-CsL4voqW.js} +7 -7
- package/chunks/{OverlayLeadAfterCollection-CI5NIwUv.js → OverlayLeadAfterCollection-BO9aMs3v.js} +5 -5
- package/chunks/{OverlayScoreStateSkeleton-wpxvfC5x.js → OverlayScoreStateSkeleton-Cakuc0gF.js} +4 -4
- package/chunks/{Person-DvjCrwnY.js → Person-BkWUE01t.js} +1 -1
- package/chunks/{PickOneOfX-DunXqSn1.js → PickOneOfX-vu_uatSq.js} +3 -3
- package/chunks/{Popper-0XuEHl9i.js → Popper-CyWC_zv1.js} +3 -3
- package/chunks/{Portal-4mtEzZlO.js → Portal-CoaOIw9X.js} +1 -1
- package/chunks/{PrizeCard-CjZXXFx3.js → PrizeCard-DYwXaC1D.js} +3248 -2310
- package/chunks/{Select-B_VR6iKu.js → Select-CRuPsqrG.js} +5 -6
- package/chunks/{Spinner-htM_pA9-.js → Spinner-CD5wbUmy.js} +2 -2
- package/chunks/{SplitLeadAfterCollection-CowadlL1.js → SplitLeadAfterCollection-Vke86ylr.js} +6 -6
- package/chunks/{Stack-BrwF24Ji.js → Stack-DEj8r9tP.js} +2 -2
- package/chunks/{StandardContentSkeleton-Bk0sSsby.js → StandardContentSkeleton-CPtytoYO.js} +1 -1
- package/chunks/{Table-OBls_6ml.js → Table-CwDNo-UR.js} +2 -2
- package/chunks/{Tabs-DW1eIofJ.js → Tabs-C4mPtsga.js} +3 -3
- package/chunks/{Textarea-DDJ2mdR3.js → Textarea-DwuY7MCR.js} +4 -4
- package/chunks/{TimerOutlined-BmAAC-Vi.js → TimerOutlined-D3hLxDxl.js} +1 -1
- package/chunks/{Typography-DjxaMiey.js → Typography-C3YXEcle.js} +1 -1
- package/chunks/{helpers-B7-TtMzO.js → helpers-bzUOaq-G.js} +1 -1
- package/chunks/{index-BqoOC2KB.js → index-Bo7CJaUZ.js} +187 -184
- package/chunks/index-sJ-SFBJM.js +4 -0
- package/chunks/{main-Bgyyz19Z.js → main-DR1WT3kS.js} +3 -3
- package/chunks/{main-C8ApxGVj.js → main-bGk7HVmI.js} +15 -15
- package/chunks/{useEventCallback-BpsnMnDw.js → useEventCallback-ByT93yij.js} +2 -2
- package/chunks/{useForwardedInput-D2NH4BlT.js → useForwardedInput-Dr6j3VcU.js} +3 -3
- package/chunks/{useImageVariant-qiW-rMPJ.js → useImageVariant-CixMtvPN.js} +1 -1
- package/chunks/{variantColorInheritance-Bgtz8MKI.js → variantColorInheritance-V5sS30ik.js} +2 -2
- package/index.js +976 -691
- package/package.json +2 -2
- package/chunks/CheckCircle-ByRrHC2p.js +0 -12
- package/chunks/index-8rxXfewU.js +0 -4
package/Predictor.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsx as e, jsxs as p, Fragment as ze } from "react/jsx-runtime";
|
|
2
|
-
import be, { createContext as
|
|
3
|
-
import { a as ae, e as re, B as r, u as Ie, c as me, b as ue, m as ft, n as xt, l as Bt, j as
|
|
4
|
-
import { P as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { b as It, M as
|
|
7
|
-
import { Y as
|
|
8
|
-
import { S as
|
|
9
|
-
import { F as
|
|
10
|
-
import { T as S } from "./chunks/Typography-
|
|
11
|
-
import { B as we, I as st } from "./chunks/Button-
|
|
12
|
-
import { S as Ro, W as
|
|
13
|
-
import { P as yt } from "./chunks/Person-
|
|
14
|
-
import { n as Ge, h as pt, o as
|
|
15
|
-
import { S as
|
|
16
|
-
import { C as
|
|
17
|
-
import { C as
|
|
18
|
-
import { S as Pt, T as _t } from "./chunks/Table-
|
|
19
|
-
import { A as Et } from "./chunks/Avatar-
|
|
20
|
-
import { E as mt } from "./chunks/EmojiEvents-
|
|
21
|
-
import { N as At } from "./chunks/Notification-
|
|
22
|
-
import { M as Zt, a as Qt } from "./chunks/ModalDialog-
|
|
23
|
-
import { C as
|
|
24
|
-
import { I as bt } from "./chunks/Input-
|
|
25
|
-
import { T as
|
|
26
|
-
import { a as
|
|
27
|
-
import { D as
|
|
28
|
-
import { a as
|
|
29
|
-
const
|
|
2
|
+
import be, { createContext as nr, useContext as ir, useState as T, useCallback as q, useRef as Te, useMemo as pe, useEffect as le, lazy as sr, Suspense as ar, useLayoutEffect as $o } from "react";
|
|
3
|
+
import { a as ae, e as re, B as r, u as Ie, c as me, b as ue, m as ft, n as xt, l as Bt, j as lr, q as Lo, k as zo } from "./chunks/PrizeCard-DYwXaC1D.js";
|
|
4
|
+
import { P as cr } from "./chunks/Portal-CoaOIw9X.js";
|
|
5
|
+
import { createPortal as dr } from "react-dom";
|
|
6
|
+
import { b as It, M as pr } from "./chunks/main-DR1WT3kS.js";
|
|
7
|
+
import { Y as ur, X as mr, J as fr, j as xr, o as hr } from "./chunks/index-BBrO1Htm.js";
|
|
8
|
+
import { S as gr } from "./chunks/Stack-DEj8r9tP.js";
|
|
9
|
+
import { F as yr, C as br } from "./chunks/FormControl-Cy95xh7G.js";
|
|
10
|
+
import { T as S } from "./chunks/Typography-C3YXEcle.js";
|
|
11
|
+
import { B as we, I as st } from "./chunks/Button-BpDNOp4E.js";
|
|
12
|
+
import { S as Ro, W as Sr, E as $t, M as Cr, D as Fo, A as kr, C as To, a as Wo, b as vr, G as Tt, c as Wt, d as qt, e as wr, m as Ir, f as Po, g as $r, h as Lr, i as Eo, j as zr, L as Rr, V as Ot, k as Fr, l as Tr, n as Ao, o as Wr, P as Pr, p as Jt, q as Er, r as ut, s as Ar, B as Dr, H as co, t as Mr, R as Do, u as po, v as Br, w as Hr, x as jr, y as uo, T as Nr, z as Vr, F as Or, N as _r, I as Yr, J as Ur, K as Xr } from "./chunks/index-Bo7CJaUZ.js";
|
|
13
|
+
import { P as yt } from "./chunks/Person-BkWUE01t.js";
|
|
14
|
+
import { n as Ge, h as pt, o as Kr } from "./chunks/helpers-bzUOaq-G.js";
|
|
15
|
+
import { S as Gr } from "./chunks/Spinner-CD5wbUmy.js";
|
|
16
|
+
import { C as qr, a as Jr } from "./chunks/chevrons-right-CRIN5sOe.js";
|
|
17
|
+
import { C as Zr, a as Qr } from "./chunks/chevron-right-B3IZtaMT.js";
|
|
18
|
+
import { S as Pt, T as _t } from "./chunks/Table-CwDNo-UR.js";
|
|
19
|
+
import { A as Et } from "./chunks/Avatar-DEfTQJbR.js";
|
|
20
|
+
import { E as mt } from "./chunks/EmojiEvents-Bd4EnqWZ.js";
|
|
21
|
+
import { N as At } from "./chunks/Notification-gs4R9LQ1.js";
|
|
22
|
+
import { M as Zt, a as Qt } from "./chunks/ModalDialog-eI1ziPEO.js";
|
|
23
|
+
import { C as Mo } from "./chunks/Close-CDADoRFh.js";
|
|
24
|
+
import { I as bt } from "./chunks/Input-BBd-zRYm.js";
|
|
25
|
+
import { T as Bo } from "./chunks/Textarea-DwuY7MCR.js";
|
|
26
|
+
import { a as Ho, K as jo } from "./chunks/KeyboardArrowDown-o7vmCVYf.js";
|
|
27
|
+
import { D as en } from "./chunks/Divider-CwD6e_Mx.js";
|
|
28
|
+
import { a as tn } from "./chunks/AlertMessage-CGsgz9QP.js";
|
|
29
|
+
const on = "https://search.fansunitedapi.com/v1", rn = (t) => (t ?? "").split("-")[0].toUpperCase(), nn = (t, o) => {
|
|
30
30
|
var n;
|
|
31
31
|
const l = (n = t.translations) == null ? void 0 : n.find(
|
|
32
32
|
(c) => {
|
|
@@ -35,7 +35,7 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
return (l == null ? void 0 : l.name) ?? null;
|
|
38
|
-
},
|
|
38
|
+
}, sn = (t) => {
|
|
39
39
|
var o, l;
|
|
40
40
|
return ((l = (o = t.assets) == null ? void 0 : o.find((n) => n.key === "LOGO")) == null ? void 0 : l.value) ?? null;
|
|
41
41
|
}, eo = async (t, o, l) => {
|
|
@@ -66,15 +66,15 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
66
66
|
ids: h.join(","),
|
|
67
67
|
limit: String(h.length)
|
|
68
68
|
}), m = await fetch(
|
|
69
|
-
`${
|
|
69
|
+
`${on}/entities/search?${u.toString()}`
|
|
70
70
|
);
|
|
71
71
|
if (!m.ok) return n;
|
|
72
|
-
const f = await m.json(), y =
|
|
72
|
+
const f = await m.json(), y = rn(l);
|
|
73
73
|
(f.data ?? []).forEach((g) => {
|
|
74
74
|
const v = g.id ? x.get(g.id) : void 0;
|
|
75
75
|
v && n.set(v, {
|
|
76
|
-
name:
|
|
77
|
-
logo:
|
|
76
|
+
name: nn(g, y),
|
|
77
|
+
logo: sn(g)
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
} catch {
|
|
@@ -88,14 +88,14 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
88
88
|
name: l.name || t.name,
|
|
89
89
|
logo: l.logo || t.logo
|
|
90
90
|
} : t;
|
|
91
|
-
},
|
|
92
|
-
const t =
|
|
91
|
+
}, No = nr(null), Vo = ({ children: t, ...o }) => /* @__PURE__ */ e(No.Provider, { value: o, children: t }), ot = () => {
|
|
92
|
+
const t = ir(No);
|
|
93
93
|
if (!t)
|
|
94
94
|
throw new Error(
|
|
95
95
|
"usePredictorContext must be used within PredictorProvider"
|
|
96
96
|
);
|
|
97
97
|
return t;
|
|
98
|
-
},
|
|
98
|
+
}, an = (t) => {
|
|
99
99
|
switch (t) {
|
|
100
100
|
case "finished":
|
|
101
101
|
return "FINISHED";
|
|
@@ -123,22 +123,22 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
123
123
|
logo: ((l = t.awayTeam.assets) == null ? void 0 : l.logo) ?? null
|
|
124
124
|
},
|
|
125
125
|
kickoffAt: t.kickoffAt ?? "",
|
|
126
|
-
status:
|
|
126
|
+
status: an((n = t.status) == null ? void 0 : n.type),
|
|
127
127
|
homeScore: ((s = (c = t.scores) == null ? void 0 : c.ftScore) == null ? void 0 : s.homeGoals) ?? null,
|
|
128
128
|
awayScore: ((d = (i = t.scores) == null ? void 0 : i.ftScore) == null ? void 0 : d.awayGoals) ?? null
|
|
129
129
|
};
|
|
130
|
-
},
|
|
130
|
+
}, Oo = 10, _o = (t, o) => {
|
|
131
131
|
const l = [];
|
|
132
132
|
for (let n = 0; n < t.length; n += o)
|
|
133
133
|
l.push(t.slice(n, n + o));
|
|
134
134
|
return l;
|
|
135
|
-
},
|
|
135
|
+
}, ln = (t) => {
|
|
136
136
|
const o = t.split(":");
|
|
137
137
|
return {
|
|
138
138
|
homeScore: parseInt(o[0] ?? "0", 10),
|
|
139
139
|
awayScore: parseInt(o[1] ?? "0", 10)
|
|
140
140
|
};
|
|
141
|
-
},
|
|
141
|
+
}, Yo = (t) => {
|
|
142
142
|
const o = /* @__PURE__ */ new Map();
|
|
143
143
|
return t.flat().forEach((l) => {
|
|
144
144
|
l.data.forEach((n) => {
|
|
@@ -149,7 +149,7 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
149
149
|
(x) => x.market === "CORRECT_SCORE_ADVANCED"
|
|
150
150
|
);
|
|
151
151
|
if (c) {
|
|
152
|
-
const x = ((s = c.prediction) == null ? void 0 : s.value) ?? "0:0", { homeScore: h, awayScore: u } =
|
|
152
|
+
const x = ((s = c.prediction) == null ? void 0 : s.value) ?? "0:0", { homeScore: h, awayScore: u } = ln(x);
|
|
153
153
|
o.set(c.matchId, {
|
|
154
154
|
matchId: c.matchId,
|
|
155
155
|
predictionId: n.id,
|
|
@@ -162,7 +162,7 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
}), o;
|
|
165
|
-
},
|
|
165
|
+
}, cn = () => {
|
|
166
166
|
const [t, o] = T(/* @__PURE__ */ new Map()), l = q(
|
|
167
167
|
(s) => {
|
|
168
168
|
o(s);
|
|
@@ -181,20 +181,20 @@ const tn = "https://search.fansunitedapi.com/v1", on = (t) => (t ?? "").split("-
|
|
|
181
181
|
}, []);
|
|
182
182
|
return { predictions: t, setPredictions: l, updatePrediction: n, removePrediction: c };
|
|
183
183
|
};
|
|
184
|
-
function
|
|
184
|
+
function dn(t) {
|
|
185
185
|
if (!t) return !0;
|
|
186
186
|
const o = t.replace("#", "");
|
|
187
187
|
if (o.length < 6) return !0;
|
|
188
188
|
const l = parseInt(o.substring(0, 2), 16), n = parseInt(o.substring(2, 4), 16), c = parseInt(o.substring(4, 6), 16);
|
|
189
189
|
return (0.2126 * l + 0.7152 * n + 0.0722 * c) / 255 < 0.5;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function pn(t) {
|
|
192
192
|
const o = /* @__PURE__ */ new Map();
|
|
193
193
|
return t.forEach((l, n) => {
|
|
194
194
|
if (!l || l.length === 0) return;
|
|
195
195
|
const c = l.filter((s) => s.bookmaker && s.markets && s.markets.length > 0).map((s) => {
|
|
196
196
|
var m, f, y, g, v, b, k, $;
|
|
197
|
-
const i = s.bookmaker, d = (m = i.assets) == null ? void 0 : m[0], a = ((f = i.branding) == null ? void 0 : f.backgroundColor) || (d == null ? void 0 : d.backgroundColor), x = ((y = i.branding) == null ? void 0 : y.textColor) || (
|
|
197
|
+
const i = s.bookmaker, d = (m = i.assets) == null ? void 0 : m[0], a = ((f = i.branding) == null ? void 0 : f.backgroundColor) || (d == null ? void 0 : d.backgroundColor), x = ((y = i.branding) == null ? void 0 : y.textColor) || (dn(a) ? "#FFFFFF" : "#000000"), h = (d == null ? void 0 : d.transparentBackgroundUrl) || (d == null ? void 0 : d.logo) || ((g = i.branding) == null ? void 0 : g.logo), u = ((b = (v = i.eventUrls) == null ? void 0 : v.find((C) => C.appType === "desktop")) == null ? void 0 : b.url) || (($ = (k = i.links) == null ? void 0 : k.find((C) => C.appType === "desktop")) == null ? void 0 : $.homepageUrl) || i.url || "";
|
|
198
198
|
return {
|
|
199
199
|
operator: {
|
|
200
200
|
id: i.id,
|
|
@@ -228,7 +228,7 @@ function dn(t) {
|
|
|
228
228
|
c.length > 0 && o.set(n, c);
|
|
229
229
|
}), o;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function un(t) {
|
|
232
232
|
var s, i, d;
|
|
233
233
|
if (!t.operator || t.markets.length === 0) return null;
|
|
234
234
|
const l = t.markets[0].selections.map((a) => {
|
|
@@ -252,21 +252,21 @@ function pn(t) {
|
|
|
252
252
|
};
|
|
253
253
|
return { odds: l, operator: c };
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function mn(t) {
|
|
256
256
|
const o = /* @__PURE__ */ new Map();
|
|
257
257
|
return t.forEach((l, n) => {
|
|
258
|
-
const c = l.map(
|
|
258
|
+
const c = l.map(un).filter((s) => s !== null);
|
|
259
259
|
c.length > 0 && o.set(n, c);
|
|
260
260
|
}), o;
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const fn = 3e4;
|
|
263
263
|
function to({
|
|
264
264
|
sdk: t,
|
|
265
265
|
matchIds: o,
|
|
266
266
|
markets: l = ["1x2"],
|
|
267
|
-
oddType: n =
|
|
267
|
+
oddType: n = xr.ALL,
|
|
268
268
|
isLive: c = !1,
|
|
269
|
-
pollingIntervalMs: s =
|
|
269
|
+
pollingIntervalMs: s = fn,
|
|
270
270
|
operatorId: i
|
|
271
271
|
}) {
|
|
272
272
|
const [d, a] = T(/* @__PURE__ */ new Map()), [x, h] = T(!0), u = Te(!0), m = pe(() => [...o].sort().join(","), [o]), f = pe(() => [...l].sort().join(","), [l]), y = q(
|
|
@@ -279,11 +279,11 @@ function to({
|
|
|
279
279
|
try {
|
|
280
280
|
const v = {
|
|
281
281
|
oddType: n,
|
|
282
|
-
scopeType:
|
|
283
|
-
oddFormat:
|
|
284
|
-
marketTypes: [
|
|
282
|
+
scopeType: ur.ORDINARY_TIME,
|
|
283
|
+
oddFormat: mr.DECIMAL,
|
|
284
|
+
marketTypes: [fr.FT_1X2]
|
|
285
285
|
}, b = await t.odds.getByMatchIds(o, v);
|
|
286
|
-
let k =
|
|
286
|
+
let k = pn(b);
|
|
287
287
|
if (i) {
|
|
288
288
|
const $ = /* @__PURE__ */ new Map();
|
|
289
289
|
k.forEach((C, I) => {
|
|
@@ -293,7 +293,7 @@ function to({
|
|
|
293
293
|
w.length > 0 && $.set(I, w);
|
|
294
294
|
}), k = $;
|
|
295
295
|
}
|
|
296
|
-
a(
|
|
296
|
+
a(mn(k));
|
|
297
297
|
} catch {
|
|
298
298
|
a(/* @__PURE__ */ new Map());
|
|
299
299
|
} finally {
|
|
@@ -311,7 +311,7 @@ function to({
|
|
|
311
311
|
return () => clearInterval(g);
|
|
312
312
|
}, [c, m, s, y]), { oddsMap: d, loading: x };
|
|
313
313
|
}
|
|
314
|
-
async function
|
|
314
|
+
async function xn(t) {
|
|
315
315
|
try {
|
|
316
316
|
const o = await t.profile.getOwnConsents();
|
|
317
317
|
return new Set(o.map((l) => l.consentId));
|
|
@@ -319,7 +319,7 @@ async function fn(t) {
|
|
|
319
319
|
return console.warn("[predictor-consent] failed to load own consents:", o), /* @__PURE__ */ new Set();
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
async function
|
|
322
|
+
async function hn(t, o, l, n) {
|
|
323
323
|
l.length !== 0 && await t.profile.collectConsents(
|
|
324
324
|
l.map((c) => {
|
|
325
325
|
const s = o.find((i) => i.consentId === c);
|
|
@@ -332,7 +332,7 @@ async function xn(t, o, l, n) {
|
|
|
332
332
|
})
|
|
333
333
|
);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function gn() {
|
|
336
336
|
const { sdk: t, userIsLoggedIn: o, consents: l, entityId: n } = ot(), [c, s] = T(null), [i, d] = T(!0), a = q(async () => {
|
|
337
337
|
if (!o) {
|
|
338
338
|
s(null), d(!1);
|
|
@@ -340,7 +340,7 @@ function hn() {
|
|
|
340
340
|
}
|
|
341
341
|
d(!0);
|
|
342
342
|
try {
|
|
343
|
-
const m = await
|
|
343
|
+
const m = await xn(t);
|
|
344
344
|
s(m);
|
|
345
345
|
} finally {
|
|
346
346
|
d(!1);
|
|
@@ -351,7 +351,7 @@ function hn() {
|
|
|
351
351
|
}, [a]);
|
|
352
352
|
const x = q(
|
|
353
353
|
async (m) => {
|
|
354
|
-
await
|
|
354
|
+
await hn(t, l, m, n), s((f) => {
|
|
355
355
|
const y = new Set(f ?? []);
|
|
356
356
|
return m.forEach((g) => y.add(g)), y;
|
|
357
357
|
});
|
|
@@ -360,7 +360,7 @@ function hn() {
|
|
|
360
360
|
), h = pe(() => c ? l.filter((m) => !c.has(m.consentId)) : l, [l, c]), u = pe(() => h.filter((m) => m.required), [h]);
|
|
361
361
|
return { accepted: c, loading: i, available: h, missingRequired: u, submit: x, refresh: a };
|
|
362
362
|
}
|
|
363
|
-
const
|
|
363
|
+
const yn = ({
|
|
364
364
|
consents: t,
|
|
365
365
|
initialAccepted: o,
|
|
366
366
|
onChange: l
|
|
@@ -391,9 +391,9 @@ const gn = ({
|
|
|
391
391
|
u.current(f);
|
|
392
392
|
}, [a]), t.length === 0) return null;
|
|
393
393
|
const m = o ?? /* @__PURE__ */ new Set();
|
|
394
|
-
return /* @__PURE__ */ e(
|
|
394
|
+
return /* @__PURE__ */ e(gr, { spacing: 1, children: t.map((f) => {
|
|
395
395
|
const y = m.has(f.consentId), g = !!a[f.consentId];
|
|
396
|
-
return /* @__PURE__ */ e(
|
|
396
|
+
return /* @__PURE__ */ e(yr, { disabled: y, size: "sm", children: /* @__PURE__ */ p(
|
|
397
397
|
r,
|
|
398
398
|
{
|
|
399
399
|
component: "label",
|
|
@@ -405,7 +405,7 @@ const gn = ({
|
|
|
405
405
|
},
|
|
406
406
|
children: [
|
|
407
407
|
/* @__PURE__ */ e(
|
|
408
|
-
|
|
408
|
+
br,
|
|
409
409
|
{
|
|
410
410
|
checked: g,
|
|
411
411
|
disabled: y,
|
|
@@ -443,7 +443,7 @@ const gn = ({
|
|
|
443
443
|
}
|
|
444
444
|
) }, f.consentId);
|
|
445
445
|
}) });
|
|
446
|
-
},
|
|
446
|
+
}, bn = ({
|
|
447
447
|
isOpen: t,
|
|
448
448
|
available: o,
|
|
449
449
|
missingRequired: l,
|
|
@@ -586,7 +586,7 @@ const gn = ({
|
|
|
586
586
|
}
|
|
587
587
|
),
|
|
588
588
|
/* @__PURE__ */ e(
|
|
589
|
-
|
|
589
|
+
yn,
|
|
590
590
|
{
|
|
591
591
|
consents: o,
|
|
592
592
|
initialAccepted: n ?? void 0,
|
|
@@ -683,8 +683,8 @@ const gn = ({
|
|
|
683
683
|
}
|
|
684
684
|
);
|
|
685
685
|
};
|
|
686
|
-
function
|
|
687
|
-
const { available: t, missingRequired: o, accepted: l, loading: n, submit: c } =
|
|
686
|
+
function Uo() {
|
|
687
|
+
const { available: t, missingRequired: o, accepted: l, loading: n, submit: c } = gn(), [s, i] = T(!1), d = Te(null), a = q(async () => (n && await new Promise((u) => setTimeout(u, 50)), o.length === 0 ? !0 : new Promise((u) => {
|
|
688
688
|
d.current = u, i(!0);
|
|
689
689
|
})), [n, o]), x = q(() => {
|
|
690
690
|
var u;
|
|
@@ -696,7 +696,7 @@ function Xo() {
|
|
|
696
696
|
return {
|
|
697
697
|
ensureConsents: a,
|
|
698
698
|
modal: /* @__PURE__ */ e(
|
|
699
|
-
|
|
699
|
+
bn,
|
|
700
700
|
{
|
|
701
701
|
isOpen: s,
|
|
702
702
|
available: t,
|
|
@@ -716,7 +716,7 @@ function Ut(t) {
|
|
|
716
716
|
const l = parseInt(o[0], 10), n = parseInt(o[1], 10);
|
|
717
717
|
return isNaN(l) || isNaN(n) ? null : l > n ? "1" : l < n ? "2" : "X";
|
|
718
718
|
}
|
|
719
|
-
const
|
|
719
|
+
const Sn = 0, Cn = 20, lt = (t) => Math.max(Sn, Math.min(Cn, t)), Xo = ({
|
|
720
720
|
matchId: t,
|
|
721
721
|
sdk: o,
|
|
722
722
|
userIsLoggedIn: l,
|
|
@@ -762,7 +762,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
762
762
|
try {
|
|
763
763
|
const M = await o.predictor.makeFootballPrediction(
|
|
764
764
|
t,
|
|
765
|
-
|
|
765
|
+
hr.CORRECT_SCORE_ADVANCED,
|
|
766
766
|
`${x}:${u}`
|
|
767
767
|
);
|
|
768
768
|
if (y(!0), I.current = !1, k("success"), a === "predictions-only" && !w.current) {
|
|
@@ -837,12 +837,12 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
837
837
|
oddsLoading: d,
|
|
838
838
|
predictedOutcome: E
|
|
839
839
|
};
|
|
840
|
-
},
|
|
840
|
+
}, kn = (t, o) => t.toLocaleDateString(o, {
|
|
841
841
|
day: "2-digit",
|
|
842
842
|
month: "short",
|
|
843
843
|
hour: "2-digit",
|
|
844
844
|
minute: "2-digit"
|
|
845
|
-
}),
|
|
845
|
+
}), vn = ({
|
|
846
846
|
kickoffDate: t,
|
|
847
847
|
locale: o,
|
|
848
848
|
rightContent: l
|
|
@@ -869,14 +869,14 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
869
869
|
fontWeight: 500,
|
|
870
870
|
letterSpacing: "0.05em"
|
|
871
871
|
},
|
|
872
|
-
children:
|
|
872
|
+
children: kn(t, o)
|
|
873
873
|
}
|
|
874
874
|
),
|
|
875
875
|
l ?? null
|
|
876
876
|
]
|
|
877
877
|
}
|
|
878
878
|
);
|
|
879
|
-
},
|
|
879
|
+
}, Ko = be.memo(vn), wn = () => /* @__PURE__ */ e(
|
|
880
880
|
"svg",
|
|
881
881
|
{
|
|
882
882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -890,7 +890,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
890
890
|
strokeLinejoin: "round",
|
|
891
891
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
892
892
|
}
|
|
893
|
-
),
|
|
893
|
+
), In = () => /* @__PURE__ */ e(
|
|
894
894
|
"svg",
|
|
895
895
|
{
|
|
896
896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -904,7 +904,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
904
904
|
strokeLinejoin: "round",
|
|
905
905
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
906
906
|
}
|
|
907
|
-
),
|
|
907
|
+
), $n = ({
|
|
908
908
|
score: t,
|
|
909
909
|
onIncrement: o,
|
|
910
910
|
onDecrement: l,
|
|
@@ -946,7 +946,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
946
946
|
},
|
|
947
947
|
"&:active": { transform: n ? "none" : "scale(0.95)" }
|
|
948
948
|
},
|
|
949
|
-
children: /* @__PURE__ */ e(
|
|
949
|
+
children: /* @__PURE__ */ e(wn, {})
|
|
950
950
|
}
|
|
951
951
|
),
|
|
952
952
|
/* @__PURE__ */ e(
|
|
@@ -994,13 +994,13 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
994
994
|
},
|
|
995
995
|
"&:active": { transform: n ? "none" : "scale(0.95)" }
|
|
996
996
|
},
|
|
997
|
-
children: /* @__PURE__ */ e(
|
|
997
|
+
children: /* @__PURE__ */ e(In, {})
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
1000
|
]
|
|
1001
1001
|
}
|
|
1002
1002
|
);
|
|
1003
|
-
},
|
|
1003
|
+
}, Ln = be.memo($n), zn = ({
|
|
1004
1004
|
team: t,
|
|
1005
1005
|
score: o,
|
|
1006
1006
|
isPast: l,
|
|
@@ -1089,7 +1089,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1089
1089
|
}
|
|
1090
1090
|
),
|
|
1091
1091
|
!l && !n && !c && /* @__PURE__ */ e(
|
|
1092
|
-
|
|
1092
|
+
Ln,
|
|
1093
1093
|
{
|
|
1094
1094
|
score: o,
|
|
1095
1095
|
onIncrement: d,
|
|
@@ -1350,7 +1350,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1350
1350
|
]
|
|
1351
1351
|
}
|
|
1352
1352
|
);
|
|
1353
|
-
}, mo = be.memo(
|
|
1353
|
+
}, mo = be.memo(zn), Rn = ({
|
|
1354
1354
|
odds: t,
|
|
1355
1355
|
operator: o,
|
|
1356
1356
|
onOddClick: l
|
|
@@ -1514,7 +1514,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1514
1514
|
m({ flex: 1, maxWidth: 90 }),
|
|
1515
1515
|
t.map((f) => h(f))
|
|
1516
1516
|
] });
|
|
1517
|
-
},
|
|
1517
|
+
}, Fn = be.memo(Rn), Go = ({
|
|
1518
1518
|
oddsLoading: t,
|
|
1519
1519
|
odds: o,
|
|
1520
1520
|
operator: l,
|
|
@@ -1537,14 +1537,14 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
) }) : o.length > 0 && l ? /* @__PURE__ */ e(
|
|
1540
|
-
|
|
1540
|
+
Fn,
|
|
1541
1541
|
{
|
|
1542
1542
|
odds: o,
|
|
1543
1543
|
operator: l,
|
|
1544
1544
|
onOddClick: n ? (d) => n(d.label) : void 0
|
|
1545
1545
|
}
|
|
1546
1546
|
) : null;
|
|
1547
|
-
},
|
|
1547
|
+
}, Tn = ({
|
|
1548
1548
|
isPredicted: t,
|
|
1549
1549
|
isSubmitting: o,
|
|
1550
1550
|
lastResult: l,
|
|
@@ -1574,7 +1574,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1574
1574
|
t ? (
|
|
1575
1575
|
// Odds display after prediction
|
|
1576
1576
|
/* @__PURE__ */ e(
|
|
1577
|
-
|
|
1577
|
+
Go,
|
|
1578
1578
|
{
|
|
1579
1579
|
oddsLoading: n,
|
|
1580
1580
|
odds: c != null && c.matchingOdd ? [c.matchingOdd] : [],
|
|
@@ -1636,7 +1636,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1636
1636
|
)
|
|
1637
1637
|
)
|
|
1638
1638
|
] });
|
|
1639
|
-
},
|
|
1639
|
+
}, Wn = be.memo(Tn), Pn = ({
|
|
1640
1640
|
existingPrediction: t,
|
|
1641
1641
|
matchHomeScore: o,
|
|
1642
1642
|
matchAwayScore: l,
|
|
@@ -1955,7 +1955,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
1955
1955
|
}
|
|
1956
1956
|
)
|
|
1957
1957
|
] });
|
|
1958
|
-
},
|
|
1958
|
+
}, En = be.memo(Pn), An = ({
|
|
1959
1959
|
isLive: t,
|
|
1960
1960
|
isPast: o,
|
|
1961
1961
|
isPredicted: l,
|
|
@@ -2036,7 +2036,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2036
2036
|
]
|
|
2037
2037
|
}
|
|
2038
2038
|
) : o && c != null ? i ? /* @__PURE__ */ e(
|
|
2039
|
-
|
|
2039
|
+
En,
|
|
2040
2040
|
{
|
|
2041
2041
|
existingPrediction: i,
|
|
2042
2042
|
matchHomeScore: c,
|
|
@@ -2218,7 +2218,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2218
2218
|
}
|
|
2219
2219
|
)
|
|
2220
2220
|
] }) : null;
|
|
2221
|
-
},
|
|
2221
|
+
}, qo = be.memo(An), Dn = () => {
|
|
2222
2222
|
var d, a, x, h, u, m, f, y, g, v, b, k, $, C, I, w, L, R, P, z, j, F;
|
|
2223
2223
|
const { t } = Ie("common"), o = ae(), l = ue(), { signInCTA: n } = ot();
|
|
2224
2224
|
if (n != null && n.component) return /* @__PURE__ */ e(ze, { children: n.component });
|
|
@@ -2282,7 +2282,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2282
2282
|
children: i
|
|
2283
2283
|
}
|
|
2284
2284
|
) : /* @__PURE__ */ e(we, { fullWidth: !0, size: "sm", variant: "soft", sx: s, children: i });
|
|
2285
|
-
},
|
|
2285
|
+
}, Jo = be.memo(Dn), Mn = ({
|
|
2286
2286
|
match: t,
|
|
2287
2287
|
existingPrediction: o,
|
|
2288
2288
|
onPredictionUpdate: l,
|
|
@@ -2314,7 +2314,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2314
2314
|
deleteError: M,
|
|
2315
2315
|
setDeleteError: U,
|
|
2316
2316
|
predictedOutcome: ee
|
|
2317
|
-
} =
|
|
2317
|
+
} = Xo({
|
|
2318
2318
|
matchId: t.id,
|
|
2319
2319
|
sdk: y,
|
|
2320
2320
|
userIsLoggedIn: g,
|
|
@@ -2354,12 +2354,12 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2354
2354
|
},
|
|
2355
2355
|
children: [
|
|
2356
2356
|
/* @__PURE__ */ e(
|
|
2357
|
-
|
|
2357
|
+
Ko,
|
|
2358
2358
|
{
|
|
2359
2359
|
kickoffDate: k,
|
|
2360
2360
|
locale: b ?? void 0,
|
|
2361
2361
|
rightContent: /* @__PURE__ */ e(
|
|
2362
|
-
|
|
2362
|
+
qo,
|
|
2363
2363
|
{
|
|
2364
2364
|
isLive: C,
|
|
2365
2365
|
isPast: I,
|
|
@@ -2515,7 +2515,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2515
2515
|
children: x("predictor.play.predictionsClosed")
|
|
2516
2516
|
}
|
|
2517
2517
|
) : g ? /* @__PURE__ */ e(
|
|
2518
|
-
|
|
2518
|
+
Wn,
|
|
2519
2519
|
{
|
|
2520
2520
|
isPredicted: B,
|
|
2521
2521
|
isSubmitting: O,
|
|
@@ -2525,12 +2525,12 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2525
2525
|
onPredict: fe,
|
|
2526
2526
|
onOddClick: (v == null ? void 0 : v.trigger) === "odds-only" ? te : void 0
|
|
2527
2527
|
}
|
|
2528
|
-
) : /* @__PURE__ */ e(
|
|
2528
|
+
) : /* @__PURE__ */ e(Jo, {})
|
|
2529
2529
|
] })
|
|
2530
2530
|
]
|
|
2531
2531
|
}
|
|
2532
2532
|
);
|
|
2533
|
-
},
|
|
2533
|
+
}, Bn = be.memo(Mn), Hn = ({ index: t = 0 }) => {
|
|
2534
2534
|
const o = ae(), l = re(), n = me(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", s = o.surfaceVariant, i = o.surfaceVariant + "80";
|
|
2535
2535
|
return /* @__PURE__ */ p(
|
|
2536
2536
|
r,
|
|
@@ -2692,7 +2692,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2692
2692
|
]
|
|
2693
2693
|
}
|
|
2694
2694
|
);
|
|
2695
|
-
}, Xt = be.memo(
|
|
2695
|
+
}, Xt = be.memo(Hn), jn = () => /* @__PURE__ */ e(
|
|
2696
2696
|
"svg",
|
|
2697
2697
|
{
|
|
2698
2698
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2706,7 +2706,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2706
2706
|
strokeLinejoin: "round",
|
|
2707
2707
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
2708
2708
|
}
|
|
2709
|
-
),
|
|
2709
|
+
), Nn = () => /* @__PURE__ */ e(
|
|
2710
2710
|
"svg",
|
|
2711
2711
|
{
|
|
2712
2712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2720,7 +2720,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2720
2720
|
strokeLinejoin: "round",
|
|
2721
2721
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
2722
2722
|
}
|
|
2723
|
-
),
|
|
2723
|
+
), Vn = ({
|
|
2724
2724
|
groups: t,
|
|
2725
2725
|
groupIndex: o,
|
|
2726
2726
|
currentGroup: l,
|
|
@@ -2768,7 +2768,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2768
2768
|
disabled: o === 0,
|
|
2769
2769
|
onClick: c,
|
|
2770
2770
|
sx: u(o === 0),
|
|
2771
|
-
children: /* @__PURE__ */ e(
|
|
2771
|
+
children: /* @__PURE__ */ e(jn, {})
|
|
2772
2772
|
}
|
|
2773
2773
|
),
|
|
2774
2774
|
/* @__PURE__ */ p(r, { sx: { textAlign: "center" }, children: [
|
|
@@ -2811,13 +2811,13 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
2811
2811
|
disabled: o === t.length - 1,
|
|
2812
2812
|
onClick: s,
|
|
2813
2813
|
sx: u(o === t.length - 1),
|
|
2814
|
-
children: /* @__PURE__ */ e(
|
|
2814
|
+
children: /* @__PURE__ */ e(Nn, {})
|
|
2815
2815
|
}
|
|
2816
2816
|
)
|
|
2817
2817
|
]
|
|
2818
2818
|
}
|
|
2819
2819
|
);
|
|
2820
|
-
},
|
|
2820
|
+
}, On = be.memo(Vn), _n = ({
|
|
2821
2821
|
matches: t,
|
|
2822
2822
|
predictions: o,
|
|
2823
2823
|
predictedCount: l,
|
|
@@ -3081,7 +3081,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3081
3081
|
]
|
|
3082
3082
|
}
|
|
3083
3083
|
) });
|
|
3084
|
-
},
|
|
3084
|
+
}, Yn = be.memo(_n), ht = (t, o) => (t == null ? void 0 : t.filter((l) => l.position === o)) ?? [], gt = ({ banners: t }) => t.length === 0 ? null : /* @__PURE__ */ e(ze, { children: t.map((o, l) => /* @__PURE__ */ e(r, { children: o.render() }, l)) }), fo = (t, o) => t.toLocaleDateString(o, { day: "2-digit", month: "short" }), Un = (t) => {
|
|
3085
3085
|
const o = /* @__PURE__ */ new Date();
|
|
3086
3086
|
o.setHours(0, 0, 0, 0);
|
|
3087
3087
|
for (let l = 0; l < t.length; l++) {
|
|
@@ -3091,15 +3091,15 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3091
3091
|
if (c.setHours(23, 59, 59, 999), c >= o) return l;
|
|
3092
3092
|
}
|
|
3093
3093
|
return Math.max(0, t.length - 1);
|
|
3094
|
-
},
|
|
3094
|
+
}, Xn = ({
|
|
3095
3095
|
template: t,
|
|
3096
3096
|
loading: o,
|
|
3097
3097
|
error: l,
|
|
3098
3098
|
playTabBanners: n,
|
|
3099
3099
|
matchCardBgImageUrl: c
|
|
3100
3100
|
}) => {
|
|
3101
|
-
const { t: s } = Ie("common"), i = ae(), d = ue(), a = re(), x = me(), h = Bt(), { entityId: u, sdk: m, userIsLoggedIn: f, useSearchTeamData: y } = ot(), { language: g } = ft(xt), { ensureConsents: v, modal: b } =
|
|
3102
|
-
() =>
|
|
3101
|
+
const { t: s } = Ie("common"), i = ae(), d = ue(), a = re(), x = me(), h = Bt(), { entityId: u, sdk: m, userIsLoggedIn: f, useSearchTeamData: y } = ot(), { language: g } = ft(xt), { ensureConsents: v, modal: b } = Uo(), k = (t == null ? void 0 : t.groups) ?? [], $ = pe(
|
|
3102
|
+
() => Un(k),
|
|
3103
3103
|
[k]
|
|
3104
3104
|
), [C, I] = T(null), w = Te($);
|
|
3105
3105
|
le(() => {
|
|
@@ -3111,7 +3111,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3111
3111
|
), P = q(
|
|
3112
3112
|
() => I((Q) => (Q ?? $) + 1),
|
|
3113
3113
|
[$]
|
|
3114
|
-
), [z, j] = T([]), [F, A] = T(!1), W = k[L] ?? null, { predictions: B, setPredictions: D, updatePrediction: H, removePrediction: O } =
|
|
3114
|
+
), [z, j] = T([]), [F, A] = T(!1), W = k[L] ?? null, { predictions: B, setPredictions: D, updatePrediction: H, removePrediction: O } = cn(), [N, V] = T({});
|
|
3115
3115
|
le(() => {
|
|
3116
3116
|
m && (async () => {
|
|
3117
3117
|
var Q, he;
|
|
@@ -3161,12 +3161,12 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3161
3161
|
}
|
|
3162
3162
|
if (j(ge), f && ge.length > 0)
|
|
3163
3163
|
try {
|
|
3164
|
-
const Ce = ge.map((ke) => ke.id), G =
|
|
3164
|
+
const Ce = ge.map((ke) => ke.id), G = _o(Ce, Oo), ce = await Promise.all(
|
|
3165
3165
|
G.map(
|
|
3166
3166
|
(ke) => m.predictor.getMyPredictionsForMatches(ke)
|
|
3167
3167
|
)
|
|
3168
3168
|
);
|
|
3169
|
-
Q || D(
|
|
3169
|
+
Q || D(Yo(ce));
|
|
3170
3170
|
} catch {
|
|
3171
3171
|
}
|
|
3172
3172
|
} catch {
|
|
@@ -3276,7 +3276,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3276
3276
|
},
|
|
3277
3277
|
children: [
|
|
3278
3278
|
k.length > 0 && /* @__PURE__ */ e(
|
|
3279
|
-
|
|
3279
|
+
On,
|
|
3280
3280
|
{
|
|
3281
3281
|
groups: k,
|
|
3282
3282
|
groupIndex: L,
|
|
@@ -3331,7 +3331,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3331
3331
|
z.map((Q) => {
|
|
3332
3332
|
var he;
|
|
3333
3333
|
return /* @__PURE__ */ e(
|
|
3334
|
-
|
|
3334
|
+
Bn,
|
|
3335
3335
|
{
|
|
3336
3336
|
match: Q,
|
|
3337
3337
|
existingPrediction: B.get(Q.id) ?? null,
|
|
@@ -3352,7 +3352,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3352
3352
|
),
|
|
3353
3353
|
/* @__PURE__ */ e(gt, { banners: ht(n, "below-matches") }),
|
|
3354
3354
|
f && z.length > 0 && !F && /* @__PURE__ */ e(
|
|
3355
|
-
|
|
3355
|
+
Yn,
|
|
3356
3356
|
{
|
|
3357
3357
|
matches: z,
|
|
3358
3358
|
predictions: B,
|
|
@@ -3383,7 +3383,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3383
3383
|
] }),
|
|
3384
3384
|
/* @__PURE__ */ e(gt, { banners: ht(n, "bottom") })
|
|
3385
3385
|
] });
|
|
3386
|
-
},
|
|
3386
|
+
}, Kn = ({
|
|
3387
3387
|
count: t = 10,
|
|
3388
3388
|
page: o = 1,
|
|
3389
3389
|
onChange: l,
|
|
@@ -3439,7 +3439,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3439
3439
|
onClick: () => x(1),
|
|
3440
3440
|
disabled: a || o === 1,
|
|
3441
3441
|
sx: v(),
|
|
3442
|
-
children: /* @__PURE__ */ e(
|
|
3442
|
+
children: /* @__PURE__ */ e(qr, { size: y })
|
|
3443
3443
|
}
|
|
3444
3444
|
),
|
|
3445
3445
|
/* @__PURE__ */ e(
|
|
@@ -3451,7 +3451,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3451
3451
|
onClick: () => x(o - 1),
|
|
3452
3452
|
disabled: a || o === 1,
|
|
3453
3453
|
sx: v(),
|
|
3454
|
-
children: /* @__PURE__ */ e(
|
|
3454
|
+
children: /* @__PURE__ */ e(Zr, { size: y })
|
|
3455
3455
|
}
|
|
3456
3456
|
),
|
|
3457
3457
|
m.map((b, k) => {
|
|
@@ -3496,7 +3496,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3496
3496
|
onClick: () => x(o + 1),
|
|
3497
3497
|
disabled: a || o === t,
|
|
3498
3498
|
sx: v(),
|
|
3499
|
-
children: /* @__PURE__ */ e(
|
|
3499
|
+
children: /* @__PURE__ */ e(Qr, { size: y })
|
|
3500
3500
|
}
|
|
3501
3501
|
),
|
|
3502
3502
|
i && /* @__PURE__ */ e(
|
|
@@ -3508,15 +3508,15 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3508
3508
|
onClick: () => x(t),
|
|
3509
3509
|
disabled: a || o === t,
|
|
3510
3510
|
sx: v(),
|
|
3511
|
-
children: /* @__PURE__ */ e(
|
|
3511
|
+
children: /* @__PURE__ */ e(Jr, { size: y })
|
|
3512
3512
|
}
|
|
3513
3513
|
)
|
|
3514
3514
|
]
|
|
3515
3515
|
}
|
|
3516
3516
|
);
|
|
3517
|
-
},
|
|
3517
|
+
}, Gn = 10, qn = () => {
|
|
3518
3518
|
var B, D;
|
|
3519
|
-
const { t } = Ie("common"), o = ae(), l = re(), n = me(), c = ue(), s =
|
|
3519
|
+
const { t } = Ie("common"), o = ae(), l = re(), n = me(), c = ue(), s = lr(), i = Lo(), { entityId: d, sdk: a, userIsLoggedIn: x } = ot(), h = ((D = (B = o.palette) == null ? void 0 : B.primary) == null ? void 0 : D.plainColor) ?? o.textPrimary, u = s.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", m = o.textColor ?? o.textPrimary, f = o.surfaceVariant, y = o.outlineEnabledBorder, [g, v] = T([]), [b, k] = T(null), [$, C] = T(null), [I, w] = T(!0), [L, R] = T(null), [P, z] = T(1), [j, F] = T(1);
|
|
3520
3520
|
le(() => {
|
|
3521
3521
|
z(1), F(1), k(null), C(null);
|
|
3522
3522
|
}, [d, a]), le(() => {
|
|
@@ -3547,7 +3547,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3547
3547
|
}, [d, a, x]), le(() => {
|
|
3548
3548
|
if (!d || !a) return;
|
|
3549
3549
|
let H = !1;
|
|
3550
|
-
return w(!0), R(null), v([]), a.loyalty.getLeaderboard(d, { limit:
|
|
3550
|
+
return w(!0), R(null), v([]), a.loyalty.getLeaderboard(d, { limit: Gn, page: P }, !0).then((O) => {
|
|
3551
3551
|
var V, E;
|
|
3552
3552
|
if (H) return;
|
|
3553
3553
|
const N = (O.data ?? []).map(
|
|
@@ -3687,7 +3687,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3687
3687
|
}
|
|
3688
3688
|
};
|
|
3689
3689
|
if (I)
|
|
3690
|
-
return /* @__PURE__ */ e(
|
|
3690
|
+
return /* @__PURE__ */ e(Gr, { my: 10 });
|
|
3691
3691
|
if (L)
|
|
3692
3692
|
return /* @__PURE__ */ e(S, { level: "body-lg", sx: A.noLeaderboardText, children: t("predictor.errors.loadFailed") });
|
|
3693
3693
|
if (g.length === 0)
|
|
@@ -3761,11 +3761,11 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3761
3761
|
]
|
|
3762
3762
|
}
|
|
3763
3763
|
) }),
|
|
3764
|
-
j > 1 && /* @__PURE__ */ e(
|
|
3764
|
+
j > 1 && /* @__PURE__ */ e(Kn, { count: j, page: P, onChange: z })
|
|
3765
3765
|
]
|
|
3766
3766
|
}
|
|
3767
3767
|
);
|
|
3768
|
-
},
|
|
3768
|
+
}, Jn = (t) => t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th", Zn = ({
|
|
3769
3769
|
league: t,
|
|
3770
3770
|
onClick: o,
|
|
3771
3771
|
isAdmin: l = !1,
|
|
@@ -3953,7 +3953,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3953
3953
|
},
|
|
3954
3954
|
children: [
|
|
3955
3955
|
t.userPosition === 1 ? /* @__PURE__ */ e(
|
|
3956
|
-
|
|
3956
|
+
Sr,
|
|
3957
3957
|
{
|
|
3958
3958
|
sx: { fontSize: 13, color: C.text }
|
|
3959
3959
|
}
|
|
@@ -3976,7 +3976,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
3976
3976
|
},
|
|
3977
3977
|
children: [
|
|
3978
3978
|
t.userPosition,
|
|
3979
|
-
|
|
3979
|
+
Jn(t.userPosition)
|
|
3980
3980
|
]
|
|
3981
3981
|
}
|
|
3982
3982
|
)
|
|
@@ -4018,7 +4018,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4018
4018
|
"&:active": { transform: "scale(0.93)" },
|
|
4019
4019
|
backgroundColor: u ? i.surfaceVariant : "transparent"
|
|
4020
4020
|
},
|
|
4021
|
-
children: /* @__PURE__ */ e(
|
|
4021
|
+
children: /* @__PURE__ */ e(Cr, { sx: { fontSize: 18 } })
|
|
4022
4022
|
}
|
|
4023
4023
|
),
|
|
4024
4024
|
u && /* @__PURE__ */ p(
|
|
@@ -4177,7 +4177,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4177
4177
|
]
|
|
4178
4178
|
}
|
|
4179
4179
|
);
|
|
4180
|
-
},
|
|
4180
|
+
}, Qn = be.memo(Zn), ei = ({ index: t = 0 }) => {
|
|
4181
4181
|
const o = ae(), l = re(), n = me(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", s = o.surfaceVariant, i = o.surfaceVariant + "80";
|
|
4182
4182
|
return /* @__PURE__ */ p(
|
|
4183
4183
|
r,
|
|
@@ -4266,7 +4266,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4266
4266
|
]
|
|
4267
4267
|
}
|
|
4268
4268
|
);
|
|
4269
|
-
},
|
|
4269
|
+
}, ti = be.memo(ei), oi = ({
|
|
4270
4270
|
leagues: t,
|
|
4271
4271
|
activeId: o,
|
|
4272
4272
|
onSelect: l,
|
|
@@ -4353,7 +4353,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4353
4353
|
"&:hover": { backgroundColor: `${x}14` }
|
|
4354
4354
|
},
|
|
4355
4355
|
children: [
|
|
4356
|
-
/* @__PURE__ */ e(
|
|
4356
|
+
/* @__PURE__ */ e(kr, { sx: { fontSize: 13 } }),
|
|
4357
4357
|
c("predictor.privateLeagues.viewAll") || "View All"
|
|
4358
4358
|
]
|
|
4359
4359
|
}
|
|
@@ -4579,7 +4579,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4579
4579
|
},
|
|
4580
4580
|
children: [
|
|
4581
4581
|
L <= 3 && /* @__PURE__ */ e(
|
|
4582
|
-
|
|
4582
|
+
vr,
|
|
4583
4583
|
{
|
|
4584
4584
|
sx: {
|
|
4585
4585
|
fontSize: 9,
|
|
@@ -4658,7 +4658,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4658
4658
|
)
|
|
4659
4659
|
] })
|
|
4660
4660
|
] });
|
|
4661
|
-
},
|
|
4661
|
+
}, ri = be.memo(oi), ni = ({
|
|
4662
4662
|
open: t,
|
|
4663
4663
|
onClose: o,
|
|
4664
4664
|
title: l,
|
|
@@ -4762,7 +4762,7 @@ const bn = 0, Sn = 20, lt = (t) => Math.max(bn, Math.min(Sn, t)), Ko = ({
|
|
|
4762
4762
|
)
|
|
4763
4763
|
}
|
|
4764
4764
|
);
|
|
4765
|
-
}, Ht = be.memo(
|
|
4765
|
+
}, Ht = be.memo(ni), ii = ({ rounds: t, transparent: o = !1, loading: l = !1 }) => {
|
|
4766
4766
|
var F, A, W, B;
|
|
4767
4767
|
const [n, c] = T(null), { t: s } = Ie("common"), i = ae(), d = re(), a = me(), x = ue(), h = ((A = (F = i.palette) == null ? void 0 : F.primary) == null ? void 0 : A.plainColor) ?? "#1A77D2", u = ((B = (W = i.palette) == null ? void 0 : W.success) == null ? void 0 : B.plainColor) ?? "#4CAF50", m = i.textSecondary ?? "#757575", f = i.textTertiary ?? i.textSecondary ?? "#9E9E9E", y = i.surfaceVariant ?? i.surface ?? "#F5F5F5", g = i.outlineEnabledBorder ?? "#E0E0E0", v = t.slice(-5), b = {
|
|
4768
4768
|
display: "flex",
|
|
@@ -4988,7 +4988,7 @@ function jt({ outcome: t, color: o }) {
|
|
|
4988
4988
|
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
4989
4989
|
] }) : null;
|
|
4990
4990
|
}
|
|
4991
|
-
function
|
|
4991
|
+
function si({
|
|
4992
4992
|
outcome: t,
|
|
4993
4993
|
successColor: o,
|
|
4994
4994
|
warningColor: l,
|
|
@@ -5062,7 +5062,7 @@ function Nt({
|
|
|
5062
5062
|
onTouchStart: () => z(M),
|
|
5063
5063
|
onTouchEnd: () => setTimeout(() => $(null), 2500),
|
|
5064
5064
|
children: /* @__PURE__ */ e(
|
|
5065
|
-
|
|
5065
|
+
si,
|
|
5066
5066
|
{
|
|
5067
5067
|
outcome: E.outcome,
|
|
5068
5068
|
successColor: c,
|
|
@@ -5076,7 +5076,7 @@ function Nt({
|
|
|
5076
5076
|
},
|
|
5077
5077
|
M
|
|
5078
5078
|
)),
|
|
5079
|
-
k && F &&
|
|
5079
|
+
k && F && dr(
|
|
5080
5080
|
/* @__PURE__ */ p(
|
|
5081
5081
|
r,
|
|
5082
5082
|
{
|
|
@@ -5209,7 +5209,7 @@ function Nt({
|
|
|
5209
5209
|
)
|
|
5210
5210
|
] });
|
|
5211
5211
|
}
|
|
5212
|
-
const
|
|
5212
|
+
const ai = ({
|
|
5213
5213
|
loading: t = !1,
|
|
5214
5214
|
formMatches: o,
|
|
5215
5215
|
selfFormMatches: l = [],
|
|
@@ -5407,7 +5407,7 @@ const si = ({
|
|
|
5407
5407
|
}
|
|
5408
5408
|
);
|
|
5409
5409
|
}, Kt = 22, xo = 2 * Math.PI * Kt, wt = 24, Lt = 2 * Math.PI * wt;
|
|
5410
|
-
function
|
|
5410
|
+
function li({
|
|
5411
5411
|
loading: t = !1,
|
|
5412
5412
|
accuracy: o,
|
|
5413
5413
|
streak: l,
|
|
@@ -6001,7 +6001,7 @@ function ai({
|
|
|
6001
6001
|
)
|
|
6002
6002
|
] });
|
|
6003
6003
|
}
|
|
6004
|
-
function
|
|
6004
|
+
function ci({
|
|
6005
6005
|
filters: t,
|
|
6006
6006
|
counts: o,
|
|
6007
6007
|
activeFilter: l,
|
|
@@ -6127,7 +6127,7 @@ function li({
|
|
|
6127
6127
|
}
|
|
6128
6128
|
);
|
|
6129
6129
|
}
|
|
6130
|
-
function
|
|
6130
|
+
function di(t, o) {
|
|
6131
6131
|
if (!t || !o) return 0;
|
|
6132
6132
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
6133
6133
|
const l = (n, c) => n > c ? "H" : n < c ? "A" : "D";
|
|
@@ -6175,11 +6175,11 @@ function go({
|
|
|
6175
6175
|
flexShrink: 0,
|
|
6176
6176
|
boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.06)"
|
|
6177
6177
|
},
|
|
6178
|
-
children: /* @__PURE__ */ e(
|
|
6178
|
+
children: /* @__PURE__ */ e(Lr, { sx: { fontSize: l * 0.6, color: "#5A6473" } })
|
|
6179
6179
|
}
|
|
6180
6180
|
);
|
|
6181
6181
|
}
|
|
6182
|
-
function
|
|
6182
|
+
function pi({
|
|
6183
6183
|
home: t,
|
|
6184
6184
|
away: o,
|
|
6185
6185
|
color: l,
|
|
@@ -6222,7 +6222,7 @@ function di({
|
|
|
6222
6222
|
}
|
|
6223
6223
|
);
|
|
6224
6224
|
}
|
|
6225
|
-
function
|
|
6225
|
+
function ui({
|
|
6226
6226
|
matches: t,
|
|
6227
6227
|
successColor: o,
|
|
6228
6228
|
warningColor: l,
|
|
@@ -6279,7 +6279,7 @@ function pi({
|
|
|
6279
6279
|
}
|
|
6280
6280
|
);
|
|
6281
6281
|
}
|
|
6282
|
-
const
|
|
6282
|
+
const mi = be.memo(function({
|
|
6283
6283
|
label: o,
|
|
6284
6284
|
matches: l,
|
|
6285
6285
|
isOpen: n,
|
|
@@ -6419,7 +6419,7 @@ const ui = be.memo(function({
|
|
|
6419
6419
|
pointerEvents: "none"
|
|
6420
6420
|
},
|
|
6421
6421
|
children: /* @__PURE__ */ e(
|
|
6422
|
-
|
|
6422
|
+
ui,
|
|
6423
6423
|
{
|
|
6424
6424
|
matches: l,
|
|
6425
6425
|
successColor: m,
|
|
@@ -6579,7 +6579,7 @@ const ui = be.memo(function({
|
|
|
6579
6579
|
}
|
|
6580
6580
|
);
|
|
6581
6581
|
});
|
|
6582
|
-
function
|
|
6582
|
+
function fi({
|
|
6583
6583
|
match: t,
|
|
6584
6584
|
compareMode: o,
|
|
6585
6585
|
selfName: l,
|
|
@@ -6613,7 +6613,7 @@ function mi({
|
|
|
6613
6613
|
partial: `${i}18`,
|
|
6614
6614
|
incorrect: `${d}14`,
|
|
6615
6615
|
pending: m
|
|
6616
|
-
}[t.outcome], P = o && t.played ? t.selfPoints !== null ? t.selfPoints :
|
|
6616
|
+
}[t.outcome], P = o && t.played ? t.selfPoints !== null ? t.selfPoints : di(t.selfPrediction, t.result) : null, z = o && t.played ? t.points ?? 0 : null, j = t.played && P != null && z != null && P > z, F = t.played && P != null && z != null && z > P;
|
|
6617
6617
|
return /* @__PURE__ */ p(
|
|
6618
6618
|
r,
|
|
6619
6619
|
{
|
|
@@ -6912,7 +6912,7 @@ function mi({
|
|
|
6912
6912
|
}
|
|
6913
6913
|
),
|
|
6914
6914
|
t.prediction ? /* @__PURE__ */ e(
|
|
6915
|
-
|
|
6915
|
+
pi,
|
|
6916
6916
|
{
|
|
6917
6917
|
home: t.prediction.home,
|
|
6918
6918
|
away: t.prediction.away,
|
|
@@ -6976,7 +6976,7 @@ function mi({
|
|
|
6976
6976
|
}
|
|
6977
6977
|
),
|
|
6978
6978
|
t.outcome === "pending" && /* @__PURE__ */ e(
|
|
6979
|
-
|
|
6979
|
+
$r,
|
|
6980
6980
|
{
|
|
6981
6981
|
sx: { fontSize: b ? 13 : 10, color: w }
|
|
6982
6982
|
}
|
|
@@ -7173,7 +7173,7 @@ function mi({
|
|
|
7173
7173
|
}
|
|
7174
7174
|
);
|
|
7175
7175
|
}
|
|
7176
|
-
function
|
|
7176
|
+
function xi(t) {
|
|
7177
7177
|
const o = Date.now(), l = t.map((s) => {
|
|
7178
7178
|
const i = s.matches.map((d) => d.kickoffIso ? new Date(d.kickoffIso).getTime() : null).filter((d) => d !== null);
|
|
7179
7179
|
return {
|
|
@@ -7186,7 +7186,7 @@ function fi(t) {
|
|
|
7186
7186
|
const c = l.filter((s) => s.min > o).sort((s, i) => s.min - i.min);
|
|
7187
7187
|
return c.length > 0 ? c[0].round : t[0].round;
|
|
7188
7188
|
}
|
|
7189
|
-
function
|
|
7189
|
+
function hi({
|
|
7190
7190
|
groups: t,
|
|
7191
7191
|
loading: o,
|
|
7192
7192
|
selfName: l,
|
|
@@ -7226,7 +7226,7 @@ function xi({
|
|
|
7226
7226
|
const W = A.current === 0;
|
|
7227
7227
|
if (A.current = t.length, t.length !== 0)
|
|
7228
7228
|
if (W)
|
|
7229
|
-
R(/* @__PURE__ */ new Set([
|
|
7229
|
+
R(/* @__PURE__ */ new Set([xi(t)]));
|
|
7230
7230
|
else {
|
|
7231
7231
|
const B = t[0].round;
|
|
7232
7232
|
R(
|
|
@@ -7432,7 +7432,7 @@ function xi({
|
|
|
7432
7432
|
},
|
|
7433
7433
|
children: [
|
|
7434
7434
|
/* @__PURE__ */ e(
|
|
7435
|
-
|
|
7435
|
+
mi,
|
|
7436
7436
|
{
|
|
7437
7437
|
label: W.label,
|
|
7438
7438
|
matches: W.matches,
|
|
@@ -7463,8 +7463,8 @@ function xi({
|
|
|
7463
7463
|
compareTooltip: I("predictor.userPredictions.compareWith")
|
|
7464
7464
|
}
|
|
7465
7465
|
),
|
|
7466
|
-
/* @__PURE__ */ e(
|
|
7467
|
-
|
|
7466
|
+
/* @__PURE__ */ e(wr, { initial: !1, children: B && /* @__PURE__ */ e(
|
|
7467
|
+
Ir.div,
|
|
7468
7468
|
{
|
|
7469
7469
|
initial: { height: 0, opacity: 0 },
|
|
7470
7470
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -7477,7 +7477,7 @@ function xi({
|
|
|
7477
7477
|
children: W.matches.map((D) => {
|
|
7478
7478
|
var H;
|
|
7479
7479
|
return /* @__PURE__ */ e(
|
|
7480
|
-
|
|
7480
|
+
fi,
|
|
7481
7481
|
{
|
|
7482
7482
|
match: D,
|
|
7483
7483
|
compareMode: !w && P.has(W.round),
|
|
@@ -7556,7 +7556,7 @@ function yo({ name: t, avatarUrl: o, size: l, ring: n }) {
|
|
|
7556
7556
|
}
|
|
7557
7557
|
);
|
|
7558
7558
|
}
|
|
7559
|
-
const
|
|
7559
|
+
const gi = ({
|
|
7560
7560
|
h2h: t,
|
|
7561
7561
|
selfName: o,
|
|
7562
7562
|
selfAvatar: l,
|
|
@@ -7792,17 +7792,17 @@ const hi = ({
|
|
|
7792
7792
|
}));
|
|
7793
7793
|
}, [t, o]), { template: l, loading: c, error: i };
|
|
7794
7794
|
};
|
|
7795
|
-
function
|
|
7795
|
+
function Zo(t) {
|
|
7796
7796
|
if (!t) return null;
|
|
7797
7797
|
const l = String(t).split(":");
|
|
7798
7798
|
if (l.length !== 2) return null;
|
|
7799
7799
|
const n = parseInt(l[0] ?? "0", 10), c = parseInt(l[1] ?? "0", 10);
|
|
7800
7800
|
return isNaN(n) || isNaN(c) ? null : { home: n, away: c };
|
|
7801
7801
|
}
|
|
7802
|
-
function
|
|
7802
|
+
function Qo(t) {
|
|
7803
7803
|
return t === "CORRECT" ? "correct" : t === "PARTIALLY_CORRECT" ? "partial" : t === "INCORRECT" ? "incorrect" : "pending";
|
|
7804
7804
|
}
|
|
7805
|
-
function
|
|
7805
|
+
function yi(t, o) {
|
|
7806
7806
|
if (!t) return { kickoff: "", dateLabel: "" };
|
|
7807
7807
|
try {
|
|
7808
7808
|
const l = new Date(t), n = l.toLocaleTimeString(o, {
|
|
@@ -7822,10 +7822,10 @@ function Mt(t) {
|
|
|
7822
7822
|
const o = new Date(t), l = o.getUTCDay(), n = l === 0 ? 6 : l - 1, c = new Date(o);
|
|
7823
7823
|
return c.setUTCDate(o.getUTCDate() - n), c.toISOString().substring(0, 10);
|
|
7824
7824
|
}
|
|
7825
|
-
function
|
|
7825
|
+
function er(t, o) {
|
|
7826
7826
|
return /^\d{4}-\d{2}-\d{2}$/.test(t) ? (/* @__PURE__ */ new Date(t + "T00:00:00Z")).toLocaleDateString(o, { month: "short", day: "numeric" }) : t;
|
|
7827
7827
|
}
|
|
7828
|
-
function
|
|
7828
|
+
function bi(t, o, l = [], n, c) {
|
|
7829
7829
|
const s = [], i = new Map(l.map((a) => [a.id, a])), d = (a) => {
|
|
7830
7830
|
if (!a) return null;
|
|
7831
7831
|
const x = new Date(a).getTime();
|
|
@@ -7839,10 +7839,10 @@ function yi(t, o, l = [], n, c) {
|
|
|
7839
7839
|
const x = ((v = a.predictionModel) == null ? void 0 : v.fixtures) ?? [], h = ((b = a.predictionModel) == null ? void 0 : b.groupId) || null, u = (($ = (k = x[0]) == null ? void 0 : k.matchModel) == null ? void 0 : $.kickoffAt) ?? null;
|
|
7840
7840
|
let m = h ? i.get(h) ?? null : null;
|
|
7841
7841
|
m || (m = d(u));
|
|
7842
|
-
const f = (m == null ? void 0 : m.id) ?? h ?? (u ? Mt(u) : "unknown"), y = (m == null ? void 0 : m.name) ?? (u ?
|
|
7842
|
+
const f = (m == null ? void 0 : m.id) ?? h ?? (u ? Mt(u) : "unknown"), y = (m == null ? void 0 : m.name) ?? (u ? er(Mt(u), n) : "—"), g = String(f).split("").reduce((C, I) => C * 31 + I.charCodeAt(0) >>> 0, 0);
|
|
7843
7843
|
x.forEach((C) => {
|
|
7844
7844
|
var D, H, O, N, V, E, M, U, ee, te, fe, Y, Z, de, oe, ne, Re, je, Q, he, ge, Ce, G, ce, ke, Ve, We, ve, $e, Ne, Xe, Pe, Oe, qe, Ze, Qe, _e, Je, X;
|
|
7845
|
-
const I = C.matchId ?? ((D = C.matchModel) == null ? void 0 : D.id) ?? String(Math.random()), w = `${a.predictionId}::${I}`, L =
|
|
7845
|
+
const I = C.matchId ?? ((D = C.matchModel) == null ? void 0 : D.id) ?? String(Math.random()), w = `${a.predictionId}::${I}`, L = Zo((H = C.prediction) == null ? void 0 : H.value), R = Qo((O = C.result) == null ? void 0 : O.outcome), P = R !== "pending", z = ((E = (V = (N = C.matchModel) == null ? void 0 : N.scores) == null ? void 0 : V.ftScore) == null ? void 0 : E.homeGoals) ?? null, j = ((ee = (U = (M = C.matchModel) == null ? void 0 : M.scores) == null ? void 0 : U.ftScore) == null ? void 0 : ee.awayGoals) ?? null, F = P && z != null && j != null ? { home: z, away: j } : null, A = ((te = C.matchModel) == null ? void 0 : te.kickoffAt) ?? null, { kickoff: W, dateLabel: B } = yi(A, n);
|
|
7846
7846
|
s.push({
|
|
7847
7847
|
id: w,
|
|
7848
7848
|
matchId: I,
|
|
@@ -7873,22 +7873,22 @@ function yi(t, o, l = [], n, c) {
|
|
|
7873
7873
|
});
|
|
7874
7874
|
}), s;
|
|
7875
7875
|
}
|
|
7876
|
-
function
|
|
7876
|
+
function Si(t) {
|
|
7877
7877
|
const o = /* @__PURE__ */ new Map();
|
|
7878
7878
|
return t.forEach((l) => {
|
|
7879
7879
|
var c;
|
|
7880
7880
|
(((c = l.predictionModel) == null ? void 0 : c.fixtures) ?? []).forEach((s) => {
|
|
7881
7881
|
var a, x, h, u;
|
|
7882
|
-
const i = s.matchId ?? ((a = s.matchModel) == null ? void 0 : a.id), d =
|
|
7882
|
+
const i = s.matchId ?? ((a = s.matchModel) == null ? void 0 : a.id), d = Zo((x = s.prediction) == null ? void 0 : x.value);
|
|
7883
7883
|
i && d && o.set(i, {
|
|
7884
7884
|
...d,
|
|
7885
7885
|
points: ((h = s.result) == null ? void 0 : h.points) ?? null,
|
|
7886
|
-
outcome:
|
|
7886
|
+
outcome: Qo((u = s.result) == null ? void 0 : u.outcome)
|
|
7887
7887
|
});
|
|
7888
7888
|
});
|
|
7889
7889
|
}), o;
|
|
7890
7890
|
}
|
|
7891
|
-
function
|
|
7891
|
+
function Ci(t) {
|
|
7892
7892
|
const o = /* @__PURE__ */ new Map();
|
|
7893
7893
|
return t.forEach((l) => {
|
|
7894
7894
|
if (!l.played) return;
|
|
@@ -7899,7 +7899,7 @@ function Si(t) {
|
|
|
7899
7899
|
correct: 0,
|
|
7900
7900
|
partial: 0,
|
|
7901
7901
|
incorrect: 0
|
|
7902
|
-
}, c = l.points != null ? l.points : l.prediction && l.result ?
|
|
7902
|
+
}, c = l.points != null ? l.points : l.prediction && l.result ? Ii(l.prediction, l.result) : 0;
|
|
7903
7903
|
o.set(l.round, {
|
|
7904
7904
|
...n,
|
|
7905
7905
|
pts: n.pts + c,
|
|
@@ -7909,8 +7909,8 @@ function Si(t) {
|
|
|
7909
7909
|
});
|
|
7910
7910
|
}), [...o.values()].sort((l, n) => l.round - n.round);
|
|
7911
7911
|
}
|
|
7912
|
-
function
|
|
7913
|
-
const o =
|
|
7912
|
+
function ki(t) {
|
|
7913
|
+
const o = Ci(t), l = o.reduce(
|
|
7914
7914
|
(u, m) => ({
|
|
7915
7915
|
correct: u.correct + m.correct,
|
|
7916
7916
|
partial: u.partial + m.partial,
|
|
@@ -7934,7 +7934,7 @@ function Ci(t) {
|
|
|
7934
7934
|
avgPts: h
|
|
7935
7935
|
};
|
|
7936
7936
|
}
|
|
7937
|
-
function
|
|
7937
|
+
function vi(t) {
|
|
7938
7938
|
const o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
7939
7939
|
t.forEach((i) => {
|
|
7940
7940
|
if (!i.played) return;
|
|
@@ -7947,7 +7947,7 @@ function ki(t) {
|
|
|
7947
7947
|
i > a ? n++ : a > i ? c++ : s++;
|
|
7948
7948
|
}), { selfBetter: n, theyBetter: c, tied: s };
|
|
7949
7949
|
}
|
|
7950
|
-
function
|
|
7950
|
+
function wi(t) {
|
|
7951
7951
|
const o = t.filter(
|
|
7952
7952
|
(y) => y.played && y.selfPrediction != null && y.selfOutcome != null && y.selfOutcome !== "pending"
|
|
7953
7953
|
), l = o.filter((y) => y.selfOutcome === "correct").length, n = o.filter((y) => y.selfOutcome === "partial").length, c = o.length, s = c > 0 ? Math.round((l + n * 0.4) / c * 100) : 0, i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
@@ -7969,12 +7969,12 @@ function vi(t) {
|
|
|
7969
7969
|
const h = i.size > 0 ? Math.max(...i.values()) : 0, u = o.reduce((y, g) => y + (g.selfPoints ?? 0), 0), m = o.length > 0 ? u / o.length : 0, f = t.filter((y) => y.selfPrediction != null).length;
|
|
7970
7970
|
return { accuracy: s, streak: x, bestRoundPts: h, avgPts: m, total: f };
|
|
7971
7971
|
}
|
|
7972
|
-
function
|
|
7972
|
+
function Ii(t, o) {
|
|
7973
7973
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
7974
7974
|
const l = (n, c) => n > c ? "H" : n < c ? "A" : "D";
|
|
7975
7975
|
return l(t.home, t.away) === l(o.home, o.away) ? 2 : 0;
|
|
7976
7976
|
}
|
|
7977
|
-
function
|
|
7977
|
+
function $i(t, o = 900) {
|
|
7978
7978
|
const [l, n] = T(0);
|
|
7979
7979
|
return le(() => {
|
|
7980
7980
|
let c, s = null;
|
|
@@ -7986,7 +7986,7 @@ function Ii(t, o = 900) {
|
|
|
7986
7986
|
return c = requestAnimationFrame(i), () => cancelAnimationFrame(c);
|
|
7987
7987
|
}, [t, o]), l;
|
|
7988
7988
|
}
|
|
7989
|
-
function
|
|
7989
|
+
function Li({
|
|
7990
7990
|
name: t,
|
|
7991
7991
|
avatarUrl: o,
|
|
7992
7992
|
size: l
|
|
@@ -8025,7 +8025,7 @@ function $i({
|
|
|
8025
8025
|
}
|
|
8026
8026
|
);
|
|
8027
8027
|
}
|
|
8028
|
-
const
|
|
8028
|
+
const zi = ({
|
|
8029
8029
|
open: t,
|
|
8030
8030
|
onClose: o,
|
|
8031
8031
|
leagueId: l,
|
|
@@ -8044,7 +8044,7 @@ const Li = ({
|
|
|
8044
8044
|
}) => {
|
|
8045
8045
|
var rt, tt, ro, no, io, so, ao, lo;
|
|
8046
8046
|
const { t: g } = Ie("common"), v = ae(), b = re(), k = me(), $ = ue(), C = Lo(), { shadowRootElement: I, language: w } = ft(xt), { sdk: L, useSearchTeamData: R } = ot(), { template: P } = oo(n, L), [z, j] = T(/* @__PURE__ */ new Map()), F = ((tt = (rt = v.palette) == null ? void 0 : rt.primary) == null ? void 0 : tt.plainColor) ?? "#1A77D2", A = ((no = (ro = v.palette) == null ? void 0 : ro.success) == null ? void 0 : no.plainColor) ?? "#4CAF50", W = ((so = (io = v.palette) == null ? void 0 : io.warning) == null ? void 0 : so.plainColor) ?? "#DC6803", B = ((lo = (ao = v.palette) == null ? void 0 : ao.danger) == null ? void 0 : lo.plainColor) ?? "#F44336", D = v.textPrimary ?? "#212121", H = v.textSecondary ?? "#757575", O = v.textTertiary ?? v.textSecondary ?? "#9E9E9E", N = v.surface ?? "#FFFFFF", V = v.surfaceVariant ?? "#F5F5F5", E = v.outlineEnabledBorder ?? "#E0E0E0", M = `${E}88`, [U, ee] = T(/* @__PURE__ */ new Map()), [te, fe] = T([]), [Y, Z] = T(!1), [de, oe] = T("all"), [ne, Re] = T("profile"), [je, Q] = T(!1), [he, ge] = T(0), [Ce, G] = T(!1), [ce, ke] = T(!1), Ve = Te(null), We = Te(null), ve = pe(
|
|
8047
|
-
() =>
|
|
8047
|
+
() => bi(
|
|
8048
8048
|
te,
|
|
8049
8049
|
U,
|
|
8050
8050
|
(P == null ? void 0 : P.groups) ?? [],
|
|
@@ -8163,7 +8163,7 @@ const Li = ({
|
|
|
8163
8163
|
He.filter((Ue) => Ue.profileId === s)
|
|
8164
8164
|
), De = !$e && u ? Le(
|
|
8165
8165
|
He.filter((Ue) => Ue.profileId === u)
|
|
8166
|
-
) : Me, Ke =
|
|
8166
|
+
) : Me, Ke = Si(De);
|
|
8167
8167
|
fe(Me), ee(Ke);
|
|
8168
8168
|
} finally {
|
|
8169
8169
|
Z(!1);
|
|
@@ -8187,12 +8187,12 @@ const Li = ({
|
|
|
8187
8187
|
}, Le = /* @__PURE__ */ new Map();
|
|
8188
8188
|
return te.forEach((Ye) => {
|
|
8189
8189
|
var ct, dt, St, Ct, kt, vt;
|
|
8190
|
-
const He = ((ct = Ye.predictionModel) == null ? void 0 : ct.groupId) || null, Me = ((kt = (Ct = (St = (dt = Ye.predictionModel) == null ? void 0 : dt.fixtures) == null ? void 0 : St[0]) == null ? void 0 : Ct.matchModel) == null ? void 0 : kt.kickoffAt) ?? null, De = ye(He, Me), Ke = (De == null ? void 0 : De.id) ?? (Me ? Mt(Me) : null), Ue = (De == null ? void 0 : De.name) ?? (Me ?
|
|
8190
|
+
const He = ((ct = Ye.predictionModel) == null ? void 0 : ct.groupId) || null, Me = ((kt = (Ct = (St = (dt = Ye.predictionModel) == null ? void 0 : dt.fixtures) == null ? void 0 : St[0]) == null ? void 0 : Ct.matchModel) == null ? void 0 : kt.kickoffAt) ?? null, De = ye(He, Me), Ke = (De == null ? void 0 : De.id) ?? (Me ? Mt(Me) : null), Ue = (De == null ? void 0 : De.name) ?? (Me ? er(Mt(Me), w ?? void 0) : null);
|
|
8191
8191
|
if (!Ke || !Ue) return;
|
|
8192
8192
|
const at = ((vt = Ye.predictionModel) == null ? void 0 : vt.points) ?? 0, nt = Le.get(Ke);
|
|
8193
8193
|
Le.set(Ke, { points: ((nt == null ? void 0 : nt.points) ?? 0) + at, label: Ue });
|
|
8194
8194
|
}), [...Le.values()].slice(-5);
|
|
8195
|
-
}, [te, P, w]), _e = pe(() =>
|
|
8195
|
+
}, [te, P, w]), _e = pe(() => ki(ve), [ve]), Je = pe(() => $e || U.size === 0 ? null : vi(ve), [ve, U, $e]), X = pe(() => $e ? null : wi(ve), [ve, $e]), _ = pe(() => [...ve].filter((J) => J.played).slice(-5), [ve]), K = pe(() => $e ? [] : _.map((J) => {
|
|
8196
8196
|
const ye = J.selfPrediction;
|
|
8197
8197
|
return !ye || !J.result ? {
|
|
8198
8198
|
outcome: "pending",
|
|
@@ -8240,7 +8240,7 @@ const Li = ({
|
|
|
8240
8240
|
(Ye, He) => (He.kickoffIso ?? "") > (Ye.kickoffIso ?? "") ? 1 : (He.kickoffIso ?? "") < (Ye.kickoffIso ?? "") ? -1 : 0
|
|
8241
8241
|
)
|
|
8242
8242
|
}));
|
|
8243
|
-
}, [Ee]), xe =
|
|
8243
|
+
}, [Ee]), xe = $i(x, 1100), Se = [
|
|
8244
8244
|
{ id: "all", label: g("predictor.userPredictions.allFilter") },
|
|
8245
8245
|
{ id: "correct", label: g("predictor.userPredictions.correctFilter") },
|
|
8246
8246
|
{ id: "partial", label: g("predictor.userPredictions.partialFilter") },
|
|
@@ -8338,7 +8338,7 @@ const Li = ({
|
|
|
8338
8338
|
},
|
|
8339
8339
|
children: [
|
|
8340
8340
|
/* @__PURE__ */ e(
|
|
8341
|
-
|
|
8341
|
+
Li,
|
|
8342
8342
|
{
|
|
8343
8343
|
name: i,
|
|
8344
8344
|
id: s,
|
|
@@ -8541,7 +8541,7 @@ const Li = ({
|
|
|
8541
8541
|
}
|
|
8542
8542
|
),
|
|
8543
8543
|
/* @__PURE__ */ e(r, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
8544
|
-
|
|
8544
|
+
ii,
|
|
8545
8545
|
{
|
|
8546
8546
|
rounds: Qe,
|
|
8547
8547
|
transparent: !0,
|
|
@@ -8552,7 +8552,7 @@ const Li = ({
|
|
|
8552
8552
|
}
|
|
8553
8553
|
),
|
|
8554
8554
|
/* @__PURE__ */ e(r, { sx: { mx: b.md }, children: /* @__PURE__ */ e(
|
|
8555
|
-
|
|
8555
|
+
ai,
|
|
8556
8556
|
{
|
|
8557
8557
|
loading: Y,
|
|
8558
8558
|
formMatches: _,
|
|
@@ -8578,7 +8578,7 @@ const Li = ({
|
|
|
8578
8578
|
}
|
|
8579
8579
|
) }),
|
|
8580
8580
|
!$e && Je && /* @__PURE__ */ e(
|
|
8581
|
-
|
|
8581
|
+
gi,
|
|
8582
8582
|
{
|
|
8583
8583
|
h2h: Je,
|
|
8584
8584
|
selfName: m ?? g("predictor.userPredictions.you"),
|
|
@@ -8591,7 +8591,7 @@ const Li = ({
|
|
|
8591
8591
|
)
|
|
8592
8592
|
] }),
|
|
8593
8593
|
ne === "statistics" && /* @__PURE__ */ e(
|
|
8594
|
-
|
|
8594
|
+
li,
|
|
8595
8595
|
{
|
|
8596
8596
|
loading: Y,
|
|
8597
8597
|
accuracy: _e.accuracy,
|
|
@@ -8621,7 +8621,7 @@ const Li = ({
|
|
|
8621
8621
|
),
|
|
8622
8622
|
ne === "predictions" && /* @__PURE__ */ p(ze, { children: [
|
|
8623
8623
|
/* @__PURE__ */ e(
|
|
8624
|
-
|
|
8624
|
+
ci,
|
|
8625
8625
|
{
|
|
8626
8626
|
filters: Se,
|
|
8627
8627
|
counts: ie,
|
|
@@ -8642,7 +8642,7 @@ const Li = ({
|
|
|
8642
8642
|
}
|
|
8643
8643
|
),
|
|
8644
8644
|
/* @__PURE__ */ e(
|
|
8645
|
-
|
|
8645
|
+
hi,
|
|
8646
8646
|
{
|
|
8647
8647
|
groups: Ae,
|
|
8648
8648
|
loading: Y,
|
|
@@ -8782,7 +8782,7 @@ const Li = ({
|
|
|
8782
8782
|
)
|
|
8783
8783
|
}
|
|
8784
8784
|
);
|
|
8785
|
-
},
|
|
8785
|
+
}, Ri = ({
|
|
8786
8786
|
leagueId: t,
|
|
8787
8787
|
templateId: o,
|
|
8788
8788
|
leagueName: l,
|
|
@@ -9319,7 +9319,7 @@ const Li = ({
|
|
|
9319
9319
|
] });
|
|
9320
9320
|
})(),
|
|
9321
9321
|
/* @__PURE__ */ e(
|
|
9322
|
-
|
|
9322
|
+
zi,
|
|
9323
9323
|
{
|
|
9324
9324
|
open: R !== null,
|
|
9325
9325
|
onClose: () => P(null),
|
|
@@ -9339,7 +9339,7 @@ const Li = ({
|
|
|
9339
9339
|
}
|
|
9340
9340
|
)
|
|
9341
9341
|
] });
|
|
9342
|
-
},
|
|
9342
|
+
}, Fi = ({
|
|
9343
9343
|
league: t,
|
|
9344
9344
|
leagueDetail: o,
|
|
9345
9345
|
loading: l,
|
|
@@ -9440,7 +9440,7 @@ const Li = ({
|
|
|
9440
9440
|
},
|
|
9441
9441
|
"&:active": { transform: "scale(0.92)" }
|
|
9442
9442
|
},
|
|
9443
|
-
children: /* @__PURE__ */ e(
|
|
9443
|
+
children: /* @__PURE__ */ e(zr, { sx: { fontSize: 15 } })
|
|
9444
9444
|
}
|
|
9445
9445
|
),
|
|
9446
9446
|
/* @__PURE__ */ e(
|
|
@@ -9490,7 +9490,7 @@ const Li = ({
|
|
|
9490
9490
|
"&:hover": { backgroundColor: $ },
|
|
9491
9491
|
"&:active": { transform: "scale(0.92)" }
|
|
9492
9492
|
},
|
|
9493
|
-
children: /* @__PURE__ */ e(
|
|
9493
|
+
children: /* @__PURE__ */ e(Rr, { sx: { fontSize: 15 } })
|
|
9494
9494
|
}
|
|
9495
9495
|
)
|
|
9496
9496
|
}
|
|
@@ -9761,7 +9761,7 @@ const Li = ({
|
|
|
9761
9761
|
py: "5px"
|
|
9762
9762
|
},
|
|
9763
9763
|
children: [
|
|
9764
|
-
/* @__PURE__ */ e(
|
|
9764
|
+
/* @__PURE__ */ e(Fr, { sx: { fontSize: 12, color: C } }),
|
|
9765
9765
|
/* @__PURE__ */ p(
|
|
9766
9766
|
S,
|
|
9767
9767
|
{
|
|
@@ -9806,7 +9806,7 @@ const Li = ({
|
|
|
9806
9806
|
},
|
|
9807
9807
|
children: [
|
|
9808
9808
|
/* @__PURE__ */ e(
|
|
9809
|
-
|
|
9809
|
+
Tr,
|
|
9810
9810
|
{
|
|
9811
9811
|
sx: { fontSize: 14, color: b, flexShrink: 0, opacity: 0.7 }
|
|
9812
9812
|
}
|
|
@@ -9878,7 +9878,7 @@ const Li = ({
|
|
|
9878
9878
|
borderColor: I ? C : b
|
|
9879
9879
|
}
|
|
9880
9880
|
},
|
|
9881
|
-
children: I ? /* @__PURE__ */ e(Ao, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(
|
|
9881
|
+
children: I ? /* @__PURE__ */ e(Ao, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(Wr, { sx: { fontSize: 15 } })
|
|
9882
9882
|
}
|
|
9883
9883
|
)
|
|
9884
9884
|
]
|
|
@@ -9887,7 +9887,7 @@ const Li = ({
|
|
|
9887
9887
|
]
|
|
9888
9888
|
}
|
|
9889
9889
|
);
|
|
9890
|
-
},
|
|
9890
|
+
}, Ti = be.memo(Fi), Wi = ({
|
|
9891
9891
|
sdk: t,
|
|
9892
9892
|
leagueId: o,
|
|
9893
9893
|
existingMemberIds: l,
|
|
@@ -9977,7 +9977,7 @@ const Li = ({
|
|
|
9977
9977
|
borderBottom: `1px solid ${a.outlineEnabledBorder}`
|
|
9978
9978
|
},
|
|
9979
9979
|
children: [
|
|
9980
|
-
/* @__PURE__ */ e(
|
|
9980
|
+
/* @__PURE__ */ e(Pr, { sx: { fontSize: 16, color: m } }),
|
|
9981
9981
|
/* @__PURE__ */ e(
|
|
9982
9982
|
S,
|
|
9983
9983
|
{
|
|
@@ -10106,7 +10106,7 @@ const Li = ({
|
|
|
10106
10106
|
ml: x["3xs"],
|
|
10107
10107
|
flexShrink: 0
|
|
10108
10108
|
},
|
|
10109
|
-
children: /* @__PURE__ */ e(
|
|
10109
|
+
children: /* @__PURE__ */ e(Mo, { sx: { fontSize: 11 } })
|
|
10110
10110
|
}
|
|
10111
10111
|
)
|
|
10112
10112
|
]
|
|
@@ -10395,7 +10395,7 @@ const Li = ({
|
|
|
10395
10395
|
/* @__PURE__ */ e(
|
|
10396
10396
|
we,
|
|
10397
10397
|
{
|
|
10398
|
-
startDecorator: $ ? void 0 : /* @__PURE__ */ e(
|
|
10398
|
+
startDecorator: $ ? void 0 : /* @__PURE__ */ e(Er, { sx: { fontSize: 14 } }),
|
|
10399
10399
|
loading: $,
|
|
10400
10400
|
disabled: b.length === 0,
|
|
10401
10401
|
onClick: V,
|
|
@@ -10420,7 +10420,7 @@ const Li = ({
|
|
|
10420
10420
|
]
|
|
10421
10421
|
}
|
|
10422
10422
|
) : null;
|
|
10423
|
-
},
|
|
10423
|
+
}, Pi = be.memo(Wi), Ei = ({ checked: t, onChange: o, primaryColor: l }) => /* @__PURE__ */ e(
|
|
10424
10424
|
r,
|
|
10425
10425
|
{
|
|
10426
10426
|
component: "button",
|
|
@@ -10460,7 +10460,7 @@ const Li = ({
|
|
|
10460
10460
|
}
|
|
10461
10461
|
)
|
|
10462
10462
|
}
|
|
10463
|
-
),
|
|
10463
|
+
), Ai = ({
|
|
10464
10464
|
open: t,
|
|
10465
10465
|
onClose: o,
|
|
10466
10466
|
sdk: l,
|
|
@@ -10586,7 +10586,7 @@ const Li = ({
|
|
|
10586
10586
|
}
|
|
10587
10587
|
),
|
|
10588
10588
|
/* @__PURE__ */ e(
|
|
10589
|
-
|
|
10589
|
+
Bo,
|
|
10590
10590
|
{
|
|
10591
10591
|
value: b,
|
|
10592
10592
|
onChange: (E) => k(E.target.value),
|
|
@@ -10694,7 +10694,7 @@ const Li = ({
|
|
|
10694
10694
|
)
|
|
10695
10695
|
] }),
|
|
10696
10696
|
/* @__PURE__ */ e(
|
|
10697
|
-
|
|
10697
|
+
Ei,
|
|
10698
10698
|
{
|
|
10699
10699
|
checked: I,
|
|
10700
10700
|
onChange: w,
|
|
@@ -10758,7 +10758,7 @@ const Li = ({
|
|
|
10758
10758
|
]
|
|
10759
10759
|
}
|
|
10760
10760
|
);
|
|
10761
|
-
},
|
|
10761
|
+
}, Di = be.memo(Ai), Mi = ({
|
|
10762
10762
|
open: t,
|
|
10763
10763
|
onClose: o,
|
|
10764
10764
|
sdk: l,
|
|
@@ -10986,7 +10986,7 @@ const Li = ({
|
|
|
10986
10986
|
]
|
|
10987
10987
|
}
|
|
10988
10988
|
);
|
|
10989
|
-
},
|
|
10989
|
+
}, Bi = be.memo(Mi), Hi = ({
|
|
10990
10990
|
targetId: t,
|
|
10991
10991
|
memberProfiles: o,
|
|
10992
10992
|
sdk: l,
|
|
@@ -11184,13 +11184,13 @@ const Li = ({
|
|
|
11184
11184
|
] })
|
|
11185
11185
|
}
|
|
11186
11186
|
);
|
|
11187
|
-
},
|
|
11187
|
+
}, ji = be.memo(Hi), Ni = (t, o) => {
|
|
11188
11188
|
const l = o.get(t);
|
|
11189
11189
|
return (l == null ? void 0 : l.nickname) ?? (l == null ? void 0 : l.name) ?? t.slice(0, 8);
|
|
11190
|
-
},
|
|
11190
|
+
}, Vi = (t) => {
|
|
11191
11191
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
11192
11192
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
11193
|
-
},
|
|
11193
|
+
}, Oi = ({
|
|
11194
11194
|
leagueDetail: t,
|
|
11195
11195
|
memberProfiles: o,
|
|
11196
11196
|
loading: l,
|
|
@@ -11273,7 +11273,7 @@ const Li = ({
|
|
|
11273
11273
|
rowGap: m.xs
|
|
11274
11274
|
},
|
|
11275
11275
|
children: [
|
|
11276
|
-
/* @__PURE__ */ e(
|
|
11276
|
+
/* @__PURE__ */ e(Ar, { sx: { fontSize: 16, color: g } }),
|
|
11277
11277
|
/* @__PURE__ */ e(
|
|
11278
11278
|
S,
|
|
11279
11279
|
{
|
|
@@ -11359,7 +11359,7 @@ const Li = ({
|
|
|
11359
11359
|
))
|
|
11360
11360
|
}
|
|
11361
11361
|
) : /* @__PURE__ */ e(r, { sx: { maxHeight: "380px", overflowY: "auto" }, children: z.length > 0 ? z.map((N, V) => {
|
|
11362
|
-
const E = N === n, M = ((t == null ? void 0 : t.administrators) ?? []).includes(N), U = o.get(N), ee =
|
|
11362
|
+
const E = N === n, M = ((t == null ? void 0 : t.administrators) ?? []).includes(N), U = o.get(N), ee = Ni(N, o), te = Vi(ee), fe = c && !E;
|
|
11363
11363
|
return /* @__PURE__ */ p(
|
|
11364
11364
|
r,
|
|
11365
11365
|
{
|
|
@@ -11606,7 +11606,7 @@ const Li = ({
|
|
|
11606
11606
|
},
|
|
11607
11607
|
p: 0
|
|
11608
11608
|
},
|
|
11609
|
-
children: /* @__PURE__ */ e(
|
|
11609
|
+
children: /* @__PURE__ */ e(Dr, { sx: { fontSize: 15 } })
|
|
11610
11610
|
}
|
|
11611
11611
|
)
|
|
11612
11612
|
]
|
|
@@ -11647,7 +11647,7 @@ const Li = ({
|
|
|
11647
11647
|
}
|
|
11648
11648
|
),
|
|
11649
11649
|
/* @__PURE__ */ e(
|
|
11650
|
-
|
|
11650
|
+
ji,
|
|
11651
11651
|
{
|
|
11652
11652
|
targetId: w,
|
|
11653
11653
|
memberProfiles: o,
|
|
@@ -11659,13 +11659,13 @@ const Li = ({
|
|
|
11659
11659
|
}
|
|
11660
11660
|
)
|
|
11661
11661
|
] });
|
|
11662
|
-
},
|
|
11662
|
+
}, _i = be.memo(Oi), Yi = (t, o) => {
|
|
11663
11663
|
const l = o.get(t);
|
|
11664
11664
|
return (l == null ? void 0 : l.nickname) ?? (l == null ? void 0 : l.name) ?? t.slice(0, 8);
|
|
11665
|
-
},
|
|
11665
|
+
}, Ui = (t) => {
|
|
11666
11666
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
11667
11667
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
11668
|
-
},
|
|
11668
|
+
}, Xi = ({
|
|
11669
11669
|
pendingInviteIds: t,
|
|
11670
11670
|
memberProfiles: o,
|
|
11671
11671
|
isAdmin: l,
|
|
@@ -11763,7 +11763,7 @@ const Li = ({
|
|
|
11763
11763
|
),
|
|
11764
11764
|
t.map((L, R) => {
|
|
11765
11765
|
var A, W, B, D, H, O;
|
|
11766
|
-
const P = y === L, z = o.get(L), j =
|
|
11766
|
+
const P = y === L, z = o.get(L), j = Yi(L, o), F = Ui(j);
|
|
11767
11767
|
return /* @__PURE__ */ p(
|
|
11768
11768
|
r,
|
|
11769
11769
|
{
|
|
@@ -12004,7 +12004,7 @@ const Li = ({
|
|
|
12004
12004
|
animation: "spin 0.7s linear infinite"
|
|
12005
12005
|
}
|
|
12006
12006
|
}
|
|
12007
|
-
) : /* @__PURE__ */ e(
|
|
12007
|
+
) : /* @__PURE__ */ e(Mr, { sx: { fontSize: 18, color: f } })
|
|
12008
12008
|
}
|
|
12009
12009
|
)
|
|
12010
12010
|
] })
|
|
@@ -12016,7 +12016,7 @@ const Li = ({
|
|
|
12016
12016
|
]
|
|
12017
12017
|
}
|
|
12018
12018
|
);
|
|
12019
|
-
},
|
|
12019
|
+
}, Ki = be.memo(Xi), Gi = sr(() => import("./chunks/index-sJ-SFBJM.js")), qi = ({
|
|
12020
12020
|
league: t,
|
|
12021
12021
|
onBack: o,
|
|
12022
12022
|
onLeagueLeft: l,
|
|
@@ -12239,7 +12239,7 @@ const Li = ({
|
|
|
12239
12239
|
},
|
|
12240
12240
|
children: [
|
|
12241
12241
|
/* @__PURE__ */ e(
|
|
12242
|
-
|
|
12242
|
+
ri,
|
|
12243
12243
|
{
|
|
12244
12244
|
leagues: x ?? [],
|
|
12245
12245
|
activeId: t.id,
|
|
@@ -12249,7 +12249,7 @@ const Li = ({
|
|
|
12249
12249
|
}
|
|
12250
12250
|
),
|
|
12251
12251
|
/* @__PURE__ */ e(
|
|
12252
|
-
|
|
12252
|
+
Ti,
|
|
12253
12253
|
{
|
|
12254
12254
|
league: t,
|
|
12255
12255
|
leagueDetail: w,
|
|
@@ -12348,7 +12348,7 @@ const Li = ({
|
|
|
12348
12348
|
{
|
|
12349
12349
|
size: "sm",
|
|
12350
12350
|
variant: "plain",
|
|
12351
|
-
startDecorator: /* @__PURE__ */ e(
|
|
12351
|
+
startDecorator: /* @__PURE__ */ e(Do, { sx: { fontSize: 14 } }),
|
|
12352
12352
|
onClick: () => {
|
|
12353
12353
|
B(!1), A(!0);
|
|
12354
12354
|
},
|
|
@@ -12366,7 +12366,7 @@ const Li = ({
|
|
|
12366
12366
|
}
|
|
12367
12367
|
),
|
|
12368
12368
|
D === "discussion" && /* @__PURE__ */ e(r, { sx: { p: f.md, backgroundColor: m.surface }, children: /* @__PURE__ */ e(
|
|
12369
|
-
|
|
12369
|
+
ar,
|
|
12370
12370
|
{
|
|
12371
12371
|
fallback: /* @__PURE__ */ e(
|
|
12372
12372
|
r,
|
|
@@ -12393,7 +12393,7 @@ const Li = ({
|
|
|
12393
12393
|
}
|
|
12394
12394
|
),
|
|
12395
12395
|
children: /* @__PURE__ */ e(
|
|
12396
|
-
|
|
12396
|
+
Gi,
|
|
12397
12397
|
{
|
|
12398
12398
|
entityId: t.id,
|
|
12399
12399
|
sdk: v,
|
|
@@ -12407,7 +12407,7 @@ const Li = ({
|
|
|
12407
12407
|
) }),
|
|
12408
12408
|
D === "members" && /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: f.sm }, children: [
|
|
12409
12409
|
/* @__PURE__ */ e(
|
|
12410
|
-
|
|
12410
|
+
_i,
|
|
12411
12411
|
{
|
|
12412
12412
|
leagueDetail: w,
|
|
12413
12413
|
memberProfiles: fe,
|
|
@@ -12422,7 +12422,7 @@ const Li = ({
|
|
|
12422
12422
|
}
|
|
12423
12423
|
),
|
|
12424
12424
|
/* @__PURE__ */ e(
|
|
12425
|
-
|
|
12425
|
+
Ki,
|
|
12426
12426
|
{
|
|
12427
12427
|
pendingInviteIds: ee,
|
|
12428
12428
|
memberProfiles: fe,
|
|
@@ -12434,7 +12434,7 @@ const Li = ({
|
|
|
12434
12434
|
}
|
|
12435
12435
|
),
|
|
12436
12436
|
Xe && /* @__PURE__ */ e(
|
|
12437
|
-
|
|
12437
|
+
Pi,
|
|
12438
12438
|
{
|
|
12439
12439
|
sdk: v,
|
|
12440
12440
|
leagueId: t.id,
|
|
@@ -12447,7 +12447,7 @@ const Li = ({
|
|
|
12447
12447
|
)
|
|
12448
12448
|
] }),
|
|
12449
12449
|
D === "standings" && /* @__PURE__ */ e(
|
|
12450
|
-
|
|
12450
|
+
Ri,
|
|
12451
12451
|
{
|
|
12452
12452
|
leagueId: t.id,
|
|
12453
12453
|
templateId: t.templateId,
|
|
@@ -12457,7 +12457,7 @@ const Li = ({
|
|
|
12457
12457
|
}
|
|
12458
12458
|
),
|
|
12459
12459
|
/* @__PURE__ */ e(
|
|
12460
|
-
|
|
12460
|
+
Di,
|
|
12461
12461
|
{
|
|
12462
12462
|
open: Z,
|
|
12463
12463
|
onClose: () => de(!1),
|
|
@@ -12560,7 +12560,7 @@ const Li = ({
|
|
|
12560
12560
|
}
|
|
12561
12561
|
),
|
|
12562
12562
|
/* @__PURE__ */ e(
|
|
12563
|
-
|
|
12563
|
+
Bi,
|
|
12564
12564
|
{
|
|
12565
12565
|
open: O === "delete",
|
|
12566
12566
|
onClose: () => N(null),
|
|
@@ -12580,13 +12580,13 @@ const Li = ({
|
|
|
12580
12580
|
]
|
|
12581
12581
|
}
|
|
12582
12582
|
);
|
|
12583
|
-
},
|
|
12583
|
+
}, Ji = be.memo(qi), it = 8, Vt = () => {
|
|
12584
12584
|
const t = "abcdefghijklmnopqrstuvwxyz0123456789", o = Date.now().toString(36).slice(-3);
|
|
12585
12585
|
return (Array.from(
|
|
12586
12586
|
{ length: 5 },
|
|
12587
12587
|
() => t[Math.floor(Math.random() * t.length)]
|
|
12588
12588
|
).join("") + o).slice(0, 8);
|
|
12589
|
-
},
|
|
12589
|
+
}, Zi = (t) => {
|
|
12590
12590
|
const o = {}, l = t.split(/,\s*/);
|
|
12591
12591
|
for (const n of l) {
|
|
12592
12592
|
const c = n.indexOf(":");
|
|
@@ -12698,7 +12698,7 @@ const Li = ({
|
|
|
12698
12698
|
})
|
|
12699
12699
|
}
|
|
12700
12700
|
);
|
|
12701
|
-
},
|
|
12701
|
+
}, Qi = ({
|
|
12702
12702
|
open: t,
|
|
12703
12703
|
onClose: o,
|
|
12704
12704
|
title: l,
|
|
@@ -12815,7 +12815,7 @@ const Li = ({
|
|
|
12815
12815
|
children: t
|
|
12816
12816
|
}
|
|
12817
12817
|
) : null;
|
|
12818
|
-
},
|
|
12818
|
+
}, es = ({
|
|
12819
12819
|
checked: t,
|
|
12820
12820
|
onChange: o,
|
|
12821
12821
|
primaryColor: l
|
|
@@ -12862,7 +12862,7 @@ const Li = ({
|
|
|
12862
12862
|
}
|
|
12863
12863
|
)
|
|
12864
12864
|
}
|
|
12865
|
-
),
|
|
12865
|
+
), ts = ({
|
|
12866
12866
|
onLeagueCreated: t,
|
|
12867
12867
|
onLeagueJoined: o
|
|
12868
12868
|
}) => {
|
|
@@ -12914,7 +12914,7 @@ const Li = ({
|
|
|
12914
12914
|
message: l("predictor.privateLeagues.createSuccessMessage") || "Your private league is ready. Share the invitation code with friends."
|
|
12915
12915
|
});
|
|
12916
12916
|
} catch (G) {
|
|
12917
|
-
W(
|
|
12917
|
+
W(Zi(Ge(G, d)));
|
|
12918
12918
|
} finally {
|
|
12919
12919
|
z(!1);
|
|
12920
12920
|
}
|
|
@@ -12939,7 +12939,7 @@ const Li = ({
|
|
|
12939
12939
|
message: l("predictor.privateLeagues.joinSuccessMessage") || `You've successfully joined ${G.leagueModel.name}.`
|
|
12940
12940
|
});
|
|
12941
12941
|
} catch (G) {
|
|
12942
|
-
const { code: ce } =
|
|
12942
|
+
const { code: ce } = Kr(G, d), ke = ce >= 400 && ce < 500;
|
|
12943
12943
|
D(
|
|
12944
12944
|
ke ? l("predictor.privateLeagues.joinErrorInvalidCode") || "The code you entered is incorrect." : Ge(G, d)
|
|
12945
12945
|
);
|
|
@@ -13037,7 +13037,7 @@ const Li = ({
|
|
|
13037
13037
|
)
|
|
13038
13038
|
] }),
|
|
13039
13039
|
/* @__PURE__ */ e(
|
|
13040
|
-
|
|
13040
|
+
Br,
|
|
13041
13041
|
{
|
|
13042
13042
|
sx: { fontSize: 18, color: n.textSecondary, flexShrink: 0 }
|
|
13043
13043
|
}
|
|
@@ -13349,7 +13349,7 @@ const Li = ({
|
|
|
13349
13349
|
] })
|
|
13350
13350
|
),
|
|
13351
13351
|
/* @__PURE__ */ p(
|
|
13352
|
-
|
|
13352
|
+
Qi,
|
|
13353
13353
|
{
|
|
13354
13354
|
open: x,
|
|
13355
13355
|
onClose: () => !P && h(!1),
|
|
@@ -13421,7 +13421,7 @@ const Li = ({
|
|
|
13421
13421
|
" *"
|
|
13422
13422
|
] }),
|
|
13423
13423
|
/* @__PURE__ */ e(
|
|
13424
|
-
|
|
13424
|
+
Bo,
|
|
13425
13425
|
{
|
|
13426
13426
|
value: f,
|
|
13427
13427
|
onChange: (G) => {
|
|
@@ -13495,7 +13495,7 @@ const Li = ({
|
|
|
13495
13495
|
transition: "all 0.15s",
|
|
13496
13496
|
"&:hover": { color: V, borderColor: V }
|
|
13497
13497
|
},
|
|
13498
|
-
children: I ? /* @__PURE__ */ e(Ao, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(
|
|
13498
|
+
children: I ? /* @__PURE__ */ e(Ao, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(Hr, { sx: { fontSize: 16 } })
|
|
13499
13499
|
}
|
|
13500
13500
|
),
|
|
13501
13501
|
/* @__PURE__ */ e(
|
|
@@ -13523,7 +13523,7 @@ const Li = ({
|
|
|
13523
13523
|
"&:hover": { color: V, borderColor: V },
|
|
13524
13524
|
transition: "all 0.15s"
|
|
13525
13525
|
},
|
|
13526
|
-
children: /* @__PURE__ */ e(
|
|
13526
|
+
children: /* @__PURE__ */ e(Do, { sx: { fontSize: 16 } })
|
|
13527
13527
|
}
|
|
13528
13528
|
)
|
|
13529
13529
|
] }),
|
|
@@ -13592,7 +13592,7 @@ const Li = ({
|
|
|
13592
13592
|
)
|
|
13593
13593
|
] }),
|
|
13594
13594
|
/* @__PURE__ */ e(
|
|
13595
|
-
|
|
13595
|
+
es,
|
|
13596
13596
|
{
|
|
13597
13597
|
checked: g,
|
|
13598
13598
|
onChange: v,
|
|
@@ -13687,7 +13687,7 @@ const Li = ({
|
|
|
13687
13687
|
}
|
|
13688
13688
|
)
|
|
13689
13689
|
] });
|
|
13690
|
-
},
|
|
13690
|
+
}, os = ({
|
|
13691
13691
|
open: t,
|
|
13692
13692
|
onClose: o,
|
|
13693
13693
|
title: l,
|
|
@@ -13803,7 +13803,7 @@ const Li = ({
|
|
|
13803
13803
|
)
|
|
13804
13804
|
}
|
|
13805
13805
|
) : null;
|
|
13806
|
-
},
|
|
13806
|
+
}, rs = (t) => {
|
|
13807
13807
|
var Xe, Pe, Oe, qe, Ze, Qe, _e, Je;
|
|
13808
13808
|
const { t: o } = Ie("common"), l = ae(), n = re(), c = me(), s = ue(), { sdk: i, userIsLoggedIn: d, signInCTA: a, entityId: x } = ot(), h = ((Pe = (Xe = l.palette) == null ? void 0 : Xe.primary) == null ? void 0 : Pe.plainColor) ?? "#1A77D2", u = ((qe = (Oe = l.palette) == null ? void 0 : Oe.primary) == null ? void 0 : qe.onPrimary) ?? "#fff", m = (Qe = (Ze = l.palette) == null ? void 0 : Ze.primary) == null ? void 0 : Qe.primaryButtonGradient, f = ((Je = (_e = l.palette) == null ? void 0 : _e.danger) == null ? void 0 : Je.plainColor) ?? "#F44336", [y, g] = T([]), [v, b] = T(!0), [k, $] = T(null), [C, I] = T(
|
|
13809
13809
|
null
|
|
@@ -14070,7 +14070,7 @@ const Li = ({
|
|
|
14070
14070
|
}
|
|
14071
14071
|
) : /* @__PURE__ */ e(S, { level: "body-sm", sx: { fontFamily: s.primary, fontSize: "0.875em", color: l.textSecondary }, children: o("predictor.privateLeagues.signInPrompt") }), _ = [
|
|
14072
14072
|
{
|
|
14073
|
-
icon: /* @__PURE__ */ e(
|
|
14073
|
+
icon: /* @__PURE__ */ e(jr, { sx: { fontSize: 24, color: h } }),
|
|
14074
14074
|
title: o("predictor.privateLeagues.featureCreateTitle"),
|
|
14075
14075
|
desc: o("predictor.privateLeagues.featureCreateDesc")
|
|
14076
14076
|
},
|
|
@@ -14086,7 +14086,7 @@ const Li = ({
|
|
|
14086
14086
|
}
|
|
14087
14087
|
], K = [
|
|
14088
14088
|
{
|
|
14089
|
-
icon: /* @__PURE__ */ e(
|
|
14089
|
+
icon: /* @__PURE__ */ e(Nr, { sx: { fontSize: 18, color: h, flexShrink: 0, mt: n["3xs"] } }),
|
|
14090
14090
|
text: o("predictor.privateLeagues.benefitCreateUnlimited")
|
|
14091
14091
|
},
|
|
14092
14092
|
{
|
|
@@ -14098,7 +14098,7 @@ const Li = ({
|
|
|
14098
14098
|
text: o("predictor.privateLeagues.benefitCompeteForTop")
|
|
14099
14099
|
},
|
|
14100
14100
|
{
|
|
14101
|
-
icon: /* @__PURE__ */ e(
|
|
14101
|
+
icon: /* @__PURE__ */ e(Vr, { sx: { fontSize: 18, color: h, flexShrink: 0, mt: n["3xs"] } }),
|
|
14102
14102
|
text: o("predictor.privateLeagues.benefitDiscussPredictions")
|
|
14103
14103
|
}
|
|
14104
14104
|
];
|
|
@@ -14117,7 +14117,7 @@ const Li = ({
|
|
|
14117
14117
|
alignItems: "center",
|
|
14118
14118
|
justifyContent: "center"
|
|
14119
14119
|
},
|
|
14120
|
-
children: /* @__PURE__ */ e(
|
|
14120
|
+
children: /* @__PURE__ */ e(Or, { sx: { fontSize: 32, color: h } })
|
|
14121
14121
|
}
|
|
14122
14122
|
),
|
|
14123
14123
|
/* @__PURE__ */ e(
|
|
@@ -14262,7 +14262,7 @@ const Li = ({
|
|
|
14262
14262
|
}
|
|
14263
14263
|
return C ? /* @__PURE__ */ p(ze, { children: [
|
|
14264
14264
|
/* @__PURE__ */ e(
|
|
14265
|
-
|
|
14265
|
+
Ji,
|
|
14266
14266
|
{
|
|
14267
14267
|
league: C,
|
|
14268
14268
|
onBack: ne,
|
|
@@ -14287,7 +14287,7 @@ const Li = ({
|
|
|
14287
14287
|
)
|
|
14288
14288
|
] }) : /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: n.md }, children: [
|
|
14289
14289
|
/* @__PURE__ */ e(
|
|
14290
|
-
|
|
14290
|
+
ts,
|
|
14291
14291
|
{
|
|
14292
14292
|
onLeagueCreated: de,
|
|
14293
14293
|
onLeagueJoined: oe
|
|
@@ -14296,7 +14296,7 @@ const Li = ({
|
|
|
14296
14296
|
w.length > 0 && /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: n.sm }, children: [
|
|
14297
14297
|
/* @__PURE__ */ p(r, { sx: { display: "flex", alignItems: "center", gap: n.xs }, children: [
|
|
14298
14298
|
/* @__PURE__ */ e(
|
|
14299
|
-
|
|
14299
|
+
_r,
|
|
14300
14300
|
{
|
|
14301
14301
|
sx: { fontSize: 18, color: h }
|
|
14302
14302
|
}
|
|
@@ -14555,7 +14555,7 @@ const Li = ({
|
|
|
14555
14555
|
}
|
|
14556
14556
|
)
|
|
14557
14557
|
] }),
|
|
14558
|
-
v ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: n.xs }, children: Array.from({ length: 5 }, (X, _) => /* @__PURE__ */ e(
|
|
14558
|
+
v ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: n.xs }, children: Array.from({ length: 5 }, (X, _) => /* @__PURE__ */ e(ti, { index: _ }, _)) }) : y.length === 0 ? /* @__PURE__ */ p(
|
|
14559
14559
|
r,
|
|
14560
14560
|
{
|
|
14561
14561
|
sx: {
|
|
@@ -14630,7 +14630,7 @@ const Li = ({
|
|
|
14630
14630
|
opacity: 0
|
|
14631
14631
|
},
|
|
14632
14632
|
children: /* @__PURE__ */ e(
|
|
14633
|
-
|
|
14633
|
+
Qn,
|
|
14634
14634
|
{
|
|
14635
14635
|
league: X,
|
|
14636
14636
|
onClick: Ve,
|
|
@@ -14650,7 +14650,7 @@ const Li = ({
|
|
|
14650
14650
|
}
|
|
14651
14651
|
),
|
|
14652
14652
|
/* @__PURE__ */ p(
|
|
14653
|
-
|
|
14653
|
+
os,
|
|
14654
14654
|
{
|
|
14655
14655
|
open: !!D,
|
|
14656
14656
|
onClose: $e,
|
|
@@ -14873,7 +14873,7 @@ const Li = ({
|
|
|
14873
14873
|
)
|
|
14874
14874
|
] });
|
|
14875
14875
|
};
|
|
14876
|
-
function
|
|
14876
|
+
function ns(t) {
|
|
14877
14877
|
if (!t) return "";
|
|
14878
14878
|
const o = document.createElement("template");
|
|
14879
14879
|
o.innerHTML = t;
|
|
@@ -14905,8 +14905,8 @@ function rs(t) {
|
|
|
14905
14905
|
};
|
|
14906
14906
|
return n(o.content), o.innerHTML;
|
|
14907
14907
|
}
|
|
14908
|
-
function
|
|
14909
|
-
const o =
|
|
14908
|
+
function tr(t) {
|
|
14909
|
+
const o = ns(t), l = document.createElement("template");
|
|
14910
14910
|
l.innerHTML = o;
|
|
14911
14911
|
const n = l.content, c = (f) => f.toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g, "").replace(/\s+/g, "-").replace(/[^\p{L}\p{N}-]+/gu, "").replace(/^-+|-+$/g, "").slice(0, 60) || "sec", s = [], i = /^\s*(?:ČASŤ|ČÁST|Část|PART)?\s*(\d+)[.:\s ]+(.+?)\s*$/i, d = (f, y, g) => {
|
|
14912
14912
|
const v = `sec-${y}-${c(g)}`, b = document.createElement("h2");
|
|
@@ -14993,7 +14993,7 @@ function Gt(t, o, l) {
|
|
|
14993
14993
|
}), c;
|
|
14994
14994
|
}
|
|
14995
14995
|
const So = "rules-tab-prose-styles";
|
|
14996
|
-
function
|
|
14996
|
+
function is(t) {
|
|
14997
14997
|
let o = document.getElementById(
|
|
14998
14998
|
So
|
|
14999
14999
|
);
|
|
@@ -15049,7 +15049,7 @@ function ns(t) {
|
|
|
15049
15049
|
.rules-tab-scrollbar::-webkit-scrollbar-thumb:hover { background: ${t.surfaceVariant}; }
|
|
15050
15050
|
`;
|
|
15051
15051
|
}
|
|
15052
|
-
const
|
|
15052
|
+
const ss = ({ t }) => /* @__PURE__ */ e(
|
|
15053
15053
|
r,
|
|
15054
15054
|
{
|
|
15055
15055
|
sx: {
|
|
@@ -15071,7 +15071,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15071
15071
|
l
|
|
15072
15072
|
))
|
|
15073
15073
|
}
|
|
15074
|
-
),
|
|
15074
|
+
), as = be.memo(ss), ls = ({
|
|
15075
15075
|
query: t,
|
|
15076
15076
|
setQuery: o,
|
|
15077
15077
|
hits: l = [],
|
|
@@ -15123,7 +15123,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15123
15123
|
onClick: () => c(-1),
|
|
15124
15124
|
"aria-label": "previous",
|
|
15125
15125
|
sx: { fontSize: "1em" },
|
|
15126
|
-
children: /* @__PURE__ */ e(
|
|
15126
|
+
children: /* @__PURE__ */ e(Ho, { sx: { fontSize: 14 } })
|
|
15127
15127
|
}
|
|
15128
15128
|
),
|
|
15129
15129
|
/* @__PURE__ */ e(
|
|
@@ -15135,7 +15135,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15135
15135
|
onClick: () => c(1),
|
|
15136
15136
|
"aria-label": "next",
|
|
15137
15137
|
sx: { fontSize: "1em" },
|
|
15138
|
-
children: /* @__PURE__ */ e(
|
|
15138
|
+
children: /* @__PURE__ */ e(jo, { sx: { fontSize: 14 } })
|
|
15139
15139
|
}
|
|
15140
15140
|
)
|
|
15141
15141
|
] }),
|
|
@@ -15148,7 +15148,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15148
15148
|
onClick: () => o(""),
|
|
15149
15149
|
"aria-label": "clear",
|
|
15150
15150
|
sx: { fontSize: "1em" },
|
|
15151
|
-
children: /* @__PURE__ */ e(
|
|
15151
|
+
children: /* @__PURE__ */ e(Mo, { sx: { fontSize: 14 } })
|
|
15152
15152
|
}
|
|
15153
15153
|
)
|
|
15154
15154
|
]
|
|
@@ -15165,9 +15165,9 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15165
15165
|
}
|
|
15166
15166
|
}
|
|
15167
15167
|
);
|
|
15168
|
-
},
|
|
15168
|
+
}, or = be.memo(ls), cs = ({ rawHtml: t, t: o, tl: l }) => {
|
|
15169
15169
|
var k;
|
|
15170
|
-
const n = re(), { html: c, sections: s } = pe(() =>
|
|
15170
|
+
const n = re(), { html: c, sections: s } = pe(() => tr(t), [t]), i = Te(null), [d, a] = T((k = s[0]) == null ? void 0 : k.id), [x, h] = T(""), [u, m] = T([]), [f, y] = T(0), g = pe(
|
|
15171
15171
|
() => ({ bg: o.warnSoftBg, color: o.warnColor }),
|
|
15172
15172
|
[o.warnSoftBg, o.warnColor]
|
|
15173
15173
|
);
|
|
@@ -15232,7 +15232,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15232
15232
|
borderBottom: `1px solid ${o.border}`
|
|
15233
15233
|
},
|
|
15234
15234
|
children: /* @__PURE__ */ e(r, { sx: { width: 280 }, children: /* @__PURE__ */ e(
|
|
15235
|
-
|
|
15235
|
+
or,
|
|
15236
15236
|
{
|
|
15237
15237
|
query: x,
|
|
15238
15238
|
setQuery: h,
|
|
@@ -15375,7 +15375,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15375
15375
|
)
|
|
15376
15376
|
] })
|
|
15377
15377
|
] });
|
|
15378
|
-
},
|
|
15378
|
+
}, ds = be.memo(cs), ps = ({
|
|
15379
15379
|
section: t,
|
|
15380
15380
|
dir: o,
|
|
15381
15381
|
onClick: l,
|
|
@@ -15417,7 +15417,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15417
15417
|
justifyContent: o === "prev" ? "flex-start" : "flex-end"
|
|
15418
15418
|
},
|
|
15419
15419
|
children: [
|
|
15420
|
-
o === "prev" && /* @__PURE__ */ e(
|
|
15420
|
+
o === "prev" && /* @__PURE__ */ e(Yr, { sx: { fontSize: 9, color: s.textSecondary } }),
|
|
15421
15421
|
/* @__PURE__ */ e(
|
|
15422
15422
|
S,
|
|
15423
15423
|
{
|
|
@@ -15432,7 +15432,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15432
15432
|
children: o === "prev" ? n : c
|
|
15433
15433
|
}
|
|
15434
15434
|
),
|
|
15435
|
-
o === "next" && /* @__PURE__ */ e(
|
|
15435
|
+
o === "next" && /* @__PURE__ */ e(Ur, { sx: { fontSize: 9, color: s.textSecondary } })
|
|
15436
15436
|
]
|
|
15437
15437
|
}
|
|
15438
15438
|
),
|
|
@@ -15455,9 +15455,9 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15455
15455
|
]
|
|
15456
15456
|
}
|
|
15457
15457
|
);
|
|
15458
|
-
}, Co = be.memo(
|
|
15458
|
+
}, Co = be.memo(ps), us = ({ rawHtml: t, t: o, tl: l }) => {
|
|
15459
15459
|
var L;
|
|
15460
|
-
const n = re(), { html: c } = pe(() =>
|
|
15460
|
+
const n = re(), { html: c } = pe(() => tr(t), [t]), s = pe(() => {
|
|
15461
15461
|
var j, F, A;
|
|
15462
15462
|
const R = document.createElement("template");
|
|
15463
15463
|
R.innerHTML = c;
|
|
@@ -15543,7 +15543,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15543
15543
|
flexShrink: 0
|
|
15544
15544
|
},
|
|
15545
15545
|
children: /* @__PURE__ */ e(
|
|
15546
|
-
|
|
15546
|
+
or,
|
|
15547
15547
|
{
|
|
15548
15548
|
query: a,
|
|
15549
15549
|
setQuery: x,
|
|
@@ -15690,7 +15690,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15690
15690
|
]
|
|
15691
15691
|
}
|
|
15692
15692
|
),
|
|
15693
|
-
/* @__PURE__ */ e(
|
|
15693
|
+
/* @__PURE__ */ e(en, { sx: { flex: 1 } }),
|
|
15694
15694
|
/* @__PURE__ */ p(
|
|
15695
15695
|
S,
|
|
15696
15696
|
{
|
|
@@ -15768,7 +15768,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15768
15768
|
}
|
|
15769
15769
|
)
|
|
15770
15770
|
] });
|
|
15771
|
-
},
|
|
15771
|
+
}, ms = be.memo(us), fs = ({ template: t, loading: o }) => {
|
|
15772
15772
|
const { t: l } = Ie("common"), n = ae(), c = ue(), s = re(), i = me(), d = Bt(), a = pe(
|
|
15773
15773
|
() => {
|
|
15774
15774
|
var x, h, u, m, f, y, g, v, b, k;
|
|
@@ -15800,8 +15800,8 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15800
15800
|
[n, c, s, i]
|
|
15801
15801
|
);
|
|
15802
15802
|
return le(() => {
|
|
15803
|
-
|
|
15804
|
-
}, [a]), o ? /* @__PURE__ */ e(
|
|
15803
|
+
is(a);
|
|
15804
|
+
}, [a]), o ? /* @__PURE__ */ e(as, { t: a }) : t != null && t.rules ? /* @__PURE__ */ e(
|
|
15805
15805
|
r,
|
|
15806
15806
|
{
|
|
15807
15807
|
sx: {
|
|
@@ -15812,7 +15812,7 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15812
15812
|
fontFamily: a.fontPrimary,
|
|
15813
15813
|
minHeight: 0
|
|
15814
15814
|
},
|
|
15815
|
-
children: d ? /* @__PURE__ */ e(
|
|
15815
|
+
children: d ? /* @__PURE__ */ e(ms, { rawHtml: t.rules, t: a, tl: l }) : /* @__PURE__ */ e(ds, { rawHtml: t.rules, t: a, tl: l })
|
|
15816
15816
|
}
|
|
15817
15817
|
) : /* @__PURE__ */ e(
|
|
15818
15818
|
r,
|
|
@@ -15839,8 +15839,8 @@ const is = ({ t }) => /* @__PURE__ */ e(
|
|
|
15839
15839
|
)
|
|
15840
15840
|
}
|
|
15841
15841
|
);
|
|
15842
|
-
},
|
|
15843
|
-
function
|
|
15842
|
+
}, xs = be.memo(fs);
|
|
15843
|
+
function hs(t) {
|
|
15844
15844
|
if (!t) return "";
|
|
15845
15845
|
const o = document.createElement("template");
|
|
15846
15846
|
o.innerHTML = t;
|
|
@@ -15872,10 +15872,10 @@ function xs(t) {
|
|
|
15872
15872
|
};
|
|
15873
15873
|
return n(o.content), o.innerHTML;
|
|
15874
15874
|
}
|
|
15875
|
-
function
|
|
15875
|
+
function gs(t) {
|
|
15876
15876
|
return /<[a-zA-Z]/.test(t);
|
|
15877
15877
|
}
|
|
15878
|
-
const
|
|
15878
|
+
const ys = ({ template: t, loading: o }) => {
|
|
15879
15879
|
var f, y, g;
|
|
15880
15880
|
const { t: l } = Ie("common"), n = ae(), c = re(), s = ue(), i = me(), d = n.textPrimary, a = n.textSecondary ?? n.textPrimary, x = n.surfaceVariant, h = n.outlineEnabledBorder;
|
|
15881
15881
|
if (o)
|
|
@@ -15944,7 +15944,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
15944
15944
|
)
|
|
15945
15945
|
]
|
|
15946
15946
|
}
|
|
15947
|
-
) : !m || !
|
|
15947
|
+
) : !m || !gs(m) ? /* @__PURE__ */ p(
|
|
15948
15948
|
r,
|
|
15949
15949
|
{
|
|
15950
15950
|
sx: {
|
|
@@ -15957,7 +15957,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
15957
15957
|
},
|
|
15958
15958
|
children: [
|
|
15959
15959
|
/* @__PURE__ */ e(
|
|
15960
|
-
|
|
15960
|
+
Xr,
|
|
15961
15961
|
{
|
|
15962
15962
|
sx: { fontSize: "3em", color: h }
|
|
15963
15963
|
}
|
|
@@ -15986,10 +15986,10 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
15986
15986
|
"& img": { maxWidth: "100%", height: "auto" },
|
|
15987
15987
|
"& a": { color: ((g = (y = n.palette) == null ? void 0 : y.primary) == null ? void 0 : g.plainColor) ?? "#1A77D2" }
|
|
15988
15988
|
},
|
|
15989
|
-
dangerouslySetInnerHTML: { __html:
|
|
15989
|
+
dangerouslySetInnerHTML: { __html: hs(m) }
|
|
15990
15990
|
}
|
|
15991
15991
|
);
|
|
15992
|
-
},
|
|
15992
|
+
}, rr = [
|
|
15993
15993
|
"play",
|
|
15994
15994
|
"private-leagues",
|
|
15995
15995
|
"leaderboard",
|
|
@@ -15998,8 +15998,8 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
15998
15998
|
], ko = () => {
|
|
15999
15999
|
if (typeof window > "u") return null;
|
|
16000
16000
|
const t = window.location.hash.replace("#", "");
|
|
16001
|
-
return
|
|
16002
|
-
},
|
|
16001
|
+
return rr.includes(t) ? t : null;
|
|
16002
|
+
}, bs = (t) => {
|
|
16003
16003
|
const {
|
|
16004
16004
|
entityId: o,
|
|
16005
16005
|
sdk: l,
|
|
@@ -16014,7 +16014,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16014
16014
|
matchCardBgImageUrl: u,
|
|
16015
16015
|
betslip: m,
|
|
16016
16016
|
useSearchTeamData: f
|
|
16017
|
-
} = t, { t: y } = Ie("common"), g = ae(), v = ue(), b = re(), k = me(), $ = d && d.length > 0 ? d :
|
|
16017
|
+
} = t, { t: y } = Ie("common"), g = ae(), v = ue(), b = re(), k = me(), $ = d && d.length > 0 ? d : rr, [C, I] = T(
|
|
16018
16018
|
() => ko() ?? $[0]
|
|
16019
16019
|
), { template: w, loading: L } = oo(o, l);
|
|
16020
16020
|
le(() => {
|
|
@@ -16036,7 +16036,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16036
16036
|
switch (C) {
|
|
16037
16037
|
case "play":
|
|
16038
16038
|
return /* @__PURE__ */ e(
|
|
16039
|
-
|
|
16039
|
+
Xn,
|
|
16040
16040
|
{
|
|
16041
16041
|
template: w,
|
|
16042
16042
|
loading: L,
|
|
@@ -16046,19 +16046,19 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16046
16046
|
}
|
|
16047
16047
|
);
|
|
16048
16048
|
case "leaderboard":
|
|
16049
|
-
return /* @__PURE__ */ e(
|
|
16049
|
+
return /* @__PURE__ */ e(qn, {});
|
|
16050
16050
|
case "private-leagues":
|
|
16051
|
-
return /* @__PURE__ */ e(
|
|
16051
|
+
return /* @__PURE__ */ e(rs, { template: w });
|
|
16052
16052
|
case "rules":
|
|
16053
|
-
return /* @__PURE__ */ e(
|
|
16053
|
+
return /* @__PURE__ */ e(xs, { template: w, loading: L });
|
|
16054
16054
|
case "prizes":
|
|
16055
|
-
return /* @__PURE__ */ e(
|
|
16055
|
+
return /* @__PURE__ */ e(ys, { template: w, loading: L });
|
|
16056
16056
|
default:
|
|
16057
16057
|
return null;
|
|
16058
16058
|
}
|
|
16059
16059
|
};
|
|
16060
16060
|
return /* @__PURE__ */ e(
|
|
16061
|
-
|
|
16061
|
+
Vo,
|
|
16062
16062
|
{
|
|
16063
16063
|
entityId: o,
|
|
16064
16064
|
sdk: l,
|
|
@@ -16207,14 +16207,14 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16207
16207
|
)
|
|
16208
16208
|
}
|
|
16209
16209
|
);
|
|
16210
|
-
},
|
|
16210
|
+
}, Ss = (t) => {
|
|
16211
16211
|
const o = Date.now();
|
|
16212
16212
|
return t.filter(
|
|
16213
16213
|
(n) => n.status === "PENDING" && new Date(n.kickoffAt).getTime() >= o
|
|
16214
16214
|
).sort(
|
|
16215
16215
|
(n, c) => new Date(n.kickoffAt).getTime() - new Date(c.kickoffAt).getTime()
|
|
16216
16216
|
)[0] ?? null;
|
|
16217
|
-
},
|
|
16217
|
+
}, Cs = ({
|
|
16218
16218
|
entityId: t,
|
|
16219
16219
|
sdk: o,
|
|
16220
16220
|
language: l,
|
|
@@ -16235,7 +16235,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16235
16235
|
I = Yt(w);
|
|
16236
16236
|
} else {
|
|
16237
16237
|
const w = await o.loyalty.getTemplateMatches(t);
|
|
16238
|
-
I =
|
|
16238
|
+
I = Ss(w.map(Yt));
|
|
16239
16239
|
}
|
|
16240
16240
|
if (C) return;
|
|
16241
16241
|
if (I && s) {
|
|
@@ -16254,12 +16254,12 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16254
16254
|
if (d(I), I && n)
|
|
16255
16255
|
try {
|
|
16256
16256
|
const w = await Promise.all(
|
|
16257
|
-
|
|
16257
|
+
_o([I.id], Oo).map(
|
|
16258
16258
|
(L) => o.predictor.getMyPredictionsForMatches(L)
|
|
16259
16259
|
)
|
|
16260
16260
|
);
|
|
16261
16261
|
C || f(
|
|
16262
|
-
|
|
16262
|
+
Yo(w).get(I.id) ?? null
|
|
16263
16263
|
);
|
|
16264
16264
|
} catch {
|
|
16265
16265
|
}
|
|
@@ -16295,7 +16295,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16295
16295
|
matchOdds: i ? (($ = g.get(i.id)) == null ? void 0 : $[0]) ?? null : null,
|
|
16296
16296
|
oddsLoading: v
|
|
16297
16297
|
};
|
|
16298
|
-
},
|
|
16298
|
+
}, ks = ({ team: t }) => {
|
|
16299
16299
|
const o = ae(), l = ue(), n = re(), c = t.logo ?? null;
|
|
16300
16300
|
return /* @__PURE__ */ p(
|
|
16301
16301
|
r,
|
|
@@ -16364,7 +16364,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16364
16364
|
]
|
|
16365
16365
|
}
|
|
16366
16366
|
);
|
|
16367
|
-
}, vo = be.memo(
|
|
16367
|
+
}, vo = be.memo(ks), vs = ({
|
|
16368
16368
|
score: t,
|
|
16369
16369
|
editable: o,
|
|
16370
16370
|
onIncrement: l,
|
|
@@ -16409,7 +16409,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16409
16409
|
type: "button",
|
|
16410
16410
|
onClick: c ? void 0 : l,
|
|
16411
16411
|
sx: u(!1, c),
|
|
16412
|
-
children: /* @__PURE__ */ e(
|
|
16412
|
+
children: /* @__PURE__ */ e(Ho, { sx: { fontSize: "1.5em" } })
|
|
16413
16413
|
}
|
|
16414
16414
|
) : /* @__PURE__ */ e(r, { sx: { height: "1.5em" } }),
|
|
16415
16415
|
/* @__PURE__ */ e(
|
|
@@ -16443,13 +16443,13 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16443
16443
|
type: "button",
|
|
16444
16444
|
onClick: m ? void 0 : n,
|
|
16445
16445
|
sx: u(h, m),
|
|
16446
|
-
children: /* @__PURE__ */ e(
|
|
16446
|
+
children: /* @__PURE__ */ e(jo, { sx: { fontSize: "1.5em" } })
|
|
16447
16447
|
}
|
|
16448
16448
|
) : /* @__PURE__ */ e(r, { sx: { height: "1.5em" } })
|
|
16449
16449
|
]
|
|
16450
16450
|
}
|
|
16451
16451
|
);
|
|
16452
|
-
}, wo = be.memo(
|
|
16452
|
+
}, wo = be.memo(vs), ws = ({
|
|
16453
16453
|
match: t,
|
|
16454
16454
|
kickoffDate: o,
|
|
16455
16455
|
isLive: l,
|
|
@@ -16482,11 +16482,11 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16482
16482
|
const F = ae(), A = ue(), W = re(), B = zo().size;
|
|
16483
16483
|
return /* @__PURE__ */ p(r, { children: [
|
|
16484
16484
|
/* @__PURE__ */ e(
|
|
16485
|
-
|
|
16485
|
+
Ko,
|
|
16486
16486
|
{
|
|
16487
16487
|
kickoffDate: o,
|
|
16488
16488
|
rightContent: /* @__PURE__ */ e(
|
|
16489
|
-
|
|
16489
|
+
qo,
|
|
16490
16490
|
{
|
|
16491
16491
|
isLive: l,
|
|
16492
16492
|
isPast: n,
|
|
@@ -16567,7 +16567,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16567
16567
|
}
|
|
16568
16568
|
),
|
|
16569
16569
|
!n && /* @__PURE__ */ e(r, { sx: { mt: W.md }, children: /* @__PURE__ */ e(
|
|
16570
|
-
|
|
16570
|
+
Go,
|
|
16571
16571
|
{
|
|
16572
16572
|
oddsLoading: P,
|
|
16573
16573
|
odds: (z == null ? void 0 : z.odds) ?? [],
|
|
@@ -16576,7 +16576,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16576
16576
|
}
|
|
16577
16577
|
) })
|
|
16578
16578
|
] });
|
|
16579
|
-
},
|
|
16579
|
+
}, Is = be.memo(ws), Io = ({
|
|
16580
16580
|
label: t,
|
|
16581
16581
|
onClick: o,
|
|
16582
16582
|
loading: l = !1,
|
|
@@ -16641,7 +16641,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16641
16641
|
]
|
|
16642
16642
|
}
|
|
16643
16643
|
);
|
|
16644
|
-
},
|
|
16644
|
+
}, $s = 15 * 60 * 1e3, Ls = ({
|
|
16645
16645
|
embed: t,
|
|
16646
16646
|
template: o,
|
|
16647
16647
|
templateLoading: l,
|
|
@@ -16656,7 +16656,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16656
16656
|
defaultImagePlaceholderUrl: u
|
|
16657
16657
|
}) => {
|
|
16658
16658
|
var qe, Ze, Qe, _e, Je, X, _, K, ie, Ee, Ae;
|
|
16659
|
-
const { t: m } = Ie("common"), f = ae(), y = ue(), g = re(), v = me(), b = Bt(), { sdk: k, userIsLoggedIn: $, betslip: C } = ot(), { ensureConsents: I, modal: w } =
|
|
16659
|
+
const { t: m } = Ie("common"), f = ae(), y = ue(), g = re(), v = me(), b = Bt(), { sdk: k, userIsLoggedIn: $, betslip: C } = ot(), { ensureConsents: I, modal: w } = Uo(), [L, R] = T(!1), [P, z] = T(!1), j = q(
|
|
16660
16660
|
(xe, Se) => {
|
|
16661
16661
|
d(xe, Se), t != null && t.successMessage && R(!0);
|
|
16662
16662
|
},
|
|
@@ -16669,7 +16669,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16669
16669
|
), A = pe(
|
|
16670
16670
|
() => n ? new Date(n.kickoffAt) : null,
|
|
16671
16671
|
[n == null ? void 0 : n.kickoffAt]
|
|
16672
|
-
), W = (n == null ? void 0 : n.status) === "FINISHED", B = (n == null ? void 0 : n.status) === "LIVE", D = !!A && A < /* @__PURE__ */ new Date() && !!W, H = !!A && !W && (B || Date.now() >= A.getTime() -
|
|
16672
|
+
), W = (n == null ? void 0 : n.status) === "FINISHED", B = (n == null ? void 0 : n.status) === "LIVE", D = !!A && A < /* @__PURE__ */ new Date() && !!W, H = !!A && !W && (B || Date.now() >= A.getTime() - $s), O = (n == null ? void 0 : n.homeScore) ?? null, N = (n == null ? void 0 : n.awayScore) ?? null, {
|
|
16673
16673
|
scores: V,
|
|
16674
16674
|
isPredicted: E,
|
|
16675
16675
|
submit: M,
|
|
@@ -16680,7 +16680,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16680
16680
|
isDeleting: Y,
|
|
16681
16681
|
deleteError: Z,
|
|
16682
16682
|
setDeleteError: de
|
|
16683
|
-
} =
|
|
16683
|
+
} = Xo({
|
|
16684
16684
|
matchId: (n == null ? void 0 : n.id) ?? "",
|
|
16685
16685
|
sdk: k,
|
|
16686
16686
|
userIsLoggedIn: $,
|
|
@@ -16849,7 +16849,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16849
16849
|
children: m("predictor.play.noMatches")
|
|
16850
16850
|
}
|
|
16851
16851
|
) : /* @__PURE__ */ e(
|
|
16852
|
-
|
|
16852
|
+
Is,
|
|
16853
16853
|
{
|
|
16854
16854
|
match: n,
|
|
16855
16855
|
kickoffDate: A,
|
|
@@ -16933,7 +16933,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16933
16933
|
}
|
|
16934
16934
|
},
|
|
16935
16935
|
children: /* @__PURE__ */ e(
|
|
16936
|
-
|
|
16936
|
+
tn,
|
|
16937
16937
|
{
|
|
16938
16938
|
variant: "success",
|
|
16939
16939
|
title: t.successMessage.title,
|
|
@@ -16992,7 +16992,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
16992
16992
|
loading: ee,
|
|
16993
16993
|
errorMessage: te === "error" ? m("predictor.errors.submitFailed") : void 0
|
|
16994
16994
|
}
|
|
16995
|
-
) : /* @__PURE__ */ e(
|
|
16995
|
+
) : /* @__PURE__ */ e(Jo, {})
|
|
16996
16996
|
]
|
|
16997
16997
|
}
|
|
16998
16998
|
)
|
|
@@ -17003,7 +17003,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
17003
17003
|
)
|
|
17004
17004
|
}
|
|
17005
17005
|
);
|
|
17006
|
-
},
|
|
17006
|
+
}, zs = (t) => {
|
|
17007
17007
|
const {
|
|
17008
17008
|
entityId: o,
|
|
17009
17009
|
sdk: l,
|
|
@@ -17025,7 +17025,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
17025
17025
|
onPredictionDelete: $,
|
|
17026
17026
|
matchOdds: C,
|
|
17027
17027
|
oddsLoading: I
|
|
17028
|
-
} =
|
|
17028
|
+
} = Cs({
|
|
17029
17029
|
entityId: o,
|
|
17030
17030
|
sdk: l,
|
|
17031
17031
|
language: n,
|
|
@@ -17034,7 +17034,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
17034
17034
|
useSearchTeamData: h
|
|
17035
17035
|
});
|
|
17036
17036
|
return /* @__PURE__ */ e(
|
|
17037
|
-
|
|
17037
|
+
Vo,
|
|
17038
17038
|
{
|
|
17039
17039
|
entityId: o,
|
|
17040
17040
|
sdk: l,
|
|
@@ -17048,7 +17048,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
17048
17048
|
betslip: x,
|
|
17049
17049
|
useSearchTeamData: h,
|
|
17050
17050
|
children: /* @__PURE__ */ e(
|
|
17051
|
-
|
|
17051
|
+
Ls,
|
|
17052
17052
|
{
|
|
17053
17053
|
embed: u,
|
|
17054
17054
|
template: m,
|
|
@@ -17066,12 +17066,12 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
17066
17066
|
)
|
|
17067
17067
|
}
|
|
17068
17068
|
);
|
|
17069
|
-
},
|
|
17069
|
+
}, Rs = (t) => {
|
|
17070
17070
|
var o, l, n, c, s, i, d, a, x;
|
|
17071
17071
|
return /* @__PURE__ */ p(ze, { children: [
|
|
17072
|
-
/* @__PURE__ */ e(
|
|
17072
|
+
/* @__PURE__ */ e(cr, { packageName: "predictor", ...t, template: void 0, children: t.template === "embed" ? /* @__PURE__ */ e(zs, { ...t }) : /* @__PURE__ */ e(bs, { ...t }) }),
|
|
17073
17073
|
/* @__PURE__ */ e(
|
|
17074
|
-
|
|
17074
|
+
pr,
|
|
17075
17075
|
{
|
|
17076
17076
|
sdk: t.sdk,
|
|
17077
17077
|
language: t.language,
|
|
@@ -17087,7 +17087,7 @@ const gs = ({ template: t, loading: o }) => {
|
|
|
17087
17087
|
}
|
|
17088
17088
|
)
|
|
17089
17089
|
] });
|
|
17090
|
-
},
|
|
17090
|
+
}, na = Rs;
|
|
17091
17091
|
export {
|
|
17092
|
-
|
|
17092
|
+
na as Predictor
|
|
17093
17093
|
};
|