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.
Files changed (68) hide show
  1. package/Betslip.js +2 -2
  2. package/ChanceGame.js +952 -1467
  3. package/ClassicQuizPlay.js +2 -2
  4. package/CollectLead.js +405 -1163
  5. package/CompetitionStatistics.js +2042 -2215
  6. package/CompetitorCard.js +4251 -5085
  7. package/Discussion.js +2 -2
  8. package/EitherOrPlay.js +2 -2
  9. package/EventCard.js +6062 -7544
  10. package/EventGamePlay.js +2 -2
  11. package/Leaderboard.js +556 -849
  12. package/List.js +689 -718
  13. package/MatchQuizPlay.js +2 -2
  14. package/Odds.js +50 -42
  15. package/PersonalityQuizPlay.js +2 -2
  16. package/PickThePair.js +925 -1824
  17. package/PlayerOfTheMatch.js +2106 -2207
  18. package/PollVote.js +2 -2
  19. package/Predictor.js +4208 -18675
  20. package/README.md +1 -1
  21. package/Standings.js +1014 -1336
  22. package/TopX.js +3223 -17005
  23. package/chunks/{ChanceGameEmbedVariant-CVys-3Zh.js → ChanceGameEmbedVariant-z8XYzgDW.js} +2 -2
  24. package/chunks/OddsSkeleton-DP5Yfqpr.js +522 -0
  25. package/chunks/PickOneOfX-IvE4OvyT.js +3146 -0
  26. package/chunks/index-BNl8scz6.js +4 -0
  27. package/chunks/index-CSa2JU4m.js +4 -0
  28. package/chunks/index-CVRI82Gb.js +4 -0
  29. package/chunks/index-Cd1dg0KI.js +4 -0
  30. package/chunks/index-Cei2fzi7.js +4 -0
  31. package/chunks/index-Cxb4wEJU.js +4 -0
  32. package/chunks/index-w1LGN5dz.js +4 -0
  33. package/chunks/main-07vzblS8.js +2091 -0
  34. package/chunks/main-C7X4dM_P.js +4827 -0
  35. package/chunks/main-D_QDfmAw.js +6417 -0
  36. package/chunks/main-DdL0UekL.js +4775 -0
  37. package/chunks/main-DmBfwyb4.js +2992 -0
  38. package/chunks/main-LEE8n2cG.js +3117 -0
  39. package/chunks/main-P2WNvBZE.js +1804 -0
  40. package/chunks/main-gV165E-A.js +1928 -0
  41. package/chunks/predictionsHelpers-fwXaMadu.js +10063 -0
  42. package/chunks/{withVersionStamp-T8seRk9h.js → withVersionStamp-CPDfSE5H.js} +1 -1
  43. package/package.json +2 -6
  44. package/withVersionStamp.d.ts.map +1 -1
  45. package/chunks/OddsSkeleton-ClJE2xhR.js +0 -26
  46. package/chunks/OddsStrip-BnSp5TXa.js +0 -383
  47. package/chunks/PickOneOfX-DaJtkbCw.js +0 -4206
  48. package/chunks/chevron-left-CxfCSZcr.js +0 -13
  49. package/chunks/chevron-right-BEQMacFn.js +0 -13
  50. package/chunks/chevrons-right-CXSpQt9w.js +0 -25
  51. package/chunks/createLucideIcon-YBRjY5Kl.js +0 -79
  52. package/chunks/index-Aq5MbUB9.js +0 -4
  53. package/chunks/index-BBQm_8LD.js +0 -4
  54. package/chunks/index-BC_sWWgc.js +0 -4
  55. package/chunks/index-DXKDJ1Vp.js +0 -4
  56. package/chunks/index-DjT5NrbA.js +0 -4
  57. package/chunks/index-DvLRehH6.js +0 -4
  58. package/chunks/index-aIMaxR-p.js +0 -4
  59. package/chunks/main-52Wff7qC.js +0 -11441
  60. package/chunks/main-65WcUqAl.js +0 -4013
  61. package/chunks/main-B58mi9jx.js +0 -5622
  62. package/chunks/main-BIdXUTZS.js +0 -7308
  63. package/chunks/main-DD-NEzC7.js +0 -8241
  64. package/chunks/main-DUnfJPzY.js +0 -3608
  65. package/chunks/main-DpCBqqg_.js +0 -1950
  66. package/chunks/main-Drznt1ak.js +0 -1790
  67. package/chunks/users-wbJRbqW8.js +0 -16
  68. package/chunks/x-CK4GYo7T.js +0 -14
package/CollectLead.js CHANGED
@@ -1,308 +1,190 @@
1
- import { jsx as n, jsxs as s, Fragment as r } from "react/jsx-runtime";
2
- import { useFontFamily as Y, isMobile as Q, getBrandingClickUrl as de, useConstantContext as J, CollectLeadForm as me, useInternalTheme as K, useSpacingScale as X, useImageBackgroundGradient as Z, WidgetTemplate as A, defaultBgVertical as le, defaultBg as ae, useImageVariant as ee, sanitizeBackgroundUrl as se, useCornerRadius as q, useColors as u, useBorderSize as ge, usePhysicalImagePosition as xe, hexToRgb as re, Portal as fe } from "fansunited-frontend-core";
3
- import { Box as o, Typography as y } from "@mui/joy";
4
- import { useTranslation as ye } from "react-i18next";
5
- import { createContext as ue } from "react";
6
- import { w as he } from "./chunks/withVersionStamp-T8seRk9h.js";
7
- const te = (e) => {
8
- const i = Y().secondary, m = Q(), a = de(e.primaryUrl, e.secondaryUrl, "logo");
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: e,
118
- phoneCountryCode: i,
119
- images: m,
13
+ shadowRootElement: t,
14
+ phoneCountryCode: r,
15
+ images: u,
120
16
  content: a,
121
- campaign: d,
122
- branding: t,
123
- labels: f,
124
- defaultImagePlaceholderUrl: b,
125
- language: S = "en",
126
- children: p,
127
- sdk: T,
128
- fields: k,
129
- onSuccessCta: j,
130
- customFields: N,
131
- consents: F,
132
- syncWithProfile: P = !1
133
- }) => /* @__PURE__ */ n(
134
- _.Provider,
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: e,
138
- phoneCountryCode: i,
139
- images: m,
33
+ shadowRootElement: t,
34
+ phoneCountryCode: r,
35
+ images: u,
140
36
  content: a,
141
- campaign: d,
142
- branding: t,
143
- labels: f,
144
- defaultImagePlaceholderUrl: b,
145
- language: S,
146
- sdk: T,
147
- fields: k,
148
- onSuccessCta: j,
149
- customFields: N,
150
- consents: F,
151
- syncWithProfile: P
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: p
49
+ children: g
154
50
  }
155
- ), ne = () => {
156
- const { t: e } = ye(), {
157
- sdk: i,
158
- content: m,
51
+ ), j = () => {
52
+ const { t } = he(), {
53
+ sdk: r,
54
+ content: u,
159
55
  branding: a,
160
- campaign: d,
161
- labels: t,
162
- onSuccessCta: f,
163
- fields: b = ["fullName", "email"],
164
- consents: S,
165
- customFields: p,
166
- syncWithProfile: T = !1
167
- } = J(_), k = {
168
- title: t == null ? void 0 : t.formTitle,
169
- description: t == null ? void 0 : t.formDescription,
170
- fullNameLabel: t == null ? void 0 : t.formFullNameLabel,
171
- fullNamePlaceholder: t == null ? void 0 : t.formFullNamePlaceholder,
172
- firstNameLabel: t == null ? void 0 : t.formFirstNameLabel,
173
- firstNamePlaceholder: t == null ? void 0 : t.formFirstNamePlaceholder,
174
- lastNameLabel: t == null ? void 0 : t.formLastNameLabel,
175
- lastNamePlaceholder: t == null ? void 0 : t.formLastNamePlaholder,
176
- emailLabel: t == null ? void 0 : t.formEmailLabel,
177
- genderLabel: t == null ? void 0 : t.formGenderLabel,
178
- genderPlaceholder: t == null ? void 0 : t.formGenderPlaceholder,
179
- countryLabel: t == null ? void 0 : t.formCountryLabel,
180
- countryPlaceholder: t == null ? void 0 : t.formCountryPlaceholder,
181
- phoneNumberLabel: t == null ? void 0 : t.formPhoneNumberLabel,
182
- phoneNumberPlaceholder: t == null ? void 0 : t.formPhoneNumberPlaceholder,
183
- submitButtonLabel: (t == null ? void 0 : t.submitButtonLabel) || e("leads.buttons.submit"),
184
- successTitle: t == null ? void 0 : t.successTitle,
185
- successDescription: t == null ? void 0 : t.successDescription,
186
- privacyPolicyUrlLabel: t == null ? void 0 : t.privacyPolicyUrlLabel,
187
- termsAndConditionsUrlLabel: t == null ? void 0 : t.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__ */ n(
85
+ return /* @__PURE__ */ o(
190
86
  me,
191
87
  {
192
- sdk: i,
193
- content: m,
194
- onSuccessCta: f,
88
+ sdk: r,
89
+ content: u,
90
+ onSuccessCta: x,
195
91
  branding: a,
196
- campaign: d,
197
- fields: b,
198
- labels: k,
199
- consents: S,
200
- customFields: p,
201
- syncWithProfile: T
92
+ campaign: m,
93
+ fields: y,
94
+ labels: d,
95
+ consents: h,
96
+ customFields: g,
97
+ syncWithProfile: c
202
98
  }
203
99
  );
204
- }, Ce = (e) => ({
205
- // Main container with background overlay
206
- mainContainer: {
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
- p: e.spacingScale.xl,
212
- boxShadow: "md",
145
+ position: "relative",
146
+ minHeight: "250px",
147
+ padding: i.spaceXl,
213
148
  border: "none",
149
+ borderRadius: i.radiusMd,
214
150
  overflow: "hidden",
215
- backgroundImage: e.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
- borderRadius: "inherit",
230
- zIndex: 0
161
+ zIndex: 0,
162
+ background: i.gradient,
163
+ borderRadius: "inherit"
231
164
  }
232
- },
233
- // Headline section wrapper
234
- headlineSection: {
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
- // Headline content with z-index
249
- headlineContentInner: {
250
- zIndex: 10
251
- },
252
- // headline typography
253
- headlineText: {
254
- fontWeight: 500,
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: e.spacingScale.md,
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
- backgroundColor: e.contentBgColor,
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
- A.OVERLAY
402
- ), S = se(b), p = i.colorSchemes.dark.textColor, T = i.customFontFamily.dark.primary, k = i.customFontFamily.dark.secondary, j = i.customRadius.dark.md, N = (l = i.border) == null ? void 0 : l.dark.size, F = (M = (U = i.colorSchemes) == null ? void 0 : U.dark) == null ? void 0 : M.surfaceVariant, P = (L = (I = i.customRadius) == null ? void 0 : I.light) == null ? void 0 : L.xl, V = (v = (H = (z = (D = i.colorSchemes) == null ? void 0 : D.light) == null ? void 0 : z.palette) == null ? void 0 : H.primary) == null ? void 0 : v.plainColor, $ = (x = (C = (w = (B = i.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : w.palette) == null ? void 0 : C.primary) == null ? void 0 : x.onPrimary, c = Ce({
403
- spacingScale: m,
404
- secondaryColor: p,
405
- fontFamilyPrimary: T,
406
- fontFamilySecondary: k,
407
- mdBorderRadius: j,
408
- borderSize: N,
409
- contentBgColor: F,
410
- buttonRadius: P,
411
- primaryColor: V,
412
- onPrimaryColor: $,
413
- backgroundImage: S,
414
- darkTextColor: i.colorSchemes.dark.textColor,
415
- imageBackgroundGradient: a
416
- }), g = () => {
417
- var O;
418
- return /* @__PURE__ */ n(
419
- te,
420
- {
421
- brandingLogo: t,
422
- textColor: i.colorSchemes.dark.textColor,
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
- }, ce = ({ children: e }) => {
438
- const i = q().md, m = u().surface, a = u().secondaryContainer, t = ge().size + " solid " + a;
439
- return /* @__PURE__ */ n(
440
- o,
441
- {
442
- sx: {
443
- display: "flex",
444
- flexDirection: { xs: "column", md: "row" },
445
- width: "100%",
446
- boxShadow: "md",
447
- overflow: "hidden",
448
- minHeight: "250px",
449
- borderRadius: i,
450
- background: m,
451
- border: t
452
- },
453
- children: e
454
- }
455
- );
456
- }, Te = (e) => ({
457
- // Mobile headline with image background
458
- mobileHeadlineWithImage: {
459
- display: { xs: "flex", md: "none" },
460
- flexDirection: "column",
461
- justifyContent: "space-between",
462
- gap: "10px",
463
- backgroundImage: `url("${e.finalImage}")`,
464
- backgroundSize: "cover",
465
- backgroundPosition: "center",
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
- position: "relative",
469
- minHeight: "210px",
470
- overflow: "hidden",
471
- height: "auto",
472
- "&::before": {
473
- content: '""',
474
- position: "absolute",
475
- width: "100%",
476
- height: "100%",
477
- background: e.imageBackgroundGradient,
478
- borderTopLeftRadius: "5px",
479
- borderTopRightRadius: "5px"
480
- }
481
- },
482
- // Mobile headline content
483
- mobileHeadlineContent: {
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
- p: e.spacingScale.xl,
487
- gap: e.spacingScale["2xl"],
289
+ padding: i.spaceXl,
290
+ gap: i.space2xl,
488
291
  display: "flex",
489
292
  flexDirection: "column",
490
293
  justifyContent: "space-between"
491
- },
492
- // Mobile headline without image
493
- mobileHeadlineWithoutImage: {
494
- display: { xs: "flex", md: "none" },
495
- flex: "0.5",
496
- flexDirection: "column",
497
- justifyContent: "space-between",
498
- p: e.spacingScale.lg,
499
- gap: e.spacingScale["2xl"]
500
- },
501
- // Headline typography (mobile with image)
502
- headlineTypographyMobileImage: {
503
- fontWeight: 500,
504
- lineHeight: "166%",
505
- letterSpacing: "1px",
506
- fontSize: "0.75em",
507
- color: e.darkTextColor,
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: e.spacingScale["2xl"],
314
+ gap: i.space2xl,
653
315
  textAlign: "center"
654
- },
655
- // Lead collection container
656
- leadCollectionContainer: {
657
- display: "flex",
658
- flexDirection: "column",
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
- // Question area
680
- questionArea: {
681
- display: "flex",
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: i.images || null,
770
- imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
335
+ images: r.images || null,
336
+ imagePlaceholder: r.defaultImagePlaceholderUrl ? r.defaultImagePlaceholderUrl : ""
771
337
  },
772
- A.STANDARD
773
- ), t = Q(), f = t ? ((L = (I = i.branding) == null ? void 0 : I.images) == null ? void 0 : L.mobileLogo) || ((z = (D = i.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "" : ((v = (H = i.branding) == null ? void 0 : H.images) == null ? void 0 : v.mainLogo) || "", b = u().textColor, S = u().textSecondary, p = Y().secondary, T = "60%", k = Y().primary, j = u().surfaceVariant, N = q().md, F = q().sm, P = u().palette.primary.plainColor, V = u().palette.primary.onPrimary, $ = q().xl, c = X(), g = Z(
774
- A.STANDARD
775
- ), R = xe(a), l = Te({
776
- finalImage: d,
777
- spacingScale: c,
778
- borderRadius: q(),
779
- fontFamilyPrimary: k,
780
- fontFamilySecondary: p,
781
- textColor: b,
782
- secondaryColor: S,
783
- bgcolor: re(j || ""),
784
- mdBorderRadius: N,
785
- smBorderRadius: F,
786
- primaryColor: P,
787
- onPrimaryColor: V,
788
- buttonRadius: $,
789
- opacity: T,
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
- R === "right" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerRight, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null
357
+ g === "right" && a ? v : null
825
358
  ] });
826
- }, Fe = (e) => ({
827
- // Main headline section with background image
828
- headlineSection: {
829
- display: "flex",
830
- flexDirection: "column",
831
- justifyContent: "space-between",
832
- gap: "10px",
833
- // flex: "0.5",
834
- flex: { xs: "1", md: "0 0 50%" },
835
- width: { xs: "100%", md: "50%" },
836
- minWidth: { xs: "100%", md: "50%" },
837
- maxWidth: { xs: "100%", md: "50%" },
838
- backgroundImage: `url("${e.finalImage}")`,
839
- backgroundSize: "cover",
840
- backgroundPosition: "center",
841
- borderTopLeftRadius: e.borderRadius.md,
842
- borderTopRightRadius: { xs: e.borderRadius.md, md: "0" },
843
- borderBottomLeftRadius: { xs: 0, md: e.borderRadius.md },
844
- overflow: "hidden",
845
- height: "auto",
846
- position: "relative",
847
- minHeight: { xs: "210px", md: "430px" },
848
- "&::before": {
849
- content: '""',
850
- position: "absolute",
851
- width: "100%",
852
- height: "100%",
853
- background: e.imageBackgroundGradient,
854
- borderTopLeftRadius: "5px",
855
- borderTopRightRadius: "5px"
856
- }
857
- },
858
- embedCodeHeadlineSection: {
859
- flex: "0.5",
860
- borderTopLeftRadius: e.borderRadius.md,
861
- borderTopRightRadius: { xs: e.borderRadius.md, md: "0" },
862
- borderBottomLeftRadius: { xs: 0, md: e.borderRadius.md },
863
- overflow: "hidden",
864
- height: "auto",
865
- position: "relative",
866
- minHeight: { xs: "210px", md: "430px" }
867
- },
868
- // Headline content wrapper
869
- embedCodeHeadlineContent: {
870
- gap: e.spacingScale.xl,
871
- display: "flex",
872
- flexDirection: "column",
873
- alignItems: "center"
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
- p: e.spacingScale.xl,
933
- gap: e.spacingScale.xl,
409
+ padding: i.spaceXl,
410
+ gap: i.spaceXl,
934
411
  display: "flex",
935
412
  flexDirection: "column",
936
413
  justifyContent: "space-between"
937
- },
938
- // Poll headline typography
939
- pollHeadlineText: {
940
- fontWeight: 500,
941
- lineHeight: "166%",
942
- letterSpacing: "1px",
943
- fontSize: "0.75em",
944
- color: e.darkTextColor,
945
- opacity: "70%",
946
- textTransform: "uppercase",
947
- fontFamily: e.fontFamilySecondary,
948
- textAlign: { xs: "center", md: "left" }
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
- backdropFilter: "blur(4px)",
1084
- bgcolor: `rgba(${e.bgcolor ? e.bgcolor.replace(/[^\d,]/g, "") : ""}, 0.5)`,
1085
- borderRadius: e.borderRadius.sm
1086
- },
1087
- // Question area content wrapper
1088
- questionAreaContent: {
1089
- p: e.spacingScale.lg,
1090
- display: "flex",
1091
- flexDirection: "column",
1092
- justifyContent: "center",
1093
- gap: "16px"
1094
- },
1095
- // Main content container
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__ */ s(ce, { children: [
1197
- (() => {
1198
- var C, x, h, W;
1199
- return /* @__PURE__ */ n(o, { sx: g.headlineSection, children: /* @__PURE__ */ s(o, { sx: g.headlineContent, children: [
1200
- (C = e.labels) != null && C.title || (x = e.labels) != null && x.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ s(o, { sx: g.contentContainer, children: [
1201
- (h = e.labels) != null && h.title ? /* @__PURE__ */ n(y, { sx: g.pollTitleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
1202
- (W = e.labels) != null && W.description ? /* @__PURE__ */ n(y, { sx: g.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
1203
- ] }) }) : /* @__PURE__ */ n(r, {}),
1204
- t ? /* @__PURE__ */ n(o, { sx: g.presentedByDesktop, children: R(i.colorSchemes.dark.textColor) }) : /* @__PURE__ */ n(r, {})
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 Re(e) {
1220
- return e.template === A.STANDARD;
456
+ function Ae(t) {
457
+ return t.template === C.STANDARD;
1221
458
  }
1222
- const Ie = (e) => e.template === A.OVERLAY ? /* @__PURE__ */ n(pe, {}) : Re(e) ? /* @__PURE__ */ n(ke, { imagePosition: e.imagePosition || "left" }) : /* @__PURE__ */ n(Pe, {}), Le = (e) => {
1223
- var i;
1224
- return /* @__PURE__ */ n(
1225
- fe,
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
- entityId: ((i = e.content) == null ? void 0 : i.id) || "",
1229
- ...e,
1230
- children: /* @__PURE__ */ n(
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: e.phoneCountryCode,
1234
- language: e.language,
1235
- images: e.images,
1236
- content: e.content,
1237
- campaign: e.campaign,
1238
- branding: e.branding,
1239
- labels: e.labels,
1240
- defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
1241
- sdk: e.sdk,
1242
- fields: e.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: e.onSuccessCTA,
1245
- customFields: e.customFields,
1246
- consents: e.consents,
1247
- syncWithProfile: e.syncWithProfile,
1248
- children: /* @__PURE__ */ n(Ie, { ...e })
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 = he(Le);
495
+ }, We = xe(De);
1254
496
  export {
1255
497
  We as CollectLead
1256
498
  };