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,1051 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as L, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { e as j, S as _, u as E, f as V, h as B, j as v, k, g as O, W as z, B as i, T as g, A as Y, D as X, U as q } from "./PrizeCard-gMp7I66d.js";
|
|
3
|
+
import { h as K, g as ie, s as F, u as Z, e as ne, a as ae } from "./useImageVariant-pnFelF9A.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { R as P, A as le } from "./NotFoundSkeleton-B3RNa8KJ.js";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import { A as J } from "./AlertMessage-cjTHrMUK.js";
|
|
8
|
+
import { R as Q } from "./index-2s5UkG1y.js";
|
|
9
|
+
import { d as oe, a as re } from "./default-quiz-bg-vertical-CT7rrg9o.js";
|
|
10
|
+
import { u as ce } from "./useInfoPage-DPkzE5Gn.js";
|
|
11
|
+
import { P as de, a as se, b as ge } from "./PickOneOfX-DYQ4c1o2.js";
|
|
12
|
+
const xe = (e) => {
|
|
13
|
+
var o, n, l, m;
|
|
14
|
+
return {
|
|
15
|
+
// Main headline section with background image
|
|
16
|
+
headlineSection: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "column",
|
|
19
|
+
justifyContent: "space-between",
|
|
20
|
+
gap: "10px",
|
|
21
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
22
|
+
width: e.isMobile ? "100%" : "50%",
|
|
23
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
24
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
25
|
+
backgroundImage: e.finalImage ? `url("${e.finalImage}")` : "none",
|
|
26
|
+
backgroundSize: "cover",
|
|
27
|
+
backgroundPosition: "center",
|
|
28
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
29
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
30
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
31
|
+
overflow: "hidden",
|
|
32
|
+
height: "auto",
|
|
33
|
+
position: "relative",
|
|
34
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
35
|
+
"&::before": e.finalImage ? {
|
|
36
|
+
content: '""',
|
|
37
|
+
position: "absolute",
|
|
38
|
+
width: "100%",
|
|
39
|
+
height: "100%",
|
|
40
|
+
background: e.imageBackgroundGradient,
|
|
41
|
+
borderTopLeftRadius: "5px",
|
|
42
|
+
borderTopRightRadius: "5px"
|
|
43
|
+
} : {}
|
|
44
|
+
},
|
|
45
|
+
// Headline section without image
|
|
46
|
+
headlineSectionNoImage: {
|
|
47
|
+
display: "flex",
|
|
48
|
+
flexDirection: "column",
|
|
49
|
+
justifyContent: "space-between",
|
|
50
|
+
gap: "10px",
|
|
51
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
52
|
+
width: e.isMobile ? "100%" : "50%",
|
|
53
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
54
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
55
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
56
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
57
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
58
|
+
overflow: "hidden",
|
|
59
|
+
height: "auto",
|
|
60
|
+
position: "relative",
|
|
61
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
62
|
+
backgroundColor: ((o = e.brandingColors) == null ? void 0 : o.backgroundColor) || e.textColor + "10"
|
|
63
|
+
},
|
|
64
|
+
// Embed code headline section (for poll-vote and classic-quiz-play)
|
|
65
|
+
embedCodeHeadlineSection: {
|
|
66
|
+
display: "flex",
|
|
67
|
+
flexDirection: "column",
|
|
68
|
+
justifyContent: "space-between",
|
|
69
|
+
gap: "10px",
|
|
70
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
71
|
+
width: e.isMobile ? "100%" : "50%",
|
|
72
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
73
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
74
|
+
borderTopLeftRadius: e.borderRadius.md,
|
|
75
|
+
borderTopRightRadius: e.isMobile ? e.borderRadius.md : 0,
|
|
76
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.borderRadius.md,
|
|
77
|
+
overflow: "hidden",
|
|
78
|
+
height: "auto",
|
|
79
|
+
position: "relative",
|
|
80
|
+
minHeight: e.isMobile ? "210px" : "430px"
|
|
81
|
+
},
|
|
82
|
+
// AspectRatio container for embed code
|
|
83
|
+
aspectRatioContainer: {
|
|
84
|
+
borderRadius: 0,
|
|
85
|
+
width: "100%",
|
|
86
|
+
height: "100%"
|
|
87
|
+
},
|
|
88
|
+
// Headline content wrapper
|
|
89
|
+
headlineContent: {
|
|
90
|
+
zIndex: 1,
|
|
91
|
+
height: "100%",
|
|
92
|
+
p: e.spacingScale.xl,
|
|
93
|
+
gap: e.spacingScale.xl,
|
|
94
|
+
display: "flex",
|
|
95
|
+
flexDirection: "column",
|
|
96
|
+
justifyContent: "space-between"
|
|
97
|
+
},
|
|
98
|
+
// Embed code headline content (shown in question area when embed code is present)
|
|
99
|
+
embedCodeHeadlineContent: {
|
|
100
|
+
px: e.spacingScale.lg,
|
|
101
|
+
pt: e.spacingScale.lg,
|
|
102
|
+
display: "flex",
|
|
103
|
+
flexDirection: "column",
|
|
104
|
+
gap: e.spacingScale.md
|
|
105
|
+
},
|
|
106
|
+
// Headline typography (with image background)
|
|
107
|
+
headlineText: {
|
|
108
|
+
fontWeight: 500,
|
|
109
|
+
lineHeight: "166%",
|
|
110
|
+
letterSpacing: "1px",
|
|
111
|
+
fontSize: "0.75em",
|
|
112
|
+
color: ((n = e.brandingColors) == null ? void 0 : n.secondaryColor) || e.darkTextColor,
|
|
113
|
+
opacity: "70%",
|
|
114
|
+
textTransform: "uppercase",
|
|
115
|
+
fontFamily: e.fontFamilySecondary,
|
|
116
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
117
|
+
},
|
|
118
|
+
// Headline typography (without image background)
|
|
119
|
+
headlineTextNoImage: {
|
|
120
|
+
fontWeight: 500,
|
|
121
|
+
lineHeight: "166%",
|
|
122
|
+
letterSpacing: "1px",
|
|
123
|
+
fontSize: "0.75em",
|
|
124
|
+
color: e.secondaryColor,
|
|
125
|
+
opacity: "70%",
|
|
126
|
+
textTransform: "uppercase",
|
|
127
|
+
fontFamily: e.fontFamilySecondary,
|
|
128
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
129
|
+
},
|
|
130
|
+
// Content container
|
|
131
|
+
contentContainer: {
|
|
132
|
+
display: "flex",
|
|
133
|
+
flexDirection: "column",
|
|
134
|
+
gap: e.spacingScale["3xs"]
|
|
135
|
+
},
|
|
136
|
+
// Title typography (with image background)
|
|
137
|
+
titleText: {
|
|
138
|
+
fontWeight: 700,
|
|
139
|
+
lineHeight: "133%",
|
|
140
|
+
fontSize: "1.5em",
|
|
141
|
+
letterSpacing: "0.15px",
|
|
142
|
+
color: ((l = e.brandingColors) == null ? void 0 : l.contentColor) || e.darkTextColor,
|
|
143
|
+
fontFamily: e.fontFamilyPrimary,
|
|
144
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
145
|
+
},
|
|
146
|
+
// Title typography (without image background)
|
|
147
|
+
titleTextNoImage: {
|
|
148
|
+
fontWeight: 700,
|
|
149
|
+
lineHeight: "133%",
|
|
150
|
+
fontSize: "1.5em",
|
|
151
|
+
letterSpacing: "0.15px",
|
|
152
|
+
color: e.textColor,
|
|
153
|
+
fontFamily: e.fontFamilyPrimary,
|
|
154
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
155
|
+
},
|
|
156
|
+
// Description typography (with image background)
|
|
157
|
+
descriptionText: {
|
|
158
|
+
fontWeight: 400,
|
|
159
|
+
lineHeight: "140%",
|
|
160
|
+
fontSize: "1.25em",
|
|
161
|
+
letterSpacing: "0.15px",
|
|
162
|
+
color: ((m = e.brandingColors) == null ? void 0 : m.secondaryColor) || e.darkTextColor,
|
|
163
|
+
opacity: "70%",
|
|
164
|
+
fontFamily: e.fontFamilyPrimary,
|
|
165
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
166
|
+
},
|
|
167
|
+
// Description typography (without image background)
|
|
168
|
+
descriptionTextNoImage: {
|
|
169
|
+
fontWeight: 400,
|
|
170
|
+
lineHeight: "140%",
|
|
171
|
+
fontSize: "1.25em",
|
|
172
|
+
letterSpacing: "0.15px",
|
|
173
|
+
color: e.secondaryColor,
|
|
174
|
+
opacity: "70%",
|
|
175
|
+
fontFamily: e.fontFamilyPrimary,
|
|
176
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
177
|
+
},
|
|
178
|
+
// Question area / content section
|
|
179
|
+
questionArea: {
|
|
180
|
+
flex: e.isMobile ? "1" : "0 0 50%",
|
|
181
|
+
width: e.isMobile ? "100%" : "50%",
|
|
182
|
+
minWidth: e.isMobile ? "100%" : "50%",
|
|
183
|
+
maxWidth: e.isMobile ? "100%" : "50%",
|
|
184
|
+
display: "flex",
|
|
185
|
+
flexDirection: "column",
|
|
186
|
+
justifyContent: "center"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}, Fe = ({
|
|
190
|
+
entity: e,
|
|
191
|
+
headline: o,
|
|
192
|
+
finalImage: n,
|
|
193
|
+
children: l,
|
|
194
|
+
embedCodeContainerRef: m,
|
|
195
|
+
hasEmbedCode: C = !1,
|
|
196
|
+
brandingLogo: h,
|
|
197
|
+
renderPresentedBy: x,
|
|
198
|
+
rulesDisplay: S
|
|
199
|
+
}) => {
|
|
200
|
+
var $, U;
|
|
201
|
+
const w = j(), T = _(), u = e.type === "poll" || e.type === "match-quiz" ? T : w, R = E(), y = V(), A = B().primary, I = B().secondary, b = v(), r = (($ = e.branding) == null ? void 0 : $.colors) || null, f = ((U = e.branding) == null ? void 0 : U.urls) || null, M = (r == null ? void 0 : r.contentColor) || k().textColor, d = (r == null ? void 0 : r.secondaryColor) || k().textColor, D = (r == null ? void 0 : r.backgroundColor) || k().surfaceVariant, c = "60%", W = R.colorSchemes.dark.textColor, p = O(
|
|
202
|
+
z.SPLIT
|
|
203
|
+
), s = xe({
|
|
204
|
+
finalImage: n,
|
|
205
|
+
spacingScale: y,
|
|
206
|
+
borderRadius: b,
|
|
207
|
+
fontFamilyPrimary: A,
|
|
208
|
+
fontFamilySecondary: I,
|
|
209
|
+
secondaryColor: d,
|
|
210
|
+
opacity: c,
|
|
211
|
+
bgcolor: K(D || ""),
|
|
212
|
+
textColor: M,
|
|
213
|
+
brandingColors: r,
|
|
214
|
+
darkTextColor: W,
|
|
215
|
+
imageBackgroundGradient: p,
|
|
216
|
+
isMobile: u
|
|
217
|
+
}), H = ie(
|
|
218
|
+
f == null ? void 0 : f.primaryUrl,
|
|
219
|
+
f == null ? void 0 : f.secondaryUrl,
|
|
220
|
+
"image"
|
|
221
|
+
), ee = () => {
|
|
222
|
+
H && window.open(H, "_blank", "noopener,noreferrer");
|
|
223
|
+
}, te = (N, G) => H ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
224
|
+
i,
|
|
225
|
+
{
|
|
226
|
+
component: "a",
|
|
227
|
+
href: H,
|
|
228
|
+
target: "_blank",
|
|
229
|
+
rel: "noopener noreferrer",
|
|
230
|
+
sx: {
|
|
231
|
+
...G,
|
|
232
|
+
cursor: "pointer",
|
|
233
|
+
textDecoration: "none"
|
|
234
|
+
},
|
|
235
|
+
children: N
|
|
236
|
+
}
|
|
237
|
+
) : /* @__PURE__ */ t(
|
|
238
|
+
i,
|
|
239
|
+
{
|
|
240
|
+
sx: {
|
|
241
|
+
...G,
|
|
242
|
+
cursor: "pointer"
|
|
243
|
+
},
|
|
244
|
+
onClick: ee,
|
|
245
|
+
children: N
|
|
246
|
+
}
|
|
247
|
+
) : /* @__PURE__ */ t(i, { sx: G, children: N });
|
|
248
|
+
return /* @__PURE__ */ a(L, { children: [
|
|
249
|
+
C && m ? /* @__PURE__ */ t(i, { sx: s.embedCodeHeadlineSection, children: /* @__PURE__ */ t(
|
|
250
|
+
le,
|
|
251
|
+
{
|
|
252
|
+
ratio: "16/9",
|
|
253
|
+
sx: s.aspectRatioContainer,
|
|
254
|
+
slotProps: { content: { sx: { height: "100%" } } },
|
|
255
|
+
children: /* @__PURE__ */ t(i, { ref: m })
|
|
256
|
+
}
|
|
257
|
+
) }) : n ? te(
|
|
258
|
+
/* @__PURE__ */ a(i, { sx: s.headlineContent, children: [
|
|
259
|
+
/* @__PURE__ */ a(i, { children: [
|
|
260
|
+
/* @__PURE__ */ a(
|
|
261
|
+
i,
|
|
262
|
+
{
|
|
263
|
+
sx: {
|
|
264
|
+
display: "flex",
|
|
265
|
+
alignItems: "center",
|
|
266
|
+
justifyContent: u ? "center" : "flex-start",
|
|
267
|
+
gap: y["3xs"]
|
|
268
|
+
},
|
|
269
|
+
children: [
|
|
270
|
+
/* @__PURE__ */ t(g, { sx: s.headlineText, children: o }),
|
|
271
|
+
/* @__PURE__ */ t(P, { rulesDisplay: S, rules: e.rules || "" })
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ a(i, { sx: s.contentContainer, children: [
|
|
276
|
+
/* @__PURE__ */ t(g, { sx: s.titleText, children: e.title }),
|
|
277
|
+
/* @__PURE__ */ t(g, { sx: s.descriptionText, children: F(e.description) })
|
|
278
|
+
] })
|
|
279
|
+
] }),
|
|
280
|
+
h && !u && x && /* @__PURE__ */ t(i, { children: x((r == null ? void 0 : r.contentColor) || W) })
|
|
281
|
+
] }),
|
|
282
|
+
s.headlineSection
|
|
283
|
+
) : /* @__PURE__ */ t(i, { sx: s.headlineSectionNoImage, children: /* @__PURE__ */ a(i, { sx: s.headlineContent, children: [
|
|
284
|
+
/* @__PURE__ */ a(i, { children: [
|
|
285
|
+
/* @__PURE__ */ a(
|
|
286
|
+
i,
|
|
287
|
+
{
|
|
288
|
+
sx: {
|
|
289
|
+
display: "flex",
|
|
290
|
+
alignItems: "center",
|
|
291
|
+
justifyContent: u ? "center" : "flex-start",
|
|
292
|
+
gap: y["3xs"]
|
|
293
|
+
},
|
|
294
|
+
children: [
|
|
295
|
+
/* @__PURE__ */ t(g, { sx: s.headlineTextNoImage, children: o }),
|
|
296
|
+
/* @__PURE__ */ t(P, { rulesDisplay: S, rules: e.rules || "" })
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
),
|
|
300
|
+
/* @__PURE__ */ a(i, { sx: s.contentContainer, children: [
|
|
301
|
+
/* @__PURE__ */ t(g, { sx: s.titleTextNoImage, children: e.title }),
|
|
302
|
+
/* @__PURE__ */ t(g, { sx: s.descriptionTextNoImage, children: F(e.description) })
|
|
303
|
+
] })
|
|
304
|
+
] }),
|
|
305
|
+
h && !u && x && /* @__PURE__ */ t(i, { children: x(M) })
|
|
306
|
+
] }) }),
|
|
307
|
+
/* @__PURE__ */ a(i, { sx: s.questionArea, children: [
|
|
308
|
+
C && m && /* @__PURE__ */ t(i, { sx: s.embedCodeHeadlineContent, children: /* @__PURE__ */ a(i, { children: [
|
|
309
|
+
/* @__PURE__ */ a(
|
|
310
|
+
i,
|
|
311
|
+
{
|
|
312
|
+
sx: {
|
|
313
|
+
display: "flex",
|
|
314
|
+
alignItems: "center",
|
|
315
|
+
justifyContent: "center",
|
|
316
|
+
gap: y["3xs"]
|
|
317
|
+
},
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ t(
|
|
320
|
+
g,
|
|
321
|
+
{
|
|
322
|
+
sx: {
|
|
323
|
+
...s.headlineTextNoImage,
|
|
324
|
+
textAlign: "center"
|
|
325
|
+
},
|
|
326
|
+
children: o
|
|
327
|
+
}
|
|
328
|
+
),
|
|
329
|
+
/* @__PURE__ */ t(P, { rulesDisplay: S, rules: e.rules || "" })
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
),
|
|
333
|
+
/* @__PURE__ */ a(i, { sx: s.contentContainer, children: [
|
|
334
|
+
/* @__PURE__ */ t(
|
|
335
|
+
g,
|
|
336
|
+
{
|
|
337
|
+
sx: {
|
|
338
|
+
...s.titleTextNoImage,
|
|
339
|
+
textAlign: "center"
|
|
340
|
+
},
|
|
341
|
+
children: e.title
|
|
342
|
+
}
|
|
343
|
+
),
|
|
344
|
+
/* @__PURE__ */ t(
|
|
345
|
+
g,
|
|
346
|
+
{
|
|
347
|
+
sx: {
|
|
348
|
+
...s.descriptionTextNoImage,
|
|
349
|
+
textAlign: "center"
|
|
350
|
+
},
|
|
351
|
+
children: F(e.description)
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
] })
|
|
355
|
+
] }) }),
|
|
356
|
+
l
|
|
357
|
+
] })
|
|
358
|
+
] });
|
|
359
|
+
}, me = (e) => {
|
|
360
|
+
var o, n, l;
|
|
361
|
+
return {
|
|
362
|
+
// Wrapper container for the entire split layout
|
|
363
|
+
wrapper: {
|
|
364
|
+
display: "flex",
|
|
365
|
+
flexDirection: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "column" : "row",
|
|
366
|
+
width: "100%"
|
|
367
|
+
},
|
|
368
|
+
// Desktop image section with background image and overlay
|
|
369
|
+
desktopImageSection: {
|
|
370
|
+
display: e.isLarge && !e.alwaysShowImage ? "none" : "flex",
|
|
371
|
+
flexDirection: "column",
|
|
372
|
+
justifyContent: "space-between",
|
|
373
|
+
gap: "10px",
|
|
374
|
+
flex: e.isMobile || e.isLarge && e.alwaysShowImage ? "1" : "0 0 50%",
|
|
375
|
+
width: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
376
|
+
minWidth: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
377
|
+
maxWidth: e.isMobile || e.isLarge && e.alwaysShowImage ? "100%" : "50%",
|
|
378
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
379
|
+
backgroundSize: "cover",
|
|
380
|
+
backgroundPosition: "center",
|
|
381
|
+
borderTopLeftRadius: e.isTabulated ? 0 : e.borderRadius.md,
|
|
382
|
+
borderTopRightRadius: e.isMobile || e.isLarge && e.alwaysShowImage ? e.isTabulated ? 0 : e.borderRadius.md : 0,
|
|
383
|
+
borderBottomLeftRadius: e.isMobile || e.isLarge && e.alwaysShowImage ? 0 : e.borderRadius.md,
|
|
384
|
+
overflow: "hidden",
|
|
385
|
+
height: "auto",
|
|
386
|
+
position: "relative",
|
|
387
|
+
minHeight: e.isMobile || e.isLarge && e.alwaysShowImage ? "210px" : "430px",
|
|
388
|
+
maxHeight: e.isMobile || e.isLarge && e.alwaysShowImage ? "auto" : "100%",
|
|
389
|
+
"&::before": {
|
|
390
|
+
content: '""',
|
|
391
|
+
position: "absolute",
|
|
392
|
+
width: "100%",
|
|
393
|
+
height: "100%",
|
|
394
|
+
background: e.imageBackgroundGradient,
|
|
395
|
+
borderTopLeftRadius: "5px",
|
|
396
|
+
borderTopRightRadius: "5px"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
// Image section content wrapper
|
|
400
|
+
imageSectionContent: {
|
|
401
|
+
zIndex: 1,
|
|
402
|
+
height: "100%",
|
|
403
|
+
p: e.spacingScale.xl,
|
|
404
|
+
display: "flex",
|
|
405
|
+
flexDirection: "column",
|
|
406
|
+
justifyContent: "space-between",
|
|
407
|
+
gap: e.spacingScale.xl
|
|
408
|
+
},
|
|
409
|
+
// Headline text
|
|
410
|
+
headlineText: {
|
|
411
|
+
fontWeight: 500,
|
|
412
|
+
lineHeight: "166%",
|
|
413
|
+
letterSpacing: "1px",
|
|
414
|
+
fontSize: "0.75em",
|
|
415
|
+
color: ((o = e.brandingColors) == null ? void 0 : o.secondaryColor) || e.darkTextColor,
|
|
416
|
+
opacity: "70%",
|
|
417
|
+
textTransform: "uppercase",
|
|
418
|
+
fontFamily: e.fontFamilySecondary,
|
|
419
|
+
textAlign: e.isLarge ? "center" : "left"
|
|
420
|
+
},
|
|
421
|
+
// Content container (title + description)
|
|
422
|
+
contentContainer: {
|
|
423
|
+
display: "flex",
|
|
424
|
+
flexDirection: "column",
|
|
425
|
+
gap: e.spacingScale["3xs"]
|
|
426
|
+
},
|
|
427
|
+
// Title text
|
|
428
|
+
titleText: {
|
|
429
|
+
fontWeight: 700,
|
|
430
|
+
lineHeight: "133%",
|
|
431
|
+
fontSize: "1.5em",
|
|
432
|
+
letterSpacing: "0.15px",
|
|
433
|
+
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
434
|
+
fontFamily: e.fontFamilyPrimary,
|
|
435
|
+
textAlign: e.isLarge ? "center" : "left"
|
|
436
|
+
},
|
|
437
|
+
// Description text
|
|
438
|
+
descriptionText: {
|
|
439
|
+
fontWeight: 500,
|
|
440
|
+
lineHeight: "140%",
|
|
441
|
+
fontSize: "1.25em",
|
|
442
|
+
letterSpacing: "0.15px",
|
|
443
|
+
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
444
|
+
opacity: "70%",
|
|
445
|
+
fontFamily: e.fontFamilyPrimary,
|
|
446
|
+
textAlign: e.isLarge ? "center" : "left"
|
|
447
|
+
},
|
|
448
|
+
// Presented by desktop container
|
|
449
|
+
presentedByDesktop: {
|
|
450
|
+
display: "block"
|
|
451
|
+
},
|
|
452
|
+
// Question/Content area (right side on desktop, below image on mobile)
|
|
453
|
+
questionArea: {
|
|
454
|
+
flex: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "1" : "0 0 50%",
|
|
455
|
+
width: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
456
|
+
minWidth: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
457
|
+
maxWidth: e.isMobile || e.isLarge && !e.alwaysShowImage || e.alwaysShowImage && e.isLarge ? "100%" : "50%",
|
|
458
|
+
display: "flex",
|
|
459
|
+
flexDirection: "column"
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
}, Pe = ({
|
|
463
|
+
entity: e,
|
|
464
|
+
headline: o,
|
|
465
|
+
finalImage: n,
|
|
466
|
+
brandingContent: l,
|
|
467
|
+
children: m,
|
|
468
|
+
isTabulated: C = !1,
|
|
469
|
+
alwaysShowImage: h = !1,
|
|
470
|
+
rulesDisplay: x
|
|
471
|
+
}) => {
|
|
472
|
+
var f;
|
|
473
|
+
const S = j(), w = _(), T = E(), u = V(), R = B().primary, y = B().secondary, A = v(), I = O(
|
|
474
|
+
z.SPLIT
|
|
475
|
+
), b = ((f = e.branding) == null ? void 0 : f.colors) || null, r = me({
|
|
476
|
+
finalImage: n,
|
|
477
|
+
spacingScale: u,
|
|
478
|
+
borderRadius: A,
|
|
479
|
+
fontFamilyPrimary: R,
|
|
480
|
+
fontFamilySecondary: y,
|
|
481
|
+
brandingColors: b,
|
|
482
|
+
darkTextColor: T.colorSchemes.dark.textColor,
|
|
483
|
+
imageBackgroundGradient: I,
|
|
484
|
+
isMobile: S,
|
|
485
|
+
isLarge: w,
|
|
486
|
+
isTabulated: C,
|
|
487
|
+
alwaysShowImage: h
|
|
488
|
+
});
|
|
489
|
+
return /* @__PURE__ */ a(i, { sx: r.wrapper, children: [
|
|
490
|
+
/* @__PURE__ */ t(i, { sx: r.desktopImageSection, children: /* @__PURE__ */ a(i, { sx: r.imageSectionContent, children: [
|
|
491
|
+
/* @__PURE__ */ a(i, { children: [
|
|
492
|
+
/* @__PURE__ */ a(
|
|
493
|
+
i,
|
|
494
|
+
{
|
|
495
|
+
sx: {
|
|
496
|
+
display: "flex",
|
|
497
|
+
alignItems: "center",
|
|
498
|
+
gap: u["3xs"]
|
|
499
|
+
},
|
|
500
|
+
children: [
|
|
501
|
+
/* @__PURE__ */ t(g, { level: "body-sm", sx: r.headlineText, children: o }),
|
|
502
|
+
/* @__PURE__ */ t(P, { rulesDisplay: x, rules: e.rules || "" })
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
),
|
|
506
|
+
/* @__PURE__ */ a(i, { sx: r.contentContainer, children: [
|
|
507
|
+
/* @__PURE__ */ t(g, { level: "body-lg", sx: r.titleText, children: e.title }),
|
|
508
|
+
/* @__PURE__ */ t(g, { level: "body-md", sx: r.descriptionText, children: F(e.description) })
|
|
509
|
+
] })
|
|
510
|
+
] }),
|
|
511
|
+
/* @__PURE__ */ t(i, { sx: r.presentedByDesktop, children: l })
|
|
512
|
+
] }) }),
|
|
513
|
+
/* @__PURE__ */ t(i, { sx: r.questionArea, children: m })
|
|
514
|
+
] });
|
|
515
|
+
}, fe = (e) => {
|
|
516
|
+
var o, n, l;
|
|
517
|
+
return {
|
|
518
|
+
// Main headline section with background image
|
|
519
|
+
headlineSection: {
|
|
520
|
+
display: "flex",
|
|
521
|
+
flexDirection: "column",
|
|
522
|
+
justifyContent: "space-between",
|
|
523
|
+
gap: "10px",
|
|
524
|
+
flex: "0.5",
|
|
525
|
+
backgroundImage: `url("${e.finalImage}")`,
|
|
526
|
+
backgroundSize: "cover",
|
|
527
|
+
backgroundPosition: "center",
|
|
528
|
+
borderTopLeftRadius: e.mdBorderRadius,
|
|
529
|
+
borderTopRightRadius: e.isMobile ? e.mdBorderRadius : 0,
|
|
530
|
+
borderBottomLeftRadius: e.isMobile ? 0 : e.mdBorderRadius,
|
|
531
|
+
overflow: "hidden",
|
|
532
|
+
height: "auto",
|
|
533
|
+
position: "relative",
|
|
534
|
+
minHeight: e.isMobile ? "210px" : "430px",
|
|
535
|
+
"&::before": {
|
|
536
|
+
content: '""',
|
|
537
|
+
position: "absolute",
|
|
538
|
+
width: "100%",
|
|
539
|
+
height: "100%",
|
|
540
|
+
background: e.imageBackgroundGradient,
|
|
541
|
+
borderTopLeftRadius: "5px",
|
|
542
|
+
borderTopRightRadius: "5px"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
// Headline content wrapper
|
|
546
|
+
headlineContent: {
|
|
547
|
+
zIndex: 1,
|
|
548
|
+
height: "100%",
|
|
549
|
+
p: e.spacingScale.xl,
|
|
550
|
+
gap: e.spacingScale.xl,
|
|
551
|
+
display: "flex",
|
|
552
|
+
flexDirection: "column",
|
|
553
|
+
justifyContent: "space-between"
|
|
554
|
+
},
|
|
555
|
+
// Headline text
|
|
556
|
+
headlineText: {
|
|
557
|
+
fontWeight: 500,
|
|
558
|
+
lineHeight: "166%",
|
|
559
|
+
letterSpacing: "1px",
|
|
560
|
+
fontSize: "0.75em",
|
|
561
|
+
color: ((o = e.brandingColors) == null ? void 0 : o.secondaryColor) || e.darkTextColor,
|
|
562
|
+
opacity: "70%",
|
|
563
|
+
textTransform: "uppercase",
|
|
564
|
+
fontFamily: e.fontFamilySecondary,
|
|
565
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
566
|
+
},
|
|
567
|
+
// Content container
|
|
568
|
+
contentContainer: {
|
|
569
|
+
display: "flex",
|
|
570
|
+
flexDirection: "column",
|
|
571
|
+
gap: e.spacingScale["3xs"]
|
|
572
|
+
},
|
|
573
|
+
// Title text
|
|
574
|
+
titleText: {
|
|
575
|
+
fontWeight: 700,
|
|
576
|
+
lineHeight: "133%",
|
|
577
|
+
fontSize: "1.5em",
|
|
578
|
+
letterSpacing: "0.15px",
|
|
579
|
+
color: ((n = e.brandingColors) == null ? void 0 : n.contentColor) || e.darkTextColor,
|
|
580
|
+
fontFamily: e.fontFamilyPrimary,
|
|
581
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
582
|
+
},
|
|
583
|
+
// Description text
|
|
584
|
+
descriptionText: {
|
|
585
|
+
fontWeight: 400,
|
|
586
|
+
lineHeight: "140%",
|
|
587
|
+
fontSize: "1.25em",
|
|
588
|
+
letterSpacing: "0.15px",
|
|
589
|
+
color: ((l = e.brandingColors) == null ? void 0 : l.secondaryColor) || e.darkTextColor,
|
|
590
|
+
opacity: "70%",
|
|
591
|
+
fontFamily: e.fontFamilyPrimary,
|
|
592
|
+
textAlign: e.isMobile ? "center" : "left"
|
|
593
|
+
},
|
|
594
|
+
// Presented by desktop container
|
|
595
|
+
presentedByDesktop: {
|
|
596
|
+
display: e.isMobile ? "none" : "block"
|
|
597
|
+
},
|
|
598
|
+
// Question area (error section)
|
|
599
|
+
questionArea: {
|
|
600
|
+
flex: "0.5",
|
|
601
|
+
display: "flex",
|
|
602
|
+
flexDirection: "column",
|
|
603
|
+
justifyContent: "center",
|
|
604
|
+
gap: e.spacingScale.md,
|
|
605
|
+
p: e.spacingScale.lg
|
|
606
|
+
},
|
|
607
|
+
// Presented by mobile container
|
|
608
|
+
presentedByMobile: {
|
|
609
|
+
display: e.isMobile ? "block" : "none"
|
|
610
|
+
},
|
|
611
|
+
// CTA container
|
|
612
|
+
ctaContainer: {
|
|
613
|
+
display: "flex",
|
|
614
|
+
flexDirection: "column",
|
|
615
|
+
alignItems: "center"
|
|
616
|
+
},
|
|
617
|
+
// CTA content wrapper
|
|
618
|
+
ctaContentWrapper: {
|
|
619
|
+
display: "flex",
|
|
620
|
+
flexDirection: "column",
|
|
621
|
+
justifyContent: "center",
|
|
622
|
+
alignItems: "center",
|
|
623
|
+
gap: e.spacingScale.lg
|
|
624
|
+
},
|
|
625
|
+
// Buttons container
|
|
626
|
+
buttonsContainer: {
|
|
627
|
+
display: "flex",
|
|
628
|
+
flexDirection: "column",
|
|
629
|
+
gap: "16px"
|
|
630
|
+
},
|
|
631
|
+
// Try again button
|
|
632
|
+
tryAgainButton: {
|
|
633
|
+
display: "flex",
|
|
634
|
+
py: e.spacingScale.xs,
|
|
635
|
+
px: "16px",
|
|
636
|
+
flexDirection: "column",
|
|
637
|
+
justifyContent: "center",
|
|
638
|
+
alignItems: "center",
|
|
639
|
+
gap: "8px",
|
|
640
|
+
borderRadius: e.borderRadius.xl,
|
|
641
|
+
color: e.textPrimary,
|
|
642
|
+
bgcolor: e.surfaceColor,
|
|
643
|
+
"&:hover": {
|
|
644
|
+
bgcolor: e.onSurfaceColor
|
|
645
|
+
},
|
|
646
|
+
fontSize: "0.9375em"
|
|
647
|
+
},
|
|
648
|
+
// Try again button content
|
|
649
|
+
tryAgainButtonContent: {
|
|
650
|
+
display: "flex",
|
|
651
|
+
justifyContent: "center",
|
|
652
|
+
alignItems: "center",
|
|
653
|
+
gap: "8px",
|
|
654
|
+
alignSelf: "stretch"
|
|
655
|
+
},
|
|
656
|
+
// Try again icon
|
|
657
|
+
tryAgainIcon: {
|
|
658
|
+
display: "flex",
|
|
659
|
+
width: "16px",
|
|
660
|
+
height: "16px",
|
|
661
|
+
justifyContent: "flex-end",
|
|
662
|
+
alignItems: "center",
|
|
663
|
+
color: e.textPrimary
|
|
664
|
+
},
|
|
665
|
+
// Try again text
|
|
666
|
+
tryAgainText: {
|
|
667
|
+
color: e.textPrimary,
|
|
668
|
+
textAlign: "center",
|
|
669
|
+
fontFamily: e.fontFamilyPrimary,
|
|
670
|
+
fontSize: "0.8125em",
|
|
671
|
+
fontStyle: "normal",
|
|
672
|
+
fontWeight: 500,
|
|
673
|
+
lineHeight: "22px",
|
|
674
|
+
letterSpacing: "0.46px",
|
|
675
|
+
textTransform: "uppercase"
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
}, Le = (e) => {
|
|
679
|
+
var c;
|
|
680
|
+
const o = E(), n = j(), l = ((c = e.entity.branding) == null ? void 0 : c.colors) || null, m = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : n ? oe : re, C = Z(
|
|
681
|
+
{
|
|
682
|
+
images: e.entity.images || null,
|
|
683
|
+
imagePlaceholder: m
|
|
684
|
+
},
|
|
685
|
+
z.SPLIT
|
|
686
|
+
), { t: h } = Y(), x = k().textPrimary, S = k().surface, w = k().onSurface, T = (l == null ? void 0 : l.backgroundColor) || k().surfaceVariant, u = v(), R = B().secondary, y = B().primary, A = v().md, I = k().textColor, b = V(), r = O(
|
|
687
|
+
z.SPLIT
|
|
688
|
+
), f = e.customAlertTitle ?? (e.isApiError ? h("common.error.title") : h("common.authentication.accessRequired")), M = e.customAlertMessage ?? (e.isApiError ? e.apiErrorMessage || h("common.error.message") : h("common.authentication.invalidOrMissingAuth")), d = fe({
|
|
689
|
+
finalImage: C,
|
|
690
|
+
spacingScale: b,
|
|
691
|
+
borderRadius: v(),
|
|
692
|
+
fontFamilyPrimary: y,
|
|
693
|
+
fontFamilySecondary: R,
|
|
694
|
+
mdBorderRadius: A,
|
|
695
|
+
textColor: I,
|
|
696
|
+
brandingColors: l,
|
|
697
|
+
darkTextColor: o.colorSchemes.dark.textColor,
|
|
698
|
+
imageBackgroundGradient: r,
|
|
699
|
+
textPrimary: x,
|
|
700
|
+
surfaceColor: S,
|
|
701
|
+
onSurfaceColor: w,
|
|
702
|
+
isMobile: n
|
|
703
|
+
}), D = () => !e.isApiError || !e.toggleTryAgain ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(
|
|
704
|
+
i,
|
|
705
|
+
{
|
|
706
|
+
sx: {
|
|
707
|
+
p: b.lg,
|
|
708
|
+
gap: b.lg,
|
|
709
|
+
display: "flex",
|
|
710
|
+
flexDirection: "column",
|
|
711
|
+
backdropFilter: "blur(4px)",
|
|
712
|
+
bgcolor: `rgba(${T ? K(T || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
713
|
+
borderRadius: u.sm
|
|
714
|
+
},
|
|
715
|
+
children: /* @__PURE__ */ t(i, { sx: d.ctaContainer, children: /* @__PURE__ */ t(i, { sx: d.ctaContentWrapper, children: /* @__PURE__ */ t(i, { sx: d.buttonsContainer, children: /* @__PURE__ */ t(X, { sx: d.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ a(i, { sx: d.tryAgainButtonContent, children: [
|
|
716
|
+
/* @__PURE__ */ t(Q, { sx: d.tryAgainIcon }),
|
|
717
|
+
/* @__PURE__ */ t(g, { sx: d.tryAgainText, children: e.tryAgainButtonText })
|
|
718
|
+
] }) }) }) }) })
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
return /* @__PURE__ */ a(L, { children: [
|
|
722
|
+
/* @__PURE__ */ t(i, { sx: d.headlineSection, children: /* @__PURE__ */ a(i, { sx: d.headlineContent, children: [
|
|
723
|
+
/* @__PURE__ */ a(i, { children: [
|
|
724
|
+
/* @__PURE__ */ a(
|
|
725
|
+
i,
|
|
726
|
+
{
|
|
727
|
+
sx: {
|
|
728
|
+
display: "flex",
|
|
729
|
+
alignItems: "center",
|
|
730
|
+
justifyContent: n ? "center" : "left",
|
|
731
|
+
gap: b["3xs"]
|
|
732
|
+
},
|
|
733
|
+
children: [
|
|
734
|
+
/* @__PURE__ */ t(g, { level: "body-sm", sx: d.headlineText, children: e.headline }),
|
|
735
|
+
/* @__PURE__ */ t(
|
|
736
|
+
P,
|
|
737
|
+
{
|
|
738
|
+
rulesDisplay: e.rulesDisplay,
|
|
739
|
+
rules: e.entity.rules || ""
|
|
740
|
+
}
|
|
741
|
+
)
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
),
|
|
745
|
+
/* @__PURE__ */ a(i, { sx: d.contentContainer, children: [
|
|
746
|
+
/* @__PURE__ */ t(g, { level: "body-lg", sx: d.titleText, children: e.entity.title }),
|
|
747
|
+
/* @__PURE__ */ t(g, { level: "body-md", sx: d.descriptionText, children: F(e.entity.description) })
|
|
748
|
+
] })
|
|
749
|
+
] }),
|
|
750
|
+
/* @__PURE__ */ t(i, { sx: d.presentedByDesktop, children: e.renderPresentedBy(
|
|
751
|
+
(l == null ? void 0 : l.contentColor) || o.colorSchemes.dark.textColor
|
|
752
|
+
) })
|
|
753
|
+
] }) }),
|
|
754
|
+
/* @__PURE__ */ a(i, { sx: d.questionArea, children: [
|
|
755
|
+
/* @__PURE__ */ t(
|
|
756
|
+
J,
|
|
757
|
+
{
|
|
758
|
+
variant: e.alertVariant || "error",
|
|
759
|
+
title: f,
|
|
760
|
+
message: M
|
|
761
|
+
}
|
|
762
|
+
),
|
|
763
|
+
D(),
|
|
764
|
+
/* @__PURE__ */ t(i, { sx: d.presentedByMobile, children: e.renderPresentedBy((l == null ? void 0 : l.contentColor) || I) })
|
|
765
|
+
] })
|
|
766
|
+
] });
|
|
767
|
+
}, ue = (e) => {
|
|
768
|
+
var o;
|
|
769
|
+
return {
|
|
770
|
+
// Main container with background overlay
|
|
771
|
+
mainContainer: {
|
|
772
|
+
display: "flex",
|
|
773
|
+
flexDirection: "column",
|
|
774
|
+
gap: "40px",
|
|
775
|
+
p: e.spacingScale.xl,
|
|
776
|
+
boxShadow: "md",
|
|
777
|
+
border: (o = e.brandingColors) != null && o.borderColor ? `${e.borderSize} solid ${e.brandingColors.borderColor}` : "none",
|
|
778
|
+
overflow: "hidden",
|
|
779
|
+
backgroundImage: e.backgroundImage,
|
|
780
|
+
backgroundSize: "cover",
|
|
781
|
+
backgroundPosition: "center",
|
|
782
|
+
position: "relative",
|
|
783
|
+
borderRadius: e.borderRadius.md,
|
|
784
|
+
"&::before": {
|
|
785
|
+
content: '""',
|
|
786
|
+
position: "absolute",
|
|
787
|
+
background: e.imageBackgroundGradient,
|
|
788
|
+
top: 0,
|
|
789
|
+
left: 0,
|
|
790
|
+
right: 0,
|
|
791
|
+
bottom: 0,
|
|
792
|
+
borderRadius: "inherit",
|
|
793
|
+
zIndex: 0
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
// Headline section wrapper
|
|
797
|
+
headlineSection: {
|
|
798
|
+
display: "flex",
|
|
799
|
+
justifyContent: "space-between",
|
|
800
|
+
flex: "1 0 0",
|
|
801
|
+
alignSelf: "stretch"
|
|
802
|
+
},
|
|
803
|
+
// Headline content container
|
|
804
|
+
headlineContent: {
|
|
805
|
+
display: "flex",
|
|
806
|
+
flexDirection: "column",
|
|
807
|
+
alignItems: "flex-start",
|
|
808
|
+
flex: "1 0 0",
|
|
809
|
+
gap: "16px"
|
|
810
|
+
},
|
|
811
|
+
// Headline content with z-index
|
|
812
|
+
headlineContentInner: {
|
|
813
|
+
zIndex: 10
|
|
814
|
+
},
|
|
815
|
+
// Headline typography
|
|
816
|
+
headlineText: {
|
|
817
|
+
fontWeight: 500,
|
|
818
|
+
lineHeight: "166%",
|
|
819
|
+
letterSpacing: "1px",
|
|
820
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
821
|
+
color: e.secondaryColor,
|
|
822
|
+
opacity: "70%",
|
|
823
|
+
textTransform: "uppercase",
|
|
824
|
+
fontFamily: e.fontFamilySecondary,
|
|
825
|
+
fontSize: "0.75em"
|
|
826
|
+
},
|
|
827
|
+
// Content container
|
|
828
|
+
contentContainer: {
|
|
829
|
+
display: "flex",
|
|
830
|
+
flexDirection: "column",
|
|
831
|
+
gap: e.spacingScale["3xs"]
|
|
832
|
+
},
|
|
833
|
+
// Title typography
|
|
834
|
+
titleText: {
|
|
835
|
+
fontWeight: 700,
|
|
836
|
+
lineHeight: "133%",
|
|
837
|
+
letterSpacing: "0px",
|
|
838
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
839
|
+
fontSize: "1.5em",
|
|
840
|
+
color: e.darkTextColor,
|
|
841
|
+
fontFamily: e.fontFamilyPrimary
|
|
842
|
+
},
|
|
843
|
+
// Description typography
|
|
844
|
+
descriptionText: {
|
|
845
|
+
fontWeight: 400,
|
|
846
|
+
lineHeight: "140%",
|
|
847
|
+
letterSpacing: "0.15px",
|
|
848
|
+
fontSize: "1.25em",
|
|
849
|
+
textAlign: e.isMobile ? "center" : "left",
|
|
850
|
+
color: e.secondaryColor,
|
|
851
|
+
opacity: "70%",
|
|
852
|
+
fontFamily: e.fontFamilyPrimary
|
|
853
|
+
},
|
|
854
|
+
// Bottom section container
|
|
855
|
+
bottomSection: {
|
|
856
|
+
display: "flex",
|
|
857
|
+
flexDirection: "column",
|
|
858
|
+
gap: "24px",
|
|
859
|
+
zIndex: 1
|
|
860
|
+
},
|
|
861
|
+
// Footer container
|
|
862
|
+
footerContainer: {
|
|
863
|
+
display: "flex",
|
|
864
|
+
alignItems: "center",
|
|
865
|
+
justifyContent: "space-between",
|
|
866
|
+
flexDirection: e.isMobile ? "column-reverse" : "row",
|
|
867
|
+
gap: e.spacingScale.md
|
|
868
|
+
},
|
|
869
|
+
ctaSection: {
|
|
870
|
+
borderRadius: e.borderRadius.md,
|
|
871
|
+
py: e.spacingScale.md,
|
|
872
|
+
display: "flex",
|
|
873
|
+
flexDirection: "column",
|
|
874
|
+
alignItems: "center",
|
|
875
|
+
alignSelf: "stretch",
|
|
876
|
+
gap: e.spacingScale.md,
|
|
877
|
+
backdropFilter: "blur(4px)",
|
|
878
|
+
position: "relative",
|
|
879
|
+
"&::before": {
|
|
880
|
+
content: '""',
|
|
881
|
+
position: "absolute",
|
|
882
|
+
top: 0,
|
|
883
|
+
left: 0,
|
|
884
|
+
right: 0,
|
|
885
|
+
bottom: 0,
|
|
886
|
+
backgroundColor: e.contentBgColor,
|
|
887
|
+
opacity: 0.25,
|
|
888
|
+
borderRadius: "inherit",
|
|
889
|
+
zIndex: 0,
|
|
890
|
+
backdropFilter: "blur(4px)"
|
|
891
|
+
},
|
|
892
|
+
"& > *": {
|
|
893
|
+
position: "relative",
|
|
894
|
+
zIndex: 1
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
// Buttons container
|
|
898
|
+
buttonsContainer: {
|
|
899
|
+
display: "flex",
|
|
900
|
+
flexDirection: "column",
|
|
901
|
+
gap: e.spacingScale.md
|
|
902
|
+
},
|
|
903
|
+
// Try again button
|
|
904
|
+
tryAgainButton: {
|
|
905
|
+
display: "flex",
|
|
906
|
+
minHeight: "48px",
|
|
907
|
+
py: "12px",
|
|
908
|
+
pr: "24px",
|
|
909
|
+
pl: "16px",
|
|
910
|
+
flexDirection: "column",
|
|
911
|
+
justifyContent: "center",
|
|
912
|
+
alignItems: "center",
|
|
913
|
+
gap: "8px",
|
|
914
|
+
borderRadius: e.borderRadius.xl,
|
|
915
|
+
bgcolor: e.onSurfaceColor,
|
|
916
|
+
"&:hover": {
|
|
917
|
+
bgcolor: e.surfaceVariantColor
|
|
918
|
+
},
|
|
919
|
+
fontSize: "0.9375em"
|
|
920
|
+
},
|
|
921
|
+
// Try again button content
|
|
922
|
+
tryAgainButtonContent: {
|
|
923
|
+
display: "flex",
|
|
924
|
+
justifyContent: "center",
|
|
925
|
+
alignItems: "center",
|
|
926
|
+
gap: "8px",
|
|
927
|
+
alignSelf: "stretch"
|
|
928
|
+
},
|
|
929
|
+
// Try again icon
|
|
930
|
+
tryAgainIcon: {
|
|
931
|
+
display: "flex",
|
|
932
|
+
width: "24px",
|
|
933
|
+
height: "24px",
|
|
934
|
+
justifyContent: "center",
|
|
935
|
+
alignItems: "center",
|
|
936
|
+
color: e.textPrimary
|
|
937
|
+
},
|
|
938
|
+
// Try again text
|
|
939
|
+
tryAgainText: {
|
|
940
|
+
color: e.textPrimary,
|
|
941
|
+
textAlign: "center",
|
|
942
|
+
fontFamily: e.fontFamilyPrimary,
|
|
943
|
+
fontSize: "0.9375em",
|
|
944
|
+
fontStyle: "normal",
|
|
945
|
+
fontWeight: 500,
|
|
946
|
+
lineHeight: "24px",
|
|
947
|
+
letterSpacing: "0.46px",
|
|
948
|
+
textTransform: "uppercase"
|
|
949
|
+
}
|
|
950
|
+
};
|
|
951
|
+
}, Be = (e) => {
|
|
952
|
+
const o = V(), n = E(), l = j(), { t: m } = Y(), C = O(
|
|
953
|
+
z.OVERLAY
|
|
954
|
+
), { brandingImage: h, brandingColors: x, brandingLogo: S } = ne(e.entity.branding || null), w = h || Z(
|
|
955
|
+
{
|
|
956
|
+
images: e.entity.images || null,
|
|
957
|
+
imagePlaceholder: e.defaultImagePlaceholderUrl || ""
|
|
958
|
+
},
|
|
959
|
+
z.OVERLAY
|
|
960
|
+
), T = ae(w), u = (x == null ? void 0 : x.contentColor) || n.colorSchemes.dark.textColor, R = n.customFontFamily.dark.primary, y = n.customFontFamily.dark.secondary, A = n.customRadius.dark, I = n.border.dark.size, b = (x == null ? void 0 : x.backgroundColor) || n.colorSchemes.dark.surfaceVariant, r = n.colorSchemes.dark.onSurface, f = n.colorSchemes.dark.surfaceVariant, M = n.colorSchemes.dark.textPrimary, d = e.customAlertTitle ?? (e.isApiError ? m("common.error.title") : m("common.authentication.accessRequired")), D = e.customAlertMessage ?? (e.isApiError ? e.apiErrorMessage || m("common.error.message") : m("common.authentication.invalidOrMissingAuth")), c = ue({
|
|
961
|
+
spacingScale: o,
|
|
962
|
+
brandingColors: x,
|
|
963
|
+
secondaryColor: u,
|
|
964
|
+
fontFamilyPrimary: R,
|
|
965
|
+
fontFamilySecondary: y,
|
|
966
|
+
borderRadius: A,
|
|
967
|
+
borderSize: I,
|
|
968
|
+
darkTextColor: n.colorSchemes.dark.textColor,
|
|
969
|
+
backgroundImage: T,
|
|
970
|
+
imageBackgroundGradient: C,
|
|
971
|
+
contentBgColor: b,
|
|
972
|
+
onSurfaceColor: r,
|
|
973
|
+
surfaceVariantColor: f,
|
|
974
|
+
textPrimary: M,
|
|
975
|
+
isMobile: l
|
|
976
|
+
}), W = () => !e.isApiError || !e.toggleTryAgain ? /* @__PURE__ */ t(L, {}) : /* @__PURE__ */ t(i, { sx: c.ctaSection, children: /* @__PURE__ */ t(i, { sx: c.buttonsContainer, children: /* @__PURE__ */ t(X, { sx: c.tryAgainButton, onClick: e.toggleTryAgain, children: /* @__PURE__ */ a(i, { sx: c.tryAgainButtonContent, children: [
|
|
977
|
+
/* @__PURE__ */ t(Q, { sx: c.tryAgainIcon }),
|
|
978
|
+
/* @__PURE__ */ t(g, { sx: c.tryAgainText, children: e.tryAgainButtonText })
|
|
979
|
+
] }) }) }) });
|
|
980
|
+
return /* @__PURE__ */ a(i, { sx: c.mainContainer, children: [
|
|
981
|
+
/* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(i, { sx: c.headlineSection, children: /* @__PURE__ */ t(i, { sx: c.headlineContent, children: /* @__PURE__ */ a(i, { sx: c.headlineContentInner, children: [
|
|
982
|
+
/* @__PURE__ */ a(
|
|
983
|
+
i,
|
|
984
|
+
{
|
|
985
|
+
sx: {
|
|
986
|
+
display: "flex",
|
|
987
|
+
alignItems: "center",
|
|
988
|
+
justifyContent: l ? "center" : "left",
|
|
989
|
+
gap: o["3xs"]
|
|
990
|
+
},
|
|
991
|
+
children: [
|
|
992
|
+
/* @__PURE__ */ t(g, { level: "body-sm", sx: c.headlineText, children: e.headline }),
|
|
993
|
+
/* @__PURE__ */ t(
|
|
994
|
+
P,
|
|
995
|
+
{
|
|
996
|
+
rulesDisplay: e.rulesDisplay,
|
|
997
|
+
isOverlayVariant: !0,
|
|
998
|
+
rules: e.entity.rules || ""
|
|
999
|
+
}
|
|
1000
|
+
)
|
|
1001
|
+
]
|
|
1002
|
+
}
|
|
1003
|
+
),
|
|
1004
|
+
/* @__PURE__ */ a(i, { sx: c.contentContainer, children: [
|
|
1005
|
+
/* @__PURE__ */ t(g, { level: "h4", sx: c.titleText, children: e.entity.title }),
|
|
1006
|
+
/* @__PURE__ */ t(g, { level: "body-lg", sx: c.descriptionText, children: F(e.entity.description) })
|
|
1007
|
+
] })
|
|
1008
|
+
] }) }) }) }),
|
|
1009
|
+
/* @__PURE__ */ a(i, { sx: c.bottomSection, children: [
|
|
1010
|
+
/* @__PURE__ */ t(
|
|
1011
|
+
J,
|
|
1012
|
+
{
|
|
1013
|
+
variant: e.alertVariant || "error",
|
|
1014
|
+
title: d,
|
|
1015
|
+
message: D
|
|
1016
|
+
}
|
|
1017
|
+
),
|
|
1018
|
+
W(),
|
|
1019
|
+
S ? /* @__PURE__ */ t(i, { sx: c.footerContainer, children: e.renderPresentedBy(n.colorSchemes.dark.textColor) }) : /* @__PURE__ */ t(L, {})
|
|
1020
|
+
] })
|
|
1021
|
+
] });
|
|
1022
|
+
}, ze = ({
|
|
1023
|
+
entityId: e,
|
|
1024
|
+
sdk: o,
|
|
1025
|
+
children: n
|
|
1026
|
+
}) => {
|
|
1027
|
+
const { infoPage: l } = ce(e, "chance-game", o);
|
|
1028
|
+
return !l || l.id === "not-found" ? null : /* @__PURE__ */ t(L, { children: n(l) });
|
|
1029
|
+
}, De = ({
|
|
1030
|
+
infoPage: e,
|
|
1031
|
+
variant: o,
|
|
1032
|
+
forceMobile: n
|
|
1033
|
+
}) => {
|
|
1034
|
+
switch (o) {
|
|
1035
|
+
case q.PENALTY_SHOOTOUT:
|
|
1036
|
+
return /* @__PURE__ */ t(ge, { infoPage: e, forceMobile: n });
|
|
1037
|
+
case q.PICK_ONE_OF_X:
|
|
1038
|
+
return /* @__PURE__ */ t(se, { infoPage: e, forceMobile: n });
|
|
1039
|
+
case q.PRIZE_WHEEL:
|
|
1040
|
+
default:
|
|
1041
|
+
return /* @__PURE__ */ t(de, { infoPage: e, forceMobile: n });
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
export {
|
|
1045
|
+
ze as C,
|
|
1046
|
+
Be as O,
|
|
1047
|
+
Fe as S,
|
|
1048
|
+
Pe as a,
|
|
1049
|
+
Le as b,
|
|
1050
|
+
De as c
|
|
1051
|
+
};
|