fansunited-frontend-components 0.0.71 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PlayerOfTheMatch.js +8 -8
- package/Predictor.js +288 -302
- package/TopX.js +326 -340
- package/chunks/WorkspacePremiumOutlined-CwPqytci.js +121 -0
- package/index.js +1 -1
- package/package.json +2 -2
- package/chunks/index-C_R74meU.js +0 -4819
package/TopX.js
CHANGED
|
@@ -12,33 +12,33 @@ import { S as Sn } from "./chunks/Stack-DX41loGb.js";
|
|
|
12
12
|
import { F as Cn, C as vn } from "./chunks/FormControl-fKyT2Mql.js";
|
|
13
13
|
import { g as kn, d as er, h as vo, s as Rt, u as wn, a as Lt, j as In, c as Ln, T as S } from "./chunks/Typography-B8CtvKkm.js";
|
|
14
14
|
import { B as Ne, I as vt } from "./chunks/Button-CO-k2gLb.js";
|
|
15
|
-
import { S as Fr, W as zn, E as Qt, M as $n, A as Rn, a as Tn, G as xo, C as ho, b as Mo, c as Fn,
|
|
15
|
+
import { S as Fr, W as zn, E as Qt, M as $n, A as Rn, a as Tn, G as xo, C as ho, b as Mo, c as Fn, d as En, e as Er, L as Pn, V as Fo, f as Wn, g as Xn, h as Pr, i as An, P as Bn, j as Dn, k as Wt, l as Mn, B as Nn, H as tr, m as Hn, R as Wr, n as or, o as On, p as jn, q as Vn, r as rr, T as _n, s as Yn, t as Gn, N as Un, u as Kn, v as qn, w as Jn } from "./chunks/WorkspacePremiumOutlined-CwPqytci.js";
|
|
16
16
|
import { D as ht } from "./chunks/DirectionScope-BGDPaR6B.js";
|
|
17
|
-
import { u as
|
|
17
|
+
import { u as Zn } from "./chunks/useControlled-BYdyS7Pn.js";
|
|
18
18
|
import { u as ko } from "./chunks/useEventCallback-B1ahtq-a.js";
|
|
19
19
|
import { o as mo } from "./chunks/getReactElementRef-B3MFPBbS.js";
|
|
20
|
-
import { a as
|
|
21
|
-
import { v as
|
|
20
|
+
import { a as Qn } from "./chunks/areArraysEqual-B3mXtHvh.js";
|
|
21
|
+
import { v as ei } from "./chunks/visuallyHidden-B8J7BVSJ.js";
|
|
22
22
|
import { P as Xt } from "./chunks/Person-CLQl7Sxs.js";
|
|
23
23
|
import { A as oo } from "./chunks/Avatar-CEbT4X-o.js";
|
|
24
|
-
import { S as
|
|
25
|
-
import { C as
|
|
26
|
-
import { C as
|
|
24
|
+
import { S as ti } from "./chunks/Spinner-Bb4eb64F.js";
|
|
25
|
+
import { C as oi, a as ri } from "./chunks/chevrons-right-CXSpQt9w.js";
|
|
26
|
+
import { C as ni, a as ii } from "./chunks/chevron-right-eZEqQ93O.js";
|
|
27
27
|
import { S as Eo } from "./chunks/Sheet-sYNAL7gX.js";
|
|
28
28
|
import { T as Po } from "./chunks/Table-C09wF6nK.js";
|
|
29
29
|
import { E as At } from "./chunks/EmojiEvents-CpsA2Qo0.js";
|
|
30
|
-
import { D as Xr, C as Ar, E as
|
|
30
|
+
import { D as Xr, C as Ar, E as ai } from "./chunks/EditOutlined-B__rjTwX.js";
|
|
31
31
|
import { C as Br, a as Dr, S as No } from "./chunks/Search-BXhhax8M.js";
|
|
32
32
|
import { M as Ho, a as Oo } from "./chunks/ModalDialog-B0DLv5vW.js";
|
|
33
33
|
import { C as Mr } from "./chunks/Close-BiMLcNyG.js";
|
|
34
34
|
import { I as Nt } from "./chunks/Input-CkSIGH-d.js";
|
|
35
35
|
import { T as Nr } from "./chunks/Textarea-DWyUKbVv.js";
|
|
36
|
-
import { K as
|
|
37
|
-
import { D as
|
|
36
|
+
import { K as si, a as li } from "./chunks/KeyboardArrowDown-DL8VjkJT.js";
|
|
37
|
+
import { D as ci } from "./chunks/Divider-Dueyhj7K.js";
|
|
38
38
|
function Jt(t, o = Number.MIN_SAFE_INTEGER, a = Number.MAX_SAFE_INTEGER) {
|
|
39
39
|
return Math.max(o, Math.min(t, a));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const di = 2;
|
|
42
42
|
function Hr(t, o) {
|
|
43
43
|
return t - o;
|
|
44
44
|
}
|
|
@@ -76,10 +76,10 @@ function no(t, o) {
|
|
|
76
76
|
function go(t, o, a) {
|
|
77
77
|
return (t - o) * 100 / (a - o);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function pi(t, o, a) {
|
|
80
80
|
return (a - o) * t + o;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ui(t) {
|
|
83
83
|
if (Math.abs(t) < 1) {
|
|
84
84
|
const a = t.toExponential().split("e-"), s = a[0].split(".")[1];
|
|
85
85
|
return (s ? s.length : 0) + parseInt(a[1], 10);
|
|
@@ -87,9 +87,9 @@ function fi(t) {
|
|
|
87
87
|
const o = t.toString().split(".")[1];
|
|
88
88
|
return o ? o.length : 0;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function mi(t, o, a) {
|
|
91
91
|
const s = Math.round((t - a) / o) * o + a;
|
|
92
|
-
return Number(s.toFixed(
|
|
92
|
+
return Number(s.toFixed(ui(o)));
|
|
93
93
|
}
|
|
94
94
|
function ir({
|
|
95
95
|
values: t,
|
|
@@ -113,9 +113,9 @@ function io({
|
|
|
113
113
|
a && a(o);
|
|
114
114
|
}
|
|
115
115
|
function ao(t, o) {
|
|
116
|
-
return typeof t == "number" && typeof o == "number" ? t === o : typeof t == "object" && typeof o == "object" ?
|
|
116
|
+
return typeof t == "number" && typeof o == "number" ? t === o : typeof t == "object" && typeof o == "object" ? Qn(t, o) : !1;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const fi = {
|
|
119
119
|
horizontal: {
|
|
120
120
|
offset: (t) => ({
|
|
121
121
|
left: `${t}%`
|
|
@@ -140,12 +140,12 @@ const hi = {
|
|
|
140
140
|
height: `${t}%`
|
|
141
141
|
})
|
|
142
142
|
}
|
|
143
|
-
},
|
|
143
|
+
}, xi = (t) => t;
|
|
144
144
|
let so;
|
|
145
145
|
function ar() {
|
|
146
146
|
return so === void 0 && (typeof CSS < "u" && typeof CSS.supports == "function" ? so = CSS.supports("touch-action", "none") : so = !0), so;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function hi(t) {
|
|
149
149
|
const {
|
|
150
150
|
"aria-labelledby": o,
|
|
151
151
|
defaultValue: a,
|
|
@@ -160,12 +160,12 @@ function yi(t) {
|
|
|
160
160
|
onChangeCommitted: u,
|
|
161
161
|
orientation: x = "horizontal",
|
|
162
162
|
rootRef: m,
|
|
163
|
-
scale: h =
|
|
163
|
+
scale: h = xi,
|
|
164
164
|
step: b = 1,
|
|
165
165
|
shiftStep: v = 10,
|
|
166
166
|
tabIndex: y,
|
|
167
167
|
value: C
|
|
168
|
-
} = t, L = lt.useRef(void 0), [k, I] = lt.useState(-1), [w, R] = lt.useState(-1), [z, W] = lt.useState(!1), E = lt.useRef(0), [A, X] =
|
|
168
|
+
} = t, L = lt.useRef(void 0), [k, I] = lt.useState(-1), [w, R] = lt.useState(-1), [z, W] = lt.useState(!1), E = lt.useRef(0), [A, X] = Zn({
|
|
169
169
|
controlled: C,
|
|
170
170
|
default: a ?? i,
|
|
171
171
|
name: "Slider"
|
|
@@ -253,8 +253,8 @@ function yi(t) {
|
|
|
253
253
|
let O;
|
|
254
254
|
we.indexOf("vertical") === 0 ? O = (he - q.y) / Le : O = (q.x - _) / ie, we.indexOf("-reverse") !== -1 && (O = 1 - O);
|
|
255
255
|
let G;
|
|
256
|
-
if (G =
|
|
257
|
-
G =
|
|
256
|
+
if (G = pi(O, i, d), b)
|
|
257
|
+
G = mi(G, b, i);
|
|
258
258
|
else {
|
|
259
259
|
const Ye = nr(Q, G);
|
|
260
260
|
G = Q[Ye];
|
|
@@ -293,7 +293,7 @@ function yi(t) {
|
|
|
293
293
|
sliderRef: V,
|
|
294
294
|
activeIndex: ie,
|
|
295
295
|
setActive: I
|
|
296
|
-
}), X(J), !z && E.current >
|
|
296
|
+
}), X(J), !z && E.current > di && W(!0), $ && !ao(J, A) && $(q, J, ie);
|
|
297
297
|
}), Ue = ko((q) => {
|
|
298
298
|
const Z = no(q, L);
|
|
299
299
|
if (W(!1), !Z)
|
|
@@ -391,7 +391,7 @@ function yi(t) {
|
|
|
391
391
|
return {
|
|
392
392
|
active: k,
|
|
393
393
|
axis: we,
|
|
394
|
-
axisProps:
|
|
394
|
+
axisProps: fi,
|
|
395
395
|
dragging: z,
|
|
396
396
|
focusedThumbIndex: K,
|
|
397
397
|
getHiddenInputProps: (q = {}) => {
|
|
@@ -415,7 +415,7 @@ function yi(t) {
|
|
|
415
415
|
step: t.step === null && t.marks ? "any" : (Z = t.step) != null ? Z : void 0,
|
|
416
416
|
disabled: s
|
|
417
417
|
}, q, Le, {
|
|
418
|
-
style: Ie({},
|
|
418
|
+
style: Ie({}, ei, {
|
|
419
419
|
direction: n ? "rtl" : "ltr",
|
|
420
420
|
// So that VoiceOver's focus indicator matches the thumb's dimensions
|
|
421
421
|
width: "100%",
|
|
@@ -444,14 +444,14 @@ function yi(t) {
|
|
|
444
444
|
})
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function gi(t) {
|
|
448
448
|
return sn("MuiSlider", t);
|
|
449
449
|
}
|
|
450
|
-
const Wo = an("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"]),
|
|
450
|
+
const Wo = an("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"]), yi = ["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"];
|
|
451
451
|
function sr(t) {
|
|
452
452
|
return t;
|
|
453
453
|
}
|
|
454
|
-
const
|
|
454
|
+
const bi = (t) => {
|
|
455
455
|
const {
|
|
456
456
|
disabled: o,
|
|
457
457
|
dragging: a,
|
|
@@ -476,8 +476,8 @@ const Ci = (t) => {
|
|
|
476
476
|
active: ["active"],
|
|
477
477
|
focusVisible: ["focusVisible"]
|
|
478
478
|
};
|
|
479
|
-
return Ln(f,
|
|
480
|
-
},
|
|
479
|
+
return Ln(f, gi, {});
|
|
480
|
+
}, Si = ({
|
|
481
481
|
theme: t,
|
|
482
482
|
ownerState: o
|
|
483
483
|
}) => (a = {}) => {
|
|
@@ -493,7 +493,7 @@ const Ci = (t) => {
|
|
|
493
493
|
"--Slider-trackBorderColor": n.borderColor,
|
|
494
494
|
"--Slider-railBackground": t.vars.palette.background.level2
|
|
495
495
|
});
|
|
496
|
-
},
|
|
496
|
+
}, Ci = Rt("span", {
|
|
497
497
|
name: "JoySlider",
|
|
498
498
|
slot: "Root",
|
|
499
499
|
overridesResolver: (t, o) => o.root
|
|
@@ -501,7 +501,7 @@ const Ci = (t) => {
|
|
|
501
501
|
theme: t,
|
|
502
502
|
ownerState: o
|
|
503
503
|
}) => {
|
|
504
|
-
const a =
|
|
504
|
+
const a = Si({
|
|
505
505
|
theme: t,
|
|
506
506
|
ownerState: o
|
|
507
507
|
});
|
|
@@ -563,7 +563,7 @@ const Ci = (t) => {
|
|
|
563
563
|
colorAdjust: "exact"
|
|
564
564
|
}
|
|
565
565
|
})];
|
|
566
|
-
}),
|
|
566
|
+
}), vi = Rt("span", {
|
|
567
567
|
name: "JoySlider",
|
|
568
568
|
slot: "Rail",
|
|
569
569
|
overridesResolver: (t, o) => o.rail
|
|
@@ -589,7 +589,7 @@ const Ci = (t) => {
|
|
|
589
589
|
transform: "translateX(-50%)"
|
|
590
590
|
}, t.track === "inverted" && {
|
|
591
591
|
opacity: 1
|
|
592
|
-
})]),
|
|
592
|
+
})]), ki = Rt("span", {
|
|
593
593
|
name: "JoySlider",
|
|
594
594
|
slot: "Track",
|
|
595
595
|
overridesResolver: (t, o) => o.track
|
|
@@ -613,7 +613,7 @@ const Ci = (t) => {
|
|
|
613
613
|
borderRadius: "0 0 var(--Slider-trackRadius) var(--Slider-trackRadius)"
|
|
614
614
|
}, t.track === !1 && {
|
|
615
615
|
display: "none"
|
|
616
|
-
})]),
|
|
616
|
+
})]), wi = Rt("span", {
|
|
617
617
|
name: "JoySlider",
|
|
618
618
|
slot: "Thumb",
|
|
619
619
|
overridesResolver: (t, o) => o.thumb
|
|
@@ -665,7 +665,7 @@ const Ci = (t) => {
|
|
|
665
665
|
borderRadius: "inherit"
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
}),
|
|
668
|
+
}), Ii = Rt("span", {
|
|
669
669
|
name: "JoySlider",
|
|
670
670
|
slot: "Mark",
|
|
671
671
|
overridesResolver: (t, o) => o.mark
|
|
@@ -691,7 +691,7 @@ const Ci = (t) => {
|
|
|
691
691
|
transform: "translate(-50%, calc(min(var(--Slider-markSize), 3px) * -1))"
|
|
692
692
|
}, t.percent === 100 && {
|
|
693
693
|
transform: "translate(-50%, calc(var(--Slider-markSize) * 1 + min(var(--Slider-markSize), 3px)))"
|
|
694
|
-
}))),
|
|
694
|
+
}))), Li = Rt("span", {
|
|
695
695
|
name: "JoySlider",
|
|
696
696
|
slot: "ValueLabel",
|
|
697
697
|
overridesResolver: (t, o) => o.valueLabel
|
|
@@ -747,7 +747,7 @@ const Ci = (t) => {
|
|
|
747
747
|
[`&.${Wo.valueLabelOpen}`]: {
|
|
748
748
|
transform: "translateY(calc((var(--Slider-thumbSize) + var(--Slider-valueLabelArrowSize)) * -1)) scale(1)"
|
|
749
749
|
}
|
|
750
|
-
})),
|
|
750
|
+
})), zi = Rt("span", {
|
|
751
751
|
name: "JoySlider",
|
|
752
752
|
slot: "MarkLabel",
|
|
753
753
|
overridesResolver: (t, o) => o.markLabel
|
|
@@ -772,7 +772,7 @@ const Ci = (t) => {
|
|
|
772
772
|
}, o.orientation === "vertical" && {
|
|
773
773
|
left: "calc(50% + 8px + (max(var(--Slider-trackSize), var(--Slider-thumbSize)) / 2))",
|
|
774
774
|
transform: "translateY(50%)"
|
|
775
|
-
})),
|
|
775
|
+
})), $i = Rt("input", {
|
|
776
776
|
name: "JoySlider",
|
|
777
777
|
slot: "Input",
|
|
778
778
|
overridesResolver: (t, o) => o.input
|
|
@@ -807,7 +807,7 @@ const Ci = (t) => {
|
|
|
807
807
|
component: A,
|
|
808
808
|
slots: X = {},
|
|
809
809
|
slotProps: $ = {}
|
|
810
|
-
} = s, T = ln(s,
|
|
810
|
+
} = s, T = ln(s, yi), F = Ie({}, s, {
|
|
811
811
|
marks: m,
|
|
812
812
|
classes: d,
|
|
813
813
|
disabled: f,
|
|
@@ -842,24 +842,24 @@ const Ci = (t) => {
|
|
|
842
842
|
trackOffset: te,
|
|
843
843
|
trackLeap: pe,
|
|
844
844
|
getThumbStyle: le
|
|
845
|
-
} =
|
|
845
|
+
} = hi(Ie({}, F, {
|
|
846
846
|
rootRef: a
|
|
847
847
|
}));
|
|
848
848
|
F.marked = ne.length > 0 && ne.some((J) => J.label), F.dragging = se;
|
|
849
|
-
const ge = Ie({}, H[K].offset(te), H[K].leap(pe)), ce =
|
|
849
|
+
const ge = Ie({}, H[K].offset(te), H[K].leap(pe)), ce = bi(F), we = Ie({}, T, {
|
|
850
850
|
component: A,
|
|
851
851
|
slots: X,
|
|
852
852
|
slotProps: $
|
|
853
853
|
}), [Ve, Xe] = Lt("root", {
|
|
854
854
|
ref: a,
|
|
855
855
|
className: qt(ce.root, l),
|
|
856
|
-
elementType:
|
|
856
|
+
elementType: Ci,
|
|
857
857
|
externalForwardedProps: we,
|
|
858
858
|
getSlotProps: Q,
|
|
859
859
|
ownerState: F
|
|
860
860
|
}), [Ue, _e] = Lt("rail", {
|
|
861
861
|
className: ce.rail,
|
|
862
|
-
elementType:
|
|
862
|
+
elementType: vi,
|
|
863
863
|
externalForwardedProps: we,
|
|
864
864
|
ownerState: F
|
|
865
865
|
}), [re, He] = Lt("track", {
|
|
@@ -867,17 +867,17 @@ const Ci = (t) => {
|
|
|
867
867
|
style: ge
|
|
868
868
|
},
|
|
869
869
|
className: ce.track,
|
|
870
|
-
elementType:
|
|
870
|
+
elementType: ki,
|
|
871
871
|
externalForwardedProps: we,
|
|
872
872
|
ownerState: F
|
|
873
873
|
}), [Te, Be] = Lt("mark", {
|
|
874
874
|
className: ce.mark,
|
|
875
|
-
elementType:
|
|
875
|
+
elementType: Ii,
|
|
876
876
|
externalForwardedProps: we,
|
|
877
877
|
ownerState: F
|
|
878
878
|
}), [De, $e] = Lt("markLabel", {
|
|
879
879
|
className: ce.markLabel,
|
|
880
|
-
elementType:
|
|
880
|
+
elementType: zi,
|
|
881
881
|
externalForwardedProps: we,
|
|
882
882
|
ownerState: F,
|
|
883
883
|
additionalProps: {
|
|
@@ -885,19 +885,19 @@ const Ci = (t) => {
|
|
|
885
885
|
}
|
|
886
886
|
}), [ct, Qe] = Lt("thumb", {
|
|
887
887
|
className: ce.thumb,
|
|
888
|
-
elementType:
|
|
888
|
+
elementType: wi,
|
|
889
889
|
externalForwardedProps: we,
|
|
890
890
|
getSlotProps: B,
|
|
891
891
|
ownerState: F
|
|
892
892
|
}), [ot, pt] = Lt("input", {
|
|
893
893
|
className: ce.input,
|
|
894
|
-
elementType:
|
|
894
|
+
elementType: $i,
|
|
895
895
|
externalForwardedProps: we,
|
|
896
896
|
getSlotProps: M,
|
|
897
897
|
ownerState: F
|
|
898
898
|
}), [q, Z] = Lt("valueLabel", {
|
|
899
899
|
className: ce.valueLabel,
|
|
900
|
-
elementType:
|
|
900
|
+
elementType: Li,
|
|
901
901
|
externalForwardedProps: we,
|
|
902
902
|
ownerState: F
|
|
903
903
|
});
|
|
@@ -1173,14 +1173,14 @@ process.env.NODE_ENV !== "production" && (Or.propTypes = {
|
|
|
1173
1173
|
*/
|
|
1174
1174
|
variant: U.oneOfType([U.oneOf(["outlined", "plain", "soft", "solid"]), U.string])
|
|
1175
1175
|
});
|
|
1176
|
-
const jr = en(null),
|
|
1176
|
+
const jr = en(null), Ri = ({ children: t, ...o }) => /* @__PURE__ */ e(jr.Provider, { value: o, children: t }), gt = () => {
|
|
1177
1177
|
const t = tn(jr);
|
|
1178
1178
|
if (!t)
|
|
1179
1179
|
throw new Error(
|
|
1180
1180
|
"useTopXPredictorContext must be used within TopXPredictorProvider"
|
|
1181
1181
|
);
|
|
1182
1182
|
return t;
|
|
1183
|
-
},
|
|
1183
|
+
}, Ti = (t) => {
|
|
1184
1184
|
const o = t.split(":");
|
|
1185
1185
|
return {
|
|
1186
1186
|
homeScore: parseInt(o[0] ?? "0", 10),
|
|
@@ -1194,7 +1194,7 @@ const jr = en(null), Fi = ({ children: t, ...o }) => /* @__PURE__ */ e(jr.Provid
|
|
|
1194
1194
|
(n) => n.market === "CORRECT_SCORE" || n.market === "CORRECT_SCORE_ADVANCED"
|
|
1195
1195
|
).forEach((n) => {
|
|
1196
1196
|
var f, g, u, x;
|
|
1197
|
-
const l = ((f = n.prediction) == null ? void 0 : f.value) ?? "0:0", { homeScore: d, awayScore: i } =
|
|
1197
|
+
const l = ((f = n.prediction) == null ? void 0 : f.value) ?? "0:0", { homeScore: d, awayScore: i } = Ti(l);
|
|
1198
1198
|
o.set(n.matchId, {
|
|
1199
1199
|
matchId: n.matchId,
|
|
1200
1200
|
predictionId: s.id,
|
|
@@ -1208,20 +1208,20 @@ const jr = en(null), Fi = ({ children: t, ...o }) => /* @__PURE__ */ e(jr.Provid
|
|
|
1208
1208
|
});
|
|
1209
1209
|
}), o;
|
|
1210
1210
|
};
|
|
1211
|
-
function
|
|
1211
|
+
function Fi(t) {
|
|
1212
1212
|
if (!t) return !0;
|
|
1213
1213
|
const o = t.replace("#", "");
|
|
1214
1214
|
if (o.length < 6) return !0;
|
|
1215
1215
|
const a = parseInt(o.substring(0, 2), 16), s = parseInt(o.substring(2, 4), 16), c = parseInt(o.substring(4, 6), 16);
|
|
1216
1216
|
return (0.2126 * a + 0.7152 * s + 0.0722 * c) / 255 < 0.5;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function Ei(t) {
|
|
1219
1219
|
const o = /* @__PURE__ */ new Map();
|
|
1220
1220
|
return t.forEach((a, s) => {
|
|
1221
1221
|
if (!a || a.length === 0) return;
|
|
1222
1222
|
const c = a.filter((n) => n.bookmaker && n.markets && n.markets.length > 0).map((n) => {
|
|
1223
1223
|
var x, m, h, b, v, y, C, L;
|
|
1224
|
-
const l = n.bookmaker, d = (x = l.assets) == null ? void 0 : x[0], i = ((m = l.branding) == null ? void 0 : m.backgroundColor) || (d == null ? void 0 : d.backgroundColor), f = ((h = l.branding) == null ? void 0 : h.textColor) || (
|
|
1224
|
+
const l = n.bookmaker, d = (x = l.assets) == null ? void 0 : x[0], i = ((m = l.branding) == null ? void 0 : m.backgroundColor) || (d == null ? void 0 : d.backgroundColor), f = ((h = l.branding) == null ? void 0 : h.textColor) || (Fi(i) ? "#FFFFFF" : "#000000"), g = (d == null ? void 0 : d.transparentBackgroundUrl) || (d == null ? void 0 : d.logo) || ((b = l.branding) == null ? void 0 : b.logo), u = ((y = (v = l.eventUrls) == null ? void 0 : v.find((k) => k.appType === "desktop")) == null ? void 0 : y.url) || ((L = (C = l.links) == null ? void 0 : C.find((k) => k.appType === "desktop")) == null ? void 0 : L.homepageUrl) || l.url || "";
|
|
1225
1225
|
return {
|
|
1226
1226
|
operator: {
|
|
1227
1227
|
id: l.id,
|
|
@@ -1255,7 +1255,7 @@ function Wi(t) {
|
|
|
1255
1255
|
c.length > 0 && o.set(s, c);
|
|
1256
1256
|
}), o;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Pi(t) {
|
|
1259
1259
|
var n, l, d;
|
|
1260
1260
|
if (!t.operator || t.markets.length === 0) return null;
|
|
1261
1261
|
const a = t.markets[0].selections.map((i) => {
|
|
@@ -1279,21 +1279,21 @@ function Xi(t) {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
return { odds: a, operator: c };
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Wi(t) {
|
|
1283
1283
|
const o = /* @__PURE__ */ new Map();
|
|
1284
1284
|
return t.forEach((a, s) => {
|
|
1285
|
-
const c = a.map(
|
|
1285
|
+
const c = a.map(Pi).filter((n) => n !== null);
|
|
1286
1286
|
c.length > 0 && o.set(s, c);
|
|
1287
1287
|
}), o;
|
|
1288
1288
|
}
|
|
1289
|
-
const
|
|
1289
|
+
const Xi = 3e4;
|
|
1290
1290
|
function Vr({
|
|
1291
1291
|
sdk: t,
|
|
1292
1292
|
matchIds: o,
|
|
1293
1293
|
markets: a = ["1x2"],
|
|
1294
1294
|
oddType: s = yn.ALL,
|
|
1295
1295
|
isLive: c = !1,
|
|
1296
|
-
pollingIntervalMs: n =
|
|
1296
|
+
pollingIntervalMs: n = Xi,
|
|
1297
1297
|
operatorId: l
|
|
1298
1298
|
}) {
|
|
1299
1299
|
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(
|
|
@@ -1310,7 +1310,7 @@ function Vr({
|
|
|
1310
1310
|
oddFormat: hn.DECIMAL,
|
|
1311
1311
|
marketTypes: [gn.FT_1X2]
|
|
1312
1312
|
}, y = await t.odds.getByMatchIds(o, v);
|
|
1313
|
-
let C =
|
|
1313
|
+
let C = Ei(y);
|
|
1314
1314
|
if (l) {
|
|
1315
1315
|
const L = /* @__PURE__ */ new Map();
|
|
1316
1316
|
C.forEach((k, I) => {
|
|
@@ -1320,7 +1320,7 @@ function Vr({
|
|
|
1320
1320
|
w.length > 0 && L.set(I, w);
|
|
1321
1321
|
}), C = L;
|
|
1322
1322
|
}
|
|
1323
|
-
i(
|
|
1323
|
+
i(Wi(C));
|
|
1324
1324
|
} catch {
|
|
1325
1325
|
i(/* @__PURE__ */ new Map());
|
|
1326
1326
|
} finally {
|
|
@@ -1338,7 +1338,7 @@ function Vr({
|
|
|
1338
1338
|
return () => clearInterval(b);
|
|
1339
1339
|
}, [c, x, n, h]), { oddsMap: d, loading: f };
|
|
1340
1340
|
}
|
|
1341
|
-
async function
|
|
1341
|
+
async function Ai(t) {
|
|
1342
1342
|
try {
|
|
1343
1343
|
const o = await t.profile.getOwnConsents();
|
|
1344
1344
|
return new Set(o.map((a) => a.consentId));
|
|
@@ -1346,7 +1346,7 @@ async function Di(t) {
|
|
|
1346
1346
|
return console.warn("[predictor-consent] failed to load own consents:", o), /* @__PURE__ */ new Set();
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
async function
|
|
1349
|
+
async function Bi(t, o, a, s) {
|
|
1350
1350
|
a.length !== 0 && await t.profile.collectConsents(
|
|
1351
1351
|
a.map((c) => {
|
|
1352
1352
|
const n = o.find((l) => l.consentId === c);
|
|
@@ -1359,7 +1359,7 @@ async function Mi(t, o, a, s) {
|
|
|
1359
1359
|
})
|
|
1360
1360
|
);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function Di() {
|
|
1363
1363
|
const { sdk: t, userIsLoggedIn: o, consents: a, entityId: s } = gt(), [c, n] = P(null), [l, d] = P(!0), i = de(async () => {
|
|
1364
1364
|
if (!o) {
|
|
1365
1365
|
n(null), d(!1);
|
|
@@ -1367,7 +1367,7 @@ function Ni() {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
d(!0);
|
|
1369
1369
|
try {
|
|
1370
|
-
const x = await
|
|
1370
|
+
const x = await Ai(t);
|
|
1371
1371
|
n(x);
|
|
1372
1372
|
} finally {
|
|
1373
1373
|
d(!1);
|
|
@@ -1378,7 +1378,7 @@ function Ni() {
|
|
|
1378
1378
|
}, [i]);
|
|
1379
1379
|
const f = de(
|
|
1380
1380
|
async (x) => {
|
|
1381
|
-
await
|
|
1381
|
+
await Bi(t, a, x, s), n((m) => {
|
|
1382
1382
|
const h = new Set(m ?? []);
|
|
1383
1383
|
return x.forEach((b) => h.add(b)), h;
|
|
1384
1384
|
});
|
|
@@ -1387,7 +1387,7 @@ function Ni() {
|
|
|
1387
1387
|
), g = Ce(() => c ? a.filter((x) => !c.has(x.consentId)) : a, [a, c]), u = Ce(() => g.filter((x) => x.required), [g]);
|
|
1388
1388
|
return { accepted: c, loading: l, available: g, missingRequired: u, submit: f, refresh: i };
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const Mi = ({
|
|
1391
1391
|
consents: t,
|
|
1392
1392
|
initialAccepted: o,
|
|
1393
1393
|
onChange: a
|
|
@@ -1470,7 +1470,7 @@ const Hi = ({
|
|
|
1470
1470
|
}
|
|
1471
1471
|
) }, m.consentId);
|
|
1472
1472
|
}) });
|
|
1473
|
-
},
|
|
1473
|
+
}, Ni = ({
|
|
1474
1474
|
isOpen: t,
|
|
1475
1475
|
available: o,
|
|
1476
1476
|
missingRequired: a,
|
|
@@ -1613,7 +1613,7 @@ const Hi = ({
|
|
|
1613
1613
|
}
|
|
1614
1614
|
),
|
|
1615
1615
|
/* @__PURE__ */ e(
|
|
1616
|
-
|
|
1616
|
+
Mi,
|
|
1617
1617
|
{
|
|
1618
1618
|
consents: o,
|
|
1619
1619
|
initialAccepted: s ?? void 0,
|
|
@@ -1710,8 +1710,8 @@ const Hi = ({
|
|
|
1710
1710
|
}
|
|
1711
1711
|
);
|
|
1712
1712
|
};
|
|
1713
|
-
function
|
|
1714
|
-
const { available: t, missingRequired: o, accepted: a, loading: s, submit: c } =
|
|
1713
|
+
function Hi() {
|
|
1714
|
+
const { available: t, missingRequired: o, accepted: a, loading: s, submit: c } = Di(), [n, l] = P(!1), d = je(null), i = de(async () => (s && await new Promise((u) => setTimeout(u, 50)), o.length === 0 ? !0 : new Promise((u) => {
|
|
1715
1715
|
d.current = u, l(!0);
|
|
1716
1716
|
})), [s, o]), f = de(() => {
|
|
1717
1717
|
var u;
|
|
@@ -1723,7 +1723,7 @@ function ji() {
|
|
|
1723
1723
|
return {
|
|
1724
1724
|
ensureConsents: i,
|
|
1725
1725
|
modal: /* @__PURE__ */ e(
|
|
1726
|
-
|
|
1726
|
+
Ni,
|
|
1727
1727
|
{
|
|
1728
1728
|
isOpen: n,
|
|
1729
1729
|
available: t,
|
|
@@ -1736,7 +1736,7 @@ function ji() {
|
|
|
1736
1736
|
)
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
1739
|
-
const
|
|
1739
|
+
const Oi = (t) => ({
|
|
1740
1740
|
id: t.id,
|
|
1741
1741
|
title: t.title ?? "",
|
|
1742
1742
|
description: t.description ?? null,
|
|
@@ -1761,7 +1761,7 @@ const Vi = (t) => ({
|
|
|
1761
1761
|
let b;
|
|
1762
1762
|
for (; ; ) {
|
|
1763
1763
|
const v = b ? { ...m ?? {}, startAfter: b } : m, y = await t.topX.getGames(v), C = (y == null ? void 0 : y.data) ?? [];
|
|
1764
|
-
h.push(...C.map(
|
|
1764
|
+
h.push(...C.map(Oi));
|
|
1765
1765
|
const L = (x = (u = y == null ? void 0 : y.meta) == null ? void 0 : u.pagination) == null ? void 0 : x.nextPageStartsAfter;
|
|
1766
1766
|
if (!L) break;
|
|
1767
1767
|
b = L;
|
|
@@ -1790,8 +1790,8 @@ const Vi = (t) => ({
|
|
|
1790
1790
|
c < o && (o = c);
|
|
1791
1791
|
}
|
|
1792
1792
|
return o;
|
|
1793
|
-
}, Io = (t, o) => lr(t) - lr(o), cr = (t, o) => Xo(t.predictionsCutoff) - Xo(o.predictionsCutoff),
|
|
1794
|
-
const o = t.filter((i) => i.status === "OPEN"), a = t.filter((i) => i.status === "LIVE"), s = t.filter((i) => i.status === "PENDING"), c = t.filter((i) =>
|
|
1793
|
+
}, Io = (t, o) => lr(t) - lr(o), cr = (t, o) => Xo(t.predictionsCutoff) - Xo(o.predictionsCutoff), ji = /* @__PURE__ */ new Set(["SETTLED", "CLOSED", "CANCELED"]), Vi = (t) => {
|
|
1794
|
+
const o = t.filter((i) => i.status === "OPEN"), a = t.filter((i) => i.status === "LIVE"), s = t.filter((i) => i.status === "PENDING"), c = t.filter((i) => ji.has(i.status));
|
|
1795
1795
|
let n = null;
|
|
1796
1796
|
o.length > 0 ? n = [...o].sort(Io)[0] : a.length > 0 ? n = [...a].sort(Io)[0] : c.length > 0 && (n = [...c].sort(cr).slice(-1)[0]);
|
|
1797
1797
|
const l = c.filter((i) => i !== n);
|
|
@@ -1800,10 +1800,10 @@ const Vi = (t) => ({
|
|
|
1800
1800
|
for (const i of o)
|
|
1801
1801
|
i !== n && d.push(i);
|
|
1802
1802
|
return d.push(...s), d.sort(Io), { previous: l, current: n, future: d };
|
|
1803
|
-
},
|
|
1803
|
+
}, _i = (t) => {
|
|
1804
1804
|
const o = [...t.previous];
|
|
1805
1805
|
return t.current && o.push(t.current), o.push(...t.future), o;
|
|
1806
|
-
},
|
|
1806
|
+
}, Yi = (t) => {
|
|
1807
1807
|
switch (t) {
|
|
1808
1808
|
case "finished":
|
|
1809
1809
|
return "FINISHED";
|
|
@@ -1814,7 +1814,7 @@ const Vi = (t) => ({
|
|
|
1814
1814
|
default:
|
|
1815
1815
|
return "PENDING";
|
|
1816
1816
|
}
|
|
1817
|
-
},
|
|
1817
|
+
}, Gi = (t) => {
|
|
1818
1818
|
var o, a, s, c, n, l, d;
|
|
1819
1819
|
return {
|
|
1820
1820
|
id: t.id,
|
|
@@ -1831,7 +1831,7 @@ const Vi = (t) => ({
|
|
|
1831
1831
|
logo: ((a = t.awayTeam.assets) == null ? void 0 : a.logo) ?? null
|
|
1832
1832
|
},
|
|
1833
1833
|
kickoffAt: t.kickoffAt ?? "",
|
|
1834
|
-
status:
|
|
1834
|
+
status: Yi((s = t.status) == null ? void 0 : s.type),
|
|
1835
1835
|
homeScore: ((n = (c = t.scores) == null ? void 0 : c.ftScore) == null ? void 0 : n.homeGoals) ?? null,
|
|
1836
1836
|
awayScore: ((d = (l = t.scores) == null ? void 0 : l.ftScore) == null ? void 0 : d.awayGoals) ?? null
|
|
1837
1837
|
};
|
|
@@ -1843,7 +1843,7 @@ function _r(t) {
|
|
|
1843
1843
|
const a = parseInt(o[0], 10), s = parseInt(o[1], 10);
|
|
1844
1844
|
return isNaN(a) || isNaN(s) ? null : a > s ? "1" : a < s ? "2" : "X";
|
|
1845
1845
|
}
|
|
1846
|
-
const
|
|
1846
|
+
const Ui = ({
|
|
1847
1847
|
matchId: t,
|
|
1848
1848
|
homeScore: o,
|
|
1849
1849
|
awayScore: a,
|
|
@@ -1870,12 +1870,12 @@ const qi = ({
|
|
|
1870
1870
|
oddsLoading: c,
|
|
1871
1871
|
predictedOutcome: i
|
|
1872
1872
|
};
|
|
1873
|
-
},
|
|
1873
|
+
}, Ki = (t, o) => t.toLocaleDateString(eo(o), {
|
|
1874
1874
|
day: "2-digit",
|
|
1875
1875
|
month: "short",
|
|
1876
1876
|
hour: "2-digit",
|
|
1877
1877
|
minute: "2-digit"
|
|
1878
|
-
}),
|
|
1878
|
+
}), qi = ({
|
|
1879
1879
|
kickoffDate: t,
|
|
1880
1880
|
locale: o,
|
|
1881
1881
|
rightContent: a
|
|
@@ -1902,14 +1902,14 @@ const qi = ({
|
|
|
1902
1902
|
fontWeight: 500,
|
|
1903
1903
|
letterSpacing: "0.05em"
|
|
1904
1904
|
},
|
|
1905
|
-
children:
|
|
1905
|
+
children: Ki(t, o)
|
|
1906
1906
|
}
|
|
1907
1907
|
),
|
|
1908
1908
|
a ?? null
|
|
1909
1909
|
]
|
|
1910
1910
|
}
|
|
1911
1911
|
);
|
|
1912
|
-
},
|
|
1912
|
+
}, Ji = Pe.memo(qi), Zi = ({ index: t = 0 }) => {
|
|
1913
1913
|
const o = be(), a = xe(), s = ve(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", n = o.surfaceVariant, l = o.surfaceVariant + "80";
|
|
1914
1914
|
return /* @__PURE__ */ p(
|
|
1915
1915
|
r,
|
|
@@ -2071,7 +2071,7 @@ const qi = ({
|
|
|
2071
2071
|
]
|
|
2072
2072
|
}
|
|
2073
2073
|
);
|
|
2074
|
-
}, Ao = Pe.memo(
|
|
2074
|
+
}, Ao = Pe.memo(Zi), Qi = () => /* @__PURE__ */ e(
|
|
2075
2075
|
"svg",
|
|
2076
2076
|
{
|
|
2077
2077
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2085,7 +2085,7 @@ const qi = ({
|
|
|
2085
2085
|
strokeLinejoin: "round",
|
|
2086
2086
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
2087
2087
|
}
|
|
2088
|
-
),
|
|
2088
|
+
), ea = () => /* @__PURE__ */ e(
|
|
2089
2089
|
"svg",
|
|
2090
2090
|
{
|
|
2091
2091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2099,7 +2099,7 @@ const qi = ({
|
|
|
2099
2099
|
strokeLinejoin: "round",
|
|
2100
2100
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
2101
2101
|
}
|
|
2102
|
-
),
|
|
2102
|
+
), ta = ({
|
|
2103
2103
|
score: t,
|
|
2104
2104
|
onIncrement: o,
|
|
2105
2105
|
onDecrement: a,
|
|
@@ -2141,7 +2141,7 @@ const qi = ({
|
|
|
2141
2141
|
},
|
|
2142
2142
|
"&:active": { transform: s ? "none" : "scale(0.95)" }
|
|
2143
2143
|
},
|
|
2144
|
-
children: /* @__PURE__ */ e(
|
|
2144
|
+
children: /* @__PURE__ */ e(Qi, {})
|
|
2145
2145
|
}
|
|
2146
2146
|
),
|
|
2147
2147
|
/* @__PURE__ */ e(
|
|
@@ -2189,13 +2189,13 @@ const qi = ({
|
|
|
2189
2189
|
},
|
|
2190
2190
|
"&:active": { transform: s ? "none" : "scale(0.95)" }
|
|
2191
2191
|
},
|
|
2192
|
-
children: /* @__PURE__ */ e(
|
|
2192
|
+
children: /* @__PURE__ */ e(ea, {})
|
|
2193
2193
|
}
|
|
2194
2194
|
)
|
|
2195
2195
|
]
|
|
2196
2196
|
}
|
|
2197
2197
|
);
|
|
2198
|
-
},
|
|
2198
|
+
}, oa = Pe.memo(ta), ra = ({
|
|
2199
2199
|
team: t,
|
|
2200
2200
|
score: o,
|
|
2201
2201
|
isPast: a,
|
|
@@ -2285,7 +2285,7 @@ const qi = ({
|
|
|
2285
2285
|
}
|
|
2286
2286
|
),
|
|
2287
2287
|
!g && !a && !s && !c && /* @__PURE__ */ e(
|
|
2288
|
-
|
|
2288
|
+
oa,
|
|
2289
2289
|
{
|
|
2290
2290
|
score: o,
|
|
2291
2291
|
onIncrement: d,
|
|
@@ -2546,7 +2546,7 @@ const qi = ({
|
|
|
2546
2546
|
]
|
|
2547
2547
|
}
|
|
2548
2548
|
);
|
|
2549
|
-
}, dr = Pe.memo(
|
|
2549
|
+
}, dr = Pe.memo(ra), na = ({
|
|
2550
2550
|
existingPrediction: t,
|
|
2551
2551
|
matchHomeScore: o,
|
|
2552
2552
|
matchAwayScore: a,
|
|
@@ -2865,7 +2865,7 @@ const qi = ({
|
|
|
2865
2865
|
}
|
|
2866
2866
|
)
|
|
2867
2867
|
] });
|
|
2868
|
-
},
|
|
2868
|
+
}, ia = Pe.memo(na), aa = ({
|
|
2869
2869
|
isLive: t,
|
|
2870
2870
|
isPast: o,
|
|
2871
2871
|
isLocked: a,
|
|
@@ -3078,7 +3078,7 @@ const qi = ({
|
|
|
3078
3078
|
)
|
|
3079
3079
|
}
|
|
3080
3080
|
) : o && n != null ? d ? /* @__PURE__ */ e(
|
|
3081
|
-
|
|
3081
|
+
ia,
|
|
3082
3082
|
{
|
|
3083
3083
|
existingPrediction: d,
|
|
3084
3084
|
matchHomeScore: n,
|
|
@@ -3100,7 +3100,7 @@ const qi = ({
|
|
|
3100
3100
|
children: b("topX.play.noPredictionMade", "No prediction made")
|
|
3101
3101
|
}
|
|
3102
3102
|
) : null;
|
|
3103
|
-
},
|
|
3103
|
+
}, sa = Pe.memo(aa), la = ({
|
|
3104
3104
|
odds: t,
|
|
3105
3105
|
operator: o,
|
|
3106
3106
|
onOddClick: a
|
|
@@ -3264,7 +3264,7 @@ const qi = ({
|
|
|
3264
3264
|
x({ flex: 1, maxWidth: 90 }),
|
|
3265
3265
|
t.map((m) => g(m))
|
|
3266
3266
|
] });
|
|
3267
|
-
},
|
|
3267
|
+
}, ca = Pe.memo(la), da = ({
|
|
3268
3268
|
match: t,
|
|
3269
3269
|
existingPrediction: o,
|
|
3270
3270
|
homeScore: a,
|
|
@@ -3289,7 +3289,7 @@ const qi = ({
|
|
|
3289
3289
|
const { t: L } = We("common"), k = be(), I = ke(), w = xe(), R = ve(), { betslip: z } = gt(), { language: W } = zt($t), E = Ce(
|
|
3290
3290
|
() => new Date(t.kickoffAt),
|
|
3291
3291
|
[t.kickoffAt]
|
|
3292
|
-
), A = t.status === "FINISHED", X = t.status === "LIVE", $ = E < /* @__PURE__ */ new Date() && A, T = 15 * 60 * 1e3, F = h || b || !A && (X || Date.now() >= E.getTime() - T), H = t.homeScore ?? null, Q = t.awayScore ?? null, M = !!o, B = M && !x, { predictedOutcome: N } =
|
|
3292
|
+
), A = t.status === "FINISHED", X = t.status === "LIVE", $ = E < /* @__PURE__ */ new Date() && A, T = 15 * 60 * 1e3, F = h || b || !A && (X || Date.now() >= E.getTime() - T), H = t.homeScore ?? null, Q = t.awayScore ?? null, M = !!o, B = M && !x, { predictedOutcome: N } = Ui({
|
|
3293
3293
|
matchId: t.id,
|
|
3294
3294
|
homeScore: a,
|
|
3295
3295
|
awayScore: s,
|
|
@@ -3333,12 +3333,12 @@ const qi = ({
|
|
|
3333
3333
|
},
|
|
3334
3334
|
children: [
|
|
3335
3335
|
/* @__PURE__ */ e(
|
|
3336
|
-
|
|
3336
|
+
Ji,
|
|
3337
3337
|
{
|
|
3338
3338
|
kickoffDate: E,
|
|
3339
3339
|
locale: W ?? void 0,
|
|
3340
3340
|
rightContent: /* @__PURE__ */ e(
|
|
3341
|
-
|
|
3341
|
+
sa,
|
|
3342
3342
|
{
|
|
3343
3343
|
isLive: X,
|
|
3344
3344
|
isPast: $,
|
|
@@ -3482,7 +3482,7 @@ const qi = ({
|
|
|
3482
3482
|
}
|
|
3483
3483
|
),
|
|
3484
3484
|
!F && (N == null ? void 0 : N.matchingOdd) && N.operator && /* @__PURE__ */ e(
|
|
3485
|
-
|
|
3485
|
+
ca,
|
|
3486
3486
|
{
|
|
3487
3487
|
odds: [N.matchingOdd],
|
|
3488
3488
|
operator: N.operator,
|
|
@@ -3493,7 +3493,7 @@ const qi = ({
|
|
|
3493
3493
|
]
|
|
3494
3494
|
}
|
|
3495
3495
|
);
|
|
3496
|
-
},
|
|
3496
|
+
}, pa = Pe.memo(da), ua = () => /* @__PURE__ */ e(
|
|
3497
3497
|
"svg",
|
|
3498
3498
|
{
|
|
3499
3499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3507,7 +3507,7 @@ const qi = ({
|
|
|
3507
3507
|
strokeLinejoin: "round",
|
|
3508
3508
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
3509
3509
|
}
|
|
3510
|
-
),
|
|
3510
|
+
), ma = () => /* @__PURE__ */ e(
|
|
3511
3511
|
"svg",
|
|
3512
3512
|
{
|
|
3513
3513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3521,14 +3521,14 @@ const qi = ({
|
|
|
3521
3521
|
strokeLinejoin: "round",
|
|
3522
3522
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
3523
3523
|
}
|
|
3524
|
-
),
|
|
3524
|
+
), fa = {
|
|
3525
3525
|
OPEN: "topX.play.gameStatus.open",
|
|
3526
3526
|
LIVE: "topX.play.gameStatus.live",
|
|
3527
3527
|
PENDING: "topX.play.gameStatus.pending",
|
|
3528
3528
|
CLOSED: "topX.play.gameStatus.closed",
|
|
3529
3529
|
SETTLED: "topX.play.gameStatus.settled",
|
|
3530
3530
|
CANCELED: "topX.play.gameStatus.canceled"
|
|
3531
|
-
},
|
|
3531
|
+
}, xa = {
|
|
3532
3532
|
OPEN: "topX.play.gameStatus.openTooltip",
|
|
3533
3533
|
LIVE: "topX.play.gameStatus.liveTooltip",
|
|
3534
3534
|
PENDING: "topX.play.gameStatus.pendingTooltip",
|
|
@@ -3557,7 +3557,7 @@ const qi = ({
|
|
|
3557
3557
|
"LIVE",
|
|
3558
3558
|
"CLOSED",
|
|
3559
3559
|
"SETTLED"
|
|
3560
|
-
],
|
|
3560
|
+
], ha = ({ status: t }) => {
|
|
3561
3561
|
const { t: o } = We("common"), a = be(), s = ke(), c = xe(), n = a.palette ?? {}, l = ve(), [d, i] = P(!1), f = t === "CANCELED", g = f ? -1 : ur.findIndex((h) => h === t), u = pr(
|
|
3562
3562
|
n,
|
|
3563
3563
|
a.textSecondary,
|
|
@@ -3656,7 +3656,7 @@ const qi = ({
|
|
|
3656
3656
|
textTransform: "uppercase",
|
|
3657
3657
|
color: u
|
|
3658
3658
|
},
|
|
3659
|
-
children: o(
|
|
3659
|
+
children: o(fa[t])
|
|
3660
3660
|
}
|
|
3661
3661
|
),
|
|
3662
3662
|
/* @__PURE__ */ e(
|
|
@@ -3711,7 +3711,7 @@ const qi = ({
|
|
|
3711
3711
|
borderColor: `transparent transparent ${a.surfaceTintDim} transparent`
|
|
3712
3712
|
}
|
|
3713
3713
|
},
|
|
3714
|
-
children: o(
|
|
3714
|
+
children: o(xa[t])
|
|
3715
3715
|
}
|
|
3716
3716
|
)
|
|
3717
3717
|
]
|
|
@@ -3722,7 +3722,7 @@ const qi = ({
|
|
|
3722
3722
|
]
|
|
3723
3723
|
}
|
|
3724
3724
|
);
|
|
3725
|
-
},
|
|
3725
|
+
}, ga = ({
|
|
3726
3726
|
games: t,
|
|
3727
3727
|
gameIndex: o,
|
|
3728
3728
|
currentGame: a,
|
|
@@ -3771,7 +3771,7 @@ const qi = ({
|
|
|
3771
3771
|
disabled: x,
|
|
3772
3772
|
onClick: s,
|
|
3773
3773
|
sx: u(x),
|
|
3774
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
3774
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(ua, {}) })
|
|
3775
3775
|
}
|
|
3776
3776
|
),
|
|
3777
3777
|
/* @__PURE__ */ p(r, { sx: { textAlign: "center", minWidth: 0, flex: 1 }, children: [
|
|
@@ -3802,7 +3802,7 @@ const qi = ({
|
|
|
3802
3802
|
dangerouslySetInnerHTML: { __html: v }
|
|
3803
3803
|
}
|
|
3804
3804
|
),
|
|
3805
|
-
a && /* @__PURE__ */ e(r, { sx: { mt: f.sm }, children: /* @__PURE__ */ e(
|
|
3805
|
+
a && /* @__PURE__ */ e(r, { sx: { mt: f.sm }, children: /* @__PURE__ */ e(ha, { status: a.status }) })
|
|
3806
3806
|
] }),
|
|
3807
3807
|
/* @__PURE__ */ e(
|
|
3808
3808
|
r,
|
|
@@ -3812,13 +3812,13 @@ const qi = ({
|
|
|
3812
3812
|
disabled: m,
|
|
3813
3813
|
onClick: c,
|
|
3814
3814
|
sx: u(m),
|
|
3815
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
3815
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(ma, {}) })
|
|
3816
3816
|
}
|
|
3817
3817
|
)
|
|
3818
3818
|
]
|
|
3819
3819
|
}
|
|
3820
3820
|
);
|
|
3821
|
-
},
|
|
3821
|
+
}, ya = Pe.memo(ga), ba = ({
|
|
3822
3822
|
matches: t,
|
|
3823
3823
|
predictions: o,
|
|
3824
3824
|
predictedCount: a,
|
|
@@ -4221,7 +4221,7 @@ const qi = ({
|
|
|
4221
4221
|
]
|
|
4222
4222
|
}
|
|
4223
4223
|
) });
|
|
4224
|
-
},
|
|
4224
|
+
}, Sa = Pe.memo(ba), Ca = ({ predictionsCutoff: t }) => {
|
|
4225
4225
|
const { t: o } = We("common"), a = be(), s = ve(), c = ke(), n = xe(), l = yo(), 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(() => {
|
|
4226
4226
|
const y = (/* @__PURE__ */ new Date()).getTime(), L = new Date(t).getTime() - y;
|
|
4227
4227
|
if (L <= 0)
|
|
@@ -4334,13 +4334,13 @@ const qi = ({
|
|
|
4334
4334
|
] })
|
|
4335
4335
|
] })
|
|
4336
4336
|
] });
|
|
4337
|
-
}, mr = 1, fr = 90,
|
|
4337
|
+
}, mr = 1, fr = 90, va = 1, ka = ({
|
|
4338
4338
|
value: t,
|
|
4339
4339
|
onChange: o,
|
|
4340
4340
|
disabled: a,
|
|
4341
4341
|
loading: s
|
|
4342
4342
|
}) => {
|
|
4343
|
-
const { t: c } = We("common"), n = be(), l = ke(), d = xe(), i = ve(), f = t === "" ? NaN : parseInt(t, 10), g = Number.isNaN(f) ?
|
|
4343
|
+
const { t: c } = We("common"), n = be(), l = ke(), d = xe(), i = ve(), f = t === "" ? NaN : parseInt(t, 10), g = Number.isNaN(f) ? va : f, u = Math.max(mr, Math.min(fr, g)), x = n.palette.primary.plainColor, m = n.palette.primary.onPrimary ?? "#fff", h = (b, v) => {
|
|
4344
4344
|
a || o(String(Array.isArray(v) ? v[0] : v));
|
|
4345
4345
|
};
|
|
4346
4346
|
return s ? /* @__PURE__ */ p(
|
|
@@ -4533,7 +4533,7 @@ const qi = ({
|
|
|
4533
4533
|
]
|
|
4534
4534
|
}
|
|
4535
4535
|
);
|
|
4536
|
-
},
|
|
4536
|
+
}, wa = (t) => {
|
|
4537
4537
|
switch (t) {
|
|
4538
4538
|
case "penalty_goal":
|
|
4539
4539
|
return "topX.play.goldenGoalResult.goalTypes.penalty";
|
|
@@ -4543,7 +4543,7 @@ const qi = ({
|
|
|
4543
4543
|
default:
|
|
4544
4544
|
return "topX.play.goldenGoalResult.goalTypes.goal";
|
|
4545
4545
|
}
|
|
4546
|
-
},
|
|
4546
|
+
}, Ia = ({
|
|
4547
4547
|
actualMinute: t,
|
|
4548
4548
|
predictedMinute: o,
|
|
4549
4549
|
playerName: a,
|
|
@@ -4554,7 +4554,7 @@ const qi = ({
|
|
|
4554
4554
|
loading: d
|
|
4555
4555
|
}) => {
|
|
4556
4556
|
var C, L;
|
|
4557
|
-
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(
|
|
4557
|
+
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(wa(l)), v = ({ children: k }) => /* @__PURE__ */ e(
|
|
4558
4558
|
S,
|
|
4559
4559
|
{
|
|
4560
4560
|
sx: {
|
|
@@ -4972,7 +4972,7 @@ const qi = ({
|
|
|
4972
4972
|
]
|
|
4973
4973
|
}
|
|
4974
4974
|
);
|
|
4975
|
-
},
|
|
4975
|
+
}, La = Pe.memo(Ia), za = () => {
|
|
4976
4976
|
var d, i, f, g, u, x, m, h, b, v, y, C, L, k, I, w, R, z, W, E, A, X;
|
|
4977
4977
|
const { t } = We("common"), o = be(), a = ke(), s = ve(), { signInCTA: c } = gt();
|
|
4978
4978
|
if (c != null && c.component) return /* @__PURE__ */ e(Ee, { children: c.component });
|
|
@@ -5000,12 +5000,12 @@ const qi = ({
|
|
|
5000
5000
|
}
|
|
5001
5001
|
};
|
|
5002
5002
|
return c != null && c.onClick ? /* @__PURE__ */ e(Ne, { onClick: c.onClick, sx: l, children: n }) : c != null && c.url ? /* @__PURE__ */ e(Ne, { component: "a", href: c.url, sx: l, children: n }) : /* @__PURE__ */ e(Ne, { sx: l, children: n });
|
|
5003
|
-
},
|
|
5003
|
+
}, $a = Pe.memo(za), Dt = (t, o) => (t == null ? void 0 : t.filter((a) => a.position === o)) ?? [], Mt = ({ banners: t }) => t.length === 0 ? null : /* @__PURE__ */ e(Ee, { children: t.map((o, a) => /* @__PURE__ */ e(r, { children: o.render() }, a)) }), Ra = 0, Ta = 20, lo = (t) => Math.max(Ra, Math.min(Ta, t)), xr = {
|
|
5004
5004
|
open: !1,
|
|
5005
5005
|
variant: "success",
|
|
5006
5006
|
title: "",
|
|
5007
5007
|
message: ""
|
|
5008
|
-
}, Vo = (t) => `topx:pending:${t}`,
|
|
5008
|
+
}, Vo = (t) => `topx:pending:${t}`, Fa = (t) => {
|
|
5009
5009
|
if (typeof localStorage > "u") return null;
|
|
5010
5010
|
try {
|
|
5011
5011
|
const o = localStorage.getItem(Vo(t));
|
|
@@ -5018,7 +5018,7 @@ const qi = ({
|
|
|
5018
5018
|
} catch {
|
|
5019
5019
|
return null;
|
|
5020
5020
|
}
|
|
5021
|
-
},
|
|
5021
|
+
}, Ea = (t, o) => {
|
|
5022
5022
|
if (!(typeof localStorage > "u"))
|
|
5023
5023
|
try {
|
|
5024
5024
|
localStorage.setItem(Vo(t), JSON.stringify(o));
|
|
@@ -5030,7 +5030,7 @@ const qi = ({
|
|
|
5030
5030
|
localStorage.removeItem(Vo(t));
|
|
5031
5031
|
} catch {
|
|
5032
5032
|
}
|
|
5033
|
-
},
|
|
5033
|
+
}, Pa = ({
|
|
5034
5034
|
template: t,
|
|
5035
5035
|
loading: o,
|
|
5036
5036
|
error: a,
|
|
@@ -5042,11 +5042,11 @@ const qi = ({
|
|
|
5042
5042
|
var st, it, Ht, Ot, jt, Vt, _t, oe, ye, Re, at, Je, dt, ut, et, nt, yt, kt, Tt, Ft, Yt, Gt, Ut, Kt, _o, Yo, Go, Uo, Ko, qo;
|
|
5043
5043
|
const { t: d } = We("common"), i = be(), f = ke(), g = xe(), u = ve(), x = yo(), { sdk: m, userIsLoggedIn: h } = gt();
|
|
5044
5044
|
zt($t);
|
|
5045
|
-
const { ensureConsents: b, modal: v } =
|
|
5045
|
+
const { ensureConsents: b, modal: v } = Hi(), y = !!t, {
|
|
5046
5046
|
games: C,
|
|
5047
5047
|
loading: L,
|
|
5048
5048
|
error: k
|
|
5049
|
-
} = jo(m, t == null ? void 0 : t.gameIds, y), I = Ce(() =>
|
|
5049
|
+
} = jo(m, t == null ? void 0 : t.gameIds, y), I = Ce(() => Vi(C), [C]), w = Ce(() => _i(I), [I]), R = Ce(
|
|
5050
5050
|
() => I.current ? I.previous.length : Math.max(0, w.length - 1),
|
|
5051
5051
|
[I, w.length]
|
|
5052
5052
|
), [z, W] = P(R), E = je(R);
|
|
@@ -5059,7 +5059,7 @@ const qi = ({
|
|
|
5059
5059
|
), X = de(
|
|
5060
5060
|
() => W((ee) => Math.min(w.length - 1, ee + 1)),
|
|
5061
5061
|
[w.length]
|
|
5062
|
-
), $ = w[z] ?? null, T = Ce(() => $ ? $.fixtures.map((ee) =>
|
|
5062
|
+
), $ = w[z] ?? null, T = Ce(() => $ ? $.fixtures.map((ee) => Gi(ee.matchModel)).sort(
|
|
5063
5063
|
(ee, fe) => new Date(ee.kickoffAt).getTime() - new Date(fe.kickoffAt).getTime()
|
|
5064
5064
|
) : [], [$]), [F, H] = P(/* @__PURE__ */ new Map()), [Q, M] = P(!1), [B, N] = P(
|
|
5065
5065
|
/* @__PURE__ */ new Map()
|
|
@@ -5139,7 +5139,7 @@ const qi = ({
|
|
|
5139
5139
|
Et.set(ft, { home: Ze.homeScore, away: Ze.awayScore });
|
|
5140
5140
|
});
|
|
5141
5141
|
else {
|
|
5142
|
-
const Ze =
|
|
5142
|
+
const Ze = Fa($.id);
|
|
5143
5143
|
if (Ze) {
|
|
5144
5144
|
for (const [ft, It] of Object.entries(Ze.scores))
|
|
5145
5145
|
It && typeof It.home == "number" && typeof It.away == "number" && Et.set(ft, {
|
|
@@ -5327,7 +5327,7 @@ const qi = ({
|
|
|
5327
5327
|
Lo($.id);
|
|
5328
5328
|
return;
|
|
5329
5329
|
}
|
|
5330
|
-
|
|
5330
|
+
Ea($.id, {
|
|
5331
5331
|
scores: Object.fromEntries(B),
|
|
5332
5332
|
goldenGoal: D
|
|
5333
5333
|
});
|
|
@@ -5440,7 +5440,7 @@ const qi = ({
|
|
|
5440
5440
|
},
|
|
5441
5441
|
children: [
|
|
5442
5442
|
/* @__PURE__ */ e(
|
|
5443
|
-
|
|
5443
|
+
ya,
|
|
5444
5444
|
{
|
|
5445
5445
|
games: w,
|
|
5446
5446
|
gameIndex: z,
|
|
@@ -5451,7 +5451,7 @@ const qi = ({
|
|
|
5451
5451
|
}
|
|
5452
5452
|
),
|
|
5453
5453
|
n && ($ == null ? void 0 : $.status) === "OPEN" && $.predictionsCutoff && /* @__PURE__ */ e(
|
|
5454
|
-
|
|
5454
|
+
Ca,
|
|
5455
5455
|
{
|
|
5456
5456
|
predictionsCutoff: $.predictionsCutoff
|
|
5457
5457
|
}
|
|
@@ -5511,7 +5511,7 @@ const qi = ({
|
|
|
5511
5511
|
away: (fe == null ? void 0 : fe.awayScore) ?? 0
|
|
5512
5512
|
};
|
|
5513
5513
|
return /* @__PURE__ */ e(
|
|
5514
|
-
|
|
5514
|
+
pa,
|
|
5515
5515
|
{
|
|
5516
5516
|
match: ee,
|
|
5517
5517
|
existingPrediction: fe,
|
|
@@ -5556,7 +5556,7 @@ const qi = ({
|
|
|
5556
5556
|
},
|
|
5557
5557
|
children: [
|
|
5558
5558
|
(st = $ == null ? void 0 : $.tiebreaker) != null && st.timeTiebreaker ? /* @__PURE__ */ e(
|
|
5559
|
-
|
|
5559
|
+
ka,
|
|
5560
5560
|
{
|
|
5561
5561
|
value: D,
|
|
5562
5562
|
onChange: te,
|
|
@@ -5598,7 +5598,7 @@ const qi = ({
|
|
|
5598
5598
|
},
|
|
5599
5599
|
children: d("topX.play.submitButton")
|
|
5600
5600
|
}
|
|
5601
|
-
) : /* @__PURE__ */ e(
|
|
5601
|
+
) : /* @__PURE__ */ e($a, {})
|
|
5602
5602
|
}
|
|
5603
5603
|
)
|
|
5604
5604
|
]
|
|
@@ -5618,7 +5618,7 @@ const qi = ({
|
|
|
5618
5618
|
},
|
|
5619
5619
|
children: [
|
|
5620
5620
|
$.status === "SETTLED" && ((kt = $.tiebreaker) != null && kt.timeTiebreaker) && (Ve || ce) ? /* @__PURE__ */ e(
|
|
5621
|
-
|
|
5621
|
+
La,
|
|
5622
5622
|
{
|
|
5623
5623
|
actualMinute: (ce == null ? void 0 : ce.minute) ?? 0,
|
|
5624
5624
|
predictedMinute: F.size > 0 && D ? parseInt(D, 10) : null,
|
|
@@ -5631,7 +5631,7 @@ const qi = ({
|
|
|
5631
5631
|
}
|
|
5632
5632
|
) : /* @__PURE__ */ e(r, {}),
|
|
5633
5633
|
/* @__PURE__ */ e(
|
|
5634
|
-
|
|
5634
|
+
Sa,
|
|
5635
5635
|
{
|
|
5636
5636
|
matches: T,
|
|
5637
5637
|
predictions: F,
|
|
@@ -5842,7 +5842,7 @@ const qi = ({
|
|
|
5842
5842
|
] }),
|
|
5843
5843
|
/* @__PURE__ */ e(to, { notification: De, onClose: ct })
|
|
5844
5844
|
] });
|
|
5845
|
-
},
|
|
5845
|
+
}, Wa = ({
|
|
5846
5846
|
count: t = 10,
|
|
5847
5847
|
page: o = 1,
|
|
5848
5848
|
onChange: a,
|
|
@@ -5898,7 +5898,7 @@ const qi = ({
|
|
|
5898
5898
|
onClick: () => f(1),
|
|
5899
5899
|
disabled: i || o === 1,
|
|
5900
5900
|
sx: v(),
|
|
5901
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
5901
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(oi, { size: h }) })
|
|
5902
5902
|
}
|
|
5903
5903
|
),
|
|
5904
5904
|
/* @__PURE__ */ e(
|
|
@@ -5910,7 +5910,7 @@ const qi = ({
|
|
|
5910
5910
|
onClick: () => f(o - 1),
|
|
5911
5911
|
disabled: i || o === 1,
|
|
5912
5912
|
sx: v(),
|
|
5913
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
5913
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(ni, { size: h }) })
|
|
5914
5914
|
}
|
|
5915
5915
|
),
|
|
5916
5916
|
x.map((y, C) => {
|
|
@@ -5955,7 +5955,7 @@ const qi = ({
|
|
|
5955
5955
|
onClick: () => f(o + 1),
|
|
5956
5956
|
disabled: i || o === t,
|
|
5957
5957
|
sx: v(),
|
|
5958
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
5958
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(ii, { size: h }) })
|
|
5959
5959
|
}
|
|
5960
5960
|
),
|
|
5961
5961
|
l && /* @__PURE__ */ e(
|
|
@@ -5967,13 +5967,13 @@ const qi = ({
|
|
|
5967
5967
|
onClick: () => f(t),
|
|
5968
5968
|
disabled: i || o === t,
|
|
5969
5969
|
sx: v(),
|
|
5970
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(
|
|
5970
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ e(ri, { size: h }) })
|
|
5971
5971
|
}
|
|
5972
5972
|
)
|
|
5973
5973
|
]
|
|
5974
5974
|
}
|
|
5975
5975
|
);
|
|
5976
|
-
},
|
|
5976
|
+
}, Xa = ({
|
|
5977
5977
|
size: t = 16,
|
|
5978
5978
|
color: o = "currentColor"
|
|
5979
5979
|
}) => /* @__PURE__ */ e(
|
|
@@ -6010,7 +6010,7 @@ const qi = ({
|
|
|
6010
6010
|
Number.isFinite(n) && n > 0 && (n < o && (o = n), n > a && (a = n));
|
|
6011
6011
|
}
|
|
6012
6012
|
return Number.isFinite(o) ? { min: o, max: a } : { min: 0, max: 0 };
|
|
6013
|
-
},
|
|
6013
|
+
}, Aa = ({
|
|
6014
6014
|
scope: t,
|
|
6015
6015
|
onChange: o,
|
|
6016
6016
|
settledGames: a
|
|
@@ -6161,7 +6161,7 @@ const qi = ({
|
|
|
6161
6161
|
transition: "transform 0.18s ease",
|
|
6162
6162
|
transform: f ? "rotate(180deg)" : "rotate(0deg)"
|
|
6163
6163
|
},
|
|
6164
|
-
children: /* @__PURE__ */ e(
|
|
6164
|
+
children: /* @__PURE__ */ e(Xa, { size: 18 })
|
|
6165
6165
|
}
|
|
6166
6166
|
)
|
|
6167
6167
|
]
|
|
@@ -6321,7 +6321,7 @@ const qi = ({
|
|
|
6321
6321
|
}
|
|
6322
6322
|
)
|
|
6323
6323
|
] });
|
|
6324
|
-
}, gr = 10,
|
|
6324
|
+
}, gr = 10, Ba = ({ template: t }) => {
|
|
6325
6325
|
var K, Y;
|
|
6326
6326
|
const { t: o } = We("common"), a = be(), s = xe(), c = ve(), n = ke(), l = cn(), d = $r(), { entityId: i, sdk: f, userIsLoggedIn: g } = gt(), u = ((Y = (K = a.palette) == null ? void 0 : K.primary) == null ? void 0 : Y.plainColor) ?? a.textPrimary, x = l.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, R] = P(!0), [z, W] = P(null), [E, A] = P(1), [X, $] = P(1), [T, F] = P("general"), { games: H } = jo(f, t == null ? void 0 : t.gameIds, !!t), Q = Ce(
|
|
6327
6327
|
() => H.filter((V) => V.status === "SETTLED"),
|
|
@@ -6507,7 +6507,7 @@ const qi = ({
|
|
|
6507
6507
|
}
|
|
6508
6508
|
}, B = k != null && v.some((V) => V.profileId === k), N = Q.length > 0;
|
|
6509
6509
|
let j;
|
|
6510
|
-
return w ? j = /* @__PURE__ */ e(
|
|
6510
|
+
return w ? j = /* @__PURE__ */ e(ti, { my: 10 }) : z ? j = /* @__PURE__ */ e(S, { level: "body-lg", sx: M.noLeaderboardText, children: o("topX.errors.loadFailed") }) : v.length === 0 ? j = /* @__PURE__ */ e(S, { level: "body-lg", sx: M.noLeaderboardText, children: o("leaderboard.noLeaderboardAvailable") }) : j = /* @__PURE__ */ p(Ee, { children: [
|
|
6511
6511
|
/* @__PURE__ */ e(Eo, { sx: M.tableContainer, children: /* @__PURE__ */ p(
|
|
6512
6512
|
Po,
|
|
6513
6513
|
{
|
|
@@ -6568,7 +6568,7 @@ const qi = ({
|
|
|
6568
6568
|
}
|
|
6569
6569
|
) }),
|
|
6570
6570
|
X > 1 && /* @__PURE__ */ e(
|
|
6571
|
-
|
|
6571
|
+
Wa,
|
|
6572
6572
|
{
|
|
6573
6573
|
count: X,
|
|
6574
6574
|
page: E,
|
|
@@ -6586,7 +6586,7 @@ const qi = ({
|
|
|
6586
6586
|
},
|
|
6587
6587
|
children: [
|
|
6588
6588
|
N && /* @__PURE__ */ e(
|
|
6589
|
-
|
|
6589
|
+
Aa,
|
|
6590
6590
|
{
|
|
6591
6591
|
scope: T,
|
|
6592
6592
|
onChange: F,
|
|
@@ -6597,7 +6597,7 @@ const qi = ({
|
|
|
6597
6597
|
]
|
|
6598
6598
|
}
|
|
6599
6599
|
);
|
|
6600
|
-
},
|
|
6600
|
+
}, Da = (t) => t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th", Ma = ({
|
|
6601
6601
|
league: t,
|
|
6602
6602
|
onClick: o,
|
|
6603
6603
|
isAdmin: a = !1,
|
|
@@ -6808,7 +6808,7 @@ const qi = ({
|
|
|
6808
6808
|
},
|
|
6809
6809
|
children: [
|
|
6810
6810
|
t.userPosition,
|
|
6811
|
-
|
|
6811
|
+
Da(t.userPosition)
|
|
6812
6812
|
]
|
|
6813
6813
|
}
|
|
6814
6814
|
)
|
|
@@ -7009,7 +7009,7 @@ const qi = ({
|
|
|
7009
7009
|
]
|
|
7010
7010
|
}
|
|
7011
7011
|
);
|
|
7012
|
-
},
|
|
7012
|
+
}, Na = Pe.memo(Ma), Ha = ({ index: t = 0 }) => {
|
|
7013
7013
|
const o = be(), a = xe(), s = ve(), c = t % 3 === 1 ? "150ms" : t % 3 === 2 ? "300ms" : "0ms", n = o.surfaceVariant, l = o.surfaceVariant + "80";
|
|
7014
7014
|
return /* @__PURE__ */ p(
|
|
7015
7015
|
r,
|
|
@@ -7098,7 +7098,7 @@ const qi = ({
|
|
|
7098
7098
|
]
|
|
7099
7099
|
}
|
|
7100
7100
|
);
|
|
7101
|
-
},
|
|
7101
|
+
}, Oa = Pe.memo(Ha), ja = ({
|
|
7102
7102
|
leagues: t,
|
|
7103
7103
|
activeId: o,
|
|
7104
7104
|
onSelect: a,
|
|
@@ -7490,7 +7490,7 @@ const qi = ({
|
|
|
7490
7490
|
)
|
|
7491
7491
|
] })
|
|
7492
7492
|
] });
|
|
7493
|
-
},
|
|
7493
|
+
}, Va = Pe.memo(ja), _a = ({
|
|
7494
7494
|
open: t,
|
|
7495
7495
|
onClose: o,
|
|
7496
7496
|
title: a,
|
|
@@ -7594,7 +7594,7 @@ const qi = ({
|
|
|
7594
7594
|
)
|
|
7595
7595
|
}
|
|
7596
7596
|
);
|
|
7597
|
-
}, bo = Pe.memo(
|
|
7597
|
+
}, bo = Pe.memo(_a), Ya = ({ rounds: t, transparent: o = !1, loading: a = !1 }) => {
|
|
7598
7598
|
var T, F, H, Q;
|
|
7599
7599
|
const s = Rr(), [c, n] = P(null), { t: l } = We("common"), d = be(), i = xe(), f = ve(), g = ke(), u = ((F = (T = d.palette) == null ? void 0 : T.primary) == null ? void 0 : F.plainColor) ?? "#1A77D2", x = ((Q = (H = d.palette) == null ? void 0 : H.success) == null ? void 0 : Q.plainColor) ?? "#4CAF50", m = d.textSecondary ?? "#757575", h = d.textTertiary ?? d.textSecondary ?? "#9E9E9E", b = d.surfaceVariant ?? d.surface ?? "#F5F5F5", v = d.outlineEnabledBorder ?? "#E0E0E0", y = t.slice(-5), C = {
|
|
7600
7600
|
display: "flex",
|
|
@@ -7820,7 +7820,7 @@ function $o({ outcome: t, color: o }) {
|
|
|
7820
7820
|
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
7821
7821
|
] }) : null;
|
|
7822
7822
|
}
|
|
7823
|
-
function
|
|
7823
|
+
function Ga({
|
|
7824
7824
|
outcome: t,
|
|
7825
7825
|
successColor: o,
|
|
7826
7826
|
warningColor: a,
|
|
@@ -7894,7 +7894,7 @@ function Ro({
|
|
|
7894
7894
|
onTouchStart: () => A(V),
|
|
7895
7895
|
onTouchEnd: () => setTimeout(() => L(null), 2500),
|
|
7896
7896
|
children: /* @__PURE__ */ e(
|
|
7897
|
-
|
|
7897
|
+
Ga,
|
|
7898
7898
|
{
|
|
7899
7899
|
outcome: Y.outcome,
|
|
7900
7900
|
successColor: c,
|
|
@@ -8041,7 +8041,7 @@ function Ro({
|
|
|
8041
8041
|
)
|
|
8042
8042
|
] });
|
|
8043
8043
|
}
|
|
8044
|
-
const
|
|
8044
|
+
const Ua = ({
|
|
8045
8045
|
loading: t = !1,
|
|
8046
8046
|
formMatches: o,
|
|
8047
8047
|
selfFormMatches: a = [],
|
|
@@ -8239,7 +8239,7 @@ const qa = ({
|
|
|
8239
8239
|
}
|
|
8240
8240
|
);
|
|
8241
8241
|
}, Bo = 22, yr = 2 * Math.PI * Bo, Zt = 24, co = 2 * Math.PI * Zt;
|
|
8242
|
-
function
|
|
8242
|
+
function Ka({
|
|
8243
8243
|
loading: t = !1,
|
|
8244
8244
|
accuracy: o,
|
|
8245
8245
|
streak: a,
|
|
@@ -8833,7 +8833,7 @@ function Ja({
|
|
|
8833
8833
|
)
|
|
8834
8834
|
] });
|
|
8835
8835
|
}
|
|
8836
|
-
function
|
|
8836
|
+
function qa({
|
|
8837
8837
|
filters: t,
|
|
8838
8838
|
counts: o,
|
|
8839
8839
|
activeFilter: a,
|
|
@@ -8959,7 +8959,7 @@ function Za({
|
|
|
8959
8959
|
}
|
|
8960
8960
|
);
|
|
8961
8961
|
}
|
|
8962
|
-
function
|
|
8962
|
+
function Ja(t, o) {
|
|
8963
8963
|
if (!t || !o) return 0;
|
|
8964
8964
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
8965
8965
|
const a = (s, c) => s > c ? "H" : s < c ? "A" : "D";
|
|
@@ -9007,11 +9007,11 @@ function Sr({
|
|
|
9007
9007
|
flexShrink: 0,
|
|
9008
9008
|
boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.06)"
|
|
9009
9009
|
},
|
|
9010
|
-
children: /* @__PURE__ */ e(
|
|
9010
|
+
children: /* @__PURE__ */ e(En, { sx: { fontSize: a * 0.6, color: "#5A6473" } })
|
|
9011
9011
|
}
|
|
9012
9012
|
);
|
|
9013
9013
|
}
|
|
9014
|
-
function
|
|
9014
|
+
function Za({
|
|
9015
9015
|
home: t,
|
|
9016
9016
|
away: o,
|
|
9017
9017
|
color: a,
|
|
@@ -9054,7 +9054,7 @@ function es({
|
|
|
9054
9054
|
}
|
|
9055
9055
|
);
|
|
9056
9056
|
}
|
|
9057
|
-
function
|
|
9057
|
+
function Qa({
|
|
9058
9058
|
matches: t,
|
|
9059
9059
|
successColor: o,
|
|
9060
9060
|
warningColor: a,
|
|
@@ -9111,7 +9111,7 @@ function ts({
|
|
|
9111
9111
|
}
|
|
9112
9112
|
);
|
|
9113
9113
|
}
|
|
9114
|
-
const
|
|
9114
|
+
const es = Pe.memo(function({
|
|
9115
9115
|
label: o,
|
|
9116
9116
|
matches: a,
|
|
9117
9117
|
isOpen: s,
|
|
@@ -9251,7 +9251,7 @@ const os = Pe.memo(function({
|
|
|
9251
9251
|
pointerEvents: "none"
|
|
9252
9252
|
},
|
|
9253
9253
|
children: /* @__PURE__ */ e(
|
|
9254
|
-
|
|
9254
|
+
Qa,
|
|
9255
9255
|
{
|
|
9256
9256
|
matches: a,
|
|
9257
9257
|
successColor: x,
|
|
@@ -9411,7 +9411,7 @@ const os = Pe.memo(function({
|
|
|
9411
9411
|
}
|
|
9412
9412
|
);
|
|
9413
9413
|
});
|
|
9414
|
-
function
|
|
9414
|
+
function ts({
|
|
9415
9415
|
match: t,
|
|
9416
9416
|
compareMode: o,
|
|
9417
9417
|
selfName: a,
|
|
@@ -9445,7 +9445,7 @@ function rs({
|
|
|
9445
9445
|
partial: `${l}18`,
|
|
9446
9446
|
incorrect: `${d}14`,
|
|
9447
9447
|
pending: x
|
|
9448
|
-
}[t.outcome], W = o && t.played ? t.selfPoints !== null ? t.selfPoints :
|
|
9448
|
+
}[t.outcome], W = o && t.played ? t.selfPoints !== null ? t.selfPoints : Ja(t.selfPrediction, t.result) : null, E = o && t.played ? t.points ?? 0 : null, A = t.played && W != null && E != null && W > E, X = t.played && W != null && E != null && E > W;
|
|
9449
9449
|
return /* @__PURE__ */ p(
|
|
9450
9450
|
r,
|
|
9451
9451
|
{
|
|
@@ -9744,7 +9744,7 @@ function rs({
|
|
|
9744
9744
|
}
|
|
9745
9745
|
),
|
|
9746
9746
|
t.prediction ? /* @__PURE__ */ e(
|
|
9747
|
-
|
|
9747
|
+
Za,
|
|
9748
9748
|
{
|
|
9749
9749
|
home: t.prediction.home,
|
|
9750
9750
|
away: t.prediction.away,
|
|
@@ -9808,7 +9808,7 @@ function rs({
|
|
|
9808
9808
|
}
|
|
9809
9809
|
),
|
|
9810
9810
|
t.outcome === "pending" && /* @__PURE__ */ e(
|
|
9811
|
-
|
|
9811
|
+
Fn,
|
|
9812
9812
|
{
|
|
9813
9813
|
sx: { fontSize: y ? 13 : 10, color: w }
|
|
9814
9814
|
}
|
|
@@ -10005,7 +10005,7 @@ function rs({
|
|
|
10005
10005
|
}
|
|
10006
10006
|
);
|
|
10007
10007
|
}
|
|
10008
|
-
function
|
|
10008
|
+
function os(t) {
|
|
10009
10009
|
const o = Date.now(), a = t.map((n) => {
|
|
10010
10010
|
const l = n.matches.map((d) => d.kickoffIso ? new Date(d.kickoffIso).getTime() : null).filter((d) => d !== null);
|
|
10011
10011
|
return {
|
|
@@ -10018,7 +10018,7 @@ function ns(t) {
|
|
|
10018
10018
|
const c = a.filter((n) => n.min > o).sort((n, l) => n.min - l.min);
|
|
10019
10019
|
return c.length > 0 ? c[0].round : t[0].round;
|
|
10020
10020
|
}
|
|
10021
|
-
function
|
|
10021
|
+
function rs({
|
|
10022
10022
|
groups: t,
|
|
10023
10023
|
loading: o,
|
|
10024
10024
|
selfName: a,
|
|
@@ -10058,7 +10058,7 @@ function is({
|
|
|
10058
10058
|
const T = $.current === 0;
|
|
10059
10059
|
if ($.current = t.length, t.length !== 0)
|
|
10060
10060
|
if (T)
|
|
10061
|
-
z(/* @__PURE__ */ new Set([
|
|
10061
|
+
z(/* @__PURE__ */ new Set([os(t)]));
|
|
10062
10062
|
else {
|
|
10063
10063
|
const F = t[0].round;
|
|
10064
10064
|
z(
|
|
@@ -10264,7 +10264,7 @@ function is({
|
|
|
10264
10264
|
},
|
|
10265
10265
|
children: [
|
|
10266
10266
|
/* @__PURE__ */ e(
|
|
10267
|
-
|
|
10267
|
+
es,
|
|
10268
10268
|
{
|
|
10269
10269
|
label: T.label,
|
|
10270
10270
|
matches: T.matches,
|
|
@@ -10295,50 +10295,36 @@ function is({
|
|
|
10295
10295
|
compareTooltip: I("topX.userPredictions.compareWith")
|
|
10296
10296
|
}
|
|
10297
10297
|
),
|
|
10298
|
-
/* @__PURE__ */ e(
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10298
|
+
F && /* @__PURE__ */ e(r, { children: T.matches.map((H) => {
|
|
10299
|
+
var Q;
|
|
10300
|
+
return /* @__PURE__ */ e(
|
|
10301
|
+
ts,
|
|
10302
|
+
{
|
|
10303
|
+
match: H,
|
|
10304
|
+
compareMode: !w && W.has(T.round),
|
|
10305
|
+
selfName: a,
|
|
10306
|
+
theirName: s,
|
|
10307
|
+
primaryColor: l,
|
|
10308
|
+
successColor: d,
|
|
10309
|
+
warningColor: i,
|
|
10310
|
+
dangerColor: f,
|
|
10311
|
+
textPrimary: g,
|
|
10312
|
+
textSecondary: u,
|
|
10313
|
+
textTertiary: x,
|
|
10314
|
+
outlineEnabledBorder: m,
|
|
10315
|
+
outlineEnabledBorderSoft: h,
|
|
10316
|
+
surfaceVariant: v,
|
|
10317
|
+
fonts: y,
|
|
10318
|
+
spacing: C,
|
|
10319
|
+
radius: L,
|
|
10320
|
+
outcomeLabel: c[H.outcome] ?? "",
|
|
10321
|
+
isMobile: k,
|
|
10322
|
+
matchOdds: ((Q = n == null ? void 0 : n.get(H.matchId)) == null ? void 0 : Q[0]) ?? null,
|
|
10323
|
+
t: I
|
|
10307
10324
|
},
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
return /* @__PURE__ */ e(
|
|
10312
|
-
rs,
|
|
10313
|
-
{
|
|
10314
|
-
match: H,
|
|
10315
|
-
compareMode: !w && W.has(T.round),
|
|
10316
|
-
selfName: a,
|
|
10317
|
-
theirName: s,
|
|
10318
|
-
primaryColor: l,
|
|
10319
|
-
successColor: d,
|
|
10320
|
-
warningColor: i,
|
|
10321
|
-
dangerColor: f,
|
|
10322
|
-
textPrimary: g,
|
|
10323
|
-
textSecondary: u,
|
|
10324
|
-
textTertiary: x,
|
|
10325
|
-
outlineEnabledBorder: m,
|
|
10326
|
-
outlineEnabledBorderSoft: h,
|
|
10327
|
-
surfaceVariant: v,
|
|
10328
|
-
fonts: y,
|
|
10329
|
-
spacing: C,
|
|
10330
|
-
radius: L,
|
|
10331
|
-
outcomeLabel: c[H.outcome] ?? "",
|
|
10332
|
-
isMobile: k,
|
|
10333
|
-
matchOdds: ((Q = n == null ? void 0 : n.get(H.matchId)) == null ? void 0 : Q[0]) ?? null,
|
|
10334
|
-
t: I
|
|
10335
|
-
},
|
|
10336
|
-
H.id
|
|
10337
|
-
);
|
|
10338
|
-
})
|
|
10339
|
-
},
|
|
10340
|
-
`content-${T.round}`
|
|
10341
|
-
) })
|
|
10325
|
+
H.id
|
|
10326
|
+
);
|
|
10327
|
+
}) })
|
|
10342
10328
|
]
|
|
10343
10329
|
},
|
|
10344
10330
|
T.round
|
|
@@ -10388,7 +10374,7 @@ function Cr({ name: t, avatarUrl: o, size: a, ring: s }) {
|
|
|
10388
10374
|
}
|
|
10389
10375
|
);
|
|
10390
10376
|
}
|
|
10391
|
-
const
|
|
10377
|
+
const ns = ({
|
|
10392
10378
|
h2h: t,
|
|
10393
10379
|
selfName: o,
|
|
10394
10380
|
selfAvatar: a,
|
|
@@ -10624,7 +10610,7 @@ function Gr(t) {
|
|
|
10624
10610
|
function Ur(t) {
|
|
10625
10611
|
return t === "CORRECT" ? "correct" : t === "PARTIALLY_CORRECT" ? "partial" : t === "INCORRECT" ? "incorrect" : "pending";
|
|
10626
10612
|
}
|
|
10627
|
-
function
|
|
10613
|
+
function is(t, o) {
|
|
10628
10614
|
if (!t) return { kickoff: "", dateLabel: "" };
|
|
10629
10615
|
try {
|
|
10630
10616
|
const a = new Date(t), s = a.toLocaleTimeString(eo(o), {
|
|
@@ -10650,7 +10636,7 @@ function Kr(t) {
|
|
|
10650
10636
|
}
|
|
10651
10637
|
return Number.isFinite(o) ? o : 0;
|
|
10652
10638
|
}
|
|
10653
|
-
function
|
|
10639
|
+
function as(t, o, a, s) {
|
|
10654
10640
|
const c = [];
|
|
10655
10641
|
return t.forEach((n) => {
|
|
10656
10642
|
var u, x;
|
|
@@ -10658,7 +10644,7 @@ function ls(t, o, a, s) {
|
|
|
10658
10644
|
let g = Kr(i);
|
|
10659
10645
|
g === 0 && d && (g = String(d).split("").reduce((m, h) => m * 31 + h.charCodeAt(0) >>> 0, 0)), l.forEach((m) => {
|
|
10660
10646
|
var W, E, A, X, $, T, F, H, Q, M, B, N, j, K, Y, V, se, ne, D, te, pe, le, ge, ce, we, Ve, Xe;
|
|
10661
|
-
const h = m.matchId ?? ((W = m.matchModel) == null ? void 0 : W.id) ?? String(Math.random()), b = `${n.predictionId}::${h}`, v = Gr((E = m.prediction) == null ? void 0 : E.value), y = Ur((A = m.result) == null ? void 0 : A.outcome), C = y !== "pending", L = ((T = ($ = (X = m.matchModel) == null ? void 0 : X.scores) == null ? void 0 : $.ftScore) == null ? void 0 : T.homeGoals) ?? null, k = ((Q = (H = (F = m.matchModel) == null ? void 0 : F.scores) == null ? void 0 : H.ftScore) == null ? void 0 : Q.awayGoals) ?? null, I = C && L != null && k != null ? { home: L, away: k } : null, w = ((M = m.matchModel) == null ? void 0 : M.kickoffAt) ?? null, { kickoff: R, dateLabel: z } =
|
|
10647
|
+
const h = m.matchId ?? ((W = m.matchModel) == null ? void 0 : W.id) ?? String(Math.random()), b = `${n.predictionId}::${h}`, v = Gr((E = m.prediction) == null ? void 0 : E.value), y = Ur((A = m.result) == null ? void 0 : A.outcome), C = y !== "pending", L = ((T = ($ = (X = m.matchModel) == null ? void 0 : X.scores) == null ? void 0 : $.ftScore) == null ? void 0 : T.homeGoals) ?? null, k = ((Q = (H = (F = m.matchModel) == null ? void 0 : F.scores) == null ? void 0 : H.ftScore) == null ? void 0 : Q.awayGoals) ?? null, I = C && L != null && k != null ? { home: L, away: k } : null, w = ((M = m.matchModel) == null ? void 0 : M.kickoffAt) ?? null, { kickoff: R, dateLabel: z } = is(w, s);
|
|
10662
10648
|
c.push({
|
|
10663
10649
|
id: b,
|
|
10664
10650
|
matchId: h,
|
|
@@ -10689,7 +10675,7 @@ function ls(t, o, a, s) {
|
|
|
10689
10675
|
});
|
|
10690
10676
|
}), c;
|
|
10691
10677
|
}
|
|
10692
|
-
function
|
|
10678
|
+
function ss(t) {
|
|
10693
10679
|
const o = /* @__PURE__ */ new Map();
|
|
10694
10680
|
return t.forEach((a) => {
|
|
10695
10681
|
var c;
|
|
@@ -10704,7 +10690,7 @@ function cs(t) {
|
|
|
10704
10690
|
});
|
|
10705
10691
|
}), o;
|
|
10706
10692
|
}
|
|
10707
|
-
function
|
|
10693
|
+
function ls(t) {
|
|
10708
10694
|
const o = /* @__PURE__ */ new Map();
|
|
10709
10695
|
return t.forEach((a) => {
|
|
10710
10696
|
if (!a.played) return;
|
|
@@ -10715,7 +10701,7 @@ function ds(t) {
|
|
|
10715
10701
|
correct: 0,
|
|
10716
10702
|
partial: 0,
|
|
10717
10703
|
incorrect: 0
|
|
10718
|
-
}, c = a.points != null ? a.points : a.prediction && a.result ?
|
|
10704
|
+
}, c = a.points != null ? a.points : a.prediction && a.result ? us(a.prediction, a.result) : 0;
|
|
10719
10705
|
o.set(a.round, {
|
|
10720
10706
|
...s,
|
|
10721
10707
|
pts: s.pts + c,
|
|
@@ -10725,8 +10711,8 @@ function ds(t) {
|
|
|
10725
10711
|
});
|
|
10726
10712
|
}), [...o.values()].sort((a, s) => a.round - s.round);
|
|
10727
10713
|
}
|
|
10728
|
-
function
|
|
10729
|
-
const o =
|
|
10714
|
+
function cs(t) {
|
|
10715
|
+
const o = ls(t), a = o.reduce(
|
|
10730
10716
|
(u, x) => ({
|
|
10731
10717
|
correct: u.correct + x.correct,
|
|
10732
10718
|
partial: u.partial + x.partial,
|
|
@@ -10750,7 +10736,7 @@ function ps(t) {
|
|
|
10750
10736
|
avgPts: g
|
|
10751
10737
|
};
|
|
10752
10738
|
}
|
|
10753
|
-
function
|
|
10739
|
+
function ds(t) {
|
|
10754
10740
|
const o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
10755
10741
|
t.forEach((l) => {
|
|
10756
10742
|
if (!l.played) return;
|
|
@@ -10763,7 +10749,7 @@ function us(t) {
|
|
|
10763
10749
|
l > i ? s++ : i > l ? c++ : n++;
|
|
10764
10750
|
}), { selfBetter: s, theyBetter: c, tied: n };
|
|
10765
10751
|
}
|
|
10766
|
-
function
|
|
10752
|
+
function ps(t) {
|
|
10767
10753
|
const o = t.filter(
|
|
10768
10754
|
(h) => h.played && h.selfPrediction != null && h.selfOutcome != null && h.selfOutcome !== "pending"
|
|
10769
10755
|
), a = o.filter((h) => h.selfOutcome === "correct").length, s = o.filter((h) => h.selfOutcome === "partial").length, c = o.length, n = c > 0 ? Math.round((a + s * 0.4) / c * 100) : 0, l = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
@@ -10785,12 +10771,12 @@ function ms(t) {
|
|
|
10785
10771
|
const g = l.size > 0 ? Math.max(...l.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;
|
|
10786
10772
|
return { accuracy: n, streak: f, bestRoundPts: g, avgPts: x, total: m };
|
|
10787
10773
|
}
|
|
10788
|
-
function
|
|
10774
|
+
function us(t, o) {
|
|
10789
10775
|
if (t.home === o.home && t.away === o.away) return 5;
|
|
10790
10776
|
const a = (s, c) => s > c ? "H" : s < c ? "A" : "D";
|
|
10791
10777
|
return a(t.home, t.away) === a(o.home, o.away) ? 2 : 0;
|
|
10792
10778
|
}
|
|
10793
|
-
function
|
|
10779
|
+
function ms(t, o = 900) {
|
|
10794
10780
|
const [a, s] = P(0);
|
|
10795
10781
|
return me(() => {
|
|
10796
10782
|
let c, n = null;
|
|
@@ -10802,7 +10788,7 @@ function xs(t, o = 900) {
|
|
|
10802
10788
|
return c = requestAnimationFrame(l), () => cancelAnimationFrame(c);
|
|
10803
10789
|
}, [t, o]), a;
|
|
10804
10790
|
}
|
|
10805
|
-
function
|
|
10791
|
+
function fs({
|
|
10806
10792
|
name: t,
|
|
10807
10793
|
avatarUrl: o,
|
|
10808
10794
|
size: a
|
|
@@ -10841,7 +10827,7 @@ function hs({
|
|
|
10841
10827
|
}
|
|
10842
10828
|
);
|
|
10843
10829
|
}
|
|
10844
|
-
const
|
|
10830
|
+
const xs = ({
|
|
10845
10831
|
open: t,
|
|
10846
10832
|
onClose: o,
|
|
10847
10833
|
leagueId: a,
|
|
@@ -10867,7 +10853,7 @@ const gs = ({
|
|
|
10867
10853
|
const oe = /* @__PURE__ */ new Map();
|
|
10868
10854
|
return W.forEach((ye) => oe.set(ye.id, ye)), oe;
|
|
10869
10855
|
}, [W]), A = ((st = (Ge = v.palette) == null ? void 0 : Ge.primary) == null ? void 0 : st.plainColor) ?? "#1A77D2", X = ((Ht = (it = v.palette) == null ? void 0 : it.success) == null ? void 0 : Ht.plainColor) ?? "#4CAF50", $ = ((jt = (Ot = v.palette) == null ? void 0 : Ot.warning) == null ? void 0 : jt.plainColor) ?? "#DC6803", T = ((_t = (Vt = v.palette) == null ? void 0 : Vt.danger) == null ? void 0 : _t.plainColor) ?? "#F44336", F = v.textPrimary ?? "#212121", H = v.textSecondary ?? "#757575", Q = v.textTertiary ?? v.textSecondary ?? "#9E9E9E", M = v.surface ?? "#FFFFFF", B = v.surfaceVariant ?? "#F5F5F5", N = v.outlineEnabledBorder ?? "#E0E0E0", j = `${N}88`, [K, Y] = P(/* @__PURE__ */ new Map()), [V, se] = P([]), [ne, D] = P(!1), [te, pe] = P("all"), [le, 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(
|
|
10870
|
-
() =>
|
|
10856
|
+
() => as(
|
|
10871
10857
|
V,
|
|
10872
10858
|
K,
|
|
10873
10859
|
E,
|
|
@@ -10956,7 +10942,7 @@ const gs = ({
|
|
|
10956
10942
|
Je.filter((nt) => nt.profileId === n)
|
|
10957
10943
|
), ut = !$e && u ? Re(
|
|
10958
10944
|
Je.filter((nt) => nt.profileId === u)
|
|
10959
|
-
) : dt, et =
|
|
10945
|
+
) : dt, et = ss(ut);
|
|
10960
10946
|
se(dt), Y(et);
|
|
10961
10947
|
} finally {
|
|
10962
10948
|
D(!1);
|
|
@@ -10976,7 +10962,7 @@ const gs = ({
|
|
|
10976
10962
|
sortKey: (et == null ? void 0 : et.sortKey) ?? ut
|
|
10977
10963
|
});
|
|
10978
10964
|
}), [...oe.values()].sort((ye, Re) => ye.sortKey - Re.sortKey).slice(-5).map(({ points: ye, label: Re }) => ({ points: ye, label: Re }));
|
|
10979
|
-
}, [V, E]), ie = Ce(() =>
|
|
10965
|
+
}, [V, E]), ie = Ce(() => cs(De), [De]), Le = Ce(() => $e || K.size === 0 ? null : ds(De), [De, K, $e]), he = Ce(() => $e ? null : ps(De), [De, $e]), _ = Ce(() => [...De].filter((oe) => oe.played).slice(-5), [De]), O = Ce(() => $e ? [] : _.map((oe) => {
|
|
10980
10966
|
const ye = oe.selfPrediction;
|
|
10981
10967
|
return !ye || !oe.result ? {
|
|
10982
10968
|
outcome: "pending",
|
|
@@ -11024,7 +11010,7 @@ const gs = ({
|
|
|
11024
11010
|
(at, Je) => (Je.kickoffIso ?? "") > (at.kickoffIso ?? "") ? 1 : (Je.kickoffIso ?? "") < (at.kickoffIso ?? "") ? -1 : 0
|
|
11025
11011
|
)
|
|
11026
11012
|
}));
|
|
11027
|
-
}, [ae]), Ke =
|
|
11013
|
+
}, [ae]), Ke = ms(f, 1100), qe = [
|
|
11028
11014
|
{ id: "all", label: b("topX.userPredictions.allFilter") },
|
|
11029
11015
|
{ id: "correct", label: b("topX.userPredictions.correctFilter") },
|
|
11030
11016
|
{ id: "partial", label: b("topX.userPredictions.partialFilter") },
|
|
@@ -11122,7 +11108,7 @@ const gs = ({
|
|
|
11122
11108
|
},
|
|
11123
11109
|
children: [
|
|
11124
11110
|
/* @__PURE__ */ e(
|
|
11125
|
-
|
|
11111
|
+
fs,
|
|
11126
11112
|
{
|
|
11127
11113
|
name: l,
|
|
11128
11114
|
id: n,
|
|
@@ -11325,7 +11311,7 @@ const gs = ({
|
|
|
11325
11311
|
}
|
|
11326
11312
|
),
|
|
11327
11313
|
/* @__PURE__ */ e(r, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
11328
|
-
|
|
11314
|
+
Ya,
|
|
11329
11315
|
{
|
|
11330
11316
|
rounds: J,
|
|
11331
11317
|
transparent: !0,
|
|
@@ -11336,7 +11322,7 @@ const gs = ({
|
|
|
11336
11322
|
}
|
|
11337
11323
|
),
|
|
11338
11324
|
/* @__PURE__ */ e(r, { sx: { mx: y.md }, children: /* @__PURE__ */ e(
|
|
11339
|
-
|
|
11325
|
+
Ua,
|
|
11340
11326
|
{
|
|
11341
11327
|
loading: ne,
|
|
11342
11328
|
formMatches: _,
|
|
@@ -11362,7 +11348,7 @@ const gs = ({
|
|
|
11362
11348
|
}
|
|
11363
11349
|
) }),
|
|
11364
11350
|
!$e && Le && /* @__PURE__ */ e(
|
|
11365
|
-
|
|
11351
|
+
ns,
|
|
11366
11352
|
{
|
|
11367
11353
|
h2h: Le,
|
|
11368
11354
|
selfName: x ?? b("topX.userPredictions.you"),
|
|
@@ -11375,7 +11361,7 @@ const gs = ({
|
|
|
11375
11361
|
)
|
|
11376
11362
|
] }),
|
|
11377
11363
|
le === "statistics" && /* @__PURE__ */ e(
|
|
11378
|
-
|
|
11364
|
+
Ka,
|
|
11379
11365
|
{
|
|
11380
11366
|
loading: ne,
|
|
11381
11367
|
accuracy: ie.accuracy,
|
|
@@ -11405,7 +11391,7 @@ const gs = ({
|
|
|
11405
11391
|
),
|
|
11406
11392
|
le === "predictions" && /* @__PURE__ */ p(Ee, { children: [
|
|
11407
11393
|
/* @__PURE__ */ e(
|
|
11408
|
-
|
|
11394
|
+
qa,
|
|
11409
11395
|
{
|
|
11410
11396
|
filters: qe,
|
|
11411
11397
|
counts: G,
|
|
@@ -11426,7 +11412,7 @@ const gs = ({
|
|
|
11426
11412
|
}
|
|
11427
11413
|
),
|
|
11428
11414
|
/* @__PURE__ */ e(
|
|
11429
|
-
|
|
11415
|
+
rs,
|
|
11430
11416
|
{
|
|
11431
11417
|
groups: Ye,
|
|
11432
11418
|
loading: ne,
|
|
@@ -11566,7 +11552,7 @@ const gs = ({
|
|
|
11566
11552
|
)
|
|
11567
11553
|
}
|
|
11568
11554
|
);
|
|
11569
|
-
},
|
|
11555
|
+
}, hs = ({
|
|
11570
11556
|
leagueId: t,
|
|
11571
11557
|
templateId: o,
|
|
11572
11558
|
leagueName: a,
|
|
@@ -12103,7 +12089,7 @@ const gs = ({
|
|
|
12103
12089
|
] });
|
|
12104
12090
|
})(),
|
|
12105
12091
|
/* @__PURE__ */ e(
|
|
12106
|
-
|
|
12092
|
+
xs,
|
|
12107
12093
|
{
|
|
12108
12094
|
open: z !== null,
|
|
12109
12095
|
onClose: () => W(null),
|
|
@@ -12123,7 +12109,7 @@ const gs = ({
|
|
|
12123
12109
|
}
|
|
12124
12110
|
)
|
|
12125
12111
|
] });
|
|
12126
|
-
},
|
|
12112
|
+
}, gs = ({
|
|
12127
12113
|
league: t,
|
|
12128
12114
|
leagueDetail: o,
|
|
12129
12115
|
loading: a,
|
|
@@ -12224,7 +12210,7 @@ const gs = ({
|
|
|
12224
12210
|
},
|
|
12225
12211
|
"&:active": { transform: "scale(0.92)" }
|
|
12226
12212
|
},
|
|
12227
|
-
children: /* @__PURE__ */ e(
|
|
12213
|
+
children: /* @__PURE__ */ e(ai, { sx: { fontSize: 15 } })
|
|
12228
12214
|
}
|
|
12229
12215
|
),
|
|
12230
12216
|
/* @__PURE__ */ e(
|
|
@@ -12274,7 +12260,7 @@ const gs = ({
|
|
|
12274
12260
|
"&:hover": { backgroundColor: L },
|
|
12275
12261
|
"&:active": { transform: "scale(0.92)" }
|
|
12276
12262
|
},
|
|
12277
|
-
children: /* @__PURE__ */ e(
|
|
12263
|
+
children: /* @__PURE__ */ e(Pn, { sx: { fontSize: 15 } })
|
|
12278
12264
|
}
|
|
12279
12265
|
)
|
|
12280
12266
|
}
|
|
@@ -12545,7 +12531,7 @@ const gs = ({
|
|
|
12545
12531
|
py: "5px"
|
|
12546
12532
|
},
|
|
12547
12533
|
children: [
|
|
12548
|
-
/* @__PURE__ */ e(
|
|
12534
|
+
/* @__PURE__ */ e(Wn, { sx: { fontSize: 12, color: k } }),
|
|
12549
12535
|
/* @__PURE__ */ p(
|
|
12550
12536
|
S,
|
|
12551
12537
|
{
|
|
@@ -12590,7 +12576,7 @@ const gs = ({
|
|
|
12590
12576
|
},
|
|
12591
12577
|
children: [
|
|
12592
12578
|
/* @__PURE__ */ e(
|
|
12593
|
-
|
|
12579
|
+
Xn,
|
|
12594
12580
|
{
|
|
12595
12581
|
sx: { fontSize: 14, color: y, flexShrink: 0, opacity: 0.7 }
|
|
12596
12582
|
}
|
|
@@ -12662,7 +12648,7 @@ const gs = ({
|
|
|
12662
12648
|
borderColor: I ? k : y
|
|
12663
12649
|
}
|
|
12664
12650
|
},
|
|
12665
|
-
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(
|
|
12651
|
+
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 15 } }) : /* @__PURE__ */ e(An, { sx: { fontSize: 15 } })
|
|
12666
12652
|
}
|
|
12667
12653
|
)
|
|
12668
12654
|
]
|
|
@@ -12671,7 +12657,7 @@ const gs = ({
|
|
|
12671
12657
|
]
|
|
12672
12658
|
}
|
|
12673
12659
|
);
|
|
12674
|
-
},
|
|
12660
|
+
}, ys = Pe.memo(gs), bs = ({
|
|
12675
12661
|
sdk: t,
|
|
12676
12662
|
leagueId: o,
|
|
12677
12663
|
existingMemberIds: a,
|
|
@@ -12761,7 +12747,7 @@ const gs = ({
|
|
|
12761
12747
|
borderBottom: `1px solid ${i.outlineEnabledBorder}`
|
|
12762
12748
|
},
|
|
12763
12749
|
children: [
|
|
12764
|
-
/* @__PURE__ */ e(
|
|
12750
|
+
/* @__PURE__ */ e(Bn, { sx: { fontSize: 16, color: x } }),
|
|
12765
12751
|
/* @__PURE__ */ e(
|
|
12766
12752
|
S,
|
|
12767
12753
|
{
|
|
@@ -13179,7 +13165,7 @@ const gs = ({
|
|
|
13179
13165
|
/* @__PURE__ */ e(
|
|
13180
13166
|
Ne,
|
|
13181
13167
|
{
|
|
13182
|
-
startDecorator: L ? void 0 : /* @__PURE__ */ e(
|
|
13168
|
+
startDecorator: L ? void 0 : /* @__PURE__ */ e(Dn, { sx: { fontSize: 14 } }),
|
|
13183
13169
|
loading: L,
|
|
13184
13170
|
disabled: y.length === 0,
|
|
13185
13171
|
onClick: N,
|
|
@@ -13204,7 +13190,7 @@ const gs = ({
|
|
|
13204
13190
|
]
|
|
13205
13191
|
}
|
|
13206
13192
|
) : null;
|
|
13207
|
-
},
|
|
13193
|
+
}, Ss = Pe.memo(bs), Cs = ({ checked: t, onChange: o, primaryColor: a }) => /* @__PURE__ */ e(
|
|
13208
13194
|
r,
|
|
13209
13195
|
{
|
|
13210
13196
|
component: "button",
|
|
@@ -13244,7 +13230,7 @@ const gs = ({
|
|
|
13244
13230
|
}
|
|
13245
13231
|
)
|
|
13246
13232
|
}
|
|
13247
|
-
),
|
|
13233
|
+
), vs = ({
|
|
13248
13234
|
open: t,
|
|
13249
13235
|
onClose: o,
|
|
13250
13236
|
sdk: a,
|
|
@@ -13478,7 +13464,7 @@ const gs = ({
|
|
|
13478
13464
|
)
|
|
13479
13465
|
] }),
|
|
13480
13466
|
/* @__PURE__ */ e(
|
|
13481
|
-
|
|
13467
|
+
Cs,
|
|
13482
13468
|
{
|
|
13483
13469
|
checked: I,
|
|
13484
13470
|
onChange: w,
|
|
@@ -13542,7 +13528,7 @@ const gs = ({
|
|
|
13542
13528
|
]
|
|
13543
13529
|
}
|
|
13544
13530
|
);
|
|
13545
|
-
},
|
|
13531
|
+
}, ks = Pe.memo(vs), ws = ({
|
|
13546
13532
|
open: t,
|
|
13547
13533
|
onClose: o,
|
|
13548
13534
|
sdk: a,
|
|
@@ -13770,7 +13756,7 @@ const gs = ({
|
|
|
13770
13756
|
]
|
|
13771
13757
|
}
|
|
13772
13758
|
);
|
|
13773
|
-
},
|
|
13759
|
+
}, Is = Pe.memo(ws), Ls = ({
|
|
13774
13760
|
targetId: t,
|
|
13775
13761
|
memberProfiles: o,
|
|
13776
13762
|
sdk: a,
|
|
@@ -13968,13 +13954,13 @@ const gs = ({
|
|
|
13968
13954
|
] })
|
|
13969
13955
|
}
|
|
13970
13956
|
);
|
|
13971
|
-
},
|
|
13957
|
+
}, zs = Pe.memo(Ls), $s = (t, o) => {
|
|
13972
13958
|
const a = o.get(t);
|
|
13973
13959
|
return (a == null ? void 0 : a.nickname) ?? (a == null ? void 0 : a.name) ?? t.slice(0, 8);
|
|
13974
|
-
},
|
|
13960
|
+
}, Rs = (t) => {
|
|
13975
13961
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
13976
13962
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
13977
|
-
},
|
|
13963
|
+
}, Ts = ({
|
|
13978
13964
|
leagueDetail: t,
|
|
13979
13965
|
memberProfiles: o,
|
|
13980
13966
|
loading: a,
|
|
@@ -14057,7 +14043,7 @@ const gs = ({
|
|
|
14057
14043
|
rowGap: x.xs
|
|
14058
14044
|
},
|
|
14059
14045
|
children: [
|
|
14060
|
-
/* @__PURE__ */ e(
|
|
14046
|
+
/* @__PURE__ */ e(Mn, { sx: { fontSize: 16, color: b } }),
|
|
14061
14047
|
/* @__PURE__ */ e(
|
|
14062
14048
|
S,
|
|
14063
14049
|
{
|
|
@@ -14143,7 +14129,7 @@ const gs = ({
|
|
|
14143
14129
|
))
|
|
14144
14130
|
}
|
|
14145
14131
|
) : /* @__PURE__ */ e(r, { sx: { maxHeight: "380px", overflowY: "auto" }, children: E.length > 0 ? E.map((B, N) => {
|
|
14146
|
-
const j = B === s, K = ((t == null ? void 0 : t.administrators) ?? []).includes(B), Y = o.get(B), V =
|
|
14132
|
+
const j = B === s, K = ((t == null ? void 0 : t.administrators) ?? []).includes(B), Y = o.get(B), V = $s(B, o), se = Rs(V), ne = c && !j;
|
|
14147
14133
|
return /* @__PURE__ */ p(
|
|
14148
14134
|
r,
|
|
14149
14135
|
{
|
|
@@ -14390,7 +14376,7 @@ const gs = ({
|
|
|
14390
14376
|
},
|
|
14391
14377
|
p: 0
|
|
14392
14378
|
},
|
|
14393
|
-
children: /* @__PURE__ */ e(
|
|
14379
|
+
children: /* @__PURE__ */ e(Nn, { sx: { fontSize: 15 } })
|
|
14394
14380
|
}
|
|
14395
14381
|
)
|
|
14396
14382
|
]
|
|
@@ -14431,7 +14417,7 @@ const gs = ({
|
|
|
14431
14417
|
}
|
|
14432
14418
|
),
|
|
14433
14419
|
/* @__PURE__ */ e(
|
|
14434
|
-
|
|
14420
|
+
zs,
|
|
14435
14421
|
{
|
|
14436
14422
|
targetId: w,
|
|
14437
14423
|
memberProfiles: o,
|
|
@@ -14443,13 +14429,13 @@ const gs = ({
|
|
|
14443
14429
|
}
|
|
14444
14430
|
)
|
|
14445
14431
|
] });
|
|
14446
|
-
},
|
|
14432
|
+
}, Fs = Pe.memo(Ts), Es = (t, o) => {
|
|
14447
14433
|
const a = o.get(t);
|
|
14448
14434
|
return (a == null ? void 0 : a.nickname) ?? (a == null ? void 0 : a.name) ?? t.slice(0, 8);
|
|
14449
|
-
},
|
|
14435
|
+
}, Ps = (t) => {
|
|
14450
14436
|
const o = t.trim().split(/\s+/).filter(Boolean);
|
|
14451
14437
|
return o.length ? o.length === 1 ? o[0].slice(0, 2).toUpperCase() : (o[0][0] + o[1][0]).toUpperCase() : "??";
|
|
14452
|
-
},
|
|
14438
|
+
}, Ws = ({
|
|
14453
14439
|
pendingInviteIds: t,
|
|
14454
14440
|
memberProfiles: o,
|
|
14455
14441
|
isAdmin: a,
|
|
@@ -14547,7 +14533,7 @@ const gs = ({
|
|
|
14547
14533
|
),
|
|
14548
14534
|
t.map((R, z) => {
|
|
14549
14535
|
var $, T, F, H, Q, M;
|
|
14550
|
-
const W = h === R, E = o.get(R), A =
|
|
14536
|
+
const W = h === R, E = o.get(R), A = Es(R, o), X = Ps(A);
|
|
14551
14537
|
return /* @__PURE__ */ p(
|
|
14552
14538
|
r,
|
|
14553
14539
|
{
|
|
@@ -14788,7 +14774,7 @@ const gs = ({
|
|
|
14788
14774
|
animation: "spin 0.7s linear infinite"
|
|
14789
14775
|
}
|
|
14790
14776
|
}
|
|
14791
|
-
) : /* @__PURE__ */ e(
|
|
14777
|
+
) : /* @__PURE__ */ e(Hn, { sx: { fontSize: 18, color: m } })
|
|
14792
14778
|
}
|
|
14793
14779
|
)
|
|
14794
14780
|
] })
|
|
@@ -14800,7 +14786,7 @@ const gs = ({
|
|
|
14800
14786
|
]
|
|
14801
14787
|
}
|
|
14802
14788
|
);
|
|
14803
|
-
},
|
|
14789
|
+
}, Xs = Pe.memo(Ws), As = on(() => import("./chunks/index-PC-q6Shn.js")), Bs = ({
|
|
14804
14790
|
league: t,
|
|
14805
14791
|
onBack: o,
|
|
14806
14792
|
onLeagueLeft: a,
|
|
@@ -15023,7 +15009,7 @@ const gs = ({
|
|
|
15023
15009
|
},
|
|
15024
15010
|
children: [
|
|
15025
15011
|
/* @__PURE__ */ e(
|
|
15026
|
-
|
|
15012
|
+
Va,
|
|
15027
15013
|
{
|
|
15028
15014
|
leagues: f ?? [],
|
|
15029
15015
|
activeId: t.id,
|
|
@@ -15033,7 +15019,7 @@ const gs = ({
|
|
|
15033
15019
|
}
|
|
15034
15020
|
),
|
|
15035
15021
|
/* @__PURE__ */ e(
|
|
15036
|
-
|
|
15022
|
+
ys,
|
|
15037
15023
|
{
|
|
15038
15024
|
league: t,
|
|
15039
15025
|
leagueDetail: w,
|
|
@@ -15177,7 +15163,7 @@ const gs = ({
|
|
|
15177
15163
|
}
|
|
15178
15164
|
),
|
|
15179
15165
|
children: /* @__PURE__ */ e(
|
|
15180
|
-
|
|
15166
|
+
As,
|
|
15181
15167
|
{
|
|
15182
15168
|
entityId: t.id,
|
|
15183
15169
|
sdk: v,
|
|
@@ -15191,7 +15177,7 @@ const gs = ({
|
|
|
15191
15177
|
) }),
|
|
15192
15178
|
H === "members" && /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: m.sm }, children: [
|
|
15193
15179
|
/* @__PURE__ */ e(
|
|
15194
|
-
|
|
15180
|
+
Fs,
|
|
15195
15181
|
{
|
|
15196
15182
|
leagueDetail: w,
|
|
15197
15183
|
memberProfiles: ne,
|
|
@@ -15206,7 +15192,7 @@ const gs = ({
|
|
|
15206
15192
|
}
|
|
15207
15193
|
),
|
|
15208
15194
|
/* @__PURE__ */ e(
|
|
15209
|
-
|
|
15195
|
+
Xs,
|
|
15210
15196
|
{
|
|
15211
15197
|
pendingInviteIds: V,
|
|
15212
15198
|
memberProfiles: ne,
|
|
@@ -15218,7 +15204,7 @@ const gs = ({
|
|
|
15218
15204
|
}
|
|
15219
15205
|
),
|
|
15220
15206
|
ot && /* @__PURE__ */ e(
|
|
15221
|
-
|
|
15207
|
+
Ss,
|
|
15222
15208
|
{
|
|
15223
15209
|
sdk: v,
|
|
15224
15210
|
leagueId: t.id,
|
|
@@ -15231,7 +15217,7 @@ const gs = ({
|
|
|
15231
15217
|
)
|
|
15232
15218
|
] }),
|
|
15233
15219
|
H === "standings" && /* @__PURE__ */ e(
|
|
15234
|
-
|
|
15220
|
+
hs,
|
|
15235
15221
|
{
|
|
15236
15222
|
leagueId: t.id,
|
|
15237
15223
|
templateId: t.templateId,
|
|
@@ -15241,7 +15227,7 @@ const gs = ({
|
|
|
15241
15227
|
}
|
|
15242
15228
|
),
|
|
15243
15229
|
/* @__PURE__ */ e(
|
|
15244
|
-
|
|
15230
|
+
ks,
|
|
15245
15231
|
{
|
|
15246
15232
|
open: te,
|
|
15247
15233
|
onClose: () => pe(!1),
|
|
@@ -15344,7 +15330,7 @@ const gs = ({
|
|
|
15344
15330
|
}
|
|
15345
15331
|
),
|
|
15346
15332
|
/* @__PURE__ */ e(
|
|
15347
|
-
|
|
15333
|
+
Is,
|
|
15348
15334
|
{
|
|
15349
15335
|
open: M === "delete",
|
|
15350
15336
|
onClose: () => B(null),
|
|
@@ -15364,13 +15350,13 @@ const gs = ({
|
|
|
15364
15350
|
]
|
|
15365
15351
|
}
|
|
15366
15352
|
);
|
|
15367
|
-
},
|
|
15353
|
+
}, Ds = Pe.memo(Bs), Ct = 8, To = () => {
|
|
15368
15354
|
const t = "abcdefghijklmnopqrstuvwxyz0123456789", o = Date.now().toString(36).slice(-3);
|
|
15369
15355
|
return (Array.from(
|
|
15370
15356
|
{ length: 5 },
|
|
15371
15357
|
() => t[Math.floor(Math.random() * t.length)]
|
|
15372
15358
|
).join("") + o).slice(0, 8);
|
|
15373
|
-
},
|
|
15359
|
+
}, Ms = (t) => {
|
|
15374
15360
|
const o = {}, a = t.split(/,\s*/);
|
|
15375
15361
|
for (const s of a) {
|
|
15376
15362
|
const c = s.indexOf(":");
|
|
@@ -15482,7 +15468,7 @@ const gs = ({
|
|
|
15482
15468
|
})
|
|
15483
15469
|
}
|
|
15484
15470
|
);
|
|
15485
|
-
},
|
|
15471
|
+
}, Ns = ({
|
|
15486
15472
|
open: t,
|
|
15487
15473
|
onClose: o,
|
|
15488
15474
|
title: a,
|
|
@@ -15599,7 +15585,7 @@ const gs = ({
|
|
|
15599
15585
|
children: t
|
|
15600
15586
|
}
|
|
15601
15587
|
) : null;
|
|
15602
|
-
},
|
|
15588
|
+
}, Hs = ({
|
|
15603
15589
|
checked: t,
|
|
15604
15590
|
onChange: o,
|
|
15605
15591
|
primaryColor: a
|
|
@@ -15646,7 +15632,7 @@ const gs = ({
|
|
|
15646
15632
|
}
|
|
15647
15633
|
)
|
|
15648
15634
|
}
|
|
15649
|
-
),
|
|
15635
|
+
), Os = ({
|
|
15650
15636
|
onLeagueCreated: t,
|
|
15651
15637
|
onLeagueJoined: o
|
|
15652
15638
|
}) => {
|
|
@@ -15698,7 +15684,7 @@ const gs = ({
|
|
|
15698
15684
|
message: a("topX.privateLeagues.createSuccessMessage") || "Your private league is ready. Share the invitation code with friends."
|
|
15699
15685
|
});
|
|
15700
15686
|
} catch (re) {
|
|
15701
|
-
T(
|
|
15687
|
+
T(Ms(tt(re, d)));
|
|
15702
15688
|
} finally {
|
|
15703
15689
|
E(!1);
|
|
15704
15690
|
}
|
|
@@ -15821,7 +15807,7 @@ const gs = ({
|
|
|
15821
15807
|
)
|
|
15822
15808
|
] }),
|
|
15823
15809
|
/* @__PURE__ */ e(
|
|
15824
|
-
|
|
15810
|
+
On,
|
|
15825
15811
|
{
|
|
15826
15812
|
sx: { fontSize: 18, color: s.textSecondary, flexShrink: 0 }
|
|
15827
15813
|
}
|
|
@@ -16072,7 +16058,7 @@ const gs = ({
|
|
|
16072
16058
|
] })
|
|
16073
16059
|
),
|
|
16074
16060
|
/* @__PURE__ */ p(
|
|
16075
|
-
|
|
16061
|
+
Ns,
|
|
16076
16062
|
{
|
|
16077
16063
|
open: f,
|
|
16078
16064
|
onClose: () => !W && g(!1),
|
|
@@ -16214,7 +16200,7 @@ const gs = ({
|
|
|
16214
16200
|
transition: "all 0.15s",
|
|
16215
16201
|
"&:hover": { color: N, borderColor: N }
|
|
16216
16202
|
},
|
|
16217
|
-
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(
|
|
16203
|
+
children: I ? /* @__PURE__ */ e(Pr, { sx: { fontSize: 16 } }) : /* @__PURE__ */ e(jn, { sx: { fontSize: 16 } })
|
|
16218
16204
|
}
|
|
16219
16205
|
),
|
|
16220
16206
|
/* @__PURE__ */ e(
|
|
@@ -16307,7 +16293,7 @@ const gs = ({
|
|
|
16307
16293
|
)
|
|
16308
16294
|
] }),
|
|
16309
16295
|
/* @__PURE__ */ e(
|
|
16310
|
-
|
|
16296
|
+
Hs,
|
|
16311
16297
|
{
|
|
16312
16298
|
checked: b,
|
|
16313
16299
|
onChange: v,
|
|
@@ -16394,7 +16380,7 @@ const gs = ({
|
|
|
16394
16380
|
}
|
|
16395
16381
|
)
|
|
16396
16382
|
] });
|
|
16397
|
-
},
|
|
16383
|
+
}, js = ({
|
|
16398
16384
|
open: t,
|
|
16399
16385
|
onClose: o,
|
|
16400
16386
|
title: a,
|
|
@@ -16510,7 +16496,7 @@ const gs = ({
|
|
|
16510
16496
|
)
|
|
16511
16497
|
}
|
|
16512
16498
|
) : null;
|
|
16513
|
-
},
|
|
16499
|
+
}, Vs = (t) => {
|
|
16514
16500
|
var ot, pt, q, Z, J, ie, Le, he;
|
|
16515
16501
|
const { t: o } = We("common"), a = be(), s = xe(), c = ve(), n = ke(), { sdk: l, userIsLoggedIn: d, signInCTA: i, entityId: f } = gt(), g = ((pt = (ot = a.palette) == null ? void 0 : ot.primary) == null ? void 0 : pt.plainColor) ?? "#1A77D2", u = ((Z = (q = a.palette) == null ? void 0 : q.primary) == null ? void 0 : Z.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(
|
|
16516
16502
|
null
|
|
@@ -16777,7 +16763,7 @@ const gs = ({
|
|
|
16777
16763
|
}
|
|
16778
16764
|
) : /* @__PURE__ */ e(S, { level: "body-sm", sx: { fontFamily: n.primary, fontSize: "0.875em", color: a.textSecondary }, children: o("topX.privateLeagues.signInPrompt") }), O = [
|
|
16779
16765
|
{
|
|
16780
|
-
icon: /* @__PURE__ */ e(
|
|
16766
|
+
icon: /* @__PURE__ */ e(Vn, { sx: { fontSize: 24, color: g } }),
|
|
16781
16767
|
title: o("topX.privateLeagues.featureCreateTitle"),
|
|
16782
16768
|
desc: o("topX.privateLeagues.featureCreateDesc")
|
|
16783
16769
|
},
|
|
@@ -16793,7 +16779,7 @@ const gs = ({
|
|
|
16793
16779
|
}
|
|
16794
16780
|
], G = [
|
|
16795
16781
|
{
|
|
16796
|
-
icon: /* @__PURE__ */ e(
|
|
16782
|
+
icon: /* @__PURE__ */ e(_n, { sx: { fontSize: 18, color: g, flexShrink: 0, mt: s["3xs"] } }),
|
|
16797
16783
|
text: o("topX.privateLeagues.benefitCreateUnlimited")
|
|
16798
16784
|
},
|
|
16799
16785
|
{
|
|
@@ -16805,7 +16791,7 @@ const gs = ({
|
|
|
16805
16791
|
text: o("topX.privateLeagues.benefitCompeteForTop")
|
|
16806
16792
|
},
|
|
16807
16793
|
{
|
|
16808
|
-
icon: /* @__PURE__ */ e(
|
|
16794
|
+
icon: /* @__PURE__ */ e(Yn, { sx: { fontSize: 18, color: g, flexShrink: 0, mt: s["3xs"] } }),
|
|
16809
16795
|
text: o("topX.privateLeagues.benefitDiscussPredictions")
|
|
16810
16796
|
}
|
|
16811
16797
|
];
|
|
@@ -16824,7 +16810,7 @@ const gs = ({
|
|
|
16824
16810
|
alignItems: "center",
|
|
16825
16811
|
justifyContent: "center"
|
|
16826
16812
|
},
|
|
16827
|
-
children: /* @__PURE__ */ e(
|
|
16813
|
+
children: /* @__PURE__ */ e(Gn, { sx: { fontSize: 32, color: g } })
|
|
16828
16814
|
}
|
|
16829
16815
|
),
|
|
16830
16816
|
/* @__PURE__ */ e(
|
|
@@ -16969,7 +16955,7 @@ const gs = ({
|
|
|
16969
16955
|
}
|
|
16970
16956
|
return k ? /* @__PURE__ */ p(Ee, { children: [
|
|
16971
16957
|
/* @__PURE__ */ e(
|
|
16972
|
-
|
|
16958
|
+
Ds,
|
|
16973
16959
|
{
|
|
16974
16960
|
league: k,
|
|
16975
16961
|
onBack: ge,
|
|
@@ -16994,7 +16980,7 @@ const gs = ({
|
|
|
16994
16980
|
)
|
|
16995
16981
|
] }) : /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: s.md }, children: [
|
|
16996
16982
|
/* @__PURE__ */ e(
|
|
16997
|
-
|
|
16983
|
+
Os,
|
|
16998
16984
|
{
|
|
16999
16985
|
onLeagueCreated: pe,
|
|
17000
16986
|
onLeagueJoined: le
|
|
@@ -17003,7 +16989,7 @@ const gs = ({
|
|
|
17003
16989
|
w.length > 0 && /* @__PURE__ */ p(r, { sx: { display: "flex", flexDirection: "column", gap: s.sm }, children: [
|
|
17004
16990
|
/* @__PURE__ */ p(r, { sx: { display: "flex", alignItems: "center", gap: s.xs }, children: [
|
|
17005
16991
|
/* @__PURE__ */ e(
|
|
17006
|
-
|
|
16992
|
+
Un,
|
|
17007
16993
|
{
|
|
17008
16994
|
sx: { fontSize: 18, color: g }
|
|
17009
16995
|
}
|
|
@@ -17262,7 +17248,7 @@ const gs = ({
|
|
|
17262
17248
|
}
|
|
17263
17249
|
)
|
|
17264
17250
|
] }),
|
|
17265
|
-
v ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: s.xs }, children: Array.from({ length: 5 }, (_, O) => /* @__PURE__ */ e(
|
|
17251
|
+
v ? /* @__PURE__ */ e(r, { sx: { display: "flex", flexDirection: "column", gap: s.xs }, children: Array.from({ length: 5 }, (_, O) => /* @__PURE__ */ e(Oa, { index: O }, O)) }) : h.length === 0 ? /* @__PURE__ */ p(
|
|
17266
17252
|
r,
|
|
17267
17253
|
{
|
|
17268
17254
|
sx: {
|
|
@@ -17337,7 +17323,7 @@ const gs = ({
|
|
|
17337
17323
|
opacity: 0
|
|
17338
17324
|
},
|
|
17339
17325
|
children: /* @__PURE__ */ e(
|
|
17340
|
-
|
|
17326
|
+
Na,
|
|
17341
17327
|
{
|
|
17342
17328
|
league: _,
|
|
17343
17329
|
onClick: Be,
|
|
@@ -17357,7 +17343,7 @@ const gs = ({
|
|
|
17357
17343
|
}
|
|
17358
17344
|
),
|
|
17359
17345
|
/* @__PURE__ */ p(
|
|
17360
|
-
|
|
17346
|
+
js,
|
|
17361
17347
|
{
|
|
17362
17348
|
open: !!H,
|
|
17363
17349
|
onClose: ct,
|
|
@@ -17580,7 +17566,7 @@ const gs = ({
|
|
|
17580
17566
|
)
|
|
17581
17567
|
] });
|
|
17582
17568
|
};
|
|
17583
|
-
function
|
|
17569
|
+
function _s(t) {
|
|
17584
17570
|
if (!t) return "";
|
|
17585
17571
|
const o = document.createElement("template");
|
|
17586
17572
|
o.innerHTML = t;
|
|
@@ -17613,7 +17599,7 @@ function Gs(t) {
|
|
|
17613
17599
|
return s(o.content), o.innerHTML;
|
|
17614
17600
|
}
|
|
17615
17601
|
function qr(t) {
|
|
17616
|
-
const o =
|
|
17602
|
+
const o = _s(t), a = document.createElement("template");
|
|
17617
17603
|
a.innerHTML = o;
|
|
17618
17604
|
const s = 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 = [], l = /^\s*(?:ČASŤ|ČÁST|Část|PART)?\s*(\d+)[.:\s ]+(.+?)\s*$/i, d = (m, h, b) => {
|
|
17619
17605
|
const v = `sec-${h}-${c(b)}`, y = document.createElement("h2");
|
|
@@ -17700,7 +17686,7 @@ function Do(t, o, a) {
|
|
|
17700
17686
|
}), c;
|
|
17701
17687
|
}
|
|
17702
17688
|
const kr = "rules-tab-prose-styles";
|
|
17703
|
-
function
|
|
17689
|
+
function Ys(t) {
|
|
17704
17690
|
let o = document.getElementById(
|
|
17705
17691
|
kr
|
|
17706
17692
|
);
|
|
@@ -17756,7 +17742,7 @@ function Us(t) {
|
|
|
17756
17742
|
.rules-tab-scrollbar::-webkit-scrollbar-thumb:hover { background: ${t.surfaceVariant}; }
|
|
17757
17743
|
`;
|
|
17758
17744
|
}
|
|
17759
|
-
const
|
|
17745
|
+
const Gs = ({ t }) => /* @__PURE__ */ e(
|
|
17760
17746
|
r,
|
|
17761
17747
|
{
|
|
17762
17748
|
sx: {
|
|
@@ -17778,7 +17764,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
17778
17764
|
a
|
|
17779
17765
|
))
|
|
17780
17766
|
}
|
|
17781
|
-
),
|
|
17767
|
+
), Us = Pe.memo(Gs), Ks = ({
|
|
17782
17768
|
query: t,
|
|
17783
17769
|
setQuery: o,
|
|
17784
17770
|
hits: a = [],
|
|
@@ -17830,7 +17816,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
17830
17816
|
onClick: () => c(-1),
|
|
17831
17817
|
"aria-label": "previous",
|
|
17832
17818
|
sx: { fontSize: "1em" },
|
|
17833
|
-
children: /* @__PURE__ */ e(
|
|
17819
|
+
children: /* @__PURE__ */ e(si, { sx: { fontSize: 14 } })
|
|
17834
17820
|
}
|
|
17835
17821
|
),
|
|
17836
17822
|
/* @__PURE__ */ e(
|
|
@@ -17842,7 +17828,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
17842
17828
|
onClick: () => c(1),
|
|
17843
17829
|
"aria-label": "next",
|
|
17844
17830
|
sx: { fontSize: "1em" },
|
|
17845
|
-
children: /* @__PURE__ */ e(
|
|
17831
|
+
children: /* @__PURE__ */ e(li, { sx: { fontSize: 14 } })
|
|
17846
17832
|
}
|
|
17847
17833
|
)
|
|
17848
17834
|
] }),
|
|
@@ -17872,7 +17858,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
17872
17858
|
}
|
|
17873
17859
|
}
|
|
17874
17860
|
);
|
|
17875
|
-
}, Jr = Pe.memo(
|
|
17861
|
+
}, Jr = Pe.memo(Ks), qs = ({ rawHtml: t, t: o, tl: a }) => {
|
|
17876
17862
|
var C;
|
|
17877
17863
|
const s = xe(), { html: c, sections: n } = Ce(() => qr(t), [t]), l = 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(
|
|
17878
17864
|
() => ({ bg: o.warnSoftBg, color: o.warnColor }),
|
|
@@ -18082,7 +18068,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18082
18068
|
)
|
|
18083
18069
|
] })
|
|
18084
18070
|
] });
|
|
18085
|
-
},
|
|
18071
|
+
}, Js = Pe.memo(qs), Zs = ({
|
|
18086
18072
|
section: t,
|
|
18087
18073
|
dir: o,
|
|
18088
18074
|
onClick: a,
|
|
@@ -18124,7 +18110,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18124
18110
|
justifyContent: o === "prev" ? "flex-start" : "flex-end"
|
|
18125
18111
|
},
|
|
18126
18112
|
children: [
|
|
18127
|
-
o === "prev" && /* @__PURE__ */ e(
|
|
18113
|
+
o === "prev" && /* @__PURE__ */ e(Kn, { sx: { fontSize: 9, color: n.textSecondary } }),
|
|
18128
18114
|
/* @__PURE__ */ e(
|
|
18129
18115
|
S,
|
|
18130
18116
|
{
|
|
@@ -18139,7 +18125,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18139
18125
|
children: o === "prev" ? s : c
|
|
18140
18126
|
}
|
|
18141
18127
|
),
|
|
18142
|
-
o === "next" && /* @__PURE__ */ e(
|
|
18128
|
+
o === "next" && /* @__PURE__ */ e(qn, { sx: { fontSize: 9, color: n.textSecondary } })
|
|
18143
18129
|
]
|
|
18144
18130
|
}
|
|
18145
18131
|
),
|
|
@@ -18162,7 +18148,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18162
18148
|
]
|
|
18163
18149
|
}
|
|
18164
18150
|
);
|
|
18165
|
-
}, wr = Pe.memo(
|
|
18151
|
+
}, wr = Pe.memo(Zs), Qs = ({ rawHtml: t, t: o, tl: a }) => {
|
|
18166
18152
|
var R;
|
|
18167
18153
|
const s = xe(), { html: c } = Ce(() => qr(t), [t]), n = Ce(() => {
|
|
18168
18154
|
var A, X, $;
|
|
@@ -18397,7 +18383,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18397
18383
|
]
|
|
18398
18384
|
}
|
|
18399
18385
|
),
|
|
18400
|
-
/* @__PURE__ */ e(
|
|
18386
|
+
/* @__PURE__ */ e(ci, { sx: { flex: 1 } }),
|
|
18401
18387
|
/* @__PURE__ */ p(
|
|
18402
18388
|
S,
|
|
18403
18389
|
{
|
|
@@ -18475,7 +18461,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18475
18461
|
}
|
|
18476
18462
|
)
|
|
18477
18463
|
] });
|
|
18478
|
-
},
|
|
18464
|
+
}, el = Pe.memo(Qs), tl = ({ template: t, loading: o }) => {
|
|
18479
18465
|
const { t: a } = We("common"), s = be(), c = ke(), n = xe(), l = ve(), d = yo(), i = Ce(
|
|
18480
18466
|
() => {
|
|
18481
18467
|
var f, g, u, x, m, h, b, v, y, C;
|
|
@@ -18507,8 +18493,8 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18507
18493
|
[s, c, n, l]
|
|
18508
18494
|
);
|
|
18509
18495
|
return me(() => {
|
|
18510
|
-
|
|
18511
|
-
}, [i]), o ? /* @__PURE__ */ e(
|
|
18496
|
+
Ys(i);
|
|
18497
|
+
}, [i]), o ? /* @__PURE__ */ e(Us, { t: i }) : t != null && t.rules ? /* @__PURE__ */ e(
|
|
18512
18498
|
r,
|
|
18513
18499
|
{
|
|
18514
18500
|
sx: {
|
|
@@ -18519,7 +18505,7 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18519
18505
|
fontFamily: i.fontPrimary,
|
|
18520
18506
|
minHeight: 0
|
|
18521
18507
|
},
|
|
18522
|
-
children: d ? /* @__PURE__ */ e(
|
|
18508
|
+
children: d ? /* @__PURE__ */ e(el, { rawHtml: t.rules, t: i, tl: a }) : /* @__PURE__ */ e(Js, { rawHtml: t.rules, t: i, tl: a })
|
|
18523
18509
|
}
|
|
18524
18510
|
) : /* @__PURE__ */ e(
|
|
18525
18511
|
r,
|
|
@@ -18546,8 +18532,8 @@ const Ks = ({ t }) => /* @__PURE__ */ e(
|
|
|
18546
18532
|
)
|
|
18547
18533
|
}
|
|
18548
18534
|
);
|
|
18549
|
-
},
|
|
18550
|
-
function
|
|
18535
|
+
}, ol = Pe.memo(tl);
|
|
18536
|
+
function rl(t) {
|
|
18551
18537
|
if (!t) return "";
|
|
18552
18538
|
const o = document.createElement("template");
|
|
18553
18539
|
o.innerHTML = t;
|
|
@@ -18579,10 +18565,10 @@ function il(t) {
|
|
|
18579
18565
|
};
|
|
18580
18566
|
return s(o.content), o.innerHTML;
|
|
18581
18567
|
}
|
|
18582
|
-
function
|
|
18568
|
+
function nl(t) {
|
|
18583
18569
|
return /<[a-zA-Z]/.test(t);
|
|
18584
18570
|
}
|
|
18585
|
-
const
|
|
18571
|
+
const il = ({ template: t, loading: o }) => {
|
|
18586
18572
|
var m, h, b;
|
|
18587
18573
|
const { t: a } = We("common"), s = be(), c = xe(), n = ke(), l = ve(), d = s.textPrimary, i = s.textSecondary ?? s.textPrimary, f = s.surfaceVariant, g = s.outlineEnabledBorder;
|
|
18588
18574
|
if (o)
|
|
@@ -18651,7 +18637,7 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18651
18637
|
)
|
|
18652
18638
|
]
|
|
18653
18639
|
}
|
|
18654
|
-
) : !x || !
|
|
18640
|
+
) : !x || !nl(x) ? /* @__PURE__ */ p(
|
|
18655
18641
|
r,
|
|
18656
18642
|
{
|
|
18657
18643
|
sx: {
|
|
@@ -18664,7 +18650,7 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18664
18650
|
},
|
|
18665
18651
|
children: [
|
|
18666
18652
|
/* @__PURE__ */ e(
|
|
18667
|
-
|
|
18653
|
+
Jn,
|
|
18668
18654
|
{
|
|
18669
18655
|
sx: { fontSize: "3em", color: g }
|
|
18670
18656
|
}
|
|
@@ -18693,7 +18679,7 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18693
18679
|
"& img": { maxWidth: "100%", height: "auto" },
|
|
18694
18680
|
"& a": { color: ((b = (h = s.palette) == null ? void 0 : h.primary) == null ? void 0 : b.plainColor) ?? "#1A77D2" }
|
|
18695
18681
|
},
|
|
18696
|
-
dangerouslySetInnerHTML: { __html:
|
|
18682
|
+
dangerouslySetInnerHTML: { __html: rl(x) }
|
|
18697
18683
|
}
|
|
18698
18684
|
);
|
|
18699
18685
|
}, Zr = [
|
|
@@ -18706,7 +18692,7 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18706
18692
|
if (typeof window > "u") return null;
|
|
18707
18693
|
const t = window.location.hash.replace("#", "");
|
|
18708
18694
|
return Zr.includes(t) ? t : null;
|
|
18709
|
-
},
|
|
18695
|
+
}, al = (t) => {
|
|
18710
18696
|
const {
|
|
18711
18697
|
entityId: o,
|
|
18712
18698
|
sdk: a,
|
|
@@ -18744,7 +18730,7 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18744
18730
|
switch (I) {
|
|
18745
18731
|
case "play":
|
|
18746
18732
|
return /* @__PURE__ */ e(
|
|
18747
|
-
|
|
18733
|
+
Pa,
|
|
18748
18734
|
{
|
|
18749
18735
|
template: R,
|
|
18750
18736
|
loading: z,
|
|
@@ -18756,19 +18742,19 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18756
18742
|
}
|
|
18757
18743
|
);
|
|
18758
18744
|
case "leaderboard":
|
|
18759
|
-
return /* @__PURE__ */ e(
|
|
18745
|
+
return /* @__PURE__ */ e(Ba, { template: R });
|
|
18760
18746
|
case "private-leagues":
|
|
18761
|
-
return /* @__PURE__ */ e(
|
|
18747
|
+
return /* @__PURE__ */ e(Vs, { template: R });
|
|
18762
18748
|
case "rules":
|
|
18763
|
-
return /* @__PURE__ */ e(
|
|
18749
|
+
return /* @__PURE__ */ e(ol, { template: R, loading: z });
|
|
18764
18750
|
case "prizes":
|
|
18765
|
-
return /* @__PURE__ */ e(
|
|
18751
|
+
return /* @__PURE__ */ e(il, { template: R, loading: z });
|
|
18766
18752
|
default:
|
|
18767
18753
|
return null;
|
|
18768
18754
|
}
|
|
18769
18755
|
};
|
|
18770
18756
|
return /* @__PURE__ */ e(
|
|
18771
|
-
|
|
18757
|
+
Ri,
|
|
18772
18758
|
{
|
|
18773
18759
|
entityId: o,
|
|
18774
18760
|
sdk: a,
|
|
@@ -18916,10 +18902,10 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18916
18902
|
)
|
|
18917
18903
|
}
|
|
18918
18904
|
);
|
|
18919
|
-
},
|
|
18905
|
+
}, sl = (t) => {
|
|
18920
18906
|
var o, a, s, c, n, l, d, i, f;
|
|
18921
18907
|
return /* @__PURE__ */ p(Ee, { children: [
|
|
18922
|
-
/* @__PURE__ */ e(pn, { packageName: "top-x", ...t, children: /* @__PURE__ */ e(
|
|
18908
|
+
/* @__PURE__ */ e(pn, { packageName: "top-x", ...t, children: /* @__PURE__ */ e(al, { ...t }) }),
|
|
18923
18909
|
/* @__PURE__ */ e(
|
|
18924
18910
|
mn,
|
|
18925
18911
|
{
|
|
@@ -18937,7 +18923,7 @@ const sl = ({ template: t, loading: o }) => {
|
|
|
18937
18923
|
}
|
|
18938
18924
|
)
|
|
18939
18925
|
] });
|
|
18940
|
-
},
|
|
18926
|
+
}, Vl = sl;
|
|
18941
18927
|
export {
|
|
18942
|
-
|
|
18928
|
+
Vl as TopX
|
|
18943
18929
|
};
|