fansunited-frontend-components 0.0.34 → 0.0.35
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 +7 -7
- package/CollectLead.js +6 -6
- package/EventGamePlay.js +20 -20
- package/MatchQuizPlay.js +79 -79
- package/PersonalityQuizPlay.js +17 -17
- package/PollVote.js +10 -10
- package/chunks/{CollectLeadForm-XQUdk7mv.js → CollectLeadForm-u3OykQv9.js} +1 -1
- package/chunks/{Error-Bv1kv7mw.js → Error-DxcJswdS.js} +2 -2
- package/chunks/{OverlayLeadAfterCollection-t16QmZoD.js → OverlayLeadAfterCollection-C0BV3Mx9.js} +4 -4
- package/chunks/{OverlayScoreStateSkeleton--HpHqZxi.js → OverlayScoreStateSkeleton-xC6B2dOa.js} +2 -2
- package/chunks/{Portal-B3p6WA9w.js → Portal-B6XfLNOm.js} +341 -341
- package/chunks/{Tabs-BaP82CxE.js → Tabs-BZk8Oqpw.js} +1 -1
- package/chunks/{index-C1CcfTa8.js → index-BRCVgD7v.js} +8 -8
- package/package.json +1 -1
package/MatchQuizPlay.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t, jsxs as A, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import nt, { useState as te, useEffect as ft, createContext as bn, memo as Pt, useCallback as Ye, useMemo as at } from "react";
|
|
3
|
-
import { b as ee, i as ce, g as Un, B as i, T as x, t as st, ab as Jt, d as H, c as ie, a as xe, ah as We, k as Ie, b3 as Qe, ae as ne, aV as Rn, b4 as Kn, ad as Fn, ag as Ue, u as we, j as bt, f as _e, W as ye, m as Ut, e as rt, h as ue, af as
|
|
4
|
-
import { u as Qn, T as
|
|
5
|
-
import { C as Wn, F as
|
|
6
|
-
import { K as
|
|
7
|
-
import { T as hn, a as Sn, b as jt, c as vt, t as
|
|
8
|
-
import { O as _n } from "./chunks/OverlayScoreStateSkeleton
|
|
9
|
-
import { S as $n, a as ei, O as ti, b as ni, c as ii, d as ai } from "./chunks/OverlayLeadAfterCollection-
|
|
10
|
-
const oi = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CORRECT_SCORE_ADVANCED", gt = (e) => e === "PLAYER_SCORE" || e === "PLAYER_YELLOW_CARD" || e === "PLAYER_RED_CARD" || e === "PLAYER_SCORE_FIRST_GOAL" || e === "PLAYER_SCORE_HATTRICK" || e === "PLAYER_SCORE_TWICE",
|
|
3
|
+
import { b as ee, i as ce, g as Un, B as i, T as x, t as st, ab as Jt, d as H, c as ie, a as xe, ah as We, k as Ie, b3 as Qe, ae as ne, aV as Rn, b4 as Kn, ad as Fn, ag as Ue, u as we, j as bt, f as _e, W as ye, m as Ut, l as Gt, e as rt, h as ue, af as dn, ai as Tn, aj as zn, ak as kn, al as Bn, am as mn, s as St, P as wn } from "./chunks/Portal-B6XfLNOm.js";
|
|
4
|
+
import { u as Qn, T as on, M as In, n as Hn, C as pn, D as Mn, s as c, O as On, S as gn, a as Dn, g as Tt, i as Vn, m as Vt, R as Ct, N as jn, j as vn, k as En, l as qn, q as fn } from "./chunks/index-BRCVgD7v.js";
|
|
5
|
+
import { C as Wn, F as ln, a as rn } from "./chunks/CollectLeadForm-u3OykQv9.js";
|
|
6
|
+
import { K as Yt, a as Lt, H as Jn, D as Gn, S as un, T as xn, E as Yn, A as cn, P as sn, e as yn, C as Ln, b as Nn, c as Zn, d as Xn } from "./chunks/Error-DxcJswdS.js";
|
|
7
|
+
import { T as hn, a as Sn, b as jt, c as vt, t as An } from "./chunks/Tabs-BZk8Oqpw.js";
|
|
8
|
+
import { O as _n } from "./chunks/OverlayScoreStateSkeleton-xC6B2dOa.js";
|
|
9
|
+
import { S as $n, a as ei, O as ti, b as ni, c as ii, d as ai } from "./chunks/OverlayLeadAfterCollection-C0BV3Mx9.js";
|
|
10
|
+
const oi = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CORRECT_SCORE_ADVANCED", gt = (e) => e === "PLAYER_SCORE" || e === "PLAYER_YELLOW_CARD" || e === "PLAYER_RED_CARD" || e === "PLAYER_SCORE_FIRST_GOAL" || e === "PLAYER_SCORE_HATTRICK" || e === "PLAYER_SCORE_TWICE", Nt = (e) => {
|
|
11
11
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = new Date(e).getTime();
|
|
12
12
|
return n > o;
|
|
13
13
|
}, li = (e, n, o) => {
|
|
@@ -771,7 +771,7 @@ const gi = (e) => {
|
|
|
771
771
|
onClick: k,
|
|
772
772
|
sx: C.scoreButton,
|
|
773
773
|
disabled: w === 0,
|
|
774
|
-
children: /* @__PURE__ */ t(
|
|
774
|
+
children: /* @__PURE__ */ t(Yt, { fontSize: "small" })
|
|
775
775
|
}
|
|
776
776
|
),
|
|
777
777
|
/* @__PURE__ */ t(x, { level: "h2", sx: C.scoreDisplay, children: w }),
|
|
@@ -782,7 +782,7 @@ const gi = (e) => {
|
|
|
782
782
|
variant: "plain",
|
|
783
783
|
onClick: g,
|
|
784
784
|
sx: C.scoreButton,
|
|
785
|
-
children: /* @__PURE__ */ t(
|
|
785
|
+
children: /* @__PURE__ */ t(Lt, { fontSize: "small" })
|
|
786
786
|
}
|
|
787
787
|
)
|
|
788
788
|
] })
|
|
@@ -951,7 +951,7 @@ const gi = (e) => {
|
|
|
951
951
|
onClick: r,
|
|
952
952
|
sx: l.scoreButton,
|
|
953
953
|
disabled: n === 0,
|
|
954
|
-
children: /* @__PURE__ */ t(
|
|
954
|
+
children: /* @__PURE__ */ t(Yt, { fontSize: "small" })
|
|
955
955
|
}
|
|
956
956
|
),
|
|
957
957
|
/* @__PURE__ */ t(x, { level: "h2", sx: l.scoreDisplay, children: n }),
|
|
@@ -962,7 +962,7 @@ const gi = (e) => {
|
|
|
962
962
|
variant: "plain",
|
|
963
963
|
onClick: o,
|
|
964
964
|
sx: l.scoreButton,
|
|
965
|
-
children: /* @__PURE__ */ t(
|
|
965
|
+
children: /* @__PURE__ */ t(Lt, { fontSize: "small" })
|
|
966
966
|
}
|
|
967
967
|
)
|
|
968
968
|
] })
|
|
@@ -1190,7 +1190,7 @@ const ui = (e) => {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
1192
|
return d || e.isSplitVariant ? /* @__PURE__ */ t(
|
|
1193
|
-
|
|
1193
|
+
on,
|
|
1194
1194
|
{
|
|
1195
1195
|
title: C(),
|
|
1196
1196
|
placement: "top-start",
|
|
@@ -1212,7 +1212,7 @@ const ui = (e) => {
|
|
|
1212
1212
|
)
|
|
1213
1213
|
}
|
|
1214
1214
|
) : /* @__PURE__ */ t(
|
|
1215
|
-
|
|
1215
|
+
on,
|
|
1216
1216
|
{
|
|
1217
1217
|
title: C(),
|
|
1218
1218
|
placement: "top-start",
|
|
@@ -1778,7 +1778,7 @@ const Pi = (e) => {
|
|
|
1778
1778
|
onClick: C,
|
|
1779
1779
|
sx: u.cornersButton,
|
|
1780
1780
|
disabled: s === 0,
|
|
1781
|
-
children: /* @__PURE__ */ t(
|
|
1781
|
+
children: /* @__PURE__ */ t(Yt, { fontSize: "small" })
|
|
1782
1782
|
}
|
|
1783
1783
|
),
|
|
1784
1784
|
/* @__PURE__ */ t(x, { level: "h2", sx: u.cornersDisplay, children: s }),
|
|
@@ -1789,7 +1789,7 @@ const Pi = (e) => {
|
|
|
1789
1789
|
variant: "plain",
|
|
1790
1790
|
onClick: y,
|
|
1791
1791
|
sx: u.cornersButton,
|
|
1792
|
-
children: /* @__PURE__ */ t(
|
|
1792
|
+
children: /* @__PURE__ */ t(Lt, { fontSize: "small" })
|
|
1793
1793
|
}
|
|
1794
1794
|
)
|
|
1795
1795
|
] });
|
|
@@ -2499,8 +2499,8 @@ const Bi = (e) => {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
) }),
|
|
2501
2501
|
/* @__PURE__ */ A(i, { sx: b.checkboxesContainer, children: [
|
|
2502
|
-
/* @__PURE__ */ t(
|
|
2503
|
-
|
|
2502
|
+
/* @__PURE__ */ t(ln, { size: "sm", children: /* @__PURE__ */ t(i, { sx: b.checkboxRow, children: /* @__PURE__ */ t(
|
|
2503
|
+
rn,
|
|
2504
2504
|
{
|
|
2505
2505
|
checked: C,
|
|
2506
2506
|
onChange: (P) => Q(P.target.checked),
|
|
@@ -2524,8 +2524,8 @@ const Bi = (e) => {
|
|
|
2524
2524
|
label: u("matchQuiz.fixtures.ownGoal")
|
|
2525
2525
|
}
|
|
2526
2526
|
) }) }),
|
|
2527
|
-
/* @__PURE__ */ t(
|
|
2528
|
-
|
|
2527
|
+
/* @__PURE__ */ t(ln, { size: "sm", children: /* @__PURE__ */ t(i, { sx: b.checkboxRow, children: /* @__PURE__ */ t(
|
|
2528
|
+
rn,
|
|
2529
2529
|
{
|
|
2530
2530
|
checked: S,
|
|
2531
2531
|
onChange: (P) => D(P.target.checked),
|
|
@@ -2629,7 +2629,7 @@ const Bi = (e) => {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
)
|
|
2631
2631
|
] });
|
|
2632
|
-
},
|
|
2632
|
+
}, Zt = (e) => {
|
|
2633
2633
|
const n = H(), o = ie(), r = ce(), l = () => {
|
|
2634
2634
|
const d = o.full, m = e.brandingPrimaryColor || n.palette.primary.plainColor, u = e.brandingPrimaryColor || n.palette.primary.outlinedBorder, a = "#FFFFFF", h = n.outlineEnabledBorder;
|
|
2635
2635
|
return /* @__PURE__ */ A(
|
|
@@ -2768,7 +2768,7 @@ const Bi = (e) => {
|
|
|
2768
2768
|
children: r || e.isSplitVariant ? l() : f()
|
|
2769
2769
|
}
|
|
2770
2770
|
);
|
|
2771
|
-
},
|
|
2771
|
+
}, Xt = (e) => {
|
|
2772
2772
|
const { t: n } = ne(), o = H(), r = ie(), l = ee(), f = xe(), m = ce() || e.isSplitVariant, [u, a] = te({
|
|
2773
2773
|
days: 0,
|
|
2774
2774
|
hours: 0,
|
|
@@ -3626,7 +3626,7 @@ const Bi = (e) => {
|
|
|
3626
3626
|
});
|
|
3627
3627
|
},
|
|
3628
3628
|
[e.setPrediction]
|
|
3629
|
-
), O = e.matchQuiz.fixtures.length + 1, X = e.matchQuiz.status === "OPEN" &&
|
|
3629
|
+
), O = e.matchQuiz.fixtures.length + 1, X = e.matchQuiz.status === "OPEN" && Nt(e.matchQuiz.predictionsCutoff), q = () => {
|
|
3630
3630
|
n < O ? o(n + 1) : e.play();
|
|
3631
3631
|
}, E = () => {
|
|
3632
3632
|
n > 1 && o(n - 1);
|
|
@@ -3869,14 +3869,14 @@ const Bi = (e) => {
|
|
|
3869
3869
|
y ? be() : /* @__PURE__ */ t($, {})
|
|
3870
3870
|
] }) : /* @__PURE__ */ A($, { children: [
|
|
3871
3871
|
e.showCountdown && e.matchQuiz.status === "OPEN" && /* @__PURE__ */ t(
|
|
3872
|
-
|
|
3872
|
+
Xt,
|
|
3873
3873
|
{
|
|
3874
3874
|
predictionsCutoffTime: e.matchQuiz.predictionsCutoff,
|
|
3875
3875
|
brandingPrimaryColor: s == null ? void 0 : s.primaryColor
|
|
3876
3876
|
}
|
|
3877
3877
|
),
|
|
3878
3878
|
!X && /* @__PURE__ */ t(
|
|
3879
|
-
|
|
3879
|
+
Zt,
|
|
3880
3880
|
{
|
|
3881
3881
|
matchQuiz: e.matchQuiz,
|
|
3882
3882
|
currentStep: n,
|
|
@@ -4054,7 +4054,7 @@ const Bi = (e) => {
|
|
|
4054
4054
|
flexDirection: "column",
|
|
4055
4055
|
justifyContent: "space-between",
|
|
4056
4056
|
gap: "10px",
|
|
4057
|
-
backgroundImage:
|
|
4057
|
+
backgroundImage: e.finalImage ? Gt(e.finalImage) : "none",
|
|
4058
4058
|
backgroundSize: "cover",
|
|
4059
4059
|
backgroundPosition: "center",
|
|
4060
4060
|
borderTopLeftRadius: "5px",
|
|
@@ -4201,7 +4201,7 @@ const Bi = (e) => {
|
|
|
4201
4201
|
height: "auto",
|
|
4202
4202
|
position: "relative",
|
|
4203
4203
|
minHeight: "auto",
|
|
4204
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
4204
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
4205
4205
|
backgroundSize: "cover",
|
|
4206
4206
|
backgroundPosition: "center center",
|
|
4207
4207
|
backgroundRepeat: "no-repeat",
|
|
@@ -4216,7 +4216,7 @@ const Bi = (e) => {
|
|
|
4216
4216
|
height: "auto",
|
|
4217
4217
|
position: "relative",
|
|
4218
4218
|
minHeight: "auto",
|
|
4219
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
4219
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
4220
4220
|
backgroundSize: "cover",
|
|
4221
4221
|
backgroundPosition: "center center",
|
|
4222
4222
|
backgroundRepeat: "no-repeat",
|
|
@@ -4491,7 +4491,7 @@ const Bi = (e) => {
|
|
|
4491
4491
|
});
|
|
4492
4492
|
},
|
|
4493
4493
|
[e.setPrediction]
|
|
4494
|
-
), q = e.matchQuiz.fixtures.length + 1, E = e.matchQuiz.status === "OPEN" &&
|
|
4494
|
+
), q = e.matchQuiz.fixtures.length + 1, E = e.matchQuiz.status === "OPEN" && Nt(e.matchQuiz.predictionsCutoff), se = n === q && ((G = e.leads) == null ? void 0 : G.position) !== "after" ? d("matchQuiz.buttons.play") : d("matchQuiz.buttons.next"), he = () => {
|
|
4495
4495
|
n < q ? o(n + 1) : e.play();
|
|
4496
4496
|
}, be = (T) => {
|
|
4497
4497
|
o(T + 1);
|
|
@@ -4596,7 +4596,7 @@ const Bi = (e) => {
|
|
|
4596
4596
|
Fe(S)
|
|
4597
4597
|
] }) }) : /* @__PURE__ */ A($, { children: [
|
|
4598
4598
|
e.showCountdown && e.matchQuiz.status === "OPEN" && /* @__PURE__ */ t(
|
|
4599
|
-
|
|
4599
|
+
Xt,
|
|
4600
4600
|
{
|
|
4601
4601
|
predictionsCutoffTime: e.matchQuiz.predictionsCutoff,
|
|
4602
4602
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor
|
|
@@ -4604,7 +4604,7 @@ const Bi = (e) => {
|
|
|
4604
4604
|
),
|
|
4605
4605
|
/* @__PURE__ */ t(i, { sx: P.questionArea, children: /* @__PURE__ */ A(i, { sx: P.questionContainer, children: [
|
|
4606
4606
|
!E && /* @__PURE__ */ t(i, { sx: P.paginationContainer, children: /* @__PURE__ */ t(
|
|
4607
|
-
|
|
4607
|
+
Zt,
|
|
4608
4608
|
{
|
|
4609
4609
|
matchQuiz: e.matchQuiz,
|
|
4610
4610
|
currentStep: n,
|
|
@@ -5055,7 +5055,7 @@ const Bi = (e) => {
|
|
|
5055
5055
|
((I = e.leads) == null ? void 0 : I.position) === "before" && e.matchQuiz.authRequirement === "LEAD" || !1
|
|
5056
5056
|
);
|
|
5057
5057
|
}, [(de = e.leads) == null ? void 0 : de.position, e.matchQuiz.authRequirement]);
|
|
5058
|
-
const f = we(), { t: d } = ne(), m = ce(), u =
|
|
5058
|
+
const f = we(), { t: d } = ne(), m = ce(), u = dn(), a = ((Pe = e.matchQuiz.branding) == null ? void 0 : Pe.colors) || null, h = m ? ((Te = (ke = e.matchQuiz.branding) == null ? void 0 : ke.images) == null ? void 0 : Te.mobileLogo) || ((Me = (pe = e.matchQuiz.branding) == null ? void 0 : pe.images) == null ? void 0 : Me.mainLogo) || "" : ((De = (Oe = e.matchQuiz.branding) == null ? void 0 : Oe.images) == null ? void 0 : De.mainLogo) || "", s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : m ? tt : et, y = _e(
|
|
5059
5059
|
{
|
|
5060
5060
|
images: e.matchQuiz.images,
|
|
5061
5061
|
imagePlaceholder: s
|
|
@@ -5109,7 +5109,7 @@ const Bi = (e) => {
|
|
|
5109
5109
|
});
|
|
5110
5110
|
},
|
|
5111
5111
|
[e.setPrediction]
|
|
5112
|
-
), M = e.matchQuiz.fixtures.length + 1, F = e.matchQuiz.status === "OPEN" &&
|
|
5112
|
+
), M = e.matchQuiz.fixtures.length + 1, F = e.matchQuiz.status === "OPEN" && Nt(e.matchQuiz.predictionsCutoff), O = () => {
|
|
5113
5113
|
n < M ? o(n + 1) : e.play();
|
|
5114
5114
|
}, X = (I) => {
|
|
5115
5115
|
o(I + 1);
|
|
@@ -5348,7 +5348,7 @@ const Bi = (e) => {
|
|
|
5348
5348
|
my: p.lg
|
|
5349
5349
|
},
|
|
5350
5350
|
children: /* @__PURE__ */ t(
|
|
5351
|
-
|
|
5351
|
+
Xt,
|
|
5352
5352
|
{
|
|
5353
5353
|
predictionsCutoffTime: e.matchQuiz.predictionsCutoff,
|
|
5354
5354
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
@@ -5358,7 +5358,7 @@ const Bi = (e) => {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
),
|
|
5360
5360
|
!F && /* @__PURE__ */ t(i, { sx: Q.paginationContainer, children: /* @__PURE__ */ t(
|
|
5361
|
-
|
|
5361
|
+
Zt,
|
|
5362
5362
|
{
|
|
5363
5363
|
matchQuiz: e.matchQuiz,
|
|
5364
5364
|
currentStep: n,
|
|
@@ -5589,7 +5589,7 @@ const Bi = (e) => {
|
|
|
5589
5589
|
height: "auto",
|
|
5590
5590
|
position: "relative",
|
|
5591
5591
|
minHeight: "auto",
|
|
5592
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
5592
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
5593
5593
|
backgroundSize: "cover",
|
|
5594
5594
|
backgroundPosition: "center center",
|
|
5595
5595
|
backgroundRepeat: "no-repeat",
|
|
@@ -5604,7 +5604,7 @@ const Bi = (e) => {
|
|
|
5604
5604
|
height: "auto",
|
|
5605
5605
|
position: "relative",
|
|
5606
5606
|
minHeight: "auto",
|
|
5607
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
5607
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
5608
5608
|
backgroundSize: "cover",
|
|
5609
5609
|
backgroundPosition: "center center",
|
|
5610
5610
|
backgroundRepeat: "no-repeat",
|
|
@@ -5625,7 +5625,7 @@ const Bi = (e) => {
|
|
|
5625
5625
|
flexDirection: "column",
|
|
5626
5626
|
justifyContent: "space-between",
|
|
5627
5627
|
gap: "10px",
|
|
5628
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
5628
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
5629
5629
|
backgroundSize: "cover",
|
|
5630
5630
|
backgroundPosition: "center",
|
|
5631
5631
|
borderTopLeftRadius: "5px",
|
|
@@ -5779,7 +5779,7 @@ const Bi = (e) => {
|
|
|
5779
5779
|
}, vi = (e, n) => {
|
|
5780
5780
|
switch (e) {
|
|
5781
5781
|
case "success":
|
|
5782
|
-
return /* @__PURE__ */ t(
|
|
5782
|
+
return /* @__PURE__ */ t(mn, {});
|
|
5783
5783
|
case "error":
|
|
5784
5784
|
return /* @__PURE__ */ t(Bn, { sx: { color: n } });
|
|
5785
5785
|
case "info":
|
|
@@ -5794,7 +5794,7 @@ const Bi = (e) => {
|
|
|
5794
5794
|
case "info":
|
|
5795
5795
|
return "primary";
|
|
5796
5796
|
}
|
|
5797
|
-
},
|
|
5797
|
+
}, _t = ({
|
|
5798
5798
|
variant: e,
|
|
5799
5799
|
title: n,
|
|
5800
5800
|
message: o,
|
|
@@ -5915,7 +5915,7 @@ const Bi = (e) => {
|
|
|
5915
5915
|
var F;
|
|
5916
5916
|
return /* @__PURE__ */ A($, { children: [
|
|
5917
5917
|
e.isUnauthorized ? /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(
|
|
5918
|
-
|
|
5918
|
+
_t,
|
|
5919
5919
|
{
|
|
5920
5920
|
variant: "error",
|
|
5921
5921
|
title: r("common.authentication.accessRequired"),
|
|
@@ -6000,7 +6000,7 @@ const Bi = (e) => {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
}), Ji = (e) => {
|
|
6002
6002
|
var B, v, P, j, M, F, O, X, q;
|
|
6003
|
-
const n = we(), { t: o } = ne(), r = ce(), l =
|
|
6003
|
+
const n = we(), { t: o } = ne(), r = ce(), l = dn(), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? tt : et, d = _e(
|
|
6004
6004
|
{
|
|
6005
6005
|
images: e.matchQuiz.images,
|
|
6006
6006
|
imagePlaceholder: f
|
|
@@ -6065,7 +6065,7 @@ const Bi = (e) => {
|
|
|
6065
6065
|
alwaysShowImage: !0,
|
|
6066
6066
|
rulesDisplay: e.rulesDisplay,
|
|
6067
6067
|
children: e.isUnauthorized ? /* @__PURE__ */ t(i, { sx: k.alertMessageArea, children: /* @__PURE__ */ t(i, { sx: k.alertMessageWrapper, children: /* @__PURE__ */ t(
|
|
6068
|
-
|
|
6068
|
+
_t,
|
|
6069
6069
|
{
|
|
6070
6070
|
variant: "error",
|
|
6071
6071
|
title: o("common.authentication.accessRequired"),
|
|
@@ -6150,7 +6150,7 @@ const Bi = (e) => {
|
|
|
6150
6150
|
width: e.isMobile ? "100%" : "50%",
|
|
6151
6151
|
minWidth: e.isMobile ? "100%" : "50%",
|
|
6152
6152
|
maxWidth: e.isMobile ? "100%" : "50%",
|
|
6153
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
6153
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
6154
6154
|
backgroundSize: "cover",
|
|
6155
6155
|
backgroundPosition: "center",
|
|
6156
6156
|
borderTopLeftRadius: e.isTabulated ? 0 : e.borderRadius.md,
|
|
@@ -6415,7 +6415,7 @@ const Bi = (e) => {
|
|
|
6415
6415
|
}
|
|
6416
6416
|
)
|
|
6417
6417
|
] });
|
|
6418
|
-
},
|
|
6418
|
+
}, $t = ({
|
|
6419
6419
|
prediction: e,
|
|
6420
6420
|
marketsResults: n,
|
|
6421
6421
|
resultsTabPanelSxProps: o,
|
|
@@ -6995,7 +6995,7 @@ const Bi = (e) => {
|
|
|
6995
6995
|
bgcolor: r ? "#FAFAFA14" : "#2121210A"
|
|
6996
6996
|
// Highlight selected tab
|
|
6997
6997
|
},
|
|
6998
|
-
[`&.${
|
|
6998
|
+
[`&.${An.selected}`]: {
|
|
6999
6999
|
bgcolor: r ? "#FAFAFA14" : "#2121210A",
|
|
7000
7000
|
// Highlight selected tab
|
|
7001
7001
|
borderBottom: "3px solid " + v,
|
|
@@ -7070,7 +7070,7 @@ const Bi = (e) => {
|
|
|
7070
7070
|
bgcolor: r ? "#FAFAFA14" : "#2121210A"
|
|
7071
7071
|
// Highlight selected tab
|
|
7072
7072
|
},
|
|
7073
|
-
[`&.${
|
|
7073
|
+
[`&.${An.selected}`]: {
|
|
7074
7074
|
bgcolor: r ? "#FAFAFA14" : "#2121210A",
|
|
7075
7075
|
// Highlight selected tab
|
|
7076
7076
|
borderBottom: "3px solid " + v,
|
|
@@ -7233,7 +7233,7 @@ const Bi = (e) => {
|
|
|
7233
7233
|
]
|
|
7234
7234
|
}
|
|
7235
7235
|
) });
|
|
7236
|
-
},
|
|
7236
|
+
}, en = (e, n, o) => {
|
|
7237
7237
|
const [r, l] = te(null), f = async () => {
|
|
7238
7238
|
try {
|
|
7239
7239
|
const d = await n.matchQuiz.getMarketsResultsForGame(e, !0);
|
|
@@ -7257,7 +7257,7 @@ const Bi = (e) => {
|
|
|
7257
7257
|
}
|
|
7258
7258
|
});
|
|
7259
7259
|
}, [e, n]), r;
|
|
7260
|
-
},
|
|
7260
|
+
}, tn = (e, n) => {
|
|
7261
7261
|
const [o, r] = te(
|
|
7262
7262
|
null
|
|
7263
7263
|
), [l, f] = te(
|
|
@@ -7305,7 +7305,7 @@ const Bi = (e) => {
|
|
|
7305
7305
|
goToPreviousPage: S,
|
|
7306
7306
|
goToNextPage: K
|
|
7307
7307
|
};
|
|
7308
|
-
},
|
|
7308
|
+
}, nn = ({
|
|
7309
7309
|
leaderboard: e,
|
|
7310
7310
|
userRankings: n,
|
|
7311
7311
|
matchQuiz: o,
|
|
@@ -7471,7 +7471,7 @@ const Bi = (e) => {
|
|
|
7471
7471
|
k.position
|
|
7472
7472
|
] }) }),
|
|
7473
7473
|
/* @__PURE__ */ t("td", { style: g.tableCellName, children: /* @__PURE__ */ A(i, { sx: g.nameCell, children: [
|
|
7474
|
-
/* @__PURE__ */ t(
|
|
7474
|
+
/* @__PURE__ */ t(cn, { sx: g.leaderboardAvatar, children: /* @__PURE__ */ t(sn, { sx: g.avatarIcon }) }),
|
|
7475
7475
|
/* @__PURE__ */ t(x, { sx: g.nameText, children: f("matchQuiz.leaderboard.you") })
|
|
7476
7476
|
] }) }),
|
|
7477
7477
|
/* @__PURE__ */ t("td", { style: g.tableCellPoints, children: /* @__PURE__ */ t(x, { sx: g.pointsText, children: k.points }) })
|
|
@@ -7489,11 +7489,11 @@ const Bi = (e) => {
|
|
|
7489
7489
|
] }) }),
|
|
7490
7490
|
/* @__PURE__ */ t("td", { style: g.tableCellName, children: /* @__PURE__ */ A(i, { sx: g.nameCell, children: [
|
|
7491
7491
|
/* @__PURE__ */ t(
|
|
7492
|
-
|
|
7492
|
+
cn,
|
|
7493
7493
|
{
|
|
7494
7494
|
src: D.profileModel.avatar || void 0,
|
|
7495
7495
|
sx: g.leaderboardAvatar,
|
|
7496
|
-
children: D.profileModel.avatar ? /* @__PURE__ */ t($, {}) : /* @__PURE__ */ t(
|
|
7496
|
+
children: D.profileModel.avatar ? /* @__PURE__ */ t($, {}) : /* @__PURE__ */ t(sn, { sx: g.avatarIcon })
|
|
7497
7497
|
}
|
|
7498
7498
|
),
|
|
7499
7499
|
/* @__PURE__ */ t(x, { sx: g.nameText, children: B ? f("matchQuiz.leaderboard.you") : D.profileModel.nickname || D.profileModel.name })
|
|
@@ -7529,7 +7529,7 @@ const Zi = yn("ChevronsLeft", [
|
|
|
7529
7529
|
const Xi = yn("ChevronsRight", [
|
|
7530
7530
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
7531
7531
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
7532
|
-
]),
|
|
7532
|
+
]), an = ({
|
|
7533
7533
|
count: e = 10,
|
|
7534
7534
|
page: n = 1,
|
|
7535
7535
|
onChange: o,
|
|
@@ -7746,13 +7746,13 @@ const Xi = yn("ChevronsRight", [
|
|
|
7746
7746
|
isMobile: r,
|
|
7747
7747
|
dangerColor: u,
|
|
7748
7748
|
isTabulated: e.showPredictionDetails || !1
|
|
7749
|
-
}), g = ((he = e.matchQuiz.labels) == null ? void 0 : he.sponsor) || null, { leaderboard: k, userRankings: b, pagination: p, currentPage: Q, goToPage: D } =
|
|
7749
|
+
}), g = ((he = e.matchQuiz.labels) == null ? void 0 : he.sponsor) || null, { leaderboard: k, userRankings: b, pagination: p, currentPage: Q, goToPage: D } = tn(e.matchQuiz.id, e.sdk), B = en(
|
|
7750
7750
|
e.matchQuiz.id,
|
|
7751
7751
|
e.sdk,
|
|
7752
7752
|
e.showPredictionDetails || !1
|
|
7753
7753
|
), v = () => /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(i, { sx: w.questionAreaContent, children: /* @__PURE__ */ A(i, { sx: w.mainContentContainer, children: [
|
|
7754
7754
|
/* @__PURE__ */ t(
|
|
7755
|
-
|
|
7755
|
+
nn,
|
|
7756
7756
|
{
|
|
7757
7757
|
leaderboard: k,
|
|
7758
7758
|
userRankings: b,
|
|
@@ -7762,7 +7762,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
7762
7762
|
}
|
|
7763
7763
|
),
|
|
7764
7764
|
b && p && p.numberOfPages > 1 && /* @__PURE__ */ t(i, { sx: w.paginationContainer, children: /* @__PURE__ */ t(
|
|
7765
|
-
|
|
7765
|
+
an,
|
|
7766
7766
|
{
|
|
7767
7767
|
count: p.numberOfPages,
|
|
7768
7768
|
page: Q,
|
|
@@ -7857,7 +7857,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
7857
7857
|
) })
|
|
7858
7858
|
] }) });
|
|
7859
7859
|
return /* @__PURE__ */ t(Le, { brandingBorderColor: (l == null ? void 0 : l.borderColor) || null, children: e.showPredictionDetails ? /* @__PURE__ */ A(
|
|
7860
|
-
|
|
7860
|
+
$t,
|
|
7861
7861
|
{
|
|
7862
7862
|
prediction: e.prediction,
|
|
7863
7863
|
marketsResults: B,
|
|
@@ -7891,7 +7891,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
7891
7891
|
boxShadow: "md",
|
|
7892
7892
|
border: (n = e.brandingColors) != null && n.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
7893
7893
|
overflow: "hidden",
|
|
7894
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
7894
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
7895
7895
|
backgroundPosition: "center",
|
|
7896
7896
|
backgroundSize: "cover",
|
|
7897
7897
|
position: "relative",
|
|
@@ -8160,7 +8160,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8160
8160
|
height: "auto",
|
|
8161
8161
|
position: "relative",
|
|
8162
8162
|
minHeight: "auto",
|
|
8163
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
8163
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
8164
8164
|
backgroundSize: "cover",
|
|
8165
8165
|
backgroundPosition: "center center",
|
|
8166
8166
|
backgroundRepeat: "no-repeat",
|
|
@@ -8175,7 +8175,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8175
8175
|
height: "auto",
|
|
8176
8176
|
position: "relative",
|
|
8177
8177
|
minHeight: "auto",
|
|
8178
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
8178
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
8179
8179
|
backgroundSize: "cover",
|
|
8180
8180
|
backgroundPosition: "center center",
|
|
8181
8181
|
backgroundRepeat: "no-repeat",
|
|
@@ -8196,7 +8196,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8196
8196
|
flexDirection: "column",
|
|
8197
8197
|
justifyContent: "space-between",
|
|
8198
8198
|
gap: "10px",
|
|
8199
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
8199
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
8200
8200
|
backgroundSize: "cover",
|
|
8201
8201
|
backgroundPosition: "center",
|
|
8202
8202
|
borderTopLeftRadius: "5px",
|
|
@@ -8552,7 +8552,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8552
8552
|
boxShadow: "md",
|
|
8553
8553
|
border: (f = e.brandingColors) != null && f.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
8554
8554
|
overflow: "hidden",
|
|
8555
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
8555
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
8556
8556
|
backgroundPosition: "center",
|
|
8557
8557
|
backgroundSize: "cover",
|
|
8558
8558
|
position: "relative",
|
|
@@ -8615,7 +8615,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8615
8615
|
opacity: "60%",
|
|
8616
8616
|
secondaryColor: Q,
|
|
8617
8617
|
isExtraSmall: f
|
|
8618
|
-
}), { leaderboard: v, userRankings: P, pagination: j, currentPage: M, goToPage: F } =
|
|
8618
|
+
}), { leaderboard: v, userRankings: P, pagination: j, currentPage: M, goToPage: F } = tn(e.matchQuiz.id, e.sdk), O = en(
|
|
8619
8619
|
e.matchQuiz.id,
|
|
8620
8620
|
e.sdk,
|
|
8621
8621
|
e.showPredictionDetails || !1
|
|
@@ -8665,7 +8665,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8665
8665
|
/* @__PURE__ */ A(i, { sx: B.mainContentSection, children: [
|
|
8666
8666
|
/* @__PURE__ */ A(i, { sx: B.contentContainerWithBackdrop, children: [
|
|
8667
8667
|
/* @__PURE__ */ t(
|
|
8668
|
-
|
|
8668
|
+
nn,
|
|
8669
8669
|
{
|
|
8670
8670
|
leaderboard: v,
|
|
8671
8671
|
userRankings: P,
|
|
@@ -8675,7 +8675,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8675
8675
|
}
|
|
8676
8676
|
),
|
|
8677
8677
|
P && j && j.numberOfPages > 1 && /* @__PURE__ */ t(i, { sx: B.paginationContainer, children: /* @__PURE__ */ t(
|
|
8678
|
-
|
|
8678
|
+
an,
|
|
8679
8679
|
{
|
|
8680
8680
|
count: j.numberOfPages,
|
|
8681
8681
|
page: M,
|
|
@@ -8694,7 +8694,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8694
8694
|
}
|
|
8695
8695
|
);
|
|
8696
8696
|
return /* @__PURE__ */ t($, { children: e.showPredictionDetails ? /* @__PURE__ */ t(i, { sx: B.mainContainerWithPredictionDetails, children: /* @__PURE__ */ t(
|
|
8697
|
-
|
|
8697
|
+
$t,
|
|
8698
8698
|
{
|
|
8699
8699
|
prediction: e.prediction,
|
|
8700
8700
|
marketsResults: O,
|
|
@@ -8840,7 +8840,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8840
8840
|
imagePlaceholder: a
|
|
8841
8841
|
},
|
|
8842
8842
|
ye.OVERLAY
|
|
8843
|
-
), s =
|
|
8843
|
+
), s = Gt(h), y = (m == null ? void 0 : m.secondaryColor) || n.colorSchemes.dark.textSecondary, C = n.colorSchemes.dark.secondaryContainer, U = n.colorSchemes.dark.textPrimary, S = n.customFontFamily.light.primary, K = n.customRadius.light.md, R = n.customRadius.light.xl, w = (m == null ? void 0 : m.backgroundColor) || n.colorSchemes.dark.surfaceVariant, g = e.matchQuiz.status === "OPEN" && e.prediction && e.squads && e.onPredictionUpdate, k = (v) => {
|
|
8844
8844
|
console.log(`Edit prediction for fixture at index: ${v}`);
|
|
8845
8845
|
}, b = ta({
|
|
8846
8846
|
spacingScale: o,
|
|
@@ -8884,7 +8884,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
8884
8884
|
var v, P;
|
|
8885
8885
|
return /* @__PURE__ */ A(i, { sx: b.mainContentWrapper, children: [
|
|
8886
8886
|
e.isUnauthorized ? /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(
|
|
8887
|
-
|
|
8887
|
+
_t,
|
|
8888
8888
|
{
|
|
8889
8889
|
variant: "error",
|
|
8890
8890
|
title: r("common.authentication.accessRequired"),
|
|
@@ -9133,7 +9133,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
9133
9133
|
flexDirection: "column",
|
|
9134
9134
|
justifyContent: "space-between",
|
|
9135
9135
|
gap: "10px",
|
|
9136
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
9136
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
9137
9137
|
backgroundSize: "cover",
|
|
9138
9138
|
backgroundPosition: "center",
|
|
9139
9139
|
borderTopLeftRadius: "5px",
|
|
@@ -9615,7 +9615,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
9615
9615
|
imagePlaceholder: u
|
|
9616
9616
|
},
|
|
9617
9617
|
ye.OVERLAY
|
|
9618
|
-
), h =
|
|
9618
|
+
), h = Gt(a), s = (w = (R = n.customRadius) == null ? void 0 : R.light) == null ? void 0 : w.xl, y = (d == null ? void 0 : d.primaryColor) || ((p = (b = (k = (g = n.colorSchemes) == null ? void 0 : g.light) == null ? void 0 : k.palette) == null ? void 0 : b.primary) == null ? void 0 : p.plainColor), C = (v = (B = (D = (Q = n.colorSchemes) == null ? void 0 : Q.light) == null ? void 0 : D.palette) == null ? void 0 : B.primary) == null ? void 0 : v.onPrimary, U = n.customFontFamily.dark.primary, S = da({
|
|
9619
9619
|
buttonRadius: s,
|
|
9620
9620
|
primaryColor: y,
|
|
9621
9621
|
onPrimaryColor: C,
|
|
@@ -9907,7 +9907,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
9907
9907
|
height: "auto",
|
|
9908
9908
|
position: "relative",
|
|
9909
9909
|
minHeight: "auto",
|
|
9910
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
9910
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
9911
9911
|
backgroundSize: "cover",
|
|
9912
9912
|
backgroundPosition: "center center",
|
|
9913
9913
|
backgroundRepeat: "no-repeat",
|
|
@@ -9922,7 +9922,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
9922
9922
|
height: "auto",
|
|
9923
9923
|
position: "relative",
|
|
9924
9924
|
minHeight: "auto",
|
|
9925
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
9925
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
9926
9926
|
backgroundSize: "cover",
|
|
9927
9927
|
backgroundPosition: "center center",
|
|
9928
9928
|
backgroundRepeat: "no-repeat",
|
|
@@ -9943,7 +9943,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
9943
9943
|
flexDirection: "column",
|
|
9944
9944
|
justifyContent: "space-between",
|
|
9945
9945
|
gap: "10px",
|
|
9946
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
9946
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
9947
9947
|
backgroundSize: "cover",
|
|
9948
9948
|
backgroundPosition: "center",
|
|
9949
9949
|
borderTopLeftRadius: "5px",
|
|
@@ -10310,7 +10310,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
10310
10310
|
H().surfaceVariant || ""
|
|
10311
10311
|
)}, 0.5)`, b = rt(
|
|
10312
10312
|
ye.STANDARD
|
|
10313
|
-
), p = "60%", Q = (l == null ? void 0 : l.secondaryColor) || H().textColor, { leaderboard: D, userRankings: B, pagination: v, currentPage: P, goToPage: j } =
|
|
10313
|
+
), p = "60%", Q = (l == null ? void 0 : l.secondaryColor) || H().textColor, { leaderboard: D, userRankings: B, pagination: v, currentPage: P, goToPage: j } = tn(e.matchQuiz.id, e.sdk), M = en(
|
|
10314
10314
|
e.matchQuiz.id,
|
|
10315
10315
|
e.sdk,
|
|
10316
10316
|
e.showPredictionDetails || !1
|
|
@@ -10378,7 +10378,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
10378
10378
|
] })
|
|
10379
10379
|
] }) }) }),
|
|
10380
10380
|
/* @__PURE__ */ t(i, { sx: F.questionArea, children: /* @__PURE__ */ t(i, { sx: F.questionContainer, children: /* @__PURE__ */ t(i, { sx: F.questionContentContainer, children: /* @__PURE__ */ t(
|
|
10381
|
-
|
|
10381
|
+
nn,
|
|
10382
10382
|
{
|
|
10383
10383
|
leaderboard: D,
|
|
10384
10384
|
userRankings: B,
|
|
@@ -10403,7 +10403,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
10403
10403
|
ml: d ? "0" : "auto"
|
|
10404
10404
|
},
|
|
10405
10405
|
children: /* @__PURE__ */ t(
|
|
10406
|
-
|
|
10406
|
+
an,
|
|
10407
10407
|
{
|
|
10408
10408
|
count: v.numberOfPages,
|
|
10409
10409
|
page: P,
|
|
@@ -10481,7 +10481,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
10481
10481
|
] })
|
|
10482
10482
|
] }) }) : /* @__PURE__ */ t($, {});
|
|
10483
10483
|
return /* @__PURE__ */ t(Le, { brandingBorderColor: (l == null ? void 0 : l.borderColor) || null, children: e.showPredictionDetails ? /* @__PURE__ */ t(
|
|
10484
|
-
|
|
10484
|
+
$t,
|
|
10485
10485
|
{
|
|
10486
10486
|
prediction: e.prediction,
|
|
10487
10487
|
marketsResults: M,
|
|
@@ -10519,7 +10519,7 @@ const Xi = yn("ChevronsRight", [
|
|
|
10519
10519
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
10520
10520
|
color: e.variant === "success" ? "success" : "danger",
|
|
10521
10521
|
variant: "soft",
|
|
10522
|
-
startDecorator: e.variant === "success" ? /* @__PURE__ */ t(
|
|
10522
|
+
startDecorator: e.variant === "success" ? /* @__PURE__ */ t(mn, {}) : /* @__PURE__ */ t(Xn, {}),
|
|
10523
10523
|
sx: {
|
|
10524
10524
|
borderRadius: o.sm,
|
|
10525
10525
|
fontFamily: r.secondary,
|