fansunited-frontend-components 0.0.92 → 0.0.94
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/Betslip.js +1 -1
- package/ChanceGame.js +139 -146
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +14 -20
- package/CompetitionStatistics.js +27 -27
- package/CompetitorCard.js +895 -891
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +1494 -1571
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +249 -257
- package/List.js +319 -436
- package/MatchQuizPlay.js +1 -1
- package/Odds.js +30 -30
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +627 -693
- package/PlayerOfTheMatch.js +256 -279
- package/PollVote.js +1 -1
- package/Predictor.js +19443 -2
- package/README.md +2 -1
- package/Standings.js +94 -99
- package/TopX.js +5871 -6988
- package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
- package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
- package/chunks/{OddsStrip-B159Nivm.js → OddsStrip-CviVfQI4.js} +51 -53
- package/chunks/{PickOneOfX-D9qlxKTD.js → PickOneOfX-a6Dv0-rR.js} +210 -212
- package/chunks/index-B1d9q8fX.js +4 -0
- package/chunks/index-BP0pvFJ4.js +4 -0
- package/chunks/index-CHZyL_g_.js +4 -0
- package/chunks/index-CeCUdRmF.js +4 -0
- package/chunks/index-Ckyyw-I8.js +4 -0
- package/chunks/index-DGvCP5G8.js +4 -0
- package/chunks/index-yjMVOgwO.js +4 -0
- package/chunks/{main-CcPVuc5G.js → main-CFwRpvUi.js} +219 -238
- package/chunks/{main-By2Fg4Us.js → main-D9tFZv2q.js} +272 -309
- package/chunks/{main-Db4YC1C9.js → main-Dj4Manb5.js} +386 -407
- package/chunks/{main-BhONg691.js → main-DjiQz1dv.js} +764 -1125
- package/chunks/{main-BoLNJccN.js → main-Dys2_Jt2.js} +1625 -1954
- package/chunks/{main-JAewg2VD.js → main-dwV_55lz.js} +409 -432
- package/chunks/main-eAQMCxQ7.js +1949 -0
- package/chunks/{main-CWfREbUv.js → main-gexg6lc-.js} +959 -977
- package/index.js +40 -44
- package/package.json +13 -5
- package/chunks/AccessTime-B7Q_InTi.js +0 -10
- package/chunks/AlertMessage-CTbc9daZ.js +0 -318
- package/chunks/Avatar-Ve0m4ut_.js +0 -353
- package/chunks/Button-x1sQVMH2.js +0 -665
- package/chunks/Card-DfxnA3Cz.js +0 -196
- package/chunks/CardActions-TMBAbk8a.js +0 -140
- package/chunks/CardContent-CLQHztIU.js +0 -106
- package/chunks/ChanceGameEmbedVariant-C3TKbPI4.js +0 -913
- package/chunks/CheckCircle-DW1VzjQO.js +0 -8
- package/chunks/Chip-BUoNpinI.js +0 -365
- package/chunks/CircularProgress-D88LgW2V.js +0 -317
- package/chunks/Close-BxLZcPtb.js +0 -9
- package/chunks/Close-DVx6f5-e.js +0 -8
- package/chunks/CollectLeadForm-DtUFKk99.js +0 -3419
- package/chunks/ConsentsList-BcIMKviP.js +0 -339
- package/chunks/DirectionScope-CK0duYt8.js +0 -36
- package/chunks/Divider-D_ALv2uC.js +0 -166
- package/chunks/Edit-CiKqhDom.js +0 -99
- package/chunks/EmojiEvents-BYoxruEl.js +0 -8
- package/chunks/FavoriteBorder-YhT6RHv5.js +0 -11
- package/chunks/FormControl-BNG04EhC.js +0 -656
- package/chunks/FormControlContext-Ct0huDDM.js +0 -6
- package/chunks/FormLabel-Bl7hTa8O.js +0 -130
- package/chunks/GlobalStyles-PokSS9bO.js +0 -12
- package/chunks/InlineSpinner-BhKW6lxZ.js +0 -28
- package/chunks/Input-B7kPqO0b.js +0 -391
- package/chunks/KeyboardArrowDown-OGGGLEnE.js +0 -8
- package/chunks/KeyboardArrowRight-DN7qrp17.js +0 -11
- package/chunks/KeyboardArrowUp-jvN5m_A0.js +0 -8
- package/chunks/Link-brb09X-6.js +0 -319
- package/chunks/ListItemButton-BFG5QJbo.js +0 -1151
- package/chunks/ModalClose-D3i-AyMB.js +0 -153
- package/chunks/ModalDialog-Be6w76fh.js +0 -880
- package/chunks/NotFoundSkeleton-BHRVG8yg.js +0 -83
- package/chunks/Notification-CC66HKXb.js +0 -614
- package/chunks/OddsSkeleton-BBOVhfsn.js +0 -137
- package/chunks/OverlayScoreStateSkeleton-D5rnBJ_w.js +0 -154
- package/chunks/OverlayScoreStateWrapperSkeleton-CTXzD0bm.js +0 -81
- package/chunks/OverlaySignInSkeleton-T8A_9Tco.js +0 -518
- package/chunks/OverlaySkeleton-y02LRXZy.js +0 -1193
- package/chunks/Person-BD-IO4aX.js +0 -8
- package/chunks/PersonOutline-Nxl_9g9S.js +0 -8
- package/chunks/Popper-CGfJHTbM.js +0 -1263
- package/chunks/Portal-DQQSLiON.js +0 -74
- package/chunks/Portal-X8O64KaQ.js +0 -66
- package/chunks/Predictor-BJBBwZ6R.js +0 -19513
- package/chunks/PrizeCard-B2tBhY45.js +0 -36400
- package/chunks/Search-jaDXe8g7.js +0 -14
- package/chunks/Select-CzBMHr7z.js +0 -1165
- package/chunks/Sheet-x-YGYOYz.js +0 -132
- package/chunks/SignInCta-3NFxIOuf.js +0 -79
- package/chunks/Spinner-_5U881sC.js +0 -39
- package/chunks/SportsSoccer-DLUgspA-.js +0 -20
- package/chunks/Stack-CDpKA1D-.js +0 -169
- package/chunks/StandardContentSkeleton-DaZftDxZ.js +0 -57
- package/chunks/Table-IJ9-D2DF.js +0 -394
- package/chunks/Tabs-iyOvjGfd.js +0 -1084
- package/chunks/Textarea-Dv_Z4l5j.js +0 -475
- package/chunks/TimerOutlined-jNsK__Zz.js +0 -8
- package/chunks/Tooltip-clSjN1oC.js +0 -535
- package/chunks/Typography-BsucZNXl.js +0 -775
- package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
- package/chunks/colorInversionUtils-AoR_6ghW.js +0 -347
- package/chunks/createSvgIcon-BWoHeNkc.js +0 -2813
- package/chunks/createSvgIcon-DBkOhFdn.js +0 -206
- package/chunks/dividerClasses-BkQMLbsL.js +0 -9
- package/chunks/elementAcceptingRef-DjUfkpLB.js +0 -25
- package/chunks/enums-B1lTCQvC.js +0 -15
- package/chunks/formLabelClasses-N0g8NZ67.js +0 -9
- package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
- package/chunks/helpers-CKFwVhwj.js +0 -558
- package/chunks/index-Bg5jypgn.js +0 -11
- package/chunks/index-Bnad45hB.js +0 -4
- package/chunks/index-C6rtfeRX.js +0 -4
- package/chunks/index-CFc0WTOi.js +0 -848
- package/chunks/index-C_kf8WZI.js +0 -4
- package/chunks/index-CaVpDbdC.js +0 -4
- package/chunks/index-DJJVbXn_.js +0 -4
- package/chunks/index-DQO7VDRC.js +0 -4
- package/chunks/index-Kgehqf8J.js +0 -4
- package/chunks/main-W_W6YBtr.js +0 -3280
- package/chunks/ownerWindow-PI509BpA.js +0 -7
- package/chunks/searchEntities-SJcoznz0.js +0 -38
- package/chunks/sportsEvents-CGX-WkNB.js +0 -27
- package/chunks/useButton-C9taTgFS.js +0 -106
- package/chunks/useConsents-BLhgfEDf.js +0 -1168
- package/chunks/useControlled-BYdyS7Pn.js +0 -31
- package/chunks/useEmbedCode-DCWnWGak.js +0 -31
- package/chunks/useEventCallback-C9W0M_8l.js +0 -14
- package/chunks/useForwardedInput-CkAnayh_.js +0 -180
- package/chunks/useImageVariant-B62O7iLC.js +0 -15
- package/chunks/useInfoPage-BHdgKdme.js +0 -50
- package/chunks/useParticipationDraft-Brnd_p3w.js +0 -307
- package/chunks/useSwitch-DLSSqtcZ.js +0 -66
- package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
- package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
|
@@ -1,913 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, Fragment as U, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { i as O, k as p, c as _, d as $, u as z, f as v, g as k, e as Y, B as i, a as ne } from "./PrizeCard-B2tBhY45.js";
|
|
3
|
-
import { h as Z, g as ae, a as E } from "./helpers-CKFwVhwj.js";
|
|
4
|
-
import { W as V, a as K } from "./enums-B1lTCQvC.js";
|
|
5
|
-
import { R as G, A as le } from "./OverlaySkeleton-y02LRXZy.js";
|
|
6
|
-
import { T as g } from "./Typography-BsucZNXl.js";
|
|
7
|
-
import "react";
|
|
8
|
-
import "react-dom";
|
|
9
|
-
import { A as oe } from "./AlertMessage-CTbc9daZ.js";
|
|
10
|
-
import { R as re } from "./useConsents-BLhgfEDf.js";
|
|
11
|
-
import { b as ee, c as te } from "./index-Bg5jypgn.js";
|
|
12
|
-
import { u as ie } from "./useImageVariant-B62O7iLC.js";
|
|
13
|
-
import { B as ce } from "./Button-x1sQVMH2.js";
|
|
14
|
-
import { u as de } from "./useInfoPage-BHdgKdme.js";
|
|
15
|
-
import { f as se, e as ge, P as me } from "./PickOneOfX-D9qlxKTD.js";
|
|
16
|
-
const xe = (e) => {
|
|
17
|
-
var c, l, n, f;
|
|
18
|
-
return {
|
|
19
|
-
// Main headline section with background image
|
|
20
|
-
headlineSection: {
|
|
21
|
-
display: "flex",
|
|
22
|
-
flexDirection: "column",
|
|
23
|
-
justifyContent: "space-between",
|
|
24
|
-
gap: "10px",
|
|
25
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
26
|
-
width: e.isMobile ? "100%" : "50%",
|
|
27
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
28
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
29
|
-
backgroundImage: e.finalImage ? `url("${e.finalImage}")` : "none",
|
|
30
|
-
backgroundSize: "cover",
|
|
31
|
-
backgroundPosition: "center",
|
|
32
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
33
|
-
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
34
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
35
|
-
overflow: "hidden",
|
|
36
|
-
height: "auto",
|
|
37
|
-
position: "relative",
|
|
38
|
-
minHeight: e.isMobile ? "210px" : "430px",
|
|
39
|
-
"&::before": e.finalImage ? {
|
|
40
|
-
content: '""',
|
|
41
|
-
position: "absolute",
|
|
42
|
-
width: "100%",
|
|
43
|
-
height: "100%",
|
|
44
|
-
background: e.imageBackgroundGradient,
|
|
45
|
-
borderTopLeftRadius: "5px",
|
|
46
|
-
borderTopRightRadius: "5px"
|
|
47
|
-
} : {}
|
|
48
|
-
},
|
|
49
|
-
// Headline section without image
|
|
50
|
-
headlineSectionNoImage: {
|
|
51
|
-
display: "flex",
|
|
52
|
-
flexDirection: "column",
|
|
53
|
-
justifyContent: "space-between",
|
|
54
|
-
gap: "10px",
|
|
55
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
56
|
-
width: e.isMobile ? "100%" : "50%",
|
|
57
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
58
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
59
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
60
|
-
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
61
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
62
|
-
overflow: "hidden",
|
|
63
|
-
height: "auto",
|
|
64
|
-
position: "relative",
|
|
65
|
-
minHeight: e.isMobile ? "210px" : "430px",
|
|
66
|
-
backgroundColor: ((c = e.brandingColors) == null ? void 0 : c.backgroundColor) || e.textColor + "10"
|
|
67
|
-
},
|
|
68
|
-
// Embed code headline section (for poll-vote and classic-quiz-play)
|
|
69
|
-
embedCodeHeadlineSection: {
|
|
70
|
-
display: "flex",
|
|
71
|
-
flexDirection: "column",
|
|
72
|
-
justifyContent: "space-between",
|
|
73
|
-
gap: "10px",
|
|
74
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
75
|
-
width: e.isMobile ? "100%" : "50%",
|
|
76
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
77
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
78
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
79
|
-
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
80
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
81
|
-
overflow: "hidden",
|
|
82
|
-
height: "auto",
|
|
83
|
-
position: "relative",
|
|
84
|
-
minHeight: e.isMobile ? "210px" : "430px"
|
|
85
|
-
},
|
|
86
|
-
// AspectRatio container for embed code
|
|
87
|
-
aspectRatioContainer: {
|
|
88
|
-
borderRadius: 0,
|
|
89
|
-
width: "100%",
|
|
90
|
-
height: "100%"
|
|
91
|
-
},
|
|
92
|
-
// Headline content wrapper
|
|
93
|
-
headlineContent: {
|
|
94
|
-
zIndex: 1,
|
|
95
|
-
height: "100%",
|
|
96
|
-
p: e.spacingScale.xl,
|
|
97
|
-
gap: e.spacingScale.xl,
|
|
98
|
-
display: "flex",
|
|
99
|
-
flexDirection: "column",
|
|
100
|
-
justifyContent: "space-between"
|
|
101
|
-
},
|
|
102
|
-
// Embed code headline content (shown in question area when embed code is present)
|
|
103
|
-
embedCodeHeadlineContent: {
|
|
104
|
-
px: e.spacingScale.lg,
|
|
105
|
-
pt: e.spacingScale.lg,
|
|
106
|
-
display: "flex",
|
|
107
|
-
flexDirection: "column",
|
|
108
|
-
gap: e.spacingScale.md
|
|
109
|
-
},
|
|
110
|
-
// Headline typography (with image background)
|
|
111
|
-
headlineText: {
|
|
112
|
-
fontWeight: 500,
|
|
113
|
-
lineHeight: "166%",
|
|
114
|
-
letterSpacing: "1px",
|
|
115
|
-
fontSize: "0.75em",
|
|
116
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
117
|
-
opacity: "70%",
|
|
118
|
-
textTransform: "uppercase",
|
|
119
|
-
fontFamily: e.fontFamilySecondary,
|
|
120
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
121
|
-
},
|
|
122
|
-
// Headline typography (without image background)
|
|
123
|
-
headlineTextNoImage: {
|
|
124
|
-
fontWeight: 500,
|
|
125
|
-
lineHeight: "166%",
|
|
126
|
-
letterSpacing: "1px",
|
|
127
|
-
fontSize: "0.75em",
|
|
128
|
-
color: e.secondaryColor,
|
|
129
|
-
opacity: "70%",
|
|
130
|
-
textTransform: "uppercase",
|
|
131
|
-
fontFamily: e.fontFamilySecondary,
|
|
132
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
133
|
-
},
|
|
134
|
-
// Content container
|
|
135
|
-
contentContainer: {
|
|
136
|
-
display: "flex",
|
|
137
|
-
flexDirection: "column",
|
|
138
|
-
gap: e.spacingScale["3xs"]
|
|
139
|
-
},
|
|
140
|
-
// Title typography (with image background)
|
|
141
|
-
titleText: {
|
|
142
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
143
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
144
|
-
unicodeBidi: "plaintext",
|
|
145
|
-
fontWeight: 700,
|
|
146
|
-
lineHeight: "133%",
|
|
147
|
-
fontSize: "1.5em",
|
|
148
|
-
letterSpacing: "0.15px",
|
|
149
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
150
|
-
fontFamily: e.fontFamilyPrimary,
|
|
151
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
152
|
-
},
|
|
153
|
-
// Title typography (without image background)
|
|
154
|
-
titleTextNoImage: {
|
|
155
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
156
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
157
|
-
unicodeBidi: "plaintext",
|
|
158
|
-
fontWeight: 700,
|
|
159
|
-
lineHeight: "133%",
|
|
160
|
-
fontSize: "1.5em",
|
|
161
|
-
letterSpacing: "0.15px",
|
|
162
|
-
color: e.textColor,
|
|
163
|
-
fontFamily: e.fontFamilyPrimary,
|
|
164
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
165
|
-
},
|
|
166
|
-
// Description typography (with image background)
|
|
167
|
-
descriptionText: {
|
|
168
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
169
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
170
|
-
unicodeBidi: "plaintext",
|
|
171
|
-
fontWeight: 400,
|
|
172
|
-
lineHeight: "140%",
|
|
173
|
-
fontSize: "1.25em",
|
|
174
|
-
letterSpacing: "0.15px",
|
|
175
|
-
color: ((f = e.brandingColors) == null ? void 0 : f.secondaryColor) || e.darkTextColor,
|
|
176
|
-
opacity: "70%",
|
|
177
|
-
fontFamily: e.fontFamilyPrimary,
|
|
178
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
179
|
-
},
|
|
180
|
-
// Description typography (without image background)
|
|
181
|
-
descriptionTextNoImage: {
|
|
182
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
183
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
184
|
-
unicodeBidi: "plaintext",
|
|
185
|
-
fontWeight: 400,
|
|
186
|
-
lineHeight: "140%",
|
|
187
|
-
fontSize: "1.25em",
|
|
188
|
-
letterSpacing: "0.15px",
|
|
189
|
-
color: e.secondaryColor,
|
|
190
|
-
opacity: "70%",
|
|
191
|
-
fontFamily: e.fontFamilyPrimary,
|
|
192
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
193
|
-
},
|
|
194
|
-
// Question area / content section
|
|
195
|
-
questionArea: {
|
|
196
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
197
|
-
width: e.isMobile ? "100%" : "50%",
|
|
198
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
199
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
200
|
-
display: "flex",
|
|
201
|
-
flexDirection: "column",
|
|
202
|
-
justifyContent: "center"
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
}, ue = ({
|
|
206
|
-
entity: e,
|
|
207
|
-
headline: c,
|
|
208
|
-
finalImage: l,
|
|
209
|
-
children: n,
|
|
210
|
-
embedCodeContainerRef: f,
|
|
211
|
-
hasEmbedCode: s = !1,
|
|
212
|
-
brandingLogo: h,
|
|
213
|
-
renderPresentedBy: C,
|
|
214
|
-
rulesDisplay: I
|
|
215
|
-
}) => {
|
|
216
|
-
var N, q;
|
|
217
|
-
const y = O(), M = p(), m = e.type === "poll" || e.type === "match-quiz" ? M : y, w = _(), b = $(), A = z().primary, R = z().secondary, S = v(), a = ((N = e.branding) == null ? void 0 : N.colors) || null, x = ((q = e.branding) == null ? void 0 : q.urls) || null, L = (a == null ? void 0 : a.contentColor) || k().textColor, d = (a == null ? void 0 : a.secondaryColor) || k().textColor, W = (a == null ? void 0 : a.backgroundColor) || k().surfaceVariant, B = "60%", P = w.colorSchemes.dark.textColor, u = Y(
|
|
218
|
-
V.SPLIT
|
|
219
|
-
), o = xe({
|
|
220
|
-
finalImage: l,
|
|
221
|
-
spacingScale: b,
|
|
222
|
-
borderRadius: S,
|
|
223
|
-
fontFamilyPrimary: A,
|
|
224
|
-
fontFamilySecondary: R,
|
|
225
|
-
secondaryColor: d,
|
|
226
|
-
opacity: B,
|
|
227
|
-
bgcolor: Z(W || ""),
|
|
228
|
-
textColor: L,
|
|
229
|
-
brandingColors: a,
|
|
230
|
-
darkTextColor: P,
|
|
231
|
-
imageBackgroundGradient: u,
|
|
232
|
-
isMobile: m
|
|
233
|
-
}), T = ae(
|
|
234
|
-
x == null ? void 0 : x.primaryUrl,
|
|
235
|
-
x == null ? void 0 : x.secondaryUrl,
|
|
236
|
-
"image"
|
|
237
|
-
), F = () => {
|
|
238
|
-
T && window.open(T, "_blank", "noopener,noreferrer");
|
|
239
|
-
}, D = (H, j) => T ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
240
|
-
i,
|
|
241
|
-
{
|
|
242
|
-
component: "a",
|
|
243
|
-
href: T,
|
|
244
|
-
target: "_blank",
|
|
245
|
-
rel: "noopener noreferrer",
|
|
246
|
-
sx: {
|
|
247
|
-
...j,
|
|
248
|
-
cursor: "pointer",
|
|
249
|
-
textDecoration: "none"
|
|
250
|
-
},
|
|
251
|
-
children: H
|
|
252
|
-
}
|
|
253
|
-
) : /* @__PURE__ */ t(
|
|
254
|
-
i,
|
|
255
|
-
{
|
|
256
|
-
sx: {
|
|
257
|
-
...j,
|
|
258
|
-
cursor: "pointer"
|
|
259
|
-
},
|
|
260
|
-
onClick: F,
|
|
261
|
-
children: H
|
|
262
|
-
}
|
|
263
|
-
) : /* @__PURE__ */ t(i, { sx: j, children: H });
|
|
264
|
-
return /* @__PURE__ */ r(U, { children: [
|
|
265
|
-
s && f ? /* @__PURE__ */ t(i, { sx: o.embedCodeHeadlineSection, children: /* @__PURE__ */ t(
|
|
266
|
-
le,
|
|
267
|
-
{
|
|
268
|
-
ratio: "16/9",
|
|
269
|
-
sx: o.aspectRatioContainer,
|
|
270
|
-
slotProps: { content: { sx: { height: "100%" } } },
|
|
271
|
-
children: /* @__PURE__ */ t(i, { ref: f })
|
|
272
|
-
}
|
|
273
|
-
) }) : l ? D(
|
|
274
|
-
/* @__PURE__ */ r(i, { sx: o.headlineContent, children: [
|
|
275
|
-
/* @__PURE__ */ r(i, { children: [
|
|
276
|
-
/* @__PURE__ */ r(
|
|
277
|
-
i,
|
|
278
|
-
{
|
|
279
|
-
sx: {
|
|
280
|
-
display: "flex",
|
|
281
|
-
alignItems: "center",
|
|
282
|
-
justifyContent: m ? "center" : "flex-start",
|
|
283
|
-
gap: b["3xs"]
|
|
284
|
-
},
|
|
285
|
-
children: [
|
|
286
|
-
/* @__PURE__ */ t(g, { sx: o.headlineText, children: c }),
|
|
287
|
-
/* @__PURE__ */ t(G, { rulesDisplay: I, rules: e.rules || "" })
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
),
|
|
291
|
-
/* @__PURE__ */ r(i, { sx: o.contentContainer, children: [
|
|
292
|
-
/* @__PURE__ */ t(g, { sx: o.titleText, children: e.title }),
|
|
293
|
-
/* @__PURE__ */ t(g, { sx: o.descriptionText, children: E(e.description) })
|
|
294
|
-
] })
|
|
295
|
-
] }),
|
|
296
|
-
h && !m && C && /* @__PURE__ */ t(i, { children: C((a == null ? void 0 : a.contentColor) || P) })
|
|
297
|
-
] }),
|
|
298
|
-
o.headlineSection
|
|
299
|
-
) : /* @__PURE__ */ t(i, { sx: o.headlineSectionNoImage, children: /* @__PURE__ */ r(i, { sx: o.headlineContent, children: [
|
|
300
|
-
/* @__PURE__ */ r(i, { children: [
|
|
301
|
-
/* @__PURE__ */ r(
|
|
302
|
-
i,
|
|
303
|
-
{
|
|
304
|
-
sx: {
|
|
305
|
-
display: "flex",
|
|
306
|
-
alignItems: "center",
|
|
307
|
-
justifyContent: m ? "center" : "flex-start",
|
|
308
|
-
gap: b["3xs"]
|
|
309
|
-
},
|
|
310
|
-
children: [
|
|
311
|
-
/* @__PURE__ */ t(g, { sx: o.headlineTextNoImage, children: c }),
|
|
312
|
-
/* @__PURE__ */ t(G, { rulesDisplay: I, rules: e.rules || "" })
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
),
|
|
316
|
-
/* @__PURE__ */ r(i, { sx: o.contentContainer, children: [
|
|
317
|
-
/* @__PURE__ */ t(g, { sx: o.titleTextNoImage, children: e.title }),
|
|
318
|
-
/* @__PURE__ */ t(g, { sx: o.descriptionTextNoImage, children: E(e.description) })
|
|
319
|
-
] })
|
|
320
|
-
] }),
|
|
321
|
-
h && !m && C && /* @__PURE__ */ t(i, { children: C(L) })
|
|
322
|
-
] }) }),
|
|
323
|
-
/* @__PURE__ */ r(i, { sx: o.questionArea, children: [
|
|
324
|
-
s && f && /* @__PURE__ */ t(i, { sx: o.embedCodeHeadlineContent, children: /* @__PURE__ */ r(i, { children: [
|
|
325
|
-
/* @__PURE__ */ r(
|
|
326
|
-
i,
|
|
327
|
-
{
|
|
328
|
-
sx: {
|
|
329
|
-
display: "flex",
|
|
330
|
-
alignItems: "center",
|
|
331
|
-
justifyContent: "center",
|
|
332
|
-
gap: b["3xs"]
|
|
333
|
-
},
|
|
334
|
-
children: [
|
|
335
|
-
/* @__PURE__ */ t(
|
|
336
|
-
g,
|
|
337
|
-
{
|
|
338
|
-
sx: {
|
|
339
|
-
...o.headlineTextNoImage,
|
|
340
|
-
textAlign: "center"
|
|
341
|
-
},
|
|
342
|
-
children: c
|
|
343
|
-
}
|
|
344
|
-
),
|
|
345
|
-
/* @__PURE__ */ t(G, { rulesDisplay: I, rules: e.rules || "" })
|
|
346
|
-
]
|
|
347
|
-
}
|
|
348
|
-
),
|
|
349
|
-
/* @__PURE__ */ r(i, { sx: o.contentContainer, children: [
|
|
350
|
-
/* @__PURE__ */ t(
|
|
351
|
-
g,
|
|
352
|
-
{
|
|
353
|
-
sx: {
|
|
354
|
-
...o.titleTextNoImage,
|
|
355
|
-
textAlign: "center"
|
|
356
|
-
},
|
|
357
|
-
children: e.title
|
|
358
|
-
}
|
|
359
|
-
),
|
|
360
|
-
/* @__PURE__ */ t(
|
|
361
|
-
g,
|
|
362
|
-
{
|
|
363
|
-
sx: {
|
|
364
|
-
...o.descriptionTextNoImage,
|
|
365
|
-
textAlign: "center"
|
|
366
|
-
},
|
|
367
|
-
children: E(e.description)
|
|
368
|
-
}
|
|
369
|
-
)
|
|
370
|
-
] })
|
|
371
|
-
] }) }),
|
|
372
|
-
n
|
|
373
|
-
] })
|
|
374
|
-
] });
|
|
375
|
-
}, fe = (e) => {
|
|
376
|
-
var c, l, n;
|
|
377
|
-
return {
|
|
378
|
-
// Wrapper container for the entire split layout
|
|
379
|
-
wrapper: {
|
|
380
|
-
display: "flex",
|
|
381
|
-
flexDirection: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "column" : "row",
|
|
382
|
-
width: "100%"
|
|
383
|
-
},
|
|
384
|
-
// Desktop image section with background image and overlay
|
|
385
|
-
desktopImageSection: {
|
|
386
|
-
display: e.isLarge && !e.alwaysShowImage ? "none" : "flex",
|
|
387
|
-
flexDirection: "column",
|
|
388
|
-
justifyContent: "space-between",
|
|
389
|
-
gap: "10px",
|
|
390
|
-
flex: e.isMobile || e.isLarge && e.alwaysShowImage ? "1" : "0 0 50%",
|
|
391
|
-
width: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
392
|
-
minWidth: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
393
|
-
maxWidth: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
394
|
-
backgroundImage: `url("${e.finalImage}")`,
|
|
395
|
-
backgroundSize: "cover",
|
|
396
|
-
backgroundPosition: "center",
|
|
397
|
-
borderTopLeftRadius: e.isTabulated ? 0 : e.borderRadius.md,
|
|
398
|
-
borderTopRightRadius: e.isMobile || e.isLarge && e.alwaysShowImage ? e.isTabulated ? 0 : e.borderRadius.md : 0,
|
|
399
|
-
borderBottomLeftRadius: e.isMobile || e.isLarge && e.alwaysShowImage ? 0 : e.borderRadius.md,
|
|
400
|
-
overflow: "hidden",
|
|
401
|
-
height: "auto",
|
|
402
|
-
position: "relative",
|
|
403
|
-
minHeight: e.isMobile || e.isLarge && e.alwaysShowImage ? "210px" : "430px",
|
|
404
|
-
maxHeight: e.isMobile || e.isLarge && e.alwaysShowImage ? "auto" : "100%",
|
|
405
|
-
"&::before": {
|
|
406
|
-
content: '""',
|
|
407
|
-
position: "absolute",
|
|
408
|
-
width: "100%",
|
|
409
|
-
height: "100%",
|
|
410
|
-
background: e.imageBackgroundGradient,
|
|
411
|
-
borderTopLeftRadius: "5px",
|
|
412
|
-
borderTopRightRadius: "5px"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
// Image section content wrapper
|
|
416
|
-
imageSectionContent: {
|
|
417
|
-
zIndex: 1,
|
|
418
|
-
height: "100%",
|
|
419
|
-
p: e.spacingScale.xl,
|
|
420
|
-
display: "flex",
|
|
421
|
-
flexDirection: "column",
|
|
422
|
-
justifyContent: "space-between",
|
|
423
|
-
gap: e.spacingScale.xl
|
|
424
|
-
},
|
|
425
|
-
// Headline text
|
|
426
|
-
headlineText: {
|
|
427
|
-
fontWeight: 500,
|
|
428
|
-
lineHeight: "166%",
|
|
429
|
-
letterSpacing: "1px",
|
|
430
|
-
fontSize: "0.75em",
|
|
431
|
-
color: ((c = e.brandingColors) == null ? void 0 : c.secondaryColor) || e.darkTextColor,
|
|
432
|
-
opacity: "70%",
|
|
433
|
-
textTransform: "uppercase",
|
|
434
|
-
fontFamily: e.fontFamilySecondary,
|
|
435
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
436
|
-
},
|
|
437
|
-
// Content container (title + description)
|
|
438
|
-
contentContainer: {
|
|
439
|
-
display: "flex",
|
|
440
|
-
flexDirection: "column",
|
|
441
|
-
gap: e.spacingScale["3xs"]
|
|
442
|
-
},
|
|
443
|
-
// Title text
|
|
444
|
-
titleText: {
|
|
445
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
446
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
447
|
-
unicodeBidi: "plaintext",
|
|
448
|
-
fontWeight: 700,
|
|
449
|
-
lineHeight: "133%",
|
|
450
|
-
fontSize: "1.5em",
|
|
451
|
-
letterSpacing: "0.15px",
|
|
452
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.contentColor) || e.darkTextColor,
|
|
453
|
-
fontFamily: e.fontFamilyPrimary,
|
|
454
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
455
|
-
},
|
|
456
|
-
// Description text
|
|
457
|
-
descriptionText: {
|
|
458
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
459
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
460
|
-
unicodeBidi: "plaintext",
|
|
461
|
-
fontWeight: 500,
|
|
462
|
-
lineHeight: "140%",
|
|
463
|
-
fontSize: "1.25em",
|
|
464
|
-
letterSpacing: "0.15px",
|
|
465
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.secondaryColor) || e.darkTextColor,
|
|
466
|
-
opacity: "70%",
|
|
467
|
-
fontFamily: e.fontFamilyPrimary,
|
|
468
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
469
|
-
},
|
|
470
|
-
// Presented by desktop container
|
|
471
|
-
presentedByDesktop: {
|
|
472
|
-
display: "block"
|
|
473
|
-
},
|
|
474
|
-
// Question/Content area (right side on desktop, below image on mobile)
|
|
475
|
-
questionArea: {
|
|
476
|
-
flex: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "1" : "0 0 50%",
|
|
477
|
-
width: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
478
|
-
minWidth: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
479
|
-
maxWidth: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
480
|
-
display: "flex",
|
|
481
|
-
flexDirection: "column"
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
}, De = ({
|
|
485
|
-
entity: e,
|
|
486
|
-
headline: c,
|
|
487
|
-
finalImage: l,
|
|
488
|
-
brandingContent: n,
|
|
489
|
-
children: f,
|
|
490
|
-
isTabulated: s = !1,
|
|
491
|
-
alwaysShowImage: h = !1,
|
|
492
|
-
rulesDisplay: C
|
|
493
|
-
}) => {
|
|
494
|
-
var x;
|
|
495
|
-
const I = O(), y = p(), M = _(), m = $(), w = z().primary, b = z().secondary, A = v(), R = Y(
|
|
496
|
-
V.SPLIT
|
|
497
|
-
), S = ((x = e.branding) == null ? void 0 : x.colors) || null, a = fe({
|
|
498
|
-
finalImage: l,
|
|
499
|
-
spacingScale: m,
|
|
500
|
-
borderRadius: A,
|
|
501
|
-
fontFamilyPrimary: w,
|
|
502
|
-
fontFamilySecondary: b,
|
|
503
|
-
brandingColors: S,
|
|
504
|
-
darkTextColor: M.colorSchemes.dark.textColor,
|
|
505
|
-
imageBackgroundGradient: R,
|
|
506
|
-
isMobile: I,
|
|
507
|
-
isLarge: y,
|
|
508
|
-
isTabulated: s,
|
|
509
|
-
alwaysShowImage: h
|
|
510
|
-
});
|
|
511
|
-
return /* @__PURE__ */ r(i, { sx: a.wrapper, children: [
|
|
512
|
-
/* @__PURE__ */ t(i, { sx: a.desktopImageSection, children: /* @__PURE__ */ r(i, { sx: a.imageSectionContent, children: [
|
|
513
|
-
/* @__PURE__ */ r(i, { children: [
|
|
514
|
-
/* @__PURE__ */ r(
|
|
515
|
-
i,
|
|
516
|
-
{
|
|
517
|
-
sx: {
|
|
518
|
-
display: "flex",
|
|
519
|
-
alignItems: "center",
|
|
520
|
-
gap: m["3xs"]
|
|
521
|
-
},
|
|
522
|
-
children: [
|
|
523
|
-
/* @__PURE__ */ t(g, { level: "body-sm", sx: a.headlineText, children: c }),
|
|
524
|
-
/* @__PURE__ */ t(G, { rulesDisplay: C, rules: e.rules || "" })
|
|
525
|
-
]
|
|
526
|
-
}
|
|
527
|
-
),
|
|
528
|
-
/* @__PURE__ */ r(i, { sx: a.contentContainer, children: [
|
|
529
|
-
/* @__PURE__ */ t(g, { level: "body-lg", sx: a.titleText, children: e.title }),
|
|
530
|
-
/* @__PURE__ */ t(g, { level: "body-md", sx: a.descriptionText, children: E(e.description) })
|
|
531
|
-
] })
|
|
532
|
-
] }),
|
|
533
|
-
/* @__PURE__ */ t(i, { sx: a.presentedByDesktop, children: n })
|
|
534
|
-
] }) }),
|
|
535
|
-
/* @__PURE__ */ t(i, { sx: a.questionArea, children: f })
|
|
536
|
-
] });
|
|
537
|
-
}, he = (e) => {
|
|
538
|
-
var c, l, n;
|
|
539
|
-
return {
|
|
540
|
-
// Main headline section with background image
|
|
541
|
-
headlineSection: {
|
|
542
|
-
display: "flex",
|
|
543
|
-
flexDirection: "column",
|
|
544
|
-
justifyContent: "space-between",
|
|
545
|
-
gap: "10px",
|
|
546
|
-
flex: "0.5",
|
|
547
|
-
backgroundImage: `url("${e.finalImage}")`,
|
|
548
|
-
backgroundSize: "cover",
|
|
549
|
-
backgroundPosition: "center",
|
|
550
|
-
borderTopLeftRadius: e.mdBorderRadius,
|
|
551
|
-
borderTopRightRadius: e.isMobile ? e.mdBorderRadius : 0,
|
|
552
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.mdBorderRadius,
|
|
553
|
-
overflow: "hidden",
|
|
554
|
-
height: "auto",
|
|
555
|
-
position: "relative",
|
|
556
|
-
minHeight: e.isMobile ? "210px" : "430px",
|
|
557
|
-
"&::before": {
|
|
558
|
-
content: '""',
|
|
559
|
-
position: "absolute",
|
|
560
|
-
width: "100%",
|
|
561
|
-
height: "100%",
|
|
562
|
-
background: e.imageBackgroundGradient,
|
|
563
|
-
borderTopLeftRadius: "5px",
|
|
564
|
-
borderTopRightRadius: "5px"
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
// Headline content wrapper
|
|
568
|
-
headlineContent: {
|
|
569
|
-
zIndex: 1,
|
|
570
|
-
height: "100%",
|
|
571
|
-
p: e.spacingScale.xl,
|
|
572
|
-
gap: e.spacingScale.xl,
|
|
573
|
-
display: "flex",
|
|
574
|
-
flexDirection: "column",
|
|
575
|
-
justifyContent: "space-between"
|
|
576
|
-
},
|
|
577
|
-
// Headline text
|
|
578
|
-
headlineText: {
|
|
579
|
-
fontWeight: 500,
|
|
580
|
-
lineHeight: "166%",
|
|
581
|
-
letterSpacing: "1px",
|
|
582
|
-
fontSize: "0.75em",
|
|
583
|
-
color: ((c = e.brandingColors) == null ? void 0 : c.secondaryColor) || e.darkTextColor,
|
|
584
|
-
opacity: "70%",
|
|
585
|
-
textTransform: "uppercase",
|
|
586
|
-
fontFamily: e.fontFamilySecondary,
|
|
587
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
588
|
-
},
|
|
589
|
-
// Content container
|
|
590
|
-
contentContainer: {
|
|
591
|
-
display: "flex",
|
|
592
|
-
flexDirection: "column",
|
|
593
|
-
gap: e.spacingScale["3xs"]
|
|
594
|
-
},
|
|
595
|
-
// Title text
|
|
596
|
-
titleText: {
|
|
597
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
598
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
599
|
-
unicodeBidi: "plaintext",
|
|
600
|
-
fontWeight: 700,
|
|
601
|
-
lineHeight: "133%",
|
|
602
|
-
fontSize: "1.5em",
|
|
603
|
-
letterSpacing: "0.15px",
|
|
604
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.contentColor) || e.darkTextColor,
|
|
605
|
-
fontFamily: e.fontFamilyPrimary,
|
|
606
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
607
|
-
},
|
|
608
|
-
// Description text
|
|
609
|
-
descriptionText: {
|
|
610
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
611
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
612
|
-
unicodeBidi: "plaintext",
|
|
613
|
-
fontWeight: 400,
|
|
614
|
-
lineHeight: "140%",
|
|
615
|
-
fontSize: "1.25em",
|
|
616
|
-
letterSpacing: "0.15px",
|
|
617
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.secondaryColor) || e.darkTextColor,
|
|
618
|
-
opacity: "70%",
|
|
619
|
-
fontFamily: e.fontFamilyPrimary,
|
|
620
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
621
|
-
},
|
|
622
|
-
// Presented by desktop container
|
|
623
|
-
presentedByDesktop: {
|
|
624
|
-
display: e.isMobile ? "none" : "block"
|
|
625
|
-
},
|
|
626
|
-
// Question area (error section)
|
|
627
|
-
questionArea: {
|
|
628
|
-
flex: "0.5",
|
|
629
|
-
display: "flex",
|
|
630
|
-
flexDirection: "column",
|
|
631
|
-
justifyContent: "center",
|
|
632
|
-
gap: e.spacingScale.md,
|
|
633
|
-
p: e.spacingScale.lg
|
|
634
|
-
},
|
|
635
|
-
// Presented by mobile container
|
|
636
|
-
presentedByMobile: {
|
|
637
|
-
display: e.isMobile ? "block" : "none"
|
|
638
|
-
},
|
|
639
|
-
// CTA container
|
|
640
|
-
ctaContainer: {
|
|
641
|
-
display: "flex",
|
|
642
|
-
flexDirection: "column",
|
|
643
|
-
alignItems: "center"
|
|
644
|
-
},
|
|
645
|
-
// CTA content wrapper
|
|
646
|
-
ctaContentWrapper: {
|
|
647
|
-
display: "flex",
|
|
648
|
-
flexDirection: "column",
|
|
649
|
-
justifyContent: "center",
|
|
650
|
-
alignItems: "center",
|
|
651
|
-
gap: e.spacingScale.lg
|
|
652
|
-
},
|
|
653
|
-
// Buttons container
|
|
654
|
-
buttonsContainer: {
|
|
655
|
-
display: "flex",
|
|
656
|
-
flexDirection: "column",
|
|
657
|
-
gap: "16px"
|
|
658
|
-
},
|
|
659
|
-
// Try again button
|
|
660
|
-
tryAgainButton: {
|
|
661
|
-
display: "flex",
|
|
662
|
-
py: e.spacingScale.xs,
|
|
663
|
-
px: "16px",
|
|
664
|
-
flexDirection: "column",
|
|
665
|
-
justifyContent: "center",
|
|
666
|
-
alignItems: "center",
|
|
667
|
-
gap: "8px",
|
|
668
|
-
borderRadius: e.borderRadius.xl,
|
|
669
|
-
color: e.textPrimary,
|
|
670
|
-
bgcolor: e.surfaceColor,
|
|
671
|
-
"&:hover": {
|
|
672
|
-
bgcolor: e.onSurfaceColor
|
|
673
|
-
},
|
|
674
|
-
fontSize: "0.9375em"
|
|
675
|
-
},
|
|
676
|
-
// Try again button content
|
|
677
|
-
tryAgainButtonContent: {
|
|
678
|
-
display: "flex",
|
|
679
|
-
justifyContent: "center",
|
|
680
|
-
alignItems: "center",
|
|
681
|
-
gap: "8px",
|
|
682
|
-
alignSelf: "stretch"
|
|
683
|
-
},
|
|
684
|
-
// Try again icon
|
|
685
|
-
tryAgainIcon: {
|
|
686
|
-
display: "flex",
|
|
687
|
-
width: "16px",
|
|
688
|
-
height: "16px",
|
|
689
|
-
justifyContent: "flex-end",
|
|
690
|
-
alignItems: "center",
|
|
691
|
-
color: e.textPrimary
|
|
692
|
-
},
|
|
693
|
-
// Try again text
|
|
694
|
-
tryAgainText: {
|
|
695
|
-
color: e.textPrimary,
|
|
696
|
-
textAlign: "center",
|
|
697
|
-
fontFamily: e.fontFamilyPrimary,
|
|
698
|
-
fontSize: "0.8125em",
|
|
699
|
-
fontStyle: "normal",
|
|
700
|
-
fontWeight: 500,
|
|
701
|
-
lineHeight: "22px",
|
|
702
|
-
letterSpacing: "0.46px",
|
|
703
|
-
textTransform: "uppercase"
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
}, We = (e) => {
|
|
707
|
-
var B;
|
|
708
|
-
const c = _(), l = O(), n = ((B = e.entity.branding) == null ? void 0 : B.colors) || null, f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? ee : te, s = ie(
|
|
709
|
-
{
|
|
710
|
-
images: e.entity.images || null,
|
|
711
|
-
imagePlaceholder: f
|
|
712
|
-
},
|
|
713
|
-
V.SPLIT
|
|
714
|
-
), { t: h } = ne(), C = k().textPrimary, I = k().surface, y = k().onSurface, M = (n == null ? void 0 : n.backgroundColor) || k().surfaceVariant, m = v(), w = z().secondary, b = z().primary, A = v().md, R = k().textColor, S = $(), a = Y(
|
|
715
|
-
V.SPLIT
|
|
716
|
-
), x = e.customAlertTitle ?? (e.isApiError ? h("common.error.title") : h("common.authentication.accessRequired")), L = e.customAlertMessage ?? (e.isApiError ? e.apiErrorMessage || h("common.error.message") : h("common.authentication.invalidOrMissingAuth")), d = he({
|
|
717
|
-
finalImage: s,
|
|
718
|
-
spacingScale: S,
|
|
719
|
-
borderRadius: v(),
|
|
720
|
-
fontFamilyPrimary: b,
|
|
721
|
-
fontFamilySecondary: w,
|
|
722
|
-
mdBorderRadius: A,
|
|
723
|
-
textColor: R,
|
|
724
|
-
brandingColors: n,
|
|
725
|
-
darkTextColor: c.colorSchemes.dark.textColor,
|
|
726
|
-
imageBackgroundGradient: a,
|
|
727
|
-
textPrimary: C,
|
|
728
|
-
surfaceColor: I,
|
|
729
|
-
onSurfaceColor: y,
|
|
730
|
-
isMobile: l
|
|
731
|
-
}), W = () => !e.isApiError || !e.toggleTryAgain ? /* @__PURE__ */ t(U, {}) : /* @__PURE__ */ t(
|
|
732
|
-
i,
|
|
733
|
-
{
|
|
734
|
-
sx: {
|
|
735
|
-
p: S.lg,
|
|
736
|
-
gap: S.lg,
|
|
737
|
-
display: "flex",
|
|
738
|
-
flexDirection: "column",
|
|
739
|
-
backdropFilter: "blur(4px)",
|
|
740
|
-
bgcolor: `rgba(${M ? Z(M || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
741
|
-
borderRadius: m.sm
|
|
742
|
-
},
|
|
743
|
-
children: /* @__PURE__ */ t(i, { sx: d.ctaContainer, children: /* @__PURE__ */ t(i, { sx: d.ctaContentWrapper, children: /* @__PURE__ */ t(i, { sx: d.buttonsContainer, children: /* @__PURE__ */ t(ce, { sx: d.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ r(i, { sx: d.tryAgainButtonContent, children: [
|
|
744
|
-
/* @__PURE__ */ t(re, { sx: d.tryAgainIcon }),
|
|
745
|
-
/* @__PURE__ */ t(g, { sx: d.tryAgainText, children: e.tryAgainButtonText })
|
|
746
|
-
] }) }) }) }) })
|
|
747
|
-
}
|
|
748
|
-
);
|
|
749
|
-
return /* @__PURE__ */ r(U, { children: [
|
|
750
|
-
/* @__PURE__ */ t(i, { sx: d.headlineSection, children: /* @__PURE__ */ r(i, { sx: d.headlineContent, children: [
|
|
751
|
-
/* @__PURE__ */ r(i, { children: [
|
|
752
|
-
/* @__PURE__ */ r(
|
|
753
|
-
i,
|
|
754
|
-
{
|
|
755
|
-
sx: {
|
|
756
|
-
display: "flex",
|
|
757
|
-
alignItems: "center",
|
|
758
|
-
justifyContent: l ? "center" : "left",
|
|
759
|
-
gap: S["3xs"]
|
|
760
|
-
},
|
|
761
|
-
children: [
|
|
762
|
-
/* @__PURE__ */ t(g, { level: "body-sm", sx: d.headlineText, children: e.headline }),
|
|
763
|
-
/* @__PURE__ */ t(
|
|
764
|
-
G,
|
|
765
|
-
{
|
|
766
|
-
rulesDisplay: e.rulesDisplay,
|
|
767
|
-
rules: e.entity.rules || ""
|
|
768
|
-
}
|
|
769
|
-
)
|
|
770
|
-
]
|
|
771
|
-
}
|
|
772
|
-
),
|
|
773
|
-
/* @__PURE__ */ r(i, { sx: d.contentContainer, children: [
|
|
774
|
-
/* @__PURE__ */ t(g, { level: "body-lg", sx: d.titleText, children: e.entity.title }),
|
|
775
|
-
/* @__PURE__ */ t(g, { level: "body-md", sx: d.descriptionText, children: E(e.entity.description) })
|
|
776
|
-
] })
|
|
777
|
-
] }),
|
|
778
|
-
/* @__PURE__ */ t(i, { sx: d.presentedByDesktop, children: e.renderPresentedBy(
|
|
779
|
-
(n == null ? void 0 : n.contentColor) || c.colorSchemes.dark.textColor
|
|
780
|
-
) })
|
|
781
|
-
] }) }),
|
|
782
|
-
/* @__PURE__ */ r(i, { sx: d.questionArea, children: [
|
|
783
|
-
/* @__PURE__ */ t(
|
|
784
|
-
oe,
|
|
785
|
-
{
|
|
786
|
-
variant: e.alertVariant || "error",
|
|
787
|
-
title: x,
|
|
788
|
-
message: L
|
|
789
|
-
}
|
|
790
|
-
),
|
|
791
|
-
W(),
|
|
792
|
-
/* @__PURE__ */ t(i, { sx: d.presentedByMobile, children: e.renderPresentedBy((n == null ? void 0 : n.contentColor) || R) })
|
|
793
|
-
] })
|
|
794
|
-
] });
|
|
795
|
-
}, He = (e) => {
|
|
796
|
-
var S, a, x, L, d, W, B;
|
|
797
|
-
const c = _(), l = O(), n = e.defaultImagePlaceholder ? e.defaultImagePlaceholder : l ? ee : te, f = ie(
|
|
798
|
-
{
|
|
799
|
-
images: e.entity.images || null,
|
|
800
|
-
imagePlaceholder: n
|
|
801
|
-
},
|
|
802
|
-
V.SPLIT
|
|
803
|
-
), s = ((S = e.entity.branding) == null ? void 0 : S.colors) || null, h = (s == null ? void 0 : s.borderColor) || null, C = (s == null ? void 0 : s.backgroundColor) || k().surfaceVariant, I = Z(C), y = $(), M = v(), m = l ? ((x = (a = e.entity.branding) == null ? void 0 : a.images) == null ? void 0 : x.mobileLogo) || ((d = (L = e.entity.branding) == null ? void 0 : L.images) == null ? void 0 : d.mainLogo) || "" : ((B = (W = e.entity.branding) == null ? void 0 : W.images) == null ? void 0 : B.mainLogo) || "", w = {
|
|
804
|
-
questionArea: {
|
|
805
|
-
width: "100%",
|
|
806
|
-
justifyContent: "center",
|
|
807
|
-
display: "flex",
|
|
808
|
-
flexDirection: "column"
|
|
809
|
-
},
|
|
810
|
-
questionAreaContent: {
|
|
811
|
-
p: y.lg,
|
|
812
|
-
display: "flex",
|
|
813
|
-
flexDirection: "column",
|
|
814
|
-
justifyContent: "center",
|
|
815
|
-
gap: "16px"
|
|
816
|
-
},
|
|
817
|
-
leadContentContainer: {
|
|
818
|
-
p: y.md,
|
|
819
|
-
gap: y.md,
|
|
820
|
-
display: "flex",
|
|
821
|
-
flexDirection: "column",
|
|
822
|
-
backdropFilter: "blur(4px)",
|
|
823
|
-
bgcolor: `rgba(${I.replace(/[^\d,]/g, "")}, 0.5)`,
|
|
824
|
-
borderRadius: M.sm
|
|
825
|
-
}
|
|
826
|
-
}, b = (P) => {
|
|
827
|
-
var u, o, T, F, D;
|
|
828
|
-
return /* @__PURE__ */ t(
|
|
829
|
-
e.PresentedBy,
|
|
830
|
-
{
|
|
831
|
-
brandingLogo: m,
|
|
832
|
-
textColor: P,
|
|
833
|
-
label: ((u = e.entity.labels) == null ? void 0 : u.sponsor) || null,
|
|
834
|
-
primaryUrl: (T = (o = e.entity.branding) == null ? void 0 : o.urls) == null ? void 0 : T.primaryUrl,
|
|
835
|
-
secondaryUrl: (D = (F = e.entity.branding) == null ? void 0 : F.urls) == null ? void 0 : D.secondaryUrl,
|
|
836
|
-
isCentered: !1
|
|
837
|
-
}
|
|
838
|
-
);
|
|
839
|
-
}, A = () => {
|
|
840
|
-
var o, T, F, D, X, N, q, H, j, J, Q;
|
|
841
|
-
if (e.content) return e.content;
|
|
842
|
-
const { CollectLeadWrapper: P, entity: u } = e;
|
|
843
|
-
return P ? /* @__PURE__ */ t(
|
|
844
|
-
P,
|
|
845
|
-
{
|
|
846
|
-
sdk: e.sdk,
|
|
847
|
-
contentId: u.id,
|
|
848
|
-
contentName: u.title,
|
|
849
|
-
brandingColors: (o = u.branding) == null ? void 0 : o.colors,
|
|
850
|
-
brandingUrls: (T = u.branding) == null ? void 0 : T.urls,
|
|
851
|
-
campaignId: (F = e.leads) == null ? void 0 : F.campaignId,
|
|
852
|
-
campaignName: (D = e.leads) == null ? void 0 : D.campaignName,
|
|
853
|
-
fields: (X = e.leads) == null ? void 0 : X.fields,
|
|
854
|
-
leadTitle: (N = u.labels) == null ? void 0 : N.leadTitle,
|
|
855
|
-
leadDescription: (q = u.labels) == null ? void 0 : q.leadDescription,
|
|
856
|
-
leadCta: (H = u.labels) == null ? void 0 : H.leadCta,
|
|
857
|
-
leadSuccessTitle: (j = u.labels) == null ? void 0 : j.leadSuccessTitle,
|
|
858
|
-
leadSuccessDescription: (J = u.labels) == null ? void 0 : J.leadSuccessDescription,
|
|
859
|
-
syncWithProfile: (Q = e.leads) == null ? void 0 : Q.syncWithProfile,
|
|
860
|
-
consents: e.consents,
|
|
861
|
-
startGame: e.onLeadSubmitted,
|
|
862
|
-
isAfterPosition: !0,
|
|
863
|
-
isSubmittingParticipation: e.isSubmitting
|
|
864
|
-
}
|
|
865
|
-
) : null;
|
|
866
|
-
}, R = () => /* @__PURE__ */ r(U, { children: [
|
|
867
|
-
/* @__PURE__ */ t(i, { sx: w.questionArea, children: /* @__PURE__ */ t(i, { sx: w.questionAreaContent, children: /* @__PURE__ */ t(i, { sx: w.leadContentContainer, children: A() }) }) }),
|
|
868
|
-
m && l && /* @__PURE__ */ t(i, { sx: { mb: y.lg, px: y.lg }, children: b(
|
|
869
|
-
(s == null ? void 0 : s.contentColor) || c.colorSchemes.dark.textColor
|
|
870
|
-
) })
|
|
871
|
-
] });
|
|
872
|
-
return /* @__PURE__ */ t(e.MainCard, { brandingBorderColor: h, children: /* @__PURE__ */ t(
|
|
873
|
-
ue,
|
|
874
|
-
{
|
|
875
|
-
entity: e.entity,
|
|
876
|
-
headline: e.headline,
|
|
877
|
-
finalImage: f,
|
|
878
|
-
brandingLogo: m,
|
|
879
|
-
renderPresentedBy: b,
|
|
880
|
-
rulesDisplay: e.rulesDisplay,
|
|
881
|
-
children: R()
|
|
882
|
-
}
|
|
883
|
-
) });
|
|
884
|
-
}, je = ({
|
|
885
|
-
entityId: e,
|
|
886
|
-
sdk: c,
|
|
887
|
-
children: l
|
|
888
|
-
}) => {
|
|
889
|
-
const { infoPage: n } = de(e, "chance-game", c);
|
|
890
|
-
return !n || n.id === "not-found" ? null : /* @__PURE__ */ t(U, { children: l(n) });
|
|
891
|
-
}, ve = ({
|
|
892
|
-
infoPage: e,
|
|
893
|
-
variant: c,
|
|
894
|
-
forceMobile: l
|
|
895
|
-
}) => {
|
|
896
|
-
switch (c) {
|
|
897
|
-
case K.PENALTY_SHOOTOUT:
|
|
898
|
-
return /* @__PURE__ */ t(me, { infoPage: e, forceMobile: l });
|
|
899
|
-
case K.PICK_ONE_OF_X:
|
|
900
|
-
return /* @__PURE__ */ t(ge, { infoPage: e, forceMobile: l });
|
|
901
|
-
case K.PRIZE_WHEEL:
|
|
902
|
-
default:
|
|
903
|
-
return /* @__PURE__ */ t(se, { infoPage: e, forceMobile: l });
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
|
-
export {
|
|
907
|
-
je as C,
|
|
908
|
-
ue as S,
|
|
909
|
-
De as a,
|
|
910
|
-
We as b,
|
|
911
|
-
He as c,
|
|
912
|
-
ve as d
|
|
913
|
-
};
|