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,1168 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as d, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { a as E, B as n, u as N, f as Q, g as F, d as V, c as K, i as G, h as oe, e as te, j as re } from "./PrizeCard-B2tBhY45.js";
|
|
3
|
-
import { B as U } from "./Button-x1sQVMH2.js";
|
|
4
|
-
import { T as f } from "./Typography-BsucZNXl.js";
|
|
5
|
-
import { b as ce, C as se, i as de, n as Z, c as ge, a as me, s as ye } from "./ConsentsList-BcIMKviP.js";
|
|
6
|
-
import { D as ue } from "./DirectionScope-CK0duYt8.js";
|
|
7
|
-
import { c as ne } from "./createSvgIcon-BWoHeNkc.js";
|
|
8
|
-
import { S as xe } from "./Stack-CDpKA1D-.js";
|
|
9
|
-
import { A as ie } from "./AlertMessage-CTbc9daZ.js";
|
|
10
|
-
import { a as q, d as le, s as fe, h as he } from "./helpers-CKFwVhwj.js";
|
|
11
|
-
import { W as M } from "./enums-B1lTCQvC.js";
|
|
12
|
-
import { useState as Y, useMemo as p, useEffect as be, useCallback as ee } from "react";
|
|
13
|
-
import { R as O, S as Ce, O as Se } from "./OverlaySkeleton-y02LRXZy.js";
|
|
14
|
-
import "react-dom";
|
|
15
|
-
import { u as $ } from "./useImageVariant-B62O7iLC.js";
|
|
16
|
-
import { b as Ie, c as ke } from "./index-Bg5jypgn.js";
|
|
17
|
-
const Ne = ({
|
|
18
|
-
additionalCTA: e,
|
|
19
|
-
buttonStyle: i,
|
|
20
|
-
buttonContentStyle: a,
|
|
21
|
-
textStyle: c
|
|
22
|
-
}) => {
|
|
23
|
-
const { t: s } = E();
|
|
24
|
-
return e ? e.component ? e.component : e.onClick ? /* @__PURE__ */ t(U, { sx: i, onClick: e.onClick, children: e.defaultLabel && /* @__PURE__ */ t(n, { sx: a, children: /* @__PURE__ */ t(f, { sx: c, children: e.defaultLabel }) }) }) : e.url ? /* @__PURE__ */ t(
|
|
25
|
-
U,
|
|
26
|
-
{
|
|
27
|
-
component: "a",
|
|
28
|
-
href: e.url,
|
|
29
|
-
target: e.target || "_self",
|
|
30
|
-
sx: i,
|
|
31
|
-
children: /* @__PURE__ */ t(f, { sx: c, children: e.defaultLabel || s("common.additional") })
|
|
32
|
-
}
|
|
33
|
-
) : null : null;
|
|
34
|
-
}, Ae = ne(/* @__PURE__ */ t("path", {
|
|
35
|
-
d: "M16.01 11H4v2h12.01v3L20 12l-3.99-4z"
|
|
36
|
-
}), "ArrowRightAlt"), Te = (e) => {
|
|
37
|
-
const { t: i } = E(), a = N().primary, c = Q().xl, s = F().palette.primary.onPrimary;
|
|
38
|
-
return /* @__PURE__ */ t(
|
|
39
|
-
U,
|
|
40
|
-
{
|
|
41
|
-
variant: "soft",
|
|
42
|
-
loading: e.isSubmitting,
|
|
43
|
-
endDecorator: e.showArrow === !1 ? void 0 : /* @__PURE__ */ t(ue, { children: /* @__PURE__ */ t(Ae, {}) }),
|
|
44
|
-
onClick: e.onClick,
|
|
45
|
-
sx: {
|
|
46
|
-
alignSelf: "center",
|
|
47
|
-
borderRadius: c,
|
|
48
|
-
py: "10px",
|
|
49
|
-
// The trimmed right padding compensates for the arrow's own spacing; without it
|
|
50
|
-
// the button is symmetric, matching the widget's other buttons
|
|
51
|
-
...e.showArrow === !1 ? { px: "16px" } : { pr: "12px", pl: "16px" },
|
|
52
|
-
bgcolor: e.primaryColor,
|
|
53
|
-
color: s,
|
|
54
|
-
"&:hover": { bgcolor: e.primaryColor },
|
|
55
|
-
"&:active": { bgcolor: e.primaryColor, color: s },
|
|
56
|
-
"--Icon-color": s,
|
|
57
|
-
...e.isSubmitting ? ce(e.primaryColor, s) : {}
|
|
58
|
-
},
|
|
59
|
-
children: /* @__PURE__ */ t(
|
|
60
|
-
f,
|
|
61
|
-
{
|
|
62
|
-
sx: {
|
|
63
|
-
fontFamily: a,
|
|
64
|
-
fontWeight: 500,
|
|
65
|
-
fontSize: "0.9375em",
|
|
66
|
-
lineHeight: "24px",
|
|
67
|
-
letterSpacing: "0.46px",
|
|
68
|
-
textTransform: "uppercase",
|
|
69
|
-
// Hidden rather than unmounted, so the button keeps its width while loading
|
|
70
|
-
color: e.isSubmitting ? "transparent" : s
|
|
71
|
-
},
|
|
72
|
-
children: e.label || i("consents.continue")
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}, Ge = (e) => {
|
|
78
|
-
var C, S, r, g;
|
|
79
|
-
const {
|
|
80
|
-
consents: i,
|
|
81
|
-
primaryColor: a,
|
|
82
|
-
textColor: c,
|
|
83
|
-
brandingUrls: s,
|
|
84
|
-
onSubmit: y,
|
|
85
|
-
align: b = "start"
|
|
86
|
-
} = e, { t: m } = E(), u = N().primary, k = F(), x = V(), A = b === "center";
|
|
87
|
-
if (!i.items.length) return null;
|
|
88
|
-
const P = ((C = i.labels) == null ? void 0 : C.title) ?? m("consents.title"), I = ((S = i.labels) == null ? void 0 : S.description) ?? m("consents.description"), h = c || k.textColor;
|
|
89
|
-
return /* @__PURE__ */ d(
|
|
90
|
-
xe,
|
|
91
|
-
{
|
|
92
|
-
sx: {
|
|
93
|
-
width: "100%",
|
|
94
|
-
fontFamily: u,
|
|
95
|
-
gap: x.md
|
|
96
|
-
},
|
|
97
|
-
children: [
|
|
98
|
-
P || I ? (
|
|
99
|
-
// Mirrors the skeleton's headline block, one step down the size scale so it
|
|
100
|
-
// reads as secondary to the entity title above it
|
|
101
|
-
/* @__PURE__ */ d(
|
|
102
|
-
n,
|
|
103
|
-
{
|
|
104
|
-
sx: {
|
|
105
|
-
display: "flex",
|
|
106
|
-
flexDirection: "column",
|
|
107
|
-
gap: x["3xs"],
|
|
108
|
-
textAlign: A ? "center" : "left"
|
|
109
|
-
},
|
|
110
|
-
children: [
|
|
111
|
-
P ? /* @__PURE__ */ t(
|
|
112
|
-
f,
|
|
113
|
-
{
|
|
114
|
-
sx: {
|
|
115
|
-
fontFamily: u,
|
|
116
|
-
fontWeight: 700,
|
|
117
|
-
lineHeight: "133%",
|
|
118
|
-
letterSpacing: "0px",
|
|
119
|
-
fontSize: "1.25em",
|
|
120
|
-
color: h
|
|
121
|
-
},
|
|
122
|
-
children: P
|
|
123
|
-
}
|
|
124
|
-
) : null,
|
|
125
|
-
I ? /* @__PURE__ */ t(
|
|
126
|
-
f,
|
|
127
|
-
{
|
|
128
|
-
sx: {
|
|
129
|
-
fontFamily: u,
|
|
130
|
-
fontWeight: 400,
|
|
131
|
-
lineHeight: "140%",
|
|
132
|
-
letterSpacing: "0.15px",
|
|
133
|
-
fontSize: "1em",
|
|
134
|
-
color: h,
|
|
135
|
-
opacity: 0.6
|
|
136
|
-
},
|
|
137
|
-
children: I
|
|
138
|
-
}
|
|
139
|
-
) : null
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
)
|
|
143
|
-
) : null,
|
|
144
|
-
/* @__PURE__ */ t(
|
|
145
|
-
se,
|
|
146
|
-
{
|
|
147
|
-
consents: i.items,
|
|
148
|
-
checked: i.checked,
|
|
149
|
-
onChange: i.onChange,
|
|
150
|
-
primaryColor: a,
|
|
151
|
-
textColor: h,
|
|
152
|
-
brandingUrls: s || void 0,
|
|
153
|
-
requiredError: i.showError ? ((r = i.labels) == null ? void 0 : r.requiredError) ?? m("consents.requiredError") : null
|
|
154
|
-
}
|
|
155
|
-
),
|
|
156
|
-
y ? /* @__PURE__ */ t(
|
|
157
|
-
Te,
|
|
158
|
-
{
|
|
159
|
-
onClick: y,
|
|
160
|
-
label: ((g = i.labels) == null ? void 0 : g.ctaLabel) || e.ctaLabel,
|
|
161
|
-
isSubmitting: e.isSubmitting,
|
|
162
|
-
primaryColor: a,
|
|
163
|
-
showArrow: e.showArrow
|
|
164
|
-
}
|
|
165
|
-
) : null
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
}, De = (e) => {
|
|
170
|
-
var i, a, c;
|
|
171
|
-
return {
|
|
172
|
-
// Mobile headline with image background
|
|
173
|
-
mobileHeadlineWithImage: {
|
|
174
|
-
display: e.isMobile ? "flex" : "none",
|
|
175
|
-
flexDirection: "column",
|
|
176
|
-
justifyContent: "space-between",
|
|
177
|
-
gap: "10px",
|
|
178
|
-
backgroundImage: `url("${e.finalImage}")`,
|
|
179
|
-
backgroundSize: "cover",
|
|
180
|
-
backgroundPosition: "center",
|
|
181
|
-
borderTopLeftRadius: "5px",
|
|
182
|
-
borderTopRightRadius: "5px",
|
|
183
|
-
position: "relative",
|
|
184
|
-
minHeight: "210px",
|
|
185
|
-
overflow: "hidden",
|
|
186
|
-
height: "auto",
|
|
187
|
-
"&::before": {
|
|
188
|
-
content: '""',
|
|
189
|
-
position: "absolute",
|
|
190
|
-
width: "100%",
|
|
191
|
-
height: "100%",
|
|
192
|
-
background: e.imageBackgroundGradient,
|
|
193
|
-
borderTopLeftRadius: "5px",
|
|
194
|
-
borderTopRightRadius: "5px"
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
// Content inside mobile headline with image
|
|
198
|
-
mobileHeadlineContent: {
|
|
199
|
-
zIndex: 1,
|
|
200
|
-
height: "100%",
|
|
201
|
-
p: e.spacingScale.xl,
|
|
202
|
-
gap: e.spacingScale["2xl"],
|
|
203
|
-
display: "flex",
|
|
204
|
-
flexDirection: "column",
|
|
205
|
-
justifyContent: "space-between"
|
|
206
|
-
},
|
|
207
|
-
// Mobile headline without image
|
|
208
|
-
mobileHeadlineWithoutImage: {
|
|
209
|
-
display: e.isMobile ? "flex" : "none",
|
|
210
|
-
flex: "0.5",
|
|
211
|
-
flexDirection: "column",
|
|
212
|
-
justifyContent: "space-between",
|
|
213
|
-
p: e.spacingScale.lg,
|
|
214
|
-
gap: e.spacingScale["2xl"]
|
|
215
|
-
},
|
|
216
|
-
// Headline typography (mobile with image)
|
|
217
|
-
headlineTypographyMobileImage: {
|
|
218
|
-
fontWeight: 500,
|
|
219
|
-
lineHeight: "166%",
|
|
220
|
-
letterSpacing: "1px",
|
|
221
|
-
fontSize: "0.75em",
|
|
222
|
-
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.darkTextColor,
|
|
223
|
-
opacity: "70%",
|
|
224
|
-
textTransform: "uppercase",
|
|
225
|
-
fontFamily: e.fontFamilySecondary,
|
|
226
|
-
textAlign: "center"
|
|
227
|
-
},
|
|
228
|
-
// Headline typography (mobile without image & desktop)
|
|
229
|
-
headlineTypography: {
|
|
230
|
-
fontWeight: 500,
|
|
231
|
-
lineHeight: "166%",
|
|
232
|
-
letterSpacing: "1px",
|
|
233
|
-
textTransform: "uppercase",
|
|
234
|
-
fontSize: "0.75em",
|
|
235
|
-
color: e.secondaryColor,
|
|
236
|
-
opacity: e.opacity,
|
|
237
|
-
fontFamily: e.fontFamilySecondary,
|
|
238
|
-
textAlign: "center"
|
|
239
|
-
},
|
|
240
|
-
// Title typography (mobile with image)
|
|
241
|
-
titleTypographyMobileImage: {
|
|
242
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
243
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
244
|
-
unicodeBidi: "plaintext",
|
|
245
|
-
fontWeight: 700,
|
|
246
|
-
lineHeight: "133%",
|
|
247
|
-
fontSize: "1.5em",
|
|
248
|
-
letterSpacing: "0.15px",
|
|
249
|
-
color: ((a = e.brandingColors) == null ? void 0 : a.contentColor) || e.darkTextColor,
|
|
250
|
-
fontFamily: e.fontFamilyPrimary,
|
|
251
|
-
textAlign: "center"
|
|
252
|
-
},
|
|
253
|
-
// Title typography (mobile without image & desktop)
|
|
254
|
-
titleTypography: {
|
|
255
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
256
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
257
|
-
unicodeBidi: "plaintext",
|
|
258
|
-
fontWeight: 700,
|
|
259
|
-
lineHeight: "133%",
|
|
260
|
-
letterSpacing: "0px",
|
|
261
|
-
fontSize: "1.5em",
|
|
262
|
-
color: e.textColor,
|
|
263
|
-
fontFamily: e.fontFamilyPrimary,
|
|
264
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
265
|
-
},
|
|
266
|
-
// Description typography (mobile with image)
|
|
267
|
-
descriptionTypographyMobileImage: {
|
|
268
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
269
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
270
|
-
unicodeBidi: "plaintext",
|
|
271
|
-
fontWeight: 400,
|
|
272
|
-
lineHeight: "140%",
|
|
273
|
-
fontSize: "1.25em",
|
|
274
|
-
letterSpacing: "0.15px",
|
|
275
|
-
color: ((c = e.brandingColors) == null ? void 0 : c.secondaryColor) || e.darkTextColor,
|
|
276
|
-
opacity: "70%",
|
|
277
|
-
fontFamily: e.fontFamilyPrimary,
|
|
278
|
-
textAlign: "center"
|
|
279
|
-
},
|
|
280
|
-
// Description typography (mobile without image & desktop)
|
|
281
|
-
descriptionTypography: {
|
|
282
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
283
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
284
|
-
unicodeBidi: "plaintext",
|
|
285
|
-
fontWeight: 400,
|
|
286
|
-
lineHeight: "140%",
|
|
287
|
-
letterSpacing: "0.15px",
|
|
288
|
-
fontSize: "1.25em",
|
|
289
|
-
color: e.secondaryColor,
|
|
290
|
-
opacity: e.opacity,
|
|
291
|
-
fontFamily: e.fontFamilyPrimary,
|
|
292
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
293
|
-
},
|
|
294
|
-
// Desktop title typography (centered)
|
|
295
|
-
titleTypographyDesktop: {
|
|
296
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
297
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
298
|
-
unicodeBidi: "plaintext",
|
|
299
|
-
fontWeight: 700,
|
|
300
|
-
lineHeight: "133%",
|
|
301
|
-
letterSpacing: "0px",
|
|
302
|
-
fontSize: "1.5em",
|
|
303
|
-
color: e.textColor,
|
|
304
|
-
fontFamily: e.fontFamilyPrimary
|
|
305
|
-
},
|
|
306
|
-
// Desktop description typography (centered)
|
|
307
|
-
descriptionTypographyDesktop: {
|
|
308
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
309
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
310
|
-
unicodeBidi: "plaintext",
|
|
311
|
-
fontWeight: 400,
|
|
312
|
-
lineHeight: "140%",
|
|
313
|
-
letterSpacing: "0.15px",
|
|
314
|
-
fontSize: "1.25em",
|
|
315
|
-
color: e.secondaryColor,
|
|
316
|
-
opacity: e.opacity,
|
|
317
|
-
fontFamily: e.fontFamilyPrimary
|
|
318
|
-
},
|
|
319
|
-
// Image container (left position)
|
|
320
|
-
imageContainerLeft: {
|
|
321
|
-
display: e.isMobile ? "none" : "block",
|
|
322
|
-
flex: "0.3",
|
|
323
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
324
|
-
borderBottomLeftRadius: e.borderRadius.md,
|
|
325
|
-
overflow: "hidden",
|
|
326
|
-
height: "auto",
|
|
327
|
-
position: "relative"
|
|
328
|
-
},
|
|
329
|
-
// Image container (right position)
|
|
330
|
-
imageContainerRight: {
|
|
331
|
-
display: e.isMobile ? "none" : "block",
|
|
332
|
-
flex: "0.3",
|
|
333
|
-
borderTopRightRadius: "5px",
|
|
334
|
-
borderBottomRightRadius: "5px",
|
|
335
|
-
overflow: "hidden",
|
|
336
|
-
height: "auto",
|
|
337
|
-
position: "relative"
|
|
338
|
-
},
|
|
339
|
-
// Main content area
|
|
340
|
-
mainContentArea: {
|
|
341
|
-
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
342
|
-
// display: props.isMobile ? "block" : "flex",
|
|
343
|
-
display: "flex",
|
|
344
|
-
flexDirection: "column",
|
|
345
|
-
p: e.spacingScale.md,
|
|
346
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
347
|
-
},
|
|
348
|
-
// Desktop headline container
|
|
349
|
-
desktopHeadlineContainer: {
|
|
350
|
-
display: e.isMobile ? "none" : "flex",
|
|
351
|
-
flexDirection: "column",
|
|
352
|
-
justifyContent: "space-between",
|
|
353
|
-
gap: e.spacingScale["2xl"],
|
|
354
|
-
textAlign: "center"
|
|
355
|
-
},
|
|
356
|
-
// Content container
|
|
357
|
-
contentContainer: {
|
|
358
|
-
display: "flex",
|
|
359
|
-
flexDirection: "column",
|
|
360
|
-
gap: e.spacingScale["3xs"]
|
|
361
|
-
},
|
|
362
|
-
// Question area
|
|
363
|
-
questionArea: {
|
|
364
|
-
display: "flex",
|
|
365
|
-
flexDirection: "column",
|
|
366
|
-
px: e.spacingScale.md
|
|
367
|
-
},
|
|
368
|
-
// Question container
|
|
369
|
-
questionContainer: {
|
|
370
|
-
display: "flex",
|
|
371
|
-
flexDirection: "column",
|
|
372
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
373
|
-
},
|
|
374
|
-
// Alert container
|
|
375
|
-
alertContainer: {
|
|
376
|
-
// py: props.spacingScale.md,
|
|
377
|
-
display: "flex",
|
|
378
|
-
flexDirection: "column",
|
|
379
|
-
backdropFilter: "blur(4px)"
|
|
380
|
-
},
|
|
381
|
-
image: {
|
|
382
|
-
width: "100%",
|
|
383
|
-
height: "100%",
|
|
384
|
-
objectFit: "cover"
|
|
385
|
-
},
|
|
386
|
-
// CTA container
|
|
387
|
-
ctaContainer: {
|
|
388
|
-
display: "flex",
|
|
389
|
-
flexDirection: "column",
|
|
390
|
-
alignItems: "center"
|
|
391
|
-
},
|
|
392
|
-
// CTA content wrapper
|
|
393
|
-
ctaContentWrapper: {
|
|
394
|
-
display: "flex",
|
|
395
|
-
flexDirection: "column",
|
|
396
|
-
justifyContent: "center",
|
|
397
|
-
alignItems: "center",
|
|
398
|
-
gap: e.spacingScale.lg
|
|
399
|
-
},
|
|
400
|
-
// Buttons container
|
|
401
|
-
buttonsContainer: {
|
|
402
|
-
display: "flex",
|
|
403
|
-
flexDirection: e.isMobile ? "column" : "row",
|
|
404
|
-
gap: e.spacingScale.md
|
|
405
|
-
},
|
|
406
|
-
// Try again button
|
|
407
|
-
tryAgainButton: {
|
|
408
|
-
display: "flex",
|
|
409
|
-
py: e.spacingScale.xs,
|
|
410
|
-
px: "16px",
|
|
411
|
-
flexDirection: "column",
|
|
412
|
-
justifyContent: "center",
|
|
413
|
-
alignItems: "center",
|
|
414
|
-
gap: "8px",
|
|
415
|
-
borderRadius: e.borderRadius.xl,
|
|
416
|
-
border: e.borderSize + " solid " + e.primaryColor,
|
|
417
|
-
bgcolor: e.buttonBgColor,
|
|
418
|
-
"&:hover": {
|
|
419
|
-
bgcolor: e.onSurfaceColor,
|
|
420
|
-
borderColor: e.primaryColor
|
|
421
|
-
},
|
|
422
|
-
fontSize: "0.8125em"
|
|
423
|
-
},
|
|
424
|
-
// Try again button content
|
|
425
|
-
tryAgainButtonContent: {
|
|
426
|
-
display: "flex",
|
|
427
|
-
justifyContent: "center",
|
|
428
|
-
alignItems: "center",
|
|
429
|
-
gap: "8px",
|
|
430
|
-
alignSelf: "stretch"
|
|
431
|
-
},
|
|
432
|
-
// Try again icon
|
|
433
|
-
tryAgainIcon: {
|
|
434
|
-
display: "flex",
|
|
435
|
-
width: "16px",
|
|
436
|
-
height: "16px",
|
|
437
|
-
justifyContent: "flex-end",
|
|
438
|
-
alignItems: "center",
|
|
439
|
-
color: e.textPrimary
|
|
440
|
-
},
|
|
441
|
-
// Try again text
|
|
442
|
-
tryAgainText: {
|
|
443
|
-
color: e.textPrimary,
|
|
444
|
-
textAlign: "center",
|
|
445
|
-
fontFamily: e.fontFamilyPrimary,
|
|
446
|
-
fontSize: "0.8125em",
|
|
447
|
-
fontStyle: "normal",
|
|
448
|
-
fontWeight: 500,
|
|
449
|
-
lineHeight: "22px",
|
|
450
|
-
letterSpacing: "0.46px",
|
|
451
|
-
textTransform: "uppercase"
|
|
452
|
-
},
|
|
453
|
-
// Presented by container
|
|
454
|
-
presentedByContainer: {
|
|
455
|
-
px: e.spacingScale.md
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
}, ae = ne(/* @__PURE__ */ t("path", {
|
|
459
|
-
d: "M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"
|
|
460
|
-
}), "Replay"), $e = (e) => {
|
|
461
|
-
var R;
|
|
462
|
-
const i = ((R = e.entity.branding) == null ? void 0 : R.colors) || null, a = K(), c = G(), s = $(
|
|
463
|
-
{
|
|
464
|
-
images: e.entity.images || null,
|
|
465
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
466
|
-
},
|
|
467
|
-
M.STANDARD
|
|
468
|
-
), y = V(), b = N().primary, m = N().secondary, u = Q(), k = (i == null ? void 0 : i.contentColor) || F().textColor, x = F().textPrimary, A = (i == null ? void 0 : i.primaryColor) || F().palette.primary.plainColor, P = (i == null ? void 0 : i.secondaryColor) || F().textColor, I = oe().size, h = F().surface, C = F().onSurface, S = te(
|
|
469
|
-
M.STANDARD
|
|
470
|
-
), { t: r } = E(), g = e.imagePosition || "left", T = "60%", B = e.customAlertTitle ?? (e.isApiError ? r("common.error.title") : r("common.authentication.accessRequired")), D = e.customAlertMessage ?? (e.isApiError ? e.apiErrorMessage || r("common.error.message") : r("common.authentication.invalidOrMissingAuth")), o = re(g), l = De({
|
|
471
|
-
finalImage: s,
|
|
472
|
-
spacingScale: y,
|
|
473
|
-
borderRadius: u,
|
|
474
|
-
fontFamilyPrimary: b,
|
|
475
|
-
fontFamilySecondary: m,
|
|
476
|
-
textColor: k,
|
|
477
|
-
secondaryColor: P,
|
|
478
|
-
brandingColors: i,
|
|
479
|
-
darkTextColor: a.colorSchemes.dark.textColor,
|
|
480
|
-
opacity: T,
|
|
481
|
-
imagePosition: g,
|
|
482
|
-
imageBackgroundGradient: S,
|
|
483
|
-
textPrimary: x,
|
|
484
|
-
primaryColor: A,
|
|
485
|
-
borderSize: I,
|
|
486
|
-
buttonBgColor: h,
|
|
487
|
-
onSurfaceColor: C,
|
|
488
|
-
isMobile: c
|
|
489
|
-
}), v = () => !e.isApiError || !e.toggleTryAgain ? /* @__PURE__ */ t(j, {}) : /* @__PURE__ */ d(j, { children: [
|
|
490
|
-
/* @__PURE__ */ t(n, { sx: l.ctaContainer, children: /* @__PURE__ */ t(n, { sx: l.ctaContentWrapper, children: /* @__PURE__ */ t(n, { sx: l.buttonsContainer, children: /* @__PURE__ */ t(U, { sx: l.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ d(n, { sx: l.tryAgainButtonContent, children: [
|
|
491
|
-
/* @__PURE__ */ t(ae, { sx: l.tryAgainIcon }),
|
|
492
|
-
/* @__PURE__ */ t(f, { sx: l.tryAgainText, children: e.tryAgainButtonText })
|
|
493
|
-
] }) }) }) }) }),
|
|
494
|
-
/* @__PURE__ */ t(n, { sx: l.presentedByContainer, children: e.renderPresentedBy(k) })
|
|
495
|
-
] });
|
|
496
|
-
return /* @__PURE__ */ d(j, { children: [
|
|
497
|
-
s ? /* @__PURE__ */ t(n, { sx: l.mobileHeadlineWithImage, children: /* @__PURE__ */ t(n, { sx: l.mobileHeadlineContent, children: /* @__PURE__ */ d(n, { children: [
|
|
498
|
-
/* @__PURE__ */ d(
|
|
499
|
-
n,
|
|
500
|
-
{
|
|
501
|
-
sx: {
|
|
502
|
-
display: "flex",
|
|
503
|
-
alignItems: "center",
|
|
504
|
-
justifyContent: "center",
|
|
505
|
-
gap: y["3xs"]
|
|
506
|
-
},
|
|
507
|
-
children: [
|
|
508
|
-
/* @__PURE__ */ t(
|
|
509
|
-
f,
|
|
510
|
-
{
|
|
511
|
-
level: "body-sm",
|
|
512
|
-
sx: l.headlineTypographyMobileImage,
|
|
513
|
-
children: e.headline
|
|
514
|
-
}
|
|
515
|
-
),
|
|
516
|
-
/* @__PURE__ */ t(
|
|
517
|
-
O,
|
|
518
|
-
{
|
|
519
|
-
rulesDisplay: e.rulesDisplay,
|
|
520
|
-
rules: e.entity.rules || ""
|
|
521
|
-
}
|
|
522
|
-
)
|
|
523
|
-
]
|
|
524
|
-
}
|
|
525
|
-
),
|
|
526
|
-
/* @__PURE__ */ d(n, { sx: l.contentContainer, children: [
|
|
527
|
-
/* @__PURE__ */ t(
|
|
528
|
-
f,
|
|
529
|
-
{
|
|
530
|
-
level: "body-lg",
|
|
531
|
-
sx: l.titleTypographyMobileImage,
|
|
532
|
-
children: e.entity.title
|
|
533
|
-
}
|
|
534
|
-
),
|
|
535
|
-
/* @__PURE__ */ t(
|
|
536
|
-
f,
|
|
537
|
-
{
|
|
538
|
-
level: "body-md",
|
|
539
|
-
sx: l.descriptionTypographyMobileImage,
|
|
540
|
-
children: q(e.entity.description)
|
|
541
|
-
}
|
|
542
|
-
)
|
|
543
|
-
] })
|
|
544
|
-
] }) }) }) : /* @__PURE__ */ t(n, { sx: l.mobileHeadlineWithoutImage, children: /* @__PURE__ */ d(n, { children: [
|
|
545
|
-
/* @__PURE__ */ d(
|
|
546
|
-
n,
|
|
547
|
-
{
|
|
548
|
-
sx: {
|
|
549
|
-
display: "flex",
|
|
550
|
-
alignItems: "center",
|
|
551
|
-
justifyContent: "center",
|
|
552
|
-
gap: y["3xs"]
|
|
553
|
-
},
|
|
554
|
-
children: [
|
|
555
|
-
/* @__PURE__ */ t(f, { level: "body-sm", sx: l.headlineTypography, children: e.headline }),
|
|
556
|
-
/* @__PURE__ */ t(
|
|
557
|
-
O,
|
|
558
|
-
{
|
|
559
|
-
rulesDisplay: e.rulesDisplay,
|
|
560
|
-
rules: e.entity.rules || ""
|
|
561
|
-
}
|
|
562
|
-
)
|
|
563
|
-
]
|
|
564
|
-
}
|
|
565
|
-
),
|
|
566
|
-
/* @__PURE__ */ d(n, { sx: l.contentContainer, children: [
|
|
567
|
-
/* @__PURE__ */ t(f, { level: "h4", sx: l.titleTypography, children: e.entity.title }),
|
|
568
|
-
/* @__PURE__ */ t(f, { level: "body-md", sx: l.descriptionTypography, children: q(e.entity.description) })
|
|
569
|
-
] })
|
|
570
|
-
] }) }),
|
|
571
|
-
s && o === "left" && /* @__PURE__ */ t(n, { sx: l.imageContainerLeft, children: /* @__PURE__ */ t("img", { src: s, alt: "illustration", style: l.image }) }),
|
|
572
|
-
/* @__PURE__ */ d(n, { sx: l.mainContentArea, children: [
|
|
573
|
-
/* @__PURE__ */ t(n, { sx: { px: y.md }, children: /* @__PURE__ */ t(n, { sx: l.desktopHeadlineContainer, children: /* @__PURE__ */ d(
|
|
574
|
-
n,
|
|
575
|
-
{
|
|
576
|
-
sx: {
|
|
577
|
-
display: "flex",
|
|
578
|
-
flexDirection: "column",
|
|
579
|
-
alignItems: "center"
|
|
580
|
-
},
|
|
581
|
-
children: [
|
|
582
|
-
/* @__PURE__ */ d(
|
|
583
|
-
n,
|
|
584
|
-
{
|
|
585
|
-
sx: {
|
|
586
|
-
display: "flex",
|
|
587
|
-
alignItems: "center",
|
|
588
|
-
gap: y["3xs"]
|
|
589
|
-
},
|
|
590
|
-
children: [
|
|
591
|
-
/* @__PURE__ */ t(f, { level: "body-sm", sx: l.headlineTypography, children: e.headline }),
|
|
592
|
-
/* @__PURE__ */ t(
|
|
593
|
-
O,
|
|
594
|
-
{
|
|
595
|
-
rulesDisplay: e.rulesDisplay,
|
|
596
|
-
rules: e.entity.rules || ""
|
|
597
|
-
}
|
|
598
|
-
)
|
|
599
|
-
]
|
|
600
|
-
}
|
|
601
|
-
),
|
|
602
|
-
/* @__PURE__ */ d(n, { sx: l.contentContainer, children: [
|
|
603
|
-
/* @__PURE__ */ t(f, { level: "h4", sx: l.titleTypographyDesktop, children: e.entity.title }),
|
|
604
|
-
/* @__PURE__ */ t(
|
|
605
|
-
f,
|
|
606
|
-
{
|
|
607
|
-
level: "body-md",
|
|
608
|
-
sx: l.descriptionTypographyDesktop,
|
|
609
|
-
children: q(e.entity.description)
|
|
610
|
-
}
|
|
611
|
-
)
|
|
612
|
-
] })
|
|
613
|
-
]
|
|
614
|
-
}
|
|
615
|
-
) }) }),
|
|
616
|
-
/* @__PURE__ */ t(n, { sx: l.questionArea, children: /* @__PURE__ */ t(n, { sx: l.questionContainer, children: /* @__PURE__ */ t(n, { sx: l.alertContainer, children: /* @__PURE__ */ t(
|
|
617
|
-
ie,
|
|
618
|
-
{
|
|
619
|
-
variant: e.alertVariant || "error",
|
|
620
|
-
title: B,
|
|
621
|
-
message: D
|
|
622
|
-
}
|
|
623
|
-
) }) }) }),
|
|
624
|
-
v(),
|
|
625
|
-
!e.isApiError && /* @__PURE__ */ t(n, { sx: { ...l.presentedByContainer, mt: "auto" }, children: e.renderPresentedBy(k) })
|
|
626
|
-
] }),
|
|
627
|
-
s && o === "right" && /* @__PURE__ */ t(n, { sx: l.imageContainerRight, children: /* @__PURE__ */ t("img", { src: s, alt: "illustration", style: l.image }) })
|
|
628
|
-
] });
|
|
629
|
-
}, Pe = (e) => {
|
|
630
|
-
var i;
|
|
631
|
-
return {
|
|
632
|
-
// Main container with background overlay
|
|
633
|
-
mainContainer: {
|
|
634
|
-
display: "flex",
|
|
635
|
-
flexDirection: "column",
|
|
636
|
-
gap: "40px",
|
|
637
|
-
p: e.spacingScale.xl,
|
|
638
|
-
boxShadow: "md",
|
|
639
|
-
border: (i = e.brandingColors) != null && i.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
640
|
-
overflow: "hidden",
|
|
641
|
-
backgroundImage: e.backgroundImage,
|
|
642
|
-
backgroundSize: "cover",
|
|
643
|
-
backgroundPosition: "center",
|
|
644
|
-
position: "relative",
|
|
645
|
-
borderRadius: e.borderRadius.md,
|
|
646
|
-
"&::before": {
|
|
647
|
-
content: '""',
|
|
648
|
-
position: "absolute",
|
|
649
|
-
background: e.imageBackgroundGradient,
|
|
650
|
-
top: 0,
|
|
651
|
-
left: 0,
|
|
652
|
-
right: 0,
|
|
653
|
-
bottom: 0,
|
|
654
|
-
borderRadius: "inherit",
|
|
655
|
-
zIndex: 0
|
|
656
|
-
}
|
|
657
|
-
},
|
|
658
|
-
// Headline section wrapper
|
|
659
|
-
headlineSection: {
|
|
660
|
-
display: "flex",
|
|
661
|
-
justifyContent: "space-between",
|
|
662
|
-
flex: "1 0 0",
|
|
663
|
-
alignSelf: "stretch"
|
|
664
|
-
},
|
|
665
|
-
// Headline content container
|
|
666
|
-
headlineContent: {
|
|
667
|
-
display: "flex",
|
|
668
|
-
flexDirection: "column",
|
|
669
|
-
alignItems: "flex-start",
|
|
670
|
-
flex: "1 0 0",
|
|
671
|
-
gap: "16px"
|
|
672
|
-
},
|
|
673
|
-
// Headline content with z-index
|
|
674
|
-
headlineContentInner: {
|
|
675
|
-
zIndex: 10
|
|
676
|
-
},
|
|
677
|
-
// Headline typography
|
|
678
|
-
headlineText: {
|
|
679
|
-
fontWeight: 500,
|
|
680
|
-
lineHeight: "166%",
|
|
681
|
-
letterSpacing: "1px",
|
|
682
|
-
textAlign: e.isMobile ? "center" : "left",
|
|
683
|
-
color: e.secondaryColor,
|
|
684
|
-
opacity: "70%",
|
|
685
|
-
textTransform: "uppercase",
|
|
686
|
-
fontFamily: e.fontFamilySecondary,
|
|
687
|
-
fontSize: "0.75em"
|
|
688
|
-
},
|
|
689
|
-
// Content container
|
|
690
|
-
contentContainer: {
|
|
691
|
-
display: "flex",
|
|
692
|
-
flexDirection: "column",
|
|
693
|
-
gap: e.spacingScale["3xs"]
|
|
694
|
-
},
|
|
695
|
-
// Title typography
|
|
696
|
-
titleText: {
|
|
697
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
698
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
699
|
-
unicodeBidi: "plaintext",
|
|
700
|
-
fontWeight: 700,
|
|
701
|
-
lineHeight: "133%",
|
|
702
|
-
letterSpacing: "0px",
|
|
703
|
-
textAlign: e.isMobile ? "center" : "left",
|
|
704
|
-
fontSize: "1.5em",
|
|
705
|
-
color: e.darkTextColor,
|
|
706
|
-
fontFamily: e.fontFamilyPrimary
|
|
707
|
-
},
|
|
708
|
-
// Description typography
|
|
709
|
-
descriptionText: {
|
|
710
|
-
// CMS text of unknown language: let each block pick its own direction from
|
|
711
|
-
// its first strong character, so Latin punctuation is not displaced in RTL.
|
|
712
|
-
unicodeBidi: "plaintext",
|
|
713
|
-
fontWeight: 400,
|
|
714
|
-
lineHeight: "140%",
|
|
715
|
-
letterSpacing: "0.15px",
|
|
716
|
-
fontSize: "1.25em",
|
|
717
|
-
textAlign: e.isMobile ? "center" : "left",
|
|
718
|
-
color: e.secondaryColor,
|
|
719
|
-
opacity: "70%",
|
|
720
|
-
fontFamily: e.fontFamilyPrimary
|
|
721
|
-
},
|
|
722
|
-
// Bottom section container
|
|
723
|
-
bottomSection: {
|
|
724
|
-
display: "flex",
|
|
725
|
-
flexDirection: "column",
|
|
726
|
-
gap: "24px",
|
|
727
|
-
zIndex: 1
|
|
728
|
-
},
|
|
729
|
-
// Footer container
|
|
730
|
-
footerContainer: {
|
|
731
|
-
display: "flex",
|
|
732
|
-
alignItems: "center",
|
|
733
|
-
justifyContent: "space-between",
|
|
734
|
-
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
735
|
-
gap: e.spacingScale.md
|
|
736
|
-
},
|
|
737
|
-
ctaSection: {
|
|
738
|
-
borderRadius: e.borderRadius.md,
|
|
739
|
-
py: e.spacingScale.md,
|
|
740
|
-
display: "flex",
|
|
741
|
-
flexDirection: "column",
|
|
742
|
-
alignItems: "center",
|
|
743
|
-
alignSelf: "stretch",
|
|
744
|
-
gap: e.spacingScale.md,
|
|
745
|
-
backdropFilter: "blur(4px)",
|
|
746
|
-
position: "relative",
|
|
747
|
-
"&::before": {
|
|
748
|
-
content: '""',
|
|
749
|
-
position: "absolute",
|
|
750
|
-
top: 0,
|
|
751
|
-
left: 0,
|
|
752
|
-
right: 0,
|
|
753
|
-
bottom: 0,
|
|
754
|
-
backgroundColor: e.contentBgColor,
|
|
755
|
-
opacity: 0.25,
|
|
756
|
-
borderRadius: "inherit",
|
|
757
|
-
zIndex: 0,
|
|
758
|
-
backdropFilter: "blur(4px)"
|
|
759
|
-
},
|
|
760
|
-
"& > *": {
|
|
761
|
-
position: "relative",
|
|
762
|
-
zIndex: 1
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
// Buttons container
|
|
766
|
-
buttonsContainer: {
|
|
767
|
-
display: "flex",
|
|
768
|
-
flexDirection: "column",
|
|
769
|
-
gap: e.spacingScale.md
|
|
770
|
-
},
|
|
771
|
-
// Try again button
|
|
772
|
-
tryAgainButton: {
|
|
773
|
-
display: "flex",
|
|
774
|
-
minHeight: "48px",
|
|
775
|
-
py: "12px",
|
|
776
|
-
pr: "24px",
|
|
777
|
-
pl: "16px",
|
|
778
|
-
flexDirection: "column",
|
|
779
|
-
justifyContent: "center",
|
|
780
|
-
alignItems: "center",
|
|
781
|
-
gap: "8px",
|
|
782
|
-
borderRadius: e.borderRadius.xl,
|
|
783
|
-
bgcolor: e.onSurfaceColor,
|
|
784
|
-
"&:hover": {
|
|
785
|
-
bgcolor: e.surfaceVariantColor
|
|
786
|
-
},
|
|
787
|
-
fontSize: "0.9375em"
|
|
788
|
-
},
|
|
789
|
-
// Try again button content
|
|
790
|
-
tryAgainButtonContent: {
|
|
791
|
-
display: "flex",
|
|
792
|
-
justifyContent: "center",
|
|
793
|
-
alignItems: "center",
|
|
794
|
-
gap: "8px",
|
|
795
|
-
alignSelf: "stretch"
|
|
796
|
-
},
|
|
797
|
-
// Try again icon
|
|
798
|
-
tryAgainIcon: {
|
|
799
|
-
display: "flex",
|
|
800
|
-
width: "24px",
|
|
801
|
-
height: "24px",
|
|
802
|
-
justifyContent: "center",
|
|
803
|
-
alignItems: "center",
|
|
804
|
-
color: e.textPrimary
|
|
805
|
-
},
|
|
806
|
-
// Try again text
|
|
807
|
-
tryAgainText: {
|
|
808
|
-
color: e.textPrimary,
|
|
809
|
-
textAlign: "center",
|
|
810
|
-
fontFamily: e.fontFamilyPrimary,
|
|
811
|
-
fontSize: "0.9375em",
|
|
812
|
-
fontStyle: "normal",
|
|
813
|
-
fontWeight: 500,
|
|
814
|
-
lineHeight: "24px",
|
|
815
|
-
letterSpacing: "0.46px",
|
|
816
|
-
textTransform: "uppercase"
|
|
817
|
-
}
|
|
818
|
-
};
|
|
819
|
-
}, Ye = (e) => {
|
|
820
|
-
const i = V(), a = K(), c = G(), { t: s } = E(), y = te(
|
|
821
|
-
M.OVERLAY
|
|
822
|
-
), { brandingImage: b, brandingColors: m, brandingLogo: u } = le(e.entity.branding || null), k = b || $(
|
|
823
|
-
{
|
|
824
|
-
images: e.entity.images || null,
|
|
825
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl || ""
|
|
826
|
-
},
|
|
827
|
-
M.OVERLAY
|
|
828
|
-
), x = fe(k), A = (m == null ? void 0 : m.contentColor) || a.colorSchemes.dark.textColor, P = a.customFontFamily.dark.primary, I = a.customFontFamily.dark.secondary, h = a.customRadius.dark, C = a.border.dark.size, S = (m == null ? void 0 : m.backgroundColor) || a.colorSchemes.dark.surfaceVariant, r = a.colorSchemes.dark.onSurface, g = a.colorSchemes.dark.surfaceVariant, T = a.colorSchemes.dark.textPrimary, B = e.customAlertTitle ?? (e.isApiError ? s("common.error.title") : s("common.authentication.accessRequired")), D = e.customAlertMessage ?? (e.isApiError ? e.apiErrorMessage || s("common.error.message") : s("common.authentication.invalidOrMissingAuth")), o = Pe({
|
|
829
|
-
spacingScale: i,
|
|
830
|
-
brandingColors: m,
|
|
831
|
-
secondaryColor: A,
|
|
832
|
-
fontFamilyPrimary: P,
|
|
833
|
-
fontFamilySecondary: I,
|
|
834
|
-
borderRadius: h,
|
|
835
|
-
borderSize: C,
|
|
836
|
-
darkTextColor: a.colorSchemes.dark.textColor,
|
|
837
|
-
backgroundImage: x,
|
|
838
|
-
imageBackgroundGradient: y,
|
|
839
|
-
contentBgColor: S,
|
|
840
|
-
onSurfaceColor: r,
|
|
841
|
-
surfaceVariantColor: g,
|
|
842
|
-
textPrimary: T,
|
|
843
|
-
isMobile: c
|
|
844
|
-
}), l = () => !e.isApiError || !e.toggleTryAgain ? /* @__PURE__ */ t(j, {}) : /* @__PURE__ */ t(n, { sx: o.ctaSection, children: /* @__PURE__ */ t(n, { sx: o.buttonsContainer, children: /* @__PURE__ */ t(U, { sx: o.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ d(n, { sx: o.tryAgainButtonContent, children: [
|
|
845
|
-
/* @__PURE__ */ t(ae, { sx: o.tryAgainIcon }),
|
|
846
|
-
/* @__PURE__ */ t(f, { sx: o.tryAgainText, children: e.tryAgainButtonText })
|
|
847
|
-
] }) }) }) });
|
|
848
|
-
return /* @__PURE__ */ d(n, { sx: o.mainContainer, children: [
|
|
849
|
-
/* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(n, { sx: o.headlineSection, children: /* @__PURE__ */ t(n, { sx: o.headlineContent, children: /* @__PURE__ */ d(n, { sx: o.headlineContentInner, children: [
|
|
850
|
-
/* @__PURE__ */ d(
|
|
851
|
-
n,
|
|
852
|
-
{
|
|
853
|
-
sx: {
|
|
854
|
-
display: "flex",
|
|
855
|
-
alignItems: "center",
|
|
856
|
-
justifyContent: c ? "center" : "left",
|
|
857
|
-
gap: i["3xs"]
|
|
858
|
-
},
|
|
859
|
-
children: [
|
|
860
|
-
/* @__PURE__ */ t(f, { level: "body-sm", sx: o.headlineText, children: e.headline }),
|
|
861
|
-
/* @__PURE__ */ t(
|
|
862
|
-
O,
|
|
863
|
-
{
|
|
864
|
-
rulesDisplay: e.rulesDisplay,
|
|
865
|
-
isOverlayVariant: !0,
|
|
866
|
-
rules: e.entity.rules || ""
|
|
867
|
-
}
|
|
868
|
-
)
|
|
869
|
-
]
|
|
870
|
-
}
|
|
871
|
-
),
|
|
872
|
-
/* @__PURE__ */ d(n, { sx: o.contentContainer, children: [
|
|
873
|
-
/* @__PURE__ */ t(f, { level: "h4", sx: o.titleText, children: e.entity.title }),
|
|
874
|
-
/* @__PURE__ */ t(f, { level: "body-lg", sx: o.descriptionText, children: q(e.entity.description) })
|
|
875
|
-
] })
|
|
876
|
-
] }) }) }) }),
|
|
877
|
-
/* @__PURE__ */ d(n, { sx: o.bottomSection, children: [
|
|
878
|
-
/* @__PURE__ */ t(
|
|
879
|
-
ie,
|
|
880
|
-
{
|
|
881
|
-
variant: e.alertVariant || "error",
|
|
882
|
-
title: B,
|
|
883
|
-
message: D
|
|
884
|
-
}
|
|
885
|
-
),
|
|
886
|
-
l(),
|
|
887
|
-
u ? /* @__PURE__ */ t(n, { sx: o.footerContainer, children: e.renderPresentedBy(a.colorSchemes.dark.textColor) }) : /* @__PURE__ */ t(j, {})
|
|
888
|
-
] })
|
|
889
|
-
] });
|
|
890
|
-
}, Qe = (e) => {
|
|
891
|
-
var h, C, S, r, g, T, B;
|
|
892
|
-
const i = $(
|
|
893
|
-
{
|
|
894
|
-
images: e.entity.images || null,
|
|
895
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
896
|
-
},
|
|
897
|
-
M.STANDARD
|
|
898
|
-
), a = G(), c = V(), s = Q(), y = `rgba(${he(F().surfaceVariant || "")}, 0.5)`, b = ((h = e.entity.branding) == null ? void 0 : h.colors) || null, m = (b == null ? void 0 : b.borderColor) || null, u = a ? ((S = (C = e.entity.branding) == null ? void 0 : C.images) == null ? void 0 : S.mobileLogo) || ((g = (r = e.entity.branding) == null ? void 0 : r.images) == null ? void 0 : g.mainLogo) || "" : ((B = (T = e.entity.branding) == null ? void 0 : T.images) == null ? void 0 : B.mainLogo) || "", k = e.imagePosition || "left", x = F().textColor, A = {
|
|
899
|
-
mainContentArea: {
|
|
900
|
-
flex: a ? "1" : i ? "0.7" : "1",
|
|
901
|
-
display: "flex",
|
|
902
|
-
flexDirection: "column",
|
|
903
|
-
p: c.md,
|
|
904
|
-
gap: c.md
|
|
905
|
-
},
|
|
906
|
-
leadCollectionContainer: {
|
|
907
|
-
display: "flex",
|
|
908
|
-
flexDirection: "column"
|
|
909
|
-
},
|
|
910
|
-
leadQuestionContainer: {
|
|
911
|
-
display: "flex",
|
|
912
|
-
flexDirection: "column",
|
|
913
|
-
gap: a ? c.lg : c.md
|
|
914
|
-
},
|
|
915
|
-
footerContainer: {
|
|
916
|
-
display: "flex",
|
|
917
|
-
flexDirection: a ? "column" : "row",
|
|
918
|
-
justifyContent: "space-between",
|
|
919
|
-
alignItems: "center",
|
|
920
|
-
gap: c.lg
|
|
921
|
-
},
|
|
922
|
-
leadContentContainer: {
|
|
923
|
-
borderRadius: s.md,
|
|
924
|
-
px: c.md,
|
|
925
|
-
pt: c.md,
|
|
926
|
-
pb: c.lg,
|
|
927
|
-
gap: c.md,
|
|
928
|
-
bgcolor: y,
|
|
929
|
-
display: "flex",
|
|
930
|
-
flexDirection: "column",
|
|
931
|
-
backdropFilter: "blur(4px)"
|
|
932
|
-
}
|
|
933
|
-
}, P = () => {
|
|
934
|
-
var l, v, R, z, w, W, L, H, _, J, X;
|
|
935
|
-
if (e.content) return e.content;
|
|
936
|
-
const { CollectLeadWrapper: D, entity: o } = e;
|
|
937
|
-
return D ? /* @__PURE__ */ t(
|
|
938
|
-
D,
|
|
939
|
-
{
|
|
940
|
-
sdk: e.sdk,
|
|
941
|
-
contentId: o.id,
|
|
942
|
-
contentName: o.title,
|
|
943
|
-
brandingColors: (l = o.branding) == null ? void 0 : l.colors,
|
|
944
|
-
brandingUrls: (v = o.branding) == null ? void 0 : v.urls,
|
|
945
|
-
campaignId: (R = e.leads) == null ? void 0 : R.campaignId,
|
|
946
|
-
campaignName: (z = e.leads) == null ? void 0 : z.campaignName,
|
|
947
|
-
fields: (w = e.leads) == null ? void 0 : w.fields,
|
|
948
|
-
leadTitle: (W = o.labels) == null ? void 0 : W.leadTitle,
|
|
949
|
-
leadDescription: (L = o.labels) == null ? void 0 : L.leadDescription,
|
|
950
|
-
leadCta: (H = o.labels) == null ? void 0 : H.leadCta,
|
|
951
|
-
leadSuccessTitle: (_ = o.labels) == null ? void 0 : _.leadSuccessTitle,
|
|
952
|
-
leadSuccessDescription: (J = o.labels) == null ? void 0 : J.leadSuccessDescription,
|
|
953
|
-
syncWithProfile: (X = e.leads) == null ? void 0 : X.syncWithProfile,
|
|
954
|
-
consents: e.consents,
|
|
955
|
-
startGame: e.onLeadSubmitted,
|
|
956
|
-
isAfterPosition: !0,
|
|
957
|
-
isSubmittingParticipation: e.isSubmitting
|
|
958
|
-
}
|
|
959
|
-
) : null;
|
|
960
|
-
}, I = () => {
|
|
961
|
-
var D, o, l, v, R, z, w, W, L, H;
|
|
962
|
-
return /* @__PURE__ */ d(n, { sx: A.mainContentArea, children: [
|
|
963
|
-
/* @__PURE__ */ t(n, { sx: A.leadCollectionContainer, children: /* @__PURE__ */ t(n, { sx: A.leadQuestionContainer, children: /* @__PURE__ */ t(n, { sx: A.leadContentContainer, children: P() }) }) }),
|
|
964
|
-
e.footerAction ? (
|
|
965
|
-
// Sponsor left, action right — the same footer the playing screen uses
|
|
966
|
-
/* @__PURE__ */ d(
|
|
967
|
-
n,
|
|
968
|
-
{
|
|
969
|
-
sx: {
|
|
970
|
-
...A.footerContainer,
|
|
971
|
-
justifyContent: u ? "space-between" : "flex-end"
|
|
972
|
-
},
|
|
973
|
-
children: [
|
|
974
|
-
u ? /* @__PURE__ */ t(
|
|
975
|
-
e.PresentedBy,
|
|
976
|
-
{
|
|
977
|
-
brandingLogo: u,
|
|
978
|
-
textColor: x,
|
|
979
|
-
label: ((D = e.entity.labels) == null ? void 0 : D.sponsor) || null,
|
|
980
|
-
primaryUrl: (l = (o = e.entity.branding) == null ? void 0 : o.urls) == null ? void 0 : l.primaryUrl,
|
|
981
|
-
secondaryUrl: (R = (v = e.entity.branding) == null ? void 0 : v.urls) == null ? void 0 : R.secondaryUrl
|
|
982
|
-
}
|
|
983
|
-
) : null,
|
|
984
|
-
e.footerAction
|
|
985
|
-
]
|
|
986
|
-
}
|
|
987
|
-
)
|
|
988
|
-
) : u && /* @__PURE__ */ t(
|
|
989
|
-
e.PresentedBy,
|
|
990
|
-
{
|
|
991
|
-
brandingLogo: u,
|
|
992
|
-
textColor: x,
|
|
993
|
-
label: ((z = e.entity.labels) == null ? void 0 : z.sponsor) || null,
|
|
994
|
-
primaryUrl: (W = (w = e.entity.branding) == null ? void 0 : w.urls) == null ? void 0 : W.primaryUrl,
|
|
995
|
-
secondaryUrl: (H = (L = e.entity.branding) == null ? void 0 : L.urls) == null ? void 0 : H.secondaryUrl
|
|
996
|
-
}
|
|
997
|
-
)
|
|
998
|
-
] });
|
|
999
|
-
};
|
|
1000
|
-
return /* @__PURE__ */ t(e.MainCard, { brandingBorderColor: m, children: /* @__PURE__ */ t(
|
|
1001
|
-
Ce,
|
|
1002
|
-
{
|
|
1003
|
-
entity: e.entity,
|
|
1004
|
-
headline: e.headline,
|
|
1005
|
-
finalImage: i,
|
|
1006
|
-
imagePosition: k,
|
|
1007
|
-
rulesDisplay: e.rulesDisplay,
|
|
1008
|
-
children: I()
|
|
1009
|
-
}
|
|
1010
|
-
) });
|
|
1011
|
-
}, Ke = (e) => {
|
|
1012
|
-
const i = K(), a = G(), c = e.defaultImagePlaceholder ? e.defaultImagePlaceholder : a ? Ie : ke, { brandingImage: s, brandingColors: y, brandingLogo: b } = le(e.entity.branding || null), m = s || $(
|
|
1013
|
-
{
|
|
1014
|
-
images: e.entity.images || null,
|
|
1015
|
-
imagePlaceholder: c
|
|
1016
|
-
},
|
|
1017
|
-
M.OVERLAY
|
|
1018
|
-
), u = V(), k = (y == null ? void 0 : y.backgroundColor) || i.colorSchemes.dark.surfaceVariant, x = {
|
|
1019
|
-
mainContentSection: {
|
|
1020
|
-
display: "flex",
|
|
1021
|
-
flexDirection: "column",
|
|
1022
|
-
gap: "24px"
|
|
1023
|
-
},
|
|
1024
|
-
contentContainerWithBackdrop: {
|
|
1025
|
-
borderRadius: i.customRadius.dark.sm,
|
|
1026
|
-
p: u.md,
|
|
1027
|
-
display: "flex",
|
|
1028
|
-
flexDirection: "column",
|
|
1029
|
-
gap: u.md,
|
|
1030
|
-
backdropFilter: "blur(4px)",
|
|
1031
|
-
position: "relative",
|
|
1032
|
-
"&::before": {
|
|
1033
|
-
content: '""',
|
|
1034
|
-
position: "absolute",
|
|
1035
|
-
top: 0,
|
|
1036
|
-
left: 0,
|
|
1037
|
-
right: 0,
|
|
1038
|
-
bottom: 0,
|
|
1039
|
-
backgroundColor: k,
|
|
1040
|
-
opacity: 0.5,
|
|
1041
|
-
borderRadius: "inherit",
|
|
1042
|
-
zIndex: 0
|
|
1043
|
-
},
|
|
1044
|
-
"& > *": {
|
|
1045
|
-
position: "relative",
|
|
1046
|
-
zIndex: 1
|
|
1047
|
-
}
|
|
1048
|
-
},
|
|
1049
|
-
presentedByContainer: {
|
|
1050
|
-
display: "flex",
|
|
1051
|
-
alignItems: "center",
|
|
1052
|
-
justifyContent: a ? "center" : "space-between",
|
|
1053
|
-
flexDirection: a ? "column-reverse" : "row",
|
|
1054
|
-
gap: u.md
|
|
1055
|
-
}
|
|
1056
|
-
}, A = () => {
|
|
1057
|
-
var h, C, S, r, g;
|
|
1058
|
-
return /* @__PURE__ */ t(
|
|
1059
|
-
e.PresentedBy,
|
|
1060
|
-
{
|
|
1061
|
-
brandingLogo: b || "",
|
|
1062
|
-
textColor: i.colorSchemes.dark.textColor,
|
|
1063
|
-
label: ((h = e.entity.labels) == null ? void 0 : h.sponsor) || null,
|
|
1064
|
-
primaryUrl: (S = (C = e.entity.branding) == null ? void 0 : C.urls) == null ? void 0 : S.primaryUrl,
|
|
1065
|
-
secondaryUrl: (g = (r = e.entity.branding) == null ? void 0 : r.urls) == null ? void 0 : g.secondaryUrl
|
|
1066
|
-
}
|
|
1067
|
-
);
|
|
1068
|
-
}, P = () => {
|
|
1069
|
-
var C, S, r, g, T, B, D, o, l, v, R;
|
|
1070
|
-
if (e.content) return e.content;
|
|
1071
|
-
const { CollectLeadWrapper: h } = e;
|
|
1072
|
-
return h ? /* @__PURE__ */ t(
|
|
1073
|
-
h,
|
|
1074
|
-
{
|
|
1075
|
-
sdk: e.sdk,
|
|
1076
|
-
contentId: e.entity.id,
|
|
1077
|
-
contentName: e.entity.title,
|
|
1078
|
-
brandingColors: (C = e.entity.branding) == null ? void 0 : C.colors,
|
|
1079
|
-
brandingUrls: (S = e.entity.branding) == null ? void 0 : S.urls,
|
|
1080
|
-
campaignId: (r = e.leads) == null ? void 0 : r.campaignId,
|
|
1081
|
-
campaignName: (g = e.leads) == null ? void 0 : g.campaignName,
|
|
1082
|
-
fields: (T = e.leads) == null ? void 0 : T.fields,
|
|
1083
|
-
leadTitle: (B = e.entity.labels) == null ? void 0 : B.leadTitle,
|
|
1084
|
-
leadDescription: (D = e.entity.labels) == null ? void 0 : D.leadDescription,
|
|
1085
|
-
leadCta: (o = e.entity.labels) == null ? void 0 : o.leadCta,
|
|
1086
|
-
leadSuccessTitle: (l = e.entity.labels) == null ? void 0 : l.leadSuccessTitle,
|
|
1087
|
-
leadSuccessDescription: (v = e.entity.labels) == null ? void 0 : v.leadSuccessDescription,
|
|
1088
|
-
syncWithProfile: (R = e.leads) == null ? void 0 : R.syncWithProfile,
|
|
1089
|
-
consents: e.consents,
|
|
1090
|
-
startGame: e.onLeadSubmitted,
|
|
1091
|
-
isAfterPosition: !0,
|
|
1092
|
-
isSubmittingParticipation: e.isSubmitting
|
|
1093
|
-
}
|
|
1094
|
-
) : null;
|
|
1095
|
-
}, I = () => /* @__PURE__ */ d(n, { sx: x.mainContentSection, children: [
|
|
1096
|
-
/* @__PURE__ */ t(n, { sx: x.contentContainerWithBackdrop, children: P() }),
|
|
1097
|
-
/* @__PURE__ */ d(
|
|
1098
|
-
n,
|
|
1099
|
-
{
|
|
1100
|
-
sx: {
|
|
1101
|
-
...x.presentedByContainer,
|
|
1102
|
-
// Without a sponsor logo the action is the row's only child, and
|
|
1103
|
-
// space-between would leave it at the start
|
|
1104
|
-
...e.footerAction && !b && !a ? { justifyContent: "flex-end" } : {}
|
|
1105
|
-
},
|
|
1106
|
-
children: [
|
|
1107
|
-
A(),
|
|
1108
|
-
e.footerAction
|
|
1109
|
-
]
|
|
1110
|
-
}
|
|
1111
|
-
)
|
|
1112
|
-
] });
|
|
1113
|
-
return /* @__PURE__ */ t(
|
|
1114
|
-
Se,
|
|
1115
|
-
{
|
|
1116
|
-
entity: e.entity,
|
|
1117
|
-
headline: e.headline,
|
|
1118
|
-
finalImage: m,
|
|
1119
|
-
rulesDisplay: e.rulesDisplay,
|
|
1120
|
-
children: I()
|
|
1121
|
-
}
|
|
1122
|
-
);
|
|
1123
|
-
}, _e = (e) => {
|
|
1124
|
-
const { sdk: i, consents: a, entityId: c, entityType: s, labels: y } = e, [b, m] = Y(null), [u, k] = Y(!!(a != null && a.length)), [x, A] = Y(
|
|
1125
|
-
() => de(a || [])
|
|
1126
|
-
), P = Z(a).map((r) => r.consentId).join("|"), I = p(() => Z(a), [P]);
|
|
1127
|
-
be(() => {
|
|
1128
|
-
if (!I.length) {
|
|
1129
|
-
k(!1);
|
|
1130
|
-
return;
|
|
1131
|
-
}
|
|
1132
|
-
let r = !1;
|
|
1133
|
-
return k(!0), ge(i).then((g) => {
|
|
1134
|
-
r || (m(g), k(!1));
|
|
1135
|
-
}), () => {
|
|
1136
|
-
r = !0;
|
|
1137
|
-
};
|
|
1138
|
-
}, [i, I]);
|
|
1139
|
-
const h = p(
|
|
1140
|
-
() => I.filter((r) => !(b != null && b.has(r.consentId))),
|
|
1141
|
-
[I, b]
|
|
1142
|
-
), C = ee(
|
|
1143
|
-
(r) => me(r, x),
|
|
1144
|
-
[x]
|
|
1145
|
-
), S = ee(
|
|
1146
|
-
async (r) => {
|
|
1147
|
-
const g = r.filter((T) => x[T.consentId]).map((T) => T.consentId);
|
|
1148
|
-
g.length && (await ye(i, r, g, { entityId: c, entityType: s }, y), m((T) => {
|
|
1149
|
-
const B = new Set(T ?? []);
|
|
1150
|
-
return g.forEach((D) => B.add(D)), B;
|
|
1151
|
-
}));
|
|
1152
|
-
},
|
|
1153
|
-
[i, x, c, s, y]
|
|
1154
|
-
);
|
|
1155
|
-
return { loading: u, pending: h, checked: x, setChecked: A, allRequiredChecked: C, submit: S };
|
|
1156
|
-
};
|
|
1157
|
-
export {
|
|
1158
|
-
Ae as A,
|
|
1159
|
-
Ge as C,
|
|
1160
|
-
Ye as O,
|
|
1161
|
-
ae as R,
|
|
1162
|
-
$e as S,
|
|
1163
|
-
Ne as a,
|
|
1164
|
-
Qe as b,
|
|
1165
|
-
Ke as c,
|
|
1166
|
-
Te as d,
|
|
1167
|
-
_e as u
|
|
1168
|
-
};
|