fansunited-frontend-components 0.0.31-RC6 → 0.0.31-RC7
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/ClassicQuizPlay.js +27 -28
- package/CollectLead.js +56 -57
- package/EventGamePlay.js +200 -201
- package/MatchQuizPlay.js +52 -53
- package/PollVote.js +26 -28
- package/chunks/CollectLeadForm-C_3plJtn.js +5391 -0
- package/chunks/Error-BurPfBJw.js +1739 -0
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5.js → OverlayLeadAfterCollection-Bjh1xAB5.js} +37 -38
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd.js → OverlayScoreStateSkeleton-Cha5KeNi.js} +4 -5
- package/chunks/Portal-DegkUXpU.js +21877 -0
- package/chunks/Tabs-leN3Fb8D.js +1079 -0
- package/chunks/index-DUQ2LFod.js +5492 -0
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/chunks/CollectLeadForm-DtmR2Vuf.js +0 -844
- package/chunks/Error-DhQL89pn.js +0 -120
- package/chunks/NotFoundSkeleton-BYJTzYJR.js +0 -2425
- package/chunks/Portal-BWqqFvVm.js +0 -13823
package/EventGamePlay.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import Ee, { useState as E, useEffect as Ve, useRef as Ct, createContext as pt, useCallback as Ze, useMemo as We } from "react";
|
|
3
|
-
import { i as J,
|
|
4
|
-
import { C as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { O as ln } from "./chunks/OverlayScoreStateSkeleton-C9FUhcnd.js";
|
|
3
|
+
import { i as J, c as W, d as b, m as Re, B as i, b as Q, a as X, u as de, b3 as Fe, aW as xt, ae as Z, k as Te, T as f, ah as Se, ad as ut, aV as Ft, aX as bt, aY as Bt, b4 as Rt, ag as he, f as Pe, W as $, e as ke, h as D, ai as Tt, aj as kt, ak as zt, al as Ht, am as yt, s as He, l as vt, P as Vt } from "./chunks/Portal-DegkUXpU.js";
|
|
4
|
+
import { m as wt, T as At, M as Mt, n as qt, C as It, D as jt, s as V, S as St, d as Je, g as Dt, l as Pt, R as ve, N as Qt, i as Ot, j as Gt, k as Wt, O as Jt, a as Et, o as Zt } from "./chunks/index-DUQ2LFod.js";
|
|
5
|
+
import { K as Yt, a as Nt, H as Xt, D as Lt, S as Ut, T as ht, E as $t, A as dt, P as st, C as _t, b as en, c as tn, d as nn } from "./chunks/Error-BurPfBJw.js";
|
|
6
|
+
import { T as on, a as an, b as ft, t as gt, c as mt } from "./chunks/Tabs-leN3Fb8D.js";
|
|
7
|
+
import { O as ln } from "./chunks/OverlayScoreStateSkeleton-Cha5KeNi.js";
|
|
9
8
|
const rn = (e, n, o) => {
|
|
10
|
-
const [a, r] = E(null), [c,
|
|
9
|
+
const [a, r] = E(null), [c, S] = E(null), u = async () => {
|
|
11
10
|
try {
|
|
12
11
|
const d = await n.eventGame.getGameById(e, !0);
|
|
13
12
|
if (r(d), o && d.fixtures) {
|
|
@@ -17,18 +16,18 @@ const rn = (e, n, o) => {
|
|
|
17
16
|
points: A.points || 0
|
|
18
17
|
})
|
|
19
18
|
);
|
|
20
|
-
|
|
19
|
+
S(g);
|
|
21
20
|
} else
|
|
22
|
-
|
|
21
|
+
S([]);
|
|
23
22
|
} catch (d) {
|
|
24
|
-
console.warn(d), r(new
|
|
23
|
+
console.warn(d), r(new wt()), S([]);
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
26
|
return Ve(() => (u(), () => {
|
|
28
|
-
r(null),
|
|
27
|
+
r(null), S(null);
|
|
29
28
|
}), [e, n, o]), { game: a, points: c };
|
|
30
29
|
}, cn = (e, n) => {
|
|
31
|
-
const [o, a] = E(void 0), [r, c] = E(!1), [
|
|
30
|
+
const [o, a] = E(void 0), [r, c] = E(!1), [S, u] = E(!1), d = async () => {
|
|
32
31
|
let g = "";
|
|
33
32
|
try {
|
|
34
33
|
g = (await n.profile.getOwn().getInfo()).id;
|
|
@@ -72,7 +71,7 @@ const rn = (e, n, o) => {
|
|
|
72
71
|
myPrediction: o,
|
|
73
72
|
setMyPrediction: a,
|
|
74
73
|
isUnauthorized: r,
|
|
75
|
-
isApiError:
|
|
74
|
+
isApiError: S,
|
|
76
75
|
setIsUnauthorized: c,
|
|
77
76
|
setIsApiError: u
|
|
78
77
|
};
|
|
@@ -80,7 +79,7 @@ const rn = (e, n, o) => {
|
|
|
80
79
|
children: e,
|
|
81
80
|
brandingBorderColor: n
|
|
82
81
|
}) => {
|
|
83
|
-
const o = J(), a = W().md, r = n || b().secondaryContainer,
|
|
82
|
+
const o = J(), a = W().md, r = n || b().secondaryContainer, S = Re().size + " solid " + r;
|
|
84
83
|
return /* @__PURE__ */ t(
|
|
85
84
|
i,
|
|
86
85
|
{
|
|
@@ -90,7 +89,7 @@ const rn = (e, n, o) => {
|
|
|
90
89
|
width: "100%",
|
|
91
90
|
borderRadius: a,
|
|
92
91
|
boxShadow: "md",
|
|
93
|
-
border:
|
|
92
|
+
border: S,
|
|
94
93
|
overflow: "hidden",
|
|
95
94
|
background: b().surface,
|
|
96
95
|
minHeight: "250px"
|
|
@@ -528,7 +527,7 @@ const rn = (e, n, o) => {
|
|
|
528
527
|
}
|
|
529
528
|
}
|
|
530
529
|
}), sn = (e) => {
|
|
531
|
-
const n = b(), o = W(), a = Q(), r = X(), c = J(),
|
|
530
|
+
const n = b(), o = W(), a = Q(), r = X(), c = J(), S = de(), [u, d] = E(e.prediction), g = Ct(null), A = e.minValue !== void 0 ? e.minValue : -1 / 0, m = e.maxValue !== void 0 ? e.maxValue : 1 / 0, K = S.mode === "dark" || e.isOverlayVariant, l = dn({
|
|
532
531
|
spacingScale: r,
|
|
533
532
|
borderRadius: o,
|
|
534
533
|
fontFamilyPrimary: a.primary,
|
|
@@ -548,8 +547,8 @@ const rn = (e, n, o) => {
|
|
|
548
547
|
const x = C.target.value;
|
|
549
548
|
if (x === "" || !/^\d+$/.test(x))
|
|
550
549
|
return;
|
|
551
|
-
const
|
|
552
|
-
d(
|
|
550
|
+
const P = parseInt(x, 10);
|
|
551
|
+
d(P), e.onChange(P);
|
|
553
552
|
};
|
|
554
553
|
return /* @__PURE__ */ t(i, { sx: l.container, children: /* @__PURE__ */ s(i, { sx: l.numberInputContainer, children: [
|
|
555
554
|
/* @__PURE__ */ t(
|
|
@@ -560,11 +559,11 @@ const rn = (e, n, o) => {
|
|
|
560
559
|
onClick: () => y(!1),
|
|
561
560
|
sx: l.numberButton,
|
|
562
561
|
disabled: u <= A,
|
|
563
|
-
children: /* @__PURE__ */ t(
|
|
562
|
+
children: /* @__PURE__ */ t(Yt, { fontSize: "small" })
|
|
564
563
|
}
|
|
565
564
|
),
|
|
566
565
|
/* @__PURE__ */ t(
|
|
567
|
-
|
|
566
|
+
xt,
|
|
568
567
|
{
|
|
569
568
|
value: u,
|
|
570
569
|
onChange: U,
|
|
@@ -590,7 +589,7 @@ const rn = (e, n, o) => {
|
|
|
590
589
|
onClick: () => y(!0),
|
|
591
590
|
sx: l.numberButton,
|
|
592
591
|
disabled: u >= m,
|
|
593
|
-
children: /* @__PURE__ */ t(
|
|
592
|
+
children: /* @__PURE__ */ t(Nt, { fontSize: "small" })
|
|
594
593
|
}
|
|
595
594
|
)
|
|
596
595
|
] }) });
|
|
@@ -724,7 +723,7 @@ const rn = (e, n, o) => {
|
|
|
724
723
|
children: n
|
|
725
724
|
}
|
|
726
725
|
), Le = (e) => {
|
|
727
|
-
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(),
|
|
726
|
+
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(), S = J(), [u, d] = E(!1), { points: g } = Te(we), A = gn({
|
|
728
727
|
spacingScale: c,
|
|
729
728
|
borderRadius: a,
|
|
730
729
|
fontFamilyPrimary: r.primary,
|
|
@@ -740,7 +739,7 @@ const rn = (e, n, o) => {
|
|
|
740
739
|
const K = () => /* @__PURE__ */ t(f, { level: "body-sm", sx: A.tooltipText, children: n("eventGame.points.earnPointsForCorrect", {
|
|
741
740
|
points: m.points
|
|
742
741
|
}) });
|
|
743
|
-
return
|
|
742
|
+
return S || e.isSplitVariant ? /* @__PURE__ */ t(
|
|
744
743
|
At,
|
|
745
744
|
{
|
|
746
745
|
title: K(),
|
|
@@ -758,7 +757,7 @@ const rn = (e, n, o) => {
|
|
|
758
757
|
{
|
|
759
758
|
onClick: () => d(!u),
|
|
760
759
|
sx: A.mobileIconButton,
|
|
761
|
-
children: /* @__PURE__ */ t(
|
|
760
|
+
children: /* @__PURE__ */ t(Xt, { sx: A.mobileIcon })
|
|
762
761
|
}
|
|
763
762
|
)
|
|
764
763
|
}
|
|
@@ -778,8 +777,8 @@ const rn = (e, n, o) => {
|
|
|
778
777
|
);
|
|
779
778
|
}, Ye = (e) => {
|
|
780
779
|
var K, l;
|
|
781
|
-
const { t: n } = Z(), o = b(), a =
|
|
782
|
-
spacingScale:
|
|
780
|
+
const { t: n } = Z(), o = b(), a = Se(), r = W(), c = Q(), S = X(), { points: u } = Te(we), d = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : a, g = fn({
|
|
781
|
+
spacingScale: S,
|
|
783
782
|
borderRadius: r,
|
|
784
783
|
fontFamilyPrimary: c.primary,
|
|
785
784
|
fontFamilySecondary: c.secondary,
|
|
@@ -800,7 +799,7 @@ const rn = (e, n, o) => {
|
|
|
800
799
|
alignItems: "center",
|
|
801
800
|
justifyContent: "space-between",
|
|
802
801
|
width: "100%",
|
|
803
|
-
gap:
|
|
802
|
+
gap: S.sm
|
|
804
803
|
},
|
|
805
804
|
children: [
|
|
806
805
|
d ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
@@ -926,7 +925,7 @@ const rn = (e, n, o) => {
|
|
|
926
925
|
}
|
|
927
926
|
};
|
|
928
927
|
}, yn = (e) => {
|
|
929
|
-
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(),
|
|
928
|
+
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(), S = J(), [u, d] = E(
|
|
930
929
|
e.prediction
|
|
931
930
|
), g = un({
|
|
932
931
|
spacingScale: c,
|
|
@@ -942,7 +941,7 @@ const rn = (e, n, o) => {
|
|
|
942
941
|
onPrimary: o.palette.primary.onPrimary,
|
|
943
942
|
successMain: o.palette.success.plainColor,
|
|
944
943
|
dangerMain: o.palette.danger.plainColor,
|
|
945
|
-
isMobile:
|
|
944
|
+
isMobile: S
|
|
946
945
|
}), A = (U) => {
|
|
947
946
|
d(U), e.onSelectionChange(U);
|
|
948
947
|
}, K = {
|
|
@@ -961,8 +960,8 @@ const rn = (e, n, o) => {
|
|
|
961
960
|
children: /* @__PURE__ */ t(
|
|
962
961
|
"svg",
|
|
963
962
|
{
|
|
964
|
-
width:
|
|
965
|
-
height:
|
|
963
|
+
width: S ? "20" : "24",
|
|
964
|
+
height: S ? "20" : "24",
|
|
966
965
|
viewBox: "0 0 24 24",
|
|
967
966
|
fill: "none",
|
|
968
967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -994,8 +993,8 @@ const rn = (e, n, o) => {
|
|
|
994
993
|
children: /* @__PURE__ */ t(
|
|
995
994
|
"svg",
|
|
996
995
|
{
|
|
997
|
-
width:
|
|
998
|
-
height:
|
|
996
|
+
width: S ? "20" : "24",
|
|
997
|
+
height: S ? "20" : "24",
|
|
999
998
|
viewBox: "0 0 24 24",
|
|
1000
999
|
fill: "none",
|
|
1001
1000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1019,7 +1018,7 @@ const rn = (e, n, o) => {
|
|
|
1019
1018
|
/* @__PURE__ */ t(l, { isSelected: u === !0 }),
|
|
1020
1019
|
/* @__PURE__ */ t(y, { isSelected: u === !1 })
|
|
1021
1020
|
] });
|
|
1022
|
-
},
|
|
1021
|
+
}, Sn = (e) => {
|
|
1023
1022
|
const n = J();
|
|
1024
1023
|
return {
|
|
1025
1024
|
container: {
|
|
@@ -1037,7 +1036,7 @@ const rn = (e, n, o) => {
|
|
|
1037
1036
|
}
|
|
1038
1037
|
};
|
|
1039
1038
|
}, Ne = (e) => {
|
|
1040
|
-
const n = b(), o =
|
|
1039
|
+
const n = b(), o = Se(), a = W(), r = Q(), c = X(), { points: S } = Te(we), u = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : o, d = Sn({
|
|
1041
1040
|
spacingScale: c,
|
|
1042
1041
|
borderRadius: a,
|
|
1043
1042
|
fontFamilyPrimary: r.primary,
|
|
@@ -1060,7 +1059,7 @@ const rn = (e, n, o) => {
|
|
|
1060
1059
|
children: [
|
|
1061
1060
|
u ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
1062
1061
|
/* @__PURE__ */ t(f, { level: "h3", sx: d.title, children: e.question }),
|
|
1063
|
-
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: e.showPoints !== !1 &&
|
|
1062
|
+
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: e.showPoints !== !1 && S.length > 0 && /* @__PURE__ */ t(
|
|
1064
1063
|
Le,
|
|
1065
1064
|
{
|
|
1066
1065
|
fixtureId: e.fixtureId,
|
|
@@ -1079,7 +1078,7 @@ const rn = (e, n, o) => {
|
|
|
1079
1078
|
}
|
|
1080
1079
|
)
|
|
1081
1080
|
] });
|
|
1082
|
-
},
|
|
1081
|
+
}, Pn = (e) => ({
|
|
1083
1082
|
container: {
|
|
1084
1083
|
display: "flex",
|
|
1085
1084
|
alignItems: "center",
|
|
@@ -1146,7 +1145,7 @@ const rn = (e, n, o) => {
|
|
|
1146
1145
|
}
|
|
1147
1146
|
}
|
|
1148
1147
|
}), Un = (e) => {
|
|
1149
|
-
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(),
|
|
1148
|
+
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(), S = J(), { shadowRootElement: u } = Te(ut), d = Ft(), g = de(), A = Re().size, [m, K] = E(e.prediction || ""), l = {
|
|
1150
1149
|
background: {
|
|
1151
1150
|
surface: d.colorSchemes.light.palette.background.surface,
|
|
1152
1151
|
popup: d.colorSchemes.light.palette.background.popup
|
|
@@ -1165,7 +1164,7 @@ const rn = (e, n, o) => {
|
|
|
1165
1164
|
bgcolor: l.background.surface,
|
|
1166
1165
|
borderColor: l.neutral.outlinedBorder,
|
|
1167
1166
|
color: l.neutral.outlinedColor,
|
|
1168
|
-
fontSize:
|
|
1167
|
+
fontSize: S ? "0.875em" : "1em",
|
|
1169
1168
|
lineHeight: "1.5",
|
|
1170
1169
|
"&:hover": {
|
|
1171
1170
|
bgcolor: l.neutral.outlinedHoverBg
|
|
@@ -1206,7 +1205,7 @@ const rn = (e, n, o) => {
|
|
|
1206
1205
|
listbox: {
|
|
1207
1206
|
container: u,
|
|
1208
1207
|
sx: {
|
|
1209
|
-
maxHeight:
|
|
1208
|
+
maxHeight: S ? "200px" : "300px",
|
|
1210
1209
|
overflowY: "auto",
|
|
1211
1210
|
zIndex: 1300,
|
|
1212
1211
|
bgcolor: l.background.popup,
|
|
@@ -1217,7 +1216,7 @@ const rn = (e, n, o) => {
|
|
|
1217
1216
|
}
|
|
1218
1217
|
}, C = {
|
|
1219
1218
|
fontFamily: r.secondary,
|
|
1220
|
-
fontSize:
|
|
1219
|
+
fontSize: S ? "0.875em" : "1em",
|
|
1221
1220
|
color: `${l.neutral.outlinedColor} !important`,
|
|
1222
1221
|
bgcolor: `${l.background.popup} !important`,
|
|
1223
1222
|
"&:hover": {
|
|
@@ -1232,7 +1231,7 @@ const rn = (e, n, o) => {
|
|
|
1232
1231
|
bgcolor: `${l.neutral.outlinedHoverBg} !important`,
|
|
1233
1232
|
color: `${l.neutral.outlinedColor} !important`
|
|
1234
1233
|
}
|
|
1235
|
-
}, x =
|
|
1234
|
+
}, x = Pn({
|
|
1236
1235
|
spacingScale: c,
|
|
1237
1236
|
borderRadius: a,
|
|
1238
1237
|
fontFamilyPrimary: r.primary,
|
|
@@ -1244,8 +1243,8 @@ const rn = (e, n, o) => {
|
|
|
1244
1243
|
neutralPlainHoverBg: l.neutral.outlinedHoverBg,
|
|
1245
1244
|
primary: o.palette.primary.plainColor,
|
|
1246
1245
|
onPrimary: o.palette.primary.onPrimary,
|
|
1247
|
-
isMobile:
|
|
1248
|
-
}),
|
|
1246
|
+
isMobile: S
|
|
1247
|
+
}), P = (q) => {
|
|
1249
1248
|
const M = q.target.value;
|
|
1250
1249
|
K(M), e.onTextChange(M);
|
|
1251
1250
|
}, p = (q, M) => {
|
|
@@ -1274,7 +1273,7 @@ const rn = (e, n, o) => {
|
|
|
1274
1273
|
{
|
|
1275
1274
|
sx: {
|
|
1276
1275
|
display: "flex",
|
|
1277
|
-
flexDirection:
|
|
1276
|
+
flexDirection: S ? "column" : "row",
|
|
1278
1277
|
gap: 2
|
|
1279
1278
|
},
|
|
1280
1279
|
children: w.map((ee, le) => {
|
|
@@ -1380,7 +1379,7 @@ const rn = (e, n, o) => {
|
|
|
1380
1379
|
sx: {
|
|
1381
1380
|
display: "flex",
|
|
1382
1381
|
flexWrap: "wrap",
|
|
1383
|
-
flexDirection:
|
|
1382
|
+
flexDirection: S ? "column" : "row",
|
|
1384
1383
|
gap: 2
|
|
1385
1384
|
},
|
|
1386
1385
|
children: R.map((k, w) => {
|
|
@@ -1439,20 +1438,20 @@ const rn = (e, n, o) => {
|
|
|
1439
1438
|
) : (
|
|
1440
1439
|
// Otherwise, render select dropdown (default behavior)
|
|
1441
1440
|
/* @__PURE__ */ t(
|
|
1442
|
-
|
|
1441
|
+
bt,
|
|
1443
1442
|
{
|
|
1444
1443
|
value: m || null,
|
|
1445
1444
|
onChange: p,
|
|
1446
1445
|
placeholder: n("eventGame.fixtures.textSelectPlaceholder"),
|
|
1447
1446
|
slotProps: U,
|
|
1448
|
-
children: R.map((q, M) => /* @__PURE__ */ t(
|
|
1447
|
+
children: R.map((q, M) => /* @__PURE__ */ t(Bt, { value: q, sx: C, children: q }, M))
|
|
1449
1448
|
}
|
|
1450
1449
|
)
|
|
1451
1450
|
) }) : /* @__PURE__ */ t(i, { sx: x.inputContainer, children: /* @__PURE__ */ t(
|
|
1452
|
-
|
|
1451
|
+
xt,
|
|
1453
1452
|
{
|
|
1454
1453
|
value: m,
|
|
1455
|
-
onChange:
|
|
1454
|
+
onChange: P,
|
|
1456
1455
|
placeholder: n("eventGame.fixtures.textInputPlaceholder"),
|
|
1457
1456
|
sx: {
|
|
1458
1457
|
...y,
|
|
@@ -1492,7 +1491,7 @@ const rn = (e, n, o) => {
|
|
|
1492
1491
|
}
|
|
1493
1492
|
};
|
|
1494
1493
|
}, Ke = (e) => {
|
|
1495
|
-
const n = b(), o =
|
|
1494
|
+
const n = b(), o = Se(), a = W(), r = Q(), c = X(), { points: S } = Te(we), u = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : o, d = hn({
|
|
1496
1495
|
spacingScale: c,
|
|
1497
1496
|
borderRadius: a,
|
|
1498
1497
|
fontFamilyPrimary: r.primary,
|
|
@@ -1515,7 +1514,7 @@ const rn = (e, n, o) => {
|
|
|
1515
1514
|
children: [
|
|
1516
1515
|
u ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
1517
1516
|
/* @__PURE__ */ t(f, { level: "h3", sx: d.title, children: e.question }),
|
|
1518
|
-
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: e.showPoints !== !1 &&
|
|
1517
|
+
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: e.showPoints !== !1 && S.length > 0 && /* @__PURE__ */ t(
|
|
1519
1518
|
Le,
|
|
1520
1519
|
{
|
|
1521
1520
|
fixtureId: e.fixtureId,
|
|
@@ -1538,7 +1537,7 @@ const rn = (e, n, o) => {
|
|
|
1538
1537
|
] });
|
|
1539
1538
|
}, $e = (e) => {
|
|
1540
1539
|
const n = b(), o = W(), a = J(), r = () => {
|
|
1541
|
-
const
|
|
1540
|
+
const S = o.full, u = e.brandingPrimaryColor || n.palette.primary.plainColor, d = e.brandingPrimaryColor || n.palette.primary.outlinedBorder, g = "#FFFFFF", A = n.outlineEnabledBorder;
|
|
1542
1541
|
return /* @__PURE__ */ s(
|
|
1543
1542
|
i,
|
|
1544
1543
|
{
|
|
@@ -1566,7 +1565,7 @@ const rn = (e, n, o) => {
|
|
|
1566
1565
|
sx: {
|
|
1567
1566
|
width: "32px",
|
|
1568
1567
|
height: "32px",
|
|
1569
|
-
borderRadius:
|
|
1568
|
+
borderRadius: S,
|
|
1570
1569
|
backgroundColor: u,
|
|
1571
1570
|
border: `1px solid ${d}`,
|
|
1572
1571
|
display: "flex",
|
|
@@ -1605,7 +1604,7 @@ const rn = (e, n, o) => {
|
|
|
1605
1604
|
}
|
|
1606
1605
|
);
|
|
1607
1606
|
}, c = () => {
|
|
1608
|
-
const
|
|
1607
|
+
const S = o.full, u = e.totalSteps || e.eventGame.fixtures.length, d = [];
|
|
1609
1608
|
for (let g = 0; g < u; g++) {
|
|
1610
1609
|
const A = g + 1;
|
|
1611
1610
|
let m, K, l;
|
|
@@ -1616,7 +1615,7 @@ const rn = (e, n, o) => {
|
|
|
1616
1615
|
sx: {
|
|
1617
1616
|
width: "32px",
|
|
1618
1617
|
height: "32px",
|
|
1619
|
-
borderRadius:
|
|
1618
|
+
borderRadius: S,
|
|
1620
1619
|
backgroundColor: m,
|
|
1621
1620
|
border: `1px solid ${K}`,
|
|
1622
1621
|
display: "flex",
|
|
@@ -1668,7 +1667,7 @@ const rn = (e, n, o) => {
|
|
|
1668
1667
|
display: "flex",
|
|
1669
1668
|
alignItems: "center",
|
|
1670
1669
|
justifyContent: "center",
|
|
1671
|
-
py:
|
|
1670
|
+
py: Rt("xs"),
|
|
1672
1671
|
width: "100%",
|
|
1673
1672
|
zIndex: 1
|
|
1674
1673
|
},
|
|
@@ -1688,8 +1687,8 @@ const rn = (e, n, o) => {
|
|
|
1688
1687
|
return { days: 0, hours: 0, minutes: 0, seconds: 0, total: 0 };
|
|
1689
1688
|
const U = Math.floor(y / (1e3 * 60 * 60 * 24)), C = Math.floor(
|
|
1690
1689
|
y % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
|
|
1691
|
-
), x = Math.floor(y % (1e3 * 60 * 60) / (1e3 * 60)),
|
|
1692
|
-
return { days: U, hours: C, minutes: x, seconds:
|
|
1690
|
+
), x = Math.floor(y % (1e3 * 60 * 60) / (1e3 * 60)), P = Math.floor(y % (1e3 * 60) / 1e3);
|
|
1691
|
+
return { days: U, hours: C, minutes: x, seconds: P, total: y };
|
|
1693
1692
|
}, [e.predictionsCutoffTime]);
|
|
1694
1693
|
if (Ve(() => {
|
|
1695
1694
|
const K = () => {
|
|
@@ -2068,8 +2067,8 @@ const rn = (e, n, o) => {
|
|
|
2068
2067
|
let o = e;
|
|
2069
2068
|
return (n == null ? void 0 : n.min) !== null && (n == null ? void 0 : n.min) !== void 0 && (o = Math.max(o, n.min)), (n == null ? void 0 : n.max) !== null && (n == null ? void 0 : n.max) !== void 0 && (o = Math.min(o, n.max)), o;
|
|
2070
2069
|
}, pn = (e) => {
|
|
2071
|
-
const { t: n } = Z(), { shadowRootElement: o } = Te(
|
|
2072
|
-
spacingScale:
|
|
2070
|
+
const { t: n } = Z(), { shadowRootElement: o } = Te(ut), a = b(), r = W(), c = Q(), S = X(), [u, d] = E(!1), g = Cn({
|
|
2071
|
+
spacingScale: S,
|
|
2073
2072
|
borderRadius: r,
|
|
2074
2073
|
fontFamilyPrimary: c.primary,
|
|
2075
2074
|
fontFamilySecondary: c.secondary,
|
|
@@ -2171,16 +2170,16 @@ const rn = (e, n, o) => {
|
|
|
2171
2170
|
return null;
|
|
2172
2171
|
};
|
|
2173
2172
|
return /* @__PURE__ */ t(
|
|
2174
|
-
|
|
2173
|
+
Mt,
|
|
2175
2174
|
{
|
|
2176
2175
|
open: e.isOpen,
|
|
2177
2176
|
onClose: e.onClose,
|
|
2178
2177
|
container: o,
|
|
2179
2178
|
sx: { zIndex: 1300 },
|
|
2180
|
-
children: /* @__PURE__ */ s(
|
|
2181
|
-
/* @__PURE__ */ t(Fe, { onClick: e.onClose, sx: g.closeButton, children: /* @__PURE__ */ t(
|
|
2182
|
-
/* @__PURE__ */ t(
|
|
2183
|
-
e.view === "score" && /* @__PURE__ */ s(
|
|
2179
|
+
children: /* @__PURE__ */ s(qt, { sx: g.modalDialog, children: [
|
|
2180
|
+
/* @__PURE__ */ t(Fe, { onClick: e.onClose, sx: g.closeButton, children: /* @__PURE__ */ t(It, {}) }),
|
|
2181
|
+
/* @__PURE__ */ t(jt, { sx: g.content, children: l() }),
|
|
2182
|
+
e.view === "score" && /* @__PURE__ */ s(Lt, { children: [
|
|
2184
2183
|
/* @__PURE__ */ t(he, { variant: "solid", onClick: K, loading: u, children: n("eventGame.buttons.save") }),
|
|
2185
2184
|
/* @__PURE__ */ t(
|
|
2186
2185
|
he,
|
|
@@ -2210,7 +2209,7 @@ const rn = (e, n, o) => {
|
|
|
2210
2209
|
}
|
|
2211
2210
|
);
|
|
2212
2211
|
}, ze = (e) => {
|
|
2213
|
-
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(),
|
|
2212
|
+
const { t: n } = Z(), o = b(), a = W(), r = Q(), c = X(), S = J(), [u, d] = E(!1), [g, A] = E(null), m = Kn({
|
|
2214
2213
|
spacingScale: c,
|
|
2215
2214
|
borderRadius: a,
|
|
2216
2215
|
fontFamilyPrimary: r.primary,
|
|
@@ -2222,7 +2221,7 @@ const rn = (e, n, o) => {
|
|
|
2222
2221
|
outlineEnabledBorder: o.outlineEnabledBorder,
|
|
2223
2222
|
outlinedBorder: o.palette.neutral.outlinedBorder,
|
|
2224
2223
|
neutralSoftBg: o.palette.neutral.softBg,
|
|
2225
|
-
isMobile:
|
|
2224
|
+
isMobile: S,
|
|
2226
2225
|
isSplitVariant: e.isSplitVariant || !1
|
|
2227
2226
|
}), K = (C) => {
|
|
2228
2227
|
const x = e.fixtures[C];
|
|
@@ -2230,17 +2229,17 @@ const rn = (e, n, o) => {
|
|
|
2230
2229
|
}, l = () => {
|
|
2231
2230
|
if (e.view === "play" && g && g.outcomeType === V.NUMBER) {
|
|
2232
2231
|
const C = g.validOutcomes, x = e.prediction.fixtures.find(
|
|
2233
|
-
(
|
|
2232
|
+
(P) => P.id === g.id
|
|
2234
2233
|
);
|
|
2235
2234
|
if (x && typeof x.prediction == "number") {
|
|
2236
|
-
const
|
|
2237
|
-
if (
|
|
2235
|
+
const P = Me(x.prediction, C);
|
|
2236
|
+
if (P !== x.prediction) {
|
|
2238
2237
|
const p = { ...e.prediction }, F = p.fixtures.findIndex(
|
|
2239
2238
|
(R) => R.id === g.id
|
|
2240
2239
|
);
|
|
2241
2240
|
F !== -1 && (p.fixtures[F] = {
|
|
2242
2241
|
...p.fixtures[F],
|
|
2243
|
-
prediction:
|
|
2242
|
+
prediction: P
|
|
2244
2243
|
}, e.onPredictionUpdate(p));
|
|
2245
2244
|
}
|
|
2246
2245
|
}
|
|
@@ -2287,7 +2286,7 @@ const rn = (e, n, o) => {
|
|
|
2287
2286
|
size: "sm",
|
|
2288
2287
|
sx: m.editIconButton,
|
|
2289
2288
|
onClick: () => K(x),
|
|
2290
|
-
children: /* @__PURE__ */ t(
|
|
2289
|
+
children: /* @__PURE__ */ t($t, {})
|
|
2291
2290
|
}
|
|
2292
2291
|
) })
|
|
2293
2292
|
] }, `${C.id}-${x}`)) })
|
|
@@ -2310,13 +2309,13 @@ const rn = (e, n, o) => {
|
|
|
2310
2309
|
)
|
|
2311
2310
|
] }) });
|
|
2312
2311
|
}, Fn = (e) => {
|
|
2313
|
-
const [n, o] = Ee.useState(1), a = de(), { t: r } = Z(), c = J(),
|
|
2312
|
+
const [n, o] = Ee.useState(1), a = de(), { t: r } = Z(), c = J(), S = Se(), u = e.imagePosition || "left", d = Pe(
|
|
2314
2313
|
{
|
|
2315
2314
|
images: e.eventGame.images,
|
|
2316
2315
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
2317
2316
|
},
|
|
2318
2317
|
$.STANDARD
|
|
2319
|
-
), g =
|
|
2318
|
+
), g = S || c && !!d, A = b().palette.danger.plainColor, m = b().textColor, K = b().textColor, l = Q().secondary, y = "60%", U = Q().primary, C = b().surfaceVariant, x = W(), P = b().palette.primary.plainColor, p = b().palette.primary.onPrimary, F = W().xl, R = X(), z = ke(
|
|
2320
2319
|
$.STANDARD
|
|
2321
2320
|
), h = An({
|
|
2322
2321
|
finalImage: d,
|
|
@@ -2424,14 +2423,14 @@ const rn = (e, n, o) => {
|
|
|
2424
2423
|
borderRadius: F,
|
|
2425
2424
|
py: "10px",
|
|
2426
2425
|
px: "16px",
|
|
2427
|
-
borderColor:
|
|
2426
|
+
borderColor: P,
|
|
2428
2427
|
color: p,
|
|
2429
2428
|
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
2430
2429
|
transform: "scale(1)",
|
|
2431
2430
|
alignSelf: "center",
|
|
2432
2431
|
"&:hover": {
|
|
2433
|
-
borderColor:
|
|
2434
|
-
backgroundColor: `${
|
|
2432
|
+
borderColor: P,
|
|
2433
|
+
backgroundColor: `${P}10`,
|
|
2435
2434
|
transform: "scale(1.02)"
|
|
2436
2435
|
},
|
|
2437
2436
|
"&:active": {
|
|
@@ -2471,13 +2470,13 @@ const rn = (e, n, o) => {
|
|
|
2471
2470
|
borderRadius: F,
|
|
2472
2471
|
py: "10px",
|
|
2473
2472
|
px: "16px",
|
|
2474
|
-
bgcolor:
|
|
2473
|
+
bgcolor: P,
|
|
2475
2474
|
color: p,
|
|
2476
2475
|
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
2477
2476
|
transform: "scale(1)",
|
|
2478
2477
|
alignSelf: "center",
|
|
2479
2478
|
"&:hover": {
|
|
2480
|
-
bgcolor:
|
|
2479
|
+
bgcolor: P,
|
|
2481
2480
|
transform: "scale(1.02)"
|
|
2482
2481
|
},
|
|
2483
2482
|
"&:active": {
|
|
@@ -2485,7 +2484,7 @@ const rn = (e, n, o) => {
|
|
|
2485
2484
|
transform: "scale(0.98)"
|
|
2486
2485
|
},
|
|
2487
2486
|
"&:disabled": {
|
|
2488
|
-
bgcolor:
|
|
2487
|
+
bgcolor: P,
|
|
2489
2488
|
color: p,
|
|
2490
2489
|
opacity: "12%"
|
|
2491
2490
|
},
|
|
@@ -2601,7 +2600,7 @@ const rn = (e, n, o) => {
|
|
|
2601
2600
|
}
|
|
2602
2601
|
};
|
|
2603
2602
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
2604
|
-
|
|
2603
|
+
St,
|
|
2605
2604
|
{
|
|
2606
2605
|
entity: { ...e.eventGame, labels: null },
|
|
2607
2606
|
headline: r("eventGame.headline"),
|
|
@@ -2869,11 +2868,11 @@ const rn = (e, n, o) => {
|
|
|
2869
2868
|
}, Bn = (e, n) => {
|
|
2870
2869
|
switch (e) {
|
|
2871
2870
|
case "success":
|
|
2872
|
-
return /* @__PURE__ */ t(
|
|
2871
|
+
return /* @__PURE__ */ t(yt, {});
|
|
2873
2872
|
case "error":
|
|
2874
|
-
return /* @__PURE__ */ t(
|
|
2873
|
+
return /* @__PURE__ */ t(Ht, { sx: { color: n } });
|
|
2875
2874
|
case "info":
|
|
2876
|
-
return /* @__PURE__ */ t(
|
|
2875
|
+
return /* @__PURE__ */ t(zt, {});
|
|
2877
2876
|
}
|
|
2878
2877
|
}, Rn = (e) => {
|
|
2879
2878
|
switch (e) {
|
|
@@ -2890,9 +2889,9 @@ const rn = (e, n, o) => {
|
|
|
2890
2889
|
message: o,
|
|
2891
2890
|
description: a
|
|
2892
2891
|
}) => {
|
|
2893
|
-
const r = de(), c = W(),
|
|
2892
|
+
const r = de(), c = W(), S = Q().secondary, u = J(), d = Rn(e);
|
|
2894
2893
|
return /* @__PURE__ */ t(
|
|
2895
|
-
|
|
2894
|
+
Tt,
|
|
2896
2895
|
{
|
|
2897
2896
|
variant: "soft",
|
|
2898
2897
|
color: d,
|
|
@@ -2907,7 +2906,7 @@ const rn = (e, n, o) => {
|
|
|
2907
2906
|
"--Icon-fontSize": u ? "1em" : "1.25em"
|
|
2908
2907
|
},
|
|
2909
2908
|
children: /* @__PURE__ */ s(
|
|
2910
|
-
|
|
2909
|
+
kt,
|
|
2911
2910
|
{
|
|
2912
2911
|
sx: {
|
|
2913
2912
|
fontSize: "1.5em"
|
|
@@ -2919,7 +2918,7 @@ const rn = (e, n, o) => {
|
|
|
2919
2918
|
level: "title-md",
|
|
2920
2919
|
color: d,
|
|
2921
2920
|
fontWeight: "bold",
|
|
2922
|
-
sx: { fontFamily:
|
|
2921
|
+
sx: { fontFamily: S, fontSize: "0.875em" },
|
|
2923
2922
|
children: n
|
|
2924
2923
|
}
|
|
2925
2924
|
),
|
|
@@ -2927,7 +2926,7 @@ const rn = (e, n, o) => {
|
|
|
2927
2926
|
f,
|
|
2928
2927
|
{
|
|
2929
2928
|
level: "body-sm",
|
|
2930
|
-
sx: { fontFamily:
|
|
2929
|
+
sx: { fontFamily: S, fontSize: "0.675em" },
|
|
2931
2930
|
children: o
|
|
2932
2931
|
}
|
|
2933
2932
|
),
|
|
@@ -2935,7 +2934,7 @@ const rn = (e, n, o) => {
|
|
|
2935
2934
|
f,
|
|
2936
2935
|
{
|
|
2937
2936
|
level: "body-xs",
|
|
2938
|
-
sx: { fontFamily:
|
|
2937
|
+
sx: { fontFamily: S, fontSize: "0.6em" },
|
|
2939
2938
|
children: a
|
|
2940
2939
|
}
|
|
2941
2940
|
)
|
|
@@ -2945,17 +2944,17 @@ const rn = (e, n, o) => {
|
|
|
2945
2944
|
}
|
|
2946
2945
|
);
|
|
2947
2946
|
}, Tn = (e) => {
|
|
2948
|
-
const n = de(), o =
|
|
2947
|
+
const n = de(), o = Pe(
|
|
2949
2948
|
{
|
|
2950
2949
|
images: e.eventGame.images,
|
|
2951
2950
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
2952
2951
|
},
|
|
2953
2952
|
$.STANDARD
|
|
2954
|
-
), { t: a } = Z(), r = null, c = J(),
|
|
2953
|
+
), { t: a } = Z(), r = null, c = J(), S = e.imagePosition || "left", u = e.eventGame.status === "OPEN", d = (M) => {
|
|
2955
2954
|
console.log(`Edit prediction for fixture at index: ${M}`);
|
|
2956
2955
|
}, g = b().textColor, A = Q().secondary, m = Q().primary, K = W(), l = X(), y = `rgba(${D(b().surfaceVariant)}, 0.5)`, U = ke(
|
|
2957
2956
|
$.STANDARD
|
|
2958
|
-
), C = "60%", x = b().textSecondary,
|
|
2957
|
+
), C = "60%", x = b().textSecondary, P = b().secondaryContainer, p = Re().size, F = bn({
|
|
2959
2958
|
finalImage: o,
|
|
2960
2959
|
spacingScale: l,
|
|
2961
2960
|
borderRadius: K,
|
|
@@ -2978,10 +2977,10 @@ const rn = (e, n, o) => {
|
|
|
2978
2977
|
alignItems: "center",
|
|
2979
2978
|
gap: "8px",
|
|
2980
2979
|
borderRadius: K.xl,
|
|
2981
|
-
border: p + " solid " +
|
|
2982
|
-
bgcolor:
|
|
2980
|
+
border: p + " solid " + P,
|
|
2981
|
+
bgcolor: P,
|
|
2983
2982
|
"&:hover": {
|
|
2984
|
-
bgcolor:
|
|
2983
|
+
bgcolor: P,
|
|
2985
2984
|
opacity: 0.9
|
|
2986
2985
|
}
|
|
2987
2986
|
}, z = {
|
|
@@ -3029,12 +3028,12 @@ const rn = (e, n, o) => {
|
|
|
3029
3028
|
) })
|
|
3030
3029
|
] });
|
|
3031
3030
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
3032
|
-
|
|
3031
|
+
St,
|
|
3033
3032
|
{
|
|
3034
3033
|
entity: { ...e.eventGame, labels: null },
|
|
3035
3034
|
headline: a("eventGame.headline"),
|
|
3036
3035
|
finalImage: o,
|
|
3037
|
-
imagePosition:
|
|
3036
|
+
imagePosition: S,
|
|
3038
3037
|
rulesDisplay: e.rulesDisplay,
|
|
3039
3038
|
children: q()
|
|
3040
3039
|
}
|
|
@@ -3081,13 +3080,13 @@ const rn = (e, n, o) => {
|
|
|
3081
3080
|
p: e.spacingScale.lg
|
|
3082
3081
|
}
|
|
3083
3082
|
}), zn = (e) => {
|
|
3084
|
-
const { t: n } = Z(), o = J(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Be : be, r =
|
|
3083
|
+
const { t: n } = Z(), o = J(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Be : be, r = Pe(
|
|
3085
3084
|
{
|
|
3086
3085
|
images: e.eventGame.images,
|
|
3087
3086
|
imagePlaceholder: a
|
|
3088
3087
|
},
|
|
3089
3088
|
$.SPLIT
|
|
3090
|
-
), c = b().textSecondary,
|
|
3089
|
+
), c = b().textSecondary, S = b().secondaryContainer, u = Q().primary, d = b().surfaceVariant, g = W(), A = X(), m = Re().size, K = e.eventGame.status === "OPEN" && e.prediction && e.onPredictionUpdate, l = (p) => {
|
|
3091
3090
|
console.log(`Edit prediction for fixture at index: ${p}`);
|
|
3092
3091
|
}, y = kn({
|
|
3093
3092
|
spacingScale: A,
|
|
@@ -3103,10 +3102,10 @@ const rn = (e, n, o) => {
|
|
|
3103
3102
|
alignItems: "center",
|
|
3104
3103
|
gap: "8px",
|
|
3105
3104
|
borderRadius: g.xl,
|
|
3106
|
-
bgcolor:
|
|
3107
|
-
border: `${m} solid ${
|
|
3105
|
+
bgcolor: S,
|
|
3106
|
+
border: `${m} solid ${S}`,
|
|
3108
3107
|
"&:hover": {
|
|
3109
|
-
bgcolor:
|
|
3108
|
+
bgcolor: S,
|
|
3110
3109
|
opacity: 0.9
|
|
3111
3110
|
},
|
|
3112
3111
|
fontSize: o ? "0.750em" : "0.8125em",
|
|
@@ -3126,7 +3125,7 @@ const rn = (e, n, o) => {
|
|
|
3126
3125
|
textTransform: "uppercase"
|
|
3127
3126
|
};
|
|
3128
3127
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
3129
|
-
|
|
3128
|
+
Dt,
|
|
3130
3129
|
{
|
|
3131
3130
|
entity: { ...e.eventGame, labels: null },
|
|
3132
3131
|
headline: n("eventGame.headline"),
|
|
@@ -3903,7 +3902,7 @@ const rn = (e, n, o) => {
|
|
|
3903
3902
|
children: r,
|
|
3904
3903
|
brandingColors: c
|
|
3905
3904
|
}) => {
|
|
3906
|
-
const [
|
|
3905
|
+
const [S, u] = Ee.useState(0), d = de(), { t: g } = Z(), A = J(), m = Se(), K = W().md, l = a ? d.colorSchemes.dark.textPrimary : b().textPrimary, y = a ? d.colorSchemes.dark.textSecondary : b().textSecondary, U = Q().primary, C = Q().secondary, x = a ? d.colorSchemes.dark.secondaryContainer : b().secondaryContainer, P = c != null && c.backgroundColor || a ? d.colorSchemes.dark.surfaceVariant : b().surfaceVariant, p = X(), F = a ? d.colorSchemes.dark.palette.success.plainColor : b().palette.success.plainColor, R = a ? d.colorSchemes.dark.palette.danger.plainColor : b().palette.danger.plainColor, z = a ? d.colorSchemes.dark.outlineEnabledBorder : b().outlineEnabledBorder, h = a ? d.colorSchemes.dark.palette.neutral.softBg : b().palette.neutral.softBg;
|
|
3907
3906
|
let q = a ? d.colorSchemes.dark.textPrimary : b().textPrimary;
|
|
3908
3907
|
c != null && c.primaryColor && (q = c.primaryColor);
|
|
3909
3908
|
const M = (B, k) => {
|
|
@@ -3971,7 +3970,7 @@ const rn = (e, n, o) => {
|
|
|
3971
3970
|
left: 0,
|
|
3972
3971
|
right: 0,
|
|
3973
3972
|
bottom: 0,
|
|
3974
|
-
backgroundColor:
|
|
3973
|
+
backgroundColor: P,
|
|
3975
3974
|
opacity: 0.5,
|
|
3976
3975
|
borderRadius: "inherit",
|
|
3977
3976
|
zIndex: 0,
|
|
@@ -4177,9 +4176,9 @@ const rn = (e, n, o) => {
|
|
|
4177
4176
|
);
|
|
4178
4177
|
};
|
|
4179
4178
|
return /* @__PURE__ */ t(i, { sx: { width: "100%" }, children: /* @__PURE__ */ s(
|
|
4180
|
-
|
|
4179
|
+
on,
|
|
4181
4180
|
{
|
|
4182
|
-
value:
|
|
4181
|
+
value: S,
|
|
4183
4182
|
onChange: (B, k) => u(k),
|
|
4184
4183
|
sx: {
|
|
4185
4184
|
borderRadius: K,
|
|
@@ -4189,7 +4188,7 @@ const rn = (e, n, o) => {
|
|
|
4189
4188
|
},
|
|
4190
4189
|
children: [
|
|
4191
4190
|
/* @__PURE__ */ s(
|
|
4192
|
-
|
|
4191
|
+
an,
|
|
4193
4192
|
{
|
|
4194
4193
|
sx: {
|
|
4195
4194
|
fontSize: A ? "0.75em" : "1em",
|
|
@@ -4197,7 +4196,7 @@ const rn = (e, n, o) => {
|
|
|
4197
4196
|
},
|
|
4198
4197
|
children: [
|
|
4199
4198
|
/* @__PURE__ */ t(
|
|
4200
|
-
|
|
4199
|
+
ft,
|
|
4201
4200
|
{
|
|
4202
4201
|
sx: {
|
|
4203
4202
|
display: "flex",
|
|
@@ -4212,7 +4211,7 @@ const rn = (e, n, o) => {
|
|
|
4212
4211
|
bgcolor: a ? "#FAFAFA14" : "#2121210A"
|
|
4213
4212
|
// Highlight selected tab
|
|
4214
4213
|
},
|
|
4215
|
-
[`&.${
|
|
4214
|
+
[`&.${gt.selected}`]: {
|
|
4216
4215
|
bgcolor: a ? "#FAFAFA14" : "#2121210A",
|
|
4217
4216
|
// Highlight selected tab
|
|
4218
4217
|
borderBottom: "3px solid " + q,
|
|
@@ -4272,7 +4271,7 @@ const rn = (e, n, o) => {
|
|
|
4272
4271
|
}
|
|
4273
4272
|
),
|
|
4274
4273
|
/* @__PURE__ */ t(
|
|
4275
|
-
|
|
4274
|
+
ft,
|
|
4276
4275
|
{
|
|
4277
4276
|
sx: {
|
|
4278
4277
|
display: "flex",
|
|
@@ -4287,7 +4286,7 @@ const rn = (e, n, o) => {
|
|
|
4287
4286
|
bgcolor: a ? "#FAFAFA14" : "#2121210A"
|
|
4288
4287
|
// Highlight selected tab
|
|
4289
4288
|
},
|
|
4290
|
-
[`&.${
|
|
4289
|
+
[`&.${gt.selected}`]: {
|
|
4291
4290
|
bgcolor: a ? "#FAFAFA14" : "#2121210A",
|
|
4292
4291
|
// Highlight selected tab
|
|
4293
4292
|
borderBottom: "3px solid " + q,
|
|
@@ -4350,7 +4349,7 @@ const rn = (e, n, o) => {
|
|
|
4350
4349
|
}
|
|
4351
4350
|
),
|
|
4352
4351
|
/* @__PURE__ */ t(
|
|
4353
|
-
|
|
4352
|
+
mt,
|
|
4354
4353
|
{
|
|
4355
4354
|
value: 0,
|
|
4356
4355
|
sx: {
|
|
@@ -4361,7 +4360,7 @@ const rn = (e, n, o) => {
|
|
|
4361
4360
|
}
|
|
4362
4361
|
),
|
|
4363
4362
|
/* @__PURE__ */ t(
|
|
4364
|
-
|
|
4363
|
+
mt,
|
|
4365
4364
|
{
|
|
4366
4365
|
value: 1,
|
|
4367
4366
|
sx: {
|
|
@@ -4452,7 +4451,7 @@ const rn = (e, n, o) => {
|
|
|
4452
4451
|
isSplitVariant: a,
|
|
4453
4452
|
loading: r = !1
|
|
4454
4453
|
}) => {
|
|
4455
|
-
const { t: c } = Z(),
|
|
4454
|
+
const { t: c } = Z(), S = de(), u = b(), d = u.palette.primary.plainColor, g = u.textColor, A = Q().primary, m = Q().secondary, K = W(), l = X(), y = Se(), U = u.surfaceVariant, C = S.colorSchemes.light.palette.primary.onPrimary, x = u.outlineEnabledBorder, P = {
|
|
4456
4455
|
leaderboardContainer: {
|
|
4457
4456
|
display: "flex",
|
|
4458
4457
|
flexDirection: "column",
|
|
@@ -4585,35 +4584,35 @@ const rn = (e, n, o) => {
|
|
|
4585
4584
|
if (r || !e)
|
|
4586
4585
|
return /* @__PURE__ */ t(Pt, { my: 10 });
|
|
4587
4586
|
if (e.length === 0)
|
|
4588
|
-
return /* @__PURE__ */ t(f, { level: "body-lg", sx:
|
|
4587
|
+
return /* @__PURE__ */ t(f, { level: "body-lg", sx: P.noLeaderboardText, children: c("eventGame.leaderboard.noLeaderboardAvailable") });
|
|
4589
4588
|
const p = n == null ? void 0 : n.position, F = p && e.some((R) => R.position === p);
|
|
4590
|
-
return /* @__PURE__ */ s(i, { sx:
|
|
4591
|
-
o && /* @__PURE__ */ t(f, { level: "h4", sx:
|
|
4592
|
-
/* @__PURE__ */ t(Ut, { sx:
|
|
4589
|
+
return /* @__PURE__ */ s(i, { sx: P.leaderboardContainer, children: [
|
|
4590
|
+
o && /* @__PURE__ */ t(f, { level: "h4", sx: P.leaderboardTitle, children: c("eventGame.leaderboard.title") }),
|
|
4591
|
+
/* @__PURE__ */ t(Ut, { sx: P.tableContainer, children: /* @__PURE__ */ s(
|
|
4593
4592
|
ht,
|
|
4594
4593
|
{
|
|
4595
4594
|
variant: "outlined",
|
|
4596
4595
|
hoverRow: !1,
|
|
4597
4596
|
borderAxis: "bothBetween",
|
|
4598
4597
|
size: "sm",
|
|
4599
|
-
sx:
|
|
4598
|
+
sx: P.table,
|
|
4600
4599
|
children: [
|
|
4601
4600
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
4602
|
-
/* @__PURE__ */ t("th", { style:
|
|
4603
|
-
/* @__PURE__ */ t("th", { style:
|
|
4604
|
-
/* @__PURE__ */ t("th", { style:
|
|
4601
|
+
/* @__PURE__ */ t("th", { style: P.headerCellPosition, children: y || a ? "" : c("eventGame.leaderboard.position") }),
|
|
4602
|
+
/* @__PURE__ */ t("th", { style: P.headerCellName, children: c("eventGame.leaderboard.name") }),
|
|
4603
|
+
/* @__PURE__ */ t("th", { style: P.headerCellPoints, children: y || a ? "🎯" : c("eventGame.leaderboard.points") })
|
|
4605
4604
|
] }) }),
|
|
4606
4605
|
/* @__PURE__ */ s("tbody", { children: [
|
|
4607
|
-
n && !F && /* @__PURE__ */ s("tr", { style:
|
|
4608
|
-
/* @__PURE__ */ t("td", { style:
|
|
4606
|
+
n && !F && /* @__PURE__ */ s("tr", { style: P.userRow, children: [
|
|
4607
|
+
/* @__PURE__ */ t("td", { style: P.tableCellPosition, children: /* @__PURE__ */ s(f, { sx: P.positionText, children: [
|
|
4609
4608
|
"#",
|
|
4610
4609
|
n.position
|
|
4611
4610
|
] }) }),
|
|
4612
|
-
/* @__PURE__ */ t("td", { style:
|
|
4613
|
-
/* @__PURE__ */ t(
|
|
4614
|
-
/* @__PURE__ */ t(f, { sx:
|
|
4611
|
+
/* @__PURE__ */ t("td", { style: P.tableCellName, children: /* @__PURE__ */ s(i, { sx: P.nameCell, children: [
|
|
4612
|
+
/* @__PURE__ */ t(dt, { sx: P.leaderboardAvatar, children: /* @__PURE__ */ t(st, { sx: P.avatarIcon }) }),
|
|
4613
|
+
/* @__PURE__ */ t(f, { sx: P.nameText, children: c("eventGame.leaderboard.you") })
|
|
4615
4614
|
] }) }),
|
|
4616
|
-
/* @__PURE__ */ t("td", { style:
|
|
4615
|
+
/* @__PURE__ */ t("td", { style: P.tableCellPoints, children: /* @__PURE__ */ t(f, { sx: P.pointsText, children: n.totalPoints }) })
|
|
4617
4616
|
] }),
|
|
4618
4617
|
e.map((R) => {
|
|
4619
4618
|
var h, q, M, _;
|
|
@@ -4621,24 +4620,24 @@ const rn = (e, n, o) => {
|
|
|
4621
4620
|
return /* @__PURE__ */ s(
|
|
4622
4621
|
"tr",
|
|
4623
4622
|
{
|
|
4624
|
-
style: z ?
|
|
4623
|
+
style: z ? P.userRow : void 0,
|
|
4625
4624
|
children: [
|
|
4626
|
-
/* @__PURE__ */ t("td", { style:
|
|
4625
|
+
/* @__PURE__ */ t("td", { style: P.tableCellPosition, children: /* @__PURE__ */ s(f, { sx: P.positionText, children: [
|
|
4627
4626
|
"#",
|
|
4628
4627
|
R.position
|
|
4629
4628
|
] }) }),
|
|
4630
|
-
/* @__PURE__ */ t("td", { style:
|
|
4629
|
+
/* @__PURE__ */ t("td", { style: P.tableCellName, children: /* @__PURE__ */ s(i, { sx: P.nameCell, children: [
|
|
4631
4630
|
/* @__PURE__ */ t(
|
|
4632
|
-
|
|
4631
|
+
dt,
|
|
4633
4632
|
{
|
|
4634
4633
|
src: ((h = R.profileModel) == null ? void 0 : h.avatar) || void 0,
|
|
4635
|
-
sx:
|
|
4636
|
-
children: (q = R.profileModel) != null && q.avatar ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(
|
|
4634
|
+
sx: P.leaderboardAvatar,
|
|
4635
|
+
children: (q = R.profileModel) != null && q.avatar ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(st, { sx: P.avatarIcon })
|
|
4637
4636
|
}
|
|
4638
4637
|
),
|
|
4639
|
-
/* @__PURE__ */ t(f, { sx:
|
|
4638
|
+
/* @__PURE__ */ t(f, { sx: P.nameText, children: z ? c("eventGame.leaderboard.you") : ((M = R.profileModel) == null ? void 0 : M.nickname) || ((_ = R.profileModel) == null ? void 0 : _.name) })
|
|
4640
4639
|
] }) }),
|
|
4641
|
-
/* @__PURE__ */ t("td", { style:
|
|
4640
|
+
/* @__PURE__ */ t("td", { style: P.tableCellPoints, children: /* @__PURE__ */ t(f, { sx: P.pointsText, children: R.totalPoints }) })
|
|
4642
4641
|
]
|
|
4643
4642
|
},
|
|
4644
4643
|
R.profileId
|
|
@@ -4657,14 +4656,14 @@ const rn = (e, n, o) => {
|
|
|
4657
4656
|
isOverlayVariant: r = !1,
|
|
4658
4657
|
justifyContent: c = "flex-start"
|
|
4659
4658
|
}) => {
|
|
4660
|
-
const
|
|
4659
|
+
const S = de(), u = () => {
|
|
4661
4660
|
if (!r)
|
|
4662
4661
|
return {
|
|
4663
4662
|
borderRadius: "8px",
|
|
4664
4663
|
minWidth: "32px",
|
|
4665
4664
|
minHeight: "32px"
|
|
4666
4665
|
};
|
|
4667
|
-
const d =
|
|
4666
|
+
const d = S.colorSchemes.dark;
|
|
4668
4667
|
return {
|
|
4669
4668
|
borderRadius: "8px",
|
|
4670
4669
|
minWidth: "32px",
|
|
@@ -4705,7 +4704,7 @@ const rn = (e, n, o) => {
|
|
|
4705
4704
|
onClick: a,
|
|
4706
4705
|
disabled: !n,
|
|
4707
4706
|
sx: u(),
|
|
4708
|
-
children: /* @__PURE__ */ t(
|
|
4707
|
+
children: /* @__PURE__ */ t(_t, { size: 20 })
|
|
4709
4708
|
}
|
|
4710
4709
|
),
|
|
4711
4710
|
/* @__PURE__ */ t(
|
|
@@ -4717,7 +4716,7 @@ const rn = (e, n, o) => {
|
|
|
4717
4716
|
onClick: o,
|
|
4718
4717
|
disabled: !e,
|
|
4719
4718
|
sx: u(),
|
|
4720
|
-
children: /* @__PURE__ */ t(
|
|
4719
|
+
children: /* @__PURE__ */ t(en, { size: 20 })
|
|
4721
4720
|
}
|
|
4722
4721
|
)
|
|
4723
4722
|
]
|
|
@@ -4726,7 +4725,7 @@ const rn = (e, n, o) => {
|
|
|
4726
4725
|
}, at = (e, n) => {
|
|
4727
4726
|
const [o, a] = E(
|
|
4728
4727
|
null
|
|
4729
|
-
), [r, c] = E(!1), [
|
|
4728
|
+
), [r, c] = E(!1), [S, u] = E(!1), [d, g] = E(
|
|
4730
4729
|
null
|
|
4731
4730
|
), [A, m] = E([]), [K, l] = E(null), [y, U] = E(!1), C = async (p = null, F) => {
|
|
4732
4731
|
try {
|
|
@@ -4759,7 +4758,7 @@ const rn = (e, n, o) => {
|
|
|
4759
4758
|
];
|
|
4760
4759
|
m(p), g(K.nextPageStartsAfter), C(K.nextPageStartsAfter, p);
|
|
4761
4760
|
}
|
|
4762
|
-
},
|
|
4761
|
+
}, P = () => {
|
|
4763
4762
|
if (A.length > 0) {
|
|
4764
4763
|
const p = [...A], F = p.pop() || null;
|
|
4765
4764
|
m(p), g(F), C(F, p);
|
|
@@ -4772,23 +4771,23 @@ const rn = (e, n, o) => {
|
|
|
4772
4771
|
pagination: K,
|
|
4773
4772
|
loading: y,
|
|
4774
4773
|
isUnauthorized: r,
|
|
4775
|
-
isApiError:
|
|
4774
|
+
isApiError: S,
|
|
4776
4775
|
setRankings: a,
|
|
4777
4776
|
setIsUnauthorized: c,
|
|
4778
4777
|
setIsApiError: u,
|
|
4779
4778
|
goToNextPage: x,
|
|
4780
|
-
goToPreviousPage:
|
|
4779
|
+
goToPreviousPage: P
|
|
4781
4780
|
};
|
|
4782
4781
|
}, wn = (e) => {
|
|
4783
|
-
const n = X(), o = de(), { t: a } = Z(), r = J(), c =
|
|
4782
|
+
const n = X(), o = de(), { t: a } = Z(), r = J(), c = Se(), S = ke(
|
|
4784
4783
|
$.OVERLAY
|
|
4785
|
-
), u = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Be : be, d =
|
|
4784
|
+
), u = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Be : be, d = Pe(
|
|
4786
4785
|
{
|
|
4787
4786
|
images: e.game.images,
|
|
4788
4787
|
imagePlaceholder: u
|
|
4789
4788
|
},
|
|
4790
4789
|
$.OVERLAY
|
|
4791
|
-
), g = b().textPrimary, A = b().palette.primary.plainColor, m = b().textColor, K = Q().secondary, l = Q().primary, y = b().surface, U = `rgba(${D(b().surfaceVariant)}, 0.5)`, C = b().onSurface, x = W(),
|
|
4790
|
+
), g = b().textPrimary, A = b().palette.primary.plainColor, m = b().textColor, K = Q().secondary, l = Q().primary, y = b().surface, U = `rgba(${D(b().surfaceVariant)}, 0.5)`, C = b().onSurface, x = W(), P = Re().size, p = `rgba(${D(
|
|
4792
4791
|
b().surfaceVariant || ""
|
|
4793
4792
|
)}, 0.5)`, F = b().textColor, R = "60%", { rankings: z, pagination: h, loading: q, goToNextPage: M, goToPreviousPage: _ } = at(e.game.id, e.sdk), O = Hn({
|
|
4794
4793
|
finalImage: d,
|
|
@@ -4802,14 +4801,14 @@ const rn = (e, n, o) => {
|
|
|
4802
4801
|
bgcolor: U,
|
|
4803
4802
|
buttonBgColor: y,
|
|
4804
4803
|
onSurfaceColor: C,
|
|
4805
|
-
borderSize:
|
|
4804
|
+
borderSize: P,
|
|
4806
4805
|
surfaceVariant: p,
|
|
4807
4806
|
imagePosition: "left",
|
|
4808
4807
|
successColor: o.colorSchemes.light.palette.success.plainColor,
|
|
4809
4808
|
dangerColor: o.colorSchemes.light.palette.danger.plainColor,
|
|
4810
4809
|
onPrimaryColor: o.colorSchemes.light.palette.primary.onPrimary,
|
|
4811
4810
|
isMobile: r,
|
|
4812
|
-
imageBackgroundGradient:
|
|
4811
|
+
imageBackgroundGradient: S,
|
|
4813
4812
|
darkTextColor: o.colorSchemes.dark.textColor,
|
|
4814
4813
|
opacity: R,
|
|
4815
4814
|
secondaryColor: F,
|
|
@@ -4888,7 +4887,7 @@ const rn = (e, n, o) => {
|
|
|
4888
4887
|
}, Mn = () => {
|
|
4889
4888
|
const { t: e } = Z();
|
|
4890
4889
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
4891
|
-
|
|
4890
|
+
Qt,
|
|
4892
4891
|
{
|
|
4893
4892
|
notFoundTitle: e("eventGame.eventGameNotFound"),
|
|
4894
4893
|
notFoundMessage: e("eventGame.eventGameNotFoundDescription")
|
|
@@ -4897,7 +4896,7 @@ const rn = (e, n, o) => {
|
|
|
4897
4896
|
}, qn = (e) => {
|
|
4898
4897
|
const { t: n } = Z();
|
|
4899
4898
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
4900
|
-
|
|
4899
|
+
Ot,
|
|
4901
4900
|
{
|
|
4902
4901
|
entity: { ...e.eventGame, labels: null },
|
|
4903
4902
|
headline: n("eventGame.headline"),
|
|
@@ -4912,7 +4911,7 @@ const rn = (e, n, o) => {
|
|
|
4912
4911
|
}, In = (e) => {
|
|
4913
4912
|
const { t: n } = Z();
|
|
4914
4913
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
4915
|
-
|
|
4914
|
+
Gt,
|
|
4916
4915
|
{
|
|
4917
4916
|
entity: { ...e.eventGame, labels: null },
|
|
4918
4917
|
headline: n("eventGame.headline"),
|
|
@@ -4926,7 +4925,7 @@ const rn = (e, n, o) => {
|
|
|
4926
4925
|
}, jn = (e) => {
|
|
4927
4926
|
const { t: n } = Z(), o = J(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Be : be;
|
|
4928
4927
|
return /* @__PURE__ */ t(
|
|
4929
|
-
|
|
4928
|
+
Wt,
|
|
4930
4929
|
{
|
|
4931
4930
|
entity: { ...e.eventGame, labels: null },
|
|
4932
4931
|
headline: n("eventGame.headline"),
|
|
@@ -5474,19 +5473,19 @@ const rn = (e, n, o) => {
|
|
|
5474
5473
|
}
|
|
5475
5474
|
};
|
|
5476
5475
|
}, Qn = (e) => {
|
|
5477
|
-
const n = de(), o =
|
|
5476
|
+
const n = de(), o = Pe(
|
|
5478
5477
|
{
|
|
5479
5478
|
images: e.eventGame.images,
|
|
5480
5479
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
5481
5480
|
},
|
|
5482
5481
|
$.STANDARD
|
|
5483
|
-
), { t: a } = Z(), r = null, c = J(),
|
|
5482
|
+
), { t: a } = Z(), r = null, c = J(), S = Se(), u = e.imagePosition || "left", d = b().textPrimary, g = b().palette.primary.plainColor, A = b().textColor, m = Q().secondary, K = Q().primary, l = b().surface, y = `rgba(${D(b().surfaceVariant)}, 0.5)`, U = b().onSurface, C = W(), x = Re().size, P = X(), p = `rgba(${D(
|
|
5484
5483
|
b().surfaceVariant || ""
|
|
5485
5484
|
)}, 0.5)`, F = ke(
|
|
5486
5485
|
$.STANDARD
|
|
5487
5486
|
), R = "60%", z = b().textColor, { rankings: h, pagination: q, loading: M, goToNextPage: _, goToPreviousPage: O } = at(e.eventGame.id, e.sdk), B = Dn({
|
|
5488
5487
|
finalImage: o,
|
|
5489
|
-
spacingScale:
|
|
5488
|
+
spacingScale: P,
|
|
5490
5489
|
borderRadius: C,
|
|
5491
5490
|
fontFamilyPrimary: K,
|
|
5492
5491
|
fontFamilySecondary: m,
|
|
@@ -5508,7 +5507,7 @@ const rn = (e, n, o) => {
|
|
|
5508
5507
|
darkTextColor: n.colorSchemes.dark.textColor,
|
|
5509
5508
|
opacity: R,
|
|
5510
5509
|
secondaryColor: z,
|
|
5511
|
-
isExtraSmall:
|
|
5510
|
+
isExtraSmall: S
|
|
5512
5511
|
}), k = () => /* @__PURE__ */ s(i, { sx: B.mainContentArea, children: [
|
|
5513
5512
|
!c && /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(i, { sx: B.desktopHeadlineContainer, children: /* @__PURE__ */ s(
|
|
5514
5513
|
i,
|
|
@@ -5525,7 +5524,7 @@ const rn = (e, n, o) => {
|
|
|
5525
5524
|
sx: {
|
|
5526
5525
|
display: "flex",
|
|
5527
5526
|
alignItems: "center",
|
|
5528
|
-
gap:
|
|
5527
|
+
gap: P["3xs"]
|
|
5529
5528
|
},
|
|
5530
5529
|
children: [
|
|
5531
5530
|
/* @__PURE__ */ t(
|
|
@@ -5568,7 +5567,7 @@ const rn = (e, n, o) => {
|
|
|
5568
5567
|
{
|
|
5569
5568
|
sx: {
|
|
5570
5569
|
...B.paginationContainer,
|
|
5571
|
-
ml:
|
|
5570
|
+
ml: S ? "0" : "auto"
|
|
5572
5571
|
},
|
|
5573
5572
|
children: /* @__PURE__ */ t(
|
|
5574
5573
|
ot,
|
|
@@ -5591,7 +5590,7 @@ const rn = (e, n, o) => {
|
|
|
5591
5590
|
display: "flex",
|
|
5592
5591
|
alignItems: "center",
|
|
5593
5592
|
justifyContent: "center",
|
|
5594
|
-
gap:
|
|
5593
|
+
gap: P["3xs"]
|
|
5595
5594
|
},
|
|
5596
5595
|
children: [
|
|
5597
5596
|
/* @__PURE__ */ t(
|
|
@@ -5625,7 +5624,7 @@ const rn = (e, n, o) => {
|
|
|
5625
5624
|
display: "flex",
|
|
5626
5625
|
alignItems: "center",
|
|
5627
5626
|
justifyContent: "center",
|
|
5628
|
-
gap:
|
|
5627
|
+
gap: P["3xs"]
|
|
5629
5628
|
},
|
|
5630
5629
|
children: [
|
|
5631
5630
|
/* @__PURE__ */ t(f, { level: "body-sm", sx: B.headlineTypography, children: a("eventGame.headline") }),
|
|
@@ -5675,7 +5674,7 @@ const rn = (e, n, o) => {
|
|
|
5675
5674
|
}) => {
|
|
5676
5675
|
const o = W(), a = Q();
|
|
5677
5676
|
return e.open ? /* @__PURE__ */ t(
|
|
5678
|
-
|
|
5677
|
+
tn,
|
|
5679
5678
|
{
|
|
5680
5679
|
open: e.open,
|
|
5681
5680
|
onClose: n,
|
|
@@ -5683,7 +5682,7 @@ const rn = (e, n, o) => {
|
|
|
5683
5682
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
5684
5683
|
color: e.variant === "success" ? "success" : "danger",
|
|
5685
5684
|
variant: "soft",
|
|
5686
|
-
startDecorator: e.variant === "success" ? /* @__PURE__ */ t(
|
|
5685
|
+
startDecorator: e.variant === "success" ? /* @__PURE__ */ t(yt, {}) : /* @__PURE__ */ t(nn, {}),
|
|
5687
5686
|
sx: {
|
|
5688
5687
|
borderRadius: o.sm,
|
|
5689
5688
|
fontFamily: a.secondary,
|
|
@@ -5933,13 +5932,13 @@ const rn = (e, n, o) => {
|
|
|
5933
5932
|
}
|
|
5934
5933
|
}), Gn = (e) => {
|
|
5935
5934
|
var te, re, ne, T, ie, oe, ae, L, Ae, fe, ge, me, N, Ce, qe, pe;
|
|
5936
|
-
const [n, o] = Ee.useState(1), a = X(), r = de(), { t: c } = Z(),
|
|
5935
|
+
const [n, o] = Ee.useState(1), a = X(), r = de(), { t: c } = Z(), S = J(), u = Se(), d = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : S ? Be : be, g = Pe(
|
|
5937
5936
|
{
|
|
5938
5937
|
images: e.eventGame.images,
|
|
5939
5938
|
imagePlaceholder: d
|
|
5940
5939
|
},
|
|
5941
5940
|
$.OVERLAY
|
|
5942
|
-
), A = r.customRadius.dark.md, m = (re = (te = r.colorSchemes) == null ? void 0 : te.dark) == null ? void 0 : re.surfaceVariant, K = (T = (ne = r.customRadius) == null ? void 0 : ne.light) == null ? void 0 : T.xl, l = (L = (ae = (oe = (ie = r.colorSchemes) == null ? void 0 : ie.light) == null ? void 0 : oe.palette) == null ? void 0 : ae.primary) == null ? void 0 : L.plainColor, y = (me = (ge = (fe = (Ae = r.colorSchemes) == null ? void 0 : Ae.light) == null ? void 0 : fe.palette) == null ? void 0 : ge.primary) == null ? void 0 : me.onPrimary, U = r.customFontFamily.dark.primary, C = r.colorSchemes.dark.textColor, x = (pe = (qe = (Ce = (N = r.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : Ce.palette) == null ? void 0 : qe.danger) == null ? void 0 : pe.plainColor,
|
|
5941
|
+
), A = r.customRadius.dark.md, m = (re = (te = r.colorSchemes) == null ? void 0 : te.dark) == null ? void 0 : re.surfaceVariant, K = (T = (ne = r.customRadius) == null ? void 0 : ne.light) == null ? void 0 : T.xl, l = (L = (ae = (oe = (ie = r.colorSchemes) == null ? void 0 : ie.light) == null ? void 0 : oe.palette) == null ? void 0 : ae.primary) == null ? void 0 : L.plainColor, y = (me = (ge = (fe = (Ae = r.colorSchemes) == null ? void 0 : Ae.light) == null ? void 0 : fe.palette) == null ? void 0 : ge.primary) == null ? void 0 : me.onPrimary, U = r.customFontFamily.dark.primary, C = r.colorSchemes.dark.textColor, x = (pe = (qe = (Ce = (N = r.colorSchemes) == null ? void 0 : N.light) == null ? void 0 : Ce.palette) == null ? void 0 : qe.danger) == null ? void 0 : pe.plainColor, P = r.colorSchemes.dark.textColor, F = On({
|
|
5943
5942
|
spacingScale: a,
|
|
5944
5943
|
mdBorderRadius: A,
|
|
5945
5944
|
contentBgColor: m,
|
|
@@ -5948,10 +5947,10 @@ const rn = (e, n, o) => {
|
|
|
5948
5947
|
onPrimaryColor: y,
|
|
5949
5948
|
fontFamilyPrimary: U,
|
|
5950
5949
|
darkTextColor: C,
|
|
5951
|
-
isMobile:
|
|
5950
|
+
isMobile: S,
|
|
5952
5951
|
isExtraSmall: u,
|
|
5953
5952
|
dangerColor: x,
|
|
5954
|
-
textColor:
|
|
5953
|
+
textColor: P,
|
|
5955
5954
|
opacity: "60%"
|
|
5956
5955
|
}), R = Ze(
|
|
5957
5956
|
(H, j) => {
|
|
@@ -6243,7 +6242,7 @@ const rn = (e, n, o) => {
|
|
|
6243
6242
|
] }) })
|
|
6244
6243
|
] });
|
|
6245
6244
|
return /* @__PURE__ */ t(
|
|
6246
|
-
|
|
6245
|
+
Jt,
|
|
6247
6246
|
{
|
|
6248
6247
|
entity: { ...e.eventGame, labels: null },
|
|
6249
6248
|
headline: c("eventGame.headline"),
|
|
@@ -6398,7 +6397,7 @@ const rn = (e, n, o) => {
|
|
|
6398
6397
|
lineHeight: 1
|
|
6399
6398
|
}
|
|
6400
6399
|
}), Jn = (e) => {
|
|
6401
|
-
const [n, o] = Ee.useState(1), { t: a } = Z(), r = J(), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Be : be,
|
|
6400
|
+
const [n, o] = Ee.useState(1), { t: a } = Z(), r = J(), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Be : be, S = Pe(
|
|
6402
6401
|
{
|
|
6403
6402
|
images: e.eventGame.images,
|
|
6404
6403
|
imagePlaceholder: c
|
|
@@ -6413,7 +6412,7 @@ const rn = (e, n, o) => {
|
|
|
6413
6412
|
secondaryColor: g,
|
|
6414
6413
|
isMobile: r,
|
|
6415
6414
|
dangerColor: u
|
|
6416
|
-
}),
|
|
6415
|
+
}), P = Ze(
|
|
6417
6416
|
(v, Y) => {
|
|
6418
6417
|
e.setPrediction((te) => {
|
|
6419
6418
|
const re = { ...te }, ne = re.fixtures.find(
|
|
@@ -6435,7 +6434,7 @@ const rn = (e, n, o) => {
|
|
|
6435
6434
|
ne.prediction,
|
|
6436
6435
|
re
|
|
6437
6436
|
);
|
|
6438
|
-
T !== ne.prediction &&
|
|
6437
|
+
T !== ne.prediction && P(v.id, T);
|
|
6439
6438
|
}
|
|
6440
6439
|
}
|
|
6441
6440
|
n < p ? o(n + 1) : e.play();
|
|
@@ -6480,8 +6479,8 @@ const rn = (e, n, o) => {
|
|
|
6480
6479
|
/* @__PURE__ */ t(f, { sx: x.stateTitle, children: a("eventGame.states.open.title") }),
|
|
6481
6480
|
/* @__PURE__ */ t(f, { sx: x.stateDescription, children: a("eventGame.states.open.description") })
|
|
6482
6481
|
] }), k = We(() => e.eventGame.fixtures[n - 1], [e.eventGame.fixtures, n]), w = We(() => k ? {
|
|
6483
|
-
onSelectionChange: (v) =>
|
|
6484
|
-
} : {}, [k == null ? void 0 : k.id,
|
|
6482
|
+
onSelectionChange: (v) => P(k.id, v)
|
|
6483
|
+
} : {}, [k == null ? void 0 : k.id, P]), G = () => {
|
|
6485
6484
|
var Y, te, re, ne, T, ie, oe, ae;
|
|
6486
6485
|
const v = k;
|
|
6487
6486
|
if (F)
|
|
@@ -6704,11 +6703,11 @@ const rn = (e, n, o) => {
|
|
|
6704
6703
|
}
|
|
6705
6704
|
};
|
|
6706
6705
|
return /* @__PURE__ */ t(Ue, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
6707
|
-
|
|
6706
|
+
Et,
|
|
6708
6707
|
{
|
|
6709
6708
|
entity: { ...e.eventGame, labels: null },
|
|
6710
6709
|
headline: a("eventGame.headline"),
|
|
6711
|
-
finalImage:
|
|
6710
|
+
finalImage: S,
|
|
6712
6711
|
brandingLogo: "",
|
|
6713
6712
|
renderPresentedBy: (v) => /* @__PURE__ */ t(I, {}),
|
|
6714
6713
|
rulesDisplay: e.rulesDisplay,
|
|
@@ -6942,15 +6941,15 @@ const rn = (e, n, o) => {
|
|
|
6942
6941
|
lineHeight: 1
|
|
6943
6942
|
}
|
|
6944
6943
|
}), Zn = (e) => {
|
|
6945
|
-
const n = de(), { t: o } = Z(), a = J(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Be : be, c =
|
|
6944
|
+
const n = de(), { t: o } = Z(), a = J(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Be : be, c = Pe(
|
|
6946
6945
|
{
|
|
6947
6946
|
images: e.event.images,
|
|
6948
6947
|
imagePlaceholder: r
|
|
6949
6948
|
},
|
|
6950
6949
|
$.SPLIT
|
|
6951
|
-
),
|
|
6950
|
+
), S = b().palette.danger.plainColor, u = b().textColor, d = b().textColor, g = Q().secondary, A = "60%", m = Q().primary, K = b().surfaceVariant, l = W(), y = X(), U = ke(
|
|
6952
6951
|
$.SPLIT
|
|
6953
|
-
), { rankings: C, pagination: x, loading:
|
|
6952
|
+
), { rankings: C, pagination: x, loading: P, goToNextPage: p, goToPreviousPage: F } = at(e.event.id, e.sdk), R = En({
|
|
6954
6953
|
finalImage: c,
|
|
6955
6954
|
spacingScale: y,
|
|
6956
6955
|
borderRadius: l,
|
|
@@ -6963,7 +6962,7 @@ const rn = (e, n, o) => {
|
|
|
6963
6962
|
darkTextColor: n.colorSchemes.dark.textColor,
|
|
6964
6963
|
imageBackgroundGradient: U,
|
|
6965
6964
|
isMobile: a,
|
|
6966
|
-
dangerColor:
|
|
6965
|
+
dangerColor: S,
|
|
6967
6966
|
isTabulated: e.showPredictionDetails || !1
|
|
6968
6967
|
}), z = () => /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(i, { sx: R.questionAreaContent, children: /* @__PURE__ */ s(i, { sx: R.mainContentContainer, children: [
|
|
6969
6968
|
/* @__PURE__ */ t(
|
|
@@ -6973,7 +6972,7 @@ const rn = (e, n, o) => {
|
|
|
6973
6972
|
userRanking: e.prediction,
|
|
6974
6973
|
showHeading: !e.showPredictionDetails,
|
|
6975
6974
|
isSplitVariant: !0,
|
|
6976
|
-
loading:
|
|
6975
|
+
loading: P
|
|
6977
6976
|
}
|
|
6978
6977
|
),
|
|
6979
6978
|
x && (x.hasNextPage || x.hasPreviousPage) && /* @__PURE__ */ t(i, { sx: R.paginationContainer, children: /* @__PURE__ */ t(
|
|
@@ -7190,15 +7189,15 @@ const rn = (e, n, o) => {
|
|
|
7190
7189
|
}), Nn = (e) => {
|
|
7191
7190
|
const n = de(), o = X(), { t: a } = Z(), r = J(), c = ke(
|
|
7192
7191
|
$.OVERLAY
|
|
7193
|
-
),
|
|
7192
|
+
), S = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Be : be, u = Pe(
|
|
7194
7193
|
{
|
|
7195
7194
|
images: e.eventGame.images,
|
|
7196
|
-
imagePlaceholder:
|
|
7195
|
+
imagePlaceholder: S
|
|
7197
7196
|
},
|
|
7198
7197
|
$.OVERLAY
|
|
7199
|
-
), d =
|
|
7198
|
+
), d = vt(u), g = n.colorSchemes.dark.textSecondary, A = n.colorSchemes.dark.secondaryContainer, m = n.colorSchemes.dark.textPrimary, K = n.customFontFamily.light.primary, l = n.customRadius.light.md, y = n.customRadius.light.xl, U = n.colorSchemes.dark.surfaceVariant, C = e.eventGame.status === "OPEN" && e.prediction && e.onPredictionUpdate, x = (h) => {
|
|
7200
7199
|
console.log(`Edit prediction for fixture at index: ${h}`);
|
|
7201
|
-
},
|
|
7200
|
+
}, P = Yn({
|
|
7202
7201
|
spacingScale: o,
|
|
7203
7202
|
textPrimary: m,
|
|
7204
7203
|
fontFamilyPrimary: K,
|
|
@@ -7236,7 +7235,7 @@ const rn = (e, n, o) => {
|
|
|
7236
7235
|
lineHeight: "24px",
|
|
7237
7236
|
letterSpacing: "0.40px",
|
|
7238
7237
|
textTransform: "uppercase"
|
|
7239
|
-
}, z = () => /* @__PURE__ */ s(i, { sx:
|
|
7238
|
+
}, z = () => /* @__PURE__ */ s(i, { sx: P.mainContentWrapper, children: [
|
|
7240
7239
|
e.isUnauthorized ? /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(
|
|
7241
7240
|
tt,
|
|
7242
7241
|
{
|
|
@@ -7244,7 +7243,7 @@ const rn = (e, n, o) => {
|
|
|
7244
7243
|
title: a("common.authentication.accessRequired"),
|
|
7245
7244
|
message: a("common.authentication.invalidOrMissingAuth")
|
|
7246
7245
|
}
|
|
7247
|
-
) }) : /* @__PURE__ */ t(i, { sx:
|
|
7246
|
+
) }) : /* @__PURE__ */ t(i, { sx: P.resultsContainer, children: /* @__PURE__ */ t(i, { sx: P.resultsWrapper, children: C ? /* @__PURE__ */ t(
|
|
7248
7247
|
ze,
|
|
7249
7248
|
{
|
|
7250
7249
|
fixtures: e.eventGame.fixtures,
|
|
@@ -7315,7 +7314,7 @@ const rn = (e, n, o) => {
|
|
|
7315
7314
|
case V.FREE_INPUT:
|
|
7316
7315
|
return null;
|
|
7317
7316
|
}
|
|
7318
|
-
}, o = new
|
|
7317
|
+
}, o = new Zt();
|
|
7319
7318
|
return o.fixtures = e.map((a) => ({
|
|
7320
7319
|
id: a.id,
|
|
7321
7320
|
predictionType: a.outcomeType,
|
|
@@ -7329,7 +7328,7 @@ const Ln = (e) => {
|
|
|
7329
7328
|
const { t: n } = Z(), { game: o, points: a } = rn(e.entityId, e.sdk, e.showPoints), {
|
|
7330
7329
|
myPrediction: r,
|
|
7331
7330
|
setMyPrediction: c,
|
|
7332
|
-
isApiError:
|
|
7331
|
+
isApiError: S,
|
|
7333
7332
|
setIsApiError: u,
|
|
7334
7333
|
isUnauthorized: d,
|
|
7335
7334
|
setIsUnauthorized: g
|
|
@@ -7350,7 +7349,7 @@ const Ln = (e) => {
|
|
|
7350
7349
|
});
|
|
7351
7350
|
}, x = () => {
|
|
7352
7351
|
U((z) => ({ ...z, open: !1 }));
|
|
7353
|
-
},
|
|
7352
|
+
}, P = (z) => {
|
|
7354
7353
|
z.success ? C(
|
|
7355
7354
|
"success",
|
|
7356
7355
|
n("eventGame.alerts.play.success.title"),
|
|
@@ -7370,14 +7369,14 @@ const Ln = (e) => {
|
|
|
7370
7369
|
const p = () => {
|
|
7371
7370
|
u(!1), g(!1);
|
|
7372
7371
|
};
|
|
7373
|
-
if (d ||
|
|
7372
|
+
if (d || S)
|
|
7374
7373
|
return Ge(e) ? /* @__PURE__ */ t(
|
|
7375
7374
|
qn,
|
|
7376
7375
|
{
|
|
7377
7376
|
eventGame: o,
|
|
7378
7377
|
imagePosition: e.imagePosition,
|
|
7379
7378
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
7380
|
-
isApiError:
|
|
7379
|
+
isApiError: S,
|
|
7381
7380
|
toggleTryAgain: p
|
|
7382
7381
|
}
|
|
7383
7382
|
) : e.template === $.OVERLAY ? /* @__PURE__ */ t(
|
|
@@ -7385,7 +7384,7 @@ const Ln = (e) => {
|
|
|
7385
7384
|
{
|
|
7386
7385
|
eventGame: o,
|
|
7387
7386
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
7388
|
-
isApiError:
|
|
7387
|
+
isApiError: S,
|
|
7389
7388
|
toggleTryAgain: p
|
|
7390
7389
|
}
|
|
7391
7390
|
) : /* @__PURE__ */ t(
|
|
@@ -7393,7 +7392,7 @@ const Ln = (e) => {
|
|
|
7393
7392
|
{
|
|
7394
7393
|
eventGame: o,
|
|
7395
7394
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
7396
|
-
isApiError:
|
|
7395
|
+
isApiError: S,
|
|
7397
7396
|
toggleTryAgain: p
|
|
7398
7397
|
}
|
|
7399
7398
|
);
|
|
@@ -7532,7 +7531,7 @@ const Ln = (e) => {
|
|
|
7532
7531
|
prediction: r,
|
|
7533
7532
|
onPredictionUpdate: l,
|
|
7534
7533
|
play: F,
|
|
7535
|
-
onPlayResult:
|
|
7534
|
+
onPlayResult: P,
|
|
7536
7535
|
additionalCTA: e.additionalCTA,
|
|
7537
7536
|
rulesDisplay: e.rulesDisplay
|
|
7538
7537
|
}
|
|
@@ -7557,7 +7556,7 @@ const Ln = (e) => {
|
|
|
7557
7556
|
prediction: r,
|
|
7558
7557
|
onPredictionUpdate: l,
|
|
7559
7558
|
play: F,
|
|
7560
|
-
onPlayResult:
|
|
7559
|
+
onPlayResult: P,
|
|
7561
7560
|
additionalCTA: e.additionalCTA,
|
|
7562
7561
|
rulesDisplay: e.rulesDisplay
|
|
7563
7562
|
}
|
|
@@ -7581,7 +7580,7 @@ const Ln = (e) => {
|
|
|
7581
7580
|
prediction: r,
|
|
7582
7581
|
onPredictionUpdate: l,
|
|
7583
7582
|
play: F,
|
|
7584
|
-
onPlayResult:
|
|
7583
|
+
onPlayResult: P,
|
|
7585
7584
|
additionalCTA: e.additionalCTA,
|
|
7586
7585
|
rulesDisplay: e.rulesDisplay
|
|
7587
7586
|
}
|
|
@@ -7591,7 +7590,7 @@ const Ln = (e) => {
|
|
|
7591
7590
|
R(),
|
|
7592
7591
|
/* @__PURE__ */ t(Oe, { notification: y, onClose: x })
|
|
7593
7592
|
] });
|
|
7594
|
-
}, $n = (e) => /* @__PURE__ */ t(
|
|
7593
|
+
}, $n = (e) => /* @__PURE__ */ t(Vt, { packageName: "event-game-play", ...e, children: /* @__PURE__ */ t(Ln, { ...e }) }), li = $n;
|
|
7595
7594
|
export {
|
|
7596
|
-
|
|
7595
|
+
li as EventGamePlay
|
|
7597
7596
|
};
|