fansunited-frontend-components 0.0.48 → 0.0.49
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/ChanceGame.js +45 -45
- package/ClassicQuizPlay.js +184 -183
- package/CollectLead.js +16 -15
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +66 -65
- package/EventGamePlay.js +68 -67
- package/Leaderboard.js +22 -22
- package/MatchQuizPlay.js +82 -81
- package/PersonalityQuizPlay.js +77 -76
- package/PickThePair.js +42 -42
- package/PollVote.js +53 -52
- package/Predictor.js +75 -75
- package/README.md +272 -0
- package/chunks/{AlertMessage-D4Uc6n5U.js → AlertMessage-Ds45MBHB.js} +3 -3
- package/chunks/{ArrowRightAlt-wEs8SY1V.js → ArrowRightAlt-DKADQN2o.js} +1 -1
- package/chunks/{Avatar-BXHdXHLA.js → Avatar-K1EWhhkA.js} +2 -2
- package/chunks/{ChanceGameEmbedVariant-DfS5LPpp.js → ChanceGameEmbedVariant-DqFg4YKU.js} +31 -29
- package/chunks/{CheckCircle-CU2itira.js → CheckCircle-CV9iMpkZ.js} +1 -1
- package/chunks/{Close-DBt1nfGo.js → Close-BHp4N1-6.js} +1 -1
- package/chunks/{Close-C5SGTkPr.js → Close-C6Cw96SJ.js} +1 -1
- package/chunks/{CollectLeadForm-BqjgPYKX.js → CollectLeadForm-DnLKA8qz.js} +13 -13
- package/chunks/{Divider-Cbns9B3Y.js → Divider-BvUimRFw.js} +2 -2
- package/chunks/{Edit-BVP8fCB4.js → Edit-CZ3ni-Ur.js} +4 -4
- package/chunks/{EmojiEvents-D_ObJxNy.js → EmojiEvents-DpmLq98V.js} +1 -1
- package/chunks/{FavoriteBorder-_mUf1vas.js → FavoriteBorder-DUK_DrY4.js} +1 -1
- package/chunks/{FormControl-DLBvX-Sn.js → FormControl-BUItlVIg.js} +3 -3
- package/chunks/{FormLabel-jXtScWTI.js → FormLabel-CeTNPUn7.js} +2 -2
- package/chunks/{Input-Cha_dm3J.js → Input-MJCQcYzo.js} +2 -2
- package/chunks/{KeyboardArrowDown-C_8g8wLS.js → KeyboardArrowDown-SZpn2GhJ.js} +1 -1
- package/chunks/{ModalDialog-Co3jck0z.js → ModalDialog-Cfgv9UAA.js} +2 -2
- package/chunks/{NotFoundSkeleton-D5Jh3lnu.js → NotFoundSkeleton-Cs6DtD9u.js} +13 -12
- package/chunks/{Notification-r1Fm0If2.js → Notification-pcKtlRms.js} +4 -4
- package/chunks/{OverlayApiErrorSkeleton-BUuD0zL8.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +20 -19
- package/chunks/{OverlayLeadAfterCollection-B-N1OjPu.js → OverlayLeadAfterCollection-F2TAV9wK.js} +14 -12
- package/chunks/{OverlayScoreStateSkeleton-Bd3-ZNlU.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
- package/chunks/{Person-K8GGMiAW.js → Person-BGdniS_p.js} +1 -1
- package/chunks/{PickOneOfX-CvIn7QOd.js → PickOneOfX-Ci4ZJf7G.js} +8 -7
- package/chunks/{Popper-Bti_HOMS.js → Popper-DOVSI4rJ.js} +1 -1
- package/chunks/{Portal-B-nN3a_R.js → Portal-Cs0dgwmH.js} +1 -1
- package/chunks/{index-Btf_jw7-.js → PrizeCard-DF3QxwQJ.js} +0 -1
- package/chunks/{Select-C2QtqgA7.js → Select-BHeTdOYr.js} +3 -3
- package/chunks/{Spinner-D7-MZe2m.js → Spinner-DbUB64Gj.js} +1 -1
- package/chunks/{SplitLeadAfterCollection-CyXBWAIK.js → SplitLeadAfterCollection-DSw6X5fx.js} +36 -34
- package/chunks/{Stack-CU36SsgA.js → Stack-BpHk5eb0.js} +1 -1
- package/chunks/{StandardContentSkeleton-CYduGHsc.js → StandardContentSkeleton-Bae1LLQ_.js} +1 -1
- package/chunks/{Tabs-CA-FqQfT.js → Tabs-hwJ7jsUl.js} +3 -3
- package/chunks/{Textarea-Cn4VvCBl.js → Textarea-zOtMdgc5.js} +3 -3
- package/chunks/{TimerOutlined-DOpryr42.js → TimerOutlined-DWE7f0YX.js} +1 -1
- package/chunks/{helpers-1jFObSvc.js → helpers-NuC1SzL3.js} +1 -1
- package/chunks/index-BaypiKlO.js +4 -0
- package/chunks/{main-Chqd9Wwn.js → main-hB01WcoP.js} +88 -88
- package/chunks/{useEventCallback-CkO2rd5W.js → useEventCallback-CizlfWBo.js} +1 -1
- package/chunks/{useForwardedInput-C3SP2QmS.js → useForwardedInput-RWDntqBU.js} +2 -2
- package/chunks/{useImageVariant-BJ722AFw.js → useImageVariant-Cex1eIqq.js} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/chunks/index-CyODGG_P.js +0 -4
package/EventGamePlay.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { S as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { C as
|
|
17
|
-
import {
|
|
18
|
-
import { S as
|
|
19
|
-
import { A as Qe, S as
|
|
20
|
-
import {
|
|
21
|
-
import { A as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
2
|
+
import Je, { useState as Q, useEffect as je, useRef as At, createContext as zt, useCallback as et, useMemo as Ve } from "react";
|
|
3
|
+
import { i as Y, b as J, a as p, d as He, B as i, c as q, T as x, e as ae, u as ue, I as De, f as ne, g as We, l as Se, C as It, r as Dt, k as Mt, j as Re, W as le, n as Ee, h as kt } from "./chunks/PrizeCard-DF3QxwQJ.js";
|
|
4
|
+
import { P as Bt } from "./chunks/Portal-Cs0dgwmH.js";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import { g as Ht, h as N, e as tt, s as Le, a as Wt, b as Et } from "./chunks/helpers-NuC1SzL3.js";
|
|
7
|
+
import { S as Ft } from "./chunks/Spinner-DbUB64Gj.js";
|
|
8
|
+
import { a as $t, b as Lt, S as Ut, C as xt, c as yt } from "./chunks/ChanceGameEmbedVariant-DqFg4YKU.js";
|
|
9
|
+
import { N as Xe } from "./chunks/Notification-pcKtlRms.js";
|
|
10
|
+
import { E as Vt, a as W, m as jt } from "./chunks/index-D1K1OB4p.js";
|
|
11
|
+
import { T as ht, D as Nt, S as Tt, R as Ue, N as Ot, O as qt } from "./chunks/NotFoundSkeleton-Cs6DtD9u.js";
|
|
12
|
+
import { b as Ce, d as Me, a as Be } from "./chunks/useImageVariant-Cex1eIqq.js";
|
|
13
|
+
import { K as Yt, a as _t, H as Zt, D as Xt, E as Kt } from "./chunks/Edit-CZ3ni-Ur.js";
|
|
14
|
+
import { I as wt } from "./chunks/Input-MJCQcYzo.js";
|
|
15
|
+
import { S as Qt, a as Jt } from "./chunks/Select-BHeTdOYr.js";
|
|
16
|
+
import { C as en } from "./chunks/Close-BHp4N1-6.js";
|
|
17
|
+
import { M as tn, a as nn } from "./chunks/ModalDialog-Cfgv9UAA.js";
|
|
18
|
+
import { S as Rt, T as pt, P as bt } from "./chunks/Person-BGdniS_p.js";
|
|
19
|
+
import { A as Qe, S as an, O as on } from "./chunks/OverlayApiErrorSkeleton-Dl3s5Oaf.js";
|
|
20
|
+
import { C as ln } from "./chunks/CheckCircle-CV9iMpkZ.js";
|
|
21
|
+
import { A as rn, I as cn, W as dn } from "./chunks/AlertMessage-Ds45MBHB.js";
|
|
22
|
+
import { S as sn } from "./chunks/Stack-BpHk5eb0.js";
|
|
23
|
+
import { T as mn, a as gn, b as St, t as Ct, c as vt } from "./chunks/Tabs-hwJ7jsUl.js";
|
|
24
|
+
import { A as Pt } from "./chunks/Avatar-K1EWhhkA.js";
|
|
25
|
+
import { C as un, a as fn } from "./chunks/chevron-right-B3IZtaMT.js";
|
|
26
|
+
import { O as xn } from "./chunks/OverlayScoreStateSkeleton-LQ0svzeX.js";
|
|
26
27
|
const yn = (e, n, a) => {
|
|
27
28
|
const [r, c] = Q(null), [d, f] = Q(null), o = async () => {
|
|
28
29
|
try {
|
|
@@ -38,7 +39,7 @@ const yn = (e, n, a) => {
|
|
|
38
39
|
} else
|
|
39
40
|
f([]);
|
|
40
41
|
} catch (l) {
|
|
41
|
-
console.warn(l), c(new
|
|
42
|
+
console.warn(l), c(new Vt()), f([]);
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
45
|
return je(() => (o(), () => {
|
|
@@ -119,7 +120,7 @@ const yn = (e, n, a) => {
|
|
|
119
120
|
}
|
|
120
121
|
);
|
|
121
122
|
}, xe = (e) => {
|
|
122
|
-
const n = q().secondary, a = Y(), r = e.flexDirection || "column", c =
|
|
123
|
+
const n = q().secondary, a = Y(), r = e.flexDirection || "column", c = Ht(e.primaryUrl, e.secondaryUrl, "logo");
|
|
123
124
|
if (!e.brandingLogo)
|
|
124
125
|
return null;
|
|
125
126
|
const d = () => {
|
|
@@ -651,7 +652,7 @@ const yn = (e, n, a) => {
|
|
|
651
652
|
}
|
|
652
653
|
}
|
|
653
654
|
}), Cn = (e) => {
|
|
654
|
-
const n = p(), a = J(), r = q(), c = ae(), d = Y(), f = ue(), [o, l] = Q(e.prediction), g =
|
|
655
|
+
const n = p(), a = J(), r = q(), c = ae(), d = Y(), f = ue(), [o, l] = Q(e.prediction), g = At(null), b = e.minValue !== void 0 ? e.minValue : -1 / 0, s = e.maxValue !== void 0 ? e.maxValue : 1 / 0, k = f.mode === "dark" || e.isOverlayVariant, u = Sn({
|
|
655
656
|
spacingScale: c,
|
|
656
657
|
borderRadius: a,
|
|
657
658
|
fontFamilyPrimary: r.primary,
|
|
@@ -683,11 +684,11 @@ const yn = (e, n, a) => {
|
|
|
683
684
|
onClick: () => T(!1),
|
|
684
685
|
sx: u.numberButton,
|
|
685
686
|
disabled: o <= b,
|
|
686
|
-
children: /* @__PURE__ */ t(
|
|
687
|
+
children: /* @__PURE__ */ t(Yt, { fontSize: "small" })
|
|
687
688
|
}
|
|
688
689
|
),
|
|
689
690
|
/* @__PURE__ */ t(
|
|
690
|
-
|
|
691
|
+
wt,
|
|
691
692
|
{
|
|
692
693
|
value: o,
|
|
693
694
|
onChange: h,
|
|
@@ -713,7 +714,7 @@ const yn = (e, n, a) => {
|
|
|
713
714
|
onClick: () => T(!0),
|
|
714
715
|
sx: u.numberButton,
|
|
715
716
|
disabled: o >= s,
|
|
716
|
-
children: /* @__PURE__ */ t(
|
|
717
|
+
children: /* @__PURE__ */ t(_t, { fontSize: "small" })
|
|
717
718
|
}
|
|
718
719
|
)
|
|
719
720
|
] }) });
|
|
@@ -836,7 +837,7 @@ const yn = (e, n, a) => {
|
|
|
836
837
|
fontSize: "1em",
|
|
837
838
|
color: e.textPrimary
|
|
838
839
|
}
|
|
839
|
-
}), Ne =
|
|
840
|
+
}), Ne = zt({
|
|
840
841
|
points: []
|
|
841
842
|
}), at = ({ points: e, children: n }) => /* @__PURE__ */ t(
|
|
842
843
|
Ne.Provider,
|
|
@@ -881,7 +882,7 @@ const yn = (e, n, a) => {
|
|
|
881
882
|
{
|
|
882
883
|
onClick: () => l(!o),
|
|
883
884
|
sx: b.mobileIconButton,
|
|
884
|
-
children: /* @__PURE__ */ t(
|
|
885
|
+
children: /* @__PURE__ */ t(Zt, { sx: b.mobileIcon })
|
|
885
886
|
}
|
|
886
887
|
)
|
|
887
888
|
}
|
|
@@ -1269,7 +1270,7 @@ const yn = (e, n, a) => {
|
|
|
1269
1270
|
}
|
|
1270
1271
|
}
|
|
1271
1272
|
}), pn = (e) => {
|
|
1272
|
-
const { t: n } = ne(), a = p(), r = J(), c = q(), d = ae(), f = Y(), { shadowRootElement: o } = We(It), l =
|
|
1273
|
+
const { t: n } = ne(), a = p(), r = J(), c = q(), d = ae(), f = Y(), { shadowRootElement: o } = We(It), l = Dt(), g = ue(), b = He().size, [s, k] = Q(e.prediction || ""), u = {
|
|
1273
1274
|
background: {
|
|
1274
1275
|
surface: l.colorSchemes.light.palette.background.surface,
|
|
1275
1276
|
popup: l.colorSchemes.light.palette.background.popup
|
|
@@ -1562,17 +1563,17 @@ const yn = (e, n, a) => {
|
|
|
1562
1563
|
) : (
|
|
1563
1564
|
// Otherwise, render select dropdown (default behavior)
|
|
1564
1565
|
/* @__PURE__ */ t(
|
|
1565
|
-
|
|
1566
|
+
Qt,
|
|
1566
1567
|
{
|
|
1567
1568
|
value: s || null,
|
|
1568
1569
|
onChange: F,
|
|
1569
1570
|
placeholder: n("eventGame.fixtures.textSelectPlaceholder"),
|
|
1570
1571
|
slotProps: h,
|
|
1571
|
-
children: I.map((H, y) => /* @__PURE__ */ t(
|
|
1572
|
+
children: I.map((H, y) => /* @__PURE__ */ t(Jt, { value: H, sx: P, children: H }, y))
|
|
1572
1573
|
}
|
|
1573
1574
|
)
|
|
1574
1575
|
) }) : /* @__PURE__ */ t(i, { sx: C.inputContainer, children: /* @__PURE__ */ t(
|
|
1575
|
-
|
|
1576
|
+
wt,
|
|
1576
1577
|
{
|
|
1577
1578
|
value: s,
|
|
1578
1579
|
onChange: v,
|
|
@@ -1791,7 +1792,7 @@ const yn = (e, n, a) => {
|
|
|
1791
1792
|
display: "flex",
|
|
1792
1793
|
alignItems: "center",
|
|
1793
1794
|
justifyContent: "center",
|
|
1794
|
-
py:
|
|
1795
|
+
py: Mt("xs"),
|
|
1795
1796
|
width: "100%",
|
|
1796
1797
|
zIndex: 1
|
|
1797
1798
|
},
|
|
@@ -2297,16 +2298,16 @@ const yn = (e, n, a) => {
|
|
|
2297
2298
|
return null;
|
|
2298
2299
|
};
|
|
2299
2300
|
return /* @__PURE__ */ t(
|
|
2300
|
-
|
|
2301
|
+
tn,
|
|
2301
2302
|
{
|
|
2302
2303
|
open: e.isOpen,
|
|
2303
2304
|
onClose: e.onClose,
|
|
2304
2305
|
container: a,
|
|
2305
2306
|
sx: { zIndex: 1300 },
|
|
2306
|
-
children: /* @__PURE__ */ m(
|
|
2307
|
-
/* @__PURE__ */ t(De, { onClick: e.onClose, sx: b.closeButton, children: /* @__PURE__ */ t(
|
|
2308
|
-
/* @__PURE__ */ t(
|
|
2309
|
-
e.view === "score" && /* @__PURE__ */ m(
|
|
2307
|
+
children: /* @__PURE__ */ m(nn, { sx: b.modalDialog, children: [
|
|
2308
|
+
/* @__PURE__ */ t(De, { onClick: e.onClose, sx: b.closeButton, children: /* @__PURE__ */ t(en, {}) }),
|
|
2309
|
+
/* @__PURE__ */ t(Nt, { sx: b.content, children: T() }),
|
|
2310
|
+
e.view === "score" && /* @__PURE__ */ m(Xt, { children: [
|
|
2310
2311
|
/* @__PURE__ */ t(
|
|
2311
2312
|
Re,
|
|
2312
2313
|
{
|
|
@@ -2431,7 +2432,7 @@ const yn = (e, n, a) => {
|
|
|
2431
2432
|
size: "sm",
|
|
2432
2433
|
sx: s.editIconButton,
|
|
2433
2434
|
onClick: () => k(C),
|
|
2434
|
-
children: /* @__PURE__ */ t(
|
|
2435
|
+
children: /* @__PURE__ */ t(Kt, {})
|
|
2435
2436
|
}
|
|
2436
2437
|
) })
|
|
2437
2438
|
] }, `${P.id}-${C}`)) })
|
|
@@ -2780,7 +2781,7 @@ const yn = (e, n, a) => {
|
|
|
2780
2781
|
}
|
|
2781
2782
|
};
|
|
2782
2783
|
return /* @__PURE__ */ t(ve, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ t(
|
|
2783
|
-
|
|
2784
|
+
Tt,
|
|
2784
2785
|
{
|
|
2785
2786
|
entity: { ...e.eventGame, labels: null },
|
|
2786
2787
|
headline: c("eventGame.headline"),
|
|
@@ -3047,11 +3048,11 @@ const yn = (e, n, a) => {
|
|
|
3047
3048
|
}, Hn = (e, n) => {
|
|
3048
3049
|
switch (e) {
|
|
3049
3050
|
case "success":
|
|
3050
|
-
return /* @__PURE__ */ t(
|
|
3051
|
+
return /* @__PURE__ */ t(ln, {});
|
|
3051
3052
|
case "error":
|
|
3052
|
-
return /* @__PURE__ */ t(
|
|
3053
|
+
return /* @__PURE__ */ t(dn, { sx: { color: n } });
|
|
3053
3054
|
case "info":
|
|
3054
|
-
return /* @__PURE__ */ t(
|
|
3055
|
+
return /* @__PURE__ */ t(cn, {});
|
|
3055
3056
|
}
|
|
3056
3057
|
}, Wn = (e) => {
|
|
3057
3058
|
switch (e) {
|
|
@@ -3070,7 +3071,7 @@ const yn = (e, n, a) => {
|
|
|
3070
3071
|
}) => {
|
|
3071
3072
|
const c = ue(), d = J(), f = q().secondary, o = Y(), l = Wn(e);
|
|
3072
3073
|
return /* @__PURE__ */ t(
|
|
3073
|
-
|
|
3074
|
+
rn,
|
|
3074
3075
|
{
|
|
3075
3076
|
variant: "soft",
|
|
3076
3077
|
color: l,
|
|
@@ -3085,7 +3086,7 @@ const yn = (e, n, a) => {
|
|
|
3085
3086
|
"--Icon-fontSize": o ? "1em" : "1.25em"
|
|
3086
3087
|
},
|
|
3087
3088
|
children: /* @__PURE__ */ m(
|
|
3088
|
-
|
|
3089
|
+
sn,
|
|
3089
3090
|
{
|
|
3090
3091
|
sx: {
|
|
3091
3092
|
fontSize: "1.5em"
|
|
@@ -3229,7 +3230,7 @@ const yn = (e, n, a) => {
|
|
|
3229
3230
|
)
|
|
3230
3231
|
] });
|
|
3231
3232
|
return /* @__PURE__ */ t(ve, { brandingBorderColor: (f == null ? void 0 : f.borderColor) || null, children: /* @__PURE__ */ t(
|
|
3232
|
-
|
|
3233
|
+
Tt,
|
|
3233
3234
|
{
|
|
3234
3235
|
entity: { ...e.eventGame, labels: null },
|
|
3235
3236
|
headline: c("eventGame.headline"),
|
|
@@ -3337,7 +3338,7 @@ const yn = (e, n, a) => {
|
|
|
3337
3338
|
}, H = () => {
|
|
3338
3339
|
var ye, Pe, Ie, be;
|
|
3339
3340
|
return /* @__PURE__ */ t(
|
|
3340
|
-
|
|
3341
|
+
$t,
|
|
3341
3342
|
{
|
|
3342
3343
|
entity: { ...e.eventGame, labels: null },
|
|
3343
3344
|
headline: n("eventGame.headline"),
|
|
@@ -4399,7 +4400,7 @@ const yn = (e, n, a) => {
|
|
|
4399
4400
|
);
|
|
4400
4401
|
};
|
|
4401
4402
|
return /* @__PURE__ */ t(i, { sx: { width: "100%" }, children: /* @__PURE__ */ m(
|
|
4402
|
-
|
|
4403
|
+
mn,
|
|
4403
4404
|
{
|
|
4404
4405
|
value: f,
|
|
4405
4406
|
onChange: (z, S) => o(S),
|
|
@@ -4411,7 +4412,7 @@ const yn = (e, n, a) => {
|
|
|
4411
4412
|
},
|
|
4412
4413
|
children: [
|
|
4413
4414
|
/* @__PURE__ */ m(
|
|
4414
|
-
|
|
4415
|
+
gn,
|
|
4415
4416
|
{
|
|
4416
4417
|
sx: {
|
|
4417
4418
|
fontSize: b ? "0.75em" : "1em",
|
|
@@ -4927,7 +4928,7 @@ const yn = (e, n, a) => {
|
|
|
4927
4928
|
onClick: r,
|
|
4928
4929
|
disabled: !n,
|
|
4929
4930
|
sx: o(),
|
|
4930
|
-
children: /* @__PURE__ */ t(
|
|
4931
|
+
children: /* @__PURE__ */ t(un, { size: 20 })
|
|
4931
4932
|
}
|
|
4932
4933
|
),
|
|
4933
4934
|
/* @__PURE__ */ t(
|
|
@@ -4939,7 +4940,7 @@ const yn = (e, n, a) => {
|
|
|
4939
4940
|
onClick: a,
|
|
4940
4941
|
disabled: !e,
|
|
4941
4942
|
sx: o(),
|
|
4942
|
-
children: /* @__PURE__ */ t(
|
|
4943
|
+
children: /* @__PURE__ */ t(fn, { size: 20 })
|
|
4943
4944
|
}
|
|
4944
4945
|
)
|
|
4945
4946
|
]
|
|
@@ -5125,7 +5126,7 @@ const yn = (e, n, a) => {
|
|
|
5125
5126
|
}, On = () => {
|
|
5126
5127
|
const { t: e } = ne();
|
|
5127
5128
|
return /* @__PURE__ */ t(ve, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
5128
|
-
|
|
5129
|
+
Ot,
|
|
5129
5130
|
{
|
|
5130
5131
|
notFoundTitle: e("eventGame.eventGameNotFound"),
|
|
5131
5132
|
notFoundMessage: e("eventGame.eventGameNotFoundDescription")
|
|
@@ -5135,7 +5136,7 @@ const yn = (e, n, a) => {
|
|
|
5135
5136
|
var d, f, o, l, g, b, s;
|
|
5136
5137
|
const { t: n } = ne(), a = Y(), r = ((d = e.eventGame.branding) == null ? void 0 : d.colors) || null, c = a ? ((o = (f = e.eventGame.branding) == null ? void 0 : f.images) == null ? void 0 : o.mobileLogo) || ((g = (l = e.eventGame.branding) == null ? void 0 : l.images) == null ? void 0 : g.mainLogo) || "" : ((s = (b = e.eventGame.branding) == null ? void 0 : b.images) == null ? void 0 : s.mainLogo) || "";
|
|
5137
5138
|
return /* @__PURE__ */ t(ve, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
|
|
5138
|
-
|
|
5139
|
+
an,
|
|
5139
5140
|
{
|
|
5140
5141
|
entity: { ...e.eventGame, labels: null },
|
|
5141
5142
|
headline: n("eventGame.headline"),
|
|
@@ -5159,7 +5160,7 @@ const yn = (e, n, a) => {
|
|
|
5159
5160
|
var d, f, o, l, g, b, s;
|
|
5160
5161
|
const { t: n } = ne(), a = Y(), r = ((d = e.eventGame.branding) == null ? void 0 : d.colors) || null, c = a ? ((o = (f = e.eventGame.branding) == null ? void 0 : f.images) == null ? void 0 : o.mobileLogo) || ((g = (l = e.eventGame.branding) == null ? void 0 : l.images) == null ? void 0 : g.mainLogo) || "" : ((s = (b = e.eventGame.branding) == null ? void 0 : b.images) == null ? void 0 : s.mainLogo) || "";
|
|
5161
5162
|
return /* @__PURE__ */ t(ve, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
|
|
5162
|
-
|
|
5163
|
+
Lt,
|
|
5163
5164
|
{
|
|
5164
5165
|
entity: { ...e.eventGame, labels: null },
|
|
5165
5166
|
headline: n("eventGame.headline"),
|
|
@@ -5183,7 +5184,7 @@ const yn = (e, n, a) => {
|
|
|
5183
5184
|
e.eventGame.branding || null
|
|
5184
5185
|
), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Me : Be;
|
|
5185
5186
|
return /* @__PURE__ */ t(
|
|
5186
|
-
|
|
5187
|
+
on,
|
|
5187
5188
|
{
|
|
5188
5189
|
entity: { ...e.eventGame, labels: null },
|
|
5189
5190
|
headline: n("eventGame.headline"),
|
|
@@ -6492,7 +6493,7 @@ const yn = (e, n, a) => {
|
|
|
6492
6493
|
o ? H() : /* @__PURE__ */ t(j, {})
|
|
6493
6494
|
] });
|
|
6494
6495
|
return /* @__PURE__ */ t(
|
|
6495
|
-
|
|
6496
|
+
qt,
|
|
6496
6497
|
{
|
|
6497
6498
|
entity: { ...e.eventGame, labels: null },
|
|
6498
6499
|
headline: d("eventGame.headline"),
|
|
@@ -6968,7 +6969,7 @@ const yn = (e, n, a) => {
|
|
|
6968
6969
|
};
|
|
6969
6970
|
return /* @__PURE__ */ m(ve, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: [
|
|
6970
6971
|
/* @__PURE__ */ t(
|
|
6971
|
-
|
|
6972
|
+
Ut,
|
|
6972
6973
|
{
|
|
6973
6974
|
entity: { ...e.eventGame, labels: null },
|
|
6974
6975
|
headline: c("eventGame.headline"),
|
|
@@ -7508,7 +7509,7 @@ const yn = (e, n, a) => {
|
|
|
7508
7509
|
imagePlaceholder: g
|
|
7509
7510
|
},
|
|
7510
7511
|
le.OVERLAY
|
|
7511
|
-
), s =
|
|
7512
|
+
), s = Wt(b), k = (o == null ? void 0 : o.secondaryColor) || n.colorSchemes.dark.textSecondary, u = n.colorSchemes.dark.secondaryContainer, T = n.colorSchemes.dark.textPrimary, h = n.customFontFamily.light.primary, P = n.customRadius.light.md, C = n.customRadius.light.xl, v = (o == null ? void 0 : o.backgroundColor) || n.colorSchemes.dark.surfaceVariant, F = e.eventGame.status === "OPEN" && e.prediction && e.onPredictionUpdate, D = (A) => {
|
|
7512
7513
|
console.log(`Edit prediction for fixture at index: ${A}`);
|
|
7513
7514
|
}, I = ii({
|
|
7514
7515
|
spacingScale: a,
|
|
@@ -7642,7 +7643,7 @@ const yn = (e, n, a) => {
|
|
|
7642
7643
|
) })
|
|
7643
7644
|
] });
|
|
7644
7645
|
return /* @__PURE__ */ t(
|
|
7645
|
-
|
|
7646
|
+
xn,
|
|
7646
7647
|
{
|
|
7647
7648
|
entity: { ...e.eventGame, labels: null },
|
|
7648
7649
|
headline: r("eventGame.headline"),
|
|
@@ -7662,7 +7663,7 @@ const yn = (e, n, a) => {
|
|
|
7662
7663
|
case W.FREE_INPUT:
|
|
7663
7664
|
return null;
|
|
7664
7665
|
}
|
|
7665
|
-
}, a = new
|
|
7666
|
+
}, a = new jt();
|
|
7666
7667
|
return a.fixtures = e.map((r) => ({
|
|
7667
7668
|
id: r.id,
|
|
7668
7669
|
predictionType: r.outcomeType,
|
|
@@ -7717,7 +7718,7 @@ const li = (e) => {
|
|
|
7717
7718
|
n("eventGame.alerts.play.error.title"),
|
|
7718
7719
|
((z = (E = (A = y.error) == null ? void 0 : A.data) == null ? void 0 : E.error) == null ? void 0 : z.message) || ((R = (S = y.error) == null ? void 0 : S.error) == null ? void 0 : R.message) || n("eventGame.alerts.play.error.message")
|
|
7719
7720
|
);
|
|
7720
|
-
}, I = Ve(() => a ?
|
|
7721
|
+
}, I = Ve(() => a ? Et(a.related) : null, [a]);
|
|
7721
7722
|
if (je(() => {
|
|
7722
7723
|
a && a.status === "OPEN" && h(oi(a.fixtures));
|
|
7723
7724
|
}, [a == null ? void 0 : a.status]), !a || c === void 0)
|
|
@@ -7960,7 +7961,7 @@ const li = (e) => {
|
|
|
7960
7961
|
H(),
|
|
7961
7962
|
/* @__PURE__ */ t(Xe, { notification: P, onClose: F })
|
|
7962
7963
|
] });
|
|
7963
|
-
}, ri = (e) => /* @__PURE__ */ t(
|
|
7964
|
+
}, ri = (e) => /* @__PURE__ */ t(Bt, { packageName: "event-game-play", ...e, children: /* @__PURE__ */ t(li, { ...e }) }), Mi = ri;
|
|
7964
7965
|
export {
|
|
7965
|
-
|
|
7966
|
+
Mi as EventGamePlay
|
|
7966
7967
|
};
|
package/Leaderboard.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as T, jsx as s, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import I, { useState as z, useEffect as U, useCallback as ce, useMemo as H } from "react";
|
|
3
|
-
import { f as D, g as de, C as ue, r as pe, a as X, b as ie, c as O, e as j, B as L, T as A, u as se, l as fe, I as k, j as Y, o as me, J as he, K as ge, L as be, M as ye, N as xe } from "./chunks/
|
|
4
|
-
import { a as q } from "./chunks/AlertMessage-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { S as
|
|
8
|
-
import { S as we } from "./chunks/
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
3
|
+
import { f as D, g as de, C as ue, r as pe, a as X, b as ie, c as O, e as j, B as L, T as A, u as se, l as fe, I as k, j as Y, o as me, J as he, K as ge, L as be, M as ye, N as xe } from "./chunks/PrizeCard-DF3QxwQJ.js";
|
|
4
|
+
import { a as q } from "./chunks/AlertMessage-Ds45MBHB.js";
|
|
5
|
+
import { createPortal as Ce } from "react-dom";
|
|
6
|
+
import { F as ve } from "./chunks/FormLabel-CeTNPUn7.js";
|
|
7
|
+
import { S as Te, a as Pe } from "./chunks/Select-BHeTdOYr.js";
|
|
8
|
+
import { S as Se, T as we, P as J } from "./chunks/Person-BGdniS_p.js";
|
|
9
|
+
import { h as B, s as Re } from "./chunks/helpers-NuC1SzL3.js";
|
|
10
|
+
import { S as Ee } from "./chunks/Spinner-DbUB64Gj.js";
|
|
11
|
+
import { A as K } from "./chunks/Avatar-K1EWhhkA.js";
|
|
12
|
+
import { C as Ae, a as Le } from "./chunks/chevrons-right-CRIN5sOe.js";
|
|
13
|
+
import { C as Me, a as Ie } from "./chunks/chevron-right-B3IZtaMT.js";
|
|
14
14
|
const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()).join(" "), Be = ({
|
|
15
15
|
options: e,
|
|
16
16
|
selectedId: t,
|
|
@@ -98,7 +98,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
98
98
|
};
|
|
99
99
|
return /* @__PURE__ */ T(L, { sx: { display: "flex", flexDirection: "column", gap: h["2xs"] }, children: [
|
|
100
100
|
/* @__PURE__ */ s(
|
|
101
|
-
|
|
101
|
+
ve,
|
|
102
102
|
{
|
|
103
103
|
sx: {
|
|
104
104
|
color: `${P} !important`,
|
|
@@ -119,7 +119,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
121
|
/* @__PURE__ */ s(
|
|
122
|
-
|
|
122
|
+
Te,
|
|
123
123
|
{
|
|
124
124
|
value: t,
|
|
125
125
|
onChange: (b, w) => w && l(w),
|
|
@@ -129,7 +129,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
129
129
|
const w = e.find((u) => u.id === b.value);
|
|
130
130
|
return w ? C(w) : b.label;
|
|
131
131
|
},
|
|
132
|
-
children: e.map((b) => /* @__PURE__ */ s(
|
|
132
|
+
children: e.map((b) => /* @__PURE__ */ s(Pe, { value: b.id, sx: S, children: C(b) }, b.id))
|
|
133
133
|
}
|
|
134
134
|
)
|
|
135
135
|
] });
|
|
@@ -274,7 +274,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
if (!e)
|
|
277
|
-
return /* @__PURE__ */ s(
|
|
277
|
+
return /* @__PURE__ */ s(Ee, { my: 10 });
|
|
278
278
|
if (e.length === 0)
|
|
279
279
|
return /* @__PURE__ */ s(A, { level: "body-lg", sx: a.noLeaderboardText, children: d("leaderboard.noLeaderboardAvailable") });
|
|
280
280
|
const m = t, y = m == null ? void 0 : m.position, R = y && e.some((E) => E.position === y);
|
|
@@ -337,8 +337,8 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
337
337
|
]
|
|
338
338
|
}
|
|
339
339
|
),
|
|
340
|
-
/* @__PURE__ */ s(
|
|
341
|
-
|
|
340
|
+
/* @__PURE__ */ s(Se, { sx: a.tableContainer, children: /* @__PURE__ */ T(
|
|
341
|
+
we,
|
|
342
342
|
{
|
|
343
343
|
variant: "outlined",
|
|
344
344
|
hoverRow: !1,
|
|
@@ -506,7 +506,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
506
506
|
onClick: () => i(1),
|
|
507
507
|
disabled: f || t === 1,
|
|
508
508
|
sx: u(),
|
|
509
|
-
children: /* @__PURE__ */ s(
|
|
509
|
+
children: /* @__PURE__ */ s(Ae, { size: b })
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
512
|
/* @__PURE__ */ s(
|
|
@@ -518,7 +518,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
518
518
|
onClick: () => i(t - 1),
|
|
519
519
|
disabled: f || t === 1,
|
|
520
520
|
sx: u(),
|
|
521
|
-
children: /* @__PURE__ */ s(
|
|
521
|
+
children: /* @__PURE__ */ s(Me, { size: b })
|
|
522
522
|
}
|
|
523
523
|
),
|
|
524
524
|
M.map((c, o) => {
|
|
@@ -570,7 +570,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
570
570
|
onClick: () => i(t + 1),
|
|
571
571
|
disabled: f || t === e,
|
|
572
572
|
sx: u(),
|
|
573
|
-
children: /* @__PURE__ */ s(
|
|
573
|
+
children: /* @__PURE__ */ s(Ie, { size: b })
|
|
574
574
|
}
|
|
575
575
|
),
|
|
576
576
|
p && /* @__PURE__ */ s(
|
|
@@ -582,7 +582,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
582
582
|
onClick: () => i(e),
|
|
583
583
|
disabled: f || t === e,
|
|
584
584
|
sx: u(),
|
|
585
|
-
children: /* @__PURE__ */ s(
|
|
585
|
+
children: /* @__PURE__ */ s(Le, { size: b })
|
|
586
586
|
}
|
|
587
587
|
)
|
|
588
588
|
]
|
|
@@ -940,7 +940,7 @@ const ze = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()
|
|
|
940
940
|
l(!1);
|
|
941
941
|
};
|
|
942
942
|
}, []);
|
|
943
|
-
const P = /* @__PURE__ */ s(L, { ref: p }), i = t && r && f.current && h.current ?
|
|
943
|
+
const P = /* @__PURE__ */ s(L, { ref: p }), i = t && r && f.current && h.current ? Ce(
|
|
944
944
|
/* @__PURE__ */ s(ge, { value: h.current, children: /* @__PURE__ */ s(be, { containerRef: p, children: /* @__PURE__ */ s(
|
|
945
945
|
ye,
|
|
946
946
|
{
|