fansunited-frontend-components 0.0.39 → 0.0.40

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