fansunited-frontend-components 0.0.89 → 0.0.91
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 +10 -10
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +7 -7
- package/CompetitionStatistics.js +5 -5
- package/CompetitorCard.js +10 -10
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +17 -17
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +251 -251
- package/List.js +15 -15
- package/MatchQuizPlay.js +1 -1
- package/Odds.js +3 -3
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +11 -11
- package/PlayerOfTheMatch.js +22 -22
- package/PollVote.js +1 -1
- package/Predictor.js +1 -1
- package/Standings.js +10 -10
- package/TopX.js +402 -400
- package/chunks/{AccessTime-C0zbWECY.js → AccessTime-BVP1qnmC.js} +1 -1
- package/chunks/{AlertMessage-CieUTNsw.js → AlertMessage-aNev3ob9.js} +6 -6
- package/chunks/{Avatar-5aOX2Vb1.js → Avatar-Ck9sDlUF.js} +3 -3
- package/chunks/{Button-3riWYmL7.js → Button-C5sVDXUr.js} +4 -4
- package/chunks/{Card-ByCnCChk.js → Card-DMO0MtFg.js} +3 -3
- package/chunks/{CardActions-b3pAJZRO.js → CardActions-CniskUBs.js} +6 -6
- package/chunks/{CardContent-CnyZ1WVy.js → CardContent-DSmkIh5e.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-cWHucFuB.js → ChanceGameEmbedVariant-C9U7q27r.js} +10 -10
- package/chunks/{CheckCircle-WUucf55H.js → CheckCircle-BLQUgEFO.js} +1 -1
- package/chunks/{Chip-BILKBLRO.js → Chip-CbmpDsTx.js} +4 -4
- package/chunks/{CircularProgress-Dfx_fE8L.js → CircularProgress-BCucLg2A.js} +2 -2
- package/chunks/{Close-C-YXDM7Y.js → Close-BJaeWPmO.js} +1 -1
- package/chunks/{Close-D1Qu6Zr7.js → Close-Bn_Gk4s2.js} +1 -1
- package/chunks/{CollectLeadForm-BfrhOCqn.js → CollectLeadForm-e59gRdao.js} +21 -21
- package/chunks/{ConsentsList-DkWpnlLW.js → ConsentsList-ByAN0_kp.js} +6 -6
- package/chunks/{DirectionScope-eDYFWvxN.js → DirectionScope-Ty03Pl0K.js} +1 -1
- package/chunks/{Divider-pZCe2d20.js → Divider-D-SATYZX.js} +3 -3
- package/chunks/{Edit-NHQMon6F.js → Edit-uzcXQ0W4.js} +4 -4
- package/chunks/{EmojiEvents-DXh-xemn.js → EmojiEvents-DzZMpyj0.js} +1 -1
- package/chunks/{FavoriteBorder-CQrHuIk5.js → FavoriteBorder-Dz8YRmah.js} +1 -1
- package/chunks/{FormControl-DttxxDyJ.js → FormControl-CApGuvy1.js} +4 -4
- package/chunks/{FormLabel-D3_mG4D1.js → FormLabel-BhUVGv0u.js} +3 -3
- package/chunks/{GlobalStyles-CafmeGDq.js → GlobalStyles-BiXuRSRs.js} +1 -1
- package/chunks/{InlineSpinner-DkC1XUc7.js → InlineSpinner-BIQuuKyA.js} +2 -2
- package/chunks/{Input-ksZwfsfA.js → Input-C1c9bTgf.js} +4 -4
- package/chunks/{KeyboardArrowDown-Ctf2n_n8.js → KeyboardArrowDown-BBL6SAyg.js} +1 -1
- package/chunks/{KeyboardArrowRight-CfETLrEt.js → KeyboardArrowRight-DQMFvDqL.js} +1 -1
- package/chunks/{Link-CjxMesIg.js → Link-IhyfKeZX.js} +3 -3
- package/chunks/{ListItemButton-O4Zqw3zP.js → ListItemButton-C6H1ykg-.js} +4 -4
- package/chunks/{ModalClose-Btz9Kn0q.js → ModalClose-COLCM3hQ.js} +6 -6
- package/chunks/{ModalDialog-BF_s4rug.js → ModalDialog-19Yt0pTv.js} +6 -6
- package/chunks/{NotFoundSkeleton-D2Yx2gZV.js → NotFoundSkeleton-B7aXpJX0.js} +2 -2
- package/chunks/{Notification-rNcLeEkz.js → Notification-DPPIzFpw.js} +7 -7
- package/chunks/{OddsSkeleton-C6M4oCTF.js → OddsSkeleton-BdKCmc4R.js} +3 -3
- package/chunks/{OddsStrip-XQfQiBhM.js → OddsStrip-c9Y8VgmW.js} +4 -4
- package/chunks/{OverlayScoreStateSkeleton-w9-f7MPj.js → OverlayScoreStateSkeleton-CGiMhlGz.js} +4 -4
- package/chunks/{OverlayScoreStateWrapperSkeleton-B9O-4AU_.js → OverlayScoreStateWrapperSkeleton-mzBPgf_P.js} +1 -1
- package/chunks/{OverlaySignInSkeleton-Clq-LJjf.js → OverlaySignInSkeleton-DnxRxCfU.js} +4 -4
- package/chunks/{OverlaySkeleton-yDtGLLaG.js → OverlaySkeleton-bXtFE1Y6.js} +9 -9
- package/chunks/{Person-DWyYenEx.js → Person-CuxlprBB.js} +1 -1
- package/chunks/{PersonOutline-DJJGMjkg.js → PersonOutline-BViWQgNV.js} +1 -1
- package/chunks/{PickOneOfX-BZ-IEEEH.js → PickOneOfX-DbBYeZnU.js} +3 -3
- package/chunks/{Popper-Wp7BQGU_.js → Popper-B-W5OzQt.js} +3 -3
- package/chunks/{Portal-Dw20M2LG.js → Portal-C1ku1V2Y.js} +2 -2
- package/chunks/{Portal-Beqgjlza.js → Portal-C49jCyHC.js} +1 -1
- package/chunks/{Predictor-BbQ-o3tU.js → Predictor-DGjo_dOB.js} +3643 -3294
- package/chunks/{PrizeCard-Cb1YuuYM.js → PrizeCard-BIJVHmYW.js} +240 -192
- package/chunks/{Search-BOtjWnG5.js → Search-RBBj-3Z1.js} +1 -1
- package/chunks/{Select-DXJCZ6D3.js → Select-Be-2TLJx.js} +7 -7
- package/chunks/{Sheet-MP2rgW4b.js → Sheet-DHMJRANx.js} +3 -3
- package/chunks/{SignInCta-DWtXHD9B.js → SignInCta-Bz6nl2c-.js} +3 -3
- package/chunks/{Spinner-pC2OM4AI.js → Spinner-DQytYdCL.js} +2 -2
- package/chunks/{SportsSoccer-C3JxFjui.js → SportsSoccer-Dwp9CkcQ.js} +1 -1
- package/chunks/{Stack-CU4pq5Q5.js → Stack-Dx-77BoB.js} +2 -2
- package/chunks/{StandardContentSkeleton-Qg1eXOB-.js → StandardContentSkeleton-DV_CkaNl.js} +1 -1
- package/chunks/{Table-hk72eRqw.js → Table-D3ou_zxz.js} +2 -2
- package/chunks/{Tabs-DiWLN-D7.js → Tabs-D32XKc8G.js} +5 -5
- package/chunks/{Textarea-BhxhPabe.js → Textarea-HrQcjIXY.js} +3 -3
- package/chunks/{TimerOutlined-CRwZ7isE.js → TimerOutlined-mHIHDBDv.js} +1 -1
- package/chunks/{Tooltip-D3L0qTul.js → Tooltip-iozKqko2.js} +5 -5
- package/chunks/{Typography-nBRgZwsp.js → Typography-CHHyHOvn.js} +1 -1
- package/chunks/{colorInversionUtils-BhmtNPM2.js → colorInversionUtils-CJrDu9ZF.js} +1 -1
- package/chunks/{createSvgIcon-C8SzTn0h.js → createSvgIcon-D7NSIoD-.js} +1 -1
- package/chunks/{createSvgIcon-y3WkUldr.js → createSvgIcon-DVhK14Wp.js} +2 -2
- package/chunks/{dividerClasses-B-2pg9aw.js → dividerClasses-CpWiK9X3.js} +1 -1
- package/chunks/{elementAcceptingRef-Bdcp531Z.js → elementAcceptingRef-B8Ay5UA0.js} +1 -1
- package/chunks/{formLabelClasses-CECx8x_t.js → formLabelClasses-Bb77PWNt.js} +1 -1
- package/chunks/{helpers-BX3cctTx.js → helpers-BjZ558HQ.js} +1 -1
- package/chunks/index-BKdbemPX.js +4 -0
- package/chunks/index-BL8osWuT.js +4 -0
- package/chunks/index-BXktLXqU.js +4 -0
- package/chunks/index-BoKBAjSl.js +4 -0
- package/chunks/index-DhEpZQT8.js +4 -0
- package/chunks/{index-DP3Xa63T.js → index-DzjRMnaE.js} +1 -1
- package/chunks/index-WsrzdqEQ.js +4 -0
- package/chunks/index-ibZpQ0KD.js +4 -0
- package/chunks/{main-DKeA0imc.js → main-BV-r09In.js} +22 -22
- package/chunks/{main-Cj_sNGwd.js → main-BgDvdmc8.js} +30 -30
- package/chunks/{main-DVStQO7c.js → main-CA5G2ZQX.js} +28 -28
- package/chunks/{main-B7xsd2jd.js → main-DSQ1vaFe.js} +34 -34
- package/chunks/{main-DZzxaZiR.js → main-D_Rq1xVm.js} +25 -25
- package/chunks/{main-Dh0w2gH9.js → main-DcPlB4Wk.js} +19 -19
- package/chunks/{main-BG-hwFMf.js → main-Ig2neK0P.js} +18 -18
- package/chunks/{main-CqifYDEd.js → main-bAzdlcP_.js} +3 -3
- package/chunks/{useButton-CbtwvfQQ.js → useButton-BdGcfaoz.js} +3 -3
- package/chunks/{useConsents-DdPK793X.js → useConsents-6ZATswQ4.js} +12 -12
- package/chunks/{useEventCallback-KK900PzE.js → useEventCallback-D-FE-RIP.js} +1 -1
- package/chunks/{useForwardedInput-Emz99PzK.js → useForwardedInput-DFaOgtZp.js} +2 -2
- package/chunks/{useImageVariant-DPC_XqjI.js → useImageVariant-B_dj28Qx.js} +1 -1
- package/chunks/{useParticipationDraft-DEWbYjqA.js → useParticipationDraft-BO1gUTVy.js} +6 -6
- package/chunks/{useSwitch-ZW00ibaC.js → useSwitch-DeOFp4Ck.js} +3 -3
- package/index.js +4 -4
- package/package.json +2 -2
- package/chunks/index-2ImPs9d7.js +0 -4
- package/chunks/index-CitKdUxn.js +0 -4
- package/chunks/index-CyKc-9u8.js +0 -4
- package/chunks/index-D7bJ5A4g.js +0 -4
- package/chunks/index-DWXxfmN5.js +0 -4
- package/chunks/index-DcTq5zsy.js +0 -4
- package/chunks/index-Ddsiaelf.js +0 -4
package/TopX.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as Ee } from "react/jsx-runtime";
|
|
2
2
|
import * as lt from "react";
|
|
3
3
|
import Pe, { createContext as on, useContext as rn, useState as E, useCallback as ce, useEffect as xe, useMemo as ke, useRef as Ge, lazy as nn, Suspense as an, useLayoutEffect as zr } from "react";
|
|
4
|
-
import { D as sn, _ as ze, F as ln, G as cn, H as dn, I as Zt, P as K, J as ko, g as ye, d as he, B as r, a as Re, f as ve, u as we, z as oo, y as $r, b as zt, v as $t, i as So, c as pn, m as Rr, h as un, A as Tr } from "./chunks/PrizeCard-
|
|
4
|
+
import { D as sn, _ as ze, F as ln, G as cn, H as dn, I as Zt, P as K, J as ko, g as ye, d as he, B as r, a as Re, f as ve, u as we, z as oo, y as $r, b as zt, v as $t, i as So, c as pn, m as Rr, h as un, A as Tr } from "./chunks/PrizeCard-BIJVHmYW.js";
|
|
5
5
|
import { createPortal as mn } from "react-dom";
|
|
6
|
-
import { P as fn } from "./chunks/Portal-
|
|
7
|
-
import { b as Fr, M as xn } from "./chunks/main-
|
|
8
|
-
import { b as rt, h as Pt, c as hn } from "./chunks/helpers-
|
|
9
|
-
import { N as ro } from "./chunks/Notification-
|
|
6
|
+
import { P as fn } from "./chunks/Portal-C49jCyHC.js";
|
|
7
|
+
import { b as Fr, M as xn } from "./chunks/main-bAzdlcP_.js";
|
|
8
|
+
import { b as rt, h as Pt, c as hn } from "./chunks/helpers-BjZ558HQ.js";
|
|
9
|
+
import { N as ro } from "./chunks/Notification-DPPIzFpw.js";
|
|
10
10
|
import { n as gn } from "./chunks/index-qjOOEhVr.js";
|
|
11
|
-
import { u as yn, s as Er, O as Pr } from "./chunks/OddsStrip-
|
|
12
|
-
import { S as bn } from "./chunks/Stack-
|
|
13
|
-
import { F as Sn, C as Cn } from "./chunks/FormControl-
|
|
14
|
-
import { u as tr, e as wo, s as Rt, a as vn, b as Lt, i as kn, c as wn, T as S } from "./chunks/Typography-
|
|
15
|
-
import { B as He, I as vt } from "./chunks/Button-
|
|
16
|
-
import { O as In, W as Ln, E as to, M as zn, A as $n, S as Rn, G as go, C as yo, a as Oo, b as Tn, c as Wr, L as Fn, V as Po, d as En, e as Pn, f as Xr, g as Wn, P as Xn, h as An, i as Wt, j as Bn, B as Dn, H as or, k as Mn, R as Ar, l as rr, m as Nn, n as On, o as Hn, p as nr, T as Vn, q as jn, r as _n, N as Yn, s as Gn, t as Un, u as Kn } from "./chunks/OddsSkeleton-
|
|
17
|
-
import { S as Br, D as Dr, C as Mr, a as qn, E as Jn } from "./chunks/SportsSoccer-
|
|
18
|
-
import { D as ht } from "./chunks/DirectionScope-
|
|
11
|
+
import { u as yn, s as Er, O as Pr } from "./chunks/OddsStrip-c9Y8VgmW.js";
|
|
12
|
+
import { S as bn } from "./chunks/Stack-Dx-77BoB.js";
|
|
13
|
+
import { F as Sn, C as Cn } from "./chunks/FormControl-CApGuvy1.js";
|
|
14
|
+
import { u as tr, e as wo, s as Rt, a as vn, b as Lt, i as kn, c as wn, T as S } from "./chunks/Typography-CHHyHOvn.js";
|
|
15
|
+
import { B as He, I as vt } from "./chunks/Button-C5sVDXUr.js";
|
|
16
|
+
import { O as In, W as Ln, E as to, M as zn, A as $n, S as Rn, G as go, C as yo, a as Oo, b as Tn, c as Wr, L as Fn, V as Po, d as En, e as Pn, f as Xr, g as Wn, P as Xn, h as An, i as Wt, j as Bn, B as Dn, H as or, k as Mn, R as Ar, l as rr, m as Nn, n as On, o as Hn, p as nr, T as Vn, q as jn, r as _n, N as Yn, s as Gn, t as Un, u as Kn } from "./chunks/OddsSkeleton-BdKCmc4R.js";
|
|
17
|
+
import { S as Br, D as Dr, C as Mr, a as qn, E as Jn } from "./chunks/SportsSoccer-Dwp9CkcQ.js";
|
|
18
|
+
import { D as ht } from "./chunks/DirectionScope-Ty03Pl0K.js";
|
|
19
19
|
import { u as Zn } from "./chunks/useControlled-BYdyS7Pn.js";
|
|
20
|
-
import { u as Qn } from "./chunks/colorInversionUtils-
|
|
21
|
-
import { u as Io } from "./chunks/useEventCallback-
|
|
20
|
+
import { u as Qn } from "./chunks/colorInversionUtils-CJrDu9ZF.js";
|
|
21
|
+
import { u as Io } from "./chunks/useEventCallback-D-FE-RIP.js";
|
|
22
22
|
import { o as xo } from "./chunks/getReactElementRef-B3MFPBbS.js";
|
|
23
23
|
import { a as ei } from "./chunks/areArraysEqual-B3mXtHvh.js";
|
|
24
24
|
import { v as ti } from "./chunks/visuallyHidden-B8J7BVSJ.js";
|
|
25
|
-
import { P as Xt } from "./chunks/Person-
|
|
26
|
-
import { A as no } from "./chunks/Avatar-
|
|
27
|
-
import { S as oi } from "./chunks/Spinner-
|
|
25
|
+
import { P as Xt } from "./chunks/Person-CuxlprBB.js";
|
|
26
|
+
import { A as no } from "./chunks/Avatar-Ck9sDlUF.js";
|
|
27
|
+
import { S as oi } from "./chunks/Spinner-DQytYdCL.js";
|
|
28
28
|
import { C as ri, a as ni } from "./chunks/chevrons-right-CXSpQt9w.js";
|
|
29
29
|
import { C as ii } from "./chunks/chevron-left-CxfCSZcr.js";
|
|
30
30
|
import { C as ai } from "./chunks/chevron-right-BEQMacFn.js";
|
|
31
|
-
import { S as Wo } from "./chunks/Sheet-
|
|
32
|
-
import { T as Xo } from "./chunks/Table-
|
|
33
|
-
import { E as At } from "./chunks/EmojiEvents-
|
|
34
|
-
import { C as Nr, a as Or, S as Ho } from "./chunks/Search-
|
|
35
|
-
import { M as Vo, a as jo } from "./chunks/ModalDialog-
|
|
36
|
-
import { C as Hr } from "./chunks/Close-
|
|
37
|
-
import { I as Nt } from "./chunks/Input-
|
|
38
|
-
import { T as Vr } from "./chunks/Textarea-
|
|
39
|
-
import { a as si, K as li } from "./chunks/KeyboardArrowDown-
|
|
40
|
-
import { D as ci } from "./chunks/Divider-
|
|
31
|
+
import { S as Wo } from "./chunks/Sheet-DHMJRANx.js";
|
|
32
|
+
import { T as Xo } from "./chunks/Table-D3ou_zxz.js";
|
|
33
|
+
import { E as At } from "./chunks/EmojiEvents-DzZMpyj0.js";
|
|
34
|
+
import { C as Nr, a as Or, S as Ho } from "./chunks/Search-RBBj-3Z1.js";
|
|
35
|
+
import { M as Vo, a as jo } from "./chunks/ModalDialog-19Yt0pTv.js";
|
|
36
|
+
import { C as Hr } from "./chunks/Close-Bn_Gk4s2.js";
|
|
37
|
+
import { I as Nt } from "./chunks/Input-C1c9bTgf.js";
|
|
38
|
+
import { T as Vr } from "./chunks/Textarea-HrQcjIXY.js";
|
|
39
|
+
import { a as si, K as li } from "./chunks/KeyboardArrowDown-BBL6SAyg.js";
|
|
40
|
+
import { D as ci } from "./chunks/Divider-D-SATYZX.js";
|
|
41
41
|
function Qt(t, o = Number.MIN_SAFE_INTEGER, i = Number.MAX_SAFE_INTEGER) {
|
|
42
42
|
return Math.max(o, Math.min(t, i));
|
|
43
43
|
}
|
|
@@ -168,7 +168,7 @@ function hi(t) {
|
|
|
168
168
|
shiftStep: C = 10,
|
|
169
169
|
tabIndex: y,
|
|
170
170
|
value: v
|
|
171
|
-
} = t, I = lt.useRef(void 0), [k, z] = lt.useState(-1), [w, R] = lt.useState(-1), [L, P] = lt.useState(!1), T = lt.useRef(0), [
|
|
171
|
+
} = t, I = lt.useRef(void 0), [k, z] = lt.useState(-1), [w, R] = lt.useState(-1), [L, P] = lt.useState(!1), T = lt.useRef(0), [M, X] = Zn({
|
|
172
172
|
controlled: v,
|
|
173
173
|
default: i ?? a,
|
|
174
174
|
name: "Slider"
|
|
@@ -181,24 +181,24 @@ function hi(t) {
|
|
|
181
181
|
name: m
|
|
182
182
|
}
|
|
183
183
|
}), g(Le, Q, Z);
|
|
184
|
-
}), F = Array.isArray(
|
|
185
|
-
let $ = F ?
|
|
184
|
+
}), F = Array.isArray(M);
|
|
185
|
+
let $ = F ? M.slice().sort(jr) : [M];
|
|
186
186
|
$ = $.map((q) => q == null ? a : Qt(q, a, p));
|
|
187
187
|
const A = s === !0 && b !== null ? [...Array(Math.floor((p - a) / b) + 1)].map((q, Q) => ({
|
|
188
188
|
value: a + b * Q
|
|
189
189
|
})) : s || [], J = A.map((q) => q.value), {
|
|
190
190
|
isFocusVisibleRef: O,
|
|
191
|
-
onBlur:
|
|
191
|
+
onBlur: N,
|
|
192
192
|
onFocus: V,
|
|
193
193
|
ref: B
|
|
194
|
-
} = Qn(), [H, G] = lt.useState(-1), _ = lt.useRef(null),
|
|
194
|
+
} = Qn(), [H, G] = lt.useState(-1), _ = lt.useRef(null), le = tr(B, _), re = tr(f, le), D = (q) => (Q) => {
|
|
195
195
|
var Z;
|
|
196
196
|
const de = Number(Q.currentTarget.getAttribute("data-index"));
|
|
197
197
|
V(Q), O.current === !0 && G(de), R(de), q == null || (Z = q.onFocus) == null || Z.call(q, Q);
|
|
198
198
|
}, oe = (q) => (Q) => {
|
|
199
199
|
var Z;
|
|
200
|
-
|
|
201
|
-
},
|
|
200
|
+
N(Q), O.current === !1 && G(-1), R(-1), q == null || (Z = q.onBlur) == null || Z.call(q, Q);
|
|
201
|
+
}, ae = (q, Q) => {
|
|
202
202
|
const Z = Number(q.currentTarget.getAttribute("data-index")), de = $[Z], Le = J.indexOf(de);
|
|
203
203
|
let pe = Q;
|
|
204
204
|
if (A && b == null) {
|
|
@@ -219,13 +219,13 @@ function hi(t) {
|
|
|
219
219
|
activeIndex: j
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
X(pe), G(Z), W && !lo(pe,
|
|
222
|
+
X(pe), G(Z), W && !lo(pe, M) && W(q, pe, Z), u && u(q, pe);
|
|
223
223
|
}, ne = (q) => (Q) => {
|
|
224
224
|
var Z;
|
|
225
225
|
if (b !== null) {
|
|
226
226
|
const de = Number(Q.currentTarget.getAttribute("data-index")), Le = $[de];
|
|
227
227
|
let pe = null;
|
|
228
|
-
(Q.key === "ArrowLeft" || Q.key === "ArrowDown") && Q.shiftKey || Q.key === "PageDown" ? pe = Math.max(Le - C, a) : ((Q.key === "ArrowRight" || Q.key === "ArrowUp") && Q.shiftKey || Q.key === "PageUp") && (pe = Math.min(Le + C, p)), pe !== null && (
|
|
228
|
+
(Q.key === "ArrowLeft" || Q.key === "ArrowDown") && Q.shiftKey || Q.key === "PageDown" ? pe = Math.max(Le - C, a) : ((Q.key === "ArrowRight" || Q.key === "ArrowUp") && Q.shiftKey || Q.key === "PageUp") && (pe = Math.min(Le + C, p)), pe !== null && (ae(Q, pe), Q.preventDefault());
|
|
229
229
|
}
|
|
230
230
|
q == null || (Z = q.onKeyDown) == null || Z.call(q, Q);
|
|
231
231
|
};
|
|
@@ -237,7 +237,7 @@ function hi(t) {
|
|
|
237
237
|
}, [l]), l && k !== -1 && z(-1), l && H !== -1 && G(-1);
|
|
238
238
|
const me = (q) => (Q) => {
|
|
239
239
|
var Z;
|
|
240
|
-
(Z = q.onChange) == null || Z.call(q, Q),
|
|
240
|
+
(Z = q.onChange) == null || Z.call(q, Q), ae(Q, Q.target.valueAsNumber);
|
|
241
241
|
}, be = lt.useRef(void 0);
|
|
242
242
|
let Te = x;
|
|
243
243
|
n && x === "horizontal" && (Te += "-reverse");
|
|
@@ -263,19 +263,19 @@ function hi(t) {
|
|
|
263
263
|
Y = J[Ve];
|
|
264
264
|
}
|
|
265
265
|
Y = Qt(Y, a, p);
|
|
266
|
-
let
|
|
266
|
+
let se = 0;
|
|
267
267
|
if (F) {
|
|
268
|
-
Q ?
|
|
268
|
+
Q ? se = be.current : se = ir($, Y), d && (Y = Qt(Y, $[se - 1] || -1 / 0, $[se + 1] || 1 / 0));
|
|
269
269
|
const Ve = Y;
|
|
270
270
|
Y = ar({
|
|
271
271
|
values: $,
|
|
272
272
|
newValue: Y,
|
|
273
|
-
index:
|
|
274
|
-
}), d && Q || (
|
|
273
|
+
index: se
|
|
274
|
+
}), d && Q || (se = Y.indexOf(Ve), be.current = se);
|
|
275
275
|
}
|
|
276
276
|
return {
|
|
277
277
|
newValue: Y,
|
|
278
|
-
activeIndex:
|
|
278
|
+
activeIndex: se
|
|
279
279
|
};
|
|
280
280
|
}, Fe = Io((q) => {
|
|
281
281
|
const Q = ao(q, I);
|
|
@@ -296,7 +296,7 @@ function hi(t) {
|
|
|
296
296
|
sliderRef: _,
|
|
297
297
|
activeIndex: de,
|
|
298
298
|
setActive: z
|
|
299
|
-
}), X(Z), !L && T.current > di && P(!0), W && !lo(Z,
|
|
299
|
+
}), X(Z), !L && T.current > di && P(!0), W && !lo(Z, M) && W(q, Z, de);
|
|
300
300
|
}), Ue = Io((q) => {
|
|
301
301
|
const Q = ao(q, I);
|
|
302
302
|
if (P(!1), !Q)
|
|
@@ -326,7 +326,7 @@ function hi(t) {
|
|
|
326
326
|
sliderRef: _,
|
|
327
327
|
activeIndex: pe,
|
|
328
328
|
setActive: z
|
|
329
|
-
}), X(Le), W && !lo(Le,
|
|
329
|
+
}), X(Le), W && !lo(Le, M) && W(q, Le, pe);
|
|
330
330
|
}
|
|
331
331
|
T.current = 0;
|
|
332
332
|
const de = xo(_.current);
|
|
@@ -368,7 +368,7 @@ function hi(t) {
|
|
|
368
368
|
sliderRef: _,
|
|
369
369
|
activeIndex: U,
|
|
370
370
|
setActive: z
|
|
371
|
-
}), X(pe), W && !lo(pe,
|
|
371
|
+
}), X(pe), W && !lo(pe, M) && W(Q, pe, U);
|
|
372
372
|
}
|
|
373
373
|
T.current = 0;
|
|
374
374
|
const Le = xo(_.current);
|
|
@@ -401,7 +401,7 @@ function hi(t) {
|
|
|
401
401
|
var Q;
|
|
402
402
|
const Z = wo(q), de = {
|
|
403
403
|
onChange: me(Z || {}),
|
|
404
|
-
onFocus:
|
|
404
|
+
onFocus: D(Z || {}),
|
|
405
405
|
onBlur: oe(Z || {}),
|
|
406
406
|
onKeyDown: ne(Z || {})
|
|
407
407
|
}, Le = ze({}, Z, de);
|
|
@@ -807,7 +807,7 @@ const bi = (t) => {
|
|
|
807
807
|
color: L = "primary",
|
|
808
808
|
size: P = "md",
|
|
809
809
|
variant: T = "solid",
|
|
810
|
-
component:
|
|
810
|
+
component: M,
|
|
811
811
|
slots: X = {},
|
|
812
812
|
slotProps: W = {}
|
|
813
813
|
} = l, F = dn(l, yi), $ = ze({}, l, {
|
|
@@ -833,24 +833,24 @@ const bi = (t) => {
|
|
|
833
833
|
axisProps: A,
|
|
834
834
|
getRootProps: J,
|
|
835
835
|
getHiddenInputProps: O,
|
|
836
|
-
getThumbProps:
|
|
836
|
+
getThumbProps: N,
|
|
837
837
|
open: V,
|
|
838
838
|
active: B,
|
|
839
839
|
axis: H,
|
|
840
840
|
focusedThumbIndex: G,
|
|
841
841
|
range: _,
|
|
842
|
-
dragging:
|
|
842
|
+
dragging: le,
|
|
843
843
|
marks: re,
|
|
844
|
-
values:
|
|
844
|
+
values: D,
|
|
845
845
|
trackOffset: oe,
|
|
846
|
-
trackLeap:
|
|
846
|
+
trackLeap: ae,
|
|
847
847
|
getThumbStyle: ne
|
|
848
848
|
} = hi(ze({}, $, {
|
|
849
849
|
rootRef: i
|
|
850
850
|
}));
|
|
851
|
-
$.marked = re.length > 0 && re.some((Z) => Z.label), $.dragging =
|
|
852
|
-
const me = ze({}, A[H].offset(oe), A[H].leap(
|
|
853
|
-
component:
|
|
851
|
+
$.marked = re.length > 0 && re.some((Z) => Z.label), $.dragging = le;
|
|
852
|
+
const me = ze({}, A[H].offset(oe), A[H].leap(ae)), be = bi($), Te = ze({}, F, {
|
|
853
|
+
component: M,
|
|
854
854
|
slots: X,
|
|
855
855
|
slotProps: W
|
|
856
856
|
}), [Se, Fe] = Lt("root", {
|
|
@@ -890,7 +890,7 @@ const bi = (t) => {
|
|
|
890
890
|
className: be.thumb,
|
|
891
891
|
elementType: wi,
|
|
892
892
|
externalForwardedProps: Te,
|
|
893
|
-
getSlotProps:
|
|
893
|
+
getSlotProps: N,
|
|
894
894
|
ownerState: $
|
|
895
895
|
}), [st, pt] = Lt("input", {
|
|
896
896
|
className: be.input,
|
|
@@ -908,7 +908,7 @@ const bi = (t) => {
|
|
|
908
908
|
children: [/* @__PURE__ */ e(Ue, ze({}, Ne)), /* @__PURE__ */ e(ie, ze({}, Ae)), re.filter((Z) => Z.value >= b && Z.value <= h).map((Z, de) => {
|
|
909
909
|
const Le = bo(Z.value, b, h), pe = A[H].offset(Le);
|
|
910
910
|
let U;
|
|
911
|
-
return k === !1 ? U =
|
|
911
|
+
return k === !1 ? U = D.indexOf(Z.value) !== -1 : U = k === "normal" && (_ ? Z.value >= D[0] && Z.value <= D[D.length - 1] : Z.value <= D[0]) || k === "inverted" && (_ ? Z.value <= D[0] || Z.value >= D[D.length - 1] : Z.value >= D[0]), /* @__PURE__ */ c(lt.Fragment, {
|
|
912
912
|
children: [/* @__PURE__ */ e(We, ze({
|
|
913
913
|
"data-index": de
|
|
914
914
|
}, qe, !kn(We) && {
|
|
@@ -926,7 +926,7 @@ const bi = (t) => {
|
|
|
926
926
|
children: Z.label
|
|
927
927
|
})) : null]
|
|
928
928
|
}, Z.value);
|
|
929
|
-
}),
|
|
929
|
+
}), D.map((Z, de) => {
|
|
930
930
|
const Le = bo(Z, b, h), pe = A[H].offset(Le);
|
|
931
931
|
return /* @__PURE__ */ c(Be, ze({
|
|
932
932
|
"data-index": de
|
|
@@ -938,7 +938,7 @@ const bi = (t) => {
|
|
|
938
938
|
"aria-label": u ? u(de) : d,
|
|
939
939
|
"aria-valuenow": v(Z),
|
|
940
940
|
"aria-valuetext": x ? x(v(Z), de) : n,
|
|
941
|
-
value:
|
|
941
|
+
value: D[de]
|
|
942
942
|
}, pt)), z !== "off" ? /* @__PURE__ */ e(q, ze({}, Q, {
|
|
943
943
|
className: Zt(Q.className, (V === de || B === de || z === "on") && be.valueLabelOpen),
|
|
944
944
|
children: typeof w == "function" ? w(v(Z), de) : w
|
|
@@ -2422,7 +2422,7 @@ const Mi = (t) => ({
|
|
|
2422
2422
|
matchAwayScore: i,
|
|
2423
2423
|
pointsAlternative: l = {}
|
|
2424
2424
|
}) => {
|
|
2425
|
-
var
|
|
2425
|
+
var N, V, B, H;
|
|
2426
2426
|
const { t: d } = Re("common"), n = ye(), s = we(), p = he(), a = ve(), [m, g] = E(!1), u = Ge(null);
|
|
2427
2427
|
if (xe(() => {
|
|
2428
2428
|
if (!m) return;
|
|
@@ -2431,7 +2431,7 @@ const Mi = (t) => ({
|
|
|
2431
2431
|
};
|
|
2432
2432
|
return document.addEventListener("mousedown", G), () => document.removeEventListener("mousedown", G);
|
|
2433
2433
|
}, [m]), t.status !== "SETTLED") return null;
|
|
2434
|
-
const x = t.outcome === "CORRECT", f = Object.keys(l).length > 0 && Object.values(l).every((G) => G === 0), h = !x && t.outcome === "PARTIALLY_CORRECT" && !f, b = n.palette.success.plainColor, C = n.palette.warning.plainColor, y = n.palette.danger.plainColor, v = x ? n.palette.success.softBg : h ? (V = (
|
|
2434
|
+
const x = t.outcome === "CORRECT", f = Object.keys(l).length > 0 && Object.values(l).every((G) => G === 0), h = !x && t.outcome === "PARTIALLY_CORRECT" && !f, b = n.palette.success.plainColor, C = n.palette.warning.plainColor, y = n.palette.danger.plainColor, v = x ? n.palette.success.softBg : h ? (V = (N = n.palette) == null ? void 0 : N.warning) == null ? void 0 : V.softBg : (H = (B = n.palette) == null ? void 0 : B.danger) == null ? void 0 : H.softBg, I = x ? `${b}60` : h ? `${C}60` : `${y}60`, k = x ? b : h ? C : y, z = d(x ? "topX.outcomes.correct" : h ? "topX.outcomes.correctPartial" : "topX.outcomes.incorrect"), w = t.points ?? 0, R = w > 0 ? `${$r(`+${w}`)} ${d("topX.play.pts")}` : `0 ${d("topX.play.pts")}`, L = t.homeScore, P = t.awayScore, T = o != null && i != null, M = (G) => G > 0 ? 1 : G < 0 ? -1 : 0, X = T && L === o, W = T && P === i, F = T && M(L - P) === M(o - i), $ = T && L - P === o - i, A = Object.keys(l).length > 0, J = [
|
|
2435
2435
|
{
|
|
2436
2436
|
label: d("topX.outcomes.correctOutcome"),
|
|
2437
2437
|
ok: F,
|
|
@@ -2611,8 +2611,8 @@ const Mi = (t) => ({
|
|
|
2611
2611
|
gap: "3px",
|
|
2612
2612
|
mb: p["2xs"]
|
|
2613
2613
|
},
|
|
2614
|
-
children: O.map(({ label: G, ok: _, altKey:
|
|
2615
|
-
const re = l[
|
|
2614
|
+
children: O.map(({ label: G, ok: _, altKey: le }) => {
|
|
2615
|
+
const re = l[le] ?? 0;
|
|
2616
2616
|
return /* @__PURE__ */ c(
|
|
2617
2617
|
r,
|
|
2618
2618
|
{
|
|
@@ -2752,7 +2752,7 @@ const Mi = (t) => ({
|
|
|
2752
2752
|
onStartEdit: f,
|
|
2753
2753
|
onCancelEdit: h
|
|
2754
2754
|
}) => {
|
|
2755
|
-
var k, z, w, R, L, P, T,
|
|
2755
|
+
var k, z, w, R, L, P, T, M, X, W, F, $, A, J;
|
|
2756
2756
|
const { t: b } = Re("common"), C = ye(), y = we(), v = he(), I = ve();
|
|
2757
2757
|
if (t)
|
|
2758
2758
|
return /* @__PURE__ */ c(
|
|
@@ -2858,7 +2858,7 @@ const Mi = (t) => ({
|
|
|
2858
2858
|
width: 28,
|
|
2859
2859
|
height: 28,
|
|
2860
2860
|
borderRadius: I.xs,
|
|
2861
|
-
border: `1px solid ${((
|
|
2861
|
+
border: `1px solid ${((M = (T = C.palette) == null ? void 0 : T.success) == null ? void 0 : M.outlinedBorder) ?? "#22c55e"}`,
|
|
2862
2862
|
background: ((W = (X = C.palette) == null ? void 0 : X.success) == null ? void 0 : W.softBg) ?? "#dcfce7",
|
|
2863
2863
|
cursor: u ? "default" : "pointer",
|
|
2864
2864
|
display: "flex",
|
|
@@ -2992,10 +2992,10 @@ const Mi = (t) => ({
|
|
|
2992
2992
|
onCancelEdit: v
|
|
2993
2993
|
}) => {
|
|
2994
2994
|
var me, be, Te, Se, Fe, Ue, Ne, ie, Ae, We;
|
|
2995
|
-
const { t: I } = Re("common"), k = ye(), z = we(), w = he(), R = ve(), { betslip: L, odds: P } = gt(), { language: T } = zt($t),
|
|
2995
|
+
const { t: I } = Re("common"), k = ye(), z = we(), w = he(), R = ve(), { betslip: L, odds: P } = gt(), { language: T } = zt($t), M = ke(
|
|
2996
2996
|
() => new Date(t.kickoffAt),
|
|
2997
2997
|
[t.kickoffAt]
|
|
2998
|
-
), X = t.status === "FINISHED", W = t.status === "LIVE", F =
|
|
2998
|
+
), X = t.status === "FINISHED", W = t.status === "LIVE", F = M < /* @__PURE__ */ new Date() && X, $ = 15 * 60 * 1e3, A = h || b || !X && (W || Date.now() >= M.getTime() - $), J = t.homeScore ?? null, O = t.awayScore ?? null, N = !!o, V = N && !x, { predictedOutcome: B } = _i({
|
|
2999
2999
|
matchId: t.id,
|
|
3000
3000
|
homeScore: i,
|
|
3001
3001
|
awayScore: l,
|
|
@@ -3010,7 +3010,7 @@ const Mi = (t) => ({
|
|
|
3010
3010
|
), _ = ce(
|
|
3011
3011
|
() => n(t.id, "away"),
|
|
3012
3012
|
[t.id, n]
|
|
3013
|
-
),
|
|
3013
|
+
), le = ce(
|
|
3014
3014
|
() => s(t.id, "away"),
|
|
3015
3015
|
[t.id, s]
|
|
3016
3016
|
), re = ce(
|
|
@@ -3018,7 +3018,7 @@ const Mi = (t) => ({
|
|
|
3018
3018
|
(L == null ? void 0 : L.trigger) === "odds-only" && Fr.setSelection(`${t.id}:${qe.market}:${qe.pick}`);
|
|
3019
3019
|
},
|
|
3020
3020
|
[t.id, L == null ? void 0 : L.trigger]
|
|
3021
|
-
),
|
|
3021
|
+
), D = V && !F && !A, oe = (o == null ? void 0 : o.status) === "SETTLED", ae = o == null ? void 0 : o.outcome, ne = F && oe ? ae === "CORRECT" ? ((be = (me = k.palette) == null ? void 0 : me.success) == null ? void 0 : be.plainColor) ?? "#22c55e" : ae === "PARTIALLY_CORRECT" ? ((Se = (Te = k.palette) == null ? void 0 : Te.warning) == null ? void 0 : Se.plainColor) ?? "#DC6803" : ((Ue = (Fe = k.palette) == null ? void 0 : Fe.danger) == null ? void 0 : Ue.plainColor) ?? "#dc2626" : null;
|
|
3022
3022
|
return f && x ? /* @__PURE__ */ e(Do, {}) : /* @__PURE__ */ c(
|
|
3023
3023
|
r,
|
|
3024
3024
|
{
|
|
@@ -3029,8 +3029,8 @@ const Mi = (t) => ({
|
|
|
3029
3029
|
backgroundPosition: "center center",
|
|
3030
3030
|
backgroundRepeat: "no-repeat",
|
|
3031
3031
|
borderRadius: R.sm,
|
|
3032
|
-
border: `1px solid ${ne ? `${ne}30` :
|
|
3033
|
-
borderLeft: ne ? `3px solid ${ne}` :
|
|
3032
|
+
border: `1px solid ${ne ? `${ne}30` : D ? ((ie = (Ne = k.palette) == null ? void 0 : Ne.primary) == null ? void 0 : ie.outlinedBorder) ?? k.outlineEnabledBorder : k.outlineEnabledBorder}`,
|
|
3033
|
+
borderLeft: ne ? `3px solid ${ne}` : D ? `3px solid ${((We = (Ae = k.palette) == null ? void 0 : Ae.primary) == null ? void 0 : We.plainColor) ?? k.outlineEnabledBorder}` : void 0,
|
|
3034
3034
|
p: w.md,
|
|
3035
3035
|
transition: "box-shadow 0.2s, border-color 0.2s",
|
|
3036
3036
|
"&:hover": { boxShadow: "0 10px 15px rgba(0,0,0,0.1)" }
|
|
@@ -3039,7 +3039,7 @@ const Mi = (t) => ({
|
|
|
3039
3039
|
/* @__PURE__ */ e(
|
|
3040
3040
|
Ui,
|
|
3041
3041
|
{
|
|
3042
|
-
kickoffDate:
|
|
3042
|
+
kickoffDate: M,
|
|
3043
3043
|
locale: T ?? void 0,
|
|
3044
3044
|
rightContent: /* @__PURE__ */ e(
|
|
3045
3045
|
na,
|
|
@@ -3048,7 +3048,7 @@ const Mi = (t) => ({
|
|
|
3048
3048
|
isPast: F,
|
|
3049
3049
|
isPredicted: V,
|
|
3050
3050
|
isLocked: A,
|
|
3051
|
-
hasExistingPrediction:
|
|
3051
|
+
hasExistingPrediction: N,
|
|
3052
3052
|
isEditing: !!x,
|
|
3053
3053
|
matchHomeScore: J,
|
|
3054
3054
|
matchAwayScore: O,
|
|
@@ -3160,7 +3160,7 @@ const Mi = (t) => ({
|
|
|
3160
3160
|
existingPredictionScore: (o == null ? void 0 : o.awayScore) ?? null,
|
|
3161
3161
|
matchScore: O,
|
|
3162
3162
|
onIncrement: _,
|
|
3163
|
-
onDecrement:
|
|
3163
|
+
onDecrement: le,
|
|
3164
3164
|
readOnly: h
|
|
3165
3165
|
}
|
|
3166
3166
|
)
|
|
@@ -4684,7 +4684,7 @@ const Mi = (t) => ({
|
|
|
4684
4684
|
}
|
|
4685
4685
|
);
|
|
4686
4686
|
}, Ca = Pe.memo(Sa), va = () => {
|
|
4687
|
-
var p, a, m, g, u, x, f, h, b, C, y, v, I, k, z, w, R, L, P, T,
|
|
4687
|
+
var p, a, m, g, u, x, f, h, b, C, y, v, I, k, z, w, R, L, P, T, M, X;
|
|
4688
4688
|
const { t } = Re("common"), o = ye(), i = we(), l = ve(), { signInCTA: d } = gt();
|
|
4689
4689
|
if (d != null && d.component) return /* @__PURE__ */ e(Ee, { children: d.component });
|
|
4690
4690
|
const n = (d == null ? void 0 : d.defaultLabel) ?? t("common.signIn"), s = {
|
|
@@ -4706,7 +4706,7 @@ const Mi = (t) => ({
|
|
|
4706
4706
|
"&:disabled": {
|
|
4707
4707
|
backgroundColor: (L = (R = o.palette) == null ? void 0 : R.primary) == null ? void 0 : L.plainColor,
|
|
4708
4708
|
backgroundImage: ((T = (P = o.palette) == null ? void 0 : P.primary) == null ? void 0 : T.primaryButtonGradient) ?? "none",
|
|
4709
|
-
color: ((X = (
|
|
4709
|
+
color: ((X = (M = o.palette) == null ? void 0 : M.primary) == null ? void 0 : X.onPrimary) ?? "#fff",
|
|
4710
4710
|
opacity: 0.5
|
|
4711
4711
|
}
|
|
4712
4712
|
};
|
|
@@ -4760,21 +4760,21 @@ const Mi = (t) => ({
|
|
|
4760
4760
|
} = _o(f, t == null ? void 0 : t.gameIds, I), R = ke(() => Oi(k), [k]), L = ke(() => Hi(R), [R]), P = ke(
|
|
4761
4761
|
() => R.current ? R.previous.length : Math.max(0, L.length - 1),
|
|
4762
4762
|
[R, L.length]
|
|
4763
|
-
), [T,
|
|
4763
|
+
), [T, M] = E(P), X = Ge(P);
|
|
4764
4764
|
xe(() => {
|
|
4765
|
-
X.current !== P && (
|
|
4765
|
+
X.current !== P && (M(P), X.current = P);
|
|
4766
4766
|
}, [P]);
|
|
4767
4767
|
const W = ce(
|
|
4768
|
-
() =>
|
|
4768
|
+
() => M((ee) => Math.max(0, ee - 1)),
|
|
4769
4769
|
[]
|
|
4770
4770
|
), F = ce(
|
|
4771
|
-
() =>
|
|
4771
|
+
() => M((ee) => Math.min(L.length - 1, ee + 1)),
|
|
4772
4772
|
[L.length]
|
|
4773
4773
|
), $ = L[T] ?? null, A = ke(() => $ ? $.fixtures.map((ee) => ji(ee.matchModel)).sort(
|
|
4774
4774
|
(ee, fe) => new Date(ee.kickoffAt).getTime() - new Date(fe.kickoffAt).getTime()
|
|
4775
|
-
) : [], [$]), [J, O] = E(/* @__PURE__ */ new Map()), [
|
|
4775
|
+
) : [], [$]), [J, O] = E(/* @__PURE__ */ new Map()), [N, V] = E(!1), [B, H] = E(
|
|
4776
4776
|
/* @__PURE__ */ new Map()
|
|
4777
|
-
), [G, _] = E(/* @__PURE__ */ new Set()), [
|
|
4777
|
+
), [G, _] = E(/* @__PURE__ */ new Set()), [le, re] = E(/* @__PURE__ */ new Set()), D = ce((ee) => {
|
|
4778
4778
|
re((fe) => {
|
|
4779
4779
|
const De = new Set(fe);
|
|
4780
4780
|
return De.add(ee), De;
|
|
@@ -4793,7 +4793,7 @@ const Mi = (t) => ({
|
|
|
4793
4793
|
});
|
|
4794
4794
|
},
|
|
4795
4795
|
[]
|
|
4796
|
-
), [
|
|
4796
|
+
), [ae, ne] = E(""), me = Ge(""), [be, Te] = E(!1), [Se, Fe] = E(null), [Ue, Ne] = E(!1), [ie, Ae] = E(!1), [We, qe] = E(!1), [Ze, _e] = E(!1), [Be, Ie] = E(hr), st = ce(
|
|
4797
4797
|
() => Ie((ee) => ({ ...ee, open: !1 })),
|
|
4798
4798
|
[]
|
|
4799
4799
|
), [pt, q] = E({});
|
|
@@ -4885,10 +4885,10 @@ const Mi = (t) => ({
|
|
|
4885
4885
|
), U = ce(
|
|
4886
4886
|
(ee, fe) => Le(ee, fe, -1),
|
|
4887
4887
|
[Le]
|
|
4888
|
-
), j = ($ == null ? void 0 : $.status) === "OPEN", Y = $ != null && $.predictionsCutoff ? Date.now() >= new Date($.predictionsCutoff).getTime() : !1,
|
|
4888
|
+
), j = ($ == null ? void 0 : $.status) === "OPEN", Y = $ != null && $.predictionsCutoff ? Date.now() >= new Date($.predictionsCutoff).getTime() : !1, se = j && !Y && h && !ie, Ve = ce(
|
|
4889
4889
|
async (ee) => {
|
|
4890
4890
|
var Me;
|
|
4891
|
-
if (!$ || !
|
|
4891
|
+
if (!$ || !se || y && !await y()) return;
|
|
4892
4892
|
Ae(!0);
|
|
4893
4893
|
const fe = A.map((Ce) => {
|
|
4894
4894
|
const je = B.get(Ce.id) ?? { home: 0, away: 0 };
|
|
@@ -4912,8 +4912,8 @@ const Mi = (t) => ({
|
|
|
4912
4912
|
gameInstanceId: $.id,
|
|
4913
4913
|
fixtures: fe
|
|
4914
4914
|
};
|
|
4915
|
-
if ((Me = $.tiebreaker) != null && Me.timeTiebreaker &&
|
|
4916
|
-
const Ce = Number(
|
|
4915
|
+
if ((Me = $.tiebreaker) != null && Me.timeTiebreaker && ae !== "") {
|
|
4916
|
+
const Ce = Number(ae);
|
|
4917
4917
|
Number.isNaN(Ce) || (De.tiebreaker = { goldenGoal: Ce });
|
|
4918
4918
|
}
|
|
4919
4919
|
try {
|
|
@@ -4922,7 +4922,7 @@ const Mi = (t) => ({
|
|
|
4922
4922
|
const je = Lo([{ data: [Ce] }]);
|
|
4923
4923
|
O(je);
|
|
4924
4924
|
}
|
|
4925
|
-
_(/* @__PURE__ */ new Set()), re(/* @__PURE__ */ new Set()), me.current =
|
|
4925
|
+
_(/* @__PURE__ */ new Set()), re(/* @__PURE__ */ new Set()), me.current = ae, $o($.id), ee != null && ee.silent || Ie({
|
|
4926
4926
|
open: !0,
|
|
4927
4927
|
variant: "success",
|
|
4928
4928
|
title: p("topX.play.submitSuccess"),
|
|
@@ -4945,11 +4945,11 @@ const Mi = (t) => ({
|
|
|
4945
4945
|
},
|
|
4946
4946
|
[
|
|
4947
4947
|
$,
|
|
4948
|
-
|
|
4948
|
+
se,
|
|
4949
4949
|
y,
|
|
4950
4950
|
A,
|
|
4951
4951
|
B,
|
|
4952
|
-
|
|
4952
|
+
ae,
|
|
4953
4953
|
f,
|
|
4954
4954
|
p
|
|
4955
4955
|
]
|
|
@@ -5032,24 +5032,24 @@ const Mi = (t) => ({
|
|
|
5032
5032
|
};
|
|
5033
5033
|
}, [$, f]), xe(() => {
|
|
5034
5034
|
var Me;
|
|
5035
|
-
if (!$ || J.size > 0 ||
|
|
5035
|
+
if (!$ || J.size > 0 || N) return;
|
|
5036
5036
|
const ee = (Me = $.tiebreaker) != null && Me.timeTiebreaker ? "1" : "";
|
|
5037
|
-
if (!(B.size > 0) && !(!!
|
|
5037
|
+
if (!(B.size > 0) && !(!!ae && ae !== ee)) {
|
|
5038
5038
|
$o($.id);
|
|
5039
5039
|
return;
|
|
5040
5040
|
}
|
|
5041
5041
|
za($.id, {
|
|
5042
5042
|
scores: Object.fromEntries(B),
|
|
5043
|
-
goldenGoal:
|
|
5043
|
+
goldenGoal: ae
|
|
5044
5044
|
});
|
|
5045
5045
|
}, [
|
|
5046
5046
|
$,
|
|
5047
5047
|
J.size,
|
|
5048
|
-
|
|
5048
|
+
N,
|
|
5049
5049
|
B,
|
|
5050
|
-
|
|
5050
|
+
ae
|
|
5051
5051
|
]), xe(() => {
|
|
5052
|
-
if (J.size === 0 || !j || Y || !h || G.size > 0 ||
|
|
5052
|
+
if (J.size === 0 || !j || Y || !h || G.size > 0 || le.size > 0 || ae === me.current) return;
|
|
5053
5053
|
const ee = setTimeout(async () => {
|
|
5054
5054
|
Te(!0);
|
|
5055
5055
|
try {
|
|
@@ -5060,13 +5060,13 @@ const Mi = (t) => ({
|
|
|
5060
5060
|
}, 600);
|
|
5061
5061
|
return () => clearTimeout(ee);
|
|
5062
5062
|
}, [
|
|
5063
|
-
|
|
5063
|
+
ae,
|
|
5064
5064
|
J.size,
|
|
5065
5065
|
j,
|
|
5066
5066
|
Y,
|
|
5067
5067
|
h,
|
|
5068
5068
|
G.size,
|
|
5069
|
-
|
|
5069
|
+
le.size,
|
|
5070
5070
|
Ve
|
|
5071
5071
|
]);
|
|
5072
5072
|
const Ke = A.length > 0 ? A.length : 10, Xe = ke(
|
|
@@ -5173,7 +5173,7 @@ const Mi = (t) => ({
|
|
|
5173
5173
|
banners: Dt(l, "below-group-nav")
|
|
5174
5174
|
}
|
|
5175
5175
|
),
|
|
5176
|
-
|
|
5176
|
+
N ? /* @__PURE__ */ e(
|
|
5177
5177
|
r,
|
|
5178
5178
|
{
|
|
5179
5179
|
sx: {
|
|
@@ -5234,12 +5234,12 @@ const Mi = (t) => ({
|
|
|
5234
5234
|
oddsLoading: de,
|
|
5235
5235
|
pointsAlternative: pt,
|
|
5236
5236
|
matchCardBgImageUrl: d,
|
|
5237
|
-
canEdit: J.size > 0 &&
|
|
5238
|
-
isEditing:
|
|
5237
|
+
canEdit: J.size > 0 && se,
|
|
5238
|
+
isEditing: le.has(ee.id),
|
|
5239
5239
|
submitting: ie,
|
|
5240
5240
|
readOnly: ($ == null ? void 0 : $.status) === "PENDING",
|
|
5241
5241
|
lockedByGame: !!$ && $.status !== "OPEN" && $.status !== "PENDING",
|
|
5242
|
-
onStartEdit: () =>
|
|
5242
|
+
onStartEdit: () => D(ee.id),
|
|
5243
5243
|
onCancelEdit: () => oe(
|
|
5244
5244
|
ee.id,
|
|
5245
5245
|
(fe == null ? void 0 : fe.homeScore) ?? 0,
|
|
@@ -5268,7 +5268,7 @@ const Mi = (t) => ({
|
|
|
5268
5268
|
(it = $ == null ? void 0 : $.tiebreaker) != null && it.timeTiebreaker ? /* @__PURE__ */ e(
|
|
5269
5269
|
ya,
|
|
5270
5270
|
{
|
|
5271
|
-
value:
|
|
5271
|
+
value: ae,
|
|
5272
5272
|
onChange: ne,
|
|
5273
5273
|
disabled: !j || Y || be,
|
|
5274
5274
|
loading: be
|
|
@@ -5288,7 +5288,7 @@ const Mi = (t) => ({
|
|
|
5288
5288
|
{
|
|
5289
5289
|
onClick: () => Ve(),
|
|
5290
5290
|
loading: ie,
|
|
5291
|
-
disabled: !
|
|
5291
|
+
disabled: !se,
|
|
5292
5292
|
sx: {
|
|
5293
5293
|
borderRadius: u.xl,
|
|
5294
5294
|
backgroundColor: (Ht = (Ot = a.palette) == null ? void 0 : Ot.primary) == null ? void 0 : Ht.plainColor,
|
|
@@ -5316,7 +5316,7 @@ const Mi = (t) => ({
|
|
|
5316
5316
|
)
|
|
5317
5317
|
] }),
|
|
5318
5318
|
/* @__PURE__ */ e(Mt, { banners: Dt(l, "below-matches") }),
|
|
5319
|
-
h && A.length > 0 && !
|
|
5319
|
+
h && A.length > 0 && !N && $ && ($.status === "SETTLED" || $.status === "CLOSED" || $.status === "CANCELED") && /* @__PURE__ */ c(
|
|
5320
5320
|
r,
|
|
5321
5321
|
{
|
|
5322
5322
|
sx: {
|
|
@@ -5331,7 +5331,7 @@ const Mi = (t) => ({
|
|
|
5331
5331
|
Ca,
|
|
5332
5332
|
{
|
|
5333
5333
|
actualMinute: (Se == null ? void 0 : Se.minute) ?? 0,
|
|
5334
|
-
predictedMinute: J.size > 0 &&
|
|
5334
|
+
predictedMinute: J.size > 0 && ae ? parseInt(ae, 10) : null,
|
|
5335
5335
|
playerName: (Se == null ? void 0 : Se.playerName) ?? "",
|
|
5336
5336
|
playerAvatar: (Se == null ? void 0 : Se.playerAvatar) ?? null,
|
|
5337
5337
|
teamName: (Se == null ? void 0 : Se.teamName) ?? "",
|
|
@@ -5355,7 +5355,7 @@ const Mi = (t) => ({
|
|
|
5355
5355
|
]
|
|
5356
5356
|
}
|
|
5357
5357
|
),
|
|
5358
|
-
h && J.size > 0 && j && !Y && !
|
|
5358
|
+
h && J.size > 0 && j && !Y && !N && /* @__PURE__ */ e(
|
|
5359
5359
|
r,
|
|
5360
5360
|
{
|
|
5361
5361
|
sx: {
|
|
@@ -5730,10 +5730,10 @@ const Mi = (t) => ({
|
|
|
5730
5730
|
xe(() => {
|
|
5731
5731
|
if (!m) return;
|
|
5732
5732
|
const L = (T) => {
|
|
5733
|
-
const
|
|
5734
|
-
if (!
|
|
5733
|
+
const M = u.current;
|
|
5734
|
+
if (!M) return;
|
|
5735
5735
|
const X = typeof T.composedPath == "function" ? T.composedPath() : [];
|
|
5736
|
-
X.includes(
|
|
5736
|
+
X.includes(M) || X.length === 0 && M.contains(T.target) || g(!1);
|
|
5737
5737
|
}, P = (T) => {
|
|
5738
5738
|
T.key === "Escape" && g(!1);
|
|
5739
5739
|
};
|
|
@@ -5745,14 +5745,14 @@ const Mi = (t) => ({
|
|
|
5745
5745
|
(L, P) => Ro(L).min - Ro(P).min
|
|
5746
5746
|
), f = t === "general", h = f ? null : i.find((L) => L.id === t.gameId), b = f ? l("topX.leaderboard.general") : (h == null ? void 0 : h.title) ?? l("topX.leaderboard.general"), C = (L, P) => {
|
|
5747
5747
|
if (!L) return "";
|
|
5748
|
-
const T = new Date(L),
|
|
5748
|
+
const T = new Date(L), M = new Date(P || L), X = a ? oo(a) : void 0, W = new Intl.DateTimeFormat(X, {
|
|
5749
5749
|
day: "numeric",
|
|
5750
5750
|
month: "short"
|
|
5751
5751
|
});
|
|
5752
5752
|
if (typeof W.formatRange == "function")
|
|
5753
|
-
return W.formatRange(T,
|
|
5753
|
+
return W.formatRange(T, M);
|
|
5754
5754
|
const F = W.format(T);
|
|
5755
|
-
return T.getTime() ===
|
|
5755
|
+
return T.getTime() === M.getTime() ? F : `${F} – ${W.format(M)}`;
|
|
5756
5756
|
}, y = ((w = (z = d.palette) == null ? void 0 : z.primary) == null ? void 0 : w.plainColor) ?? d.textPrimary, I = ((R = (d.palette ?? {}).primary) == null ? void 0 : R.softBg) ?? d.surfaceVariant, k = (L) => ({
|
|
5757
5757
|
display: "flex",
|
|
5758
5758
|
alignItems: "center",
|
|
@@ -6033,12 +6033,12 @@ const Mi = (t) => ({
|
|
|
6033
6033
|
] });
|
|
6034
6034
|
}, yr = 10, Ea = ({ template: t }) => {
|
|
6035
6035
|
var H, G;
|
|
6036
|
-
const { t: o } = Re("common"), i = ye(), l = he(), d = ve(), n = we(), s = pn(), p = Rr(), { entityId: a, sdk: m, userIsLoggedIn: g } = gt(), u = ((G = (H = i.palette) == null ? void 0 : H.primary) == null ? void 0 : G.plainColor) ?? i.textPrimary, x = s.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", f = i.textColor ?? i.textPrimary, h = i.surfaceVariant, b = i.outlineEnabledBorder, [C, y] = E([]), [v, I] = E(null), [k, z] = E(null), [w, R] = E(!0), [L, P] = E(null), [T,
|
|
6036
|
+
const { t: o } = Re("common"), i = ye(), l = he(), d = ve(), n = we(), s = pn(), p = Rr(), { entityId: a, sdk: m, userIsLoggedIn: g } = gt(), u = ((G = (H = i.palette) == null ? void 0 : H.primary) == null ? void 0 : G.plainColor) ?? i.textPrimary, x = s.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", f = i.textColor ?? i.textPrimary, h = i.surfaceVariant, b = i.outlineEnabledBorder, [C, y] = E([]), [v, I] = E(null), [k, z] = E(null), [w, R] = E(!0), [L, P] = E(null), [T, M] = E(1), [X, W] = E(1), [F, $] = E("general"), { games: A } = _o(m, t == null ? void 0 : t.gameIds, !!t), J = ke(
|
|
6037
6037
|
() => A.filter((_) => _.status === "SETTLED"),
|
|
6038
6038
|
[A]
|
|
6039
6039
|
);
|
|
6040
6040
|
xe(() => {
|
|
6041
|
-
|
|
6041
|
+
M(1), W(1), I(null), z(null);
|
|
6042
6042
|
}, [a, m, F]), xe(() => {
|
|
6043
6043
|
if (!a || !m || !g) {
|
|
6044
6044
|
z(null), I(null);
|
|
@@ -6049,23 +6049,25 @@ const Mi = (t) => ({
|
|
|
6049
6049
|
leaderboardIds: [F.gameId],
|
|
6050
6050
|
gameType: "TOP_X"
|
|
6051
6051
|
};
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
m.
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
return re ?
|
|
6058
|
-
position: re.position,
|
|
6059
|
-
profileId: re.profileId,
|
|
6060
|
-
profileModel: re.profileModel ?? null,
|
|
6061
|
-
points: re.points
|
|
6062
|
-
} : null;
|
|
6052
|
+
let le = !1;
|
|
6053
|
+
return Promise.all([
|
|
6054
|
+
m.profile.getOwn().getInfo().then((re) => re.id).catch(() => null),
|
|
6055
|
+
m.loyalty.getOwnRankings(_, !0).then((re) => {
|
|
6056
|
+
var D;
|
|
6057
|
+
return ((D = re.data) == null ? void 0 : D[0]) ?? null;
|
|
6063
6058
|
}).catch(() => null)
|
|
6064
|
-
]).then(([
|
|
6065
|
-
z(
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6059
|
+
]).then(([re, D]) => {
|
|
6060
|
+
le || (z(re), I(
|
|
6061
|
+
D && re ? {
|
|
6062
|
+
position: D.position,
|
|
6063
|
+
profileId: re,
|
|
6064
|
+
profileModel: null,
|
|
6065
|
+
points: D.points
|
|
6066
|
+
} : null
|
|
6067
|
+
));
|
|
6068
|
+
}), () => {
|
|
6069
|
+
le = !0;
|
|
6070
|
+
};
|
|
6069
6071
|
}, [a, m, g, F]), xe(() => {
|
|
6070
6072
|
if (!a || !m) return;
|
|
6071
6073
|
let _ = !1;
|
|
@@ -6078,9 +6080,9 @@ const Mi = (t) => ({
|
|
|
6078
6080
|
{ limit: yr, page: T },
|
|
6079
6081
|
!0
|
|
6080
6082
|
)).then((re) => {
|
|
6081
|
-
var oe,
|
|
6083
|
+
var oe, ae;
|
|
6082
6084
|
if (_) return;
|
|
6083
|
-
const
|
|
6085
|
+
const D = (re.data ?? []).map(
|
|
6084
6086
|
(ne) => ({
|
|
6085
6087
|
position: ne.position ?? 0,
|
|
6086
6088
|
profileId: ne.profileId ?? "",
|
|
@@ -6088,7 +6090,7 @@ const Mi = (t) => ({
|
|
|
6088
6090
|
points: ne.points ?? 0
|
|
6089
6091
|
})
|
|
6090
6092
|
);
|
|
6091
|
-
y(
|
|
6093
|
+
y(D), W(((ae = (oe = re.meta) == null ? void 0 : oe.pagination) == null ? void 0 : ae.numberOfPages) ?? 1);
|
|
6092
6094
|
}).catch((re) => {
|
|
6093
6095
|
_ || P(rt(re, m));
|
|
6094
6096
|
}).finally(() => {
|
|
@@ -6215,7 +6217,7 @@ const Mi = (t) => ({
|
|
|
6215
6217
|
textAlign: "center",
|
|
6216
6218
|
marginY: l.md
|
|
6217
6219
|
}
|
|
6218
|
-
},
|
|
6220
|
+
}, N = k != null && C.some((_) => _.profileId === k), V = J.length > 0;
|
|
6219
6221
|
let B;
|
|
6220
6222
|
return w ? B = /* @__PURE__ */ e(oi, { my: 10 }) : L ? B = /* @__PURE__ */ e(S, { level: "body-lg", sx: O.noLeaderboardText, children: o("topX.errors.loadFailed") }) : C.length === 0 ? B = /* @__PURE__ */ e(S, { level: "body-lg", sx: O.noLeaderboardText, children: o("leaderboard.noLeaderboardAvailable") }) : B = /* @__PURE__ */ c(Ee, { children: [
|
|
6221
6223
|
/* @__PURE__ */ e(Wo, { sx: O.tableContainer, children: /* @__PURE__ */ c(
|
|
@@ -6233,7 +6235,7 @@ const Mi = (t) => ({
|
|
|
6233
6235
|
/* @__PURE__ */ e("th", { style: O.headerCellPoints, children: p ? "🎯" : o("leaderboard.points") })
|
|
6234
6236
|
] }) }),
|
|
6235
6237
|
/* @__PURE__ */ c("tbody", { children: [
|
|
6236
|
-
v && !
|
|
6238
|
+
v && !N && /* @__PURE__ */ c("tr", { style: O.userRow, children: [
|
|
6237
6239
|
/* @__PURE__ */ e("td", { style: O.tableCellPosition, children: /* @__PURE__ */ c(S, { sx: O.positionText, children: [
|
|
6238
6240
|
"#",
|
|
6239
6241
|
v.position
|
|
@@ -6245,12 +6247,12 @@ const Mi = (t) => ({
|
|
|
6245
6247
|
/* @__PURE__ */ e("td", { style: O.tableCellPoints, children: /* @__PURE__ */ e(S, { sx: O.pointsText, children: v.points }) })
|
|
6246
6248
|
] }),
|
|
6247
6249
|
C.map((_) => {
|
|
6248
|
-
var re,
|
|
6249
|
-
const
|
|
6250
|
+
var re, D, oe, ae;
|
|
6251
|
+
const le = k != null && _.profileId === k;
|
|
6250
6252
|
return /* @__PURE__ */ c(
|
|
6251
6253
|
"tr",
|
|
6252
6254
|
{
|
|
6253
|
-
style:
|
|
6255
|
+
style: le ? O.userRow : void 0,
|
|
6254
6256
|
children: [
|
|
6255
6257
|
/* @__PURE__ */ e("td", { style: O.tableCellPosition, children: /* @__PURE__ */ c(S, { sx: O.positionText, children: [
|
|
6256
6258
|
"#",
|
|
@@ -6262,10 +6264,10 @@ const Mi = (t) => ({
|
|
|
6262
6264
|
{
|
|
6263
6265
|
src: ((re = _.profileModel) == null ? void 0 : re.avatar) || void 0,
|
|
6264
6266
|
sx: O.leaderboardAvatar,
|
|
6265
|
-
children: (
|
|
6267
|
+
children: (D = _.profileModel) != null && D.avatar ? /* @__PURE__ */ e(Ee, {}) : /* @__PURE__ */ e(Xt, { sx: O.avatarIcon })
|
|
6266
6268
|
}
|
|
6267
6269
|
),
|
|
6268
|
-
/* @__PURE__ */ e(S, { sx: O.nameText, children:
|
|
6270
|
+
/* @__PURE__ */ e(S, { sx: O.nameText, children: le ? o("leaderboard.you") : ((oe = _.profileModel) == null ? void 0 : oe.nickname) || ((ae = _.profileModel) == null ? void 0 : ae.name) || o("leaderboard.anonymous") })
|
|
6269
6271
|
] }) }),
|
|
6270
6272
|
/* @__PURE__ */ e("td", { style: O.tableCellPoints, children: /* @__PURE__ */ e(S, { sx: O.pointsText, children: _.points }) })
|
|
6271
6273
|
]
|
|
@@ -6282,7 +6284,7 @@ const Mi = (t) => ({
|
|
|
6282
6284
|
{
|
|
6283
6285
|
count: X,
|
|
6284
6286
|
page: T,
|
|
6285
|
-
onChange:
|
|
6287
|
+
onChange: M
|
|
6286
6288
|
}
|
|
6287
6289
|
)
|
|
6288
6290
|
] }), /* @__PURE__ */ c(
|
|
@@ -6320,12 +6322,12 @@ const Mi = (t) => ({
|
|
|
6320
6322
|
if (!u) return;
|
|
6321
6323
|
const T = (X) => {
|
|
6322
6324
|
X.key === "Escape" && x(!1);
|
|
6323
|
-
},
|
|
6325
|
+
}, M = (X) => {
|
|
6324
6326
|
const W = X.composedPath();
|
|
6325
6327
|
!W.includes(b.current) && !W.includes(C.current) && x(!1);
|
|
6326
6328
|
};
|
|
6327
|
-
return document.addEventListener("keydown", T), document.addEventListener("mousedown",
|
|
6328
|
-
document.removeEventListener("keydown", T), document.removeEventListener("mousedown",
|
|
6329
|
+
return document.addEventListener("keydown", T), document.addEventListener("mousedown", M), () => {
|
|
6330
|
+
document.removeEventListener("keydown", T), document.removeEventListener("mousedown", M);
|
|
6329
6331
|
};
|
|
6330
6332
|
}, [u]);
|
|
6331
6333
|
const y = ((R = (w = s.palette) == null ? void 0 : w.primary) == null ? void 0 : R.plainColor) ?? "#1A77D2", v = ((P = (L = s.palette) == null ? void 0 : L.danger) == null ? void 0 : P.plainColor) ?? "#F44336", I = (T) => {
|
|
@@ -6359,8 +6361,8 @@ const Mi = (t) => ({
|
|
|
6359
6361
|
r,
|
|
6360
6362
|
{
|
|
6361
6363
|
onClick: (T) => {
|
|
6362
|
-
var
|
|
6363
|
-
(
|
|
6364
|
+
var M, X;
|
|
6365
|
+
(M = C.current) != null && M.contains(T.target) || (X = b.current) != null && X.contains(T.target) || o(t);
|
|
6364
6366
|
},
|
|
6365
6367
|
sx: {
|
|
6366
6368
|
display: "flex",
|
|
@@ -6533,7 +6535,7 @@ const Mi = (t) => ({
|
|
|
6533
6535
|
component: "button",
|
|
6534
6536
|
type: "button",
|
|
6535
6537
|
onClick: (T) => {
|
|
6536
|
-
T.stopPropagation(), x((
|
|
6538
|
+
T.stopPropagation(), x((M) => !M);
|
|
6537
6539
|
},
|
|
6538
6540
|
"aria-label": "League actions",
|
|
6539
6541
|
"aria-expanded": u,
|
|
@@ -7342,10 +7344,10 @@ const Mi = (t) => ({
|
|
|
7342
7344
|
}
|
|
7343
7345
|
);
|
|
7344
7346
|
if (y.length === 0) return null;
|
|
7345
|
-
const I = y.map((O) => O.points), k = Math.max(...I, 1), z = 100, w = 30, R = (O) => y.length > 1 ? O / (y.length - 1) * z : z / 2, L = (O) => l ? z - R(O) : R(O), P = I.map((O,
|
|
7346
|
-
x: R(
|
|
7347
|
+
const I = y.map((O) => O.points), k = Math.max(...I, 1), z = 100, w = 30, R = (O) => y.length > 1 ? O / (y.length - 1) * z : z / 2, L = (O) => l ? z - R(O) : R(O), P = I.map((O, N) => ({
|
|
7348
|
+
x: R(N),
|
|
7347
7349
|
y: w - O / k * (w - 6) - 3
|
|
7348
|
-
})), T = P.map((O,
|
|
7350
|
+
})), T = P.map((O, N) => `${N === 0 ? "M" : "L"}${O.x.toFixed(1)},${O.y.toFixed(1)}`).join(" "), M = y.length > 1 ? `${T} L${z},${w} L0,${w} Z` : `M${R(0).toFixed(1)},${P[0].y.toFixed(1)} L${z},${w} L0,${w} Z`, X = I.lastIndexOf(k), W = y.length - 1;
|
|
7349
7351
|
return /* @__PURE__ */ c(r, { sx: v, children: [
|
|
7350
7352
|
/* @__PURE__ */ c(r, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", gap: a.xs }, children: [
|
|
7351
7353
|
/* @__PURE__ */ e(
|
|
@@ -7419,7 +7421,7 @@ const Mi = (t) => ({
|
|
|
7419
7421
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: u, stopOpacity: "0.22" }),
|
|
7420
7422
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: u, stopOpacity: "0" })
|
|
7421
7423
|
] }) }),
|
|
7422
|
-
/* @__PURE__ */ e("path", { d:
|
|
7424
|
+
/* @__PURE__ */ e("path", { d: M, fill: "url(#lastRoundsSpark)" }),
|
|
7423
7425
|
/* @__PURE__ */ e(
|
|
7424
7426
|
"path",
|
|
7425
7427
|
{
|
|
@@ -7435,8 +7437,8 @@ const Mi = (t) => ({
|
|
|
7435
7437
|
]
|
|
7436
7438
|
}
|
|
7437
7439
|
),
|
|
7438
|
-
P.map((O,
|
|
7439
|
-
const V =
|
|
7440
|
+
P.map((O, N) => {
|
|
7441
|
+
const V = N === X ? 9 : N === W ? 7 : 6;
|
|
7440
7442
|
return /* @__PURE__ */ e(
|
|
7441
7443
|
r,
|
|
7442
7444
|
{
|
|
@@ -7448,13 +7450,13 @@ const Mi = (t) => ({
|
|
|
7448
7450
|
width: V,
|
|
7449
7451
|
height: V,
|
|
7450
7452
|
borderRadius: "50%",
|
|
7451
|
-
backgroundColor:
|
|
7452
|
-
border: `1.5px solid ${
|
|
7453
|
-
boxShadow:
|
|
7453
|
+
backgroundColor: N === X ? x : p.surface,
|
|
7454
|
+
border: `1.5px solid ${N === X ? x : u}`,
|
|
7455
|
+
boxShadow: N === X ? `0 0 0 2px ${x}33` : "none",
|
|
7454
7456
|
pointerEvents: "none"
|
|
7455
7457
|
}
|
|
7456
7458
|
},
|
|
7457
|
-
|
|
7459
|
+
N
|
|
7458
7460
|
);
|
|
7459
7461
|
})
|
|
7460
7462
|
] }),
|
|
@@ -7463,18 +7465,18 @@ const Mi = (t) => ({
|
|
|
7463
7465
|
{
|
|
7464
7466
|
sx: { position: "relative", height: "10px", mt: "3px" },
|
|
7465
7467
|
onMouseLeave: () => n(null),
|
|
7466
|
-
children: y.map((O,
|
|
7468
|
+
children: y.map((O, N) => {
|
|
7467
7469
|
const V = O.label.length > 6, B = V ? O.label.slice(0, 6) + "…" : O.label;
|
|
7468
7470
|
return /* @__PURE__ */ c(
|
|
7469
7471
|
r,
|
|
7470
7472
|
{
|
|
7471
7473
|
component: "span",
|
|
7472
|
-
sx: { position: "absolute", left: `${L(
|
|
7473
|
-
onMouseEnter: () => V && n(
|
|
7474
|
-
onTouchStart: () => V && n(
|
|
7474
|
+
sx: { position: "absolute", left: `${L(N)}%`, transform: "translateX(-50%)" },
|
|
7475
|
+
onMouseEnter: () => V && n(N),
|
|
7476
|
+
onTouchStart: () => V && n(N),
|
|
7475
7477
|
onTouchEnd: () => V && setTimeout(() => n(null), 2e3),
|
|
7476
7478
|
children: [
|
|
7477
|
-
d ===
|
|
7479
|
+
d === N && V && /* @__PURE__ */ e(
|
|
7478
7480
|
r,
|
|
7479
7481
|
{
|
|
7480
7482
|
sx: {
|
|
@@ -7503,8 +7505,8 @@ const Mi = (t) => ({
|
|
|
7503
7505
|
fontFamily: g.primary,
|
|
7504
7506
|
fontSize: "0.5em",
|
|
7505
7507
|
lineHeight: 1,
|
|
7506
|
-
color:
|
|
7507
|
-
fontWeight:
|
|
7508
|
+
color: N === X ? x : h,
|
|
7509
|
+
fontWeight: N === X ? 700 : 400,
|
|
7508
7510
|
whiteSpace: "nowrap",
|
|
7509
7511
|
cursor: V ? "help" : void 0
|
|
7510
7512
|
},
|
|
@@ -7513,7 +7515,7 @@ const Mi = (t) => ({
|
|
|
7513
7515
|
)
|
|
7514
7516
|
]
|
|
7515
7517
|
},
|
|
7516
|
-
|
|
7518
|
+
N
|
|
7517
7519
|
);
|
|
7518
7520
|
})
|
|
7519
7521
|
}
|
|
@@ -7587,21 +7589,21 @@ function Fo({
|
|
|
7587
7589
|
})[G], P = (G) => {
|
|
7588
7590
|
var _;
|
|
7589
7591
|
return ((_ = G.shortName) == null ? void 0 : _.trim()) || G.name;
|
|
7590
|
-
}, T = (G) => G != null ? G > 0 ? `${$r(`+${G}`)} ${h("topX.play.pts")}` : `0 ${h("topX.play.pts")}` : null,
|
|
7592
|
+
}, T = (G) => G != null ? G > 0 ? `${$r(`+${G}`)} ${h("topX.play.pts")}` : `0 ${h("topX.play.pts")}` : null, M = (G) => {
|
|
7591
7593
|
const _ = k.current[G];
|
|
7592
7594
|
_ && I({ idx: G, rect: _.getBoundingClientRect() });
|
|
7593
|
-
}, X = (v == null ? void 0 : v.idx) ?? -1, W = X >= 0 ? t[X] : null, F = X >= 0 ? o == null ? void 0 : o[X] : void 0, $ = W ? R(W.outcome) : p, A = F ? R(F.outcome) : p, J = (W == null ? void 0 : W.outcome) === "pending", O = b && F ? 196 : 168,
|
|
7595
|
+
}, X = (v == null ? void 0 : v.idx) ?? -1, W = X >= 0 ? t[X] : null, F = X >= 0 ? o == null ? void 0 : o[X] : void 0, $ = W ? R(W.outcome) : p, A = F ? R(F.outcome) : p, J = (W == null ? void 0 : W.outcome) === "pending", O = b && F ? 196 : 168, N = v ? v.rect.left + v.rect.width / 2 : 0, V = typeof window < "u" ? Math.max(O / 2 + 8, Math.min(N, window.innerWidth - O / 2 - 8)) : N, B = v ? v.rect.top - 10 : 0, H = w && typeof window < "u" ? window.innerWidth - V : V;
|
|
7594
7596
|
return /* @__PURE__ */ c(r, { sx: { display: "flex", gap: y.xs, alignItems: "center" }, onMouseLeave: () => I(null), children: [
|
|
7595
7597
|
t.map((G, _) => /* @__PURE__ */ e(
|
|
7596
7598
|
r,
|
|
7597
7599
|
{
|
|
7598
7600
|
component: "span",
|
|
7599
|
-
ref: (
|
|
7600
|
-
k.current[_] =
|
|
7601
|
+
ref: (le) => {
|
|
7602
|
+
k.current[_] = le;
|
|
7601
7603
|
},
|
|
7602
7604
|
sx: { display: "inline-flex", cursor: "pointer" },
|
|
7603
|
-
onMouseEnter: () =>
|
|
7604
|
-
onTouchStart: () =>
|
|
7605
|
+
onMouseEnter: () => M(_),
|
|
7606
|
+
onTouchStart: () => M(_),
|
|
7605
7607
|
onTouchEnd: () => setTimeout(() => I(null), 2500),
|
|
7606
7608
|
children: /* @__PURE__ */ e(
|
|
7607
7609
|
Ha,
|
|
@@ -7974,7 +7976,7 @@ function ja({
|
|
|
7974
7976
|
onCompareToggle: z,
|
|
7975
7977
|
isSelf: w = !1
|
|
7976
7978
|
}) {
|
|
7977
|
-
const R = o >= 60 ? s : o >= 30 ? p : a, L = i > 0, [P, T] = E(0), [
|
|
7979
|
+
const R = o >= 60 ? s : o >= 30 ? p : a, L = i > 0, [P, T] = E(0), [M, X] = E(0), [W, F] = E(0), [$, A] = E(!1);
|
|
7978
7980
|
xe(() => {
|
|
7979
7981
|
if (t || y) {
|
|
7980
7982
|
T(0);
|
|
@@ -7997,7 +7999,7 @@ function ja({
|
|
|
7997
7999
|
const H = setTimeout(() => F(o), 150);
|
|
7998
8000
|
return () => clearTimeout(H);
|
|
7999
8001
|
}, [o, y]);
|
|
8000
|
-
const J = P / 100 * br, O =
|
|
8002
|
+
const J = P / 100 * br, O = M / 100 * uo, N = W / 100 * uo, V = [
|
|
8001
8003
|
{
|
|
8002
8004
|
value: `${i}`,
|
|
8003
8005
|
label: C("topX.userPredictions.streak"),
|
|
@@ -8226,7 +8228,7 @@ function ja({
|
|
|
8226
8228
|
stroke: a,
|
|
8227
8229
|
strokeWidth: "3.5",
|
|
8228
8230
|
strokeLinecap: "round",
|
|
8229
|
-
strokeDasharray: `${
|
|
8231
|
+
strokeDasharray: `${N} ${uo}`,
|
|
8230
8232
|
style: { transition: "stroke-dasharray 1s cubic-bezier(0.34, 1.56, 0.64, 1)" }
|
|
8231
8233
|
}
|
|
8232
8234
|
)
|
|
@@ -8272,27 +8274,27 @@ function ja({
|
|
|
8272
8274
|
selfNum: v.total,
|
|
8273
8275
|
theirNum: n
|
|
8274
8276
|
}
|
|
8275
|
-
].map((
|
|
8276
|
-
const
|
|
8277
|
+
].map((le, re) => {
|
|
8278
|
+
const D = re % 2 === 1, oe = re >= 2, ae = le.selfNum > le.theirNum, ne = le.theirNum > le.selfNum;
|
|
8277
8279
|
return /* @__PURE__ */ c(
|
|
8278
8280
|
r,
|
|
8279
8281
|
{
|
|
8280
8282
|
sx: {
|
|
8281
|
-
borderRight:
|
|
8283
|
+
borderRight: D ? "none" : `1px solid ${x}`,
|
|
8282
8284
|
borderTop: oe ? `1px solid ${x}` : "none",
|
|
8283
8285
|
px: h.sm,
|
|
8284
8286
|
py: "10px"
|
|
8285
8287
|
},
|
|
8286
8288
|
children: [
|
|
8287
8289
|
/* @__PURE__ */ c(r, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: "5px" }, children: [
|
|
8288
|
-
/* @__PURE__ */ e(S, { sx: { fontFamily: f.primary, fontSize: "0.5em", fontWeight: 700, color: u, letterSpacing: "0.1em", textTransform: "uppercase" }, children:
|
|
8289
|
-
|
|
8290
|
+
/* @__PURE__ */ e(S, { sx: { fontFamily: f.primary, fontSize: "0.5em", fontWeight: 700, color: u, letterSpacing: "0.1em", textTransform: "uppercase" }, children: le.label }),
|
|
8291
|
+
ae && /* @__PURE__ */ e(r, { sx: { px: "4px", py: "1px", borderRadius: "3px", backgroundColor: `${s}15`, color: s, fontSize: "0.4375em", fontWeight: 800, lineHeight: 1 }, children: "▲" }),
|
|
8290
8292
|
ne && /* @__PURE__ */ e(r, { sx: { px: "4px", py: "1px", borderRadius: "3px", backgroundColor: `${a}12`, color: a, fontSize: "0.4375em", fontWeight: 800, lineHeight: 1 }, children: "▼" })
|
|
8291
8293
|
] }),
|
|
8292
8294
|
/* @__PURE__ */ c(r, { sx: { display: "flex", alignItems: "baseline", gap: "6px" }, children: [
|
|
8293
|
-
/* @__PURE__ */ e(S, { sx: { fontFamily: f.primary, fontSize: "1.125em", fontWeight: 900, color: s, fontVariantNumeric: "tabular-nums", lineHeight: 1 }, children:
|
|
8295
|
+
/* @__PURE__ */ e(S, { sx: { fontFamily: f.primary, fontSize: "1.125em", fontWeight: 900, color: s, fontVariantNumeric: "tabular-nums", lineHeight: 1 }, children: le.selfVal }),
|
|
8294
8296
|
/* @__PURE__ */ e(r, { sx: { flex: 1, height: "1px", backgroundColor: `${x}70` } }),
|
|
8295
|
-
/* @__PURE__ */ e(S, { sx: { fontFamily: f.primary, fontSize: "1.125em", fontWeight: 900, color: a, fontVariantNumeric: "tabular-nums", lineHeight: 1, textAlign: "right" }, children:
|
|
8297
|
+
/* @__PURE__ */ e(S, { sx: { fontFamily: f.primary, fontSize: "1.125em", fontWeight: 900, color: a, fontVariantNumeric: "tabular-nums", lineHeight: 1, textAlign: "right" }, children: le.theirVal })
|
|
8296
8298
|
] })
|
|
8297
8299
|
]
|
|
8298
8300
|
},
|
|
@@ -8466,7 +8468,7 @@ function ja({
|
|
|
8466
8468
|
gridTemplateRows: "1fr 1fr"
|
|
8467
8469
|
},
|
|
8468
8470
|
children: V.map((H, G) => {
|
|
8469
|
-
const _ = G % 2 === 1,
|
|
8471
|
+
const _ = G % 2 === 1, le = G >= 2;
|
|
8470
8472
|
return /* @__PURE__ */ c(
|
|
8471
8473
|
r,
|
|
8472
8474
|
{
|
|
@@ -8480,7 +8482,7 @@ function ja({
|
|
|
8480
8482
|
px: h["2xs"],
|
|
8481
8483
|
gap: "3px",
|
|
8482
8484
|
borderLeft: _ ? `1px solid ${x}` : "none",
|
|
8483
|
-
borderTop:
|
|
8485
|
+
borderTop: le ? `1px solid ${x}` : "none"
|
|
8484
8486
|
},
|
|
8485
8487
|
children: [
|
|
8486
8488
|
/* @__PURE__ */ e(
|
|
@@ -8494,7 +8496,7 @@ function ja({
|
|
|
8494
8496
|
height: "2px",
|
|
8495
8497
|
backgroundColor: H.accentColor,
|
|
8496
8498
|
borderRadius: "0 0 2px 2px",
|
|
8497
|
-
opacity:
|
|
8499
|
+
opacity: le ? 0.35 : 0.6
|
|
8498
8500
|
}
|
|
8499
8501
|
}
|
|
8500
8502
|
),
|
|
@@ -8848,7 +8850,7 @@ const Ka = Pe.memo(function({
|
|
|
8848
8850
|
const [R, L] = E(!1), P = i.some((F) => F.played), T = i.reduce(
|
|
8849
8851
|
(F, $) => F + ($.played && $.points != null ? $.points : 0),
|
|
8850
8852
|
0
|
|
8851
|
-
),
|
|
8853
|
+
), M = s ? i.reduce((F, $) => F + ($.played ? $.selfPoints ?? 0 : 0), 0) : 0, X = s && M > T, W = s && T > M;
|
|
8852
8854
|
return /* @__PURE__ */ c(
|
|
8853
8855
|
r,
|
|
8854
8856
|
{
|
|
@@ -9015,7 +9017,7 @@ const Ka = Pe.memo(function({
|
|
|
9015
9017
|
color: X ? x : `${x}70`,
|
|
9016
9018
|
borderRight: `1px solid ${b}`
|
|
9017
9019
|
},
|
|
9018
|
-
children:
|
|
9020
|
+
children: M
|
|
9019
9021
|
}
|
|
9020
9022
|
),
|
|
9021
9023
|
/* @__PURE__ */ e(
|
|
@@ -9153,7 +9155,7 @@ function qa({
|
|
|
9153
9155
|
partial: `${s}18`,
|
|
9154
9156
|
incorrect: `${p}14`,
|
|
9155
9157
|
pending: x
|
|
9156
|
-
}[t.outcome], L = o && t.played ? t.selfPoints !== null ? t.selfPoints : Ya(t.selfPrediction, t.result) : null, P = o && t.played ? t.points ?? 0 : null, T = t.played && L != null && P != null && L > P,
|
|
9158
|
+
}[t.outcome], L = o && t.played ? t.selfPoints !== null ? t.selfPoints : Ya(t.selfPrediction, t.result) : null, P = o && t.played ? t.points ?? 0 : null, T = t.played && L != null && P != null && L > P, M = t.played && L != null && P != null && P > L;
|
|
9157
9159
|
return /* @__PURE__ */ c(
|
|
9158
9160
|
r,
|
|
9159
9161
|
{
|
|
@@ -9281,7 +9283,7 @@ function qa({
|
|
|
9281
9283
|
p: "6px 8px",
|
|
9282
9284
|
borderRadius: b.xs,
|
|
9283
9285
|
backgroundColor: `${n}10`,
|
|
9284
|
-
border: `1.5px solid ${T ? `${n}55` :
|
|
9286
|
+
border: `1.5px solid ${T ? `${n}55` : M ? `${n}20` : `${n}32`}`
|
|
9285
9287
|
},
|
|
9286
9288
|
children: [
|
|
9287
9289
|
/* @__PURE__ */ e(
|
|
@@ -9345,7 +9347,7 @@ function qa({
|
|
|
9345
9347
|
p: "6px 8px",
|
|
9346
9348
|
borderRadius: b.xs,
|
|
9347
9349
|
backgroundColor: `${p}08`,
|
|
9348
|
-
border: `1.5px solid ${
|
|
9350
|
+
border: `1.5px solid ${M ? `${p}55` : T ? `${p}18` : `${p}28`}`
|
|
9349
9351
|
},
|
|
9350
9352
|
children: [
|
|
9351
9353
|
/* @__PURE__ */ e(
|
|
@@ -9640,7 +9642,7 @@ function Za({
|
|
|
9640
9642
|
t: z,
|
|
9641
9643
|
isSelf: w
|
|
9642
9644
|
}) {
|
|
9643
|
-
const [R, L] = E(/* @__PURE__ */ new Set()), [P, T] = E(/* @__PURE__ */ new Set()),
|
|
9645
|
+
const [R, L] = E(/* @__PURE__ */ new Set()), [P, T] = E(/* @__PURE__ */ new Set()), M = ce((F) => {
|
|
9644
9646
|
T(($) => {
|
|
9645
9647
|
const A = new Set($);
|
|
9646
9648
|
return A.has(F) ? A.delete(F) : A.add(F), A;
|
|
@@ -9887,7 +9889,7 @@ function Za({
|
|
|
9887
9889
|
count: F.matches.length
|
|
9888
9890
|
}
|
|
9889
9891
|
),
|
|
9890
|
-
onCompareToggle: w ? void 0 : () =>
|
|
9892
|
+
onCompareToggle: w ? void 0 : () => M(F.round),
|
|
9891
9893
|
isSelf: w,
|
|
9892
9894
|
compareTooltip: z("topX.userPredictions.compareWith")
|
|
9893
9895
|
}
|
|
@@ -9977,8 +9979,8 @@ const Qa = ({
|
|
|
9977
9979
|
theirAvatar: n,
|
|
9978
9980
|
theirPoints: s
|
|
9979
9981
|
}) => {
|
|
9980
|
-
var P, T,
|
|
9981
|
-
const { t: p } = Re("common"), a = ye(), m = he(), g = ve(), u = we(), x = ((T = (P = a.palette) == null ? void 0 : P.primary) == null ? void 0 : T.plainColor) ?? "#1A77D2", f = ((X = (
|
|
9982
|
+
var P, T, M, X, W, F;
|
|
9983
|
+
const { t: p } = Re("common"), a = ye(), m = he(), g = ve(), u = we(), x = ((T = (P = a.palette) == null ? void 0 : P.primary) == null ? void 0 : T.plainColor) ?? "#1A77D2", f = ((X = (M = a.palette) == null ? void 0 : M.success) == null ? void 0 : X.plainColor) ?? "#4CAF50", h = ((F = (W = a.palette) == null ? void 0 : W.danger) == null ? void 0 : F.plainColor) ?? "#F44336", b = a.textSecondary ?? "#757575", C = a.textTertiary ?? a.textSecondary ?? "#9E9E9E", y = a.outlineEnabledBorder ?? "#E0E0E0", v = t.selfBetter + t.theyBetter + t.tied, I = l - s, k = I > 0 ? "self" : I < 0 ? "they" : "tied", z = mo(t.selfBetter, 900), w = mo(t.theyBetter, 900), R = mo(t.tied, 900), L = mo(Math.abs(I), 1100);
|
|
9982
9984
|
return /* @__PURE__ */ c(
|
|
9983
9985
|
r,
|
|
9984
9986
|
{
|
|
@@ -10237,21 +10239,21 @@ function ts(t, o, i, l) {
|
|
|
10237
10239
|
const s = ((u = n.predictionModel) == null ? void 0 : u.fixtures) ?? [], p = ((x = n.predictionModel) == null ? void 0 : x.gameInstanceId) ?? null, a = p ? i.get(p) ?? null : null, m = (a == null ? void 0 : a.title) || p || "—";
|
|
10238
10240
|
let g = Jr(a);
|
|
10239
10241
|
g === 0 && p && (g = String(p).split("").reduce((f, h) => f * 31 + h.charCodeAt(0) >>> 0, 0)), s.forEach((f) => {
|
|
10240
|
-
var P, T,
|
|
10241
|
-
const h = f.matchId ?? ((P = f.matchModel) == null ? void 0 : P.id) ?? String(Math.random()), b = `${n.predictionId}::${h}`, C = Kr((T = f.prediction) == null ? void 0 : T.value), y = qr((
|
|
10242
|
+
var P, T, M, X, W, F, $, A, J, O, N, V, B, H, G, _, le, re, D, oe, ae, ne, me, be, Te, Se, Fe;
|
|
10243
|
+
const h = f.matchId ?? ((P = f.matchModel) == null ? void 0 : P.id) ?? String(Math.random()), b = `${n.predictionId}::${h}`, C = Kr((T = f.prediction) == null ? void 0 : T.value), y = qr((M = f.result) == null ? void 0 : M.outcome), v = y !== "pending", I = ((F = (W = (X = f.matchModel) == null ? void 0 : X.scores) == null ? void 0 : W.ftScore) == null ? void 0 : F.homeGoals) ?? null, k = ((J = (A = ($ = f.matchModel) == null ? void 0 : $.scores) == null ? void 0 : A.ftScore) == null ? void 0 : J.awayGoals) ?? null, z = v && I != null && k != null ? { home: I, away: k } : null, w = ((O = f.matchModel) == null ? void 0 : O.kickoffAt) ?? null, { kickoff: R, dateLabel: L } = es(w, l);
|
|
10242
10244
|
d.push({
|
|
10243
10245
|
id: b,
|
|
10244
10246
|
matchId: h,
|
|
10245
10247
|
round: g,
|
|
10246
10248
|
roundLabel: m,
|
|
10247
10249
|
homeTeam: {
|
|
10248
|
-
name: ((V = (
|
|
10250
|
+
name: ((V = (N = f.matchModel) == null ? void 0 : N.homeTeam) == null ? void 0 : V.name) ?? "—",
|
|
10249
10251
|
shortName: ((H = (B = f.matchModel) == null ? void 0 : B.homeTeam) == null ? void 0 : H.shortName) ?? null,
|
|
10250
|
-
logo: ((
|
|
10252
|
+
logo: ((le = (_ = (G = f.matchModel) == null ? void 0 : G.homeTeam) == null ? void 0 : _.assets) == null ? void 0 : le.logo) ?? null
|
|
10251
10253
|
},
|
|
10252
10254
|
awayTeam: {
|
|
10253
|
-
name: ((
|
|
10254
|
-
shortName: ((
|
|
10255
|
+
name: ((D = (re = f.matchModel) == null ? void 0 : re.awayTeam) == null ? void 0 : D.name) ?? "—",
|
|
10256
|
+
shortName: ((ae = (oe = f.matchModel) == null ? void 0 : oe.awayTeam) == null ? void 0 : ae.shortName) ?? null,
|
|
10255
10257
|
logo: ((be = (me = (ne = f.matchModel) == null ? void 0 : ne.awayTeam) == null ? void 0 : me.assets) == null ? void 0 : be.logo) ?? null
|
|
10256
10258
|
},
|
|
10257
10259
|
kickoff: R,
|
|
@@ -10439,14 +10441,14 @@ const ds = ({
|
|
|
10439
10441
|
currentUserPoints: h = 0
|
|
10440
10442
|
}) => {
|
|
10441
10443
|
var it, Ot, Ht, Vt, jt, _t, Yt, Gt;
|
|
10442
|
-
const { t: b } = Re("common"), C = ye(), y = he(), v = ve(), I = we(), k = Rr(), { shadowRootElement: z, language: w } = zt($t), { sdk: R, showOdds: L, odds: P } = gt(), { template: T } = Ur(l, R), { games:
|
|
10444
|
+
const { t: b } = Re("common"), C = ye(), y = he(), v = ve(), I = we(), k = Rr(), { shadowRootElement: z, language: w } = zt($t), { sdk: R, showOdds: L, odds: P } = gt(), { template: T } = Ur(l, R), { games: M } = _o(
|
|
10443
10445
|
R,
|
|
10444
10446
|
T == null ? void 0 : T.gameIds,
|
|
10445
10447
|
!!T
|
|
10446
10448
|
), X = ke(() => {
|
|
10447
10449
|
const te = /* @__PURE__ */ new Map();
|
|
10448
|
-
return
|
|
10449
|
-
}, [
|
|
10450
|
+
return M.forEach((ge) => te.set(ge.id, ge)), te;
|
|
10451
|
+
}, [M]), W = ((Ot = (it = C.palette) == null ? void 0 : it.primary) == null ? void 0 : Ot.plainColor) ?? "#1A77D2", F = ((Vt = (Ht = C.palette) == null ? void 0 : Ht.success) == null ? void 0 : Vt.plainColor) ?? "#4CAF50", $ = ((_t = (jt = C.palette) == null ? void 0 : jt.warning) == null ? void 0 : _t.plainColor) ?? "#DC6803", A = ((Gt = (Yt = C.palette) == null ? void 0 : Yt.danger) == null ? void 0 : Gt.plainColor) ?? "#F44336", J = C.textPrimary ?? "#212121", O = C.textSecondary ?? "#757575", N = C.textTertiary ?? C.textSecondary ?? "#9E9E9E", V = C.surface ?? "#FFFFFF", B = C.surfaceVariant ?? "#F5F5F5", H = C.outlineEnabledBorder ?? "#E0E0E0", G = `${H}88`, [_, le] = E(/* @__PURE__ */ new Map()), [re, D] = E([]), [oe, ae] = E(!1), [ne, me] = E("all"), [be, Te] = E("profile"), [Se, Fe] = E(!1), [Ue, Ne] = E(0), [ie, Ae] = E(!1), [We, qe] = E(!1), Ze = Ge(null), _e = Ge(null), Be = ke(
|
|
10450
10452
|
() => ts(
|
|
10451
10453
|
re,
|
|
10452
10454
|
_,
|
|
@@ -10512,7 +10514,7 @@ const ds = ({
|
|
|
10512
10514
|
};
|
|
10513
10515
|
xe(() => {
|
|
10514
10516
|
if (!t || !n) return;
|
|
10515
|
-
|
|
10517
|
+
D([]), le(/* @__PURE__ */ new Map()), me("all"), Te("profile"), Fe(!1), ae(!0);
|
|
10516
10518
|
const te = Ie ? [n] : [n, ...u ? [u] : []], ge = async () => {
|
|
10517
10519
|
var ot, nt;
|
|
10518
10520
|
const et = await R.privateLeagues.getPredictions(i, {
|
|
@@ -10542,9 +10544,9 @@ const ds = ({
|
|
|
10542
10544
|
), ut = !Ie && u ? $e(
|
|
10543
10545
|
et.filter((nt) => nt.profileId === u)
|
|
10544
10546
|
) : dt, ot = os(ut);
|
|
10545
|
-
|
|
10547
|
+
D(dt), le(ot);
|
|
10546
10548
|
} finally {
|
|
10547
|
-
|
|
10549
|
+
ae(!1);
|
|
10548
10550
|
}
|
|
10549
10551
|
})();
|
|
10550
10552
|
}, [t, n, i, u, Ie]);
|
|
@@ -10561,7 +10563,7 @@ const ds = ({
|
|
|
10561
10563
|
sortKey: (ot == null ? void 0 : ot.sortKey) ?? ut
|
|
10562
10564
|
});
|
|
10563
10565
|
}), [...te.values()].sort((ge, $e) => ge.sortKey - $e.sortKey).slice(-5).map(({ points: ge, label: $e }) => ({ points: ge, label: $e }));
|
|
10564
|
-
}, [re, X]), pe = ke(() => ns(Be), [Be]), U = ke(() => Ie || _.size === 0 ? null : is(Be), [Be, _, Ie]), j = ke(() => Ie ? null : as(Be), [Be, Ie]), Y = ke(() => [...Be].filter((te) => te.played).slice(-5), [Be]),
|
|
10566
|
+
}, [re, X]), pe = ke(() => ns(Be), [Be]), U = ke(() => Ie || _.size === 0 ? null : is(Be), [Be, _, Ie]), j = ke(() => Ie ? null : as(Be), [Be, Ie]), Y = ke(() => [...Be].filter((te) => te.played).slice(-5), [Be]), se = ke(() => Ie ? [] : Y.map((te) => {
|
|
10565
10567
|
const ge = te.selfPrediction;
|
|
10566
10568
|
return !ge || !te.result ? {
|
|
10567
10569
|
outcome: "pending",
|
|
@@ -10775,7 +10777,7 @@ const ds = ({
|
|
|
10775
10777
|
sx: {
|
|
10776
10778
|
fontFamily: I.primary,
|
|
10777
10779
|
fontSize: "0.6875em",
|
|
10778
|
-
color:
|
|
10780
|
+
color: N,
|
|
10779
10781
|
mt: y["3xs"],
|
|
10780
10782
|
overflow: "hidden",
|
|
10781
10783
|
textOverflow: "ellipsis",
|
|
@@ -10925,7 +10927,7 @@ const ds = ({
|
|
|
10925
10927
|
{
|
|
10926
10928
|
loading: oe,
|
|
10927
10929
|
formMatches: Y,
|
|
10928
|
-
selfFormMatches:
|
|
10930
|
+
selfFormMatches: se,
|
|
10929
10931
|
isSelf: Ie,
|
|
10930
10932
|
compareMode: Se,
|
|
10931
10933
|
onToggleCompare: () => Fe((te) => !te),
|
|
@@ -10938,7 +10940,7 @@ const ds = ({
|
|
|
10938
10940
|
primaryColor: W,
|
|
10939
10941
|
textPrimary: J,
|
|
10940
10942
|
textSecondary: O,
|
|
10941
|
-
textTertiary:
|
|
10943
|
+
textTertiary: N,
|
|
10942
10944
|
surface: V,
|
|
10943
10945
|
surfaceVariant: B,
|
|
10944
10946
|
fontFamily: I.primary,
|
|
@@ -10973,7 +10975,7 @@ const ds = ({
|
|
|
10973
10975
|
dangerColor: A,
|
|
10974
10976
|
primaryColor: W,
|
|
10975
10977
|
textPrimary: J,
|
|
10976
|
-
textTertiary:
|
|
10978
|
+
textTertiary: N,
|
|
10977
10979
|
outlineEnabledBorder: H,
|
|
10978
10980
|
surfaceVariant: B,
|
|
10979
10981
|
fonts: I,
|
|
@@ -11026,7 +11028,7 @@ const ds = ({
|
|
|
11026
11028
|
dangerColor: A,
|
|
11027
11029
|
textPrimary: J,
|
|
11028
11030
|
textSecondary: O,
|
|
11029
|
-
textTertiary:
|
|
11031
|
+
textTertiary: N,
|
|
11030
11032
|
outlineEnabledBorder: H,
|
|
11031
11033
|
outlineEnabledBorderSoft: G,
|
|
11032
11034
|
surface: V,
|
|
@@ -11159,7 +11161,7 @@ const ds = ({
|
|
|
11159
11161
|
standing: d
|
|
11160
11162
|
}) => {
|
|
11161
11163
|
var $, A, J, O;
|
|
11162
|
-
const { t: n } = Re("common"), s = ye(), p = he(), a = ve(), m = we(), { sdk: g } = gt(), u = ((A = ($ = s.palette) == null ? void 0 : $.primary) == null ? void 0 : A.plainColor) ?? "#1A77D2", [x, f] = E([]), [h, b] = E(!1), [C, y] = E(!1), [v, I] = E(1), [k, z] = E(1), [w, R] = E(!1), [L, P] = E(null), [T,
|
|
11164
|
+
const { t: n } = Re("common"), s = ye(), p = he(), a = ve(), m = we(), { sdk: g } = gt(), u = ((A = ($ = s.palette) == null ? void 0 : $.primary) == null ? void 0 : A.plainColor) ?? "#1A77D2", [x, f] = E([]), [h, b] = E(!1), [C, y] = E(!1), [v, I] = E(1), [k, z] = E(1), [w, R] = E(!1), [L, P] = E(null), [T, M] = E(0);
|
|
11163
11165
|
xe(() => {
|
|
11164
11166
|
I(1), R(!1), f([]), y(!1);
|
|
11165
11167
|
}, [t]), xe(() => {
|
|
@@ -11167,8 +11169,8 @@ const ds = ({
|
|
|
11167
11169
|
templateId: o,
|
|
11168
11170
|
limit: 20,
|
|
11169
11171
|
page: v
|
|
11170
|
-
}).then((
|
|
11171
|
-
f(
|
|
11172
|
+
}).then((N) => {
|
|
11173
|
+
f(N.data), z(N.meta.pagination.numberOfPages), M(N.meta.pagination.totalItems), R(!0);
|
|
11172
11174
|
}).catch(() => y(!0)).finally(() => b(!1)));
|
|
11173
11175
|
}, [t, v, g]);
|
|
11174
11176
|
const X = {
|
|
@@ -11246,10 +11248,10 @@ const ds = ({
|
|
|
11246
11248
|
backgroundColor: u,
|
|
11247
11249
|
color: ((O = (J = s.palette) == null ? void 0 : J.primary) == null ? void 0 : O.onPrimary) ?? "#fff"
|
|
11248
11250
|
}
|
|
11249
|
-
}, W = l != null && x.some((
|
|
11251
|
+
}, W = l != null && x.some((N) => N.profileId === l);
|
|
11250
11252
|
return /* @__PURE__ */ c(r, { children: [
|
|
11251
11253
|
(() => {
|
|
11252
|
-
var
|
|
11254
|
+
var N, V;
|
|
11253
11255
|
return /* @__PURE__ */ c(r, { children: [
|
|
11254
11256
|
h && /* @__PURE__ */ e(Wo, { sx: X.container, children: /* @__PURE__ */ c(
|
|
11255
11257
|
Xo,
|
|
@@ -11435,7 +11437,7 @@ const ds = ({
|
|
|
11435
11437
|
{
|
|
11436
11438
|
sx: {
|
|
11437
11439
|
fontSize: "1em",
|
|
11438
|
-
color: ((V = (
|
|
11440
|
+
color: ((V = (N = s.palette) == null ? void 0 : N.primary) == null ? void 0 : V.onPrimary) ?? "#fff"
|
|
11439
11441
|
}
|
|
11440
11442
|
}
|
|
11441
11443
|
)
|
|
@@ -11498,8 +11500,8 @@ const ds = ({
|
|
|
11498
11500
|
}
|
|
11499
11501
|
),
|
|
11500
11502
|
x.map((B) => {
|
|
11501
|
-
var _,
|
|
11502
|
-
const H = l != null && B.profileId === l, G = ((_ = B.profileModel) == null ? void 0 : _.nickname) ?? ((
|
|
11503
|
+
var _, le, re, D, oe, ae;
|
|
11504
|
+
const H = l != null && B.profileId === l, G = ((_ = B.profileModel) == null ? void 0 : _.nickname) ?? ((le = B.profileModel) == null ? void 0 : le.name) ?? n("topX.privateLeagues.anonymous");
|
|
11503
11505
|
return /* @__PURE__ */ c(
|
|
11504
11506
|
"tr",
|
|
11505
11507
|
{
|
|
@@ -11545,12 +11547,12 @@ const ds = ({
|
|
|
11545
11547
|
{
|
|
11546
11548
|
src: ((re = B.profileModel) == null ? void 0 : re.avatar) ?? void 0,
|
|
11547
11549
|
sx: X.avatar,
|
|
11548
|
-
children: (
|
|
11550
|
+
children: (D = B.profileModel) != null && D.avatar ? /* @__PURE__ */ e(Ee, {}) : /* @__PURE__ */ e(
|
|
11549
11551
|
Xt,
|
|
11550
11552
|
{
|
|
11551
11553
|
sx: {
|
|
11552
11554
|
fontSize: "1em",
|
|
11553
|
-
color: ((
|
|
11555
|
+
color: ((ae = (oe = s.palette) == null ? void 0 : oe.primary) == null ? void 0 : ae.onPrimary) ?? "#fff"
|
|
11554
11556
|
}
|
|
11555
11557
|
}
|
|
11556
11558
|
)
|
|
@@ -11722,8 +11724,8 @@ const ds = ({
|
|
|
11722
11724
|
onDeleteClick: g,
|
|
11723
11725
|
onLeaveClick: u
|
|
11724
11726
|
}) => {
|
|
11725
|
-
var L, P, T,
|
|
11726
|
-
const { t: x } = Re("common"), f = ye(), h = he(), b = ve(), C = we(), y = ((P = (L = f.palette) == null ? void 0 : L.primary) == null ? void 0 : P.plainColor) ?? "#1A77D2", v = ((
|
|
11727
|
+
var L, P, T, M, X, W, F, $;
|
|
11728
|
+
const { t: x } = Re("common"), f = ye(), h = he(), b = ve(), C = we(), y = ((P = (L = f.palette) == null ? void 0 : L.primary) == null ? void 0 : P.plainColor) ?? "#1A77D2", v = ((M = (T = f.palette) == null ? void 0 : T.danger) == null ? void 0 : M.plainColor) ?? "#F44336", I = ((W = (X = f.palette) == null ? void 0 : X.danger) == null ? void 0 : W.softBg) ?? "#FEE4E2", k = (($ = (F = f.palette) == null ? void 0 : F.success) == null ? void 0 : $.plainColor) ?? "#4CAF50", [z, w] = E(!1), R = async () => {
|
|
11727
11729
|
try {
|
|
11728
11730
|
await navigator.clipboard.writeText(n), w(!0), setTimeout(() => w(!1), 2e3);
|
|
11729
11731
|
} catch {
|
|
@@ -12265,22 +12267,22 @@ const ds = ({
|
|
|
12265
12267
|
onInvitesSent: n,
|
|
12266
12268
|
onNotify: s
|
|
12267
12269
|
}) => {
|
|
12268
|
-
var B, H, G, _,
|
|
12269
|
-
const { t: p } = Re("common"), a = ye(), m = he(), g = ve(), u = we(), x = ((H = (B = a.palette) == null ? void 0 : B.primary) == null ? void 0 : H.plainColor) ?? "#1A77D2", f = ((_ = (G = a.palette) == null ? void 0 : G.primary) == null ? void 0 : _.onPrimary) ?? "#fff", h = ((re = (
|
|
12270
|
+
var B, H, G, _, le, re;
|
|
12271
|
+
const { t: p } = Re("common"), a = ye(), m = he(), g = ve(), u = we(), x = ((H = (B = a.palette) == null ? void 0 : B.primary) == null ? void 0 : H.plainColor) ?? "#1A77D2", f = ((_ = (G = a.palette) == null ? void 0 : G.primary) == null ? void 0 : _.onPrimary) ?? "#fff", h = ((re = (le = a.palette) == null ? void 0 : le.danger) == null ? void 0 : re.plainColor) ?? "#F44336", [b, C] = E(""), [y, v] = E([]), [I, k] = E(!1), [z, w] = E([]), [R, L] = E(!1), [P, T] = E(!1), [M, X] = E(/* @__PURE__ */ new Map()), [W, F] = E(!1), $ = Ge(null), A = Ge(null);
|
|
12270
12272
|
xe(() => {
|
|
12271
12273
|
A.current && clearTimeout(A.current);
|
|
12272
|
-
const
|
|
12273
|
-
if (
|
|
12274
|
+
const D = b.trim();
|
|
12275
|
+
if (D.length < 2) {
|
|
12274
12276
|
w([]), L(!1), T(!1);
|
|
12275
12277
|
return;
|
|
12276
12278
|
}
|
|
12277
12279
|
return L(!0), T(!1), A.current = setTimeout(async () => {
|
|
12278
12280
|
try {
|
|
12279
|
-
const oe = await t.profile.getByIds([],
|
|
12281
|
+
const oe = await t.profile.getByIds([], D), ae = /* @__PURE__ */ new Set([...y, ...i, ...l]);
|
|
12280
12282
|
w(
|
|
12281
12283
|
oe.filter((ne) => {
|
|
12282
12284
|
const me = (ne == null ? void 0 : ne.profileId) ?? (ne == null ? void 0 : ne.id);
|
|
12283
|
-
return me && !
|
|
12285
|
+
return me && !ae.has(me);
|
|
12284
12286
|
})
|
|
12285
12287
|
);
|
|
12286
12288
|
} catch {
|
|
@@ -12293,22 +12295,22 @@ const ds = ({
|
|
|
12293
12295
|
};
|
|
12294
12296
|
}, [b]);
|
|
12295
12297
|
const J = () => {
|
|
12296
|
-
const
|
|
12297
|
-
|
|
12298
|
-
}, O = (
|
|
12298
|
+
const D = b.trim().replace(/,+$/, "");
|
|
12299
|
+
D && !y.includes(D) && v((oe) => [...oe, D]), C(""), w([]), T(!1);
|
|
12300
|
+
}, O = (D) => {
|
|
12299
12301
|
var ne;
|
|
12300
|
-
const oe = (
|
|
12302
|
+
const oe = (D == null ? void 0 : D.profileId) ?? (D == null ? void 0 : D.id);
|
|
12301
12303
|
if (!oe || y.includes(oe)) return;
|
|
12302
|
-
const
|
|
12303
|
-
v((me) => [...me, oe]), X((me) => new Map(me).set(oe,
|
|
12304
|
-
},
|
|
12305
|
-
|
|
12304
|
+
const ae = (D == null ? void 0 : D.nickname) ?? (D == null ? void 0 : D.name) ?? oe.slice(0, 8);
|
|
12305
|
+
v((me) => [...me, oe]), X((me) => new Map(me).set(oe, ae)), C(""), w([]), T(!1), (ne = $.current) == null || ne.focus();
|
|
12306
|
+
}, N = (D) => {
|
|
12307
|
+
D.key === "Enter" || D.key === "," ? (D.preventDefault(), z.length > 0 ? O(z[0]) : J()) : D.key === "Escape" ? w([]) : D.key === "Backspace" && b === "" && y.length > 0 && v((oe) => oe.slice(0, -1));
|
|
12306
12308
|
}, V = async () => {
|
|
12307
|
-
const
|
|
12308
|
-
if (
|
|
12309
|
+
const D = [...y];
|
|
12310
|
+
if (D.length !== 0) {
|
|
12309
12311
|
k(!0);
|
|
12310
12312
|
try {
|
|
12311
|
-
await t.privateLeagues.invite(o,
|
|
12313
|
+
await t.privateLeagues.invite(o, D), n(D), v([]), C(""), X(/* @__PURE__ */ new Map()), w([]), s(
|
|
12312
12314
|
"success",
|
|
12313
12315
|
p("topX.privateLeagues.inviteSentTitle") || "Invites sent!",
|
|
12314
12316
|
p("topX.privateLeagues.inviteSentMessage") || "Invitations have been sent successfully."
|
|
@@ -12368,8 +12370,8 @@ const ds = ({
|
|
|
12368
12370
|
r,
|
|
12369
12371
|
{
|
|
12370
12372
|
onClick: () => {
|
|
12371
|
-
var
|
|
12372
|
-
return (
|
|
12373
|
+
var D;
|
|
12374
|
+
return (D = $.current) == null ? void 0 : D.focus();
|
|
12373
12375
|
},
|
|
12374
12376
|
sx: {
|
|
12375
12377
|
display: "flex",
|
|
@@ -12418,7 +12420,7 @@ const ds = ({
|
|
|
12418
12420
|
}
|
|
12419
12421
|
}
|
|
12420
12422
|
)),
|
|
12421
|
-
y.map((
|
|
12423
|
+
y.map((D, oe) => /* @__PURE__ */ c(
|
|
12422
12424
|
r,
|
|
12423
12425
|
{
|
|
12424
12426
|
sx: {
|
|
@@ -12447,7 +12449,7 @@ const ds = ({
|
|
|
12447
12449
|
textOverflow: "ellipsis",
|
|
12448
12450
|
whiteSpace: "nowrap"
|
|
12449
12451
|
},
|
|
12450
|
-
children:
|
|
12452
|
+
children: M.get(D) ?? D
|
|
12451
12453
|
}
|
|
12452
12454
|
),
|
|
12453
12455
|
/* @__PURE__ */ e(
|
|
@@ -12455,10 +12457,10 @@ const ds = ({
|
|
|
12455
12457
|
{
|
|
12456
12458
|
component: "button",
|
|
12457
12459
|
type: "button",
|
|
12458
|
-
onClick: (
|
|
12459
|
-
|
|
12460
|
+
onClick: (ae) => {
|
|
12461
|
+
ae.stopPropagation(), v((ne) => ne.filter((me, be) => be !== oe)), X((ne) => {
|
|
12460
12462
|
const me = new Map(ne);
|
|
12461
|
-
return me.delete(
|
|
12463
|
+
return me.delete(D), me;
|
|
12462
12464
|
});
|
|
12463
12465
|
},
|
|
12464
12466
|
sx: {
|
|
@@ -12488,8 +12490,8 @@ const ds = ({
|
|
|
12488
12490
|
component: "input",
|
|
12489
12491
|
ref: $,
|
|
12490
12492
|
value: b,
|
|
12491
|
-
onChange: (
|
|
12492
|
-
onKeyDown:
|
|
12493
|
+
onChange: (D) => C(D.target.value),
|
|
12494
|
+
onKeyDown: N,
|
|
12493
12495
|
onFocus: () => F(!0),
|
|
12494
12496
|
onBlur: () => {
|
|
12495
12497
|
setTimeout(() => {
|
|
@@ -12530,7 +12532,7 @@ const ds = ({
|
|
|
12530
12532
|
maxHeight: "220px",
|
|
12531
12533
|
overflowY: "auto"
|
|
12532
12534
|
},
|
|
12533
|
-
children: R ? /* @__PURE__ */ e(r, { sx: { px: m.md, py: m.xs }, children: [0, 1].map((
|
|
12535
|
+
children: R ? /* @__PURE__ */ e(r, { sx: { px: m.md, py: m.xs }, children: [0, 1].map((D) => /* @__PURE__ */ c(
|
|
12534
12536
|
r,
|
|
12535
12537
|
{
|
|
12536
12538
|
sx: {
|
|
@@ -12554,7 +12556,7 @@ const ds = ({
|
|
|
12554
12556
|
"50%": { opacity: 0.4 }
|
|
12555
12557
|
},
|
|
12556
12558
|
animation: "pulse 1.4s ease-in-out infinite",
|
|
12557
|
-
animationDelay: `${
|
|
12559
|
+
animationDelay: `${D * 0.15}s`
|
|
12558
12560
|
}
|
|
12559
12561
|
}
|
|
12560
12562
|
),
|
|
@@ -12564,11 +12566,11 @@ const ds = ({
|
|
|
12564
12566
|
{
|
|
12565
12567
|
sx: {
|
|
12566
12568
|
height: "10px",
|
|
12567
|
-
width: `${60 +
|
|
12569
|
+
width: `${60 + D * 15}%`,
|
|
12568
12570
|
borderRadius: g.full,
|
|
12569
12571
|
backgroundColor: a.surfaceVariant,
|
|
12570
12572
|
animation: "pulse 1.4s ease-in-out infinite",
|
|
12571
|
-
animationDelay: `${
|
|
12573
|
+
animationDelay: `${D * 0.15 + 0.1}s`
|
|
12572
12574
|
}
|
|
12573
12575
|
}
|
|
12574
12576
|
),
|
|
@@ -12577,18 +12579,18 @@ const ds = ({
|
|
|
12577
12579
|
{
|
|
12578
12580
|
sx: {
|
|
12579
12581
|
height: "8px",
|
|
12580
|
-
width: `${40 +
|
|
12582
|
+
width: `${40 + D * 10}%`,
|
|
12581
12583
|
borderRadius: g.full,
|
|
12582
12584
|
backgroundColor: a.surfaceVariant,
|
|
12583
12585
|
animation: "pulse 1.4s ease-in-out infinite",
|
|
12584
|
-
animationDelay: `${
|
|
12586
|
+
animationDelay: `${D * 0.15 + 0.2}s`
|
|
12585
12587
|
}
|
|
12586
12588
|
}
|
|
12587
12589
|
)
|
|
12588
12590
|
] })
|
|
12589
12591
|
]
|
|
12590
12592
|
},
|
|
12591
|
-
|
|
12593
|
+
D
|
|
12592
12594
|
)) }) : z.length === 0 ? /* @__PURE__ */ e(
|
|
12593
12595
|
r,
|
|
12594
12596
|
{
|
|
@@ -12608,13 +12610,13 @@ const ds = ({
|
|
|
12608
12610
|
}
|
|
12609
12611
|
)
|
|
12610
12612
|
}
|
|
12611
|
-
) : z.map((
|
|
12612
|
-
const oe = (
|
|
12613
|
+
) : z.map((D) => {
|
|
12614
|
+
const oe = (D == null ? void 0 : D.profileId) ?? (D == null ? void 0 : D.id), ae = D == null ? void 0 : D.nickname, ne = D == null ? void 0 : D.name, me = (ae ?? ne ?? oe ?? "?").slice(0, 2).toUpperCase();
|
|
12613
12615
|
return /* @__PURE__ */ c(
|
|
12614
12616
|
r,
|
|
12615
12617
|
{
|
|
12616
12618
|
onMouseDown: (be) => {
|
|
12617
|
-
be.preventDefault(), O(
|
|
12619
|
+
be.preventDefault(), O(D);
|
|
12618
12620
|
},
|
|
12619
12621
|
sx: {
|
|
12620
12622
|
display: "flex",
|
|
@@ -12656,7 +12658,7 @@ const ds = ({
|
|
|
12656
12658
|
}
|
|
12657
12659
|
),
|
|
12658
12660
|
/* @__PURE__ */ c(r, { sx: { minWidth: 0 }, children: [
|
|
12659
|
-
|
|
12661
|
+
ae && /* @__PURE__ */ e(
|
|
12660
12662
|
S,
|
|
12661
12663
|
{
|
|
12662
12664
|
sx: {
|
|
@@ -12668,7 +12670,7 @@ const ds = ({
|
|
|
12668
12670
|
textOverflow: "ellipsis",
|
|
12669
12671
|
whiteSpace: "nowrap"
|
|
12670
12672
|
},
|
|
12671
|
-
children:
|
|
12673
|
+
children: ae
|
|
12672
12674
|
}
|
|
12673
12675
|
),
|
|
12674
12676
|
ne && /* @__PURE__ */ e(
|
|
@@ -12686,7 +12688,7 @@ const ds = ({
|
|
|
12686
12688
|
children: ne
|
|
12687
12689
|
}
|
|
12688
12690
|
),
|
|
12689
|
-
!
|
|
12691
|
+
!ae && !ne && /* @__PURE__ */ e(
|
|
12690
12692
|
S,
|
|
12691
12693
|
{
|
|
12692
12694
|
sx: {
|
|
@@ -12752,12 +12754,12 @@ const ds = ({
|
|
|
12752
12754
|
component: "span",
|
|
12753
12755
|
sx: { fontFamily: u.primary, fontSize: "0.875em", color: a.textSecondary },
|
|
12754
12756
|
children: y.length > 0 ? `${y.length} ${p("topX.privateLeagues.selectedForInvite")}` : (() => {
|
|
12755
|
-
const
|
|
12757
|
+
const D = p("topX.privateLeagues.orShareCode"), oe = D.match(/^(.*?)<link>(.*?)<\/link>(.*)$/s);
|
|
12756
12758
|
return oe ? /* @__PURE__ */ c(Ee, { children: [
|
|
12757
12759
|
oe[1],
|
|
12758
12760
|
/* @__PURE__ */ e(r, { component: "span", sx: { fontWeight: 700, color: x }, children: oe[2] }),
|
|
12759
12761
|
oe[3]
|
|
12760
|
-
] }) :
|
|
12762
|
+
] }) : D;
|
|
12761
12763
|
})()
|
|
12762
12764
|
}
|
|
12763
12765
|
),
|
|
@@ -12838,7 +12840,7 @@ const ds = ({
|
|
|
12838
12840
|
leagueDetail: n,
|
|
12839
12841
|
onSaved: s
|
|
12840
12842
|
}) => {
|
|
12841
|
-
var W, F, $, A, J, O,
|
|
12843
|
+
var W, F, $, A, J, O, N, V;
|
|
12842
12844
|
const { t: p } = Re("common"), a = ye(), m = he(), g = ve(), u = we(), x = ((F = (W = a.palette) == null ? void 0 : W.primary) == null ? void 0 : F.plainColor) ?? "#1A77D2", f = ((A = ($ = a.palette) == null ? void 0 : $.primary) == null ? void 0 : A.onPrimary) ?? "#fff", h = ((O = (J = a.palette) == null ? void 0 : J.danger) == null ? void 0 : O.plainColor) ?? "#F44336", [b, C] = E(""), [y, v] = E(""), [I, k] = E(""), [z, w] = E(!0), [R, L] = E({}), [P, T] = E(!1);
|
|
12843
12845
|
xe(() => {
|
|
12844
12846
|
if (!t) return;
|
|
@@ -12846,7 +12848,7 @@ const ds = ({
|
|
|
12846
12848
|
const B = (n == null ? void 0 : n.scoringStartsAt) ?? "";
|
|
12847
12849
|
k(B ? B.slice(0, 10) : ""), w((n == null ? void 0 : n.usersCanInviteUsers) ?? !0), L({});
|
|
12848
12850
|
}, [t]);
|
|
12849
|
-
const
|
|
12851
|
+
const M = n != null && n.scoringStartsAt ? new Date(n.scoringStartsAt) <= /* @__PURE__ */ new Date() : !1, X = async () => {
|
|
12850
12852
|
if (!b.trim()) {
|
|
12851
12853
|
L({
|
|
12852
12854
|
name: p("topX.privateLeagues.leagueNameRequired") || "League name is required."
|
|
@@ -12988,25 +12990,25 @@ const ds = ({
|
|
|
12988
12990
|
type: "date",
|
|
12989
12991
|
value: I,
|
|
12990
12992
|
onChange: (B) => k(B.target.value),
|
|
12991
|
-
disabled: P ||
|
|
12993
|
+
disabled: P || M,
|
|
12992
12994
|
sx: {
|
|
12993
12995
|
fontFamily: u.primary,
|
|
12994
12996
|
fontSize: "0.9375em",
|
|
12995
|
-
color:
|
|
12996
|
-
backgroundColor:
|
|
12997
|
+
color: M ? a.textSecondary : a.textPrimary,
|
|
12998
|
+
backgroundColor: M ? a.surfaceVariant : a.surface,
|
|
12997
12999
|
border: `1px solid ${a.outlineEnabledBorder}`,
|
|
12998
13000
|
borderRadius: g.xs,
|
|
12999
13001
|
px: m.sm,
|
|
13000
13002
|
py: "9px",
|
|
13001
13003
|
outline: "none",
|
|
13002
|
-
cursor:
|
|
13004
|
+
cursor: M ? "not-allowed" : "pointer",
|
|
13003
13005
|
transition: "border-color 0.15s",
|
|
13004
13006
|
"&:focus": {
|
|
13005
|
-
borderColor:
|
|
13007
|
+
borderColor: M ? a.outlineEnabledBorder : x
|
|
13006
13008
|
},
|
|
13007
13009
|
"&::-webkit-calendar-picker-indicator": {
|
|
13008
|
-
cursor:
|
|
13009
|
-
opacity:
|
|
13010
|
+
cursor: M ? "not-allowed" : "pointer",
|
|
13011
|
+
opacity: M ? 0.3 : 0.6
|
|
13010
13012
|
}
|
|
13011
13013
|
}
|
|
13012
13014
|
}
|
|
@@ -13018,9 +13020,9 @@ const ds = ({
|
|
|
13018
13020
|
sx: {
|
|
13019
13021
|
fontFamily: u.primary,
|
|
13020
13022
|
fontSize: "0.75em",
|
|
13021
|
-
color:
|
|
13023
|
+
color: M ? ((V = (N = a.palette) == null ? void 0 : N.warning) == null ? void 0 : V.plainColor) ?? "#DC6803" : a.textSecondary
|
|
13022
13024
|
},
|
|
13023
|
-
children:
|
|
13025
|
+
children: M ? p("topX.privateLeagues.scoringAlreadyStarted") || "Scoring has already started and cannot be changed." : p("topX.privateLeagues.scoringStartsAtHint") || "Leave empty to keep the current value."
|
|
13024
13026
|
}
|
|
13025
13027
|
)
|
|
13026
13028
|
] }),
|
|
@@ -13573,17 +13575,17 @@ const ds = ({
|
|
|
13573
13575
|
}) => {
|
|
13574
13576
|
var W, F, $, A, J, O;
|
|
13575
13577
|
const { t: g } = Re("common"), u = ye(), x = he(), f = ve(), h = we(), b = ((F = (W = u.palette) == null ? void 0 : W.primary) == null ? void 0 : F.plainColor) ?? "#1A77D2", C = ((A = ($ = u.palette) == null ? void 0 : $.danger) == null ? void 0 : A.plainColor) ?? "#F44336", y = ((O = (J = u.palette) == null ? void 0 : J.warning) == null ? void 0 : O.plainColor) ?? "#DC6803", [v, I] = E(""), [k, z] = E(/* @__PURE__ */ new Set()), [w, R] = E(null), [L, P] = E(null), T = ke(
|
|
13576
|
-
() => ((t == null ? void 0 : t.members) ?? []).filter((
|
|
13578
|
+
() => ((t == null ? void 0 : t.members) ?? []).filter((N) => {
|
|
13577
13579
|
if (!v.trim()) return !0;
|
|
13578
|
-
const V = v.toLowerCase(), B = o.get(
|
|
13579
|
-
return ((B == null ? void 0 : B.nickname) ?? (B == null ? void 0 : B.name) ??
|
|
13580
|
+
const V = v.toLowerCase(), B = o.get(N);
|
|
13581
|
+
return ((B == null ? void 0 : B.nickname) ?? (B == null ? void 0 : B.name) ?? N).toLowerCase().includes(V) || N.toLowerCase().includes(V);
|
|
13580
13582
|
}),
|
|
13581
13583
|
[t == null ? void 0 : t.members, v, o]
|
|
13582
|
-
),
|
|
13583
|
-
async (
|
|
13584
|
+
), M = ce(
|
|
13585
|
+
async (N, V) => {
|
|
13584
13586
|
if (!t || L) return;
|
|
13585
|
-
P(
|
|
13586
|
-
const B = V ? t.administrators.filter((H) => H !==
|
|
13587
|
+
P(N);
|
|
13588
|
+
const B = V ? t.administrators.filter((H) => H !== N) : [...t.administrators, N];
|
|
13587
13589
|
try {
|
|
13588
13590
|
const H = {
|
|
13589
13591
|
name: t.name,
|
|
@@ -13612,8 +13614,8 @@ const ds = ({
|
|
|
13612
13614
|
},
|
|
13613
13615
|
[t, L, n, s, p, m, g]
|
|
13614
13616
|
), X = ce(
|
|
13615
|
-
(
|
|
13616
|
-
R(null), a(
|
|
13617
|
+
(N) => {
|
|
13618
|
+
R(null), a(N);
|
|
13617
13619
|
},
|
|
13618
13620
|
[a]
|
|
13619
13621
|
);
|
|
@@ -13689,7 +13691,7 @@ const ds = ({
|
|
|
13689
13691
|
size: "sm",
|
|
13690
13692
|
placeholder: g("topX.privateLeagues.searchMember") || "Търси член",
|
|
13691
13693
|
value: v,
|
|
13692
|
-
onChange: (
|
|
13694
|
+
onChange: (N) => I(N.target.value),
|
|
13693
13695
|
startDecorator: /* @__PURE__ */ e(Ho, { sx: { fontSize: 14, color: u.textSecondary } }),
|
|
13694
13696
|
sx: {
|
|
13695
13697
|
fontFamily: h.primary,
|
|
@@ -13714,21 +13716,21 @@ const ds = ({
|
|
|
13714
13716
|
display: "flex",
|
|
13715
13717
|
flexDirection: "column"
|
|
13716
13718
|
},
|
|
13717
|
-
children: [0, 1, 2].map((
|
|
13719
|
+
children: [0, 1, 2].map((N) => /* @__PURE__ */ e(
|
|
13718
13720
|
r,
|
|
13719
13721
|
{
|
|
13720
13722
|
sx: {
|
|
13721
13723
|
height: "60px",
|
|
13722
|
-
backgroundColor:
|
|
13723
|
-
opacity: 1 -
|
|
13724
|
+
backgroundColor: N % 2 === 0 ? u.surfaceVariant : u.surface,
|
|
13725
|
+
opacity: 1 - N * 0.2,
|
|
13724
13726
|
borderBottom: `1px solid ${u.outlineEnabledBorder}`
|
|
13725
13727
|
}
|
|
13726
13728
|
},
|
|
13727
|
-
|
|
13729
|
+
N
|
|
13728
13730
|
))
|
|
13729
13731
|
}
|
|
13730
|
-
) : /* @__PURE__ */ e(r, { sx: { maxHeight: "380px", overflowY: "auto" }, children: T.length > 0 ? T.map((
|
|
13731
|
-
const B =
|
|
13732
|
+
) : /* @__PURE__ */ e(r, { sx: { maxHeight: "380px", overflowY: "auto" }, children: T.length > 0 ? T.map((N, V) => {
|
|
13733
|
+
const B = N === l, H = ((t == null ? void 0 : t.administrators) ?? []).includes(N), G = o.get(N), _ = ks(N, o), le = ws(_), re = d && !B;
|
|
13732
13734
|
return /* @__PURE__ */ c(
|
|
13733
13735
|
r,
|
|
13734
13736
|
{
|
|
@@ -13766,13 +13768,13 @@ const ds = ({
|
|
|
13766
13768
|
flexShrink: 0,
|
|
13767
13769
|
overflow: "hidden"
|
|
13768
13770
|
},
|
|
13769
|
-
children: G != null && G.avatar && !k.has(
|
|
13771
|
+
children: G != null && G.avatar && !k.has(N) ? /* @__PURE__ */ e(
|
|
13770
13772
|
r,
|
|
13771
13773
|
{
|
|
13772
13774
|
component: "img",
|
|
13773
13775
|
src: G.avatar,
|
|
13774
13776
|
alt: _,
|
|
13775
|
-
onError: () => z((
|
|
13777
|
+
onError: () => z((D) => new Set(D).add(N)),
|
|
13776
13778
|
sx: { width: "100%", height: "100%", objectFit: "cover" }
|
|
13777
13779
|
}
|
|
13778
13780
|
) : /* @__PURE__ */ e(
|
|
@@ -13786,7 +13788,7 @@ const ds = ({
|
|
|
13786
13788
|
lineHeight: 1,
|
|
13787
13789
|
userSelect: "none"
|
|
13788
13790
|
},
|
|
13789
|
-
children:
|
|
13791
|
+
children: le
|
|
13790
13792
|
}
|
|
13791
13793
|
)
|
|
13792
13794
|
}
|
|
@@ -13903,8 +13905,8 @@ const ds = ({
|
|
|
13903
13905
|
{
|
|
13904
13906
|
component: "button",
|
|
13905
13907
|
type: "button",
|
|
13906
|
-
onClick: () =>
|
|
13907
|
-
disabled: L ===
|
|
13908
|
+
onClick: () => M(N, H),
|
|
13909
|
+
disabled: L === N,
|
|
13908
13910
|
title: H ? g("topX.privateLeagues.removeAdmin") || "Remove Admin" : g("topX.privateLeagues.makeAdmin") || "Make Admin",
|
|
13909
13911
|
sx: {
|
|
13910
13912
|
display: "flex",
|
|
@@ -13915,19 +13917,19 @@ const ds = ({
|
|
|
13915
13917
|
borderRadius: f.xs,
|
|
13916
13918
|
border: `1px solid ${H ? `${y}40` : "transparent"}`,
|
|
13917
13919
|
backgroundColor: H ? `${y}10` : "transparent",
|
|
13918
|
-
cursor: L ===
|
|
13920
|
+
cursor: L === N ? "default" : "pointer",
|
|
13919
13921
|
color: H ? y : u.textSecondary,
|
|
13920
13922
|
transition: "all 0.15s",
|
|
13921
13923
|
flexShrink: 0,
|
|
13922
|
-
opacity: L ===
|
|
13923
|
-
"&:hover": L ===
|
|
13924
|
+
opacity: L === N ? 0.5 : 1,
|
|
13925
|
+
"&:hover": L === N ? {} : {
|
|
13924
13926
|
color: b,
|
|
13925
13927
|
borderColor: `${b}35`,
|
|
13926
13928
|
backgroundColor: `${b}08`
|
|
13927
13929
|
},
|
|
13928
13930
|
p: 0
|
|
13929
13931
|
},
|
|
13930
|
-
children: L ===
|
|
13932
|
+
children: L === N ? /* @__PURE__ */ c(
|
|
13931
13933
|
"svg",
|
|
13932
13934
|
{
|
|
13933
13935
|
width: "13",
|
|
@@ -13951,7 +13953,7 @@ const ds = ({
|
|
|
13951
13953
|
{
|
|
13952
13954
|
component: "button",
|
|
13953
13955
|
type: "button",
|
|
13954
|
-
onClick: () => R(
|
|
13956
|
+
onClick: () => R(N),
|
|
13955
13957
|
disabled: w !== null,
|
|
13956
13958
|
title: g("topX.privateLeagues.kickMember") || "Изключи от лигата",
|
|
13957
13959
|
sx: {
|
|
@@ -13983,7 +13985,7 @@ const ds = ({
|
|
|
13983
13985
|
)
|
|
13984
13986
|
]
|
|
13985
13987
|
},
|
|
13986
|
-
|
|
13988
|
+
N
|
|
13987
13989
|
);
|
|
13988
13990
|
}) : v ? /* @__PURE__ */ e(
|
|
13989
13991
|
r,
|
|
@@ -14132,7 +14134,7 @@ const ds = ({
|
|
|
14132
14134
|
),
|
|
14133
14135
|
t.map((R, L) => {
|
|
14134
14136
|
var W, F, $, A, J, O;
|
|
14135
|
-
const P = h === R, T = o.get(R),
|
|
14137
|
+
const P = h === R, T = o.get(R), M = zs(R, o), X = $s(M);
|
|
14136
14138
|
return /* @__PURE__ */ c(
|
|
14137
14139
|
r,
|
|
14138
14140
|
{
|
|
@@ -14165,7 +14167,7 @@ const ds = ({
|
|
|
14165
14167
|
{
|
|
14166
14168
|
component: "img",
|
|
14167
14169
|
src: T.avatar,
|
|
14168
|
-
alt:
|
|
14170
|
+
alt: M,
|
|
14169
14171
|
sx: { width: "100%", height: "100%", objectFit: "cover" }
|
|
14170
14172
|
}
|
|
14171
14173
|
) : /* @__PURE__ */ e(
|
|
@@ -14195,7 +14197,7 @@ const ds = ({
|
|
|
14195
14197
|
textOverflow: "ellipsis",
|
|
14196
14198
|
whiteSpace: "nowrap"
|
|
14197
14199
|
},
|
|
14198
|
-
children:
|
|
14200
|
+
children: M
|
|
14199
14201
|
}
|
|
14200
14202
|
) }),
|
|
14201
14203
|
C === R ? (
|
|
@@ -14385,7 +14387,7 @@ const ds = ({
|
|
|
14385
14387
|
]
|
|
14386
14388
|
}
|
|
14387
14389
|
);
|
|
14388
|
-
}, Ts = Pe.memo(Rs), Fs = nn(() => import("./chunks/index-
|
|
14390
|
+
}, Ts = Pe.memo(Rs), Fs = nn(() => import("./chunks/index-BKdbemPX.js")), Es = ({
|
|
14389
14391
|
league: t,
|
|
14390
14392
|
onBack: o,
|
|
14391
14393
|
onLeagueLeft: i,
|
|
@@ -14401,24 +14403,24 @@ const ds = ({
|
|
|
14401
14403
|
var Z, de, Le, pe, U;
|
|
14402
14404
|
const { t: u } = Re("common"), x = ye(), f = he(), h = ve(), b = we(), { sdk: C, language: y, themeOptions: v, userIsLoggedIn: I, signInCTA: k } = gt(), { language: z } = zt($t), [w, R] = E(n ?? null), [L, P] = E(
|
|
14403
14405
|
s ?? null
|
|
14404
|
-
), [T,
|
|
14406
|
+
), [T, M] = E(
|
|
14405
14407
|
p ?? null
|
|
14406
14408
|
), [X, W] = E(
|
|
14407
14409
|
n === void 0
|
|
14408
|
-
), [F, $] = E(!1), [A, J] = E("discussion"), [O,
|
|
14410
|
+
), [F, $] = E(!1), [A, J] = E("discussion"), [O, N] = E(
|
|
14409
14411
|
null
|
|
14410
14412
|
), [V, B] = E(!1), [H, G] = E({
|
|
14411
14413
|
open: !1,
|
|
14412
14414
|
variant: "success",
|
|
14413
14415
|
title: "",
|
|
14414
14416
|
message: ""
|
|
14415
|
-
}), [_,
|
|
14417
|
+
}), [_, le] = E([]), [re, D] = E(
|
|
14416
14418
|
/* @__PURE__ */ new Map()
|
|
14417
|
-
), [oe,
|
|
14419
|
+
), [oe, ae] = E(!1), ne = ((de = (Z = x.palette) == null ? void 0 : Z.primary) == null ? void 0 : de.plainColor) ?? "#1A77D2", me = ((pe = (Le = x.palette) == null ? void 0 : Le.danger) == null ? void 0 : pe.plainColor) ?? "#F44336", be = (w == null ? void 0 : w.invitationCode) ?? t.invitationCode, Te = (w == null ? void 0 : w.membersCount) ?? t.membersCount ?? 0;
|
|
14418
14420
|
xe(() => {
|
|
14419
14421
|
if (!C || !t.id) return;
|
|
14420
|
-
const j = n === void 0, Y = s === void 0,
|
|
14421
|
-
if (!j && !Y && !
|
|
14422
|
+
const j = n === void 0, Y = s === void 0, se = p === void 0;
|
|
14423
|
+
if (!j && !Y && !se) return;
|
|
14422
14424
|
let Ve = !1;
|
|
14423
14425
|
return (async () => {
|
|
14424
14426
|
j && (W(!0), $(!1));
|
|
@@ -14428,7 +14430,7 @@ const ds = ({
|
|
|
14428
14430
|
leagueId: t.id,
|
|
14429
14431
|
limit: 1
|
|
14430
14432
|
}) : Promise.resolve(null),
|
|
14431
|
-
|
|
14433
|
+
se ? (async () => {
|
|
14432
14434
|
try {
|
|
14433
14435
|
return await C.profile.getOwn().getInfo();
|
|
14434
14436
|
} catch {
|
|
@@ -14452,7 +14454,7 @@ const ds = ({
|
|
|
14452
14454
|
scoringStartsAt: ue.scoringStartsAt ?? null,
|
|
14453
14455
|
membersCount: ue.membersCount ?? t.membersCount
|
|
14454
14456
|
};
|
|
14455
|
-
R(Ye),
|
|
14457
|
+
R(Ye), le(ue.invites ?? []), a == null || a(t.id, Ye);
|
|
14456
14458
|
} else
|
|
14457
14459
|
$(!0);
|
|
14458
14460
|
W(!1);
|
|
@@ -14473,9 +14475,9 @@ const ds = ({
|
|
|
14473
14475
|
});
|
|
14474
14476
|
}
|
|
14475
14477
|
}
|
|
14476
|
-
if (
|
|
14478
|
+
if (se && Oe.status === "fulfilled" && Oe.value) {
|
|
14477
14479
|
const ue = Oe.value;
|
|
14478
|
-
|
|
14480
|
+
M((ue == null ? void 0 : ue.id) ?? null);
|
|
14479
14481
|
}
|
|
14480
14482
|
}
|
|
14481
14483
|
})(), () => {
|
|
@@ -14488,11 +14490,11 @@ const ds = ({
|
|
|
14488
14490
|
try {
|
|
14489
14491
|
const Y = await C.privateLeagues.getById(t.id, !0);
|
|
14490
14492
|
if (j || !Y) return;
|
|
14491
|
-
const
|
|
14492
|
-
|
|
14493
|
+
const se = Y.invites ?? [], Ve = Y.members ?? [];
|
|
14494
|
+
le(se), R((Je) => Je && {
|
|
14493
14495
|
...Je,
|
|
14494
14496
|
members: Ve,
|
|
14495
|
-
invites:
|
|
14497
|
+
invites: se,
|
|
14496
14498
|
membersCount: Y.membersCount ?? Je.membersCount
|
|
14497
14499
|
});
|
|
14498
14500
|
} catch {
|
|
@@ -14507,26 +14509,26 @@ const ds = ({
|
|
|
14507
14509
|
].filter(Boolean);
|
|
14508
14510
|
j.length && (async () => {
|
|
14509
14511
|
try {
|
|
14510
|
-
const Y = await C.profile.getByIds(j),
|
|
14511
|
-
|
|
14512
|
+
const Y = await C.profile.getByIds(j), se = Array.isArray(Y) ? Y : [], Ve = /* @__PURE__ */ new Map();
|
|
14513
|
+
se.forEach((Je) => {
|
|
14512
14514
|
const Ke = (Je == null ? void 0 : Je.profileId) ?? (Je == null ? void 0 : Je.id);
|
|
14513
14515
|
Ke && Ve.set(Ke, Je);
|
|
14514
|
-
}),
|
|
14516
|
+
}), D(Ve);
|
|
14515
14517
|
} catch {
|
|
14516
14518
|
}
|
|
14517
14519
|
})();
|
|
14518
14520
|
}, [(U = w == null ? void 0 : w.members) == null ? void 0 : U.length, _.length, C]);
|
|
14519
|
-
const Se = ce(() =>
|
|
14520
|
-
(j, Y,
|
|
14521
|
-
G({ open: !0, variant: j, title: Y, message:
|
|
14521
|
+
const Se = ce(() => ae(!0), []), Fe = ce(() => N("delete"), []), Ue = ce(() => N("leave"), []), Ne = ce(
|
|
14522
|
+
(j, Y, se) => {
|
|
14523
|
+
G({ open: !0, variant: j, title: Y, message: se });
|
|
14522
14524
|
},
|
|
14523
14525
|
[]
|
|
14524
14526
|
), ie = ce(async () => {
|
|
14525
14527
|
B(!0);
|
|
14526
14528
|
try {
|
|
14527
|
-
await C.privateLeagues.leave(t.id),
|
|
14529
|
+
await C.privateLeagues.leave(t.id), N(null), i(t.id);
|
|
14528
14530
|
} catch (j) {
|
|
14529
|
-
|
|
14531
|
+
N(null), G({
|
|
14530
14532
|
open: !0,
|
|
14531
14533
|
variant: "error",
|
|
14532
14534
|
title: u("topX.errors.submitFailed") || "Error",
|
|
@@ -14548,7 +14550,7 @@ const ds = ({
|
|
|
14548
14550
|
), j.name && (d == null || d(t.id, {
|
|
14549
14551
|
name: j.name,
|
|
14550
14552
|
description: j.description ?? void 0
|
|
14551
|
-
})),
|
|
14553
|
+
})), ae(!1), G({
|
|
14552
14554
|
open: !0,
|
|
14553
14555
|
variant: "success",
|
|
14554
14556
|
title: u("topX.privateLeagues.editSuccessTitle") || "League updated!",
|
|
@@ -14557,26 +14559,26 @@ const ds = ({
|
|
|
14557
14559
|
},
|
|
14558
14560
|
[t.id, d, u]
|
|
14559
14561
|
), We = ce(() => {
|
|
14560
|
-
|
|
14562
|
+
N(null), l(t.id);
|
|
14561
14563
|
}, [t.id, l]), qe = ce((j) => {
|
|
14562
14564
|
R(
|
|
14563
14565
|
(Y) => Y && {
|
|
14564
14566
|
...Y,
|
|
14565
|
-
members: Y.members.filter((
|
|
14567
|
+
members: Y.members.filter((se) => se !== j),
|
|
14566
14568
|
membersCount: Math.max((Y.membersCount ?? 1) - 1, 0)
|
|
14567
14569
|
}
|
|
14568
14570
|
);
|
|
14569
14571
|
}, []), Ze = ce((j) => {
|
|
14570
|
-
|
|
14572
|
+
le((Y) => [
|
|
14571
14573
|
...Y,
|
|
14572
|
-
...j.filter((
|
|
14574
|
+
...j.filter((se) => !Y.includes(se))
|
|
14573
14575
|
]);
|
|
14574
14576
|
}, []), _e = ce((j) => {
|
|
14575
14577
|
R(
|
|
14576
14578
|
(Y) => Y && { ...Y, administrators: j }
|
|
14577
14579
|
);
|
|
14578
14580
|
}, []), Be = ce((j) => {
|
|
14579
|
-
|
|
14581
|
+
le((Y) => Y.filter((se) => se !== j));
|
|
14580
14582
|
}, []), Ie = ke(
|
|
14581
14583
|
() => T != null && ((w == null ? void 0 : w.administrators) ?? []).includes(T),
|
|
14582
14584
|
[T, w == null ? void 0 : w.administrators]
|
|
@@ -14829,7 +14831,7 @@ const ds = ({
|
|
|
14829
14831
|
ys,
|
|
14830
14832
|
{
|
|
14831
14833
|
open: oe,
|
|
14832
|
-
onClose: () =>
|
|
14834
|
+
onClose: () => ae(!1),
|
|
14833
14835
|
sdk: C,
|
|
14834
14836
|
leagueId: t.id,
|
|
14835
14837
|
league: t,
|
|
@@ -14841,7 +14843,7 @@ const ds = ({
|
|
|
14841
14843
|
Co,
|
|
14842
14844
|
{
|
|
14843
14845
|
open: O === "leave",
|
|
14844
|
-
onClose: () => !V &&
|
|
14846
|
+
onClose: () => !V && N(null),
|
|
14845
14847
|
title: u("topX.privateLeagues.leaveLeagueTitle") || "Leave this league?",
|
|
14846
14848
|
children: [
|
|
14847
14849
|
/* @__PURE__ */ c(
|
|
@@ -14889,7 +14891,7 @@ const ds = ({
|
|
|
14889
14891
|
{
|
|
14890
14892
|
variant: "outlined",
|
|
14891
14893
|
disabled: V,
|
|
14892
|
-
onClick: () =>
|
|
14894
|
+
onClick: () => N(null),
|
|
14893
14895
|
sx: {
|
|
14894
14896
|
fontFamily: b.primary,
|
|
14895
14897
|
fontSize: "0.875em",
|
|
@@ -14932,7 +14934,7 @@ const ds = ({
|
|
|
14932
14934
|
Ss,
|
|
14933
14935
|
{
|
|
14934
14936
|
open: O === "delete",
|
|
14935
|
-
onClose: () =>
|
|
14937
|
+
onClose: () => N(null),
|
|
14936
14938
|
sdk: C,
|
|
14937
14939
|
leagueId: t.id,
|
|
14938
14940
|
leagueName: (w == null ? void 0 : w.name) ?? t.name,
|
|
@@ -15238,9 +15240,9 @@ const ds = ({
|
|
|
15238
15240
|
var ne, me, be, Te, Se, Fe, Ue, Ne;
|
|
15239
15241
|
const { t: i } = Re("common"), l = ye(), d = he(), n = ve(), s = we(), { sdk: p, entityId: a } = gt(), [m, g] = E(!1), [u, x] = E(""), [f, h] = E(""), [b, C] = E(!0), [y, v] = E(""), [I, k] = E(
|
|
15240
15242
|
() => Eo()
|
|
15241
|
-
), [z, w] = E(!1), [R, L] = E(""), [P, T] = E(!1), [
|
|
15243
|
+
), [z, w] = E(!1), [R, L] = E(""), [P, T] = E(!1), [M, X] = E(!1), [W, F] = E({}), [$, A] = E(null), [J, O] = E({ open: !1, variant: "success", title: "", message: "" }), N = So(), V = ((me = (ne = l.palette) == null ? void 0 : ne.primary) == null ? void 0 : me.plainColor) ?? "#e53e3e", B = ((Te = (be = l.palette) == null ? void 0 : be.primary) == null ? void 0 : Te.onPrimary) ?? "#fff", H = (Fe = (Se = l.palette) == null ? void 0 : Se.primary) == null ? void 0 : Fe.primaryButtonGradient, G = ((Ne = (Ue = l.palette) == null ? void 0 : Ue.danger) == null ? void 0 : Ne.plainColor) ?? "#dc2626", _ = ce(() => {
|
|
15242
15244
|
k(Eo()), x(""), h(""), C(!0), v(""), F({}), w(!1), g(!0);
|
|
15243
|
-
}, []),
|
|
15245
|
+
}, []), le = async () => {
|
|
15244
15246
|
try {
|
|
15245
15247
|
await navigator.clipboard.writeText(I.toUpperCase()), w(!0), setTimeout(() => w(!1), 2e3);
|
|
15246
15248
|
} catch {
|
|
@@ -15287,7 +15289,7 @@ const ds = ({
|
|
|
15287
15289
|
} finally {
|
|
15288
15290
|
T(!1);
|
|
15289
15291
|
}
|
|
15290
|
-
},
|
|
15292
|
+
}, D = async () => {
|
|
15291
15293
|
if (!(R.length < Ct)) {
|
|
15292
15294
|
X(!0), A(null);
|
|
15293
15295
|
try {
|
|
@@ -15316,7 +15318,7 @@ const ds = ({
|
|
|
15316
15318
|
X(!1);
|
|
15317
15319
|
}
|
|
15318
15320
|
}
|
|
15319
|
-
}, oe = Object.entries(W).filter(([ie]) => ie === "_general").map(([, ie]) => ie),
|
|
15321
|
+
}, oe = Object.entries(W).filter(([ie]) => ie === "_general").map(([, ie]) => ie), ae = {
|
|
15320
15322
|
fontFamily: s.primary,
|
|
15321
15323
|
fontSize: "0.8125em",
|
|
15322
15324
|
fontWeight: 600,
|
|
@@ -15325,7 +15327,7 @@ const ds = ({
|
|
|
15325
15327
|
letterSpacing: "0.02em"
|
|
15326
15328
|
};
|
|
15327
15329
|
return /* @__PURE__ */ c(Ee, { children: [
|
|
15328
|
-
|
|
15330
|
+
N ? (
|
|
15329
15331
|
/* ── Mobile: compact single panel ───────────────────────────────── */
|
|
15330
15332
|
/* @__PURE__ */ c(
|
|
15331
15333
|
r,
|
|
@@ -15451,8 +15453,8 @@ const ds = ({
|
|
|
15451
15453
|
onChange: (ie) => {
|
|
15452
15454
|
L(ie), A(null);
|
|
15453
15455
|
},
|
|
15454
|
-
onSubmit:
|
|
15455
|
-
disabled:
|
|
15456
|
+
onSubmit: D,
|
|
15457
|
+
disabled: M,
|
|
15456
15458
|
primaryColor: V,
|
|
15457
15459
|
colors: l,
|
|
15458
15460
|
radius: n
|
|
@@ -15462,9 +15464,9 @@ const ds = ({
|
|
|
15462
15464
|
He,
|
|
15463
15465
|
{
|
|
15464
15466
|
size: "sm",
|
|
15465
|
-
loading:
|
|
15467
|
+
loading: M,
|
|
15466
15468
|
disabled: R.length < Ct,
|
|
15467
|
-
onClick:
|
|
15469
|
+
onClick: D,
|
|
15468
15470
|
sx: {
|
|
15469
15471
|
fontFamily: s.primary,
|
|
15470
15472
|
fontSize: "0.875em",
|
|
@@ -15613,8 +15615,8 @@ const ds = ({
|
|
|
15613
15615
|
onChange: (ie) => {
|
|
15614
15616
|
L(ie), A(null);
|
|
15615
15617
|
},
|
|
15616
|
-
onSubmit:
|
|
15617
|
-
disabled:
|
|
15618
|
+
onSubmit: D,
|
|
15619
|
+
disabled: M,
|
|
15618
15620
|
primaryColor: V,
|
|
15619
15621
|
colors: l,
|
|
15620
15622
|
radius: n
|
|
@@ -15632,9 +15634,9 @@ const ds = ({
|
|
|
15632
15634
|
He,
|
|
15633
15635
|
{
|
|
15634
15636
|
fullWidth: !0,
|
|
15635
|
-
loading:
|
|
15637
|
+
loading: M,
|
|
15636
15638
|
disabled: R.length < Ct,
|
|
15637
|
-
onClick:
|
|
15639
|
+
onClick: D,
|
|
15638
15640
|
sx: {
|
|
15639
15641
|
fontFamily: s.primary,
|
|
15640
15642
|
fontSize: "0.875em",
|
|
@@ -15685,7 +15687,7 @@ const ds = ({
|
|
|
15685
15687
|
}
|
|
15686
15688
|
),
|
|
15687
15689
|
/* @__PURE__ */ c(r, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: [
|
|
15688
|
-
/* @__PURE__ */ c(S, { sx:
|
|
15690
|
+
/* @__PURE__ */ c(S, { sx: ae, children: [
|
|
15689
15691
|
i("topX.privateLeagues.leagueName") || "League Name",
|
|
15690
15692
|
" *"
|
|
15691
15693
|
] }),
|
|
@@ -15720,7 +15722,7 @@ const ds = ({
|
|
|
15720
15722
|
)
|
|
15721
15723
|
] }),
|
|
15722
15724
|
/* @__PURE__ */ c(r, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: [
|
|
15723
|
-
/* @__PURE__ */ c(S, { sx:
|
|
15725
|
+
/* @__PURE__ */ c(S, { sx: ae, children: [
|
|
15724
15726
|
i("topX.privateLeagues.description") || "Description",
|
|
15725
15727
|
" *"
|
|
15726
15728
|
] }),
|
|
@@ -15754,7 +15756,7 @@ const ds = ({
|
|
|
15754
15756
|
)
|
|
15755
15757
|
] }),
|
|
15756
15758
|
/* @__PURE__ */ c(r, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: [
|
|
15757
|
-
/* @__PURE__ */ e(S, { sx:
|
|
15759
|
+
/* @__PURE__ */ e(S, { sx: ae, children: i("topX.privateLeagues.invitationCode") || "Invitation Code" }),
|
|
15758
15760
|
/* @__PURE__ */ c(r, { sx: { display: "flex", gap: d.xs, alignItems: "center" }, children: [
|
|
15759
15761
|
/* @__PURE__ */ e(
|
|
15760
15762
|
r,
|
|
@@ -15784,7 +15786,7 @@ const ds = ({
|
|
|
15784
15786
|
component: "button",
|
|
15785
15787
|
type: "button",
|
|
15786
15788
|
title: z ? "Copied!" : "Copy code",
|
|
15787
|
-
onClick:
|
|
15789
|
+
onClick: le,
|
|
15788
15790
|
sx: {
|
|
15789
15791
|
background: z ? `${V}15` : "none",
|
|
15790
15792
|
border: `1px solid ${z ? `${V}80` : l.outlineEnabledBorder}`,
|
|
@@ -15911,7 +15913,7 @@ const ds = ({
|
|
|
15911
15913
|
}
|
|
15912
15914
|
),
|
|
15913
15915
|
/* @__PURE__ */ c(r, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: [
|
|
15914
|
-
/* @__PURE__ */ e(S, { sx:
|
|
15916
|
+
/* @__PURE__ */ e(S, { sx: ae, children: i("topX.privateLeagues.scoringStartsAt") || "Scoring Starts At" }),
|
|
15915
15917
|
/* @__PURE__ */ e(
|
|
15916
15918
|
r,
|
|
15917
15919
|
{
|
|
@@ -16099,7 +16101,7 @@ const ds = ({
|
|
|
16099
16101
|
var st, pt, q, Q, Z, de, Le, pe;
|
|
16100
16102
|
const { t: o } = Re("common"), i = ye(), l = he(), d = ve(), n = we(), { sdk: s, userIsLoggedIn: p, signInCTA: a, entityId: m } = gt(), g = ((pt = (st = i.palette) == null ? void 0 : st.primary) == null ? void 0 : pt.plainColor) ?? "#1A77D2", u = ((Q = (q = i.palette) == null ? void 0 : q.primary) == null ? void 0 : Q.onPrimary) ?? "#fff", x = (de = (Z = i.palette) == null ? void 0 : Z.primary) == null ? void 0 : de.primaryButtonGradient, f = ((pe = (Le = i.palette) == null ? void 0 : Le.danger) == null ? void 0 : pe.plainColor) ?? "#F44336", [h, b] = E([]), [C, y] = E(!0), [v, I] = E(null), [k, z] = E(
|
|
16101
16103
|
null
|
|
16102
|
-
), [w, R] = E([]), [L, P] = E(null), [T,
|
|
16104
|
+
), [w, R] = E([]), [L, P] = E(null), [T, M] = E({}), [X, W] = E(null), [F, $] = E({}), [A, J] = E(null), [O, N] = E(""), [V, B] = E(!1), [H, G] = E(null), [_, le] = E(!1), re = Ge(null), [D, oe] = E({
|
|
16103
16105
|
open: !1,
|
|
16104
16106
|
variant: "success",
|
|
16105
16107
|
title: "",
|
|
@@ -16111,13 +16113,13 @@ const ds = ({
|
|
|
16111
16113
|
return;
|
|
16112
16114
|
}
|
|
16113
16115
|
(async () => {
|
|
16114
|
-
const [j, Y,
|
|
16116
|
+
const [j, Y, se] = await Promise.allSettled([
|
|
16115
16117
|
s.privateLeagues.getMyLeagues(),
|
|
16116
16118
|
s.privateLeagues.getInvitations(void 0, !0),
|
|
16117
16119
|
s.profile.getOwn().getInfo()
|
|
16118
16120
|
]);
|
|
16119
|
-
if (
|
|
16120
|
-
const Xe =
|
|
16121
|
+
if (se.status === "fulfilled" && se.value) {
|
|
16122
|
+
const Xe = se.value;
|
|
16121
16123
|
I(Xe.id ?? null), W({
|
|
16122
16124
|
displayName: Xe.nickname ?? Xe.name ?? "—",
|
|
16123
16125
|
avatar: Xe.avatar ?? null
|
|
@@ -16180,10 +16182,10 @@ const ds = ({
|
|
|
16180
16182
|
y(!1);
|
|
16181
16183
|
})();
|
|
16182
16184
|
}, [s, p, m]);
|
|
16183
|
-
const
|
|
16185
|
+
const ae = (U) => {
|
|
16184
16186
|
b((j) => [U, ...j]);
|
|
16185
16187
|
}, ne = (U) => {
|
|
16186
|
-
b((j) => j.some((
|
|
16188
|
+
b((j) => j.some((se) => se.id === U.id) ? j : [U, ...j]);
|
|
16187
16189
|
}, me = ce(() => z(null), []), be = ce((U) => {
|
|
16188
16190
|
b((j) => j.filter((Y) => Y.id !== U)), z(null), oe({
|
|
16189
16191
|
open: !0,
|
|
@@ -16193,7 +16195,7 @@ const ds = ({
|
|
|
16193
16195
|
});
|
|
16194
16196
|
}, [o]), Te = ce((U, j) => {
|
|
16195
16197
|
b(
|
|
16196
|
-
(Y) => Y.map((
|
|
16198
|
+
(Y) => Y.map((se) => se.id === U ? { ...se, ...j } : se)
|
|
16197
16199
|
), z(
|
|
16198
16200
|
(Y) => (Y == null ? void 0 : Y.id) === U ? { ...Y, ...j } : Y
|
|
16199
16201
|
);
|
|
@@ -16205,10 +16207,10 @@ const ds = ({
|
|
|
16205
16207
|
message: o("topX.privateLeagues.deleteSuccessMessage") || "The league has been deleted."
|
|
16206
16208
|
});
|
|
16207
16209
|
}, [o]), Fe = ce((U) => {
|
|
16208
|
-
z((j) => h.find((
|
|
16210
|
+
z((j) => h.find((se) => se.id === U) ?? j);
|
|
16209
16211
|
}, [h]), Ue = ce(
|
|
16210
16212
|
(U, j) => {
|
|
16211
|
-
|
|
16213
|
+
M((Y) => ({ ...Y, [U]: j }));
|
|
16212
16214
|
},
|
|
16213
16215
|
[]
|
|
16214
16216
|
), Ne = ke(() => {
|
|
@@ -16223,7 +16225,7 @@ const ds = ({
|
|
|
16223
16225
|
points: U.points
|
|
16224
16226
|
};
|
|
16225
16227
|
}, [k == null ? void 0 : k.id, F, v, X]), ie = async (U) => {
|
|
16226
|
-
var j, Y,
|
|
16228
|
+
var j, Y, se, Ve, Je;
|
|
16227
16229
|
P({ id: U.id, action: "accept" }), R((Ke) => Ke.filter((Xe) => Xe.id !== U.id));
|
|
16228
16230
|
try {
|
|
16229
16231
|
const Ke = await s.privateLeagues.accept(U.id), Xe = Ke.leagueId ?? U.id;
|
|
@@ -16241,7 +16243,7 @@ const ds = ({
|
|
|
16241
16243
|
id: Xe,
|
|
16242
16244
|
name: ((j = Ke.leagueModel) == null ? void 0 : j.name) ?? U.name,
|
|
16243
16245
|
description: ((Y = Ke.leagueModel) == null ? void 0 : Y.description) ?? U.description ?? null,
|
|
16244
|
-
templateId: ((
|
|
16246
|
+
templateId: ((se = Ke.leagueModel) == null ? void 0 : se.templateId) ?? m,
|
|
16245
16247
|
invitationCode: ((Ve = Ke.leagueModel) == null ? void 0 : Ve.invitationCode) ?? U.invitationCode ?? "",
|
|
16246
16248
|
membersCount: ((Je = Ke.leagueModel) == null ? void 0 : Je.membersCount) ?? U.membersCount,
|
|
16247
16249
|
userPosition: Qe,
|
|
@@ -16283,7 +16285,7 @@ const ds = ({
|
|
|
16283
16285
|
P(null);
|
|
16284
16286
|
}
|
|
16285
16287
|
}, We = ce((U) => {
|
|
16286
|
-
J(U),
|
|
16288
|
+
J(U), N(""), G(null), le(!1), setTimeout(() => {
|
|
16287
16289
|
var j;
|
|
16288
16290
|
return (j = re.current) == null ? void 0 : j.focus();
|
|
16289
16291
|
}, 80);
|
|
@@ -16299,17 +16301,17 @@ const ds = ({
|
|
|
16299
16301
|
message: o("topX.privateLeagues.copyCodeSuccessMessage", { name: U })
|
|
16300
16302
|
});
|
|
16301
16303
|
}, [o]), Be = ce(() => {
|
|
16302
|
-
V || (J(null),
|
|
16304
|
+
V || (J(null), N(""), G(null), le(!1));
|
|
16303
16305
|
}, [V]), Ie = ce(async () => {
|
|
16304
16306
|
var U;
|
|
16305
16307
|
if (A) {
|
|
16306
16308
|
if (O !== "DELETE") {
|
|
16307
|
-
|
|
16309
|
+
le(!0), setTimeout(() => le(!1), 600), (U = re.current) == null || U.focus();
|
|
16308
16310
|
return;
|
|
16309
16311
|
}
|
|
16310
16312
|
B(!0), G(null);
|
|
16311
16313
|
try {
|
|
16312
|
-
await s.privateLeagues.delete(A.id), b((j) => j.filter((Y) => Y.id !== A.id)), J(null),
|
|
16314
|
+
await s.privateLeagues.delete(A.id), b((j) => j.filter((Y) => Y.id !== A.id)), J(null), N(""), oe({
|
|
16313
16315
|
open: !0,
|
|
16314
16316
|
variant: "success",
|
|
16315
16317
|
title: o("topX.privateLeagues.deleteSuccessTitle") || "League deleted",
|
|
@@ -16437,7 +16439,7 @@ const ds = ({
|
|
|
16437
16439
|
gridTemplateColumns: { xs: "1fr", sm: "repeat(3, 1fr)" },
|
|
16438
16440
|
gap: l.md
|
|
16439
16441
|
},
|
|
16440
|
-
children: j.map((
|
|
16442
|
+
children: j.map((se) => /* @__PURE__ */ c(
|
|
16441
16443
|
r,
|
|
16442
16444
|
{
|
|
16443
16445
|
sx: {
|
|
@@ -16466,14 +16468,14 @@ const ds = ({
|
|
|
16466
16468
|
justifyContent: "center",
|
|
16467
16469
|
flexShrink: 0
|
|
16468
16470
|
},
|
|
16469
|
-
children:
|
|
16471
|
+
children: se.icon
|
|
16470
16472
|
}
|
|
16471
16473
|
),
|
|
16472
16474
|
/* @__PURE__ */ e(
|
|
16473
16475
|
S,
|
|
16474
16476
|
{
|
|
16475
16477
|
sx: { fontFamily: n.primary, fontWeight: 600, fontSize: "0.9375em", color: i.textPrimary },
|
|
16476
|
-
children:
|
|
16478
|
+
children: se.title
|
|
16477
16479
|
}
|
|
16478
16480
|
),
|
|
16479
16481
|
/* @__PURE__ */ e(
|
|
@@ -16481,12 +16483,12 @@ const ds = ({
|
|
|
16481
16483
|
{
|
|
16482
16484
|
level: "body-sm",
|
|
16483
16485
|
sx: { fontFamily: n.primary, fontSize: "0.875em", color: i.textSecondary, lineHeight: 1.55 },
|
|
16484
|
-
children:
|
|
16486
|
+
children: se.desc
|
|
16485
16487
|
}
|
|
16486
16488
|
)
|
|
16487
16489
|
]
|
|
16488
16490
|
},
|
|
16489
|
-
|
|
16491
|
+
se.title
|
|
16490
16492
|
))
|
|
16491
16493
|
}
|
|
16492
16494
|
),
|
|
@@ -16515,17 +16517,17 @@ const ds = ({
|
|
|
16515
16517
|
children: o("topX.privateLeagues.whatYouCanDo")
|
|
16516
16518
|
}
|
|
16517
16519
|
),
|
|
16518
|
-
/* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: l.sm }, children: Y.map((
|
|
16519
|
-
|
|
16520
|
+
/* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: l.sm }, children: Y.map((se) => /* @__PURE__ */ c(r, { sx: { display: "flex", alignItems: "flex-start", gap: l.sm }, children: [
|
|
16521
|
+
se.icon,
|
|
16520
16522
|
/* @__PURE__ */ e(
|
|
16521
16523
|
S,
|
|
16522
16524
|
{
|
|
16523
16525
|
level: "body-sm",
|
|
16524
16526
|
sx: { fontFamily: n.primary, fontSize: "0.875em", color: i.textPrimary, lineHeight: 1.6 },
|
|
16525
|
-
children:
|
|
16527
|
+
children: se.text
|
|
16526
16528
|
}
|
|
16527
16529
|
)
|
|
16528
|
-
] },
|
|
16530
|
+
] }, se.text)) })
|
|
16529
16531
|
]
|
|
16530
16532
|
}
|
|
16531
16533
|
),
|
|
@@ -16573,7 +16575,7 @@ const ds = ({
|
|
|
16573
16575
|
/* @__PURE__ */ e(
|
|
16574
16576
|
ro,
|
|
16575
16577
|
{
|
|
16576
|
-
notification:
|
|
16578
|
+
notification: D,
|
|
16577
16579
|
onClose: () => oe((U) => ({ ...U, open: !1 }))
|
|
16578
16580
|
}
|
|
16579
16581
|
)
|
|
@@ -16581,7 +16583,7 @@ const ds = ({
|
|
|
16581
16583
|
/* @__PURE__ */ e(
|
|
16582
16584
|
Bs,
|
|
16583
16585
|
{
|
|
16584
|
-
onLeagueCreated:
|
|
16586
|
+
onLeagueCreated: ae,
|
|
16585
16587
|
onLeagueJoined: ne
|
|
16586
16588
|
}
|
|
16587
16589
|
),
|
|
@@ -16634,7 +16636,7 @@ const ds = ({
|
|
|
16634
16636
|
)
|
|
16635
16637
|
] }),
|
|
16636
16638
|
w.map((U, j) => {
|
|
16637
|
-
const Y = (L == null ? void 0 : L.id) === U.id,
|
|
16639
|
+
const Y = (L == null ? void 0 : L.id) === U.id, se = Y && (L == null ? void 0 : L.action) === "accept", Ve = Y && (L == null ? void 0 : L.action) === "decline";
|
|
16638
16640
|
return /* @__PURE__ */ c(
|
|
16639
16641
|
r,
|
|
16640
16642
|
{
|
|
@@ -16769,10 +16771,10 @@ const ds = ({
|
|
|
16769
16771
|
He,
|
|
16770
16772
|
{
|
|
16771
16773
|
size: "sm",
|
|
16772
|
-
loading:
|
|
16773
|
-
disabled: Y && !
|
|
16774
|
+
loading: se,
|
|
16775
|
+
disabled: Y && !se,
|
|
16774
16776
|
onClick: () => ie(U),
|
|
16775
|
-
startDecorator: !
|
|
16777
|
+
startDecorator: !se && /* @__PURE__ */ e(Mr, { sx: { fontSize: 14 } }),
|
|
16776
16778
|
sx: {
|
|
16777
16779
|
fontFamily: n.primary,
|
|
16778
16780
|
fontSize: "0.875em",
|
|
@@ -16937,7 +16939,7 @@ const ds = ({
|
|
|
16937
16939
|
/* @__PURE__ */ e(
|
|
16938
16940
|
ro,
|
|
16939
16941
|
{
|
|
16940
|
-
notification:
|
|
16942
|
+
notification: D,
|
|
16941
16943
|
onClose: () => oe((U) => ({ ...U, open: !1 }))
|
|
16942
16944
|
}
|
|
16943
16945
|
),
|
|
@@ -17039,7 +17041,7 @@ const ds = ({
|
|
|
17039
17041
|
slotProps: { input: { ref: re } },
|
|
17040
17042
|
value: O,
|
|
17041
17043
|
onChange: (U) => {
|
|
17042
|
-
|
|
17044
|
+
N(U.target.value.toUpperCase()), G(null);
|
|
17043
17045
|
},
|
|
17044
17046
|
onKeyDown: (U) => {
|
|
17045
17047
|
U.key === "Enter" && Ie();
|
|
@@ -17750,7 +17752,7 @@ const Hs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17750
17752
|
}, Ir = Pe.memo(Gs), Us = ({ rawHtml: t, t: o, tl: i }) => {
|
|
17751
17753
|
var R;
|
|
17752
17754
|
const l = he(), { html: d } = ke(() => Zr(t), [t]), n = ke(() => {
|
|
17753
|
-
var
|
|
17755
|
+
var M, X, W;
|
|
17754
17756
|
const L = document.createElement("template");
|
|
17755
17757
|
L.innerHTML = d;
|
|
17756
17758
|
const P = [];
|
|
@@ -17760,7 +17762,7 @@ const Hs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17760
17762
|
const $ = F;
|
|
17761
17763
|
T = {
|
|
17762
17764
|
id: $.id,
|
|
17763
|
-
title: ((
|
|
17765
|
+
title: ((M = $.querySelector(".rules-h2-title")) == null ? void 0 : M.textContent) || "",
|
|
17764
17766
|
number: ((W = (X = $.querySelector(".rules-h2-num")) == null ? void 0 : X.textContent) == null ? void 0 : W.replace(/\.$/, "")) || "",
|
|
17765
17767
|
nodes: []
|
|
17766
17768
|
}, P.push(T);
|
|
@@ -17785,14 +17787,14 @@ const Hs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17785
17787
|
const P = {};
|
|
17786
17788
|
if (a && a.length >= 2) {
|
|
17787
17789
|
const T = a.toLowerCase();
|
|
17788
|
-
n.forEach((
|
|
17790
|
+
n.forEach((M) => {
|
|
17789
17791
|
const X = document.createElement("div");
|
|
17790
|
-
X.innerHTML =
|
|
17792
|
+
X.innerHTML = M.html;
|
|
17791
17793
|
const W = X.textContent.toLowerCase();
|
|
17792
17794
|
let F = 0, $ = 0;
|
|
17793
17795
|
for (; ($ = W.indexOf(T, $)) !== -1; )
|
|
17794
17796
|
F++, $ += T.length;
|
|
17795
|
-
(F ||
|
|
17797
|
+
(F || M.title.toLowerCase().includes(T)) && (P[M.id] = Math.max(F, 1));
|
|
17796
17798
|
});
|
|
17797
17799
|
}
|
|
17798
17800
|
u(P), a && Object.keys(P).length && !P[s] && p(Object.keys(P)[0]), requestAnimationFrame(() => {
|
|
@@ -18312,7 +18314,7 @@ const el = ({ template: t, loading: o }) => {
|
|
|
18312
18314
|
gameNavLabel: y = "gameWeek"
|
|
18313
18315
|
} = t, { t: v } = Re("common"), I = ye(), k = we(), z = he(), w = ve(), R = p && p.length > 0 ? p : en, [L, P] = E(
|
|
18314
18316
|
() => Lr() ?? R[0]
|
|
18315
|
-
), { template: T, loading:
|
|
18317
|
+
), { template: T, loading: M } = Ur(o, i);
|
|
18316
18318
|
xe(() => {
|
|
18317
18319
|
const B = () => {
|
|
18318
18320
|
const H = Lr();
|
|
@@ -18328,14 +18330,14 @@ const el = ({ template: t, loading: o }) => {
|
|
|
18328
18330
|
"private-leagues": v("topX.tabs.privateLeagues"),
|
|
18329
18331
|
rules: v("topX.tabs.rules"),
|
|
18330
18332
|
prizes: v("topX.tabs.prizes")
|
|
18331
|
-
}, F = I.palette.primary.plainColor, $ = I.palette.primary.onPrimary, A = I.palette.primary.primaryContainer, J = I.palette.primary.primaryButtonGradient, O = A ?? `color-mix(in srgb, ${F} 75%, #000 25%)`,
|
|
18333
|
+
}, F = I.palette.primary.plainColor, $ = I.palette.primary.onPrimary, A = I.palette.primary.primaryContainer, J = I.palette.primary.primaryButtonGradient, O = A ?? `color-mix(in srgb, ${F} 75%, #000 25%)`, N = a ?? (T == null ? void 0 : T.image) ?? void 0, V = () => {
|
|
18332
18334
|
switch (L) {
|
|
18333
18335
|
case "play":
|
|
18334
18336
|
return /* @__PURE__ */ e(
|
|
18335
18337
|
$a,
|
|
18336
18338
|
{
|
|
18337
18339
|
template: T,
|
|
18338
|
-
loading:
|
|
18340
|
+
loading: M,
|
|
18339
18341
|
error: null,
|
|
18340
18342
|
playTabBanners: m,
|
|
18341
18343
|
matchCardBgImageUrl: u,
|
|
@@ -18348,9 +18350,9 @@ const el = ({ template: t, loading: o }) => {
|
|
|
18348
18350
|
case "private-leagues":
|
|
18349
18351
|
return /* @__PURE__ */ e(Ms, { template: T });
|
|
18350
18352
|
case "rules":
|
|
18351
|
-
return /* @__PURE__ */ e(Js, { template: T, loading:
|
|
18353
|
+
return /* @__PURE__ */ e(Js, { template: T, loading: M });
|
|
18352
18354
|
case "prizes":
|
|
18353
|
-
return /* @__PURE__ */ e(el, { template: T, loading:
|
|
18355
|
+
return /* @__PURE__ */ e(el, { template: T, loading: M });
|
|
18354
18356
|
default:
|
|
18355
18357
|
return null;
|
|
18356
18358
|
}
|
|
@@ -18383,14 +18385,14 @@ const el = ({ template: t, loading: o }) => {
|
|
|
18383
18385
|
r,
|
|
18384
18386
|
{
|
|
18385
18387
|
sx: {
|
|
18386
|
-
background:
|
|
18388
|
+
background: N ? `url(${N}), linear-gradient(to right, ${F}, ${O})` : `linear-gradient(to right, ${F}, ${O})`,
|
|
18387
18389
|
backgroundSize: "cover",
|
|
18388
18390
|
backgroundPosition: "center",
|
|
18389
18391
|
color: $,
|
|
18390
18392
|
px: z.lg,
|
|
18391
18393
|
py: z.lg
|
|
18392
18394
|
},
|
|
18393
|
-
children: /* @__PURE__ */ e(r, { children:
|
|
18395
|
+
children: /* @__PURE__ */ e(r, { children: M ? /* @__PURE__ */ c(Ee, { children: [
|
|
18394
18396
|
/* @__PURE__ */ e(
|
|
18395
18397
|
r,
|
|
18396
18398
|
{
|