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.
- package/ChanceGame.js +104 -102
- package/ClassicQuizPlay.js +45 -42
- package/CollectLead.js +25 -24
- package/Discussion.js +376 -378
- package/EitherOrPlay.d.ts +4 -0
- package/EitherOrPlay.d.ts.map +1 -0
- package/EitherOrPlay.js +2533 -0
- package/EventGamePlay.js +59 -54
- package/MatchQuizPlay.js +63 -57
- package/PersonalityQuizPlay.js +7935 -7201
- package/PickThePair.js +153 -151
- package/PollVote.js +108 -104
- package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
- package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
- package/chunks/Avatar-CQCrd1m-.js +352 -0
- package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
- package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
- package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
- package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
- package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
- package/chunks/Notification-BTtUhfZQ.js +615 -0
- package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
- package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
- package/chunks/Person-D0Im9_zE.js +522 -0
- package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
- package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
- package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
- package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
- package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
- package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
- package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
- package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
- package/chunks/chevron-right-DGEksBI7.js +330 -0
- package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
- package/chunks/index-2s5UkG1y.js +1607 -0
- package/chunks/useImageVariant-pnFelF9A.js +535 -0
- package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/package.json +1 -1
- package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
- package/chunks/Notification-Bwcoljir.js +0 -961
- package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
- package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
- package/chunks/useImageVariant-Do8kOVs2.js +0 -537
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { jsxs as d, Fragment as j, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { e as A, u as L, f as z, h as $, j as q, B as n, T as D, W as G, k as X } from "./PrizeCard-gMp7I66d.js";
|
|
3
|
+
import { s as E, u as Y, h as Z, e as _ } from "./useImageVariant-pnFelF9A.js";
|
|
4
|
+
import { R as J } from "./NotFoundSkeleton-B3RNa8KJ.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { S as ee } from "./ChanceGameEmbedVariant-DWqOTf4o.js";
|
|
7
|
+
import { d as K, a as Q } from "./default-quiz-bg-vertical-CT7rrg9o.js";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import { O as te } from "./useInfoPage-DPkzE5Gn.js";
|
|
10
|
+
const ne = (e) => ({
|
|
11
|
+
// Main headline section with background image
|
|
12
|
+
headlineSection: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
justifyContent: "space-between",
|
|
16
|
+
gap: "10px",
|
|
17
|
+
flex: "0.5",
|
|
18
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
19
|
+
backgroundSize: "cover",
|
|
20
|
+
backgroundPosition: "center",
|
|
21
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
22
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
23
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
24
|
+
overflow: "hidden",
|
|
25
|
+
height: "auto",
|
|
26
|
+
position: "relative",
|
|
27
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
28
|
+
"&::before": {
|
|
29
|
+
content: '""',
|
|
30
|
+
position: "absolute",
|
|
31
|
+
width: "100%",
|
|
32
|
+
height: "100%",
|
|
33
|
+
borderTopLeftRadius: "5px",
|
|
34
|
+
borderTopRightRadius: "5px"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
// Main content area
|
|
38
|
+
mainContentArea: {
|
|
39
|
+
flex: "0.5",
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
justifyContent: "center",
|
|
43
|
+
p: e.spacingScale.lg
|
|
44
|
+
},
|
|
45
|
+
headlineContent: {
|
|
46
|
+
zIndex: 1,
|
|
47
|
+
height: "100%",
|
|
48
|
+
p: e.spacingScale.xl,
|
|
49
|
+
gap: e.spacingScale.xl,
|
|
50
|
+
display: "flex",
|
|
51
|
+
flexDirection: "column",
|
|
52
|
+
justifyContent: "space-between"
|
|
53
|
+
},
|
|
54
|
+
// Headline text
|
|
55
|
+
headlineText: {
|
|
56
|
+
fontWeight: 500,
|
|
57
|
+
lineHeight: "166%",
|
|
58
|
+
letterSpacing: "1px",
|
|
59
|
+
fontSize: "0.75em",
|
|
60
|
+
color: e.secondaryColor,
|
|
61
|
+
opacity: "70%",
|
|
62
|
+
textTransform: "uppercase",
|
|
63
|
+
fontFamily: e.fontFamilySecondary,
|
|
64
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
65
|
+
},
|
|
66
|
+
// Title text
|
|
67
|
+
titleText: {
|
|
68
|
+
fontWeight: 700,
|
|
69
|
+
lineHeight: "133%",
|
|
70
|
+
fontSize: "1.5em",
|
|
71
|
+
letterSpacing: "0.15px",
|
|
72
|
+
color: e.contentColor,
|
|
73
|
+
fontFamily: e.fontFamilyPrimary,
|
|
74
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
75
|
+
},
|
|
76
|
+
// Description text
|
|
77
|
+
descriptionText: {
|
|
78
|
+
fontWeight: 400,
|
|
79
|
+
lineHeight: "140%",
|
|
80
|
+
fontSize: "1.25em",
|
|
81
|
+
letterSpacing: "0.15px",
|
|
82
|
+
color: e.secondaryColor,
|
|
83
|
+
opacity: "70%",
|
|
84
|
+
fontFamily: e.fontFamilyPrimary,
|
|
85
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
86
|
+
},
|
|
87
|
+
ctaWrapper: {
|
|
88
|
+
display: "flex",
|
|
89
|
+
flexDirection: "column",
|
|
90
|
+
justifyContent: "space-between",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
gap: e.spacingScale["2xl"]
|
|
93
|
+
},
|
|
94
|
+
// Content container
|
|
95
|
+
contentContainer: {
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexDirection: "column",
|
|
98
|
+
gap: e.spacingScale["3xs"]
|
|
99
|
+
}
|
|
100
|
+
}), xe = ({
|
|
101
|
+
entity: e,
|
|
102
|
+
headline: m,
|
|
103
|
+
finalImage: u,
|
|
104
|
+
signInContent: I,
|
|
105
|
+
brandingContent: C,
|
|
106
|
+
rulesDisplay: a
|
|
107
|
+
}) => {
|
|
108
|
+
var i;
|
|
109
|
+
const b = A(), h = L(), o = z(), s = $().primary, g = $().secondary, S = q(), c = ((i = e.branding) == null ? void 0 : i.colors) || null, x = (c == null ? void 0 : c.contentColor) || h.colorSchemes.dark.textColor, f = (c == null ? void 0 : c.secondaryColor) || h.colorSchemes.dark.textColor, l = ne({
|
|
110
|
+
finalImage: u,
|
|
111
|
+
spacingScale: o,
|
|
112
|
+
borderRadius: S,
|
|
113
|
+
fontFamilyPrimary: s,
|
|
114
|
+
fontFamilySecondary: g,
|
|
115
|
+
secondaryColor: f,
|
|
116
|
+
contentColor: x,
|
|
117
|
+
opacity: "60%",
|
|
118
|
+
isMobile: b
|
|
119
|
+
});
|
|
120
|
+
return /* @__PURE__ */ d(j, { children: [
|
|
121
|
+
/* @__PURE__ */ t(n, { sx: l.headlineSection, children: /* @__PURE__ */ d(n, { sx: l.headlineContent, children: [
|
|
122
|
+
/* @__PURE__ */ d(n, { sx: { display: "flex", flexDirection: "column", alignItems: b ? "center" : "flex-start", gap: o["3xs"] }, children: [
|
|
123
|
+
/* @__PURE__ */ d(n, { sx: { display: "flex", alignItems: "center", gap: o["3xs"] }, children: [
|
|
124
|
+
/* @__PURE__ */ t(D, { sx: l.headlineText, children: m }),
|
|
125
|
+
/* @__PURE__ */ t(
|
|
126
|
+
J,
|
|
127
|
+
{
|
|
128
|
+
rulesDisplay: a,
|
|
129
|
+
rules: e.rules || ""
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ d(n, { sx: l.contentContainer, children: [
|
|
134
|
+
/* @__PURE__ */ t(D, { sx: l.titleText, children: e.title }),
|
|
135
|
+
/* @__PURE__ */ t(D, { sx: l.descriptionText, children: E(e.description) })
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
b ? /* @__PURE__ */ t(j, {}) : C
|
|
139
|
+
] }) }),
|
|
140
|
+
/* @__PURE__ */ t(n, { sx: l.mainContentArea, children: /* @__PURE__ */ d(n, { sx: l.ctaWrapper, children: [
|
|
141
|
+
I,
|
|
142
|
+
b && C
|
|
143
|
+
] }) })
|
|
144
|
+
] });
|
|
145
|
+
}, ie = (e) => {
|
|
146
|
+
var m;
|
|
147
|
+
return {
|
|
148
|
+
// Main container with background overlay
|
|
149
|
+
mainContainer: {
|
|
150
|
+
display: "flex",
|
|
151
|
+
flexDirection: "column",
|
|
152
|
+
justifyContent: "space-between",
|
|
153
|
+
gap: "40px",
|
|
154
|
+
p: e.spacingScale.xl,
|
|
155
|
+
boxShadow: "md",
|
|
156
|
+
border: (m = e.brandingColors) != null && m.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
157
|
+
overflow: "hidden",
|
|
158
|
+
backgroundImage: e.backgroundImage,
|
|
159
|
+
backgroundSize: "cover",
|
|
160
|
+
backgroundPosition: "center",
|
|
161
|
+
position: "relative",
|
|
162
|
+
borderRadius: e.mdBorderRadius,
|
|
163
|
+
minHeight: "250px",
|
|
164
|
+
"&::before": {
|
|
165
|
+
content: '""',
|
|
166
|
+
position: "absolute",
|
|
167
|
+
background: e.imageBackgroundGradient,
|
|
168
|
+
top: 0,
|
|
169
|
+
left: 0,
|
|
170
|
+
right: 0,
|
|
171
|
+
bottom: 0,
|
|
172
|
+
borderRadius: "inherit",
|
|
173
|
+
zIndex: 0
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
// Headline section wrapper
|
|
177
|
+
headlineSection: {
|
|
178
|
+
display: "flex",
|
|
179
|
+
justifyContent: "space-between",
|
|
180
|
+
flex: "1 0 0",
|
|
181
|
+
alignSelf: "stretch"
|
|
182
|
+
},
|
|
183
|
+
// Headline content container
|
|
184
|
+
headlineContent: {
|
|
185
|
+
display: "flex",
|
|
186
|
+
flexDirection: "column",
|
|
187
|
+
alignItems: "flex-start",
|
|
188
|
+
flex: "1 0 0",
|
|
189
|
+
gap: "16px"
|
|
190
|
+
},
|
|
191
|
+
// Headline content with z-index
|
|
192
|
+
headlineContentInner: {
|
|
193
|
+
zIndex: 10
|
|
194
|
+
},
|
|
195
|
+
headlineText: {
|
|
196
|
+
fontWeight: 500,
|
|
197
|
+
lineHeight: "166%",
|
|
198
|
+
letterSpacing: "1px",
|
|
199
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
200
|
+
color: e.secondaryColor,
|
|
201
|
+
opacity: "70%",
|
|
202
|
+
textTransform: "uppercase",
|
|
203
|
+
fontFamily: e.fontFamilySecondary,
|
|
204
|
+
fontSize: "0.75em"
|
|
205
|
+
},
|
|
206
|
+
// Content container
|
|
207
|
+
contentContainer: {
|
|
208
|
+
display: "flex",
|
|
209
|
+
flexDirection: "column",
|
|
210
|
+
gap: e.spacingScale["3xs"]
|
|
211
|
+
},
|
|
212
|
+
titleText: {
|
|
213
|
+
fontWeight: 700,
|
|
214
|
+
lineHeight: "133%",
|
|
215
|
+
letterSpacing: "0px",
|
|
216
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
217
|
+
fontSize: "1.5em",
|
|
218
|
+
color: e.darkTextColor,
|
|
219
|
+
fontFamily: e.fontFamilyPrimary
|
|
220
|
+
},
|
|
221
|
+
descriptionText: {
|
|
222
|
+
fontWeight: 400,
|
|
223
|
+
lineHeight: "140%",
|
|
224
|
+
letterSpacing: "0.15px",
|
|
225
|
+
fontSize: "1.25em",
|
|
226
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
227
|
+
color: e.secondaryColor,
|
|
228
|
+
opacity: "70%",
|
|
229
|
+
fontFamily: e.fontFamilyPrimary
|
|
230
|
+
},
|
|
231
|
+
// Bottom container
|
|
232
|
+
bottomContainer: {
|
|
233
|
+
display: "flex",
|
|
234
|
+
alignItems: "center",
|
|
235
|
+
justifyContent: "space-between",
|
|
236
|
+
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
237
|
+
gap: e.spacingScale.md
|
|
238
|
+
},
|
|
239
|
+
// Sign-in wrapper to always position at flex-end
|
|
240
|
+
signInWrapper: {
|
|
241
|
+
display: "flex",
|
|
242
|
+
justifyContent: "flex-end",
|
|
243
|
+
flex: 1
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}, ue = ({
|
|
247
|
+
entity: e,
|
|
248
|
+
headline: m,
|
|
249
|
+
backgroundImage: u,
|
|
250
|
+
imageBackgroundGradient: I,
|
|
251
|
+
signInContent: C,
|
|
252
|
+
brandingContent: a,
|
|
253
|
+
rulesDisplay: b
|
|
254
|
+
}) => {
|
|
255
|
+
var k;
|
|
256
|
+
const h = A(), o = L(), s = z(), g = ((k = e.branding) == null ? void 0 : k.colors) || null, S = (g == null ? void 0 : g.contentColor) || o.colorSchemes.dark.textColor, c = o.customFontFamily.dark.primary, x = o.customFontFamily.dark.secondary, f = o.customRadius.dark.md, y = o.border.dark.size, l = o.colorSchemes.dark.textColor, i = ie({
|
|
257
|
+
spacingScale: s,
|
|
258
|
+
brandingColors: g,
|
|
259
|
+
secondaryColor: S,
|
|
260
|
+
fontFamilyPrimary: c,
|
|
261
|
+
fontFamilySecondary: x,
|
|
262
|
+
mdBorderRadius: f,
|
|
263
|
+
borderSize: y,
|
|
264
|
+
darkTextColor: l,
|
|
265
|
+
backgroundImage: u,
|
|
266
|
+
imageBackgroundGradient: I,
|
|
267
|
+
isMobile: h
|
|
268
|
+
});
|
|
269
|
+
return /* @__PURE__ */ d(n, { sx: i.mainContainer, children: [
|
|
270
|
+
/* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(n, { sx: i.headlineSection, children: /* @__PURE__ */ t(n, { sx: i.headlineContent, children: /* @__PURE__ */ d(n, { sx: { ...i.headlineContentInner, display: "flex", flexDirection: "column", alignItems: h ? "center" : "flex-start", gap: s["3xs"] }, children: [
|
|
271
|
+
/* @__PURE__ */ d(n, { sx: { display: "flex", alignItems: "center", gap: s["3xs"] }, children: [
|
|
272
|
+
/* @__PURE__ */ t(D, { level: "body-sm", sx: i.headlineText, children: m }),
|
|
273
|
+
/* @__PURE__ */ t(
|
|
274
|
+
J,
|
|
275
|
+
{
|
|
276
|
+
rulesDisplay: b,
|
|
277
|
+
isOverlayVariant: !0,
|
|
278
|
+
rules: e.rules || ""
|
|
279
|
+
}
|
|
280
|
+
)
|
|
281
|
+
] }),
|
|
282
|
+
/* @__PURE__ */ d(n, { sx: i.contentContainer, children: [
|
|
283
|
+
/* @__PURE__ */ t(D, { level: "h4", sx: i.titleText, children: e.title }),
|
|
284
|
+
/* @__PURE__ */ t(D, { level: "body-lg", sx: i.descriptionText, children: E(e.description) })
|
|
285
|
+
] })
|
|
286
|
+
] }) }) }) }),
|
|
287
|
+
/* @__PURE__ */ d(n, { sx: i.bottomContainer, children: [
|
|
288
|
+
a,
|
|
289
|
+
/* @__PURE__ */ t(n, { sx: i.signInWrapper, children: C })
|
|
290
|
+
] })
|
|
291
|
+
] });
|
|
292
|
+
}, fe = (e) => {
|
|
293
|
+
var y, l, i, k, P, R, F;
|
|
294
|
+
const m = L(), u = A(), I = e.defaultImagePlaceholder ? e.defaultImagePlaceholder : u ? K : Q, C = Y(
|
|
295
|
+
{
|
|
296
|
+
images: e.entity.images || null,
|
|
297
|
+
imagePlaceholder: I
|
|
298
|
+
},
|
|
299
|
+
G.SPLIT
|
|
300
|
+
), a = ((y = e.entity.branding) == null ? void 0 : y.colors) || null, b = (a == null ? void 0 : a.borderColor) || null, h = (a == null ? void 0 : a.backgroundColor) || X().surfaceVariant, o = Z(h), s = z(), g = q(), S = u ? ((i = (l = e.entity.branding) == null ? void 0 : l.images) == null ? void 0 : i.mobileLogo) || ((P = (k = e.entity.branding) == null ? void 0 : k.images) == null ? void 0 : P.mainLogo) || "" : ((F = (R = e.entity.branding) == null ? void 0 : R.images) == null ? void 0 : F.mainLogo) || "", c = {
|
|
301
|
+
questionArea: {
|
|
302
|
+
width: "100%",
|
|
303
|
+
justifyContent: "center",
|
|
304
|
+
display: "flex",
|
|
305
|
+
flexDirection: "column"
|
|
306
|
+
},
|
|
307
|
+
questionAreaContent: {
|
|
308
|
+
p: s.lg,
|
|
309
|
+
display: "flex",
|
|
310
|
+
flexDirection: "column",
|
|
311
|
+
justifyContent: "center",
|
|
312
|
+
gap: "16px"
|
|
313
|
+
},
|
|
314
|
+
leadContentContainer: {
|
|
315
|
+
p: s.md,
|
|
316
|
+
gap: s.md,
|
|
317
|
+
display: "flex",
|
|
318
|
+
flexDirection: "column",
|
|
319
|
+
backdropFilter: "blur(4px)",
|
|
320
|
+
bgcolor: `rgba(${o.replace(/[^\d,]/g, "")}, 0.5)`,
|
|
321
|
+
borderRadius: g.sm
|
|
322
|
+
}
|
|
323
|
+
}, x = (T) => {
|
|
324
|
+
var r, W, B, M, v;
|
|
325
|
+
return /* @__PURE__ */ t(
|
|
326
|
+
e.PresentedBy,
|
|
327
|
+
{
|
|
328
|
+
brandingLogo: S,
|
|
329
|
+
textColor: T,
|
|
330
|
+
label: ((r = e.entity.labels) == null ? void 0 : r.sponsor) || null,
|
|
331
|
+
primaryUrl: (B = (W = e.entity.branding) == null ? void 0 : W.urls) == null ? void 0 : B.primaryUrl,
|
|
332
|
+
secondaryUrl: (v = (M = e.entity.branding) == null ? void 0 : M.urls) == null ? void 0 : v.secondaryUrl,
|
|
333
|
+
isCentered: !1
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
}, f = () => {
|
|
337
|
+
var W, B, M, v, w, p, U, H, O, N, V;
|
|
338
|
+
const { CollectLeadWrapper: T, entity: r } = e;
|
|
339
|
+
return /* @__PURE__ */ d(j, { children: [
|
|
340
|
+
/* @__PURE__ */ t(n, { sx: c.questionArea, children: /* @__PURE__ */ t(n, { sx: c.questionAreaContent, children: /* @__PURE__ */ t(n, { sx: c.leadContentContainer, children: /* @__PURE__ */ t(
|
|
341
|
+
T,
|
|
342
|
+
{
|
|
343
|
+
sdk: e.sdk,
|
|
344
|
+
contentId: r.id,
|
|
345
|
+
contentName: r.title,
|
|
346
|
+
brandingColors: (W = r.branding) == null ? void 0 : W.colors,
|
|
347
|
+
brandingUrls: (B = r.branding) == null ? void 0 : B.urls,
|
|
348
|
+
campaignId: (M = e.leads) == null ? void 0 : M.campaignId,
|
|
349
|
+
campaignName: (v = e.leads) == null ? void 0 : v.campaignName,
|
|
350
|
+
fields: (w = e.leads) == null ? void 0 : w.fields,
|
|
351
|
+
leadTitle: (p = r.labels) == null ? void 0 : p.leadTitle,
|
|
352
|
+
leadDescription: (U = r.labels) == null ? void 0 : U.leadDescription,
|
|
353
|
+
leadCta: (H = r.labels) == null ? void 0 : H.leadCta,
|
|
354
|
+
leadSuccessTitle: (O = r.labels) == null ? void 0 : O.leadSuccessTitle,
|
|
355
|
+
leadSuccessDescription: (N = r.labels) == null ? void 0 : N.leadSuccessDescription,
|
|
356
|
+
syncWithProfile: (V = e.leads) == null ? void 0 : V.syncWithProfile,
|
|
357
|
+
startGame: e.onLeadSubmitted,
|
|
358
|
+
isAfterPosition: !0,
|
|
359
|
+
isSubmittingParticipation: e.isSubmitting
|
|
360
|
+
}
|
|
361
|
+
) }) }) }),
|
|
362
|
+
S && u && /* @__PURE__ */ t(n, { sx: { mb: s.lg, px: s.lg }, children: x(
|
|
363
|
+
(a == null ? void 0 : a.contentColor) || m.colorSchemes.dark.textColor
|
|
364
|
+
) })
|
|
365
|
+
] });
|
|
366
|
+
};
|
|
367
|
+
return /* @__PURE__ */ t(e.MainCard, { brandingBorderColor: b, children: /* @__PURE__ */ t(
|
|
368
|
+
ee,
|
|
369
|
+
{
|
|
370
|
+
entity: e.entity,
|
|
371
|
+
headline: e.headline,
|
|
372
|
+
finalImage: C,
|
|
373
|
+
brandingLogo: S,
|
|
374
|
+
renderPresentedBy: x,
|
|
375
|
+
rulesDisplay: e.rulesDisplay,
|
|
376
|
+
children: f()
|
|
377
|
+
}
|
|
378
|
+
) });
|
|
379
|
+
}, ye = (e) => {
|
|
380
|
+
const m = L(), u = A(), I = e.defaultImagePlaceholder ? e.defaultImagePlaceholder : u ? K : Q, { brandingImage: C, brandingColors: a, brandingLogo: b } = _(e.entity.branding || null), h = C || Y(
|
|
381
|
+
{
|
|
382
|
+
images: e.entity.images || null,
|
|
383
|
+
imagePlaceholder: I
|
|
384
|
+
},
|
|
385
|
+
G.OVERLAY
|
|
386
|
+
), o = z(), s = (a == null ? void 0 : a.backgroundColor) || m.colorSchemes.dark.surfaceVariant, g = {
|
|
387
|
+
mainContentSection: {
|
|
388
|
+
display: "flex",
|
|
389
|
+
flexDirection: "column",
|
|
390
|
+
gap: "24px"
|
|
391
|
+
},
|
|
392
|
+
contentContainerWithBackdrop: {
|
|
393
|
+
borderRadius: m.customRadius.dark.sm,
|
|
394
|
+
p: o.md,
|
|
395
|
+
display: "flex",
|
|
396
|
+
flexDirection: "column",
|
|
397
|
+
gap: o.md,
|
|
398
|
+
backdropFilter: "blur(4px)",
|
|
399
|
+
position: "relative",
|
|
400
|
+
"&::before": {
|
|
401
|
+
content: '""',
|
|
402
|
+
position: "absolute",
|
|
403
|
+
top: 0,
|
|
404
|
+
left: 0,
|
|
405
|
+
right: 0,
|
|
406
|
+
bottom: 0,
|
|
407
|
+
backgroundColor: s,
|
|
408
|
+
opacity: 0.5,
|
|
409
|
+
borderRadius: "inherit",
|
|
410
|
+
zIndex: 0
|
|
411
|
+
},
|
|
412
|
+
"& > *": {
|
|
413
|
+
position: "relative",
|
|
414
|
+
zIndex: 1
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
presentedByContainer: {
|
|
418
|
+
display: "flex",
|
|
419
|
+
alignItems: "center",
|
|
420
|
+
justifyContent: u ? "center" : "space-between",
|
|
421
|
+
flexDirection: u ? "column-reverse" : "row",
|
|
422
|
+
gap: o.md
|
|
423
|
+
}
|
|
424
|
+
}, S = () => {
|
|
425
|
+
var x, f, y, l, i;
|
|
426
|
+
return /* @__PURE__ */ t(
|
|
427
|
+
e.PresentedBy,
|
|
428
|
+
{
|
|
429
|
+
brandingLogo: b || "",
|
|
430
|
+
textColor: m.colorSchemes.dark.textColor,
|
|
431
|
+
label: ((x = e.entity.labels) == null ? void 0 : x.sponsor) || null,
|
|
432
|
+
primaryUrl: (y = (f = e.entity.branding) == null ? void 0 : f.urls) == null ? void 0 : y.primaryUrl,
|
|
433
|
+
secondaryUrl: (i = (l = e.entity.branding) == null ? void 0 : l.urls) == null ? void 0 : i.secondaryUrl
|
|
434
|
+
}
|
|
435
|
+
);
|
|
436
|
+
}, c = () => {
|
|
437
|
+
var x, f, y, l, i, k, P, R, F, T, r;
|
|
438
|
+
return /* @__PURE__ */ d(n, { sx: g.mainContentSection, children: [
|
|
439
|
+
/* @__PURE__ */ t(n, { sx: g.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
|
|
440
|
+
e.CollectLeadWrapper,
|
|
441
|
+
{
|
|
442
|
+
sdk: e.sdk,
|
|
443
|
+
contentId: e.entity.id,
|
|
444
|
+
contentName: e.entity.title,
|
|
445
|
+
brandingColors: (x = e.entity.branding) == null ? void 0 : x.colors,
|
|
446
|
+
brandingUrls: (f = e.entity.branding) == null ? void 0 : f.urls,
|
|
447
|
+
campaignId: (y = e.leads) == null ? void 0 : y.campaignId,
|
|
448
|
+
campaignName: (l = e.leads) == null ? void 0 : l.campaignName,
|
|
449
|
+
fields: (i = e.leads) == null ? void 0 : i.fields,
|
|
450
|
+
leadTitle: (k = e.entity.labels) == null ? void 0 : k.leadTitle,
|
|
451
|
+
leadDescription: (P = e.entity.labels) == null ? void 0 : P.leadDescription,
|
|
452
|
+
leadCta: (R = e.entity.labels) == null ? void 0 : R.leadCta,
|
|
453
|
+
leadSuccessTitle: (F = e.entity.labels) == null ? void 0 : F.leadSuccessTitle,
|
|
454
|
+
leadSuccessDescription: (T = e.entity.labels) == null ? void 0 : T.leadSuccessDescription,
|
|
455
|
+
syncWithProfile: (r = e.leads) == null ? void 0 : r.syncWithProfile,
|
|
456
|
+
startGame: e.onLeadSubmitted,
|
|
457
|
+
isAfterPosition: !0,
|
|
458
|
+
isSubmittingParticipation: e.isSubmitting
|
|
459
|
+
}
|
|
460
|
+
) }),
|
|
461
|
+
/* @__PURE__ */ t(n, { sx: g.presentedByContainer, children: S() })
|
|
462
|
+
] });
|
|
463
|
+
};
|
|
464
|
+
return /* @__PURE__ */ t(
|
|
465
|
+
te,
|
|
466
|
+
{
|
|
467
|
+
entity: e.entity,
|
|
468
|
+
headline: e.headline,
|
|
469
|
+
finalImage: h,
|
|
470
|
+
rulesDisplay: e.rulesDisplay,
|
|
471
|
+
children: c()
|
|
472
|
+
}
|
|
473
|
+
);
|
|
474
|
+
};
|
|
475
|
+
export {
|
|
476
|
+
ue as O,
|
|
477
|
+
xe as S,
|
|
478
|
+
fe as a,
|
|
479
|
+
ye as b
|
|
480
|
+
};
|
package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { e as k, u as F, f as z, B as l, T as a } from "./
|
|
3
|
-
import { s as I } from "./useImageVariant-
|
|
4
|
-
import { R as v } from "./
|
|
2
|
+
import { e as k, u as F, f as z, B as l, T as a } from "./PrizeCard-gMp7I66d.js";
|
|
3
|
+
import { s as I } from "./useImageVariant-pnFelF9A.js";
|
|
4
|
+
import { R as v } from "./NotFoundSkeleton-B3RNa8KJ.js";
|
|
5
5
|
const R = (e) => ({
|
|
6
6
|
// Main container with background overlay
|
|
7
7
|
mainContainer: {
|