fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC5
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/chunks/{Alert-DuMXT9be.js → Alert-B6o66mYo.js} +39 -39
- package/chunks/{CardContent-COgjZl3_.js → CardContent-NCZhfGcZ.js} +16 -16
- package/chunks/{Snackbar-DJz-WddP.js → ChevronRight-1pLZ7T0v.js} +100 -94
- package/chunks/{ClassicQuizWrapper-C7svf4eh.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
- package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
- package/chunks/{CollectLeadWrapper-DACvBsa_.js → CollectLeadWrapper-CCtTZAxL.js} +55 -56
- package/chunks/EitherOrById-ClGwMK0b.js +6820 -0
- package/chunks/EitherOrPreviewWrapper-BYiKyYwi.js +46 -0
- package/chunks/Error-BurPfBJw-DWYn31sK.js +1119 -0
- package/chunks/{EventGameWrapper-DmjaKr3I.js → EventGameWrapper-BphusLTk.js} +208 -219
- package/chunks/{Grid-BbegUe2J.js → Grid-yjqNNhEx.js} +32 -32
- package/chunks/{IconButton-zh1RLwcE.js → IconButton-D7onwgY0.js} +22 -22
- package/chunks/{List-CA3L6bUS.js → List-8Vy9IZiv.js} +26 -29
- package/chunks/{MatchPredictionContainer-CmHKsJ_z.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
- package/chunks/{MatchQuizWrapper-BxHHl4a5.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
- package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CJnicIes.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
- package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-CZ7cct30.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
- package/chunks/{PersonalityQuizWrapper-B-Rkzvc0.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
- package/chunks/{PlayerOfTheMatch-CzGMT1jr.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
- package/chunks/{PollWrapper-Cdl3AbXE.js → PollWrapper-QpIKCCVF.js} +30 -34
- package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
- package/chunks/{PreviewQuizById-CPiwewW_.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
- package/chunks/Sheet-U5EnSrgg.js +282 -0
- package/chunks/{Stack-BBjT-MoB.js → Stack-DbDi7kPO.js} +30 -30
- package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
- package/chunks/{TeamNextMatchPrediction-BOOGeVEv.js → TeamNextMatchPrediction-9VSQOCcC.js} +2 -2
- package/chunks/Tutorial-CRJLOovs.js +1072 -0
- package/chunks/createLucideIcon-CMWOQsDL.js +381 -0
- package/chunks/{createSvgIcon-cOpRx8M1.js → createSvgIcon-D9D4a1R9.js} +412 -390
- package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
- package/chunks/{index-CNAE4RYY.js → index-0ADq_9jd.js} +1 -1
- package/chunks/{index-D9kNvflO.js → index-B74jHeYm.js} +2 -2
- package/chunks/{index-Dr-yGqo_.js → index-BfVvJg5R.js} +1 -1
- package/chunks/{index-D3wDyWq_.js → index-BycLbIYY.js} +1 -1
- package/chunks/{index-BKyd0MUt.js → index-C6KAc5B_.js} +1 -1
- package/chunks/{index-BkU2GDR4.js → index-CHV6tlpH.js} +5 -5
- package/chunks/{index-Uv42o9aR.js → index-CILd3yUc.js} +1 -1
- package/chunks/index-CJqcqbHq.js +5 -0
- package/chunks/{index-DrlzgjUf.js → index-CK2RXrJm.js} +1 -1
- package/chunks/{index-DFXrZaoM.js → index-CPTAlr_t.js} +1 -1
- package/chunks/{index-D1SEUyHT.js → index-CiB_Gqim.js} +1 -1
- package/chunks/{index-CNukXTLi.js → index-CvGJXa6l.js} +1 -1
- package/chunks/{index-CpFMxpj1.js → index-CviTG4Nv.js} +1 -1
- package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
- package/chunks/{index-DbZ10tsY.js → index-Da0AXb_O.js} +1 -1
- package/chunks/{index-CiI_vSMR.js → index-DwR4J2nN.js} +1 -1
- package/chunks/{index-CMhbRdLz.js → index-UwW9niUj.js} +1 -1
- package/chunks/index.es-wHqA4PHm.js +11480 -0
- package/chunks/{init-DYY4CJtu.js → init-C-gCorsh.js} +1 -1
- package/chunks/{main-NO9IQFuY.js → main-Bh6iw92_.js} +94 -110
- package/chunks/{Button-DJj0KOh3.js → resolveProps-Bgg0H6c2.js} +471 -313
- package/chunks/{users-C-6eqEb6.js → users-CXdzg3DM.js} +1 -1
- package/fu-widgets.es.js +2 -2
- package/fu-widgets.iife.js +310 -257
- package/manifest.json +56 -72
- package/package.json +1 -1
- package/chunks/AspectRatio-CKWgGwn-.js +0 -125
- package/chunks/Avatar-Cv70g9HX.js +0 -186
- package/chunks/Card-BDn3dk3E.js +0 -129
- package/chunks/ChevronRight-BwGivLSL.js +0 -11
- package/chunks/Chip-BkY7Uww3.js +0 -281
- package/chunks/CollectLeadForm-DtmR2Vuf-DvAoHDnn.js +0 -1560
- package/chunks/DialogActions-CuXgjeCi.js +0 -45
- package/chunks/DialogContent-CyQJ8yz-.js +0 -60
- package/chunks/EitherOrById-B8v0nJmv.js +0 -1496
- package/chunks/EitherOrPreviewWrapper-C9O6TEVe.js +0 -47
- package/chunks/Error-DhQL89pn-DD0O1kEt.js +0 -418
- package/chunks/Link-Cw8ci6QQ.js +0 -228
- package/chunks/ListItemDecorator-DwvO_ty1.js +0 -1882
- package/chunks/ModalDialog-DLPhSR9-.js +0 -619
- package/chunks/NotFoundSkeleton-BYJTzYJR-JURKfNZv.js +0 -2764
- package/chunks/Portal-BWqqFvVm-pvatNKfM.js +0 -12717
- package/chunks/Portal-BsATdUrC.js +0 -41
- package/chunks/Select-Cewujqtd.js +0 -3418
- package/chunks/Sheet-B8wNvQTa.js +0 -167
- package/chunks/Tabs-BP1RMTCA.js +0 -784
- package/chunks/Tutorial-B1LWDD9l.js +0 -427
- package/chunks/createLucideIcon-nPUeaUEe.js +0 -79
- package/chunks/createSvgIcon-DhITitgm.js +0 -119
- package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
- package/chunks/getReactElementRef-66jU_By9.js +0 -25
- package/chunks/index-BPH9IX2Q.js +0 -5
- package/chunks/index.es-BZbN3xaq.js +0 -6162
- package/chunks/resolveProps-BfYZubfk.js +0 -37
- package/chunks/variantColorInheritance-DVZ9CGcB.js +0 -28
|
@@ -1,2764 +0,0 @@
|
|
|
1
|
-
import { F as yo, G as bo, r as F, v as Co, _ as So, a0 as jo, Z as Se, w as G, E as vo, x as _e, y as Ye, j as o, z as ce, D as To, B as t, C as ko } from "./main-NO9IQFuY.js";
|
|
2
|
-
import { e as T, K as _, J as A, Y as q, o as Y, y as ke, C as L, Z as U, t as Io, r as J, h as ie, j as z, s as Ie, u as wo, d as Je, g as we, n as Re, m as Ze, a as Xe, G as Ro, $ as Mo } from "./Portal-BWqqFvVm-pvatNKfM.js";
|
|
3
|
-
import { d as de, e as Fo, a as zo, T as a, B as X } from "./Button-DJj0KOh3.js";
|
|
4
|
-
import { A as Te } from "./AspectRatio-CKWgGwn-.js";
|
|
5
|
-
import { b as Po, P as Do } from "./Select-Cewujqtd.js";
|
|
6
|
-
import { u as Ne, g as Ao } from "./getReactElementRef-66jU_By9.js";
|
|
7
|
-
import { I as pe } from "./IconButton-zh1RLwcE.js";
|
|
8
|
-
import { M as Wo, a as Bo } from "./ModalDialog-DLPhSR9-.js";
|
|
9
|
-
import { D as Ho } from "./DialogContent-CyQJ8yz-.js";
|
|
10
|
-
function Lo(e) {
|
|
11
|
-
return yo("MuiTooltip", e);
|
|
12
|
-
}
|
|
13
|
-
bo("MuiTooltip", ["root", "tooltipArrow", "arrow", "touch", "placementLeft", "placementRight", "placementTop", "placementBottom", "colorPrimary", "colorDanger", "colorNeutral", "colorSuccess", "colorWarning", "colorContext", "sizeSm", "sizeMd", "sizeLg", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]);
|
|
14
|
-
const Eo = ["children", "className", "component", "arrow", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "disablePortal", "direction", "keepMounted", "modifiers", "placement", "title", "color", "variant", "size", "slots", "slotProps"], $o = (e) => {
|
|
15
|
-
const {
|
|
16
|
-
arrow: i,
|
|
17
|
-
variant: n,
|
|
18
|
-
color: l,
|
|
19
|
-
size: s,
|
|
20
|
-
placement: r,
|
|
21
|
-
touch: m
|
|
22
|
-
} = e, c = {
|
|
23
|
-
root: ["root", i && "tooltipArrow", m && "touch", s && `size${ce(s)}`, l && `color${ce(l)}`, n && `variant${ce(n)}`, `tooltipPlacement${ce(r.split("-")[0])}`],
|
|
24
|
-
arrow: ["arrow"]
|
|
25
|
-
};
|
|
26
|
-
return To(c, Lo, {});
|
|
27
|
-
}, Vo = Ye("div", {
|
|
28
|
-
name: "JoyTooltip",
|
|
29
|
-
slot: "Root",
|
|
30
|
-
overridesResolver: (e, i) => i.root
|
|
31
|
-
})(({
|
|
32
|
-
ownerState: e,
|
|
33
|
-
theme: i
|
|
34
|
-
}) => {
|
|
35
|
-
var n, l, s;
|
|
36
|
-
const r = (n = i.variants[e.variant]) == null ? void 0 : n[e.color];
|
|
37
|
-
return G({}, e.size === "sm" && {
|
|
38
|
-
"--Icon-fontSize": i.vars.fontSize.md,
|
|
39
|
-
"--Tooltip-arrowSize": "8px",
|
|
40
|
-
padding: i.spacing(0.25, 0.625)
|
|
41
|
-
}, e.size === "md" && {
|
|
42
|
-
"--Icon-fontSize": i.vars.fontSize.lg,
|
|
43
|
-
"--Tooltip-arrowSize": "10px",
|
|
44
|
-
padding: i.spacing(0.5, 0.75)
|
|
45
|
-
}, e.size === "lg" && {
|
|
46
|
-
"--Icon-fontSize": i.vars.fontSize.xl,
|
|
47
|
-
"--Tooltip-arrowSize": "12px",
|
|
48
|
-
padding: i.spacing(0.75, 1)
|
|
49
|
-
}, {
|
|
50
|
-
zIndex: i.vars.zIndex.tooltip,
|
|
51
|
-
borderRadius: i.vars.radius.sm,
|
|
52
|
-
boxShadow: i.shadow.sm,
|
|
53
|
-
wordWrap: "break-word",
|
|
54
|
-
position: "relative"
|
|
55
|
-
}, e.disableInteractive && {
|
|
56
|
-
pointerEvents: "none"
|
|
57
|
-
}, i.typography[`body-${{
|
|
58
|
-
sm: "xs",
|
|
59
|
-
md: "sm",
|
|
60
|
-
lg: "md"
|
|
61
|
-
}[e.size]}`], r, !r.backgroundColor && {
|
|
62
|
-
backgroundColor: i.vars.palette.background.surface
|
|
63
|
-
}, {
|
|
64
|
-
"&::before": {
|
|
65
|
-
// acts as a invisible connector between the element and the tooltip
|
|
66
|
-
// so that the cursor can move to the tooltip without losing focus.
|
|
67
|
-
content: '""',
|
|
68
|
-
display: "block",
|
|
69
|
-
position: "absolute",
|
|
70
|
-
width: (l = e.placement) != null && l.match(/(top|bottom)/) ? "100%" : (
|
|
71
|
-
// 10px equals the default offset popper config
|
|
72
|
-
"calc(10px + var(--variant-borderWidth, 0px))"
|
|
73
|
-
),
|
|
74
|
-
height: (s = e.placement) != null && s.match(/(top|bottom)/) ? "calc(10px + var(--variant-borderWidth, 0px))" : "100%"
|
|
75
|
-
},
|
|
76
|
-
'&[data-popper-placement*="bottom"]::before': {
|
|
77
|
-
top: 0,
|
|
78
|
-
left: 0,
|
|
79
|
-
transform: "translateY(-100%)"
|
|
80
|
-
},
|
|
81
|
-
'&[data-popper-placement*="left"]::before': {
|
|
82
|
-
top: 0,
|
|
83
|
-
right: 0,
|
|
84
|
-
transform: "translateX(100%)"
|
|
85
|
-
},
|
|
86
|
-
'&[data-popper-placement*="right"]::before': {
|
|
87
|
-
top: 0,
|
|
88
|
-
left: 0,
|
|
89
|
-
transform: "translateX(-100%)"
|
|
90
|
-
},
|
|
91
|
-
'&[data-popper-placement*="top"]::before': {
|
|
92
|
-
bottom: 0,
|
|
93
|
-
left: 0,
|
|
94
|
-
transform: "translateY(100%)"
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}), Oo = Ye("span", {
|
|
98
|
-
name: "JoyTooltip",
|
|
99
|
-
slot: "Arrow",
|
|
100
|
-
overridesResolver: (e, i) => i.arrow
|
|
101
|
-
})(({
|
|
102
|
-
theme: e,
|
|
103
|
-
ownerState: i
|
|
104
|
-
}) => {
|
|
105
|
-
var n, l, s;
|
|
106
|
-
const r = (n = e.variants[i.variant]) == null ? void 0 : n[i.color];
|
|
107
|
-
return {
|
|
108
|
-
"--unstable_Tooltip-arrowRotation": 0,
|
|
109
|
-
width: "var(--Tooltip-arrowSize)",
|
|
110
|
-
height: "var(--Tooltip-arrowSize)",
|
|
111
|
-
boxSizing: "border-box",
|
|
112
|
-
// use pseudo element because Popper controls the `transform` property of the arrow.
|
|
113
|
-
"&::before": {
|
|
114
|
-
content: '""',
|
|
115
|
-
display: "block",
|
|
116
|
-
position: "absolute",
|
|
117
|
-
width: 0,
|
|
118
|
-
height: 0,
|
|
119
|
-
border: "calc(var(--Tooltip-arrowSize) / 2) solid",
|
|
120
|
-
borderLeftColor: "transparent",
|
|
121
|
-
borderBottomColor: "transparent",
|
|
122
|
-
borderTopColor: (l = r == null ? void 0 : r.backgroundColor) != null ? l : e.vars.palette.background.surface,
|
|
123
|
-
borderRightColor: (s = r == null ? void 0 : r.backgroundColor) != null ? s : e.vars.palette.background.surface,
|
|
124
|
-
borderRadius: "0px 2px 0px 0px",
|
|
125
|
-
boxShadow: `var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${r.borderColor}`,
|
|
126
|
-
transformOrigin: "center center",
|
|
127
|
-
transform: "rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"
|
|
128
|
-
},
|
|
129
|
-
'[data-popper-placement*="bottom"] &': {
|
|
130
|
-
top: "calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"
|
|
131
|
-
// 0.5px is for perfect overlap with the Tooltip
|
|
132
|
-
},
|
|
133
|
-
'[data-popper-placement*="top"] &': {
|
|
134
|
-
"--unstable_Tooltip-arrowRotation": 2,
|
|
135
|
-
bottom: "calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"
|
|
136
|
-
},
|
|
137
|
-
'[data-popper-placement*="left"] &': {
|
|
138
|
-
"--unstable_Tooltip-arrowRotation": 1,
|
|
139
|
-
right: "calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"
|
|
140
|
-
},
|
|
141
|
-
'[data-popper-placement*="right"] &': {
|
|
142
|
-
"--unstable_Tooltip-arrowRotation": 3,
|
|
143
|
-
left: "calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
let xe = !1;
|
|
148
|
-
const Ue = new Fo();
|
|
149
|
-
let te = {
|
|
150
|
-
x: 0,
|
|
151
|
-
y: 0
|
|
152
|
-
};
|
|
153
|
-
function Ge(e, i) {
|
|
154
|
-
return (n) => {
|
|
155
|
-
i && i(n), e(n);
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function qe(e, i) {
|
|
159
|
-
return (n, ...l) => {
|
|
160
|
-
i && i(n, ...l), e(n, ...l);
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
const je = /* @__PURE__ */ F.forwardRef(function(i, n) {
|
|
164
|
-
var l;
|
|
165
|
-
const s = Co({
|
|
166
|
-
props: i,
|
|
167
|
-
name: "JoyTooltip"
|
|
168
|
-
}), {
|
|
169
|
-
children: r,
|
|
170
|
-
className: m,
|
|
171
|
-
component: c,
|
|
172
|
-
arrow: p = !1,
|
|
173
|
-
describeChild: k = !1,
|
|
174
|
-
disableFocusListener: C = !1,
|
|
175
|
-
disableHoverListener: S = !1,
|
|
176
|
-
disableInteractive: y = !1,
|
|
177
|
-
disableTouchListener: h = !1,
|
|
178
|
-
enterDelay: R = 100,
|
|
179
|
-
enterNextDelay: w = 0,
|
|
180
|
-
enterTouchDelay: M = 700,
|
|
181
|
-
followCursor: v = !1,
|
|
182
|
-
id: x,
|
|
183
|
-
leaveDelay: I = 0,
|
|
184
|
-
leaveTouchDelay: f = 1500,
|
|
185
|
-
onClose: D,
|
|
186
|
-
onOpen: b,
|
|
187
|
-
open: d,
|
|
188
|
-
disablePortal: g,
|
|
189
|
-
direction: N,
|
|
190
|
-
keepMounted: j,
|
|
191
|
-
modifiers: W,
|
|
192
|
-
placement: Z = "bottom",
|
|
193
|
-
title: H,
|
|
194
|
-
color: E = "neutral",
|
|
195
|
-
variant: $ = "solid",
|
|
196
|
-
size: Ke = "md",
|
|
197
|
-
slots: Qe = {},
|
|
198
|
-
slotProps: eo = {}
|
|
199
|
-
} = s, Fe = So(s, Eo), [K, ze] = F.useState(), [ge, oo] = F.useState(null), ne = F.useRef(!1), me = y || v, Pe = de(), ue = de(), re = de(), De = de(), [to, Ae] = Po({
|
|
200
|
-
controlled: d,
|
|
201
|
-
default: !1,
|
|
202
|
-
name: "Tooltip",
|
|
203
|
-
state: "open"
|
|
204
|
-
});
|
|
205
|
-
let V = to;
|
|
206
|
-
const fe = jo(x), Q = F.useRef(void 0), le = Ne(() => {
|
|
207
|
-
Q.current !== void 0 && (document.body.style.WebkitUserSelect = Q.current, Q.current = void 0), De.clear();
|
|
208
|
-
});
|
|
209
|
-
F.useEffect(() => le, [le]);
|
|
210
|
-
const We = (u) => {
|
|
211
|
-
Ue.clear(), xe = !0, Ae(!0), b && !V && b(u);
|
|
212
|
-
}, ae = Ne((u) => {
|
|
213
|
-
Ue.start(800 + I, () => {
|
|
214
|
-
xe = !1;
|
|
215
|
-
}), Ae(!1), D && V && D(u), Pe.start(150, () => {
|
|
216
|
-
ne.current = !1;
|
|
217
|
-
});
|
|
218
|
-
}), se = (u) => {
|
|
219
|
-
ne.current && u.type !== "touchstart" || (K && K.removeAttribute("title"), ue.clear(), re.clear(), R || xe && w ? ue.start(xe ? w : R, () => {
|
|
220
|
-
We(u);
|
|
221
|
-
}) : We(u));
|
|
222
|
-
}, he = (u) => {
|
|
223
|
-
ue.clear(), re.start(I, () => {
|
|
224
|
-
ae(u);
|
|
225
|
-
});
|
|
226
|
-
}, {
|
|
227
|
-
isFocusVisibleRef: Be,
|
|
228
|
-
onBlur: io,
|
|
229
|
-
onFocus: no,
|
|
230
|
-
ref: ro
|
|
231
|
-
} = zo(), [, He] = F.useState(!1), Le = (u) => {
|
|
232
|
-
io(u), Be.current === !1 && (He(!1), he(u));
|
|
233
|
-
}, Ee = (u) => {
|
|
234
|
-
K || ze(u.currentTarget), no(u), Be.current === !0 && (He(!0), se(u));
|
|
235
|
-
}, $e = (u) => {
|
|
236
|
-
ne.current = !0;
|
|
237
|
-
const O = r.props;
|
|
238
|
-
O.onTouchStart && O.onTouchStart(u);
|
|
239
|
-
}, lo = (u) => {
|
|
240
|
-
$e(u), re.clear(), Pe.clear(), le(), Q.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", De.start(M, () => {
|
|
241
|
-
document.body.style.WebkitUserSelect = Q.current, se(u);
|
|
242
|
-
});
|
|
243
|
-
}, ao = (u) => {
|
|
244
|
-
r.props.onTouchEnd && r.props.onTouchEnd(u), le(), re.start(f, () => {
|
|
245
|
-
ae(u);
|
|
246
|
-
});
|
|
247
|
-
};
|
|
248
|
-
F.useEffect(() => {
|
|
249
|
-
if (!V)
|
|
250
|
-
return;
|
|
251
|
-
function u(O) {
|
|
252
|
-
(O.key === "Escape" || O.key === "Esc") && ae(O);
|
|
253
|
-
}
|
|
254
|
-
return document.addEventListener("keydown", u), () => {
|
|
255
|
-
document.removeEventListener("keydown", u);
|
|
256
|
-
};
|
|
257
|
-
}, [ae, V]);
|
|
258
|
-
const so = Se(ze, n), co = Se(ro, so), po = Se(Ao(r), co);
|
|
259
|
-
typeof H != "number" && !H && (V = !1);
|
|
260
|
-
const ye = F.useRef(null), xo = (u) => {
|
|
261
|
-
const O = r.props;
|
|
262
|
-
O.onMouseMove && O.onMouseMove(u), te = {
|
|
263
|
-
x: u.clientX,
|
|
264
|
-
y: u.clientY
|
|
265
|
-
}, ye.current && ye.current.update();
|
|
266
|
-
}, ee = {}, be = typeof H == "string";
|
|
267
|
-
k ? (ee.title = !V && be && !S ? H : null, ee["aria-describedby"] = V ? fe : null) : (ee["aria-label"] = be ? H : null, ee["aria-labelledby"] = V && !be ? fe : null);
|
|
268
|
-
const B = G({}, ee, Fe, {
|
|
269
|
-
component: c
|
|
270
|
-
}, r.props, {
|
|
271
|
-
className: vo(m, r.props.className),
|
|
272
|
-
onTouchStart: $e,
|
|
273
|
-
ref: po
|
|
274
|
-
}, v ? {
|
|
275
|
-
onMouseMove: xo
|
|
276
|
-
} : {}), oe = {};
|
|
277
|
-
h || (B.onTouchStart = lo, B.onTouchEnd = ao), S || (B.onMouseOver = Ge(se, B.onMouseOver), B.onMouseLeave = Ge(he, B.onMouseLeave), me || (oe.onMouseOver = se, oe.onMouseLeave = he)), C || (B.onFocus = qe(Ee, B.onFocus), B.onBlur = qe(Le, B.onBlur), me || (oe.onFocus = Ee, oe.onBlur = Le));
|
|
278
|
-
const Ce = G({}, s, {
|
|
279
|
-
arrow: p,
|
|
280
|
-
disableInteractive: me,
|
|
281
|
-
placement: Z,
|
|
282
|
-
touch: ne.current,
|
|
283
|
-
color: E,
|
|
284
|
-
variant: $,
|
|
285
|
-
size: Ke
|
|
286
|
-
}), Ve = $o(Ce), Oe = G({}, Fe, {
|
|
287
|
-
component: c,
|
|
288
|
-
slots: Qe,
|
|
289
|
-
slotProps: eo
|
|
290
|
-
}), go = F.useMemo(() => [{
|
|
291
|
-
name: "arrow",
|
|
292
|
-
enabled: !!ge,
|
|
293
|
-
options: {
|
|
294
|
-
element: ge,
|
|
295
|
-
// https://popper.js.org/docs/v2/modifiers/arrow/#padding
|
|
296
|
-
// make the arrow looks nice with the Tooltip's border radius
|
|
297
|
-
padding: 6
|
|
298
|
-
}
|
|
299
|
-
}, {
|
|
300
|
-
name: "offset",
|
|
301
|
-
options: {
|
|
302
|
-
offset: [0, 10]
|
|
303
|
-
}
|
|
304
|
-
}, ...W || []], [ge, W]), [mo, uo] = _e("root", {
|
|
305
|
-
additionalProps: G({
|
|
306
|
-
id: fe,
|
|
307
|
-
popperRef: ye,
|
|
308
|
-
placement: Z,
|
|
309
|
-
anchorEl: v ? {
|
|
310
|
-
getBoundingClientRect: () => ({
|
|
311
|
-
top: te.y,
|
|
312
|
-
left: te.x,
|
|
313
|
-
right: te.x,
|
|
314
|
-
bottom: te.y,
|
|
315
|
-
width: 0,
|
|
316
|
-
height: 0
|
|
317
|
-
})
|
|
318
|
-
} : K,
|
|
319
|
-
open: K ? V : !1,
|
|
320
|
-
disablePortal: g,
|
|
321
|
-
keepMounted: j,
|
|
322
|
-
direction: N,
|
|
323
|
-
modifiers: go
|
|
324
|
-
}, oe),
|
|
325
|
-
ref: null,
|
|
326
|
-
className: Ve.root,
|
|
327
|
-
elementType: Vo,
|
|
328
|
-
externalForwardedProps: Oe,
|
|
329
|
-
ownerState: Ce
|
|
330
|
-
}), [fo, ho] = _e("arrow", {
|
|
331
|
-
ref: oo,
|
|
332
|
-
className: Ve.arrow,
|
|
333
|
-
elementType: Oo,
|
|
334
|
-
externalForwardedProps: Oe,
|
|
335
|
-
ownerState: Ce
|
|
336
|
-
});
|
|
337
|
-
return /* @__PURE__ */ o.jsxs(F.Fragment, {
|
|
338
|
-
children: [/* @__PURE__ */ F.isValidElement(r) && /* @__PURE__ */ F.cloneElement(r, B), /* @__PURE__ */ o.jsxs(mo, G({}, uo, !((l = s.slots) != null && l.root) && {
|
|
339
|
-
as: Do,
|
|
340
|
-
slots: {
|
|
341
|
-
root: c || "div"
|
|
342
|
-
}
|
|
343
|
-
}, {
|
|
344
|
-
children: [H, p ? /* @__PURE__ */ o.jsx(fo, G({}, ho)) : null]
|
|
345
|
-
}))]
|
|
346
|
-
});
|
|
347
|
-
}), lt = ({ my: e }) => /* @__PURE__ */ o.jsx(
|
|
348
|
-
t,
|
|
349
|
-
{
|
|
350
|
-
sx: {
|
|
351
|
-
display: "flex",
|
|
352
|
-
justifyContent: "center",
|
|
353
|
-
alignItems: "center",
|
|
354
|
-
width: "100%",
|
|
355
|
-
height: "100%",
|
|
356
|
-
my: e
|
|
357
|
-
},
|
|
358
|
-
children: /* @__PURE__ */ o.jsx(
|
|
359
|
-
ko,
|
|
360
|
-
{
|
|
361
|
-
slotProps: {
|
|
362
|
-
track: {
|
|
363
|
-
sx: {
|
|
364
|
-
stroke: T().palette.neutral.softBg
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
progress: {
|
|
368
|
-
sx: {
|
|
369
|
-
stroke: T().palette.neutral.solidBg
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
)
|
|
375
|
-
}
|
|
376
|
-
), at = ({
|
|
377
|
-
additionalCTA: e,
|
|
378
|
-
buttonStyle: i,
|
|
379
|
-
buttonContentStyle: n,
|
|
380
|
-
textStyle: l
|
|
381
|
-
}) => {
|
|
382
|
-
const { t: s } = ie();
|
|
383
|
-
return e ? e.component ? e.component : e.onClick ? /* @__PURE__ */ o.jsx(X, { sx: i, onClick: e.onClick, children: e.defaultLabel && /* @__PURE__ */ o.jsx(t, { sx: n, children: /* @__PURE__ */ o.jsx(a, { sx: l, children: e.defaultLabel }) }) }) : e.url ? /* @__PURE__ */ o.jsx(
|
|
384
|
-
X,
|
|
385
|
-
{
|
|
386
|
-
component: "a",
|
|
387
|
-
href: e.url,
|
|
388
|
-
target: e.target || "_self",
|
|
389
|
-
sx: i,
|
|
390
|
-
children: /* @__PURE__ */ o.jsx(a, { sx: l, children: e.defaultLabel || s("common.additional") })
|
|
391
|
-
}
|
|
392
|
-
) : null : null;
|
|
393
|
-
}, ve = we(/* @__PURE__ */ o.jsx("path", {
|
|
394
|
-
d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
|
|
395
|
-
}), "InfoOutlined"), _o = we(/* @__PURE__ */ o.jsx("path", {
|
|
396
|
-
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
397
|
-
}), "Close"), P = ({
|
|
398
|
-
rules: e,
|
|
399
|
-
rulesDisplay: i,
|
|
400
|
-
isOverlayVariant: n = !1
|
|
401
|
-
}) => {
|
|
402
|
-
const { t: l } = ie(), { shadowRootElement: s } = Ro(Mo), r = T(), m = U(), c = A(), p = _(), k = Y(), [C, S] = F.useState(!1);
|
|
403
|
-
if (!e)
|
|
404
|
-
return null;
|
|
405
|
-
if (i != null && i.component)
|
|
406
|
-
return i.component;
|
|
407
|
-
if (((i == null ? void 0 : i.type) || "modal") === "link" && i != null && i.url) {
|
|
408
|
-
const y = i.target || "_blank", h = {
|
|
409
|
-
backgroundColor: "transparent",
|
|
410
|
-
color: n ? r.palette.neutral.plainColor : r.textSecondary,
|
|
411
|
-
border: "none",
|
|
412
|
-
borderRadius: "50%",
|
|
413
|
-
width: "2em",
|
|
414
|
-
height: "2em",
|
|
415
|
-
minHeight: "2em",
|
|
416
|
-
minWidth: "2em",
|
|
417
|
-
padding: 0,
|
|
418
|
-
display: "flex",
|
|
419
|
-
alignItems: "center",
|
|
420
|
-
justifyContent: "center",
|
|
421
|
-
cursor: "pointer",
|
|
422
|
-
transition: "all 0.2s ease-in-out",
|
|
423
|
-
"&: hover": {
|
|
424
|
-
backgroundColor: "transparent",
|
|
425
|
-
transform: "scale(1.05)"
|
|
426
|
-
},
|
|
427
|
-
"&:focus-visible": {
|
|
428
|
-
outline: "none"
|
|
429
|
-
},
|
|
430
|
-
"& svg": {
|
|
431
|
-
fontSize: "1.25em"
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
return typeof window > "u" ? /* @__PURE__ */ o.jsx(
|
|
435
|
-
je,
|
|
436
|
-
{
|
|
437
|
-
title: l("common.rules.info"),
|
|
438
|
-
placement: "right",
|
|
439
|
-
variant: "soft",
|
|
440
|
-
disablePortal: !0,
|
|
441
|
-
children: /* @__PURE__ */ o.jsx(
|
|
442
|
-
pe,
|
|
443
|
-
{
|
|
444
|
-
component: "a",
|
|
445
|
-
href: i.url,
|
|
446
|
-
target: y,
|
|
447
|
-
rel: "noopener noreferrer",
|
|
448
|
-
sx: h,
|
|
449
|
-
"aria-label": l("common.rules.info"),
|
|
450
|
-
children: /* @__PURE__ */ o.jsx(ve, {})
|
|
451
|
-
}
|
|
452
|
-
)
|
|
453
|
-
}
|
|
454
|
-
) : /* @__PURE__ */ o.jsx(
|
|
455
|
-
je,
|
|
456
|
-
{
|
|
457
|
-
title: l("common.rules.info"),
|
|
458
|
-
placement: "right",
|
|
459
|
-
variant: "soft",
|
|
460
|
-
disablePortal: !0,
|
|
461
|
-
children: /* @__PURE__ */ o.jsx(
|
|
462
|
-
pe,
|
|
463
|
-
{
|
|
464
|
-
onClick: (R) => {
|
|
465
|
-
R.stopPropagation(), window.open(i.url, y, "noopener,noreferrer");
|
|
466
|
-
},
|
|
467
|
-
sx: h,
|
|
468
|
-
"aria-label": l("common.rules.info"),
|
|
469
|
-
children: /* @__PURE__ */ o.jsx(ve, {})
|
|
470
|
-
}
|
|
471
|
-
)
|
|
472
|
-
}
|
|
473
|
-
);
|
|
474
|
-
}
|
|
475
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
476
|
-
/* @__PURE__ */ o.jsx(
|
|
477
|
-
je,
|
|
478
|
-
{
|
|
479
|
-
title: l("common.rules.info"),
|
|
480
|
-
placement: "right",
|
|
481
|
-
variant: "soft",
|
|
482
|
-
disablePortal: !0,
|
|
483
|
-
children: /* @__PURE__ */ o.jsx(
|
|
484
|
-
pe,
|
|
485
|
-
{
|
|
486
|
-
onClick: (y) => {
|
|
487
|
-
y.stopPropagation(), S(!0);
|
|
488
|
-
},
|
|
489
|
-
sx: {
|
|
490
|
-
backgroundColor: "transparent",
|
|
491
|
-
color: r.palette.neutral[500],
|
|
492
|
-
border: "none",
|
|
493
|
-
borderRadius: "50%",
|
|
494
|
-
width: "2em",
|
|
495
|
-
height: "2em",
|
|
496
|
-
minHeight: "2em",
|
|
497
|
-
minWidth: "2em",
|
|
498
|
-
padding: 0,
|
|
499
|
-
display: "flex",
|
|
500
|
-
alignItems: "center",
|
|
501
|
-
justifyContent: "center",
|
|
502
|
-
cursor: "pointer",
|
|
503
|
-
transition: "all 0.2s ease-in-out",
|
|
504
|
-
"&:hover": {
|
|
505
|
-
backgroundColor: "transparent",
|
|
506
|
-
color: r.palette.neutral[500],
|
|
507
|
-
transform: "scale(1.05)"
|
|
508
|
-
},
|
|
509
|
-
"&:focus-visible": {
|
|
510
|
-
outline: "none"
|
|
511
|
-
},
|
|
512
|
-
"& svg": {
|
|
513
|
-
fontSize: "1.25em"
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
"aria-label": l("common.rules.info"),
|
|
517
|
-
children: /* @__PURE__ */ o.jsx(ve, {})
|
|
518
|
-
}
|
|
519
|
-
)
|
|
520
|
-
}
|
|
521
|
-
),
|
|
522
|
-
/* @__PURE__ */ o.jsx(
|
|
523
|
-
Wo,
|
|
524
|
-
{
|
|
525
|
-
open: C,
|
|
526
|
-
onClose: () => S(!1),
|
|
527
|
-
container: s,
|
|
528
|
-
sx: { zIndex: 1300 },
|
|
529
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
530
|
-
Bo,
|
|
531
|
-
{
|
|
532
|
-
sx: {
|
|
533
|
-
width: "100%",
|
|
534
|
-
maxWidth: k ? "90vw" : "600px",
|
|
535
|
-
maxHeight: k ? "90vh" : "80vh",
|
|
536
|
-
p: k ? 2 : 3,
|
|
537
|
-
borderRadius: m.md,
|
|
538
|
-
backgroundColor: r.surface
|
|
539
|
-
},
|
|
540
|
-
children: [
|
|
541
|
-
/* @__PURE__ */ o.jsx(
|
|
542
|
-
pe,
|
|
543
|
-
{
|
|
544
|
-
onClick: (y) => {
|
|
545
|
-
y.stopPropagation(), S(!1);
|
|
546
|
-
},
|
|
547
|
-
sx: {
|
|
548
|
-
position: "absolute",
|
|
549
|
-
top: p.sm,
|
|
550
|
-
right: p.sm,
|
|
551
|
-
backgroundColor: "transparent",
|
|
552
|
-
color: r.textSecondary,
|
|
553
|
-
border: "none",
|
|
554
|
-
borderRadius: "50%",
|
|
555
|
-
width: "2em",
|
|
556
|
-
height: "2em",
|
|
557
|
-
minHeight: "2em",
|
|
558
|
-
minWidth: "2em",
|
|
559
|
-
padding: 0,
|
|
560
|
-
display: "flex",
|
|
561
|
-
alignItems: "center",
|
|
562
|
-
justifyContent: "center",
|
|
563
|
-
cursor: "pointer",
|
|
564
|
-
transition: "all 0.2s ease-in-out",
|
|
565
|
-
zIndex: 1e3,
|
|
566
|
-
"&:hover": {
|
|
567
|
-
backgroundColor: `${r.textSecondary}15`,
|
|
568
|
-
color: r.textPrimary,
|
|
569
|
-
transform: "scale(1.05)"
|
|
570
|
-
},
|
|
571
|
-
"&:focus-visible": {
|
|
572
|
-
outline: "none"
|
|
573
|
-
},
|
|
574
|
-
"& svg": {
|
|
575
|
-
fontSize: "1.25em"
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
children: /* @__PURE__ */ o.jsx(_o, {})
|
|
579
|
-
}
|
|
580
|
-
),
|
|
581
|
-
/* @__PURE__ */ o.jsxs(
|
|
582
|
-
Ho,
|
|
583
|
-
{
|
|
584
|
-
sx: {
|
|
585
|
-
display: "flex",
|
|
586
|
-
flexDirection: "column",
|
|
587
|
-
gap: p.md
|
|
588
|
-
},
|
|
589
|
-
children: [
|
|
590
|
-
/* @__PURE__ */ o.jsx(
|
|
591
|
-
a,
|
|
592
|
-
{
|
|
593
|
-
sx: {
|
|
594
|
-
fontFamily: c.primary,
|
|
595
|
-
fontWeight: 600,
|
|
596
|
-
fontSize: "1.25em",
|
|
597
|
-
lineHeight: 1.2,
|
|
598
|
-
color: r.textPrimary,
|
|
599
|
-
textAlign: "center",
|
|
600
|
-
marginBottom: p.sm
|
|
601
|
-
},
|
|
602
|
-
children: l("common.rules.title")
|
|
603
|
-
}
|
|
604
|
-
),
|
|
605
|
-
/* @__PURE__ */ o.jsx(
|
|
606
|
-
t,
|
|
607
|
-
{
|
|
608
|
-
sx: {
|
|
609
|
-
fontFamily: c.secondary,
|
|
610
|
-
fontSize: "1em",
|
|
611
|
-
lineHeight: 1.5,
|
|
612
|
-
color: r.textSecondary,
|
|
613
|
-
overflow: "auto",
|
|
614
|
-
// Custom scrollbar styling for dark theme
|
|
615
|
-
"&::-webkit-scrollbar": {
|
|
616
|
-
width: "8px"
|
|
617
|
-
},
|
|
618
|
-
"&::-webkit-scrollbar-track": {
|
|
619
|
-
backgroundColor: "transparent"
|
|
620
|
-
},
|
|
621
|
-
"&::-webkit-scrollbar-thumb": {
|
|
622
|
-
backgroundColor: r.secondaryContainer,
|
|
623
|
-
borderRadius: "4px",
|
|
624
|
-
"&:hover": {
|
|
625
|
-
backgroundColor: r.textSecondary
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
// Firefox scrollbar styling
|
|
629
|
-
scrollbarWidth: "thin",
|
|
630
|
-
scrollbarColor: `${r.secondaryContainer} transparent`,
|
|
631
|
-
"& p": {
|
|
632
|
-
marginBottom: p.sm
|
|
633
|
-
},
|
|
634
|
-
"& ul, & ol": {
|
|
635
|
-
marginLeft: p.md,
|
|
636
|
-
marginBottom: p.sm
|
|
637
|
-
},
|
|
638
|
-
"& li": {
|
|
639
|
-
marginBottom: p.xs
|
|
640
|
-
},
|
|
641
|
-
"& h1, & h2, & h3, & h4, & h5, & h6": {
|
|
642
|
-
fontFamily: c.primary,
|
|
643
|
-
color: r.textPrimary,
|
|
644
|
-
marginTop: p.md,
|
|
645
|
-
marginBottom: p.sm
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
dangerouslySetInnerHTML: { __html: e }
|
|
649
|
-
}
|
|
650
|
-
),
|
|
651
|
-
/* @__PURE__ */ o.jsx(
|
|
652
|
-
X,
|
|
653
|
-
{
|
|
654
|
-
variant: "outlined",
|
|
655
|
-
onClick: (y) => {
|
|
656
|
-
y.stopPropagation(), S(!1);
|
|
657
|
-
},
|
|
658
|
-
sx: {
|
|
659
|
-
marginTop: p.md,
|
|
660
|
-
borderColor: r.textPrimary,
|
|
661
|
-
color: r.textPrimary,
|
|
662
|
-
fontFamily: c.secondary,
|
|
663
|
-
fontSize: "0.875em",
|
|
664
|
-
borderRadius: m.sm,
|
|
665
|
-
"&:hover": {
|
|
666
|
-
borderColor: r.textPrimary,
|
|
667
|
-
color: r.textPrimary,
|
|
668
|
-
backgroundColor: r.surfaceVariant
|
|
669
|
-
}
|
|
670
|
-
},
|
|
671
|
-
children: l("common.rules.close")
|
|
672
|
-
}
|
|
673
|
-
)
|
|
674
|
-
]
|
|
675
|
-
}
|
|
676
|
-
)
|
|
677
|
-
]
|
|
678
|
-
}
|
|
679
|
-
)
|
|
680
|
-
}
|
|
681
|
-
)
|
|
682
|
-
] });
|
|
683
|
-
}, No = (e) => {
|
|
684
|
-
var i, n, l;
|
|
685
|
-
return {
|
|
686
|
-
// Mobile headline with image background
|
|
687
|
-
mobileHeadlineWithImage: {
|
|
688
|
-
display: e.isMobile ? "flex" : "none",
|
|
689
|
-
flexDirection: "column",
|
|
690
|
-
justifyContent: "space-between",
|
|
691
|
-
gap: "10px",
|
|
692
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
693
|
-
backgroundSize: "cover",
|
|
694
|
-
backgroundPosition: "center",
|
|
695
|
-
borderTopLeftRadius: "5px",
|
|
696
|
-
borderTopRightRadius: "5px",
|
|
697
|
-
position: "relative",
|
|
698
|
-
minHeight: "210px",
|
|
699
|
-
overflow: "hidden",
|
|
700
|
-
height: "auto",
|
|
701
|
-
"&::before": {
|
|
702
|
-
content: '""',
|
|
703
|
-
position: "absolute",
|
|
704
|
-
width: "100%",
|
|
705
|
-
height: "100%",
|
|
706
|
-
background: e.imageBackgroundGradient,
|
|
707
|
-
borderTopLeftRadius: "5px",
|
|
708
|
-
borderTopRightRadius: "5px"
|
|
709
|
-
}
|
|
710
|
-
},
|
|
711
|
-
// Mobile headline content
|
|
712
|
-
mobileHeadlineContent: {
|
|
713
|
-
zIndex: 1,
|
|
714
|
-
height: "100%",
|
|
715
|
-
p: e.spacingScale.xl,
|
|
716
|
-
gap: e.spacingScale["2xl"],
|
|
717
|
-
display: "flex",
|
|
718
|
-
flexDirection: "column",
|
|
719
|
-
justifyContent: "space-between"
|
|
720
|
-
},
|
|
721
|
-
// Mobile headline without image
|
|
722
|
-
mobileHeadlineWithoutImage: {
|
|
723
|
-
display: e.isMobile ? "flex" : "none",
|
|
724
|
-
flexDirection: "column",
|
|
725
|
-
justifyContent: "space-between",
|
|
726
|
-
p: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
727
|
-
gap: e.spacingScale["2xl"]
|
|
728
|
-
},
|
|
729
|
-
// Headline typography (mobile with image)
|
|
730
|
-
headlineTypographyMobileImage: {
|
|
731
|
-
fontWeight: 500,
|
|
732
|
-
lineHeight: "166%",
|
|
733
|
-
letterSpacing: "1px",
|
|
734
|
-
fontSize: "0.75em",
|
|
735
|
-
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.darkTextColor,
|
|
736
|
-
opacity: "70%",
|
|
737
|
-
textTransform: "uppercase",
|
|
738
|
-
fontFamily: e.fontFamilySecondary,
|
|
739
|
-
textAlign: "center"
|
|
740
|
-
},
|
|
741
|
-
// Headline typography (mobile without image & desktop)
|
|
742
|
-
headlineTypography: {
|
|
743
|
-
fontWeight: 500,
|
|
744
|
-
lineHeight: "166%",
|
|
745
|
-
letterSpacing: "1px",
|
|
746
|
-
textTransform: "uppercase",
|
|
747
|
-
fontSize: "0.75em",
|
|
748
|
-
color: e.secondaryColor,
|
|
749
|
-
opacity: e.opacity,
|
|
750
|
-
fontFamily: e.fontFamilySecondary,
|
|
751
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
752
|
-
},
|
|
753
|
-
// Headline typography (desktop centered)
|
|
754
|
-
headlineTypographyDesktop: {
|
|
755
|
-
fontWeight: 500,
|
|
756
|
-
lineHeight: "166%",
|
|
757
|
-
letterSpacing: "1px",
|
|
758
|
-
textTransform: "uppercase",
|
|
759
|
-
fontSize: "0.75em",
|
|
760
|
-
color: e.secondaryColor,
|
|
761
|
-
opacity: e.opacity,
|
|
762
|
-
fontFamily: e.fontFamilySecondary
|
|
763
|
-
},
|
|
764
|
-
// Content container
|
|
765
|
-
contentContainer: {
|
|
766
|
-
display: "flex",
|
|
767
|
-
flexDirection: "column",
|
|
768
|
-
gap: e.spacingScale["3xs"]
|
|
769
|
-
},
|
|
770
|
-
// Title typography (mobile with image)
|
|
771
|
-
titleTypographyMobileImage: {
|
|
772
|
-
fontWeight: 700,
|
|
773
|
-
lineHeight: "133%",
|
|
774
|
-
fontSize: "1.5em",
|
|
775
|
-
letterSpacing: "0.15px",
|
|
776
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
777
|
-
fontFamily: e.fontFamilyPrimary,
|
|
778
|
-
textAlign: "center"
|
|
779
|
-
},
|
|
780
|
-
// Title typography (mobile without image & desktop responsive)
|
|
781
|
-
titleTypography: {
|
|
782
|
-
fontWeight: 700,
|
|
783
|
-
lineHeight: "133%",
|
|
784
|
-
letterSpacing: "0px",
|
|
785
|
-
fontSize: "1.5em",
|
|
786
|
-
color: e.textColor,
|
|
787
|
-
fontFamily: e.fontFamilyPrimary,
|
|
788
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
789
|
-
},
|
|
790
|
-
// Title typography (desktop centered)
|
|
791
|
-
titleTypographyDesktop: {
|
|
792
|
-
fontWeight: 700,
|
|
793
|
-
lineHeight: "133%",
|
|
794
|
-
letterSpacing: "0px",
|
|
795
|
-
fontSize: "1.5em",
|
|
796
|
-
color: e.textColor,
|
|
797
|
-
fontFamily: e.fontFamilyPrimary
|
|
798
|
-
},
|
|
799
|
-
// Description typography (mobile with image)
|
|
800
|
-
descriptionTypographyMobileImage: {
|
|
801
|
-
fontWeight: 400,
|
|
802
|
-
lineHeight: "140%",
|
|
803
|
-
fontSize: "1.25em",
|
|
804
|
-
letterSpacing: "0.15px",
|
|
805
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
806
|
-
opacity: "70%",
|
|
807
|
-
fontFamily: e.fontFamilyPrimary,
|
|
808
|
-
textAlign: "center"
|
|
809
|
-
},
|
|
810
|
-
// Description typography (mobile without image & desktop responsive)
|
|
811
|
-
descriptionTypography: {
|
|
812
|
-
fontWeight: 400,
|
|
813
|
-
lineHeight: "140%",
|
|
814
|
-
letterSpacing: "0.15px",
|
|
815
|
-
fontSize: "1.25em",
|
|
816
|
-
color: e.secondaryColor,
|
|
817
|
-
opacity: e.opacity,
|
|
818
|
-
fontFamily: e.fontFamilyPrimary,
|
|
819
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
820
|
-
},
|
|
821
|
-
// Description typography (desktop centered)
|
|
822
|
-
descriptionTypographyDesktop: {
|
|
823
|
-
fontWeight: 400,
|
|
824
|
-
lineHeight: "140%",
|
|
825
|
-
letterSpacing: "0.15px",
|
|
826
|
-
fontSize: "1.25em",
|
|
827
|
-
color: e.secondaryColor,
|
|
828
|
-
opacity: e.opacity,
|
|
829
|
-
fontFamily: e.fontFamilyPrimary
|
|
830
|
-
},
|
|
831
|
-
// Image container (left position)
|
|
832
|
-
imageContainerLeft: {
|
|
833
|
-
display: e.isMobile ? "none" : "block",
|
|
834
|
-
flex: "0.3",
|
|
835
|
-
overflow: "hidden",
|
|
836
|
-
height: "auto",
|
|
837
|
-
position: "relative",
|
|
838
|
-
minHeight: "auto",
|
|
839
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
840
|
-
backgroundSize: "cover",
|
|
841
|
-
backgroundPosition: "center center",
|
|
842
|
-
backgroundRepeat: "no-repeat",
|
|
843
|
-
alignItems: "center",
|
|
844
|
-
justifyContent: "center"
|
|
845
|
-
},
|
|
846
|
-
// Image container (right position)
|
|
847
|
-
imageContainerRight: {
|
|
848
|
-
display: e.isMobile ? "none" : "block",
|
|
849
|
-
flex: "0.3",
|
|
850
|
-
overflow: "hidden",
|
|
851
|
-
height: "auto",
|
|
852
|
-
position: "relative",
|
|
853
|
-
minHeight: "auto",
|
|
854
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
855
|
-
backgroundSize: "cover",
|
|
856
|
-
backgroundPosition: "center center",
|
|
857
|
-
backgroundRepeat: "no-repeat",
|
|
858
|
-
alignItems: "center",
|
|
859
|
-
justifyContent: "center"
|
|
860
|
-
},
|
|
861
|
-
// Image safe area (placeholder for image space)
|
|
862
|
-
imageSafeArea: {
|
|
863
|
-
width: "100%",
|
|
864
|
-
height: "100%"
|
|
865
|
-
},
|
|
866
|
-
// Main content area
|
|
867
|
-
mainContentArea: {
|
|
868
|
-
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
869
|
-
display: "flex",
|
|
870
|
-
flexDirection: "column",
|
|
871
|
-
px: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
872
|
-
pt: e.spacingScale.lg,
|
|
873
|
-
pb: e.isMobile ? e.spacingScale.sm : e.spacingScale.md,
|
|
874
|
-
gap: e.spacingScale.md
|
|
875
|
-
},
|
|
876
|
-
// Desktop headline container
|
|
877
|
-
desktopHeadlineContainer: {
|
|
878
|
-
display: e.isMobile ? "none" : "flex",
|
|
879
|
-
flexDirection: "column",
|
|
880
|
-
justifyContent: "space-between",
|
|
881
|
-
gap: e.spacingScale["2xl"],
|
|
882
|
-
textAlign: "center"
|
|
883
|
-
},
|
|
884
|
-
// Aspect ratio container (for embed code)
|
|
885
|
-
aspectRatioContainer: {
|
|
886
|
-
borderRadius: e.borderRadius.md,
|
|
887
|
-
overflow: "hidden"
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
}, st = ({
|
|
891
|
-
entity: e,
|
|
892
|
-
headline: i,
|
|
893
|
-
finalImage: n,
|
|
894
|
-
imagePosition: l = "left",
|
|
895
|
-
children: s,
|
|
896
|
-
embedCodeContainerRef: r,
|
|
897
|
-
hasEmbedCode: m = !1,
|
|
898
|
-
filterScreenContent: c,
|
|
899
|
-
rulesDisplay: p
|
|
900
|
-
}) => {
|
|
901
|
-
var k, C;
|
|
902
|
-
const S = Y(), y = q(), h = _(), R = A().primary, w = A().secondary, M = U(), v = ((k = e.branding) == null ? void 0 : k.colors) || null, x = ((C = e.branding) == null ? void 0 : C.urls) || null, I = (v == null ? void 0 : v.contentColor) || T().textColor, f = (v == null ? void 0 : v.secondaryColor) || T().textColor, D = (v == null ? void 0 : v.backgroundColor) || T().surfaceVariant, b = "60%", d = J(
|
|
903
|
-
L.STANDARD
|
|
904
|
-
), g = No({
|
|
905
|
-
finalImage: n,
|
|
906
|
-
spacingScale: h,
|
|
907
|
-
borderRadius: M,
|
|
908
|
-
fontFamilyPrimary: R,
|
|
909
|
-
fontFamilySecondary: w,
|
|
910
|
-
textColor: I,
|
|
911
|
-
secondaryColor: f,
|
|
912
|
-
bgcolor: Re(D || ""),
|
|
913
|
-
opacity: b,
|
|
914
|
-
brandingColors: v,
|
|
915
|
-
darkTextColor: y.colorSchemes.dark.textColor,
|
|
916
|
-
imageBackgroundGradient: d,
|
|
917
|
-
isMobile: S
|
|
918
|
-
}), N = Ze(
|
|
919
|
-
x == null ? void 0 : x.primaryUrl,
|
|
920
|
-
x == null ? void 0 : x.secondaryUrl,
|
|
921
|
-
"image"
|
|
922
|
-
), j = () => {
|
|
923
|
-
N && window.open(N, "_blank", "noopener,noreferrer");
|
|
924
|
-
}, W = (E, $) => N ? typeof window > "u" ? /* @__PURE__ */ o.jsx(
|
|
925
|
-
t,
|
|
926
|
-
{
|
|
927
|
-
component: "a",
|
|
928
|
-
href: N,
|
|
929
|
-
target: "_blank",
|
|
930
|
-
rel: "noopener noreferrer",
|
|
931
|
-
sx: {
|
|
932
|
-
...$,
|
|
933
|
-
cursor: "pointer",
|
|
934
|
-
textDecoration: "none"
|
|
935
|
-
},
|
|
936
|
-
children: E
|
|
937
|
-
}
|
|
938
|
-
) : /* @__PURE__ */ o.jsx(
|
|
939
|
-
t,
|
|
940
|
-
{
|
|
941
|
-
sx: {
|
|
942
|
-
...$,
|
|
943
|
-
cursor: "pointer"
|
|
944
|
-
},
|
|
945
|
-
onClick: j,
|
|
946
|
-
children: E
|
|
947
|
-
}
|
|
948
|
-
) : /* @__PURE__ */ o.jsx(t, { sx: $, children: E }), Z = () => m && r ? /* @__PURE__ */ o.jsxs(t, { sx: g.mobileHeadlineWithoutImage, children: [
|
|
949
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
950
|
-
/* @__PURE__ */ o.jsxs(
|
|
951
|
-
t,
|
|
952
|
-
{
|
|
953
|
-
sx: {
|
|
954
|
-
display: "flex",
|
|
955
|
-
alignItems: "center",
|
|
956
|
-
justifyContent: "center",
|
|
957
|
-
gap: h["3xs"]
|
|
958
|
-
},
|
|
959
|
-
children: [
|
|
960
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: g.headlineTypography, children: i }),
|
|
961
|
-
/* @__PURE__ */ o.jsx(
|
|
962
|
-
P,
|
|
963
|
-
{
|
|
964
|
-
rules: e.rules || "",
|
|
965
|
-
rulesDisplay: p,
|
|
966
|
-
isOverlayVariant: !1
|
|
967
|
-
}
|
|
968
|
-
)
|
|
969
|
-
]
|
|
970
|
-
}
|
|
971
|
-
),
|
|
972
|
-
/* @__PURE__ */ o.jsxs(t, { sx: g.contentContainer, children: [
|
|
973
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: g.titleTypography, children: e.title }),
|
|
974
|
-
/* @__PURE__ */ o.jsx(a, { sx: g.descriptionTypography, children: z(e.description) })
|
|
975
|
-
] })
|
|
976
|
-
] }),
|
|
977
|
-
/* @__PURE__ */ o.jsx(Te, { ratio: "16/9", sx: g.aspectRatioContainer, children: /* @__PURE__ */ o.jsx(t, { ref: r }) })
|
|
978
|
-
] }) : n ? W(
|
|
979
|
-
/* @__PURE__ */ o.jsxs(t, { sx: g.mobileHeadlineContent, children: [
|
|
980
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
981
|
-
/* @__PURE__ */ o.jsxs(
|
|
982
|
-
t,
|
|
983
|
-
{
|
|
984
|
-
sx: {
|
|
985
|
-
display: "flex",
|
|
986
|
-
alignItems: "center",
|
|
987
|
-
justifyContent: "center",
|
|
988
|
-
gap: h["3xs"]
|
|
989
|
-
},
|
|
990
|
-
children: [
|
|
991
|
-
/* @__PURE__ */ o.jsx(
|
|
992
|
-
a,
|
|
993
|
-
{
|
|
994
|
-
level: "body-sm",
|
|
995
|
-
sx: g.headlineTypographyMobileImage,
|
|
996
|
-
children: i
|
|
997
|
-
}
|
|
998
|
-
),
|
|
999
|
-
/* @__PURE__ */ o.jsx(
|
|
1000
|
-
P,
|
|
1001
|
-
{
|
|
1002
|
-
rules: e.rules || "",
|
|
1003
|
-
rulesDisplay: p,
|
|
1004
|
-
isOverlayVariant: !1
|
|
1005
|
-
}
|
|
1006
|
-
)
|
|
1007
|
-
]
|
|
1008
|
-
}
|
|
1009
|
-
),
|
|
1010
|
-
/* @__PURE__ */ o.jsxs(t, { sx: g.contentContainer, children: [
|
|
1011
|
-
/* @__PURE__ */ o.jsx(a, { sx: g.titleTypographyMobileImage, children: e.title }),
|
|
1012
|
-
/* @__PURE__ */ o.jsx(a, { sx: g.descriptionTypographyMobileImage, children: z(e.description) })
|
|
1013
|
-
] })
|
|
1014
|
-
] }),
|
|
1015
|
-
c && /* @__PURE__ */ o.jsx(t, { children: c })
|
|
1016
|
-
] }),
|
|
1017
|
-
g.mobileHeadlineWithImage
|
|
1018
|
-
) : /* @__PURE__ */ o.jsxs(t, { sx: g.mobileHeadlineWithoutImage, children: [
|
|
1019
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
1020
|
-
/* @__PURE__ */ o.jsxs(
|
|
1021
|
-
t,
|
|
1022
|
-
{
|
|
1023
|
-
sx: {
|
|
1024
|
-
display: "flex",
|
|
1025
|
-
alignItems: "center",
|
|
1026
|
-
justifyContent: "center",
|
|
1027
|
-
gap: h["3xs"]
|
|
1028
|
-
},
|
|
1029
|
-
children: [
|
|
1030
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: g.headlineTypography, children: i }),
|
|
1031
|
-
/* @__PURE__ */ o.jsx(
|
|
1032
|
-
P,
|
|
1033
|
-
{
|
|
1034
|
-
rules: e.rules || "",
|
|
1035
|
-
rulesDisplay: p,
|
|
1036
|
-
isOverlayVariant: !1
|
|
1037
|
-
}
|
|
1038
|
-
)
|
|
1039
|
-
]
|
|
1040
|
-
}
|
|
1041
|
-
),
|
|
1042
|
-
/* @__PURE__ */ o.jsxs(t, { sx: g.contentContainer, children: [
|
|
1043
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: g.titleTypography, children: e.title }),
|
|
1044
|
-
/* @__PURE__ */ o.jsx(a, { sx: g.descriptionTypography, children: z(e.description) })
|
|
1045
|
-
] })
|
|
1046
|
-
] }),
|
|
1047
|
-
c && /* @__PURE__ */ o.jsx(t, { children: c })
|
|
1048
|
-
] }), H = !(S && c);
|
|
1049
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1050
|
-
S && Z(),
|
|
1051
|
-
l === "left" && n ? W(
|
|
1052
|
-
/* @__PURE__ */ o.jsx(t, { sx: g.imageSafeArea }),
|
|
1053
|
-
g.imageContainerLeft
|
|
1054
|
-
) : null,
|
|
1055
|
-
H && /* @__PURE__ */ o.jsxs(t, { sx: g.mainContentArea, children: [
|
|
1056
|
-
!S && /* @__PURE__ */ o.jsx(t, { children: /* @__PURE__ */ o.jsxs(t, { sx: g.desktopHeadlineContainer, children: [
|
|
1057
|
-
/* @__PURE__ */ o.jsxs(
|
|
1058
|
-
t,
|
|
1059
|
-
{
|
|
1060
|
-
sx: {
|
|
1061
|
-
display: "flex",
|
|
1062
|
-
flexDirection: "column",
|
|
1063
|
-
alignItems: "center"
|
|
1064
|
-
},
|
|
1065
|
-
children: [
|
|
1066
|
-
/* @__PURE__ */ o.jsxs(
|
|
1067
|
-
t,
|
|
1068
|
-
{
|
|
1069
|
-
sx: {
|
|
1070
|
-
display: "flex",
|
|
1071
|
-
alignItems: "center",
|
|
1072
|
-
justifyContent: "center",
|
|
1073
|
-
gap: h["3xs"]
|
|
1074
|
-
},
|
|
1075
|
-
children: [
|
|
1076
|
-
/* @__PURE__ */ o.jsx(
|
|
1077
|
-
a,
|
|
1078
|
-
{
|
|
1079
|
-
level: "body-sm",
|
|
1080
|
-
sx: g.headlineTypographyDesktop,
|
|
1081
|
-
children: i
|
|
1082
|
-
}
|
|
1083
|
-
),
|
|
1084
|
-
/* @__PURE__ */ o.jsx(
|
|
1085
|
-
P,
|
|
1086
|
-
{
|
|
1087
|
-
rules: e.rules || "",
|
|
1088
|
-
rulesDisplay: p,
|
|
1089
|
-
isOverlayVariant: !1
|
|
1090
|
-
}
|
|
1091
|
-
)
|
|
1092
|
-
]
|
|
1093
|
-
}
|
|
1094
|
-
),
|
|
1095
|
-
/* @__PURE__ */ o.jsxs(t, { sx: g.contentContainer, children: [
|
|
1096
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: g.titleTypographyDesktop, children: e.title }),
|
|
1097
|
-
/* @__PURE__ */ o.jsx(a, { sx: g.descriptionTypographyDesktop, children: z(e.description) })
|
|
1098
|
-
] })
|
|
1099
|
-
]
|
|
1100
|
-
}
|
|
1101
|
-
),
|
|
1102
|
-
m && r ? /* @__PURE__ */ o.jsx(t, { sx: { px: h.md }, children: /* @__PURE__ */ o.jsx(Te, { ratio: "16/9", sx: g.aspectRatioContainer, children: /* @__PURE__ */ o.jsx(t, { ref: r }) }) }) : c ? /* @__PURE__ */ o.jsx(t, { children: c }) : /* @__PURE__ */ o.jsx(o.Fragment, {})
|
|
1103
|
-
] }) }),
|
|
1104
|
-
s
|
|
1105
|
-
] }),
|
|
1106
|
-
l === "right" && n ? W(
|
|
1107
|
-
/* @__PURE__ */ o.jsx(t, { sx: g.imageSafeArea }),
|
|
1108
|
-
g.imageContainerRight
|
|
1109
|
-
) : null
|
|
1110
|
-
] });
|
|
1111
|
-
}, Uo = (e) => {
|
|
1112
|
-
var i, n, l, s;
|
|
1113
|
-
return {
|
|
1114
|
-
// Main headline section with background image
|
|
1115
|
-
headlineSection: {
|
|
1116
|
-
display: "flex",
|
|
1117
|
-
flexDirection: "column",
|
|
1118
|
-
justifyContent: "space-between",
|
|
1119
|
-
gap: "10px",
|
|
1120
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
1121
|
-
width: e.isMobile ? "100%" : "50%",
|
|
1122
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
1123
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
1124
|
-
backgroundImage: e.finalImage ? `url(${e.finalImage})` : "none",
|
|
1125
|
-
backgroundSize: "cover",
|
|
1126
|
-
backgroundPosition: "center",
|
|
1127
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
1128
|
-
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
1129
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
1130
|
-
overflow: "hidden",
|
|
1131
|
-
height: "auto",
|
|
1132
|
-
position: "relative",
|
|
1133
|
-
minHeight: e.isMobile ? "210px" : "430px",
|
|
1134
|
-
"&::before": e.finalImage ? {
|
|
1135
|
-
content: '""',
|
|
1136
|
-
position: "absolute",
|
|
1137
|
-
width: "100%",
|
|
1138
|
-
height: "100%",
|
|
1139
|
-
background: e.imageBackgroundGradient,
|
|
1140
|
-
borderTopLeftRadius: "5px",
|
|
1141
|
-
borderTopRightRadius: "5px"
|
|
1142
|
-
} : {}
|
|
1143
|
-
},
|
|
1144
|
-
// Headline section without image
|
|
1145
|
-
headlineSectionNoImage: {
|
|
1146
|
-
display: "flex",
|
|
1147
|
-
flexDirection: "column",
|
|
1148
|
-
justifyContent: "space-between",
|
|
1149
|
-
gap: "10px",
|
|
1150
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
1151
|
-
width: e.isMobile ? "100%" : "50%",
|
|
1152
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
1153
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
1154
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
1155
|
-
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
1156
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
1157
|
-
overflow: "hidden",
|
|
1158
|
-
height: "auto",
|
|
1159
|
-
position: "relative",
|
|
1160
|
-
minHeight: e.isMobile ? "210px" : "430px",
|
|
1161
|
-
backgroundColor: ((i = e.brandingColors) == null ? void 0 : i.backgroundColor) || e.textColor + "10"
|
|
1162
|
-
},
|
|
1163
|
-
// Embed code headline section (for poll-vote and classic-quiz-play)
|
|
1164
|
-
embedCodeHeadlineSection: {
|
|
1165
|
-
display: "flex",
|
|
1166
|
-
flexDirection: "column",
|
|
1167
|
-
justifyContent: "space-between",
|
|
1168
|
-
gap: "10px",
|
|
1169
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
1170
|
-
width: e.isMobile ? "100%" : "50%",
|
|
1171
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
1172
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
1173
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
1174
|
-
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
1175
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
1176
|
-
overflow: "hidden",
|
|
1177
|
-
height: "auto",
|
|
1178
|
-
position: "relative",
|
|
1179
|
-
minHeight: e.isMobile ? "210px" : "430px"
|
|
1180
|
-
},
|
|
1181
|
-
// AspectRatio container for embed code
|
|
1182
|
-
aspectRatioContainer: {
|
|
1183
|
-
borderRadius: 0,
|
|
1184
|
-
width: "100%",
|
|
1185
|
-
height: "100%"
|
|
1186
|
-
},
|
|
1187
|
-
// Headline content wrapper
|
|
1188
|
-
headlineContent: {
|
|
1189
|
-
zIndex: 1,
|
|
1190
|
-
height: "100%",
|
|
1191
|
-
p: e.spacingScale.xl,
|
|
1192
|
-
gap: e.spacingScale.xl,
|
|
1193
|
-
display: "flex",
|
|
1194
|
-
flexDirection: "column",
|
|
1195
|
-
justifyContent: "space-between"
|
|
1196
|
-
},
|
|
1197
|
-
// Embed code headline content (shown in question area when embed code is present)
|
|
1198
|
-
embedCodeHeadlineContent: {
|
|
1199
|
-
px: e.spacingScale.lg,
|
|
1200
|
-
pt: e.spacingScale.lg,
|
|
1201
|
-
display: "flex",
|
|
1202
|
-
flexDirection: "column",
|
|
1203
|
-
gap: e.spacingScale.md
|
|
1204
|
-
},
|
|
1205
|
-
// Headline typography (with image background)
|
|
1206
|
-
headlineText: {
|
|
1207
|
-
fontWeight: 500,
|
|
1208
|
-
lineHeight: "166%",
|
|
1209
|
-
letterSpacing: "1px",
|
|
1210
|
-
fontSize: "0.75em",
|
|
1211
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.secondaryColor) || e.darkTextColor,
|
|
1212
|
-
opacity: "70%",
|
|
1213
|
-
textTransform: "uppercase",
|
|
1214
|
-
fontFamily: e.fontFamilySecondary,
|
|
1215
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1216
|
-
},
|
|
1217
|
-
// Headline typography (without image background)
|
|
1218
|
-
headlineTextNoImage: {
|
|
1219
|
-
fontWeight: 500,
|
|
1220
|
-
lineHeight: "166%",
|
|
1221
|
-
letterSpacing: "1px",
|
|
1222
|
-
fontSize: "0.75em",
|
|
1223
|
-
color: e.secondaryColor,
|
|
1224
|
-
opacity: "70%",
|
|
1225
|
-
textTransform: "uppercase",
|
|
1226
|
-
fontFamily: e.fontFamilySecondary,
|
|
1227
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1228
|
-
},
|
|
1229
|
-
// Content container
|
|
1230
|
-
contentContainer: {
|
|
1231
|
-
display: "flex",
|
|
1232
|
-
flexDirection: "column",
|
|
1233
|
-
gap: e.spacingScale["3xs"]
|
|
1234
|
-
},
|
|
1235
|
-
// Title typography (with image background)
|
|
1236
|
-
titleText: {
|
|
1237
|
-
fontWeight: 700,
|
|
1238
|
-
lineHeight: "133%",
|
|
1239
|
-
fontSize: "1.5em",
|
|
1240
|
-
letterSpacing: "0.15px",
|
|
1241
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.contentColor) || e.darkTextColor,
|
|
1242
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1243
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1244
|
-
},
|
|
1245
|
-
// Title typography (without image background)
|
|
1246
|
-
titleTextNoImage: {
|
|
1247
|
-
fontWeight: 700,
|
|
1248
|
-
lineHeight: "133%",
|
|
1249
|
-
fontSize: "1.5em",
|
|
1250
|
-
letterSpacing: "0.15px",
|
|
1251
|
-
color: e.textColor,
|
|
1252
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1253
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1254
|
-
},
|
|
1255
|
-
// Description typography (with image background)
|
|
1256
|
-
descriptionText: {
|
|
1257
|
-
fontWeight: 400,
|
|
1258
|
-
lineHeight: "140%",
|
|
1259
|
-
fontSize: "1.25em",
|
|
1260
|
-
letterSpacing: "0.15px",
|
|
1261
|
-
color: ((s = e.brandingColors) == null ? void 0 : s.secondaryColor) || e.darkTextColor,
|
|
1262
|
-
opacity: "70%",
|
|
1263
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1264
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1265
|
-
},
|
|
1266
|
-
// Description typography (without image background)
|
|
1267
|
-
descriptionTextNoImage: {
|
|
1268
|
-
fontWeight: 400,
|
|
1269
|
-
lineHeight: "140%",
|
|
1270
|
-
fontSize: "1.25em",
|
|
1271
|
-
letterSpacing: "0.15px",
|
|
1272
|
-
color: e.secondaryColor,
|
|
1273
|
-
opacity: "70%",
|
|
1274
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1275
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1276
|
-
},
|
|
1277
|
-
// Question area / content section
|
|
1278
|
-
questionArea: {
|
|
1279
|
-
flex: e.isMobile ? "1" : "0 0 50%",
|
|
1280
|
-
width: e.isMobile ? "100%" : "50%",
|
|
1281
|
-
minWidth: e.isMobile ? "100%" : "50%",
|
|
1282
|
-
maxWidth: e.isMobile ? "100%" : "50%",
|
|
1283
|
-
display: "flex",
|
|
1284
|
-
flexDirection: "column",
|
|
1285
|
-
justifyContent: "center"
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
|
-
}, ct = ({
|
|
1289
|
-
entity: e,
|
|
1290
|
-
headline: i,
|
|
1291
|
-
finalImage: n,
|
|
1292
|
-
children: l,
|
|
1293
|
-
embedCodeContainerRef: s,
|
|
1294
|
-
hasEmbedCode: r = !1,
|
|
1295
|
-
brandingLogo: m,
|
|
1296
|
-
renderPresentedBy: c,
|
|
1297
|
-
rulesDisplay: p
|
|
1298
|
-
}) => {
|
|
1299
|
-
var k, C;
|
|
1300
|
-
const S = Y(), y = Xe(), h = e.type === "poll" || e.type === "match-quiz" ? y : S, R = q(), w = _(), M = A().primary, v = A().secondary, x = U(), I = ((k = e.branding) == null ? void 0 : k.colors) || null, f = ((C = e.branding) == null ? void 0 : C.urls) || null, D = (I == null ? void 0 : I.contentColor) || T().textColor, b = (I == null ? void 0 : I.secondaryColor) || T().textColor, d = (I == null ? void 0 : I.backgroundColor) || T().surfaceVariant, g = R.colorSchemes.dark.textColor, N = J(
|
|
1301
|
-
L.SPLIT
|
|
1302
|
-
), j = Uo({
|
|
1303
|
-
finalImage: n,
|
|
1304
|
-
spacingScale: w,
|
|
1305
|
-
borderRadius: x,
|
|
1306
|
-
fontFamilyPrimary: M,
|
|
1307
|
-
fontFamilySecondary: v,
|
|
1308
|
-
secondaryColor: b,
|
|
1309
|
-
bgcolor: Re(d || ""),
|
|
1310
|
-
textColor: D,
|
|
1311
|
-
brandingColors: I,
|
|
1312
|
-
darkTextColor: g,
|
|
1313
|
-
imageBackgroundGradient: N,
|
|
1314
|
-
isMobile: h
|
|
1315
|
-
}), W = Ze(
|
|
1316
|
-
f == null ? void 0 : f.primaryUrl,
|
|
1317
|
-
f == null ? void 0 : f.secondaryUrl,
|
|
1318
|
-
"image"
|
|
1319
|
-
), Z = () => {
|
|
1320
|
-
W && window.open(W, "_blank", "noopener,noreferrer");
|
|
1321
|
-
}, H = (E, $) => W ? typeof window > "u" ? /* @__PURE__ */ o.jsx(
|
|
1322
|
-
t,
|
|
1323
|
-
{
|
|
1324
|
-
component: "a",
|
|
1325
|
-
href: W,
|
|
1326
|
-
target: "_blank",
|
|
1327
|
-
rel: "noopener noreferrer",
|
|
1328
|
-
sx: {
|
|
1329
|
-
...$,
|
|
1330
|
-
cursor: "pointer",
|
|
1331
|
-
textDecoration: "none"
|
|
1332
|
-
},
|
|
1333
|
-
children: E
|
|
1334
|
-
}
|
|
1335
|
-
) : /* @__PURE__ */ o.jsx(
|
|
1336
|
-
t,
|
|
1337
|
-
{
|
|
1338
|
-
sx: {
|
|
1339
|
-
...$,
|
|
1340
|
-
cursor: "pointer"
|
|
1341
|
-
},
|
|
1342
|
-
onClick: Z,
|
|
1343
|
-
children: E
|
|
1344
|
-
}
|
|
1345
|
-
) : /* @__PURE__ */ o.jsx(t, { sx: $, children: E });
|
|
1346
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1347
|
-
r && s ? /* @__PURE__ */ o.jsx(t, { sx: j.embedCodeHeadlineSection, children: /* @__PURE__ */ o.jsx(
|
|
1348
|
-
Te,
|
|
1349
|
-
{
|
|
1350
|
-
ratio: "16/9",
|
|
1351
|
-
sx: j.aspectRatioContainer,
|
|
1352
|
-
slotProps: { content: { sx: { height: "100%" } } },
|
|
1353
|
-
children: /* @__PURE__ */ o.jsx(t, { ref: s })
|
|
1354
|
-
}
|
|
1355
|
-
) }) : n ? H(
|
|
1356
|
-
/* @__PURE__ */ o.jsxs(t, { sx: j.headlineContent, children: [
|
|
1357
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
1358
|
-
/* @__PURE__ */ o.jsxs(
|
|
1359
|
-
t,
|
|
1360
|
-
{
|
|
1361
|
-
sx: {
|
|
1362
|
-
display: "flex",
|
|
1363
|
-
alignItems: "center",
|
|
1364
|
-
justifyContent: h ? "center" : "flex-start",
|
|
1365
|
-
gap: w["3xs"]
|
|
1366
|
-
},
|
|
1367
|
-
children: [
|
|
1368
|
-
/* @__PURE__ */ o.jsx(a, { sx: j.headlineText, children: i }),
|
|
1369
|
-
/* @__PURE__ */ o.jsx(P, { rulesDisplay: p, rules: e.rules || "" })
|
|
1370
|
-
]
|
|
1371
|
-
}
|
|
1372
|
-
),
|
|
1373
|
-
/* @__PURE__ */ o.jsxs(t, { sx: j.contentContainer, children: [
|
|
1374
|
-
/* @__PURE__ */ o.jsx(a, { sx: j.titleText, children: e.title }),
|
|
1375
|
-
/* @__PURE__ */ o.jsx(a, { sx: j.descriptionText, children: z(e.description) })
|
|
1376
|
-
] })
|
|
1377
|
-
] }),
|
|
1378
|
-
m && !h && c && /* @__PURE__ */ o.jsx(t, { children: c((I == null ? void 0 : I.contentColor) || g) })
|
|
1379
|
-
] }),
|
|
1380
|
-
j.headlineSection
|
|
1381
|
-
) : /* @__PURE__ */ o.jsx(t, { sx: j.headlineSectionNoImage, children: /* @__PURE__ */ o.jsxs(t, { sx: j.headlineContent, children: [
|
|
1382
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
1383
|
-
/* @__PURE__ */ o.jsxs(
|
|
1384
|
-
t,
|
|
1385
|
-
{
|
|
1386
|
-
sx: {
|
|
1387
|
-
display: "flex",
|
|
1388
|
-
alignItems: "center",
|
|
1389
|
-
justifyContent: h ? "center" : "flex-start",
|
|
1390
|
-
gap: w["3xs"]
|
|
1391
|
-
},
|
|
1392
|
-
children: [
|
|
1393
|
-
/* @__PURE__ */ o.jsx(a, { sx: j.headlineTextNoImage, children: i }),
|
|
1394
|
-
/* @__PURE__ */ o.jsx(P, { rulesDisplay: p, rules: e.rules || "" })
|
|
1395
|
-
]
|
|
1396
|
-
}
|
|
1397
|
-
),
|
|
1398
|
-
/* @__PURE__ */ o.jsxs(t, { sx: j.contentContainer, children: [
|
|
1399
|
-
/* @__PURE__ */ o.jsx(a, { sx: j.titleTextNoImage, children: e.title }),
|
|
1400
|
-
/* @__PURE__ */ o.jsx(a, { sx: j.descriptionTextNoImage, children: z(e.description) })
|
|
1401
|
-
] })
|
|
1402
|
-
] }),
|
|
1403
|
-
m && !h && c && /* @__PURE__ */ o.jsx(t, { children: c(D) })
|
|
1404
|
-
] }) }),
|
|
1405
|
-
/* @__PURE__ */ o.jsxs(t, { sx: j.questionArea, children: [
|
|
1406
|
-
r && s && /* @__PURE__ */ o.jsx(t, { sx: j.embedCodeHeadlineContent, children: /* @__PURE__ */ o.jsxs(t, { children: [
|
|
1407
|
-
/* @__PURE__ */ o.jsxs(
|
|
1408
|
-
t,
|
|
1409
|
-
{
|
|
1410
|
-
sx: {
|
|
1411
|
-
display: "flex",
|
|
1412
|
-
alignItems: "center",
|
|
1413
|
-
justifyContent: "center",
|
|
1414
|
-
gap: w["3xs"]
|
|
1415
|
-
},
|
|
1416
|
-
children: [
|
|
1417
|
-
/* @__PURE__ */ o.jsx(
|
|
1418
|
-
a,
|
|
1419
|
-
{
|
|
1420
|
-
sx: {
|
|
1421
|
-
...j.headlineTextNoImage,
|
|
1422
|
-
textAlign: "center"
|
|
1423
|
-
},
|
|
1424
|
-
children: i
|
|
1425
|
-
}
|
|
1426
|
-
),
|
|
1427
|
-
/* @__PURE__ */ o.jsx(P, { rulesDisplay: p, rules: e.rules || "" })
|
|
1428
|
-
]
|
|
1429
|
-
}
|
|
1430
|
-
),
|
|
1431
|
-
/* @__PURE__ */ o.jsxs(t, { sx: j.contentContainer, children: [
|
|
1432
|
-
/* @__PURE__ */ o.jsx(
|
|
1433
|
-
a,
|
|
1434
|
-
{
|
|
1435
|
-
sx: {
|
|
1436
|
-
...j.titleTextNoImage,
|
|
1437
|
-
textAlign: "center"
|
|
1438
|
-
},
|
|
1439
|
-
children: e.title
|
|
1440
|
-
}
|
|
1441
|
-
),
|
|
1442
|
-
/* @__PURE__ */ o.jsx(
|
|
1443
|
-
a,
|
|
1444
|
-
{
|
|
1445
|
-
sx: {
|
|
1446
|
-
...j.descriptionTextNoImage,
|
|
1447
|
-
textAlign: "center"
|
|
1448
|
-
},
|
|
1449
|
-
children: z(e.description)
|
|
1450
|
-
}
|
|
1451
|
-
)
|
|
1452
|
-
] })
|
|
1453
|
-
] }) }),
|
|
1454
|
-
l
|
|
1455
|
-
] })
|
|
1456
|
-
] });
|
|
1457
|
-
}, Go = (e) => {
|
|
1458
|
-
var i;
|
|
1459
|
-
return {
|
|
1460
|
-
// Main container with background overlay
|
|
1461
|
-
mainContainer: {
|
|
1462
|
-
display: "flex",
|
|
1463
|
-
flexDirection: "column",
|
|
1464
|
-
justifyContent: "space-between",
|
|
1465
|
-
gap: "40px",
|
|
1466
|
-
p: e.spacingScale.xl,
|
|
1467
|
-
boxShadow: "md",
|
|
1468
|
-
border: (i = e.brandingColors) != null && i.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
1469
|
-
overflow: "hidden",
|
|
1470
|
-
backgroundImage: e.backgroundImage,
|
|
1471
|
-
backgroundPosition: "center",
|
|
1472
|
-
backgroundSize: "cover",
|
|
1473
|
-
position: "relative",
|
|
1474
|
-
borderRadius: e.mdBorderRadius,
|
|
1475
|
-
minHeight: "250px",
|
|
1476
|
-
"&::before": {
|
|
1477
|
-
content: '""',
|
|
1478
|
-
position: "absolute",
|
|
1479
|
-
background: e.imageBackgroundGradient,
|
|
1480
|
-
top: 0,
|
|
1481
|
-
left: 0,
|
|
1482
|
-
right: 0,
|
|
1483
|
-
bottom: 0,
|
|
1484
|
-
borderRadius: "inherit",
|
|
1485
|
-
zIndex: 0
|
|
1486
|
-
}
|
|
1487
|
-
},
|
|
1488
|
-
// Headline section wrapper
|
|
1489
|
-
headlineSection: {
|
|
1490
|
-
display: "flex",
|
|
1491
|
-
justifyContent: "space-between",
|
|
1492
|
-
flex: "1 0 0",
|
|
1493
|
-
alignSelf: "stretch"
|
|
1494
|
-
},
|
|
1495
|
-
// Headline content container
|
|
1496
|
-
headlineContent: {
|
|
1497
|
-
display: "flex",
|
|
1498
|
-
flexDirection: "column",
|
|
1499
|
-
alignItems: "flex-start",
|
|
1500
|
-
flex: "1 0 0",
|
|
1501
|
-
gap: "16px"
|
|
1502
|
-
},
|
|
1503
|
-
// Headline content with z-index
|
|
1504
|
-
headlineContentInner: {
|
|
1505
|
-
zIndex: 10
|
|
1506
|
-
},
|
|
1507
|
-
// Headline typography
|
|
1508
|
-
headlineText: {
|
|
1509
|
-
fontWeight: 500,
|
|
1510
|
-
lineHeight: "166%",
|
|
1511
|
-
letterSpacing: "1px",
|
|
1512
|
-
textAlign: { xs: "center", md: "left" },
|
|
1513
|
-
color: e.secondaryColor,
|
|
1514
|
-
opacity: "70%",
|
|
1515
|
-
textTransform: "uppercase",
|
|
1516
|
-
fontFamily: e.fontFamilySecondary,
|
|
1517
|
-
fontSize: "0.75em"
|
|
1518
|
-
},
|
|
1519
|
-
// Content container
|
|
1520
|
-
contentContainer: {
|
|
1521
|
-
display: "flex",
|
|
1522
|
-
flexDirection: "column",
|
|
1523
|
-
gap: e.spacingScale["3xs"]
|
|
1524
|
-
},
|
|
1525
|
-
// Title typography
|
|
1526
|
-
titleText: {
|
|
1527
|
-
fontWeight: 700,
|
|
1528
|
-
lineHeight: "133%",
|
|
1529
|
-
letterSpacing: "0px",
|
|
1530
|
-
textAlign: { xs: "center", md: "left" },
|
|
1531
|
-
fontSize: "1.5em",
|
|
1532
|
-
color: e.darkTextColor,
|
|
1533
|
-
fontFamily: e.fontFamilyPrimary
|
|
1534
|
-
},
|
|
1535
|
-
// Description typography
|
|
1536
|
-
descriptionText: {
|
|
1537
|
-
fontWeight: 400,
|
|
1538
|
-
lineHeight: "140%",
|
|
1539
|
-
letterSpacing: "0.15px",
|
|
1540
|
-
fontSize: "1.25em",
|
|
1541
|
-
textAlign: { xs: "center", md: "left" },
|
|
1542
|
-
color: e.secondaryColor,
|
|
1543
|
-
opacity: "70%",
|
|
1544
|
-
fontFamily: e.fontFamilyPrimary
|
|
1545
|
-
},
|
|
1546
|
-
// Main content section
|
|
1547
|
-
mainContentSection: {
|
|
1548
|
-
display: "flex",
|
|
1549
|
-
flexDirection: "column",
|
|
1550
|
-
gap: "24px"
|
|
1551
|
-
}
|
|
1552
|
-
};
|
|
1553
|
-
}, dt = ({
|
|
1554
|
-
entity: e,
|
|
1555
|
-
headline: i,
|
|
1556
|
-
finalImage: n,
|
|
1557
|
-
children: l,
|
|
1558
|
-
rulesDisplay: s
|
|
1559
|
-
}) => {
|
|
1560
|
-
var r, m;
|
|
1561
|
-
const c = q(), p = _(), k = J(
|
|
1562
|
-
L.OVERLAY
|
|
1563
|
-
), C = ((r = e.branding) == null ? void 0 : r.colors) || null, S = (C == null ? void 0 : C.contentColor) || c.colorSchemes.dark.textColor, y = c.customFontFamily.dark.primary, h = c.customFontFamily.dark.secondary, R = c.customRadius.dark.md, w = (m = c.border) == null ? void 0 : m.dark.size, M = c.colorSchemes.dark.textColor, v = Je(n), x = Go({
|
|
1564
|
-
spacingScale: p,
|
|
1565
|
-
brandingColors: C,
|
|
1566
|
-
secondaryColor: S,
|
|
1567
|
-
fontFamilyPrimary: y,
|
|
1568
|
-
fontFamilySecondary: h,
|
|
1569
|
-
mdBorderRadius: R,
|
|
1570
|
-
borderSize: w,
|
|
1571
|
-
backgroundImage: v,
|
|
1572
|
-
darkTextColor: M,
|
|
1573
|
-
imageBackgroundGradient: k
|
|
1574
|
-
});
|
|
1575
|
-
return /* @__PURE__ */ o.jsxs(t, { sx: x.mainContainer, children: [
|
|
1576
|
-
/* @__PURE__ */ o.jsx(t, { children: /* @__PURE__ */ o.jsx(t, { sx: x.headlineSection, children: /* @__PURE__ */ o.jsx(t, { sx: x.headlineContent, children: /* @__PURE__ */ o.jsxs(t, { sx: x.headlineContentInner, children: [
|
|
1577
|
-
/* @__PURE__ */ o.jsxs(
|
|
1578
|
-
t,
|
|
1579
|
-
{
|
|
1580
|
-
sx: {
|
|
1581
|
-
display: "flex",
|
|
1582
|
-
alignItems: "center",
|
|
1583
|
-
gap: p["3xs"]
|
|
1584
|
-
},
|
|
1585
|
-
children: [
|
|
1586
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: x.headlineText, children: i }),
|
|
1587
|
-
/* @__PURE__ */ o.jsx(
|
|
1588
|
-
P,
|
|
1589
|
-
{
|
|
1590
|
-
rulesDisplay: s,
|
|
1591
|
-
isOverlayVariant: !0,
|
|
1592
|
-
rules: e.rules || ""
|
|
1593
|
-
}
|
|
1594
|
-
)
|
|
1595
|
-
]
|
|
1596
|
-
}
|
|
1597
|
-
),
|
|
1598
|
-
/* @__PURE__ */ o.jsxs(t, { sx: x.contentContainer, children: [
|
|
1599
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: x.titleText, children: e.title }),
|
|
1600
|
-
e.description && /* @__PURE__ */ o.jsx(a, { level: "body-lg", sx: x.descriptionText, children: z(e.description) })
|
|
1601
|
-
] })
|
|
1602
|
-
] }) }) }) }),
|
|
1603
|
-
/* @__PURE__ */ o.jsx(t, { sx: x.mainContentSection, children: l })
|
|
1604
|
-
] });
|
|
1605
|
-
}, qo = (e) => {
|
|
1606
|
-
var i, n, l;
|
|
1607
|
-
return {
|
|
1608
|
-
// Wrapper container for the entire split layout
|
|
1609
|
-
wrapper: {
|
|
1610
|
-
display: "flex",
|
|
1611
|
-
flexDirection: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "column" : "row",
|
|
1612
|
-
width: "100%"
|
|
1613
|
-
},
|
|
1614
|
-
// Desktop image section with background image and overlay
|
|
1615
|
-
desktopImageSection: {
|
|
1616
|
-
display: e.isLarge && !e.alwaysShowImage ? "none" : "flex",
|
|
1617
|
-
flexDirection: "column",
|
|
1618
|
-
justifyContent: "space-between",
|
|
1619
|
-
gap: "10px",
|
|
1620
|
-
flex: e.isMobile || e.isLarge && e.alwaysShowImage ? "1" : "0 0 50%",
|
|
1621
|
-
width: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
1622
|
-
minWidth: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
1623
|
-
maxWidth: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
1624
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
1625
|
-
backgroundSize: "cover",
|
|
1626
|
-
backgroundPosition: "center",
|
|
1627
|
-
borderTopLeftRadius: e.isTabulated ? 0 : e.borderRadius.md,
|
|
1628
|
-
borderTopRightRadius: e.isMobile || e.isLarge && e.alwaysShowImage ? e.isTabulated ? 0 : e.borderRadius.md : 0,
|
|
1629
|
-
borderBottomLeftRadius: e.isMobile || e.isLarge && e.alwaysShowImage ? 0 : e.borderRadius.md,
|
|
1630
|
-
overflow: "hidden",
|
|
1631
|
-
height: "auto",
|
|
1632
|
-
position: "relative",
|
|
1633
|
-
minHeight: e.isMobile || e.isLarge && e.alwaysShowImage ? "210px" : "430px",
|
|
1634
|
-
maxHeight: e.isMobile || e.isLarge && e.alwaysShowImage ? "auto" : "100%",
|
|
1635
|
-
"&::before": {
|
|
1636
|
-
content: '""',
|
|
1637
|
-
position: "absolute",
|
|
1638
|
-
width: "100%",
|
|
1639
|
-
height: "100%",
|
|
1640
|
-
background: e.imageBackgroundGradient,
|
|
1641
|
-
borderTopLeftRadius: "5px",
|
|
1642
|
-
borderTopRightRadius: "5px"
|
|
1643
|
-
}
|
|
1644
|
-
},
|
|
1645
|
-
// Image section content wrapper
|
|
1646
|
-
imageSectionContent: {
|
|
1647
|
-
zIndex: 1,
|
|
1648
|
-
height: "100%",
|
|
1649
|
-
p: e.spacingScale.xl,
|
|
1650
|
-
display: "flex",
|
|
1651
|
-
flexDirection: "column",
|
|
1652
|
-
justifyContent: "space-between",
|
|
1653
|
-
gap: e.spacingScale.xl
|
|
1654
|
-
},
|
|
1655
|
-
// Headline text
|
|
1656
|
-
headlineText: {
|
|
1657
|
-
fontWeight: 500,
|
|
1658
|
-
lineHeight: "166%",
|
|
1659
|
-
letterSpacing: "1px",
|
|
1660
|
-
fontSize: "0.75em",
|
|
1661
|
-
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.darkTextColor,
|
|
1662
|
-
opacity: "70%",
|
|
1663
|
-
textTransform: "uppercase",
|
|
1664
|
-
fontFamily: e.fontFamilySecondary,
|
|
1665
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
1666
|
-
},
|
|
1667
|
-
// Content container (title + description)
|
|
1668
|
-
contentContainer: {
|
|
1669
|
-
display: "flex",
|
|
1670
|
-
flexDirection: "column",
|
|
1671
|
-
gap: e.spacingScale["3xs"]
|
|
1672
|
-
},
|
|
1673
|
-
// Title text
|
|
1674
|
-
titleText: {
|
|
1675
|
-
fontWeight: 700,
|
|
1676
|
-
lineHeight: "133%",
|
|
1677
|
-
fontSize: "1.5em",
|
|
1678
|
-
letterSpacing: "0.15px",
|
|
1679
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
1680
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1681
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
1682
|
-
},
|
|
1683
|
-
// Description text
|
|
1684
|
-
descriptionText: {
|
|
1685
|
-
fontWeight: 500,
|
|
1686
|
-
lineHeight: "140%",
|
|
1687
|
-
fontSize: "1.25em",
|
|
1688
|
-
letterSpacing: "0.15px",
|
|
1689
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
1690
|
-
opacity: "70%",
|
|
1691
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1692
|
-
textAlign: e.isLarge ? "center" : "left"
|
|
1693
|
-
},
|
|
1694
|
-
// Presented by desktop container
|
|
1695
|
-
presentedByDesktop: {
|
|
1696
|
-
display: "block"
|
|
1697
|
-
},
|
|
1698
|
-
// Question/Content area (right side on desktop, below image on mobile)
|
|
1699
|
-
questionArea: {
|
|
1700
|
-
flex: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "1" : "0 0 50%",
|
|
1701
|
-
width: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
1702
|
-
minWidth: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
1703
|
-
maxWidth: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
1704
|
-
display: "flex",
|
|
1705
|
-
flexDirection: "column"
|
|
1706
|
-
}
|
|
1707
|
-
};
|
|
1708
|
-
}, pt = ({
|
|
1709
|
-
entity: e,
|
|
1710
|
-
headline: i,
|
|
1711
|
-
finalImage: n,
|
|
1712
|
-
brandingContent: l,
|
|
1713
|
-
children: s,
|
|
1714
|
-
isTabulated: r = !1,
|
|
1715
|
-
alwaysShowImage: m = !1,
|
|
1716
|
-
rulesDisplay: c
|
|
1717
|
-
}) => {
|
|
1718
|
-
var p;
|
|
1719
|
-
const k = Y(), C = Xe(), S = q(), y = _(), h = A().primary, R = A().secondary, w = U(), M = J(
|
|
1720
|
-
L.SPLIT
|
|
1721
|
-
), v = ((p = e.branding) == null ? void 0 : p.colors) || null, x = qo({
|
|
1722
|
-
finalImage: n,
|
|
1723
|
-
spacingScale: y,
|
|
1724
|
-
borderRadius: w,
|
|
1725
|
-
fontFamilyPrimary: h,
|
|
1726
|
-
fontFamilySecondary: R,
|
|
1727
|
-
brandingColors: v,
|
|
1728
|
-
darkTextColor: S.colorSchemes.dark.textColor,
|
|
1729
|
-
imageBackgroundGradient: M,
|
|
1730
|
-
isMobile: k,
|
|
1731
|
-
isLarge: C,
|
|
1732
|
-
isTabulated: r,
|
|
1733
|
-
alwaysShowImage: m
|
|
1734
|
-
});
|
|
1735
|
-
return /* @__PURE__ */ o.jsxs(t, { sx: x.wrapper, children: [
|
|
1736
|
-
/* @__PURE__ */ o.jsx(t, { sx: x.desktopImageSection, children: /* @__PURE__ */ o.jsxs(t, { sx: x.imageSectionContent, children: [
|
|
1737
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
1738
|
-
/* @__PURE__ */ o.jsxs(
|
|
1739
|
-
t,
|
|
1740
|
-
{
|
|
1741
|
-
sx: {
|
|
1742
|
-
display: "flex",
|
|
1743
|
-
alignItems: "center",
|
|
1744
|
-
gap: y["3xs"]
|
|
1745
|
-
},
|
|
1746
|
-
children: [
|
|
1747
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: x.headlineText, children: i }),
|
|
1748
|
-
/* @__PURE__ */ o.jsx(P, { rulesDisplay: c, rules: e.rules || "" })
|
|
1749
|
-
]
|
|
1750
|
-
}
|
|
1751
|
-
),
|
|
1752
|
-
/* @__PURE__ */ o.jsxs(t, { sx: x.contentContainer, children: [
|
|
1753
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-lg", sx: x.titleText, children: e.title }),
|
|
1754
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-md", sx: x.descriptionText, children: z(e.description) })
|
|
1755
|
-
] })
|
|
1756
|
-
] }),
|
|
1757
|
-
/* @__PURE__ */ o.jsx(t, { sx: x.presentedByDesktop, children: l })
|
|
1758
|
-
] }) }),
|
|
1759
|
-
/* @__PURE__ */ o.jsx(t, { sx: x.questionArea, children: s })
|
|
1760
|
-
] });
|
|
1761
|
-
}, Yo = (e) => {
|
|
1762
|
-
var i, n, l;
|
|
1763
|
-
return {
|
|
1764
|
-
// Mobile headline with image background
|
|
1765
|
-
mobileHeadlineWithImage: {
|
|
1766
|
-
display: e.isMobile ? "flex" : "none",
|
|
1767
|
-
flexDirection: "column",
|
|
1768
|
-
justifyContent: "space-between",
|
|
1769
|
-
gap: "10px",
|
|
1770
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
1771
|
-
backgroundSize: "cover",
|
|
1772
|
-
backgroundPosition: "center",
|
|
1773
|
-
borderTopLeftRadius: "5px",
|
|
1774
|
-
borderTopRightRadius: "5px",
|
|
1775
|
-
position: "relative",
|
|
1776
|
-
minHeight: "210px",
|
|
1777
|
-
overflow: "hidden",
|
|
1778
|
-
height: "auto",
|
|
1779
|
-
"&::before": {
|
|
1780
|
-
content: '""',
|
|
1781
|
-
position: "absolute",
|
|
1782
|
-
width: "100%",
|
|
1783
|
-
height: "100%",
|
|
1784
|
-
background: e.imageBackgroundGradient,
|
|
1785
|
-
borderTopLeftRadius: "5px",
|
|
1786
|
-
borderTopRightRadius: "5px"
|
|
1787
|
-
}
|
|
1788
|
-
},
|
|
1789
|
-
// Content inside mobile headline with image
|
|
1790
|
-
mobileHeadlineContent: {
|
|
1791
|
-
zIndex: 1,
|
|
1792
|
-
height: "100%",
|
|
1793
|
-
p: e.spacingScale.xl,
|
|
1794
|
-
gap: e.spacingScale["2xl"],
|
|
1795
|
-
display: "flex",
|
|
1796
|
-
flexDirection: "column",
|
|
1797
|
-
justifyContent: "space-between"
|
|
1798
|
-
},
|
|
1799
|
-
// Mobile headline without image
|
|
1800
|
-
mobileHeadlineWithoutImage: {
|
|
1801
|
-
display: e.isMobile ? "flex" : "none",
|
|
1802
|
-
flex: "0.5",
|
|
1803
|
-
flexDirection: "column",
|
|
1804
|
-
justifyContent: "space-between",
|
|
1805
|
-
p: e.spacingScale.lg,
|
|
1806
|
-
gap: e.spacingScale["2xl"]
|
|
1807
|
-
},
|
|
1808
|
-
// Headline typography (mobile with image)
|
|
1809
|
-
headlineTypographyMobileImage: {
|
|
1810
|
-
fontWeight: 500,
|
|
1811
|
-
lineHeight: "166%",
|
|
1812
|
-
letterSpacing: "1px",
|
|
1813
|
-
fontSize: "0.75em",
|
|
1814
|
-
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.darkTextColor,
|
|
1815
|
-
opacity: "70%",
|
|
1816
|
-
textTransform: "uppercase",
|
|
1817
|
-
fontFamily: e.fontFamilySecondary,
|
|
1818
|
-
textAlign: "center"
|
|
1819
|
-
},
|
|
1820
|
-
// Headline typography (mobile without image & desktop)
|
|
1821
|
-
headlineTypography: {
|
|
1822
|
-
fontWeight: 500,
|
|
1823
|
-
lineHeight: "166%",
|
|
1824
|
-
letterSpacing: "1px",
|
|
1825
|
-
textTransform: "uppercase",
|
|
1826
|
-
fontSize: "0.75em",
|
|
1827
|
-
color: e.secondaryColor,
|
|
1828
|
-
opacity: e.opacity,
|
|
1829
|
-
fontFamily: e.fontFamilySecondary,
|
|
1830
|
-
textAlign: "center"
|
|
1831
|
-
},
|
|
1832
|
-
// Title typography (mobile with image)
|
|
1833
|
-
titleTypographyMobileImage: {
|
|
1834
|
-
fontWeight: 700,
|
|
1835
|
-
lineHeight: "133%",
|
|
1836
|
-
fontSize: "1.5em",
|
|
1837
|
-
letterSpacing: "0.15px",
|
|
1838
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
1839
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1840
|
-
textAlign: "center"
|
|
1841
|
-
},
|
|
1842
|
-
// Title typography (mobile without image & desktop)
|
|
1843
|
-
titleTypography: {
|
|
1844
|
-
fontWeight: 700,
|
|
1845
|
-
lineHeight: "133%",
|
|
1846
|
-
letterSpacing: "0px",
|
|
1847
|
-
fontSize: "1.5em",
|
|
1848
|
-
color: e.textColor,
|
|
1849
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1850
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1851
|
-
},
|
|
1852
|
-
// Description typography (mobile with image)
|
|
1853
|
-
descriptionTypographyMobileImage: {
|
|
1854
|
-
fontWeight: 400,
|
|
1855
|
-
lineHeight: "140%",
|
|
1856
|
-
fontSize: "1.25em",
|
|
1857
|
-
letterSpacing: "0.15px",
|
|
1858
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
1859
|
-
opacity: "70%",
|
|
1860
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1861
|
-
textAlign: "center"
|
|
1862
|
-
},
|
|
1863
|
-
// Description typography (mobile without image & desktop)
|
|
1864
|
-
descriptionTypography: {
|
|
1865
|
-
fontWeight: 400,
|
|
1866
|
-
lineHeight: "140%",
|
|
1867
|
-
letterSpacing: "0.15px",
|
|
1868
|
-
fontSize: "1.25em",
|
|
1869
|
-
color: e.secondaryColor,
|
|
1870
|
-
opacity: e.opacity,
|
|
1871
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1872
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
1873
|
-
},
|
|
1874
|
-
// Desktop title typography (centered)
|
|
1875
|
-
titleTypographyDesktop: {
|
|
1876
|
-
fontWeight: 700,
|
|
1877
|
-
lineHeight: "133%",
|
|
1878
|
-
letterSpacing: "0px",
|
|
1879
|
-
fontSize: "1.5em",
|
|
1880
|
-
color: e.textColor,
|
|
1881
|
-
fontFamily: e.fontFamilyPrimary
|
|
1882
|
-
},
|
|
1883
|
-
// Desktop description typography (centered)
|
|
1884
|
-
descriptionTypographyDesktop: {
|
|
1885
|
-
fontWeight: 400,
|
|
1886
|
-
lineHeight: "140%",
|
|
1887
|
-
letterSpacing: "0.15px",
|
|
1888
|
-
fontSize: "1.25em",
|
|
1889
|
-
color: e.secondaryColor,
|
|
1890
|
-
opacity: e.opacity,
|
|
1891
|
-
fontFamily: e.fontFamilyPrimary
|
|
1892
|
-
},
|
|
1893
|
-
// Image container (left position)
|
|
1894
|
-
imageContainerLeft: {
|
|
1895
|
-
display: e.isMobile ? "none" : "block",
|
|
1896
|
-
flex: "0.3",
|
|
1897
|
-
borderTopLeftRadius: e.borderRadius.md,
|
|
1898
|
-
borderBottomLeftRadius: e.borderRadius.md,
|
|
1899
|
-
overflow: "hidden",
|
|
1900
|
-
height: "auto",
|
|
1901
|
-
position: "relative"
|
|
1902
|
-
},
|
|
1903
|
-
// Image container (right position)
|
|
1904
|
-
imageContainerRight: {
|
|
1905
|
-
display: e.isMobile ? "none" : "block",
|
|
1906
|
-
flex: "0.3",
|
|
1907
|
-
borderTopRightRadius: "5px",
|
|
1908
|
-
borderBottomRightRadius: "5px",
|
|
1909
|
-
overflow: "hidden",
|
|
1910
|
-
height: "auto",
|
|
1911
|
-
position: "relative"
|
|
1912
|
-
},
|
|
1913
|
-
// Main content area
|
|
1914
|
-
mainContentArea: {
|
|
1915
|
-
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
1916
|
-
// display: props.isMobile ? "block" : "flex",
|
|
1917
|
-
display: "flex",
|
|
1918
|
-
flexDirection: "column",
|
|
1919
|
-
p: e.spacingScale.md,
|
|
1920
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
1921
|
-
},
|
|
1922
|
-
// Desktop headline container
|
|
1923
|
-
desktopHeadlineContainer: {
|
|
1924
|
-
display: e.isMobile ? "none" : "flex",
|
|
1925
|
-
flexDirection: "column",
|
|
1926
|
-
justifyContent: "space-between",
|
|
1927
|
-
gap: e.spacingScale["2xl"],
|
|
1928
|
-
textAlign: "center"
|
|
1929
|
-
},
|
|
1930
|
-
// Content container
|
|
1931
|
-
contentContainer: {
|
|
1932
|
-
display: "flex",
|
|
1933
|
-
flexDirection: "column",
|
|
1934
|
-
gap: e.spacingScale["3xs"]
|
|
1935
|
-
},
|
|
1936
|
-
// Question area
|
|
1937
|
-
questionArea: {
|
|
1938
|
-
display: "flex",
|
|
1939
|
-
flexDirection: "column",
|
|
1940
|
-
px: e.spacingScale.md
|
|
1941
|
-
},
|
|
1942
|
-
// Question container
|
|
1943
|
-
questionContainer: {
|
|
1944
|
-
display: "flex",
|
|
1945
|
-
flexDirection: "column",
|
|
1946
|
-
gap: e.isMobile ? e.spacingScale.md : e.spacingScale.lg
|
|
1947
|
-
},
|
|
1948
|
-
// Alert container
|
|
1949
|
-
alertContainer: {
|
|
1950
|
-
// py: props.spacingScale.md,
|
|
1951
|
-
display: "flex",
|
|
1952
|
-
flexDirection: "column",
|
|
1953
|
-
backdropFilter: "blur(4px)"
|
|
1954
|
-
},
|
|
1955
|
-
image: {
|
|
1956
|
-
width: "100%",
|
|
1957
|
-
height: "100%",
|
|
1958
|
-
objectFit: "cover"
|
|
1959
|
-
},
|
|
1960
|
-
// CTA container
|
|
1961
|
-
ctaContainer: {
|
|
1962
|
-
display: "flex",
|
|
1963
|
-
flexDirection: "column",
|
|
1964
|
-
alignItems: "center"
|
|
1965
|
-
},
|
|
1966
|
-
// CTA content wrapper
|
|
1967
|
-
ctaContentWrapper: {
|
|
1968
|
-
display: "flex",
|
|
1969
|
-
flexDirection: "column",
|
|
1970
|
-
justifyContent: "center",
|
|
1971
|
-
alignItems: "center",
|
|
1972
|
-
gap: e.spacingScale.lg
|
|
1973
|
-
},
|
|
1974
|
-
// Buttons container
|
|
1975
|
-
buttonsContainer: {
|
|
1976
|
-
display: "flex",
|
|
1977
|
-
flexDirection: e.isMobile ? "column" : "row",
|
|
1978
|
-
gap: e.spacingScale.md
|
|
1979
|
-
},
|
|
1980
|
-
// Try again button
|
|
1981
|
-
tryAgainButton: {
|
|
1982
|
-
display: "flex",
|
|
1983
|
-
py: e.spacingScale.xs,
|
|
1984
|
-
px: "16px",
|
|
1985
|
-
flexDirection: "column",
|
|
1986
|
-
justifyContent: "center",
|
|
1987
|
-
alignItems: "center",
|
|
1988
|
-
gap: "8px",
|
|
1989
|
-
borderRadius: e.borderRadius.xl,
|
|
1990
|
-
border: e.borderSize + " solid " + e.primaryColor,
|
|
1991
|
-
bgcolor: e.buttonBgColor,
|
|
1992
|
-
"&:hover": {
|
|
1993
|
-
bgcolor: e.onSurfaceColor,
|
|
1994
|
-
borderColor: e.primaryColor
|
|
1995
|
-
},
|
|
1996
|
-
fontSize: "0.8125em"
|
|
1997
|
-
},
|
|
1998
|
-
// Try again button content
|
|
1999
|
-
tryAgainButtonContent: {
|
|
2000
|
-
display: "flex",
|
|
2001
|
-
justifyContent: "center",
|
|
2002
|
-
alignItems: "center",
|
|
2003
|
-
gap: "8px",
|
|
2004
|
-
alignSelf: "stretch"
|
|
2005
|
-
},
|
|
2006
|
-
// Try again icon
|
|
2007
|
-
tryAgainIcon: {
|
|
2008
|
-
display: "flex",
|
|
2009
|
-
width: "16px",
|
|
2010
|
-
height: "16px",
|
|
2011
|
-
justifyContent: "flex-end",
|
|
2012
|
-
alignItems: "center",
|
|
2013
|
-
color: e.textPrimary
|
|
2014
|
-
},
|
|
2015
|
-
// Try again text
|
|
2016
|
-
tryAgainText: {
|
|
2017
|
-
color: e.textPrimary,
|
|
2018
|
-
textAlign: "center",
|
|
2019
|
-
fontFamily: e.fontFamilyPrimary,
|
|
2020
|
-
fontSize: "0.8125em",
|
|
2021
|
-
fontStyle: "normal",
|
|
2022
|
-
fontWeight: 500,
|
|
2023
|
-
lineHeight: "22px",
|
|
2024
|
-
letterSpacing: "0.46px",
|
|
2025
|
-
textTransform: "uppercase"
|
|
2026
|
-
},
|
|
2027
|
-
// Presented by container
|
|
2028
|
-
presentedByContainer: {
|
|
2029
|
-
px: e.spacingScale.md
|
|
2030
|
-
}
|
|
2031
|
-
};
|
|
2032
|
-
}, Me = we(/* @__PURE__ */ o.jsx("path", {
|
|
2033
|
-
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"
|
|
2034
|
-
}), "Replay"), xt = (e) => {
|
|
2035
|
-
var i;
|
|
2036
|
-
const n = ((i = e.entity.branding) == null ? void 0 : i.colors) || null, l = q(), s = Y(), r = ke(
|
|
2037
|
-
{
|
|
2038
|
-
images: e.entity.images || null,
|
|
2039
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
2040
|
-
},
|
|
2041
|
-
L.STANDARD
|
|
2042
|
-
), m = _(), c = A().primary, p = A().secondary, k = U(), C = (n == null ? void 0 : n.contentColor) || T().textColor, S = T().textPrimary, y = (n == null ? void 0 : n.primaryColor) || T().palette.primary.plainColor, h = (n == null ? void 0 : n.secondaryColor) || T().textColor, R = Io().size, w = T().surface, M = T().onSurface, v = J(
|
|
2043
|
-
L.STANDARD
|
|
2044
|
-
), { t: x } = ie(), I = e.imagePosition || "left", f = "60%", D = e.isApiError ? x("common.error.title") : x("common.authentication.accessRequired"), b = e.isApiError ? e.apiErrorMessage || x("common.error.message") : x("common.authentication.invalidOrMissingAuth"), d = Yo({
|
|
2045
|
-
finalImage: r,
|
|
2046
|
-
spacingScale: m,
|
|
2047
|
-
borderRadius: k,
|
|
2048
|
-
fontFamilyPrimary: c,
|
|
2049
|
-
fontFamilySecondary: p,
|
|
2050
|
-
textColor: C,
|
|
2051
|
-
secondaryColor: h,
|
|
2052
|
-
brandingColors: n,
|
|
2053
|
-
darkTextColor: l.colorSchemes.dark.textColor,
|
|
2054
|
-
opacity: f,
|
|
2055
|
-
imageBackgroundGradient: v,
|
|
2056
|
-
textPrimary: S,
|
|
2057
|
-
primaryColor: y,
|
|
2058
|
-
borderSize: R,
|
|
2059
|
-
buttonBgColor: w,
|
|
2060
|
-
onSurfaceColor: M,
|
|
2061
|
-
isMobile: s
|
|
2062
|
-
}), g = () => e.isApiError ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2063
|
-
/* @__PURE__ */ o.jsx(t, { sx: d.ctaContainer, children: /* @__PURE__ */ o.jsx(t, { sx: d.ctaContentWrapper, children: /* @__PURE__ */ o.jsx(t, { sx: d.buttonsContainer, children: /* @__PURE__ */ o.jsx(X, { sx: d.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ o.jsxs(t, { sx: d.tryAgainButtonContent, children: [
|
|
2064
|
-
/* @__PURE__ */ o.jsx(Me, { sx: d.tryAgainIcon }),
|
|
2065
|
-
/* @__PURE__ */ o.jsx(a, { sx: d.tryAgainText, children: e.tryAgainButtonText })
|
|
2066
|
-
] }) }) }) }) }),
|
|
2067
|
-
/* @__PURE__ */ o.jsx(t, { sx: d.presentedByContainer, children: e.renderPresentedBy(C) })
|
|
2068
|
-
] }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
2069
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2070
|
-
r ? /* @__PURE__ */ o.jsx(t, { sx: d.mobileHeadlineWithImage, children: /* @__PURE__ */ o.jsx(t, { sx: d.mobileHeadlineContent, children: /* @__PURE__ */ o.jsxs(t, { children: [
|
|
2071
|
-
/* @__PURE__ */ o.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: m["3xs"] }, children: [
|
|
2072
|
-
/* @__PURE__ */ o.jsx(
|
|
2073
|
-
a,
|
|
2074
|
-
{
|
|
2075
|
-
level: "body-sm",
|
|
2076
|
-
sx: d.headlineTypographyMobileImage,
|
|
2077
|
-
children: e.headline
|
|
2078
|
-
}
|
|
2079
|
-
),
|
|
2080
|
-
/* @__PURE__ */ o.jsx(
|
|
2081
|
-
P,
|
|
2082
|
-
{
|
|
2083
|
-
rulesDisplay: e.rulesDisplay,
|
|
2084
|
-
rules: e.entity.rules || ""
|
|
2085
|
-
}
|
|
2086
|
-
)
|
|
2087
|
-
] }),
|
|
2088
|
-
/* @__PURE__ */ o.jsxs(t, { sx: d.contentContainer, children: [
|
|
2089
|
-
/* @__PURE__ */ o.jsx(
|
|
2090
|
-
a,
|
|
2091
|
-
{
|
|
2092
|
-
level: "body-lg",
|
|
2093
|
-
sx: d.titleTypographyMobileImage,
|
|
2094
|
-
children: e.entity.title
|
|
2095
|
-
}
|
|
2096
|
-
),
|
|
2097
|
-
/* @__PURE__ */ o.jsx(
|
|
2098
|
-
a,
|
|
2099
|
-
{
|
|
2100
|
-
level: "body-md",
|
|
2101
|
-
sx: d.descriptionTypographyMobileImage,
|
|
2102
|
-
children: z(e.entity.description)
|
|
2103
|
-
}
|
|
2104
|
-
)
|
|
2105
|
-
] })
|
|
2106
|
-
] }) }) }) : /* @__PURE__ */ o.jsx(t, { sx: d.mobileHeadlineWithoutImage, children: /* @__PURE__ */ o.jsxs(t, { children: [
|
|
2107
|
-
/* @__PURE__ */ o.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: m["3xs"] }, children: [
|
|
2108
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: d.headlineTypography, children: e.headline }),
|
|
2109
|
-
/* @__PURE__ */ o.jsx(
|
|
2110
|
-
P,
|
|
2111
|
-
{
|
|
2112
|
-
rulesDisplay: e.rulesDisplay,
|
|
2113
|
-
rules: e.entity.rules || ""
|
|
2114
|
-
}
|
|
2115
|
-
)
|
|
2116
|
-
] }),
|
|
2117
|
-
/* @__PURE__ */ o.jsxs(t, { sx: d.contentContainer, children: [
|
|
2118
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: d.titleTypography, children: e.entity.title }),
|
|
2119
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-md", sx: d.descriptionTypography, children: z(e.entity.description) })
|
|
2120
|
-
] })
|
|
2121
|
-
] }) }),
|
|
2122
|
-
r && I === "left" && /* @__PURE__ */ o.jsx(t, { sx: d.imageContainerLeft, children: /* @__PURE__ */ o.jsx(
|
|
2123
|
-
"img",
|
|
2124
|
-
{
|
|
2125
|
-
src: r,
|
|
2126
|
-
alt: "illustration",
|
|
2127
|
-
style: d.image
|
|
2128
|
-
}
|
|
2129
|
-
) }),
|
|
2130
|
-
/* @__PURE__ */ o.jsxs(t, { sx: d.mainContentArea, children: [
|
|
2131
|
-
/* @__PURE__ */ o.jsx(t, { sx: { px: m.md }, children: /* @__PURE__ */ o.jsx(t, { sx: d.desktopHeadlineContainer, children: /* @__PURE__ */ o.jsxs(
|
|
2132
|
-
t,
|
|
2133
|
-
{
|
|
2134
|
-
sx: {
|
|
2135
|
-
display: "flex",
|
|
2136
|
-
flexDirection: "column",
|
|
2137
|
-
alignItems: "center"
|
|
2138
|
-
},
|
|
2139
|
-
children: [
|
|
2140
|
-
/* @__PURE__ */ o.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: m["3xs"] }, children: [
|
|
2141
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: d.headlineTypography, children: e.headline }),
|
|
2142
|
-
/* @__PURE__ */ o.jsx(
|
|
2143
|
-
P,
|
|
2144
|
-
{
|
|
2145
|
-
rulesDisplay: e.rulesDisplay,
|
|
2146
|
-
rules: e.entity.rules || ""
|
|
2147
|
-
}
|
|
2148
|
-
)
|
|
2149
|
-
] }),
|
|
2150
|
-
/* @__PURE__ */ o.jsxs(t, { sx: d.contentContainer, children: [
|
|
2151
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: d.titleTypographyDesktop, children: e.entity.title }),
|
|
2152
|
-
/* @__PURE__ */ o.jsx(
|
|
2153
|
-
a,
|
|
2154
|
-
{
|
|
2155
|
-
level: "body-md",
|
|
2156
|
-
sx: d.descriptionTypographyDesktop,
|
|
2157
|
-
children: z(e.entity.description)
|
|
2158
|
-
}
|
|
2159
|
-
)
|
|
2160
|
-
] })
|
|
2161
|
-
]
|
|
2162
|
-
}
|
|
2163
|
-
) }) }),
|
|
2164
|
-
/* @__PURE__ */ o.jsx(t, { sx: d.questionArea, children: /* @__PURE__ */ o.jsxs(t, { sx: d.questionContainer, children: [
|
|
2165
|
-
/* @__PURE__ */ o.jsx(t, { sx: d.alertContainer, children: /* @__PURE__ */ o.jsx(
|
|
2166
|
-
Ie,
|
|
2167
|
-
{
|
|
2168
|
-
variant: "error",
|
|
2169
|
-
title: D,
|
|
2170
|
-
message: b
|
|
2171
|
-
}
|
|
2172
|
-
) }),
|
|
2173
|
-
e.isApiError ? /* @__PURE__ */ o.jsx(o.Fragment, {}) : e.renderPresentedBy(C)
|
|
2174
|
-
] }) }),
|
|
2175
|
-
g()
|
|
2176
|
-
] }),
|
|
2177
|
-
r && I === "right" && /* @__PURE__ */ o.jsx(t, { sx: d.imageContainerRight, children: /* @__PURE__ */ o.jsx(
|
|
2178
|
-
"img",
|
|
2179
|
-
{
|
|
2180
|
-
src: r,
|
|
2181
|
-
alt: "illustration",
|
|
2182
|
-
style: d.image
|
|
2183
|
-
}
|
|
2184
|
-
) })
|
|
2185
|
-
] });
|
|
2186
|
-
}, Jo = (e) => {
|
|
2187
|
-
var i, n, l;
|
|
2188
|
-
return {
|
|
2189
|
-
// Main headline section with background image
|
|
2190
|
-
headlineSection: {
|
|
2191
|
-
display: "flex",
|
|
2192
|
-
flexDirection: "column",
|
|
2193
|
-
justifyContent: "space-between",
|
|
2194
|
-
gap: "10px",
|
|
2195
|
-
flex: "0.5",
|
|
2196
|
-
backgroundImage: `url(${e.finalImage})`,
|
|
2197
|
-
backgroundSize: "cover",
|
|
2198
|
-
backgroundPosition: "center",
|
|
2199
|
-
borderTopLeftRadius: e.mdBorderRadius,
|
|
2200
|
-
borderTopRightRadius: e.isMobile ? e.mdBorderRadius : 0,
|
|
2201
|
-
borderBottomLeftRadius: e.isMobile ? 0 : e.mdBorderRadius,
|
|
2202
|
-
overflow: "hidden",
|
|
2203
|
-
height: "auto",
|
|
2204
|
-
position: "relative",
|
|
2205
|
-
minHeight: e.isMobile ? "210px" : "430px",
|
|
2206
|
-
"&::before": {
|
|
2207
|
-
content: '""',
|
|
2208
|
-
position: "absolute",
|
|
2209
|
-
width: "100%",
|
|
2210
|
-
height: "100%",
|
|
2211
|
-
background: e.imageBackgroundGradient,
|
|
2212
|
-
borderTopLeftRadius: "5px",
|
|
2213
|
-
borderTopRightRadius: "5px"
|
|
2214
|
-
}
|
|
2215
|
-
},
|
|
2216
|
-
// Headline content wrapper
|
|
2217
|
-
headlineContent: {
|
|
2218
|
-
zIndex: 1,
|
|
2219
|
-
height: "100%",
|
|
2220
|
-
p: e.spacingScale.xl,
|
|
2221
|
-
gap: e.spacingScale.xl,
|
|
2222
|
-
display: "flex",
|
|
2223
|
-
flexDirection: "column",
|
|
2224
|
-
justifyContent: "space-between"
|
|
2225
|
-
},
|
|
2226
|
-
// Headline text
|
|
2227
|
-
headlineText: {
|
|
2228
|
-
fontWeight: 500,
|
|
2229
|
-
lineHeight: "166%",
|
|
2230
|
-
letterSpacing: "1px",
|
|
2231
|
-
fontSize: "0.75em",
|
|
2232
|
-
color: ((i = e.brandingColors) == null ? void 0 : i.secondaryColor) || e.darkTextColor,
|
|
2233
|
-
opacity: "70%",
|
|
2234
|
-
textTransform: "uppercase",
|
|
2235
|
-
fontFamily: e.fontFamilySecondary,
|
|
2236
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
2237
|
-
},
|
|
2238
|
-
// Content container
|
|
2239
|
-
contentContainer: {
|
|
2240
|
-
display: "flex",
|
|
2241
|
-
flexDirection: "column",
|
|
2242
|
-
gap: e.spacingScale["3xs"]
|
|
2243
|
-
},
|
|
2244
|
-
// Title text
|
|
2245
|
-
titleText: {
|
|
2246
|
-
fontWeight: 700,
|
|
2247
|
-
lineHeight: "133%",
|
|
2248
|
-
fontSize: "1.5em",
|
|
2249
|
-
letterSpacing: "0.15px",
|
|
2250
|
-
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
2251
|
-
fontFamily: e.fontFamilyPrimary,
|
|
2252
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
2253
|
-
},
|
|
2254
|
-
// Description text
|
|
2255
|
-
descriptionText: {
|
|
2256
|
-
fontWeight: 400,
|
|
2257
|
-
lineHeight: "140%",
|
|
2258
|
-
fontSize: "1.25em",
|
|
2259
|
-
letterSpacing: "0.15px",
|
|
2260
|
-
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
2261
|
-
opacity: "70%",
|
|
2262
|
-
fontFamily: e.fontFamilyPrimary,
|
|
2263
|
-
textAlign: e.isMobile ? "center" : "left"
|
|
2264
|
-
},
|
|
2265
|
-
// Presented by desktop container
|
|
2266
|
-
presentedByDesktop: {
|
|
2267
|
-
display: e.isMobile ? "none" : "block"
|
|
2268
|
-
},
|
|
2269
|
-
// Question area (error section)
|
|
2270
|
-
questionArea: {
|
|
2271
|
-
flex: "0.5",
|
|
2272
|
-
display: "flex",
|
|
2273
|
-
flexDirection: "column",
|
|
2274
|
-
justifyContent: "center",
|
|
2275
|
-
gap: e.spacingScale.md,
|
|
2276
|
-
p: e.spacingScale.lg
|
|
2277
|
-
},
|
|
2278
|
-
// Presented by mobile container
|
|
2279
|
-
presentedByMobile: {
|
|
2280
|
-
display: e.isMobile ? "block" : "none"
|
|
2281
|
-
},
|
|
2282
|
-
// CTA container
|
|
2283
|
-
ctaContainer: {
|
|
2284
|
-
display: "flex",
|
|
2285
|
-
flexDirection: "column",
|
|
2286
|
-
alignItems: "center"
|
|
2287
|
-
},
|
|
2288
|
-
// CTA content wrapper
|
|
2289
|
-
ctaContentWrapper: {
|
|
2290
|
-
display: "flex",
|
|
2291
|
-
flexDirection: "column",
|
|
2292
|
-
justifyContent: "center",
|
|
2293
|
-
alignItems: "center",
|
|
2294
|
-
gap: e.spacingScale.lg
|
|
2295
|
-
},
|
|
2296
|
-
// Buttons container
|
|
2297
|
-
buttonsContainer: {
|
|
2298
|
-
display: "flex",
|
|
2299
|
-
flexDirection: "column",
|
|
2300
|
-
gap: "16px"
|
|
2301
|
-
},
|
|
2302
|
-
// Try again button
|
|
2303
|
-
tryAgainButton: {
|
|
2304
|
-
display: "flex",
|
|
2305
|
-
py: e.spacingScale.xs,
|
|
2306
|
-
px: "16px",
|
|
2307
|
-
flexDirection: "column",
|
|
2308
|
-
justifyContent: "center",
|
|
2309
|
-
alignItems: "center",
|
|
2310
|
-
gap: "8px",
|
|
2311
|
-
borderRadius: e.borderRadius.xl,
|
|
2312
|
-
color: e.textPrimary,
|
|
2313
|
-
bgcolor: e.surfaceColor,
|
|
2314
|
-
"&:hover": {
|
|
2315
|
-
bgcolor: e.onSurfaceColor
|
|
2316
|
-
},
|
|
2317
|
-
fontSize: "0.9375em"
|
|
2318
|
-
},
|
|
2319
|
-
// Try again button content
|
|
2320
|
-
tryAgainButtonContent: {
|
|
2321
|
-
display: "flex",
|
|
2322
|
-
justifyContent: "center",
|
|
2323
|
-
alignItems: "center",
|
|
2324
|
-
gap: "8px",
|
|
2325
|
-
alignSelf: "stretch"
|
|
2326
|
-
},
|
|
2327
|
-
// Try again icon
|
|
2328
|
-
tryAgainIcon: {
|
|
2329
|
-
display: "flex",
|
|
2330
|
-
width: "16px",
|
|
2331
|
-
height: "16px",
|
|
2332
|
-
justifyContent: "flex-end",
|
|
2333
|
-
alignItems: "center",
|
|
2334
|
-
color: e.textPrimary
|
|
2335
|
-
},
|
|
2336
|
-
// Try again text
|
|
2337
|
-
tryAgainText: {
|
|
2338
|
-
color: e.textPrimary,
|
|
2339
|
-
textAlign: "center",
|
|
2340
|
-
fontFamily: e.fontFamilyPrimary,
|
|
2341
|
-
fontSize: "0.8125em",
|
|
2342
|
-
fontStyle: "normal",
|
|
2343
|
-
fontWeight: 500,
|
|
2344
|
-
lineHeight: "22px",
|
|
2345
|
-
letterSpacing: "0.46px",
|
|
2346
|
-
textTransform: "uppercase"
|
|
2347
|
-
}
|
|
2348
|
-
};
|
|
2349
|
-
}, gt = (e) => {
|
|
2350
|
-
var i;
|
|
2351
|
-
const n = q(), l = Y(), s = ((i = e.entity.branding) == null ? void 0 : i.colors) || null, r = ke(
|
|
2352
|
-
{
|
|
2353
|
-
images: e.entity.images || null,
|
|
2354
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl || ""
|
|
2355
|
-
},
|
|
2356
|
-
L.SPLIT
|
|
2357
|
-
), { t: m } = ie(), c = T().textPrimary, p = T().surface, k = T().onSurface, C = (s == null ? void 0 : s.backgroundColor) || T().surfaceVariant, S = U(), y = A().secondary, h = A().primary, R = U().md, w = T().textColor, M = _(), v = J(
|
|
2358
|
-
L.SPLIT
|
|
2359
|
-
), x = e.isApiError ? m("common.error.title") : m("common.authentication.accessRequired"), I = e.isApiError ? e.apiErrorMessage || m("common.error.message") : m("common.authentication.invalidOrMissingAuth"), f = Jo({
|
|
2360
|
-
finalImage: r,
|
|
2361
|
-
spacingScale: M,
|
|
2362
|
-
borderRadius: U(),
|
|
2363
|
-
fontFamilyPrimary: h,
|
|
2364
|
-
fontFamilySecondary: y,
|
|
2365
|
-
mdBorderRadius: R,
|
|
2366
|
-
brandingColors: s,
|
|
2367
|
-
darkTextColor: n.colorSchemes.dark.textColor,
|
|
2368
|
-
imageBackgroundGradient: v,
|
|
2369
|
-
textPrimary: c,
|
|
2370
|
-
surfaceColor: p,
|
|
2371
|
-
onSurfaceColor: k,
|
|
2372
|
-
isMobile: l
|
|
2373
|
-
}), D = () => e.isApiError ? /* @__PURE__ */ o.jsx(
|
|
2374
|
-
t,
|
|
2375
|
-
{
|
|
2376
|
-
sx: {
|
|
2377
|
-
p: M.lg,
|
|
2378
|
-
gap: M.lg,
|
|
2379
|
-
display: "flex",
|
|
2380
|
-
flexDirection: "column",
|
|
2381
|
-
backdropFilter: "blur(4px)",
|
|
2382
|
-
bgcolor: `rgba(${C ? Re(C || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
2383
|
-
borderRadius: S.sm
|
|
2384
|
-
},
|
|
2385
|
-
children: /* @__PURE__ */ o.jsx(t, { sx: f.ctaContainer, children: /* @__PURE__ */ o.jsx(t, { sx: f.ctaContentWrapper, children: /* @__PURE__ */ o.jsx(t, { sx: f.buttonsContainer, children: /* @__PURE__ */ o.jsx(X, { sx: f.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ o.jsxs(t, { sx: f.tryAgainButtonContent, children: [
|
|
2386
|
-
/* @__PURE__ */ o.jsx(Me, { sx: f.tryAgainIcon }),
|
|
2387
|
-
/* @__PURE__ */ o.jsx(a, { sx: f.tryAgainText, children: e.tryAgainButtonText })
|
|
2388
|
-
] }) }) }) }) })
|
|
2389
|
-
}
|
|
2390
|
-
) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
2391
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2392
|
-
/* @__PURE__ */ o.jsx(t, { sx: f.headlineSection, children: /* @__PURE__ */ o.jsxs(t, { sx: f.headlineContent, children: [
|
|
2393
|
-
/* @__PURE__ */ o.jsxs(t, { children: [
|
|
2394
|
-
/* @__PURE__ */ o.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: M["3xs"] }, children: [
|
|
2395
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: f.headlineText, children: e.headline }),
|
|
2396
|
-
/* @__PURE__ */ o.jsx(
|
|
2397
|
-
P,
|
|
2398
|
-
{
|
|
2399
|
-
rulesDisplay: e.rulesDisplay,
|
|
2400
|
-
rules: e.entity.rules || ""
|
|
2401
|
-
}
|
|
2402
|
-
)
|
|
2403
|
-
] }),
|
|
2404
|
-
/* @__PURE__ */ o.jsxs(t, { sx: f.contentContainer, children: [
|
|
2405
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-lg", sx: f.titleText, children: e.entity.title }),
|
|
2406
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-md", sx: f.descriptionText, children: z(e.entity.description) })
|
|
2407
|
-
] })
|
|
2408
|
-
] }),
|
|
2409
|
-
/* @__PURE__ */ o.jsx(t, { sx: f.presentedByDesktop, children: e.renderPresentedBy(
|
|
2410
|
-
(s == null ? void 0 : s.contentColor) || n.colorSchemes.dark.textColor
|
|
2411
|
-
) })
|
|
2412
|
-
] }) }),
|
|
2413
|
-
/* @__PURE__ */ o.jsxs(t, { sx: f.questionArea, children: [
|
|
2414
|
-
/* @__PURE__ */ o.jsx(
|
|
2415
|
-
Ie,
|
|
2416
|
-
{
|
|
2417
|
-
variant: "error",
|
|
2418
|
-
title: x,
|
|
2419
|
-
message: I
|
|
2420
|
-
}
|
|
2421
|
-
),
|
|
2422
|
-
D(),
|
|
2423
|
-
/* @__PURE__ */ o.jsx(t, { sx: f.presentedByMobile, children: e.renderPresentedBy((s == null ? void 0 : s.contentColor) || w) })
|
|
2424
|
-
] })
|
|
2425
|
-
] });
|
|
2426
|
-
}, Zo = (e) => {
|
|
2427
|
-
var i;
|
|
2428
|
-
return {
|
|
2429
|
-
// Main container with background overlay
|
|
2430
|
-
mainContainer: {
|
|
2431
|
-
display: "flex",
|
|
2432
|
-
flexDirection: "column",
|
|
2433
|
-
justifyContent: "space-between",
|
|
2434
|
-
gap: "40px",
|
|
2435
|
-
p: e.spacingScale.xl,
|
|
2436
|
-
boxShadow: "md",
|
|
2437
|
-
border: (i = e.brandingColors) != null && i.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
2438
|
-
overflow: "hidden",
|
|
2439
|
-
backgroundImage: e.backgroundImage,
|
|
2440
|
-
backgroundSize: "cover",
|
|
2441
|
-
backgroundPosition: "center",
|
|
2442
|
-
position: "relative",
|
|
2443
|
-
borderRadius: e.borderRadius.md,
|
|
2444
|
-
minHeight: "250px",
|
|
2445
|
-
"&::before": {
|
|
2446
|
-
content: '""',
|
|
2447
|
-
position: "absolute",
|
|
2448
|
-
background: e.imageBackgroundGradient,
|
|
2449
|
-
top: 0,
|
|
2450
|
-
left: 0,
|
|
2451
|
-
right: 0,
|
|
2452
|
-
bottom: 0,
|
|
2453
|
-
borderRadius: "inherit",
|
|
2454
|
-
zIndex: 0
|
|
2455
|
-
}
|
|
2456
|
-
},
|
|
2457
|
-
// Headline section wrapper
|
|
2458
|
-
headlineSection: {
|
|
2459
|
-
display: "flex",
|
|
2460
|
-
justifyContent: "space-between",
|
|
2461
|
-
flex: "1 0 0",
|
|
2462
|
-
alignSelf: "stretch"
|
|
2463
|
-
},
|
|
2464
|
-
// Headline content container
|
|
2465
|
-
headlineContent: {
|
|
2466
|
-
display: "flex",
|
|
2467
|
-
flexDirection: "column",
|
|
2468
|
-
alignItems: "flex-start",
|
|
2469
|
-
flex: "1 0 0",
|
|
2470
|
-
gap: "16px"
|
|
2471
|
-
},
|
|
2472
|
-
// Headline content with z-index
|
|
2473
|
-
headlineContentInner: {
|
|
2474
|
-
zIndex: 10
|
|
2475
|
-
},
|
|
2476
|
-
// Headline typography
|
|
2477
|
-
headlineText: {
|
|
2478
|
-
fontWeight: 500,
|
|
2479
|
-
lineHeight: "166%",
|
|
2480
|
-
letterSpacing: "1px",
|
|
2481
|
-
textAlign: e.isMobile ? "center" : "left",
|
|
2482
|
-
color: e.secondaryColor,
|
|
2483
|
-
opacity: "70%",
|
|
2484
|
-
textTransform: "uppercase",
|
|
2485
|
-
fontFamily: e.fontFamilySecondary,
|
|
2486
|
-
fontSize: "0.75em"
|
|
2487
|
-
},
|
|
2488
|
-
// Content container
|
|
2489
|
-
contentContainer: {
|
|
2490
|
-
display: "flex",
|
|
2491
|
-
flexDirection: "column",
|
|
2492
|
-
gap: e.spacingScale["3xs"]
|
|
2493
|
-
},
|
|
2494
|
-
// Title typography
|
|
2495
|
-
titleText: {
|
|
2496
|
-
fontWeight: 700,
|
|
2497
|
-
lineHeight: "133%",
|
|
2498
|
-
letterSpacing: "0px",
|
|
2499
|
-
textAlign: e.isMobile ? "center" : "left",
|
|
2500
|
-
fontSize: "1.5em",
|
|
2501
|
-
color: e.darkTextColor,
|
|
2502
|
-
fontFamily: e.fontFamilyPrimary
|
|
2503
|
-
},
|
|
2504
|
-
// Description typography
|
|
2505
|
-
descriptionText: {
|
|
2506
|
-
fontWeight: 400,
|
|
2507
|
-
lineHeight: "140%",
|
|
2508
|
-
letterSpacing: "0.15px",
|
|
2509
|
-
fontSize: "1.25em",
|
|
2510
|
-
textAlign: e.isMobile ? "center" : "left",
|
|
2511
|
-
color: e.secondaryColor,
|
|
2512
|
-
opacity: "70%",
|
|
2513
|
-
fontFamily: e.fontFamilyPrimary
|
|
2514
|
-
},
|
|
2515
|
-
// Bottom section container
|
|
2516
|
-
bottomSection: {
|
|
2517
|
-
display: "flex",
|
|
2518
|
-
flexDirection: "column",
|
|
2519
|
-
gap: "24px",
|
|
2520
|
-
zIndex: 1
|
|
2521
|
-
},
|
|
2522
|
-
// Footer container
|
|
2523
|
-
footerContainer: {
|
|
2524
|
-
display: "flex",
|
|
2525
|
-
alignItems: "center",
|
|
2526
|
-
justifyContent: "space-between",
|
|
2527
|
-
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
2528
|
-
gap: e.spacingScale.md
|
|
2529
|
-
},
|
|
2530
|
-
ctaSection: {
|
|
2531
|
-
borderRadius: e.borderRadius.md,
|
|
2532
|
-
py: e.spacingScale.md,
|
|
2533
|
-
display: "flex",
|
|
2534
|
-
flexDirection: "column",
|
|
2535
|
-
alignItems: "center",
|
|
2536
|
-
alignSelf: "stretch",
|
|
2537
|
-
gap: e.spacingScale.md,
|
|
2538
|
-
backdropFilter: "blur(4px)",
|
|
2539
|
-
position: "relative",
|
|
2540
|
-
"&::before": {
|
|
2541
|
-
content: '""',
|
|
2542
|
-
position: "absolute",
|
|
2543
|
-
top: 0,
|
|
2544
|
-
left: 0,
|
|
2545
|
-
right: 0,
|
|
2546
|
-
bottom: 0,
|
|
2547
|
-
backgroundColor: e.contentBgColor,
|
|
2548
|
-
opacity: 0.25,
|
|
2549
|
-
borderRadius: "inherit",
|
|
2550
|
-
zIndex: 0,
|
|
2551
|
-
backdropFilter: "blur(4px)"
|
|
2552
|
-
},
|
|
2553
|
-
"& > *": {
|
|
2554
|
-
position: "relative",
|
|
2555
|
-
zIndex: 1
|
|
2556
|
-
}
|
|
2557
|
-
},
|
|
2558
|
-
// Buttons container
|
|
2559
|
-
buttonsContainer: {
|
|
2560
|
-
display: "flex",
|
|
2561
|
-
flexDirection: "column",
|
|
2562
|
-
gap: e.spacingScale.md
|
|
2563
|
-
},
|
|
2564
|
-
// Try again button
|
|
2565
|
-
tryAgainButton: {
|
|
2566
|
-
display: "flex",
|
|
2567
|
-
minHeight: "48px",
|
|
2568
|
-
py: "12px",
|
|
2569
|
-
pr: "24px",
|
|
2570
|
-
pl: "16px",
|
|
2571
|
-
flexDirection: "column",
|
|
2572
|
-
justifyContent: "center",
|
|
2573
|
-
alignItems: "center",
|
|
2574
|
-
gap: "8px",
|
|
2575
|
-
borderRadius: e.borderRadius.xl,
|
|
2576
|
-
bgcolor: e.onSurfaceColor,
|
|
2577
|
-
"&:hover": {
|
|
2578
|
-
bgcolor: e.surfaceVariantColor
|
|
2579
|
-
},
|
|
2580
|
-
fontSize: "0.9375em"
|
|
2581
|
-
},
|
|
2582
|
-
// Try again button content
|
|
2583
|
-
tryAgainButtonContent: {
|
|
2584
|
-
display: "flex",
|
|
2585
|
-
justifyContent: "center",
|
|
2586
|
-
alignItems: "center",
|
|
2587
|
-
gap: "8px",
|
|
2588
|
-
alignSelf: "stretch"
|
|
2589
|
-
},
|
|
2590
|
-
// Try again icon
|
|
2591
|
-
tryAgainIcon: {
|
|
2592
|
-
display: "flex",
|
|
2593
|
-
width: "24px",
|
|
2594
|
-
height: "24px",
|
|
2595
|
-
justifyContent: "center",
|
|
2596
|
-
alignItems: "center",
|
|
2597
|
-
color: e.textPrimary
|
|
2598
|
-
},
|
|
2599
|
-
// Try again text
|
|
2600
|
-
tryAgainText: {
|
|
2601
|
-
color: e.textPrimary,
|
|
2602
|
-
textAlign: "center",
|
|
2603
|
-
fontFamily: e.fontFamilyPrimary,
|
|
2604
|
-
fontSize: "0.9375em",
|
|
2605
|
-
fontStyle: "normal",
|
|
2606
|
-
fontWeight: 500,
|
|
2607
|
-
lineHeight: "24px",
|
|
2608
|
-
letterSpacing: "0.46px",
|
|
2609
|
-
textTransform: "uppercase"
|
|
2610
|
-
}
|
|
2611
|
-
};
|
|
2612
|
-
}, mt = (e) => {
|
|
2613
|
-
const i = _(), n = q(), l = Y(), { t: s } = ie(), r = J(
|
|
2614
|
-
L.OVERLAY
|
|
2615
|
-
), { brandingImage: m, brandingColors: c, brandingLogo: p } = wo(e.entity.branding || null), k = m || ke(
|
|
2616
|
-
{
|
|
2617
|
-
images: e.entity.images || null,
|
|
2618
|
-
imagePlaceholder: e.defaultImagePlaceholderUrl || ""
|
|
2619
|
-
},
|
|
2620
|
-
L.OVERLAY
|
|
2621
|
-
), C = Je(k), S = (c == null ? void 0 : c.contentColor) || n.colorSchemes.dark.textColor, y = n.customFontFamily.dark.primary, h = n.customFontFamily.dark.secondary, R = n.customRadius.dark, w = n.border.dark.size, M = (c == null ? void 0 : c.backgroundColor) || n.colorSchemes.dark.surfaceVariant, v = n.colorSchemes.dark.onSurface, x = n.colorSchemes.dark.surfaceVariant, I = n.colorSchemes.dark.textPrimary, f = e.isApiError ? s("common.error.title") : s("common.authentication.accessRequired"), D = e.isApiError ? e.apiErrorMessage || s("common.error.message") : s("common.authentication.invalidOrMissingAuth"), b = Zo({
|
|
2622
|
-
spacingScale: i,
|
|
2623
|
-
brandingColors: c,
|
|
2624
|
-
secondaryColor: S,
|
|
2625
|
-
fontFamilyPrimary: y,
|
|
2626
|
-
fontFamilySecondary: h,
|
|
2627
|
-
borderRadius: R,
|
|
2628
|
-
borderSize: w,
|
|
2629
|
-
darkTextColor: n.colorSchemes.dark.textColor,
|
|
2630
|
-
backgroundImage: C,
|
|
2631
|
-
imageBackgroundGradient: r,
|
|
2632
|
-
contentBgColor: M,
|
|
2633
|
-
onSurfaceColor: v,
|
|
2634
|
-
surfaceVariantColor: x,
|
|
2635
|
-
textPrimary: I,
|
|
2636
|
-
isMobile: l
|
|
2637
|
-
}), d = () => e.isApiError ? /* @__PURE__ */ o.jsx(t, { sx: b.ctaSection, children: /* @__PURE__ */ o.jsx(t, { sx: b.buttonsContainer, children: /* @__PURE__ */ o.jsx(X, { sx: b.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ o.jsxs(t, { sx: b.tryAgainButtonContent, children: [
|
|
2638
|
-
/* @__PURE__ */ o.jsx(Me, { sx: b.tryAgainIcon }),
|
|
2639
|
-
/* @__PURE__ */ o.jsx(a, { sx: b.tryAgainText, children: e.tryAgainButtonText })
|
|
2640
|
-
] }) }) }) }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
2641
|
-
return /* @__PURE__ */ o.jsxs(t, { sx: b.mainContainer, children: [
|
|
2642
|
-
/* @__PURE__ */ o.jsx(t, { children: /* @__PURE__ */ o.jsx(t, { sx: b.headlineSection, children: /* @__PURE__ */ o.jsx(t, { sx: b.headlineContent, children: /* @__PURE__ */ o.jsxs(t, { sx: b.headlineContentInner, children: [
|
|
2643
|
-
/* @__PURE__ */ o.jsxs(t, { sx: { display: "flex", alignItems: "center", gap: i["3xs"] }, children: [
|
|
2644
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-sm", sx: b.headlineText, children: e.headline }),
|
|
2645
|
-
/* @__PURE__ */ o.jsx(
|
|
2646
|
-
P,
|
|
2647
|
-
{
|
|
2648
|
-
rulesDisplay: e.rulesDisplay,
|
|
2649
|
-
isOverlayVariant: !0,
|
|
2650
|
-
rules: e.entity.rules || ""
|
|
2651
|
-
}
|
|
2652
|
-
)
|
|
2653
|
-
] }),
|
|
2654
|
-
/* @__PURE__ */ o.jsxs(t, { sx: b.contentContainer, children: [
|
|
2655
|
-
/* @__PURE__ */ o.jsx(a, { level: "h4", sx: b.titleText, children: e.entity.title }),
|
|
2656
|
-
/* @__PURE__ */ o.jsx(a, { level: "body-lg", sx: b.descriptionText, children: z(e.entity.description) })
|
|
2657
|
-
] })
|
|
2658
|
-
] }) }) }) }),
|
|
2659
|
-
/* @__PURE__ */ o.jsxs(t, { sx: b.bottomSection, children: [
|
|
2660
|
-
/* @__PURE__ */ o.jsx(
|
|
2661
|
-
Ie,
|
|
2662
|
-
{
|
|
2663
|
-
variant: "error",
|
|
2664
|
-
title: f,
|
|
2665
|
-
message: D
|
|
2666
|
-
}
|
|
2667
|
-
),
|
|
2668
|
-
d(),
|
|
2669
|
-
p ? /* @__PURE__ */ o.jsx(t, { sx: b.footerContainer, children: e.renderPresentedBy(n.colorSchemes.dark.textColor) }) : /* @__PURE__ */ o.jsx(o.Fragment, {})
|
|
2670
|
-
] })
|
|
2671
|
-
] });
|
|
2672
|
-
}, ut = ({
|
|
2673
|
-
notFoundTitle: e,
|
|
2674
|
-
notFoundMessage: i
|
|
2675
|
-
}) => {
|
|
2676
|
-
var n, l;
|
|
2677
|
-
const s = (l = (n = T().palette) == null ? void 0 : n.danger) == null ? void 0 : l.plainColor, r = T().textSecondary, m = _(), c = A().primary, p = A().secondary;
|
|
2678
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2679
|
-
t,
|
|
2680
|
-
{
|
|
2681
|
-
sx: {
|
|
2682
|
-
display: "flex",
|
|
2683
|
-
flexDirection: "column",
|
|
2684
|
-
justifyContent: "center",
|
|
2685
|
-
alignItems: "center",
|
|
2686
|
-
width: "100%",
|
|
2687
|
-
minHeight: "300px",
|
|
2688
|
-
padding: "32px 24px",
|
|
2689
|
-
textAlign: "center"
|
|
2690
|
-
},
|
|
2691
|
-
children: [
|
|
2692
|
-
/* @__PURE__ */ o.jsx(
|
|
2693
|
-
t,
|
|
2694
|
-
{
|
|
2695
|
-
sx: {
|
|
2696
|
-
width: "80px",
|
|
2697
|
-
height: "80px",
|
|
2698
|
-
borderRadius: "50%",
|
|
2699
|
-
backgroundColor: `${s}15`,
|
|
2700
|
-
// 15% opacity
|
|
2701
|
-
display: "flex",
|
|
2702
|
-
alignItems: "center",
|
|
2703
|
-
justifyContent: "center",
|
|
2704
|
-
marginBottom: "24px"
|
|
2705
|
-
},
|
|
2706
|
-
children: /* @__PURE__ */ o.jsx(
|
|
2707
|
-
t,
|
|
2708
|
-
{
|
|
2709
|
-
sx: {
|
|
2710
|
-
fontSize: "32px",
|
|
2711
|
-
color: s,
|
|
2712
|
-
fontWeight: "bold",
|
|
2713
|
-
fontFamily: c
|
|
2714
|
-
},
|
|
2715
|
-
children: "?"
|
|
2716
|
-
}
|
|
2717
|
-
)
|
|
2718
|
-
}
|
|
2719
|
-
),
|
|
2720
|
-
/* @__PURE__ */ o.jsx(
|
|
2721
|
-
a,
|
|
2722
|
-
{
|
|
2723
|
-
level: "h4",
|
|
2724
|
-
sx: {
|
|
2725
|
-
color: s,
|
|
2726
|
-
marginBottom: m.xs,
|
|
2727
|
-
fontWeight: "600",
|
|
2728
|
-
fontFamily: c
|
|
2729
|
-
},
|
|
2730
|
-
children: e
|
|
2731
|
-
}
|
|
2732
|
-
),
|
|
2733
|
-
/* @__PURE__ */ o.jsx(
|
|
2734
|
-
a,
|
|
2735
|
-
{
|
|
2736
|
-
level: "body-md",
|
|
2737
|
-
sx: {
|
|
2738
|
-
color: r,
|
|
2739
|
-
lineHeight: 1.5,
|
|
2740
|
-
fontFamily: p
|
|
2741
|
-
},
|
|
2742
|
-
children: i
|
|
2743
|
-
}
|
|
2744
|
-
)
|
|
2745
|
-
]
|
|
2746
|
-
}
|
|
2747
|
-
);
|
|
2748
|
-
};
|
|
2749
|
-
export {
|
|
2750
|
-
ct as B,
|
|
2751
|
-
pt as D,
|
|
2752
|
-
lt as H,
|
|
2753
|
-
xt as L,
|
|
2754
|
-
at as P,
|
|
2755
|
-
je as T,
|
|
2756
|
-
ut as V,
|
|
2757
|
-
dt as W,
|
|
2758
|
-
_o as b,
|
|
2759
|
-
gt as j,
|
|
2760
|
-
Me as l,
|
|
2761
|
-
mt as p,
|
|
2762
|
-
P as v,
|
|
2763
|
-
st as z
|
|
2764
|
-
};
|