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,432 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as X, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { e as q, u as Y, f as E, h as $, j as J, k as S, g as Z, W as K, B as t, T as g } from "./PrizeCard-gMp7I66d.js";
|
|
3
|
+
import { h as O, g as ee, s as P, u as ie } from "./useImageVariant-pnFelF9A.js";
|
|
4
|
+
import { R as w, S as ne } from "./NotFoundSkeleton-B3RNa8KJ.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const te = (e) => {
|
|
8
|
+
var d, r, o;
|
|
9
|
+
return {
|
|
10
|
+
// Mobile headline with image background
|
|
11
|
+
mobileHeadlineWithImage: {
|
|
12
|
+
display: e.isMobile ? "flex" : "none",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
justifyContent: "space-between",
|
|
15
|
+
gap: "10px",
|
|
16
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
17
|
+
backgroundSize: "cover",
|
|
18
|
+
backgroundPosition: "center",
|
|
19
|
+
borderTopLeftRadius: "5px",
|
|
20
|
+
borderTopRightRadius: "5px",
|
|
21
|
+
position: "relative",
|
|
22
|
+
minHeight: "210px",
|
|
23
|
+
overflow: "hidden",
|
|
24
|
+
height: "auto",
|
|
25
|
+
"&::before": {
|
|
26
|
+
content: '""',
|
|
27
|
+
position: "absolute",
|
|
28
|
+
width: "100%",
|
|
29
|
+
height: "100%",
|
|
30
|
+
background: e.imageBackgroundGradient,
|
|
31
|
+
borderTopLeftRadius: "5px",
|
|
32
|
+
borderTopRightRadius: "5px"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
// Content inside mobile headline with image
|
|
36
|
+
mobileHeadlineContent: {
|
|
37
|
+
zIndex: 1,
|
|
38
|
+
p: e.spacingScale.xl,
|
|
39
|
+
gap: e.spacingScale["2xl"],
|
|
40
|
+
display: "flex",
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
justifyContent: "space-between"
|
|
43
|
+
},
|
|
44
|
+
// Mobile headline without image
|
|
45
|
+
mobileHeadlineWithoutImage: {
|
|
46
|
+
display: e.isMobile ? "flex" : "none",
|
|
47
|
+
flex: "0.5",
|
|
48
|
+
flexDirection: "column",
|
|
49
|
+
justifyContent: "space-between",
|
|
50
|
+
p: e.spacingScale.lg,
|
|
51
|
+
gap: e.spacingScale["2xl"]
|
|
52
|
+
},
|
|
53
|
+
// Headline typography (mobile with image)
|
|
54
|
+
headlineTypographyMobileImage: {
|
|
55
|
+
fontWeight: 500,
|
|
56
|
+
lineHeight: "166%",
|
|
57
|
+
letterSpacing: "1px",
|
|
58
|
+
fontSize: "0.75em",
|
|
59
|
+
color: ((d = e.brandingColors) == null ? void 0 : d.secondaryColor) || e.darkTextColor,
|
|
60
|
+
opacity: "70%",
|
|
61
|
+
textTransform: "uppercase",
|
|
62
|
+
fontFamily: e.fontFamilySecondary,
|
|
63
|
+
textAlign: "center"
|
|
64
|
+
},
|
|
65
|
+
// Headline typography (mobile without image & desktop)
|
|
66
|
+
headlineTypography: {
|
|
67
|
+
fontWeight: 500,
|
|
68
|
+
lineHeight: "166%",
|
|
69
|
+
letterSpacing: "1px",
|
|
70
|
+
textTransform: "uppercase",
|
|
71
|
+
fontSize: "0.75em",
|
|
72
|
+
color: e.secondaryColor,
|
|
73
|
+
opacity: e.opacity,
|
|
74
|
+
fontFamily: e.fontFamilySecondary,
|
|
75
|
+
textAlign: "center"
|
|
76
|
+
},
|
|
77
|
+
// Title typography (mobile with image)
|
|
78
|
+
titleTypographyMobileImage: {
|
|
79
|
+
fontWeight: 700,
|
|
80
|
+
lineHeight: "133%",
|
|
81
|
+
fontSize: "1.5em",
|
|
82
|
+
letterSpacing: "0.15px",
|
|
83
|
+
color: ((r = e.brandingColors) == null ? void 0 : r.contentColor) || e.darkTextColor,
|
|
84
|
+
fontFamily: e.fontFamilyPrimary,
|
|
85
|
+
textAlign: "center"
|
|
86
|
+
},
|
|
87
|
+
// Title typography (mobile without image)
|
|
88
|
+
titleTypography: {
|
|
89
|
+
fontWeight: 700,
|
|
90
|
+
lineHeight: "133%",
|
|
91
|
+
letterSpacing: "0px",
|
|
92
|
+
fontSize: "1.5em",
|
|
93
|
+
color: e.textColor,
|
|
94
|
+
fontFamily: e.fontFamilyPrimary,
|
|
95
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
96
|
+
},
|
|
97
|
+
// Description typography (mobile with image)
|
|
98
|
+
descriptionTypographyMobileImage: {
|
|
99
|
+
fontWeight: 400,
|
|
100
|
+
lineHeight: "140%",
|
|
101
|
+
fontSize: "1.25em",
|
|
102
|
+
letterSpacing: "0.15px",
|
|
103
|
+
color: ((o = e.brandingColors) == null ? void 0 : o.secondaryColor) || e.darkTextColor,
|
|
104
|
+
opacity: "70%",
|
|
105
|
+
fontFamily: e.fontFamilyPrimary,
|
|
106
|
+
textAlign: "center"
|
|
107
|
+
},
|
|
108
|
+
// Description typography (mobile without image)
|
|
109
|
+
descriptionTypography: {
|
|
110
|
+
fontWeight: 400,
|
|
111
|
+
lineHeight: "140%",
|
|
112
|
+
letterSpacing: "0.15px",
|
|
113
|
+
fontSize: "1.25em",
|
|
114
|
+
color: e.secondaryColor,
|
|
115
|
+
opacity: e.opacity,
|
|
116
|
+
fontFamily: e.fontFamilyPrimary,
|
|
117
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
118
|
+
},
|
|
119
|
+
// Desktop title typography
|
|
120
|
+
titleTypographyDesktop: {
|
|
121
|
+
fontWeight: 700,
|
|
122
|
+
lineHeight: "133%",
|
|
123
|
+
letterSpacing: "0px",
|
|
124
|
+
fontSize: "1.5em",
|
|
125
|
+
color: e.textColor,
|
|
126
|
+
fontFamily: e.fontFamilyPrimary
|
|
127
|
+
},
|
|
128
|
+
// Desktop description typography
|
|
129
|
+
descriptionTypographyDesktop: {
|
|
130
|
+
fontWeight: 400,
|
|
131
|
+
lineHeight: "140%",
|
|
132
|
+
letterSpacing: "0.15px",
|
|
133
|
+
fontSize: "1.25em",
|
|
134
|
+
color: e.secondaryColor,
|
|
135
|
+
opacity: e.opacity,
|
|
136
|
+
fontFamily: e.fontFamilyPrimary
|
|
137
|
+
},
|
|
138
|
+
// Image container (left position)
|
|
139
|
+
imageContainerLeft: {
|
|
140
|
+
display: e.isMobile ? "none" : "block",
|
|
141
|
+
flex: "0.3",
|
|
142
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
143
|
+
borderBottomLeftRadius: e.borderRadius.md,
|
|
144
|
+
overflow: "hidden",
|
|
145
|
+
height: "auto",
|
|
146
|
+
position: "relative"
|
|
147
|
+
},
|
|
148
|
+
// Image container (right position)
|
|
149
|
+
imageContainerRight: {
|
|
150
|
+
display: e.isMobile ? "none" : "block",
|
|
151
|
+
flex: "0.3",
|
|
152
|
+
borderTopRightRadius: "5px",
|
|
153
|
+
borderBottomRightRadius: "5px",
|
|
154
|
+
overflow: "hidden",
|
|
155
|
+
height: "auto",
|
|
156
|
+
position: "relative"
|
|
157
|
+
},
|
|
158
|
+
// Main content area
|
|
159
|
+
mainContentArea: {
|
|
160
|
+
flex: e.isMobile ? "1" : e.finalImage ? "0.7" : "1",
|
|
161
|
+
display: e.isMobile ? "none" : "flex",
|
|
162
|
+
flexDirection: "column",
|
|
163
|
+
p: e.spacingScale.md,
|
|
164
|
+
gap: e.spacingScale["2xl"]
|
|
165
|
+
},
|
|
166
|
+
// Desktop headline container
|
|
167
|
+
desktopHeadlineContainer: {
|
|
168
|
+
display: e.isMobile ? "none" : "flex",
|
|
169
|
+
flexDirection: "column",
|
|
170
|
+
gap: e.spacingScale.xl,
|
|
171
|
+
textAlign: "center"
|
|
172
|
+
},
|
|
173
|
+
// Content container
|
|
174
|
+
contentContainer: {
|
|
175
|
+
display: "flex",
|
|
176
|
+
flexDirection: "column",
|
|
177
|
+
gap: e.spacingScale["3xs"]
|
|
178
|
+
},
|
|
179
|
+
// Sign in button container
|
|
180
|
+
signInButtonContainer: {
|
|
181
|
+
display: "flex",
|
|
182
|
+
flexDirection: "column",
|
|
183
|
+
justifyContent: "space-between",
|
|
184
|
+
alignItems: "center",
|
|
185
|
+
gap: e.spacingScale["2xl"]
|
|
186
|
+
},
|
|
187
|
+
// Branding container
|
|
188
|
+
brandingContainer: {
|
|
189
|
+
px: e.spacingScale.md
|
|
190
|
+
},
|
|
191
|
+
image: {
|
|
192
|
+
width: "100%",
|
|
193
|
+
height: "100%",
|
|
194
|
+
objectFit: "cover"
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
}, se = ({
|
|
198
|
+
entity: e,
|
|
199
|
+
headline: d,
|
|
200
|
+
finalImage: r,
|
|
201
|
+
imagePosition: o = "left",
|
|
202
|
+
signInContent: u,
|
|
203
|
+
brandingContent: b,
|
|
204
|
+
rulesDisplay: m
|
|
205
|
+
}) => {
|
|
206
|
+
var C, p;
|
|
207
|
+
const H = q(), T = Y(), x = E(), v = $().primary, f = $().secondary, A = J(), c = ((C = e.branding) == null ? void 0 : C.colors) || null, s = ((p = e.branding) == null ? void 0 : p.urls) || null, k = (c == null ? void 0 : c.contentColor) || S().textColor, I = (c == null ? void 0 : c.secondaryColor) || S().textColor, R = (c == null ? void 0 : c.backgroundColor) || S().surfaceVariant, D = "60%", F = Z(
|
|
208
|
+
K.STANDARD
|
|
209
|
+
), n = te({
|
|
210
|
+
finalImage: r,
|
|
211
|
+
spacingScale: x,
|
|
212
|
+
borderRadius: A,
|
|
213
|
+
fontFamilyPrimary: v,
|
|
214
|
+
fontFamilySecondary: f,
|
|
215
|
+
textColor: k,
|
|
216
|
+
secondaryColor: I,
|
|
217
|
+
bgcolor: O(R || ""),
|
|
218
|
+
opacity: D,
|
|
219
|
+
brandingColors: c,
|
|
220
|
+
imagePosition: o,
|
|
221
|
+
darkTextColor: T.colorSchemes.dark.textColor,
|
|
222
|
+
imageBackgroundGradient: F,
|
|
223
|
+
isMobile: H
|
|
224
|
+
}), l = ee(
|
|
225
|
+
s == null ? void 0 : s.primaryUrl,
|
|
226
|
+
s == null ? void 0 : s.secondaryUrl,
|
|
227
|
+
"image"
|
|
228
|
+
), M = (y, h) => typeof window > "u" ? l ? /* @__PURE__ */ i(
|
|
229
|
+
t,
|
|
230
|
+
{
|
|
231
|
+
component: "a",
|
|
232
|
+
href: l,
|
|
233
|
+
target: "_blank",
|
|
234
|
+
sx: h,
|
|
235
|
+
children: y
|
|
236
|
+
}
|
|
237
|
+
) : /* @__PURE__ */ i(t, { sx: h, children: y }) : l ? /* @__PURE__ */ i(
|
|
238
|
+
t,
|
|
239
|
+
{
|
|
240
|
+
sx: { ...h, cursor: "pointer" },
|
|
241
|
+
onClick: () => window.open(l, "_blank"),
|
|
242
|
+
children: y
|
|
243
|
+
}
|
|
244
|
+
) : /* @__PURE__ */ i(t, { sx: h, children: y });
|
|
245
|
+
return /* @__PURE__ */ a(X, { children: [
|
|
246
|
+
r ? M(
|
|
247
|
+
/* @__PURE__ */ a(t, { sx: n.mobileHeadlineContent, children: [
|
|
248
|
+
/* @__PURE__ */ a(t, { children: [
|
|
249
|
+
/* @__PURE__ */ a(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
|
|
250
|
+
/* @__PURE__ */ i(
|
|
251
|
+
g,
|
|
252
|
+
{
|
|
253
|
+
level: "body-sm",
|
|
254
|
+
sx: n.headlineTypographyMobileImage,
|
|
255
|
+
children: d
|
|
256
|
+
}
|
|
257
|
+
),
|
|
258
|
+
/* @__PURE__ */ i(
|
|
259
|
+
w,
|
|
260
|
+
{
|
|
261
|
+
rulesDisplay: m,
|
|
262
|
+
rules: e.rules || ""
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
] }),
|
|
266
|
+
/* @__PURE__ */ a(t, { sx: n.contentContainer, children: [
|
|
267
|
+
/* @__PURE__ */ i(
|
|
268
|
+
g,
|
|
269
|
+
{
|
|
270
|
+
level: "body-lg",
|
|
271
|
+
sx: n.titleTypographyMobileImage,
|
|
272
|
+
children: e.title
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ i(
|
|
276
|
+
g,
|
|
277
|
+
{
|
|
278
|
+
level: "body-md",
|
|
279
|
+
sx: n.descriptionTypographyMobileImage,
|
|
280
|
+
children: P(e.description)
|
|
281
|
+
}
|
|
282
|
+
)
|
|
283
|
+
] })
|
|
284
|
+
] }),
|
|
285
|
+
/* @__PURE__ */ a(t, { sx: n.signInButtonContainer, children: [
|
|
286
|
+
u,
|
|
287
|
+
b
|
|
288
|
+
] })
|
|
289
|
+
] }),
|
|
290
|
+
n.mobileHeadlineWithImage
|
|
291
|
+
) : /* @__PURE__ */ a(t, { sx: n.mobileHeadlineWithoutImage, children: [
|
|
292
|
+
/* @__PURE__ */ a(t, { children: [
|
|
293
|
+
/* @__PURE__ */ a(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
|
|
294
|
+
/* @__PURE__ */ i(g, { level: "body-sm", sx: n.headlineTypography, children: d }),
|
|
295
|
+
/* @__PURE__ */ i(
|
|
296
|
+
w,
|
|
297
|
+
{
|
|
298
|
+
rulesDisplay: m,
|
|
299
|
+
rules: e.rules || ""
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
] }),
|
|
303
|
+
/* @__PURE__ */ a(t, { sx: n.contentContainer, children: [
|
|
304
|
+
/* @__PURE__ */ i(g, { level: "h4", sx: n.titleTypography, children: e.title }),
|
|
305
|
+
/* @__PURE__ */ i(g, { level: "body-md", sx: n.descriptionTypography, children: P(e.description) })
|
|
306
|
+
] })
|
|
307
|
+
] }),
|
|
308
|
+
/* @__PURE__ */ a(t, { sx: n.signInButtonContainer, children: [
|
|
309
|
+
u,
|
|
310
|
+
b
|
|
311
|
+
] })
|
|
312
|
+
] }),
|
|
313
|
+
r && o === "left" && /* @__PURE__ */ i(t, { sx: n.imageContainerLeft, children: /* @__PURE__ */ i("img", { src: r, alt: "Illustration", style: n.image }) }),
|
|
314
|
+
/* @__PURE__ */ i(t, { sx: n.mainContentArea, children: /* @__PURE__ */ a(t, { sx: n.desktopHeadlineContainer, children: [
|
|
315
|
+
/* @__PURE__ */ a(t, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: x["3xs"] }, children: [
|
|
316
|
+
/* @__PURE__ */ a(t, { sx: { display: "flex", alignItems: "center", gap: x["3xs"] }, children: [
|
|
317
|
+
/* @__PURE__ */ i(g, { level: "body-sm", sx: n.headlineTypography, children: d }),
|
|
318
|
+
/* @__PURE__ */ i(
|
|
319
|
+
w,
|
|
320
|
+
{
|
|
321
|
+
rulesDisplay: m,
|
|
322
|
+
rules: e.rules || ""
|
|
323
|
+
}
|
|
324
|
+
)
|
|
325
|
+
] }),
|
|
326
|
+
/* @__PURE__ */ a(t, { sx: n.contentContainer, children: [
|
|
327
|
+
/* @__PURE__ */ i(g, { level: "h4", sx: n.titleTypographyDesktop, children: e.title }),
|
|
328
|
+
/* @__PURE__ */ i(
|
|
329
|
+
g,
|
|
330
|
+
{
|
|
331
|
+
level: "body-md",
|
|
332
|
+
sx: n.descriptionTypographyDesktop,
|
|
333
|
+
children: P(e.description)
|
|
334
|
+
}
|
|
335
|
+
)
|
|
336
|
+
] })
|
|
337
|
+
] }),
|
|
338
|
+
/* @__PURE__ */ i(t, { sx: n.signInButtonContainer, children: u }),
|
|
339
|
+
b
|
|
340
|
+
] }) }),
|
|
341
|
+
r && o === "right" && /* @__PURE__ */ i(t, { sx: n.imageContainerRight, children: /* @__PURE__ */ i("img", { src: r, alt: "Illustration", style: n.image }) })
|
|
342
|
+
] });
|
|
343
|
+
}, ge = (e) => {
|
|
344
|
+
var c, s, k, I, R, D, F;
|
|
345
|
+
const d = ie(
|
|
346
|
+
{
|
|
347
|
+
images: e.entity.images || null,
|
|
348
|
+
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
349
|
+
},
|
|
350
|
+
K.STANDARD
|
|
351
|
+
), r = q(), o = E(), u = J(), b = `rgba(${O(S().surfaceVariant || "")}, 0.5)`, m = ((c = e.entity.branding) == null ? void 0 : c.colors) || null, H = (m == null ? void 0 : m.borderColor) || null, T = r ? ((k = (s = e.entity.branding) == null ? void 0 : s.images) == null ? void 0 : k.mobileLogo) || ((R = (I = e.entity.branding) == null ? void 0 : I.images) == null ? void 0 : R.mainLogo) || "" : ((F = (D = e.entity.branding) == null ? void 0 : D.images) == null ? void 0 : F.mainLogo) || "", x = e.imagePosition || "left", v = S().textColor, f = {
|
|
352
|
+
mainContentArea: {
|
|
353
|
+
flex: r ? "1" : d ? "0.7" : "1",
|
|
354
|
+
display: "flex",
|
|
355
|
+
flexDirection: "column",
|
|
356
|
+
p: o.md,
|
|
357
|
+
gap: o.md
|
|
358
|
+
},
|
|
359
|
+
leadCollectionContainer: {
|
|
360
|
+
display: "flex",
|
|
361
|
+
flexDirection: "column"
|
|
362
|
+
},
|
|
363
|
+
leadQuestionContainer: {
|
|
364
|
+
display: "flex",
|
|
365
|
+
flexDirection: "column",
|
|
366
|
+
gap: r ? o.lg : o.md
|
|
367
|
+
},
|
|
368
|
+
leadContentContainer: {
|
|
369
|
+
borderRadius: u.md,
|
|
370
|
+
px: o.md,
|
|
371
|
+
pt: o.md,
|
|
372
|
+
pb: o.lg,
|
|
373
|
+
gap: o.md,
|
|
374
|
+
bgcolor: b,
|
|
375
|
+
display: "flex",
|
|
376
|
+
flexDirection: "column",
|
|
377
|
+
backdropFilter: "blur(4px)"
|
|
378
|
+
}
|
|
379
|
+
}, A = () => {
|
|
380
|
+
var M, W, C, p, y, h, B, L, z, j, U, N, G, V, Q, _;
|
|
381
|
+
const { CollectLeadWrapper: n, entity: l } = e;
|
|
382
|
+
return /* @__PURE__ */ a(t, { sx: f.mainContentArea, children: [
|
|
383
|
+
/* @__PURE__ */ i(t, { sx: f.leadCollectionContainer, children: /* @__PURE__ */ i(t, { sx: f.leadQuestionContainer, children: /* @__PURE__ */ i(t, { sx: f.leadContentContainer, children: /* @__PURE__ */ i(
|
|
384
|
+
n,
|
|
385
|
+
{
|
|
386
|
+
sdk: e.sdk,
|
|
387
|
+
contentId: l.id,
|
|
388
|
+
contentName: l.title,
|
|
389
|
+
brandingColors: (M = l.branding) == null ? void 0 : M.colors,
|
|
390
|
+
brandingUrls: (W = l.branding) == null ? void 0 : W.urls,
|
|
391
|
+
campaignId: (C = e.leads) == null ? void 0 : C.campaignId,
|
|
392
|
+
campaignName: (p = e.leads) == null ? void 0 : p.campaignName,
|
|
393
|
+
fields: (y = e.leads) == null ? void 0 : y.fields,
|
|
394
|
+
leadTitle: (h = l.labels) == null ? void 0 : h.leadTitle,
|
|
395
|
+
leadDescription: (B = l.labels) == null ? void 0 : B.leadDescription,
|
|
396
|
+
leadCta: (L = l.labels) == null ? void 0 : L.leadCta,
|
|
397
|
+
leadSuccessTitle: (z = l.labels) == null ? void 0 : z.leadSuccessTitle,
|
|
398
|
+
leadSuccessDescription: (j = l.labels) == null ? void 0 : j.leadSuccessDescription,
|
|
399
|
+
syncWithProfile: (U = e.leads) == null ? void 0 : U.syncWithProfile,
|
|
400
|
+
startGame: e.onLeadSubmitted,
|
|
401
|
+
isAfterPosition: !0,
|
|
402
|
+
isSubmittingParticipation: e.isSubmitting
|
|
403
|
+
}
|
|
404
|
+
) }) }) }),
|
|
405
|
+
T && /* @__PURE__ */ i(
|
|
406
|
+
e.PresentedBy,
|
|
407
|
+
{
|
|
408
|
+
brandingLogo: T,
|
|
409
|
+
textColor: v,
|
|
410
|
+
label: ((N = l.labels) == null ? void 0 : N.sponsor) || null,
|
|
411
|
+
primaryUrl: (V = (G = l.branding) == null ? void 0 : G.urls) == null ? void 0 : V.primaryUrl,
|
|
412
|
+
secondaryUrl: (_ = (Q = l.branding) == null ? void 0 : Q.urls) == null ? void 0 : _.secondaryUrl
|
|
413
|
+
}
|
|
414
|
+
)
|
|
415
|
+
] });
|
|
416
|
+
};
|
|
417
|
+
return /* @__PURE__ */ i(e.MainCard, { brandingBorderColor: H, children: /* @__PURE__ */ i(
|
|
418
|
+
ne,
|
|
419
|
+
{
|
|
420
|
+
entity: e.entity,
|
|
421
|
+
headline: e.headline,
|
|
422
|
+
finalImage: d,
|
|
423
|
+
imagePosition: x,
|
|
424
|
+
rulesDisplay: e.rulesDisplay,
|
|
425
|
+
children: A()
|
|
426
|
+
}
|
|
427
|
+
) });
|
|
428
|
+
};
|
|
429
|
+
export {
|
|
430
|
+
se as S,
|
|
431
|
+
ge as a
|
|
432
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as X, _ as p, ad as A, I as H, an as Z, Q as ee, m as N, l as D, s as E, q as j, t as U, v as B, P as e, x as O, y as S, r as oe, n as G } from "./PrizeCard-gMp7I66d.js";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { a as q, b as w, d as K, l as te, L as ne, m as ae, e as se, f as ie, g as re, h as le, S as ce, R as de, i as ue, j as pe, s as be, k as fe } from "./CheckCircle-
|
|
3
|
+
import { a as q, b as w, d as K, l as te, L as ne, m as ae, e as se, f as ie, g as re, h as le, S as ce, R as de, i as ue, j as pe, s as be, k as fe } from "./CheckCircle-ClY-iOQ5.js";
|
|
4
4
|
import { jsx as C } from "react/jsx-runtime";
|
|
5
5
|
function ve(o) {
|
|
6
6
|
const {
|
|
@@ -10,7 +10,7 @@ function ve(o) {
|
|
|
10
10
|
orientation: s = "horizontal",
|
|
11
11
|
direction: r = "ltr",
|
|
12
12
|
selectionFollowsFocus: i = !1
|
|
13
|
-
} = o, [d, u] =
|
|
13
|
+
} = o, [d, u] = X({
|
|
14
14
|
controlled: t,
|
|
15
15
|
default: a,
|
|
16
16
|
name: "Tabs",
|
|
@@ -100,7 +100,7 @@ function Te(o) {
|
|
|
100
100
|
const {
|
|
101
101
|
value: r,
|
|
102
102
|
getTabId: i
|
|
103
|
-
} = s, d =
|
|
103
|
+
} = s, d = A(a), u = l.useRef(null), c = H(u, n), f = l.useMemo(() => ({
|
|
104
104
|
id: d,
|
|
105
105
|
ref: u
|
|
106
106
|
}), [d]), {
|
|
@@ -118,11 +118,11 @@ function Te(o) {
|
|
|
118
118
|
rootRef: c
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
const
|
|
121
|
+
const Q = {
|
|
122
122
|
valueChange: "valueChange"
|
|
123
123
|
};
|
|
124
124
|
function he(o, t) {
|
|
125
|
-
if (t.type ===
|
|
125
|
+
if (t.type === Q.valueChange)
|
|
126
126
|
return p({}, o, {
|
|
127
127
|
highlightedValue: t.value
|
|
128
128
|
});
|
|
@@ -157,26 +157,26 @@ function ye(o) {
|
|
|
157
157
|
subitems: c,
|
|
158
158
|
contextValue: f
|
|
159
159
|
} = q(), b = l.useCallback((P) => {
|
|
160
|
-
var
|
|
161
|
-
return (
|
|
160
|
+
var z;
|
|
161
|
+
return (z = c.get(P)) == null ? void 0 : z.id;
|
|
162
162
|
}, [c]);
|
|
163
163
|
d(b);
|
|
164
164
|
const v = l.useMemo(() => Array.from(c.keys()), [c]), m = l.useCallback((P) => {
|
|
165
|
-
var
|
|
166
|
-
return P == null ? null : (
|
|
165
|
+
var z, _;
|
|
166
|
+
return P == null ? null : (z = (_ = c.get(P)) == null ? void 0 : _.ref.current) != null ? z : null;
|
|
167
167
|
}, [c]), h = n === "rtl";
|
|
168
168
|
let T;
|
|
169
169
|
r === "vertical" ? T = "vertical" : T = h ? "horizontal-rtl" : "horizontal-ltr";
|
|
170
|
-
const g = l.useCallback((P,
|
|
170
|
+
const g = l.useCallback((P, z) => {
|
|
171
171
|
var _;
|
|
172
|
-
s(P, (_ =
|
|
172
|
+
s(P, (_ = z[0]) != null ? _ : null);
|
|
173
173
|
}, [s]), y = l.useMemo(() => i === void 0 ? {} : i != null ? {
|
|
174
174
|
selectedValues: [i]
|
|
175
175
|
} : {
|
|
176
176
|
selectedValues: []
|
|
177
177
|
}, [i]), I = l.useCallback((P) => {
|
|
178
|
-
var
|
|
179
|
-
return (
|
|
178
|
+
var z, _;
|
|
179
|
+
return (z = (_ = c.get(P)) == null ? void 0 : _.disabled) != null ? z : !1;
|
|
180
180
|
}, [c]), {
|
|
181
181
|
contextValue: R,
|
|
182
182
|
dispatch: L,
|
|
@@ -204,7 +204,7 @@ function ye(o) {
|
|
|
204
204
|
});
|
|
205
205
|
l.useEffect(() => {
|
|
206
206
|
i !== void 0 && i != null && L({
|
|
207
|
-
type:
|
|
207
|
+
type: Q.valueChange,
|
|
208
208
|
value: i
|
|
209
209
|
});
|
|
210
210
|
}, [L, i]);
|
|
@@ -259,7 +259,7 @@ function Ce(o) {
|
|
|
259
259
|
rootRef: a,
|
|
260
260
|
disabled: n = !1,
|
|
261
261
|
id: s
|
|
262
|
-
} = o, r = l.useRef(null), i =
|
|
262
|
+
} = o, r = l.useRef(null), i = A(s), {
|
|
263
263
|
value: d,
|
|
264
264
|
selectionFollowsFocus: u,
|
|
265
265
|
getTabPanelId: c
|
|
@@ -283,7 +283,7 @@ function Ce(o) {
|
|
|
283
283
|
active: R,
|
|
284
284
|
focusVisible: L,
|
|
285
285
|
setFocusVisible: k
|
|
286
|
-
} =
|
|
286
|
+
} = Z({
|
|
287
287
|
disabled: n,
|
|
288
288
|
focusableWhenDisabled: !u,
|
|
289
289
|
type: "button"
|
|
@@ -314,7 +314,7 @@ function Ce(o) {
|
|
|
314
314
|
function Re(o) {
|
|
315
315
|
return D("MuiTab", o);
|
|
316
316
|
}
|
|
317
|
-
const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), Ie = ["action", "children", "value", "disabled", "onChange", "onClick", "onFocus", "component", "orientation", "variant", "color", "disableIndicator", "indicatorPlacement", "indicatorInset", "slots", "slotProps"],
|
|
317
|
+
const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizontal", "vertical", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid"]), Ie = ["action", "children", "value", "disabled", "onChange", "onClick", "onFocus", "component", "orientation", "variant", "color", "disableIndicator", "indicatorPlacement", "indicatorInset", "slots", "slotProps"], ze = (o) => {
|
|
318
318
|
const {
|
|
319
319
|
selected: t,
|
|
320
320
|
disabled: a,
|
|
@@ -323,10 +323,10 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
323
323
|
color: r,
|
|
324
324
|
orientation: i
|
|
325
325
|
} = o, d = {
|
|
326
|
-
root: ["root", i, a && "disabled", n && "focusVisible", t && "selected", s && `variant${
|
|
326
|
+
root: ["root", i, a && "disabled", n && "focusVisible", t && "selected", s && `variant${O(s)}`, r && `color${O(r)}`]
|
|
327
327
|
};
|
|
328
328
|
return S(d, Re, {});
|
|
329
|
-
},
|
|
329
|
+
}, Oe = E(ce, {
|
|
330
330
|
name: "JoyTab",
|
|
331
331
|
slot: "Root",
|
|
332
332
|
overridesResolver: (o, t) => t.root
|
|
@@ -441,13 +441,13 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
441
441
|
selected: V,
|
|
442
442
|
variant: f,
|
|
443
443
|
color: b
|
|
444
|
-
}), M =
|
|
444
|
+
}), M = ze($), P = p({}, y, {
|
|
445
445
|
component: u,
|
|
446
446
|
slots: T,
|
|
447
447
|
slotProps: g
|
|
448
|
-
}), [
|
|
448
|
+
}), [z, _] = B("root", {
|
|
449
449
|
ref: a,
|
|
450
|
-
elementType:
|
|
450
|
+
elementType: Oe,
|
|
451
451
|
getSlotProps: F,
|
|
452
452
|
externalForwardedProps: P,
|
|
453
453
|
ownerState: $,
|
|
@@ -455,7 +455,7 @@ const Le = N("MuiTab", ["root", "disabled", "focusVisible", "selected", "horizon
|
|
|
455
455
|
});
|
|
456
456
|
return /* @__PURE__ */ C(ue.Provider, {
|
|
457
457
|
value: c,
|
|
458
|
-
children: /* @__PURE__ */ C(
|
|
458
|
+
children: /* @__PURE__ */ C(z, p({}, _, {
|
|
459
459
|
children: i
|
|
460
460
|
}))
|
|
461
461
|
});
|
|
@@ -565,7 +565,7 @@ const _e = ["component", "children", "variant", "color", "size", "disableUnderli
|
|
|
565
565
|
variant: n,
|
|
566
566
|
color: s
|
|
567
567
|
} = o, r = {
|
|
568
|
-
root: ["root", t, n && `variant${
|
|
568
|
+
root: ["root", t, n && `variant${O(n)}`, s && `color${O(s)}`, a && `size${O(a)}`]
|
|
569
569
|
};
|
|
570
570
|
return S(r, Ve, {});
|
|
571
571
|
}, Fe = E(pe, {
|
|
@@ -757,7 +757,7 @@ const De = ["children", "value", "component", "color", "variant", "size", "slots
|
|
|
757
757
|
color: s,
|
|
758
758
|
orientation: r
|
|
759
759
|
} = o, i = {
|
|
760
|
-
root: ["root", t && "hidden", a && `size${
|
|
760
|
+
root: ["root", t && "hidden", a && `size${O(a)}`, r, n && `variant${O(n)}`, s && `color${O(s)}`, a && `size${O(a)}`]
|
|
761
761
|
};
|
|
762
762
|
return S(i, Ne, {});
|
|
763
763
|
}, je = E("div", {
|
|
@@ -895,7 +895,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
895
895
|
color: n,
|
|
896
896
|
size: s
|
|
897
897
|
} = o, r = {
|
|
898
|
-
root: ["root", t, a && `variant${
|
|
898
|
+
root: ["root", t, a && `variant${O(a)}`, n && `color${O(n)}`, s && `size${O(s)}`]
|
|
899
899
|
};
|
|
900
900
|
return S(r, Be, {});
|
|
901
901
|
}, Je = E("div", {
|
|
@@ -916,7 +916,7 @@ const Se = ["children", "value", "defaultValue", "orientation", "direction", "co
|
|
|
916
916
|
} = oe({
|
|
917
917
|
theme: t,
|
|
918
918
|
ownerState: o
|
|
919
|
-
}, ["bgcolor", "backgroundColor", "background", "p", "padding"]), f =
|
|
919
|
+
}, ["bgcolor", "backgroundColor", "background", "p", "padding"]), f = G(t, `palette.${r}`) || r || G(t, `palette.${i}`) || i || d || (s == null ? void 0 : s.backgroundColor) || (s == null ? void 0 : s.background) || t.vars.palette.background.surface;
|
|
920
920
|
return p({}, o.size === "sm" && {
|
|
921
921
|
"--Tabs-spacing": "0.75rem"
|
|
922
922
|
}, o.size === "md" && {
|