fansunited-widgets-cdn 0.0.85 → 0.0.86-RC1

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 (75) hide show
  1. package/chunks/Alert-CuOsmojH.js +149 -0
  2. package/chunks/AspectRatio-D3Sgxj7p.js +125 -0
  3. package/chunks/Avatar-BTsEKfhc.js +186 -0
  4. package/chunks/Button-BV7YIFkS.js +858 -0
  5. package/chunks/Card-DRIT0wtY.js +129 -0
  6. package/chunks/CardContent-CD-WZh1l.js +60 -0
  7. package/chunks/ChevronRight-BrCKlr3T.js +11 -0
  8. package/chunks/Chip-6HLNTHMI.js +281 -0
  9. package/chunks/ClassicQuizWrapper-t04e9_6c.js +4883 -0
  10. package/chunks/CollectLeadForm-DtmR2Vuf-B_3JkHJC.js +1560 -0
  11. package/chunks/CollectLeadWrapper-CVAVswua.js +1294 -0
  12. package/chunks/DialogActions-C5kAgHal.js +45 -0
  13. package/chunks/DialogContent-MIXff4nd.js +60 -0
  14. package/chunks/EitherOrById-CAo8gPjm.js +1496 -0
  15. package/chunks/EitherOrPreviewWrapper-DFi2bviS.js +47 -0
  16. package/chunks/Error-DhQL89pn-BwTV1meb.js +418 -0
  17. package/chunks/EventGameWrapper-BxyLL3eA.js +7633 -0
  18. package/chunks/Grid-Dpv_ZL23.js +279 -0
  19. package/chunks/IconButton-Lt9Xks7c.js +207 -0
  20. package/chunks/Link-DLuj1USf.js +228 -0
  21. package/chunks/List-DLPlZGTP.js +397 -0
  22. package/chunks/ListItemDecorator-CE2eQLip.js +1882 -0
  23. package/chunks/MatchPredictionContainer-Ct6gXvLw.js +751 -0
  24. package/chunks/MatchQuizWrapper-Fu6RfWVn.js +11046 -0
  25. package/chunks/ModalDialog-Ci3hulZA.js +619 -0
  26. package/chunks/NotFoundSkeleton-BYJTzYJR-Be3R34nS.js +2764 -0
  27. package/chunks/OverlayLeadAfterCollection-DnqztPJ5-CpELr0AC.js +896 -0
  28. package/chunks/OverlayScoreStateSkeleton-C9FUhcnd-DMFELrvA.js +146 -0
  29. package/chunks/PersonalityQuizWrapper-MpUK4n3Y.js +34374 -0
  30. package/chunks/PlayerOfTheMatch-D4vuR7pz.js +1406 -0
  31. package/chunks/PollWrapper-CzKj8xxE.js +4198 -0
  32. package/chunks/Portal-BWqqFvVm-TuHZWjxn.js +12717 -0
  33. package/chunks/Portal-DA1mxzSo.js +41 -0
  34. package/chunks/PreviewQuizById-WWS_LyJR.js +4864 -0
  35. package/chunks/Select-p_cHpLhi.js +3418 -0
  36. package/chunks/Sheet-BaCzogZK.js +167 -0
  37. package/chunks/Snackbar-DHxnbCA3.js +358 -0
  38. package/chunks/Stack-Dgf2LXN0.js +117 -0
  39. package/chunks/Tabs-CSu_cWNi.js +784 -0
  40. package/chunks/TeamNextMatchPrediction-C7HilNqW.js +6 -0
  41. package/chunks/Tutorial-DFNZxmAx.js +427 -0
  42. package/chunks/createLucideIcon-B6NxpYkb.js +79 -0
  43. package/chunks/createSvgIcon-7h7XC877.js +119 -0
  44. package/chunks/createSvgIcon-DVA0KIUd.js +2490 -0
  45. package/chunks/dataAttributeParser-CF9vxaVN.js +28 -0
  46. package/chunks/default-quiz-bg-CTzaADn7.js +4 -0
  47. package/chunks/getReactElementRef-BD-S8A24.js +25 -0
  48. package/chunks/index-24AwmTVJ.js +85 -0
  49. package/chunks/index-3vJS8JzK.js +63 -0
  50. package/chunks/index-BSD7mvEU.js +57 -0
  51. package/chunks/index-BU6iona7.js +57 -0
  52. package/chunks/index-BqCHiyI6.js +59 -0
  53. package/chunks/index-C5qRf4TV.js +20 -0
  54. package/chunks/index-C9MpfjqV.js +35 -0
  55. package/chunks/index-CMmQs5A5.js +56 -0
  56. package/chunks/index-CicEY2Jv.js +5 -0
  57. package/chunks/index-DNeawo0R.js +17 -0
  58. package/chunks/index-DePIySlY.js +29 -0
  59. package/chunks/index-DoRYU_1L.js +41 -0
  60. package/chunks/index-DvgG9XJj.js +20 -0
  61. package/chunks/index-QpZE-92Y.js +33 -0
  62. package/chunks/index-rgFj976B.js +17 -0
  63. package/chunks/index-tzsdMoo-.js +16 -0
  64. package/chunks/index.es-CHqz6mjo.js +6162 -0
  65. package/chunks/init-BEkECL0v.js +32 -0
  66. package/chunks/main-XP7dqk6g.js +39843 -0
  67. package/chunks/resolveProps-BfYZubfk.js +37 -0
  68. package/chunks/users-D_xgC4iQ.js +16 -0
  69. package/chunks/variantColorInheritance-DI3wUohX.js +28 -0
  70. package/fu-widgets-loader.es.js +76 -0
  71. package/fu-widgets-loader.js +1 -0
  72. package/fu-widgets.es.js +4 -0
  73. package/fu-widgets.iife.js +621 -682
  74. package/manifest.json +84 -0
  75. package/package.json +9 -2
@@ -0,0 +1,896 @@
1
+ import { j as n, B as i } from "./main-XP7dqk6g.js";
2
+ import { o as z, Y as $, K as B, J as K, Z as Y, e as A, r as _, C as Z, n as E, m as X, j as G, y as J, u as ee } from "./Portal-BWqqFvVm-TuHZWjxn.js";
3
+ import { v as V, z as ne, W as ie, B as le } from "./NotFoundSkeleton-BYJTzYJR-Be3R34nS.js";
4
+ import { T as j } from "./Button-BV7YIFkS.js";
5
+ const oe = (e) => {
6
+ var a, r, x;
7
+ return {
8
+ // Mobile headline with image background
9
+ mobileHeadlineWithImage: {
10
+ display: e.isMobile ? "flex" : "none",
11
+ flexDirection: "column",
12
+ justifyContent: "space-between",
13
+ gap: "10px",
14
+ backgroundImage: `url(${e.finalImage})`,
15
+ backgroundSize: "cover",
16
+ backgroundPosition: "center",
17
+ borderTopLeftRadius: "5px",
18
+ borderTopRightRadius: "5px",
19
+ position: "relative",
20
+ minHeight: "210px",
21
+ overflow: "hidden",
22
+ height: "auto",
23
+ "&::before": {
24
+ content: '""',
25
+ position: "absolute",
26
+ width: "100%",
27
+ height: "100%",
28
+ background: e.imageBackgroundGradient,
29
+ borderTopLeftRadius: "5px",
30
+ borderTopRightRadius: "5px"
31
+ }
32
+ },
33
+ // Content inside mobile headline with image
34
+ mobileHeadlineContent: {
35
+ zIndex: 1,
36
+ p: e.spacingScale.xl,
37
+ gap: e.spacingScale["2xl"],
38
+ display: "flex",
39
+ flexDirection: "column",
40
+ justifyContent: "space-between"
41
+ },
42
+ // Mobile headline without image
43
+ mobileHeadlineWithoutImage: {
44
+ display: e.isMobile ? "flex" : "none",
45
+ flex: "0.5",
46
+ flexDirection: "column",
47
+ justifyContent: "space-between",
48
+ p: e.spacingScale.lg,
49
+ gap: e.spacingScale["2xl"]
50
+ },
51
+ // Headline typography (mobile with image)
52
+ headlineTypographyMobileImage: {
53
+ fontWeight: 500,
54
+ lineHeight: "166%",
55
+ letterSpacing: "1px",
56
+ fontSize: "0.75em",
57
+ color: ((a = e.brandingColors) == null ? void 0 : a.secondaryColor) || e.darkTextColor,
58
+ opacity: "70%",
59
+ textTransform: "uppercase",
60
+ fontFamily: e.fontFamilySecondary,
61
+ textAlign: "center"
62
+ },
63
+ // Headline typography (mobile without image & desktop)
64
+ headlineTypography: {
65
+ fontWeight: 500,
66
+ lineHeight: "166%",
67
+ letterSpacing: "1px",
68
+ textTransform: "uppercase",
69
+ fontSize: "0.75em",
70
+ color: e.secondaryColor,
71
+ opacity: e.opacity,
72
+ fontFamily: e.fontFamilySecondary,
73
+ textAlign: "center"
74
+ },
75
+ // Title typography (mobile with image)
76
+ titleTypographyMobileImage: {
77
+ fontWeight: 700,
78
+ lineHeight: "133%",
79
+ fontSize: "1.5em",
80
+ letterSpacing: "0.15px",
81
+ color: ((r = e.brandingColors) == null ? void 0 : r.contentColor) || e.darkTextColor,
82
+ fontFamily: e.fontFamilyPrimary,
83
+ textAlign: "center"
84
+ },
85
+ // Title typography (mobile without image)
86
+ titleTypography: {
87
+ fontWeight: 700,
88
+ lineHeight: "133%",
89
+ letterSpacing: "0px",
90
+ fontSize: "1.5em",
91
+ color: e.textColor,
92
+ fontFamily: e.fontFamilyPrimary,
93
+ textAlign: e.isMobile ? "center" : "left"
94
+ },
95
+ // Description typography (mobile with image)
96
+ descriptionTypographyMobileImage: {
97
+ fontWeight: 400,
98
+ lineHeight: "140%",
99
+ fontSize: "1.25em",
100
+ letterSpacing: "0.15px",
101
+ color: ((x = e.brandingColors) == null ? void 0 : x.secondaryColor) || e.darkTextColor,
102
+ opacity: "70%",
103
+ fontFamily: e.fontFamilyPrimary,
104
+ textAlign: "center"
105
+ },
106
+ // Description typography (mobile without image)
107
+ descriptionTypography: {
108
+ fontWeight: 400,
109
+ lineHeight: "140%",
110
+ letterSpacing: "0.15px",
111
+ fontSize: "1.25em",
112
+ color: e.secondaryColor,
113
+ opacity: e.opacity,
114
+ fontFamily: e.fontFamilyPrimary,
115
+ textAlign: e.isMobile ? "center" : "left"
116
+ },
117
+ // Desktop title typography
118
+ titleTypographyDesktop: {
119
+ fontWeight: 700,
120
+ lineHeight: "133%",
121
+ letterSpacing: "0px",
122
+ fontSize: "1.5em",
123
+ color: e.textColor,
124
+ fontFamily: e.fontFamilyPrimary
125
+ },
126
+ // Desktop description typography
127
+ descriptionTypographyDesktop: {
128
+ fontWeight: 400,
129
+ lineHeight: "140%",
130
+ letterSpacing: "0.15px",
131
+ fontSize: "1.25em",
132
+ color: e.secondaryColor,
133
+ opacity: e.opacity,
134
+ fontFamily: e.fontFamilyPrimary
135
+ },
136
+ // Image container (left position)
137
+ imageContainerLeft: {
138
+ display: e.isMobile ? "none" : "block",
139
+ flex: "0.3",
140
+ borderTopLeftRadius: e.borderRadius.md,
141
+ borderBottomLeftRadius: e.borderRadius.md,
142
+ overflow: "hidden",
143
+ height: "auto",
144
+ position: "relative"
145
+ },
146
+ // Image container (right position)
147
+ imageContainerRight: {
148
+ display: e.isMobile ? "none" : "block",
149
+ flex: "0.3",
150
+ borderTopRightRadius: "5px",
151
+ borderBottomRightRadius: "5px",
152
+ overflow: "hidden",
153
+ height: "auto",
154
+ position: "relative"
155
+ },
156
+ // Main content area
157
+ mainContentArea: {
158
+ flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
159
+ display: e.isMobile ? "none" : "flex",
160
+ flexDirection: "column",
161
+ p: e.spacingScale.md,
162
+ gap: e.spacingScale["2xl"]
163
+ },
164
+ // Desktop headline container
165
+ desktopHeadlineContainer: {
166
+ display: e.isMobile ? "none" : "flex",
167
+ flexDirection: "column",
168
+ gap: e.spacingScale.xl,
169
+ textAlign: "center"
170
+ },
171
+ // Content container
172
+ contentContainer: {
173
+ display: "flex",
174
+ flexDirection: "column",
175
+ gap: e.spacingScale["3xs"]
176
+ },
177
+ // Sign in button container
178
+ signInButtonContainer: {
179
+ display: "flex",
180
+ flexDirection: "column",
181
+ justifyContent: "space-between",
182
+ alignItems: "center",
183
+ gap: e.spacingScale["2xl"]
184
+ },
185
+ // Branding container
186
+ brandingContainer: {
187
+ px: e.spacingScale.md
188
+ },
189
+ image: {
190
+ width: "100%",
191
+ height: "100%",
192
+ objectFit: "cover"
193
+ }
194
+ };
195
+ }, ge = ({
196
+ entity: e,
197
+ headline: a,
198
+ finalImage: r,
199
+ imagePosition: x = "left",
200
+ signInContent: y,
201
+ brandingContent: f,
202
+ rulesDisplay: b
203
+ }) => {
204
+ var p, u;
205
+ const s = z(), d = $(), m = B(), h = K().primary, g = K().secondary, v = Y(), c = ((p = e.branding) == null ? void 0 : p.colors) || null, o = ((u = e.branding) == null ? void 0 : u.urls) || null, S = (c == null ? void 0 : c.contentColor) || A().textColor, t = (c == null ? void 0 : c.secondaryColor) || A().textColor, P = (c == null ? void 0 : c.backgroundColor) || A().surfaceVariant, F = "60%", W = _(
206
+ Z.STANDARD
207
+ ), l = oe({
208
+ finalImage: r,
209
+ spacingScale: m,
210
+ borderRadius: v,
211
+ fontFamilyPrimary: h,
212
+ fontFamilySecondary: g,
213
+ textColor: S,
214
+ secondaryColor: t,
215
+ bgcolor: E(P || ""),
216
+ opacity: F,
217
+ brandingColors: c,
218
+ darkTextColor: d.colorSchemes.dark.textColor,
219
+ imageBackgroundGradient: W,
220
+ isMobile: s
221
+ }), C = X(
222
+ o == null ? void 0 : o.primaryUrl,
223
+ o == null ? void 0 : o.secondaryUrl,
224
+ "image"
225
+ ), R = (I, T) => typeof window > "u" ? C ? /* @__PURE__ */ n.jsx(
226
+ i,
227
+ {
228
+ component: "a",
229
+ href: C,
230
+ target: "_blank",
231
+ sx: T,
232
+ children: I
233
+ }
234
+ ) : /* @__PURE__ */ n.jsx(i, { sx: T, children: I }) : C ? /* @__PURE__ */ n.jsx(
235
+ i,
236
+ {
237
+ sx: { ...T, cursor: "pointer" },
238
+ onClick: () => window.open(C, "_blank"),
239
+ children: I
240
+ }
241
+ ) : /* @__PURE__ */ n.jsx(i, { sx: T, children: I });
242
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
243
+ r ? R(
244
+ /* @__PURE__ */ n.jsxs(i, { sx: l.mobileHeadlineContent, children: [
245
+ /* @__PURE__ */ n.jsxs(i, { children: [
246
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", alignItems: "center", gap: m["3xs"] }, children: [
247
+ /* @__PURE__ */ n.jsx(
248
+ j,
249
+ {
250
+ level: "body-sm",
251
+ sx: l.headlineTypographyMobileImage,
252
+ children: a
253
+ }
254
+ ),
255
+ /* @__PURE__ */ n.jsx(
256
+ V,
257
+ {
258
+ rulesDisplay: b,
259
+ rules: e.rules || ""
260
+ }
261
+ )
262
+ ] }),
263
+ /* @__PURE__ */ n.jsxs(i, { sx: l.contentContainer, children: [
264
+ /* @__PURE__ */ n.jsx(
265
+ j,
266
+ {
267
+ level: "body-lg",
268
+ sx: l.titleTypographyMobileImage,
269
+ children: e.title
270
+ }
271
+ ),
272
+ /* @__PURE__ */ n.jsx(
273
+ j,
274
+ {
275
+ level: "body-md",
276
+ sx: l.descriptionTypographyMobileImage,
277
+ children: G(e.description)
278
+ }
279
+ )
280
+ ] })
281
+ ] }),
282
+ /* @__PURE__ */ n.jsxs(i, { sx: l.signInButtonContainer, children: [
283
+ y,
284
+ f
285
+ ] })
286
+ ] }),
287
+ l.mobileHeadlineWithImage
288
+ ) : /* @__PURE__ */ n.jsxs(i, { sx: l.mobileHeadlineWithoutImage, children: [
289
+ /* @__PURE__ */ n.jsxs(i, { children: [
290
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", alignItems: "center", gap: m["3xs"] }, children: [
291
+ /* @__PURE__ */ n.jsx(j, { level: "body-sm", sx: l.headlineTypography, children: a }),
292
+ /* @__PURE__ */ n.jsx(
293
+ V,
294
+ {
295
+ rulesDisplay: b,
296
+ rules: e.rules || ""
297
+ }
298
+ )
299
+ ] }),
300
+ /* @__PURE__ */ n.jsxs(i, { sx: l.contentContainer, children: [
301
+ /* @__PURE__ */ n.jsx(j, { level: "h4", sx: l.titleTypography, children: e.title }),
302
+ /* @__PURE__ */ n.jsx(j, { level: "body-md", sx: l.descriptionTypography, children: G(e.description) })
303
+ ] })
304
+ ] }),
305
+ /* @__PURE__ */ n.jsxs(i, { sx: l.signInButtonContainer, children: [
306
+ y,
307
+ f
308
+ ] })
309
+ ] }),
310
+ r && x === "left" && /* @__PURE__ */ n.jsx(i, { sx: l.imageContainerLeft, children: /* @__PURE__ */ n.jsx("img", { src: r, alt: "Illustration", style: l.image }) }),
311
+ /* @__PURE__ */ n.jsx(i, { sx: l.mainContentArea, children: /* @__PURE__ */ n.jsxs(i, { sx: l.desktopHeadlineContainer, children: [
312
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: m["3xs"] }, children: [
313
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", alignItems: "center", gap: m["3xs"] }, children: [
314
+ /* @__PURE__ */ n.jsx(j, { level: "body-sm", sx: l.headlineTypography, children: a }),
315
+ /* @__PURE__ */ n.jsx(
316
+ V,
317
+ {
318
+ rulesDisplay: b,
319
+ rules: e.rules || ""
320
+ }
321
+ )
322
+ ] }),
323
+ /* @__PURE__ */ n.jsxs(i, { sx: l.contentContainer, children: [
324
+ /* @__PURE__ */ n.jsx(j, { level: "h4", sx: l.titleTypographyDesktop, children: e.title }),
325
+ /* @__PURE__ */ n.jsx(
326
+ j,
327
+ {
328
+ level: "body-md",
329
+ sx: l.descriptionTypographyDesktop,
330
+ children: G(e.description)
331
+ }
332
+ )
333
+ ] })
334
+ ] }),
335
+ /* @__PURE__ */ n.jsx(i, { sx: l.signInButtonContainer, children: y }),
336
+ f
337
+ ] }) }),
338
+ r && x === "right" && /* @__PURE__ */ n.jsx(i, { sx: l.imageContainerRight, children: /* @__PURE__ */ n.jsx("img", { src: r, alt: "Illustration", style: l.image }) })
339
+ ] });
340
+ }, te = (e) => ({
341
+ // Main headline section with background image
342
+ headlineSection: {
343
+ display: "flex",
344
+ flexDirection: "column",
345
+ justifyContent: "space-between",
346
+ gap: "10px",
347
+ flex: "0.5",
348
+ backgroundImage: `url(${e.finalImage})`,
349
+ backgroundSize: "cover",
350
+ backgroundPosition: "center",
351
+ borderTopLeftRadius: e.borderRadius.md,
352
+ borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
353
+ borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
354
+ overflow: "hidden",
355
+ height: "auto",
356
+ position: "relative",
357
+ minHeight: e.isMobile ? "210px" : "430px",
358
+ "&::before": {
359
+ content: '""',
360
+ position: "absolute",
361
+ width: "100%",
362
+ height: "100%",
363
+ borderTopLeftRadius: "5px",
364
+ borderTopRightRadius: "5px"
365
+ }
366
+ },
367
+ // Main content area
368
+ mainContentArea: {
369
+ flex: "0.5",
370
+ display: "flex",
371
+ flexDirection: "column",
372
+ justifyContent: "center",
373
+ p: e.spacingScale.lg
374
+ },
375
+ headlineContent: {
376
+ zIndex: 1,
377
+ height: "100%",
378
+ p: e.spacingScale.xl,
379
+ gap: e.spacingScale.xl,
380
+ display: "flex",
381
+ flexDirection: "column",
382
+ justifyContent: "space-between"
383
+ },
384
+ // Headline text
385
+ headlineText: {
386
+ fontWeight: 500,
387
+ lineHeight: "166%",
388
+ letterSpacing: "1px",
389
+ fontSize: "0.75em",
390
+ color: e.secondaryColor,
391
+ opacity: "70%",
392
+ textTransform: "uppercase",
393
+ fontFamily: e.fontFamilySecondary,
394
+ textAlign: e.isMobile ? "center" : "left"
395
+ },
396
+ // Title text
397
+ titleText: {
398
+ fontWeight: 700,
399
+ lineHeight: "133%",
400
+ fontSize: "1.5em",
401
+ letterSpacing: "0.15px",
402
+ color: e.contentColor,
403
+ fontFamily: e.fontFamilyPrimary,
404
+ textAlign: e.isMobile ? "center" : "left"
405
+ },
406
+ // Description text
407
+ descriptionText: {
408
+ fontWeight: 400,
409
+ lineHeight: "140%",
410
+ fontSize: "1.25em",
411
+ letterSpacing: "0.15px",
412
+ color: e.secondaryColor,
413
+ opacity: "70%",
414
+ fontFamily: e.fontFamilyPrimary,
415
+ textAlign: e.isMobile ? "center" : "left"
416
+ },
417
+ ctaWrapper: {
418
+ display: "flex",
419
+ flexDirection: "column",
420
+ justifyContent: "space-between",
421
+ alignItems: "center",
422
+ gap: e.spacingScale["2xl"]
423
+ },
424
+ // Content container
425
+ contentContainer: {
426
+ display: "flex",
427
+ flexDirection: "column",
428
+ gap: e.spacingScale["3xs"]
429
+ }
430
+ }), pe = ({
431
+ entity: e,
432
+ headline: a,
433
+ finalImage: r,
434
+ signInContent: x,
435
+ brandingContent: y,
436
+ rulesDisplay: f
437
+ }) => {
438
+ var b;
439
+ const p = z(), u = $(), s = B(), d = K().primary, m = K().secondary, h = Y(), g = ((b = e.branding) == null ? void 0 : b.colors) || null, v = (g == null ? void 0 : g.contentColor) || u.colorSchemes.dark.textColor, c = (g == null ? void 0 : g.secondaryColor) || u.colorSchemes.dark.textColor, o = te({
440
+ finalImage: r,
441
+ spacingScale: s,
442
+ borderRadius: h,
443
+ fontFamilyPrimary: d,
444
+ fontFamilySecondary: m,
445
+ secondaryColor: c,
446
+ contentColor: v,
447
+ isMobile: p
448
+ });
449
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
450
+ /* @__PURE__ */ n.jsx(i, { sx: o.headlineSection, children: /* @__PURE__ */ n.jsxs(i, { sx: o.headlineContent, children: [
451
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", flexDirection: "column", alignItems: p ? "center" : "flex-start", gap: s["3xs"] }, children: [
452
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", alignItems: "center", gap: s["3xs"] }, children: [
453
+ /* @__PURE__ */ n.jsx(j, { sx: o.headlineText, children: a }),
454
+ /* @__PURE__ */ n.jsx(
455
+ V,
456
+ {
457
+ rulesDisplay: f,
458
+ rules: e.rules || ""
459
+ }
460
+ )
461
+ ] }),
462
+ /* @__PURE__ */ n.jsxs(i, { sx: o.contentContainer, children: [
463
+ /* @__PURE__ */ n.jsx(j, { sx: o.titleText, children: e.title }),
464
+ /* @__PURE__ */ n.jsx(j, { sx: o.descriptionText, children: G(e.description) })
465
+ ] })
466
+ ] }),
467
+ p ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : y
468
+ ] }) }),
469
+ /* @__PURE__ */ n.jsx(i, { sx: o.mainContentArea, children: /* @__PURE__ */ n.jsxs(i, { sx: o.ctaWrapper, children: [
470
+ x,
471
+ p && y
472
+ ] }) })
473
+ ] });
474
+ }, ae = (e) => {
475
+ var a;
476
+ return {
477
+ // Main container with background overlay
478
+ mainContainer: {
479
+ display: "flex",
480
+ flexDirection: "column",
481
+ justifyContent: "space-between",
482
+ gap: "40px",
483
+ p: e.spacingScale.xl,
484
+ boxShadow: "md",
485
+ border: (a = e.brandingColors) != null && a.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
486
+ overflow: "hidden",
487
+ backgroundImage: e.backgroundImage,
488
+ backgroundSize: "cover",
489
+ backgroundPosition: "center",
490
+ position: "relative",
491
+ borderRadius: e.mdBorderRadius,
492
+ minHeight: "250px",
493
+ "&::before": {
494
+ content: '""',
495
+ position: "absolute",
496
+ background: e.imageBackgroundGradient,
497
+ top: 0,
498
+ left: 0,
499
+ right: 0,
500
+ bottom: 0,
501
+ borderRadius: "inherit",
502
+ zIndex: 0
503
+ }
504
+ },
505
+ // Headline section wrapper
506
+ headlineSection: {
507
+ display: "flex",
508
+ justifyContent: "space-between",
509
+ flex: "1 0 0",
510
+ alignSelf: "stretch"
511
+ },
512
+ // Headline content container
513
+ headlineContent: {
514
+ display: "flex",
515
+ flexDirection: "column",
516
+ alignItems: "flex-start",
517
+ flex: "1 0 0",
518
+ gap: "16px"
519
+ },
520
+ // Headline content with z-index
521
+ headlineContentInner: {
522
+ zIndex: 10
523
+ },
524
+ headlineText: {
525
+ fontWeight: 500,
526
+ lineHeight: "166%",
527
+ letterSpacing: "1px",
528
+ textAlign: e.isMobile ? "center" : "left",
529
+ color: e.secondaryColor,
530
+ opacity: "70%",
531
+ textTransform: "uppercase",
532
+ fontFamily: e.fontFamilySecondary,
533
+ fontSize: "0.75em"
534
+ },
535
+ // Content container
536
+ contentContainer: {
537
+ display: "flex",
538
+ flexDirection: "column",
539
+ gap: e.spacingScale["3xs"]
540
+ },
541
+ titleText: {
542
+ fontWeight: 700,
543
+ lineHeight: "133%",
544
+ letterSpacing: "0px",
545
+ textAlign: e.isMobile ? "center" : "left",
546
+ fontSize: "1.5em",
547
+ color: e.darkTextColor,
548
+ fontFamily: e.fontFamilyPrimary
549
+ },
550
+ descriptionText: {
551
+ fontWeight: 400,
552
+ lineHeight: "140%",
553
+ letterSpacing: "0.15px",
554
+ fontSize: "1.25em",
555
+ textAlign: e.isMobile ? "center" : "left",
556
+ color: e.secondaryColor,
557
+ opacity: "70%",
558
+ fontFamily: e.fontFamilyPrimary
559
+ },
560
+ // Bottom container
561
+ bottomContainer: {
562
+ display: "flex",
563
+ alignItems: "center",
564
+ justifyContent: "space-between",
565
+ flexDirection: e.isMobile ? "column-reverse" : "row",
566
+ gap: e.spacingScale.md
567
+ },
568
+ // Sign-in wrapper to always position at flex-end
569
+ signInWrapper: {
570
+ display: "flex",
571
+ justifyContent: "flex-end",
572
+ flex: 1
573
+ }
574
+ };
575
+ }, xe = ({
576
+ entity: e,
577
+ headline: a,
578
+ backgroundImage: r,
579
+ imageBackgroundGradient: x,
580
+ signInContent: y,
581
+ brandingContent: f,
582
+ rulesDisplay: b
583
+ }) => {
584
+ var p;
585
+ const u = z(), s = $(), d = B(), m = ((p = e.branding) == null ? void 0 : p.colors) || null, h = (m == null ? void 0 : m.contentColor) || s.colorSchemes.dark.textColor, g = s.customFontFamily.dark.primary, v = s.customFontFamily.dark.secondary, c = s.customRadius.dark.md, o = s.border.dark.size, S = s.colorSchemes.dark.textColor, t = ae({
586
+ spacingScale: d,
587
+ brandingColors: m,
588
+ secondaryColor: h,
589
+ fontFamilyPrimary: g,
590
+ fontFamilySecondary: v,
591
+ mdBorderRadius: c,
592
+ borderSize: o,
593
+ darkTextColor: S,
594
+ backgroundImage: r,
595
+ imageBackgroundGradient: x,
596
+ isMobile: u
597
+ });
598
+ return /* @__PURE__ */ n.jsxs(i, { sx: t.mainContainer, children: [
599
+ /* @__PURE__ */ n.jsx(i, { children: /* @__PURE__ */ n.jsx(i, { sx: t.headlineSection, children: /* @__PURE__ */ n.jsx(i, { sx: t.headlineContent, children: /* @__PURE__ */ n.jsxs(i, { sx: { ...t.headlineContentInner, display: "flex", flexDirection: "column", alignItems: u ? "center" : "flex-start", gap: d["3xs"] }, children: [
600
+ /* @__PURE__ */ n.jsxs(i, { sx: { display: "flex", alignItems: "center", gap: d["3xs"] }, children: [
601
+ /* @__PURE__ */ n.jsx(j, { level: "body-sm", sx: t.headlineText, children: a }),
602
+ /* @__PURE__ */ n.jsx(
603
+ V,
604
+ {
605
+ rulesDisplay: b,
606
+ isOverlayVariant: !0,
607
+ rules: e.rules || ""
608
+ }
609
+ )
610
+ ] }),
611
+ /* @__PURE__ */ n.jsxs(i, { sx: t.contentContainer, children: [
612
+ /* @__PURE__ */ n.jsx(j, { level: "h4", sx: t.titleText, children: e.title }),
613
+ /* @__PURE__ */ n.jsx(j, { level: "body-lg", sx: t.descriptionText, children: G(e.description) })
614
+ ] })
615
+ ] }) }) }) }),
616
+ /* @__PURE__ */ n.jsxs(i, { sx: t.bottomContainer, children: [
617
+ f,
618
+ /* @__PURE__ */ n.jsx(i, { sx: t.signInWrapper, children: y })
619
+ ] })
620
+ ] });
621
+ }, ue = (e) => {
622
+ var a, r, x, y, f, b, p;
623
+ const u = J(
624
+ {
625
+ images: e.entity.images || null,
626
+ imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
627
+ },
628
+ Z.STANDARD
629
+ ), s = z(), d = B(), m = Y(), h = `rgba(${E(A().surfaceVariant || "")}, 0.5)`, g = ((a = e.entity.branding) == null ? void 0 : a.colors) || null, v = (g == null ? void 0 : g.borderColor) || null, c = s ? ((x = (r = e.entity.branding) == null ? void 0 : r.images) == null ? void 0 : x.mobileLogo) || ((f = (y = e.entity.branding) == null ? void 0 : y.images) == null ? void 0 : f.mainLogo) || "" : ((p = (b = e.entity.branding) == null ? void 0 : b.images) == null ? void 0 : p.mainLogo) || "", o = e.imagePosition || "left", S = A().textColor, t = {
630
+ mainContentArea: {
631
+ flex: s ? "1" : u ? "0.7" : "1",
632
+ display: "flex",
633
+ flexDirection: "column",
634
+ p: d.md,
635
+ gap: d.md
636
+ },
637
+ leadCollectionContainer: {
638
+ display: "flex",
639
+ flexDirection: "column"
640
+ },
641
+ leadQuestionContainer: {
642
+ display: "flex",
643
+ flexDirection: "column",
644
+ gap: s ? d.lg : d.md
645
+ },
646
+ leadContentContainer: {
647
+ borderRadius: m.md,
648
+ px: d.md,
649
+ pt: d.md,
650
+ pb: d.lg,
651
+ gap: d.md,
652
+ bgcolor: h,
653
+ display: "flex",
654
+ flexDirection: "column",
655
+ backdropFilter: "blur(4px)"
656
+ }
657
+ }, P = () => {
658
+ var F, W, l, C, R, I, T, M, L, w, H, U, N, q, D, O;
659
+ const { CollectLeadWrapper: Q, entity: k } = e;
660
+ return /* @__PURE__ */ n.jsxs(i, { sx: t.mainContentArea, children: [
661
+ /* @__PURE__ */ n.jsx(i, { sx: t.leadCollectionContainer, children: /* @__PURE__ */ n.jsx(i, { sx: t.leadQuestionContainer, children: /* @__PURE__ */ n.jsx(i, { sx: t.leadContentContainer, children: /* @__PURE__ */ n.jsx(
662
+ Q,
663
+ {
664
+ sdk: e.sdk,
665
+ contentId: k.id,
666
+ contentName: k.title,
667
+ brandingColors: (F = k.branding) == null ? void 0 : F.colors,
668
+ brandingUrls: (W = k.branding) == null ? void 0 : W.urls,
669
+ campaignId: (l = e.leads) == null ? void 0 : l.campaignId,
670
+ campaignName: (C = e.leads) == null ? void 0 : C.campaignName,
671
+ fields: (R = e.leads) == null ? void 0 : R.fields,
672
+ leadTitle: (I = k.labels) == null ? void 0 : I.leadTitle,
673
+ leadDescription: (T = k.labels) == null ? void 0 : T.leadDescription,
674
+ leadCta: (M = k.labels) == null ? void 0 : M.leadCta,
675
+ leadSuccessTitle: (L = k.labels) == null ? void 0 : L.leadSuccessTitle,
676
+ leadSuccessDescription: (w = k.labels) == null ? void 0 : w.leadSuccessDescription,
677
+ syncWithProfile: (H = e.leads) == null ? void 0 : H.syncWithProfile,
678
+ startGame: e.onLeadSubmitted,
679
+ isAfterPosition: !0,
680
+ isSubmittingParticipation: e.isSubmitting
681
+ }
682
+ ) }) }) }),
683
+ c && /* @__PURE__ */ n.jsx(
684
+ e.PresentedBy,
685
+ {
686
+ brandingLogo: c,
687
+ textColor: S,
688
+ label: ((U = k.labels) == null ? void 0 : U.sponsor) || null,
689
+ primaryUrl: (q = (N = k.branding) == null ? void 0 : N.urls) == null ? void 0 : q.primaryUrl,
690
+ secondaryUrl: (O = (D = k.branding) == null ? void 0 : D.urls) == null ? void 0 : O.secondaryUrl
691
+ }
692
+ )
693
+ ] });
694
+ };
695
+ return /* @__PURE__ */ n.jsx(e.MainCard, { brandingBorderColor: v, children: /* @__PURE__ */ n.jsx(
696
+ ne,
697
+ {
698
+ entity: e.entity,
699
+ headline: e.headline,
700
+ finalImage: u,
701
+ imagePosition: o,
702
+ rulesDisplay: e.rulesDisplay,
703
+ children: P()
704
+ }
705
+ ) });
706
+ }, me = (e) => {
707
+ var a, r, x, y, f, b, p;
708
+ const u = $(), s = z(), d = s ? e.mobileImagePlaceholder || e.defaultImagePlaceholder || "" : e.defaultImagePlaceholder || "", m = J(
709
+ {
710
+ images: e.entity.images || null,
711
+ imagePlaceholder: d
712
+ },
713
+ Z.SPLIT
714
+ ), h = ((a = e.entity.branding) == null ? void 0 : a.colors) || null, g = (h == null ? void 0 : h.borderColor) || null, v = (h == null ? void 0 : h.backgroundColor) || A().surfaceVariant, c = E(v), o = B(), S = Y(), t = s ? ((x = (r = e.entity.branding) == null ? void 0 : r.images) == null ? void 0 : x.mobileLogo) || ((f = (y = e.entity.branding) == null ? void 0 : y.images) == null ? void 0 : f.mainLogo) || "" : ((p = (b = e.entity.branding) == null ? void 0 : b.images) == null ? void 0 : p.mainLogo) || "", P = {
715
+ questionArea: {
716
+ width: "100%",
717
+ justifyContent: "center",
718
+ display: "flex",
719
+ flexDirection: "column"
720
+ },
721
+ questionAreaContent: {
722
+ p: o.lg,
723
+ display: "flex",
724
+ flexDirection: "column",
725
+ justifyContent: "center",
726
+ gap: "16px"
727
+ },
728
+ leadContentContainer: {
729
+ p: o.md,
730
+ gap: o.md,
731
+ display: "flex",
732
+ flexDirection: "column",
733
+ backdropFilter: "blur(4px)",
734
+ bgcolor: `rgba(${c.replace(/[^\d,]/g, "")}, 0.5)`,
735
+ borderRadius: S.sm
736
+ }
737
+ }, F = (l) => {
738
+ var C, R, I, T, M;
739
+ return /* @__PURE__ */ n.jsx(
740
+ e.PresentedBy,
741
+ {
742
+ brandingLogo: t,
743
+ textColor: l,
744
+ label: ((C = e.entity.labels) == null ? void 0 : C.sponsor) || null,
745
+ primaryUrl: (I = (R = e.entity.branding) == null ? void 0 : R.urls) == null ? void 0 : I.primaryUrl,
746
+ secondaryUrl: (M = (T = e.entity.branding) == null ? void 0 : T.urls) == null ? void 0 : M.secondaryUrl,
747
+ isCentered: !1
748
+ }
749
+ );
750
+ }, W = () => {
751
+ var l, C, R, I, T, M, L, w, H, U, N;
752
+ const { CollectLeadWrapper: q, entity: D } = e;
753
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
754
+ /* @__PURE__ */ n.jsx(i, { sx: P.questionArea, children: /* @__PURE__ */ n.jsx(i, { sx: P.questionAreaContent, children: /* @__PURE__ */ n.jsx(i, { sx: P.leadContentContainer, children: /* @__PURE__ */ n.jsx(
755
+ q,
756
+ {
757
+ sdk: e.sdk,
758
+ contentId: D.id,
759
+ contentName: D.title,
760
+ brandingColors: (l = D.branding) == null ? void 0 : l.colors,
761
+ brandingUrls: (C = D.branding) == null ? void 0 : C.urls,
762
+ campaignId: (R = e.leads) == null ? void 0 : R.campaignId,
763
+ campaignName: (I = e.leads) == null ? void 0 : I.campaignName,
764
+ fields: (T = e.leads) == null ? void 0 : T.fields,
765
+ leadTitle: (M = D.labels) == null ? void 0 : M.leadTitle,
766
+ leadDescription: (L = D.labels) == null ? void 0 : L.leadDescription,
767
+ leadCta: (w = D.labels) == null ? void 0 : w.leadCta,
768
+ leadSuccessTitle: (H = D.labels) == null ? void 0 : H.leadSuccessTitle,
769
+ leadSuccessDescription: (U = D.labels) == null ? void 0 : U.leadSuccessDescription,
770
+ syncWithProfile: (N = e.leads) == null ? void 0 : N.syncWithProfile,
771
+ startGame: e.onLeadSubmitted,
772
+ isAfterPosition: !0,
773
+ isSubmittingParticipation: e.isSubmitting
774
+ }
775
+ ) }) }) }),
776
+ t && s && /* @__PURE__ */ n.jsx(i, { sx: { mb: o.lg, px: o.lg }, children: F(
777
+ (h == null ? void 0 : h.contentColor) || u.colorSchemes.dark.textColor
778
+ ) })
779
+ ] });
780
+ };
781
+ return /* @__PURE__ */ n.jsx(e.MainCard, { brandingBorderColor: g, children: /* @__PURE__ */ n.jsx(
782
+ le,
783
+ {
784
+ entity: e.entity,
785
+ headline: e.headline,
786
+ finalImage: m,
787
+ brandingLogo: t,
788
+ renderPresentedBy: F,
789
+ rulesDisplay: e.rulesDisplay,
790
+ children: W()
791
+ }
792
+ ) });
793
+ }, ye = (e) => {
794
+ const a = $(), r = z(), x = e.defaultImagePlaceholder ? e.defaultImagePlaceholder || "" : r ? e.mobileImagePlaceholder : e.defaultImagePlaceholder || "", { brandingImage: y, brandingColors: f, brandingLogo: b } = ee(e.entity.branding || null), p = y || J(
795
+ {
796
+ images: e.entity.images || null,
797
+ imagePlaceholder: x || ""
798
+ },
799
+ Z.OVERLAY
800
+ ), u = B(), s = (f == null ? void 0 : f.backgroundColor) || a.colorSchemes.dark.surfaceVariant, d = {
801
+ mainContentSection: {
802
+ display: "flex",
803
+ flexDirection: "column",
804
+ gap: "24px"
805
+ },
806
+ contentContainerWithBackdrop: {
807
+ borderRadius: a.customRadius.dark.sm,
808
+ p: u.md,
809
+ display: "flex",
810
+ flexDirection: "column",
811
+ gap: u.md,
812
+ backdropFilter: "blur(4px)",
813
+ position: "relative",
814
+ "&::before": {
815
+ content: '""',
816
+ position: "absolute",
817
+ top: 0,
818
+ left: 0,
819
+ right: 0,
820
+ bottom: 0,
821
+ backgroundColor: s,
822
+ opacity: 0.5,
823
+ borderRadius: "inherit",
824
+ zIndex: 0
825
+ },
826
+ "& > *": {
827
+ position: "relative",
828
+ zIndex: 1
829
+ }
830
+ },
831
+ presentedByContainer: {
832
+ display: "flex",
833
+ alignItems: "center",
834
+ justifyContent: r ? "center" : "space-between",
835
+ flexDirection: r ? "column-reverse" : "row",
836
+ gap: u.md
837
+ }
838
+ }, m = () => {
839
+ var g, v, c, o, S;
840
+ return /* @__PURE__ */ n.jsx(
841
+ e.PresentedBy,
842
+ {
843
+ brandingLogo: b || "",
844
+ textColor: a.colorSchemes.dark.textColor,
845
+ label: ((g = e.entity.labels) == null ? void 0 : g.sponsor) || null,
846
+ primaryUrl: (c = (v = e.entity.branding) == null ? void 0 : v.urls) == null ? void 0 : c.primaryUrl,
847
+ secondaryUrl: (S = (o = e.entity.branding) == null ? void 0 : o.urls) == null ? void 0 : S.secondaryUrl
848
+ }
849
+ );
850
+ }, h = () => {
851
+ var g, v, c, o, S, t, P, F, W, l, C;
852
+ return /* @__PURE__ */ n.jsxs(i, { sx: d.mainContentSection, children: [
853
+ /* @__PURE__ */ n.jsx(i, { sx: d.contentContainerWithBackdrop, children: /* @__PURE__ */ n.jsx(
854
+ e.CollectLeadWrapper,
855
+ {
856
+ sdk: e.sdk,
857
+ contentId: e.entity.id,
858
+ contentName: e.entity.title,
859
+ brandingColors: (g = e.entity.branding) == null ? void 0 : g.colors,
860
+ brandingUrls: (v = e.entity.branding) == null ? void 0 : v.urls,
861
+ campaignId: (c = e.leads) == null ? void 0 : c.campaignId,
862
+ campaignName: (o = e.leads) == null ? void 0 : o.campaignName,
863
+ fields: (S = e.leads) == null ? void 0 : S.fields,
864
+ leadTitle: (t = e.entity.labels) == null ? void 0 : t.leadTitle,
865
+ leadDescription: (P = e.entity.labels) == null ? void 0 : P.leadDescription,
866
+ leadCta: (F = e.entity.labels) == null ? void 0 : F.leadCta,
867
+ leadSuccessTitle: (W = e.entity.labels) == null ? void 0 : W.leadSuccessTitle,
868
+ leadSuccessDescription: (l = e.entity.labels) == null ? void 0 : l.leadSuccessDescription,
869
+ syncWithProfile: (C = e.leads) == null ? void 0 : C.syncWithProfile,
870
+ startGame: e.onLeadSubmitted,
871
+ isAfterPosition: !0,
872
+ isSubmittingParticipation: e.isSubmitting
873
+ }
874
+ ) }),
875
+ /* @__PURE__ */ n.jsx(i, { sx: d.presentedByContainer, children: m() })
876
+ ] });
877
+ };
878
+ return /* @__PURE__ */ n.jsx(
879
+ ie,
880
+ {
881
+ entity: e.entity,
882
+ headline: e.headline,
883
+ finalImage: p,
884
+ rulesDisplay: e.rulesDisplay,
885
+ children: h()
886
+ }
887
+ );
888
+ };
889
+ export {
890
+ ye as C,
891
+ me as b,
892
+ pe as f,
893
+ ue as h,
894
+ xe as u,
895
+ ge as y
896
+ };