fansunited-frontend-components 0.0.38 → 0.0.39
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 +5 -5
- package/ClassicQuizPlay.js +19 -18
- package/CollectLead.js +4 -4
- package/Discussion.js +1562 -1343
- package/EventGamePlay.js +528 -581
- package/MatchQuizPlay.js +808 -860
- package/PersonalityQuizPlay.js +142 -112
- package/PickThePair.js +6 -6
- package/PollVote.js +59 -58
- package/README.md +231 -0
- package/chunks/{AlertMessage-DZAXIV4L.js → AlertMessage-C2aBXCrl.js} +69 -72
- package/chunks/{ChanceGameEmbedVariant-B5jX_jMO.js → ChanceGameEmbedVariant-BvIKBhq_.js} +5 -5
- package/chunks/{Select-DSxMtwH4.js → CheckCircle-D-GH16Lb.js} +321 -317
- package/chunks/{CollectLeadForm-D7pLjJkA.js → CollectLeadForm-o9NdYQgu.js} +5 -5
- package/chunks/{ConstantsProvider-YKCgQ1mh.js → ConstantsProvider-BPJJz9fq.js} +390 -360
- package/chunks/{Snackbar-DIH2D4Gx.js → Notification-Bwcoljir.js} +294 -238
- package/chunks/{OverlayLeadAfterCollection-9i_et1r0.js → OverlayLeadAfterCollection-B3D5ct0J.js} +4 -4
- package/chunks/{OverlayScoreStateSkeleton-BEe63pWp.js → OverlayScoreStateSkeleton-xvq9lQEi.js} +3 -3
- package/chunks/{PickOneOfX-UVJCgkSX.js → PickOneOfX-C2YpLk40.js} +1 -1
- package/chunks/{Portal-CfeOliT5.js → Portal-DWAr8MhA.js} +7 -7
- package/chunks/{Spinner-kT93nizf.js → Spinner-m59ZJZ35.js} +55 -55
- package/chunks/{Tabs-B6f7vU-w.js → Tabs-BGihvj9C.js} +44 -44
- package/chunks/{Textarea-EApa88SY.js → Textarea-Bzlb89Zp.js} +2 -2
- package/chunks/{TimerOutlined-CtKZ9Yp9.js → TimerOutlined-DiX8hCoC.js} +1 -1
- package/chunks/{Error-ZEDfLj_t.js → chevron-right-Dlc9ZKhv.js} +56 -59
- package/chunks/{useImageVariant-BB7FL7DQ.js → useImageVariant-Do8kOVs2.js} +1 -1
- package/chunks/{useInfoPage-Cjw5ykNz.js → useInfoPage-v91yL5SS.js} +37 -37
- package/package.json +1 -1
package/MatchQuizPlay.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import { jsx as t, jsxs as d, Fragment as p } from "react/jsx-runtime";
|
|
2
|
-
import et, { useState as te, useEffect as gt, createContext as
|
|
3
|
-
import { v as ee, e as ce, B as i, T as
|
|
4
|
-
import { P as
|
|
5
|
-
import { g as
|
|
6
|
-
import { a as Fn, b as
|
|
2
|
+
import et, { useState as te, useEffect as gt, createContext as Tn, memo as bt, useCallback as Ye, useMemo as tt } from "react";
|
|
3
|
+
import { v as ee, e as ce, B as i, T as y, a0 as ne, d as Nt, x as _, w as re, f as Se, aq as Ne, a1 as De, an as Le, au as Pn, ay as zn, am as kn, a5 as Pe, u as Ee, W as Ce, a2 as Rt, y as rt, a3 as un } from "./chunks/ConstantsProvider-BPJJz9fq.js";
|
|
4
|
+
import { P as In } from "./chunks/Portal-DWAr8MhA.js";
|
|
5
|
+
import { g as wn, e as Tt, d as it, a as at, u as Je, b as Ut, h as ye, s as St, n as An } from "./chunks/useImageVariant-Do8kOVs2.js";
|
|
6
|
+
import { a as Fn, b as vn, S as Ht } from "./chunks/Spinner-m59ZJZ35.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { i as
|
|
9
|
-
import {
|
|
10
|
-
import { C as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
8
|
+
import { i as En, n as c, S as Ln, A as It, a as Dn, c as _n, b as Mn, O as Qn, j as gn, C as an, d as on } from "./chunks/ChanceGameEmbedVariant-BvIKBhq_.js";
|
|
9
|
+
import { A as ln, N as kt } from "./chunks/Notification-Bwcoljir.js";
|
|
10
|
+
import { T as rn, C as On, D as Hn, O as Bn, S as hn, R as Ct, N as Wn } from "./chunks/useInfoPage-v91yL5SS.js";
|
|
11
|
+
import { C as Vn, F as cn, a as sn } from "./chunks/CollectLeadForm-o9NdYQgu.js";
|
|
12
|
+
import { K as Gt, a as Yt, H as jn, D as $n, S as fn, T as xn, E as Nn, P as dn, c as yn, C as Un, b as Gn } from "./chunks/chevron-right-Dlc9ZKhv.js";
|
|
13
|
+
import { T as Sn, a as Cn, b as Bt, c as Wt, t as mn } from "./chunks/Tabs-BGihvj9C.js";
|
|
14
|
+
import { C as Yn } from "./chunks/CheckCircle-D-GH16Lb.js";
|
|
15
|
+
import { e as qn, d as Xn, f as Kn, W as Zn } from "./chunks/AlertMessage-C2aBXCrl.js";
|
|
16
|
+
import { O as Jn } from "./chunks/OverlayScoreStateSkeleton-xvq9lQEi.js";
|
|
17
|
+
import { S as pn, a as ei, O as ti, b as ni, c as ii, d as ai } from "./chunks/OverlayLeadAfterCollection-B3D5ct0J.js";
|
|
18
|
+
const oi = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CORRECT_SCORE_ADVANCED", ut = (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", qt = (e) => {
|
|
18
19
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = new Date(e).getTime();
|
|
19
20
|
return n > o;
|
|
20
|
-
},
|
|
21
|
+
}, li = (e, n, o) => {
|
|
21
22
|
const [r, l] = te(null), [h, m] = te(
|
|
22
23
|
null
|
|
23
24
|
), [u, f] = te(null), a = async () => {
|
|
24
25
|
try {
|
|
25
26
|
const s = await n.matchQuiz.getGameById(e, !0);
|
|
26
27
|
l(s);
|
|
27
|
-
const
|
|
28
|
+
const x = s.fixtures.some(
|
|
28
29
|
(I) => ut(I.market)
|
|
29
30
|
), b = s.fixtures[0].matchModel.homeTeam.id, z = s.fixtures[0].matchModel.awayTeam.id, C = (/* @__PURE__ */ new Map()).set(b, []).set(z, []);
|
|
30
|
-
if (
|
|
31
|
+
if (x)
|
|
31
32
|
try {
|
|
32
33
|
const I = await n.football.getTeamById(b), T = await n.football.getTeamById(z);
|
|
33
34
|
C.set(I.id, I.squad), C.set(T.id, T.squad);
|
|
@@ -39,12 +40,12 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
39
40
|
}
|
|
40
41
|
m(C);
|
|
41
42
|
} catch (s) {
|
|
42
|
-
console.warn(s), l(new
|
|
43
|
+
console.warn(s), l(new En()), m(/* @__PURE__ */ new Map());
|
|
43
44
|
}
|
|
44
45
|
}, S = async () => {
|
|
45
46
|
try {
|
|
46
|
-
const
|
|
47
|
-
f(
|
|
47
|
+
const x = (await n.loyalty.getConfigV2(!0)).rewards.points.matchQuiz;
|
|
48
|
+
f(x);
|
|
48
49
|
} catch (s) {
|
|
49
50
|
console.warn(s), f([]);
|
|
50
51
|
}
|
|
@@ -52,7 +53,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
52
53
|
return gt(() => (a(), o ? S() : f([]), () => {
|
|
53
54
|
l(null), m(null), f(null);
|
|
54
55
|
}), [e, n, o]), { game: r, squads: h, points: u };
|
|
55
|
-
},
|
|
56
|
+
}, ri = (e, n) => {
|
|
56
57
|
const [o, r] = te(null), [l, h] = te(!1), [m, u] = te(!1), [f, a] = te(""), S = async () => {
|
|
57
58
|
try {
|
|
58
59
|
const s = await n.matchQuiz.getMyGamePrediction(e);
|
|
@@ -88,7 +89,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
88
89
|
setApiErrorMessage: a
|
|
89
90
|
};
|
|
90
91
|
}, ke = (e) => {
|
|
91
|
-
const n = ee().secondary, o = ce(), r = e.flexDirection || "column", l =
|
|
92
|
+
const n = ee().secondary, o = ce(), r = e.flexDirection || "column", l = wn(e.primaryUrl, e.secondaryUrl, "logo");
|
|
92
93
|
if (!e.brandingLogo)
|
|
93
94
|
return null;
|
|
94
95
|
const h = () => {
|
|
@@ -142,7 +143,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
142
143
|
},
|
|
143
144
|
children: [
|
|
144
145
|
e.label && /* @__PURE__ */ t(
|
|
145
|
-
|
|
146
|
+
y,
|
|
146
147
|
{
|
|
147
148
|
level: "body-sm",
|
|
148
149
|
sx: {
|
|
@@ -173,7 +174,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
173
174
|
},
|
|
174
175
|
children: [
|
|
175
176
|
e.label && /* @__PURE__ */ t(
|
|
176
|
-
|
|
177
|
+
y,
|
|
177
178
|
{
|
|
178
179
|
level: "body-sm",
|
|
179
180
|
sx: {
|
|
@@ -205,18 +206,18 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
205
206
|
leadTitle: a,
|
|
206
207
|
leadDescription: S,
|
|
207
208
|
leadCta: s,
|
|
208
|
-
leadSuccessTitle:
|
|
209
|
+
leadSuccessTitle: x,
|
|
209
210
|
leadSuccessDescription: b,
|
|
210
211
|
syncWithProfile: z = !1,
|
|
211
212
|
isAfterPosition: C = !1,
|
|
212
213
|
isSubmittingParticipation: I = !1
|
|
213
214
|
}) => {
|
|
214
|
-
const { t: T } = ne(), E = a ?? T("leads.header.title"), g = S ?? T("leads.header.description"),
|
|
215
|
+
const { t: T } = ne(), E = a ?? T("leads.header.title"), g = S ?? T("leads.header.description"), F = s ?? T("leads.buttons.submit"), P = x ?? T("leads.success.title"), M = b ?? T("leads.success.description"), L = {
|
|
215
216
|
defaultLabel: T(C ? "matchQuiz.buttons.play" : "matchQuiz.buttons.start"),
|
|
216
217
|
onClick: u
|
|
217
218
|
};
|
|
218
219
|
return /* @__PURE__ */ t(
|
|
219
|
-
|
|
220
|
+
Vn,
|
|
220
221
|
{
|
|
221
222
|
sdk: e,
|
|
222
223
|
content: {
|
|
@@ -224,7 +225,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
224
225
|
type: "match-quiz",
|
|
225
226
|
name: o
|
|
226
227
|
},
|
|
227
|
-
onSuccessCta:
|
|
228
|
+
onSuccessCta: L,
|
|
228
229
|
branding: {
|
|
229
230
|
colors: r,
|
|
230
231
|
urls: l
|
|
@@ -237,7 +238,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
237
238
|
labels: {
|
|
238
239
|
title: E,
|
|
239
240
|
description: g,
|
|
240
|
-
submitButtonLabel:
|
|
241
|
+
submitButtonLabel: F,
|
|
241
242
|
successTitle: P,
|
|
242
243
|
successDescription: M
|
|
243
244
|
},
|
|
@@ -245,7 +246,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
245
246
|
isSubmittingParticipation: I
|
|
246
247
|
}
|
|
247
248
|
);
|
|
248
|
-
},
|
|
249
|
+
}, ci = (e) => ({
|
|
249
250
|
// Content container with backdrop
|
|
250
251
|
contentContainerWithBackdrop: {
|
|
251
252
|
borderRadius: e.mdBorderRadius,
|
|
@@ -454,9 +455,9 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
454
455
|
justifyContent: "center",
|
|
455
456
|
alignItems: "center"
|
|
456
457
|
}
|
|
457
|
-
}),
|
|
458
|
+
}), si = Nt(/* @__PURE__ */ t("path", {
|
|
458
459
|
d: "M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
459
|
-
}), "KeyboardArrowUp"),
|
|
460
|
+
}), "KeyboardArrowUp"), di = Nt(/* @__PURE__ */ t("path", {
|
|
460
461
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
461
462
|
}), "KeyboardArrowDown"), At = (e) => ({
|
|
462
463
|
base: {
|
|
@@ -494,7 +495,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
494
495
|
selectedText: e.onPrimary ? {
|
|
495
496
|
color: e.onPrimary
|
|
496
497
|
} : {}
|
|
497
|
-
}),
|
|
498
|
+
}), mi = (e) => ({
|
|
498
499
|
...At(e),
|
|
499
500
|
selectedYes: e.successMain ? {
|
|
500
501
|
backgroundColor: e.successMain,
|
|
@@ -516,7 +517,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
516
517
|
} : {
|
|
517
518
|
borderRadius: e.spacingScale.sm
|
|
518
519
|
}
|
|
519
|
-
}),
|
|
520
|
+
}), ui = (e) => {
|
|
520
521
|
const n = At({
|
|
521
522
|
spacingScale: e.spacingScale,
|
|
522
523
|
neutralSoftBg: e.neutralSoftBg,
|
|
@@ -674,7 +675,7 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
674
675
|
mx: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
675
676
|
}
|
|
676
677
|
};
|
|
677
|
-
}, _e =
|
|
678
|
+
}, _e = Tn({
|
|
678
679
|
showTeamLabels: !1,
|
|
679
680
|
points: [],
|
|
680
681
|
squads: /* @__PURE__ */ new Map()
|
|
@@ -707,13 +708,13 @@ const ri = (e) => e === "CORRECT_SCORE" || e === "CORRECT_SCORE_HT" || e === "CO
|
|
|
707
708
|
objectFit: "contain"
|
|
708
709
|
}
|
|
709
710
|
}
|
|
710
|
-
) : /* @__PURE__ */ t(
|
|
711
|
-
r && /* @__PURE__ */ t(
|
|
711
|
+
) : /* @__PURE__ */ t(y, { level: "body-sm", sx: o.teamLogoText, children: e.name }) }),
|
|
712
|
+
r && /* @__PURE__ */ t(y, { level: "body-sm", sx: o.teamName, children: e.name })
|
|
712
713
|
] });
|
|
713
714
|
});
|
|
714
715
|
Vt.displayName = "TeamLogo";
|
|
715
|
-
const
|
|
716
|
-
const n = _(), o =
|
|
716
|
+
const gi = (e) => {
|
|
717
|
+
const n = _(), o = re(), r = ee(), l = Se(), h = ce(), m = Ne(), { showTeamLabels: u } = De(_e), f = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : m, [a, S] = te(e.initialHomeScore ?? 0), [s, x] = te(e.initialAwayScore ?? 0), b = ui({
|
|
717
718
|
spacingScale: l,
|
|
718
719
|
borderRadius: o,
|
|
719
720
|
fontFamilyPrimary: r.primary,
|
|
@@ -730,32 +731,32 @@ const fi = (e) => {
|
|
|
730
731
|
S(g), e.onScoreChange(g, s);
|
|
731
732
|
} else {
|
|
732
733
|
const g = E ? Math.min(s + 1, 99) : Math.max(s - 1, 0);
|
|
733
|
-
|
|
734
|
+
x(g), e.onScoreChange(a, g);
|
|
734
735
|
}
|
|
735
736
|
}, C = ({ score: T, onIncrement: E, onDecrement: g }) => /* @__PURE__ */ d(i, { sx: b.scoreInputContainer, children: [
|
|
736
737
|
/* @__PURE__ */ t(
|
|
737
|
-
|
|
738
|
+
Le,
|
|
738
739
|
{
|
|
739
740
|
size: "sm",
|
|
740
741
|
variant: "plain",
|
|
741
742
|
onClick: E,
|
|
742
743
|
sx: b.scoreButton,
|
|
743
|
-
children: /* @__PURE__ */ t(
|
|
744
|
+
children: /* @__PURE__ */ t(si, { fontSize: "small" })
|
|
744
745
|
}
|
|
745
746
|
),
|
|
746
|
-
/* @__PURE__ */ t(
|
|
747
|
+
/* @__PURE__ */ t(y, { level: "h2", sx: b.scoreDisplay, children: T }),
|
|
747
748
|
/* @__PURE__ */ t(
|
|
748
|
-
|
|
749
|
+
Le,
|
|
749
750
|
{
|
|
750
751
|
size: "sm",
|
|
751
752
|
variant: "plain",
|
|
752
753
|
onClick: g,
|
|
753
754
|
sx: b.scoreButton,
|
|
754
755
|
disabled: T === 0,
|
|
755
|
-
children: /* @__PURE__ */ t(
|
|
756
|
+
children: /* @__PURE__ */ t(di, { fontSize: "small" })
|
|
756
757
|
}
|
|
757
758
|
)
|
|
758
|
-
] }), I = ({ team: T, score: E, onIncrement: g, onDecrement:
|
|
759
|
+
] }), I = ({ team: T, score: E, onIncrement: g, onDecrement: F }) => {
|
|
759
760
|
var P;
|
|
760
761
|
return /* @__PURE__ */ d(i, { sx: b.xsRow, children: [
|
|
761
762
|
/* @__PURE__ */ d(i, { sx: b.xsTeamInfo, children: [
|
|
@@ -766,24 +767,24 @@ const fi = (e) => {
|
|
|
766
767
|
alt: T.name,
|
|
767
768
|
style: { width: "100%", height: "100%", objectFit: "contain" }
|
|
768
769
|
}
|
|
769
|
-
) : /* @__PURE__ */ t(
|
|
770
|
-
u && /* @__PURE__ */ t(
|
|
770
|
+
) : /* @__PURE__ */ t(y, { level: "body-sm", sx: b.teamLogoText, children: T.name }) }),
|
|
771
|
+
u && /* @__PURE__ */ t(y, { level: "body-sm", sx: b.teamNameInline, children: T.name })
|
|
771
772
|
] }),
|
|
772
773
|
/* @__PURE__ */ d(i, { sx: b.scoreInputRow, children: [
|
|
773
774
|
/* @__PURE__ */ t(
|
|
774
|
-
|
|
775
|
+
Le,
|
|
775
776
|
{
|
|
776
777
|
size: "sm",
|
|
777
778
|
variant: "plain",
|
|
778
|
-
onClick:
|
|
779
|
+
onClick: F,
|
|
779
780
|
sx: b.scoreButton,
|
|
780
781
|
disabled: E === 0,
|
|
781
782
|
children: /* @__PURE__ */ t(Gt, { fontSize: "small" })
|
|
782
783
|
}
|
|
783
784
|
),
|
|
784
|
-
/* @__PURE__ */ t(
|
|
785
|
+
/* @__PURE__ */ t(y, { level: "h2", sx: b.scoreDisplay, children: E }),
|
|
785
786
|
/* @__PURE__ */ t(
|
|
786
|
-
|
|
787
|
+
Le,
|
|
787
788
|
{
|
|
788
789
|
size: "sm",
|
|
789
790
|
variant: "plain",
|
|
@@ -833,7 +834,7 @@ const fi = (e) => {
|
|
|
833
834
|
onDecrement: () => z("home", !1)
|
|
834
835
|
}
|
|
835
836
|
),
|
|
836
|
-
/* @__PURE__ */ t(
|
|
837
|
+
/* @__PURE__ */ t(y, { level: "h2", sx: b.separator, children: ":" }),
|
|
837
838
|
/* @__PURE__ */ t(
|
|
838
839
|
C,
|
|
839
840
|
{
|
|
@@ -853,7 +854,7 @@ const fi = (e) => {
|
|
|
853
854
|
}
|
|
854
855
|
)
|
|
855
856
|
] });
|
|
856
|
-
},
|
|
857
|
+
}, hi = (e) => ({
|
|
857
858
|
// Split variant layout container: two stacked rows
|
|
858
859
|
container: {
|
|
859
860
|
display: "flex",
|
|
@@ -946,12 +947,12 @@ const fi = (e) => {
|
|
|
946
947
|
alt: e.name,
|
|
947
948
|
style: { width: "100%", height: "100%", objectFit: "contain" }
|
|
948
949
|
}
|
|
949
|
-
) : /* @__PURE__ */ t(
|
|
950
|
-
h && /* @__PURE__ */ t(
|
|
950
|
+
) : /* @__PURE__ */ t(y, { level: "body-sm", sx: l.teamLogoText, children: e.name }) }),
|
|
951
|
+
h && /* @__PURE__ */ t(y, { level: "body-sm", sx: l.teamName, children: e.name })
|
|
951
952
|
] }),
|
|
952
953
|
/* @__PURE__ */ d(i, { sx: l.scoreInputRow, children: [
|
|
953
954
|
/* @__PURE__ */ t(
|
|
954
|
-
|
|
955
|
+
Le,
|
|
955
956
|
{
|
|
956
957
|
size: "sm",
|
|
957
958
|
variant: "plain",
|
|
@@ -961,9 +962,9 @@ const fi = (e) => {
|
|
|
961
962
|
children: /* @__PURE__ */ t(Gt, { fontSize: "small" })
|
|
962
963
|
}
|
|
963
964
|
),
|
|
964
|
-
/* @__PURE__ */ t(
|
|
965
|
+
/* @__PURE__ */ t(y, { level: "h2", sx: l.scoreDisplay, children: n }),
|
|
965
966
|
/* @__PURE__ */ t(
|
|
966
|
-
|
|
967
|
+
Le,
|
|
967
968
|
{
|
|
968
969
|
size: "sm",
|
|
969
970
|
variant: "plain",
|
|
@@ -976,8 +977,8 @@ const fi = (e) => {
|
|
|
976
977
|
] });
|
|
977
978
|
});
|
|
978
979
|
jt.displayName = "TeamRow";
|
|
979
|
-
const
|
|
980
|
-
const n = _(), o =
|
|
980
|
+
const fi = (e) => {
|
|
981
|
+
const n = _(), o = re(), r = ee(), l = Se(), h = Ne(), { showTeamLabels: m } = De(_e), [u, f] = te(e.initialHomeScore ?? 0), [a, S] = te(e.initialAwayScore ?? 0), s = hi({
|
|
981
982
|
spacingScale: l,
|
|
982
983
|
borderRadius: o,
|
|
983
984
|
fontFamilyPrimary: r.primary,
|
|
@@ -988,7 +989,7 @@ const yi = (e) => {
|
|
|
988
989
|
neutralOutlinedBorder: n.palette.neutral.outlinedBorder,
|
|
989
990
|
neutralPlainHoverBg: n.palette.neutral.plainHoverBg,
|
|
990
991
|
isExtraSmall: h
|
|
991
|
-
}),
|
|
992
|
+
}), x = (b, z) => {
|
|
992
993
|
if (b === "home") {
|
|
993
994
|
const C = z ? Math.min(u + 1, 99) : Math.max(u - 1, 0);
|
|
994
995
|
f(C), e.onScoreChange(C, a);
|
|
@@ -1003,8 +1004,8 @@ const yi = (e) => {
|
|
|
1003
1004
|
{
|
|
1004
1005
|
team: e.matchModel.homeTeam,
|
|
1005
1006
|
score: u,
|
|
1006
|
-
onIncrement: () =>
|
|
1007
|
-
onDecrement: () =>
|
|
1007
|
+
onIncrement: () => x("home", !0),
|
|
1008
|
+
onDecrement: () => x("home", !1),
|
|
1008
1009
|
styles: s,
|
|
1009
1010
|
showTeamLabels: m
|
|
1010
1011
|
}
|
|
@@ -1014,14 +1015,14 @@ const yi = (e) => {
|
|
|
1014
1015
|
{
|
|
1015
1016
|
team: e.matchModel.awayTeam,
|
|
1016
1017
|
score: a,
|
|
1017
|
-
onIncrement: () =>
|
|
1018
|
-
onDecrement: () =>
|
|
1018
|
+
onIncrement: () => x("away", !0),
|
|
1019
|
+
onDecrement: () => x("away", !1),
|
|
1019
1020
|
styles: s,
|
|
1020
1021
|
showTeamLabels: m
|
|
1021
1022
|
}
|
|
1022
1023
|
)
|
|
1023
1024
|
] });
|
|
1024
|
-
},
|
|
1025
|
+
}, xi = (e) => {
|
|
1025
1026
|
const n = ce();
|
|
1026
1027
|
return {
|
|
1027
1028
|
container: {
|
|
@@ -1039,7 +1040,7 @@ const yi = (e) => {
|
|
|
1039
1040
|
marginLeft: "auto"
|
|
1040
1041
|
}
|
|
1041
1042
|
};
|
|
1042
|
-
},
|
|
1043
|
+
}, yi = (e) => ({
|
|
1043
1044
|
container: {
|
|
1044
1045
|
backgroundColor: e.neutralSoftBg,
|
|
1045
1046
|
color: e.textPrimary,
|
|
@@ -1134,7 +1135,7 @@ const yi = (e) => {
|
|
|
1134
1135
|
color: e.textPrimary
|
|
1135
1136
|
}
|
|
1136
1137
|
}), Pt = (e) => {
|
|
1137
|
-
const { t: n } = ne(), o = _(), r =
|
|
1138
|
+
const { t: n } = ne(), o = _(), r = re(), l = ee(), h = Se(), m = ce(), [u, f] = te(!1), { points: a } = De(_e), S = yi({
|
|
1138
1139
|
spacingScale: h,
|
|
1139
1140
|
borderRadius: r,
|
|
1140
1141
|
fontFamilyPrimary: l.primary,
|
|
@@ -1147,24 +1148,24 @@ const yi = (e) => {
|
|
|
1147
1148
|
}), s = a.find((C) => C.id === e.market);
|
|
1148
1149
|
if (!s)
|
|
1149
1150
|
return null;
|
|
1150
|
-
const
|
|
1151
|
+
const x = s.alternative && Object.values(s.alternative).some(
|
|
1151
1152
|
(C) => C > 0
|
|
1152
1153
|
), b = () => {
|
|
1153
|
-
if (!
|
|
1154
|
-
return /* @__PURE__ */ t(
|
|
1154
|
+
if (!x)
|
|
1155
|
+
return /* @__PURE__ */ t(y, { level: "body-sm", sx: S.tooltipText, children: n("matchQuiz.points.earnPointsForCorrect", {
|
|
1155
1156
|
points: s.points
|
|
1156
1157
|
}) });
|
|
1157
1158
|
const C = Object.entries(s.alternative).filter(
|
|
1158
1159
|
([, I]) => I > 0
|
|
1159
1160
|
);
|
|
1160
1161
|
return /* @__PURE__ */ d(i, { sx: S.tooltipContainer, children: [
|
|
1161
|
-
/* @__PURE__ */ t(
|
|
1162
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: S.tooltipText, children: n("matchQuiz.points.earnPointsForCompletelyCorrect", {
|
|
1162
1163
|
points: s.points
|
|
1163
1164
|
}) }),
|
|
1164
1165
|
C.length > 0 && /* @__PURE__ */ d(p, { children: [
|
|
1165
|
-
/* @__PURE__ */ t(
|
|
1166
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: S.tooltipSubtext, children: n("matchQuiz.points.canAlsoEarnForPartial") }),
|
|
1166
1167
|
C.map(([I, T]) => /* @__PURE__ */ d(
|
|
1167
|
-
|
|
1168
|
+
y,
|
|
1168
1169
|
{
|
|
1169
1170
|
level: "body-sm",
|
|
1170
1171
|
sx: S.tooltipAlternative,
|
|
@@ -1197,7 +1198,7 @@ const yi = (e) => {
|
|
|
1197
1198
|
}
|
|
1198
1199
|
};
|
|
1199
1200
|
return m || e.isSplitVariant ? /* @__PURE__ */ t(
|
|
1200
|
-
|
|
1201
|
+
rn,
|
|
1201
1202
|
{
|
|
1202
1203
|
title: b(),
|
|
1203
1204
|
placement: "top-start",
|
|
@@ -1210,16 +1211,16 @@ const yi = (e) => {
|
|
|
1210
1211
|
disableFocusListener: !0,
|
|
1211
1212
|
disableTouchListener: !0,
|
|
1212
1213
|
children: /* @__PURE__ */ t(
|
|
1213
|
-
|
|
1214
|
+
Le,
|
|
1214
1215
|
{
|
|
1215
1216
|
onClick: () => f(!u),
|
|
1216
1217
|
sx: S.mobileIconButton,
|
|
1217
|
-
children: /* @__PURE__ */ t(
|
|
1218
|
+
children: /* @__PURE__ */ t(jn, { sx: S.mobileIcon })
|
|
1218
1219
|
}
|
|
1219
1220
|
)
|
|
1220
1221
|
}
|
|
1221
1222
|
) : /* @__PURE__ */ t(
|
|
1222
|
-
|
|
1223
|
+
rn,
|
|
1223
1224
|
{
|
|
1224
1225
|
title: b(),
|
|
1225
1226
|
placement: "top-start",
|
|
@@ -1227,13 +1228,13 @@ const yi = (e) => {
|
|
|
1227
1228
|
sx: S.tooltip,
|
|
1228
1229
|
disablePortal: !0,
|
|
1229
1230
|
children: /* @__PURE__ */ d(i, { sx: S.container, children: [
|
|
1230
|
-
/* @__PURE__ */ t(
|
|
1231
|
-
/* @__PURE__ */ t(
|
|
1231
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: S.pointsText, children: s.points }),
|
|
1232
|
+
/* @__PURE__ */ t(y, { level: "body-xs", sx: S.ptsLabel, children: n("matchQuiz.points.pts") })
|
|
1232
1233
|
] })
|
|
1233
1234
|
}
|
|
1234
1235
|
);
|
|
1235
|
-
},
|
|
1236
|
-
const { t: n } = ne(), o = _(), r =
|
|
1236
|
+
}, Ft = (e) => {
|
|
1237
|
+
const { t: n } = ne(), o = _(), r = re(), l = ee(), h = Se(), m = Ne(), { points: u } = De(_e), f = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : m, a = e.showPoints === void 0, S = xi({
|
|
1237
1238
|
spacingScale: h,
|
|
1238
1239
|
borderRadius: r,
|
|
1239
1240
|
fontFamilyPrimary: l.primary,
|
|
@@ -1254,7 +1255,7 @@ const yi = (e) => {
|
|
|
1254
1255
|
},
|
|
1255
1256
|
children: [
|
|
1256
1257
|
f ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
1257
|
-
/* @__PURE__ */ t(
|
|
1258
|
+
/* @__PURE__ */ t(y, { level: "h3", sx: S.title, children: s() }),
|
|
1258
1259
|
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: a && u.length > 0 && /* @__PURE__ */ t(
|
|
1259
1260
|
Pt,
|
|
1260
1261
|
{
|
|
@@ -1267,7 +1268,7 @@ const yi = (e) => {
|
|
|
1267
1268
|
}
|
|
1268
1269
|
),
|
|
1269
1270
|
e.isSplitVariant ? /* @__PURE__ */ t(
|
|
1270
|
-
|
|
1271
|
+
fi,
|
|
1271
1272
|
{
|
|
1272
1273
|
matchModel: e.matchModel,
|
|
1273
1274
|
onScoreChange: e.onScoreChange,
|
|
@@ -1275,7 +1276,7 @@ const yi = (e) => {
|
|
|
1275
1276
|
initialAwayScore: e.initialAwayScore
|
|
1276
1277
|
}
|
|
1277
1278
|
) : /* @__PURE__ */ t(
|
|
1278
|
-
|
|
1279
|
+
gi,
|
|
1279
1280
|
{
|
|
1280
1281
|
matchModel: e.matchModel,
|
|
1281
1282
|
onScoreChange: e.onScoreChange,
|
|
@@ -1285,7 +1286,7 @@ const yi = (e) => {
|
|
|
1285
1286
|
}
|
|
1286
1287
|
)
|
|
1287
1288
|
] });
|
|
1288
|
-
},
|
|
1289
|
+
}, Si = (e) => {
|
|
1289
1290
|
const n = At({
|
|
1290
1291
|
spacingScale: e.spacingScale,
|
|
1291
1292
|
neutralSoftBg: e.neutralSoftBg,
|
|
@@ -1381,7 +1382,7 @@ const yi = (e) => {
|
|
|
1381
1382
|
textAlign: "center"
|
|
1382
1383
|
}
|
|
1383
1384
|
};
|
|
1384
|
-
},
|
|
1385
|
+
}, Ci = (e) => ({
|
|
1385
1386
|
// Split variant layout container: stacked rows
|
|
1386
1387
|
container: {
|
|
1387
1388
|
display: "flex",
|
|
@@ -1454,10 +1455,10 @@ const yi = (e) => {
|
|
|
1454
1455
|
selectedOptionLabel: {
|
|
1455
1456
|
color: e.onPrimary
|
|
1456
1457
|
}
|
|
1457
|
-
}),
|
|
1458
|
-
const n = _(), o =
|
|
1458
|
+
}), bi = (e) => {
|
|
1459
|
+
const n = _(), o = re(), r = ee(), l = Se(), { t: h } = ne(), { showTeamLabels: m } = De(_e), [u, f] = te(
|
|
1459
1460
|
e.prediction
|
|
1460
|
-
), a =
|
|
1461
|
+
), a = Ci({
|
|
1461
1462
|
spacingScale: l,
|
|
1462
1463
|
borderRadius: o,
|
|
1463
1464
|
fontFamilyPrimary: r.primary,
|
|
@@ -1469,9 +1470,9 @@ const yi = (e) => {
|
|
|
1469
1470
|
neutralPlainHoverBg: n.palette.neutral.plainHoverBg,
|
|
1470
1471
|
primary: e.brandingPrimaryColor || n.palette.primary.plainColor,
|
|
1471
1472
|
onPrimary: n.palette.primary.onPrimary
|
|
1472
|
-
}), S = (
|
|
1473
|
-
f(
|
|
1474
|
-
}, s = ({ team:
|
|
1473
|
+
}), S = (x) => {
|
|
1474
|
+
f(x), e.onSelectionChange(x);
|
|
1475
|
+
}, s = ({ team: x, option: b, label: z, isSelected: C, isDraw: I = !1 }) => {
|
|
1475
1476
|
var T;
|
|
1476
1477
|
return /* @__PURE__ */ t(
|
|
1477
1478
|
i,
|
|
@@ -1483,16 +1484,16 @@ const yi = (e) => {
|
|
|
1483
1484
|
},
|
|
1484
1485
|
onClick: () => S(b),
|
|
1485
1486
|
children: /* @__PURE__ */ d(i, { sx: a.optionContent, children: [
|
|
1486
|
-
!I &&
|
|
1487
|
+
!I && x && /* @__PURE__ */ t(i, { sx: a.teamLogo, children: (T = x.assets) != null && T.logo ? /* @__PURE__ */ t(
|
|
1487
1488
|
"img",
|
|
1488
1489
|
{
|
|
1489
|
-
src:
|
|
1490
|
-
alt:
|
|
1490
|
+
src: x.assets.logo,
|
|
1491
|
+
alt: x.name,
|
|
1491
1492
|
style: { width: "100%", height: "100%", objectFit: "contain" }
|
|
1492
1493
|
}
|
|
1493
|
-
) : /* @__PURE__ */ t(
|
|
1494
|
+
) : /* @__PURE__ */ t(y, { level: "body-sm", sx: a.teamLogoText, children: x.name }) }),
|
|
1494
1495
|
/* @__PURE__ */ t(
|
|
1495
|
-
|
|
1496
|
+
y,
|
|
1496
1497
|
{
|
|
1497
1498
|
level: "body-md",
|
|
1498
1499
|
sx: {
|
|
@@ -1558,7 +1559,7 @@ const yi = (e) => {
|
|
|
1558
1559
|
}
|
|
1559
1560
|
}
|
|
1560
1561
|
) : /* @__PURE__ */ t(
|
|
1561
|
-
|
|
1562
|
+
y,
|
|
1562
1563
|
{
|
|
1563
1564
|
level: "body-sm",
|
|
1564
1565
|
sx: {
|
|
@@ -1572,7 +1573,7 @@ const yi = (e) => {
|
|
|
1572
1573
|
) });
|
|
1573
1574
|
});
|
|
1574
1575
|
$t.displayName = "TeamIcon";
|
|
1575
|
-
const
|
|
1576
|
+
const bn = bt(({ isSelected: e, styles: n, handleSelection: o }) => /* @__PURE__ */ t(i, { sx: n.iconContainer, children: /* @__PURE__ */ t(
|
|
1576
1577
|
i,
|
|
1577
1578
|
{
|
|
1578
1579
|
sx: {
|
|
@@ -1582,7 +1583,7 @@ const Rn = bt(({ isSelected: e, styles: n, handleSelection: o }) => /* @__PURE__
|
|
|
1582
1583
|
},
|
|
1583
1584
|
onClick: () => o("x"),
|
|
1584
1585
|
children: /* @__PURE__ */ t(
|
|
1585
|
-
|
|
1586
|
+
y,
|
|
1586
1587
|
{
|
|
1587
1588
|
level: "h4",
|
|
1588
1589
|
sx: {
|
|
@@ -1594,11 +1595,11 @@ const Rn = bt(({ isSelected: e, styles: n, handleSelection: o }) => /* @__PURE__
|
|
|
1594
1595
|
)
|
|
1595
1596
|
}
|
|
1596
1597
|
) }));
|
|
1597
|
-
|
|
1598
|
-
const
|
|
1598
|
+
bn.displayName = "DrawIcon";
|
|
1599
|
+
const Ri = (e) => {
|
|
1599
1600
|
if (e.isSplitVariant)
|
|
1600
1601
|
return /* @__PURE__ */ t(
|
|
1601
|
-
|
|
1602
|
+
bi,
|
|
1602
1603
|
{
|
|
1603
1604
|
matchModel: e.matchModel,
|
|
1604
1605
|
onSelectionChange: e.onSelectionChange,
|
|
@@ -1606,9 +1607,9 @@ const Pi = (e) => {
|
|
|
1606
1607
|
prediction: e.prediction
|
|
1607
1608
|
}
|
|
1608
1609
|
);
|
|
1609
|
-
const n = _(), o =
|
|
1610
|
+
const n = _(), o = re(), r = ee(), l = Se(), h = ce(), { t: m } = ne(), { showTeamLabels: u } = De(_e), [f, a] = te(
|
|
1610
1611
|
e.prediction
|
|
1611
|
-
), S =
|
|
1612
|
+
), S = Si({
|
|
1612
1613
|
spacingScale: l,
|
|
1613
1614
|
borderRadius: o,
|
|
1614
1615
|
fontFamilyPrimary: r.primary,
|
|
@@ -1623,7 +1624,7 @@ const Pi = (e) => {
|
|
|
1623
1624
|
isMobile: h
|
|
1624
1625
|
}), s = (z) => {
|
|
1625
1626
|
a(z), e.onSelectionChange(z);
|
|
1626
|
-
},
|
|
1627
|
+
}, x = ({ team: z }) => /* @__PURE__ */ t(i, { sx: S.labelContainer, children: /* @__PURE__ */ t(y, { level: "body-sm", sx: S.teamName, children: z.name }) }), b = () => /* @__PURE__ */ t(i, { sx: S.labelContainer, children: /* @__PURE__ */ t(y, { level: "body-sm", sx: S.drawLabel, children: m("matchQuiz.fixtures.draw") }) });
|
|
1627
1628
|
return /* @__PURE__ */ d(i, { sx: S.container, children: [
|
|
1628
1629
|
/* @__PURE__ */ d(i, { sx: S.iconsRow, children: [
|
|
1629
1630
|
/* @__PURE__ */ t(
|
|
@@ -1637,7 +1638,7 @@ const Pi = (e) => {
|
|
|
1637
1638
|
}
|
|
1638
1639
|
),
|
|
1639
1640
|
/* @__PURE__ */ t(
|
|
1640
|
-
|
|
1641
|
+
bn,
|
|
1641
1642
|
{
|
|
1642
1643
|
isSelected: f === "x",
|
|
1643
1644
|
styles: S,
|
|
@@ -1656,12 +1657,12 @@ const Pi = (e) => {
|
|
|
1656
1657
|
)
|
|
1657
1658
|
] }),
|
|
1658
1659
|
u && /* @__PURE__ */ d(i, { sx: S.labelsRow, children: [
|
|
1659
|
-
/* @__PURE__ */ t(
|
|
1660
|
+
/* @__PURE__ */ t(x, { team: e.matchModel.homeTeam }),
|
|
1660
1661
|
/* @__PURE__ */ t(b, {}),
|
|
1661
|
-
/* @__PURE__ */ t(
|
|
1662
|
+
/* @__PURE__ */ t(x, { team: e.matchModel.awayTeam })
|
|
1662
1663
|
] })
|
|
1663
1664
|
] });
|
|
1664
|
-
},
|
|
1665
|
+
}, Ti = (e) => {
|
|
1665
1666
|
const n = ce();
|
|
1666
1667
|
return {
|
|
1667
1668
|
container: {
|
|
@@ -1678,8 +1679,8 @@ const Pi = (e) => {
|
|
|
1678
1679
|
textAlign: e.ixExtraSmall ? "left" : "center"
|
|
1679
1680
|
}
|
|
1680
1681
|
};
|
|
1681
|
-
},
|
|
1682
|
-
const { t: n } = ne(), o = _(), r =
|
|
1682
|
+
}, vt = (e) => {
|
|
1683
|
+
const { t: n } = ne(), o = _(), r = re(), l = ee(), h = Se(), m = Ne(), { points: u } = De(_e), f = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : m, a = e.showPoints === void 0, S = Ti({
|
|
1683
1684
|
spacingScale: h,
|
|
1684
1685
|
borderRadius: r,
|
|
1685
1686
|
fontFamilyPrimary: l.primary,
|
|
@@ -1700,7 +1701,7 @@ const Pi = (e) => {
|
|
|
1700
1701
|
},
|
|
1701
1702
|
children: [
|
|
1702
1703
|
f ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
1703
|
-
/* @__PURE__ */ t(
|
|
1704
|
+
/* @__PURE__ */ t(y, { level: "h3", sx: S.title, children: s() }),
|
|
1704
1705
|
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: a && u.length > 0 && /* @__PURE__ */ t(
|
|
1705
1706
|
Pt,
|
|
1706
1707
|
{
|
|
@@ -1713,7 +1714,7 @@ const Pi = (e) => {
|
|
|
1713
1714
|
}
|
|
1714
1715
|
),
|
|
1715
1716
|
/* @__PURE__ */ t(
|
|
1716
|
-
|
|
1717
|
+
Ri,
|
|
1717
1718
|
{
|
|
1718
1719
|
matchModel: e.matchModel,
|
|
1719
1720
|
onSelectionChange: e.onSelectionChange,
|
|
@@ -1723,7 +1724,7 @@ const Pi = (e) => {
|
|
|
1723
1724
|
}
|
|
1724
1725
|
)
|
|
1725
1726
|
] });
|
|
1726
|
-
},
|
|
1727
|
+
}, Pi = (e) => ({
|
|
1727
1728
|
container: {
|
|
1728
1729
|
display: "flex",
|
|
1729
1730
|
alignItems: "center",
|
|
@@ -1760,8 +1761,8 @@ const Pi = (e) => {
|
|
|
1760
1761
|
px: e.spacingScale.sm,
|
|
1761
1762
|
py: e.spacingScale.xs
|
|
1762
1763
|
}
|
|
1763
|
-
}),
|
|
1764
|
-
const n = _(), o =
|
|
1764
|
+
}), zi = (e) => {
|
|
1765
|
+
const n = _(), o = re(), r = ee(), l = Se(), h = ce(), [m, u] = te(e.prediction || 6), f = Pi({
|
|
1765
1766
|
spacingScale: l,
|
|
1766
1767
|
borderRadius: o,
|
|
1767
1768
|
fontFamilyPrimary: r.primary,
|
|
@@ -1774,11 +1775,11 @@ const Pi = (e) => {
|
|
|
1774
1775
|
isMobile: h
|
|
1775
1776
|
}), a = (s) => {
|
|
1776
1777
|
var b;
|
|
1777
|
-
const
|
|
1778
|
-
u(
|
|
1779
|
-
}, S = ({ corners: s, onIncrement:
|
|
1778
|
+
const x = s ? Math.min(m + 1, 99) : Math.max(m - 1, 0);
|
|
1779
|
+
u(x), (b = e.onCornersChange) == null || b.call(e, x);
|
|
1780
|
+
}, S = ({ corners: s, onIncrement: x, onDecrement: b }) => /* @__PURE__ */ d(i, { sx: f.cornersInputContainer, children: [
|
|
1780
1781
|
/* @__PURE__ */ t(
|
|
1781
|
-
|
|
1782
|
+
Le,
|
|
1782
1783
|
{
|
|
1783
1784
|
size: "sm",
|
|
1784
1785
|
variant: "plain",
|
|
@@ -1788,13 +1789,13 @@ const Pi = (e) => {
|
|
|
1788
1789
|
children: /* @__PURE__ */ t(Gt, { fontSize: "small" })
|
|
1789
1790
|
}
|
|
1790
1791
|
),
|
|
1791
|
-
/* @__PURE__ */ t(
|
|
1792
|
+
/* @__PURE__ */ t(y, { level: "h2", sx: f.cornersDisplay, children: s }),
|
|
1792
1793
|
/* @__PURE__ */ t(
|
|
1793
|
-
|
|
1794
|
+
Le,
|
|
1794
1795
|
{
|
|
1795
1796
|
size: "sm",
|
|
1796
1797
|
variant: "plain",
|
|
1797
|
-
onClick:
|
|
1798
|
+
onClick: x,
|
|
1798
1799
|
sx: f.cornersButton,
|
|
1799
1800
|
children: /* @__PURE__ */ t(Yt, { fontSize: "small" })
|
|
1800
1801
|
}
|
|
@@ -1808,7 +1809,7 @@ const Pi = (e) => {
|
|
|
1808
1809
|
onDecrement: () => a(!1)
|
|
1809
1810
|
}
|
|
1810
1811
|
) });
|
|
1811
|
-
},
|
|
1812
|
+
}, ki = (e) => {
|
|
1812
1813
|
const n = ce();
|
|
1813
1814
|
return {
|
|
1814
1815
|
container: {
|
|
@@ -1826,7 +1827,7 @@ const Pi = (e) => {
|
|
|
1826
1827
|
}
|
|
1827
1828
|
};
|
|
1828
1829
|
}, Et = (e) => {
|
|
1829
|
-
const { t: n } = ne(), o = _(), r = Ne(), l =
|
|
1830
|
+
const { t: n } = ne(), o = _(), r = Ne(), l = re(), h = ee(), m = Se(), { points: u } = De(_e), f = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : r, a = e.showPoints === void 0, S = ki({
|
|
1830
1831
|
spacingScale: m,
|
|
1831
1832
|
borderRadius: l,
|
|
1832
1833
|
fontFamilyPrimary: h.primary,
|
|
@@ -1847,7 +1848,7 @@ const Pi = (e) => {
|
|
|
1847
1848
|
},
|
|
1848
1849
|
children: [
|
|
1849
1850
|
f ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
1850
|
-
/* @__PURE__ */ t(
|
|
1851
|
+
/* @__PURE__ */ t(y, { level: "h3", sx: S.title, children: n("matchQuiz.fixtures.cornersFixtureTitle") }),
|
|
1851
1852
|
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: a && u.length > 0 && /* @__PURE__ */ t(
|
|
1852
1853
|
Pt,
|
|
1853
1854
|
{
|
|
@@ -1860,7 +1861,7 @@ const Pi = (e) => {
|
|
|
1860
1861
|
}
|
|
1861
1862
|
),
|
|
1862
1863
|
/* @__PURE__ */ t(
|
|
1863
|
-
|
|
1864
|
+
zi,
|
|
1864
1865
|
{
|
|
1865
1866
|
matchModel: e.matchModel,
|
|
1866
1867
|
onCornersChange: e.onCornersChange,
|
|
@@ -1868,8 +1869,8 @@ const Pi = (e) => {
|
|
|
1868
1869
|
}
|
|
1869
1870
|
)
|
|
1870
1871
|
] });
|
|
1871
|
-
},
|
|
1872
|
-
const n =
|
|
1872
|
+
}, Ii = (e) => {
|
|
1873
|
+
const n = mi({
|
|
1873
1874
|
spacingScale: e.spacingScale,
|
|
1874
1875
|
neutralSoftBg: e.neutralSoftBg,
|
|
1875
1876
|
neutralPlainHoverBg: e.neutralPlainHoverBg,
|
|
@@ -1907,10 +1908,10 @@ const Pi = (e) => {
|
|
|
1907
1908
|
textAlign: "center"
|
|
1908
1909
|
}
|
|
1909
1910
|
};
|
|
1910
|
-
},
|
|
1911
|
-
const { t: n } = ne(), o = _(), r =
|
|
1911
|
+
}, wi = (e) => {
|
|
1912
|
+
const { t: n } = ne(), o = _(), r = re(), l = ee(), h = Se(), m = ce(), [u, f] = te(
|
|
1912
1913
|
e.prediction
|
|
1913
|
-
), a =
|
|
1914
|
+
), a = Ii({
|
|
1914
1915
|
spacingScale: h,
|
|
1915
1916
|
borderRadius: r,
|
|
1916
1917
|
fontFamilyPrimary: l.primary,
|
|
@@ -1927,7 +1928,7 @@ const Pi = (e) => {
|
|
|
1927
1928
|
isMobile: m
|
|
1928
1929
|
}), S = (C) => {
|
|
1929
1930
|
f(C), e.onSelectionChange(C);
|
|
1930
|
-
},
|
|
1931
|
+
}, x = {
|
|
1931
1932
|
yes: n("matchQuiz.fixtures.yes"),
|
|
1932
1933
|
no: n("matchQuiz.fixtures.no")
|
|
1933
1934
|
}, b = ({ isSelected: C }) => /* @__PURE__ */ d(i, { sx: a.optionContainer, children: [
|
|
@@ -1962,7 +1963,7 @@ const Pi = (e) => {
|
|
|
1962
1963
|
)
|
|
1963
1964
|
}
|
|
1964
1965
|
),
|
|
1965
|
-
/* @__PURE__ */ t(
|
|
1966
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: a.optionLabel, children: x.yes })
|
|
1966
1967
|
] }), z = ({ isSelected: C }) => /* @__PURE__ */ d(i, { sx: a.optionContainer, children: [
|
|
1967
1968
|
/* @__PURE__ */ t(
|
|
1968
1969
|
i,
|
|
@@ -1995,13 +1996,13 @@ const Pi = (e) => {
|
|
|
1995
1996
|
)
|
|
1996
1997
|
}
|
|
1997
1998
|
),
|
|
1998
|
-
/* @__PURE__ */ t(
|
|
1999
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: a.optionLabel, children: x.no })
|
|
1999
2000
|
] });
|
|
2000
2001
|
return /* @__PURE__ */ d(i, { sx: a.container, children: [
|
|
2001
2002
|
/* @__PURE__ */ t(b, { isSelected: u === !0 }),
|
|
2002
2003
|
/* @__PURE__ */ t(z, { isSelected: u === !1 })
|
|
2003
2004
|
] });
|
|
2004
|
-
},
|
|
2005
|
+
}, Ai = (e) => {
|
|
2005
2006
|
const n = ce();
|
|
2006
2007
|
return {
|
|
2007
2008
|
container: {
|
|
@@ -2018,8 +2019,8 @@ const Pi = (e) => {
|
|
|
2018
2019
|
textAlign: e.isExtraSmall ? "left" : "center"
|
|
2019
2020
|
}
|
|
2020
2021
|
};
|
|
2021
|
-
},
|
|
2022
|
-
const { t: n } = ne(), o = _(), r = Ne(), l =
|
|
2022
|
+
}, Lt = (e) => {
|
|
2023
|
+
const { t: n } = ne(), o = _(), r = Ne(), l = re(), h = ee(), m = Se(), { points: u } = De(_e), f = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : r, a = e.showPoints === void 0, S = Ai({
|
|
2023
2024
|
spacingScale: m,
|
|
2024
2025
|
borderRadius: l,
|
|
2025
2026
|
fontFamilyPrimary: h.primary,
|
|
@@ -2029,11 +2030,11 @@ const Pi = (e) => {
|
|
|
2029
2030
|
isExtraSmall: f
|
|
2030
2031
|
}), s = () => {
|
|
2031
2032
|
if (e.market.startsWith("OVER_GOALS_")) {
|
|
2032
|
-
const
|
|
2033
|
+
const x = e.market.replace("OVER_GOALS_", "").replace("_", "."), b = Math.floor(parseFloat(x));
|
|
2033
2034
|
return n("matchQuiz.fixtures.overGoalsFixtureTitle", { threshold: b });
|
|
2034
2035
|
}
|
|
2035
2036
|
if (e.market.startsWith("OVER_CORNERS_")) {
|
|
2036
|
-
const
|
|
2037
|
+
const x = e.market.replace("OVER_CORNERS_", "").replace("_", "."), b = Math.floor(parseFloat(x));
|
|
2037
2038
|
return n("matchQuiz.fixtures.overCornersFixtureTitle", { threshold: b });
|
|
2038
2039
|
}
|
|
2039
2040
|
return e.market === "RED_CARD_MATCH" ? n("matchQuiz.fixtures.redCardFixtureTitle") : n("matchQuiz.fixtures.penaltyFixtureTitle");
|
|
@@ -2050,7 +2051,7 @@ const Pi = (e) => {
|
|
|
2050
2051
|
},
|
|
2051
2052
|
children: [
|
|
2052
2053
|
f ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
2053
|
-
/* @__PURE__ */ t(
|
|
2054
|
+
/* @__PURE__ */ t(y, { level: "h3", sx: S.title, children: s() }),
|
|
2054
2055
|
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: a && u.length > 0 && /* @__PURE__ */ t(
|
|
2055
2056
|
Pt,
|
|
2056
2057
|
{
|
|
@@ -2063,7 +2064,7 @@ const Pi = (e) => {
|
|
|
2063
2064
|
}
|
|
2064
2065
|
),
|
|
2065
2066
|
/* @__PURE__ */ t(
|
|
2066
|
-
|
|
2067
|
+
wi,
|
|
2067
2068
|
{
|
|
2068
2069
|
market: e.market,
|
|
2069
2070
|
onSelectionChange: e.onSelectionChange,
|
|
@@ -2074,7 +2075,7 @@ const Pi = (e) => {
|
|
|
2074
2075
|
] });
|
|
2075
2076
|
}, wt = Nt(/* @__PURE__ */ t("path", {
|
|
2076
2077
|
d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
|
|
2077
|
-
}), "PersonOutline"),
|
|
2078
|
+
}), "PersonOutline"), Fi = (e) => {
|
|
2078
2079
|
const n = At({
|
|
2079
2080
|
spacingScale: e.spacingScale,
|
|
2080
2081
|
neutralSoftBg: e.neutralSoftBg,
|
|
@@ -2362,7 +2363,7 @@ const Pi = (e) => {
|
|
|
2362
2363
|
fontWeight: 500
|
|
2363
2364
|
}
|
|
2364
2365
|
};
|
|
2365
|
-
},
|
|
2366
|
+
}, Rn = bt(({ player: e, isSelected: n, styles: o, handlePlayerSelection: r }) => {
|
|
2366
2367
|
var l;
|
|
2367
2368
|
return /* @__PURE__ */ t(
|
|
2368
2369
|
i,
|
|
@@ -2396,9 +2397,9 @@ const Pi = (e) => {
|
|
|
2396
2397
|
}
|
|
2397
2398
|
);
|
|
2398
2399
|
});
|
|
2399
|
-
|
|
2400
|
-
const
|
|
2401
|
-
const n = _(), o =
|
|
2400
|
+
Rn.displayName = "PlayerAvatar";
|
|
2401
|
+
const vi = (e) => {
|
|
2402
|
+
const n = _(), o = re(), r = ee(), l = Se(), h = ce(), m = Ne(), u = Pn(), { t: f } = ne(), { squads: a } = De(_e), S = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : m, [s, x] = te(e.prediction), [b, z] = te(e.prediction === "OWN_GOAL"), [C, I] = te(e.prediction === null), [T, E] = te("home"), [g, F] = te(0), P = Fi({
|
|
2402
2403
|
spacingScale: l,
|
|
2403
2404
|
borderRadius: o,
|
|
2404
2405
|
fontFamilyPrimary: r.primary,
|
|
@@ -2414,12 +2415,12 @@ const Di = (e) => {
|
|
|
2414
2415
|
isExtraSmall: S,
|
|
2415
2416
|
isSplitVariant: e.isSplitVariant || !1
|
|
2416
2417
|
}), M = (R) => {
|
|
2417
|
-
z(!1), I(!1),
|
|
2418
|
-
},
|
|
2419
|
-
R ? (
|
|
2418
|
+
z(!1), I(!1), x(R), e.onPlayerSelection(R);
|
|
2419
|
+
}, L = (R) => {
|
|
2420
|
+
R ? (x(null), I(!1), z(!0), e.onPlayerSelection("OWN_GOAL")) : (z(!1), e.onPlayerSelection(null));
|
|
2420
2421
|
}, H = (R) => {
|
|
2421
|
-
R ? (
|
|
2422
|
-
},
|
|
2422
|
+
R ? (x(null), z(!1), I(!0), e.onPlayerSelection(null)) : (I(!1), e.onPlayerSelection(null));
|
|
2423
|
+
}, v = () => {
|
|
2423
2424
|
const R = T === "home" ? a.get(e.matchModel.homeTeam.id) : a.get(e.matchModel.awayTeam.id);
|
|
2424
2425
|
switch (g) {
|
|
2425
2426
|
case 0:
|
|
@@ -2475,13 +2476,13 @@ const Di = (e) => {
|
|
|
2475
2476
|
Sn,
|
|
2476
2477
|
{
|
|
2477
2478
|
value: g,
|
|
2478
|
-
onChange: (R, W) =>
|
|
2479
|
+
onChange: (R, W) => F(W),
|
|
2479
2480
|
sx: P.tabs,
|
|
2480
2481
|
children: [
|
|
2481
2482
|
/* @__PURE__ */ t(Cn, { sx: P.tabList, children: V.map((R, W) => /* @__PURE__ */ t(Bt, { value: W, sx: P.tab, children: f(`matchQuiz.fixtures.${R}`) }, R)) }),
|
|
2482
|
-
V.map((R, W) => /* @__PURE__ */ t(Wt, { value: W, sx: P.tabPanel, children: /* @__PURE__ */ t(i, { sx: P.playersGrid, children:
|
|
2483
|
+
V.map((R, W) => /* @__PURE__ */ t(Wt, { value: W, sx: P.tabPanel, children: /* @__PURE__ */ t(i, { sx: P.playersGrid, children: v().map((O) => /* @__PURE__ */ d(i, { sx: P.playerContainer, children: [
|
|
2483
2484
|
/* @__PURE__ */ t(
|
|
2484
|
-
|
|
2485
|
+
Rn,
|
|
2485
2486
|
{
|
|
2486
2487
|
player: O,
|
|
2487
2488
|
isSelected: s === O.id,
|
|
@@ -2490,7 +2491,7 @@ const Di = (e) => {
|
|
|
2490
2491
|
}
|
|
2491
2492
|
),
|
|
2492
2493
|
/* @__PURE__ */ t(
|
|
2493
|
-
|
|
2494
|
+
y,
|
|
2494
2495
|
{
|
|
2495
2496
|
level: "body-xs",
|
|
2496
2497
|
sx: {
|
|
@@ -2506,11 +2507,11 @@ const Di = (e) => {
|
|
|
2506
2507
|
}
|
|
2507
2508
|
) }),
|
|
2508
2509
|
/* @__PURE__ */ d(i, { sx: P.checkboxesContainer, children: [
|
|
2509
|
-
/* @__PURE__ */ t(
|
|
2510
|
-
|
|
2510
|
+
/* @__PURE__ */ t(cn, { size: "sm", children: /* @__PURE__ */ t(i, { sx: P.checkboxRow, children: /* @__PURE__ */ t(
|
|
2511
|
+
sn,
|
|
2511
2512
|
{
|
|
2512
2513
|
checked: b,
|
|
2513
|
-
onChange: (R) =>
|
|
2514
|
+
onChange: (R) => L(R.target.checked),
|
|
2514
2515
|
slotProps: {
|
|
2515
2516
|
checkbox: {
|
|
2516
2517
|
sx: {
|
|
@@ -2531,8 +2532,8 @@ const Di = (e) => {
|
|
|
2531
2532
|
label: f("matchQuiz.fixtures.ownGoal")
|
|
2532
2533
|
}
|
|
2533
2534
|
) }) }),
|
|
2534
|
-
/* @__PURE__ */ t(
|
|
2535
|
-
|
|
2535
|
+
/* @__PURE__ */ t(cn, { size: "sm", children: /* @__PURE__ */ t(i, { sx: P.checkboxRow, children: /* @__PURE__ */ t(
|
|
2536
|
+
sn,
|
|
2536
2537
|
{
|
|
2537
2538
|
checked: C,
|
|
2538
2539
|
onChange: (R) => H(R.target.checked),
|
|
@@ -2558,7 +2559,7 @@ const Di = (e) => {
|
|
|
2558
2559
|
) }) })
|
|
2559
2560
|
] })
|
|
2560
2561
|
] });
|
|
2561
|
-
},
|
|
2562
|
+
}, Ei = (e) => {
|
|
2562
2563
|
const n = ce();
|
|
2563
2564
|
return {
|
|
2564
2565
|
container: {
|
|
@@ -2575,8 +2576,8 @@ const Di = (e) => {
|
|
|
2575
2576
|
textAlign: e.isExtraSmall ? "left" : "center"
|
|
2576
2577
|
}
|
|
2577
2578
|
};
|
|
2578
|
-
},
|
|
2579
|
-
const { t: n } = ne(), o = _(), r = Ne(), l =
|
|
2579
|
+
}, Dt = (e) => {
|
|
2580
|
+
const { t: n } = ne(), o = _(), r = Ne(), l = re(), h = ee(), m = Se(), { points: u } = De(_e), f = e.useExtraSmallLayout !== void 0 ? e.useExtraSmallLayout : r, a = e.showPoints === void 0, S = Ei({
|
|
2580
2581
|
spacingScale: m,
|
|
2581
2582
|
borderRadius: l,
|
|
2582
2583
|
fontFamilyPrimary: h.primary,
|
|
@@ -2612,7 +2613,7 @@ const Di = (e) => {
|
|
|
2612
2613
|
},
|
|
2613
2614
|
children: [
|
|
2614
2615
|
f ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(i, { sx: { flex: 1 } }),
|
|
2615
|
-
/* @__PURE__ */ t(
|
|
2616
|
+
/* @__PURE__ */ t(y, { level: "h3", sx: S.title, children: s() }),
|
|
2616
2617
|
/* @__PURE__ */ t(i, { sx: { flex: 1, display: "flex", justifyContent: "flex-end" }, children: a && u.length > 0 && /* @__PURE__ */ t(
|
|
2617
2618
|
Pt,
|
|
2618
2619
|
{
|
|
@@ -2625,7 +2626,7 @@ const Di = (e) => {
|
|
|
2625
2626
|
}
|
|
2626
2627
|
),
|
|
2627
2628
|
/* @__PURE__ */ t(
|
|
2628
|
-
|
|
2629
|
+
vi,
|
|
2629
2630
|
{
|
|
2630
2631
|
matchModel: e.matchModel,
|
|
2631
2632
|
onPlayerSelection: e.onPlayerSelection,
|
|
@@ -2637,7 +2638,7 @@ const Di = (e) => {
|
|
|
2637
2638
|
)
|
|
2638
2639
|
] });
|
|
2639
2640
|
}, Xt = (e) => {
|
|
2640
|
-
const n = _(), o =
|
|
2641
|
+
const n = _(), o = re(), r = ce(), l = () => {
|
|
2641
2642
|
const m = o.full, u = e.brandingPrimaryColor || n.palette.primary.plainColor, f = e.brandingPrimaryColor || n.palette.primary.outlinedBorder, a = "#FFFFFF", S = n.outlineEnabledBorder;
|
|
2642
2643
|
return /* @__PURE__ */ d(
|
|
2643
2644
|
i,
|
|
@@ -2677,7 +2678,7 @@ const Di = (e) => {
|
|
|
2677
2678
|
// Add margin between lines and circle
|
|
2678
2679
|
},
|
|
2679
2680
|
children: /* @__PURE__ */ t(
|
|
2680
|
-
|
|
2681
|
+
y,
|
|
2681
2682
|
{
|
|
2682
2683
|
sx: {
|
|
2683
2684
|
fontSize: "14px",
|
|
@@ -2708,8 +2709,8 @@ const Di = (e) => {
|
|
|
2708
2709
|
const m = o.full, u = e.totalSteps || e.matchQuiz.fixtures.length, f = [];
|
|
2709
2710
|
for (let a = 0; a < u; a++) {
|
|
2710
2711
|
const S = a + 1;
|
|
2711
|
-
let s,
|
|
2712
|
-
if (S < e.currentStep ? (s = e.brandingPrimaryColor || n.palette.primary.plainColor,
|
|
2712
|
+
let s, x, b;
|
|
2713
|
+
if (S < e.currentStep ? (s = e.brandingPrimaryColor || n.palette.primary.plainColor, x = e.brandingPrimaryColor || n.palette.primary.outlinedBorder, b = "#FFFFFF") : S === e.currentStep ? (s = e.brandingPrimaryColor || n.palette.primary.plainColor, x = e.brandingPrimaryColor || n.palette.primary.outlinedBorder, b = n.palette.primary.onPrimary) : (s = n.palette.neutral.softBg, x = n.outlineEnabledBorder, b = n.textColor), f.push(
|
|
2713
2714
|
/* @__PURE__ */ t(
|
|
2714
2715
|
i,
|
|
2715
2716
|
{
|
|
@@ -2718,7 +2719,7 @@ const Di = (e) => {
|
|
|
2718
2719
|
height: "32px",
|
|
2719
2720
|
borderRadius: m,
|
|
2720
2721
|
backgroundColor: s,
|
|
2721
|
-
border: `1px solid ${
|
|
2722
|
+
border: `1px solid ${x}`,
|
|
2722
2723
|
display: "flex",
|
|
2723
2724
|
alignItems: "center",
|
|
2724
2725
|
justifyContent: "center",
|
|
@@ -2726,7 +2727,7 @@ const Di = (e) => {
|
|
|
2726
2727
|
position: "relative"
|
|
2727
2728
|
},
|
|
2728
2729
|
children: /* @__PURE__ */ t(
|
|
2729
|
-
|
|
2730
|
+
y,
|
|
2730
2731
|
{
|
|
2731
2732
|
sx: {
|
|
2732
2733
|
fontSize: "14px",
|
|
@@ -2768,7 +2769,7 @@ const Di = (e) => {
|
|
|
2768
2769
|
display: "flex",
|
|
2769
2770
|
alignItems: "center",
|
|
2770
2771
|
justifyContent: "center",
|
|
2771
|
-
py:
|
|
2772
|
+
py: zn("xs"),
|
|
2772
2773
|
width: "100%",
|
|
2773
2774
|
zIndex: 1
|
|
2774
2775
|
},
|
|
@@ -2776,14 +2777,14 @@ const Di = (e) => {
|
|
|
2776
2777
|
}
|
|
2777
2778
|
);
|
|
2778
2779
|
}, Kt = (e) => {
|
|
2779
|
-
const { t: n } = ne(), o = _(), r =
|
|
2780
|
+
const { t: n } = ne(), o = _(), r = re(), l = ee(), h = Se(), u = ce() || e.isSplitVariant, [f, a] = te({
|
|
2780
2781
|
days: 0,
|
|
2781
2782
|
hours: 0,
|
|
2782
2783
|
minutes: 0,
|
|
2783
2784
|
seconds: 0,
|
|
2784
2785
|
total: 0
|
|
2785
2786
|
}), S = Ye(() => {
|
|
2786
|
-
const
|
|
2787
|
+
const x = (/* @__PURE__ */ new Date()).getTime(), z = new Date(e.predictionsCutoffTime).getTime() - x;
|
|
2787
2788
|
if (z <= 0)
|
|
2788
2789
|
return { days: 0, hours: 0, minutes: 0, seconds: 0, total: 0 };
|
|
2789
2790
|
const C = Math.floor(z / (1e3 * 60 * 60 * 24)), I = Math.floor(
|
|
@@ -2792,11 +2793,11 @@ const Di = (e) => {
|
|
|
2792
2793
|
return { days: C, hours: I, minutes: T, seconds: E, total: z };
|
|
2793
2794
|
}, [e.predictionsCutoffTime]);
|
|
2794
2795
|
if (gt(() => {
|
|
2795
|
-
const
|
|
2796
|
+
const x = () => {
|
|
2796
2797
|
a(S());
|
|
2797
2798
|
};
|
|
2798
|
-
|
|
2799
|
-
const b = setInterval(
|
|
2799
|
+
x();
|
|
2800
|
+
const b = setInterval(x, 1e3);
|
|
2800
2801
|
return () => clearInterval(b);
|
|
2801
2802
|
}, [S]), f.total <= 0)
|
|
2802
2803
|
return null;
|
|
@@ -2860,34 +2861,34 @@ const Di = (e) => {
|
|
|
2860
2861
|
}
|
|
2861
2862
|
};
|
|
2862
2863
|
return /* @__PURE__ */ d(i, { sx: s.container, children: [
|
|
2863
|
-
/* @__PURE__ */ t(
|
|
2864
|
+
/* @__PURE__ */ t(y, { sx: s.participationText, children: n("matchQuiz.countdown.participationTimeLeft") }),
|
|
2864
2865
|
/* @__PURE__ */ d(i, { sx: s.countdownContainer, children: [
|
|
2865
2866
|
f.days > 0 && /* @__PURE__ */ d(p, { children: [
|
|
2866
2867
|
/* @__PURE__ */ d(i, { sx: s.timeUnit, children: [
|
|
2867
|
-
/* @__PURE__ */ t(
|
|
2868
|
-
/* @__PURE__ */ t(
|
|
2868
|
+
/* @__PURE__ */ t(y, { sx: s.timeValue, children: f.days.toString().padStart(2, "0") }),
|
|
2869
|
+
/* @__PURE__ */ t(y, { sx: s.timeLabel, children: n("matchQuiz.countdown.daysShort") })
|
|
2869
2870
|
] }),
|
|
2870
|
-
/* @__PURE__ */ t(
|
|
2871
|
+
/* @__PURE__ */ t(y, { sx: s.separator, children: ":" })
|
|
2871
2872
|
] }),
|
|
2872
2873
|
(f.days > 0 || f.hours > 0) && /* @__PURE__ */ d(p, { children: [
|
|
2873
2874
|
/* @__PURE__ */ d(i, { sx: s.timeUnit, children: [
|
|
2874
|
-
/* @__PURE__ */ t(
|
|
2875
|
-
/* @__PURE__ */ t(
|
|
2875
|
+
/* @__PURE__ */ t(y, { sx: s.timeValue, children: f.hours.toString().padStart(2, "0") }),
|
|
2876
|
+
/* @__PURE__ */ t(y, { sx: s.timeLabel, children: n("matchQuiz.countdown.hoursShort") })
|
|
2876
2877
|
] }),
|
|
2877
|
-
/* @__PURE__ */ t(
|
|
2878
|
+
/* @__PURE__ */ t(y, { sx: s.separator, children: ":" })
|
|
2878
2879
|
] }),
|
|
2879
2880
|
/* @__PURE__ */ d(i, { sx: s.timeUnit, children: [
|
|
2880
|
-
/* @__PURE__ */ t(
|
|
2881
|
-
/* @__PURE__ */ t(
|
|
2881
|
+
/* @__PURE__ */ t(y, { sx: s.timeValue, children: f.minutes.toString().padStart(2, "0") }),
|
|
2882
|
+
/* @__PURE__ */ t(y, { sx: s.timeLabel, children: n("matchQuiz.countdown.minutesShort") })
|
|
2882
2883
|
] }),
|
|
2883
|
-
/* @__PURE__ */ t(
|
|
2884
|
+
/* @__PURE__ */ t(y, { sx: s.separator, children: ":" }),
|
|
2884
2885
|
/* @__PURE__ */ d(i, { sx: s.timeUnit, children: [
|
|
2885
|
-
/* @__PURE__ */ t(
|
|
2886
|
-
/* @__PURE__ */ t(
|
|
2886
|
+
/* @__PURE__ */ t(y, { sx: s.timeValue, children: f.seconds.toString().padStart(2, "0") }),
|
|
2887
|
+
/* @__PURE__ */ t(y, { sx: s.timeLabel, children: n("matchQuiz.countdown.secondsShort") })
|
|
2887
2888
|
] })
|
|
2888
2889
|
] })
|
|
2889
2890
|
] });
|
|
2890
|
-
},
|
|
2891
|
+
}, Li = (e) => ({
|
|
2891
2892
|
container: {
|
|
2892
2893
|
display: "flex",
|
|
2893
2894
|
flexDirection: "column",
|
|
@@ -3102,7 +3103,7 @@ const Di = (e) => {
|
|
|
3102
3103
|
color: e.textPrimary
|
|
3103
3104
|
}
|
|
3104
3105
|
}
|
|
3105
|
-
}),
|
|
3106
|
+
}), Di = (e) => {
|
|
3106
3107
|
const n = ce();
|
|
3107
3108
|
return {
|
|
3108
3109
|
modalDialog: {
|
|
@@ -3199,8 +3200,8 @@ const Di = (e) => {
|
|
|
3199
3200
|
}
|
|
3200
3201
|
}
|
|
3201
3202
|
};
|
|
3202
|
-
},
|
|
3203
|
-
const { t: n } = ne(), { shadowRootElement: o } =
|
|
3203
|
+
}, _i = (e) => {
|
|
3204
|
+
const { t: n } = ne(), { shadowRootElement: o } = De(kn), r = _(), l = re(), h = ee(), m = Se(), [u, f] = te(!1), a = e.brandingPrimaryColor || r.palette.primary.plainColor, S = Di({
|
|
3204
3205
|
spacingScale: m,
|
|
3205
3206
|
borderRadius: l,
|
|
3206
3207
|
fontFamilyPrimary: h.primary,
|
|
@@ -3211,7 +3212,7 @@ const Di = (e) => {
|
|
|
3211
3212
|
surface: r.surface
|
|
3212
3213
|
}), s = e.prediction.fixtures.find(
|
|
3213
3214
|
(C) => C.market === e.fixture.market
|
|
3214
|
-
),
|
|
3215
|
+
), x = (C) => {
|
|
3215
3216
|
const I = { ...e.prediction }, T = I.fixtures.findIndex(
|
|
3216
3217
|
(E) => E.market === e.fixture.market
|
|
3217
3218
|
);
|
|
@@ -3233,12 +3234,12 @@ const Di = (e) => {
|
|
|
3233
3234
|
if (C === c.CORRECT_SCORE || C === c.CORRECT_SCORE_HT || C === c.CORRECT_SCORE_ADVANCED) {
|
|
3234
3235
|
const T = (s == null ? void 0 : s.prediction.value) || "0:0", [E, g] = T.split(":").map(Number);
|
|
3235
3236
|
return /* @__PURE__ */ t(
|
|
3236
|
-
|
|
3237
|
+
Ft,
|
|
3237
3238
|
{
|
|
3238
3239
|
matchModel: I,
|
|
3239
3240
|
market: C,
|
|
3240
|
-
onScoreChange: (
|
|
3241
|
-
|
|
3241
|
+
onScoreChange: (F, P) => {
|
|
3242
|
+
x({ value: `${F}:${P}` });
|
|
3242
3243
|
},
|
|
3243
3244
|
initialHomeScore: E,
|
|
3244
3245
|
initialAwayScore: g,
|
|
@@ -3247,12 +3248,12 @@ const Di = (e) => {
|
|
|
3247
3248
|
);
|
|
3248
3249
|
}
|
|
3249
3250
|
return C === c.FT_1X2 || C === c.HT_1X2 ? /* @__PURE__ */ t(
|
|
3250
|
-
|
|
3251
|
+
vt,
|
|
3251
3252
|
{
|
|
3252
3253
|
matchModel: I,
|
|
3253
3254
|
market: C,
|
|
3254
3255
|
onSelectionChange: (T) => {
|
|
3255
|
-
|
|
3256
|
+
x({ value: T });
|
|
3256
3257
|
},
|
|
3257
3258
|
brandingPrimaryColor: e.brandingPrimaryColor,
|
|
3258
3259
|
prediction: s == null ? void 0 : s.prediction.value,
|
|
@@ -3265,29 +3266,29 @@ const Di = (e) => {
|
|
|
3265
3266
|
market: c.CORNERS_MATCH,
|
|
3266
3267
|
prediction: s == null ? void 0 : s.prediction.value,
|
|
3267
3268
|
onCornersChange: (T) => {
|
|
3268
|
-
|
|
3269
|
+
x({ value: T });
|
|
3269
3270
|
},
|
|
3270
3271
|
showPoints: !1
|
|
3271
3272
|
}
|
|
3272
3273
|
) : ut(C) ? /* @__PURE__ */ t(
|
|
3273
|
-
|
|
3274
|
+
Dt,
|
|
3274
3275
|
{
|
|
3275
3276
|
matchModel: I,
|
|
3276
3277
|
prediction: s == null ? void 0 : s.prediction.playerId,
|
|
3277
3278
|
market: C,
|
|
3278
3279
|
onPlayerSelection: (T) => {
|
|
3279
|
-
|
|
3280
|
+
x({ playerId: T, value: !0 });
|
|
3280
3281
|
},
|
|
3281
3282
|
brandingPrimaryColor: e.brandingPrimaryColor,
|
|
3282
3283
|
showPoints: !1
|
|
3283
3284
|
}
|
|
3284
3285
|
) : C === c.PENALTY_MATCH || C === c.RED_CARD_MATCH || C.includes("OVER_") ? /* @__PURE__ */ t(
|
|
3285
|
-
|
|
3286
|
+
Lt,
|
|
3286
3287
|
{
|
|
3287
3288
|
matchModel: I,
|
|
3288
3289
|
market: C,
|
|
3289
3290
|
onSelectionChange: (T) => {
|
|
3290
|
-
|
|
3291
|
+
x({ value: T });
|
|
3291
3292
|
},
|
|
3292
3293
|
brandingPrimaryColor: e.brandingPrimaryColor,
|
|
3293
3294
|
prediction: s == null ? void 0 : s.prediction.value,
|
|
@@ -3301,10 +3302,10 @@ const Di = (e) => {
|
|
|
3301
3302
|
open: e.isOpen,
|
|
3302
3303
|
onClose: e.onClose,
|
|
3303
3304
|
container: o,
|
|
3304
|
-
children: /* @__PURE__ */ d(
|
|
3305
|
-
/* @__PURE__ */ t(
|
|
3306
|
-
/* @__PURE__ */ t(
|
|
3307
|
-
e.view === "score" && /* @__PURE__ */ d(
|
|
3305
|
+
children: /* @__PURE__ */ d(vn, { sx: S.modalDialog, children: [
|
|
3306
|
+
/* @__PURE__ */ t(Le, { onClick: e.onClose, sx: S.closeButton, children: /* @__PURE__ */ t(On, {}) }),
|
|
3307
|
+
/* @__PURE__ */ t(Hn, { children: z() }),
|
|
3308
|
+
e.view === "score" && /* @__PURE__ */ d($n, { children: [
|
|
3308
3309
|
/* @__PURE__ */ t(
|
|
3309
3310
|
Pe,
|
|
3310
3311
|
{
|
|
@@ -3349,7 +3350,7 @@ const Di = (e) => {
|
|
|
3349
3350
|
}
|
|
3350
3351
|
);
|
|
3351
3352
|
}, ft = (e) => {
|
|
3352
|
-
const { t: n } = ne(), o = _(), r =
|
|
3353
|
+
const { t: n } = ne(), o = _(), r = re(), l = ee(), h = Se(), m = ce(), { squads: u } = De(_e), [f, a] = te(!1), [S, s] = te(null), x = Li({
|
|
3353
3354
|
spacingScale: h,
|
|
3354
3355
|
borderRadius: r,
|
|
3355
3356
|
fontFamilyPrimary: l.primary,
|
|
@@ -3364,8 +3365,8 @@ const Di = (e) => {
|
|
|
3364
3365
|
isMobile: m,
|
|
3365
3366
|
isSplitVariant: e.isSplitVariant || !1
|
|
3366
3367
|
}), b = (g) => {
|
|
3367
|
-
const
|
|
3368
|
-
s(
|
|
3368
|
+
const F = e.fixtures[g];
|
|
3369
|
+
s(F), a(!0);
|
|
3369
3370
|
}, z = () => {
|
|
3370
3371
|
a(!1), s(null);
|
|
3371
3372
|
}, C = (g) => {
|
|
@@ -3401,33 +3402,33 @@ const Di = (e) => {
|
|
|
3401
3402
|
return n("matchQuiz.fixtures.redCardFixtureTitle");
|
|
3402
3403
|
default:
|
|
3403
3404
|
if (g.includes("OVER_GOALS")) {
|
|
3404
|
-
const
|
|
3405
|
+
const F = g.replace("OVER_GOALS_", "").replace("_", "."), P = Math.floor(parseFloat(F));
|
|
3405
3406
|
return n("matchQuiz.fixtures.overGoalsFixtureTitle", { threshold: P });
|
|
3406
3407
|
}
|
|
3407
3408
|
if (g.includes("OVER_CORNERS")) {
|
|
3408
|
-
const
|
|
3409
|
+
const F = g.replace("OVER_CORNERS_", "").replace("_", "."), P = Math.floor(parseFloat(F));
|
|
3409
3410
|
return n("matchQuiz.fixtures.overCornersFixtureTitle", { threshold: P });
|
|
3410
3411
|
}
|
|
3411
3412
|
return "";
|
|
3412
3413
|
}
|
|
3413
3414
|
}, T = (g) => {
|
|
3414
|
-
for (const [,
|
|
3415
|
-
const P =
|
|
3415
|
+
for (const [, F] of u.entries()) {
|
|
3416
|
+
const P = F.find((M) => M.id === g);
|
|
3416
3417
|
if (P)
|
|
3417
3418
|
return P;
|
|
3418
3419
|
}
|
|
3419
3420
|
return null;
|
|
3420
3421
|
}, E = (g) => {
|
|
3421
|
-
var
|
|
3422
|
-
const
|
|
3422
|
+
var L, H, v, V, R, W;
|
|
3423
|
+
const F = (L = e.prediction.fixtures) == null ? void 0 : L.find(
|
|
3423
3424
|
(O) => O.market === g.market
|
|
3424
3425
|
);
|
|
3425
|
-
if (!
|
|
3426
|
+
if (!F) return null;
|
|
3426
3427
|
const P = g.market, M = g.matchModel;
|
|
3427
3428
|
if (P === c.CORRECT_SCORE || P === c.CORRECT_SCORE_HT || P === c.CORRECT_SCORE_ADVANCED) {
|
|
3428
|
-
const O =
|
|
3429
|
-
return /* @__PURE__ */ d(i, { sx:
|
|
3430
|
-
((H = M.homeTeam.assets) == null ? void 0 : H.logo) && /* @__PURE__ */ t(i, { sx:
|
|
3429
|
+
const O = F.prediction.value || "0:0", [k, Q] = O.split(":");
|
|
3430
|
+
return /* @__PURE__ */ d(i, { sx: x.predictionBox, children: [
|
|
3431
|
+
((H = M.homeTeam.assets) == null ? void 0 : H.logo) && /* @__PURE__ */ t(i, { sx: x.teamLogo, children: /* @__PURE__ */ t(
|
|
3431
3432
|
"img",
|
|
3432
3433
|
{
|
|
3433
3434
|
src: M.homeTeam.assets.logo,
|
|
@@ -3440,12 +3441,12 @@ const Di = (e) => {
|
|
|
3440
3441
|
}
|
|
3441
3442
|
}
|
|
3442
3443
|
) }),
|
|
3443
|
-
/* @__PURE__ */ d(
|
|
3444
|
+
/* @__PURE__ */ d(y, { sx: x.selectionText, children: [
|
|
3444
3445
|
k,
|
|
3445
3446
|
":",
|
|
3446
3447
|
Q
|
|
3447
3448
|
] }),
|
|
3448
|
-
((
|
|
3449
|
+
((v = M.awayTeam.assets) == null ? void 0 : v.logo) && /* @__PURE__ */ t(i, { sx: x.teamLogo, children: /* @__PURE__ */ t(
|
|
3449
3450
|
"img",
|
|
3450
3451
|
{
|
|
3451
3452
|
src: M.awayTeam.assets.logo,
|
|
@@ -3461,10 +3462,10 @@ const Di = (e) => {
|
|
|
3461
3462
|
] });
|
|
3462
3463
|
}
|
|
3463
3464
|
if (P === c.FT_1X2 || P === c.HT_1X2) {
|
|
3464
|
-
const O =
|
|
3465
|
+
const O = F.prediction.value;
|
|
3465
3466
|
let k = "", Q = null;
|
|
3466
|
-
return O === "1" ? (k = M.homeTeam.name, Q = (V = M.homeTeam.assets) == null ? void 0 : V.logo) : O === "x" ? k = n("matchQuiz.fixtures.draw") : O === "2" && (k = M.awayTeam.name, Q = (R = M.awayTeam.assets) == null ? void 0 : R.logo), /* @__PURE__ */ d(i, { sx:
|
|
3467
|
-
Q && /* @__PURE__ */ t(i, { sx:
|
|
3467
|
+
return O === "1" ? (k = M.homeTeam.name, Q = (V = M.homeTeam.assets) == null ? void 0 : V.logo) : O === "x" ? k = n("matchQuiz.fixtures.draw") : O === "2" && (k = M.awayTeam.name, Q = (R = M.awayTeam.assets) == null ? void 0 : R.logo), /* @__PURE__ */ d(i, { sx: x.predictionBox, children: [
|
|
3468
|
+
Q && /* @__PURE__ */ t(i, { sx: x.teamLogo, children: /* @__PURE__ */ t(
|
|
3468
3469
|
"img",
|
|
3469
3470
|
{
|
|
3470
3471
|
src: Q,
|
|
@@ -3477,18 +3478,18 @@ const Di = (e) => {
|
|
|
3477
3478
|
}
|
|
3478
3479
|
}
|
|
3479
3480
|
) }),
|
|
3480
|
-
/* @__PURE__ */ t(
|
|
3481
|
+
/* @__PURE__ */ t(y, { sx: x.selectionText, children: k })
|
|
3481
3482
|
] });
|
|
3482
3483
|
}
|
|
3483
3484
|
if (P.includes("PLAYER_")) {
|
|
3484
|
-
const O =
|
|
3485
|
+
const O = F.prediction.playerId;
|
|
3485
3486
|
if (!O)
|
|
3486
|
-
return /* @__PURE__ */ t(i, { sx:
|
|
3487
|
+
return /* @__PURE__ */ t(i, { sx: x.predictionBox, children: /* @__PURE__ */ t(y, { sx: x.selectionText, children: n("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
3487
3488
|
if (O === "OWN_GOAL")
|
|
3488
|
-
return /* @__PURE__ */ t(i, { sx:
|
|
3489
|
+
return /* @__PURE__ */ t(i, { sx: x.predictionBox, children: /* @__PURE__ */ t(y, { sx: x.selectionText, children: n("matchQuiz.fixtures.ownGoal") }) });
|
|
3489
3490
|
const k = T(O), Q = (k == null ? void 0 : k.name) || "Unknown Player";
|
|
3490
|
-
return /* @__PURE__ */ d(i, { sx:
|
|
3491
|
-
/* @__PURE__ */ t(i, { sx:
|
|
3491
|
+
return /* @__PURE__ */ d(i, { sx: x.predictionBox, children: [
|
|
3492
|
+
/* @__PURE__ */ t(i, { sx: x.playerAvatar, children: (W = k == null ? void 0 : k.assets) != null && W.headshot ? /* @__PURE__ */ t(
|
|
3492
3493
|
"img",
|
|
3493
3494
|
{
|
|
3494
3495
|
src: k.assets.headshot,
|
|
@@ -3500,56 +3501,56 @@ const Di = (e) => {
|
|
|
3500
3501
|
borderRadius: "50%"
|
|
3501
3502
|
}
|
|
3502
3503
|
}
|
|
3503
|
-
) : /* @__PURE__ */ t(wt, { sx:
|
|
3504
|
-
/* @__PURE__ */ t(
|
|
3504
|
+
) : /* @__PURE__ */ t(wt, { sx: x.playerAvatarIcon }) }),
|
|
3505
|
+
/* @__PURE__ */ t(y, { sx: x.selectionText, children: Q })
|
|
3505
3506
|
] });
|
|
3506
3507
|
}
|
|
3507
3508
|
if (P === c.PENALTY_MATCH || P === c.RED_CARD_MATCH || P.includes("OVER_")) {
|
|
3508
|
-
const O =
|
|
3509
|
-
return /* @__PURE__ */ t(i, { sx:
|
|
3509
|
+
const O = F.prediction.value === !0;
|
|
3510
|
+
return /* @__PURE__ */ t(i, { sx: x.predictionBox, children: /* @__PURE__ */ t(y, { sx: x.selectionText, children: n(O ? "matchQuiz.fixtures.yes" : "matchQuiz.fixtures.no") }) });
|
|
3510
3511
|
}
|
|
3511
3512
|
if (P === c.CORNERS_MATCH) {
|
|
3512
|
-
const O =
|
|
3513
|
-
return /* @__PURE__ */ t(i, { sx:
|
|
3513
|
+
const O = F.prediction.value || 6;
|
|
3514
|
+
return /* @__PURE__ */ t(i, { sx: x.predictionBox, children: /* @__PURE__ */ t(y, { sx: x.selectionText, children: O }) });
|
|
3514
3515
|
}
|
|
3515
3516
|
return null;
|
|
3516
3517
|
};
|
|
3517
|
-
return /* @__PURE__ */ t(p, { children: /* @__PURE__ */ d(i, { sx:
|
|
3518
|
-
/* @__PURE__ */ t(
|
|
3519
|
-
/* @__PURE__ */ t(fn, { sx:
|
|
3518
|
+
return /* @__PURE__ */ t(p, { children: /* @__PURE__ */ d(i, { sx: x.container, children: [
|
|
3519
|
+
/* @__PURE__ */ t(y, { sx: x.title, children: n("matchQuiz.summary.title") }),
|
|
3520
|
+
/* @__PURE__ */ t(fn, { sx: x.tableContainer, children: /* @__PURE__ */ d(
|
|
3520
3521
|
xn,
|
|
3521
3522
|
{
|
|
3522
3523
|
variant: "outlined",
|
|
3523
3524
|
hoverRow: !1,
|
|
3524
3525
|
borderAxis: "bothBetween",
|
|
3525
3526
|
size: "sm",
|
|
3526
|
-
sx:
|
|
3527
|
+
sx: x.table,
|
|
3527
3528
|
children: [
|
|
3528
3529
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ d("tr", { children: [
|
|
3529
|
-
/* @__PURE__ */ t("th", { style:
|
|
3530
|
-
/* @__PURE__ */ t("th", { style:
|
|
3530
|
+
/* @__PURE__ */ t("th", { style: x.headerCell, children: n("matchQuiz.summary.prediction") }),
|
|
3531
|
+
/* @__PURE__ */ t("th", { style: x.headerCellAction })
|
|
3531
3532
|
] }) }),
|
|
3532
|
-
/* @__PURE__ */ t("tbody", { children: e.fixtures.map((g,
|
|
3533
|
-
/* @__PURE__ */ t("td", { style:
|
|
3534
|
-
/* @__PURE__ */ t(
|
|
3533
|
+
/* @__PURE__ */ t("tbody", { children: e.fixtures.map((g, F) => /* @__PURE__ */ d("tr", { children: [
|
|
3534
|
+
/* @__PURE__ */ t("td", { style: x.predictionCell, children: /* @__PURE__ */ d(i, { sx: x.predictionContent, children: [
|
|
3535
|
+
/* @__PURE__ */ t(y, { sx: x.questionText, children: I(g.market) }),
|
|
3535
3536
|
E(g)
|
|
3536
3537
|
] }) }),
|
|
3537
|
-
/* @__PURE__ */ t("td", { style:
|
|
3538
|
-
|
|
3538
|
+
/* @__PURE__ */ t("td", { style: x.actionCell, children: /* @__PURE__ */ t(
|
|
3539
|
+
Le,
|
|
3539
3540
|
{
|
|
3540
3541
|
variant: "plain",
|
|
3541
3542
|
size: "sm",
|
|
3542
|
-
sx:
|
|
3543
|
-
onClick: () => b(
|
|
3544
|
-
children: /* @__PURE__ */ t(
|
|
3543
|
+
sx: x.editIconButton,
|
|
3544
|
+
onClick: () => b(F),
|
|
3545
|
+
children: /* @__PURE__ */ t(Nn, {})
|
|
3545
3546
|
}
|
|
3546
3547
|
) })
|
|
3547
|
-
] }, `${g.market}-${
|
|
3548
|
+
] }, `${g.market}-${F}`)) })
|
|
3548
3549
|
]
|
|
3549
3550
|
}
|
|
3550
3551
|
) }),
|
|
3551
3552
|
S && /* @__PURE__ */ t(
|
|
3552
|
-
|
|
3553
|
+
_i,
|
|
3553
3554
|
{
|
|
3554
3555
|
isOpen: f,
|
|
3555
3556
|
onClose: z,
|
|
@@ -3563,8 +3564,8 @@ const Di = (e) => {
|
|
|
3563
3564
|
}
|
|
3564
3565
|
)
|
|
3565
3566
|
] }) });
|
|
3566
|
-
},
|
|
3567
|
-
var Te,
|
|
3567
|
+
}, Mi = (e) => {
|
|
3568
|
+
var Te, Fe, Ae, Me, Qe, Oe, He, Be, We, Ve, je, D, Y, K, G, ie, X, w, Z, he, ae, fe;
|
|
3568
3569
|
const [n, o] = et.useState(1), [r, l] = et.useState(
|
|
3569
3570
|
((Te = e.leads) == null ? void 0 : Te.position) === "before" && e.matchQuiz.authRequirement === "LEAD"
|
|
3570
3571
|
);
|
|
@@ -3573,63 +3574,63 @@ const Di = (e) => {
|
|
|
3573
3574
|
l(
|
|
3574
3575
|
((A = e.leads) == null ? void 0 : A.position) === "before" && e.matchQuiz.authRequirement === "LEAD" || !1
|
|
3575
3576
|
);
|
|
3576
|
-
}, [(
|
|
3577
|
-
const h = Se(), m = Ee(), { t: u } = ne(), f = ce(), a = Ne(), { brandingImage: S, brandingColors: s, brandingLogo:
|
|
3577
|
+
}, [(Fe = e.leads) == null ? void 0 : Fe.position, e.matchQuiz.authRequirement]);
|
|
3578
|
+
const h = Se(), m = Ee(), { t: u } = ne(), f = ce(), a = Ne(), { brandingImage: S, brandingColors: s, brandingLogo: x } = Tt(e.matchQuiz.branding || null), b = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : f ? it : at, z = S || Je(
|
|
3578
3579
|
{
|
|
3579
3580
|
images: e.matchQuiz.images,
|
|
3580
3581
|
imagePlaceholder: b
|
|
3581
3582
|
},
|
|
3582
3583
|
Ce.OVERLAY
|
|
3583
|
-
), C = m.customRadius.dark.md, I = (s == null ? void 0 : s.backgroundColor) || ((Me = (Ae = m.colorSchemes) == null ? void 0 : Ae.dark) == null ? void 0 : Me.surfaceVariant), T = (Oe = (Qe = m.customRadius) == null ? void 0 : Qe.light) == null ? void 0 : Oe.xl, E = (s == null ? void 0 : s.primaryColor) || ((Ve = (We = (Be = (He = m.colorSchemes) == null ? void 0 : He.light) == null ? void 0 : Be.palette) == null ? void 0 : We.primary) == null ? void 0 : Ve.plainColor), g = (K = (Y = (
|
|
3584
|
+
), C = m.customRadius.dark.md, I = (s == null ? void 0 : s.backgroundColor) || ((Me = (Ae = m.colorSchemes) == null ? void 0 : Ae.dark) == null ? void 0 : Me.surfaceVariant), T = (Oe = (Qe = m.customRadius) == null ? void 0 : Qe.light) == null ? void 0 : Oe.xl, E = (s == null ? void 0 : s.primaryColor) || ((Ve = (We = (Be = (He = m.colorSchemes) == null ? void 0 : He.light) == null ? void 0 : Be.palette) == null ? void 0 : We.primary) == null ? void 0 : Ve.plainColor), g = (K = (Y = (D = (je = m.colorSchemes) == null ? void 0 : je.light) == null ? void 0 : D.palette) == null ? void 0 : Y.primary) == null ? void 0 : K.onPrimary, F = m.customFontFamily.dark.primary, P = m.colorSchemes.dark.textColor, M = (w = (X = (ie = (G = m.colorSchemes) == null ? void 0 : G.light) == null ? void 0 : ie.palette) == null ? void 0 : X.danger) == null ? void 0 : w.plainColor, L = (s == null ? void 0 : s.contentColor) || m.colorSchemes.dark.textColor, v = ci({
|
|
3584
3585
|
spacingScale: h,
|
|
3585
3586
|
mdBorderRadius: C,
|
|
3586
3587
|
contentBgColor: I,
|
|
3587
3588
|
buttonRadius: T,
|
|
3588
3589
|
primaryColor: E,
|
|
3589
3590
|
onPrimaryColor: g,
|
|
3590
|
-
fontFamilyPrimary:
|
|
3591
|
+
fontFamilyPrimary: F,
|
|
3591
3592
|
darkTextColor: P,
|
|
3592
3593
|
isMobile: f,
|
|
3593
3594
|
isExtraSmall: a,
|
|
3594
3595
|
dangerColor: M,
|
|
3595
|
-
textColor:
|
|
3596
|
+
textColor: L,
|
|
3596
3597
|
opacity: "60%"
|
|
3597
3598
|
}), V = () => {
|
|
3598
3599
|
l(!1);
|
|
3599
3600
|
}, R = Ye(
|
|
3600
3601
|
(A, J, me) => {
|
|
3601
|
-
const
|
|
3602
|
-
e.setPrediction((
|
|
3603
|
-
const Re = { ...
|
|
3604
|
-
return
|
|
3602
|
+
const oe = `${J}:${me}`;
|
|
3603
|
+
e.setPrediction((le) => {
|
|
3604
|
+
const Re = { ...le }, ve = Re.fixtures.find((Xe) => Xe.market === A);
|
|
3605
|
+
return ve && (ve.prediction.value = oe), Re;
|
|
3605
3606
|
});
|
|
3606
3607
|
},
|
|
3607
3608
|
[e.setPrediction]
|
|
3608
3609
|
), W = Ye(
|
|
3609
3610
|
(A, J) => {
|
|
3610
3611
|
e.setPrediction((me) => {
|
|
3611
|
-
const
|
|
3612
|
+
const oe = { ...me }, le = oe.fixtures.find(
|
|
3612
3613
|
(Re) => Re.market === A
|
|
3613
3614
|
);
|
|
3614
|
-
return
|
|
3615
|
+
return le && (le.prediction.value = J), oe;
|
|
3615
3616
|
});
|
|
3616
3617
|
},
|
|
3617
3618
|
[e.setPrediction]
|
|
3618
3619
|
), O = Ye(
|
|
3619
3620
|
(A, J) => {
|
|
3620
3621
|
e.setPrediction((me) => {
|
|
3621
|
-
const
|
|
3622
|
+
const oe = { ...me }, le = oe.fixtures.find(
|
|
3622
3623
|
(Re) => Re.market === A
|
|
3623
3624
|
);
|
|
3624
|
-
return
|
|
3625
|
+
return le && (le.prediction.playerId = J), oe;
|
|
3625
3626
|
});
|
|
3626
3627
|
},
|
|
3627
3628
|
[e.setPrediction]
|
|
3628
3629
|
), k = Ye(
|
|
3629
3630
|
(A, J) => {
|
|
3630
3631
|
e.setPrediction((me) => {
|
|
3631
|
-
const
|
|
3632
|
-
return
|
|
3632
|
+
const oe = { ...me }, le = oe.fixtures.find((Re) => Re.market === A);
|
|
3633
|
+
return le && (le.prediction.value = J), oe;
|
|
3633
3634
|
});
|
|
3634
3635
|
},
|
|
3635
3636
|
[e.setPrediction]
|
|
@@ -3640,33 +3641,33 @@ const Di = (e) => {
|
|
|
3640
3641
|
}, $ = (A) => {
|
|
3641
3642
|
o(A + 1);
|
|
3642
3643
|
}, xe = () => {
|
|
3643
|
-
var me,
|
|
3644
|
+
var me, oe;
|
|
3644
3645
|
if (n === Q) return !0;
|
|
3645
3646
|
const A = e.matchQuiz.fixtures[n - 1];
|
|
3646
3647
|
if (!A) return !1;
|
|
3647
|
-
const J = (
|
|
3648
|
-
(
|
|
3648
|
+
const J = (oe = (me = e.prediction) == null ? void 0 : me.fixtures) == null ? void 0 : oe.find(
|
|
3649
|
+
(le) => le.market === A.market
|
|
3649
3650
|
);
|
|
3650
3651
|
return J ? A.market === c.CORRECT_SCORE || A.market === c.CORRECT_SCORE_HT || A.market === c.CORRECT_SCORE_ADVANCED || A.market === c.CORNERS_MATCH ? !0 : A.market === c.PLAYER_SCORE || A.market === c.PLAYER_YELLOW_CARD || A.market === c.PLAYER_RED_CARD || A.market === c.PLAYER_SCORE_FIRST_GOAL || A.market === c.PLAYER_SCORE_HATTRICK || A.market === c.PLAYER_SCORE_TWICE ? J.prediction.playerId !== void 0 : J.prediction.value !== null : !1;
|
|
3651
3652
|
}, ge = () => {
|
|
3652
|
-
var A, J, me,
|
|
3653
|
+
var A, J, me, oe, le;
|
|
3653
3654
|
return /* @__PURE__ */ t(
|
|
3654
3655
|
ke,
|
|
3655
3656
|
{
|
|
3656
|
-
brandingLogo:
|
|
3657
|
+
brandingLogo: x,
|
|
3657
3658
|
textColor: m.colorSchemes.dark.textColor,
|
|
3658
3659
|
label: ((A = e.matchQuiz.labels) == null ? void 0 : A.sponsor) || null,
|
|
3659
3660
|
primaryUrl: (me = (J = e.matchQuiz.branding) == null ? void 0 : J.urls) == null ? void 0 : me.primaryUrl,
|
|
3660
|
-
secondaryUrl: (
|
|
3661
|
+
secondaryUrl: (le = (oe = e.matchQuiz.branding) == null ? void 0 : oe.urls) == null ? void 0 : le.secondaryUrl
|
|
3661
3662
|
}
|
|
3662
3663
|
);
|
|
3663
3664
|
}, ze = () => {
|
|
3664
|
-
var
|
|
3665
|
-
const A = (
|
|
3666
|
-
if (!A || !((
|
|
3665
|
+
var oe, le, Re, ve;
|
|
3666
|
+
const A = (oe = e.matchQuiz.fixtures[0]) == null ? void 0 : oe.matchModel;
|
|
3667
|
+
if (!A || !((le = A.scores) != null && le.ftScore)) return null;
|
|
3667
3668
|
const J = A.scores.ftScore.homeGoals || 0, me = A.scores.ftScore.awayGoals || 0;
|
|
3668
|
-
return /* @__PURE__ */ d(i, { sx:
|
|
3669
|
-
((Re = A.homeTeam.assets) == null ? void 0 : Re.logo) && /* @__PURE__ */ t(i, { sx:
|
|
3669
|
+
return /* @__PURE__ */ d(i, { sx: v.matchResultBadge, children: [
|
|
3670
|
+
((Re = A.homeTeam.assets) == null ? void 0 : Re.logo) && /* @__PURE__ */ t(i, { sx: v.matchResultTeamLogo, children: /* @__PURE__ */ t(
|
|
3670
3671
|
"img",
|
|
3671
3672
|
{
|
|
3672
3673
|
src: A.homeTeam.assets.logo,
|
|
@@ -3679,12 +3680,12 @@ const Di = (e) => {
|
|
|
3679
3680
|
}
|
|
3680
3681
|
}
|
|
3681
3682
|
) }),
|
|
3682
|
-
/* @__PURE__ */ d(
|
|
3683
|
+
/* @__PURE__ */ d(y, { sx: v.matchResultScoreText, children: [
|
|
3683
3684
|
J,
|
|
3684
3685
|
" - ",
|
|
3685
3686
|
me
|
|
3686
3687
|
] }),
|
|
3687
|
-
((
|
|
3688
|
+
((ve = A.awayTeam.assets) == null ? void 0 : ve.logo) && /* @__PURE__ */ t(i, { sx: v.matchResultTeamLogo, children: /* @__PURE__ */ t(
|
|
3688
3689
|
"img",
|
|
3689
3690
|
{
|
|
3690
3691
|
src: A.awayTeam.assets.logo,
|
|
@@ -3698,26 +3699,26 @@ const Di = (e) => {
|
|
|
3698
3699
|
}
|
|
3699
3700
|
) })
|
|
3700
3701
|
] });
|
|
3701
|
-
}, ot = () => /* @__PURE__ */ t(i, { sx:
|
|
3702
|
-
/* @__PURE__ */ t(
|
|
3703
|
-
/* @__PURE__ */ t(
|
|
3704
|
-
] }) }), be = () => /* @__PURE__ */ t(i, { sx:
|
|
3702
|
+
}, ot = () => /* @__PURE__ */ t(i, { sx: v.contentContainerWithBackdrop, children: /* @__PURE__ */ d(i, { sx: v.gameStateContainer, children: [
|
|
3703
|
+
/* @__PURE__ */ t(y, { component: "h5", sx: v.stateTitle, children: u("matchQuiz.states.pending.title") }),
|
|
3704
|
+
/* @__PURE__ */ t(y, { sx: v.stateDescription, children: u("matchQuiz.states.pending.description") })
|
|
3705
|
+
] }) }), be = () => /* @__PURE__ */ t(i, { sx: v.contentContainerWithBackdrop, children: /* @__PURE__ */ d(i, { sx: v.gameStateContainer, children: [
|
|
3705
3706
|
ze(),
|
|
3706
|
-
/* @__PURE__ */ d(i, { sx:
|
|
3707
|
-
/* @__PURE__ */ t(i, { sx:
|
|
3708
|
-
/* @__PURE__ */ t(
|
|
3707
|
+
/* @__PURE__ */ d(i, { sx: v.liveIndicatorContainer, children: [
|
|
3708
|
+
/* @__PURE__ */ t(i, { sx: v.liveIndicator }),
|
|
3709
|
+
/* @__PURE__ */ t(y, { component: "h5", sx: v.liveText, children: u("matchQuiz.states.live.indicator") })
|
|
3709
3710
|
] }),
|
|
3710
|
-
/* @__PURE__ */ t(
|
|
3711
|
-
] }) }), Ue = () => /* @__PURE__ */ t(i, { sx:
|
|
3711
|
+
/* @__PURE__ */ t(y, { sx: v.stateDescription, children: u("matchQuiz.states.live.description") })
|
|
3712
|
+
] }) }), Ue = () => /* @__PURE__ */ t(i, { sx: v.contentContainerWithBackdrop, children: /* @__PURE__ */ d(i, { sx: v.gameStateContainer, children: [
|
|
3712
3713
|
ze(),
|
|
3713
|
-
/* @__PURE__ */ t(i, { sx:
|
|
3714
|
-
/* @__PURE__ */ t(
|
|
3715
|
-
] }) }), se = () => /* @__PURE__ */ d(i, { sx:
|
|
3716
|
-
/* @__PURE__ */ t(
|
|
3717
|
-
/* @__PURE__ */ t(
|
|
3714
|
+
/* @__PURE__ */ t(i, { sx: v.closedStateHeader, children: /* @__PURE__ */ t(y, { component: "h5", sx: v.stateTitle, children: u("matchQuiz.states.closed.title") }) }),
|
|
3715
|
+
/* @__PURE__ */ t(y, { sx: v.stateDescription, children: u("matchQuiz.states.closed.description") })
|
|
3716
|
+
] }) }), se = () => /* @__PURE__ */ d(i, { sx: v.gameStateContainer, children: [
|
|
3717
|
+
/* @__PURE__ */ t(y, { component: "h5", sx: v.stateTitle, children: u("matchQuiz.states.open.title") }),
|
|
3718
|
+
/* @__PURE__ */ t(y, { sx: v.stateDescription, children: u("matchQuiz.states.open.description") })
|
|
3718
3719
|
] }), q = tt(() => e.matchQuiz.fixtures[n - 1], [e.matchQuiz.fixtures, n]), B = tt(() => q == null ? void 0 : q.matchModel, [
|
|
3719
3720
|
(he = (Z = q == null ? void 0 : q.matchModel) == null ? void 0 : Z.homeTeam) == null ? void 0 : he.id,
|
|
3720
|
-
(fe = (
|
|
3721
|
+
(fe = (ae = q == null ? void 0 : q.matchModel) == null ? void 0 : ae.awayTeam) == null ? void 0 : fe.id
|
|
3721
3722
|
]), j = tt(() => q ? {
|
|
3722
3723
|
onScoreChange: (A, J) => R(q.market, A, J),
|
|
3723
3724
|
onSelectionChange: (A) => W(q.market, A),
|
|
@@ -3730,7 +3731,7 @@ const Di = (e) => {
|
|
|
3730
3731
|
k,
|
|
3731
3732
|
O
|
|
3732
3733
|
]), Ie = () => {
|
|
3733
|
-
var J, me,
|
|
3734
|
+
var J, me, oe, le, Re, ve, Xe, Ke, Ze, Ge, lt, $e, zt, dt;
|
|
3734
3735
|
const A = q;
|
|
3735
3736
|
if (ue)
|
|
3736
3737
|
return se();
|
|
@@ -3743,7 +3744,7 @@ const Di = (e) => {
|
|
|
3743
3744
|
(nt) => nt.market === A.market
|
|
3744
3745
|
), xt = (ct == null ? void 0 : ct.prediction.value) || "0:0", [yt, pe] = xt.split(":").map(Number);
|
|
3745
3746
|
return /* @__PURE__ */ t(
|
|
3746
|
-
|
|
3747
|
+
Ft,
|
|
3747
3748
|
{
|
|
3748
3749
|
matchModel: B,
|
|
3749
3750
|
market: A.market,
|
|
@@ -3756,11 +3757,11 @@ const Di = (e) => {
|
|
|
3756
3757
|
);
|
|
3757
3758
|
case c.FT_1X2:
|
|
3758
3759
|
case c.HT_1X2:
|
|
3759
|
-
const _t = (
|
|
3760
|
+
const _t = (le = (oe = e.prediction) == null ? void 0 : oe.fixtures) == null ? void 0 : le.find(
|
|
3760
3761
|
(nt) => nt.market === A.market
|
|
3761
3762
|
);
|
|
3762
3763
|
return /* @__PURE__ */ t(
|
|
3763
|
-
|
|
3764
|
+
vt,
|
|
3764
3765
|
{
|
|
3765
3766
|
matchModel: B,
|
|
3766
3767
|
market: A.market,
|
|
@@ -3771,7 +3772,7 @@ const Di = (e) => {
|
|
|
3771
3772
|
`${A.market}-${n}`
|
|
3772
3773
|
);
|
|
3773
3774
|
case c.CORNERS_MATCH:
|
|
3774
|
-
const Mt = (Xe = (
|
|
3775
|
+
const Mt = (Xe = (ve = e.prediction) == null ? void 0 : ve.fixtures) == null ? void 0 : Xe.find(
|
|
3775
3776
|
(nt) => nt.market === A.market
|
|
3776
3777
|
);
|
|
3777
3778
|
return /* @__PURE__ */ t(
|
|
@@ -3806,7 +3807,7 @@ const Di = (e) => {
|
|
|
3806
3807
|
(nt) => nt.market === A.market
|
|
3807
3808
|
);
|
|
3808
3809
|
return /* @__PURE__ */ t(
|
|
3809
|
-
|
|
3810
|
+
Lt,
|
|
3810
3811
|
{
|
|
3811
3812
|
matchModel: B,
|
|
3812
3813
|
market: A.market,
|
|
@@ -3826,7 +3827,7 @@ const Di = (e) => {
|
|
|
3826
3827
|
(nt) => nt.market === A.market
|
|
3827
3828
|
);
|
|
3828
3829
|
return /* @__PURE__ */ t(
|
|
3829
|
-
|
|
3830
|
+
Dt,
|
|
3830
3831
|
{
|
|
3831
3832
|
matchModel: B,
|
|
3832
3833
|
market: A.market,
|
|
@@ -3851,9 +3852,9 @@ const Di = (e) => {
|
|
|
3851
3852
|
return de();
|
|
3852
3853
|
}
|
|
3853
3854
|
}, de = () => {
|
|
3854
|
-
var A, J, me,
|
|
3855
|
+
var A, J, me, oe, le, Re, ve, Xe, Ke, Ze, Ge;
|
|
3855
3856
|
return /* @__PURE__ */ t(p, { children: r ? /* @__PURE__ */ d(p, { children: [
|
|
3856
|
-
/* @__PURE__ */ t(i, { sx:
|
|
3857
|
+
/* @__PURE__ */ t(i, { sx: v.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
3857
3858
|
ht,
|
|
3858
3859
|
{
|
|
3859
3860
|
sdk: e.sdk,
|
|
@@ -3863,17 +3864,17 @@ const Di = (e) => {
|
|
|
3863
3864
|
brandingColors: (A = e.matchQuiz.branding) == null ? void 0 : A.colors,
|
|
3864
3865
|
brandingUrls: (J = e.matchQuiz.branding) == null ? void 0 : J.urls,
|
|
3865
3866
|
campaignId: (me = e.leads) == null ? void 0 : me.campaignId,
|
|
3866
|
-
campaignName: (
|
|
3867
|
-
fields: (
|
|
3867
|
+
campaignName: (oe = e.leads) == null ? void 0 : oe.campaignName,
|
|
3868
|
+
fields: (le = e.leads) == null ? void 0 : le.fields,
|
|
3868
3869
|
leadTitle: (Re = e.matchQuiz.labels) == null ? void 0 : Re.leadTitle,
|
|
3869
|
-
leadDescription: (
|
|
3870
|
+
leadDescription: (ve = e.matchQuiz.labels) == null ? void 0 : ve.leadDescription,
|
|
3870
3871
|
leadCta: (Xe = e.matchQuiz.labels) == null ? void 0 : Xe.leadCta,
|
|
3871
3872
|
leadSuccessTitle: (Ke = e.matchQuiz.labels) == null ? void 0 : Ke.leadSuccessTitle,
|
|
3872
3873
|
leadSuccessDescription: (Ze = e.matchQuiz.labels) == null ? void 0 : Ze.leadSuccessDescription,
|
|
3873
3874
|
syncWithProfile: (Ge = e.leads) == null ? void 0 : Ge.syncWithProfile
|
|
3874
3875
|
}
|
|
3875
3876
|
) }),
|
|
3876
|
-
|
|
3877
|
+
x ? ge() : /* @__PURE__ */ t(p, {})
|
|
3877
3878
|
] }) : /* @__PURE__ */ d(p, { children: [
|
|
3878
3879
|
e.showCountdown && e.matchQuiz.status === "OPEN" && /* @__PURE__ */ t(
|
|
3879
3880
|
Kt,
|
|
@@ -3891,7 +3892,7 @@ const Di = (e) => {
|
|
|
3891
3892
|
brandingPrimaryColor: s == null ? void 0 : s.primaryColor
|
|
3892
3893
|
}
|
|
3893
3894
|
),
|
|
3894
|
-
/* @__PURE__ */ t(i, { sx:
|
|
3895
|
+
/* @__PURE__ */ t(i, { sx: v.contentContainerWithBackdrop, children: n === Q ? /* @__PURE__ */ t(
|
|
3895
3896
|
ft,
|
|
3896
3897
|
{
|
|
3897
3898
|
fixtures: e.matchQuiz.fixtures,
|
|
@@ -3906,10 +3907,10 @@ const Di = (e) => {
|
|
|
3906
3907
|
/* @__PURE__ */ d(
|
|
3907
3908
|
i,
|
|
3908
3909
|
{
|
|
3909
|
-
sx:
|
|
3910
|
+
sx: x ? v.footerContainer : v.footerContainerNoLogo,
|
|
3910
3911
|
children: [
|
|
3911
|
-
|
|
3912
|
-
/* @__PURE__ */ d(i, { sx:
|
|
3912
|
+
x && !a ? ge() : /* @__PURE__ */ t(p, {}),
|
|
3913
|
+
/* @__PURE__ */ d(i, { sx: v.navigationContainer, children: [
|
|
3913
3914
|
n > 1 && n < Q && /* @__PURE__ */ t(
|
|
3914
3915
|
Pe,
|
|
3915
3916
|
{
|
|
@@ -3938,10 +3939,10 @@ const Di = (e) => {
|
|
|
3938
3939
|
boxShadow: "var(--joy-shadow-md)"
|
|
3939
3940
|
},
|
|
3940
3941
|
children: /* @__PURE__ */ t(
|
|
3941
|
-
|
|
3942
|
+
y,
|
|
3942
3943
|
{
|
|
3943
3944
|
sx: {
|
|
3944
|
-
fontFamily:
|
|
3945
|
+
fontFamily: F,
|
|
3945
3946
|
fontWeight: 500,
|
|
3946
3947
|
fontSize: "0.9375em",
|
|
3947
3948
|
lineHeight: "24px",
|
|
@@ -3994,10 +3995,10 @@ const Di = (e) => {
|
|
|
3994
3995
|
boxShadow: "var(--joy-shadow-md)"
|
|
3995
3996
|
},
|
|
3996
3997
|
children: /* @__PURE__ */ t(
|
|
3997
|
-
|
|
3998
|
+
y,
|
|
3998
3999
|
{
|
|
3999
4000
|
sx: {
|
|
4000
|
-
fontFamily:
|
|
4001
|
+
fontFamily: F,
|
|
4001
4002
|
fontWeight: 500,
|
|
4002
4003
|
fontSize: "0.9375em",
|
|
4003
4004
|
lineHeight: "24px",
|
|
@@ -4017,11 +4018,11 @@ const Di = (e) => {
|
|
|
4017
4018
|
]
|
|
4018
4019
|
}
|
|
4019
4020
|
),
|
|
4020
|
-
|
|
4021
|
+
x && a ? ge() : /* @__PURE__ */ t(p, {})
|
|
4021
4022
|
] }) });
|
|
4022
4023
|
};
|
|
4023
4024
|
return /* @__PURE__ */ t(
|
|
4024
|
-
|
|
4025
|
+
Bn,
|
|
4025
4026
|
{
|
|
4026
4027
|
entity: e.matchQuiz,
|
|
4027
4028
|
headline: u("matchQuiz.headline"),
|
|
@@ -4034,7 +4035,7 @@ const Di = (e) => {
|
|
|
4034
4035
|
children: e,
|
|
4035
4036
|
brandingBorderColor: n
|
|
4036
4037
|
}) => {
|
|
4037
|
-
const o = ce(), r =
|
|
4038
|
+
const o = ce(), r = re().md, l = n || _().secondaryContainer, m = Rt().size + " solid " + l;
|
|
4038
4039
|
return /* @__PURE__ */ t(
|
|
4039
4040
|
i,
|
|
4040
4041
|
{
|
|
@@ -4052,7 +4053,7 @@ const Di = (e) => {
|
|
|
4052
4053
|
children: e
|
|
4053
4054
|
}
|
|
4054
4055
|
);
|
|
4055
|
-
},
|
|
4056
|
+
}, Qi = (e) => {
|
|
4056
4057
|
var n, o, r;
|
|
4057
4058
|
return {
|
|
4058
4059
|
// Mobile headline with image background
|
|
@@ -4424,8 +4425,8 @@ const Di = (e) => {
|
|
|
4424
4425
|
lineHeight: 1
|
|
4425
4426
|
}
|
|
4426
4427
|
};
|
|
4427
|
-
},
|
|
4428
|
-
var Me, Qe, Oe, He, Be, We, Ve, je,
|
|
4428
|
+
}, Oi = (e) => {
|
|
4429
|
+
var Me, Qe, Oe, He, Be, We, Ve, je, D, Y, K, G, ie, X;
|
|
4429
4430
|
const [n, o] = et.useState(1), [r, l] = et.useState(
|
|
4430
4431
|
((Me = e.leads) == null ? void 0 : Me.position) === "before" && e.matchQuiz.authRequirement === "LEAD"
|
|
4431
4432
|
), h = Ee(), { t: m } = ne();
|
|
@@ -4435,23 +4436,23 @@ const Di = (e) => {
|
|
|
4435
4436
|
((w = e.leads) == null ? void 0 : w.position) === "before" && e.matchQuiz.authRequirement === "LEAD" || !1
|
|
4436
4437
|
);
|
|
4437
4438
|
}, [(Qe = e.leads) == null ? void 0 : Qe.position, e.matchQuiz.authRequirement]);
|
|
4438
|
-
const u = ce(), f = Ne(), a = ((Oe = e.matchQuiz.branding) == null ? void 0 : Oe.colors) || null, S = u ? ((Be = (He = e.matchQuiz.branding) == null ? void 0 : He.images) == null ? void 0 : Be.mobileLogo) || ((Ve = (We = e.matchQuiz.branding) == null ? void 0 : We.images) == null ? void 0 : Ve.mainLogo) || "" : ((
|
|
4439
|
+
const u = ce(), f = Ne(), a = ((Oe = e.matchQuiz.branding) == null ? void 0 : Oe.colors) || null, S = u ? ((Be = (He = e.matchQuiz.branding) == null ? void 0 : He.images) == null ? void 0 : Be.mobileLogo) || ((Ve = (We = e.matchQuiz.branding) == null ? void 0 : We.images) == null ? void 0 : Ve.mainLogo) || "" : ((D = (je = e.matchQuiz.branding) == null ? void 0 : je.images) == null ? void 0 : D.mainLogo) || "", s = e.imagePosition || "left", x = Je(
|
|
4439
4440
|
{
|
|
4440
4441
|
images: e.matchQuiz.images,
|
|
4441
4442
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
4442
4443
|
},
|
|
4443
4444
|
Ce.STANDARD
|
|
4444
|
-
), b = f || u && !!
|
|
4445
|
+
), b = f || u && !!x, z = _().palette.danger.plainColor, C = (a == null ? void 0 : a.contentColor) || _().textColor, I = (a == null ? void 0 : a.secondaryColor) || _().textColor, T = ee().secondary, E = "60%", g = ee().primary, F = (a == null ? void 0 : a.backgroundColor) || _().surfaceVariant, P = re(), M = (a == null ? void 0 : a.primaryColor) || _().palette.primary.plainColor, L = _().palette.primary.onPrimary, H = re().xl, v = Se(), V = rt(
|
|
4445
4446
|
Ce.STANDARD
|
|
4446
|
-
), R =
|
|
4447
|
-
finalImage:
|
|
4448
|
-
spacingScale:
|
|
4447
|
+
), R = Qi({
|
|
4448
|
+
finalImage: x,
|
|
4449
|
+
spacingScale: v,
|
|
4449
4450
|
borderRadius: P,
|
|
4450
4451
|
fontFamilyPrimary: g,
|
|
4451
4452
|
fontFamilySecondary: T,
|
|
4452
4453
|
textColor: C,
|
|
4453
4454
|
secondaryColor: I,
|
|
4454
|
-
bgcolor: ye(
|
|
4455
|
+
bgcolor: ye(F || ""),
|
|
4455
4456
|
opacity: E,
|
|
4456
4457
|
brandingColors: a,
|
|
4457
4458
|
darkTextColor: h.colorSchemes.dark.textColor,
|
|
@@ -4463,38 +4464,38 @@ const Di = (e) => {
|
|
|
4463
4464
|
l(!1);
|
|
4464
4465
|
}, O = Ye(
|
|
4465
4466
|
(w, Z, he) => {
|
|
4466
|
-
const
|
|
4467
|
+
const ae = `${Z}:${he}`;
|
|
4467
4468
|
e.setPrediction((fe) => {
|
|
4468
4469
|
const A = { ...fe }, J = A.fixtures.find((me) => me.market === w);
|
|
4469
|
-
return J && (J.prediction.value =
|
|
4470
|
+
return J && (J.prediction.value = ae), A;
|
|
4470
4471
|
});
|
|
4471
4472
|
},
|
|
4472
4473
|
[e.setPrediction]
|
|
4473
4474
|
), k = Ye(
|
|
4474
4475
|
(w, Z) => {
|
|
4475
4476
|
e.setPrediction((he) => {
|
|
4476
|
-
const
|
|
4477
|
+
const ae = { ...he }, fe = ae.fixtures.find(
|
|
4477
4478
|
(A) => A.market === w
|
|
4478
4479
|
);
|
|
4479
|
-
return fe && (fe.prediction.value = Z),
|
|
4480
|
+
return fe && (fe.prediction.value = Z), ae;
|
|
4480
4481
|
});
|
|
4481
4482
|
},
|
|
4482
4483
|
[e.setPrediction]
|
|
4483
4484
|
), Q = Ye(
|
|
4484
4485
|
(w, Z) => {
|
|
4485
4486
|
e.setPrediction((he) => {
|
|
4486
|
-
const
|
|
4487
|
+
const ae = { ...he }, fe = ae.fixtures.find(
|
|
4487
4488
|
(A) => A.market === w
|
|
4488
4489
|
);
|
|
4489
|
-
return fe && (fe.prediction.playerId = Z),
|
|
4490
|
+
return fe && (fe.prediction.playerId = Z), ae;
|
|
4490
4491
|
});
|
|
4491
4492
|
},
|
|
4492
4493
|
[e.setPrediction]
|
|
4493
4494
|
), ue = Ye(
|
|
4494
4495
|
(w, Z) => {
|
|
4495
4496
|
e.setPrediction((he) => {
|
|
4496
|
-
const
|
|
4497
|
-
return fe && (fe.prediction.value = Z),
|
|
4497
|
+
const ae = { ...he }, fe = ae.fixtures.find((A) => A.market === w);
|
|
4498
|
+
return fe && (fe.prediction.value = Z), ae;
|
|
4498
4499
|
});
|
|
4499
4500
|
},
|
|
4500
4501
|
[e.setPrediction]
|
|
@@ -4503,11 +4504,11 @@ const Di = (e) => {
|
|
|
4503
4504
|
}, ge = (w) => {
|
|
4504
4505
|
o(w + 1);
|
|
4505
4506
|
}, ze = () => {
|
|
4506
|
-
var he,
|
|
4507
|
+
var he, ae;
|
|
4507
4508
|
if (n === N) return !0;
|
|
4508
4509
|
const w = e.matchQuiz.fixtures[n - 1];
|
|
4509
4510
|
if (!w) return !1;
|
|
4510
|
-
const Z = (
|
|
4511
|
+
const Z = (ae = (he = e.prediction) == null ? void 0 : he.fixtures) == null ? void 0 : ae.find(
|
|
4511
4512
|
(fe) => fe.market === w.market
|
|
4512
4513
|
);
|
|
4513
4514
|
return Z ? w.market === c.CORRECT_SCORE || w.market === c.CORRECT_SCORE_HT || w.market === c.CORRECT_SCORE_ADVANCED || w.market === c.CORNERS_MATCH ? !0 : w.market === c.PLAYER_SCORE || w.market === c.PLAYER_YELLOW_CARD || w.market === c.PLAYER_RED_CARD || w.market === c.PLAYER_SCORE_FIRST_GOAL || w.market === c.PLAYER_SCORE_HATTRICK || w.market === c.PLAYER_SCORE_TWICE ? Z.prediction.playerId !== void 0 : Z.prediction.value !== null : !1;
|
|
@@ -4515,13 +4516,13 @@ const Di = (e) => {
|
|
|
4515
4516
|
n > 1 && o(n - 1);
|
|
4516
4517
|
}, be = () => /* @__PURE__ */ t(i, { sx: R.questionArea, children: /* @__PURE__ */ d(i, { sx: R.questionContainer, children: [
|
|
4517
4518
|
/* @__PURE__ */ t(i, { sx: R.questionContentContainer, children: /* @__PURE__ */ d(i, { sx: R.gameStateContainer, children: [
|
|
4518
|
-
/* @__PURE__ */ t(
|
|
4519
|
-
/* @__PURE__ */ t(
|
|
4519
|
+
/* @__PURE__ */ t(y, { sx: R.stateTitle, children: m("matchQuiz.states.pending.title") }),
|
|
4520
|
+
/* @__PURE__ */ t(y, { sx: R.stateDescription, children: m("matchQuiz.states.pending.description") })
|
|
4520
4521
|
] }) }),
|
|
4521
4522
|
S && /* @__PURE__ */ t(i, { sx: R.footerContainer, children: we(C) })
|
|
4522
4523
|
] }) }), Ue = () => {
|
|
4523
|
-
var
|
|
4524
|
-
const w = (
|
|
4524
|
+
var ae, fe, A, J;
|
|
4525
|
+
const w = (ae = e.matchQuiz.fixtures[0]) == null ? void 0 : ae.matchModel;
|
|
4525
4526
|
if (!w || !((fe = w.scores) != null && fe.ftScore)) return null;
|
|
4526
4527
|
const Z = w.scores.ftScore.homeGoals || 0, he = w.scores.ftScore.awayGoals || 0;
|
|
4527
4528
|
return /* @__PURE__ */ d(i, { sx: R.matchResultBadge, children: [
|
|
@@ -4538,7 +4539,7 @@ const Di = (e) => {
|
|
|
4538
4539
|
}
|
|
4539
4540
|
}
|
|
4540
4541
|
) }),
|
|
4541
|
-
/* @__PURE__ */ d(
|
|
4542
|
+
/* @__PURE__ */ d(y, { sx: R.matchResultScoreText, children: [
|
|
4542
4543
|
Z,
|
|
4543
4544
|
" - ",
|
|
4544
4545
|
he
|
|
@@ -4562,23 +4563,23 @@ const Di = (e) => {
|
|
|
4562
4563
|
Ue(),
|
|
4563
4564
|
/* @__PURE__ */ d(i, { sx: R.liveIndicatorContainer, children: [
|
|
4564
4565
|
/* @__PURE__ */ t(i, { sx: R.liveIndicator }),
|
|
4565
|
-
/* @__PURE__ */ t(
|
|
4566
|
+
/* @__PURE__ */ t(y, { sx: R.liveText, children: m("matchQuiz.states.live.indicator") })
|
|
4566
4567
|
] }),
|
|
4567
|
-
/* @__PURE__ */ t(
|
|
4568
|
+
/* @__PURE__ */ t(y, { sx: R.stateDescription, children: m("matchQuiz.states.live.description") })
|
|
4568
4569
|
] }) }),
|
|
4569
4570
|
S && /* @__PURE__ */ t(i, { sx: R.footerContainer, children: we(C) })
|
|
4570
4571
|
] }) }), q = () => /* @__PURE__ */ t(i, { sx: R.questionArea, children: /* @__PURE__ */ d(i, { sx: R.questionContainer, children: [
|
|
4571
4572
|
/* @__PURE__ */ t(i, { sx: R.questionContentContainer, children: /* @__PURE__ */ d(i, { sx: R.gameStateContainer, children: [
|
|
4572
4573
|
Ue(),
|
|
4573
|
-
/* @__PURE__ */ t(i, { sx: R.closedStateHeader, children: /* @__PURE__ */ t(
|
|
4574
|
-
/* @__PURE__ */ t(
|
|
4574
|
+
/* @__PURE__ */ t(i, { sx: R.closedStateHeader, children: /* @__PURE__ */ t(y, { sx: R.stateTitle, children: m("matchQuiz.states.closed.title") }) }),
|
|
4575
|
+
/* @__PURE__ */ t(y, { sx: R.stateDescription, children: m("matchQuiz.states.closed.description") })
|
|
4575
4576
|
] }) }),
|
|
4576
4577
|
S && /* @__PURE__ */ t(i, { sx: R.footerContainer, children: we(C) })
|
|
4577
4578
|
] }) }), B = () => /* @__PURE__ */ d(i, { sx: R.gameStateContainer, children: [
|
|
4578
|
-
/* @__PURE__ */ t(
|
|
4579
|
-
/* @__PURE__ */ t(
|
|
4579
|
+
/* @__PURE__ */ t(y, { sx: R.stateTitle, children: m("matchQuiz.states.open.title") }),
|
|
4580
|
+
/* @__PURE__ */ t(y, { sx: R.stateDescription, children: m("matchQuiz.states.open.description") })
|
|
4580
4581
|
] }), j = () => {
|
|
4581
|
-
var w, Z, he,
|
|
4582
|
+
var w, Z, he, ae, fe, A, J, me, oe, le, Re;
|
|
4582
4583
|
return /* @__PURE__ */ t(p, { children: r ? /* @__PURE__ */ t(i, { sx: R.leadCollectionContainer, children: /* @__PURE__ */ d(i, { sx: R.leadQuestionContainer, children: [
|
|
4583
4584
|
/* @__PURE__ */ t(i, { sx: R.leadContentContainer, children: /* @__PURE__ */ t(
|
|
4584
4585
|
ht,
|
|
@@ -4590,13 +4591,13 @@ const Di = (e) => {
|
|
|
4590
4591
|
brandingColors: (w = e.matchQuiz.branding) == null ? void 0 : w.colors,
|
|
4591
4592
|
brandingUrls: (Z = e.matchQuiz.branding) == null ? void 0 : Z.urls,
|
|
4592
4593
|
campaignId: (he = e.leads) == null ? void 0 : he.campaignId,
|
|
4593
|
-
campaignName: (
|
|
4594
|
+
campaignName: (ae = e.leads) == null ? void 0 : ae.campaignName,
|
|
4594
4595
|
fields: (fe = e.leads) == null ? void 0 : fe.fields,
|
|
4595
4596
|
leadTitle: (A = e.matchQuiz.labels) == null ? void 0 : A.leadTitle,
|
|
4596
4597
|
leadDescription: (J = e.matchQuiz.labels) == null ? void 0 : J.leadDescription,
|
|
4597
4598
|
leadCta: (me = e.matchQuiz.labels) == null ? void 0 : me.leadCta,
|
|
4598
|
-
leadSuccessTitle: (
|
|
4599
|
-
leadSuccessDescription: (
|
|
4599
|
+
leadSuccessTitle: (oe = e.matchQuiz.labels) == null ? void 0 : oe.leadSuccessTitle,
|
|
4600
|
+
leadSuccessDescription: (le = e.matchQuiz.labels) == null ? void 0 : le.leadSuccessDescription,
|
|
4600
4601
|
syncWithProfile: (Re = e.leads) == null ? void 0 : Re.syncWithProfile
|
|
4601
4602
|
}
|
|
4602
4603
|
) }),
|
|
@@ -4663,7 +4664,7 @@ const Di = (e) => {
|
|
|
4663
4664
|
fontSize: "0.9375em"
|
|
4664
4665
|
},
|
|
4665
4666
|
children: /* @__PURE__ */ t(
|
|
4666
|
-
|
|
4667
|
+
y,
|
|
4667
4668
|
{
|
|
4668
4669
|
sx: {
|
|
4669
4670
|
fontFamily: g,
|
|
@@ -4694,7 +4695,7 @@ const Di = (e) => {
|
|
|
4694
4695
|
py: "10px",
|
|
4695
4696
|
px: "16px",
|
|
4696
4697
|
bgcolor: M,
|
|
4697
|
-
color:
|
|
4698
|
+
color: L,
|
|
4698
4699
|
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
4699
4700
|
transform: "scale(1)",
|
|
4700
4701
|
alignSelf: "center",
|
|
@@ -4703,19 +4704,19 @@ const Di = (e) => {
|
|
|
4703
4704
|
transform: "scale(1.02)"
|
|
4704
4705
|
},
|
|
4705
4706
|
"&:active": {
|
|
4706
|
-
color:
|
|
4707
|
+
color: L,
|
|
4707
4708
|
transform: "scale(0.98)"
|
|
4708
4709
|
},
|
|
4709
4710
|
"&:disabled": {
|
|
4710
4711
|
bgcolor: M,
|
|
4711
|
-
color:
|
|
4712
|
+
color: L,
|
|
4712
4713
|
opacity: "12%"
|
|
4713
4714
|
},
|
|
4714
|
-
"--Icon-color":
|
|
4715
|
+
"--Icon-color": L,
|
|
4715
4716
|
fontSize: "0.9375em"
|
|
4716
4717
|
},
|
|
4717
4718
|
children: /* @__PURE__ */ t(
|
|
4718
|
-
|
|
4719
|
+
y,
|
|
4719
4720
|
{
|
|
4720
4721
|
sx: {
|
|
4721
4722
|
fontFamily: g,
|
|
@@ -4724,7 +4725,7 @@ const Di = (e) => {
|
|
|
4724
4725
|
lineHeight: "24px",
|
|
4725
4726
|
letterSpacing: "0.46px",
|
|
4726
4727
|
textTransform: "uppercase",
|
|
4727
|
-
color:
|
|
4728
|
+
color: L,
|
|
4728
4729
|
gap: "8px",
|
|
4729
4730
|
display: "flex",
|
|
4730
4731
|
alignItems: "center"
|
|
@@ -4753,7 +4754,7 @@ const Di = (e) => {
|
|
|
4753
4754
|
return j();
|
|
4754
4755
|
}
|
|
4755
4756
|
}, we = (w, Z) => {
|
|
4756
|
-
var he,
|
|
4757
|
+
var he, ae, fe, A, J;
|
|
4757
4758
|
return /* @__PURE__ */ t(
|
|
4758
4759
|
ke,
|
|
4759
4760
|
{
|
|
@@ -4761,14 +4762,14 @@ const Di = (e) => {
|
|
|
4761
4762
|
textColor: w,
|
|
4762
4763
|
label: ((he = e.matchQuiz.labels) == null ? void 0 : he.sponsor) || null,
|
|
4763
4764
|
flexDirection: Z,
|
|
4764
|
-
primaryUrl: (fe = (
|
|
4765
|
+
primaryUrl: (fe = (ae = e.matchQuiz.branding) == null ? void 0 : ae.urls) == null ? void 0 : fe.primaryUrl,
|
|
4765
4766
|
secondaryUrl: (J = (A = e.matchQuiz.branding) == null ? void 0 : A.urls) == null ? void 0 : J.secondaryUrl
|
|
4766
4767
|
}
|
|
4767
4768
|
);
|
|
4768
4769
|
}, de = tt(() => e.matchQuiz.fixtures[n - 1], [e.matchQuiz.fixtures, n]), Te = tt(() => de == null ? void 0 : de.matchModel, [
|
|
4769
4770
|
(G = (K = de == null ? void 0 : de.matchModel) == null ? void 0 : K.homeTeam) == null ? void 0 : G.id,
|
|
4770
|
-
(X = (
|
|
4771
|
-
]),
|
|
4771
|
+
(X = (ie = de == null ? void 0 : de.matchModel) == null ? void 0 : ie.awayTeam) == null ? void 0 : X.id
|
|
4772
|
+
]), Fe = tt(() => de ? {
|
|
4772
4773
|
onScoreChange: (w, Z) => O(de.market, w, Z),
|
|
4773
4774
|
onSelectionChange: (w) => k(de.market, w),
|
|
4774
4775
|
onCornersChange: (w) => ue(de.market, w),
|
|
@@ -4780,7 +4781,7 @@ const Di = (e) => {
|
|
|
4780
4781
|
ue,
|
|
4781
4782
|
Q
|
|
4782
4783
|
]), Ae = () => {
|
|
4783
|
-
var Z, he,
|
|
4784
|
+
var Z, he, ae, fe, A, J, me, oe, le, Re, ve, Xe, Ke, Ze;
|
|
4784
4785
|
const w = de;
|
|
4785
4786
|
if (U)
|
|
4786
4787
|
return B();
|
|
@@ -4793,12 +4794,12 @@ const Di = (e) => {
|
|
|
4793
4794
|
(pe) => pe.market === w.market
|
|
4794
4795
|
), lt = (Ge == null ? void 0 : Ge.prediction.value) || "0:0", [$e, zt] = lt.split(":").map(Number);
|
|
4795
4796
|
return /* @__PURE__ */ t(
|
|
4796
|
-
|
|
4797
|
+
Ft,
|
|
4797
4798
|
{
|
|
4798
4799
|
matchModel: Te,
|
|
4799
4800
|
market: w.market,
|
|
4800
4801
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
4801
|
-
onScoreChange:
|
|
4802
|
+
onScoreChange: Fe.onScoreChange,
|
|
4802
4803
|
initialHomeScore: $e,
|
|
4803
4804
|
initialAwayScore: zt,
|
|
4804
4805
|
useExtraSmallLayout: b
|
|
@@ -4807,17 +4808,17 @@ const Di = (e) => {
|
|
|
4807
4808
|
);
|
|
4808
4809
|
case c.FT_1X2:
|
|
4809
4810
|
case c.HT_1X2:
|
|
4810
|
-
const dt = (fe = (
|
|
4811
|
+
const dt = (fe = (ae = e.prediction) == null ? void 0 : ae.fixtures) == null ? void 0 : fe.find(
|
|
4811
4812
|
(pe) => pe.market === w.market
|
|
4812
4813
|
);
|
|
4813
4814
|
return /* @__PURE__ */ t(
|
|
4814
|
-
|
|
4815
|
+
vt,
|
|
4815
4816
|
{
|
|
4816
4817
|
matchModel: Te,
|
|
4817
4818
|
market: w.market,
|
|
4818
4819
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
4819
4820
|
prediction: ((A = dt == null ? void 0 : dt.prediction) == null ? void 0 : A.value) || null,
|
|
4820
|
-
onSelectionChange:
|
|
4821
|
+
onSelectionChange: Fe.onSelectionChange,
|
|
4821
4822
|
useExtraSmallLayout: b
|
|
4822
4823
|
},
|
|
4823
4824
|
`${w.market}-${n}`
|
|
@@ -4831,9 +4832,9 @@ const Di = (e) => {
|
|
|
4831
4832
|
{
|
|
4832
4833
|
matchModel: Te,
|
|
4833
4834
|
market: w.market,
|
|
4834
|
-
prediction: (
|
|
4835
|
+
prediction: (oe = ct == null ? void 0 : ct.prediction) == null ? void 0 : oe.value,
|
|
4835
4836
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
4836
|
-
onCornersChange:
|
|
4837
|
+
onCornersChange: Fe.onCornersChange,
|
|
4837
4838
|
useExtraSmallLayout: b
|
|
4838
4839
|
},
|
|
4839
4840
|
`${w.market}-${n}`
|
|
@@ -4855,17 +4856,17 @@ const Di = (e) => {
|
|
|
4855
4856
|
case c.OVER_CORNERS_13_5:
|
|
4856
4857
|
case c.RED_CARD_MATCH:
|
|
4857
4858
|
case c.PENALTY_MATCH:
|
|
4858
|
-
const xt = (Re = (
|
|
4859
|
+
const xt = (Re = (le = e.prediction) == null ? void 0 : le.fixtures) == null ? void 0 : Re.find(
|
|
4859
4860
|
(pe) => pe.market === w.market
|
|
4860
4861
|
);
|
|
4861
4862
|
return /* @__PURE__ */ t(
|
|
4862
|
-
|
|
4863
|
+
Lt,
|
|
4863
4864
|
{
|
|
4864
4865
|
matchModel: Te,
|
|
4865
4866
|
market: w.market,
|
|
4866
4867
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
4867
|
-
prediction: (
|
|
4868
|
-
onSelectionChange:
|
|
4868
|
+
prediction: (ve = xt == null ? void 0 : xt.prediction) == null ? void 0 : ve.value,
|
|
4869
|
+
onSelectionChange: Fe.onSelectionChange,
|
|
4869
4870
|
useExtraSmallLayout: b
|
|
4870
4871
|
},
|
|
4871
4872
|
w.market
|
|
@@ -4880,13 +4881,13 @@ const Di = (e) => {
|
|
|
4880
4881
|
(pe) => pe.market === w.market
|
|
4881
4882
|
);
|
|
4882
4883
|
return /* @__PURE__ */ t(
|
|
4883
|
-
|
|
4884
|
+
Dt,
|
|
4884
4885
|
{
|
|
4885
4886
|
matchModel: Te,
|
|
4886
4887
|
market: w.market,
|
|
4887
4888
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
4888
4889
|
prediction: (Ze = yt == null ? void 0 : yt.prediction) == null ? void 0 : Ze.playerId,
|
|
4889
|
-
onPlayerSelection:
|
|
4890
|
+
onPlayerSelection: Fe.onPlayerSelection,
|
|
4890
4891
|
useExtraSmallLayout: b
|
|
4891
4892
|
},
|
|
4892
4893
|
`${w.market}-${n}`
|
|
@@ -4900,13 +4901,13 @@ const Di = (e) => {
|
|
|
4900
4901
|
{
|
|
4901
4902
|
entity: e.matchQuiz,
|
|
4902
4903
|
headline: m("matchQuiz.headline"),
|
|
4903
|
-
finalImage:
|
|
4904
|
+
finalImage: x,
|
|
4904
4905
|
imagePosition: s,
|
|
4905
4906
|
rulesDisplay: e.rulesDisplay,
|
|
4906
4907
|
children: Ie()
|
|
4907
4908
|
}
|
|
4908
4909
|
) });
|
|
4909
|
-
},
|
|
4910
|
+
}, Hi = (e) => ({
|
|
4910
4911
|
// Question area
|
|
4911
4912
|
questionArea: {
|
|
4912
4913
|
flex: e.isMobile ? "1" : "0 0 50%",
|
|
@@ -5051,24 +5052,24 @@ const Di = (e) => {
|
|
|
5051
5052
|
color: e.textColor,
|
|
5052
5053
|
lineHeight: 1
|
|
5053
5054
|
}
|
|
5054
|
-
}),
|
|
5055
|
-
var we, de, Te,
|
|
5055
|
+
}), Bi = (e) => {
|
|
5056
|
+
var we, de, Te, Fe, Ae, Me, Qe, Oe, He, Be, We, Ve, je;
|
|
5056
5057
|
const [n, o] = et.useState(1), [r, l] = et.useState(
|
|
5057
5058
|
((we = e.leads) == null ? void 0 : we.position) === "before" && e.matchQuiz.authRequirement === "LEAD"
|
|
5058
5059
|
);
|
|
5059
5060
|
et.useEffect(() => {
|
|
5060
|
-
var
|
|
5061
|
+
var D;
|
|
5061
5062
|
l(
|
|
5062
|
-
((
|
|
5063
|
+
((D = e.leads) == null ? void 0 : D.position) === "before" && e.matchQuiz.authRequirement === "LEAD" || !1
|
|
5063
5064
|
);
|
|
5064
5065
|
}, [(de = e.leads) == null ? void 0 : de.position, e.matchQuiz.authRequirement]);
|
|
5065
|
-
const h = Ee(), { t: m } = ne(), u = ce(), f = un(), a = ((Te = e.matchQuiz.branding) == null ? void 0 : Te.colors) || null, S = u ? ((Ae = (
|
|
5066
|
+
const h = Ee(), { t: m } = ne(), u = ce(), f = un(), a = ((Te = e.matchQuiz.branding) == null ? void 0 : Te.colors) || null, S = u ? ((Ae = (Fe = e.matchQuiz.branding) == null ? void 0 : Fe.images) == null ? void 0 : Ae.mobileLogo) || ((Qe = (Me = e.matchQuiz.branding) == null ? void 0 : Me.images) == null ? void 0 : Qe.mainLogo) || "" : ((He = (Oe = e.matchQuiz.branding) == null ? void 0 : Oe.images) == null ? void 0 : He.mainLogo) || "", s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : u ? it : at, x = Je(
|
|
5066
5067
|
{
|
|
5067
5068
|
images: e.matchQuiz.images,
|
|
5068
5069
|
imagePlaceholder: s
|
|
5069
5070
|
},
|
|
5070
5071
|
Ce.SPLIT
|
|
5071
|
-
), b = _().palette.danger.plainColor, z = (a == null ? void 0 : a.contentColor) || _().textColor, C = (a == null ? void 0 : a.secondaryColor) || _().textColor, I = ee().primary, T = (a == null ? void 0 : a.backgroundColor) || _().surfaceVariant, E =
|
|
5072
|
+
), b = _().palette.danger.plainColor, z = (a == null ? void 0 : a.contentColor) || _().textColor, C = (a == null ? void 0 : a.secondaryColor) || _().textColor, I = ee().primary, T = (a == null ? void 0 : a.backgroundColor) || _().surfaceVariant, E = re(), g = (a == null ? void 0 : a.primaryColor) || _().palette.primary.plainColor, F = _().palette.primary.onPrimary, P = re().xl, M = Se(), L = Hi({
|
|
5072
5073
|
spacingScale: M,
|
|
5073
5074
|
borderRadius: E,
|
|
5074
5075
|
fontFamilyPrimary: I,
|
|
@@ -5079,69 +5080,69 @@ const Di = (e) => {
|
|
|
5079
5080
|
dangerColor: b
|
|
5080
5081
|
}), H = () => {
|
|
5081
5082
|
l(!1);
|
|
5082
|
-
},
|
|
5083
|
-
(
|
|
5083
|
+
}, v = Ye(
|
|
5084
|
+
(D, Y, K) => {
|
|
5084
5085
|
const G = `${Y}:${K}`;
|
|
5085
|
-
e.setPrediction((
|
|
5086
|
-
const X = { ...
|
|
5086
|
+
e.setPrediction((ie) => {
|
|
5087
|
+
const X = { ...ie }, w = X.fixtures.find((Z) => Z.market === D);
|
|
5087
5088
|
return w && (w.prediction.value = G), X;
|
|
5088
5089
|
});
|
|
5089
5090
|
},
|
|
5090
5091
|
[e.setPrediction]
|
|
5091
5092
|
), V = Ye(
|
|
5092
|
-
(
|
|
5093
|
+
(D, Y) => {
|
|
5093
5094
|
e.setPrediction((K) => {
|
|
5094
|
-
const G = { ...K },
|
|
5095
|
-
(X) => X.market ===
|
|
5095
|
+
const G = { ...K }, ie = G.fixtures.find(
|
|
5096
|
+
(X) => X.market === D
|
|
5096
5097
|
);
|
|
5097
|
-
return
|
|
5098
|
+
return ie && (ie.prediction.value = Y), G;
|
|
5098
5099
|
});
|
|
5099
5100
|
},
|
|
5100
5101
|
[e.setPrediction]
|
|
5101
5102
|
), R = Ye(
|
|
5102
|
-
(
|
|
5103
|
+
(D, Y) => {
|
|
5103
5104
|
e.setPrediction((K) => {
|
|
5104
|
-
const G = { ...K },
|
|
5105
|
-
(X) => X.market ===
|
|
5105
|
+
const G = { ...K }, ie = G.fixtures.find(
|
|
5106
|
+
(X) => X.market === D
|
|
5106
5107
|
);
|
|
5107
|
-
return
|
|
5108
|
+
return ie && (ie.prediction.playerId = Y), G;
|
|
5108
5109
|
});
|
|
5109
5110
|
},
|
|
5110
5111
|
[e.setPrediction]
|
|
5111
5112
|
), W = Ye(
|
|
5112
|
-
(
|
|
5113
|
+
(D, Y) => {
|
|
5113
5114
|
e.setPrediction((K) => {
|
|
5114
|
-
const G = { ...K },
|
|
5115
|
-
return
|
|
5115
|
+
const G = { ...K }, ie = G.fixtures.find((X) => X.market === D);
|
|
5116
|
+
return ie && (ie.prediction.value = Y), G;
|
|
5116
5117
|
});
|
|
5117
5118
|
},
|
|
5118
5119
|
[e.setPrediction]
|
|
5119
5120
|
), O = e.matchQuiz.fixtures.length + 1, k = e.matchQuiz.status === "OPEN" && qt(e.matchQuiz.predictionsCutoff), Q = () => {
|
|
5120
5121
|
n < O ? o(n + 1) : e.play();
|
|
5121
|
-
}, ue = (
|
|
5122
|
-
o(
|
|
5122
|
+
}, ue = (D) => {
|
|
5123
|
+
o(D + 1);
|
|
5123
5124
|
}, N = () => {
|
|
5124
5125
|
var K, G;
|
|
5125
5126
|
if (n === O) return !0;
|
|
5126
|
-
const
|
|
5127
|
-
if (!
|
|
5127
|
+
const D = e.matchQuiz.fixtures[n - 1];
|
|
5128
|
+
if (!D) return !1;
|
|
5128
5129
|
const Y = (G = (K = e.prediction) == null ? void 0 : K.fixtures) == null ? void 0 : G.find(
|
|
5129
|
-
(
|
|
5130
|
+
(ie) => ie.market === D.market
|
|
5130
5131
|
);
|
|
5131
|
-
return Y ?
|
|
5132
|
+
return Y ? D.market === c.CORRECT_SCORE || D.market === c.CORRECT_SCORE_HT || D.market === c.CORRECT_SCORE_ADVANCED || D.market === c.CORNERS_MATCH ? !0 : D.market === c.PLAYER_SCORE || D.market === c.PLAYER_YELLOW_CARD || D.market === c.PLAYER_RED_CARD || D.market === c.PLAYER_SCORE_FIRST_GOAL || D.market === c.PLAYER_SCORE_HATTRICK || D.market === c.PLAYER_SCORE_TWICE ? Y.prediction.playerId !== void 0 : Y.prediction.value !== null : !1;
|
|
5132
5133
|
}, U = () => {
|
|
5133
5134
|
n > 1 && o(n - 1);
|
|
5134
5135
|
}, $ = () => {
|
|
5135
|
-
var G,
|
|
5136
|
-
const
|
|
5137
|
-
if (!
|
|
5138
|
-
const Y =
|
|
5139
|
-
return /* @__PURE__ */ d(i, { sx:
|
|
5140
|
-
((X =
|
|
5136
|
+
var G, ie, X, w;
|
|
5137
|
+
const D = (G = e.matchQuiz.fixtures[0]) == null ? void 0 : G.matchModel;
|
|
5138
|
+
if (!D || !((ie = D.scores) != null && ie.ftScore)) return null;
|
|
5139
|
+
const Y = D.scores.ftScore.homeGoals || 0, K = D.scores.ftScore.awayGoals || 0;
|
|
5140
|
+
return /* @__PURE__ */ d(i, { sx: L.matchResultBadge, children: [
|
|
5141
|
+
((X = D.homeTeam.assets) == null ? void 0 : X.logo) && /* @__PURE__ */ t(i, { sx: L.matchResultTeamLogo, children: /* @__PURE__ */ t(
|
|
5141
5142
|
"img",
|
|
5142
5143
|
{
|
|
5143
|
-
src:
|
|
5144
|
-
alt:
|
|
5144
|
+
src: D.homeTeam.assets.logo,
|
|
5145
|
+
alt: D.homeTeam.name,
|
|
5145
5146
|
style: {
|
|
5146
5147
|
width: "100%",
|
|
5147
5148
|
height: "100%",
|
|
@@ -5150,16 +5151,16 @@ const Di = (e) => {
|
|
|
5150
5151
|
}
|
|
5151
5152
|
}
|
|
5152
5153
|
) }),
|
|
5153
|
-
/* @__PURE__ */ d(
|
|
5154
|
+
/* @__PURE__ */ d(y, { sx: L.matchResultScoreText, children: [
|
|
5154
5155
|
Y,
|
|
5155
5156
|
" - ",
|
|
5156
5157
|
K
|
|
5157
5158
|
] }),
|
|
5158
|
-
((w =
|
|
5159
|
+
((w = D.awayTeam.assets) == null ? void 0 : w.logo) && /* @__PURE__ */ t(i, { sx: L.matchResultTeamLogo, children: /* @__PURE__ */ t(
|
|
5159
5160
|
"img",
|
|
5160
5161
|
{
|
|
5161
|
-
src:
|
|
5162
|
-
alt:
|
|
5162
|
+
src: D.awayTeam.assets.logo,
|
|
5163
|
+
alt: D.awayTeam.name,
|
|
5163
5164
|
style: {
|
|
5164
5165
|
width: "100%",
|
|
5165
5166
|
height: "100%",
|
|
@@ -5169,95 +5170,95 @@ const Di = (e) => {
|
|
|
5169
5170
|
}
|
|
5170
5171
|
) })
|
|
5171
5172
|
] });
|
|
5172
|
-
}, xe = () => /* @__PURE__ */ t(i, { sx:
|
|
5173
|
-
/* @__PURE__ */ t(
|
|
5174
|
-
/* @__PURE__ */ t(
|
|
5175
|
-
] }) }) }), ge = () => /* @__PURE__ */ t(i, { sx:
|
|
5173
|
+
}, xe = () => /* @__PURE__ */ t(i, { sx: L.questionAreaContent, children: /* @__PURE__ */ t(i, { sx: L.mainContentContainer, children: /* @__PURE__ */ d(i, { sx: L.gameStateContainer, children: [
|
|
5174
|
+
/* @__PURE__ */ t(y, { sx: L.stateTitle, children: m("matchQuiz.states.pending.title") }),
|
|
5175
|
+
/* @__PURE__ */ t(y, { sx: L.stateDescription, children: m("matchQuiz.states.pending.description") })
|
|
5176
|
+
] }) }) }), ge = () => /* @__PURE__ */ t(i, { sx: L.questionAreaContent, children: /* @__PURE__ */ t(i, { sx: L.mainContentContainer, children: /* @__PURE__ */ d(i, { sx: L.gameStateContainer, children: [
|
|
5176
5177
|
$(),
|
|
5177
|
-
/* @__PURE__ */ d(i, { sx:
|
|
5178
|
-
/* @__PURE__ */ t(i, { sx:
|
|
5179
|
-
/* @__PURE__ */ t(
|
|
5178
|
+
/* @__PURE__ */ d(i, { sx: L.liveIndicatorContainer, children: [
|
|
5179
|
+
/* @__PURE__ */ t(i, { sx: L.liveIndicator }),
|
|
5180
|
+
/* @__PURE__ */ t(y, { sx: L.liveText, children: m("matchQuiz.states.live.indicator") })
|
|
5180
5181
|
] }),
|
|
5181
|
-
/* @__PURE__ */ t(
|
|
5182
|
-
] }) }) }), ze = () => /* @__PURE__ */ t(i, { sx:
|
|
5182
|
+
/* @__PURE__ */ t(y, { sx: L.stateDescription, children: m("matchQuiz.states.live.description") })
|
|
5183
|
+
] }) }) }), ze = () => /* @__PURE__ */ t(i, { sx: L.questionAreaContent, children: /* @__PURE__ */ t(i, { sx: L.mainContentContainer, children: /* @__PURE__ */ d(i, { sx: L.gameStateContainer, children: [
|
|
5183
5184
|
$(),
|
|
5184
|
-
/* @__PURE__ */ t(
|
|
5185
|
-
/* @__PURE__ */ t(
|
|
5186
|
-
] }) }) }), ot = () => /* @__PURE__ */ d(i, { sx:
|
|
5187
|
-
/* @__PURE__ */ t(
|
|
5188
|
-
/* @__PURE__ */ t(
|
|
5185
|
+
/* @__PURE__ */ t(y, { sx: L.stateTitle, children: m("matchQuiz.states.closed.title") }),
|
|
5186
|
+
/* @__PURE__ */ t(y, { sx: L.stateDescription, children: m("matchQuiz.states.closed.description") })
|
|
5187
|
+
] }) }) }), ot = () => /* @__PURE__ */ d(i, { sx: L.gameStateContainer, children: [
|
|
5188
|
+
/* @__PURE__ */ t(y, { sx: L.stateTitle, children: m("matchQuiz.states.open.title") }),
|
|
5189
|
+
/* @__PURE__ */ t(y, { sx: L.stateDescription, children: m("matchQuiz.states.open.description") })
|
|
5189
5190
|
] }), be = tt(() => e.matchQuiz.fixtures[n - 1], [e.matchQuiz.fixtures, n]), Ue = tt(() => be == null ? void 0 : be.matchModel, [
|
|
5190
5191
|
(We = (Be = be == null ? void 0 : be.matchModel) == null ? void 0 : Be.homeTeam) == null ? void 0 : We.id,
|
|
5191
5192
|
(je = (Ve = be == null ? void 0 : be.matchModel) == null ? void 0 : Ve.awayTeam) == null ? void 0 : je.id
|
|
5192
5193
|
]), se = tt(() => be ? {
|
|
5193
|
-
onScoreChange: (
|
|
5194
|
-
onSelectionChange: (
|
|
5195
|
-
onCornersChange: (
|
|
5196
|
-
onPlayerSelection: (
|
|
5194
|
+
onScoreChange: (D, Y) => v(be.market, D, Y),
|
|
5195
|
+
onSelectionChange: (D) => V(be.market, D),
|
|
5196
|
+
onCornersChange: (D) => W(be.market, D),
|
|
5197
|
+
onPlayerSelection: (D) => R(be.market, D)
|
|
5197
5198
|
} : {}, [
|
|
5198
5199
|
be == null ? void 0 : be.market,
|
|
5199
|
-
|
|
5200
|
+
v,
|
|
5200
5201
|
V,
|
|
5201
5202
|
W,
|
|
5202
5203
|
R
|
|
5203
5204
|
]), q = () => {
|
|
5204
|
-
var Y, K, G,
|
|
5205
|
-
const
|
|
5205
|
+
var Y, K, G, ie, X, w, Z, he, ae, fe, A, J, me, oe;
|
|
5206
|
+
const D = be;
|
|
5206
5207
|
if (k)
|
|
5207
5208
|
return ot();
|
|
5208
|
-
if (
|
|
5209
|
-
switch (
|
|
5209
|
+
if (D)
|
|
5210
|
+
switch (D.market) {
|
|
5210
5211
|
case c.CORRECT_SCORE:
|
|
5211
5212
|
case c.CORRECT_SCORE_HT:
|
|
5212
5213
|
case c.CORRECT_SCORE_ADVANCED:
|
|
5213
|
-
const
|
|
5214
|
-
($e) => $e.market ===
|
|
5215
|
-
), Re = (
|
|
5214
|
+
const le = (K = (Y = e.prediction) == null ? void 0 : Y.fixtures) == null ? void 0 : K.find(
|
|
5215
|
+
($e) => $e.market === D.market
|
|
5216
|
+
), Re = (le == null ? void 0 : le.prediction.value) || "0:0", [ve, Xe] = Re.split(":").map(Number);
|
|
5216
5217
|
return /* @__PURE__ */ t(
|
|
5217
|
-
|
|
5218
|
+
Ft,
|
|
5218
5219
|
{
|
|
5219
5220
|
matchModel: Ue,
|
|
5220
|
-
market:
|
|
5221
|
+
market: D.market,
|
|
5221
5222
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
5222
5223
|
onScoreChange: se.onScoreChange,
|
|
5223
|
-
initialHomeScore:
|
|
5224
|
+
initialHomeScore: ve,
|
|
5224
5225
|
initialAwayScore: Xe,
|
|
5225
5226
|
isSplitVariant: !0
|
|
5226
5227
|
},
|
|
5227
|
-
`${
|
|
5228
|
+
`${D.market}-${n}`
|
|
5228
5229
|
);
|
|
5229
5230
|
case c.FT_1X2:
|
|
5230
5231
|
case c.HT_1X2:
|
|
5231
|
-
const Ke = (
|
|
5232
|
-
($e) => $e.market ===
|
|
5232
|
+
const Ke = (ie = (G = e.prediction) == null ? void 0 : G.fixtures) == null ? void 0 : ie.find(
|
|
5233
|
+
($e) => $e.market === D.market
|
|
5233
5234
|
);
|
|
5234
5235
|
return /* @__PURE__ */ t(
|
|
5235
|
-
|
|
5236
|
+
vt,
|
|
5236
5237
|
{
|
|
5237
5238
|
matchModel: Ue,
|
|
5238
|
-
market:
|
|
5239
|
+
market: D.market,
|
|
5239
5240
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
5240
5241
|
prediction: ((X = Ke == null ? void 0 : Ke.prediction) == null ? void 0 : X.value) || null,
|
|
5241
5242
|
isSplitVariant: !0,
|
|
5242
5243
|
onSelectionChange: se.onSelectionChange
|
|
5243
5244
|
},
|
|
5244
|
-
`${
|
|
5245
|
+
`${D.market}-${n}`
|
|
5245
5246
|
);
|
|
5246
5247
|
case c.CORNERS_MATCH:
|
|
5247
5248
|
const Ze = (Z = (w = e.prediction) == null ? void 0 : w.fixtures) == null ? void 0 : Z.find(
|
|
5248
|
-
($e) => $e.market ===
|
|
5249
|
+
($e) => $e.market === D.market
|
|
5249
5250
|
);
|
|
5250
5251
|
return /* @__PURE__ */ t(
|
|
5251
5252
|
Et,
|
|
5252
5253
|
{
|
|
5253
5254
|
matchModel: Ue,
|
|
5254
|
-
market:
|
|
5255
|
+
market: D.market,
|
|
5255
5256
|
prediction: (he = Ze == null ? void 0 : Ze.prediction) == null ? void 0 : he.value,
|
|
5256
5257
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
5257
5258
|
isSplitVariant: !0,
|
|
5258
5259
|
onCornersChange: se.onCornersChange
|
|
5259
5260
|
},
|
|
5260
|
-
`${
|
|
5261
|
+
`${D.market}-${n}`
|
|
5261
5262
|
);
|
|
5262
5263
|
case c.OVER_GOALS_0_5:
|
|
5263
5264
|
case c.OVER_GOALS_1_5:
|
|
@@ -5276,20 +5277,20 @@ const Di = (e) => {
|
|
|
5276
5277
|
case c.OVER_CORNERS_13_5:
|
|
5277
5278
|
case c.RED_CARD_MATCH:
|
|
5278
5279
|
case c.PENALTY_MATCH:
|
|
5279
|
-
const Ge = (fe = (
|
|
5280
|
-
($e) => $e.market ===
|
|
5280
|
+
const Ge = (fe = (ae = e.prediction) == null ? void 0 : ae.fixtures) == null ? void 0 : fe.find(
|
|
5281
|
+
($e) => $e.market === D.market
|
|
5281
5282
|
);
|
|
5282
5283
|
return /* @__PURE__ */ t(
|
|
5283
|
-
|
|
5284
|
+
Lt,
|
|
5284
5285
|
{
|
|
5285
5286
|
matchModel: Ue,
|
|
5286
|
-
market:
|
|
5287
|
+
market: D.market,
|
|
5287
5288
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
5288
5289
|
prediction: (A = Ge == null ? void 0 : Ge.prediction) == null ? void 0 : A.value,
|
|
5289
5290
|
isSplitVariant: !0,
|
|
5290
5291
|
onSelectionChange: se.onSelectionChange
|
|
5291
5292
|
},
|
|
5292
|
-
|
|
5293
|
+
D.market
|
|
5293
5294
|
);
|
|
5294
5295
|
case c.PLAYER_SCORE:
|
|
5295
5296
|
case c.PLAYER_YELLOW_CARD:
|
|
@@ -5298,25 +5299,25 @@ const Di = (e) => {
|
|
|
5298
5299
|
case c.PLAYER_SCORE_HATTRICK:
|
|
5299
5300
|
case c.PLAYER_SCORE_TWICE:
|
|
5300
5301
|
const lt = (me = (J = e.prediction) == null ? void 0 : J.fixtures) == null ? void 0 : me.find(
|
|
5301
|
-
($e) => $e.market ===
|
|
5302
|
+
($e) => $e.market === D.market
|
|
5302
5303
|
);
|
|
5303
5304
|
return /* @__PURE__ */ t(
|
|
5304
|
-
|
|
5305
|
+
Dt,
|
|
5305
5306
|
{
|
|
5306
5307
|
matchModel: Ue,
|
|
5307
|
-
market:
|
|
5308
|
+
market: D.market,
|
|
5308
5309
|
brandingPrimaryColor: a == null ? void 0 : a.primaryColor,
|
|
5309
|
-
prediction: (
|
|
5310
|
+
prediction: (oe = lt == null ? void 0 : lt.prediction) == null ? void 0 : oe.playerId,
|
|
5310
5311
|
isSplitVariant: !0,
|
|
5311
5312
|
onPlayerSelection: se.onPlayerSelection
|
|
5312
5313
|
},
|
|
5313
|
-
`${
|
|
5314
|
+
`${D.market}-${n}`
|
|
5314
5315
|
);
|
|
5315
5316
|
default:
|
|
5316
5317
|
return /* @__PURE__ */ t(p, {});
|
|
5317
5318
|
}
|
|
5318
5319
|
}, B = () => {
|
|
5319
|
-
var
|
|
5320
|
+
var D, Y, K, G, ie, X, w, Z, he, ae;
|
|
5320
5321
|
return /* @__PURE__ */ t(p, { children: r ? /* @__PURE__ */ t(
|
|
5321
5322
|
i,
|
|
5322
5323
|
{
|
|
@@ -5327,23 +5328,23 @@ const Di = (e) => {
|
|
|
5327
5328
|
justifyContent: "center",
|
|
5328
5329
|
gap: "16px"
|
|
5329
5330
|
},
|
|
5330
|
-
children: /* @__PURE__ */ t(i, { sx:
|
|
5331
|
+
children: /* @__PURE__ */ t(i, { sx: L.leadContentContainer, children: /* @__PURE__ */ t(
|
|
5331
5332
|
ht,
|
|
5332
5333
|
{
|
|
5333
5334
|
sdk: e.sdk,
|
|
5334
5335
|
startGame: H,
|
|
5335
5336
|
contentId: e.matchQuiz.id,
|
|
5336
5337
|
contentName: e.matchQuiz.title,
|
|
5337
|
-
brandingColors: (
|
|
5338
|
+
brandingColors: (D = e.matchQuiz.branding) == null ? void 0 : D.colors,
|
|
5338
5339
|
brandingUrls: (Y = e.matchQuiz.branding) == null ? void 0 : Y.urls,
|
|
5339
5340
|
campaignId: (K = e.leads) == null ? void 0 : K.campaignId,
|
|
5340
5341
|
campaignName: (G = e.leads) == null ? void 0 : G.campaignName,
|
|
5341
|
-
fields: (
|
|
5342
|
+
fields: (ie = e.leads) == null ? void 0 : ie.fields,
|
|
5342
5343
|
leadTitle: (X = e.matchQuiz.labels) == null ? void 0 : X.leadTitle,
|
|
5343
5344
|
leadDescription: (w = e.matchQuiz.labels) == null ? void 0 : w.leadDescription,
|
|
5344
5345
|
leadCta: (Z = e.matchQuiz.labels) == null ? void 0 : Z.leadCta,
|
|
5345
5346
|
leadSuccessTitle: (he = e.matchQuiz.labels) == null ? void 0 : he.leadSuccessTitle,
|
|
5346
|
-
leadSuccessDescription: (
|
|
5347
|
+
leadSuccessDescription: (ae = e.matchQuiz.labels) == null ? void 0 : ae.leadSuccessDescription
|
|
5347
5348
|
}
|
|
5348
5349
|
) })
|
|
5349
5350
|
}
|
|
@@ -5364,7 +5365,7 @@ const Di = (e) => {
|
|
|
5364
5365
|
)
|
|
5365
5366
|
}
|
|
5366
5367
|
),
|
|
5367
|
-
!k && /* @__PURE__ */ t(i, { sx:
|
|
5368
|
+
!k && /* @__PURE__ */ t(i, { sx: L.paginationContainer, children: /* @__PURE__ */ t(
|
|
5368
5369
|
Xt,
|
|
5369
5370
|
{
|
|
5370
5371
|
matchQuiz: e.matchQuiz,
|
|
@@ -5374,7 +5375,7 @@ const Di = (e) => {
|
|
|
5374
5375
|
isSplitVariant: !0
|
|
5375
5376
|
}
|
|
5376
5377
|
) }),
|
|
5377
|
-
/* @__PURE__ */ t(i, { sx:
|
|
5378
|
+
/* @__PURE__ */ t(i, { sx: L.questionAreaContent, children: /* @__PURE__ */ d(i, { sx: L.mainContentContainer, children: [
|
|
5378
5379
|
n === O ? /* @__PURE__ */ t(
|
|
5379
5380
|
ft,
|
|
5380
5381
|
{
|
|
@@ -5388,7 +5389,7 @@ const Di = (e) => {
|
|
|
5388
5389
|
isSplitVariant: !0
|
|
5389
5390
|
}
|
|
5390
5391
|
) : q(),
|
|
5391
|
-
/* @__PURE__ */ d(i, { sx:
|
|
5392
|
+
/* @__PURE__ */ d(i, { sx: L.navigationContainer, children: [
|
|
5392
5393
|
n > 1 && n < O && /* @__PURE__ */ t(
|
|
5393
5394
|
Pe,
|
|
5394
5395
|
{
|
|
@@ -5414,7 +5415,7 @@ const Di = (e) => {
|
|
|
5414
5415
|
fontSize: "0.9375em"
|
|
5415
5416
|
},
|
|
5416
5417
|
children: /* @__PURE__ */ t(
|
|
5417
|
-
|
|
5418
|
+
y,
|
|
5418
5419
|
{
|
|
5419
5420
|
sx: {
|
|
5420
5421
|
fontFamily: I,
|
|
@@ -5445,7 +5446,7 @@ const Di = (e) => {
|
|
|
5445
5446
|
py: "10px",
|
|
5446
5447
|
px: "16px",
|
|
5447
5448
|
bgcolor: g,
|
|
5448
|
-
color:
|
|
5449
|
+
color: F,
|
|
5449
5450
|
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
5450
5451
|
transform: "scale(1)",
|
|
5451
5452
|
alignSelf: "center",
|
|
@@ -5454,19 +5455,19 @@ const Di = (e) => {
|
|
|
5454
5455
|
transform: "scale(1.02)"
|
|
5455
5456
|
},
|
|
5456
5457
|
"&:active": {
|
|
5457
|
-
color:
|
|
5458
|
+
color: F,
|
|
5458
5459
|
transform: "scale(0.98)"
|
|
5459
5460
|
},
|
|
5460
5461
|
"&:disabled": {
|
|
5461
5462
|
bgcolor: g,
|
|
5462
|
-
color:
|
|
5463
|
+
color: F,
|
|
5463
5464
|
opacity: "12%"
|
|
5464
5465
|
},
|
|
5465
|
-
"--Icon-color":
|
|
5466
|
+
"--Icon-color": F,
|
|
5466
5467
|
fontSize: "0.9375em"
|
|
5467
5468
|
},
|
|
5468
5469
|
children: /* @__PURE__ */ t(
|
|
5469
|
-
|
|
5470
|
+
y,
|
|
5470
5471
|
{
|
|
5471
5472
|
sx: {
|
|
5472
5473
|
fontFamily: I,
|
|
@@ -5475,7 +5476,7 @@ const Di = (e) => {
|
|
|
5475
5476
|
lineHeight: "24px",
|
|
5476
5477
|
letterSpacing: "0.46px",
|
|
5477
5478
|
textTransform: "uppercase",
|
|
5478
|
-
color:
|
|
5479
|
+
color: F,
|
|
5479
5480
|
gap: "8px",
|
|
5480
5481
|
display: "flex",
|
|
5481
5482
|
alignItems: "center"
|
|
@@ -5499,16 +5500,16 @@ const Di = (e) => {
|
|
|
5499
5500
|
default:
|
|
5500
5501
|
return B();
|
|
5501
5502
|
}
|
|
5502
|
-
}, Ie = (
|
|
5503
|
-
var Y, K, G,
|
|
5503
|
+
}, Ie = (D) => {
|
|
5504
|
+
var Y, K, G, ie, X;
|
|
5504
5505
|
return /* @__PURE__ */ t(
|
|
5505
5506
|
ke,
|
|
5506
5507
|
{
|
|
5507
5508
|
brandingLogo: S,
|
|
5508
|
-
textColor:
|
|
5509
|
+
textColor: D,
|
|
5509
5510
|
label: ((Y = e.matchQuiz.labels) == null ? void 0 : Y.sponsor) || null,
|
|
5510
5511
|
primaryUrl: (G = (K = e.matchQuiz.branding) == null ? void 0 : K.urls) == null ? void 0 : G.primaryUrl,
|
|
5511
|
-
secondaryUrl: (X = (
|
|
5512
|
+
secondaryUrl: (X = (ie = e.matchQuiz.branding) == null ? void 0 : ie.urls) == null ? void 0 : X.secondaryUrl
|
|
5512
5513
|
}
|
|
5513
5514
|
);
|
|
5514
5515
|
};
|
|
@@ -5518,7 +5519,7 @@ const Di = (e) => {
|
|
|
5518
5519
|
{
|
|
5519
5520
|
entity: e.matchQuiz,
|
|
5520
5521
|
headline: m("matchQuiz.headline"),
|
|
5521
|
-
finalImage:
|
|
5522
|
+
finalImage: x,
|
|
5522
5523
|
brandingLogo: S,
|
|
5523
5524
|
renderPresentedBy: Ie,
|
|
5524
5525
|
rulesDisplay: e.rulesDisplay,
|
|
@@ -5529,7 +5530,7 @@ const Di = (e) => {
|
|
|
5529
5530
|
(a == null ? void 0 : a.contentColor) || h.colorSchemes.dark.textColor
|
|
5530
5531
|
) })
|
|
5531
5532
|
] });
|
|
5532
|
-
},
|
|
5533
|
+
}, Wi = (e) => {
|
|
5533
5534
|
var n, o, r;
|
|
5534
5535
|
return {
|
|
5535
5536
|
// Main content area
|
|
@@ -5783,16 +5784,16 @@ const Di = (e) => {
|
|
|
5783
5784
|
// border: "1px dashed rgba(255,255,255,0.7)",
|
|
5784
5785
|
}
|
|
5785
5786
|
};
|
|
5786
|
-
},
|
|
5787
|
+
}, Vi = (e, n) => {
|
|
5787
5788
|
switch (e) {
|
|
5788
5789
|
case "success":
|
|
5789
|
-
return /* @__PURE__ */ t(
|
|
5790
|
+
return /* @__PURE__ */ t(Yn, {});
|
|
5790
5791
|
case "error":
|
|
5791
|
-
return /* @__PURE__ */ t(
|
|
5792
|
+
return /* @__PURE__ */ t(Zn, { sx: { color: n } });
|
|
5792
5793
|
case "info":
|
|
5793
|
-
return /* @__PURE__ */ t(
|
|
5794
|
+
return /* @__PURE__ */ t(Kn, {});
|
|
5794
5795
|
}
|
|
5795
|
-
},
|
|
5796
|
+
}, ji = (e) => {
|
|
5796
5797
|
switch (e) {
|
|
5797
5798
|
case "success":
|
|
5798
5799
|
return "success";
|
|
@@ -5807,13 +5808,13 @@ const Di = (e) => {
|
|
|
5807
5808
|
message: o,
|
|
5808
5809
|
description: r
|
|
5809
5810
|
}) => {
|
|
5810
|
-
const l = Ee(), h =
|
|
5811
|
+
const l = Ee(), h = re(), m = ee().secondary, u = ce(), f = ji(e);
|
|
5811
5812
|
return /* @__PURE__ */ t(
|
|
5812
|
-
|
|
5813
|
+
qn,
|
|
5813
5814
|
{
|
|
5814
5815
|
variant: "soft",
|
|
5815
5816
|
color: f,
|
|
5816
|
-
startDecorator:
|
|
5817
|
+
startDecorator: Vi(
|
|
5817
5818
|
e,
|
|
5818
5819
|
l.colorSchemes.light.palette.danger.plainColor
|
|
5819
5820
|
),
|
|
@@ -5824,14 +5825,14 @@ const Di = (e) => {
|
|
|
5824
5825
|
"--Icon-fontSize": u ? "1em" : "1.25em"
|
|
5825
5826
|
},
|
|
5826
5827
|
children: /* @__PURE__ */ d(
|
|
5827
|
-
|
|
5828
|
+
Xn,
|
|
5828
5829
|
{
|
|
5829
5830
|
sx: {
|
|
5830
5831
|
fontSize: "1.5em"
|
|
5831
5832
|
},
|
|
5832
5833
|
children: [
|
|
5833
5834
|
n && /* @__PURE__ */ t(
|
|
5834
|
-
|
|
5835
|
+
y,
|
|
5835
5836
|
{
|
|
5836
5837
|
level: "title-md",
|
|
5837
5838
|
color: f,
|
|
@@ -5841,7 +5842,7 @@ const Di = (e) => {
|
|
|
5841
5842
|
}
|
|
5842
5843
|
),
|
|
5843
5844
|
/* @__PURE__ */ t(
|
|
5844
|
-
|
|
5845
|
+
y,
|
|
5845
5846
|
{
|
|
5846
5847
|
level: "body-sm",
|
|
5847
5848
|
sx: { fontFamily: m, fontSize: "0.675em" },
|
|
@@ -5849,7 +5850,7 @@ const Di = (e) => {
|
|
|
5849
5850
|
}
|
|
5850
5851
|
),
|
|
5851
5852
|
r && /* @__PURE__ */ t(
|
|
5852
|
-
|
|
5853
|
+
y,
|
|
5853
5854
|
{
|
|
5854
5855
|
level: "body-xs",
|
|
5855
5856
|
sx: { fontFamily: m, fontSize: "0.6em" },
|
|
@@ -5861,7 +5862,7 @@ const Di = (e) => {
|
|
|
5861
5862
|
)
|
|
5862
5863
|
}
|
|
5863
5864
|
);
|
|
5864
|
-
},
|
|
5865
|
+
}, $i = (e) => {
|
|
5865
5866
|
var V, R, W, O;
|
|
5866
5867
|
const n = Ee(), o = Je(
|
|
5867
5868
|
{
|
|
@@ -5871,15 +5872,15 @@ const Di = (e) => {
|
|
|
5871
5872
|
Ce.STANDARD
|
|
5872
5873
|
), { t: r } = ne(), l = ((V = e.matchQuiz.branding) == null ? void 0 : V.colors) || null, h = ce(), m = h ? ((R = e.matchQuiz.branding) == null ? void 0 : R.images.mobileLogo) || ((W = e.matchQuiz.branding) == null ? void 0 : W.images.mainLogo) || "" : ((O = e.matchQuiz.branding) == null ? void 0 : O.images.mainLogo) || "", u = e.imagePosition || "left", f = e.matchQuiz.status === "OPEN", a = (k) => {
|
|
5873
5874
|
console.log(`Edit prediction for fixture at index: ${k}`);
|
|
5874
|
-
}, S = (l == null ? void 0 : l.contentColor) || _().textColor, s = ee().secondary,
|
|
5875
|
+
}, S = (l == null ? void 0 : l.contentColor) || _().textColor, s = ee().secondary, x = ee().primary, b = re(), z = Se(), C = `rgba(${ye(
|
|
5875
5876
|
_().surfaceVariant || ""
|
|
5876
5877
|
)}, 0.5)`, I = rt(
|
|
5877
5878
|
Ce.STANDARD
|
|
5878
|
-
), T = "60%", E = (l == null ? void 0 : l.secondaryColor) || _().textSecondary, g = _().secondaryContainer,
|
|
5879
|
+
), T = "60%", E = (l == null ? void 0 : l.secondaryColor) || _().textSecondary, g = _().secondaryContainer, F = Rt().size, P = Wi({
|
|
5879
5880
|
finalImage: o,
|
|
5880
5881
|
spacingScale: z,
|
|
5881
5882
|
borderRadius: b,
|
|
5882
|
-
fontFamilyPrimary:
|
|
5883
|
+
fontFamilyPrimary: x,
|
|
5883
5884
|
fontFamilySecondary: s,
|
|
5884
5885
|
textColor: S,
|
|
5885
5886
|
surfaceVariant: C,
|
|
@@ -5898,27 +5899,27 @@ const Di = (e) => {
|
|
|
5898
5899
|
alignItems: "center",
|
|
5899
5900
|
gap: "8px",
|
|
5900
5901
|
borderRadius: b.xl,
|
|
5901
|
-
border:
|
|
5902
|
+
border: F + " solid " + g,
|
|
5902
5903
|
bgcolor: g,
|
|
5903
5904
|
"&:hover": {
|
|
5904
5905
|
bgcolor: g,
|
|
5905
5906
|
opacity: 0.9
|
|
5906
5907
|
}
|
|
5907
|
-
},
|
|
5908
|
+
}, L = {
|
|
5908
5909
|
display: "flex",
|
|
5909
5910
|
justifyContent: "center",
|
|
5910
5911
|
alignItems: "center",
|
|
5911
5912
|
gap: "8px"
|
|
5912
5913
|
}, H = {
|
|
5913
5914
|
color: E,
|
|
5914
|
-
fontFamily:
|
|
5915
|
+
fontFamily: x,
|
|
5915
5916
|
fontSize: h ? "0.750em" : "0.8125em",
|
|
5916
5917
|
fontStyle: "normal",
|
|
5917
5918
|
fontWeight: 500,
|
|
5918
5919
|
lineHeight: "22px",
|
|
5919
5920
|
letterSpacing: "0.46px",
|
|
5920
5921
|
textTransform: "uppercase"
|
|
5921
|
-
},
|
|
5922
|
+
}, v = () => {
|
|
5922
5923
|
var k;
|
|
5923
5924
|
return /* @__PURE__ */ d(p, { children: [
|
|
5924
5925
|
e.isUnauthorized ? /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
@@ -5963,7 +5964,7 @@ const Di = (e) => {
|
|
|
5963
5964
|
{
|
|
5964
5965
|
additionalCTA: e.additionalCTA,
|
|
5965
5966
|
buttonStyle: M,
|
|
5966
|
-
buttonContentStyle:
|
|
5967
|
+
buttonContentStyle: L,
|
|
5967
5968
|
textStyle: H
|
|
5968
5969
|
}
|
|
5969
5970
|
)
|
|
@@ -5980,10 +5981,10 @@ const Di = (e) => {
|
|
|
5980
5981
|
finalImage: o,
|
|
5981
5982
|
imagePosition: u,
|
|
5982
5983
|
rulesDisplay: e.rulesDisplay,
|
|
5983
|
-
children:
|
|
5984
|
+
children: v()
|
|
5984
5985
|
}
|
|
5985
5986
|
) });
|
|
5986
|
-
},
|
|
5987
|
+
}, Ni = (e) => ({
|
|
5987
5988
|
// Question area content wrapper
|
|
5988
5989
|
questionAreaContent: {
|
|
5989
5990
|
p: e.spacingScale.lg,
|
|
@@ -6006,15 +6007,15 @@ const Di = (e) => {
|
|
|
6006
6007
|
alertMessageWrapper: {
|
|
6007
6008
|
p: e.spacingScale.lg
|
|
6008
6009
|
}
|
|
6009
|
-
}),
|
|
6010
|
-
var
|
|
6010
|
+
}), Ui = (e) => {
|
|
6011
|
+
var v, V, R, W, O, k, Q, ue, N;
|
|
6011
6012
|
const n = Ee(), { t: o } = ne(), r = ce(), l = un(), h = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? it : at, m = Je(
|
|
6012
6013
|
{
|
|
6013
6014
|
images: e.matchQuiz.images,
|
|
6014
6015
|
imagePlaceholder: h
|
|
6015
6016
|
},
|
|
6016
6017
|
Ce.SPLIT
|
|
6017
|
-
), u = ((
|
|
6018
|
+
), u = ((v = e.matchQuiz.branding) == null ? void 0 : v.colors) || null, f = (u == null ? void 0 : u.secondaryColor) || _().textSecondary, a = _().secondaryContainer, S = ee().primary, s = (u == null ? void 0 : u.backgroundColor) || _().surfaceVariant, x = re(), b = _().textColor, z = Se(), C = Rt().size, I = r ? ((V = e.matchQuiz.branding) == null ? void 0 : V.images.mobileLogo) || ((R = e.matchQuiz.branding) == null ? void 0 : R.images.mainLogo) || "" : ((W = e.matchQuiz.branding) == null ? void 0 : W.images.mainLogo) || "", T = e.matchQuiz.status === "OPEN" && e.prediction && e.squads && e.onPredictionUpdate, E = (U) => {
|
|
6018
6019
|
console.log(`Edit prediction for fixture at index: ${U}`);
|
|
6019
6020
|
}, g = !l && I ? /* @__PURE__ */ t(
|
|
6020
6021
|
ke,
|
|
@@ -6025,9 +6026,9 @@ const Di = (e) => {
|
|
|
6025
6026
|
primaryUrl: (Q = (k = e.matchQuiz.branding) == null ? void 0 : k.urls) == null ? void 0 : Q.primaryUrl,
|
|
6026
6027
|
secondaryUrl: (N = (ue = e.matchQuiz.branding) == null ? void 0 : ue.urls) == null ? void 0 : N.secondaryUrl
|
|
6027
6028
|
}
|
|
6028
|
-
) : null,
|
|
6029
|
+
) : null, F = Ni({
|
|
6029
6030
|
spacingScale: z,
|
|
6030
|
-
borderRadius:
|
|
6031
|
+
borderRadius: x,
|
|
6031
6032
|
bgcolor: ye(s || ""),
|
|
6032
6033
|
isMobile: r
|
|
6033
6034
|
}), P = {
|
|
@@ -6038,7 +6039,7 @@ const Di = (e) => {
|
|
|
6038
6039
|
justifyContent: "center",
|
|
6039
6040
|
alignItems: "center",
|
|
6040
6041
|
gap: "8px",
|
|
6041
|
-
borderRadius:
|
|
6042
|
+
borderRadius: x.xl,
|
|
6042
6043
|
bgcolor: a,
|
|
6043
6044
|
border: `${C} solid ${a}`,
|
|
6044
6045
|
"&:hover": {
|
|
@@ -6052,7 +6053,7 @@ const Di = (e) => {
|
|
|
6052
6053
|
justifyContent: "center",
|
|
6053
6054
|
alignItems: "center",
|
|
6054
6055
|
gap: "8px"
|
|
6055
|
-
},
|
|
6056
|
+
}, L = {
|
|
6056
6057
|
color: f,
|
|
6057
6058
|
fontFamily: S,
|
|
6058
6059
|
fontStyle: "normal",
|
|
@@ -6063,7 +6064,7 @@ const Di = (e) => {
|
|
|
6063
6064
|
}, H = () => {
|
|
6064
6065
|
var U, $, xe, ge, ze;
|
|
6065
6066
|
return /* @__PURE__ */ t(
|
|
6066
|
-
|
|
6067
|
+
Dn,
|
|
6067
6068
|
{
|
|
6068
6069
|
entity: e.matchQuiz,
|
|
6069
6070
|
headline: o("matchQuiz.headline"),
|
|
@@ -6072,14 +6073,14 @@ const Di = (e) => {
|
|
|
6072
6073
|
isTabulated: !1,
|
|
6073
6074
|
alwaysShowImage: !0,
|
|
6074
6075
|
rulesDisplay: e.rulesDisplay,
|
|
6075
|
-
children: e.isUnauthorized ? /* @__PURE__ */ t(i, { sx:
|
|
6076
|
+
children: e.isUnauthorized ? /* @__PURE__ */ t(i, { sx: F.alertMessageArea, children: /* @__PURE__ */ t(i, { sx: F.alertMessageWrapper, children: /* @__PURE__ */ t(
|
|
6076
6077
|
Zt,
|
|
6077
6078
|
{
|
|
6078
6079
|
variant: "error",
|
|
6079
6080
|
title: o("common.authentication.accessRequired"),
|
|
6080
6081
|
message: o("common.authentication.invalidOrMissingAuth")
|
|
6081
6082
|
}
|
|
6082
|
-
) }) }) : /* @__PURE__ */ d(i, { sx:
|
|
6083
|
+
) }) }) : /* @__PURE__ */ d(i, { sx: F.questionAreaContent, children: [
|
|
6083
6084
|
/* @__PURE__ */ t(
|
|
6084
6085
|
i,
|
|
6085
6086
|
{
|
|
@@ -6090,7 +6091,7 @@ const Di = (e) => {
|
|
|
6090
6091
|
flexDirection: "column",
|
|
6091
6092
|
backdropFilter: "blur(4px)",
|
|
6092
6093
|
bgcolor: `rgba(${s ? ye(s || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
6093
|
-
borderRadius:
|
|
6094
|
+
borderRadius: x.sm,
|
|
6094
6095
|
position: "relative",
|
|
6095
6096
|
overflow: "visible"
|
|
6096
6097
|
},
|
|
@@ -6125,7 +6126,7 @@ const Di = (e) => {
|
|
|
6125
6126
|
additionalCTA: e.additionalCTA,
|
|
6126
6127
|
buttonStyle: P,
|
|
6127
6128
|
buttonContentStyle: M,
|
|
6128
|
-
textStyle:
|
|
6129
|
+
textStyle: L
|
|
6129
6130
|
}
|
|
6130
6131
|
)
|
|
6131
6132
|
}
|
|
@@ -6146,7 +6147,7 @@ const Di = (e) => {
|
|
|
6146
6147
|
);
|
|
6147
6148
|
};
|
|
6148
6149
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: (u == null ? void 0 : u.borderColor) || null, children: H() });
|
|
6149
|
-
},
|
|
6150
|
+
}, Gi = (e) => {
|
|
6150
6151
|
var n, o, r;
|
|
6151
6152
|
return {
|
|
6152
6153
|
// Main headline section with background image
|
|
@@ -6375,14 +6376,14 @@ const Di = (e) => {
|
|
|
6375
6376
|
lineHeight: 1
|
|
6376
6377
|
}
|
|
6377
6378
|
};
|
|
6378
|
-
},
|
|
6379
|
+
}, Yi = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_1048'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_1048)'%3e%3cpath%20d='M12%2020.6254L5.20005%2016.9254V11.1254L1.36255%209.01289L12%203.21289L22.65%209.01464V16.7504H20.775V10.0504L18.8%2011.1254V16.9254L12%2020.6254ZM12%2012.6754L18.75%209.01289L12%205.36289L5.26255%209.01289L12%2012.6754ZM12%2018.4879L16.925%2015.8296V12.1129L12%2014.8254L7.07505%2012.1129V15.8296L12%2018.4879Z'%20fill='%23212121'/%3e%3c/g%3e%3c/svg%3e", qi = "data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_504'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='25'%20height='24'%3e%3crect%20x='0.5'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_504)'%3e%3cpath%20d='M9.6875%206H11.5625V4.125H9.6875V6ZM13.4375%206V4.125H15.3125V6H13.4375ZM9.6875%2013.5V11.625H11.5625V13.5H9.6875ZM17.1875%209.75V7.875H19.0625V9.75H17.1875ZM17.1875%2013.5V11.625H19.0625V13.5H17.1875ZM13.4375%2013.5V11.625H15.3125V13.5H13.4375ZM17.1875%206V4.125H19.0625V6H17.1875ZM11.5625%207.875V6H13.4375V7.875H11.5625ZM5.9375%2019.825V4.125H7.8125V6H9.6875V7.875H7.8125V9.75H9.6875V11.625H7.8125V19.825H5.9375ZM15.3125%2011.625V9.75H17.1875V11.625H15.3125ZM11.5625%2011.625V9.75H13.4375V11.625H11.5625ZM9.6875%209.75V7.875H11.5625V9.75H9.6875ZM13.4375%209.75V7.875H15.3125V9.75H13.4375ZM15.3125%207.875V6H17.1875V7.875H15.3125Z'%20fill='%23212121'/%3e%3c/g%3e%3c/svg%3e", Xi = ({
|
|
6379
6380
|
market: e,
|
|
6380
6381
|
earnedPoints: n
|
|
6381
6382
|
}) => {
|
|
6382
|
-
const { t: o } = ne(), r = _(), l =
|
|
6383
|
+
const { t: o } = ne(), r = _(), l = re(), h = ee(), m = Se(), { points: u } = De(_e), f = u.find((P) => P.id === e);
|
|
6383
6384
|
if (!f)
|
|
6384
6385
|
return null;
|
|
6385
|
-
const a = f.points, S = n ?? 0, s = S > 0,
|
|
6386
|
+
const a = f.points, S = n ?? 0, s = S > 0, x = r.palette.success.plainColor, b = r.palette.danger.plainColor, z = r.textSecondary, C = s ? x : S === 0 ? b : z, I = s ? r.palette.success.softBg : S === 0 ? r.palette.danger.softBg : r.palette.neutral.softBg, T = {
|
|
6386
6387
|
display: "flex",
|
|
6387
6388
|
alignItems: "center",
|
|
6388
6389
|
gap: m.xs,
|
|
@@ -6403,21 +6404,21 @@ const Di = (e) => {
|
|
|
6403
6404
|
fontWeight: 500,
|
|
6404
6405
|
fontSize: "0.75em",
|
|
6405
6406
|
color: r.textSecondary
|
|
6406
|
-
},
|
|
6407
|
+
}, F = {
|
|
6407
6408
|
fontFamily: h.primary,
|
|
6408
6409
|
fontWeight: 500,
|
|
6409
6410
|
fontSize: "0.75em",
|
|
6410
6411
|
color: r.textSecondary
|
|
6411
6412
|
};
|
|
6412
6413
|
return /* @__PURE__ */ d(i, { sx: T, children: [
|
|
6413
|
-
/* @__PURE__ */ t(
|
|
6414
|
-
/* @__PURE__ */ t(
|
|
6415
|
-
/* @__PURE__ */ t(
|
|
6414
|
+
/* @__PURE__ */ t(y, { sx: E, children: S }),
|
|
6415
|
+
/* @__PURE__ */ t(y, { sx: g, children: "/" }),
|
|
6416
|
+
/* @__PURE__ */ t(y, { sx: F, children: a }),
|
|
6416
6417
|
/* @__PURE__ */ t(
|
|
6417
|
-
|
|
6418
|
+
y,
|
|
6418
6419
|
{
|
|
6419
6420
|
sx: {
|
|
6420
|
-
...
|
|
6421
|
+
...F,
|
|
6421
6422
|
fontSize: "0.625em"
|
|
6422
6423
|
},
|
|
6423
6424
|
children: o("matchQuiz.points.pts")
|
|
@@ -6433,7 +6434,7 @@ const Di = (e) => {
|
|
|
6433
6434
|
brandingColors: h
|
|
6434
6435
|
}) => {
|
|
6435
6436
|
var O;
|
|
6436
|
-
const [m, u] = et.useState(0), f = Ee(), { t: a } = ne(), { squads: S, points: s } =
|
|
6437
|
+
const [m, u] = et.useState(0), f = Ee(), { t: a } = ne(), { squads: S, points: s } = De(_e), x = ce(), b = Ne(), z = re().md, C = r ? f.colorSchemes.dark.textPrimary : _().textPrimary, I = r ? f.colorSchemes.dark.textSecondary : _().textSecondary, T = ee().primary, E = ee().secondary, g = r ? f.colorSchemes.dark.secondaryContainer : _().secondaryContainer, F = h != null && h.backgroundColor || r ? f.colorSchemes.dark.surfaceVariant : _().surfaceVariant, P = Se(), M = _().palette.success.plainColor, L = _().palette.danger.plainColor, H = r ? f.colorSchemes.dark.outlineEnabledBorder : _().outlineEnabledBorder, v = r ? f.colorSchemes.dark.palette.neutral.softBg : _().palette.neutral.softBg;
|
|
6437
6438
|
let V = r ? f.colorSchemes.dark.textPrimary : _().textPrimary;
|
|
6438
6439
|
h != null && h.primaryColor && (V = h.primaryColor);
|
|
6439
6440
|
const R = (O = s.find(
|
|
@@ -6519,7 +6520,7 @@ const Di = (e) => {
|
|
|
6519
6520
|
}
|
|
6520
6521
|
return null;
|
|
6521
6522
|
}, $ = (se, q) => {
|
|
6522
|
-
var Me, Qe, Oe, He, Be, We, Ve, je,
|
|
6523
|
+
var Me, Qe, Oe, He, Be, We, Ve, je, D, Y, K, G, ie;
|
|
6523
6524
|
if (!se) return null;
|
|
6524
6525
|
const B = q.market, j = q.matchModel, Ie = (Me = se.prediction) == null ? void 0 : Me.value, we = (Qe = se.prediction) == null ? void 0 : Qe.playerId, de = {
|
|
6525
6526
|
display: "flex",
|
|
@@ -6530,7 +6531,7 @@ const Di = (e) => {
|
|
|
6530
6531
|
minHeight: "20px",
|
|
6531
6532
|
borderRadius: z,
|
|
6532
6533
|
border: `1px solid ${H}`,
|
|
6533
|
-
backgroundColor:
|
|
6534
|
+
backgroundColor: v,
|
|
6534
6535
|
width: "fit-content"
|
|
6535
6536
|
}, Te = {
|
|
6536
6537
|
width: b ? "16px" : "20px",
|
|
@@ -6538,11 +6539,11 @@ const Di = (e) => {
|
|
|
6538
6539
|
borderRadius: "50%",
|
|
6539
6540
|
overflow: "hidden",
|
|
6540
6541
|
flexShrink: 0
|
|
6541
|
-
},
|
|
6542
|
+
}, Fe = {
|
|
6542
6543
|
width: b ? "16px" : "20px",
|
|
6543
6544
|
height: b ? "16px" : "20px",
|
|
6544
6545
|
borderRadius: "50%",
|
|
6545
|
-
backgroundColor:
|
|
6546
|
+
backgroundColor: v,
|
|
6546
6547
|
color: "#FFFFFF",
|
|
6547
6548
|
display: "flex",
|
|
6548
6549
|
alignItems: "center",
|
|
@@ -6574,7 +6575,7 @@ const Di = (e) => {
|
|
|
6574
6575
|
}
|
|
6575
6576
|
}
|
|
6576
6577
|
) }),
|
|
6577
|
-
/* @__PURE__ */ d(
|
|
6578
|
+
/* @__PURE__ */ d(y, { sx: Ae, children: [
|
|
6578
6579
|
w,
|
|
6579
6580
|
":",
|
|
6580
6581
|
Z
|
|
@@ -6597,7 +6598,7 @@ const Di = (e) => {
|
|
|
6597
6598
|
if (B === c.FT_1X2 || B === c.HT_1X2) {
|
|
6598
6599
|
const X = Ie;
|
|
6599
6600
|
let w = "", Z = null;
|
|
6600
|
-
return X === "1" ? (w = ((Ve = j == null ? void 0 : j.homeTeam) == null ? void 0 : Ve.name) || "Home", Z = (
|
|
6601
|
+
return X === "1" ? (w = ((Ve = j == null ? void 0 : j.homeTeam) == null ? void 0 : Ve.name) || "Home", Z = (D = (je = j == null ? void 0 : j.homeTeam) == null ? void 0 : je.assets) == null ? void 0 : D.logo) : X === "x" || X === "X" ? w = a("matchQuiz.fixtures.draw") : X === "2" && (w = ((Y = j == null ? void 0 : j.awayTeam) == null ? void 0 : Y.name) || "Away", Z = (G = (K = j == null ? void 0 : j.awayTeam) == null ? void 0 : K.assets) == null ? void 0 : G.logo), /* @__PURE__ */ d(i, { sx: de, children: [
|
|
6601
6602
|
Z && /* @__PURE__ */ t(i, { sx: Te, children: /* @__PURE__ */ t(
|
|
6602
6603
|
"img",
|
|
6603
6604
|
{
|
|
@@ -6611,17 +6612,17 @@ const Di = (e) => {
|
|
|
6611
6612
|
}
|
|
6612
6613
|
}
|
|
6613
6614
|
) }),
|
|
6614
|
-
/* @__PURE__ */ t(
|
|
6615
|
+
/* @__PURE__ */ t(y, { sx: Ae, children: w })
|
|
6615
6616
|
] });
|
|
6616
6617
|
}
|
|
6617
6618
|
if (B.includes("PLAYER_")) {
|
|
6618
6619
|
if (!we)
|
|
6619
|
-
return /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(
|
|
6620
|
+
return /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(y, { sx: Ae, children: a("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
6620
6621
|
if (we === "OWN_GOAL")
|
|
6621
|
-
return /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(
|
|
6622
|
-
const X = U(we), w = (X == null ? void 0 : X.name) || "Unknown Player", Z = (
|
|
6622
|
+
return /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(y, { sx: Ae, children: a("matchQuiz.fixtures.ownGoal") }) });
|
|
6623
|
+
const X = U(we), w = (X == null ? void 0 : X.name) || "Unknown Player", Z = (ie = X == null ? void 0 : X.assets) == null ? void 0 : ie.headshot;
|
|
6623
6624
|
return /* @__PURE__ */ d(i, { sx: de, children: [
|
|
6624
|
-
/* @__PURE__ */ t(i, { sx:
|
|
6625
|
+
/* @__PURE__ */ t(i, { sx: Fe, children: Z ? /* @__PURE__ */ t(
|
|
6625
6626
|
"img",
|
|
6626
6627
|
{
|
|
6627
6628
|
src: Z,
|
|
@@ -6639,12 +6640,12 @@ const Di = (e) => {
|
|
|
6639
6640
|
sx: { fontSize: "0.75em", color: I }
|
|
6640
6641
|
}
|
|
6641
6642
|
) }),
|
|
6642
|
-
/* @__PURE__ */ t(
|
|
6643
|
+
/* @__PURE__ */ t(y, { sx: Ae, children: w })
|
|
6643
6644
|
] });
|
|
6644
6645
|
}
|
|
6645
|
-
return B === c.PENALTY_MATCH || B === c.RED_CARD_MATCH || B.includes("OVER_") ? /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(
|
|
6646
|
+
return B === c.PENALTY_MATCH || B === c.RED_CARD_MATCH || B.includes("OVER_") ? /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(y, { sx: Ae, children: a(Ie === !0 ? "matchQuiz.fixtures.yes" : "matchQuiz.fixtures.no") }) }) : B === c.CORNERS_MATCH ? /* @__PURE__ */ t(i, { sx: de, children: /* @__PURE__ */ t(y, { sx: Ae, children: Ie || 6 }) }) : null;
|
|
6646
6647
|
}, xe = (se) => {
|
|
6647
|
-
var
|
|
6648
|
+
var Fe, Ae, Me, Qe, Oe, He, Be, We, Ve, je, D;
|
|
6648
6649
|
const q = se.market, B = se.matchModel, j = se.result, Ie = {
|
|
6649
6650
|
display: "flex",
|
|
6650
6651
|
alignItems: "center",
|
|
@@ -6654,7 +6655,7 @@ const Di = (e) => {
|
|
|
6654
6655
|
minHeight: "20px",
|
|
6655
6656
|
borderRadius: z,
|
|
6656
6657
|
border: `1px solid ${H}`,
|
|
6657
|
-
backgroundColor:
|
|
6658
|
+
backgroundColor: v,
|
|
6658
6659
|
width: "fit-content"
|
|
6659
6660
|
}, we = {
|
|
6660
6661
|
width: b ? "16px" : "20px",
|
|
@@ -6666,7 +6667,7 @@ const Di = (e) => {
|
|
|
6666
6667
|
width: b ? "16px" : "20px",
|
|
6667
6668
|
height: b ? "16px" : "20px",
|
|
6668
6669
|
borderRadius: "50%",
|
|
6669
|
-
backgroundColor:
|
|
6670
|
+
backgroundColor: v,
|
|
6670
6671
|
color: "#FFFFFF",
|
|
6671
6672
|
display: "flex",
|
|
6672
6673
|
alignItems: "center",
|
|
@@ -6685,7 +6686,7 @@ const Di = (e) => {
|
|
|
6685
6686
|
if (q === c.CORRECT_SCORE || q === c.CORRECT_SCORE_HT || q === c.CORRECT_SCORE_ADVANCED) {
|
|
6686
6687
|
const Y = j || "0:0", [K, G] = Y.split(":");
|
|
6687
6688
|
return /* @__PURE__ */ d(i, { sx: Ie, children: [
|
|
6688
|
-
((Ae = (
|
|
6689
|
+
((Ae = (Fe = B == null ? void 0 : B.homeTeam) == null ? void 0 : Fe.assets) == null ? void 0 : Ae.logo) && /* @__PURE__ */ t(i, { sx: we, children: /* @__PURE__ */ t(
|
|
6689
6690
|
"img",
|
|
6690
6691
|
{
|
|
6691
6692
|
src: B.homeTeam.assets.logo,
|
|
@@ -6698,7 +6699,7 @@ const Di = (e) => {
|
|
|
6698
6699
|
}
|
|
6699
6700
|
}
|
|
6700
6701
|
) }),
|
|
6701
|
-
/* @__PURE__ */ d(
|
|
6702
|
+
/* @__PURE__ */ d(y, { sx: Te, children: [
|
|
6702
6703
|
K,
|
|
6703
6704
|
":",
|
|
6704
6705
|
G
|
|
@@ -6735,7 +6736,7 @@ const Di = (e) => {
|
|
|
6735
6736
|
}
|
|
6736
6737
|
}
|
|
6737
6738
|
) }),
|
|
6738
|
-
/* @__PURE__ */ t(
|
|
6739
|
+
/* @__PURE__ */ t(y, { sx: Te, children: K })
|
|
6739
6740
|
] });
|
|
6740
6741
|
}
|
|
6741
6742
|
if (q.includes("PLAYER_")) {
|
|
@@ -6747,10 +6748,10 @@ const Di = (e) => {
|
|
|
6747
6748
|
);
|
|
6748
6749
|
}).filter(Boolean);
|
|
6749
6750
|
if (Y.length === 0)
|
|
6750
|
-
return /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(
|
|
6751
|
+
return /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(y, { sx: Te, children: a("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
6751
6752
|
const K = Y[0];
|
|
6752
6753
|
return /* @__PURE__ */ d(i, { sx: Ie, children: [
|
|
6753
|
-
/* @__PURE__ */ t(i, { sx: de, children: (
|
|
6754
|
+
/* @__PURE__ */ t(i, { sx: de, children: (D = K == null ? void 0 : K.assets) != null && D.headshot ? /* @__PURE__ */ t(
|
|
6754
6755
|
"img",
|
|
6755
6756
|
{
|
|
6756
6757
|
src: K.assets.headshot,
|
|
@@ -6768,12 +6769,12 @@ const Di = (e) => {
|
|
|
6768
6769
|
sx: { fontSize: "0.75em", color: I }
|
|
6769
6770
|
}
|
|
6770
6771
|
) }),
|
|
6771
|
-
/* @__PURE__ */ t(
|
|
6772
|
+
/* @__PURE__ */ t(y, { sx: Te, children: Y.map((G) => G == null ? void 0 : G.name).join(", ") })
|
|
6772
6773
|
] });
|
|
6773
6774
|
}
|
|
6774
|
-
return /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(
|
|
6775
|
+
return /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(y, { sx: Te, children: a("matchQuiz.fixtures.noGoalWillBeScored") }) });
|
|
6775
6776
|
}
|
|
6776
|
-
return q === c.PENALTY_MATCH || q === c.RED_CARD_MATCH || q.includes("OVER_") ? /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(
|
|
6777
|
+
return q === c.PENALTY_MATCH || q === c.RED_CARD_MATCH || q.includes("OVER_") ? /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(y, { sx: Te, children: a(j === !0 ? "matchQuiz.fixtures.yes" : "matchQuiz.fixtures.no") }) }) : q === c.CORNERS_MATCH ? /* @__PURE__ */ t(i, { sx: Ie, children: /* @__PURE__ */ t(y, { sx: Te, children: j || 6 }) }) : null;
|
|
6777
6778
|
};
|
|
6778
6779
|
return /* @__PURE__ */ t(
|
|
6779
6780
|
i,
|
|
@@ -6795,7 +6796,7 @@ const Di = (e) => {
|
|
|
6795
6796
|
left: 0,
|
|
6796
6797
|
right: 0,
|
|
6797
6798
|
bottom: 0,
|
|
6798
|
-
backgroundColor:
|
|
6799
|
+
backgroundColor: F,
|
|
6799
6800
|
opacity: 0.5,
|
|
6800
6801
|
borderRadius: "inherit",
|
|
6801
6802
|
zIndex: 0,
|
|
@@ -6828,7 +6829,7 @@ const Di = (e) => {
|
|
|
6828
6829
|
},
|
|
6829
6830
|
children: [
|
|
6830
6831
|
/* @__PURE__ */ t(
|
|
6831
|
-
|
|
6832
|
+
y,
|
|
6832
6833
|
{
|
|
6833
6834
|
sx: {
|
|
6834
6835
|
color: C,
|
|
@@ -6844,7 +6845,7 @@ const Di = (e) => {
|
|
|
6844
6845
|
}
|
|
6845
6846
|
),
|
|
6846
6847
|
!b && /* @__PURE__ */ t(
|
|
6847
|
-
|
|
6848
|
+
Xi,
|
|
6848
6849
|
{
|
|
6849
6850
|
market: k.market,
|
|
6850
6851
|
earnedPoints: (ze = Q == null ? void 0 : Q.result) == null ? void 0 : ze.points
|
|
@@ -6873,10 +6874,10 @@ const Di = (e) => {
|
|
|
6873
6874
|
},
|
|
6874
6875
|
children: [
|
|
6875
6876
|
/* @__PURE__ */ t(
|
|
6876
|
-
|
|
6877
|
+
y,
|
|
6877
6878
|
{
|
|
6878
6879
|
sx: {
|
|
6879
|
-
color: N(k, Q) ? r ? f.colorSchemes.dark.palette.success.plainColor : M : r ? f.colorSchemes.dark.palette.danger.plainColor :
|
|
6880
|
+
color: N(k, Q) ? r ? f.colorSchemes.dark.palette.success.plainColor : M : r ? f.colorSchemes.dark.palette.danger.plainColor : L,
|
|
6880
6881
|
fontFamily: E,
|
|
6881
6882
|
fontSize: "1em",
|
|
6882
6883
|
fontStyle: "normal",
|
|
@@ -6901,7 +6902,7 @@ const Di = (e) => {
|
|
|
6901
6902
|
},
|
|
6902
6903
|
children: [
|
|
6903
6904
|
/* @__PURE__ */ t(
|
|
6904
|
-
|
|
6905
|
+
y,
|
|
6905
6906
|
{
|
|
6906
6907
|
sx: {
|
|
6907
6908
|
color: C,
|
|
@@ -6943,7 +6944,7 @@ const Di = (e) => {
|
|
|
6943
6944
|
alignSelf: "stretch"
|
|
6944
6945
|
},
|
|
6945
6946
|
children: /* @__PURE__ */ t(
|
|
6946
|
-
|
|
6947
|
+
y,
|
|
6947
6948
|
{
|
|
6948
6949
|
sx: {
|
|
6949
6950
|
color: C,
|
|
@@ -6984,8 +6985,8 @@ const Di = (e) => {
|
|
|
6984
6985
|
Cn,
|
|
6985
6986
|
{
|
|
6986
6987
|
sx: {
|
|
6987
|
-
fontSize:
|
|
6988
|
-
"--Icon-fontSize":
|
|
6988
|
+
fontSize: x ? "0.75em" : "1em",
|
|
6989
|
+
"--Icon-fontSize": x ? "1em" : "1.25em"
|
|
6989
6990
|
},
|
|
6990
6991
|
children: [
|
|
6991
6992
|
/* @__PURE__ */ t(
|
|
@@ -7004,7 +7005,7 @@ const Di = (e) => {
|
|
|
7004
7005
|
bgcolor: r ? "#FAFAFA14" : "#2121210A"
|
|
7005
7006
|
// Highlight selected tab
|
|
7006
7007
|
},
|
|
7007
|
-
[`&.${
|
|
7008
|
+
[`&.${mn.selected}`]: {
|
|
7008
7009
|
bgcolor: r ? "#FAFAFA14" : "#2121210A",
|
|
7009
7010
|
// Highlight selected tab
|
|
7010
7011
|
borderBottom: "3px solid " + V,
|
|
@@ -7030,7 +7031,7 @@ const Di = (e) => {
|
|
|
7030
7031
|
/* @__PURE__ */ t(
|
|
7031
7032
|
"img",
|
|
7032
7033
|
{
|
|
7033
|
-
src:
|
|
7034
|
+
src: qi,
|
|
7034
7035
|
alt: "results-icon",
|
|
7035
7036
|
style: {
|
|
7036
7037
|
display: "flex",
|
|
@@ -7043,7 +7044,7 @@ const Di = (e) => {
|
|
|
7043
7044
|
}
|
|
7044
7045
|
),
|
|
7045
7046
|
/* @__PURE__ */ t(
|
|
7046
|
-
|
|
7047
|
+
y,
|
|
7047
7048
|
{
|
|
7048
7049
|
sx: {
|
|
7049
7050
|
color: I,
|
|
@@ -7079,7 +7080,7 @@ const Di = (e) => {
|
|
|
7079
7080
|
bgcolor: r ? "#FAFAFA14" : "#2121210A"
|
|
7080
7081
|
// Highlight selected tab
|
|
7081
7082
|
},
|
|
7082
|
-
[`&.${
|
|
7083
|
+
[`&.${mn.selected}`]: {
|
|
7083
7084
|
bgcolor: r ? "#FAFAFA14" : "#2121210A",
|
|
7084
7085
|
// Highlight selected tab
|
|
7085
7086
|
borderBottom: "3px solid " + V,
|
|
@@ -7105,7 +7106,7 @@ const Di = (e) => {
|
|
|
7105
7106
|
/* @__PURE__ */ t(
|
|
7106
7107
|
"img",
|
|
7107
7108
|
{
|
|
7108
|
-
src:
|
|
7109
|
+
src: Yi,
|
|
7109
7110
|
alt: "predictions-icon",
|
|
7110
7111
|
style: {
|
|
7111
7112
|
display: "flex",
|
|
@@ -7118,7 +7119,7 @@ const Di = (e) => {
|
|
|
7118
7119
|
}
|
|
7119
7120
|
),
|
|
7120
7121
|
/* @__PURE__ */ t(
|
|
7121
|
-
|
|
7122
|
+
y,
|
|
7122
7123
|
{
|
|
7123
7124
|
sx: {
|
|
7124
7125
|
color: I,
|
|
@@ -7147,7 +7148,7 @@ const Di = (e) => {
|
|
|
7147
7148
|
value: 0,
|
|
7148
7149
|
sx: {
|
|
7149
7150
|
...o,
|
|
7150
|
-
fontSize: b ? "0.625em" :
|
|
7151
|
+
fontSize: b ? "0.625em" : x ? "0.75em" : "1em"
|
|
7151
7152
|
},
|
|
7152
7153
|
children: l
|
|
7153
7154
|
}
|
|
@@ -7158,7 +7159,7 @@ const Di = (e) => {
|
|
|
7158
7159
|
value: 1,
|
|
7159
7160
|
sx: {
|
|
7160
7161
|
overflowY: "auto",
|
|
7161
|
-
maxHeight:
|
|
7162
|
+
maxHeight: x ? "auto" : "450px",
|
|
7162
7163
|
fontSize: b ? "0.75em" : "1em"
|
|
7163
7164
|
},
|
|
7164
7165
|
children: /* @__PURE__ */ t(
|
|
@@ -7204,7 +7205,7 @@ const Di = (e) => {
|
|
|
7204
7205
|
},
|
|
7205
7206
|
children: [
|
|
7206
7207
|
/* @__PURE__ */ t(
|
|
7207
|
-
|
|
7208
|
+
y,
|
|
7208
7209
|
{
|
|
7209
7210
|
sx: {
|
|
7210
7211
|
color: C,
|
|
@@ -7217,7 +7218,7 @@ const Di = (e) => {
|
|
|
7217
7218
|
}
|
|
7218
7219
|
),
|
|
7219
7220
|
/* @__PURE__ */ t(
|
|
7220
|
-
|
|
7221
|
+
y,
|
|
7221
7222
|
{
|
|
7222
7223
|
sx: {
|
|
7223
7224
|
color: I,
|
|
@@ -7271,7 +7272,7 @@ const Di = (e) => {
|
|
|
7271
7272
|
null
|
|
7272
7273
|
), [l, h] = te(
|
|
7273
7274
|
null
|
|
7274
|
-
), [m, u] = te(1), [f, a] = te(null), [S, s] = te(!1),
|
|
7275
|
+
), [m, u] = te(1), [f, a] = te(null), [S, s] = te(!1), x = async (T = 1) => {
|
|
7275
7276
|
var E;
|
|
7276
7277
|
try {
|
|
7277
7278
|
s(!0);
|
|
@@ -7296,13 +7297,13 @@ const Di = (e) => {
|
|
|
7296
7297
|
console.warn(T), h([]);
|
|
7297
7298
|
}
|
|
7298
7299
|
}, z = (T) => {
|
|
7299
|
-
T >= 1 && f && T <= f.numberOfPages &&
|
|
7300
|
+
T >= 1 && f && T <= f.numberOfPages && x(T);
|
|
7300
7301
|
}, C = () => {
|
|
7301
7302
|
m > 1 && z(m - 1);
|
|
7302
7303
|
}, I = () => {
|
|
7303
7304
|
f && m < f.numberOfPages && z(m + 1);
|
|
7304
7305
|
};
|
|
7305
|
-
return gt(() => (
|
|
7306
|
+
return gt(() => (x(1), b(), () => {
|
|
7306
7307
|
r(null), h(null), a(null);
|
|
7307
7308
|
}), [e, n]), {
|
|
7308
7309
|
leaderboard: o,
|
|
@@ -7321,8 +7322,8 @@ const Di = (e) => {
|
|
|
7321
7322
|
showHeading: r,
|
|
7322
7323
|
isSplitVariant: l
|
|
7323
7324
|
}) => {
|
|
7324
|
-
var
|
|
7325
|
-
const { t: h } = ne(), m = Ee(), u = _(), f = ((
|
|
7325
|
+
var L;
|
|
7326
|
+
const { t: h } = ne(), m = Ee(), u = _(), f = ((L = o.branding) == null ? void 0 : L.colors) || null, a = (f == null ? void 0 : f.primaryColor) || u.palette.primary.plainColor, S = (f == null ? void 0 : f.contentColor) || u.textColor, s = ee().primary, x = ee().secondary, b = re(), z = Se(), C = Ne(), I = u.surfaceVariant, T = m.colorSchemes.light.palette.primary.onPrimary, E = u.outlineEnabledBorder, g = {
|
|
7326
7327
|
leaderboardContainer: {
|
|
7327
7328
|
display: "flex",
|
|
7328
7329
|
flexDirection: "column",
|
|
@@ -7445,7 +7446,7 @@ const Di = (e) => {
|
|
|
7445
7446
|
color: T
|
|
7446
7447
|
},
|
|
7447
7448
|
noLeaderboardText: {
|
|
7448
|
-
fontFamily:
|
|
7449
|
+
fontFamily: x,
|
|
7449
7450
|
fontSize: "1.25em",
|
|
7450
7451
|
color: S,
|
|
7451
7452
|
textAlign: "center",
|
|
@@ -7455,10 +7456,10 @@ const Di = (e) => {
|
|
|
7455
7456
|
if (!e || !n)
|
|
7456
7457
|
return /* @__PURE__ */ t(Ht, { my: 10 });
|
|
7457
7458
|
if (e.length === 0)
|
|
7458
|
-
return /* @__PURE__ */ t(
|
|
7459
|
-
const
|
|
7459
|
+
return /* @__PURE__ */ t(y, { level: "body-lg", sx: g.noLeaderboardText, children: h("matchQuiz.leaderboard.noLeaderboardAvailable") });
|
|
7460
|
+
const F = n && n.length > 0 ? n[0] : null, P = F == null ? void 0 : F.position, M = P && e.some((H) => H.position === P);
|
|
7460
7461
|
return /* @__PURE__ */ d(i, { sx: g.leaderboardContainer, children: [
|
|
7461
|
-
r && /* @__PURE__ */ t(
|
|
7462
|
+
r && /* @__PURE__ */ t(y, { level: "h4", sx: g.leaderboardTitle, children: h("matchQuiz.leaderboard.title") }),
|
|
7462
7463
|
/* @__PURE__ */ t(fn, { sx: g.tableContainer, children: /* @__PURE__ */ d(
|
|
7463
7464
|
xn,
|
|
7464
7465
|
{
|
|
@@ -7474,40 +7475,40 @@ const Di = (e) => {
|
|
|
7474
7475
|
/* @__PURE__ */ t("th", { style: g.headerCellPoints, children: C || l ? "🎯" : h("matchQuiz.leaderboard.points") })
|
|
7475
7476
|
] }) }),
|
|
7476
7477
|
/* @__PURE__ */ d("tbody", { children: [
|
|
7477
|
-
|
|
7478
|
-
/* @__PURE__ */ t("td", { style: g.tableCellPosition, children: /* @__PURE__ */ d(
|
|
7478
|
+
F && !M && /* @__PURE__ */ d("tr", { style: g.userRow, children: [
|
|
7479
|
+
/* @__PURE__ */ t("td", { style: g.tableCellPosition, children: /* @__PURE__ */ d(y, { sx: g.positionText, children: [
|
|
7479
7480
|
"#",
|
|
7480
|
-
|
|
7481
|
+
F.position
|
|
7481
7482
|
] }) }),
|
|
7482
7483
|
/* @__PURE__ */ t("td", { style: g.tableCellName, children: /* @__PURE__ */ d(i, { sx: g.nameCell, children: [
|
|
7483
|
-
/* @__PURE__ */ t(
|
|
7484
|
-
/* @__PURE__ */ t(
|
|
7484
|
+
/* @__PURE__ */ t(ln, { sx: g.leaderboardAvatar, children: /* @__PURE__ */ t(dn, { sx: g.avatarIcon }) }),
|
|
7485
|
+
/* @__PURE__ */ t(y, { sx: g.nameText, children: h("matchQuiz.leaderboard.you") })
|
|
7485
7486
|
] }) }),
|
|
7486
|
-
/* @__PURE__ */ t("td", { style: g.tableCellPoints, children: /* @__PURE__ */ t(
|
|
7487
|
+
/* @__PURE__ */ t("td", { style: g.tableCellPoints, children: /* @__PURE__ */ t(y, { sx: g.pointsText, children: F.points }) })
|
|
7487
7488
|
] }),
|
|
7488
7489
|
e.map((H) => {
|
|
7489
|
-
const
|
|
7490
|
+
const v = P === H.position;
|
|
7490
7491
|
return /* @__PURE__ */ d(
|
|
7491
7492
|
"tr",
|
|
7492
7493
|
{
|
|
7493
|
-
style:
|
|
7494
|
+
style: v ? g.userRow : void 0,
|
|
7494
7495
|
children: [
|
|
7495
|
-
/* @__PURE__ */ t("td", { style: g.tableCellPosition, children: /* @__PURE__ */ d(
|
|
7496
|
+
/* @__PURE__ */ t("td", { style: g.tableCellPosition, children: /* @__PURE__ */ d(y, { sx: g.positionText, children: [
|
|
7496
7497
|
"#",
|
|
7497
7498
|
H.position
|
|
7498
7499
|
] }) }),
|
|
7499
7500
|
/* @__PURE__ */ t("td", { style: g.tableCellName, children: /* @__PURE__ */ d(i, { sx: g.nameCell, children: [
|
|
7500
7501
|
/* @__PURE__ */ t(
|
|
7501
|
-
|
|
7502
|
+
ln,
|
|
7502
7503
|
{
|
|
7503
7504
|
src: H.profileModel.avatar || void 0,
|
|
7504
7505
|
sx: g.leaderboardAvatar,
|
|
7505
|
-
children: H.profileModel.avatar ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(
|
|
7506
|
+
children: H.profileModel.avatar ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t(dn, { sx: g.avatarIcon })
|
|
7506
7507
|
}
|
|
7507
7508
|
),
|
|
7508
|
-
/* @__PURE__ */ t(
|
|
7509
|
+
/* @__PURE__ */ t(y, { sx: g.nameText, children: v ? h("matchQuiz.leaderboard.you") : H.profileModel.nickname || H.profileModel.name })
|
|
7509
7510
|
] }) }),
|
|
7510
|
-
/* @__PURE__ */ t("td", { style: g.tableCellPoints, children: /* @__PURE__ */ t(
|
|
7511
|
+
/* @__PURE__ */ t("td", { style: g.tableCellPoints, children: /* @__PURE__ */ t(y, { sx: g.pointsText, children: H.points }) })
|
|
7511
7512
|
]
|
|
7512
7513
|
},
|
|
7513
7514
|
H.profileId
|
|
@@ -7525,7 +7526,7 @@ const Di = (e) => {
|
|
|
7525
7526
|
* This source code is licensed under the ISC license.
|
|
7526
7527
|
* See the LICENSE file in the root directory of this source tree.
|
|
7527
7528
|
*/
|
|
7528
|
-
const
|
|
7529
|
+
const Ki = yn("ChevronsLeft", [
|
|
7529
7530
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
7530
7531
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
7531
7532
|
]);
|
|
@@ -7535,7 +7536,7 @@ const Ji = yn("ChevronsLeft", [
|
|
|
7535
7536
|
* This source code is licensed under the ISC license.
|
|
7536
7537
|
* See the LICENSE file in the root directory of this source tree.
|
|
7537
7538
|
*/
|
|
7538
|
-
const
|
|
7539
|
+
const Zi = yn("ChevronsRight", [
|
|
7539
7540
|
["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
|
|
7540
7541
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
|
7541
7542
|
]), nn = ({
|
|
@@ -7552,23 +7553,23 @@ const pi = yn("ChevronsRight", [
|
|
|
7552
7553
|
}) => {
|
|
7553
7554
|
const S = Ee(), s = (g) => {
|
|
7554
7555
|
o && g >= 1 && g <= e && o(g);
|
|
7555
|
-
},
|
|
7556
|
+
}, x = (g, F) => {
|
|
7556
7557
|
const P = [];
|
|
7557
|
-
for (let M = g; M <=
|
|
7558
|
+
for (let M = g; M <= F; M++) P.push(M);
|
|
7558
7559
|
return P;
|
|
7559
7560
|
}, z = (() => {
|
|
7560
7561
|
if (e <= 0) return [];
|
|
7561
|
-
const g =
|
|
7562
|
+
const g = x(1, Math.min(l, e)), F = x(
|
|
7562
7563
|
Math.max(e - l + 1, l + 1),
|
|
7563
7564
|
e
|
|
7564
|
-
), P = Math.max(l + 1, n - r), M = Math.min(e - l, n + r),
|
|
7565
|
-
if (P > l + 1 &&
|
|
7565
|
+
), P = Math.max(l + 1, n - r), M = Math.min(e - l, n + r), L = [...g];
|
|
7566
|
+
if (P > l + 1 && L.push("ellipsis-start"), P <= M)
|
|
7566
7567
|
for (let H = P; H <= M; H++)
|
|
7567
|
-
|
|
7568
|
-
M < e - l &&
|
|
7569
|
-
for (const H of
|
|
7570
|
-
|
|
7571
|
-
return
|
|
7568
|
+
L.push(H);
|
|
7569
|
+
M < e - l && L.push("ellipsis-end");
|
|
7570
|
+
for (const H of F)
|
|
7571
|
+
L.includes(H) || L.push(H);
|
|
7572
|
+
return L;
|
|
7572
7573
|
})(), C = u === "sm" ? "sm" : u === "lg" ? "lg" : "md", I = u === "sm" ? 16 : u === "lg" ? 24 : 20, T = (g = !1) => {
|
|
7573
7574
|
if (!a)
|
|
7574
7575
|
return {
|
|
@@ -7577,25 +7578,25 @@ const pi = yn("ChevronsRight", [
|
|
|
7577
7578
|
minHeight: "32px",
|
|
7578
7579
|
fontWeight: g ? 600 : 400
|
|
7579
7580
|
};
|
|
7580
|
-
const
|
|
7581
|
+
const F = S.colorSchemes.dark;
|
|
7581
7582
|
return {
|
|
7582
7583
|
borderRadius: "8px",
|
|
7583
7584
|
minWidth: "32px",
|
|
7584
7585
|
minHeight: "32px",
|
|
7585
7586
|
fontWeight: g ? 600 : 400,
|
|
7586
|
-
backgroundColor: g ?
|
|
7587
|
-
color: g ?
|
|
7587
|
+
backgroundColor: g ? F.palette.neutral.solidBg : "transparent",
|
|
7588
|
+
color: g ? F.palette.neutral.solidColor : F.textColor,
|
|
7588
7589
|
border: "none",
|
|
7589
7590
|
"&:hover": {
|
|
7590
|
-
backgroundColor:
|
|
7591
|
-
color: g ?
|
|
7591
|
+
backgroundColor: F.palette.neutral.solidBg,
|
|
7592
|
+
color: g ? F.palette.neutral.solidColor : F.textColor
|
|
7592
7593
|
},
|
|
7593
7594
|
"&:active": {
|
|
7594
|
-
backgroundColor:
|
|
7595
|
+
backgroundColor: F.palette.neutral.plainActiveBg
|
|
7595
7596
|
},
|
|
7596
7597
|
"&.Mui-disabled": {
|
|
7597
7598
|
backgroundColor: "transparent",
|
|
7598
|
-
color:
|
|
7599
|
+
color: F.textDisabled,
|
|
7599
7600
|
opacity: 0.5
|
|
7600
7601
|
}
|
|
7601
7602
|
};
|
|
@@ -7639,7 +7640,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7639
7640
|
},
|
|
7640
7641
|
children: [
|
|
7641
7642
|
h && /* @__PURE__ */ t(
|
|
7642
|
-
|
|
7643
|
+
Le,
|
|
7643
7644
|
{
|
|
7644
7645
|
size: C,
|
|
7645
7646
|
variant: "plain",
|
|
@@ -7647,11 +7648,11 @@ const pi = yn("ChevronsRight", [
|
|
|
7647
7648
|
onClick: () => s(1),
|
|
7648
7649
|
disabled: f || n === 1,
|
|
7649
7650
|
sx: E(),
|
|
7650
|
-
children: /* @__PURE__ */ t(
|
|
7651
|
+
children: /* @__PURE__ */ t(Ki, { size: I })
|
|
7651
7652
|
}
|
|
7652
7653
|
),
|
|
7653
7654
|
/* @__PURE__ */ t(
|
|
7654
|
-
|
|
7655
|
+
Le,
|
|
7655
7656
|
{
|
|
7656
7657
|
size: C,
|
|
7657
7658
|
variant: "plain",
|
|
@@ -7659,10 +7660,10 @@ const pi = yn("ChevronsRight", [
|
|
|
7659
7660
|
onClick: () => s(n - 1),
|
|
7660
7661
|
disabled: f || n === 1,
|
|
7661
7662
|
sx: E(),
|
|
7662
|
-
children: /* @__PURE__ */ t(
|
|
7663
|
+
children: /* @__PURE__ */ t(Un, { size: I })
|
|
7663
7664
|
}
|
|
7664
7665
|
),
|
|
7665
|
-
z.map((g,
|
|
7666
|
+
z.map((g, F) => {
|
|
7666
7667
|
if (typeof g == "string" && g.startsWith("ellipsis"))
|
|
7667
7668
|
return /* @__PURE__ */ t(
|
|
7668
7669
|
Pe,
|
|
@@ -7685,7 +7686,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7685
7686
|
},
|
|
7686
7687
|
children: "..."
|
|
7687
7688
|
},
|
|
7688
|
-
`${g}-${
|
|
7689
|
+
`${g}-${F}`
|
|
7689
7690
|
);
|
|
7690
7691
|
const P = g === n;
|
|
7691
7692
|
return /* @__PURE__ */ t(
|
|
@@ -7703,7 +7704,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7703
7704
|
);
|
|
7704
7705
|
}),
|
|
7705
7706
|
/* @__PURE__ */ t(
|
|
7706
|
-
|
|
7707
|
+
Le,
|
|
7707
7708
|
{
|
|
7708
7709
|
size: C,
|
|
7709
7710
|
variant: "plain",
|
|
@@ -7711,11 +7712,11 @@ const pi = yn("ChevronsRight", [
|
|
|
7711
7712
|
onClick: () => s(n + 1),
|
|
7712
7713
|
disabled: f || n === e,
|
|
7713
7714
|
sx: E(),
|
|
7714
|
-
children: /* @__PURE__ */ t(
|
|
7715
|
+
children: /* @__PURE__ */ t(Gn, { size: I })
|
|
7715
7716
|
}
|
|
7716
7717
|
),
|
|
7717
7718
|
m && /* @__PURE__ */ t(
|
|
7718
|
-
|
|
7719
|
+
Le,
|
|
7719
7720
|
{
|
|
7720
7721
|
size: C,
|
|
7721
7722
|
variant: "plain",
|
|
@@ -7723,13 +7724,13 @@ const pi = yn("ChevronsRight", [
|
|
|
7723
7724
|
onClick: () => s(e),
|
|
7724
7725
|
disabled: f || n === e,
|
|
7725
7726
|
sx: E(),
|
|
7726
|
-
children: /* @__PURE__ */ t(
|
|
7727
|
+
children: /* @__PURE__ */ t(Zi, { size: I })
|
|
7727
7728
|
}
|
|
7728
7729
|
)
|
|
7729
7730
|
]
|
|
7730
7731
|
}
|
|
7731
7732
|
);
|
|
7732
|
-
},
|
|
7733
|
+
}, Ji = (e) => {
|
|
7733
7734
|
var O, k, Q, ue, N, U, $, xe, ge;
|
|
7734
7735
|
const n = Ee(), { t: o } = ne(), r = ce(), l = ((O = e.matchQuiz.branding) == null ? void 0 : O.colors) || null, h = r ? ((Q = (k = e.matchQuiz.branding) == null ? void 0 : k.images) == null ? void 0 : Q.mobileLogo) || ((N = (ue = e.matchQuiz.branding) == null ? void 0 : ue.images) == null ? void 0 : N.mainLogo) || "" : (($ = (U = e.matchQuiz.branding) == null ? void 0 : U.images) == null ? void 0 : $.mainLogo) || "", m = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? it : at, u = Je(
|
|
7735
7736
|
{
|
|
@@ -7737,16 +7738,16 @@ const pi = yn("ChevronsRight", [
|
|
|
7737
7738
|
imagePlaceholder: m
|
|
7738
7739
|
},
|
|
7739
7740
|
Ce.SPLIT
|
|
7740
|
-
), f = _().palette.danger.plainColor, a = (l == null ? void 0 : l.contentColor) || _().textColor, S = (l == null ? void 0 : l.secondaryColor) || _().textColor, s = ee().secondary,
|
|
7741
|
+
), f = _().palette.danger.plainColor, a = (l == null ? void 0 : l.contentColor) || _().textColor, S = (l == null ? void 0 : l.secondaryColor) || _().textColor, s = ee().secondary, x = "60%", b = ee().primary, z = (l == null ? void 0 : l.backgroundColor) || _().surfaceVariant, C = re(), I = Se(), T = rt(
|
|
7741
7742
|
Ce.SPLIT
|
|
7742
|
-
), E =
|
|
7743
|
+
), E = Gi({
|
|
7743
7744
|
finalImage: u,
|
|
7744
7745
|
spacingScale: I,
|
|
7745
7746
|
borderRadius: C,
|
|
7746
7747
|
fontFamilyPrimary: b,
|
|
7747
7748
|
fontFamilySecondary: s,
|
|
7748
7749
|
secondaryColor: S,
|
|
7749
|
-
opacity:
|
|
7750
|
+
opacity: x,
|
|
7750
7751
|
bgcolor: ye(z || ""),
|
|
7751
7752
|
textColor: a,
|
|
7752
7753
|
brandingColors: l,
|
|
@@ -7755,7 +7756,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7755
7756
|
isMobile: r,
|
|
7756
7757
|
dangerColor: f,
|
|
7757
7758
|
isTabulated: e.showPredictionDetails || !1
|
|
7758
|
-
}), g = ((xe = e.matchQuiz.labels) == null ? void 0 : xe.sponsor) || null, { leaderboard:
|
|
7759
|
+
}), g = ((xe = e.matchQuiz.labels) == null ? void 0 : xe.sponsor) || null, { leaderboard: F, userRankings: P, pagination: M, currentPage: L, goToPage: H } = en(e.matchQuiz.id, e.sdk), v = pt(
|
|
7759
7760
|
e.matchQuiz.id,
|
|
7760
7761
|
e.sdk,
|
|
7761
7762
|
e.showPredictionDetails || !1
|
|
@@ -7763,7 +7764,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7763
7764
|
/* @__PURE__ */ t(
|
|
7764
7765
|
tn,
|
|
7765
7766
|
{
|
|
7766
|
-
leaderboard:
|
|
7767
|
+
leaderboard: F,
|
|
7767
7768
|
userRankings: P,
|
|
7768
7769
|
matchQuiz: e.matchQuiz,
|
|
7769
7770
|
showHeading: !e.showPredictionDetails,
|
|
@@ -7774,7 +7775,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7774
7775
|
nn,
|
|
7775
7776
|
{
|
|
7776
7777
|
count: M.numberOfPages,
|
|
7777
|
-
page:
|
|
7778
|
+
page: L,
|
|
7778
7779
|
onChange: H,
|
|
7779
7780
|
size: "sm",
|
|
7780
7781
|
showFirstButton: !1,
|
|
@@ -7796,7 +7797,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7796
7797
|
},
|
|
7797
7798
|
children: [
|
|
7798
7799
|
g && /* @__PURE__ */ t(
|
|
7799
|
-
|
|
7800
|
+
y,
|
|
7800
7801
|
{
|
|
7801
7802
|
level: "body-sm",
|
|
7802
7803
|
sx: {
|
|
@@ -7844,7 +7845,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7844
7845
|
gap: I["3xs"]
|
|
7845
7846
|
},
|
|
7846
7847
|
children: [
|
|
7847
|
-
/* @__PURE__ */ t(
|
|
7848
|
+
/* @__PURE__ */ t(y, { sx: E.headlineText, children: o("matchQuiz.headline") }),
|
|
7848
7849
|
/* @__PURE__ */ t(
|
|
7849
7850
|
Ct,
|
|
7850
7851
|
{
|
|
@@ -7857,8 +7858,8 @@ const pi = yn("ChevronsRight", [
|
|
|
7857
7858
|
}
|
|
7858
7859
|
),
|
|
7859
7860
|
/* @__PURE__ */ d(i, { sx: E.contentContainer, children: [
|
|
7860
|
-
/* @__PURE__ */ t(
|
|
7861
|
-
/* @__PURE__ */ t(
|
|
7861
|
+
/* @__PURE__ */ t(y, { sx: E.titleText, children: e.matchQuiz.title }),
|
|
7862
|
+
/* @__PURE__ */ t(y, { sx: E.descriptionText, children: St(e.matchQuiz.description) })
|
|
7862
7863
|
] })
|
|
7863
7864
|
] }),
|
|
7864
7865
|
h && !r && /* @__PURE__ */ t(i, { children: R(
|
|
@@ -7869,7 +7870,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7869
7870
|
Jt,
|
|
7870
7871
|
{
|
|
7871
7872
|
prediction: e.prediction,
|
|
7872
|
-
marketsResults:
|
|
7873
|
+
marketsResults: v,
|
|
7873
7874
|
brandingColors: (ge = e.matchQuiz.branding) == null ? void 0 : ge.colors,
|
|
7874
7875
|
resultsTabPanelSxProps: {
|
|
7875
7876
|
display: "flex",
|
|
@@ -7887,7 +7888,7 @@ const pi = yn("ChevronsRight", [
|
|
|
7887
7888
|
W(),
|
|
7888
7889
|
V()
|
|
7889
7890
|
] }) });
|
|
7890
|
-
},
|
|
7891
|
+
}, pi = (e) => {
|
|
7891
7892
|
var n, o, r, l, h;
|
|
7892
7893
|
return {
|
|
7893
7894
|
// Main container with background overlay
|
|
@@ -8585,7 +8586,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8585
8586
|
zIndex: 1
|
|
8586
8587
|
}
|
|
8587
8588
|
};
|
|
8588
|
-
},
|
|
8589
|
+
}, ea = (e) => {
|
|
8589
8590
|
var U;
|
|
8590
8591
|
const n = Se(), o = Ee(), { t: r } = ne(), l = ce(), h = Ne(), m = rt(
|
|
8591
8592
|
Ce.OVERLAY
|
|
@@ -8595,17 +8596,17 @@ const pi = yn("ChevronsRight", [
|
|
|
8595
8596
|
imagePlaceholder: S
|
|
8596
8597
|
},
|
|
8597
8598
|
Ce.OVERLAY
|
|
8598
|
-
),
|
|
8599
|
+
), x = _().textPrimary, b = (f == null ? void 0 : f.primaryColor) || _().palette.primary.plainColor, z = (f == null ? void 0 : f.contentColor) || _().textColor, C = ee().secondary, I = ee().primary, T = _().surface, E = `rgba(${ye(
|
|
8599
8600
|
(f == null ? void 0 : f.backgroundColor) || _().surfaceVariant
|
|
8600
|
-
)}, 0.5)`, g = _().onSurface,
|
|
8601
|
+
)}, 0.5)`, g = _().onSurface, F = re(), P = Rt().size, M = `rgba(${ye(
|
|
8601
8602
|
_().surfaceVariant || ""
|
|
8602
|
-
)}, 0.5)`,
|
|
8603
|
+
)}, 0.5)`, L = (f == null ? void 0 : f.secondaryColor) || _().textColor, v = pi({
|
|
8603
8604
|
finalImage: s,
|
|
8604
8605
|
spacingScale: n,
|
|
8605
|
-
borderRadius:
|
|
8606
|
+
borderRadius: F,
|
|
8606
8607
|
fontFamilyPrimary: I,
|
|
8607
8608
|
fontFamilySecondary: C,
|
|
8608
|
-
textPrimary:
|
|
8609
|
+
textPrimary: x,
|
|
8609
8610
|
primaryColor: b,
|
|
8610
8611
|
textColor: z,
|
|
8611
8612
|
bgcolor: E,
|
|
@@ -8622,7 +8623,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8622
8623
|
imageBackgroundGradient: m,
|
|
8623
8624
|
darkTextColor: o.colorSchemes.dark.textColor,
|
|
8624
8625
|
opacity: "60%",
|
|
8625
|
-
secondaryColor:
|
|
8626
|
+
secondaryColor: L,
|
|
8626
8627
|
isExtraSmall: h
|
|
8627
8628
|
}), { leaderboard: V, userRankings: R, pagination: W, currentPage: O, goToPage: k } = en(e.matchQuiz.id, e.sdk), Q = pt(
|
|
8628
8629
|
e.matchQuiz.id,
|
|
@@ -8643,7 +8644,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8643
8644
|
{
|
|
8644
8645
|
sx: { display: "flex", flexDirection: "column", gap: n.md },
|
|
8645
8646
|
children: [
|
|
8646
|
-
/* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(i, { sx:
|
|
8647
|
+
/* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(i, { sx: v.headlineSection, children: /* @__PURE__ */ t(i, { sx: v.headlineContent, children: /* @__PURE__ */ d(i, { sx: v.headlineContentInner, children: [
|
|
8647
8648
|
/* @__PURE__ */ d(
|
|
8648
8649
|
i,
|
|
8649
8650
|
{
|
|
@@ -8654,7 +8655,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8654
8655
|
gap: n["3xs"]
|
|
8655
8656
|
},
|
|
8656
8657
|
children: [
|
|
8657
|
-
/* @__PURE__ */ t(
|
|
8658
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: v.headlineText, children: r("matchQuiz.headline") }),
|
|
8658
8659
|
/* @__PURE__ */ t(
|
|
8659
8660
|
Ct,
|
|
8660
8661
|
{
|
|
@@ -8666,13 +8667,13 @@ const pi = yn("ChevronsRight", [
|
|
|
8666
8667
|
]
|
|
8667
8668
|
}
|
|
8668
8669
|
),
|
|
8669
|
-
/* @__PURE__ */ d(i, { sx:
|
|
8670
|
-
/* @__PURE__ */ t(
|
|
8671
|
-
e.matchQuiz.description && /* @__PURE__ */ t(
|
|
8670
|
+
/* @__PURE__ */ d(i, { sx: v.contentContainer, children: [
|
|
8671
|
+
/* @__PURE__ */ t(y, { level: "h4", sx: v.titleText, children: e.matchQuiz.title }),
|
|
8672
|
+
e.matchQuiz.description && /* @__PURE__ */ t(y, { level: "body-lg", sx: v.descriptionText, children: St(e.matchQuiz.description) })
|
|
8672
8673
|
] })
|
|
8673
8674
|
] }) }) }) }),
|
|
8674
|
-
/* @__PURE__ */ d(i, { sx:
|
|
8675
|
-
/* @__PURE__ */ d(i, { sx:
|
|
8675
|
+
/* @__PURE__ */ d(i, { sx: v.mainContentSection, children: [
|
|
8676
|
+
/* @__PURE__ */ d(i, { sx: v.contentContainerWithBackdrop, children: [
|
|
8676
8677
|
/* @__PURE__ */ t(
|
|
8677
8678
|
tn,
|
|
8678
8679
|
{
|
|
@@ -8683,7 +8684,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8683
8684
|
isSplitVariant: !1
|
|
8684
8685
|
}
|
|
8685
8686
|
),
|
|
8686
|
-
R && W && W.numberOfPages > 1 && /* @__PURE__ */ t(i, { sx:
|
|
8687
|
+
R && W && W.numberOfPages > 1 && /* @__PURE__ */ t(i, { sx: v.paginationContainer, children: /* @__PURE__ */ t(
|
|
8687
8688
|
nn,
|
|
8688
8689
|
{
|
|
8689
8690
|
count: W.numberOfPages,
|
|
@@ -8702,7 +8703,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8702
8703
|
]
|
|
8703
8704
|
}
|
|
8704
8705
|
);
|
|
8705
|
-
return /* @__PURE__ */ t(p, { children: e.showPredictionDetails ? /* @__PURE__ */ t(i, { sx:
|
|
8706
|
+
return /* @__PURE__ */ t(p, { children: e.showPredictionDetails ? /* @__PURE__ */ t(i, { sx: v.mainContainerWithPredictionDetails, children: /* @__PURE__ */ t(
|
|
8706
8707
|
Jt,
|
|
8707
8708
|
{
|
|
8708
8709
|
prediction: e.prediction,
|
|
@@ -8715,8 +8716,8 @@ const pi = yn("ChevronsRight", [
|
|
|
8715
8716
|
},
|
|
8716
8717
|
children: N()
|
|
8717
8718
|
}
|
|
8718
|
-
) }) : /* @__PURE__ */ t(i, { sx:
|
|
8719
|
-
},
|
|
8719
|
+
) }) : /* @__PURE__ */ t(i, { sx: v.mainContainer, children: N() }) });
|
|
8720
|
+
}, ta = (e) => ({
|
|
8720
8721
|
// Main content wrapper
|
|
8721
8722
|
mainContentWrapper: {
|
|
8722
8723
|
display: "flex",
|
|
@@ -8840,7 +8841,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8840
8841
|
letterSpacing: "0.46px",
|
|
8841
8842
|
textTransform: "uppercase"
|
|
8842
8843
|
}
|
|
8843
|
-
}),
|
|
8844
|
+
}), na = (e) => {
|
|
8844
8845
|
const n = Ee(), o = Se(), { t: r } = ne(), l = ce(), h = rt(
|
|
8845
8846
|
Ce.OVERLAY
|
|
8846
8847
|
), { brandingImage: m, brandingColors: u, brandingLogo: f } = Tt(e.matchQuiz.branding), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? it : at, S = m || Je(
|
|
@@ -8849,9 +8850,9 @@ const pi = yn("ChevronsRight", [
|
|
|
8849
8850
|
imagePlaceholder: a
|
|
8850
8851
|
},
|
|
8851
8852
|
Ce.OVERLAY
|
|
8852
|
-
), s = Ut(S),
|
|
8853
|
+
), s = Ut(S), x = (u == null ? void 0 : u.secondaryColor) || n.colorSchemes.dark.textSecondary, b = n.colorSchemes.dark.secondaryContainer, z = n.colorSchemes.dark.textPrimary, C = n.customFontFamily.light.primary, I = n.customRadius.light.md, T = n.customRadius.light.xl, E = (u == null ? void 0 : u.backgroundColor) || n.colorSchemes.dark.surfaceVariant, g = e.matchQuiz.status === "OPEN" && e.prediction && e.squads && e.onPredictionUpdate, F = (V) => {
|
|
8853
8854
|
console.log(`Edit prediction for fixture at index: ${V}`);
|
|
8854
|
-
}, P =
|
|
8855
|
+
}, P = ta({
|
|
8855
8856
|
spacingScale: o,
|
|
8856
8857
|
textPrimary: z,
|
|
8857
8858
|
fontFamilyPrimary: C,
|
|
@@ -8877,19 +8878,19 @@ const pi = yn("ChevronsRight", [
|
|
|
8877
8878
|
fontSize: l ? "0.750em" : "0.8125em",
|
|
8878
8879
|
fontWeight: 500,
|
|
8879
8880
|
textTransform: "uppercase"
|
|
8880
|
-
},
|
|
8881
|
+
}, L = {
|
|
8881
8882
|
display: "flex",
|
|
8882
8883
|
justifyContent: "center",
|
|
8883
8884
|
alignItems: "center",
|
|
8884
8885
|
gap: "8px"
|
|
8885
8886
|
}, H = {
|
|
8886
|
-
color:
|
|
8887
|
+
color: x,
|
|
8887
8888
|
fontFamily: C,
|
|
8888
8889
|
fontStyle: "normal",
|
|
8889
8890
|
lineHeight: "24px",
|
|
8890
8891
|
letterSpacing: "0.40px",
|
|
8891
8892
|
textTransform: "uppercase"
|
|
8892
|
-
},
|
|
8893
|
+
}, v = () => {
|
|
8893
8894
|
var V, R;
|
|
8894
8895
|
return /* @__PURE__ */ d(i, { sx: P.mainContentWrapper, children: [
|
|
8895
8896
|
e.isUnauthorized ? /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
@@ -8905,7 +8906,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8905
8906
|
fixtures: e.matchQuiz.fixtures,
|
|
8906
8907
|
prediction: e.prediction,
|
|
8907
8908
|
brandingPrimaryColor: u == null ? void 0 : u.primaryColor,
|
|
8908
|
-
onEditPrediction:
|
|
8909
|
+
onEditPrediction: F,
|
|
8909
8910
|
onPredictionUpdate: e.onPredictionUpdate,
|
|
8910
8911
|
play: e.play,
|
|
8911
8912
|
view: "score",
|
|
@@ -8927,7 +8928,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8927
8928
|
{
|
|
8928
8929
|
additionalCTA: e.additionalCTA,
|
|
8929
8930
|
buttonStyle: M,
|
|
8930
|
-
buttonContentStyle:
|
|
8931
|
+
buttonContentStyle: L,
|
|
8931
8932
|
textStyle: H
|
|
8932
8933
|
}
|
|
8933
8934
|
)
|
|
@@ -8975,7 +8976,7 @@ const pi = yn("ChevronsRight", [
|
|
|
8975
8976
|
{
|
|
8976
8977
|
additionalCTA: e.additionalCTA,
|
|
8977
8978
|
buttonStyle: M,
|
|
8978
|
-
buttonContentStyle:
|
|
8979
|
+
buttonContentStyle: L,
|
|
8979
8980
|
textStyle: H
|
|
8980
8981
|
}
|
|
8981
8982
|
)
|
|
@@ -8985,30 +8986,30 @@ const pi = yn("ChevronsRight", [
|
|
|
8985
8986
|
] });
|
|
8986
8987
|
};
|
|
8987
8988
|
return /* @__PURE__ */ t(
|
|
8988
|
-
|
|
8989
|
+
Jn,
|
|
8989
8990
|
{
|
|
8990
8991
|
entity: e.matchQuiz,
|
|
8991
8992
|
headline: r("matchQuiz.headline"),
|
|
8992
8993
|
backgroundImage: s,
|
|
8993
8994
|
imageBackgroundGradient: h,
|
|
8994
8995
|
rulesDisplay: e.rulesDisplay,
|
|
8995
|
-
children:
|
|
8996
|
+
children: v()
|
|
8996
8997
|
}
|
|
8997
8998
|
);
|
|
8998
|
-
},
|
|
8999
|
+
}, ia = () => {
|
|
8999
9000
|
const { t: e } = ne();
|
|
9000
9001
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
9001
|
-
|
|
9002
|
+
Wn,
|
|
9002
9003
|
{
|
|
9003
9004
|
notFoundTitle: e("matchQuiz.matchQuizNotFound"),
|
|
9004
9005
|
notFoundMessage: e("matchQuiz.matchQuizNotFoundDescription")
|
|
9005
9006
|
}
|
|
9006
9007
|
) });
|
|
9007
|
-
},
|
|
9008
|
+
}, aa = (e) => {
|
|
9008
9009
|
var l, h, m, u;
|
|
9009
9010
|
const n = ((l = e.matchQuiz.branding) == null ? void 0 : l.colors) || null, o = ce() ? ((h = e.matchQuiz.branding) == null ? void 0 : h.images.mobileLogo) || ((m = e.matchQuiz.branding) == null ? void 0 : m.images.mainLogo) || "" : ((u = e.matchQuiz.branding) == null ? void 0 : u.images.mainLogo) || "", { t: r } = ne();
|
|
9010
9011
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
|
|
9011
|
-
|
|
9012
|
+
_n,
|
|
9012
9013
|
{
|
|
9013
9014
|
entity: e.matchQuiz,
|
|
9014
9015
|
headline: r("matchQuiz.headline"),
|
|
@@ -9032,11 +9033,11 @@ const pi = yn("ChevronsRight", [
|
|
|
9032
9033
|
rulesDisplay: e.rulesDisplay
|
|
9033
9034
|
}
|
|
9034
9035
|
) });
|
|
9035
|
-
},
|
|
9036
|
+
}, oa = (e) => {
|
|
9036
9037
|
var h, m, u, f;
|
|
9037
9038
|
const n = ce(), { t: o } = ne(), r = ((h = e.matchQuiz.branding) == null ? void 0 : h.colors) || null, l = n ? ((m = e.matchQuiz.branding) == null ? void 0 : m.images.mobileLogo) || ((u = e.matchQuiz.branding) == null ? void 0 : u.images.mainLogo) || "" : ((f = e.matchQuiz.branding) == null ? void 0 : f.images.mainLogo) || "";
|
|
9038
9039
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
|
|
9039
|
-
|
|
9040
|
+
Mn,
|
|
9040
9041
|
{
|
|
9041
9042
|
entity: e.matchQuiz,
|
|
9042
9043
|
headline: o("matchQuiz.headline"),
|
|
@@ -9059,12 +9060,12 @@ const pi = yn("ChevronsRight", [
|
|
|
9059
9060
|
rulesDisplay: e.rulesDisplay
|
|
9060
9061
|
}
|
|
9061
9062
|
) });
|
|
9062
|
-
},
|
|
9063
|
+
}, la = (e) => {
|
|
9063
9064
|
const { t: n } = ne(), o = ce(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? it : at, { brandingLogo: l } = Tt(
|
|
9064
9065
|
e.matchQuiz.branding || null
|
|
9065
9066
|
);
|
|
9066
9067
|
return /* @__PURE__ */ t(
|
|
9067
|
-
|
|
9068
|
+
Qn,
|
|
9068
9069
|
{
|
|
9069
9070
|
entity: e.matchQuiz,
|
|
9070
9071
|
headline: n("matchQuiz.headline"),
|
|
@@ -9087,7 +9088,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9087
9088
|
rulesDisplay: e.rulesDisplay
|
|
9088
9089
|
}
|
|
9089
9090
|
);
|
|
9090
|
-
},
|
|
9091
|
+
}, ra = (e) => {
|
|
9091
9092
|
var n, o, r;
|
|
9092
9093
|
return {
|
|
9093
9094
|
// Pulse animation for buttons
|
|
@@ -9322,23 +9323,23 @@ const pi = yn("ChevronsRight", [
|
|
|
9322
9323
|
objectFit: "cover"
|
|
9323
9324
|
}
|
|
9324
9325
|
};
|
|
9325
|
-
},
|
|
9326
|
-
var P, M,
|
|
9326
|
+
}, ca = (e) => {
|
|
9327
|
+
var P, M, L, H, v;
|
|
9327
9328
|
const n = ((P = e.matchQuiz.branding) == null ? void 0 : P.colors) || null, o = Ee(), r = ce(), l = Je(
|
|
9328
9329
|
{
|
|
9329
9330
|
images: e.matchQuiz.images,
|
|
9330
9331
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
9331
9332
|
},
|
|
9332
9333
|
Ce.STANDARD
|
|
9333
|
-
), h = Se(), m = ee().primary, u = ee().secondary, f =
|
|
9334
|
+
), h = Se(), m = ee().primary, u = ee().secondary, f = re(), a = re().xl, S = (n == null ? void 0 : n.primaryColor) || _().palette.primary.plainColor, s = _().palette.primary.onPrimary, x = (n == null ? void 0 : n.contentColor) || _().textColor, b = (n == null ? void 0 : n.secondaryColor) || _().textColor, z = rt(
|
|
9334
9335
|
Ce.STANDARD
|
|
9335
|
-
), C = r ? ((M = e.matchQuiz.branding) == null ? void 0 : M.images.mobileLogo) || ((
|
|
9336
|
+
), C = r ? ((M = e.matchQuiz.branding) == null ? void 0 : M.images.mobileLogo) || ((L = e.matchQuiz.branding) == null ? void 0 : L.images.mainLogo) || "" : ((H = e.matchQuiz.branding) == null ? void 0 : H.images.mainLogo) || "", { t: I } = ne(), T = e.imagePosition || "left", g = ra({
|
|
9336
9337
|
finalImage: l,
|
|
9337
9338
|
spacingScale: h,
|
|
9338
9339
|
borderRadius: f,
|
|
9339
9340
|
fontFamilyPrimary: m,
|
|
9340
9341
|
fontFamilySecondary: u,
|
|
9341
|
-
textColor:
|
|
9342
|
+
textColor: x,
|
|
9342
9343
|
secondaryColor: b,
|
|
9343
9344
|
brandingColors: n,
|
|
9344
9345
|
darkTextColor: o.colorSchemes.dark.textColor,
|
|
@@ -9348,7 +9349,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9348
9349
|
primaryColor: S,
|
|
9349
9350
|
onPrimaryColor: s,
|
|
9350
9351
|
isMobile: r
|
|
9351
|
-
}),
|
|
9352
|
+
}), F = () => {
|
|
9352
9353
|
var V, R, W, O;
|
|
9353
9354
|
return e.signInCTA ? (V = e.signInCTA) != null && V.component ? e.signInCTA.component : (R = e.signInCTA) != null && R.onClick ? /* @__PURE__ */ t(
|
|
9354
9355
|
Pe,
|
|
@@ -9359,7 +9360,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9359
9360
|
...g.pulseAnimation
|
|
9360
9361
|
},
|
|
9361
9362
|
onClick: e.signInCTA.onClick,
|
|
9362
|
-
children: /* @__PURE__ */ t(
|
|
9363
|
+
children: /* @__PURE__ */ t(y, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || I("common.signIn") })
|
|
9363
9364
|
}
|
|
9364
9365
|
) : (W = e.signInCTA) != null && W.url ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
9365
9366
|
i,
|
|
@@ -9375,7 +9376,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9375
9376
|
alignItems: "center",
|
|
9376
9377
|
justifyContent: "center"
|
|
9377
9378
|
},
|
|
9378
|
-
children: /* @__PURE__ */ t(
|
|
9379
|
+
children: /* @__PURE__ */ t(y, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || I("common.signIn") })
|
|
9379
9380
|
}
|
|
9380
9381
|
) : /* @__PURE__ */ t(
|
|
9381
9382
|
Pe,
|
|
@@ -9389,7 +9390,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9389
9390
|
var k, Q, ue;
|
|
9390
9391
|
((k = e.signInCTA) == null ? void 0 : k.target) === "_blank" ? window.open((Q = e.signInCTA) == null ? void 0 : Q.url, "_blank") : window.location.href = (ue = e.signInCTA) == null ? void 0 : ue.url;
|
|
9391
9392
|
},
|
|
9392
|
-
children: /* @__PURE__ */ t(
|
|
9393
|
+
children: /* @__PURE__ */ t(y, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || I("common.signIn") })
|
|
9393
9394
|
}
|
|
9394
9395
|
) : /* @__PURE__ */ t(
|
|
9395
9396
|
Pe,
|
|
@@ -9399,7 +9400,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9399
9400
|
...g.signInButton
|
|
9400
9401
|
},
|
|
9401
9402
|
disabled: !0,
|
|
9402
|
-
children: /* @__PURE__ */ t(
|
|
9403
|
+
children: /* @__PURE__ */ t(y, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || I("common.signIn") })
|
|
9403
9404
|
}
|
|
9404
9405
|
) : /* @__PURE__ */ t(
|
|
9405
9406
|
Pe,
|
|
@@ -9409,30 +9410,30 @@ const pi = yn("ChevronsRight", [
|
|
|
9409
9410
|
...g.signInButton
|
|
9410
9411
|
},
|
|
9411
9412
|
disabled: !0,
|
|
9412
|
-
children: /* @__PURE__ */ t(
|
|
9413
|
+
children: /* @__PURE__ */ t(y, { sx: g.signInButtonText, children: I("common.signIn") })
|
|
9413
9414
|
}
|
|
9414
9415
|
);
|
|
9415
9416
|
};
|
|
9416
9417
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
|
|
9417
|
-
|
|
9418
|
+
pn,
|
|
9418
9419
|
{
|
|
9419
9420
|
entity: e.matchQuiz,
|
|
9420
9421
|
headline: I("matchQuiz.headline"),
|
|
9421
9422
|
finalImage: l,
|
|
9422
9423
|
imagePosition: T,
|
|
9423
|
-
signInContent:
|
|
9424
|
+
signInContent: F(),
|
|
9424
9425
|
brandingContent: /* @__PURE__ */ t(
|
|
9425
9426
|
ke,
|
|
9426
9427
|
{
|
|
9427
9428
|
brandingLogo: C,
|
|
9428
|
-
textColor: r && l ? (n == null ? void 0 : n.contentColor) || o.colorSchemes.dark.textColor :
|
|
9429
|
-
label: ((
|
|
9429
|
+
textColor: r && l ? (n == null ? void 0 : n.contentColor) || o.colorSchemes.dark.textColor : x,
|
|
9430
|
+
label: ((v = e.matchQuiz.labels) == null ? void 0 : v.sponsor) || null
|
|
9430
9431
|
}
|
|
9431
9432
|
),
|
|
9432
9433
|
rulesDisplay: e.rulesDisplay
|
|
9433
9434
|
}
|
|
9434
9435
|
) });
|
|
9435
|
-
},
|
|
9436
|
+
}, sa = (e) => ({
|
|
9436
9437
|
// Pulse animation for buttons
|
|
9437
9438
|
pulseAnimation: {
|
|
9438
9439
|
"@keyframes pulse": {
|
|
@@ -9480,7 +9481,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9480
9481
|
display: "flex",
|
|
9481
9482
|
alignItems: "center"
|
|
9482
9483
|
}
|
|
9483
|
-
}),
|
|
9484
|
+
}), da = (e) => {
|
|
9484
9485
|
var z, C, I, T, E;
|
|
9485
9486
|
const n = Ee(), o = ce(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? it : at, l = Je(
|
|
9486
9487
|
{
|
|
@@ -9488,23 +9489,23 @@ const pi = yn("ChevronsRight", [
|
|
|
9488
9489
|
imagePlaceholder: r
|
|
9489
9490
|
},
|
|
9490
9491
|
Ce.SPLIT
|
|
9491
|
-
), { t: h } = ne(), m = ((z = e.matchQuiz.branding) == null ? void 0 : z.colors) || null, u = o ? ((C = e.matchQuiz.branding) == null ? void 0 : C.images.mobileLogo) || ((I = e.matchQuiz.branding) == null ? void 0 : I.images.mainLogo) || "" : ((T = e.matchQuiz.branding) == null ? void 0 : T.images.mainLogo) || "", f = ee().primary, a =
|
|
9492
|
+
), { t: h } = ne(), m = ((z = e.matchQuiz.branding) == null ? void 0 : z.colors) || null, u = o ? ((C = e.matchQuiz.branding) == null ? void 0 : C.images.mobileLogo) || ((I = e.matchQuiz.branding) == null ? void 0 : I.images.mainLogo) || "" : ((T = e.matchQuiz.branding) == null ? void 0 : T.images.mainLogo) || "", f = ee().primary, a = re().xl, S = (m == null ? void 0 : m.primaryColor) || _().palette.primary.plainColor, s = _().palette.primary.onPrimary, x = sa({
|
|
9492
9493
|
fontFamilyPrimary: f,
|
|
9493
9494
|
buttonRadius: a,
|
|
9494
9495
|
primaryColor: S,
|
|
9495
9496
|
onPrimaryColor: s
|
|
9496
9497
|
}), b = () => {
|
|
9497
|
-
var g,
|
|
9498
|
-
return e.signInCTA ? (g = e.signInCTA) != null && g.component ? e.signInCTA.component : (
|
|
9498
|
+
var g, F, P, M;
|
|
9499
|
+
return e.signInCTA ? (g = e.signInCTA) != null && g.component ? e.signInCTA.component : (F = e.signInCTA) != null && F.onClick ? /* @__PURE__ */ t(
|
|
9499
9500
|
Pe,
|
|
9500
9501
|
{
|
|
9501
9502
|
variant: "soft",
|
|
9502
9503
|
sx: {
|
|
9503
|
-
...
|
|
9504
|
-
...
|
|
9504
|
+
...x.signInButton,
|
|
9505
|
+
...x.pulseAnimation
|
|
9505
9506
|
},
|
|
9506
9507
|
onClick: e.signInCTA.onClick,
|
|
9507
|
-
children: /* @__PURE__ */ t(
|
|
9508
|
+
children: /* @__PURE__ */ t(y, { sx: x.signInButtonText, children: e.signInCTA.defaultLabel || h("common.signIn") })
|
|
9508
9509
|
}
|
|
9509
9510
|
) : (P = e.signInCTA) != null && P.url ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
9510
9511
|
i,
|
|
@@ -9513,53 +9514,53 @@ const pi = yn("ChevronsRight", [
|
|
|
9513
9514
|
href: e.signInCTA.url,
|
|
9514
9515
|
target: ((M = e.signInCTA) == null ? void 0 : M.target) || "_self",
|
|
9515
9516
|
sx: {
|
|
9516
|
-
...
|
|
9517
|
-
...
|
|
9517
|
+
...x.signInButton,
|
|
9518
|
+
...x.pulseAnimation,
|
|
9518
9519
|
textDecoration: "none",
|
|
9519
9520
|
display: "inline-flex",
|
|
9520
9521
|
alignItems: "center",
|
|
9521
9522
|
justifyContent: "center"
|
|
9522
9523
|
},
|
|
9523
|
-
children: /* @__PURE__ */ t(
|
|
9524
|
+
children: /* @__PURE__ */ t(y, { sx: x.signInButtonText, children: e.signInCTA.defaultLabel || h("common.signIn") })
|
|
9524
9525
|
}
|
|
9525
9526
|
) : /* @__PURE__ */ t(
|
|
9526
9527
|
Pe,
|
|
9527
9528
|
{
|
|
9528
9529
|
variant: "soft",
|
|
9529
9530
|
sx: {
|
|
9530
|
-
...
|
|
9531
|
-
...
|
|
9531
|
+
...x.signInButton,
|
|
9532
|
+
...x.pulseAnimation
|
|
9532
9533
|
},
|
|
9533
9534
|
onClick: () => {
|
|
9534
|
-
var
|
|
9535
|
-
((
|
|
9535
|
+
var L, H, v;
|
|
9536
|
+
((L = e.signInCTA) == null ? void 0 : L.target) === "_blank" ? window.open((H = e.signInCTA) == null ? void 0 : H.url, "_blank") : window.location.href = (v = e.signInCTA) == null ? void 0 : v.url;
|
|
9536
9537
|
},
|
|
9537
|
-
children: /* @__PURE__ */ t(
|
|
9538
|
+
children: /* @__PURE__ */ t(y, { sx: x.signInButtonText, children: e.signInCTA.defaultLabel || h("common.signIn") })
|
|
9538
9539
|
}
|
|
9539
9540
|
) : /* @__PURE__ */ t(
|
|
9540
9541
|
Pe,
|
|
9541
9542
|
{
|
|
9542
9543
|
variant: "soft",
|
|
9543
9544
|
sx: {
|
|
9544
|
-
...
|
|
9545
|
+
...x.signInButton
|
|
9545
9546
|
},
|
|
9546
9547
|
disabled: !0,
|
|
9547
|
-
children: /* @__PURE__ */ t(
|
|
9548
|
+
children: /* @__PURE__ */ t(y, { sx: x.signInButtonText, children: e.signInCTA.defaultLabel || h("common.signIn") })
|
|
9548
9549
|
}
|
|
9549
9550
|
) : /* @__PURE__ */ t(
|
|
9550
9551
|
Pe,
|
|
9551
9552
|
{
|
|
9552
9553
|
variant: "soft",
|
|
9553
9554
|
sx: {
|
|
9554
|
-
...
|
|
9555
|
+
...x.signInButton
|
|
9555
9556
|
},
|
|
9556
9557
|
disabled: !0,
|
|
9557
|
-
children: /* @__PURE__ */ t(
|
|
9558
|
+
children: /* @__PURE__ */ t(y, { sx: x.signInButtonText, children: h("common.signIn") })
|
|
9558
9559
|
}
|
|
9559
9560
|
);
|
|
9560
9561
|
};
|
|
9561
9562
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: (m == null ? void 0 : m.borderColor) || null, children: /* @__PURE__ */ t(
|
|
9562
|
-
|
|
9563
|
+
ei,
|
|
9563
9564
|
{
|
|
9564
9565
|
entity: e.matchQuiz,
|
|
9565
9566
|
headline: h("matchQuiz.headline"),
|
|
@@ -9577,7 +9578,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9577
9578
|
rulesDisplay: e.rulesDisplay
|
|
9578
9579
|
}
|
|
9579
9580
|
) });
|
|
9580
|
-
},
|
|
9581
|
+
}, ma = (e) => ({
|
|
9581
9582
|
// Pulse animation for buttons
|
|
9582
9583
|
pulseAnimation: {
|
|
9583
9584
|
"@keyframes pulse": {
|
|
@@ -9615,8 +9616,8 @@ const pi = yn("ChevronsRight", [
|
|
|
9615
9616
|
display: "flex",
|
|
9616
9617
|
alignItems: "center"
|
|
9617
9618
|
}
|
|
9618
|
-
}),
|
|
9619
|
-
var T, E, g,
|
|
9619
|
+
}), ua = (e) => {
|
|
9620
|
+
var T, E, g, F, P, M, L, H, v, V, R;
|
|
9620
9621
|
const n = Ee(), { t: o } = ne(), r = ce(), l = rt(
|
|
9621
9622
|
Ce.OVERLAY
|
|
9622
9623
|
), { brandingImage: h, brandingColors: m, brandingLogo: u } = Tt(e.matchQuiz.branding || null), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? it : at, a = h || Je(
|
|
@@ -9625,9 +9626,9 @@ const pi = yn("ChevronsRight", [
|
|
|
9625
9626
|
imagePlaceholder: f
|
|
9626
9627
|
},
|
|
9627
9628
|
Ce.OVERLAY
|
|
9628
|
-
), S = Ut(a), s = (E = (T = n.customRadius) == null ? void 0 : T.light) == null ? void 0 : E.xl,
|
|
9629
|
+
), S = Ut(a), s = (E = (T = n.customRadius) == null ? void 0 : T.light) == null ? void 0 : E.xl, x = (m == null ? void 0 : m.primaryColor) || ((M = (P = (F = (g = n.colorSchemes) == null ? void 0 : g.light) == null ? void 0 : F.palette) == null ? void 0 : P.primary) == null ? void 0 : M.plainColor), b = (V = (v = (H = (L = n.colorSchemes) == null ? void 0 : L.light) == null ? void 0 : H.palette) == null ? void 0 : v.primary) == null ? void 0 : V.onPrimary, z = n.customFontFamily.dark.primary, C = ma({
|
|
9629
9630
|
buttonRadius: s,
|
|
9630
|
-
primaryColor:
|
|
9631
|
+
primaryColor: x,
|
|
9631
9632
|
onPrimaryColor: b,
|
|
9632
9633
|
fontFamilyPrimary: z
|
|
9633
9634
|
}), I = () => {
|
|
@@ -9641,7 +9642,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9641
9642
|
...C.pulseAnimation
|
|
9642
9643
|
},
|
|
9643
9644
|
onClick: e.signInCTA.onClick,
|
|
9644
|
-
children: /* @__PURE__ */ t(
|
|
9645
|
+
children: /* @__PURE__ */ t(y, { sx: C.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
|
|
9645
9646
|
}
|
|
9646
9647
|
) : (k = e.signInCTA) != null && k.url ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
9647
9648
|
i,
|
|
@@ -9657,7 +9658,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9657
9658
|
alignItems: "center",
|
|
9658
9659
|
justifyContent: "center"
|
|
9659
9660
|
},
|
|
9660
|
-
children: /* @__PURE__ */ t(
|
|
9661
|
+
children: /* @__PURE__ */ t(y, { sx: C.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
|
|
9661
9662
|
}
|
|
9662
9663
|
) : /* @__PURE__ */ t(
|
|
9663
9664
|
Pe,
|
|
@@ -9671,7 +9672,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9671
9672
|
var ue, N, U;
|
|
9672
9673
|
((ue = e.signInCTA) == null ? void 0 : ue.target) === "_blank" ? window.open((N = e.signInCTA) == null ? void 0 : N.url, "_blank") : window.location.href = (U = e.signInCTA) == null ? void 0 : U.url;
|
|
9673
9674
|
},
|
|
9674
|
-
children: /* @__PURE__ */ t(
|
|
9675
|
+
children: /* @__PURE__ */ t(y, { sx: C.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
|
|
9675
9676
|
}
|
|
9676
9677
|
) : /* @__PURE__ */ t(
|
|
9677
9678
|
Pe,
|
|
@@ -9681,7 +9682,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9681
9682
|
...C.signInButton
|
|
9682
9683
|
},
|
|
9683
9684
|
disabled: !0,
|
|
9684
|
-
children: /* @__PURE__ */ t(
|
|
9685
|
+
children: /* @__PURE__ */ t(y, { sx: C.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
|
|
9685
9686
|
}
|
|
9686
9687
|
) : /* @__PURE__ */ t(
|
|
9687
9688
|
Pe,
|
|
@@ -9691,12 +9692,12 @@ const pi = yn("ChevronsRight", [
|
|
|
9691
9692
|
...C.signInButton
|
|
9692
9693
|
},
|
|
9693
9694
|
disabled: !0,
|
|
9694
|
-
children: /* @__PURE__ */ t(
|
|
9695
|
+
children: /* @__PURE__ */ t(y, { sx: C.signInButtonText, children: o("common.signIn") })
|
|
9695
9696
|
}
|
|
9696
9697
|
);
|
|
9697
9698
|
};
|
|
9698
9699
|
return /* @__PURE__ */ t(
|
|
9699
|
-
|
|
9700
|
+
ti,
|
|
9700
9701
|
{
|
|
9701
9702
|
entity: e.matchQuiz,
|
|
9702
9703
|
headline: o("matchQuiz.headline"),
|
|
@@ -9714,10 +9715,10 @@ const pi = yn("ChevronsRight", [
|
|
|
9714
9715
|
rulesDisplay: e.rulesDisplay
|
|
9715
9716
|
}
|
|
9716
9717
|
);
|
|
9717
|
-
},
|
|
9718
|
+
}, ga = (e) => {
|
|
9718
9719
|
const { t: n } = ne();
|
|
9719
9720
|
return /* @__PURE__ */ t(
|
|
9720
|
-
|
|
9721
|
+
ni,
|
|
9721
9722
|
{
|
|
9722
9723
|
entity: e.matchQuiz,
|
|
9723
9724
|
headline: n("matchQuiz.headline"),
|
|
@@ -9733,10 +9734,10 @@ const pi = yn("ChevronsRight", [
|
|
|
9733
9734
|
rulesDisplay: e.rulesDisplay
|
|
9734
9735
|
}
|
|
9735
9736
|
);
|
|
9736
|
-
},
|
|
9737
|
+
}, ha = (e) => {
|
|
9737
9738
|
const { t: n } = ne();
|
|
9738
9739
|
return /* @__PURE__ */ t(
|
|
9739
|
-
|
|
9740
|
+
ii,
|
|
9740
9741
|
{
|
|
9741
9742
|
entity: e.matchQuiz,
|
|
9742
9743
|
headline: n("matchQuiz.headline"),
|
|
@@ -9751,10 +9752,10 @@ const pi = yn("ChevronsRight", [
|
|
|
9751
9752
|
rulesDisplay: e.rulesDisplay
|
|
9752
9753
|
}
|
|
9753
9754
|
);
|
|
9754
|
-
},
|
|
9755
|
+
}, fa = (e) => {
|
|
9755
9756
|
const { t: n } = ne();
|
|
9756
9757
|
return /* @__PURE__ */ t(
|
|
9757
|
-
|
|
9758
|
+
ai,
|
|
9758
9759
|
{
|
|
9759
9760
|
entity: e.matchQuiz,
|
|
9760
9761
|
headline: n("matchQuiz.headline"),
|
|
@@ -9768,7 +9769,7 @@ const pi = yn("ChevronsRight", [
|
|
|
9768
9769
|
rulesDisplay: e.rulesDisplay
|
|
9769
9770
|
}
|
|
9770
9771
|
);
|
|
9771
|
-
},
|
|
9772
|
+
}, xa = (e) => {
|
|
9772
9773
|
var n, o, r;
|
|
9773
9774
|
return {
|
|
9774
9775
|
// Main content area
|
|
@@ -10304,7 +10305,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10304
10305
|
width: "100%"
|
|
10305
10306
|
}
|
|
10306
10307
|
};
|
|
10307
|
-
},
|
|
10308
|
+
}, ya = (e) => {
|
|
10308
10309
|
var N, U, $, xe, ge;
|
|
10309
10310
|
const n = Ee(), o = Je(
|
|
10310
10311
|
{
|
|
@@ -10312,22 +10313,22 @@ const pi = yn("ChevronsRight", [
|
|
|
10312
10313
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
10313
10314
|
},
|
|
10314
10315
|
Ce.STANDARD
|
|
10315
|
-
), { t: r } = ne(), l = ((N = e.matchQuiz.branding) == null ? void 0 : N.colors) || null, h = ce(), m = Ne(), u = h ? ((U = e.matchQuiz.branding) == null ? void 0 : U.images.mobileLogo) || (($ = e.matchQuiz.branding) == null ? void 0 : $.images.mainLogo) || "" : ((xe = e.matchQuiz.branding) == null ? void 0 : xe.images.mainLogo) || "", f = e.imagePosition || "left", a = _().textPrimary, S = (l == null ? void 0 : l.primaryColor) || _().palette.primary.plainColor, s = (l == null ? void 0 : l.contentColor) || _().textColor,
|
|
10316
|
+
), { t: r } = ne(), l = ((N = e.matchQuiz.branding) == null ? void 0 : N.colors) || null, h = ce(), m = Ne(), u = h ? ((U = e.matchQuiz.branding) == null ? void 0 : U.images.mobileLogo) || (($ = e.matchQuiz.branding) == null ? void 0 : $.images.mainLogo) || "" : ((xe = e.matchQuiz.branding) == null ? void 0 : xe.images.mainLogo) || "", f = e.imagePosition || "left", a = _().textPrimary, S = (l == null ? void 0 : l.primaryColor) || _().palette.primary.plainColor, s = (l == null ? void 0 : l.contentColor) || _().textColor, x = ee().secondary, b = ee().primary, z = _().surface, C = `rgba(${ye(
|
|
10316
10317
|
(l == null ? void 0 : l.backgroundColor) || _().surfaceVariant
|
|
10317
|
-
)}, 0.5)`, I = _().onSurface, T =
|
|
10318
|
+
)}, 0.5)`, I = _().onSurface, T = re(), E = Rt().size, g = Se(), F = `rgba(${ye(
|
|
10318
10319
|
_().surfaceVariant || ""
|
|
10319
10320
|
)}, 0.5)`, P = rt(
|
|
10320
10321
|
Ce.STANDARD
|
|
10321
|
-
), M = "60%",
|
|
10322
|
+
), M = "60%", L = (l == null ? void 0 : l.secondaryColor) || _().textColor, { leaderboard: H, userRankings: v, pagination: V, currentPage: R, goToPage: W } = en(e.matchQuiz.id, e.sdk), O = pt(
|
|
10322
10323
|
e.matchQuiz.id,
|
|
10323
10324
|
e.sdk,
|
|
10324
10325
|
e.showPredictionDetails || !1
|
|
10325
|
-
), k =
|
|
10326
|
+
), k = xa({
|
|
10326
10327
|
finalImage: o,
|
|
10327
10328
|
spacingScale: g,
|
|
10328
10329
|
borderRadius: T,
|
|
10329
10330
|
fontFamilyPrimary: b,
|
|
10330
|
-
fontFamilySecondary:
|
|
10331
|
+
fontFamilySecondary: x,
|
|
10331
10332
|
textPrimary: a,
|
|
10332
10333
|
primaryColor: S,
|
|
10333
10334
|
textColor: s,
|
|
@@ -10335,7 +10336,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10335
10336
|
buttonBgColor: z,
|
|
10336
10337
|
onSurfaceColor: I,
|
|
10337
10338
|
borderSize: E,
|
|
10338
|
-
surfaceVariant:
|
|
10339
|
+
surfaceVariant: F,
|
|
10339
10340
|
brandingColors: l,
|
|
10340
10341
|
imagePosition: f,
|
|
10341
10342
|
successColor: n.colorSchemes.light.palette.success.plainColor,
|
|
@@ -10345,7 +10346,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10345
10346
|
imageBackgroundGradient: P,
|
|
10346
10347
|
darkTextColor: n.colorSchemes.dark.textColor,
|
|
10347
10348
|
opacity: M,
|
|
10348
|
-
secondaryColor:
|
|
10349
|
+
secondaryColor: L,
|
|
10349
10350
|
isExtraSmall: m
|
|
10350
10351
|
}), Q = () => {
|
|
10351
10352
|
var ze;
|
|
@@ -10362,7 +10363,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10362
10363
|
},
|
|
10363
10364
|
children: [
|
|
10364
10365
|
/* @__PURE__ */ t(
|
|
10365
|
-
|
|
10366
|
+
y,
|
|
10366
10367
|
{
|
|
10367
10368
|
level: "body-sm",
|
|
10368
10369
|
sx: k.headlineTypographyDesktop,
|
|
@@ -10381,20 +10382,20 @@ const pi = yn("ChevronsRight", [
|
|
|
10381
10382
|
}
|
|
10382
10383
|
),
|
|
10383
10384
|
/* @__PURE__ */ d(i, { sx: k.contentContainer, children: [
|
|
10384
|
-
/* @__PURE__ */ t(
|
|
10385
|
-
/* @__PURE__ */ t(
|
|
10385
|
+
/* @__PURE__ */ t(y, { level: "h4", sx: k.titleTypographyDesktop, children: e.matchQuiz.title }),
|
|
10386
|
+
/* @__PURE__ */ t(y, { sx: k.descriptionTypographyDesktop, children: St(e.matchQuiz.description) })
|
|
10386
10387
|
] })
|
|
10387
10388
|
] }) }) }),
|
|
10388
10389
|
/* @__PURE__ */ t(i, { sx: k.questionArea, children: /* @__PURE__ */ t(i, { sx: k.questionContainer, children: /* @__PURE__ */ t(i, { sx: k.questionContentContainer, children: /* @__PURE__ */ t(
|
|
10389
10390
|
tn,
|
|
10390
10391
|
{
|
|
10391
10392
|
leaderboard: H,
|
|
10392
|
-
userRankings:
|
|
10393
|
+
userRankings: v,
|
|
10393
10394
|
matchQuiz: e.matchQuiz,
|
|
10394
10395
|
showHeading: !e.showPredictionDetails
|
|
10395
10396
|
}
|
|
10396
10397
|
) }) }) }),
|
|
10397
|
-
u ||
|
|
10398
|
+
u || v && V && V.numberOfPages > 1 ? /* @__PURE__ */ d(i, { sx: k.presentedByContainer, children: [
|
|
10398
10399
|
u ? /* @__PURE__ */ t(
|
|
10399
10400
|
ke,
|
|
10400
10401
|
{
|
|
@@ -10403,7 +10404,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10403
10404
|
label: ((ze = e.matchQuiz.labels) == null ? void 0 : ze.sponsor) || null
|
|
10404
10405
|
}
|
|
10405
10406
|
) : /* @__PURE__ */ t(p, {}),
|
|
10406
|
-
|
|
10407
|
+
v && V && V.numberOfPages > 1 && /* @__PURE__ */ t(
|
|
10407
10408
|
i,
|
|
10408
10409
|
{
|
|
10409
10410
|
sx: {
|
|
@@ -10438,7 +10439,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10438
10439
|
},
|
|
10439
10440
|
children: [
|
|
10440
10441
|
/* @__PURE__ */ t(
|
|
10441
|
-
|
|
10442
|
+
y,
|
|
10442
10443
|
{
|
|
10443
10444
|
level: "body-sm",
|
|
10444
10445
|
sx: k.headlineTypographyMobileImage,
|
|
@@ -10457,8 +10458,8 @@ const pi = yn("ChevronsRight", [
|
|
|
10457
10458
|
}
|
|
10458
10459
|
),
|
|
10459
10460
|
/* @__PURE__ */ d(i, { sx: k.contentContainer, children: [
|
|
10460
|
-
/* @__PURE__ */ t(
|
|
10461
|
-
/* @__PURE__ */ t(
|
|
10461
|
+
/* @__PURE__ */ t(y, { sx: k.titleTypographyMobileImage, children: e.matchQuiz.title }),
|
|
10462
|
+
/* @__PURE__ */ t(y, { sx: k.descriptionTypographyMobileImage, children: St(e.matchQuiz.description) })
|
|
10462
10463
|
] })
|
|
10463
10464
|
] }) }) }) : /* @__PURE__ */ t(i, { sx: k.mobileHeadlineWithoutImage, children: /* @__PURE__ */ d(i, { children: [
|
|
10464
10465
|
/* @__PURE__ */ d(
|
|
@@ -10471,7 +10472,7 @@ const pi = yn("ChevronsRight", [
|
|
|
10471
10472
|
gap: g["3xs"]
|
|
10472
10473
|
},
|
|
10473
10474
|
children: [
|
|
10474
|
-
/* @__PURE__ */ t(
|
|
10475
|
+
/* @__PURE__ */ t(y, { level: "body-sm", sx: k.headlineTypography, children: r("matchQuiz.headline") }),
|
|
10475
10476
|
/* @__PURE__ */ t(
|
|
10476
10477
|
Ct,
|
|
10477
10478
|
{
|
|
@@ -10484,8 +10485,8 @@ const pi = yn("ChevronsRight", [
|
|
|
10484
10485
|
}
|
|
10485
10486
|
),
|
|
10486
10487
|
/* @__PURE__ */ d(i, { sx: k.contentContainer, children: [
|
|
10487
|
-
/* @__PURE__ */ t(
|
|
10488
|
-
/* @__PURE__ */ t(
|
|
10488
|
+
/* @__PURE__ */ t(y, { level: "h4", sx: k.titleTypography, children: e.matchQuiz.title }),
|
|
10489
|
+
/* @__PURE__ */ t(y, { sx: k.descriptionTypography, children: St(e.matchQuiz.description) })
|
|
10489
10490
|
] })
|
|
10490
10491
|
] }) }) : /* @__PURE__ */ t(p, {});
|
|
10491
10492
|
return /* @__PURE__ */ t(qe, { brandingBorderColor: (l == null ? void 0 : l.borderColor) || null, children: e.showPredictionDetails ? /* @__PURE__ */ t(
|
|
@@ -10513,65 +10514,12 @@ const pi = yn("ChevronsRight", [
|
|
|
10513
10514
|
Q(),
|
|
10514
10515
|
o && f === "right" && /* @__PURE__ */ t(i, { sx: k.imageContainerRight, children: /* @__PURE__ */ t(i, { sx: k.imageSafeArea }) })
|
|
10515
10516
|
] }) });
|
|
10516
|
-
}, kt = ({
|
|
10517
|
-
notification: e,
|
|
10518
|
-
onClose: n
|
|
10519
|
-
}) => {
|
|
10520
|
-
const o = ie(), r = ee();
|
|
10521
|
-
return e.open ? /* @__PURE__ */ t(
|
|
10522
|
-
pn,
|
|
10523
|
-
{
|
|
10524
|
-
open: e.open,
|
|
10525
|
-
onClose: n,
|
|
10526
|
-
autoHideDuration: e.variant === "error" ? 5e3 : 3e3,
|
|
10527
|
-
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
10528
|
-
color: e.variant === "success" ? "success" : "danger",
|
|
10529
|
-
variant: "soft",
|
|
10530
|
-
startDecorator: e.variant === "success" ? /* @__PURE__ */ t(bn, {}) : /* @__PURE__ */ t(qn, {}),
|
|
10531
|
-
sx: {
|
|
10532
|
-
borderRadius: o.sm,
|
|
10533
|
-
fontFamily: r.secondary,
|
|
10534
|
-
minWidth: "300px",
|
|
10535
|
-
maxWidth: "400px",
|
|
10536
|
-
zIndex: 9999,
|
|
10537
|
-
position: "fixed"
|
|
10538
|
-
},
|
|
10539
|
-
children: /* @__PURE__ */ d(i, { sx: { display: "flex", flexDirection: "column", gap: "4px" }, children: [
|
|
10540
|
-
e.title && /* @__PURE__ */ t(
|
|
10541
|
-
x,
|
|
10542
|
-
{
|
|
10543
|
-
level: "title-md",
|
|
10544
|
-
sx: {
|
|
10545
|
-
fontWeight: 600,
|
|
10546
|
-
fontSize: "16px",
|
|
10547
|
-
lineHeight: 1.2,
|
|
10548
|
-
color: "inherit"
|
|
10549
|
-
},
|
|
10550
|
-
children: e.title
|
|
10551
|
-
}
|
|
10552
|
-
),
|
|
10553
|
-
e.message && /* @__PURE__ */ t(
|
|
10554
|
-
x,
|
|
10555
|
-
{
|
|
10556
|
-
level: "body-sm",
|
|
10557
|
-
sx: {
|
|
10558
|
-
fontSize: "14px",
|
|
10559
|
-
lineHeight: 1.3,
|
|
10560
|
-
color: "inherit",
|
|
10561
|
-
opacity: 0.9
|
|
10562
|
-
},
|
|
10563
|
-
children: e.message
|
|
10564
|
-
}
|
|
10565
|
-
)
|
|
10566
|
-
] })
|
|
10567
|
-
}
|
|
10568
|
-
) : null;
|
|
10569
10517
|
};
|
|
10570
10518
|
function mt(e) {
|
|
10571
10519
|
return e.template === Ce.STANDARD;
|
|
10572
10520
|
}
|
|
10573
|
-
const
|
|
10574
|
-
const o = (l) =>
|
|
10521
|
+
const Sa = (e, n) => {
|
|
10522
|
+
const o = (l) => oi(l) ? "0:0" : ut(l) ? !0 : l === c.CORNERS_MATCH ? 6 : null, r = new gn();
|
|
10575
10523
|
return r.gameInstanceId = e, r.fixtures = n.map((l) => {
|
|
10576
10524
|
const h = o(l.market);
|
|
10577
10525
|
return {
|
|
@@ -10584,12 +10532,12 @@ const ba = (e, n) => {
|
|
|
10584
10532
|
}
|
|
10585
10533
|
};
|
|
10586
10534
|
}), r;
|
|
10587
|
-
},
|
|
10535
|
+
}, Ca = (e) => {
|
|
10588
10536
|
const { t: n } = ne(), {
|
|
10589
10537
|
game: o,
|
|
10590
10538
|
squads: r,
|
|
10591
10539
|
points: l
|
|
10592
|
-
} =
|
|
10540
|
+
} = li(e.entityId, e.sdk, e.showPoints), {
|
|
10593
10541
|
myPrediction: h,
|
|
10594
10542
|
setMyPrediction: m,
|
|
10595
10543
|
isUnauthorized: u,
|
|
@@ -10597,15 +10545,15 @@ const ba = (e, n) => {
|
|
|
10597
10545
|
apiErrorMessage: a,
|
|
10598
10546
|
setIsApiError: S,
|
|
10599
10547
|
setApiErrorMessage: s,
|
|
10600
|
-
setIsUnauthorized:
|
|
10601
|
-
} =
|
|
10548
|
+
setIsUnauthorized: x
|
|
10549
|
+
} = ri(e.entityId, e.sdk), [b, z] = te(!1), [C, I] = te(
|
|
10602
10550
|
new gn()
|
|
10603
|
-
), [T, E] = te(!1), [g,
|
|
10551
|
+
), [T, E] = te(!1), [g, F] = te(!1), [P, M] = te(!1), [L, H] = te({
|
|
10604
10552
|
open: !1,
|
|
10605
10553
|
variant: "success",
|
|
10606
10554
|
title: "",
|
|
10607
10555
|
message: ""
|
|
10608
|
-
}),
|
|
10556
|
+
}), v = (N, U, $) => {
|
|
10609
10557
|
H({
|
|
10610
10558
|
open: !0,
|
|
10611
10559
|
variant: N,
|
|
@@ -10616,27 +10564,27 @@ const ba = (e, n) => {
|
|
|
10616
10564
|
H((N) => ({ ...N, open: !1 }));
|
|
10617
10565
|
}, R = (N) => {
|
|
10618
10566
|
var U, $, xe, ge, ze;
|
|
10619
|
-
N.success ?
|
|
10567
|
+
N.success ? v(
|
|
10620
10568
|
"success",
|
|
10621
10569
|
n("matchQuiz.alerts.play.success.title"),
|
|
10622
10570
|
n("matchQuiz.alerts.play.success.message")
|
|
10623
|
-
) :
|
|
10571
|
+
) : v(
|
|
10624
10572
|
"error",
|
|
10625
10573
|
n("matchQuiz.alerts.play.error.title"),
|
|
10626
10574
|
((xe = ($ = (U = N.error) == null ? void 0 : U.data) == null ? void 0 : $.error) == null ? void 0 : xe.message) || ((ze = (ge = N.error) == null ? void 0 : ge.error) == null ? void 0 : ze.message) || n("matchQuiz.alerts.play.error.message")
|
|
10627
10575
|
);
|
|
10628
|
-
}, W = tt(() => o ?
|
|
10576
|
+
}, W = tt(() => o ? An(o.related) : null, [o]);
|
|
10629
10577
|
if (gt(() => {
|
|
10630
10578
|
o && o.status === "OPEN" && I(
|
|
10631
|
-
|
|
10579
|
+
Sa(e.entityId, o.fixtures)
|
|
10632
10580
|
);
|
|
10633
10581
|
}, [o == null ? void 0 : o.status]), !o || !r || !l)
|
|
10634
10582
|
return /* @__PURE__ */ t(Ht, { my: 20 });
|
|
10635
10583
|
if (!o.id)
|
|
10636
|
-
return /* @__PURE__ */ t(
|
|
10584
|
+
return /* @__PURE__ */ t(ia, {});
|
|
10637
10585
|
if (o.authRequirement === "REGISTERED" && !e.userIsLoggedIn)
|
|
10638
10586
|
return mt(e) ? /* @__PURE__ */ t(
|
|
10639
|
-
|
|
10587
|
+
ca,
|
|
10640
10588
|
{
|
|
10641
10589
|
matchQuiz: o,
|
|
10642
10590
|
imagePosition: e.imagePosition,
|
|
@@ -10645,7 +10593,7 @@ const ba = (e, n) => {
|
|
|
10645
10593
|
rulesDisplay: e.rulesDisplay
|
|
10646
10594
|
}
|
|
10647
10595
|
) : e.template === Ce.OVERLAY ? /* @__PURE__ */ t(
|
|
10648
|
-
|
|
10596
|
+
ua,
|
|
10649
10597
|
{
|
|
10650
10598
|
matchQuiz: o,
|
|
10651
10599
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
@@ -10653,7 +10601,7 @@ const ba = (e, n) => {
|
|
|
10653
10601
|
rulesDisplay: e.rulesDisplay
|
|
10654
10602
|
}
|
|
10655
10603
|
) : /* @__PURE__ */ t(
|
|
10656
|
-
|
|
10604
|
+
da,
|
|
10657
10605
|
{
|
|
10658
10606
|
matchQuiz: o,
|
|
10659
10607
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
@@ -10662,11 +10610,11 @@ const ba = (e, n) => {
|
|
|
10662
10610
|
}
|
|
10663
10611
|
);
|
|
10664
10612
|
const O = () => {
|
|
10665
|
-
S(!1),
|
|
10613
|
+
S(!1), x(!1), s("");
|
|
10666
10614
|
};
|
|
10667
10615
|
if (u || f)
|
|
10668
10616
|
return mt(e) ? /* @__PURE__ */ t(
|
|
10669
|
-
|
|
10617
|
+
aa,
|
|
10670
10618
|
{
|
|
10671
10619
|
matchQuiz: o,
|
|
10672
10620
|
imagePosition: e.imagePosition,
|
|
@@ -10677,7 +10625,7 @@ const ba = (e, n) => {
|
|
|
10677
10625
|
rulesDisplay: e.rulesDisplay
|
|
10678
10626
|
}
|
|
10679
10627
|
) : e.template === Ce.OVERLAY ? /* @__PURE__ */ t(
|
|
10680
|
-
|
|
10628
|
+
la,
|
|
10681
10629
|
{
|
|
10682
10630
|
matchQuiz: o,
|
|
10683
10631
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
@@ -10687,7 +10635,7 @@ const ba = (e, n) => {
|
|
|
10687
10635
|
rulesDisplay: e.rulesDisplay
|
|
10688
10636
|
}
|
|
10689
10637
|
) : /* @__PURE__ */ t(
|
|
10690
|
-
|
|
10638
|
+
oa,
|
|
10691
10639
|
{
|
|
10692
10640
|
matchQuiz: o,
|
|
10693
10641
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
@@ -10729,7 +10677,7 @@ const ba = (e, n) => {
|
|
|
10729
10677
|
};
|
|
10730
10678
|
try {
|
|
10731
10679
|
const $ = await e.sdk.matchQuiz.play(N);
|
|
10732
|
-
m($),
|
|
10680
|
+
m($), v(
|
|
10733
10681
|
"success",
|
|
10734
10682
|
n("matchQuiz.alerts.play.success.title"),
|
|
10735
10683
|
n("matchQuiz.alerts.play.success.message")
|
|
@@ -10737,14 +10685,14 @@ const ba = (e, n) => {
|
|
|
10737
10685
|
} catch ($) {
|
|
10738
10686
|
if (e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
10739
10687
|
const ge = $;
|
|
10740
|
-
ge.error.code === 401 || ge.error.code === 403 ?
|
|
10688
|
+
ge.error.code === 401 || ge.error.code === 403 ? x(!0) : v(
|
|
10741
10689
|
"error",
|
|
10742
10690
|
n("matchQuiz.alerts.play.error.title"),
|
|
10743
10691
|
ge.error.message || n("matchQuiz.alerts.play.error.message")
|
|
10744
10692
|
);
|
|
10745
10693
|
} else {
|
|
10746
10694
|
const ge = $;
|
|
10747
|
-
ge.data.error.code === 401 || ge.data.error.code === 403 ?
|
|
10695
|
+
ge.data.error.code === 401 || ge.data.error.code === 403 ? x(!0) : v(
|
|
10748
10696
|
"error",
|
|
10749
10697
|
n("matchQuiz.alerts.play.error.title"),
|
|
10750
10698
|
ge.data.error.message || n("matchQuiz.alerts.play.error.message")
|
|
@@ -10766,7 +10714,7 @@ const ba = (e, n) => {
|
|
|
10766
10714
|
};
|
|
10767
10715
|
try {
|
|
10768
10716
|
const U = await e.sdk.matchQuiz.play(N);
|
|
10769
|
-
m(U),
|
|
10717
|
+
m(U), v(
|
|
10770
10718
|
"success",
|
|
10771
10719
|
n("matchQuiz.alerts.play.success.title"),
|
|
10772
10720
|
n("matchQuiz.alerts.play.success.message")
|
|
@@ -10774,16 +10722,16 @@ const ba = (e, n) => {
|
|
|
10774
10722
|
} catch (U) {
|
|
10775
10723
|
if (e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
10776
10724
|
const xe = U;
|
|
10777
|
-
xe.error.code === 401 || xe.error.code === 403 ?
|
|
10725
|
+
xe.error.code === 401 || xe.error.code === 403 ? x(!0) : (S(!0), s(xe.error.message));
|
|
10778
10726
|
} else {
|
|
10779
10727
|
const xe = U;
|
|
10780
|
-
xe.data.error.code === 401 || xe.data.error.code === 403 ?
|
|
10728
|
+
xe.data.error.code === 401 || xe.data.error.code === 403 ? x(!0) : (S(!0), s(xe.data.error.message));
|
|
10781
10729
|
}
|
|
10782
10730
|
} finally {
|
|
10783
|
-
E(!1),
|
|
10731
|
+
E(!1), F(!0);
|
|
10784
10732
|
}
|
|
10785
10733
|
}, ue = () => e.template === Ce.OVERLAY ? /* @__PURE__ */ t(
|
|
10786
|
-
|
|
10734
|
+
Mi,
|
|
10787
10735
|
{
|
|
10788
10736
|
isPlaying: b,
|
|
10789
10737
|
prediction: C,
|
|
@@ -10797,7 +10745,7 @@ const ba = (e, n) => {
|
|
|
10797
10745
|
rulesDisplay: e.rulesDisplay
|
|
10798
10746
|
}
|
|
10799
10747
|
) : mt(e) ? /* @__PURE__ */ t(
|
|
10800
|
-
|
|
10748
|
+
Oi,
|
|
10801
10749
|
{
|
|
10802
10750
|
isPlaying: b,
|
|
10803
10751
|
sdk: e.sdk,
|
|
@@ -10812,7 +10760,7 @@ const ba = (e, n) => {
|
|
|
10812
10760
|
rulesDisplay: e.rulesDisplay
|
|
10813
10761
|
}
|
|
10814
10762
|
) : /* @__PURE__ */ t(
|
|
10815
|
-
|
|
10763
|
+
Bi,
|
|
10816
10764
|
{
|
|
10817
10765
|
isPlaying: b,
|
|
10818
10766
|
prediction: C,
|
|
@@ -10834,7 +10782,7 @@ const ba = (e, n) => {
|
|
|
10834
10782
|
points: l,
|
|
10835
10783
|
squads: r,
|
|
10836
10784
|
children: /* @__PURE__ */ t(
|
|
10837
|
-
|
|
10785
|
+
ya,
|
|
10838
10786
|
{
|
|
10839
10787
|
sdk: e.sdk,
|
|
10840
10788
|
matchQuiz: o,
|
|
@@ -10853,7 +10801,7 @@ const ba = (e, n) => {
|
|
|
10853
10801
|
points: l,
|
|
10854
10802
|
squads: r,
|
|
10855
10803
|
children: /* @__PURE__ */ t(
|
|
10856
|
-
|
|
10804
|
+
ea,
|
|
10857
10805
|
{
|
|
10858
10806
|
sdk: e.sdk,
|
|
10859
10807
|
matchQuiz: o,
|
|
@@ -10871,7 +10819,7 @@ const ba = (e, n) => {
|
|
|
10871
10819
|
points: l,
|
|
10872
10820
|
squads: r,
|
|
10873
10821
|
children: /* @__PURE__ */ t(
|
|
10874
|
-
|
|
10822
|
+
Ji,
|
|
10875
10823
|
{
|
|
10876
10824
|
sdk: e.sdk,
|
|
10877
10825
|
matchQuiz: o,
|
|
@@ -10885,7 +10833,7 @@ const ba = (e, n) => {
|
|
|
10885
10833
|
);
|
|
10886
10834
|
if (P && !g)
|
|
10887
10835
|
return mt(e) ? /* @__PURE__ */ t(
|
|
10888
|
-
|
|
10836
|
+
ga,
|
|
10889
10837
|
{
|
|
10890
10838
|
matchQuiz: o,
|
|
10891
10839
|
sdk: e.sdk,
|
|
@@ -10897,7 +10845,7 @@ const ba = (e, n) => {
|
|
|
10897
10845
|
rulesDisplay: e.rulesDisplay
|
|
10898
10846
|
}
|
|
10899
10847
|
) : e.template === Ce.SPLIT ? /* @__PURE__ */ t(
|
|
10900
|
-
|
|
10848
|
+
ha,
|
|
10901
10849
|
{
|
|
10902
10850
|
matchQuiz: o,
|
|
10903
10851
|
sdk: e.sdk,
|
|
@@ -10908,7 +10856,7 @@ const ba = (e, n) => {
|
|
|
10908
10856
|
rulesDisplay: e.rulesDisplay
|
|
10909
10857
|
}
|
|
10910
10858
|
) : e.template === Ce.OVERLAY ? /* @__PURE__ */ t(
|
|
10911
|
-
|
|
10859
|
+
fa,
|
|
10912
10860
|
{
|
|
10913
10861
|
matchQuiz: o,
|
|
10914
10862
|
sdk: e.sdk,
|
|
@@ -10929,7 +10877,7 @@ const ba = (e, n) => {
|
|
|
10929
10877
|
squads: r,
|
|
10930
10878
|
children: [
|
|
10931
10879
|
/* @__PURE__ */ t(
|
|
10932
|
-
|
|
10880
|
+
na,
|
|
10933
10881
|
{
|
|
10934
10882
|
sdk: e.sdk,
|
|
10935
10883
|
leads: e.leads,
|
|
@@ -10950,7 +10898,7 @@ const ba = (e, n) => {
|
|
|
10950
10898
|
/* @__PURE__ */ t(
|
|
10951
10899
|
kt,
|
|
10952
10900
|
{
|
|
10953
|
-
notification:
|
|
10901
|
+
notification: L,
|
|
10954
10902
|
onClose: V
|
|
10955
10903
|
}
|
|
10956
10904
|
)
|
|
@@ -10964,7 +10912,7 @@ const ba = (e, n) => {
|
|
|
10964
10912
|
squads: r,
|
|
10965
10913
|
children: [
|
|
10966
10914
|
/* @__PURE__ */ t(
|
|
10967
|
-
|
|
10915
|
+
$i,
|
|
10968
10916
|
{
|
|
10969
10917
|
imagePosition: e.imagePosition || "left",
|
|
10970
10918
|
matchQuiz: o,
|
|
@@ -10986,7 +10934,7 @@ const ba = (e, n) => {
|
|
|
10986
10934
|
/* @__PURE__ */ t(
|
|
10987
10935
|
kt,
|
|
10988
10936
|
{
|
|
10989
|
-
notification:
|
|
10937
|
+
notification: L,
|
|
10990
10938
|
onClose: V
|
|
10991
10939
|
}
|
|
10992
10940
|
)
|
|
@@ -11000,7 +10948,7 @@ const ba = (e, n) => {
|
|
|
11000
10948
|
squads: r,
|
|
11001
10949
|
children: [
|
|
11002
10950
|
/* @__PURE__ */ t(
|
|
11003
|
-
|
|
10951
|
+
Ui,
|
|
11004
10952
|
{
|
|
11005
10953
|
matchQuiz: o,
|
|
11006
10954
|
sdk: e.sdk,
|
|
@@ -11018,7 +10966,7 @@ const ba = (e, n) => {
|
|
|
11018
10966
|
chanceGameContent: U
|
|
11019
10967
|
}
|
|
11020
10968
|
),
|
|
11021
|
-
/* @__PURE__ */ t(kt, { notification:
|
|
10969
|
+
/* @__PURE__ */ t(kt, { notification: L, onClose: V })
|
|
11022
10970
|
]
|
|
11023
10971
|
}
|
|
11024
10972
|
);
|
|
@@ -11033,9 +10981,9 @@ const ba = (e, n) => {
|
|
|
11033
10981
|
children: ue()
|
|
11034
10982
|
}
|
|
11035
10983
|
),
|
|
11036
|
-
/* @__PURE__ */ t(kt, { notification:
|
|
10984
|
+
/* @__PURE__ */ t(kt, { notification: L, onClose: V })
|
|
11037
10985
|
] });
|
|
11038
|
-
},
|
|
10986
|
+
}, ba = (e) => /* @__PURE__ */ t(In, { packageName: "match-quiz-play", ...e, children: /* @__PURE__ */ t(Ca, { ...e }) }), Ha = ba;
|
|
11039
10987
|
export {
|
|
11040
|
-
|
|
10988
|
+
Ha as MatchQuizPlay
|
|
11041
10989
|
};
|