fansunited-frontend-components 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Betslip.js +1 -1
- package/ChanceGame.js +8 -8
- package/ClassicQuizPlay.js +20 -20
- package/CollectLead.js +6 -6
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +21 -21
- package/EventGamePlay.js +24 -24
- package/Leaderboard.js +11 -11
- package/MatchQuizPlay.js +27 -27
- package/PersonalityQuizPlay.js +19 -19
- package/PickThePair.js +9 -9
- package/PollVote.js +17 -17
- package/Predictor.js +327 -327
- package/Standings.js +267 -252
- package/TopX.js +382 -382
- package/chunks/{AlertMessage-AyMEW3JL.js → AlertMessage-CGsgz9QP.js} +4 -4
- package/chunks/{ArrowRightAlt-DVXOeIJN.js → ArrowRightAlt-CrbCfPqF.js} +1 -1
- package/chunks/{Avatar-CBP4sabd.js → Avatar-DEfTQJbR.js} +3 -3
- package/chunks/{Button-DOVRR2Sy.js → Button-BpDNOp4E.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-kBcjiKzu.js → ChanceGameEmbedVariant-D9VI-mrP.js} +9 -9
- package/chunks/{createSvgIcon-C-cmTwJ_.js → CheckCircle-MCCIVdJW.js} +49 -42
- package/chunks/{Chip-DeEjQ2-F.js → Chip-BJbMDObW.js} +3 -3
- package/chunks/{Close-CdWk2nDh.js → Close-CDADoRFh.js} +1 -1
- package/chunks/{Close-CS-wfAnO.js → Close-qW9PQXAh.js} +1 -1
- package/chunks/{CollectLeadForm-DevgGzsO.js → CollectLeadForm-DRgerBFl.js} +29 -30
- package/chunks/{Divider-D6QU-XQ5.js → Divider-CwD6e_Mx.js} +3 -3
- package/chunks/{Edit-B2N_Ry9g.js → Edit-DVRP51mF.js} +6 -6
- package/chunks/{EmojiEvents-E7Oqv7rk.js → EmojiEvents-Bd4EnqWZ.js} +1 -1
- package/chunks/{FavoriteBorder-CguT2h2c.js → FavoriteBorder-DZah1leY.js} +1 -1
- package/chunks/{FormControl-D32DP14w.js → FormControl-Cy95xh7G.js} +4 -5
- package/chunks/{FormLabel-BYtvETHS.js → FormLabel-CZa1RF9H.js} +3 -3
- package/chunks/{Input-D81KBU9B.js → Input-BBd-zRYm.js} +3 -3
- package/chunks/{KeyboardArrowDown-CvGmYfHu.js → KeyboardArrowDown-o7vmCVYf.js} +1 -1
- package/chunks/{ModalDialog-D63x8ebf.js → ModalDialog-eI1ziPEO.js} +4 -4
- package/chunks/{NotFoundSkeleton-B4r94g0a.js → NotFoundSkeleton-BvpmzWrD.js} +8 -8
- package/chunks/{Notification-wXJmjBSg.js → Notification-gs4R9LQ1.js} +6 -6
- package/chunks/{OverlayApiErrorSkeleton-DwV9wIov.js → OverlayApiErrorSkeleton-CsL4voqW.js} +7 -7
- package/chunks/{OverlayLeadAfterCollection-CI5NIwUv.js → OverlayLeadAfterCollection-BO9aMs3v.js} +5 -5
- package/chunks/{OverlayScoreStateSkeleton-wpxvfC5x.js → OverlayScoreStateSkeleton-Cakuc0gF.js} +4 -4
- package/chunks/{Person-DvjCrwnY.js → Person-BkWUE01t.js} +1 -1
- package/chunks/{PickOneOfX-DunXqSn1.js → PickOneOfX-vu_uatSq.js} +3 -3
- package/chunks/{Popper-0XuEHl9i.js → Popper-CyWC_zv1.js} +3 -3
- package/chunks/{Portal-4mtEzZlO.js → Portal-CoaOIw9X.js} +1 -1
- package/chunks/{PrizeCard-CjZXXFx3.js → PrizeCard-DYwXaC1D.js} +3248 -2310
- package/chunks/{Select-B_VR6iKu.js → Select-CRuPsqrG.js} +5 -6
- package/chunks/{Spinner-htM_pA9-.js → Spinner-CD5wbUmy.js} +2 -2
- package/chunks/{SplitLeadAfterCollection-CowadlL1.js → SplitLeadAfterCollection-Vke86ylr.js} +6 -6
- package/chunks/{Stack-BrwF24Ji.js → Stack-DEj8r9tP.js} +2 -2
- package/chunks/{StandardContentSkeleton-Bk0sSsby.js → StandardContentSkeleton-CPtytoYO.js} +1 -1
- package/chunks/{Table-OBls_6ml.js → Table-CwDNo-UR.js} +2 -2
- package/chunks/{Tabs-DW1eIofJ.js → Tabs-C4mPtsga.js} +3 -3
- package/chunks/{Textarea-DDJ2mdR3.js → Textarea-DwuY7MCR.js} +4 -4
- package/chunks/{TimerOutlined-BmAAC-Vi.js → TimerOutlined-D3hLxDxl.js} +1 -1
- package/chunks/{Typography-DjxaMiey.js → Typography-C3YXEcle.js} +1 -1
- package/chunks/{helpers-B7-TtMzO.js → helpers-bzUOaq-G.js} +1 -1
- package/chunks/{index-BqoOC2KB.js → index-Bo7CJaUZ.js} +187 -184
- package/chunks/index-sJ-SFBJM.js +4 -0
- package/chunks/{main-Bgyyz19Z.js → main-DR1WT3kS.js} +3 -3
- package/chunks/{main-C8ApxGVj.js → main-bGk7HVmI.js} +15 -15
- package/chunks/{useEventCallback-BpsnMnDw.js → useEventCallback-ByT93yij.js} +2 -2
- package/chunks/{useForwardedInput-D2NH4BlT.js → useForwardedInput-Dr6j3VcU.js} +3 -3
- package/chunks/{useImageVariant-qiW-rMPJ.js → useImageVariant-CixMtvPN.js} +1 -1
- package/chunks/{variantColorInheritance-Bgtz8MKI.js → variantColorInheritance-V5sS30ik.js} +2 -2
- package/index.js +976 -691
- package/package.json +2 -2
- package/chunks/CheckCircle-ByRrHC2p.js +0 -12
- package/chunks/index-8rxXfewU.js +0 -4
package/TopX.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e, Fragment as Ee } from "react/jsx-runtime";
|
|
2
2
|
import * as lt from "react";
|
|
3
|
-
import Pe, { createContext as
|
|
4
|
-
import { N as
|
|
5
|
-
import { P as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
import { b as Lr, M as
|
|
8
|
-
import { n as tt, h as Et, o as
|
|
9
|
-
import { N as Qt } from "./chunks/Notification-
|
|
10
|
-
import { Y as
|
|
11
|
-
import { S as
|
|
12
|
-
import { F as
|
|
13
|
-
import { h as
|
|
14
|
-
import { o as po, B as Ne, I as Ct } from "./chunks/Button-
|
|
15
|
-
import { S as zr, W as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as Co } from "./chunks/useEventCallback-
|
|
18
|
-
import { a as
|
|
19
|
-
import { v as
|
|
20
|
-
import { P as Wt } from "./chunks/Person-
|
|
21
|
-
import { A as eo } from "./chunks/Avatar-
|
|
22
|
-
import { S as
|
|
23
|
-
import { C as
|
|
24
|
-
import { C as
|
|
25
|
-
import { S as To, T as Fo } from "./chunks/Table-
|
|
26
|
-
import { E as Xt } from "./chunks/EmojiEvents-
|
|
27
|
-
import { M as Mo, a as No } from "./chunks/ModalDialog-
|
|
28
|
-
import { C as
|
|
29
|
-
import { I as Mt } from "./chunks/Input-
|
|
30
|
-
import { T as
|
|
31
|
-
import { a as
|
|
32
|
-
import { D as
|
|
3
|
+
import Pe, { createContext as qr, useContext as Jr, useState as P, useRef as je, useMemo as Ce, useCallback as de, useEffect as me, lazy as Zr, Suspense as Qr, useLayoutEffect as wr } from "react";
|
|
4
|
+
import { N as en, _ as Ie, x as tn, y as on, z as rn, A as Kt, P as G, L as bo, a as be, e as xe, B as r, u as We, c as ve, b as ke, m as Lt, n as zt, l as ho, j as nn, q as Ir, k as an } from "./chunks/PrizeCard-DYwXaC1D.js";
|
|
5
|
+
import { P as sn } from "./chunks/Portal-CoaOIw9X.js";
|
|
6
|
+
import { createPortal as ln } from "react-dom";
|
|
7
|
+
import { b as Lr, M as cn } from "./chunks/main-DR1WT3kS.js";
|
|
8
|
+
import { n as tt, h as Et, o as dn } from "./chunks/helpers-bzUOaq-G.js";
|
|
9
|
+
import { N as Qt } from "./chunks/Notification-gs4R9LQ1.js";
|
|
10
|
+
import { Y as pn, X as un, J as mn, j as fn, o as xn } from "./chunks/index-BBrO1Htm.js";
|
|
11
|
+
import { S as hn } from "./chunks/Stack-DEj8r9tP.js";
|
|
12
|
+
import { F as gn, C as yn } from "./chunks/FormControl-Cy95xh7G.js";
|
|
13
|
+
import { h as bn, d as Zo, n as So, s as $t, u as Sn, a as It, o as Cn, c as vn, T as S } from "./chunks/Typography-C3YXEcle.js";
|
|
14
|
+
import { o as po, B as Ne, I as Ct } from "./chunks/Button-BpDNOp4E.js";
|
|
15
|
+
import { S as zr, W as kn, E as Zt, M as wn, D as $r, A as In, C as Rr, a as Tr, b as Ln, G as mo, c as fo, d as Bo, e as zn, m as $n, f as Fr, g as Rn, h as Tn, i as Er, j as Fn, L as En, V as Ro, k as Pn, l as Wn, n as Pr, o as Xn, P as An, p as Do, q as Bn, r as Pt, s as Dn, B as Mn, H as Qo, t as Nn, R as Wr, u as er, v as Hn, w as On, x as jn, y as tr, T as Vn, z as _n, F as Yn, N as Gn, I as Un, J as Kn, K as qn } from "./chunks/index-Bo7CJaUZ.js";
|
|
16
|
+
import { u as Jn } from "./chunks/useControlled-BYdyS7Pn.js";
|
|
17
|
+
import { u as Co } from "./chunks/useEventCallback-ByT93yij.js";
|
|
18
|
+
import { a as Zn } from "./chunks/areArraysEqual-B3mXtHvh.js";
|
|
19
|
+
import { v as Qn } from "./chunks/visuallyHidden-B8J7BVSJ.js";
|
|
20
|
+
import { P as Wt } from "./chunks/Person-BkWUE01t.js";
|
|
21
|
+
import { A as eo } from "./chunks/Avatar-DEfTQJbR.js";
|
|
22
|
+
import { S as ei } from "./chunks/Spinner-CD5wbUmy.js";
|
|
23
|
+
import { C as ti, a as oi } from "./chunks/chevrons-right-CRIN5sOe.js";
|
|
24
|
+
import { C as ri, a as ni } from "./chunks/chevron-right-B3IZtaMT.js";
|
|
25
|
+
import { S as To, T as Fo } from "./chunks/Table-CwDNo-UR.js";
|
|
26
|
+
import { E as Xt } from "./chunks/EmojiEvents-Bd4EnqWZ.js";
|
|
27
|
+
import { M as Mo, a as No } from "./chunks/ModalDialog-eI1ziPEO.js";
|
|
28
|
+
import { C as Xr } from "./chunks/Close-CDADoRFh.js";
|
|
29
|
+
import { I as Mt } from "./chunks/Input-BBd-zRYm.js";
|
|
30
|
+
import { T as Ar } from "./chunks/Textarea-DwuY7MCR.js";
|
|
31
|
+
import { a as ii, K as ai } from "./chunks/KeyboardArrowDown-o7vmCVYf.js";
|
|
32
|
+
import { D as si } from "./chunks/Divider-CwD6e_Mx.js";
|
|
33
33
|
function qt(t, o = Number.MIN_SAFE_INTEGER, a = Number.MAX_SAFE_INTEGER) {
|
|
34
34
|
return Math.max(o, Math.min(t, a));
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function
|
|
36
|
+
const li = 2;
|
|
37
|
+
function Br(t, o) {
|
|
38
38
|
return t - o;
|
|
39
39
|
}
|
|
40
40
|
function or(t, o) {
|
|
@@ -71,10 +71,10 @@ function oo(t, o) {
|
|
|
71
71
|
function xo(t, o, a) {
|
|
72
72
|
return (t - o) * 100 / (a - o);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function ci(t, o, a) {
|
|
75
75
|
return (a - o) * t + o;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function di(t) {
|
|
78
78
|
if (Math.abs(t) < 1) {
|
|
79
79
|
const a = t.toExponential().split("e-"), l = a[0].split(".")[1];
|
|
80
80
|
return (l ? l.length : 0) + parseInt(a[1], 10);
|
|
@@ -82,9 +82,9 @@ function ci(t) {
|
|
|
82
82
|
const o = t.toString().split(".")[1];
|
|
83
83
|
return o ? o.length : 0;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function pi(t, o, a) {
|
|
86
86
|
const l = Math.round((t - a) / o) * o + a;
|
|
87
|
-
return Number(l.toFixed(
|
|
87
|
+
return Number(l.toFixed(di(o)));
|
|
88
88
|
}
|
|
89
89
|
function rr({
|
|
90
90
|
values: t,
|
|
@@ -92,7 +92,7 @@ function rr({
|
|
|
92
92
|
index: a
|
|
93
93
|
}) {
|
|
94
94
|
const l = t.slice();
|
|
95
|
-
return l[a] = o, l.sort(
|
|
95
|
+
return l[a] = o, l.sort(Br);
|
|
96
96
|
}
|
|
97
97
|
function ro({
|
|
98
98
|
sliderRef: t,
|
|
@@ -108,9 +108,9 @@ function ro({
|
|
|
108
108
|
a && a(o);
|
|
109
109
|
}
|
|
110
110
|
function no(t, o) {
|
|
111
|
-
return typeof t == "number" && typeof o == "number" ? t === o : typeof t == "object" && typeof o == "object" ?
|
|
111
|
+
return typeof t == "number" && typeof o == "number" ? t === o : typeof t == "object" && typeof o == "object" ? Zn(t, o) : !1;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const ui = {
|
|
114
114
|
horizontal: {
|
|
115
115
|
offset: (t) => ({
|
|
116
116
|
left: `${t}%`
|
|
@@ -135,12 +135,12 @@ const pi = {
|
|
|
135
135
|
height: `${t}%`
|
|
136
136
|
})
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, mi = (t) => t;
|
|
139
139
|
let io;
|
|
140
140
|
function nr() {
|
|
141
141
|
return io === void 0 && (typeof CSS < "u" && typeof CSS.supports == "function" ? io = CSS.supports("touch-action", "none") : io = !0), io;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function fi(t) {
|
|
144
144
|
const {
|
|
145
145
|
"aria-labelledby": o,
|
|
146
146
|
defaultValue: a,
|
|
@@ -155,12 +155,12 @@ function mi(t) {
|
|
|
155
155
|
onChangeCommitted: u,
|
|
156
156
|
orientation: x = "horizontal",
|
|
157
157
|
rootRef: m,
|
|
158
|
-
scale: h =
|
|
158
|
+
scale: h = mi,
|
|
159
159
|
step: b = 1,
|
|
160
160
|
shiftStep: v = 10,
|
|
161
161
|
tabIndex: y,
|
|
162
162
|
value: C
|
|
163
|
-
} = t, L = lt.useRef(void 0), [k, I] = lt.useState(-1), [w, $] = lt.useState(-1), [z, X] = lt.useState(!1), F = lt.useRef(0), [A, E] =
|
|
163
|
+
} = t, L = lt.useRef(void 0), [k, I] = lt.useState(-1), [w, $] = lt.useState(-1), [z, X] = lt.useState(!1), F = lt.useRef(0), [A, E] = Jn({
|
|
164
164
|
controlled: C,
|
|
165
165
|
default: a ?? i,
|
|
166
166
|
name: "Slider"
|
|
@@ -174,7 +174,7 @@ function mi(t) {
|
|
|
174
174
|
}
|
|
175
175
|
}), g(Le, Q, J);
|
|
176
176
|
}), T = Array.isArray(A);
|
|
177
|
-
let W = T ? A.slice().sort(
|
|
177
|
+
let W = T ? A.slice().sort(Br) : [A];
|
|
178
178
|
W = W.map((K) => K == null ? i : qt(K, i, d));
|
|
179
179
|
const B = s === !0 && b !== null ? [...Array(Math.floor((d - i) / b) + 1)].map((K, Q) => ({
|
|
180
180
|
value: i + b * Q
|
|
@@ -183,7 +183,7 @@ function mi(t) {
|
|
|
183
183
|
onBlur: N,
|
|
184
184
|
onFocus: j,
|
|
185
185
|
ref: M
|
|
186
|
-
} =
|
|
186
|
+
} = bn(), [V, Z] = lt.useState(-1), q = lt.useRef(null), le = Zo(M, q), ne = Zo(m, le), D = (K) => (Q) => {
|
|
187
187
|
var J;
|
|
188
188
|
const ie = Number(Q.currentTarget.getAttribute("data-index"));
|
|
189
189
|
j(Q), H.current === !0 && Z(ie), $(ie), K == null || (J = K.onFocus) == null || J.call(K, Q);
|
|
@@ -221,7 +221,7 @@ function mi(t) {
|
|
|
221
221
|
}
|
|
222
222
|
K == null || (J = K.onKeyDown) == null || J.call(K, Q);
|
|
223
223
|
};
|
|
224
|
-
|
|
224
|
+
en(() => {
|
|
225
225
|
if (l && q.current.contains(document.activeElement)) {
|
|
226
226
|
var K;
|
|
227
227
|
(K = document.activeElement) == null || K.blur();
|
|
@@ -248,8 +248,8 @@ function mi(t) {
|
|
|
248
248
|
let O;
|
|
249
249
|
we.indexOf("vertical") === 0 ? O = (he - K.y) / Le : O = (K.x - _) / ie, we.indexOf("-reverse") !== -1 && (O = 1 - O);
|
|
250
250
|
let Y;
|
|
251
|
-
if (Y =
|
|
252
|
-
Y =
|
|
251
|
+
if (Y = ci(O, i, d), b)
|
|
252
|
+
Y = pi(Y, b, i);
|
|
253
253
|
else {
|
|
254
254
|
const Ye = or(U, Y);
|
|
255
255
|
Y = U[Ye];
|
|
@@ -288,7 +288,7 @@ function mi(t) {
|
|
|
288
288
|
sliderRef: q,
|
|
289
289
|
activeIndex: ie,
|
|
290
290
|
setActive: I
|
|
291
|
-
}), E(J), !z && F.current >
|
|
291
|
+
}), E(J), !z && F.current > li && X(!0), R && !no(J, A) && R(K, J, ie);
|
|
292
292
|
}), Ue = Co((K) => {
|
|
293
293
|
const Q = oo(K, L);
|
|
294
294
|
if (X(!1), !Q)
|
|
@@ -386,7 +386,7 @@ function mi(t) {
|
|
|
386
386
|
return {
|
|
387
387
|
active: k,
|
|
388
388
|
axis: we,
|
|
389
|
-
axisProps:
|
|
389
|
+
axisProps: ui,
|
|
390
390
|
dragging: z,
|
|
391
391
|
focusedThumbIndex: V,
|
|
392
392
|
getHiddenInputProps: (K = {}) => {
|
|
@@ -410,7 +410,7 @@ function mi(t) {
|
|
|
410
410
|
step: t.step === null && t.marks ? "any" : (Q = t.step) != null ? Q : void 0,
|
|
411
411
|
disabled: l
|
|
412
412
|
}, K, Le, {
|
|
413
|
-
style: Ie({},
|
|
413
|
+
style: Ie({}, Qn, {
|
|
414
414
|
direction: n ? "rtl" : "ltr",
|
|
415
415
|
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
416
416
|
width: "100%",
|
|
@@ -439,14 +439,14 @@ function mi(t) {
|
|
|
439
439
|
})
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
return
|
|
442
|
+
function xi(t) {
|
|
443
|
+
return on("MuiSlider", t);
|
|
444
444
|
}
|
|
445
|
-
const Eo =
|
|
445
|
+
const Eo = tn("MuiSlider", ["root", "disabled", "dragging", "focusVisible", "marked", "vertical", "trackInverted", "trackFalse", "rail", "track", "mark", "markActive", "markLabel", "thumb", "thumbStart", "thumbEnd", "valueLabel", "valueLabelOpen", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "disabled", "sizeSm", "sizeMd", "sizeLg", "input"]), hi = ["aria-label", "aria-valuetext", "className", "classes", "disableSwap", "disabled", "defaultValue", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "shiftStep", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "color", "size", "variant", "component", "slots", "slotProps"];
|
|
446
446
|
function ir(t) {
|
|
447
447
|
return t;
|
|
448
448
|
}
|
|
449
|
-
const
|
|
449
|
+
const gi = (t) => {
|
|
450
450
|
const {
|
|
451
451
|
disabled: o,
|
|
452
452
|
dragging: a,
|
|
@@ -471,8 +471,8 @@ const hi = (t) => {
|
|
|
471
471
|
active: ["active"],
|
|
472
472
|
focusVisible: ["focusVisible"]
|
|
473
473
|
};
|
|
474
|
-
return
|
|
475
|
-
},
|
|
474
|
+
return vn(f, xi, {});
|
|
475
|
+
}, yi = ({
|
|
476
476
|
theme: t,
|
|
477
477
|
ownerState: o
|
|
478
478
|
}) => (a = {}) => {
|
|
@@ -488,7 +488,7 @@ const hi = (t) => {
|
|
|
488
488
|
"--Slider-trackBorderColor": n.borderColor,
|
|
489
489
|
"--Slider-railBackground": t.vars.palette.background.level2
|
|
490
490
|
});
|
|
491
|
-
},
|
|
491
|
+
}, bi = $t("span", {
|
|
492
492
|
name: "JoySlider",
|
|
493
493
|
slot: "Root",
|
|
494
494
|
overridesResolver: (t, o) => o.root
|
|
@@ -496,7 +496,7 @@ const hi = (t) => {
|
|
|
496
496
|
theme: t,
|
|
497
497
|
ownerState: o
|
|
498
498
|
}) => {
|
|
499
|
-
const a =
|
|
499
|
+
const a = yi({
|
|
500
500
|
theme: t,
|
|
501
501
|
ownerState: o
|
|
502
502
|
});
|
|
@@ -558,7 +558,7 @@ const hi = (t) => {
|
|
|
558
558
|
colorAdjust: "exact"
|
|
559
559
|
}
|
|
560
560
|
})];
|
|
561
|
-
}),
|
|
561
|
+
}), Si = $t("span", {
|
|
562
562
|
name: "JoySlider",
|
|
563
563
|
slot: "Rail",
|
|
564
564
|
overridesResolver: (t, o) => o.rail
|
|
@@ -584,7 +584,7 @@ const hi = (t) => {
|
|
|
584
584
|
transform: "translateX(-50%)"
|
|
585
585
|
}, t.track === "inverted" && {
|
|
586
586
|
opacity: 1
|
|
587
|
-
})]),
|
|
587
|
+
})]), Ci = $t("span", {
|
|
588
588
|
name: "JoySlider",
|
|
589
589
|
slot: "Track",
|
|
590
590
|
overridesResolver: (t, o) => o.track
|
|
@@ -608,7 +608,7 @@ const hi = (t) => {
|
|
|
608
608
|
borderRadius: "0 0 var(--Slider-trackRadius) var(--Slider-trackRadius)"
|
|
609
609
|
}, t.track === !1 && {
|
|
610
610
|
display: "none"
|
|
611
|
-
})]),
|
|
611
|
+
})]), vi = $t("span", {
|
|
612
612
|
name: "JoySlider",
|
|
613
613
|
slot: "Thumb",
|
|
614
614
|
overridesResolver: (t, o) => o.thumb
|
|
@@ -660,7 +660,7 @@ const hi = (t) => {
|
|
|
660
660
|
borderRadius: "inherit"
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
|
-
}),
|
|
663
|
+
}), ki = $t("span", {
|
|
664
664
|
name: "JoySlider",
|
|
665
665
|
slot: "Mark",
|
|
666
666
|
overridesResolver: (t, o) => o.mark
|
|
@@ -686,7 +686,7 @@ const hi = (t) => {
|
|
|
686
686
|
transform: "translate(-50%, calc(min(var(--Slider-markSize), 3px) * -1))"
|
|
687
687
|
}, t.percent === 100 && {
|
|
688
688
|
transform: "translate(-50%, calc(var(--Slider-markSize) * 1 + min(var(--Slider-markSize), 3px)))"
|
|
689
|
-
}))),
|
|
689
|
+
}))), wi = $t("span", {
|
|
690
690
|
name: "JoySlider",
|
|
691
691
|
slot: "ValueLabel",
|
|
692
692
|
overridesResolver: (t, o) => o.valueLabel
|
|
@@ -742,7 +742,7 @@ const hi = (t) => {
|
|
|
742
742
|
[`&.${Eo.valueLabelOpen}`]: {
|
|
743
743
|
transform: "translateY(calc((var(--Slider-thumbSize) + var(--Slider-valueLabelArrowSize)) * -1)) scale(1)"
|
|
744
744
|
}
|
|
745
|
-
})),
|
|
745
|
+
})), Ii = $t("span", {
|
|
746
746
|
name: "JoySlider",
|
|
747
747
|
slot: "MarkLabel",
|
|
748
748
|
overridesResolver: (t, o) => o.markLabel
|
|
@@ -767,12 +767,12 @@ const hi = (t) => {
|
|
|
767
767
|
}, o.orientation === "vertical" && {
|
|
768
768
|
left: "calc(50% + 8px + (max(var(--Slider-trackSize), var(--Slider-thumbSize)) / 2))",
|
|
769
769
|
transform: "translateY(50%)"
|
|
770
|
-
})),
|
|
770
|
+
})), Li = $t("input", {
|
|
771
771
|
name: "JoySlider",
|
|
772
772
|
slot: "Input",
|
|
773
773
|
overridesResolver: (t, o) => o.input
|
|
774
|
-
})({}),
|
|
775
|
-
const l =
|
|
774
|
+
})({}), Dr = /* @__PURE__ */ lt.forwardRef(function(o, a) {
|
|
775
|
+
const l = Sn({
|
|
776
776
|
props: o,
|
|
777
777
|
name: "JoySlider"
|
|
778
778
|
}), {
|
|
@@ -802,7 +802,7 @@ const hi = (t) => {
|
|
|
802
802
|
component: A,
|
|
803
803
|
slots: E = {},
|
|
804
804
|
slotProps: R = {}
|
|
805
|
-
} = l, T =
|
|
805
|
+
} = l, T = rn(l, hi), W = Ie({}, l, {
|
|
806
806
|
marks: m,
|
|
807
807
|
classes: d,
|
|
808
808
|
disabled: f,
|
|
@@ -837,24 +837,24 @@ const hi = (t) => {
|
|
|
837
837
|
trackOffset: te,
|
|
838
838
|
trackLeap: pe,
|
|
839
839
|
getThumbStyle: se
|
|
840
|
-
} =
|
|
840
|
+
} = fi(Ie({}, W, {
|
|
841
841
|
rootRef: a
|
|
842
842
|
}));
|
|
843
843
|
W.marked = ne.length > 0 && ne.some((J) => J.label), W.dragging = le;
|
|
844
|
-
const ge = Ie({}, B[V].offset(te), B[V].leap(pe)), ce =
|
|
844
|
+
const ge = Ie({}, B[V].offset(te), B[V].leap(pe)), ce = gi(W), we = Ie({}, T, {
|
|
845
845
|
component: A,
|
|
846
846
|
slots: E,
|
|
847
847
|
slotProps: R
|
|
848
848
|
}), [Ve, Xe] = It("root", {
|
|
849
849
|
ref: a,
|
|
850
850
|
className: Kt(ce.root, s),
|
|
851
|
-
elementType:
|
|
851
|
+
elementType: bi,
|
|
852
852
|
externalForwardedProps: we,
|
|
853
853
|
getSlotProps: U,
|
|
854
854
|
ownerState: W
|
|
855
855
|
}), [Ue, _e] = It("rail", {
|
|
856
856
|
className: ce.rail,
|
|
857
|
-
elementType:
|
|
857
|
+
elementType: Si,
|
|
858
858
|
externalForwardedProps: we,
|
|
859
859
|
ownerState: W
|
|
860
860
|
}), [re, He] = It("track", {
|
|
@@ -862,17 +862,17 @@ const hi = (t) => {
|
|
|
862
862
|
style: ge
|
|
863
863
|
},
|
|
864
864
|
className: ce.track,
|
|
865
|
-
elementType:
|
|
865
|
+
elementType: Ci,
|
|
866
866
|
externalForwardedProps: we,
|
|
867
867
|
ownerState: W
|
|
868
868
|
}), [Te, Be] = It("mark", {
|
|
869
869
|
className: ce.mark,
|
|
870
|
-
elementType:
|
|
870
|
+
elementType: ki,
|
|
871
871
|
externalForwardedProps: we,
|
|
872
872
|
ownerState: W
|
|
873
873
|
}), [De, $e] = It("markLabel", {
|
|
874
874
|
className: ce.markLabel,
|
|
875
|
-
elementType:
|
|
875
|
+
elementType: Ii,
|
|
876
876
|
externalForwardedProps: we,
|
|
877
877
|
ownerState: W,
|
|
878
878
|
additionalProps: {
|
|
@@ -880,19 +880,19 @@ const hi = (t) => {
|
|
|
880
880
|
}
|
|
881
881
|
}), [ct, Qe] = It("thumb", {
|
|
882
882
|
className: ce.thumb,
|
|
883
|
-
elementType:
|
|
883
|
+
elementType: vi,
|
|
884
884
|
externalForwardedProps: we,
|
|
885
885
|
getSlotProps: N,
|
|
886
886
|
ownerState: W
|
|
887
887
|
}), [ot, pt] = It("input", {
|
|
888
888
|
className: ce.input,
|
|
889
|
-
elementType:
|
|
889
|
+
elementType: Li,
|
|
890
890
|
externalForwardedProps: we,
|
|
891
891
|
getSlotProps: H,
|
|
892
892
|
ownerState: W
|
|
893
893
|
}), [K, Q] = It("valueLabel", {
|
|
894
894
|
className: ce.valueLabel,
|
|
895
|
-
elementType:
|
|
895
|
+
elementType: wi,
|
|
896
896
|
externalForwardedProps: we,
|
|
897
897
|
ownerState: W
|
|
898
898
|
});
|
|
@@ -903,7 +903,7 @@ const hi = (t) => {
|
|
|
903
903
|
return k === !1 ? _ = D.indexOf(J.value) !== -1 : _ = k === "normal" && (q ? J.value >= D[0] && J.value <= D[D.length - 1] : J.value <= D[0]) || k === "inverted" && (q ? J.value <= D[0] || J.value >= D[D.length - 1] : J.value >= D[0]), /* @__PURE__ */ p(lt.Fragment, {
|
|
904
904
|
children: [/* @__PURE__ */ e(Te, Ie({
|
|
905
905
|
"data-index": ie
|
|
906
|
-
}, Be, !
|
|
906
|
+
}, Be, !Cn(Te) && {
|
|
907
907
|
ownerState: Ie({}, Be.ownerState, {
|
|
908
908
|
percent: Le
|
|
909
909
|
})
|
|
@@ -939,7 +939,7 @@ const hi = (t) => {
|
|
|
939
939
|
})]
|
|
940
940
|
}));
|
|
941
941
|
});
|
|
942
|
-
process.env.NODE_ENV !== "production" && (
|
|
942
|
+
process.env.NODE_ENV !== "production" && (Dr.propTypes = {
|
|
943
943
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
944
944
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
945
945
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1168,14 +1168,14 @@ process.env.NODE_ENV !== "production" && (Mr.propTypes = {
|
|
|
1168
1168
|
*/
|
|
1169
1169
|
variant: G.oneOfType([G.oneOf(["outlined", "plain", "soft", "solid"]), G.string])
|
|
1170
1170
|
});
|
|
1171
|
-
const
|
|
1172
|
-
const t =
|
|
1171
|
+
const Mr = qr(null), zi = ({ children: t, ...o }) => /* @__PURE__ */ e(Mr.Provider, { value: o, children: t }), ht = () => {
|
|
1172
|
+
const t = Jr(Mr);
|
|
1173
1173
|
if (!t)
|
|
1174
1174
|
throw new Error(
|
|
1175
1175
|
"useTopXPredictorContext must be used within TopXPredictorProvider"
|
|
1176
1176
|
);
|
|
1177
1177
|
return t;
|
|
1178
|
-
},
|
|
1178
|
+
}, $i = (t) => {
|
|
1179
1179
|
const o = t.split(":");
|
|
1180
1180
|
return {
|
|
1181
1181
|
homeScore: parseInt(o[0] ?? "0", 10),
|
|
@@ -1189,7 +1189,7 @@ const Nr = Jr(null), Li = ({ children: t, ...o }) => /* @__PURE__ */ e(Nr.Provid
|
|
|
1189
1189
|
(n) => n.market === "CORRECT_SCORE" || n.market === "CORRECT_SCORE_ADVANCED"
|
|
1190
1190
|
).forEach((n) => {
|
|
1191
1191
|
var f, g, u, x;
|
|
1192
|
-
const s = ((f = n.prediction) == null ? void 0 : f.value) ?? "0:0", { homeScore: d, awayScore: i } =
|
|
1192
|
+
const s = ((f = n.prediction) == null ? void 0 : f.value) ?? "0:0", { homeScore: d, awayScore: i } = $i(s);
|
|
1193
1193
|
o.set(n.matchId, {
|
|
1194
1194
|
matchId: n.matchId,
|
|
1195
1195
|
predictionId: l.id,
|
|
@@ -1203,20 +1203,20 @@ const Nr = Jr(null), Li = ({ children: t, ...o }) => /* @__PURE__ */ e(Nr.Provid
|
|
|
1203
1203
|
});
|
|
1204
1204
|
}), o;
|
|
1205
1205
|
};
|
|
1206
|
-
function
|
|
1206
|
+
function Ri(t) {
|
|
1207
1207
|
if (!t) return !0;
|
|
1208
1208
|
const o = t.replace("#", "");
|
|
1209
1209
|
if (o.length < 6) return !0;
|
|
1210
1210
|
const a = parseInt(o.substring(0, 2), 16), l = parseInt(o.substring(2, 4), 16), c = parseInt(o.substring(4, 6), 16);
|
|
1211
1211
|
return (0.2126 * a + 0.7152 * l + 0.0722 * c) / 255 < 0.5;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function Ti(t) {
|
|
1214
1214
|
const o = /* @__PURE__ */ new Map();
|
|
1215
1215
|
return t.forEach((a, l) => {
|
|
1216
1216
|
if (!a || a.length === 0) return;
|
|
1217
1217
|
const c = a.filter((n) => n.bookmaker && n.markets && n.markets.length > 0).map((n) => {
|
|
1218
1218
|
var x, m, h, b, v, y, C, L;
|
|
1219
|
-
const s = n.bookmaker, d = (x = s.assets) == null ? void 0 : x[0], i = ((m = s.branding) == null ? void 0 : m.backgroundColor) || (d == null ? void 0 : d.backgroundColor), f = ((h = s.branding) == null ? void 0 : h.textColor) || (
|
|
1219
|
+
const s = n.bookmaker, d = (x = s.assets) == null ? void 0 : x[0], i = ((m = s.branding) == null ? void 0 : m.backgroundColor) || (d == null ? void 0 : d.backgroundColor), f = ((h = s.branding) == null ? void 0 : h.textColor) || (Ri(i) ? "#FFFFFF" : "#000000"), g = (d == null ? void 0 : d.transparentBackgroundUrl) || (d == null ? void 0 : d.logo) || ((b = s.branding) == null ? void 0 : b.logo), u = ((y = (v = s.eventUrls) == null ? void 0 : v.find((k) => k.appType === "desktop")) == null ? void 0 : y.url) || ((L = (C = s.links) == null ? void 0 : C.find((k) => k.appType === "desktop")) == null ? void 0 : L.homepageUrl) || s.url || "";
|
|
1220
1220
|
return {
|
|
1221
1221
|
operator: {
|
|
1222
1222
|
id: s.id,
|
|
@@ -1250,7 +1250,7 @@ function Ri(t) {
|
|
|
1250
1250
|
c.length > 0 && o.set(l, c);
|
|
1251
1251
|
}), o;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Fi(t) {
|
|
1254
1254
|
var n, s, d;
|
|
1255
1255
|
if (!t.operator || t.markets.length === 0) return null;
|
|
1256
1256
|
const a = t.markets[0].selections.map((i) => {
|
|
@@ -1274,21 +1274,21 @@ function Ti(t) {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
return { odds: a, operator: c };
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Ei(t) {
|
|
1278
1278
|
const o = /* @__PURE__ */ new Map();
|
|
1279
1279
|
return t.forEach((a, l) => {
|
|
1280
|
-
const c = a.map(
|
|
1280
|
+
const c = a.map(Fi).filter((n) => n !== null);
|
|
1281
1281
|
c.length > 0 && o.set(l, c);
|
|
1282
1282
|
}), o;
|
|
1283
1283
|
}
|
|
1284
|
-
const
|
|
1285
|
-
function
|
|
1284
|
+
const Pi = 3e4;
|
|
1285
|
+
function Nr({
|
|
1286
1286
|
sdk: t,
|
|
1287
1287
|
matchIds: o,
|
|
1288
1288
|
markets: a = ["1x2"],
|
|
1289
|
-
oddType: l =
|
|
1289
|
+
oddType: l = fn.ALL,
|
|
1290
1290
|
isLive: c = !1,
|
|
1291
|
-
pollingIntervalMs: n =
|
|
1291
|
+
pollingIntervalMs: n = Pi,
|
|
1292
1292
|
operatorId: s
|
|
1293
1293
|
}) {
|
|
1294
1294
|
const [d, i] = P(/* @__PURE__ */ new Map()), [f, g] = P(!0), u = je(!0), x = Ce(() => [...o].sort().join(","), [o]), m = Ce(() => [...a].sort().join(","), [a]), h = de(
|
|
@@ -1301,11 +1301,11 @@ function Hr({
|
|
|
1301
1301
|
try {
|
|
1302
1302
|
const v = {
|
|
1303
1303
|
oddType: l,
|
|
1304
|
-
scopeType:
|
|
1305
|
-
oddFormat:
|
|
1306
|
-
marketTypes: [
|
|
1304
|
+
scopeType: pn.ORDINARY_TIME,
|
|
1305
|
+
oddFormat: un.DECIMAL,
|
|
1306
|
+
marketTypes: [mn.FT_1X2]
|
|
1307
1307
|
}, y = await t.odds.getByMatchIds(o, v);
|
|
1308
|
-
let C =
|
|
1308
|
+
let C = Ti(y);
|
|
1309
1309
|
if (s) {
|
|
1310
1310
|
const L = /* @__PURE__ */ new Map();
|
|
1311
1311
|
C.forEach((k, I) => {
|
|
@@ -1315,7 +1315,7 @@ function Hr({
|
|
|
1315
1315
|
w.length > 0 && L.set(I, w);
|
|
1316
1316
|
}), C = L;
|
|
1317
1317
|
}
|
|
1318
|
-
i(
|
|
1318
|
+
i(Ei(C));
|
|
1319
1319
|
} catch {
|
|
1320
1320
|
i(/* @__PURE__ */ new Map());
|
|
1321
1321
|
} finally {
|
|
@@ -1333,7 +1333,7 @@ function Hr({
|
|
|
1333
1333
|
return () => clearInterval(b);
|
|
1334
1334
|
}, [c, x, n, h]), { oddsMap: d, loading: f };
|
|
1335
1335
|
}
|
|
1336
|
-
async function
|
|
1336
|
+
async function Wi(t) {
|
|
1337
1337
|
try {
|
|
1338
1338
|
const o = await t.profile.getOwnConsents();
|
|
1339
1339
|
return new Set(o.map((a) => a.consentId));
|
|
@@ -1341,7 +1341,7 @@ async function Pi(t) {
|
|
|
1341
1341
|
return console.warn("[predictor-consent] failed to load own consents:", o), /* @__PURE__ */ new Set();
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
async function
|
|
1344
|
+
async function Xi(t, o, a, l) {
|
|
1345
1345
|
a.length !== 0 && await t.profile.collectConsents(
|
|
1346
1346
|
a.map((c) => {
|
|
1347
1347
|
const n = o.find((s) => s.consentId === c);
|
|
@@ -1354,7 +1354,7 @@ async function Wi(t, o, a, l) {
|
|
|
1354
1354
|
})
|
|
1355
1355
|
);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Ai() {
|
|
1358
1358
|
const { sdk: t, userIsLoggedIn: o, consents: a, entityId: l } = ht(), [c, n] = P(null), [s, d] = P(!0), i = de(async () => {
|
|
1359
1359
|
if (!o) {
|
|
1360
1360
|
n(null), d(!1);
|
|
@@ -1362,7 +1362,7 @@ function Xi() {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
d(!0);
|
|
1364
1364
|
try {
|
|
1365
|
-
const x = await
|
|
1365
|
+
const x = await Wi(t);
|
|
1366
1366
|
n(x);
|
|
1367
1367
|
} finally {
|
|
1368
1368
|
d(!1);
|
|
@@ -1373,7 +1373,7 @@ function Xi() {
|
|
|
1373
1373
|
}, [i]);
|
|
1374
1374
|
const f = de(
|
|
1375
1375
|
async (x) => {
|
|
1376
|
-
await
|
|
1376
|
+
await Xi(t, a, x, l), n((m) => {
|
|
1377
1377
|
const h = new Set(m ?? []);
|
|
1378
1378
|
return x.forEach((b) => h.add(b)), h;
|
|
1379
1379
|
});
|
|
@@ -1382,7 +1382,7 @@ function Xi() {
|
|
|
1382
1382
|
), g = Ce(() => c ? a.filter((x) => !c.has(x.consentId)) : a, [a, c]), u = Ce(() => g.filter((x) => x.required), [g]);
|
|
1383
1383
|
return { accepted: c, loading: s, available: g, missingRequired: u, submit: f, refresh: i };
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1385
|
+
const Bi = ({
|
|
1386
1386
|
consents: t,
|
|
1387
1387
|
initialAccepted: o,
|
|
1388
1388
|
onChange: a
|
|
@@ -1413,9 +1413,9 @@ const Ai = ({
|
|
|
1413
1413
|
u.current(m);
|
|
1414
1414
|
}, [i]), t.length === 0) return null;
|
|
1415
1415
|
const x = o ?? /* @__PURE__ */ new Set();
|
|
1416
|
-
return /* @__PURE__ */ e(
|
|
1416
|
+
return /* @__PURE__ */ e(hn, { spacing: 1, children: t.map((m) => {
|
|
1417
1417
|
const h = x.has(m.consentId), b = !!i[m.consentId];
|
|
1418
|
-
return /* @__PURE__ */ e(
|
|
1418
|
+
return /* @__PURE__ */ e(gn, { disabled: h, size: "sm", children: /* @__PURE__ */ p(
|
|
1419
1419
|
r,
|
|
1420
1420
|
{
|
|
1421
1421
|
component: "label",
|
|
@@ -1427,7 +1427,7 @@ const Ai = ({
|
|
|
1427
1427
|
},
|
|
1428
1428
|
children: [
|
|
1429
1429
|
/* @__PURE__ */ e(
|
|
1430
|
-
|
|
1430
|
+
yn,
|
|
1431
1431
|
{
|
|
1432
1432
|
checked: b,
|
|
1433
1433
|
disabled: h,
|
|
@@ -1465,7 +1465,7 @@ const Ai = ({
|
|
|
1465
1465
|
}
|
|
1466
1466
|
) }, m.consentId);
|
|
1467
1467
|
}) });
|
|
1468
|
-
},
|
|
1468
|
+
}, Di = ({
|
|
1469
1469
|
isOpen: t,
|
|
1470
1470
|
available: o,
|
|
1471
1471
|
missingRequired: a,
|
|
@@ -1608,7 +1608,7 @@ const Ai = ({
|
|
|
1608
1608
|
}
|
|
1609
1609
|
),
|
|
1610
1610
|
/* @__PURE__ */ e(
|
|
1611
|
-
|
|
1611
|
+
Bi,
|
|
1612
1612
|
{
|
|
1613
1613
|
consents: o,
|
|
1614
1614
|
initialAccepted: l ?? void 0,
|
|
@@ -1705,8 +1705,8 @@ const Ai = ({
|
|
|
1705
1705
|
}
|
|
1706
1706
|
);
|
|
1707
1707
|
};
|
|
1708
|
-
function
|
|
1709
|
-
const { available: t, missingRequired: o, accepted: a, loading: l, submit: c } =
|
|
1708
|
+
function Mi() {
|
|
1709
|
+
const { available: t, missingRequired: o, accepted: a, loading: l, submit: c } = Ai(), [n, s] = P(!1), d = je(null), i = de(async () => (l && await new Promise((u) => setTimeout(u, 50)), o.length === 0 ? !0 : new Promise((u) => {
|
|
1710
1710
|
d.current = u, s(!0);
|
|
1711
1711
|
})), [l, o]), f = de(() => {
|
|
1712
1712
|
var u;
|
|
@@ -1718,7 +1718,7 @@ function Di() {
|
|
|
1718
1718
|
return {
|
|
1719
1719
|
ensureConsents: i,
|
|
1720
1720
|
modal: /* @__PURE__ */ e(
|
|
1721
|
-
|
|
1721
|
+
Di,
|
|
1722
1722
|
{
|
|
1723
1723
|
isOpen: n,
|
|
1724
1724
|
available: t,
|
|
@@ -1731,7 +1731,7 @@ function Di() {
|
|
|
1731
1731
|
)
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
|
-
const
|
|
1734
|
+
const Ni = (t) => ({
|
|
1735
1735
|
id: t.id,
|
|
1736
1736
|
title: t.title ?? "",
|
|
1737
1737
|
description: t.description ?? null,
|
|
@@ -1756,7 +1756,7 @@ const Mi = (t) => ({
|
|
|
1756
1756
|
let b;
|
|
1757
1757
|
for (; ; ) {
|
|
1758
1758
|
const v = b ? { ...m ?? {}, startAfter: b } : m, y = await t.topX.getGames(v), C = (y == null ? void 0 : y.data) ?? [];
|
|
1759
|
-
h.push(...C.map(
|
|
1759
|
+
h.push(...C.map(Ni));
|
|
1760
1760
|
const L = (x = (u = y == null ? void 0 : y.meta) == null ? void 0 : u.pagination) == null ? void 0 : x.nextPageStartsAfter;
|
|
1761
1761
|
if (!L) break;
|
|
1762
1762
|
b = L;
|
|
@@ -1785,8 +1785,8 @@ const Mi = (t) => ({
|
|
|
1785
1785
|
c < o && (o = c);
|
|
1786
1786
|
}
|
|
1787
1787
|
return o;
|
|
1788
|
-
}, ko = (t, o) => ar(t) - ar(o), sr = (t, o) => Po(t.predictionsCutoff) - Po(o.predictionsCutoff),
|
|
1789
|
-
const o = t.filter((i) => i.status === "OPEN"), a = t.filter((i) => i.status === "LIVE"), l = t.filter((i) => i.status === "PENDING"), c = t.filter((i) =>
|
|
1788
|
+
}, ko = (t, o) => ar(t) - ar(o), sr = (t, o) => Po(t.predictionsCutoff) - Po(o.predictionsCutoff), Hi = /* @__PURE__ */ new Set(["SETTLED", "CLOSED", "CANCELED"]), Oi = (t) => {
|
|
1789
|
+
const o = t.filter((i) => i.status === "OPEN"), a = t.filter((i) => i.status === "LIVE"), l = t.filter((i) => i.status === "PENDING"), c = t.filter((i) => Hi.has(i.status));
|
|
1790
1790
|
let n = null;
|
|
1791
1791
|
o.length > 0 ? n = [...o].sort(ko)[0] : a.length > 0 ? n = [...a].sort(ko)[0] : c.length > 0 && (n = [...c].sort(sr).slice(-1)[0]);
|
|
1792
1792
|
const s = c.filter((i) => i !== n);
|
|
@@ -1795,10 +1795,10 @@ const Mi = (t) => ({
|
|
|
1795
1795
|
for (const i of o)
|
|
1796
1796
|
i !== n && d.push(i);
|
|
1797
1797
|
return d.push(...l), d.sort(ko), { previous: s, current: n, future: d };
|
|
1798
|
-
},
|
|
1798
|
+
}, ji = (t) => {
|
|
1799
1799
|
const o = [...t.previous];
|
|
1800
1800
|
return t.current && o.push(t.current), o.push(...t.future), o;
|
|
1801
|
-
},
|
|
1801
|
+
}, Vi = (t) => {
|
|
1802
1802
|
switch (t) {
|
|
1803
1803
|
case "finished":
|
|
1804
1804
|
return "FINISHED";
|
|
@@ -1809,7 +1809,7 @@ const Mi = (t) => ({
|
|
|
1809
1809
|
default:
|
|
1810
1810
|
return "PENDING";
|
|
1811
1811
|
}
|
|
1812
|
-
},
|
|
1812
|
+
}, _i = (t) => {
|
|
1813
1813
|
var o, a, l, c, n, s, d;
|
|
1814
1814
|
return {
|
|
1815
1815
|
id: t.id,
|
|
@@ -1826,19 +1826,19 @@ const Mi = (t) => ({
|
|
|
1826
1826
|
logo: ((a = t.awayTeam.assets) == null ? void 0 : a.logo) ?? null
|
|
1827
1827
|
},
|
|
1828
1828
|
kickoffAt: t.kickoffAt ?? "",
|
|
1829
|
-
status:
|
|
1829
|
+
status: Vi((l = t.status) == null ? void 0 : l.type),
|
|
1830
1830
|
homeScore: ((n = (c = t.scores) == null ? void 0 : c.ftScore) == null ? void 0 : n.homeGoals) ?? null,
|
|
1831
1831
|
awayScore: ((d = (s = t.scores) == null ? void 0 : s.ftScore) == null ? void 0 : d.awayGoals) ?? null
|
|
1832
1832
|
};
|
|
1833
1833
|
};
|
|
1834
|
-
function
|
|
1834
|
+
function Hr(t) {
|
|
1835
1835
|
if (!t) return null;
|
|
1836
1836
|
const o = t.split(":");
|
|
1837
1837
|
if (o.length !== 2) return null;
|
|
1838
1838
|
const a = parseInt(o[0], 10), l = parseInt(o[1], 10);
|
|
1839
1839
|
return isNaN(a) || isNaN(l) ? null : a > l ? "1" : a < l ? "2" : "X";
|
|
1840
1840
|
}
|
|
1841
|
-
const
|
|
1841
|
+
const Yi = ({
|
|
1842
1842
|
matchId: t,
|
|
1843
1843
|
homeScore: o,
|
|
1844
1844
|
awayScore: a,
|
|
@@ -1848,7 +1848,7 @@ const _i = ({
|
|
|
1848
1848
|
isDirty: s = !1
|
|
1849
1849
|
}) => {
|
|
1850
1850
|
const d = je(null), i = Ce(() => {
|
|
1851
|
-
const f = `${o}:${a}`, g =
|
|
1851
|
+
const f = `${o}:${a}`, g = Hr(f);
|
|
1852
1852
|
if (!g) return null;
|
|
1853
1853
|
let u = null, x = null;
|
|
1854
1854
|
return l && (u = l.odds.find(
|
|
@@ -1865,12 +1865,12 @@ const _i = ({
|
|
|
1865
1865
|
oddsLoading: c,
|
|
1866
1866
|
predictedOutcome: i
|
|
1867
1867
|
};
|
|
1868
|
-
},
|
|
1868
|
+
}, Gi = (t, o) => t.toLocaleDateString(o, {
|
|
1869
1869
|
day: "2-digit",
|
|
1870
1870
|
month: "short",
|
|
1871
1871
|
hour: "2-digit",
|
|
1872
1872
|
minute: "2-digit"
|
|
1873
|
-
}),
|
|
1873
|
+
}), Ui = ({
|
|
1874
1874
|
kickoffDate: t,
|
|
1875
1875
|
locale: o,
|
|
1876
1876
|
rightContent: a
|
|
@@ -1897,14 +1897,14 @@ const _i = ({
|
|
|
1897
1897
|
fontWeight: 500,
|
|
1898
1898
|
letterSpacing: "0.05em"
|
|
1899
1899
|
},
|
|
1900
|
-
children:
|
|
1900
|
+
children: Gi(t, o)
|
|
1901
1901
|
}
|
|
1902
1902
|
),
|
|
1903
1903
|
a ?? null
|
|
1904
1904
|
]
|
|
1905
1905
|
}
|
|
1906
1906
|
);
|
|
1907
|
-
},
|
|
1907
|
+
}, Ki = Pe.memo(Ui), qi = ({ index: t = 0 }) => {
|
|
1908
1908
|
const o = be(), a = xe(), l = ve(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", n = o.surfaceVariant, s = o.surfaceVariant + "80";
|
|
1909
1909
|
return /* @__PURE__ */ p(
|
|
1910
1910
|
r,
|
|
@@ -2066,7 +2066,7 @@ const _i = ({
|
|
|
2066
2066
|
]
|
|
2067
2067
|
}
|
|
2068
2068
|
);
|
|
2069
|
-
}, Wo = Pe.memo(
|
|
2069
|
+
}, Wo = Pe.memo(qi), Ji = () => /* @__PURE__ */ e(
|
|
2070
2070
|
"svg",
|
|
2071
2071
|
{
|
|
2072
2072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2080,7 +2080,7 @@ const _i = ({
|
|
|
2080
2080
|
strokeLinejoin: "round",
|
|
2081
2081
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
2082
2082
|
}
|
|
2083
|
-
),
|
|
2083
|
+
), Zi = () => /* @__PURE__ */ e(
|
|
2084
2084
|
"svg",
|
|
2085
2085
|
{
|
|
2086
2086
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2094,7 +2094,7 @@ const _i = ({
|
|
|
2094
2094
|
strokeLinejoin: "round",
|
|
2095
2095
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
2096
2096
|
}
|
|
2097
|
-
),
|
|
2097
|
+
), Qi = ({
|
|
2098
2098
|
score: t,
|
|
2099
2099
|
onIncrement: o,
|
|
2100
2100
|
onDecrement: a,
|
|
@@ -2136,7 +2136,7 @@ const _i = ({
|
|
|
2136
2136
|
},
|
|
2137
2137
|
"&:active": { transform: l ? "none" : "scale(0.95)" }
|
|
2138
2138
|
},
|
|
2139
|
-
children: /* @__PURE__ */ e(
|
|
2139
|
+
children: /* @__PURE__ */ e(Ji, {})
|
|
2140
2140
|
}
|
|
2141
2141
|
),
|
|
2142
2142
|
/* @__PURE__ */ e(
|
|
@@ -2184,13 +2184,13 @@ const _i = ({
|
|
|
2184
2184
|
},
|
|
2185
2185
|
"&:active": { transform: l ? "none" : "scale(0.95)" }
|
|
2186
2186
|
},
|
|
2187
|
-
children: /* @__PURE__ */ e(
|
|
2187
|
+
children: /* @__PURE__ */ e(Zi, {})
|
|
2188
2188
|
}
|
|
2189
2189
|
)
|
|
2190
2190
|
]
|
|
2191
2191
|
}
|
|
2192
2192
|
);
|
|
2193
|
-
},
|
|
2193
|
+
}, ea = Pe.memo(Qi), ta = ({
|
|
2194
2194
|
team: t,
|
|
2195
2195
|
score: o,
|
|
2196
2196
|
isPast: a,
|
|
@@ -2280,7 +2280,7 @@ const _i = ({
|
|
|
2280
2280
|
}
|
|
2281
2281
|
),
|
|
2282
2282
|
!g && !a && !l && !c && /* @__PURE__ */ e(
|
|
2283
|
-
|
|
2283
|
+
ea,
|
|
2284
2284
|
{
|
|
2285
2285
|
score: o,
|
|
2286
2286
|
onIncrement: d,
|
|
@@ -2541,7 +2541,7 @@ const _i = ({
|
|
|
2541
2541
|
]
|
|
2542
2542
|
}
|
|
2543
2543
|
);
|
|
2544
|
-
}, lr = Pe.memo(
|
|
2544
|
+
}, lr = Pe.memo(ta), oa = ({
|
|
2545
2545
|
existingPrediction: t,
|
|
2546
2546
|
matchHomeScore: o,
|
|
2547
2547
|
matchAwayScore: a,
|
|
@@ -2860,7 +2860,7 @@ const _i = ({
|
|
|
2860
2860
|
}
|
|
2861
2861
|
)
|
|
2862
2862
|
] });
|
|
2863
|
-
},
|
|
2863
|
+
}, ra = Pe.memo(oa), na = ({
|
|
2864
2864
|
isLive: t,
|
|
2865
2865
|
isPast: o,
|
|
2866
2866
|
isLocked: a,
|
|
@@ -3073,7 +3073,7 @@ const _i = ({
|
|
|
3073
3073
|
)
|
|
3074
3074
|
}
|
|
3075
3075
|
) : o && n != null ? d ? /* @__PURE__ */ e(
|
|
3076
|
-
|
|
3076
|
+
ra,
|
|
3077
3077
|
{
|
|
3078
3078
|
existingPrediction: d,
|
|
3079
3079
|
matchHomeScore: n,
|
|
@@ -3095,7 +3095,7 @@ const _i = ({
|
|
|
3095
3095
|
children: b("topX.play.noPredictionMade", "No prediction made")
|
|
3096
3096
|
}
|
|
3097
3097
|
) : null;
|
|
3098
|
-
},
|
|
3098
|
+
}, ia = Pe.memo(na), aa = ({
|
|
3099
3099
|
odds: t,
|
|
3100
3100
|
operator: o,
|
|
3101
3101
|
onOddClick: a
|
|
@@ -3259,7 +3259,7 @@ const _i = ({
|
|
|
3259
3259
|
x({ flex: 1, maxWidth: 90 }),
|
|
3260
3260
|
t.map((m) => g(m))
|
|
3261
3261
|
] });
|
|
3262
|
-
},
|
|
3262
|
+
}, sa = Pe.memo(aa), la = ({
|
|
3263
3263
|
match: t,
|
|
3264
3264
|
existingPrediction: o,
|
|
3265
3265
|
homeScore: a,
|
|
@@ -3284,7 +3284,7 @@ const _i = ({
|
|
|
3284
3284
|
const { t: L } = We("common"), k = be(), I = ke(), w = xe(), $ = ve(), { betslip: z } = ht(), { language: X } = Lt(zt), F = Ce(
|
|
3285
3285
|
() => new Date(t.kickoffAt),
|
|
3286
3286
|
[t.kickoffAt]
|
|
3287
|
-
), A = t.status === "FINISHED", E = t.status === "LIVE", R = F < /* @__PURE__ */ new Date() && A, T = 15 * 60 * 1e3, W = h || b || !A && (E || Date.now() >= F.getTime() - T), B = t.homeScore ?? null, U = t.awayScore ?? null, H = !!o, N = H && !x, { predictedOutcome: j } =
|
|
3287
|
+
), A = t.status === "FINISHED", E = t.status === "LIVE", R = F < /* @__PURE__ */ new Date() && A, T = 15 * 60 * 1e3, W = h || b || !A && (E || Date.now() >= F.getTime() - T), B = t.homeScore ?? null, U = t.awayScore ?? null, H = !!o, N = H && !x, { predictedOutcome: j } = Yi({
|
|
3288
3288
|
matchId: t.id,
|
|
3289
3289
|
homeScore: a,
|
|
3290
3290
|
awayScore: l,
|
|
@@ -3328,12 +3328,12 @@ const _i = ({
|
|
|
3328
3328
|
},
|
|
3329
3329
|
children: [
|
|
3330
3330
|
/* @__PURE__ */ e(
|
|
3331
|
-
|
|
3331
|
+
Ki,
|
|
3332
3332
|
{
|
|
3333
3333
|
kickoffDate: F,
|
|
3334
3334
|
locale: X ?? void 0,
|
|
3335
3335
|
rightContent: /* @__PURE__ */ e(
|
|
3336
|
-
|
|
3336
|
+
ia,
|
|
3337
3337
|
{
|
|
3338
3338
|
isLive: E,
|
|
3339
3339
|
isPast: R,
|
|
@@ -3477,7 +3477,7 @@ const _i = ({
|
|
|
3477
3477
|
}
|
|
3478
3478
|
),
|
|
3479
3479
|
!W && (j == null ? void 0 : j.matchingOdd) && j.operator && /* @__PURE__ */ e(
|
|
3480
|
-
|
|
3480
|
+
sa,
|
|
3481
3481
|
{
|
|
3482
3482
|
odds: [j.matchingOdd],
|
|
3483
3483
|
operator: j.operator,
|
|
@@ -3488,7 +3488,7 @@ const _i = ({
|
|
|
3488
3488
|
]
|
|
3489
3489
|
}
|
|
3490
3490
|
);
|
|
3491
|
-
},
|
|
3491
|
+
}, ca = Pe.memo(la), da = () => /* @__PURE__ */ e(
|
|
3492
3492
|
"svg",
|
|
3493
3493
|
{
|
|
3494
3494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3502,7 +3502,7 @@ const _i = ({
|
|
|
3502
3502
|
strokeLinejoin: "round",
|
|
3503
3503
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
3504
3504
|
}
|
|
3505
|
-
),
|
|
3505
|
+
), pa = () => /* @__PURE__ */ e(
|
|
3506
3506
|
"svg",
|
|
3507
3507
|
{
|
|
3508
3508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3516,14 +3516,14 @@ const _i = ({
|
|
|
3516
3516
|
strokeLinejoin: "round",
|
|
3517
3517
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
3518
3518
|
}
|
|
3519
|
-
),
|
|
3519
|
+
), ua = {
|
|
3520
3520
|
OPEN: "topX.play.gameStatus.open",
|
|
3521
3521
|
LIVE: "topX.play.gameStatus.live",
|
|
3522
3522
|
PENDING: "topX.play.gameStatus.pending",
|
|
3523
3523
|
CLOSED: "topX.play.gameStatus.closed",
|
|
3524
3524
|
SETTLED: "topX.play.gameStatus.settled",
|
|
3525
3525
|
CANCELED: "topX.play.gameStatus.canceled"
|
|
3526
|
-
},
|
|
3526
|
+
}, ma = {
|
|
3527
3527
|
OPEN: "topX.play.gameStatus.openTooltip",
|
|
3528
3528
|
LIVE: "topX.play.gameStatus.liveTooltip",
|
|
3529
3529
|
PENDING: "topX.play.gameStatus.pendingTooltip",
|
|
@@ -3552,7 +3552,7 @@ const _i = ({
|
|
|
3552
3552
|
"LIVE",
|
|
3553
3553
|
"CLOSED",
|
|
3554
3554
|
"SETTLED"
|
|
3555
|
-
],
|
|
3555
|
+
], fa = ({ status: t }) => {
|
|
3556
3556
|
const { t: o } = We("common"), a = be(), l = ke(), c = xe(), n = a.palette ?? {}, s = ve(), [d, i] = P(!1), f = t === "CANCELED", g = f ? -1 : dr.findIndex((h) => h === t), u = cr(
|
|
3557
3557
|
n,
|
|
3558
3558
|
a.textSecondary,
|
|
@@ -3651,7 +3651,7 @@ const _i = ({
|
|
|
3651
3651
|
textTransform: "uppercase",
|
|
3652
3652
|
color: u
|
|
3653
3653
|
},
|
|
3654
|
-
children: o(
|
|
3654
|
+
children: o(ua[t])
|
|
3655
3655
|
}
|
|
3656
3656
|
),
|
|
3657
3657
|
/* @__PURE__ */ e(
|
|
@@ -3706,7 +3706,7 @@ const _i = ({
|
|
|
3706
3706
|
borderColor: `transparent transparent ${a.surfaceTintDim} transparent`
|
|
3707
3707
|
}
|
|
3708
3708
|
},
|
|
3709
|
-
children: o(
|
|
3709
|
+
children: o(ma[t])
|
|
3710
3710
|
}
|
|
3711
3711
|
)
|
|
3712
3712
|
]
|
|
@@ -3717,7 +3717,7 @@ const _i = ({
|
|
|
3717
3717
|
]
|
|
3718
3718
|
}
|
|
3719
3719
|
);
|
|
3720
|
-
},
|
|
3720
|
+
}, xa = ({
|
|
3721
3721
|
games: t,
|
|
3722
3722
|
gameIndex: o,
|
|
3723
3723
|
currentGame: a,
|
|
@@ -3766,7 +3766,7 @@ const _i = ({
|
|
|
3766
3766
|
disabled: x,
|
|
3767
3767
|
onClick: l,
|
|
3768
3768
|
sx: u(x),
|
|
3769
|
-
children: /* @__PURE__ */ e(
|
|
3769
|
+
children: /* @__PURE__ */ e(da, {})
|
|
3770
3770
|
}
|
|
3771
3771
|
),
|
|
3772
3772
|
/* @__PURE__ */ p(r, { sx: { textAlign: "center", minWidth: 0, flex: 1 }, children: [
|
|
@@ -3797,7 +3797,7 @@ const _i = ({
|
|
|
3797
3797
|
dangerouslySetInnerHTML: { __html: v }
|
|
3798
3798
|
}
|
|
3799
3799
|
),
|
|
3800
|
-
a && /* @__PURE__ */ e(r, { sx: { mt: f.sm }, children: /* @__PURE__ */ e(
|
|
3800
|
+
a && /* @__PURE__ */ e(r, { sx: { mt: f.sm }, children: /* @__PURE__ */ e(fa, { status: a.status }) })
|
|
3801
3801
|
] }),
|
|
3802
3802
|
/* @__PURE__ */ e(
|
|
3803
3803
|
r,
|
|
@@ -3807,13 +3807,13 @@ const _i = ({
|
|
|
3807
3807
|
disabled: m,
|
|
3808
3808
|
onClick: c,
|
|
3809
3809
|
sx: u(m),
|
|
3810
|
-
children: /* @__PURE__ */ e(
|
|
3810
|
+
children: /* @__PURE__ */ e(pa, {})
|
|
3811
3811
|
}
|
|
3812
3812
|
)
|
|
3813
3813
|
]
|
|
3814
3814
|
}
|
|
3815
3815
|
);
|
|
3816
|
-
},
|
|
3816
|
+
}, ha = Pe.memo(xa), ga = ({
|
|
3817
3817
|
matches: t,
|
|
3818
3818
|
predictions: o,
|
|
3819
3819
|
predictedCount: a,
|
|
@@ -4216,7 +4216,7 @@ const _i = ({
|
|
|
4216
4216
|
]
|
|
4217
4217
|
}
|
|
4218
4218
|
) });
|
|
4219
|
-
},
|
|
4219
|
+
}, ya = Pe.memo(ga), ba = ({ predictionsCutoff: t }) => {
|
|
4220
4220
|
const { t: o } = We("common"), a = be(), l = ve(), c = ke(), n = xe(), s = ho(), d = a.palette.primary.plainColor, i = a.palette.primary.onPrimary ?? "#fff", g = a.palette.primary.primaryContainer ?? `color-mix(in srgb, ${d} 75%, #000 25%)`, u = a.palette.primary.primaryButtonGradient, x = u || `linear-gradient(to right, ${d}, ${g})`, m = de(() => {
|
|
4221
4221
|
const y = (/* @__PURE__ */ new Date()).getTime(), L = new Date(t).getTime() - y;
|
|
4222
4222
|
if (L <= 0)
|
|
@@ -4329,13 +4329,13 @@ const _i = ({
|
|
|
4329
4329
|
] })
|
|
4330
4330
|
] })
|
|
4331
4331
|
] });
|
|
4332
|
-
}, pr = 1, ur = 90,
|
|
4332
|
+
}, pr = 1, ur = 90, Sa = 1, Ca = ({
|
|
4333
4333
|
value: t,
|
|
4334
4334
|
onChange: o,
|
|
4335
4335
|
disabled: a,
|
|
4336
4336
|
loading: l
|
|
4337
4337
|
}) => {
|
|
4338
|
-
const { t: c } = We("common"), n = be(), s = ke(), d = xe(), i = ve(), f = t === "" ? NaN : parseInt(t, 10), g = Number.isNaN(f) ?
|
|
4338
|
+
const { t: c } = We("common"), n = be(), s = ke(), d = xe(), i = ve(), f = t === "" ? NaN : parseInt(t, 10), g = Number.isNaN(f) ? Sa : f, u = Math.max(pr, Math.min(ur, g)), x = n.palette.primary.plainColor, m = n.palette.primary.onPrimary ?? "#fff", h = (b, v) => {
|
|
4339
4339
|
a || o(String(Array.isArray(v) ? v[0] : v));
|
|
4340
4340
|
};
|
|
4341
4341
|
return l ? /* @__PURE__ */ p(
|
|
@@ -4478,7 +4478,7 @@ const _i = ({
|
|
|
4478
4478
|
}
|
|
4479
4479
|
),
|
|
4480
4480
|
/* @__PURE__ */ e(
|
|
4481
|
-
|
|
4481
|
+
Dr,
|
|
4482
4482
|
{
|
|
4483
4483
|
value: u,
|
|
4484
4484
|
onChange: h,
|
|
@@ -4528,7 +4528,7 @@ const _i = ({
|
|
|
4528
4528
|
]
|
|
4529
4529
|
}
|
|
4530
4530
|
);
|
|
4531
|
-
},
|
|
4531
|
+
}, va = (t) => {
|
|
4532
4532
|
switch (t) {
|
|
4533
4533
|
case "penalty_goal":
|
|
4534
4534
|
return "topX.play.goldenGoalResult.goalTypes.penalty";
|
|
@@ -4538,7 +4538,7 @@ const _i = ({
|
|
|
4538
4538
|
default:
|
|
4539
4539
|
return "topX.play.goldenGoalResult.goalTypes.goal";
|
|
4540
4540
|
}
|
|
4541
|
-
},
|
|
4541
|
+
}, ka = ({
|
|
4542
4542
|
actualMinute: t,
|
|
4543
4543
|
predictedMinute: o,
|
|
4544
4544
|
playerName: a,
|
|
@@ -4549,7 +4549,7 @@ const _i = ({
|
|
|
4549
4549
|
loading: d
|
|
4550
4550
|
}) => {
|
|
4551
4551
|
var C, L;
|
|
4552
|
-
const { t: i } = We("common"), f = be(), g = ke(), u = xe(), x = ve(), m = f.palette ?? {}, h = ((C = m.primary) == null ? void 0 : C.plainColor) ?? f.textPrimary, b = i(
|
|
4552
|
+
const { t: i } = We("common"), f = be(), g = ke(), u = xe(), x = ve(), m = f.palette ?? {}, h = ((C = m.primary) == null ? void 0 : C.plainColor) ?? f.textPrimary, b = i(va(s)), v = ({ children: k }) => /* @__PURE__ */ e(
|
|
4553
4553
|
S,
|
|
4554
4554
|
{
|
|
4555
4555
|
sx: {
|
|
@@ -4967,7 +4967,7 @@ const _i = ({
|
|
|
4967
4967
|
]
|
|
4968
4968
|
}
|
|
4969
4969
|
);
|
|
4970
|
-
},
|
|
4970
|
+
}, wa = Pe.memo(ka), Ia = () => {
|
|
4971
4971
|
var d, i, f, g, u, x, m, h, b, v, y, C, L, k, I, w, $, z, X, F, A, E;
|
|
4972
4972
|
const { t } = We("common"), o = be(), a = ke(), l = ve(), { signInCTA: c } = ht();
|
|
4973
4973
|
if (c != null && c.component) return /* @__PURE__ */ e(Ee, { children: c.component });
|
|
@@ -4995,12 +4995,12 @@ const _i = ({
|
|
|
4995
4995
|
}
|
|
4996
4996
|
};
|
|
4997
4997
|
return c != null && c.onClick ? /* @__PURE__ */ e(Ne, { onClick: c.onClick, sx: s, children: n }) : c != null && c.url ? /* @__PURE__ */ e(Ne, { component: "a", href: c.url, sx: s, children: n }) : /* @__PURE__ */ e(Ne, { sx: s, children: n });
|
|
4998
|
-
},
|
|
4998
|
+
}, La = Pe.memo(Ia), Bt = (t, o) => (t == null ? void 0 : t.filter((a) => a.position === o)) ?? [], Dt = ({ banners: t }) => t.length === 0 ? null : /* @__PURE__ */ e(Ee, { children: t.map((o, a) => /* @__PURE__ */ e(r, { children: o.render() }, a)) }), za = 0, $a = 20, ao = (t) => Math.max(za, Math.min($a, t)), mr = {
|
|
4999
4999
|
open: !1,
|
|
5000
5000
|
variant: "success",
|
|
5001
5001
|
title: "",
|
|
5002
5002
|
message: ""
|
|
5003
|
-
}, Oo = (t) => `topx:pending:${t}`,
|
|
5003
|
+
}, Oo = (t) => `topx:pending:${t}`, Ra = (t) => {
|
|
5004
5004
|
if (typeof localStorage > "u") return null;
|
|
5005
5005
|
try {
|
|
5006
5006
|
const o = localStorage.getItem(Oo(t));
|
|
@@ -5013,7 +5013,7 @@ const _i = ({
|
|
|
5013
5013
|
} catch {
|
|
5014
5014
|
return null;
|
|
5015
5015
|
}
|
|
5016
|
-
},
|
|
5016
|
+
}, Ta = (t, o) => {
|
|
5017
5017
|
if (!(typeof localStorage > "u"))
|
|
5018
5018
|
try {
|
|
5019
5019
|
localStorage.setItem(Oo(t), JSON.stringify(o));
|
|
@@ -5025,7 +5025,7 @@ const _i = ({
|
|
|
5025
5025
|
localStorage.removeItem(Oo(t));
|
|
5026
5026
|
} catch {
|
|
5027
5027
|
}
|
|
5028
|
-
},
|
|
5028
|
+
}, Fa = ({
|
|
5029
5029
|
template: t,
|
|
5030
5030
|
loading: o,
|
|
5031
5031
|
error: a,
|
|
@@ -5037,11 +5037,11 @@ const _i = ({
|
|
|
5037
5037
|
var st, it, Nt, Ht, Ot, jt, Vt, oe, ye, Re, at, Je, dt, ut, et, nt, gt, vt, Rt, Tt, _t, Yt, Gt, Ut, jo, Vo, _o, Yo, Go, Uo;
|
|
5038
5038
|
const { t: d } = We("common"), i = be(), f = ke(), g = xe(), u = ve(), x = ho(), { sdk: m, userIsLoggedIn: h } = ht();
|
|
5039
5039
|
Lt(zt);
|
|
5040
|
-
const { ensureConsents: b, modal: v } =
|
|
5040
|
+
const { ensureConsents: b, modal: v } = Mi(), y = !!t, {
|
|
5041
5041
|
games: C,
|
|
5042
5042
|
loading: L,
|
|
5043
5043
|
error: k
|
|
5044
|
-
} = Ho(m, t == null ? void 0 : t.gameIds, y), I = Ce(() =>
|
|
5044
|
+
} = Ho(m, t == null ? void 0 : t.gameIds, y), I = Ce(() => Oi(C), [C]), w = Ce(() => ji(I), [I]), $ = Ce(
|
|
5045
5045
|
() => I.current ? I.previous.length : Math.max(0, w.length - 1),
|
|
5046
5046
|
[I, w.length]
|
|
5047
5047
|
), [z, X] = P($), F = je($);
|
|
@@ -5054,7 +5054,7 @@ const _i = ({
|
|
|
5054
5054
|
), E = de(
|
|
5055
5055
|
() => X((ee) => Math.min(w.length - 1, ee + 1)),
|
|
5056
5056
|
[w.length]
|
|
5057
|
-
), R = w[z] ?? null, T = Ce(() => R ? R.fixtures.map((ee) =>
|
|
5057
|
+
), R = w[z] ?? null, T = Ce(() => R ? R.fixtures.map((ee) => _i(ee.matchModel)).sort(
|
|
5058
5058
|
(ee, fe) => new Date(ee.kickoffAt).getTime() - new Date(fe.kickoffAt).getTime()
|
|
5059
5059
|
) : [], [R]), [W, B] = P(/* @__PURE__ */ new Map()), [U, H] = P(!1), [N, j] = P(
|
|
5060
5060
|
/* @__PURE__ */ new Map()
|
|
@@ -5096,7 +5096,7 @@ const _i = ({
|
|
|
5096
5096
|
const pt = Ce(() => T.map((ee) => ee.id), [T]), K = Ce(
|
|
5097
5097
|
() => T.some((ee) => ee.status === "LIVE"),
|
|
5098
5098
|
[T]
|
|
5099
|
-
), { oddsMap: Q, loading: J } =
|
|
5099
|
+
), { oddsMap: Q, loading: J } = Nr({
|
|
5100
5100
|
sdk: m,
|
|
5101
5101
|
matchIds: pt,
|
|
5102
5102
|
markets: ["1x2"],
|
|
@@ -5134,7 +5134,7 @@ const _i = ({
|
|
|
5134
5134
|
Ft.set(ft, { home: Ze.homeScore, away: Ze.awayScore });
|
|
5135
5135
|
});
|
|
5136
5136
|
else {
|
|
5137
|
-
const Ze =
|
|
5137
|
+
const Ze = Ra(R.id);
|
|
5138
5138
|
if (Ze) {
|
|
5139
5139
|
for (const [ft, wt] of Object.entries(Ze.scores))
|
|
5140
5140
|
wt && typeof wt.home == "number" && typeof wt.away == "number" && Ft.set(ft, {
|
|
@@ -5178,7 +5178,7 @@ const _i = ({
|
|
|
5178
5178
|
const Oe = N.get(Se.id) ?? { home: 0, away: 0 };
|
|
5179
5179
|
return {
|
|
5180
5180
|
matchId: Se.id,
|
|
5181
|
-
market:
|
|
5181
|
+
market: xn.CORRECT_SCORE_ADVANCED,
|
|
5182
5182
|
matchType: "FOOTBALL",
|
|
5183
5183
|
prediction: { value: `${Oe.home}:${Oe.away}` }
|
|
5184
5184
|
};
|
|
@@ -5292,9 +5292,9 @@ const _i = ({
|
|
|
5292
5292
|
we(null);
|
|
5293
5293
|
return;
|
|
5294
5294
|
}
|
|
5295
|
-
const yt = xt.matchModel, qo = ((Se = xt.playerModel) == null ? void 0 : Se.teams) ?? [], Jo = (Oe = yt == null ? void 0 : yt.homeTeam) == null ? void 0 : Oe.id,
|
|
5295
|
+
const yt = xt.matchModel, qo = ((Se = xt.playerModel) == null ? void 0 : Se.teams) ?? [], Jo = (Oe = yt == null ? void 0 : yt.homeTeam) == null ? void 0 : Oe.id, Kr = (mt = yt == null ? void 0 : yt.awayTeam) == null ? void 0 : mt.id;
|
|
5296
5296
|
let to = qo.find(
|
|
5297
|
-
(At) => (At == null ? void 0 : At.id) === Jo || (At == null ? void 0 : At.id) ===
|
|
5297
|
+
(At) => (At == null ? void 0 : At.id) === Jo || (At == null ? void 0 : At.id) === Kr
|
|
5298
5298
|
) ?? null;
|
|
5299
5299
|
xt.goalType === "own_goal" && to && yt && (to = to.id === Jo ? yt.awayTeam : yt.homeTeam);
|
|
5300
5300
|
const bt = to ?? qo[0];
|
|
@@ -5322,7 +5322,7 @@ const _i = ({
|
|
|
5322
5322
|
wo(R.id);
|
|
5323
5323
|
return;
|
|
5324
5324
|
}
|
|
5325
|
-
|
|
5325
|
+
Ta(R.id, {
|
|
5326
5326
|
scores: Object.fromEntries(N),
|
|
5327
5327
|
goldenGoal: D
|
|
5328
5328
|
});
|
|
@@ -5435,7 +5435,7 @@ const _i = ({
|
|
|
5435
5435
|
},
|
|
5436
5436
|
children: [
|
|
5437
5437
|
/* @__PURE__ */ e(
|
|
5438
|
-
|
|
5438
|
+
ha,
|
|
5439
5439
|
{
|
|
5440
5440
|
games: w,
|
|
5441
5441
|
gameIndex: z,
|
|
@@ -5446,7 +5446,7 @@ const _i = ({
|
|
|
5446
5446
|
}
|
|
5447
5447
|
),
|
|
5448
5448
|
n && (R == null ? void 0 : R.status) === "OPEN" && R.predictionsCutoff && /* @__PURE__ */ e(
|
|
5449
|
-
|
|
5449
|
+
ba,
|
|
5450
5450
|
{
|
|
5451
5451
|
predictionsCutoff: R.predictionsCutoff
|
|
5452
5452
|
}
|
|
@@ -5506,7 +5506,7 @@ const _i = ({
|
|
|
5506
5506
|
away: (fe == null ? void 0 : fe.awayScore) ?? 0
|
|
5507
5507
|
};
|
|
5508
5508
|
return /* @__PURE__ */ e(
|
|
5509
|
-
|
|
5509
|
+
ca,
|
|
5510
5510
|
{
|
|
5511
5511
|
match: ee,
|
|
5512
5512
|
existingPrediction: fe,
|
|
@@ -5551,7 +5551,7 @@ const _i = ({
|
|
|
5551
5551
|
},
|
|
5552
5552
|
children: [
|
|
5553
5553
|
(st = R == null ? void 0 : R.tiebreaker) != null && st.timeTiebreaker ? /* @__PURE__ */ e(
|
|
5554
|
-
|
|
5554
|
+
Ca,
|
|
5555
5555
|
{
|
|
5556
5556
|
value: D,
|
|
5557
5557
|
onChange: te,
|
|
@@ -5593,7 +5593,7 @@ const _i = ({
|
|
|
5593
5593
|
},
|
|
5594
5594
|
children: d("topX.play.submitButton")
|
|
5595
5595
|
}
|
|
5596
|
-
) : /* @__PURE__ */ e(
|
|
5596
|
+
) : /* @__PURE__ */ e(La, {})
|
|
5597
5597
|
}
|
|
5598
5598
|
)
|
|
5599
5599
|
]
|
|
@@ -5613,7 +5613,7 @@ const _i = ({
|
|
|
5613
5613
|
},
|
|
5614
5614
|
children: [
|
|
5615
5615
|
R.status === "SETTLED" && ((vt = R.tiebreaker) != null && vt.timeTiebreaker) && (Ve || ce) ? /* @__PURE__ */ e(
|
|
5616
|
-
|
|
5616
|
+
wa,
|
|
5617
5617
|
{
|
|
5618
5618
|
actualMinute: (ce == null ? void 0 : ce.minute) ?? 0,
|
|
5619
5619
|
predictedMinute: W.size > 0 && D ? parseInt(D, 10) : null,
|
|
@@ -5626,7 +5626,7 @@ const _i = ({
|
|
|
5626
5626
|
}
|
|
5627
5627
|
) : /* @__PURE__ */ e(r, {}),
|
|
5628
5628
|
/* @__PURE__ */ e(
|
|
5629
|
-
|
|
5629
|
+
ya,
|
|
5630
5630
|
{
|
|
5631
5631
|
matches: T,
|
|
5632
5632
|
predictions: W,
|
|
@@ -5837,7 +5837,7 @@ const _i = ({
|
|
|
5837
5837
|
] }),
|
|
5838
5838
|
/* @__PURE__ */ e(Qt, { notification: De, onClose: ct })
|
|
5839
5839
|
] });
|
|
5840
|
-
},
|
|
5840
|
+
}, Ea = ({
|
|
5841
5841
|
count: t = 10,
|
|
5842
5842
|
page: o = 1,
|
|
5843
5843
|
onChange: a,
|
|
@@ -5893,7 +5893,7 @@ const _i = ({
|
|
|
5893
5893
|
onClick: () => f(1),
|
|
5894
5894
|
disabled: i || o === 1,
|
|
5895
5895
|
sx: v(),
|
|
5896
|
-
children: /* @__PURE__ */ e(
|
|
5896
|
+
children: /* @__PURE__ */ e(ti, { size: h })
|
|
5897
5897
|
}
|
|
5898
5898
|
),
|
|
5899
5899
|
/* @__PURE__ */ e(
|
|
@@ -5905,7 +5905,7 @@ const _i = ({
|
|
|
5905
5905
|
onClick: () => f(o - 1),
|
|
5906
5906
|
disabled: i || o === 1,
|
|
5907
5907
|
sx: v(),
|
|
5908
|
-
children: /* @__PURE__ */ e(
|
|
5908
|
+
children: /* @__PURE__ */ e(ri, { size: h })
|
|
5909
5909
|
}
|
|
5910
5910
|
),
|
|
5911
5911
|
x.map((y, C) => {
|
|
@@ -5950,7 +5950,7 @@ const _i = ({
|
|
|
5950
5950
|
onClick: () => f(o + 1),
|
|
5951
5951
|
disabled: i || o === t,
|
|
5952
5952
|
sx: v(),
|
|
5953
|
-
children: /* @__PURE__ */ e(
|
|
5953
|
+
children: /* @__PURE__ */ e(ni, { size: h })
|
|
5954
5954
|
}
|
|
5955
5955
|
),
|
|
5956
5956
|
s && /* @__PURE__ */ e(
|
|
@@ -5962,13 +5962,13 @@ const _i = ({
|
|
|
5962
5962
|
onClick: () => f(t),
|
|
5963
5963
|
disabled: i || o === t,
|
|
5964
5964
|
sx: v(),
|
|
5965
|
-
children: /* @__PURE__ */ e(
|
|
5965
|
+
children: /* @__PURE__ */ e(oi, { size: h })
|
|
5966
5966
|
}
|
|
5967
5967
|
)
|
|
5968
5968
|
]
|
|
5969
5969
|
}
|
|
5970
5970
|
);
|
|
5971
|
-
},
|
|
5971
|
+
}, Pa = ({
|
|
5972
5972
|
size: t = 16,
|
|
5973
5973
|
color: o = "currentColor"
|
|
5974
5974
|
}) => /* @__PURE__ */ e(
|
|
@@ -6005,7 +6005,7 @@ const _i = ({
|
|
|
6005
6005
|
Number.isFinite(n) && n > 0 && (n < o && (o = n), n > a && (a = n));
|
|
6006
6006
|
}
|
|
6007
6007
|
return Number.isFinite(o) ? { min: o, max: a } : { min: 0, max: 0 };
|
|
6008
|
-
},
|
|
6008
|
+
}, Wa = ({
|
|
6009
6009
|
scope: t,
|
|
6010
6010
|
onChange: o,
|
|
6011
6011
|
settledGames: a
|
|
@@ -6156,7 +6156,7 @@ const _i = ({
|
|
|
6156
6156
|
transition: "transform 0.18s ease",
|
|
6157
6157
|
transform: f ? "rotate(180deg)" : "rotate(0deg)"
|
|
6158
6158
|
},
|
|
6159
|
-
children: /* @__PURE__ */ e(
|
|
6159
|
+
children: /* @__PURE__ */ e(Pa, { size: 18 })
|
|
6160
6160
|
}
|
|
6161
6161
|
)
|
|
6162
6162
|
]
|
|
@@ -6316,9 +6316,9 @@ const _i = ({
|
|
|
6316
6316
|
}
|
|
6317
6317
|
)
|
|
6318
6318
|
] });
|
|
6319
|
-
}, xr = 10,
|
|
6319
|
+
}, xr = 10, Xa = ({ template: t }) => {
|
|
6320
6320
|
var V, Z;
|
|
6321
|
-
const { t: o } = We("common"), a = be(), l = xe(), c = ve(), n = ke(), s =
|
|
6321
|
+
const { t: o } = We("common"), a = be(), l = xe(), c = ve(), n = ke(), s = nn(), d = Ir(), { entityId: i, sdk: f, userIsLoggedIn: g } = ht(), u = ((Z = (V = a.palette) == null ? void 0 : V.primary) == null ? void 0 : Z.plainColor) ?? a.textPrimary, x = s.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", m = a.textColor ?? a.textPrimary, h = a.surfaceVariant, b = a.outlineEnabledBorder, [v, y] = P([]), [C, L] = P(null), [k, I] = P(null), [w, $] = P(!0), [z, X] = P(null), [F, A] = P(1), [E, R] = P(1), [T, W] = P("general"), { games: B } = Ho(f, t == null ? void 0 : t.gameIds, !!t), U = Ce(
|
|
6322
6322
|
() => B.filter((q) => q.status === "SETTLED"),
|
|
6323
6323
|
[B]
|
|
6324
6324
|
);
|
|
@@ -6502,7 +6502,7 @@ const _i = ({
|
|
|
6502
6502
|
}
|
|
6503
6503
|
}, N = k != null && v.some((q) => q.profileId === k), j = U.length > 0;
|
|
6504
6504
|
let M;
|
|
6505
|
-
return w ? M = /* @__PURE__ */ e(
|
|
6505
|
+
return w ? M = /* @__PURE__ */ e(ei, { my: 10 }) : z ? M = /* @__PURE__ */ e(S, { level: "body-lg", sx: H.noLeaderboardText, children: o("topX.errors.loadFailed") }) : v.length === 0 ? M = /* @__PURE__ */ e(S, { level: "body-lg", sx: H.noLeaderboardText, children: o("leaderboard.noLeaderboardAvailable") }) : M = /* @__PURE__ */ p(Ee, { children: [
|
|
6506
6506
|
/* @__PURE__ */ e(To, { sx: H.tableContainer, children: /* @__PURE__ */ p(
|
|
6507
6507
|
Fo,
|
|
6508
6508
|
{
|
|
@@ -6563,7 +6563,7 @@ const _i = ({
|
|
|
6563
6563
|
}
|
|
6564
6564
|
) }),
|
|
6565
6565
|
E > 1 && /* @__PURE__ */ e(
|
|
6566
|
-
|
|
6566
|
+
Ea,
|
|
6567
6567
|
{
|
|
6568
6568
|
count: E,
|
|
6569
6569
|
page: F,
|
|
@@ -6581,7 +6581,7 @@ const _i = ({
|
|
|
6581
6581
|
},
|
|
6582
6582
|
children: [
|
|
6583
6583
|
j && /* @__PURE__ */ e(
|
|
6584
|
-
|
|
6584
|
+
Wa,
|
|
6585
6585
|
{
|
|
6586
6586
|
scope: T,
|
|
6587
6587
|
onChange: W,
|
|
@@ -6592,7 +6592,7 @@ const _i = ({
|
|
|
6592
6592
|
]
|
|
6593
6593
|
}
|
|
6594
6594
|
);
|
|
6595
|
-
},
|
|
6595
|
+
}, Aa = (t) => t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th", Ba = ({
|
|
6596
6596
|
league: t,
|
|
6597
6597
|
onClick: o,
|
|
6598
6598
|
isAdmin: a = !1,
|
|
@@ -6600,7 +6600,7 @@ const _i = ({
|
|
|
6600
6600
|
onCopyCode: c
|
|
6601
6601
|
}) => {
|
|
6602
6602
|
var w, $, z, X;
|
|
6603
|
-
const { t: n } = We("common"), s = be(), d = ke(), i = xe(), f = ve(), g =
|
|
6603
|
+
const { t: n } = We("common"), s = be(), d = ke(), i = xe(), f = ve(), g = an(), [u, x] = P(!1), [m, h] = P(!1), b = je(null), v = je(null);
|
|
6604
6604
|
me(() => {
|
|
6605
6605
|
if (!u) return;
|
|
6606
6606
|
const F = (E) => {
|
|
@@ -6780,7 +6780,7 @@ const _i = ({
|
|
|
6780
6780
|
},
|
|
6781
6781
|
children: [
|
|
6782
6782
|
t.userPosition === 1 ? /* @__PURE__ */ e(
|
|
6783
|
-
|
|
6783
|
+
kn,
|
|
6784
6784
|
{
|
|
6785
6785
|
sx: { fontSize: 13, color: k.text }
|
|
6786
6786
|
}
|
|
@@ -6803,7 +6803,7 @@ const _i = ({
|
|
|
6803
6803
|
},
|
|
6804
6804
|
children: [
|
|
6805
6805
|
t.userPosition,
|
|
6806
|
-
|
|
6806
|
+
Aa(t.userPosition)
|
|
6807
6807
|
]
|
|
6808
6808
|
}
|
|
6809
6809
|
)
|
|
@@ -6845,7 +6845,7 @@ const _i = ({
|
|
|
6845
6845
|
"&:active": { transform: "scale(0.93)" },
|
|
6846
6846
|
backgroundColor: u ? s.surfaceVariant : "transparent"
|
|
6847
6847
|
},
|
|
6848
|
-
children: /* @__PURE__ */ e(
|
|
6848
|
+
children: /* @__PURE__ */ e(wn, { sx: { fontSize: 18 } })
|
|
6849
6849
|
}
|
|
6850
6850
|
),
|
|
6851
6851
|
u && /* @__PURE__ */ p(
|
|
@@ -7004,7 +7004,7 @@ const _i = ({
|
|
|
7004
7004
|
]
|
|
7005
7005
|
}
|
|
7006
7006
|
);
|
|
7007
|
-
},
|
|
7007
|
+
}, Da = Pe.memo(Ba), Ma = ({ index: t = 0 }) => {
|
|
7008
7008
|
const o = be(), a = xe(), l = ve(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", n = o.surfaceVariant, s = o.surfaceVariant + "80";
|
|
7009
7009
|
return /* @__PURE__ */ p(
|
|
7010
7010
|
r,
|
|
@@ -7093,7 +7093,7 @@ const _i = ({
|
|
|
7093
7093
|
]
|
|
7094
7094
|
}
|
|
7095
7095
|
);
|
|
7096
|
-
},
|
|
7096
|
+
}, Na = Pe.memo(Ma), Ha = ({
|
|
7097
7097
|
leagues: t,
|
|
7098
7098
|
activeId: o,
|
|
7099
7099
|
onSelect: a,
|
|
@@ -7180,7 +7180,7 @@ const _i = ({
|
|
|
7180
7180
|
"&:hover": { backgroundColor: `${f}14` }
|
|
7181
7181
|
},
|
|
7182
7182
|
children: [
|
|
7183
|
-
/* @__PURE__ */ e(
|
|
7183
|
+
/* @__PURE__ */ e(In, { sx: { fontSize: 13 } }),
|
|
7184
7184
|
c("topX.privateLeagues.viewAll") || "View All"
|
|
7185
7185
|
]
|
|
7186
7186
|
}
|
|
@@ -7406,7 +7406,7 @@ const _i = ({
|
|
|
7406
7406
|
},
|
|
7407
7407
|
children: [
|
|
7408
7408
|
$ <= 3 && /* @__PURE__ */ e(
|
|
7409
|
-
|
|
7409
|
+
Ln,
|
|
7410
7410
|
{
|
|
7411
7411
|
sx: {
|
|
7412
7412
|
fontSize: 9,
|
|
@@ -7485,7 +7485,7 @@ const _i = ({
|
|
|
7485
7485
|
)
|
|
7486
7486
|
] })
|
|
7487
7487
|
] });
|
|
7488
|
-
},
|
|
7488
|
+
}, Oa = Pe.memo(Ha), ja = ({
|
|
7489
7489
|
open: t,
|
|
7490
7490
|
onClose: o,
|
|
7491
7491
|
title: a,
|
|
@@ -7589,7 +7589,7 @@ const _i = ({
|
|
|
7589
7589
|
)
|
|
7590
7590
|
}
|
|
7591
7591
|
);
|
|
7592
|
-
}, go = Pe.memo(
|
|
7592
|
+
}, go = Pe.memo(ja), Va = ({ rounds: t, transparent: o = !1, loading: a = !1 }) => {
|
|
7593
7593
|
var E, R, T, W;
|
|
7594
7594
|
const [l, c] = P(null), { t: n } = We("common"), s = be(), d = xe(), i = ve(), f = ke(), g = ((R = (E = s.palette) == null ? void 0 : E.primary) == null ? void 0 : R.plainColor) ?? "#1A77D2", u = ((W = (T = s.palette) == null ? void 0 : T.success) == null ? void 0 : W.plainColor) ?? "#4CAF50", x = s.textSecondary ?? "#757575", m = s.textTertiary ?? s.textSecondary ?? "#9E9E9E", h = s.surfaceVariant ?? s.surface ?? "#F5F5F5", b = s.outlineEnabledBorder ?? "#E0E0E0", v = t.slice(-5), y = {
|
|
7595
7595
|
display: "flex",
|
|
@@ -7815,7 +7815,7 @@ function Lo({ outcome: t, color: o }) {
|
|
|
7815
7815
|
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
7816
7816
|
] }) : null;
|
|
7817
7817
|
}
|
|
7818
|
-
function
|
|
7818
|
+
function _a({
|
|
7819
7819
|
outcome: t,
|
|
7820
7820
|
successColor: o,
|
|
7821
7821
|
warningColor: a,
|
|
@@ -7889,7 +7889,7 @@ function zo({
|
|
|
7889
7889
|
onTouchStart: () => F(V),
|
|
7890
7890
|
onTouchEnd: () => setTimeout(() => L(null), 2500),
|
|
7891
7891
|
children: /* @__PURE__ */ e(
|
|
7892
|
-
|
|
7892
|
+
_a,
|
|
7893
7893
|
{
|
|
7894
7894
|
outcome: M.outcome,
|
|
7895
7895
|
successColor: c,
|
|
@@ -7903,7 +7903,7 @@ function zo({
|
|
|
7903
7903
|
},
|
|
7904
7904
|
V
|
|
7905
7905
|
)),
|
|
7906
|
-
C && E &&
|
|
7906
|
+
C && E && ln(
|
|
7907
7907
|
/* @__PURE__ */ p(
|
|
7908
7908
|
r,
|
|
7909
7909
|
{
|
|
@@ -8036,7 +8036,7 @@ function zo({
|
|
|
8036
8036
|
)
|
|
8037
8037
|
] });
|
|
8038
8038
|
}
|
|
8039
|
-
const
|
|
8039
|
+
const Ya = ({
|
|
8040
8040
|
loading: t = !1,
|
|
8041
8041
|
formMatches: o,
|
|
8042
8042
|
selfFormMatches: a = [],
|
|
@@ -8234,7 +8234,7 @@ const _a = ({
|
|
|
8234
8234
|
}
|
|
8235
8235
|
);
|
|
8236
8236
|
}, Xo = 22, hr = 2 * Math.PI * Xo, Jt = 24, so = 2 * Math.PI * Jt;
|
|
8237
|
-
function
|
|
8237
|
+
function Ga({
|
|
8238
8238
|
loading: t = !1,
|
|
8239
8239
|
accuracy: o,
|
|
8240
8240
|
streak: a,
|
|
@@ -8828,7 +8828,7 @@ function Ya({
|
|
|
8828
8828
|
)
|
|
8829
8829
|
] });
|
|
8830
8830
|
}
|
|
8831
|
-
function
|
|
8831
|
+
function Ua({
|
|
8832
8832
|
filters: t,
|
|
8833
8833
|
counts: o,
|
|
8834
8834
|
activeFilter: a,
|
|
@@ -8954,7 +8954,7 @@ function Ga({
|
|
|
8954
8954
|
}
|
|
8955
8955
|
);
|
|
8956
8956
|
}
|
|
8957
|
-
function
|
|
8957
|
+
function Ka(t, o) {
|
|
8958
8958
|
if (!t || !o) return 0;
|
|
8959
8959
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
8960
8960
|
const a = (l, c) => l > c ? "H" : l < c ? "A" : "D";
|
|
@@ -9002,11 +9002,11 @@ function yr({
|
|
|
9002
9002
|
flexShrink: 0,
|
|
9003
9003
|
boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.06)"
|
|
9004
9004
|
},
|
|
9005
|
-
children: /* @__PURE__ */ e(
|
|
9005
|
+
children: /* @__PURE__ */ e(Tn, { sx: { fontSize: a * 0.6, color: "#5A6473" } })
|
|
9006
9006
|
}
|
|
9007
9007
|
);
|
|
9008
9008
|
}
|
|
9009
|
-
function
|
|
9009
|
+
function qa({
|
|
9010
9010
|
home: t,
|
|
9011
9011
|
away: o,
|
|
9012
9012
|
color: a,
|
|
@@ -9049,7 +9049,7 @@ function Ka({
|
|
|
9049
9049
|
}
|
|
9050
9050
|
);
|
|
9051
9051
|
}
|
|
9052
|
-
function
|
|
9052
|
+
function Ja({
|
|
9053
9053
|
matches: t,
|
|
9054
9054
|
successColor: o,
|
|
9055
9055
|
warningColor: a,
|
|
@@ -9106,7 +9106,7 @@ function qa({
|
|
|
9106
9106
|
}
|
|
9107
9107
|
);
|
|
9108
9108
|
}
|
|
9109
|
-
const
|
|
9109
|
+
const Za = Pe.memo(function({
|
|
9110
9110
|
label: o,
|
|
9111
9111
|
matches: a,
|
|
9112
9112
|
isOpen: l,
|
|
@@ -9246,7 +9246,7 @@ const Ja = Pe.memo(function({
|
|
|
9246
9246
|
pointerEvents: "none"
|
|
9247
9247
|
},
|
|
9248
9248
|
children: /* @__PURE__ */ e(
|
|
9249
|
-
|
|
9249
|
+
Ja,
|
|
9250
9250
|
{
|
|
9251
9251
|
matches: a,
|
|
9252
9252
|
successColor: x,
|
|
@@ -9406,7 +9406,7 @@ const Ja = Pe.memo(function({
|
|
|
9406
9406
|
}
|
|
9407
9407
|
);
|
|
9408
9408
|
});
|
|
9409
|
-
function
|
|
9409
|
+
function Qa({
|
|
9410
9410
|
match: t,
|
|
9411
9411
|
compareMode: o,
|
|
9412
9412
|
selfName: a,
|
|
@@ -9428,7 +9428,7 @@ function Za({
|
|
|
9428
9428
|
matchOdds: C,
|
|
9429
9429
|
t: L
|
|
9430
9430
|
}) {
|
|
9431
|
-
const k = t.prediction ?
|
|
9431
|
+
const k = t.prediction ? Hr(`${t.prediction.home}:${t.prediction.away}`) : null, I = k && C ? C.odds.find(
|
|
9432
9432
|
(R) => R.label.toUpperCase() === k || R.label === k
|
|
9433
9433
|
) ?? null : null, w = t.outcome === "pending" ? i : void 0, $ = {
|
|
9434
9434
|
correct: n,
|
|
@@ -9440,7 +9440,7 @@ function Za({
|
|
|
9440
9440
|
partial: `${s}18`,
|
|
9441
9441
|
incorrect: `${d}14`,
|
|
9442
9442
|
pending: x
|
|
9443
|
-
}[t.outcome], X = o && t.played ? t.selfPoints !== null ? t.selfPoints :
|
|
9443
|
+
}[t.outcome], X = o && t.played ? t.selfPoints !== null ? t.selfPoints : Ka(t.selfPrediction, t.result) : null, F = o && t.played ? t.points ?? 0 : null, A = t.played && X != null && F != null && X > F, E = t.played && X != null && F != null && F > X;
|
|
9444
9444
|
return /* @__PURE__ */ p(
|
|
9445
9445
|
r,
|
|
9446
9446
|
{
|
|
@@ -9739,7 +9739,7 @@ function Za({
|
|
|
9739
9739
|
}
|
|
9740
9740
|
),
|
|
9741
9741
|
t.prediction ? /* @__PURE__ */ e(
|
|
9742
|
-
|
|
9742
|
+
qa,
|
|
9743
9743
|
{
|
|
9744
9744
|
home: t.prediction.home,
|
|
9745
9745
|
away: t.prediction.away,
|
|
@@ -9803,7 +9803,7 @@ function Za({
|
|
|
9803
9803
|
}
|
|
9804
9804
|
),
|
|
9805
9805
|
t.outcome === "pending" && /* @__PURE__ */ e(
|
|
9806
|
-
|
|
9806
|
+
Rn,
|
|
9807
9807
|
{
|
|
9808
9808
|
sx: { fontSize: y ? 13 : 10, color: w }
|
|
9809
9809
|
}
|
|
@@ -10000,7 +10000,7 @@ function Za({
|
|
|
10000
10000
|
}
|
|
10001
10001
|
);
|
|
10002
10002
|
}
|
|
10003
|
-
function
|
|
10003
|
+
function es(t) {
|
|
10004
10004
|
const o = Date.now(), a = t.map((n) => {
|
|
10005
10005
|
const s = n.matches.map((d) => d.kickoffIso ? new Date(d.kickoffIso).getTime() : null).filter((d) => d !== null);
|
|
10006
10006
|
return {
|
|
@@ -10013,7 +10013,7 @@ function Qa(t) {
|
|
|
10013
10013
|
const c = a.filter((n) => n.min > o).sort((n, s) => n.min - s.min);
|
|
10014
10014
|
return c.length > 0 ? c[0].round : t[0].round;
|
|
10015
10015
|
}
|
|
10016
|
-
function
|
|
10016
|
+
function ts({
|
|
10017
10017
|
groups: t,
|
|
10018
10018
|
loading: o,
|
|
10019
10019
|
selfName: a,
|
|
@@ -10053,7 +10053,7 @@ function es({
|
|
|
10053
10053
|
const T = R.current === 0;
|
|
10054
10054
|
if (R.current = t.length, t.length !== 0)
|
|
10055
10055
|
if (T)
|
|
10056
|
-
z(/* @__PURE__ */ new Set([
|
|
10056
|
+
z(/* @__PURE__ */ new Set([es(t)]));
|
|
10057
10057
|
else {
|
|
10058
10058
|
const W = t[0].round;
|
|
10059
10059
|
z(
|
|
@@ -10259,7 +10259,7 @@ function es({
|
|
|
10259
10259
|
},
|
|
10260
10260
|
children: [
|
|
10261
10261
|
/* @__PURE__ */ e(
|
|
10262
|
-
|
|
10262
|
+
Za,
|
|
10263
10263
|
{
|
|
10264
10264
|
label: T.label,
|
|
10265
10265
|
matches: T.matches,
|
|
@@ -10290,8 +10290,8 @@ function es({
|
|
|
10290
10290
|
compareTooltip: I("topX.userPredictions.compareWith")
|
|
10291
10291
|
}
|
|
10292
10292
|
),
|
|
10293
|
-
/* @__PURE__ */ e(
|
|
10294
|
-
|
|
10293
|
+
/* @__PURE__ */ e(zn, { initial: !1, children: W && /* @__PURE__ */ e(
|
|
10294
|
+
$n.div,
|
|
10295
10295
|
{
|
|
10296
10296
|
initial: { height: 0, opacity: 0 },
|
|
10297
10297
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -10304,7 +10304,7 @@ function es({
|
|
|
10304
10304
|
children: T.matches.map((B) => {
|
|
10305
10305
|
var U;
|
|
10306
10306
|
return /* @__PURE__ */ e(
|
|
10307
|
-
|
|
10307
|
+
Qa,
|
|
10308
10308
|
{
|
|
10309
10309
|
match: B,
|
|
10310
10310
|
compareMode: !w && X.has(T.round),
|
|
@@ -10383,7 +10383,7 @@ function br({ name: t, avatarUrl: o, size: a, ring: l }) {
|
|
|
10383
10383
|
}
|
|
10384
10384
|
);
|
|
10385
10385
|
}
|
|
10386
|
-
const
|
|
10386
|
+
const os = ({
|
|
10387
10387
|
h2h: t,
|
|
10388
10388
|
selfName: o,
|
|
10389
10389
|
selfAvatar: a,
|
|
@@ -10577,7 +10577,7 @@ const ts = ({
|
|
|
10577
10577
|
]
|
|
10578
10578
|
}
|
|
10579
10579
|
);
|
|
10580
|
-
},
|
|
10580
|
+
}, Or = (t, o) => {
|
|
10581
10581
|
const [a, l] = P(null), [c, n] = P(!0), [s, d] = P(null);
|
|
10582
10582
|
return me(() => {
|
|
10583
10583
|
!t || !o || (n(!0), d(null), o.loyalty.getTemplateById(t, !0).then((i) => {
|
|
@@ -10609,17 +10609,17 @@ const ts = ({
|
|
|
10609
10609
|
}));
|
|
10610
10610
|
}, [t, o]), { template: a, loading: c, error: s };
|
|
10611
10611
|
};
|
|
10612
|
-
function
|
|
10612
|
+
function jr(t) {
|
|
10613
10613
|
if (!t) return null;
|
|
10614
10614
|
const a = String(t).split(":");
|
|
10615
10615
|
if (a.length !== 2) return null;
|
|
10616
10616
|
const l = parseInt(a[0] ?? "0", 10), c = parseInt(a[1] ?? "0", 10);
|
|
10617
10617
|
return isNaN(l) || isNaN(c) ? null : { home: l, away: c };
|
|
10618
10618
|
}
|
|
10619
|
-
function
|
|
10619
|
+
function Vr(t) {
|
|
10620
10620
|
return t === "CORRECT" ? "correct" : t === "PARTIALLY_CORRECT" ? "partial" : t === "INCORRECT" ? "incorrect" : "pending";
|
|
10621
10621
|
}
|
|
10622
|
-
function
|
|
10622
|
+
function rs(t, o) {
|
|
10623
10623
|
if (!t) return { kickoff: "", dateLabel: "" };
|
|
10624
10624
|
try {
|
|
10625
10625
|
const a = new Date(t), l = a.toLocaleTimeString(o, {
|
|
@@ -10635,7 +10635,7 @@ function os(t, o) {
|
|
|
10635
10635
|
return { kickoff: "", dateLabel: "" };
|
|
10636
10636
|
}
|
|
10637
10637
|
}
|
|
10638
|
-
function
|
|
10638
|
+
function _r(t) {
|
|
10639
10639
|
var a, l;
|
|
10640
10640
|
if (!((a = t == null ? void 0 : t.fixtures) != null && a.length)) return 0;
|
|
10641
10641
|
let o = 1 / 0;
|
|
@@ -10645,15 +10645,15 @@ function Yr(t) {
|
|
|
10645
10645
|
}
|
|
10646
10646
|
return Number.isFinite(o) ? o : 0;
|
|
10647
10647
|
}
|
|
10648
|
-
function
|
|
10648
|
+
function ns(t, o, a, l) {
|
|
10649
10649
|
const c = [];
|
|
10650
10650
|
return t.forEach((n) => {
|
|
10651
10651
|
var u, x;
|
|
10652
10652
|
const s = ((u = n.predictionModel) == null ? void 0 : u.fixtures) ?? [], d = ((x = n.predictionModel) == null ? void 0 : x.gameInstanceId) ?? null, i = d ? a.get(d) ?? null : null, f = (i == null ? void 0 : i.title) || d || "—";
|
|
10653
|
-
let g =
|
|
10653
|
+
let g = _r(i);
|
|
10654
10654
|
g === 0 && d && (g = String(d).split("").reduce((m, h) => m * 31 + h.charCodeAt(0) >>> 0, 0)), s.forEach((m) => {
|
|
10655
10655
|
var X, F, A, E, R, T, W, B, U, H, N, j, M, V, Z, q, le, ne, D, te, pe, se, ge, ce, we, Ve, Xe;
|
|
10656
|
-
const h = m.matchId ?? ((X = m.matchModel) == null ? void 0 : X.id) ?? String(Math.random()), b = `${n.predictionId}::${h}`, v =
|
|
10656
|
+
const h = m.matchId ?? ((X = m.matchModel) == null ? void 0 : X.id) ?? String(Math.random()), b = `${n.predictionId}::${h}`, v = jr((F = m.prediction) == null ? void 0 : F.value), y = Vr((A = m.result) == null ? void 0 : A.outcome), C = y !== "pending", L = ((T = (R = (E = m.matchModel) == null ? void 0 : E.scores) == null ? void 0 : R.ftScore) == null ? void 0 : T.homeGoals) ?? null, k = ((U = (B = (W = m.matchModel) == null ? void 0 : W.scores) == null ? void 0 : B.ftScore) == null ? void 0 : U.awayGoals) ?? null, I = C && L != null && k != null ? { home: L, away: k } : null, w = ((H = m.matchModel) == null ? void 0 : H.kickoffAt) ?? null, { kickoff: $, dateLabel: z } = rs(w, l);
|
|
10657
10657
|
c.push({
|
|
10658
10658
|
id: b,
|
|
10659
10659
|
matchId: h,
|
|
@@ -10684,22 +10684,22 @@ function rs(t, o, a, l) {
|
|
|
10684
10684
|
});
|
|
10685
10685
|
}), c;
|
|
10686
10686
|
}
|
|
10687
|
-
function
|
|
10687
|
+
function is(t) {
|
|
10688
10688
|
const o = /* @__PURE__ */ new Map();
|
|
10689
10689
|
return t.forEach((a) => {
|
|
10690
10690
|
var c;
|
|
10691
10691
|
(((c = a.predictionModel) == null ? void 0 : c.fixtures) ?? []).forEach((n) => {
|
|
10692
10692
|
var i, f, g, u;
|
|
10693
|
-
const s = n.matchId ?? ((i = n.matchModel) == null ? void 0 : i.id), d =
|
|
10693
|
+
const s = n.matchId ?? ((i = n.matchModel) == null ? void 0 : i.id), d = jr((f = n.prediction) == null ? void 0 : f.value);
|
|
10694
10694
|
s && d && o.set(s, {
|
|
10695
10695
|
...d,
|
|
10696
10696
|
points: ((g = n.result) == null ? void 0 : g.points) ?? null,
|
|
10697
|
-
outcome:
|
|
10697
|
+
outcome: Vr((u = n.result) == null ? void 0 : u.outcome)
|
|
10698
10698
|
});
|
|
10699
10699
|
});
|
|
10700
10700
|
}), o;
|
|
10701
10701
|
}
|
|
10702
|
-
function
|
|
10702
|
+
function as(t) {
|
|
10703
10703
|
const o = /* @__PURE__ */ new Map();
|
|
10704
10704
|
return t.forEach((a) => {
|
|
10705
10705
|
if (!a.played) return;
|
|
@@ -10710,7 +10710,7 @@ function is(t) {
|
|
|
10710
10710
|
correct: 0,
|
|
10711
10711
|
partial: 0,
|
|
10712
10712
|
incorrect: 0
|
|
10713
|
-
}, c = a.points != null ? a.points : a.prediction && a.result ?
|
|
10713
|
+
}, c = a.points != null ? a.points : a.prediction && a.result ? ds(a.prediction, a.result) : 0;
|
|
10714
10714
|
o.set(a.round, {
|
|
10715
10715
|
...l,
|
|
10716
10716
|
pts: l.pts + c,
|
|
@@ -10720,8 +10720,8 @@ function is(t) {
|
|
|
10720
10720
|
});
|
|
10721
10721
|
}), [...o.values()].sort((a, l) => a.round - l.round);
|
|
10722
10722
|
}
|
|
10723
|
-
function
|
|
10724
|
-
const o =
|
|
10723
|
+
function ss(t) {
|
|
10724
|
+
const o = as(t), a = o.reduce(
|
|
10725
10725
|
(u, x) => ({
|
|
10726
10726
|
correct: u.correct + x.correct,
|
|
10727
10727
|
partial: u.partial + x.partial,
|
|
@@ -10745,7 +10745,7 @@ function as(t) {
|
|
|
10745
10745
|
avgPts: g
|
|
10746
10746
|
};
|
|
10747
10747
|
}
|
|
10748
|
-
function
|
|
10748
|
+
function ls(t) {
|
|
10749
10749
|
const o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
10750
10750
|
t.forEach((s) => {
|
|
10751
10751
|
if (!s.played) return;
|
|
@@ -10758,7 +10758,7 @@ function ss(t) {
|
|
|
10758
10758
|
s > i ? l++ : i > s ? c++ : n++;
|
|
10759
10759
|
}), { selfBetter: l, theyBetter: c, tied: n };
|
|
10760
10760
|
}
|
|
10761
|
-
function
|
|
10761
|
+
function cs(t) {
|
|
10762
10762
|
const o = t.filter(
|
|
10763
10763
|
(h) => h.played && h.selfPrediction != null && h.selfOutcome != null && h.selfOutcome !== "pending"
|
|
10764
10764
|
), a = o.filter((h) => h.selfOutcome === "correct").length, l = o.filter((h) => h.selfOutcome === "partial").length, c = o.length, n = c > 0 ? Math.round((a + l * 0.4) / c * 100) : 0, s = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
@@ -10780,12 +10780,12 @@ function ls(t) {
|
|
|
10780
10780
|
const g = s.size > 0 ? Math.max(...s.values()) : 0, u = o.reduce((h, b) => h + (b.selfPoints ?? 0), 0), x = o.length > 0 ? u / o.length : 0, m = t.filter((h) => h.selfPrediction != null).length;
|
|
10781
10781
|
return { accuracy: n, streak: f, bestRoundPts: g, avgPts: x, total: m };
|
|
10782
10782
|
}
|
|
10783
|
-
function
|
|
10783
|
+
function ds(t, o) {
|
|
10784
10784
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
10785
10785
|
const a = (l, c) => l > c ? "H" : l < c ? "A" : "D";
|
|
10786
10786
|
return a(t.home, t.away) === a(o.home, o.away) ? 2 : 0;
|
|
10787
10787
|
}
|
|
10788
|
-
function
|
|
10788
|
+
function ps(t, o = 900) {
|
|
10789
10789
|
const [a, l] = P(0);
|
|
10790
10790
|
return me(() => {
|
|
10791
10791
|
let c, n = null;
|
|
@@ -10797,7 +10797,7 @@ function ds(t, o = 900) {
|
|
|
10797
10797
|
return c = requestAnimationFrame(s), () => cancelAnimationFrame(c);
|
|
10798
10798
|
}, [t, o]), a;
|
|
10799
10799
|
}
|
|
10800
|
-
function
|
|
10800
|
+
function us({
|
|
10801
10801
|
name: t,
|
|
10802
10802
|
avatarUrl: o,
|
|
10803
10803
|
size: a
|
|
@@ -10836,7 +10836,7 @@ function ps({
|
|
|
10836
10836
|
}
|
|
10837
10837
|
);
|
|
10838
10838
|
}
|
|
10839
|
-
const
|
|
10839
|
+
const ms = ({
|
|
10840
10840
|
open: t,
|
|
10841
10841
|
onClose: o,
|
|
10842
10842
|
leagueId: a,
|
|
@@ -10854,7 +10854,7 @@ const us = ({
|
|
|
10854
10854
|
currentUserPoints: h = 0
|
|
10855
10855
|
}) => {
|
|
10856
10856
|
var Ge, st, it, Nt, Ht, Ot, jt, Vt;
|
|
10857
|
-
const { t: b } = We("common"), v = be(), y = xe(), C = ve(), L = ke(), k = Ir(), { shadowRootElement: I, language: w } = Lt(zt), { sdk: $ } = ht(), { template: z } =
|
|
10857
|
+
const { t: b } = We("common"), v = be(), y = xe(), C = ve(), L = ke(), k = Ir(), { shadowRootElement: I, language: w } = Lt(zt), { sdk: $ } = ht(), { template: z } = Or(l, $), { games: X } = Ho(
|
|
10858
10858
|
$,
|
|
10859
10859
|
z == null ? void 0 : z.gameIds,
|
|
10860
10860
|
!!z
|
|
@@ -10862,7 +10862,7 @@ const us = ({
|
|
|
10862
10862
|
const oe = /* @__PURE__ */ new Map();
|
|
10863
10863
|
return X.forEach((ye) => oe.set(ye.id, ye)), oe;
|
|
10864
10864
|
}, [X]), A = ((st = (Ge = v.palette) == null ? void 0 : Ge.primary) == null ? void 0 : st.plainColor) ?? "#1A77D2", E = ((Nt = (it = v.palette) == null ? void 0 : it.success) == null ? void 0 : Nt.plainColor) ?? "#4CAF50", R = ((Ot = (Ht = v.palette) == null ? void 0 : Ht.warning) == null ? void 0 : Ot.plainColor) ?? "#DC6803", T = ((Vt = (jt = v.palette) == null ? void 0 : jt.danger) == null ? void 0 : Vt.plainColor) ?? "#F44336", W = v.textPrimary ?? "#212121", B = v.textSecondary ?? "#757575", U = v.textTertiary ?? v.textSecondary ?? "#9E9E9E", H = v.surface ?? "#FFFFFF", N = v.surfaceVariant ?? "#F5F5F5", j = v.outlineEnabledBorder ?? "#E0E0E0", M = `${j}88`, [V, Z] = P(/* @__PURE__ */ new Map()), [q, le] = P([]), [ne, D] = P(!1), [te, pe] = P("all"), [se, ge] = P("profile"), [ce, we] = P(!1), [Ve, Xe] = P(0), [Ue, _e] = P(!1), [re, He] = P(!1), Te = je(null), Be = je(null), De = Ce(
|
|
10865
|
-
() =>
|
|
10865
|
+
() => ns(
|
|
10866
10866
|
q,
|
|
10867
10867
|
V,
|
|
10868
10868
|
F,
|
|
@@ -10872,7 +10872,7 @@ const us = ({
|
|
|
10872
10872
|
), $e = u != null && u === n, ct = Ce(
|
|
10873
10873
|
() => De.filter((oe) => !oe.played).map((oe) => oe.matchId),
|
|
10874
10874
|
[De]
|
|
10875
|
-
), { oddsMap: Qe } =
|
|
10875
|
+
), { oddsMap: Qe } = Nr({ sdk: $, matchIds: ct });
|
|
10876
10876
|
me(() => {
|
|
10877
10877
|
if (t) {
|
|
10878
10878
|
if (_e(!1), Xe(0), k) {
|
|
@@ -10951,7 +10951,7 @@ const us = ({
|
|
|
10951
10951
|
Je.filter((nt) => nt.profileId === n)
|
|
10952
10952
|
), ut = !$e && u ? Re(
|
|
10953
10953
|
Je.filter((nt) => nt.profileId === u)
|
|
10954
|
-
) : dt, et =
|
|
10954
|
+
) : dt, et = is(ut);
|
|
10955
10955
|
le(dt), Z(et);
|
|
10956
10956
|
} finally {
|
|
10957
10957
|
D(!1);
|
|
@@ -10964,14 +10964,14 @@ const us = ({
|
|
|
10964
10964
|
var nt, gt;
|
|
10965
10965
|
const Re = ((nt = ye.predictionModel) == null ? void 0 : nt.gameInstanceId) ?? null;
|
|
10966
10966
|
if (!Re) return;
|
|
10967
|
-
const at = F.get(Re) ?? null, Je = (at == null ? void 0 : at.title) || Re, dt = ((gt = ye.predictionModel) == null ? void 0 : gt.points) ?? 0, ut =
|
|
10967
|
+
const at = F.get(Re) ?? null, Je = (at == null ? void 0 : at.title) || Re, dt = ((gt = ye.predictionModel) == null ? void 0 : gt.points) ?? 0, ut = _r(at), et = oe.get(Re);
|
|
10968
10968
|
oe.set(Re, {
|
|
10969
10969
|
points: ((et == null ? void 0 : et.points) ?? 0) + dt,
|
|
10970
10970
|
label: Je,
|
|
10971
10971
|
sortKey: (et == null ? void 0 : et.sortKey) ?? ut
|
|
10972
10972
|
});
|
|
10973
10973
|
}), [...oe.values()].sort((ye, Re) => ye.sortKey - Re.sortKey).slice(-5).map(({ points: ye, label: Re }) => ({ points: ye, label: Re }));
|
|
10974
|
-
}, [q, F]), ie = Ce(() =>
|
|
10974
|
+
}, [q, F]), ie = Ce(() => ss(De), [De]), Le = Ce(() => $e || V.size === 0 ? null : ls(De), [De, V, $e]), he = Ce(() => $e ? null : cs(De), [De, $e]), _ = Ce(() => [...De].filter((oe) => oe.played).slice(-5), [De]), O = Ce(() => $e ? [] : _.map((oe) => {
|
|
10975
10975
|
const ye = oe.selfPrediction;
|
|
10976
10976
|
return !ye || !oe.result ? {
|
|
10977
10977
|
outcome: "pending",
|
|
@@ -11019,7 +11019,7 @@ const us = ({
|
|
|
11019
11019
|
(at, Je) => (Je.kickoffIso ?? "") > (at.kickoffIso ?? "") ? 1 : (Je.kickoffIso ?? "") < (at.kickoffIso ?? "") ? -1 : 0
|
|
11020
11020
|
)
|
|
11021
11021
|
}));
|
|
11022
|
-
}, [ae]), Ke =
|
|
11022
|
+
}, [ae]), Ke = ps(f, 1100), qe = [
|
|
11023
11023
|
{ id: "all", label: b("topX.userPredictions.allFilter") },
|
|
11024
11024
|
{ id: "correct", label: b("topX.userPredictions.correctFilter") },
|
|
11025
11025
|
{ id: "partial", label: b("topX.userPredictions.partialFilter") },
|
|
@@ -11117,7 +11117,7 @@ const us = ({
|
|
|
11117
11117
|
},
|
|
11118
11118
|
children: [
|
|
11119
11119
|
/* @__PURE__ */ e(
|
|
11120
|
-
|
|
11120
|
+
us,
|
|
11121
11121
|
{
|
|
11122
11122
|
name: s,
|
|
11123
11123
|
id: n,
|
|
@@ -11320,7 +11320,7 @@ const us = ({
|
|
|
11320
11320
|
}
|
|
11321
11321
|
),
|
|
11322
11322
|
/* @__PURE__ */ e(r, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
11323
|
-
|
|
11323
|
+
Va,
|
|
11324
11324
|
{
|
|
11325
11325
|
rounds: J,
|
|
11326
11326
|
transparent: !0,
|
|
@@ -11331,7 +11331,7 @@ const us = ({
|
|
|
11331
11331
|
}
|
|
11332
11332
|
),
|
|
11333
11333
|
/* @__PURE__ */ e(r, { sx: { mx: y.md }, children: /* @__PURE__ */ e(
|
|
11334
|
-
|
|
11334
|
+
Ya,
|
|
11335
11335
|
{
|
|
11336
11336
|
loading: ne,
|
|
11337
11337
|
formMatches: _,
|
|
@@ -11357,7 +11357,7 @@ const us = ({
|
|
|
11357
11357
|
}
|
|
11358
11358
|
) }),
|
|
11359
11359
|
!$e && Le && /* @__PURE__ */ e(
|
|
11360
|
-
|
|
11360
|
+
os,
|
|
11361
11361
|
{
|
|
11362
11362
|
h2h: Le,
|
|
11363
11363
|
selfName: x ?? b("topX.userPredictions.you"),
|
|
@@ -11370,7 +11370,7 @@ const us = ({
|
|
|
11370
11370
|
)
|
|
11371
11371
|
] }),
|
|
11372
11372
|
se === "statistics" && /* @__PURE__ */ e(
|
|
11373
|
-
|
|
11373
|
+
Ga,
|
|
11374
11374
|
{
|
|
11375
11375
|
loading: ne,
|
|
11376
11376
|
accuracy: ie.accuracy,
|
|
@@ -11400,7 +11400,7 @@ const us = ({
|
|
|
11400
11400
|
),
|
|
11401
11401
|
se === "predictions" && /* @__PURE__ */ p(Ee, { children: [
|
|
11402
11402
|
/* @__PURE__ */ e(
|
|
11403
|
-
|
|
11403
|
+
Ua,
|
|
11404
11404
|
{
|
|
11405
11405
|
filters: qe,
|
|
11406
11406
|
counts: Y,
|
|
@@ -11421,7 +11421,7 @@ const us = ({
|
|
|
11421
11421
|
}
|
|
11422
11422
|
),
|
|
11423
11423
|
/* @__PURE__ */ e(
|
|
11424
|
-
|
|
11424
|
+
ts,
|
|
11425
11425
|
{
|
|
11426
11426
|
groups: Ye,
|
|
11427
11427
|
loading: ne,
|
|
@@ -11561,7 +11561,7 @@ const us = ({
|
|
|
11561
11561
|
)
|
|
11562
11562
|
}
|
|
11563
11563
|
);
|
|
11564
|
-
},
|
|
11564
|
+
}, fs = ({
|
|
11565
11565
|
leagueId: t,
|
|
11566
11566
|
templateId: o,
|
|
11567
11567
|
leagueName: a,
|
|
@@ -12098,7 +12098,7 @@ const us = ({
|
|
|
12098
12098
|
] });
|
|
12099
12099
|
})(),
|
|
12100
12100
|
/* @__PURE__ */ e(
|
|
12101
|
-
|
|
12101
|
+
ms,
|
|
12102
12102
|
{
|
|
12103
12103
|
open: z !== null,
|
|
12104
12104
|
onClose: () => X(null),
|
|
@@ -12118,7 +12118,7 @@ const us = ({
|
|
|
12118
12118
|
}
|
|
12119
12119
|
)
|
|
12120
12120
|
] });
|
|
12121
|
-
},
|
|
12121
|
+
}, xs = ({
|
|
12122
12122
|
league: t,
|
|
12123
12123
|
leagueDetail: o,
|
|
12124
12124
|
loading: a,
|
|
@@ -12219,7 +12219,7 @@ const us = ({
|
|
|
12219
12219
|
},
|
|
12220
12220
|
"&:active": { transform: "scale(0.92)" }
|
|
12221
12221
|
},
|
|
12222
|
-
children: /* @__PURE__ */ e(
|
|
12222
|
+
children: /* @__PURE__ */ e(Fn, { sx: { fontSize: 15 } })
|
|
12223
12223
|
}
|
|
12224
12224
|
),
|
|
12225
12225
|
/* @__PURE__ */ e(
|
|
@@ -12269,7 +12269,7 @@ const us = ({
|
|
|
12269
12269
|
"&:hover": { backgroundColor: L },
|
|
12270
12270
|
"&:active": { transform: "scale(0.92)" }
|
|
12271
12271
|
},
|
|
12272
|
-
children: /* @__PURE__ */ e(
|
|
12272
|
+
children: /* @__PURE__ */ e(En, { sx: { fontSize: 15 } })
|
|
12273
12273
|
}
|
|
12274
12274
|
)
|
|
12275
12275
|
}
|
|
@@ -12540,7 +12540,7 @@ const us = ({
|
|
|
12540
12540
|
py: "5px"
|
|
12541
12541
|
},
|
|
12542
12542
|
children: [
|
|
12543
|
-
/* @__PURE__ */ e(
|
|
12543
|
+
/* @__PURE__ */ e(Pn, { sx: { fontSize: 12, color: k } }),
|
|
12544
12544
|
/* @__PURE__ */ p(
|
|
12545
12545
|
S,
|
|
12546
12546
|
{
|
|
@@ -12585,7 +12585,7 @@ const us = ({
|
|
|
12585
12585
|
},
|
|
12586
12586
|
children: [
|
|
12587
12587
|
/* @__PURE__ */ e(
|
|
12588
|
-
|
|
12588
|
+
Wn,
|
|
12589
12589
|
{
|
|
12590
12590
|
sx: { fontSize: 14, color: y, flexShrink: 0, opacity: 0.7 }
|
|
12591
12591
|
}
|
|
@@ -12657,7 +12657,7 @@ const us = ({
|
|
|
12657
12657
|
borderColor: I ? k : y
|
|
12658
12658
|
}
|
|
12659
12659
|
},
|
|
12660
|
-
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(
|
|
12660
|
+
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(Xn, { sx: { fontSize: 15 } })
|
|
12661
12661
|
}
|
|
12662
12662
|
)
|
|
12663
12663
|
]
|
|
@@ -12666,7 +12666,7 @@ const us = ({
|
|
|
12666
12666
|
]
|
|
12667
12667
|
}
|
|
12668
12668
|
);
|
|
12669
|
-
},
|
|
12669
|
+
}, hs = Pe.memo(xs), gs = ({
|
|
12670
12670
|
sdk: t,
|
|
12671
12671
|
leagueId: o,
|
|
12672
12672
|
existingMemberIds: a,
|
|
@@ -12756,7 +12756,7 @@ const us = ({
|
|
|
12756
12756
|
borderBottom: `1px solid ${i.outlineEnabledBorder}`
|
|
12757
12757
|
},
|
|
12758
12758
|
children: [
|
|
12759
|
-
/* @__PURE__ */ e(
|
|
12759
|
+
/* @__PURE__ */ e(An, { sx: { fontSize: 16, color: x } }),
|
|
12760
12760
|
/* @__PURE__ */ e(
|
|
12761
12761
|
S,
|
|
12762
12762
|
{
|
|
@@ -12885,7 +12885,7 @@ const us = ({
|
|
|
12885
12885
|
ml: f["3xs"],
|
|
12886
12886
|
flexShrink: 0
|
|
12887
12887
|
},
|
|
12888
|
-
children: /* @__PURE__ */ e(
|
|
12888
|
+
children: /* @__PURE__ */ e(Xr, { sx: { fontSize: 11 } })
|
|
12889
12889
|
}
|
|
12890
12890
|
)
|
|
12891
12891
|
]
|
|
@@ -13174,7 +13174,7 @@ const us = ({
|
|
|
13174
13174
|
/* @__PURE__ */ e(
|
|
13175
13175
|
Ne,
|
|
13176
13176
|
{
|
|
13177
|
-
startDecorator: L ? void 0 : /* @__PURE__ */ e(
|
|
13177
|
+
startDecorator: L ? void 0 : /* @__PURE__ */ e(Bn, { sx: { fontSize: 14 } }),
|
|
13178
13178
|
loading: L,
|
|
13179
13179
|
disabled: y.length === 0,
|
|
13180
13180
|
onClick: j,
|
|
@@ -13199,7 +13199,7 @@ const us = ({
|
|
|
13199
13199
|
]
|
|
13200
13200
|
}
|
|
13201
13201
|
) : null;
|
|
13202
|
-
},
|
|
13202
|
+
}, ys = Pe.memo(gs), bs = ({ checked: t, onChange: o, primaryColor: a }) => /* @__PURE__ */ e(
|
|
13203
13203
|
r,
|
|
13204
13204
|
{
|
|
13205
13205
|
component: "button",
|
|
@@ -13239,7 +13239,7 @@ const us = ({
|
|
|
13239
13239
|
}
|
|
13240
13240
|
)
|
|
13241
13241
|
}
|
|
13242
|
-
),
|
|
13242
|
+
), Ss = ({
|
|
13243
13243
|
open: t,
|
|
13244
13244
|
onClose: o,
|
|
13245
13245
|
sdk: a,
|
|
@@ -13365,7 +13365,7 @@ const us = ({
|
|
|
13365
13365
|
}
|
|
13366
13366
|
),
|
|
13367
13367
|
/* @__PURE__ */ e(
|
|
13368
|
-
|
|
13368
|
+
Ar,
|
|
13369
13369
|
{
|
|
13370
13370
|
value: y,
|
|
13371
13371
|
onChange: (M) => C(M.target.value),
|
|
@@ -13473,7 +13473,7 @@ const us = ({
|
|
|
13473
13473
|
)
|
|
13474
13474
|
] }),
|
|
13475
13475
|
/* @__PURE__ */ e(
|
|
13476
|
-
|
|
13476
|
+
bs,
|
|
13477
13477
|
{
|
|
13478
13478
|
checked: I,
|
|
13479
13479
|
onChange: w,
|
|
@@ -13537,7 +13537,7 @@ const us = ({
|
|
|
13537
13537
|
]
|
|
13538
13538
|
}
|
|
13539
13539
|
);
|
|
13540
|
-
},
|
|
13540
|
+
}, Cs = Pe.memo(Ss), vs = ({
|
|
13541
13541
|
open: t,
|
|
13542
13542
|
onClose: o,
|
|
13543
13543
|
sdk: a,
|
|
@@ -13765,7 +13765,7 @@ const us = ({
|
|
|
13765
13765
|
]
|
|
13766
13766
|
}
|
|
13767
13767
|
);
|
|
13768
|
-
},
|
|
13768
|
+
}, ks = Pe.memo(vs), ws = ({
|
|
13769
13769
|
targetId: t,
|
|
13770
13770
|
memberProfiles: o,
|
|
13771
13771
|
sdk: a,
|
|
@@ -13963,13 +13963,13 @@ const us = ({
|
|
|
13963
13963
|
] })
|
|
13964
13964
|
}
|
|
13965
13965
|
);
|
|
13966
|
-
},
|
|
13966
|
+
}, Is = Pe.memo(ws), Ls = (t, o) => {
|
|
13967
13967
|
const a = o.get(t);
|
|
13968
13968
|
return (a == null ? void 0 : a.nickname) ?? (a == null ? void 0 : a.name) ?? t.slice(0, 8);
|
|
13969
|
-
},
|
|
13969
|
+
}, zs = (t) => {
|
|
13970
13970
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
13971
13971
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
13972
|
-
},
|
|
13972
|
+
}, $s = ({
|
|
13973
13973
|
leagueDetail: t,
|
|
13974
13974
|
memberProfiles: o,
|
|
13975
13975
|
loading: a,
|
|
@@ -14052,7 +14052,7 @@ const us = ({
|
|
|
14052
14052
|
rowGap: x.xs
|
|
14053
14053
|
},
|
|
14054
14054
|
children: [
|
|
14055
|
-
/* @__PURE__ */ e(
|
|
14055
|
+
/* @__PURE__ */ e(Dn, { sx: { fontSize: 16, color: b } }),
|
|
14056
14056
|
/* @__PURE__ */ e(
|
|
14057
14057
|
S,
|
|
14058
14058
|
{
|
|
@@ -14138,7 +14138,7 @@ const us = ({
|
|
|
14138
14138
|
))
|
|
14139
14139
|
}
|
|
14140
14140
|
) : /* @__PURE__ */ e(r, { sx: { maxHeight: "380px", overflowY: "auto" }, children: F.length > 0 ? F.map((N, j) => {
|
|
14141
|
-
const M = N === l, V = ((t == null ? void 0 : t.administrators) ?? []).includes(N), Z = o.get(N), q =
|
|
14141
|
+
const M = N === l, V = ((t == null ? void 0 : t.administrators) ?? []).includes(N), Z = o.get(N), q = Ls(N, o), le = zs(q), ne = c && !M;
|
|
14142
14142
|
return /* @__PURE__ */ p(
|
|
14143
14143
|
r,
|
|
14144
14144
|
{
|
|
@@ -14385,7 +14385,7 @@ const us = ({
|
|
|
14385
14385
|
},
|
|
14386
14386
|
p: 0
|
|
14387
14387
|
},
|
|
14388
|
-
children: /* @__PURE__ */ e(
|
|
14388
|
+
children: /* @__PURE__ */ e(Mn, { sx: { fontSize: 15 } })
|
|
14389
14389
|
}
|
|
14390
14390
|
)
|
|
14391
14391
|
]
|
|
@@ -14426,7 +14426,7 @@ const us = ({
|
|
|
14426
14426
|
}
|
|
14427
14427
|
),
|
|
14428
14428
|
/* @__PURE__ */ e(
|
|
14429
|
-
|
|
14429
|
+
Is,
|
|
14430
14430
|
{
|
|
14431
14431
|
targetId: w,
|
|
14432
14432
|
memberProfiles: o,
|
|
@@ -14438,13 +14438,13 @@ const us = ({
|
|
|
14438
14438
|
}
|
|
14439
14439
|
)
|
|
14440
14440
|
] });
|
|
14441
|
-
},
|
|
14441
|
+
}, Rs = Pe.memo($s), Ts = (t, o) => {
|
|
14442
14442
|
const a = o.get(t);
|
|
14443
14443
|
return (a == null ? void 0 : a.nickname) ?? (a == null ? void 0 : a.name) ?? t.slice(0, 8);
|
|
14444
|
-
},
|
|
14444
|
+
}, Fs = (t) => {
|
|
14445
14445
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
14446
14446
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
14447
|
-
},
|
|
14447
|
+
}, Es = ({
|
|
14448
14448
|
pendingInviteIds: t,
|
|
14449
14449
|
memberProfiles: o,
|
|
14450
14450
|
isAdmin: a,
|
|
@@ -14542,7 +14542,7 @@ const us = ({
|
|
|
14542
14542
|
),
|
|
14543
14543
|
t.map(($, z) => {
|
|
14544
14544
|
var R, T, W, B, U, H;
|
|
14545
|
-
const X = h === $, F = o.get($), A =
|
|
14545
|
+
const X = h === $, F = o.get($), A = Ts($, o), E = Fs(A);
|
|
14546
14546
|
return /* @__PURE__ */ p(
|
|
14547
14547
|
r,
|
|
14548
14548
|
{
|
|
@@ -14783,7 +14783,7 @@ const us = ({
|
|
|
14783
14783
|
animation: "spin 0.7s linear infinite"
|
|
14784
14784
|
}
|
|
14785
14785
|
}
|
|
14786
|
-
) : /* @__PURE__ */ e(
|
|
14786
|
+
) : /* @__PURE__ */ e(Nn, { sx: { fontSize: 18, color: m } })
|
|
14787
14787
|
}
|
|
14788
14788
|
)
|
|
14789
14789
|
] })
|
|
@@ -14795,7 +14795,7 @@ const us = ({
|
|
|
14795
14795
|
]
|
|
14796
14796
|
}
|
|
14797
14797
|
);
|
|
14798
|
-
},
|
|
14798
|
+
}, Ps = Pe.memo(Es), Ws = Zr(() => import("./chunks/index-sJ-SFBJM.js")), Xs = ({
|
|
14799
14799
|
league: t,
|
|
14800
14800
|
onBack: o,
|
|
14801
14801
|
onLeagueLeft: a,
|
|
@@ -15018,7 +15018,7 @@ const us = ({
|
|
|
15018
15018
|
},
|
|
15019
15019
|
children: [
|
|
15020
15020
|
/* @__PURE__ */ e(
|
|
15021
|
-
|
|
15021
|
+
Oa,
|
|
15022
15022
|
{
|
|
15023
15023
|
leagues: f ?? [],
|
|
15024
15024
|
activeId: t.id,
|
|
@@ -15028,7 +15028,7 @@ const us = ({
|
|
|
15028
15028
|
}
|
|
15029
15029
|
),
|
|
15030
15030
|
/* @__PURE__ */ e(
|
|
15031
|
-
|
|
15031
|
+
hs,
|
|
15032
15032
|
{
|
|
15033
15033
|
league: t,
|
|
15034
15034
|
leagueDetail: w,
|
|
@@ -15127,7 +15127,7 @@ const us = ({
|
|
|
15127
15127
|
{
|
|
15128
15128
|
size: "sm",
|
|
15129
15129
|
variant: "plain",
|
|
15130
|
-
startDecorator: /* @__PURE__ */ e(
|
|
15130
|
+
startDecorator: /* @__PURE__ */ e(Wr, { sx: { fontSize: 14 } }),
|
|
15131
15131
|
onClick: () => {
|
|
15132
15132
|
W(!1), R(!0);
|
|
15133
15133
|
},
|
|
@@ -15145,7 +15145,7 @@ const us = ({
|
|
|
15145
15145
|
}
|
|
15146
15146
|
),
|
|
15147
15147
|
B === "discussion" && /* @__PURE__ */ e(r, { sx: { p: m.md, backgroundColor: x.surface }, children: /* @__PURE__ */ e(
|
|
15148
|
-
|
|
15148
|
+
Qr,
|
|
15149
15149
|
{
|
|
15150
15150
|
fallback: /* @__PURE__ */ e(
|
|
15151
15151
|
r,
|
|
@@ -15172,7 +15172,7 @@ const us = ({
|
|
|
15172
15172
|
}
|
|
15173
15173
|
),
|
|
15174
15174
|
children: /* @__PURE__ */ e(
|
|
15175
|
-
|
|
15175
|
+
Ws,
|
|
15176
15176
|
{
|
|
15177
15177
|
entityId: t.id,
|
|
15178
15178
|
sdk: v,
|
|
@@ -15186,7 +15186,7 @@ const us = ({
|
|
|
15186
15186
|
) }),
|
|
15187
15187
|
B === "members" && /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: m.sm }, children: [
|
|
15188
15188
|
/* @__PURE__ */ e(
|
|
15189
|
-
|
|
15189
|
+
Rs,
|
|
15190
15190
|
{
|
|
15191
15191
|
leagueDetail: w,
|
|
15192
15192
|
memberProfiles: ne,
|
|
@@ -15201,7 +15201,7 @@ const us = ({
|
|
|
15201
15201
|
}
|
|
15202
15202
|
),
|
|
15203
15203
|
/* @__PURE__ */ e(
|
|
15204
|
-
|
|
15204
|
+
Ps,
|
|
15205
15205
|
{
|
|
15206
15206
|
pendingInviteIds: q,
|
|
15207
15207
|
memberProfiles: ne,
|
|
@@ -15213,7 +15213,7 @@ const us = ({
|
|
|
15213
15213
|
}
|
|
15214
15214
|
),
|
|
15215
15215
|
ot && /* @__PURE__ */ e(
|
|
15216
|
-
|
|
15216
|
+
ys,
|
|
15217
15217
|
{
|
|
15218
15218
|
sdk: v,
|
|
15219
15219
|
leagueId: t.id,
|
|
@@ -15226,7 +15226,7 @@ const us = ({
|
|
|
15226
15226
|
)
|
|
15227
15227
|
] }),
|
|
15228
15228
|
B === "standings" && /* @__PURE__ */ e(
|
|
15229
|
-
|
|
15229
|
+
fs,
|
|
15230
15230
|
{
|
|
15231
15231
|
leagueId: t.id,
|
|
15232
15232
|
templateId: t.templateId,
|
|
@@ -15236,7 +15236,7 @@ const us = ({
|
|
|
15236
15236
|
}
|
|
15237
15237
|
),
|
|
15238
15238
|
/* @__PURE__ */ e(
|
|
15239
|
-
|
|
15239
|
+
Cs,
|
|
15240
15240
|
{
|
|
15241
15241
|
open: te,
|
|
15242
15242
|
onClose: () => pe(!1),
|
|
@@ -15339,7 +15339,7 @@ const us = ({
|
|
|
15339
15339
|
}
|
|
15340
15340
|
),
|
|
15341
15341
|
/* @__PURE__ */ e(
|
|
15342
|
-
|
|
15342
|
+
ks,
|
|
15343
15343
|
{
|
|
15344
15344
|
open: H === "delete",
|
|
15345
15345
|
onClose: () => N(null),
|
|
@@ -15359,13 +15359,13 @@ const us = ({
|
|
|
15359
15359
|
]
|
|
15360
15360
|
}
|
|
15361
15361
|
);
|
|
15362
|
-
},
|
|
15362
|
+
}, As = Pe.memo(Xs), St = 8, $o = () => {
|
|
15363
15363
|
const t = "abcdefghijklmnopqrstuvwxyz0123456789", o = Date.now().toString(36).slice(-3);
|
|
15364
15364
|
return (Array.from(
|
|
15365
15365
|
{ length: 5 },
|
|
15366
15366
|
() => t[Math.floor(Math.random() * t.length)]
|
|
15367
15367
|
).join("") + o).slice(0, 8);
|
|
15368
|
-
},
|
|
15368
|
+
}, Bs = (t) => {
|
|
15369
15369
|
const o = {}, a = t.split(/,\s*/);
|
|
15370
15370
|
for (const l of a) {
|
|
15371
15371
|
const c = l.indexOf(":");
|
|
@@ -15477,7 +15477,7 @@ const us = ({
|
|
|
15477
15477
|
})
|
|
15478
15478
|
}
|
|
15479
15479
|
);
|
|
15480
|
-
},
|
|
15480
|
+
}, Ds = ({
|
|
15481
15481
|
open: t,
|
|
15482
15482
|
onClose: o,
|
|
15483
15483
|
title: a,
|
|
@@ -15594,7 +15594,7 @@ const us = ({
|
|
|
15594
15594
|
children: t
|
|
15595
15595
|
}
|
|
15596
15596
|
) : null;
|
|
15597
|
-
},
|
|
15597
|
+
}, Ms = ({
|
|
15598
15598
|
checked: t,
|
|
15599
15599
|
onChange: o,
|
|
15600
15600
|
primaryColor: a
|
|
@@ -15641,7 +15641,7 @@ const us = ({
|
|
|
15641
15641
|
}
|
|
15642
15642
|
)
|
|
15643
15643
|
}
|
|
15644
|
-
),
|
|
15644
|
+
), Ns = ({
|
|
15645
15645
|
onLeagueCreated: t,
|
|
15646
15646
|
onLeagueJoined: o
|
|
15647
15647
|
}) => {
|
|
@@ -15693,7 +15693,7 @@ const us = ({
|
|
|
15693
15693
|
message: a("topX.privateLeagues.createSuccessMessage") || "Your private league is ready. Share the invitation code with friends."
|
|
15694
15694
|
});
|
|
15695
15695
|
} catch (re) {
|
|
15696
|
-
T(
|
|
15696
|
+
T(Bs(tt(re, d)));
|
|
15697
15697
|
} finally {
|
|
15698
15698
|
F(!1);
|
|
15699
15699
|
}
|
|
@@ -15718,7 +15718,7 @@ const us = ({
|
|
|
15718
15718
|
message: a("topX.privateLeagues.joinSuccessMessage") || `You've successfully joined ${re.leagueModel.name}.`
|
|
15719
15719
|
});
|
|
15720
15720
|
} catch (re) {
|
|
15721
|
-
const { code: He } =
|
|
15721
|
+
const { code: He } = dn(re, d), Te = He >= 400 && He < 500;
|
|
15722
15722
|
B(
|
|
15723
15723
|
Te ? a("topX.privateLeagues.joinErrorInvalidCode") || "The code you entered is incorrect." : tt(re, d)
|
|
15724
15724
|
);
|
|
@@ -15816,7 +15816,7 @@ const us = ({
|
|
|
15816
15816
|
)
|
|
15817
15817
|
] }),
|
|
15818
15818
|
/* @__PURE__ */ e(
|
|
15819
|
-
|
|
15819
|
+
Hn,
|
|
15820
15820
|
{
|
|
15821
15821
|
sx: { fontSize: 18, color: l.textSecondary, flexShrink: 0 }
|
|
15822
15822
|
}
|
|
@@ -16067,7 +16067,7 @@ const us = ({
|
|
|
16067
16067
|
] })
|
|
16068
16068
|
),
|
|
16069
16069
|
/* @__PURE__ */ p(
|
|
16070
|
-
|
|
16070
|
+
Ds,
|
|
16071
16071
|
{
|
|
16072
16072
|
open: f,
|
|
16073
16073
|
onClose: () => !X && g(!1),
|
|
@@ -16135,7 +16135,7 @@ const us = ({
|
|
|
16135
16135
|
" *"
|
|
16136
16136
|
] }),
|
|
16137
16137
|
/* @__PURE__ */ e(
|
|
16138
|
-
|
|
16138
|
+
Ar,
|
|
16139
16139
|
{
|
|
16140
16140
|
value: m,
|
|
16141
16141
|
onChange: (re) => {
|
|
@@ -16209,7 +16209,7 @@ const us = ({
|
|
|
16209
16209
|
transition: "all 0.15s",
|
|
16210
16210
|
"&:hover": { color: j, borderColor: j }
|
|
16211
16211
|
},
|
|
16212
|
-
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(
|
|
16212
|
+
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(On, { sx: { fontSize: 16 } })
|
|
16213
16213
|
}
|
|
16214
16214
|
),
|
|
16215
16215
|
/* @__PURE__ */ e(
|
|
@@ -16237,7 +16237,7 @@ const us = ({
|
|
|
16237
16237
|
"&:hover": { color: j, borderColor: j },
|
|
16238
16238
|
transition: "all 0.15s"
|
|
16239
16239
|
},
|
|
16240
|
-
children: /* @__PURE__ */ e(
|
|
16240
|
+
children: /* @__PURE__ */ e(Wr, { sx: { fontSize: 16 } })
|
|
16241
16241
|
}
|
|
16242
16242
|
)
|
|
16243
16243
|
] }),
|
|
@@ -16302,7 +16302,7 @@ const us = ({
|
|
|
16302
16302
|
)
|
|
16303
16303
|
] }),
|
|
16304
16304
|
/* @__PURE__ */ e(
|
|
16305
|
-
|
|
16305
|
+
Ms,
|
|
16306
16306
|
{
|
|
16307
16307
|
checked: b,
|
|
16308
16308
|
onChange: v,
|
|
@@ -16389,7 +16389,7 @@ const us = ({
|
|
|
16389
16389
|
}
|
|
16390
16390
|
)
|
|
16391
16391
|
] });
|
|
16392
|
-
},
|
|
16392
|
+
}, Hs = ({
|
|
16393
16393
|
open: t,
|
|
16394
16394
|
onClose: o,
|
|
16395
16395
|
title: a,
|
|
@@ -16505,7 +16505,7 @@ const us = ({
|
|
|
16505
16505
|
)
|
|
16506
16506
|
}
|
|
16507
16507
|
) : null;
|
|
16508
|
-
},
|
|
16508
|
+
}, Os = (t) => {
|
|
16509
16509
|
var ot, pt, K, Q, J, ie, Le, he;
|
|
16510
16510
|
const { t: o } = We("common"), a = be(), l = xe(), c = ve(), n = ke(), { sdk: s, userIsLoggedIn: d, signInCTA: i, entityId: f } = ht(), g = ((pt = (ot = a.palette) == null ? void 0 : ot.primary) == null ? void 0 : pt.plainColor) ?? "#1A77D2", u = ((Q = (K = a.palette) == null ? void 0 : K.primary) == null ? void 0 : Q.onPrimary) ?? "#fff", x = (ie = (J = a.palette) == null ? void 0 : J.primary) == null ? void 0 : ie.primaryButtonGradient, m = ((he = (Le = a.palette) == null ? void 0 : Le.danger) == null ? void 0 : he.plainColor) ?? "#F44336", [h, b] = P([]), [v, y] = P(!0), [C, L] = P(null), [k, I] = P(
|
|
16511
16511
|
null
|
|
@@ -16772,7 +16772,7 @@ const us = ({
|
|
|
16772
16772
|
}
|
|
16773
16773
|
) : /* @__PURE__ */ e(S, { level: "body-sm", sx: { fontFamily: n.primary, fontSize: "0.875em", color: a.textSecondary }, children: o("topX.privateLeagues.signInPrompt") }), O = [
|
|
16774
16774
|
{
|
|
16775
|
-
icon: /* @__PURE__ */ e(
|
|
16775
|
+
icon: /* @__PURE__ */ e(jn, { sx: { fontSize: 24, color: g } }),
|
|
16776
16776
|
title: o("topX.privateLeagues.featureCreateTitle"),
|
|
16777
16777
|
desc: o("topX.privateLeagues.featureCreateDesc")
|
|
16778
16778
|
},
|
|
@@ -16788,7 +16788,7 @@ const us = ({
|
|
|
16788
16788
|
}
|
|
16789
16789
|
], Y = [
|
|
16790
16790
|
{
|
|
16791
|
-
icon: /* @__PURE__ */ e(
|
|
16791
|
+
icon: /* @__PURE__ */ e(Vn, { sx: { fontSize: 18, color: g, flexShrink: 0, mt: l["3xs"] } }),
|
|
16792
16792
|
text: o("topX.privateLeagues.benefitCreateUnlimited")
|
|
16793
16793
|
},
|
|
16794
16794
|
{
|
|
@@ -16800,7 +16800,7 @@ const us = ({
|
|
|
16800
16800
|
text: o("topX.privateLeagues.benefitCompeteForTop")
|
|
16801
16801
|
},
|
|
16802
16802
|
{
|
|
16803
|
-
icon: /* @__PURE__ */ e(
|
|
16803
|
+
icon: /* @__PURE__ */ e(_n, { sx: { fontSize: 18, color: g, flexShrink: 0, mt: l["3xs"] } }),
|
|
16804
16804
|
text: o("topX.privateLeagues.benefitDiscussPredictions")
|
|
16805
16805
|
}
|
|
16806
16806
|
];
|
|
@@ -16819,7 +16819,7 @@ const us = ({
|
|
|
16819
16819
|
alignItems: "center",
|
|
16820
16820
|
justifyContent: "center"
|
|
16821
16821
|
},
|
|
16822
|
-
children: /* @__PURE__ */ e(
|
|
16822
|
+
children: /* @__PURE__ */ e(Yn, { sx: { fontSize: 32, color: g } })
|
|
16823
16823
|
}
|
|
16824
16824
|
),
|
|
16825
16825
|
/* @__PURE__ */ e(
|
|
@@ -16964,7 +16964,7 @@ const us = ({
|
|
|
16964
16964
|
}
|
|
16965
16965
|
return k ? /* @__PURE__ */ p(Ee, { children: [
|
|
16966
16966
|
/* @__PURE__ */ e(
|
|
16967
|
-
|
|
16967
|
+
As,
|
|
16968
16968
|
{
|
|
16969
16969
|
league: k,
|
|
16970
16970
|
onBack: ge,
|
|
@@ -16989,7 +16989,7 @@ const us = ({
|
|
|
16989
16989
|
)
|
|
16990
16990
|
] }) : /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: l.md }, children: [
|
|
16991
16991
|
/* @__PURE__ */ e(
|
|
16992
|
-
|
|
16992
|
+
Ns,
|
|
16993
16993
|
{
|
|
16994
16994
|
onLeagueCreated: pe,
|
|
16995
16995
|
onLeagueJoined: se
|
|
@@ -16998,7 +16998,7 @@ const us = ({
|
|
|
16998
16998
|
w.length > 0 && /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: l.sm }, children: [
|
|
16999
16999
|
/* @__PURE__ */ p(r, { sx: { display: "flex", alignItems: "center", gap: l.xs }, children: [
|
|
17000
17000
|
/* @__PURE__ */ e(
|
|
17001
|
-
|
|
17001
|
+
Gn,
|
|
17002
17002
|
{
|
|
17003
17003
|
sx: { fontSize: 18, color: g }
|
|
17004
17004
|
}
|
|
@@ -17257,7 +17257,7 @@ const us = ({
|
|
|
17257
17257
|
}
|
|
17258
17258
|
)
|
|
17259
17259
|
] }),
|
|
17260
|
-
v ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: l.xs }, children: Array.from({ length: 5 }, (_, O) => /* @__PURE__ */ e(
|
|
17260
|
+
v ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: l.xs }, children: Array.from({ length: 5 }, (_, O) => /* @__PURE__ */ e(Na, { index: O }, O)) }) : h.length === 0 ? /* @__PURE__ */ p(
|
|
17261
17261
|
r,
|
|
17262
17262
|
{
|
|
17263
17263
|
sx: {
|
|
@@ -17332,7 +17332,7 @@ const us = ({
|
|
|
17332
17332
|
opacity: 0
|
|
17333
17333
|
},
|
|
17334
17334
|
children: /* @__PURE__ */ e(
|
|
17335
|
-
|
|
17335
|
+
Da,
|
|
17336
17336
|
{
|
|
17337
17337
|
league: _,
|
|
17338
17338
|
onClick: Be,
|
|
@@ -17352,7 +17352,7 @@ const us = ({
|
|
|
17352
17352
|
}
|
|
17353
17353
|
),
|
|
17354
17354
|
/* @__PURE__ */ p(
|
|
17355
|
-
|
|
17355
|
+
Hs,
|
|
17356
17356
|
{
|
|
17357
17357
|
open: !!B,
|
|
17358
17358
|
onClose: ct,
|
|
@@ -17575,7 +17575,7 @@ const us = ({
|
|
|
17575
17575
|
)
|
|
17576
17576
|
] });
|
|
17577
17577
|
};
|
|
17578
|
-
function
|
|
17578
|
+
function js(t) {
|
|
17579
17579
|
if (!t) return "";
|
|
17580
17580
|
const o = document.createElement("template");
|
|
17581
17581
|
o.innerHTML = t;
|
|
@@ -17607,8 +17607,8 @@ function Os(t) {
|
|
|
17607
17607
|
};
|
|
17608
17608
|
return l(o.content), o.innerHTML;
|
|
17609
17609
|
}
|
|
17610
|
-
function
|
|
17611
|
-
const o =
|
|
17610
|
+
function Yr(t) {
|
|
17611
|
+
const o = js(t), a = document.createElement("template");
|
|
17612
17612
|
a.innerHTML = o;
|
|
17613
17613
|
const l = a.content, c = (m) => m.toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g, "").replace(/\s+/g, "-").replace(/[^\p{L}\p{N}-]+/gu, "").replace(/^-+|-+$/g, "").slice(0, 60) || "sec", n = [], s = /^\s*(?:ČASŤ|ČÁST|Část|PART)?\s*(\d+)[.:\s ]+(.+?)\s*$/i, d = (m, h, b) => {
|
|
17614
17614
|
const v = `sec-${h}-${c(b)}`, y = document.createElement("h2");
|
|
@@ -17695,7 +17695,7 @@ function Ao(t, o, a) {
|
|
|
17695
17695
|
}), c;
|
|
17696
17696
|
}
|
|
17697
17697
|
const Cr = "rules-tab-prose-styles";
|
|
17698
|
-
function
|
|
17698
|
+
function Vs(t) {
|
|
17699
17699
|
let o = document.getElementById(
|
|
17700
17700
|
Cr
|
|
17701
17701
|
);
|
|
@@ -17751,7 +17751,7 @@ function js(t) {
|
|
|
17751
17751
|
.rules-tab-scrollbar::-webkit-scrollbar-thumb:hover { background: ${t.surfaceVariant}; }
|
|
17752
17752
|
`;
|
|
17753
17753
|
}
|
|
17754
|
-
const
|
|
17754
|
+
const _s = ({ t }) => /* @__PURE__ */ e(
|
|
17755
17755
|
r,
|
|
17756
17756
|
{
|
|
17757
17757
|
sx: {
|
|
@@ -17773,7 +17773,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17773
17773
|
a
|
|
17774
17774
|
))
|
|
17775
17775
|
}
|
|
17776
|
-
),
|
|
17776
|
+
), Ys = Pe.memo(_s), Gs = ({
|
|
17777
17777
|
query: t,
|
|
17778
17778
|
setQuery: o,
|
|
17779
17779
|
hits: a = [],
|
|
@@ -17825,7 +17825,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17825
17825
|
onClick: () => c(-1),
|
|
17826
17826
|
"aria-label": "previous",
|
|
17827
17827
|
sx: { fontSize: "1em" },
|
|
17828
|
-
children: /* @__PURE__ */ e(
|
|
17828
|
+
children: /* @__PURE__ */ e(ii, { sx: { fontSize: 14 } })
|
|
17829
17829
|
}
|
|
17830
17830
|
),
|
|
17831
17831
|
/* @__PURE__ */ e(
|
|
@@ -17837,7 +17837,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17837
17837
|
onClick: () => c(1),
|
|
17838
17838
|
"aria-label": "next",
|
|
17839
17839
|
sx: { fontSize: "1em" },
|
|
17840
|
-
children: /* @__PURE__ */ e(
|
|
17840
|
+
children: /* @__PURE__ */ e(ai, { sx: { fontSize: 14 } })
|
|
17841
17841
|
}
|
|
17842
17842
|
)
|
|
17843
17843
|
] }),
|
|
@@ -17850,7 +17850,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17850
17850
|
onClick: () => o(""),
|
|
17851
17851
|
"aria-label": "clear",
|
|
17852
17852
|
sx: { fontSize: "1em" },
|
|
17853
|
-
children: /* @__PURE__ */ e(
|
|
17853
|
+
children: /* @__PURE__ */ e(Xr, { sx: { fontSize: 14 } })
|
|
17854
17854
|
}
|
|
17855
17855
|
)
|
|
17856
17856
|
]
|
|
@@ -17867,9 +17867,9 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17867
17867
|
}
|
|
17868
17868
|
}
|
|
17869
17869
|
);
|
|
17870
|
-
},
|
|
17870
|
+
}, Gr = Pe.memo(Gs), Us = ({ rawHtml: t, t: o, tl: a }) => {
|
|
17871
17871
|
var C;
|
|
17872
|
-
const l = xe(), { html: c, sections: n } = Ce(() =>
|
|
17872
|
+
const l = xe(), { html: c, sections: n } = Ce(() => Yr(t), [t]), s = je(null), [d, i] = P((C = n[0]) == null ? void 0 : C.id), [f, g] = P(""), [u, x] = P([]), [m, h] = P(0), b = Ce(
|
|
17873
17873
|
() => ({ bg: o.warnSoftBg, color: o.warnColor }),
|
|
17874
17874
|
[o.warnSoftBg, o.warnColor]
|
|
17875
17875
|
);
|
|
@@ -17934,7 +17934,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
17934
17934
|
borderBottom: `1px solid ${o.border}`
|
|
17935
17935
|
},
|
|
17936
17936
|
children: /* @__PURE__ */ e(r, { sx: { width: 280 }, children: /* @__PURE__ */ e(
|
|
17937
|
-
|
|
17937
|
+
Gr,
|
|
17938
17938
|
{
|
|
17939
17939
|
query: f,
|
|
17940
17940
|
setQuery: g,
|
|
@@ -18077,7 +18077,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18077
18077
|
)
|
|
18078
18078
|
] })
|
|
18079
18079
|
] });
|
|
18080
|
-
},
|
|
18080
|
+
}, Ks = Pe.memo(Us), qs = ({
|
|
18081
18081
|
section: t,
|
|
18082
18082
|
dir: o,
|
|
18083
18083
|
onClick: a,
|
|
@@ -18119,7 +18119,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18119
18119
|
justifyContent: o === "prev" ? "flex-start" : "flex-end"
|
|
18120
18120
|
},
|
|
18121
18121
|
children: [
|
|
18122
|
-
o === "prev" && /* @__PURE__ */ e(
|
|
18122
|
+
o === "prev" && /* @__PURE__ */ e(Un, { sx: { fontSize: 9, color: n.textSecondary } }),
|
|
18123
18123
|
/* @__PURE__ */ e(
|
|
18124
18124
|
S,
|
|
18125
18125
|
{
|
|
@@ -18134,7 +18134,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18134
18134
|
children: o === "prev" ? l : c
|
|
18135
18135
|
}
|
|
18136
18136
|
),
|
|
18137
|
-
o === "next" && /* @__PURE__ */ e(
|
|
18137
|
+
o === "next" && /* @__PURE__ */ e(Kn, { sx: { fontSize: 9, color: n.textSecondary } })
|
|
18138
18138
|
]
|
|
18139
18139
|
}
|
|
18140
18140
|
),
|
|
@@ -18157,9 +18157,9 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18157
18157
|
]
|
|
18158
18158
|
}
|
|
18159
18159
|
);
|
|
18160
|
-
}, vr = Pe.memo(
|
|
18160
|
+
}, vr = Pe.memo(qs), Js = ({ rawHtml: t, t: o, tl: a }) => {
|
|
18161
18161
|
var $;
|
|
18162
|
-
const l = xe(), { html: c } = Ce(() =>
|
|
18162
|
+
const l = xe(), { html: c } = Ce(() => Yr(t), [t]), n = Ce(() => {
|
|
18163
18163
|
var A, E, R;
|
|
18164
18164
|
const z = document.createElement("template");
|
|
18165
18165
|
z.innerHTML = c;
|
|
@@ -18245,7 +18245,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18245
18245
|
flexShrink: 0
|
|
18246
18246
|
},
|
|
18247
18247
|
children: /* @__PURE__ */ e(
|
|
18248
|
-
|
|
18248
|
+
Gr,
|
|
18249
18249
|
{
|
|
18250
18250
|
query: i,
|
|
18251
18251
|
setQuery: f,
|
|
@@ -18392,7 +18392,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18392
18392
|
]
|
|
18393
18393
|
}
|
|
18394
18394
|
),
|
|
18395
|
-
/* @__PURE__ */ e(
|
|
18395
|
+
/* @__PURE__ */ e(si, { sx: { flex: 1 } }),
|
|
18396
18396
|
/* @__PURE__ */ p(
|
|
18397
18397
|
S,
|
|
18398
18398
|
{
|
|
@@ -18470,7 +18470,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18470
18470
|
}
|
|
18471
18471
|
)
|
|
18472
18472
|
] });
|
|
18473
|
-
},
|
|
18473
|
+
}, Zs = Pe.memo(Js), Qs = ({ template: t, loading: o }) => {
|
|
18474
18474
|
const { t: a } = We("common"), l = be(), c = ke(), n = xe(), s = ve(), d = ho(), i = Ce(
|
|
18475
18475
|
() => {
|
|
18476
18476
|
var f, g, u, x, m, h, b, v, y, C;
|
|
@@ -18502,8 +18502,8 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18502
18502
|
[l, c, n, s]
|
|
18503
18503
|
);
|
|
18504
18504
|
return me(() => {
|
|
18505
|
-
|
|
18506
|
-
}, [i]), o ? /* @__PURE__ */ e(
|
|
18505
|
+
Vs(i);
|
|
18506
|
+
}, [i]), o ? /* @__PURE__ */ e(Ys, { t: i }) : t != null && t.rules ? /* @__PURE__ */ e(
|
|
18507
18507
|
r,
|
|
18508
18508
|
{
|
|
18509
18509
|
sx: {
|
|
@@ -18514,7 +18514,7 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18514
18514
|
fontFamily: i.fontPrimary,
|
|
18515
18515
|
minHeight: 0
|
|
18516
18516
|
},
|
|
18517
|
-
children: d ? /* @__PURE__ */ e(
|
|
18517
|
+
children: d ? /* @__PURE__ */ e(Zs, { rawHtml: t.rules, t: i, tl: a }) : /* @__PURE__ */ e(Ks, { rawHtml: t.rules, t: i, tl: a })
|
|
18518
18518
|
}
|
|
18519
18519
|
) : /* @__PURE__ */ e(
|
|
18520
18520
|
r,
|
|
@@ -18541,8 +18541,8 @@ const Vs = ({ t }) => /* @__PURE__ */ e(
|
|
|
18541
18541
|
)
|
|
18542
18542
|
}
|
|
18543
18543
|
);
|
|
18544
|
-
},
|
|
18545
|
-
function
|
|
18544
|
+
}, el = Pe.memo(Qs);
|
|
18545
|
+
function tl(t) {
|
|
18546
18546
|
if (!t) return "";
|
|
18547
18547
|
const o = document.createElement("template");
|
|
18548
18548
|
o.innerHTML = t;
|
|
@@ -18574,10 +18574,10 @@ function el(t) {
|
|
|
18574
18574
|
};
|
|
18575
18575
|
return l(o.content), o.innerHTML;
|
|
18576
18576
|
}
|
|
18577
|
-
function
|
|
18577
|
+
function ol(t) {
|
|
18578
18578
|
return /<[a-zA-Z]/.test(t);
|
|
18579
18579
|
}
|
|
18580
|
-
const
|
|
18580
|
+
const rl = ({ template: t, loading: o }) => {
|
|
18581
18581
|
var m, h, b;
|
|
18582
18582
|
const { t: a } = We("common"), l = be(), c = xe(), n = ke(), s = ve(), d = l.textPrimary, i = l.textSecondary ?? l.textPrimary, f = l.surfaceVariant, g = l.outlineEnabledBorder;
|
|
18583
18583
|
if (o)
|
|
@@ -18646,7 +18646,7 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18646
18646
|
)
|
|
18647
18647
|
]
|
|
18648
18648
|
}
|
|
18649
|
-
) : !x || !
|
|
18649
|
+
) : !x || !ol(x) ? /* @__PURE__ */ p(
|
|
18650
18650
|
r,
|
|
18651
18651
|
{
|
|
18652
18652
|
sx: {
|
|
@@ -18659,7 +18659,7 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18659
18659
|
},
|
|
18660
18660
|
children: [
|
|
18661
18661
|
/* @__PURE__ */ e(
|
|
18662
|
-
|
|
18662
|
+
qn,
|
|
18663
18663
|
{
|
|
18664
18664
|
sx: { fontSize: "3em", color: g }
|
|
18665
18665
|
}
|
|
@@ -18688,10 +18688,10 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18688
18688
|
"& img": { maxWidth: "100%", height: "auto" },
|
|
18689
18689
|
"& a": { color: ((b = (h = l.palette) == null ? void 0 : h.primary) == null ? void 0 : b.plainColor) ?? "#1A77D2" }
|
|
18690
18690
|
},
|
|
18691
|
-
dangerouslySetInnerHTML: { __html:
|
|
18691
|
+
dangerouslySetInnerHTML: { __html: tl(x) }
|
|
18692
18692
|
}
|
|
18693
18693
|
);
|
|
18694
|
-
},
|
|
18694
|
+
}, Ur = [
|
|
18695
18695
|
"play",
|
|
18696
18696
|
"private-leagues",
|
|
18697
18697
|
"leaderboard",
|
|
@@ -18700,8 +18700,8 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18700
18700
|
], kr = () => {
|
|
18701
18701
|
if (typeof window > "u") return null;
|
|
18702
18702
|
const t = window.location.hash.replace("#", "");
|
|
18703
|
-
return
|
|
18704
|
-
},
|
|
18703
|
+
return Ur.includes(t) ? t : null;
|
|
18704
|
+
}, nl = (t) => {
|
|
18705
18705
|
const {
|
|
18706
18706
|
entityId: o,
|
|
18707
18707
|
sdk: a,
|
|
@@ -18717,9 +18717,9 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18717
18717
|
betslip: x,
|
|
18718
18718
|
showCountdown: m = !0,
|
|
18719
18719
|
gameNavLabel: h = "gameWeek"
|
|
18720
|
-
} = t, { t: b } = We("common"), v = be(), y = ke(), C = xe(), L = ve(), k = d && d.length > 0 ? d :
|
|
18720
|
+
} = t, { t: b } = We("common"), v = be(), y = ke(), C = xe(), L = ve(), k = d && d.length > 0 ? d : Ur, [I, w] = P(
|
|
18721
18721
|
() => kr() ?? k[0]
|
|
18722
|
-
), { template: $, loading: z } =
|
|
18722
|
+
), { template: $, loading: z } = Or(o, a);
|
|
18723
18723
|
me(() => {
|
|
18724
18724
|
const H = () => {
|
|
18725
18725
|
const N = kr();
|
|
@@ -18739,7 +18739,7 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18739
18739
|
switch (I) {
|
|
18740
18740
|
case "play":
|
|
18741
18741
|
return /* @__PURE__ */ e(
|
|
18742
|
-
|
|
18742
|
+
Fa,
|
|
18743
18743
|
{
|
|
18744
18744
|
template: $,
|
|
18745
18745
|
loading: z,
|
|
@@ -18751,19 +18751,19 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18751
18751
|
}
|
|
18752
18752
|
);
|
|
18753
18753
|
case "leaderboard":
|
|
18754
|
-
return /* @__PURE__ */ e(
|
|
18754
|
+
return /* @__PURE__ */ e(Xa, { template: $ });
|
|
18755
18755
|
case "private-leagues":
|
|
18756
|
-
return /* @__PURE__ */ e(
|
|
18756
|
+
return /* @__PURE__ */ e(Os, { template: $ });
|
|
18757
18757
|
case "rules":
|
|
18758
|
-
return /* @__PURE__ */ e(
|
|
18758
|
+
return /* @__PURE__ */ e(el, { template: $, loading: z });
|
|
18759
18759
|
case "prizes":
|
|
18760
|
-
return /* @__PURE__ */ e(
|
|
18760
|
+
return /* @__PURE__ */ e(rl, { template: $, loading: z });
|
|
18761
18761
|
default:
|
|
18762
18762
|
return null;
|
|
18763
18763
|
}
|
|
18764
18764
|
};
|
|
18765
18765
|
return /* @__PURE__ */ e(
|
|
18766
|
-
|
|
18766
|
+
zi,
|
|
18767
18767
|
{
|
|
18768
18768
|
entityId: o,
|
|
18769
18769
|
sdk: a,
|
|
@@ -18911,12 +18911,12 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18911
18911
|
)
|
|
18912
18912
|
}
|
|
18913
18913
|
);
|
|
18914
|
-
},
|
|
18914
|
+
}, il = (t) => {
|
|
18915
18915
|
var o, a, l, c, n, s, d, i, f;
|
|
18916
18916
|
return /* @__PURE__ */ p(Ee, { children: [
|
|
18917
|
-
/* @__PURE__ */ e(
|
|
18917
|
+
/* @__PURE__ */ e(sn, { packageName: "top-x", ...t, children: /* @__PURE__ */ e(nl, { ...t }) }),
|
|
18918
18918
|
/* @__PURE__ */ e(
|
|
18919
|
-
|
|
18919
|
+
cn,
|
|
18920
18920
|
{
|
|
18921
18921
|
sdk: t.sdk,
|
|
18922
18922
|
language: t.language,
|
|
@@ -18932,7 +18932,7 @@ const ol = ({ template: t, loading: o }) => {
|
|
|
18932
18932
|
}
|
|
18933
18933
|
)
|
|
18934
18934
|
] });
|
|
18935
|
-
},
|
|
18935
|
+
}, Bl = il;
|
|
18936
18936
|
export {
|
|
18937
|
-
|
|
18937
|
+
Bl as TopX
|
|
18938
18938
|
};
|