fansunited-frontend-components 0.0.69 → 0.0.71

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 (95) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +529 -520
  3. package/ClassicQuizPlay.js +1725 -1458
  4. package/CollectLead.js +141 -141
  5. package/Discussion.js +1 -1
  6. package/EitherOrPlay.js +1524 -1331
  7. package/EventCard.js +3001 -1848
  8. package/EventGamePlay.js +2023 -1742
  9. package/Leaderboard.js +367 -357
  10. package/MatchQuizPlay.js +2936 -2649
  11. package/PersonalityQuizPlay.js +1395 -1119
  12. package/PickThePair.js +481 -472
  13. package/PlayerOfTheMatch.js +235 -234
  14. package/PollVote.js +1318 -1036
  15. package/Predictor.js +4383 -4390
  16. package/README.md +110 -4
  17. package/Standings.js +652 -643
  18. package/TopX.js +2646 -2645
  19. package/chunks/{AccessTime-7cim24ED.js → AccessTime-BkHriW4j.js} +1 -1
  20. package/chunks/{AlertMessage-X4MQ4qsN.js → AlertMessage-DwSmhmHt.js} +11 -11
  21. package/chunks/{Avatar-RBMU1Gkk.js → Avatar-CEbT4X-o.js} +22 -22
  22. package/chunks/{Button-GawVOPKi.js → Button-CO-k2gLb.js} +3 -3
  23. package/chunks/{Card--xcz3SKi.js → Card-DZdPl8-h.js} +7 -7
  24. package/chunks/{CardActions-CPwvcLGp.js → CardActions-DTThyeLX.js} +20 -20
  25. package/chunks/{CardContent-Ew6fr-KR.js → CardContent-CzC1EwoD.js} +14 -14
  26. package/chunks/{ChanceGameEmbedVariant-Dio4ihOd.js → ChanceGameEmbedVariant-CteJ4tix.js} +309 -195
  27. package/chunks/{CheckCircle-DgKcR_no.js → CheckCircle-BzM-2e1z.js} +1 -1
  28. package/chunks/{Chip-CYpaygnD.js → Chip-BF1FXK0I.js} +15 -15
  29. package/chunks/{Close-CdJNGcLx.js → Close-BiMLcNyG.js} +1 -1
  30. package/chunks/{Close-D2mtuGDo.js → Close-CggU6Ga3.js} +1 -1
  31. package/chunks/{CollectLeadForm-D0P_JHmT.js → CollectLeadForm-BZj-9IDt.js} +1389 -1463
  32. package/chunks/ConsentsList-CtKgLYa8.js +339 -0
  33. package/chunks/DirectionScope-BGDPaR6B.js +24 -0
  34. package/chunks/{Divider-DcW0V71y.js → Divider-Dueyhj7K.js} +8 -8
  35. package/chunks/{Edit-Bcj6J4rt.js → Edit-Dqa7th_A.js} +3 -3
  36. package/chunks/EditOutlined-B__rjTwX.js +14 -0
  37. package/chunks/{EmojiEvents-g001ss_z.js → EmojiEvents-CpsA2Qo0.js} +1 -1
  38. package/chunks/{FavoriteBorder-Lr6swB6-.js → FavoriteBorder-DrC_eOCd.js} +1 -1
  39. package/chunks/{FormControl-BKlK7WPd.js → FormControl-fKyT2Mql.js} +34 -33
  40. package/chunks/{FormControlContext-B2HqeXgq.js → FormControlContext-CSrMcHcv.js} +11 -11
  41. package/chunks/{FormLabel-C47pX5hN.js → FormLabel-DlXT5RZd.js} +22 -25
  42. package/chunks/{InlineSpinner-Imz27zb2.js → InlineSpinner-CuisRY-E.js} +2 -2
  43. package/chunks/{Input-nS_KO1Bu.js → Input-CkSIGH-d.js} +15 -15
  44. package/chunks/{KeyboardArrowDown-CyZAOE-W.js → KeyboardArrowDown-DL8VjkJT.js} +1 -1
  45. package/chunks/{KeyboardArrowRight-FI0kqwO1.js → KeyboardArrowRight-Cm50UqHb.js} +1 -1
  46. package/chunks/{Link-DKU7kDL8.js → Link-BljMbRuR.js} +13 -13
  47. package/chunks/{ListItemButton-CPVIEVpf.js → ListItemButton-BqEcbBU0.js} +50 -50
  48. package/chunks/{ModalDialog-DDx8wQa3.js → ModalDialog-B0DLv5vW.js} +59 -59
  49. package/chunks/{NotFoundSkeleton-CJZIRj5-.js → NotFoundSkeleton-DKxLhOwI.js} +149 -125
  50. package/chunks/{Notification-BvVfrrB3.js → Notification-CEdU0opQ.js} +18 -18
  51. package/chunks/{OverlayScoreStateSkeleton-CAhCAjkS.js → OverlayScoreStateSkeleton-BtCy650g.js} +18 -12
  52. package/chunks/{ArrowRightAlt-DrBMgptf.js → OverlayScoreStateWrapperSkeleton-Ch_E6KQ6.js} +18 -21
  53. package/chunks/OverlaySignInSkeleton-DEiH7fmp.js +517 -0
  54. package/chunks/{Person-DB_bEPcg.js → Person-CLQl7Sxs.js} +1 -1
  55. package/chunks/{PersonOutline-BAOtfb1t.js → PersonOutline-D8yrpbw7.js} +1 -1
  56. package/chunks/{PickOneOfX-Dp6fzXJn.js → PickOneOfX-CG0B5u7Y.js} +3 -3
  57. package/chunks/{Popper-Bpy7eYt-.js → Popper-BSnc2Lit.js} +58 -58
  58. package/chunks/Portal-D8t1Jd5e.js +65 -0
  59. package/chunks/{Portal-Dvh4m8kk.js → Portal-cK515D9M.js} +4 -4
  60. package/chunks/{PrizeCard-CXjFADAN.js → PrizeCard-CyVJJLo1.js} +6295 -4346
  61. package/chunks/{Search-uVJw-NhK.js → Search-BXhhax8M.js} +1 -1
  62. package/chunks/{Select-BeixD4Vw.js → Select-DyRdhrMr.js} +61 -61
  63. package/chunks/{Sheet-vOgATocO.js → Sheet-sYNAL7gX.js} +14 -14
  64. package/chunks/{Spinner-C219bcnm.js → Spinner-Bb4eb64F.js} +2 -2
  65. package/chunks/SplitSignInSkeleton-BZT0ngoW.js +150 -0
  66. package/chunks/{Stack-JIDLCVx0.js → Stack-DX41loGb.js} +21 -21
  67. package/chunks/{StandardContentSkeleton-DsGBNMHN.js → StandardContentSkeleton-DAh7l7cd.js} +12 -12
  68. package/chunks/{Table-Cx7htUDp.js → Table-C09wF6nK.js} +8 -8
  69. package/chunks/{Tabs-CIJK8YZY.js → Tabs-Dhih1Lqb.js} +46 -46
  70. package/chunks/{Textarea-KSwIUuq8.js → Textarea-DWyUKbVv.js} +184 -244
  71. package/chunks/{TimerOutlined-BUL4BZFp.js → TimerOutlined-DeWQFv5g.js} +1 -1
  72. package/chunks/{Tooltip-DrP2vx9i.js → Tooltip-Dnj_oxHb.js} +55 -55
  73. package/chunks/{Typography-DFdgIDQS.js → Typography-B8CtvKkm.js} +1 -1
  74. package/chunks/{dividerClasses-BtSFa36Z.js → dividerClasses-BoOrlu7X.js} +1 -1
  75. package/chunks/{elementAcceptingRef-CZFKGdxR.js → elementAcceptingRef-DROQPsxj.js} +1 -1
  76. package/chunks/formLabelClasses-Bh4Fh0fk.js +9 -0
  77. package/chunks/{helpers-D8cWUfGf.js → helpers-DgUDSfd1.js} +14 -12
  78. package/chunks/{index-DZqXLvFO.js → index-C_R74meU.js} +69 -72
  79. package/chunks/index-PC-q6Shn.js +4 -0
  80. package/chunks/{main-C05CZWMa.js → main-5c5yYsj9.js} +973 -963
  81. package/chunks/{main-CHr45Z4W.js → main-BXu1mzLz.js} +157 -157
  82. package/chunks/{useButton-tjUHKc-B.js → useButton-CQ2o2nXk.js} +2 -2
  83. package/chunks/useConsents-CIhPZNel.js +1165 -0
  84. package/chunks/{useEventCallback-BFPi8YtI.js → useEventCallback-B1ahtq-a.js} +1 -1
  85. package/chunks/{useForwardedInput-VvmRv9KU.js → useForwardedInput-DRXHXEOw.js} +22 -22
  86. package/chunks/{useImageVariant-Cs6lWUs2.js → useImageVariant-D6aho5sy.js} +1 -1
  87. package/chunks/useSwitch-CYz8kkTr.js +65 -0
  88. package/index.js +3 -3
  89. package/package.json +2 -2
  90. package/chunks/EditOutlined-PCc4gafz.js +0 -11
  91. package/chunks/OverlayApiErrorSkeleton-JMWA0FV8.js +0 -731
  92. package/chunks/OverlayLeadAfterCollection-BwF9MvIB.js +0 -678
  93. package/chunks/Portal-bNE7Trh9.js +0 -55
  94. package/chunks/SplitLeadAfterCollection-BijLacCk.js +0 -236
  95. package/chunks/index-JDeYpSi1.js +0 -4
@@ -1,678 +0,0 @@
1
- import { jsxs as l, Fragment as Z, jsx as n } from "react/jsx-runtime";
2
- import { i as w, a as L, f as z, d as q, c as J, b as W, m as ee, W as U, B as t } from "./PrizeCard-CXjFADAN.js";
3
- import { h as K, g as ne, s as H, e as te } from "./helpers-D8cWUfGf.js";
4
- import { R as A, S as ie, O as le } from "./NotFoundSkeleton-CJZIRj5-.js";
5
- import { T as h } from "./Typography-DFdgIDQS.js";
6
- import "react";
7
- import "react-dom";
8
- import { b as X, d as ae, a as oe } from "./useImageVariant-Cs6lWUs2.js";
9
- const re = (e) => {
10
- var s, c, d;
11
- return {
12
- // Mobile headline with image background
13
- mobileHeadlineWithImage: {
14
- display: e.isMobile ? "flex" : "none",
15
- flexDirection: "column",
16
- justifyContent: "space-between",
17
- gap: "10px",
18
- backgroundImage: `url("${e.finalImage}")`,
19
- backgroundSize: "cover",
20
- backgroundPosition: "center",
21
- borderTopLeftRadius: "5px",
22
- borderTopRightRadius: "5px",
23
- position: "relative",
24
- minHeight: "210px",
25
- overflow: "hidden",
26
- height: "auto",
27
- "&::before": {
28
- content: '""',
29
- position: "absolute",
30
- width: "100%",
31
- height: "100%",
32
- background: e.imageBackgroundGradient,
33
- borderTopLeftRadius: "5px",
34
- borderTopRightRadius: "5px"
35
- }
36
- },
37
- // Content inside mobile headline with image
38
- mobileHeadlineContent: {
39
- zIndex: 1,
40
- p: e.spacingScale.xl,
41
- gap: e.spacingScale["2xl"],
42
- display: "flex",
43
- flexDirection: "column",
44
- justifyContent: "space-between"
45
- },
46
- // Mobile headline without image
47
- mobileHeadlineWithoutImage: {
48
- display: e.isMobile ? "flex" : "none",
49
- flex: "0.5",
50
- flexDirection: "column",
51
- justifyContent: "space-between",
52
- p: e.spacingScale.lg,
53
- gap: e.spacingScale["2xl"]
54
- },
55
- // Headline typography (mobile with image)
56
- headlineTypographyMobileImage: {
57
- fontWeight: 500,
58
- lineHeight: "166%",
59
- letterSpacing: "1px",
60
- fontSize: "0.75em",
61
- color: ((s = e.brandingColors) == null ? void 0 : s.secondaryColor) || e.darkTextColor,
62
- opacity: "70%",
63
- textTransform: "uppercase",
64
- fontFamily: e.fontFamilySecondary,
65
- textAlign: "center"
66
- },
67
- // Headline typography (mobile without image & desktop)
68
- headlineTypography: {
69
- fontWeight: 500,
70
- lineHeight: "166%",
71
- letterSpacing: "1px",
72
- textTransform: "uppercase",
73
- fontSize: "0.75em",
74
- color: e.secondaryColor,
75
- opacity: e.opacity,
76
- fontFamily: e.fontFamilySecondary,
77
- textAlign: "center"
78
- },
79
- // Title typography (mobile with image)
80
- titleTypographyMobileImage: {
81
- fontWeight: 700,
82
- lineHeight: "133%",
83
- fontSize: "1.5em",
84
- letterSpacing: "0.15px",
85
- color: ((c = e.brandingColors) == null ? void 0 : c.contentColor) || e.darkTextColor,
86
- fontFamily: e.fontFamilyPrimary,
87
- textAlign: "center"
88
- },
89
- // Title typography (mobile without image)
90
- titleTypography: {
91
- fontWeight: 700,
92
- lineHeight: "133%",
93
- letterSpacing: "0px",
94
- fontSize: "1.5em",
95
- color: e.textColor,
96
- fontFamily: e.fontFamilyPrimary,
97
- textAlign: e.isMobile ? "center" : "left"
98
- },
99
- // Description typography (mobile with image)
100
- descriptionTypographyMobileImage: {
101
- fontWeight: 400,
102
- lineHeight: "140%",
103
- fontSize: "1.25em",
104
- letterSpacing: "0.15px",
105
- color: ((d = e.brandingColors) == null ? void 0 : d.secondaryColor) || e.darkTextColor,
106
- opacity: "70%",
107
- fontFamily: e.fontFamilyPrimary,
108
- textAlign: "center"
109
- },
110
- // Description typography (mobile without image)
111
- descriptionTypography: {
112
- fontWeight: 400,
113
- lineHeight: "140%",
114
- letterSpacing: "0.15px",
115
- fontSize: "1.25em",
116
- color: e.secondaryColor,
117
- opacity: e.opacity,
118
- fontFamily: e.fontFamilyPrimary,
119
- textAlign: e.isMobile ? "center" : "left"
120
- },
121
- // Desktop title typography
122
- titleTypographyDesktop: {
123
- fontWeight: 700,
124
- lineHeight: "133%",
125
- letterSpacing: "0px",
126
- fontSize: "1.5em",
127
- color: e.textColor,
128
- fontFamily: e.fontFamilyPrimary
129
- },
130
- // Desktop description typography
131
- descriptionTypographyDesktop: {
132
- fontWeight: 400,
133
- lineHeight: "140%",
134
- letterSpacing: "0.15px",
135
- fontSize: "1.25em",
136
- color: e.secondaryColor,
137
- opacity: e.opacity,
138
- fontFamily: e.fontFamilyPrimary
139
- },
140
- // Image container (left position)
141
- imageContainerLeft: {
142
- display: e.isMobile ? "none" : "block",
143
- flex: "0.3",
144
- borderTopLeftRadius: e.borderRadius.md,
145
- borderBottomLeftRadius: e.borderRadius.md,
146
- overflow: "hidden",
147
- height: "auto",
148
- position: "relative"
149
- },
150
- // Image container (right position)
151
- imageContainerRight: {
152
- display: e.isMobile ? "none" : "block",
153
- flex: "0.3",
154
- borderTopRightRadius: "5px",
155
- borderBottomRightRadius: "5px",
156
- overflow: "hidden",
157
- height: "auto",
158
- position: "relative"
159
- },
160
- // Main content area
161
- mainContentArea: {
162
- flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
163
- display: e.isMobile ? "none" : "flex",
164
- flexDirection: "column",
165
- p: e.spacingScale.md,
166
- gap: e.spacingScale["2xl"]
167
- },
168
- // Desktop headline container
169
- desktopHeadlineContainer: {
170
- display: e.isMobile ? "none" : "flex",
171
- flexDirection: "column",
172
- gap: e.spacingScale.xl,
173
- textAlign: "center"
174
- },
175
- // Content container
176
- contentContainer: {
177
- display: "flex",
178
- flexDirection: "column",
179
- gap: e.spacingScale["3xs"]
180
- },
181
- // Sign in button container
182
- signInButtonContainer: {
183
- display: "flex",
184
- flexDirection: "column",
185
- justifyContent: "space-between",
186
- alignItems: "center",
187
- gap: e.spacingScale["2xl"]
188
- },
189
- // Branding container
190
- brandingContainer: {
191
- px: e.spacingScale.md
192
- },
193
- image: {
194
- width: "100%",
195
- height: "100%",
196
- objectFit: "cover"
197
- }
198
- };
199
- }, he = ({
200
- entity: e,
201
- headline: s,
202
- finalImage: c,
203
- imagePosition: d = "left",
204
- signInContent: T,
205
- brandingContent: b,
206
- rulesDisplay: C
207
- }) => {
208
- var M, B;
209
- const p = w(), m = L(), x = z(), y = q().primary, S = q().secondary, I = J(), a = ((M = e.branding) == null ? void 0 : M.colors) || null, g = ((B = e.branding) == null ? void 0 : B.urls) || null, f = (a == null ? void 0 : a.contentColor) || W().textColor, u = (a == null ? void 0 : a.secondaryColor) || W().textColor, o = (a == null ? void 0 : a.backgroundColor) || W().surfaceVariant, k = "60%", D = ee(
210
- U.STANDARD
211
- ), i = re({
212
- finalImage: c,
213
- spacingScale: x,
214
- borderRadius: I,
215
- fontFamilyPrimary: y,
216
- fontFamilySecondary: S,
217
- textColor: f,
218
- secondaryColor: u,
219
- bgcolor: K(o || ""),
220
- opacity: k,
221
- brandingColors: a,
222
- imagePosition: d,
223
- darkTextColor: m.colorSchemes.dark.textColor,
224
- imageBackgroundGradient: D,
225
- isMobile: p
226
- }), r = ne(
227
- g == null ? void 0 : g.primaryUrl,
228
- g == null ? void 0 : g.secondaryUrl,
229
- "image"
230
- ), F = (R, v) => typeof window > "u" ? r ? /* @__PURE__ */ n(
231
- t,
232
- {
233
- component: "a",
234
- href: r,
235
- target: "_blank",
236
- sx: v,
237
- children: R
238
- }
239
- ) : /* @__PURE__ */ n(t, { sx: v, children: R }) : r ? /* @__PURE__ */ n(
240
- t,
241
- {
242
- sx: { ...v, cursor: "pointer" },
243
- onClick: () => window.open(r, "_blank"),
244
- children: R
245
- }
246
- ) : /* @__PURE__ */ n(t, { sx: v, children: R });
247
- return /* @__PURE__ */ l(Z, { children: [
248
- c ? F(
249
- /* @__PURE__ */ l(t, { sx: i.mobileHeadlineContent, children: [
250
- /* @__PURE__ */ l(t, { children: [
251
- /* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
252
- /* @__PURE__ */ n(
253
- h,
254
- {
255
- level: "body-sm",
256
- sx: i.headlineTypographyMobileImage,
257
- children: s
258
- }
259
- ),
260
- /* @__PURE__ */ n(
261
- A,
262
- {
263
- rulesDisplay: C,
264
- rules: e.rules || ""
265
- }
266
- )
267
- ] }),
268
- /* @__PURE__ */ l(t, { sx: i.contentContainer, children: [
269
- /* @__PURE__ */ n(
270
- h,
271
- {
272
- level: "body-lg",
273
- sx: i.titleTypographyMobileImage,
274
- children: e.title
275
- }
276
- ),
277
- /* @__PURE__ */ n(
278
- h,
279
- {
280
- level: "body-md",
281
- sx: i.descriptionTypographyMobileImage,
282
- children: H(e.description)
283
- }
284
- )
285
- ] })
286
- ] }),
287
- /* @__PURE__ */ l(t, { sx: i.signInButtonContainer, children: [
288
- T,
289
- b
290
- ] })
291
- ] }),
292
- i.mobileHeadlineWithImage
293
- ) : /* @__PURE__ */ l(t, { sx: i.mobileHeadlineWithoutImage, children: [
294
- /* @__PURE__ */ l(t, { children: [
295
- /* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
296
- /* @__PURE__ */ n(h, { level: "body-sm", sx: i.headlineTypography, children: s }),
297
- /* @__PURE__ */ n(
298
- A,
299
- {
300
- rulesDisplay: C,
301
- rules: e.rules || ""
302
- }
303
- )
304
- ] }),
305
- /* @__PURE__ */ l(t, { sx: i.contentContainer, children: [
306
- /* @__PURE__ */ n(h, { level: "h4", sx: i.titleTypography, children: e.title }),
307
- /* @__PURE__ */ n(h, { level: "body-md", sx: i.descriptionTypography, children: H(e.description) })
308
- ] })
309
- ] }),
310
- /* @__PURE__ */ l(t, { sx: i.signInButtonContainer, children: [
311
- T,
312
- b
313
- ] })
314
- ] }),
315
- c && d === "left" && /* @__PURE__ */ n(t, { sx: i.imageContainerLeft, children: /* @__PURE__ */ n("img", { src: c, alt: "Illustration", style: i.image }) }),
316
- /* @__PURE__ */ n(t, { sx: i.mainContentArea, children: /* @__PURE__ */ l(t, { sx: i.desktopHeadlineContainer, children: [
317
- /* @__PURE__ */ l(t, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: x["3xs"] }, children: [
318
- /* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
319
- /* @__PURE__ */ n(h, { level: "body-sm", sx: i.headlineTypography, children: s }),
320
- /* @__PURE__ */ n(
321
- A,
322
- {
323
- rulesDisplay: C,
324
- rules: e.rules || ""
325
- }
326
- )
327
- ] }),
328
- /* @__PURE__ */ l(t, { sx: i.contentContainer, children: [
329
- /* @__PURE__ */ n(h, { level: "h4", sx: i.titleTypographyDesktop, children: e.title }),
330
- /* @__PURE__ */ n(
331
- h,
332
- {
333
- level: "body-md",
334
- sx: i.descriptionTypographyDesktop,
335
- children: H(e.description)
336
- }
337
- )
338
- ] })
339
- ] }),
340
- /* @__PURE__ */ n(t, { sx: i.signInButtonContainer, children: T }),
341
- b
342
- ] }) }),
343
- c && d === "right" && /* @__PURE__ */ n(t, { sx: i.imageContainerRight, children: /* @__PURE__ */ n("img", { src: c, alt: "Illustration", style: i.image }) })
344
- ] });
345
- }, ce = (e) => {
346
- var s;
347
- return {
348
- // Main container with background overlay
349
- mainContainer: {
350
- display: "flex",
351
- flexDirection: "column",
352
- justifyContent: "space-between",
353
- gap: "40px",
354
- p: e.spacingScale.xl,
355
- boxShadow: "md",
356
- border: (s = e.brandingColors) != null && s.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
357
- overflow: "hidden",
358
- backgroundImage: e.backgroundImage,
359
- backgroundSize: "cover",
360
- backgroundPosition: "center",
361
- position: "relative",
362
- borderRadius: e.mdBorderRadius,
363
- minHeight: "250px",
364
- "&::before": {
365
- content: '""',
366
- position: "absolute",
367
- background: e.imageBackgroundGradient,
368
- top: 0,
369
- left: 0,
370
- right: 0,
371
- bottom: 0,
372
- borderRadius: "inherit",
373
- zIndex: 0
374
- }
375
- },
376
- // Headline section wrapper
377
- headlineSection: {
378
- display: "flex",
379
- justifyContent: "space-between",
380
- flex: "1 0 0",
381
- alignSelf: "stretch"
382
- },
383
- // Headline content container
384
- headlineContent: {
385
- display: "flex",
386
- flexDirection: "column",
387
- alignItems: "flex-start",
388
- flex: "1 0 0",
389
- gap: "16px"
390
- },
391
- // Headline content with z-index
392
- headlineContentInner: {
393
- zIndex: 10
394
- },
395
- headlineText: {
396
- fontWeight: 500,
397
- lineHeight: "166%",
398
- letterSpacing: "1px",
399
- textAlign: e.isMobile ? "center" : "left",
400
- color: e.secondaryColor,
401
- opacity: "70%",
402
- textTransform: "uppercase",
403
- fontFamily: e.fontFamilySecondary,
404
- fontSize: "0.75em"
405
- },
406
- // Content container
407
- contentContainer: {
408
- display: "flex",
409
- flexDirection: "column",
410
- gap: e.spacingScale["3xs"]
411
- },
412
- titleText: {
413
- fontWeight: 700,
414
- lineHeight: "133%",
415
- letterSpacing: "0px",
416
- textAlign: e.isMobile ? "center" : "left",
417
- fontSize: "1.5em",
418
- color: e.darkTextColor,
419
- fontFamily: e.fontFamilyPrimary
420
- },
421
- descriptionText: {
422
- fontWeight: 400,
423
- lineHeight: "140%",
424
- letterSpacing: "0.15px",
425
- fontSize: "1.25em",
426
- textAlign: e.isMobile ? "center" : "left",
427
- color: e.secondaryColor,
428
- opacity: "70%",
429
- fontFamily: e.fontFamilyPrimary
430
- },
431
- // Bottom container
432
- bottomContainer: {
433
- display: "flex",
434
- alignItems: "center",
435
- justifyContent: "space-between",
436
- flexDirection: e.isMobile ? "column-reverse" : "row",
437
- gap: e.spacingScale.md
438
- },
439
- // Sign-in wrapper to always position at flex-end
440
- signInWrapper: {
441
- display: "flex",
442
- justifyContent: "flex-end",
443
- flex: 1
444
- }
445
- };
446
- }, be = ({
447
- entity: e,
448
- headline: s,
449
- backgroundImage: c,
450
- imageBackgroundGradient: d,
451
- signInContent: T,
452
- brandingContent: b,
453
- rulesDisplay: C
454
- }) => {
455
- var k;
456
- const p = w(), m = L(), x = z(), y = ((k = e.branding) == null ? void 0 : k.colors) || null, S = (y == null ? void 0 : y.contentColor) || m.colorSchemes.dark.textColor, I = m.customFontFamily.dark.primary, a = m.customFontFamily.dark.secondary, g = m.customRadius.dark.md, f = m.border.dark.size, u = m.colorSchemes.dark.textColor, o = ce({
457
- spacingScale: x,
458
- brandingColors: y,
459
- secondaryColor: S,
460
- fontFamilyPrimary: I,
461
- fontFamilySecondary: a,
462
- mdBorderRadius: g,
463
- borderSize: f,
464
- darkTextColor: u,
465
- backgroundImage: c,
466
- imageBackgroundGradient: d,
467
- isMobile: p
468
- });
469
- return /* @__PURE__ */ l(t, { sx: o.mainContainer, children: [
470
- /* @__PURE__ */ n(t, { children: /* @__PURE__ */ n(t, { sx: o.headlineSection, children: /* @__PURE__ */ n(t, { sx: o.headlineContent, children: /* @__PURE__ */ l(t, { sx: { ...o.headlineContentInner, display: "flex", flexDirection: "column", alignItems: p ? "center" : "flex-start", gap: x["3xs"] }, children: [
471
- /* @__PURE__ */ l(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
472
- /* @__PURE__ */ n(h, { level: "body-sm", sx: o.headlineText, children: s }),
473
- /* @__PURE__ */ n(
474
- A,
475
- {
476
- rulesDisplay: C,
477
- isOverlayVariant: !0,
478
- rules: e.rules || ""
479
- }
480
- )
481
- ] }),
482
- /* @__PURE__ */ l(t, { sx: o.contentContainer, children: [
483
- /* @__PURE__ */ n(h, { level: "h4", sx: o.titleText, children: e.title }),
484
- /* @__PURE__ */ n(h, { level: "body-lg", sx: o.descriptionText, children: H(e.description) })
485
- ] })
486
- ] }) }) }) }),
487
- /* @__PURE__ */ l(t, { sx: o.bottomContainer, children: [
488
- b,
489
- /* @__PURE__ */ n(t, { sx: o.signInWrapper, children: T })
490
- ] })
491
- ] });
492
- }, Ce = (e) => {
493
- var a, g, f, u, o, k, D;
494
- const s = X(
495
- {
496
- images: e.entity.images || null,
497
- imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
498
- },
499
- U.STANDARD
500
- ), c = w(), d = z(), T = J(), b = `rgba(${K(W().surfaceVariant || "")}, 0.5)`, C = ((a = e.entity.branding) == null ? void 0 : a.colors) || null, p = (C == null ? void 0 : C.borderColor) || null, m = c ? ((f = (g = e.entity.branding) == null ? void 0 : g.images) == null ? void 0 : f.mobileLogo) || ((o = (u = e.entity.branding) == null ? void 0 : u.images) == null ? void 0 : o.mainLogo) || "" : ((D = (k = e.entity.branding) == null ? void 0 : k.images) == null ? void 0 : D.mainLogo) || "", x = e.imagePosition || "left", y = W().textColor, S = {
501
- mainContentArea: {
502
- flex: c ? "1" : s ? "0.7" : "1",
503
- display: "flex",
504
- flexDirection: "column",
505
- p: d.md,
506
- gap: d.md
507
- },
508
- leadCollectionContainer: {
509
- display: "flex",
510
- flexDirection: "column"
511
- },
512
- leadQuestionContainer: {
513
- display: "flex",
514
- flexDirection: "column",
515
- gap: c ? d.lg : d.md
516
- },
517
- leadContentContainer: {
518
- borderRadius: T.md,
519
- px: d.md,
520
- pt: d.md,
521
- pb: d.lg,
522
- gap: d.md,
523
- bgcolor: b,
524
- display: "flex",
525
- flexDirection: "column",
526
- backdropFilter: "blur(4px)"
527
- }
528
- }, I = () => {
529
- var F, P, M, B, R, v, j, N, V, O, G, $, Q, _, E, Y;
530
- const { CollectLeadWrapper: i, entity: r } = e;
531
- return /* @__PURE__ */ l(t, { sx: S.mainContentArea, children: [
532
- /* @__PURE__ */ n(t, { sx: S.leadCollectionContainer, children: /* @__PURE__ */ n(t, { sx: S.leadQuestionContainer, children: /* @__PURE__ */ n(t, { sx: S.leadContentContainer, children: /* @__PURE__ */ n(
533
- i,
534
- {
535
- sdk: e.sdk,
536
- contentId: r.id,
537
- contentName: r.title,
538
- brandingColors: (F = r.branding) == null ? void 0 : F.colors,
539
- brandingUrls: (P = r.branding) == null ? void 0 : P.urls,
540
- campaignId: (M = e.leads) == null ? void 0 : M.campaignId,
541
- campaignName: (B = e.leads) == null ? void 0 : B.campaignName,
542
- fields: (R = e.leads) == null ? void 0 : R.fields,
543
- leadTitle: (v = r.labels) == null ? void 0 : v.leadTitle,
544
- leadDescription: (j = r.labels) == null ? void 0 : j.leadDescription,
545
- leadCta: (N = r.labels) == null ? void 0 : N.leadCta,
546
- leadSuccessTitle: (V = r.labels) == null ? void 0 : V.leadSuccessTitle,
547
- leadSuccessDescription: (O = r.labels) == null ? void 0 : O.leadSuccessDescription,
548
- syncWithProfile: (G = e.leads) == null ? void 0 : G.syncWithProfile,
549
- startGame: e.onLeadSubmitted,
550
- isAfterPosition: !0,
551
- isSubmittingParticipation: e.isSubmitting
552
- }
553
- ) }) }) }),
554
- m && /* @__PURE__ */ n(
555
- e.PresentedBy,
556
- {
557
- brandingLogo: m,
558
- textColor: y,
559
- label: (($ = r.labels) == null ? void 0 : $.sponsor) || null,
560
- primaryUrl: (_ = (Q = r.branding) == null ? void 0 : Q.urls) == null ? void 0 : _.primaryUrl,
561
- secondaryUrl: (Y = (E = r.branding) == null ? void 0 : E.urls) == null ? void 0 : Y.secondaryUrl
562
- }
563
- )
564
- ] });
565
- };
566
- return /* @__PURE__ */ n(e.MainCard, { brandingBorderColor: p, children: /* @__PURE__ */ n(
567
- ie,
568
- {
569
- entity: e.entity,
570
- headline: e.headline,
571
- finalImage: s,
572
- imagePosition: x,
573
- rulesDisplay: e.rulesDisplay,
574
- children: I()
575
- }
576
- ) });
577
- }, Se = (e) => {
578
- const s = L(), c = w(), d = e.defaultImagePlaceholder ? e.defaultImagePlaceholder : c ? ae : oe, { brandingImage: T, brandingColors: b, brandingLogo: C } = te(e.entity.branding || null), p = T || X(
579
- {
580
- images: e.entity.images || null,
581
- imagePlaceholder: d
582
- },
583
- U.OVERLAY
584
- ), m = z(), x = (b == null ? void 0 : b.backgroundColor) || s.colorSchemes.dark.surfaceVariant, y = {
585
- mainContentSection: {
586
- display: "flex",
587
- flexDirection: "column",
588
- gap: "24px"
589
- },
590
- contentContainerWithBackdrop: {
591
- borderRadius: s.customRadius.dark.sm,
592
- p: m.md,
593
- display: "flex",
594
- flexDirection: "column",
595
- gap: m.md,
596
- backdropFilter: "blur(4px)",
597
- position: "relative",
598
- "&::before": {
599
- content: '""',
600
- position: "absolute",
601
- top: 0,
602
- left: 0,
603
- right: 0,
604
- bottom: 0,
605
- backgroundColor: x,
606
- opacity: 0.5,
607
- borderRadius: "inherit",
608
- zIndex: 0
609
- },
610
- "& > *": {
611
- position: "relative",
612
- zIndex: 1
613
- }
614
- },
615
- presentedByContainer: {
616
- display: "flex",
617
- alignItems: "center",
618
- justifyContent: c ? "center" : "space-between",
619
- flexDirection: c ? "column-reverse" : "row",
620
- gap: m.md
621
- }
622
- }, S = () => {
623
- var a, g, f, u, o;
624
- return /* @__PURE__ */ n(
625
- e.PresentedBy,
626
- {
627
- brandingLogo: C || "",
628
- textColor: s.colorSchemes.dark.textColor,
629
- label: ((a = e.entity.labels) == null ? void 0 : a.sponsor) || null,
630
- primaryUrl: (f = (g = e.entity.branding) == null ? void 0 : g.urls) == null ? void 0 : f.primaryUrl,
631
- secondaryUrl: (o = (u = e.entity.branding) == null ? void 0 : u.urls) == null ? void 0 : o.secondaryUrl
632
- }
633
- );
634
- }, I = () => {
635
- var a, g, f, u, o, k, D, i, r, F, P;
636
- return /* @__PURE__ */ l(t, { sx: y.mainContentSection, children: [
637
- /* @__PURE__ */ n(t, { sx: y.contentContainerWithBackdrop, children: /* @__PURE__ */ n(
638
- e.CollectLeadWrapper,
639
- {
640
- sdk: e.sdk,
641
- contentId: e.entity.id,
642
- contentName: e.entity.title,
643
- brandingColors: (a = e.entity.branding) == null ? void 0 : a.colors,
644
- brandingUrls: (g = e.entity.branding) == null ? void 0 : g.urls,
645
- campaignId: (f = e.leads) == null ? void 0 : f.campaignId,
646
- campaignName: (u = e.leads) == null ? void 0 : u.campaignName,
647
- fields: (o = e.leads) == null ? void 0 : o.fields,
648
- leadTitle: (k = e.entity.labels) == null ? void 0 : k.leadTitle,
649
- leadDescription: (D = e.entity.labels) == null ? void 0 : D.leadDescription,
650
- leadCta: (i = e.entity.labels) == null ? void 0 : i.leadCta,
651
- leadSuccessTitle: (r = e.entity.labels) == null ? void 0 : r.leadSuccessTitle,
652
- leadSuccessDescription: (F = e.entity.labels) == null ? void 0 : F.leadSuccessDescription,
653
- syncWithProfile: (P = e.leads) == null ? void 0 : P.syncWithProfile,
654
- startGame: e.onLeadSubmitted,
655
- isAfterPosition: !0,
656
- isSubmittingParticipation: e.isSubmitting
657
- }
658
- ) }),
659
- /* @__PURE__ */ n(t, { sx: y.presentedByContainer, children: S() })
660
- ] });
661
- };
662
- return /* @__PURE__ */ n(
663
- le,
664
- {
665
- entity: e.entity,
666
- headline: e.headline,
667
- finalImage: p,
668
- rulesDisplay: e.rulesDisplay,
669
- children: I()
670
- }
671
- );
672
- };
673
- export {
674
- be as O,
675
- he as S,
676
- Ce as a,
677
- Se as b
678
- };