fansunited-frontend-components 0.0.98 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Betslip.js +2 -2
- package/ChanceGame.js +952 -1467
- package/ClassicQuizPlay.js +2 -2
- package/CollectLead.js +405 -1163
- package/CompetitionStatistics.js +2042 -2215
- package/CompetitorCard.js +4251 -5085
- package/Discussion.js +2 -2
- package/EitherOrPlay.js +2 -2
- package/EventCard.js +6062 -7544
- package/EventGamePlay.js +2 -2
- package/Leaderboard.js +556 -849
- package/List.js +689 -718
- package/MatchQuizPlay.js +2 -2
- package/Odds.js +50 -42
- package/PersonalityQuizPlay.js +2 -2
- package/PickThePair.js +925 -1824
- package/PlayerOfTheMatch.js +2106 -2207
- package/PollVote.js +2 -2
- package/Predictor.js +4208 -18675
- package/README.md +1 -1
- package/Standings.js +1014 -1336
- package/TopX.js +3223 -17005
- package/chunks/{ChanceGameEmbedVariant-CVys-3Zh.js → ChanceGameEmbedVariant-z8XYzgDW.js} +2 -2
- package/chunks/OddsSkeleton-DP5Yfqpr.js +522 -0
- package/chunks/PickOneOfX-IvE4OvyT.js +3146 -0
- package/chunks/index-BNl8scz6.js +4 -0
- package/chunks/index-CSa2JU4m.js +4 -0
- package/chunks/index-CVRI82Gb.js +4 -0
- package/chunks/index-Cd1dg0KI.js +4 -0
- package/chunks/index-Cei2fzi7.js +4 -0
- package/chunks/index-Cxb4wEJU.js +4 -0
- package/chunks/index-w1LGN5dz.js +4 -0
- package/chunks/main-07vzblS8.js +2091 -0
- package/chunks/main-C7X4dM_P.js +4827 -0
- package/chunks/main-D_QDfmAw.js +6417 -0
- package/chunks/main-DdL0UekL.js +4775 -0
- package/chunks/main-DmBfwyb4.js +2992 -0
- package/chunks/main-LEE8n2cG.js +3117 -0
- package/chunks/main-P2WNvBZE.js +1804 -0
- package/chunks/main-gV165E-A.js +1928 -0
- package/chunks/predictionsHelpers-fwXaMadu.js +10063 -0
- package/chunks/{withVersionStamp-T8seRk9h.js → withVersionStamp-CPDfSE5H.js} +1 -1
- package/package.json +2 -6
- package/withVersionStamp.d.ts.map +1 -1
- package/chunks/OddsSkeleton-ClJE2xhR.js +0 -26
- package/chunks/OddsStrip-BnSp5TXa.js +0 -383
- package/chunks/PickOneOfX-DaJtkbCw.js +0 -4206
- package/chunks/chevron-left-CxfCSZcr.js +0 -13
- package/chunks/chevron-right-BEQMacFn.js +0 -13
- package/chunks/chevrons-right-CXSpQt9w.js +0 -25
- package/chunks/createLucideIcon-YBRjY5Kl.js +0 -79
- package/chunks/index-Aq5MbUB9.js +0 -4
- package/chunks/index-BBQm_8LD.js +0 -4
- package/chunks/index-BC_sWWgc.js +0 -4
- package/chunks/index-DXKDJ1Vp.js +0 -4
- package/chunks/index-DjT5NrbA.js +0 -4
- package/chunks/index-DvLRehH6.js +0 -4
- package/chunks/index-aIMaxR-p.js +0 -4
- package/chunks/main-52Wff7qC.js +0 -11441
- package/chunks/main-65WcUqAl.js +0 -4013
- package/chunks/main-B58mi9jx.js +0 -5622
- package/chunks/main-BIdXUTZS.js +0 -7308
- package/chunks/main-DD-NEzC7.js +0 -8241
- package/chunks/main-DUnfJPzY.js +0 -3608
- package/chunks/main-DpCBqqg_.js +0 -1950
- package/chunks/main-Drznt1ak.js +0 -1790
- package/chunks/users-wbJRbqW8.js +0 -16
- package/chunks/x-CK4GYo7T.js +0 -14
package/CollectLead.js
CHANGED
|
@@ -1,308 +1,190 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (!e.brandingLogo)
|
|
10
|
-
return null;
|
|
11
|
-
const d = () => {
|
|
12
|
-
a && window.open(a, "_blank", "noopener,noreferrer");
|
|
13
|
-
}, t = /* @__PURE__ */ n(
|
|
14
|
-
"img",
|
|
15
|
-
{
|
|
16
|
-
src: e.brandingLogo,
|
|
17
|
-
alt: "branding-logo",
|
|
18
|
-
style: {
|
|
19
|
-
maxHeight: "50px",
|
|
20
|
-
maxWidth: "100px"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
), f = a ? typeof window > "u" ? /* @__PURE__ */ n(
|
|
24
|
-
o,
|
|
25
|
-
{
|
|
26
|
-
component: "a",
|
|
27
|
-
href: a,
|
|
28
|
-
target: "_blank",
|
|
29
|
-
rel: "noopener noreferrer",
|
|
30
|
-
sx: {
|
|
31
|
-
cursor: "pointer",
|
|
32
|
-
textDecoration: "none",
|
|
33
|
-
display: "inline-flex"
|
|
34
|
-
},
|
|
35
|
-
children: t
|
|
36
|
-
}
|
|
37
|
-
) : /* @__PURE__ */ n(
|
|
38
|
-
o,
|
|
39
|
-
{
|
|
40
|
-
onClick: d,
|
|
41
|
-
sx: {
|
|
42
|
-
cursor: "pointer",
|
|
43
|
-
display: "inline-flex"
|
|
44
|
-
},
|
|
45
|
-
children: t
|
|
46
|
-
}
|
|
47
|
-
) : t;
|
|
48
|
-
return m ? /* @__PURE__ */ s(
|
|
49
|
-
o,
|
|
50
|
-
{
|
|
51
|
-
sx: {
|
|
52
|
-
display: "flex",
|
|
53
|
-
flexDirection: "column",
|
|
54
|
-
gap: "8px",
|
|
55
|
-
alignItems: "center",
|
|
56
|
-
minWidth: "180px",
|
|
57
|
-
fontSize: "1em",
|
|
58
|
-
zIndex: 1
|
|
59
|
-
},
|
|
60
|
-
children: [
|
|
61
|
-
e.label && /* @__PURE__ */ n(
|
|
62
|
-
y,
|
|
63
|
-
{
|
|
64
|
-
level: "body-sm",
|
|
65
|
-
sx: {
|
|
66
|
-
fontWeight: 400,
|
|
67
|
-
lineHeight: "166%",
|
|
68
|
-
letterSpacing: "0.4px",
|
|
69
|
-
fontSize: "1em",
|
|
70
|
-
color: e.textColor,
|
|
71
|
-
textAlign: "right",
|
|
72
|
-
fontFamily: i
|
|
73
|
-
},
|
|
74
|
-
children: e.label
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
f
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
) : /* @__PURE__ */ s(
|
|
81
|
-
o,
|
|
82
|
-
{
|
|
83
|
-
sx: {
|
|
84
|
-
minWidth: "180px",
|
|
85
|
-
display: "flex",
|
|
86
|
-
gap: "8px",
|
|
87
|
-
alignItems: "center",
|
|
88
|
-
zIndex: 10,
|
|
89
|
-
fontSize: "1em"
|
|
90
|
-
},
|
|
91
|
-
children: [
|
|
92
|
-
e.label && /* @__PURE__ */ n(
|
|
93
|
-
y,
|
|
94
|
-
{
|
|
95
|
-
level: "body-sm",
|
|
96
|
-
sx: {
|
|
97
|
-
fontWeight: 400,
|
|
98
|
-
lineHeight: "166%",
|
|
99
|
-
letterSpacing: "0.4px",
|
|
100
|
-
textAlign: "right",
|
|
101
|
-
fontSize: "1em",
|
|
102
|
-
color: e.textColor,
|
|
103
|
-
fontFamily: i
|
|
104
|
-
},
|
|
105
|
-
children: e.label
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
f
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
}, _ = ue({
|
|
1
|
+
import { jsx as o, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useConstantContext as w, useInternalTheme as H, useImageBackgroundGradient as ae, hexToRgb as ce, useColors as W, useIsMobile as B, defaultBgVertical as oe, defaultBg as le, useImageVariant as z, WidgetTemplate as C, sanitizeBackgroundUrl as de, usePhysicalImagePosition as se } from "fansunited-frontend-core";
|
|
3
|
+
import { PresentedBy as ue, CollectLeadForm as me, space as k, useBreakpointUp as N, WidgetPortal as ge } from "fansunited-frontend-core/ui/emotion";
|
|
4
|
+
import pe, { createContext as fe } from "react";
|
|
5
|
+
import { css as n } from "@emotion/react";
|
|
6
|
+
import { useTranslation as he } from "react-i18next";
|
|
7
|
+
import { w as xe } from "./chunks/withVersionStamp-CPDfSE5H.js";
|
|
8
|
+
const V = (t) => /* @__PURE__ */ o(ue, { inheritColor: !0, ...t }), R = fe({
|
|
113
9
|
shadowRootElement: null,
|
|
114
10
|
language: null,
|
|
115
11
|
sdk: null
|
|
116
12
|
}), be = ({
|
|
117
|
-
shadowRootElement:
|
|
118
|
-
phoneCountryCode:
|
|
119
|
-
images:
|
|
13
|
+
shadowRootElement: t,
|
|
14
|
+
phoneCountryCode: r,
|
|
15
|
+
images: u,
|
|
120
16
|
content: a,
|
|
121
|
-
campaign:
|
|
122
|
-
branding:
|
|
123
|
-
labels:
|
|
124
|
-
defaultImagePlaceholderUrl:
|
|
125
|
-
language:
|
|
126
|
-
children:
|
|
127
|
-
sdk:
|
|
128
|
-
fields:
|
|
129
|
-
onSuccessCta:
|
|
130
|
-
customFields:
|
|
131
|
-
consents:
|
|
132
|
-
syncWithProfile:
|
|
133
|
-
}) => /* @__PURE__ */
|
|
134
|
-
|
|
17
|
+
campaign: m,
|
|
18
|
+
branding: e,
|
|
19
|
+
labels: x,
|
|
20
|
+
defaultImagePlaceholderUrl: y,
|
|
21
|
+
language: h = "en",
|
|
22
|
+
children: g,
|
|
23
|
+
sdk: c,
|
|
24
|
+
fields: d,
|
|
25
|
+
onSuccessCta: P,
|
|
26
|
+
customFields: v,
|
|
27
|
+
consents: L,
|
|
28
|
+
syncWithProfile: M = !1
|
|
29
|
+
}) => /* @__PURE__ */ o(
|
|
30
|
+
R.Provider,
|
|
135
31
|
{
|
|
136
32
|
value: {
|
|
137
|
-
shadowRootElement:
|
|
138
|
-
phoneCountryCode:
|
|
139
|
-
images:
|
|
33
|
+
shadowRootElement: t,
|
|
34
|
+
phoneCountryCode: r,
|
|
35
|
+
images: u,
|
|
140
36
|
content: a,
|
|
141
|
-
campaign:
|
|
142
|
-
branding:
|
|
143
|
-
labels:
|
|
144
|
-
defaultImagePlaceholderUrl:
|
|
145
|
-
language:
|
|
146
|
-
sdk:
|
|
147
|
-
fields:
|
|
148
|
-
onSuccessCta:
|
|
149
|
-
customFields:
|
|
150
|
-
consents:
|
|
151
|
-
syncWithProfile:
|
|
37
|
+
campaign: m,
|
|
38
|
+
branding: e,
|
|
39
|
+
labels: x,
|
|
40
|
+
defaultImagePlaceholderUrl: y,
|
|
41
|
+
language: h,
|
|
42
|
+
sdk: c,
|
|
43
|
+
fields: d,
|
|
44
|
+
onSuccessCta: P,
|
|
45
|
+
customFields: v,
|
|
46
|
+
consents: L,
|
|
47
|
+
syncWithProfile: M
|
|
152
48
|
},
|
|
153
|
-
children:
|
|
49
|
+
children: g
|
|
154
50
|
}
|
|
155
|
-
),
|
|
156
|
-
const { t
|
|
157
|
-
sdk:
|
|
158
|
-
content:
|
|
51
|
+
), j = () => {
|
|
52
|
+
const { t } = he(), {
|
|
53
|
+
sdk: r,
|
|
54
|
+
content: u,
|
|
159
55
|
branding: a,
|
|
160
|
-
campaign:
|
|
161
|
-
labels:
|
|
162
|
-
onSuccessCta:
|
|
163
|
-
fields:
|
|
164
|
-
consents:
|
|
165
|
-
customFields:
|
|
166
|
-
syncWithProfile:
|
|
167
|
-
} =
|
|
168
|
-
title:
|
|
169
|
-
description:
|
|
170
|
-
fullNameLabel:
|
|
171
|
-
fullNamePlaceholder:
|
|
172
|
-
firstNameLabel:
|
|
173
|
-
firstNamePlaceholder:
|
|
174
|
-
lastNameLabel:
|
|
175
|
-
lastNamePlaceholder:
|
|
176
|
-
emailLabel:
|
|
177
|
-
genderLabel:
|
|
178
|
-
genderPlaceholder:
|
|
179
|
-
countryLabel:
|
|
180
|
-
countryPlaceholder:
|
|
181
|
-
phoneNumberLabel:
|
|
182
|
-
phoneNumberPlaceholder:
|
|
183
|
-
submitButtonLabel: (
|
|
184
|
-
successTitle:
|
|
185
|
-
successDescription:
|
|
186
|
-
privacyPolicyUrlLabel:
|
|
187
|
-
termsAndConditionsUrlLabel:
|
|
56
|
+
campaign: m,
|
|
57
|
+
labels: e,
|
|
58
|
+
onSuccessCta: x,
|
|
59
|
+
fields: y = ["fullName", "email"],
|
|
60
|
+
consents: h,
|
|
61
|
+
customFields: g,
|
|
62
|
+
syncWithProfile: c = !1
|
|
63
|
+
} = w(R), d = {
|
|
64
|
+
title: e == null ? void 0 : e.formTitle,
|
|
65
|
+
description: e == null ? void 0 : e.formDescription,
|
|
66
|
+
fullNameLabel: e == null ? void 0 : e.formFullNameLabel,
|
|
67
|
+
fullNamePlaceholder: e == null ? void 0 : e.formFullNamePlaceholder,
|
|
68
|
+
firstNameLabel: e == null ? void 0 : e.formFirstNameLabel,
|
|
69
|
+
firstNamePlaceholder: e == null ? void 0 : e.formFirstNamePlaceholder,
|
|
70
|
+
lastNameLabel: e == null ? void 0 : e.formLastNameLabel,
|
|
71
|
+
lastNamePlaceholder: e == null ? void 0 : e.formLastNamePlaholder,
|
|
72
|
+
emailLabel: e == null ? void 0 : e.formEmailLabel,
|
|
73
|
+
genderLabel: e == null ? void 0 : e.formGenderLabel,
|
|
74
|
+
genderPlaceholder: e == null ? void 0 : e.formGenderPlaceholder,
|
|
75
|
+
countryLabel: e == null ? void 0 : e.formCountryLabel,
|
|
76
|
+
countryPlaceholder: e == null ? void 0 : e.formCountryPlaceholder,
|
|
77
|
+
phoneNumberLabel: e == null ? void 0 : e.formPhoneNumberLabel,
|
|
78
|
+
phoneNumberPlaceholder: e == null ? void 0 : e.formPhoneNumberPlaceholder,
|
|
79
|
+
submitButtonLabel: (e == null ? void 0 : e.submitButtonLabel) || t("leads.buttons.submit"),
|
|
80
|
+
successTitle: e == null ? void 0 : e.successTitle,
|
|
81
|
+
successDescription: e == null ? void 0 : e.successDescription,
|
|
82
|
+
privacyPolicyUrlLabel: e == null ? void 0 : e.privacyPolicyUrlLabel,
|
|
83
|
+
termsAndConditionsUrlLabel: e == null ? void 0 : e.termsAndConditionsUrlLabel
|
|
188
84
|
};
|
|
189
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ o(
|
|
190
86
|
me,
|
|
191
87
|
{
|
|
192
|
-
sdk:
|
|
193
|
-
content:
|
|
194
|
-
onSuccessCta:
|
|
88
|
+
sdk: r,
|
|
89
|
+
content: u,
|
|
90
|
+
onSuccessCta: x,
|
|
195
91
|
branding: a,
|
|
196
|
-
campaign:
|
|
197
|
-
fields:
|
|
198
|
-
labels:
|
|
199
|
-
consents:
|
|
200
|
-
customFields:
|
|
201
|
-
syncWithProfile:
|
|
92
|
+
campaign: m,
|
|
93
|
+
fields: y,
|
|
94
|
+
labels: d,
|
|
95
|
+
consents: h,
|
|
96
|
+
customFields: g,
|
|
97
|
+
syncWithProfile: c
|
|
202
98
|
}
|
|
203
99
|
);
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
|
|
100
|
+
}, i = {
|
|
101
|
+
fontPrimary: "var(--fu-ucrc-font-primary)",
|
|
102
|
+
fontSecondary: "var(--fu-ucrc-font-secondary)",
|
|
103
|
+
space3xs: k("3xs"),
|
|
104
|
+
spaceSm: k("sm"),
|
|
105
|
+
spaceMd: k("md"),
|
|
106
|
+
spaceLg: k("lg"),
|
|
107
|
+
spaceXl: k("xl"),
|
|
108
|
+
space2xl: k("2xl"),
|
|
109
|
+
radiusSm: "var(--fu-ucrc-radius-sm)",
|
|
110
|
+
radiusMd: "var(--fu-ucrc-radius-md)",
|
|
111
|
+
textColor: "var(--fu-ucrc-text-color)",
|
|
112
|
+
textSecondary: "var(--fu-ucrc-text-secondary)",
|
|
113
|
+
/** The dark scheme's text colour, for text on the image in either mode. */
|
|
114
|
+
darkText: "var(--fu-ucrc-cl-dark-text)",
|
|
115
|
+
/** Surface variant at 50%, behind the form. */
|
|
116
|
+
panel: "var(--fu-ucrc-cl-panel)",
|
|
117
|
+
image: "var(--fu-ucrc-cl-image)",
|
|
118
|
+
gradient: "var(--fu-ucrc-cl-gradient)"
|
|
119
|
+
}, O = { margin: 0, unicodeBidi: "plaintext" }, b = {
|
|
120
|
+
title: n(O, { fontFamily: i.fontPrimary, fontSize: "1.5em", fontWeight: 700, lineHeight: "133%" }),
|
|
121
|
+
description: n(O, { fontFamily: i.fontPrimary, fontSize: "1.25em", fontWeight: 400, lineHeight: "140%", letterSpacing: "0.15px" })
|
|
122
|
+
}, D = n({ display: "flex", flexDirection: "column", gap: i.space3xs }), F = (t, r) => {
|
|
123
|
+
const u = H(), a = ae(t), m = ce(W().surfaceVariant || "");
|
|
124
|
+
return {
|
|
125
|
+
"--fu-ucrc-cl-dark-text": u.colorSchemes.dark.textColor,
|
|
126
|
+
"--fu-ucrc-cl-panel": `rgba(${m ? m.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
127
|
+
"--fu-ucrc-cl-image": r,
|
|
128
|
+
"--fu-ucrc-cl-gradient": a
|
|
129
|
+
};
|
|
130
|
+
}, ye = (t) => {
|
|
131
|
+
let r = (t == null ? void 0 : t.mainLogo) || null;
|
|
132
|
+
return B() && (r = (t == null ? void 0 : t.mobileLogo) || (t == null ? void 0 : t.mainLogo) || null), r;
|
|
133
|
+
}, q = n(b.title, { letterSpacing: "0px", color: i.textColor, textAlign: "center" }), E = n(b.description, { color: i.textColor, opacity: "70%", textAlign: "center" }), X = n({
|
|
134
|
+
display: "flex",
|
|
135
|
+
flexDirection: "column-reverse",
|
|
136
|
+
alignItems: "center",
|
|
137
|
+
justifyContent: "space-between",
|
|
138
|
+
gap: i.spaceMd
|
|
139
|
+
}), p = {
|
|
140
|
+
root: n({
|
|
207
141
|
display: "flex",
|
|
208
142
|
flexDirection: "column",
|
|
209
143
|
justifyContent: "space-between",
|
|
210
144
|
gap: "40px",
|
|
211
|
-
|
|
212
|
-
|
|
145
|
+
position: "relative",
|
|
146
|
+
minHeight: "250px",
|
|
147
|
+
padding: i.spaceXl,
|
|
213
148
|
border: "none",
|
|
149
|
+
borderRadius: i.radiusMd,
|
|
214
150
|
overflow: "hidden",
|
|
215
|
-
backgroundImage:
|
|
151
|
+
backgroundImage: i.image,
|
|
216
152
|
backgroundPosition: "center",
|
|
217
153
|
backgroundSize: "cover",
|
|
218
|
-
position: "relative",
|
|
219
|
-
borderRadius: e.mdBorderRadius,
|
|
220
|
-
minHeight: "250px",
|
|
221
154
|
"&::before": {
|
|
222
155
|
content: '""',
|
|
223
156
|
position: "absolute",
|
|
224
|
-
background: e.imageBackgroundGradient,
|
|
225
157
|
top: 0,
|
|
226
158
|
left: 0,
|
|
227
159
|
right: 0,
|
|
228
160
|
bottom: 0,
|
|
229
|
-
|
|
230
|
-
|
|
161
|
+
zIndex: 0,
|
|
162
|
+
background: i.gradient,
|
|
163
|
+
borderRadius: "inherit"
|
|
231
164
|
}
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
display: "flex",
|
|
236
|
-
justifyContent: "space-between",
|
|
237
|
-
flex: "1 0 0",
|
|
238
|
-
alignSelf: "stretch"
|
|
239
|
-
},
|
|
240
|
-
// Headline content container
|
|
241
|
-
headlineContent: {
|
|
165
|
+
}),
|
|
166
|
+
headline: n({ display: "flex", justifyContent: "space-between", flex: "1 0 0", alignSelf: "stretch" }),
|
|
167
|
+
headlineContent: n({
|
|
242
168
|
display: "flex",
|
|
243
169
|
flexDirection: "column",
|
|
244
170
|
alignItems: "flex-start",
|
|
245
171
|
flex: "1 0 0",
|
|
246
172
|
gap: "16px"
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
lineHeight: "166%",
|
|
256
|
-
letterSpacing: "1px",
|
|
257
|
-
textAlign: { xs: "center", md: "left" },
|
|
258
|
-
color: e.secondaryColor,
|
|
259
|
-
opacity: "70%",
|
|
260
|
-
textTransform: "uppercase",
|
|
261
|
-
fontFamily: e.fontFamilySecondary,
|
|
262
|
-
fontSize: "0.75em"
|
|
263
|
-
},
|
|
264
|
-
// Content container
|
|
265
|
-
contentContainer: {
|
|
266
|
-
display: "flex",
|
|
267
|
-
flexDirection: "column",
|
|
268
|
-
gap: e.spacingScale["3xs"]
|
|
269
|
-
},
|
|
270
|
-
// Title typography
|
|
271
|
-
titleText: {
|
|
272
|
-
fontWeight: 700,
|
|
273
|
-
lineHeight: "133%",
|
|
274
|
-
letterSpacing: "0px",
|
|
275
|
-
fontSize: "1.5em",
|
|
276
|
-
color: e.darkTextColor,
|
|
277
|
-
fontFamily: e.fontFamilyPrimary,
|
|
278
|
-
textAlign: { xs: "center", md: "left" }
|
|
279
|
-
},
|
|
280
|
-
// Poll description typography
|
|
281
|
-
pollDescriptionText: {
|
|
282
|
-
fontWeight: 400,
|
|
283
|
-
lineHeight: "140%",
|
|
284
|
-
letterSpacing: "0.15px",
|
|
285
|
-
fontSize: "1.25em",
|
|
286
|
-
textAlign: { xs: "center", md: "left" },
|
|
287
|
-
color: e.secondaryColor,
|
|
288
|
-
opacity: "70%",
|
|
289
|
-
fontFamily: e.fontFamilyPrimary
|
|
290
|
-
},
|
|
291
|
-
// Main content section (non-filter screen)
|
|
292
|
-
mainContentSection: {
|
|
293
|
-
display: "flex",
|
|
294
|
-
flexDirection: "column",
|
|
295
|
-
gap: "24px"
|
|
296
|
-
},
|
|
297
|
-
// Content container with backdrop
|
|
298
|
-
contentContainerWithBackdrop: {
|
|
299
|
-
borderRadius: e.mdBorderRadius,
|
|
300
|
-
p: e.spacingScale.md,
|
|
173
|
+
}),
|
|
174
|
+
headlineInner: n({ zIndex: 10 }),
|
|
175
|
+
title: q,
|
|
176
|
+
titleMd: n(q, { textAlign: "left" }),
|
|
177
|
+
description: E,
|
|
178
|
+
descriptionMd: n(E, { textAlign: "left" }),
|
|
179
|
+
main: n({ display: "flex", flexDirection: "column", gap: "24px" }),
|
|
180
|
+
form: n({
|
|
301
181
|
display: "flex",
|
|
302
182
|
flexDirection: "column",
|
|
303
|
-
gap:
|
|
304
|
-
backdropFilter: "blur(4px)",
|
|
183
|
+
gap: i.spaceMd,
|
|
305
184
|
position: "relative",
|
|
185
|
+
padding: i.spaceMd,
|
|
186
|
+
borderRadius: i.radiusMd,
|
|
187
|
+
backdropFilter: "blur(4px)",
|
|
306
188
|
"&::before": {
|
|
307
189
|
content: '""',
|
|
308
190
|
position: "absolute",
|
|
@@ -310,947 +192,307 @@ const te = (e) => {
|
|
|
310
192
|
left: 0,
|
|
311
193
|
right: 0,
|
|
312
194
|
bottom: 0,
|
|
313
|
-
|
|
195
|
+
zIndex: 0,
|
|
196
|
+
backgroundColor: "var(--fu-ucrc-surface-variant)",
|
|
314
197
|
opacity: 0.5,
|
|
315
|
-
borderRadius: "inherit"
|
|
316
|
-
zIndex: 0
|
|
317
|
-
},
|
|
318
|
-
"& > *": {
|
|
319
|
-
position: "relative",
|
|
320
|
-
zIndex: 1
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
// Alternative title section
|
|
324
|
-
alternativeTitleSection: {
|
|
325
|
-
display: "flex",
|
|
326
|
-
gap: "8px",
|
|
327
|
-
alignItems: "flex-start",
|
|
328
|
-
justifyContent: "center"
|
|
329
|
-
},
|
|
330
|
-
// Alternative title text
|
|
331
|
-
alternativeTitleText: {
|
|
332
|
-
fontFamily: e.fontFamilyPrimary,
|
|
333
|
-
lineHeight: "150%",
|
|
334
|
-
letterSpacing: "0.15px",
|
|
335
|
-
fontWeight: 500,
|
|
336
|
-
fontSize: "1.25em",
|
|
337
|
-
textAlign: "center",
|
|
338
|
-
color: e.darkTextColor
|
|
339
|
-
},
|
|
340
|
-
// Bottom footer container
|
|
341
|
-
bottomFooterContainer: {
|
|
342
|
-
display: "flex",
|
|
343
|
-
alignItems: "center",
|
|
344
|
-
justifyContent: "space-between",
|
|
345
|
-
flexDirection: { xs: "column-reverse", md: "row" },
|
|
346
|
-
gap: e.spacingScale.md
|
|
347
|
-
},
|
|
348
|
-
// Next button
|
|
349
|
-
nextButton: {
|
|
350
|
-
borderRadius: e.buttonRadius,
|
|
351
|
-
py: "10px",
|
|
352
|
-
px: "16px",
|
|
353
|
-
bgcolor: e.primaryColor,
|
|
354
|
-
color: e.onPrimaryColor,
|
|
355
|
-
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
356
|
-
transform: "scale(1)",
|
|
357
|
-
ml: { md: "auto" },
|
|
358
|
-
"&:hover": {
|
|
359
|
-
bgcolor: e.primaryColor,
|
|
360
|
-
transform: "scale(1.02)"
|
|
361
|
-
},
|
|
362
|
-
"&:active": {
|
|
363
|
-
color: e.onPrimaryColor,
|
|
364
|
-
transform: "scale(0.98)"
|
|
365
|
-
},
|
|
366
|
-
"&:disabled": {
|
|
367
|
-
bgcolor: e.primaryColor,
|
|
368
|
-
color: e.onPrimaryColor,
|
|
369
|
-
opacity: "34%"
|
|
370
|
-
},
|
|
371
|
-
"--Icon-color": e.onPrimaryColor,
|
|
372
|
-
fontSize: "0.9375em"
|
|
373
|
-
},
|
|
374
|
-
// Next button text
|
|
375
|
-
nextButtonText: {
|
|
376
|
-
fontFamily: e.fontFamilyPrimary,
|
|
377
|
-
fontWeight: 500,
|
|
378
|
-
fontSize: "0.9375em",
|
|
379
|
-
lineHeight: "24px",
|
|
380
|
-
letterSpacing: "0.46px",
|
|
381
|
-
textTransform: "uppercase",
|
|
382
|
-
color: e.onPrimaryColor,
|
|
383
|
-
gap: "8px",
|
|
384
|
-
display: "flex",
|
|
385
|
-
alignItems: "center"
|
|
386
|
-
}
|
|
387
|
-
}), Se = (e) => {
|
|
388
|
-
let i = (e == null ? void 0 : e.mainLogo) || null;
|
|
389
|
-
return Q() && (i = (e == null ? void 0 : e.mobileLogo) || (e == null ? void 0 : e.mainLogo) || null), i;
|
|
390
|
-
}, pe = () => {
|
|
391
|
-
var R, l, U, M, I, L, D, z, H, v, B, w, C, x, h, W, G, E;
|
|
392
|
-
const e = J(_), i = K(), m = X(), a = Z(
|
|
393
|
-
A.OVERLAY
|
|
394
|
-
), d = Q(), t = Se(
|
|
395
|
-
((R = e.branding) == null ? void 0 : R.images) || null
|
|
396
|
-
), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? le : ae, b = ee(
|
|
397
|
-
{
|
|
398
|
-
images: e.images || null,
|
|
399
|
-
imagePlaceholder: f
|
|
198
|
+
borderRadius: "inherit"
|
|
400
199
|
},
|
|
401
|
-
|
|
402
|
-
),
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
label: (O = e.labels) == null ? void 0 : O.presentedByLabel
|
|
424
|
-
}
|
|
425
|
-
);
|
|
426
|
-
};
|
|
427
|
-
return /* @__PURE__ */ s(o, { sx: c.mainContainer, children: [
|
|
428
|
-
(h = e.labels) != null && h.title || (W = e.labels) != null && W.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(o, { sx: c.headlineSection, children: /* @__PURE__ */ n(o, { sx: c.headlineContent, children: /* @__PURE__ */ n(o, { sx: c.headlineContentInner, children: /* @__PURE__ */ s(o, { sx: c.contentContainer, children: [
|
|
429
|
-
(G = e.labels) != null && G.title ? /* @__PURE__ */ n(y, { level: "h4", sx: c.titleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
430
|
-
(E = e.labels) != null && E.description ? /* @__PURE__ */ n(y, { level: "body-lg", sx: c.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
431
|
-
] }) }) }) }) }) : /* @__PURE__ */ n(r, {}),
|
|
432
|
-
/* @__PURE__ */ s(o, { sx: c.mainContentSection, children: [
|
|
433
|
-
/* @__PURE__ */ n(o, { sx: c.contentContainerWithBackdrop, children: /* @__PURE__ */ n(ne, {}) }),
|
|
434
|
-
/* @__PURE__ */ n(o, { sx: c.bottomFooterContainer, children: g() })
|
|
200
|
+
"& > *": { position: "relative", zIndex: 1 }
|
|
201
|
+
}),
|
|
202
|
+
footer: X,
|
|
203
|
+
footerMd: n(X, { flexDirection: "row" })
|
|
204
|
+
}, Ce = () => {
|
|
205
|
+
var c, d;
|
|
206
|
+
const t = w(R), r = H(), u = B(), a = N("md"), m = ye(((c = t.branding) == null ? void 0 : c.images) || null), e = t.defaultImagePlaceholderUrl ? t.defaultImagePlaceholderUrl : u ? oe : le, x = z({ images: t.images || null, imagePlaceholder: e }, C.OVERLAY), y = F(C.OVERLAY, de(x)), { title: h, description: g } = t.labels ?? {};
|
|
207
|
+
return /* @__PURE__ */ f("div", { css: p.root, style: y, children: [
|
|
208
|
+
h || g ? /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { css: p.headline, children: /* @__PURE__ */ o("div", { css: p.headlineContent, children: /* @__PURE__ */ o("div", { css: p.headlineInner, children: /* @__PURE__ */ f("div", { css: D, children: [
|
|
209
|
+
h ? /* @__PURE__ */ o("h4", { css: a ? p.titleMd : p.title, children: h }) : null,
|
|
210
|
+
g ? /* @__PURE__ */ o("p", { css: a ? p.descriptionMd : p.description, children: g }) : null
|
|
211
|
+
] }) }) }) }) }) : null,
|
|
212
|
+
/* @__PURE__ */ f("div", { css: p.main, children: [
|
|
213
|
+
/* @__PURE__ */ o("div", { css: p.form, children: /* @__PURE__ */ o(j, {}) }),
|
|
214
|
+
/* @__PURE__ */ o("div", { css: a ? p.footerMd : p.footer, children: /* @__PURE__ */ o(
|
|
215
|
+
V,
|
|
216
|
+
{
|
|
217
|
+
brandingLogo: m,
|
|
218
|
+
textColor: r.colorSchemes.dark.textColor,
|
|
219
|
+
label: (d = t.labels) == null ? void 0 : d.presentedByLabel
|
|
220
|
+
}
|
|
221
|
+
) })
|
|
435
222
|
] })
|
|
436
223
|
] });
|
|
437
|
-
},
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
224
|
+
}, Q = n({
|
|
225
|
+
display: "flex",
|
|
226
|
+
flexDirection: "column",
|
|
227
|
+
width: "100%",
|
|
228
|
+
overflow: "hidden",
|
|
229
|
+
minHeight: "250px",
|
|
230
|
+
borderRadius: "var(--fu-ucrc-radius-md)",
|
|
231
|
+
background: "var(--fu-ucrc-surface)",
|
|
232
|
+
border: "var(--fu-ucrc-border-size) solid var(--fu-ucrc-secondary-container)"
|
|
233
|
+
}), Y = { root: Q, row: n(Q, { flexDirection: "row" }) }, re = ({ children: t, style: r }) => {
|
|
234
|
+
const u = N("md");
|
|
235
|
+
return /* @__PURE__ */ o("div", { css: u ? Y.row : Y.root, style: r, children: t });
|
|
236
|
+
}, ve = n({ display: "none" }), Le = n({
|
|
237
|
+
display: "flex",
|
|
238
|
+
flexDirection: "column",
|
|
239
|
+
justifyContent: "space-between",
|
|
240
|
+
gap: "10px",
|
|
241
|
+
position: "relative",
|
|
242
|
+
minHeight: "210px",
|
|
243
|
+
height: "auto",
|
|
244
|
+
overflow: "hidden",
|
|
245
|
+
backgroundImage: i.image,
|
|
246
|
+
backgroundSize: "cover",
|
|
247
|
+
backgroundPosition: "center",
|
|
248
|
+
borderTopLeftRadius: "5px",
|
|
249
|
+
borderTopRightRadius: "5px",
|
|
250
|
+
"&::before": {
|
|
251
|
+
content: '""',
|
|
252
|
+
position: "absolute",
|
|
253
|
+
width: "100%",
|
|
254
|
+
height: "100%",
|
|
255
|
+
background: i.gradient,
|
|
466
256
|
borderTopLeftRadius: "5px",
|
|
467
|
-
borderTopRightRadius: "5px"
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
257
|
+
borderTopRightRadius: "5px"
|
|
258
|
+
}
|
|
259
|
+
}), Me = n({
|
|
260
|
+
display: "flex",
|
|
261
|
+
flex: "0.5",
|
|
262
|
+
flexDirection: "column",
|
|
263
|
+
justifyContent: "space-between",
|
|
264
|
+
padding: i.spaceLg,
|
|
265
|
+
gap: i.space2xl
|
|
266
|
+
}), Pe = n({
|
|
267
|
+
display: "block",
|
|
268
|
+
flex: "0.3",
|
|
269
|
+
position: "relative",
|
|
270
|
+
height: "auto",
|
|
271
|
+
minHeight: "auto",
|
|
272
|
+
overflow: "hidden",
|
|
273
|
+
backgroundImage: i.image,
|
|
274
|
+
backgroundSize: "cover",
|
|
275
|
+
backgroundPosition: "center center",
|
|
276
|
+
backgroundRepeat: "no-repeat"
|
|
277
|
+
}), U = n({
|
|
278
|
+
display: "flex",
|
|
279
|
+
flex: "1",
|
|
280
|
+
flexDirection: "column",
|
|
281
|
+
padding: i.spaceMd,
|
|
282
|
+
gap: i.spaceSm
|
|
283
|
+
}), G = n(b.title, { letterSpacing: "0px", color: i.textColor, textAlign: "center" }), J = n(b.description, { color: i.textSecondary, opacity: "60%", textAlign: "center" }), K = n({ display: "flex", flexDirection: "column", gap: i.spaceLg }), l = {
|
|
284
|
+
hidden: ve,
|
|
285
|
+
mobileHeadlineWithImage: Le,
|
|
286
|
+
mobileHeadlineContent: n({
|
|
484
287
|
zIndex: 1,
|
|
485
288
|
height: "100%",
|
|
486
|
-
|
|
487
|
-
gap:
|
|
289
|
+
padding: i.spaceXl,
|
|
290
|
+
gap: i.space2xl,
|
|
488
291
|
display: "flex",
|
|
489
292
|
flexDirection: "column",
|
|
490
293
|
justifyContent: "space-between"
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
opacity: "70%",
|
|
509
|
-
textTransform: "uppercase",
|
|
510
|
-
fontFamily: e.fontFamilySecondary,
|
|
511
|
-
textAlign: "center"
|
|
512
|
-
},
|
|
513
|
-
// Headline typography (mobile without image & desktop)
|
|
514
|
-
headlineTypography: {
|
|
515
|
-
fontWeight: 500,
|
|
516
|
-
lineHeight: "166%",
|
|
517
|
-
letterSpacing: "1px",
|
|
518
|
-
textTransform: "uppercase",
|
|
519
|
-
fontSize: "0.75em",
|
|
520
|
-
color: e.secondaryColor,
|
|
521
|
-
opacity: e.opacity,
|
|
522
|
-
fontFamily: e.fontFamilySecondary,
|
|
523
|
-
textAlign: { xs: "center", md: "left" }
|
|
524
|
-
},
|
|
525
|
-
// Headline typography (desktop centered)
|
|
526
|
-
headlineTypographyDesktop: {
|
|
527
|
-
fontWeight: 500,
|
|
528
|
-
lineHeight: "166%",
|
|
529
|
-
letterSpacing: "1px",
|
|
530
|
-
textTransform: "uppercase",
|
|
531
|
-
fontSize: "0.75em",
|
|
532
|
-
color: e.secondaryColor,
|
|
533
|
-
opacity: e.opacity,
|
|
534
|
-
fontFamily: e.fontFamilySecondary
|
|
535
|
-
},
|
|
536
|
-
// Content container
|
|
537
|
-
contentContainer: {
|
|
294
|
+
}),
|
|
295
|
+
mobileHeadlineWithoutImage: Me,
|
|
296
|
+
titleMobileImage: n(b.title, { letterSpacing: "0.15px", color: i.darkText, textAlign: "center" }),
|
|
297
|
+
descriptionMobileImage: n(b.description, { color: i.darkText, opacity: "70%", textAlign: "center" }),
|
|
298
|
+
title: G,
|
|
299
|
+
titleMd: n(G, { textAlign: "left" }),
|
|
300
|
+
description: J,
|
|
301
|
+
descriptionMd: n(J, { textAlign: "left" }),
|
|
302
|
+
titleDesktop: n(b.title, { letterSpacing: "0px", color: i.textColor }),
|
|
303
|
+
descriptionDesktop: n(b.description, { color: i.textSecondary, opacity: "60%" }),
|
|
304
|
+
image: Pe,
|
|
305
|
+
imageSafeArea: n({ position: "relative", zIndex: 2, width: "165px", height: "100%" }),
|
|
306
|
+
mainContentArea: U,
|
|
307
|
+
mainContentAreaMd: n(U, { gap: i.spaceMd }),
|
|
308
|
+
mainContentAreaMdImage: n(U, { flex: "0.7", gap: i.spaceMd }),
|
|
309
|
+
gutter: n({ paddingInline: i.spaceMd }),
|
|
310
|
+
desktopHeadline: n({
|
|
538
311
|
display: "flex",
|
|
539
312
|
flexDirection: "column",
|
|
540
|
-
gap: e.spacingScale["3xs"]
|
|
541
|
-
},
|
|
542
|
-
// Title typography (mobile with image)
|
|
543
|
-
titleTypographyMobileImage: {
|
|
544
|
-
fontWeight: 700,
|
|
545
|
-
lineHeight: "133%",
|
|
546
|
-
fontSize: "1.5em",
|
|
547
|
-
letterSpacing: "0.15px",
|
|
548
|
-
color: e.darkTextColor,
|
|
549
|
-
fontFamily: e.fontFamilyPrimary,
|
|
550
|
-
textAlign: "center"
|
|
551
|
-
},
|
|
552
|
-
// Title typography (mobile without image & desktop responsive)
|
|
553
|
-
titleTypography: {
|
|
554
|
-
fontWeight: 700,
|
|
555
|
-
lineHeight: "133%",
|
|
556
|
-
letterSpacing: "0px",
|
|
557
|
-
fontSize: "1.5em",
|
|
558
|
-
color: e.textColor,
|
|
559
|
-
fontFamily: e.fontFamilyPrimary,
|
|
560
|
-
textAlign: { xs: "center", md: "left" }
|
|
561
|
-
},
|
|
562
|
-
// Title typography (desktop centered)
|
|
563
|
-
titleTypographyDesktop: {
|
|
564
|
-
fontWeight: 700,
|
|
565
|
-
lineHeight: "133%",
|
|
566
|
-
letterSpacing: "0px",
|
|
567
|
-
fontSize: "1.5em",
|
|
568
|
-
color: e.textColor,
|
|
569
|
-
fontFamily: e.fontFamilyPrimary
|
|
570
|
-
},
|
|
571
|
-
// Description typography (mobile with image)
|
|
572
|
-
descriptionTypographyMobileImage: {
|
|
573
|
-
fontWeight: 400,
|
|
574
|
-
lineHeight: "140%",
|
|
575
|
-
fontSize: "1.25em",
|
|
576
|
-
letterSpacing: "0.15px",
|
|
577
|
-
color: e.darkTextColor,
|
|
578
|
-
opacity: "70%",
|
|
579
|
-
fontFamily: e.fontFamilyPrimary,
|
|
580
|
-
textAlign: "center"
|
|
581
|
-
},
|
|
582
|
-
// Description typography (mobile without image & desktop responsive)
|
|
583
|
-
descriptionTypography: {
|
|
584
|
-
fontWeight: 400,
|
|
585
|
-
lineHeight: "140%",
|
|
586
|
-
letterSpacing: "0.15px",
|
|
587
|
-
fontSize: "1.25em",
|
|
588
|
-
color: e.secondaryColor,
|
|
589
|
-
opacity: e.opacity,
|
|
590
|
-
fontFamily: e.fontFamilyPrimary,
|
|
591
|
-
textAlign: { xs: "center", md: "left" }
|
|
592
|
-
},
|
|
593
|
-
// Description typography (desktop centered)
|
|
594
|
-
descriptionTypographyDesktop: {
|
|
595
|
-
fontWeight: 400,
|
|
596
|
-
lineHeight: "140%",
|
|
597
|
-
letterSpacing: "0.15px",
|
|
598
|
-
fontSize: "1.25em",
|
|
599
|
-
color: e.secondaryColor,
|
|
600
|
-
opacity: e.opacity,
|
|
601
|
-
fontFamily: e.fontFamilyPrimary
|
|
602
|
-
},
|
|
603
|
-
// Image container (left position)
|
|
604
|
-
imageContainerLeft: {
|
|
605
|
-
display: { xs: "none", md: "block" },
|
|
606
|
-
flex: "0.3",
|
|
607
|
-
overflow: "hidden",
|
|
608
|
-
height: "auto",
|
|
609
|
-
position: "relative",
|
|
610
|
-
minHeight: "auto",
|
|
611
|
-
backgroundImage: `url("${e.finalImage}")`,
|
|
612
|
-
backgroundSize: "cover",
|
|
613
|
-
backgroundPosition: "center center",
|
|
614
|
-
backgroundRepeat: "no-repeat",
|
|
615
|
-
alignItems: "center",
|
|
616
|
-
justifyContent: "center"
|
|
617
|
-
},
|
|
618
|
-
// Image container (right position)
|
|
619
|
-
imageContainerRight: {
|
|
620
|
-
display: { xs: "none", md: "block" },
|
|
621
|
-
flex: "0.3",
|
|
622
|
-
overflow: "hidden",
|
|
623
|
-
height: "auto",
|
|
624
|
-
position: "relative",
|
|
625
|
-
minHeight: "auto",
|
|
626
|
-
backgroundImage: `url("${e.finalImage}")`,
|
|
627
|
-
backgroundSize: "cover",
|
|
628
|
-
backgroundPosition: "center center",
|
|
629
|
-
backgroundRepeat: "no-repeat",
|
|
630
|
-
alignItems: "center",
|
|
631
|
-
justifyContent: "center"
|
|
632
|
-
},
|
|
633
|
-
// Poll image
|
|
634
|
-
pollImage: {
|
|
635
|
-
width: "100%",
|
|
636
|
-
height: "100%",
|
|
637
|
-
objectFit: "cover"
|
|
638
|
-
},
|
|
639
|
-
// Main content area
|
|
640
|
-
mainContentArea: {
|
|
641
|
-
flex: { xs: "1", md: e.finalImage ? "0.7" : "1" },
|
|
642
|
-
display: "flex",
|
|
643
|
-
flexDirection: "column",
|
|
644
|
-
p: e.spacingScale.md,
|
|
645
|
-
gap: { xs: e.spacingScale.sm, md: e.spacingScale.md }
|
|
646
|
-
},
|
|
647
|
-
// Desktop headline container
|
|
648
|
-
desktopHeadlineContainer: {
|
|
649
|
-
display: { xs: "none", md: "flex" },
|
|
650
|
-
flexDirection: "column",
|
|
651
313
|
justifyContent: "space-between",
|
|
652
|
-
gap:
|
|
314
|
+
gap: i.space2xl,
|
|
653
315
|
textAlign: "center"
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
p: e.spacingScale.md
|
|
660
|
-
},
|
|
661
|
-
// Lead question container
|
|
662
|
-
leadQuestionContainer: {
|
|
663
|
-
display: "flex",
|
|
664
|
-
flexDirection: "column",
|
|
665
|
-
gap: { xs: e.spacingScale.lg, md: e.spacingScale.md }
|
|
666
|
-
},
|
|
667
|
-
// Lead content container
|
|
668
|
-
leadContentContainer: {
|
|
669
|
-
borderRadius: e.mdBorderRadius,
|
|
670
|
-
px: e.spacingScale.md,
|
|
671
|
-
pt: e.spacingScale.md,
|
|
672
|
-
pb: e.spacingScale.lg,
|
|
673
|
-
gap: e.spacingScale.md,
|
|
674
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
316
|
+
}),
|
|
317
|
+
leadCollection: n({ display: "flex", flexDirection: "column", padding: i.spaceMd }),
|
|
318
|
+
leadQuestion: K,
|
|
319
|
+
leadQuestionMd: n(K, { gap: i.spaceMd }),
|
|
320
|
+
leadContent: n({
|
|
675
321
|
display: "flex",
|
|
676
322
|
flexDirection: "column",
|
|
323
|
+
gap: i.spaceMd,
|
|
324
|
+
paddingInline: i.spaceMd,
|
|
325
|
+
paddingTop: i.spaceMd,
|
|
326
|
+
paddingBottom: i.spaceLg,
|
|
327
|
+
borderRadius: i.radiusMd,
|
|
328
|
+
backgroundColor: i.panel,
|
|
677
329
|
backdropFilter: "blur(4px)"
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
flexDirection: "column",
|
|
683
|
-
p: e.spacingScale.md
|
|
684
|
-
},
|
|
685
|
-
// Question container
|
|
686
|
-
questionContainer: {
|
|
687
|
-
display: "flex",
|
|
688
|
-
flexDirection: "column",
|
|
689
|
-
gap: { xs: e.spacingScale.lg, md: e.spacingScale.md }
|
|
690
|
-
},
|
|
691
|
-
// Question content container
|
|
692
|
-
questionContentContainer: {
|
|
693
|
-
borderRadius: e.mdBorderRadius,
|
|
694
|
-
px: e.spacingScale.md,
|
|
695
|
-
pt: e.spacingScale.md,
|
|
696
|
-
pb: e.spacingScale.lg,
|
|
697
|
-
gap: e.spacingScale.md,
|
|
698
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
699
|
-
display: "flex",
|
|
700
|
-
flexDirection: "column",
|
|
701
|
-
backdropFilter: "blur(4px)"
|
|
702
|
-
},
|
|
703
|
-
// Aspect ratio container for embed/image
|
|
704
|
-
aspectRatioContainer: {
|
|
705
|
-
borderRadius: e.smBorderRadius,
|
|
706
|
-
height: "100%",
|
|
707
|
-
flex: 1,
|
|
708
|
-
// Take all available space
|
|
709
|
-
"& > div": {
|
|
710
|
-
height: "100% !important",
|
|
711
|
-
flex: "1 !important"
|
|
712
|
-
// Force flex growth
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
// Question text container
|
|
716
|
-
questionTextContainer: {
|
|
717
|
-
gap: "8px",
|
|
718
|
-
display: "flex",
|
|
719
|
-
justifyContent: "center"
|
|
720
|
-
},
|
|
721
|
-
// Question text
|
|
722
|
-
questionText: {
|
|
723
|
-
fontFamily: e.fontFamilyPrimary,
|
|
724
|
-
lineHeight: "150%",
|
|
725
|
-
letterSpacing: "0.15px",
|
|
726
|
-
fontWeight: 500,
|
|
727
|
-
fontSize: "1.25em",
|
|
728
|
-
textAlign: "center",
|
|
729
|
-
color: e.textColor
|
|
730
|
-
},
|
|
731
|
-
// Footer container
|
|
732
|
-
footerContainer: {
|
|
733
|
-
display: "flex",
|
|
734
|
-
flexDirection: { xs: "column", md: "row" },
|
|
735
|
-
justifyContent: "space-between",
|
|
736
|
-
alignItems: "center",
|
|
737
|
-
gap: e.spacingScale.lg
|
|
738
|
-
},
|
|
739
|
-
// Footer container (no logo)
|
|
740
|
-
footerContainerNoLogo: {
|
|
741
|
-
display: "flex",
|
|
742
|
-
flexDirection: { xs: "column", md: "row" },
|
|
743
|
-
justifyContent: "flex-end",
|
|
744
|
-
alignItems: "center",
|
|
745
|
-
gap: e.spacingScale.lg
|
|
746
|
-
},
|
|
747
|
-
// Presented by desktop
|
|
748
|
-
presentedByDesktop: {
|
|
749
|
-
display: { xs: "none", md: "block" }
|
|
750
|
-
},
|
|
751
|
-
// Presented by mobile
|
|
752
|
-
presentedByMobile: {
|
|
753
|
-
display: { xs: "block", md: "none" }
|
|
754
|
-
},
|
|
755
|
-
// Safe area indicator for Standard variant (30% width containers)
|
|
756
|
-
imageSafeArea: {
|
|
757
|
-
position: "relative",
|
|
758
|
-
zIndex: 2,
|
|
759
|
-
width: "165px",
|
|
760
|
-
// Safe area: 165px on desktop
|
|
761
|
-
height: "100%"
|
|
762
|
-
// Visual indicator for development (remove in production)
|
|
763
|
-
// border: "1px dashed rgba(255,255,255,0.7)",
|
|
764
|
-
}
|
|
765
|
-
}), ke = (e) => {
|
|
766
|
-
var I, L, D, z, H, v, B, w, C;
|
|
767
|
-
const i = J(_), m = K(), a = e.imagePosition || "left", d = ee(
|
|
330
|
+
})
|
|
331
|
+
}, ke = (t) => {
|
|
332
|
+
var L, M, I, A, T, S, $;
|
|
333
|
+
const r = w(R), u = t.imagePosition || "left", a = z(
|
|
768
334
|
{
|
|
769
|
-
images:
|
|
770
|
-
imagePlaceholder:
|
|
335
|
+
images: r.images || null,
|
|
336
|
+
imagePlaceholder: r.defaultImagePlaceholderUrl ? r.defaultImagePlaceholderUrl : ""
|
|
771
337
|
},
|
|
772
|
-
|
|
773
|
-
),
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
imagePosition: a,
|
|
791
|
-
darkTextColor: m.colorSchemes.dark.textColor,
|
|
792
|
-
imageBackgroundGradient: g
|
|
793
|
-
}), U = (x) => {
|
|
794
|
-
var h;
|
|
795
|
-
return /* @__PURE__ */ n(
|
|
796
|
-
te,
|
|
797
|
-
{
|
|
798
|
-
brandingLogo: f,
|
|
799
|
-
textColor: x,
|
|
800
|
-
label: (h = i.labels) == null ? void 0 : h.presentedByLabel
|
|
801
|
-
}
|
|
802
|
-
);
|
|
803
|
-
};
|
|
804
|
-
return /* @__PURE__ */ s(ce, { children: [
|
|
805
|
-
(() => {
|
|
806
|
-
var x, h, W, G, E, O, ie, oe;
|
|
807
|
-
return t ? d ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithImage, children: (x = i.labels) != null && x.title || (h = i.labels) != null && h.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineContent, children: /* @__PURE__ */ s(o, { sx: l.contentContainer, children: [
|
|
808
|
-
(W = i.labels) != null && W.title ? /* @__PURE__ */ n(y, { sx: l.titleTypographyMobileImage, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
809
|
-
(G = i.labels) != null && G.description ? /* @__PURE__ */ n(y, { sx: l.descriptionTypographyMobileImage, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
810
|
-
] }) }) : /* @__PURE__ */ n(r, {}) }) : (E = i.labels) != null && E.title || (O = i.labels) != null && O.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithoutImage, children: /* @__PURE__ */ s(o, { sx: l.contentContainer, children: [
|
|
811
|
-
(ie = i.labels) != null && ie.title ? /* @__PURE__ */ n(y, { level: "h4", sx: l.titleTypography, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
812
|
-
(oe = i.labels) != null && oe.description ? /* @__PURE__ */ n(y, { sx: l.descriptionTypography, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
813
|
-
] }) }) : /* @__PURE__ */ n(r, {}) : /* @__PURE__ */ n(r, {});
|
|
814
|
-
})(),
|
|
815
|
-
R === "left" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerLeft, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null,
|
|
816
|
-
/* @__PURE__ */ s(o, { sx: l.mainContentArea, children: [
|
|
817
|
-
!t && ((B = i.labels) != null && B.title || (w = i.labels) != null && w.description) ? /* @__PURE__ */ n(o, { sx: { px: c.md }, children: /* @__PURE__ */ n(o, { sx: l.desktopHeadlineContainer, children: /* @__PURE__ */ n(o, { children: /* @__PURE__ */ s(o, { sx: l.contentContainer, children: [
|
|
818
|
-
i.labels.title ? /* @__PURE__ */ n(y, { level: "h4", sx: l.titleTypographyDesktop, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
|
|
819
|
-
(C = i.labels) != null && C.description ? /* @__PURE__ */ n(y, { sx: l.descriptionTypographyDesktop, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
|
|
820
|
-
] }) }) }) }) : /* @__PURE__ */ n(r, {}),
|
|
821
|
-
/* @__PURE__ */ n(o, { sx: l.leadCollectionContainer, children: /* @__PURE__ */ n(o, { sx: l.leadQuestionContainer, children: /* @__PURE__ */ n(o, { sx: l.leadContentContainer, children: /* @__PURE__ */ n(ne, {}) }) }) }),
|
|
822
|
-
/* @__PURE__ */ n(o, { sx: { px: c.md }, children: U(b) })
|
|
338
|
+
C.STANDARD
|
|
339
|
+
), m = B(), e = N("md"), x = m ? ((M = (L = r.branding) == null ? void 0 : L.images) == null ? void 0 : M.mobileLogo) || ((A = (I = r.branding) == null ? void 0 : I.images) == null ? void 0 : A.mainLogo) || "" : ((S = (T = r.branding) == null ? void 0 : T.images) == null ? void 0 : S.mainLogo) || "", y = W().textColor, h = F(C.STANDARD, `url("${a}")`), g = se(u), { title: c, description: d } = r.labels ?? {}, P = () => m ? a ? /* @__PURE__ */ o("div", { css: e ? l.hidden : l.mobileHeadlineWithImage, children: c || d ? /* @__PURE__ */ o("div", { css: l.mobileHeadlineContent, children: /* @__PURE__ */ f("div", { css: D, children: [
|
|
340
|
+
c ? /* @__PURE__ */ o("p", { css: l.titleMobileImage, children: c }) : null,
|
|
341
|
+
d ? /* @__PURE__ */ o("p", { css: l.descriptionMobileImage, children: d }) : null
|
|
342
|
+
] }) }) : null }) : c || d ? /* @__PURE__ */ o("div", { css: e ? l.hidden : l.mobileHeadlineWithoutImage, children: /* @__PURE__ */ f("div", { css: D, children: [
|
|
343
|
+
c ? /* @__PURE__ */ o("h4", { css: e ? l.titleMd : l.title, children: c }) : null,
|
|
344
|
+
d ? /* @__PURE__ */ o("p", { css: e ? l.descriptionMd : l.description, children: d }) : null
|
|
345
|
+
] }) }) : null : null, v = /* @__PURE__ */ o("div", { css: e ? l.image : l.hidden, children: /* @__PURE__ */ o("div", { css: l.imageSafeArea }) });
|
|
346
|
+
return /* @__PURE__ */ f(re, { style: h, children: [
|
|
347
|
+
P(),
|
|
348
|
+
g === "left" && a ? v : null,
|
|
349
|
+
/* @__PURE__ */ f("div", { css: e ? a ? l.mainContentAreaMdImage : l.mainContentAreaMd : l.mainContentArea, children: [
|
|
350
|
+
!m && (c || d) ? /* @__PURE__ */ o("div", { css: l.gutter, children: /* @__PURE__ */ o("div", { css: e ? l.desktopHeadline : l.hidden, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ f("div", { css: D, children: [
|
|
351
|
+
c ? /* @__PURE__ */ o("h4", { css: l.titleDesktop, children: c }) : null,
|
|
352
|
+
d ? /* @__PURE__ */ o("p", { css: l.descriptionDesktop, children: d }) : null
|
|
353
|
+
] }) }) }) }) : null,
|
|
354
|
+
/* @__PURE__ */ o("div", { css: l.leadCollection, children: /* @__PURE__ */ o("div", { css: e ? l.leadQuestionMd : l.leadQuestion, children: /* @__PURE__ */ o("div", { css: l.leadContent, children: /* @__PURE__ */ o(j, {}) }) }) }),
|
|
355
|
+
/* @__PURE__ */ o("div", { css: l.gutter, children: /* @__PURE__ */ o(V, { brandingLogo: x, textColor: y, label: ($ = r.labels) == null ? void 0 : $.presentedByLabel }) })
|
|
823
356
|
] }),
|
|
824
|
-
|
|
357
|
+
g === "right" && a ? v : null
|
|
825
358
|
] });
|
|
826
|
-
},
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
"
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
},
|
|
875
|
-
// Filter screen area
|
|
876
|
-
filterScreenArea: {
|
|
877
|
-
flex: "0.5",
|
|
878
|
-
display: "flex",
|
|
879
|
-
flexDirection: "column",
|
|
880
|
-
p: e.spacingScale.lg
|
|
881
|
-
},
|
|
882
|
-
// Filter screen headline section
|
|
883
|
-
filterScreenHeadlineContent: {
|
|
884
|
-
display: "flex",
|
|
885
|
-
flexDirection: "column",
|
|
886
|
-
justifyContent: "space-between",
|
|
887
|
-
gap: e.spacingScale["2xl"],
|
|
888
|
-
textAlign: "center"
|
|
889
|
-
},
|
|
890
|
-
// Filter screen headline text
|
|
891
|
-
filterScreenHeadlineText: {
|
|
892
|
-
fontWeight: 500,
|
|
893
|
-
lineHeight: "166%",
|
|
894
|
-
letterSpacing: "1px",
|
|
895
|
-
textTransform: "uppercase",
|
|
896
|
-
fontSize: "0.75em",
|
|
897
|
-
color: e.secondaryColor,
|
|
898
|
-
opacity: e.opacity,
|
|
899
|
-
fontFamily: e.fontFamilySecondary
|
|
900
|
-
},
|
|
901
|
-
// Filter screen title text
|
|
902
|
-
filterScreenTitleText: {
|
|
903
|
-
fontWeight: 700,
|
|
904
|
-
lineHeight: "133%",
|
|
905
|
-
letterSpacing: "0px",
|
|
906
|
-
fontSize: "1.5em",
|
|
907
|
-
color: e.textColor,
|
|
908
|
-
fontFamily: e.fontFamilyPrimary
|
|
909
|
-
},
|
|
910
|
-
// Filter screen description text
|
|
911
|
-
filterScreenDescriptionText: {
|
|
912
|
-
fontWeight: 400,
|
|
913
|
-
lineHeight: "140%",
|
|
914
|
-
letterSpacing: "0.15px",
|
|
915
|
-
fontSize: "1.25em",
|
|
916
|
-
color: e.secondaryColor,
|
|
917
|
-
opacity: e.opacity,
|
|
918
|
-
fontFamily: e.fontFamilyPrimary
|
|
919
|
-
},
|
|
920
|
-
// Filter screen CTA wrapper
|
|
921
|
-
filterScreenCtaWrapper: {
|
|
922
|
-
display: "flex",
|
|
923
|
-
flexDirection: "column",
|
|
924
|
-
justifyContent: "space-between",
|
|
925
|
-
alignItems: "center",
|
|
926
|
-
gap: e.spacingScale["2xl"]
|
|
927
|
-
},
|
|
928
|
-
// Headline content wrapper
|
|
929
|
-
headlineContent: {
|
|
359
|
+
}, Z = n({
|
|
360
|
+
display: "flex",
|
|
361
|
+
flexDirection: "column",
|
|
362
|
+
justifyContent: "space-between",
|
|
363
|
+
gap: "10px",
|
|
364
|
+
flex: "1",
|
|
365
|
+
width: "100%",
|
|
366
|
+
minWidth: "100%",
|
|
367
|
+
maxWidth: "100%",
|
|
368
|
+
position: "relative",
|
|
369
|
+
minHeight: "210px",
|
|
370
|
+
height: "auto",
|
|
371
|
+
overflow: "hidden",
|
|
372
|
+
backgroundImage: i.image,
|
|
373
|
+
backgroundSize: "cover",
|
|
374
|
+
backgroundPosition: "center",
|
|
375
|
+
borderTopLeftRadius: i.radiusMd,
|
|
376
|
+
borderTopRightRadius: i.radiusMd,
|
|
377
|
+
borderBottomLeftRadius: 0,
|
|
378
|
+
"&::before": {
|
|
379
|
+
content: '""',
|
|
380
|
+
position: "absolute",
|
|
381
|
+
width: "100%",
|
|
382
|
+
height: "100%",
|
|
383
|
+
background: i.gradient,
|
|
384
|
+
borderTopLeftRadius: "5px",
|
|
385
|
+
borderTopRightRadius: "5px"
|
|
386
|
+
}
|
|
387
|
+
}), _ = { flex: "0 0 50%", width: "50%", minWidth: "50%", maxWidth: "50%" }, ee = n({
|
|
388
|
+
display: "flex",
|
|
389
|
+
flex: "1",
|
|
390
|
+
flexDirection: "column",
|
|
391
|
+
justifyContent: "center",
|
|
392
|
+
padding: i.spaceMd
|
|
393
|
+
}), te = n({
|
|
394
|
+
display: "flex",
|
|
395
|
+
flexDirection: "column",
|
|
396
|
+
justifyContent: "center",
|
|
397
|
+
gap: "16px",
|
|
398
|
+
padding: i.spaceMd
|
|
399
|
+
}), ie = n(b.title, { letterSpacing: "0.15px", color: i.darkText, textAlign: "center" }), ne = n(b.description, { color: i.darkText, opacity: "70%", textAlign: "center" }), s = {
|
|
400
|
+
headline: Z,
|
|
401
|
+
headlineMd: n(Z, _, {
|
|
402
|
+
minHeight: "430px",
|
|
403
|
+
borderTopRightRadius: 0,
|
|
404
|
+
borderBottomLeftRadius: i.radiusMd
|
|
405
|
+
}),
|
|
406
|
+
headlineContent: n({
|
|
930
407
|
zIndex: 1,
|
|
931
408
|
height: "100%",
|
|
932
|
-
|
|
933
|
-
gap:
|
|
409
|
+
padding: i.spaceXl,
|
|
410
|
+
gap: i.spaceXl,
|
|
934
411
|
display: "flex",
|
|
935
412
|
flexDirection: "column",
|
|
936
413
|
justifyContent: "space-between"
|
|
937
|
-
},
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
},
|
|
950
|
-
// Poll headline typography on filter screen
|
|
951
|
-
pollHeadlineTextFilterScreen: {
|
|
952
|
-
fontWeight: 500,
|
|
953
|
-
lineHeight: "166%",
|
|
954
|
-
letterSpacing: "1px",
|
|
955
|
-
fontSize: "0.75em",
|
|
956
|
-
color: e.textColor,
|
|
957
|
-
opacity: "70%",
|
|
958
|
-
textTransform: "uppercase",
|
|
959
|
-
fontFamily: e.fontFamilySecondary,
|
|
960
|
-
textAlign: { xs: "center", md: "left" }
|
|
961
|
-
},
|
|
962
|
-
// Content container
|
|
963
|
-
contentContainer: {
|
|
964
|
-
display: "flex",
|
|
965
|
-
flexDirection: "column",
|
|
966
|
-
gap: e.spacingScale["3xs"]
|
|
967
|
-
},
|
|
968
|
-
// Poll title typography
|
|
969
|
-
pollTitleText: {
|
|
970
|
-
fontWeight: 700,
|
|
971
|
-
lineHeight: "133%",
|
|
972
|
-
fontSize: "1.5em",
|
|
973
|
-
letterSpacing: "0.15px",
|
|
974
|
-
color: e.darkTextColor,
|
|
975
|
-
fontFamily: e.fontFamilyPrimary,
|
|
976
|
-
textAlign: { xs: "center", md: "left" }
|
|
977
|
-
},
|
|
978
|
-
// Poll title typography on filter screen
|
|
979
|
-
pollTitleTextFilterScreen: {
|
|
980
|
-
fontWeight: 700,
|
|
981
|
-
lineHeight: "133%",
|
|
982
|
-
fontSize: "1.5em",
|
|
983
|
-
letterSpacing: "0.15px",
|
|
984
|
-
color: e.textColor,
|
|
985
|
-
fontFamily: e.fontFamilyPrimary,
|
|
986
|
-
textAlign: { xs: "center", md: "left" }
|
|
987
|
-
},
|
|
988
|
-
// Poll description typography
|
|
989
|
-
pollDescriptionText: {
|
|
990
|
-
fontWeight: 400,
|
|
991
|
-
lineHeight: "140%",
|
|
992
|
-
fontSize: "1.25em",
|
|
993
|
-
letterSpacing: "0.15px",
|
|
994
|
-
color: e.darkTextColor,
|
|
995
|
-
opacity: "70%",
|
|
996
|
-
fontFamily: e.fontFamilyPrimary,
|
|
997
|
-
textAlign: { xs: "center", md: "left" }
|
|
998
|
-
},
|
|
999
|
-
// Poll description typography on filter screen
|
|
1000
|
-
pollDescriptionTextFilterScreen: {
|
|
1001
|
-
fontWeight: 400,
|
|
1002
|
-
lineHeight: "140%",
|
|
1003
|
-
fontSize: "1.25em",
|
|
1004
|
-
letterSpacing: "0.15px",
|
|
1005
|
-
color: e.textColor,
|
|
1006
|
-
opacity: "70%",
|
|
1007
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1008
|
-
textAlign: { xs: "center", md: "left" }
|
|
1009
|
-
},
|
|
1010
|
-
// Filter screen bottom container
|
|
1011
|
-
filterScreenBottomContainer: {
|
|
1012
|
-
display: "flex",
|
|
1013
|
-
flexDirection: { md: "row", xs: "column-reverse" },
|
|
1014
|
-
justifyContent: "space-between",
|
|
1015
|
-
alignItems: "center",
|
|
1016
|
-
gap: e.spacingScale.lg
|
|
1017
|
-
},
|
|
1018
|
-
// Start button (filter screen)
|
|
1019
|
-
startButton: {
|
|
1020
|
-
borderRadius: e.buttonRadius,
|
|
1021
|
-
bgcolor: e.primaryColor,
|
|
1022
|
-
color: e.onPrimaryColor,
|
|
1023
|
-
"&:hover": {
|
|
1024
|
-
bgcolor: e.primaryColor
|
|
1025
|
-
},
|
|
1026
|
-
"&:active": {
|
|
1027
|
-
color: e.onPrimaryColor
|
|
1028
|
-
},
|
|
1029
|
-
animation: "pulse 1s infinite",
|
|
1030
|
-
fontSize: "0.9375em",
|
|
1031
|
-
py: "10px",
|
|
1032
|
-
pr: "12px",
|
|
1033
|
-
pl: "16px",
|
|
1034
|
-
"--Icon-color": e.onPrimaryColor
|
|
1035
|
-
},
|
|
1036
|
-
// Start button text
|
|
1037
|
-
startButtonText: {
|
|
1038
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1039
|
-
fontWeight: 500,
|
|
1040
|
-
fontSize: "0.9375em",
|
|
1041
|
-
lineHeight: "24px",
|
|
1042
|
-
letterSpacing: "0.46px",
|
|
1043
|
-
textTransform: "uppercase",
|
|
1044
|
-
color: e.onPrimaryColor,
|
|
1045
|
-
gap: "8px",
|
|
1046
|
-
display: "flex",
|
|
1047
|
-
alignItems: "center"
|
|
1048
|
-
},
|
|
1049
|
-
// Presented by desktop container
|
|
1050
|
-
presentedByDesktop: {
|
|
1051
|
-
display: { xs: "none", md: "block" }
|
|
1052
|
-
},
|
|
1053
|
-
// Question area
|
|
1054
|
-
questionArea: {
|
|
1055
|
-
flex: { xs: "1", md: "0 0 50%" },
|
|
1056
|
-
width: { md: "50%" },
|
|
1057
|
-
minWidth: { md: "50%" },
|
|
1058
|
-
maxWidth: { md: "50%" },
|
|
1059
|
-
p: { xs: e.spacingScale.md, md: 0 },
|
|
1060
|
-
display: "flex",
|
|
1061
|
-
flexDirection: "column",
|
|
1062
|
-
justifyContent: "center"
|
|
1063
|
-
},
|
|
1064
|
-
questionAreaInner: {
|
|
1065
|
-
p: { xs: e.spacingScale.md, md: e.spacingScale.lg },
|
|
1066
|
-
display: "flex",
|
|
1067
|
-
flexDirection: "column",
|
|
1068
|
-
justifyContent: "center",
|
|
1069
|
-
gap: "16px"
|
|
1070
|
-
},
|
|
1071
|
-
// Stopwatch container
|
|
1072
|
-
stopwatchContainer: {
|
|
1073
|
-
display: "flex",
|
|
1074
|
-
justifyContent: "center"
|
|
1075
|
-
},
|
|
1076
|
-
// Lead content container (filter screen)
|
|
1077
|
-
leadContentContainer: {
|
|
1078
|
-
p: e.spacingScale.md,
|
|
1079
|
-
pb: e.spacingScale.lg,
|
|
1080
|
-
gap: e.spacingScale.md,
|
|
414
|
+
}),
|
|
415
|
+
title: ie,
|
|
416
|
+
titleMd: n(ie, { textAlign: "left" }),
|
|
417
|
+
description: ne,
|
|
418
|
+
descriptionMd: n(ne, { textAlign: "left" }),
|
|
419
|
+
hidden: n({ display: "none" }),
|
|
420
|
+
block: n({ display: "block" }),
|
|
421
|
+
questionArea: ee,
|
|
422
|
+
questionAreaMd: n(ee, _, { padding: 0 }),
|
|
423
|
+
questionAreaInner: te,
|
|
424
|
+
questionAreaInnerMd: n(te, { padding: i.spaceLg }),
|
|
425
|
+
leadContent: n({
|
|
1081
426
|
display: "flex",
|
|
1082
427
|
flexDirection: "column",
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
mainContentContainer: {
|
|
1097
|
-
p: e.spacingScale.lg,
|
|
1098
|
-
gap: e.spacingScale.md,
|
|
1099
|
-
display: "flex",
|
|
1100
|
-
flexDirection: "column",
|
|
1101
|
-
backdropFilter: "blur(4px)",
|
|
1102
|
-
bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
1103
|
-
borderRadius: e.borderRadius.sm
|
|
1104
|
-
},
|
|
1105
|
-
// Aspect ratio container for embed/image
|
|
1106
|
-
aspectRatioContainer: {
|
|
1107
|
-
borderRadius: e.borderRadius.sm,
|
|
1108
|
-
height: "100%",
|
|
1109
|
-
flex: 1,
|
|
1110
|
-
// Take all available space
|
|
1111
|
-
"& > div": {
|
|
1112
|
-
height: "100% !important",
|
|
1113
|
-
flex: "1 !important"
|
|
1114
|
-
// Force flex growth
|
|
1115
|
-
}
|
|
1116
|
-
},
|
|
1117
|
-
// Question image container
|
|
1118
|
-
questionImageContainer: {
|
|
1119
|
-
overflow: "hidden",
|
|
1120
|
-
borderRadius: e.borderRadius.sm
|
|
1121
|
-
},
|
|
1122
|
-
// Question image box
|
|
1123
|
-
questionImageBox: {
|
|
1124
|
-
borderRadius: e.borderRadius.sm,
|
|
1125
|
-
overflow: "hidden",
|
|
1126
|
-
height: "auto"
|
|
1127
|
-
},
|
|
1128
|
-
// Question image
|
|
1129
|
-
questionImage: {
|
|
1130
|
-
width: "100%",
|
|
1131
|
-
height: "100%",
|
|
1132
|
-
objectFit: "cover"
|
|
1133
|
-
},
|
|
1134
|
-
// Alternative title section
|
|
1135
|
-
alternativeTitleSection: {
|
|
1136
|
-
gap: "8px",
|
|
1137
|
-
display: "flex",
|
|
1138
|
-
justifyContent: "center"
|
|
1139
|
-
},
|
|
1140
|
-
// Alternative title text
|
|
1141
|
-
alternativeTitleText: {
|
|
1142
|
-
fontFamily: e.fontFamilyPrimary,
|
|
1143
|
-
lineHeight: "150%",
|
|
1144
|
-
letterSpacing: "0.15px",
|
|
1145
|
-
fontWeight: 500,
|
|
1146
|
-
fontSize: "1.25em",
|
|
1147
|
-
textAlign: "center",
|
|
1148
|
-
color: e.textColor
|
|
1149
|
-
},
|
|
1150
|
-
// Button and footer container
|
|
1151
|
-
buttonFooterContainer: {
|
|
1152
|
-
display: "flex",
|
|
1153
|
-
flexDirection: "column",
|
|
1154
|
-
gap: e.spacingScale.lg
|
|
1155
|
-
},
|
|
1156
|
-
// Presented by mobile container
|
|
1157
|
-
presentedByMobile: {
|
|
1158
|
-
display: { xs: "block", md: "none" }
|
|
1159
|
-
}
|
|
1160
|
-
}), Pe = () => {
|
|
1161
|
-
var U, M, I, L, D, z, H, v, B, w;
|
|
1162
|
-
const e = J(_), i = K(), m = Q(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : m ? le : ae, d = ee(
|
|
1163
|
-
{
|
|
1164
|
-
images: e.images || null,
|
|
1165
|
-
imagePlaceholder: a
|
|
1166
|
-
},
|
|
1167
|
-
A.SPLIT
|
|
1168
|
-
), t = m ? ((M = (U = e.branding) == null ? void 0 : U.images) == null ? void 0 : M.mobileLogo) || ((L = (I = e.branding) == null ? void 0 : I.images) == null ? void 0 : L.mainLogo) || "" : ((z = (D = e.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "", f = u().textColor, b = Y().secondary, S = "60%", p = Y().primary, T = q().xl, k = u().surfaceVariant, j = (v = (H = u().palette) == null ? void 0 : H.primary) == null ? void 0 : v.plainColor, N = (w = (B = u().palette) == null ? void 0 : B.primary) == null ? void 0 : w.onPrimary, F = u().textColor, P = X(), V = q(), $ = Z(
|
|
1169
|
-
A.SPLIT
|
|
1170
|
-
), c = re(k || ""), g = Fe({
|
|
1171
|
-
finalImage: d,
|
|
1172
|
-
spacingScale: P,
|
|
1173
|
-
borderRadius: V,
|
|
1174
|
-
fontFamilyPrimary: p,
|
|
1175
|
-
fontFamilySecondary: b,
|
|
1176
|
-
secondaryColor: f,
|
|
1177
|
-
opacity: S,
|
|
1178
|
-
buttonRadius: T,
|
|
1179
|
-
bgcolor: c,
|
|
1180
|
-
primaryColor: j,
|
|
1181
|
-
onPrimaryColor: N,
|
|
1182
|
-
textColor: F,
|
|
1183
|
-
darkTextColor: i.colorSchemes.dark.textColor,
|
|
1184
|
-
imageBackgroundGradient: $
|
|
1185
|
-
}), R = (C) => {
|
|
1186
|
-
var x;
|
|
1187
|
-
return /* @__PURE__ */ n(
|
|
1188
|
-
te,
|
|
1189
|
-
{
|
|
1190
|
-
brandingLogo: t,
|
|
1191
|
-
textColor: C,
|
|
1192
|
-
label: (x = e.labels) == null ? void 0 : x.presentedByLabel
|
|
1193
|
-
}
|
|
1194
|
-
);
|
|
428
|
+
gap: i.spaceMd,
|
|
429
|
+
padding: i.spaceMd,
|
|
430
|
+
paddingBottom: i.spaceLg,
|
|
431
|
+
borderRadius: i.radiusSm,
|
|
432
|
+
backgroundColor: i.panel,
|
|
433
|
+
backdropFilter: "blur(4px)"
|
|
434
|
+
}),
|
|
435
|
+
mobilePresentedBy: n({ display: "block", paddingInline: i.spaceMd })
|
|
436
|
+
}, Ie = () => {
|
|
437
|
+
var P, v, L, M, I, A;
|
|
438
|
+
const t = w(R), r = H(), u = B(), a = N("md"), m = t.defaultImagePlaceholderUrl ? t.defaultImagePlaceholderUrl : u ? oe : le, e = z({ images: t.images || null, imagePlaceholder: m }, C.SPLIT), x = u ? ((v = (P = t.branding) == null ? void 0 : P.images) == null ? void 0 : v.mobileLogo) || ((M = (L = t.branding) == null ? void 0 : L.images) == null ? void 0 : M.mainLogo) || "" : ((A = (I = t.branding) == null ? void 0 : I.images) == null ? void 0 : A.mainLogo) || "", y = W().textColor, h = F(C.SPLIT, `url("${e}")`), { title: g, description: c } = t.labels ?? {}, d = (T) => {
|
|
439
|
+
var S;
|
|
440
|
+
return /* @__PURE__ */ o(V, { brandingLogo: x, textColor: T, label: (S = t.labels) == null ? void 0 : S.presentedByLabel });
|
|
1195
441
|
};
|
|
1196
|
-
return /* @__PURE__ */
|
|
1197
|
-
((
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
/* @__PURE__ */ n(o, { sx: g.questionArea, children: /* @__PURE__ */ s(o, { sx: g.questionAreaInner, children: [
|
|
1208
|
-
/* @__PURE__ */ n(o, { sx: g.leadContentContainer, children: /* @__PURE__ */ n(ne, {}) }),
|
|
1209
|
-
/* @__PURE__ */ n(
|
|
1210
|
-
o,
|
|
1211
|
-
{
|
|
1212
|
-
sx: { display: { xs: "block", md: "none" }, px: P.md },
|
|
1213
|
-
children: R(F)
|
|
1214
|
-
}
|
|
1215
|
-
)
|
|
442
|
+
return /* @__PURE__ */ f(re, { style: h, children: [
|
|
443
|
+
/* @__PURE__ */ o("div", { css: a ? s.headlineMd : s.headline, children: /* @__PURE__ */ f("div", { css: s.headlineContent, children: [
|
|
444
|
+
g || c ? /* @__PURE__ */ o("div", { children: /* @__PURE__ */ f("div", { css: D, children: [
|
|
445
|
+
g ? /* @__PURE__ */ o("p", { css: a ? s.titleMd : s.title, children: g }) : null,
|
|
446
|
+
c ? /* @__PURE__ */ o("p", { css: a ? s.descriptionMd : s.description, children: c }) : null
|
|
447
|
+
] }) }) : null,
|
|
448
|
+
x ? /* @__PURE__ */ o("div", { css: a ? s.block : s.hidden, children: d(r.colorSchemes.dark.textColor) }) : null
|
|
449
|
+
] }) }),
|
|
450
|
+
/* @__PURE__ */ o("div", { css: a ? s.questionAreaMd : s.questionArea, children: /* @__PURE__ */ f("div", { css: a ? s.questionAreaInnerMd : s.questionAreaInner, children: [
|
|
451
|
+
/* @__PURE__ */ o("div", { css: s.leadContent, children: /* @__PURE__ */ o(j, {}) }),
|
|
452
|
+
/* @__PURE__ */ o("div", { css: a ? s.hidden : s.mobilePresentedBy, children: d(y) })
|
|
1216
453
|
] }) })
|
|
1217
454
|
] });
|
|
1218
455
|
};
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
456
|
+
function Ae(t) {
|
|
457
|
+
return t.template === C.STANDARD;
|
|
1221
458
|
}
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
459
|
+
const Se = (t) => t.template === C.OVERLAY ? /* @__PURE__ */ o(Ce, {}) : Ae(t) ? /* @__PURE__ */ o(ke, { imagePosition: t.imagePosition || "left" }) : /* @__PURE__ */ o(Ie, {}), De = (t) => {
|
|
460
|
+
const r = pe.useMemo(
|
|
461
|
+
() => t.template === C.OVERLAY ? { ...t.themeOptions, mode: "dark" } : t.themeOptions,
|
|
462
|
+
[t.template, t.themeOptions]
|
|
463
|
+
);
|
|
464
|
+
return /* @__PURE__ */ o(
|
|
465
|
+
ge,
|
|
1226
466
|
{
|
|
1227
467
|
packageName: "collect-lead",
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
468
|
+
language: t.language,
|
|
469
|
+
themeOptions: r,
|
|
470
|
+
disableCache: t.disableCache,
|
|
471
|
+
leadPhoneCountryCode: t.phoneCountryCode,
|
|
472
|
+
children: /* @__PURE__ */ o(
|
|
1231
473
|
be,
|
|
1232
474
|
{
|
|
1233
|
-
phoneCountryCode:
|
|
1234
|
-
language:
|
|
1235
|
-
images:
|
|
1236
|
-
content:
|
|
1237
|
-
campaign:
|
|
1238
|
-
branding:
|
|
1239
|
-
labels:
|
|
1240
|
-
defaultImagePlaceholderUrl:
|
|
1241
|
-
sdk:
|
|
1242
|
-
fields:
|
|
475
|
+
phoneCountryCode: t.phoneCountryCode,
|
|
476
|
+
language: t.language,
|
|
477
|
+
images: t.images,
|
|
478
|
+
content: t.content,
|
|
479
|
+
campaign: t.campaign,
|
|
480
|
+
branding: t.branding,
|
|
481
|
+
labels: t.labels,
|
|
482
|
+
defaultImagePlaceholderUrl: t.defaultImagePlaceholderUrl,
|
|
483
|
+
sdk: t.sdk,
|
|
484
|
+
fields: t.fields,
|
|
1243
485
|
shadowRootElement: null,
|
|
1244
|
-
onSuccessCta:
|
|
1245
|
-
customFields:
|
|
1246
|
-
consents:
|
|
1247
|
-
syncWithProfile:
|
|
1248
|
-
children: /* @__PURE__ */
|
|
486
|
+
onSuccessCta: t.onSuccessCTA,
|
|
487
|
+
customFields: t.customFields,
|
|
488
|
+
consents: t.consents,
|
|
489
|
+
syncWithProfile: t.syncWithProfile,
|
|
490
|
+
children: /* @__PURE__ */ o(Se, { ...t })
|
|
1249
491
|
}
|
|
1250
492
|
)
|
|
1251
493
|
}
|
|
1252
494
|
);
|
|
1253
|
-
}, We =
|
|
495
|
+
}, We = xe(De);
|
|
1254
496
|
export {
|
|
1255
497
|
We as CollectLead
|
|
1256
498
|
};
|