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
package/CollectLead.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx as n, jsxs as g, Fragment as r } from "react/jsx-runtime";
2
- import { createContext as ce } from "react";
3
- import { d as Y, i as Q, B as o, u as de, g as J, a as K, f as X, m as Z, W as w, c as U, b as h, e as me } from "./chunks/PrizeCard-CXjFADAN.js";
4
- import { P as se } from "./chunks/Portal-bNE7Trh9.js";
1
+ import { jsx as n, jsxs as m, Fragment as r } from "react/jsx-runtime";
2
+ import { createContext as de } from "react";
3
+ import { d as Y, i as Q, B as o, u as se, g as J, a as K, f as X, m as Z, W as w, c as q, b as u, e as me, o as ge } from "./chunks/PrizeCard-CyVJJLo1.js";
4
+ import { P as xe } from "./chunks/Portal-D8t1Jd5e.js";
5
5
  import "react-dom";
6
- import { g as ge, a as xe, h as oe } from "./chunks/helpers-D8cWUfGf.js";
7
- import { d as le, a as ae, b as ee } from "./chunks/useImageVariant-Cs6lWUs2.js";
8
- import { T as u } from "./chunks/Typography-DFdgIDQS.js";
9
- import { C as fe } from "./chunks/CollectLeadForm-D0P_JHmT.js";
6
+ import { g as fe, a as ye, h as le } from "./chunks/helpers-DgUDSfd1.js";
7
+ import { d as ae, a as re, b as ee } from "./chunks/useImageVariant-D6aho5sy.js";
8
+ import { T as y } from "./chunks/Typography-B8CtvKkm.js";
9
+ import { C as ue } from "./chunks/CollectLeadForm-BZj-9IDt.js";
10
10
  const te = (e) => {
11
- const i = Y().secondary, m = Q(), a = ge(e.primaryUrl, e.secondaryUrl, "logo");
11
+ const i = Y().secondary, s = Q(), a = fe(e.primaryUrl, e.secondaryUrl, "logo");
12
12
  if (!e.brandingLogo)
13
13
  return null;
14
14
  const d = () => {
@@ -48,7 +48,7 @@ const te = (e) => {
48
48
  children: t
49
49
  }
50
50
  ) : t;
51
- return m ? /* @__PURE__ */ g(
51
+ return s ? /* @__PURE__ */ m(
52
52
  o,
53
53
  {
54
54
  sx: {
@@ -62,7 +62,7 @@ const te = (e) => {
62
62
  },
63
63
  children: [
64
64
  e.label && /* @__PURE__ */ n(
65
- u,
65
+ y,
66
66
  {
67
67
  level: "body-sm",
68
68
  sx: {
@@ -80,7 +80,7 @@ const te = (e) => {
80
80
  f
81
81
  ]
82
82
  }
83
- ) : /* @__PURE__ */ g(
83
+ ) : /* @__PURE__ */ m(
84
84
  o,
85
85
  {
86
86
  sx: {
@@ -93,7 +93,7 @@ const te = (e) => {
93
93
  },
94
94
  children: [
95
95
  e.label && /* @__PURE__ */ n(
96
- u,
96
+ y,
97
97
  {
98
98
  level: "body-sm",
99
99
  sx: {
@@ -112,62 +112,62 @@ const te = (e) => {
112
112
  ]
113
113
  }
114
114
  );
115
- }, _ = ce({
115
+ }, _ = de({
116
116
  shadowRootElement: null,
117
117
  language: null,
118
118
  sdk: null
119
- }), ye = ({
119
+ }), he = ({
120
120
  shadowRootElement: e,
121
121
  phoneCountryCode: i,
122
- images: m,
122
+ images: s,
123
123
  content: a,
124
124
  campaign: d,
125
125
  branding: t,
126
126
  labels: f,
127
127
  defaultImagePlaceholderUrl: b,
128
- language: C = "en",
129
- children: S,
130
- sdk: p,
131
- fields: T,
128
+ language: S = "en",
129
+ children: p,
130
+ sdk: T,
131
+ fields: k,
132
132
  onSuccessCta: j,
133
133
  customFields: N,
134
- consents: k,
135
- syncWithProfile: F = !1
134
+ consents: F,
135
+ syncWithProfile: P = !1
136
136
  }) => /* @__PURE__ */ n(
137
137
  _.Provider,
138
138
  {
139
139
  value: {
140
140
  shadowRootElement: e,
141
141
  phoneCountryCode: i,
142
- images: m,
142
+ images: s,
143
143
  content: a,
144
144
  campaign: d,
145
145
  branding: t,
146
146
  labels: f,
147
147
  defaultImagePlaceholderUrl: b,
148
- language: C,
149
- sdk: p,
150
- fields: T,
148
+ language: S,
149
+ sdk: T,
150
+ fields: k,
151
151
  onSuccessCta: j,
152
152
  customFields: N,
153
- consents: k,
154
- syncWithProfile: F
153
+ consents: F,
154
+ syncWithProfile: P
155
155
  },
156
- children: S
156
+ children: p
157
157
  }
158
158
  ), ne = () => {
159
- const { t: e } = de(), {
159
+ const { t: e } = se(), {
160
160
  sdk: i,
161
- content: m,
161
+ content: s,
162
162
  branding: a,
163
163
  campaign: d,
164
164
  labels: t,
165
165
  onSuccessCta: f,
166
166
  fields: b = ["fullName", "email"],
167
- consents: C,
168
- customFields: S,
169
- syncWithProfile: p = !1
170
- } = J(_), T = {
167
+ consents: S,
168
+ customFields: p,
169
+ syncWithProfile: T = !1
170
+ } = J(_), k = {
171
171
  title: t == null ? void 0 : t.formTitle,
172
172
  description: t == null ? void 0 : t.formDescription,
173
173
  fullNameLabel: t == null ? void 0 : t.formFullNameLabel,
@@ -190,21 +190,21 @@ const te = (e) => {
190
190
  termsAndConditionsUrlLabel: t == null ? void 0 : t.termsAndConditionsUrlLabel
191
191
  };
192
192
  return /* @__PURE__ */ n(
193
- fe,
193
+ ue,
194
194
  {
195
195
  sdk: i,
196
- content: m,
196
+ content: s,
197
197
  onSuccessCta: f,
198
198
  branding: a,
199
199
  campaign: d,
200
200
  fields: b,
201
- labels: T,
202
- consents: C,
203
- customFields: S,
204
- syncWithProfile: p
201
+ labels: k,
202
+ consents: S,
203
+ customFields: p,
204
+ syncWithProfile: T
205
205
  }
206
206
  );
207
- }, ue = (e) => ({
207
+ }, be = (e) => ({
208
208
  // Main container with background overlay
209
209
  mainContainer: {
210
210
  display: "flex",
@@ -387,36 +387,36 @@ const te = (e) => {
387
387
  display: "flex",
388
388
  alignItems: "center"
389
389
  }
390
- }), he = (e) => {
390
+ }), Ce = (e) => {
391
391
  let i = (e == null ? void 0 : e.mainLogo) || null;
392
392
  return Q() && (i = (e == null ? void 0 : e.mobileLogo) || (e == null ? void 0 : e.mainLogo) || null), i;
393
- }, be = () => {
394
- var l, $, q, P, R, I, L, D, z, H, v, B, y, s, W, A, G, E;
395
- const e = J(_), i = K(), m = X(), a = Z(
393
+ }, Se = () => {
394
+ var R, l, U, M, I, L, D, z, H, v, B, W, C, x, h, A, G, E;
395
+ const e = J(_), i = K(), s = X(), a = Z(
396
396
  w.OVERLAY
397
- ), d = Q(), t = he(
398
- ((l = e.branding) == null ? void 0 : l.images) || null
399
- ), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? le : ae, b = ee(
397
+ ), d = Q(), t = Ce(
398
+ ((R = e.branding) == null ? void 0 : R.images) || null
399
+ ), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? ae : re, b = ee(
400
400
  {
401
401
  images: e.images || null,
402
402
  imagePlaceholder: f
403
403
  },
404
404
  w.OVERLAY
405
- ), C = xe(b), S = i.colorSchemes.dark.textColor, p = i.customFontFamily.dark.primary, T = i.customFontFamily.dark.secondary, j = i.customRadius.dark.md, N = ($ = i.border) == null ? void 0 : $.dark.size, k = (P = (q = i.colorSchemes) == null ? void 0 : q.dark) == null ? void 0 : P.surfaceVariant, F = (I = (R = i.customRadius) == null ? void 0 : R.light) == null ? void 0 : I.xl, M = (H = (z = (D = (L = i.colorSchemes) == null ? void 0 : L.light) == null ? void 0 : D.palette) == null ? void 0 : z.primary) == null ? void 0 : H.plainColor, V = (s = (y = (B = (v = i.colorSchemes) == null ? void 0 : v.light) == null ? void 0 : B.palette) == null ? void 0 : y.primary) == null ? void 0 : s.onPrimary, c = ue({
406
- spacingScale: m,
407
- secondaryColor: S,
408
- fontFamilyPrimary: p,
409
- fontFamilySecondary: T,
405
+ ), S = ye(b), p = i.colorSchemes.dark.textColor, T = i.customFontFamily.dark.primary, k = i.customFontFamily.dark.secondary, j = i.customRadius.dark.md, N = (l = i.border) == null ? void 0 : l.dark.size, F = (M = (U = i.colorSchemes) == null ? void 0 : U.dark) == null ? void 0 : M.surfaceVariant, P = (L = (I = i.customRadius) == null ? void 0 : I.light) == null ? void 0 : L.xl, V = (v = (H = (z = (D = i.colorSchemes) == null ? void 0 : D.light) == null ? void 0 : z.palette) == null ? void 0 : H.primary) == null ? void 0 : v.plainColor, $ = (x = (C = (W = (B = i.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : W.palette) == null ? void 0 : C.primary) == null ? void 0 : x.onPrimary, c = be({
406
+ spacingScale: s,
407
+ secondaryColor: p,
408
+ fontFamilyPrimary: T,
409
+ fontFamilySecondary: k,
410
410
  mdBorderRadius: j,
411
411
  borderSize: N,
412
- contentBgColor: k,
413
- buttonRadius: F,
414
- primaryColor: M,
415
- onPrimaryColor: V,
416
- backgroundImage: C,
412
+ contentBgColor: F,
413
+ buttonRadius: P,
414
+ primaryColor: V,
415
+ onPrimaryColor: $,
416
+ backgroundImage: S,
417
417
  darkTextColor: i.colorSchemes.dark.textColor,
418
418
  imageBackgroundGradient: a
419
- }), x = () => {
419
+ }), g = () => {
420
420
  var O;
421
421
  return /* @__PURE__ */ n(
422
422
  te,
@@ -427,18 +427,18 @@ const te = (e) => {
427
427
  }
428
428
  );
429
429
  };
430
- return /* @__PURE__ */ g(o, { sx: c.mainContainer, children: [
431
- (W = e.labels) != null && W.title || (A = e.labels) != null && A.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(o, { sx: c.headlineSection, children: /* @__PURE__ */ n(o, { sx: c.headlineContent, children: /* @__PURE__ */ n(o, { sx: c.headlineContentInner, children: /* @__PURE__ */ g(o, { sx: c.contentContainer, children: [
432
- (G = e.labels) != null && G.title ? /* @__PURE__ */ n(u, { level: "h4", sx: c.titleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
433
- (E = e.labels) != null && E.description ? /* @__PURE__ */ n(u, { level: "body-lg", sx: c.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
430
+ return /* @__PURE__ */ m(o, { sx: c.mainContainer, children: [
431
+ (h = e.labels) != null && h.title || (A = e.labels) != null && A.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(o, { sx: c.headlineSection, children: /* @__PURE__ */ n(o, { sx: c.headlineContent, children: /* @__PURE__ */ n(o, { sx: c.headlineContentInner, children: /* @__PURE__ */ m(o, { sx: c.contentContainer, children: [
432
+ (G = e.labels) != null && G.title ? /* @__PURE__ */ n(y, { level: "h4", sx: c.titleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
433
+ (E = e.labels) != null && E.description ? /* @__PURE__ */ n(y, { level: "body-lg", sx: c.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
434
434
  ] }) }) }) }) }) : /* @__PURE__ */ n(r, {}),
435
- /* @__PURE__ */ g(o, { sx: c.mainContentSection, children: [
435
+ /* @__PURE__ */ m(o, { sx: c.mainContentSection, children: [
436
436
  /* @__PURE__ */ n(o, { sx: c.contentContainerWithBackdrop, children: /* @__PURE__ */ n(ne, {}) }),
437
- /* @__PURE__ */ n(o, { sx: c.bottomFooterContainer, children: x() })
437
+ /* @__PURE__ */ n(o, { sx: c.bottomFooterContainer, children: g() })
438
438
  ] })
439
439
  ] });
440
- }, re = ({ children: e }) => {
441
- const i = U().md, m = h().surface, a = h().secondaryContainer, t = me().size + " solid " + a;
440
+ }, ce = ({ children: e }) => {
441
+ const i = q().md, s = u().surface, a = u().secondaryContainer, t = me().size + " solid " + a;
442
442
  return /* @__PURE__ */ n(
443
443
  o,
444
444
  {
@@ -450,13 +450,13 @@ const te = (e) => {
450
450
  overflow: "hidden",
451
451
  minHeight: "250px",
452
452
  borderRadius: i,
453
- background: m,
453
+ background: s,
454
454
  border: t
455
455
  },
456
456
  children: e
457
457
  }
458
458
  );
459
- }, Ce = (e) => ({
459
+ }, pe = (e) => ({
460
460
  // Mobile headline with image background
461
461
  mobileHeadlineWithImage: {
462
462
  display: { xs: "flex", md: "none" },
@@ -765,68 +765,68 @@ const te = (e) => {
765
765
  // Visual indicator for development (remove in production)
766
766
  // border: "1px dashed rgba(255,255,255,0.7)",
767
767
  }
768
- }), Se = (e) => {
769
- var P, R, I, L, D, z, H, v, B;
770
- const i = J(_), m = K(), a = e.imagePosition || "left", d = ee(
768
+ }), Te = (e) => {
769
+ var I, L, D, z, H, v, B, W, C;
770
+ const i = J(_), s = K(), a = e.imagePosition || "left", d = ee(
771
771
  {
772
772
  images: i.images || null,
773
773
  imagePlaceholder: i.defaultImagePlaceholderUrl ? i.defaultImagePlaceholderUrl : ""
774
774
  },
775
775
  w.STANDARD
776
- ), t = Q(), f = t ? ((R = (P = i.branding) == null ? void 0 : P.images) == null ? void 0 : R.mobileLogo) || ((L = (I = i.branding) == null ? void 0 : I.images) == null ? void 0 : L.mainLogo) || "" : ((z = (D = i.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "", b = h().textColor, C = h().textSecondary, S = Y().secondary, p = "60%", T = Y().primary, j = h().surfaceVariant, N = U().md, k = U().sm, F = h().palette.primary.plainColor, M = h().palette.primary.onPrimary, V = U().xl, c = X(), x = Z(
776
+ ), t = Q(), f = t ? ((L = (I = i.branding) == null ? void 0 : I.images) == null ? void 0 : L.mobileLogo) || ((z = (D = i.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "" : ((v = (H = i.branding) == null ? void 0 : H.images) == null ? void 0 : v.mainLogo) || "", b = u().textColor, S = u().textSecondary, p = Y().secondary, T = "60%", k = Y().primary, j = u().surfaceVariant, N = q().md, F = q().sm, P = u().palette.primary.plainColor, V = u().palette.primary.onPrimary, $ = q().xl, c = X(), g = Z(
777
777
  w.STANDARD
778
- ), l = Ce({
778
+ ), R = ge(a), l = pe({
779
779
  finalImage: d,
780
780
  spacingScale: c,
781
- borderRadius: U(),
782
- fontFamilyPrimary: T,
783
- fontFamilySecondary: S,
781
+ borderRadius: q(),
782
+ fontFamilyPrimary: k,
783
+ fontFamilySecondary: p,
784
784
  textColor: b,
785
- secondaryColor: C,
786
- bgcolor: oe(j || ""),
785
+ secondaryColor: S,
786
+ bgcolor: le(j || ""),
787
787
  mdBorderRadius: N,
788
- smBorderRadius: k,
789
- primaryColor: F,
790
- onPrimaryColor: M,
791
- buttonRadius: V,
792
- opacity: p,
788
+ smBorderRadius: F,
789
+ primaryColor: P,
790
+ onPrimaryColor: V,
791
+ buttonRadius: $,
792
+ opacity: T,
793
793
  imagePosition: a,
794
- darkTextColor: m.colorSchemes.dark.textColor,
795
- imageBackgroundGradient: x
796
- }), $ = (y) => {
797
- var s;
794
+ darkTextColor: s.colorSchemes.dark.textColor,
795
+ imageBackgroundGradient: g
796
+ }), U = (x) => {
797
+ var h;
798
798
  return /* @__PURE__ */ n(
799
799
  te,
800
800
  {
801
801
  brandingLogo: f,
802
- textColor: y,
803
- label: (s = i.labels) == null ? void 0 : s.presentedByLabel
802
+ textColor: x,
803
+ label: (h = i.labels) == null ? void 0 : h.presentedByLabel
804
804
  }
805
805
  );
806
806
  };
807
- return /* @__PURE__ */ g(re, { children: [
807
+ return /* @__PURE__ */ m(ce, { children: [
808
808
  (() => {
809
- var y, s, W, A, G, E, O, ie;
810
- return t ? d ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithImage, children: (y = i.labels) != null && y.title || (s = i.labels) != null && s.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineContent, children: /* @__PURE__ */ g(o, { sx: l.contentContainer, children: [
811
- (W = i.labels) != null && W.title ? /* @__PURE__ */ n(u, { sx: l.titleTypographyMobileImage, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
812
- (A = i.labels) != null && A.description ? /* @__PURE__ */ n(u, { sx: l.descriptionTypographyMobileImage, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
813
- ] }) }) : /* @__PURE__ */ n(r, {}) }) : (G = i.labels) != null && G.title || (E = i.labels) != null && E.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithoutImage, children: /* @__PURE__ */ g(o, { sx: l.contentContainer, children: [
814
- (O = i.labels) != null && O.title ? /* @__PURE__ */ n(u, { level: "h4", sx: l.titleTypography, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
815
- (ie = i.labels) != null && ie.description ? /* @__PURE__ */ n(u, { sx: l.descriptionTypography, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
809
+ var x, h, A, G, E, O, ie, oe;
810
+ return t ? d ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithImage, children: (x = i.labels) != null && x.title || (h = i.labels) != null && h.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineContent, children: /* @__PURE__ */ m(o, { sx: l.contentContainer, children: [
811
+ (A = i.labels) != null && A.title ? /* @__PURE__ */ n(y, { sx: l.titleTypographyMobileImage, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
812
+ (G = i.labels) != null && G.description ? /* @__PURE__ */ n(y, { sx: l.descriptionTypographyMobileImage, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
813
+ ] }) }) : /* @__PURE__ */ n(r, {}) }) : (E = i.labels) != null && E.title || (O = i.labels) != null && O.description ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithoutImage, children: /* @__PURE__ */ m(o, { sx: l.contentContainer, children: [
814
+ (ie = i.labels) != null && ie.title ? /* @__PURE__ */ n(y, { level: "h4", sx: l.titleTypography, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
815
+ (oe = i.labels) != null && oe.description ? /* @__PURE__ */ n(y, { sx: l.descriptionTypography, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
816
816
  ] }) }) : /* @__PURE__ */ n(r, {}) : /* @__PURE__ */ n(r, {});
817
817
  })(),
818
- a === "left" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerLeft, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null,
819
- /* @__PURE__ */ g(o, { sx: l.mainContentArea, children: [
820
- !t && ((H = i.labels) != null && H.title || (v = i.labels) != null && v.description) ? /* @__PURE__ */ n(o, { sx: { px: c.md }, children: /* @__PURE__ */ n(o, { sx: l.desktopHeadlineContainer, children: /* @__PURE__ */ n(o, { children: /* @__PURE__ */ g(o, { sx: l.contentContainer, children: [
821
- i.labels.title ? /* @__PURE__ */ n(u, { level: "h4", sx: l.titleTypographyDesktop, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
822
- (B = i.labels) != null && B.description ? /* @__PURE__ */ n(u, { sx: l.descriptionTypographyDesktop, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
818
+ R === "left" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerLeft, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null,
819
+ /* @__PURE__ */ m(o, { sx: l.mainContentArea, children: [
820
+ !t && ((B = i.labels) != null && B.title || (W = i.labels) != null && W.description) ? /* @__PURE__ */ n(o, { sx: { px: c.md }, children: /* @__PURE__ */ n(o, { sx: l.desktopHeadlineContainer, children: /* @__PURE__ */ n(o, { children: /* @__PURE__ */ m(o, { sx: l.contentContainer, children: [
821
+ i.labels.title ? /* @__PURE__ */ n(y, { level: "h4", sx: l.titleTypographyDesktop, children: i.labels.title }) : /* @__PURE__ */ n(r, {}),
822
+ (C = i.labels) != null && C.description ? /* @__PURE__ */ n(y, { sx: l.descriptionTypographyDesktop, children: i.labels.description }) : /* @__PURE__ */ n(r, {})
823
823
  ] }) }) }) }) : /* @__PURE__ */ n(r, {}),
824
824
  /* @__PURE__ */ n(o, { sx: l.leadCollectionContainer, children: /* @__PURE__ */ n(o, { sx: l.leadQuestionContainer, children: /* @__PURE__ */ n(o, { sx: l.leadContentContainer, children: /* @__PURE__ */ n(ne, {}) }) }) }),
825
- /* @__PURE__ */ n(o, { sx: { px: c.md }, children: $(b) })
825
+ /* @__PURE__ */ n(o, { sx: { px: c.md }, children: U(b) })
826
826
  ] }),
827
- a === "right" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerRight, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null
827
+ R === "right" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerRight, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null
828
828
  ] });
829
- }, pe = (e) => ({
829
+ }, ke = (e) => ({
830
830
  // Main headline section with background image
831
831
  headlineSection: {
832
832
  display: "flex",
@@ -1160,78 +1160,78 @@ const te = (e) => {
1160
1160
  presentedByMobile: {
1161
1161
  display: { xs: "block", md: "none" }
1162
1162
  }
1163
- }), Te = () => {
1164
- var q, P, R, I, L, D, z, H, v, B;
1165
- const e = J(_), i = K(), m = Q(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : m ? le : ae, d = ee(
1163
+ }), Fe = () => {
1164
+ var U, M, I, L, D, z, H, v, B, W;
1165
+ const e = J(_), i = K(), s = Q(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? ae : re, d = ee(
1166
1166
  {
1167
1167
  images: e.images || null,
1168
1168
  imagePlaceholder: a
1169
1169
  },
1170
1170
  w.SPLIT
1171
- ), t = m ? ((P = (q = e.branding) == null ? void 0 : q.images) == null ? void 0 : P.mobileLogo) || ((I = (R = e.branding) == null ? void 0 : R.images) == null ? void 0 : I.mainLogo) || "" : ((D = (L = e.branding) == null ? void 0 : L.images) == null ? void 0 : D.mainLogo) || "", f = h().textColor, b = Y().secondary, C = "60%", S = Y().primary, p = U().xl, T = h().surfaceVariant, j = (H = (z = h().palette) == null ? void 0 : z.primary) == null ? void 0 : H.plainColor, N = (B = (v = h().palette) == null ? void 0 : v.primary) == null ? void 0 : B.onPrimary, k = h().textColor, F = X(), M = U(), V = Z(
1171
+ ), t = s ? ((M = (U = e.branding) == null ? void 0 : U.images) == null ? void 0 : M.mobileLogo) || ((L = (I = e.branding) == null ? void 0 : I.images) == null ? void 0 : L.mainLogo) || "" : ((z = (D = e.branding) == null ? void 0 : D.images) == null ? void 0 : z.mainLogo) || "", f = u().textColor, b = Y().secondary, S = "60%", p = Y().primary, T = q().xl, k = u().surfaceVariant, j = (v = (H = u().palette) == null ? void 0 : H.primary) == null ? void 0 : v.plainColor, N = (W = (B = u().palette) == null ? void 0 : B.primary) == null ? void 0 : W.onPrimary, F = u().textColor, P = X(), V = q(), $ = Z(
1172
1172
  w.SPLIT
1173
- ), c = oe(T || ""), x = pe({
1173
+ ), c = le(k || ""), g = ke({
1174
1174
  finalImage: d,
1175
- spacingScale: F,
1176
- borderRadius: M,
1177
- fontFamilyPrimary: S,
1175
+ spacingScale: P,
1176
+ borderRadius: V,
1177
+ fontFamilyPrimary: p,
1178
1178
  fontFamilySecondary: b,
1179
1179
  secondaryColor: f,
1180
- opacity: C,
1181
- buttonRadius: p,
1180
+ opacity: S,
1181
+ buttonRadius: T,
1182
1182
  bgcolor: c,
1183
1183
  primaryColor: j,
1184
1184
  onPrimaryColor: N,
1185
- textColor: k,
1185
+ textColor: F,
1186
1186
  darkTextColor: i.colorSchemes.dark.textColor,
1187
- imageBackgroundGradient: V
1188
- }), l = (y) => {
1189
- var s;
1187
+ imageBackgroundGradient: $
1188
+ }), R = (C) => {
1189
+ var x;
1190
1190
  return /* @__PURE__ */ n(
1191
1191
  te,
1192
1192
  {
1193
1193
  brandingLogo: t,
1194
- textColor: y,
1195
- label: (s = e.labels) == null ? void 0 : s.presentedByLabel
1194
+ textColor: C,
1195
+ label: (x = e.labels) == null ? void 0 : x.presentedByLabel
1196
1196
  }
1197
1197
  );
1198
1198
  };
1199
- return /* @__PURE__ */ g(re, { children: [
1199
+ return /* @__PURE__ */ m(ce, { children: [
1200
1200
  (() => {
1201
- var y, s, W, A;
1202
- return /* @__PURE__ */ n(o, { sx: x.headlineSection, children: /* @__PURE__ */ g(o, { sx: x.headlineContent, children: [
1203
- (y = e.labels) != null && y.title || (s = e.labels) != null && s.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ g(o, { sx: x.contentContainer, children: [
1204
- (W = e.labels) != null && W.title ? /* @__PURE__ */ n(u, { sx: x.pollTitleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
1205
- (A = e.labels) != null && A.description ? /* @__PURE__ */ n(u, { sx: x.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
1201
+ var C, x, h, A;
1202
+ return /* @__PURE__ */ n(o, { sx: g.headlineSection, children: /* @__PURE__ */ m(o, { sx: g.headlineContent, children: [
1203
+ (C = e.labels) != null && C.title || (x = e.labels) != null && x.description ? /* @__PURE__ */ n(o, { children: /* @__PURE__ */ m(o, { sx: g.contentContainer, children: [
1204
+ (h = e.labels) != null && h.title ? /* @__PURE__ */ n(y, { sx: g.pollTitleText, children: e.labels.title }) : /* @__PURE__ */ n(r, {}),
1205
+ (A = e.labels) != null && A.description ? /* @__PURE__ */ n(y, { sx: g.pollDescriptionText, children: e.labels.description }) : /* @__PURE__ */ n(r, {})
1206
1206
  ] }) }) : /* @__PURE__ */ n(r, {}),
1207
- t ? /* @__PURE__ */ n(o, { sx: x.presentedByDesktop, children: l(i.colorSchemes.dark.textColor) }) : /* @__PURE__ */ n(r, {})
1207
+ t ? /* @__PURE__ */ n(o, { sx: g.presentedByDesktop, children: R(i.colorSchemes.dark.textColor) }) : /* @__PURE__ */ n(r, {})
1208
1208
  ] }) });
1209
1209
  })(),
1210
- /* @__PURE__ */ n(o, { sx: x.questionArea, children: /* @__PURE__ */ g(o, { sx: x.questionAreaInner, children: [
1211
- /* @__PURE__ */ n(o, { sx: x.leadContentContainer, children: /* @__PURE__ */ n(ne, {}) }),
1210
+ /* @__PURE__ */ n(o, { sx: g.questionArea, children: /* @__PURE__ */ m(o, { sx: g.questionAreaInner, children: [
1211
+ /* @__PURE__ */ n(o, { sx: g.leadContentContainer, children: /* @__PURE__ */ n(ne, {}) }),
1212
1212
  /* @__PURE__ */ n(
1213
1213
  o,
1214
1214
  {
1215
- sx: { display: { xs: "block", md: "none" }, px: F.md },
1216
- children: l(k)
1215
+ sx: { display: { xs: "block", md: "none" }, px: P.md },
1216
+ children: R(F)
1217
1217
  }
1218
1218
  )
1219
1219
  ] }) })
1220
1220
  ] });
1221
1221
  };
1222
- function ke(e) {
1222
+ function Pe(e) {
1223
1223
  return e.template === w.STANDARD;
1224
1224
  }
1225
- const Fe = (e) => e.template === w.OVERLAY ? /* @__PURE__ */ n(be, {}) : ke(e) ? /* @__PURE__ */ n(Se, { imagePosition: e.imagePosition || "left" }) : /* @__PURE__ */ n(Te, {}), Pe = (e) => {
1225
+ const Re = (e) => e.template === w.OVERLAY ? /* @__PURE__ */ n(Se, {}) : Pe(e) ? /* @__PURE__ */ n(Te, { imagePosition: e.imagePosition || "left" }) : /* @__PURE__ */ n(Fe, {}), Ie = (e) => {
1226
1226
  var i;
1227
1227
  return /* @__PURE__ */ n(
1228
- se,
1228
+ xe,
1229
1229
  {
1230
1230
  packageName: "collect-lead",
1231
1231
  entityId: ((i = e.content) == null ? void 0 : i.id) || "",
1232
1232
  ...e,
1233
1233
  children: /* @__PURE__ */ n(
1234
- ye,
1234
+ he,
1235
1235
  {
1236
1236
  phoneCountryCode: e.phoneCountryCode,
1237
1237
  language: e.language,
@@ -1248,12 +1248,12 @@ const Fe = (e) => e.template === w.OVERLAY ? /* @__PURE__ */ n(be, {}) : ke(e) ?
1248
1248
  customFields: e.customFields,
1249
1249
  consents: e.consents,
1250
1250
  syncWithProfile: e.syncWithProfile,
1251
- children: /* @__PURE__ */ n(Fe, { ...e })
1251
+ children: /* @__PURE__ */ n(Re, { ...e })
1252
1252
  }
1253
1253
  )
1254
1254
  }
1255
1255
  );
1256
- }, Ae = Pe;
1256
+ }, je = Ie;
1257
1257
  export {
1258
- Ae as CollectLead
1258
+ je as CollectLead
1259
1259
  };
package/Discussion.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as o } from "./chunks/main-C05CZWMa.js";
1
+ import { M as o } from "./chunks/main-5c5yYsj9.js";
2
2
  const i = o;
3
3
  export {
4
4
  i as Discussion