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.
- package/Betslip.js +1 -1
- package/ChanceGame.js +529 -520
- package/ClassicQuizPlay.js +1725 -1458
- package/CollectLead.js +141 -141
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1524 -1331
- package/EventCard.js +3001 -1848
- package/EventGamePlay.js +2023 -1742
- package/Leaderboard.js +367 -357
- package/MatchQuizPlay.js +2936 -2649
- package/PersonalityQuizPlay.js +1395 -1119
- package/PickThePair.js +481 -472
- package/PlayerOfTheMatch.js +235 -234
- package/PollVote.js +1318 -1036
- package/Predictor.js +4383 -4390
- package/README.md +110 -4
- package/Standings.js +652 -643
- package/TopX.js +2646 -2645
- package/chunks/{AccessTime-7cim24ED.js → AccessTime-BkHriW4j.js} +1 -1
- package/chunks/{AlertMessage-X4MQ4qsN.js → AlertMessage-DwSmhmHt.js} +11 -11
- package/chunks/{Avatar-RBMU1Gkk.js → Avatar-CEbT4X-o.js} +22 -22
- package/chunks/{Button-GawVOPKi.js → Button-CO-k2gLb.js} +3 -3
- package/chunks/{Card--xcz3SKi.js → Card-DZdPl8-h.js} +7 -7
- package/chunks/{CardActions-CPwvcLGp.js → CardActions-DTThyeLX.js} +20 -20
- package/chunks/{CardContent-Ew6fr-KR.js → CardContent-CzC1EwoD.js} +14 -14
- package/chunks/{ChanceGameEmbedVariant-Dio4ihOd.js → ChanceGameEmbedVariant-CteJ4tix.js} +309 -195
- package/chunks/{CheckCircle-DgKcR_no.js → CheckCircle-BzM-2e1z.js} +1 -1
- package/chunks/{Chip-CYpaygnD.js → Chip-BF1FXK0I.js} +15 -15
- package/chunks/{Close-CdJNGcLx.js → Close-BiMLcNyG.js} +1 -1
- package/chunks/{Close-D2mtuGDo.js → Close-CggU6Ga3.js} +1 -1
- package/chunks/{CollectLeadForm-D0P_JHmT.js → CollectLeadForm-BZj-9IDt.js} +1389 -1463
- package/chunks/ConsentsList-CtKgLYa8.js +339 -0
- package/chunks/DirectionScope-BGDPaR6B.js +24 -0
- package/chunks/{Divider-DcW0V71y.js → Divider-Dueyhj7K.js} +8 -8
- package/chunks/{Edit-Bcj6J4rt.js → Edit-Dqa7th_A.js} +3 -3
- package/chunks/EditOutlined-B__rjTwX.js +14 -0
- package/chunks/{EmojiEvents-g001ss_z.js → EmojiEvents-CpsA2Qo0.js} +1 -1
- package/chunks/{FavoriteBorder-Lr6swB6-.js → FavoriteBorder-DrC_eOCd.js} +1 -1
- package/chunks/{FormControl-BKlK7WPd.js → FormControl-fKyT2Mql.js} +34 -33
- package/chunks/{FormControlContext-B2HqeXgq.js → FormControlContext-CSrMcHcv.js} +11 -11
- package/chunks/{FormLabel-C47pX5hN.js → FormLabel-DlXT5RZd.js} +22 -25
- package/chunks/{InlineSpinner-Imz27zb2.js → InlineSpinner-CuisRY-E.js} +2 -2
- package/chunks/{Input-nS_KO1Bu.js → Input-CkSIGH-d.js} +15 -15
- package/chunks/{KeyboardArrowDown-CyZAOE-W.js → KeyboardArrowDown-DL8VjkJT.js} +1 -1
- package/chunks/{KeyboardArrowRight-FI0kqwO1.js → KeyboardArrowRight-Cm50UqHb.js} +1 -1
- package/chunks/{Link-DKU7kDL8.js → Link-BljMbRuR.js} +13 -13
- package/chunks/{ListItemButton-CPVIEVpf.js → ListItemButton-BqEcbBU0.js} +50 -50
- package/chunks/{ModalDialog-DDx8wQa3.js → ModalDialog-B0DLv5vW.js} +59 -59
- package/chunks/{NotFoundSkeleton-CJZIRj5-.js → NotFoundSkeleton-DKxLhOwI.js} +149 -125
- package/chunks/{Notification-BvVfrrB3.js → Notification-CEdU0opQ.js} +18 -18
- package/chunks/{OverlayScoreStateSkeleton-CAhCAjkS.js → OverlayScoreStateSkeleton-BtCy650g.js} +18 -12
- package/chunks/{ArrowRightAlt-DrBMgptf.js → OverlayScoreStateWrapperSkeleton-Ch_E6KQ6.js} +18 -21
- package/chunks/OverlaySignInSkeleton-DEiH7fmp.js +517 -0
- package/chunks/{Person-DB_bEPcg.js → Person-CLQl7Sxs.js} +1 -1
- package/chunks/{PersonOutline-BAOtfb1t.js → PersonOutline-D8yrpbw7.js} +1 -1
- package/chunks/{PickOneOfX-Dp6fzXJn.js → PickOneOfX-CG0B5u7Y.js} +3 -3
- package/chunks/{Popper-Bpy7eYt-.js → Popper-BSnc2Lit.js} +58 -58
- package/chunks/Portal-D8t1Jd5e.js +65 -0
- package/chunks/{Portal-Dvh4m8kk.js → Portal-cK515D9M.js} +4 -4
- package/chunks/{PrizeCard-CXjFADAN.js → PrizeCard-CyVJJLo1.js} +6295 -4346
- package/chunks/{Search-uVJw-NhK.js → Search-BXhhax8M.js} +1 -1
- package/chunks/{Select-BeixD4Vw.js → Select-DyRdhrMr.js} +61 -61
- package/chunks/{Sheet-vOgATocO.js → Sheet-sYNAL7gX.js} +14 -14
- package/chunks/{Spinner-C219bcnm.js → Spinner-Bb4eb64F.js} +2 -2
- package/chunks/SplitSignInSkeleton-BZT0ngoW.js +150 -0
- package/chunks/{Stack-JIDLCVx0.js → Stack-DX41loGb.js} +21 -21
- package/chunks/{StandardContentSkeleton-DsGBNMHN.js → StandardContentSkeleton-DAh7l7cd.js} +12 -12
- package/chunks/{Table-Cx7htUDp.js → Table-C09wF6nK.js} +8 -8
- package/chunks/{Tabs-CIJK8YZY.js → Tabs-Dhih1Lqb.js} +46 -46
- package/chunks/{Textarea-KSwIUuq8.js → Textarea-DWyUKbVv.js} +184 -244
- package/chunks/{TimerOutlined-BUL4BZFp.js → TimerOutlined-DeWQFv5g.js} +1 -1
- package/chunks/{Tooltip-DrP2vx9i.js → Tooltip-Dnj_oxHb.js} +55 -55
- package/chunks/{Typography-DFdgIDQS.js → Typography-B8CtvKkm.js} +1 -1
- package/chunks/{dividerClasses-BtSFa36Z.js → dividerClasses-BoOrlu7X.js} +1 -1
- package/chunks/{elementAcceptingRef-CZFKGdxR.js → elementAcceptingRef-DROQPsxj.js} +1 -1
- package/chunks/formLabelClasses-Bh4Fh0fk.js +9 -0
- package/chunks/{helpers-D8cWUfGf.js → helpers-DgUDSfd1.js} +14 -12
- package/chunks/{index-DZqXLvFO.js → index-C_R74meU.js} +69 -72
- package/chunks/index-PC-q6Shn.js +4 -0
- package/chunks/{main-C05CZWMa.js → main-5c5yYsj9.js} +973 -963
- package/chunks/{main-CHr45Z4W.js → main-BXu1mzLz.js} +157 -157
- package/chunks/{useButton-tjUHKc-B.js → useButton-CQ2o2nXk.js} +2 -2
- package/chunks/useConsents-CIhPZNel.js +1165 -0
- package/chunks/{useEventCallback-BFPi8YtI.js → useEventCallback-B1ahtq-a.js} +1 -1
- package/chunks/{useForwardedInput-VvmRv9KU.js → useForwardedInput-DRXHXEOw.js} +22 -22
- package/chunks/{useImageVariant-Cs6lWUs2.js → useImageVariant-D6aho5sy.js} +1 -1
- package/chunks/useSwitch-CYz8kkTr.js +65 -0
- package/index.js +3 -3
- package/package.json +2 -2
- package/chunks/EditOutlined-PCc4gafz.js +0 -11
- package/chunks/OverlayApiErrorSkeleton-JMWA0FV8.js +0 -731
- package/chunks/OverlayLeadAfterCollection-BwF9MvIB.js +0 -678
- package/chunks/Portal-bNE7Trh9.js +0 -55
- package/chunks/SplitLeadAfterCollection-BijLacCk.js +0 -236
- package/chunks/index-JDeYpSi1.js +0 -4
package/CollectLead.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { d as Y, i as Q, B as o, u as
|
|
4
|
-
import { P as
|
|
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
|
|
7
|
-
import { d as
|
|
8
|
-
import { T as
|
|
9
|
-
import { C as
|
|
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,
|
|
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
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
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
|
-
}, _ =
|
|
115
|
+
}, _ = de({
|
|
116
116
|
shadowRootElement: null,
|
|
117
117
|
language: null,
|
|
118
118
|
sdk: null
|
|
119
|
-
}),
|
|
119
|
+
}), he = ({
|
|
120
120
|
shadowRootElement: e,
|
|
121
121
|
phoneCountryCode: i,
|
|
122
|
-
images:
|
|
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:
|
|
129
|
-
children:
|
|
130
|
-
sdk:
|
|
131
|
-
fields:
|
|
128
|
+
language: S = "en",
|
|
129
|
+
children: p,
|
|
130
|
+
sdk: T,
|
|
131
|
+
fields: k,
|
|
132
132
|
onSuccessCta: j,
|
|
133
133
|
customFields: N,
|
|
134
|
-
consents:
|
|
135
|
-
syncWithProfile:
|
|
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:
|
|
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:
|
|
149
|
-
sdk:
|
|
150
|
-
fields:
|
|
148
|
+
language: S,
|
|
149
|
+
sdk: T,
|
|
150
|
+
fields: k,
|
|
151
151
|
onSuccessCta: j,
|
|
152
152
|
customFields: N,
|
|
153
|
-
consents:
|
|
154
|
-
syncWithProfile:
|
|
153
|
+
consents: F,
|
|
154
|
+
syncWithProfile: P
|
|
155
155
|
},
|
|
156
|
-
children:
|
|
156
|
+
children: p
|
|
157
157
|
}
|
|
158
158
|
), ne = () => {
|
|
159
|
-
const { t: e } =
|
|
159
|
+
const { t: e } = se(), {
|
|
160
160
|
sdk: i,
|
|
161
|
-
content:
|
|
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:
|
|
168
|
-
customFields:
|
|
169
|
-
syncWithProfile:
|
|
170
|
-
} = J(_),
|
|
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
|
-
|
|
193
|
+
ue,
|
|
194
194
|
{
|
|
195
195
|
sdk: i,
|
|
196
|
-
content:
|
|
196
|
+
content: s,
|
|
197
197
|
onSuccessCta: f,
|
|
198
198
|
branding: a,
|
|
199
199
|
campaign: d,
|
|
200
200
|
fields: b,
|
|
201
|
-
labels:
|
|
202
|
-
consents:
|
|
203
|
-
customFields:
|
|
204
|
-
syncWithProfile:
|
|
201
|
+
labels: k,
|
|
202
|
+
consents: S,
|
|
203
|
+
customFields: p,
|
|
204
|
+
syncWithProfile: T
|
|
205
205
|
}
|
|
206
206
|
);
|
|
207
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
394
|
-
var
|
|
395
|
-
const e = J(_), i = K(),
|
|
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 =
|
|
398
|
-
((
|
|
399
|
-
), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ?
|
|
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
|
-
),
|
|
406
|
-
spacingScale:
|
|
407
|
-
secondaryColor:
|
|
408
|
-
fontFamilyPrimary:
|
|
409
|
-
fontFamilySecondary:
|
|
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:
|
|
413
|
-
buttonRadius:
|
|
414
|
-
primaryColor:
|
|
415
|
-
onPrimaryColor:
|
|
416
|
-
backgroundImage:
|
|
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
|
-
}),
|
|
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__ */
|
|
431
|
-
(
|
|
432
|
-
(G = e.labels) != null && G.title ? /* @__PURE__ */ n(
|
|
433
|
-
(E = e.labels) != null && E.description ? /* @__PURE__ */ n(
|
|
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__ */
|
|
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:
|
|
437
|
+
/* @__PURE__ */ n(o, { sx: c.bottomFooterContainer, children: g() })
|
|
438
438
|
] })
|
|
439
439
|
] });
|
|
440
|
-
},
|
|
441
|
-
const i =
|
|
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:
|
|
453
|
+
background: s,
|
|
454
454
|
border: t
|
|
455
455
|
},
|
|
456
456
|
children: e
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
|
-
},
|
|
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
|
-
}),
|
|
769
|
-
var
|
|
770
|
-
const i = J(_),
|
|
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 ? ((
|
|
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 =
|
|
778
|
+
), R = ge(a), l = pe({
|
|
779
779
|
finalImage: d,
|
|
780
780
|
spacingScale: c,
|
|
781
|
-
borderRadius:
|
|
782
|
-
fontFamilyPrimary:
|
|
783
|
-
fontFamilySecondary:
|
|
781
|
+
borderRadius: q(),
|
|
782
|
+
fontFamilyPrimary: k,
|
|
783
|
+
fontFamilySecondary: p,
|
|
784
784
|
textColor: b,
|
|
785
|
-
secondaryColor:
|
|
786
|
-
bgcolor:
|
|
785
|
+
secondaryColor: S,
|
|
786
|
+
bgcolor: le(j || ""),
|
|
787
787
|
mdBorderRadius: N,
|
|
788
|
-
smBorderRadius:
|
|
789
|
-
primaryColor:
|
|
790
|
-
onPrimaryColor:
|
|
791
|
-
buttonRadius:
|
|
792
|
-
opacity:
|
|
788
|
+
smBorderRadius: F,
|
|
789
|
+
primaryColor: P,
|
|
790
|
+
onPrimaryColor: V,
|
|
791
|
+
buttonRadius: $,
|
|
792
|
+
opacity: T,
|
|
793
793
|
imagePosition: a,
|
|
794
|
-
darkTextColor:
|
|
795
|
-
imageBackgroundGradient:
|
|
796
|
-
}),
|
|
797
|
-
var
|
|
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:
|
|
803
|
-
label: (
|
|
802
|
+
textColor: x,
|
|
803
|
+
label: (h = i.labels) == null ? void 0 : h.presentedByLabel
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
806
|
};
|
|
807
|
-
return /* @__PURE__ */
|
|
807
|
+
return /* @__PURE__ */ m(ce, { children: [
|
|
808
808
|
(() => {
|
|
809
|
-
var
|
|
810
|
-
return t ? d ? /* @__PURE__ */ n(o, { sx: l.mobileHeadlineWithImage, children: (
|
|
811
|
-
(
|
|
812
|
-
(
|
|
813
|
-
] }) }) : /* @__PURE__ */ n(r, {}) }) : (
|
|
814
|
-
(
|
|
815
|
-
(
|
|
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
|
-
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
!t && ((
|
|
821
|
-
i.labels.title ? /* @__PURE__ */ n(
|
|
822
|
-
(
|
|
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:
|
|
825
|
+
/* @__PURE__ */ n(o, { sx: { px: c.md }, children: U(b) })
|
|
826
826
|
] }),
|
|
827
|
-
|
|
827
|
+
R === "right" && d ? /* @__PURE__ */ n(o, { sx: l.imageContainerRight, children: /* @__PURE__ */ n(o, { sx: l.imageSafeArea }) }) : null
|
|
828
828
|
] });
|
|
829
|
-
},
|
|
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
|
-
}),
|
|
1164
|
-
var
|
|
1165
|
-
const e = J(_), i = K(),
|
|
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 =
|
|
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 =
|
|
1173
|
+
), c = le(k || ""), g = ke({
|
|
1174
1174
|
finalImage: d,
|
|
1175
|
-
spacingScale:
|
|
1176
|
-
borderRadius:
|
|
1177
|
-
fontFamilyPrimary:
|
|
1175
|
+
spacingScale: P,
|
|
1176
|
+
borderRadius: V,
|
|
1177
|
+
fontFamilyPrimary: p,
|
|
1178
1178
|
fontFamilySecondary: b,
|
|
1179
1179
|
secondaryColor: f,
|
|
1180
|
-
opacity:
|
|
1181
|
-
buttonRadius:
|
|
1180
|
+
opacity: S,
|
|
1181
|
+
buttonRadius: T,
|
|
1182
1182
|
bgcolor: c,
|
|
1183
1183
|
primaryColor: j,
|
|
1184
1184
|
onPrimaryColor: N,
|
|
1185
|
-
textColor:
|
|
1185
|
+
textColor: F,
|
|
1186
1186
|
darkTextColor: i.colorSchemes.dark.textColor,
|
|
1187
|
-
imageBackgroundGradient:
|
|
1188
|
-
}),
|
|
1189
|
-
var
|
|
1187
|
+
imageBackgroundGradient: $
|
|
1188
|
+
}), R = (C) => {
|
|
1189
|
+
var x;
|
|
1190
1190
|
return /* @__PURE__ */ n(
|
|
1191
1191
|
te,
|
|
1192
1192
|
{
|
|
1193
1193
|
brandingLogo: t,
|
|
1194
|
-
textColor:
|
|
1195
|
-
label: (
|
|
1194
|
+
textColor: C,
|
|
1195
|
+
label: (x = e.labels) == null ? void 0 : x.presentedByLabel
|
|
1196
1196
|
}
|
|
1197
1197
|
);
|
|
1198
1198
|
};
|
|
1199
|
-
return /* @__PURE__ */
|
|
1199
|
+
return /* @__PURE__ */ m(ce, { children: [
|
|
1200
1200
|
(() => {
|
|
1201
|
-
var
|
|
1202
|
-
return /* @__PURE__ */ n(o, { sx:
|
|
1203
|
-
(
|
|
1204
|
-
(
|
|
1205
|
-
(A = e.labels) != null && A.description ? /* @__PURE__ */ n(
|
|
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:
|
|
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:
|
|
1211
|
-
/* @__PURE__ */ n(o, { sx:
|
|
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:
|
|
1216
|
-
children:
|
|
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
|
|
1222
|
+
function Pe(e) {
|
|
1223
1223
|
return e.template === w.STANDARD;
|
|
1224
1224
|
}
|
|
1225
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
1251
|
+
children: /* @__PURE__ */ n(Re, { ...e })
|
|
1252
1252
|
}
|
|
1253
1253
|
)
|
|
1254
1254
|
}
|
|
1255
1255
|
);
|
|
1256
|
-
},
|
|
1256
|
+
}, je = Ie;
|
|
1257
1257
|
export {
|
|
1258
|
-
|
|
1258
|
+
je as CollectLead
|
|
1259
1259
|
};
|
package/Discussion.js
CHANGED