fansunited-frontend-components 0.0.31-RC4 → 0.0.31-RC6

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