fansunited-frontend-components 0.0.93 → 0.0.94
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/ClassicQuizPlay.js +1 -1
- package/List.js +3 -3
- package/PersonalityQuizPlay.js +1 -1
- package/PollVote.js +1 -1
- package/chunks/index-CHZyL_g_.js +4 -0
- package/chunks/index-CeCUdRmF.js +4 -0
- package/chunks/index-DGvCP5G8.js +4 -0
- package/chunks/{main-Dmc68oMQ.js → main-DjiQz1dv.js} +146 -144
- package/chunks/{main-DsAnwwP4.js → main-Dys2_Jt2.js} +1305 -1309
- package/chunks/{main-DPWm9Ema.js → main-gexg6lc-.js} +755 -758
- package/index.js +1 -1
- package/package.json +2 -2
- package/chunks/index-0ezhEUTz.js +0 -4
- package/chunks/index-CSrBHonD.js +0 -4
- package/chunks/index-DAu5SkP8.js +0 -4
|
@@ -1,86 +1,88 @@
|
|
|
1
1
|
import { jsx as t, jsxs as A, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { useInternalTheme as X, useColors as Q, useCornerRadius as oe, useFontFamily as K, useBorderSize as
|
|
3
|
-
import { C as
|
|
4
|
-
import
|
|
5
|
-
import { PersonalityQuizFullModel as
|
|
6
|
-
import { Box as
|
|
7
|
-
import
|
|
2
|
+
import { useInternalTheme as X, useColors as Q, useCornerRadius as oe, useFontFamily as K, useBorderSize as nt, useSpacingScale as fe, useImageUrl as Te, isMobile as _, getBrandingClickUrl as qt, CollectLeadForm as Mt, useConstantContext as it, ConstantsContext as at, isLarge as lt, extractBrandingModelProperties as We, defaultBgVertical as Ie, defaultBg as Pe, useImageVariant as be, WidgetTemplate as p, OverlaySkeleton as Ut, ConsentPanel as Qe, ConsentCta as $e, DirectionalIcon as ot, getSpacing as jt, isExtraSmall as Vt, hexToRgb as ke, StandardSkeleton as pt, SplitSkeleton as Et, stripHtmlTags as $t, StandardContentSkeleton as Pt, AdditionalCTA as rt, SplitScoreStateSkeleton as Ot, useImageBackgroundGradient as Ft, sanitizeBackgroundUrl as Rt, OverlayScoreStateWrapperSkeleton as _t, NotFoundSkeleton as Gt, OverlayApiErrorSkeleton as Qt, SplitApiErrorSkeleton as wt, StandardApiErrorSkeleton as Lt, StandardSignInSkeleton as Nt, SplitSignInSkeleton as Zt, OverlaySignInSkeleton as Yt, StandardLeadAfterCollection as st, SignInGatePanel as ct, SplitLeadAfterCollection as dt, OverlayLeadAfterCollection as mt, useSignInGate as Kt, useConsents as Jt, useParticipationDraft as Xt, getRelatedInfoPageId as en, initializeI18n as tn, Spinner as zt, ChanceGameEmbed as At, extractSdkError as nn, Portal as an } from "fansunited-frontend-core";
|
|
3
|
+
import { C as Tt } from "./ChanceGameEmbedVariant-C3NGwvTF.js";
|
|
4
|
+
import He, { useState as j, useEffect as ye, useRef as Ee, useMemo as et } from "react";
|
|
5
|
+
import { PersonalityQuizFullModel as ln, PersonalityQuizParticipationModel as Dt } from "fansunited-sdk-esm";
|
|
6
|
+
import { Box as s, AspectRatio as Oe, Typography as w, Button as Y, Tabs as _e, TabList as Ge, Tab as ve, tabClasses as kt, TabPanel as Be, Alert as on, Stack as rn } from "@mui/joy";
|
|
7
|
+
import ut from "@mui/icons-material/ArrowRightAlt";
|
|
8
8
|
import { useTranslation as q } from "react-i18next";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
14
|
-
const [l, a] =
|
|
9
|
+
import gt from "@mui/icons-material/Replay";
|
|
10
|
+
import sn from "@mui/icons-material/CheckCircle";
|
|
11
|
+
import cn from "@mui/icons-material/Info";
|
|
12
|
+
import dn from "@mui/icons-material/Warning";
|
|
13
|
+
const mn = (e, n) => {
|
|
14
|
+
const [l, a] = j(null), o = async () => {
|
|
15
15
|
try {
|
|
16
16
|
const i = await n.miniGames.getPersonalityQuizById(e, !0);
|
|
17
17
|
a(i);
|
|
18
18
|
} catch (i) {
|
|
19
|
-
console.error(i), a(new
|
|
19
|
+
console.error(i), a(new ln());
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
return ye(() => (o(), () => a(null)), [e, n]), l;
|
|
23
|
-
},
|
|
24
|
-
const [i,
|
|
23
|
+
}, un = (e, n, l, a = !1, o = !1) => {
|
|
24
|
+
const [i, c] = j(null), [r, y] = j(!1), [C, F] = j(!1), [u, L] = j(""), [g, R] = j(l);
|
|
25
|
+
l !== g && (R(l), c(null));
|
|
26
|
+
const T = async () => {
|
|
25
27
|
try {
|
|
26
|
-
const
|
|
28
|
+
const P = await n.miniGames.getMyPersonalityQuizParticipations({
|
|
27
29
|
personalityQuizIds: [e]
|
|
28
30
|
});
|
|
29
|
-
|
|
30
|
-
} catch (
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
31
|
+
c(P.data);
|
|
32
|
+
} catch (P) {
|
|
33
|
+
if (c([new Dt()]), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
|
|
34
|
+
const z = P;
|
|
35
|
+
if (z.error.code === 401 || z.error.code === 403) {
|
|
34
36
|
a || y(!0);
|
|
35
37
|
return;
|
|
36
38
|
}
|
|
37
|
-
|
|
39
|
+
F(!0), L(z.error.message || "");
|
|
38
40
|
return;
|
|
39
41
|
}
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
+
const d = P;
|
|
43
|
+
if (d.data.error.code === 401 || d.data.error.code === 403) {
|
|
42
44
|
a || y(!0);
|
|
43
45
|
return;
|
|
44
46
|
}
|
|
45
|
-
|
|
47
|
+
F(!0), L(d.data.error.message || "");
|
|
46
48
|
}
|
|
47
49
|
};
|
|
48
|
-
return ye(() => (
|
|
50
|
+
return ye(() => (T(), () => c((P) => P === null ? null : [])), [e, n, l, a, o]), {
|
|
49
51
|
myParticipation: i,
|
|
50
|
-
isUnauthorized:
|
|
51
|
-
isApiError:
|
|
52
|
+
isUnauthorized: r,
|
|
53
|
+
isApiError: C,
|
|
52
54
|
apiMessage: u,
|
|
53
55
|
setIsUnauthorized: y,
|
|
54
|
-
setIsApiError:
|
|
56
|
+
setIsApiError: F,
|
|
55
57
|
setApiMessage: L
|
|
56
58
|
};
|
|
57
|
-
},
|
|
59
|
+
}, tt = (e) => {
|
|
58
60
|
var d;
|
|
59
|
-
const n = X(), l = Q(), a = oe().sm, o = K().primary, i = oe().xs,
|
|
60
|
-
bgcolor:
|
|
61
|
-
boxShadow: `inset 0 0 0 ${
|
|
61
|
+
const n = X(), l = Q(), a = oe().sm, o = K().primary, i = oe().xs, c = nt().size, r = fe(), y = Te(e.option.images), C = e.questionImage ? null : y, F = ((d = e.brandingColors) == null ? void 0 : d.primaryColor) || l.palette.primary.plainColor, u = l.palette.primary.onPrimary, L = n.colorSchemes.light.textColor, g = (z) => e.selectedOption === z.optionId ? {
|
|
62
|
+
bgcolor: F,
|
|
63
|
+
boxShadow: `inset 0 0 0 ${c} ${F}`,
|
|
62
64
|
color: u
|
|
63
65
|
} : {
|
|
64
66
|
bgcolor: "#FFFFFF",
|
|
65
67
|
color: L,
|
|
66
68
|
boxShadow: "none"
|
|
67
|
-
},
|
|
69
|
+
}, R = () => {
|
|
68
70
|
e.answerQuestion(e.option.optionId);
|
|
69
|
-
}, { bgcolor:
|
|
71
|
+
}, { bgcolor: T, color: P, boxShadow: S } = g(e.option);
|
|
70
72
|
return /* @__PURE__ */ t(
|
|
71
|
-
|
|
73
|
+
s,
|
|
72
74
|
{
|
|
73
75
|
sx: {
|
|
74
76
|
borderRadius: a,
|
|
75
77
|
flex: 1,
|
|
76
78
|
// Take equal space within the row
|
|
77
|
-
p:
|
|
78
|
-
gap:
|
|
79
|
-
bgcolor:
|
|
79
|
+
p: r.xs,
|
|
80
|
+
gap: r.xs,
|
|
81
|
+
bgcolor: T,
|
|
80
82
|
cursor: "pointer",
|
|
81
83
|
transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
|
|
82
84
|
transform: "scale(1)",
|
|
83
|
-
boxShadow:
|
|
85
|
+
boxShadow: S,
|
|
84
86
|
"&:hover": {
|
|
85
87
|
transform: "scale(1.02)"
|
|
86
88
|
},
|
|
@@ -91,20 +93,20 @@ const cn = (e, n) => {
|
|
|
91
93
|
flexDirection: "column",
|
|
92
94
|
opacity: 1
|
|
93
95
|
},
|
|
94
|
-
onClick:
|
|
95
|
-
children:
|
|
96
|
+
onClick: R,
|
|
97
|
+
children: C ? /* @__PURE__ */ A(Z, { children: [
|
|
96
98
|
/* @__PURE__ */ t(
|
|
97
|
-
|
|
99
|
+
s,
|
|
98
100
|
{
|
|
99
101
|
sx: {
|
|
100
102
|
borderRadius: i,
|
|
101
103
|
overflow: "hidden",
|
|
102
104
|
flexGrow: 1
|
|
103
105
|
},
|
|
104
|
-
children: /* @__PURE__ */ t(
|
|
106
|
+
children: /* @__PURE__ */ t(Oe, { ratio: "16/9", sx: { borderRadius: i }, children: /* @__PURE__ */ t(
|
|
105
107
|
"img",
|
|
106
108
|
{
|
|
107
|
-
src:
|
|
109
|
+
src: C,
|
|
108
110
|
alt: "Option illustration",
|
|
109
111
|
style: {
|
|
110
112
|
width: "100%",
|
|
@@ -127,7 +129,7 @@ const cn = (e, n) => {
|
|
|
127
129
|
letterSpacing: "0.46px",
|
|
128
130
|
textAlign: "center",
|
|
129
131
|
color: P,
|
|
130
|
-
px:
|
|
132
|
+
px: r["2xs"]
|
|
131
133
|
},
|
|
132
134
|
children: e.option.option
|
|
133
135
|
}
|
|
@@ -144,7 +146,7 @@ const cn = (e, n) => {
|
|
|
144
146
|
letterSpacing: "0.46px",
|
|
145
147
|
textAlign: "center",
|
|
146
148
|
color: P,
|
|
147
|
-
px:
|
|
149
|
+
px: r["2xs"],
|
|
148
150
|
my: "auto"
|
|
149
151
|
},
|
|
150
152
|
children: e.option.option
|
|
@@ -153,15 +155,15 @@ const cn = (e, n) => {
|
|
|
153
155
|
},
|
|
154
156
|
e.option.optionId
|
|
155
157
|
);
|
|
156
|
-
},
|
|
158
|
+
}, yt = (e) => {
|
|
157
159
|
if (e.optionsLayout === "twoByTwo") {
|
|
158
160
|
const n = [];
|
|
159
161
|
for (let l = 0; l < e.options.length; l += 2) {
|
|
160
162
|
const a = e.options.slice(l, l + 2);
|
|
161
163
|
n.push(a);
|
|
162
164
|
}
|
|
163
|
-
return /* @__PURE__ */ t(
|
|
164
|
-
|
|
165
|
+
return /* @__PURE__ */ t(s, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: n.map((l, a) => /* @__PURE__ */ t(
|
|
166
|
+
s,
|
|
165
167
|
{
|
|
166
168
|
sx: {
|
|
167
169
|
display: "flex",
|
|
@@ -172,7 +174,7 @@ const cn = (e, n) => {
|
|
|
172
174
|
gap: 2
|
|
173
175
|
},
|
|
174
176
|
children: l.map((o) => /* @__PURE__ */ t(
|
|
175
|
-
|
|
177
|
+
tt,
|
|
176
178
|
{
|
|
177
179
|
option: o,
|
|
178
180
|
questionImage: e.questionImage,
|
|
@@ -186,8 +188,8 @@ const cn = (e, n) => {
|
|
|
186
188
|
`row-${a}`
|
|
187
189
|
)) });
|
|
188
190
|
}
|
|
189
|
-
return e.optionsLayout === "column" ? /* @__PURE__ */ t(
|
|
190
|
-
|
|
191
|
+
return e.optionsLayout === "column" ? /* @__PURE__ */ t(s, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: e.options.map((n) => /* @__PURE__ */ t(
|
|
192
|
+
tt,
|
|
191
193
|
{
|
|
192
194
|
option: n,
|
|
193
195
|
selectedOption: e.selectedOption,
|
|
@@ -197,7 +199,7 @@ const cn = (e, n) => {
|
|
|
197
199
|
},
|
|
198
200
|
n.optionId
|
|
199
201
|
)) }) : /* @__PURE__ */ t(
|
|
200
|
-
|
|
202
|
+
s,
|
|
201
203
|
{
|
|
202
204
|
sx: {
|
|
203
205
|
py: 2,
|
|
@@ -207,7 +209,7 @@ const cn = (e, n) => {
|
|
|
207
209
|
gap: 2
|
|
208
210
|
},
|
|
209
211
|
children: e.options.map((n) => /* @__PURE__ */ t(
|
|
210
|
-
|
|
212
|
+
tt,
|
|
211
213
|
{
|
|
212
214
|
option: n,
|
|
213
215
|
selectedOption: e.selectedOption,
|
|
@@ -219,8 +221,8 @@ const cn = (e, n) => {
|
|
|
219
221
|
))
|
|
220
222
|
}
|
|
221
223
|
);
|
|
222
|
-
},
|
|
223
|
-
const n = K().secondary, l = _(), a =
|
|
224
|
+
}, M = (e) => {
|
|
225
|
+
const n = K().secondary, l = _(), a = qt(e.primaryUrl, e.secondaryUrl, "logo");
|
|
224
226
|
if (!e.brandingLogo)
|
|
225
227
|
return null;
|
|
226
228
|
const o = () => {
|
|
@@ -235,8 +237,8 @@ const cn = (e, n) => {
|
|
|
235
237
|
maxWidth: "100px"
|
|
236
238
|
}
|
|
237
239
|
}
|
|
238
|
-
),
|
|
239
|
-
|
|
240
|
+
), c = a ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
241
|
+
s,
|
|
240
242
|
{
|
|
241
243
|
component: "a",
|
|
242
244
|
href: a,
|
|
@@ -250,7 +252,7 @@ const cn = (e, n) => {
|
|
|
250
252
|
children: i
|
|
251
253
|
}
|
|
252
254
|
) : /* @__PURE__ */ t(
|
|
253
|
-
|
|
255
|
+
s,
|
|
254
256
|
{
|
|
255
257
|
onClick: o,
|
|
256
258
|
sx: {
|
|
@@ -261,7 +263,7 @@ const cn = (e, n) => {
|
|
|
261
263
|
}
|
|
262
264
|
) : i;
|
|
263
265
|
return l ? /* @__PURE__ */ A(
|
|
264
|
-
|
|
266
|
+
s,
|
|
265
267
|
{
|
|
266
268
|
sx: {
|
|
267
269
|
display: "flex",
|
|
@@ -289,11 +291,11 @@ const cn = (e, n) => {
|
|
|
289
291
|
children: e.label
|
|
290
292
|
}
|
|
291
293
|
),
|
|
292
|
-
|
|
294
|
+
c
|
|
293
295
|
]
|
|
294
296
|
}
|
|
295
297
|
) : /* @__PURE__ */ A(
|
|
296
|
-
|
|
298
|
+
s,
|
|
297
299
|
{
|
|
298
300
|
sx: {
|
|
299
301
|
minWidth: "180px",
|
|
@@ -320,7 +322,7 @@ const cn = (e, n) => {
|
|
|
320
322
|
children: e.label
|
|
321
323
|
}
|
|
322
324
|
),
|
|
323
|
-
|
|
325
|
+
c
|
|
324
326
|
]
|
|
325
327
|
}
|
|
326
328
|
);
|
|
@@ -331,25 +333,25 @@ const cn = (e, n) => {
|
|
|
331
333
|
brandingColors: a,
|
|
332
334
|
brandingUrls: o,
|
|
333
335
|
campaignId: i,
|
|
334
|
-
campaignName:
|
|
335
|
-
startGame:
|
|
336
|
+
campaignName: c,
|
|
337
|
+
startGame: r,
|
|
336
338
|
fields: y = ["fullName", "email"],
|
|
337
|
-
leadTitle:
|
|
338
|
-
leadDescription:
|
|
339
|
+
leadTitle: C,
|
|
340
|
+
leadDescription: F,
|
|
339
341
|
leadCta: u,
|
|
340
342
|
leadSuccessTitle: L,
|
|
341
343
|
leadSuccessDescription: g,
|
|
342
|
-
syncWithProfile:
|
|
343
|
-
consents:
|
|
344
|
+
syncWithProfile: R = !1,
|
|
345
|
+
consents: T,
|
|
344
346
|
isAfterPosition: P = !1,
|
|
345
|
-
isSubmittingParticipation:
|
|
347
|
+
isSubmittingParticipation: S = !1
|
|
346
348
|
}) => {
|
|
347
|
-
const { t: d } = q(),
|
|
349
|
+
const { t: d } = q(), z = C ?? d("leads.header.title"), h = F ?? d("leads.header.description"), f = u ?? d("leads.buttons.submit"), x = L ?? d("leads.success.title"), b = g ?? d("leads.success.description"), I = {
|
|
348
350
|
defaultLabel: d(P ? "personalityQuiz.buttons.finish" : "personalityQuiz.buttons.start"),
|
|
349
|
-
onClick:
|
|
351
|
+
onClick: r
|
|
350
352
|
};
|
|
351
353
|
return /* @__PURE__ */ t(
|
|
352
|
-
|
|
354
|
+
Mt,
|
|
353
355
|
{
|
|
354
356
|
sdk: e,
|
|
355
357
|
content: {
|
|
@@ -364,22 +366,22 @@ const cn = (e, n) => {
|
|
|
364
366
|
},
|
|
365
367
|
campaign: {
|
|
366
368
|
id: i,
|
|
367
|
-
name:
|
|
369
|
+
name: c
|
|
368
370
|
},
|
|
369
371
|
fields: y,
|
|
370
372
|
labels: {
|
|
371
|
-
title:
|
|
373
|
+
title: z,
|
|
372
374
|
description: h,
|
|
373
375
|
submitButtonLabel: f,
|
|
374
376
|
successTitle: x,
|
|
375
377
|
successDescription: b
|
|
376
378
|
},
|
|
377
|
-
syncWithProfile:
|
|
378
|
-
consents:
|
|
379
|
-
isSubmittingParticipation:
|
|
379
|
+
syncWithProfile: R,
|
|
380
|
+
consents: T,
|
|
381
|
+
isSubmittingParticipation: S
|
|
380
382
|
}
|
|
381
383
|
);
|
|
382
|
-
},
|
|
384
|
+
}, gn = (e) => ({
|
|
383
385
|
// Content container with backdrop
|
|
384
386
|
contentContainerWithBackdrop: {
|
|
385
387
|
borderRadius: e.smBorderRadius,
|
|
@@ -507,55 +509,55 @@ const cn = (e, n) => {
|
|
|
507
509
|
display: "flex",
|
|
508
510
|
alignItems: "center"
|
|
509
511
|
}
|
|
510
|
-
}),
|
|
511
|
-
var
|
|
512
|
-
const [n, l] =
|
|
513
|
-
((
|
|
514
|
-
), { optionsLayout: a } =
|
|
512
|
+
}), yn = (e) => {
|
|
513
|
+
var v, U, H, E, m, W, $, V, ee, te, ie, re, se, me, ne, O, G, ce, de, ae, xe, le, ue, ge, ze, Le, qe;
|
|
514
|
+
const [n, l] = He.useState(
|
|
515
|
+
((v = e.leads) == null ? void 0 : v.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
|
|
516
|
+
), { optionsLayout: a } = it(at), o = fe(), i = X(), c = Te(e.question.images), { t: r } = q(), y = _(), C = lt(), { brandingImage: F, brandingColors: u, brandingLogo: L } = We(e.personalityQuiz.branding || null), g = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : _() ? Ie : Pe, R = F || be(
|
|
515
517
|
{
|
|
516
518
|
images: e.personalityQuiz.images,
|
|
517
519
|
imagePlaceholder: g
|
|
518
520
|
},
|
|
519
521
|
p.OVERLAY
|
|
520
|
-
),
|
|
522
|
+
), T = e.currentQuestion === e.personalityQuiz.questions.length && (((U = e.leads) == null ? void 0 : U.position) === "after" || e.hasAfterConsents) ? r("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? r("personalityQuiz.buttons.finish") : r("personalityQuiz.buttons.next"), P = i.customRadius.dark.sm, S = (u == null ? void 0 : u.backgroundColor) || ((E = (H = i.colorSchemes) == null ? void 0 : H.dark) == null ? void 0 : E.surfaceVariant), d = (W = (m = i.customRadius) == null ? void 0 : m.light) == null ? void 0 : W.xl, z = (u == null ? void 0 : u.primaryColor) || ((te = (ee = (V = ($ = i.colorSchemes) == null ? void 0 : $.light) == null ? void 0 : V.palette) == null ? void 0 : ee.primary) == null ? void 0 : te.plainColor), h = (me = (se = (re = (ie = i.colorSchemes) == null ? void 0 : ie.light) == null ? void 0 : re.palette) == null ? void 0 : se.primary) == null ? void 0 : me.onPrimary, f = i.customFontFamily.dark.primary, x = i.colorSchemes.dark.textColor, b = gn({
|
|
521
523
|
spacingScale: o,
|
|
522
524
|
smBorderRadius: P,
|
|
523
|
-
contentBgColor:
|
|
525
|
+
contentBgColor: S,
|
|
524
526
|
buttonRadius: d,
|
|
525
|
-
primaryColor:
|
|
527
|
+
primaryColor: z,
|
|
526
528
|
onPrimaryColor: h,
|
|
527
529
|
fontFamilyPrimary: f,
|
|
528
530
|
darkTextColor: x,
|
|
529
531
|
isMobile: y,
|
|
530
|
-
isLarge:
|
|
532
|
+
isLarge: C
|
|
531
533
|
}), I = () => {
|
|
532
534
|
l(!1);
|
|
533
535
|
}, D = () => {
|
|
534
|
-
var
|
|
536
|
+
var Me, Ue, Fe, he, Re;
|
|
535
537
|
return /* @__PURE__ */ t(
|
|
536
|
-
|
|
538
|
+
M,
|
|
537
539
|
{
|
|
538
540
|
brandingLogo: L,
|
|
539
541
|
textColor: i.colorSchemes.dark.textColor,
|
|
540
|
-
label: ((
|
|
541
|
-
primaryUrl: (Fe = (
|
|
542
|
+
label: ((Me = e.personalityQuiz.labels) == null ? void 0 : Me.sponsor) || null,
|
|
543
|
+
primaryUrl: (Fe = (Ue = e.personalityQuiz.branding) == null ? void 0 : Ue.urls) == null ? void 0 : Fe.primaryUrl,
|
|
542
544
|
secondaryUrl: (Re = (he = e.personalityQuiz.branding) == null ? void 0 : he.urls) == null ? void 0 : Re.secondaryUrl
|
|
543
545
|
}
|
|
544
546
|
);
|
|
545
547
|
};
|
|
546
548
|
return /* @__PURE__ */ A(
|
|
547
|
-
|
|
549
|
+
Ut,
|
|
548
550
|
{
|
|
549
551
|
entity: e.personalityQuiz,
|
|
550
|
-
headline:
|
|
551
|
-
finalImage:
|
|
552
|
+
headline: r("personalityQuiz.headline"),
|
|
553
|
+
finalImage: R,
|
|
552
554
|
rulesDisplay: e.rulesDisplay,
|
|
553
555
|
children: [
|
|
554
|
-
/* @__PURE__ */ t(
|
|
556
|
+
/* @__PURE__ */ t(s, { sx: b.contentContainerWithBackdrop, children: e.applyConsentGate ? /* @__PURE__ */ t(
|
|
555
557
|
Qe,
|
|
556
558
|
{
|
|
557
559
|
consents: e.consents,
|
|
558
|
-
primaryColor:
|
|
560
|
+
primaryColor: z,
|
|
559
561
|
textColor: (u == null ? void 0 : u.contentColor) || x,
|
|
560
562
|
brandingUrls: (ne = e.personalityQuiz.branding) == null ? void 0 : ne.urls
|
|
561
563
|
}
|
|
@@ -579,15 +581,15 @@ const cn = (e, n) => {
|
|
|
579
581
|
consents: e.leadConsents
|
|
580
582
|
}
|
|
581
583
|
) : /* @__PURE__ */ A(Z, { children: [
|
|
582
|
-
|
|
584
|
+
c && /* @__PURE__ */ t(Oe, { ratio: "16/9", sx: b.questionImageContainer, children: /* @__PURE__ */ t(s, { sx: b.questionImageBox, children: /* @__PURE__ */ t(
|
|
583
585
|
"img",
|
|
584
586
|
{
|
|
585
|
-
src:
|
|
587
|
+
src: c,
|
|
586
588
|
alt: "Question illustration",
|
|
587
589
|
style: b.questionImage
|
|
588
590
|
}
|
|
589
591
|
) }) }),
|
|
590
|
-
/* @__PURE__ */ A(
|
|
592
|
+
/* @__PURE__ */ A(s, { sx: b.questionSection, children: [
|
|
591
593
|
/* @__PURE__ */ A(w, { level: "body-lg", sx: b.questionStepsText, children: [
|
|
592
594
|
e.currentQuestion,
|
|
593
595
|
"/",
|
|
@@ -596,26 +598,26 @@ const cn = (e, n) => {
|
|
|
596
598
|
/* @__PURE__ */ t(w, { level: "body-lg", sx: b.questionText, children: e.question.question })
|
|
597
599
|
] }),
|
|
598
600
|
/* @__PURE__ */ t(
|
|
599
|
-
|
|
601
|
+
yt,
|
|
600
602
|
{
|
|
601
603
|
options: e.question.options || [],
|
|
602
604
|
answerQuestion: e.answerQuestion,
|
|
603
605
|
selectedOption: e.selectedOption,
|
|
604
|
-
optionsLayout:
|
|
605
|
-
questionImage:
|
|
606
|
+
optionsLayout: C ? "column" : a ?? "row",
|
|
607
|
+
questionImage: c,
|
|
606
608
|
brandingColors: u
|
|
607
609
|
}
|
|
608
610
|
)
|
|
609
611
|
] }) }),
|
|
610
|
-
/* @__PURE__ */ A(
|
|
612
|
+
/* @__PURE__ */ A(s, { sx: b.bottomFooterContainer, children: [
|
|
611
613
|
D(),
|
|
612
614
|
e.applyConsentGate ? /* @__PURE__ */ t(
|
|
613
|
-
|
|
615
|
+
$e,
|
|
614
616
|
{
|
|
615
617
|
onClick: e.startPlaying,
|
|
616
|
-
label: ((
|
|
618
|
+
label: ((qe = (Le = e.consents) == null ? void 0 : Le.labels) == null ? void 0 : qe.ctaLabel) || r("personalityQuiz.buttons.start"),
|
|
617
619
|
isSubmitting: e.isSubmitting,
|
|
618
|
-
primaryColor:
|
|
620
|
+
primaryColor: z
|
|
619
621
|
}
|
|
620
622
|
) : !n && /* @__PURE__ */ t(
|
|
621
623
|
Y,
|
|
@@ -623,17 +625,17 @@ const cn = (e, n) => {
|
|
|
623
625
|
variant: "soft",
|
|
624
626
|
disabled: e.selectedOption === null,
|
|
625
627
|
sx: b.nextButton,
|
|
626
|
-
endDecorator: /* @__PURE__ */ t(
|
|
628
|
+
endDecorator: /* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(ut, {}) }),
|
|
627
629
|
onClick: e.handleNext,
|
|
628
630
|
loading: e.isLoading,
|
|
629
|
-
children: /* @__PURE__ */ t(w, { sx: b.nextButtonText, children:
|
|
631
|
+
children: /* @__PURE__ */ t(w, { sx: b.nextButtonText, children: T })
|
|
630
632
|
}
|
|
631
633
|
)
|
|
632
634
|
] })
|
|
633
635
|
]
|
|
634
636
|
}
|
|
635
637
|
);
|
|
636
|
-
},
|
|
638
|
+
}, vt = (e) => {
|
|
637
639
|
const n = K().primary, l = oe().xl, a = Q().palette.primary.onPrimary;
|
|
638
640
|
return /* @__PURE__ */ t(
|
|
639
641
|
Y,
|
|
@@ -689,14 +691,14 @@ const cn = (e, n) => {
|
|
|
689
691
|
)
|
|
690
692
|
}
|
|
691
693
|
);
|
|
692
|
-
},
|
|
694
|
+
}, fn = (e) => {
|
|
693
695
|
const n = () => {
|
|
694
696
|
const l = X(), a = l.customRadius.light.full, o = e.personalityQuiz.questions.length;
|
|
695
|
-
return Array.from({ length: o }, (i,
|
|
696
|
-
const
|
|
697
|
-
let y,
|
|
698
|
-
return
|
|
699
|
-
|
|
697
|
+
return Array.from({ length: o }, (i, c) => {
|
|
698
|
+
const r = c + 1;
|
|
699
|
+
let y, C;
|
|
700
|
+
return r < e.currentQuestion ? (y = l.colorSchemes.light.palette.success.plainColor, C = l.colorSchemes.light.palette.success.outlinedBorder) : r === e.currentQuestion ? (y = e.brandingPrimaryColor || l.colorSchemes.light.palette.primary.plainColor, C = e.brandingPrimaryColor || l.colorSchemes.light.palette.primary.outlinedBorder) : (y = l.colorSchemes.light.secondaryContainer, C = l.colorSchemes.light.outlineEnabledBorder), /* @__PURE__ */ t(
|
|
701
|
+
s,
|
|
700
702
|
{
|
|
701
703
|
sx: {
|
|
702
704
|
maxWidth: "82.67px",
|
|
@@ -704,22 +706,22 @@ const cn = (e, n) => {
|
|
|
704
706
|
height: "8px",
|
|
705
707
|
borderRadius: a,
|
|
706
708
|
backgroundColor: y,
|
|
707
|
-
border: `1px solid ${
|
|
709
|
+
border: `1px solid ${C}`,
|
|
708
710
|
transition: "background-color 0.3s ease"
|
|
709
711
|
}
|
|
710
712
|
},
|
|
711
|
-
`step-${
|
|
713
|
+
`step-${r}`
|
|
712
714
|
);
|
|
713
715
|
});
|
|
714
716
|
};
|
|
715
717
|
return /* @__PURE__ */ t(
|
|
716
|
-
|
|
718
|
+
s,
|
|
717
719
|
{
|
|
718
720
|
sx: {
|
|
719
721
|
display: "flex",
|
|
720
722
|
justifyContent: "center",
|
|
721
723
|
gap: "8px",
|
|
722
|
-
py:
|
|
724
|
+
py: jt("xs")
|
|
723
725
|
},
|
|
724
726
|
children: n()
|
|
725
727
|
}
|
|
@@ -728,9 +730,9 @@ const cn = (e, n) => {
|
|
|
728
730
|
children: e,
|
|
729
731
|
brandingBorderColor: n
|
|
730
732
|
}) => {
|
|
731
|
-
const l = oe().md, a = n || Q().secondaryContainer, o =
|
|
733
|
+
const l = oe().md, a = n || Q().secondaryContainer, o = nt().size, i = _(), c = o + " solid " + a;
|
|
732
734
|
return /* @__PURE__ */ t(
|
|
733
|
-
|
|
735
|
+
s,
|
|
734
736
|
{
|
|
735
737
|
sx: {
|
|
736
738
|
display: "flex",
|
|
@@ -738,7 +740,7 @@ const cn = (e, n) => {
|
|
|
738
740
|
width: "100%",
|
|
739
741
|
borderRadius: l,
|
|
740
742
|
boxShadow: "md",
|
|
741
|
-
border:
|
|
743
|
+
border: c,
|
|
742
744
|
overflow: "hidden",
|
|
743
745
|
background: Q().surface,
|
|
744
746
|
minHeight: "250px"
|
|
@@ -746,7 +748,7 @@ const cn = (e, n) => {
|
|
|
746
748
|
children: e
|
|
747
749
|
}
|
|
748
750
|
);
|
|
749
|
-
},
|
|
751
|
+
}, xn = (e) => ({
|
|
750
752
|
// Stopwatch container
|
|
751
753
|
stopwatchContainer: {
|
|
752
754
|
display: "flex",
|
|
@@ -872,22 +874,22 @@ const cn = (e, n) => {
|
|
|
872
874
|
justifyContent: "center",
|
|
873
875
|
alignItems: "center"
|
|
874
876
|
}
|
|
875
|
-
}),
|
|
876
|
-
var D,
|
|
877
|
-
const [n, l] =
|
|
877
|
+
}), hn = (e) => {
|
|
878
|
+
var D, v, U, H, E, m, W, $, V, ee, te, ie, re, se, me, ne, O;
|
|
879
|
+
const [n, l] = He.useState(
|
|
878
880
|
((D = e.leads) == null ? void 0 : D.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
|
|
879
|
-
), { optionsLayout: a } =
|
|
881
|
+
), { optionsLayout: a } = it(at), o = Te(e.question.images), { t: i } = q(), c = _(), r = Vt(), y = ((v = e.personalityQuiz.branding) == null ? void 0 : v.colors) || null, C = c ? ((U = e.personalityQuiz.branding) == null ? void 0 : U.images.mobileLogo) || ((H = e.personalityQuiz.branding) == null ? void 0 : H.images.mainLogo) || "" : ((E = e.personalityQuiz.branding) == null ? void 0 : E.images.mainLogo) || "", F = e.imagePosition || "left", u = be(
|
|
880
882
|
{
|
|
881
883
|
images: e.personalityQuiz.images,
|
|
882
884
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
883
885
|
},
|
|
884
886
|
p.STANDARD
|
|
885
|
-
), L = e.currentQuestion === e.personalityQuiz.questions.length && (((m = e.leads) == null ? void 0 : m.position) === "after" || e.hasAfterConsents) ? i("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? i("personalityQuiz.buttons.finish") : i("personalityQuiz.buttons.next"), g =
|
|
887
|
+
), L = e.currentQuestion === e.personalityQuiz.questions.length && (((m = e.leads) == null ? void 0 : m.position) === "after" || e.hasAfterConsents) ? i("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? i("personalityQuiz.buttons.finish") : i("personalityQuiz.buttons.next"), g = r || c && !!u, R = (y == null ? void 0 : y.contentColor) || Q().textColor, T = K().primary, P = (y == null ? void 0 : y.backgroundColor) || Q().surfaceVariant, S = oe().md, d = oe().sm, z = (y == null ? void 0 : y.primaryColor) || Q().palette.primary.plainColor, h = fe(), f = xn({
|
|
886
888
|
spacingScale: h,
|
|
887
|
-
fontFamilyPrimary:
|
|
888
|
-
textColor:
|
|
889
|
+
fontFamilyPrimary: T,
|
|
890
|
+
textColor: R,
|
|
889
891
|
bgcolor: ke(P || ""),
|
|
890
|
-
mdBorderRadius:
|
|
892
|
+
mdBorderRadius: S,
|
|
891
893
|
smBorderRadius: d,
|
|
892
894
|
isExtraSmall: g
|
|
893
895
|
}), x = () => {
|
|
@@ -895,9 +897,9 @@ const cn = (e, n) => {
|
|
|
895
897
|
}, b = (G) => {
|
|
896
898
|
var ce, de, ae, xe, le;
|
|
897
899
|
return /* @__PURE__ */ t(
|
|
898
|
-
|
|
900
|
+
M,
|
|
899
901
|
{
|
|
900
|
-
brandingLogo:
|
|
902
|
+
brandingLogo: C,
|
|
901
903
|
textColor: G,
|
|
902
904
|
label: ((ce = e.personalityQuiz.labels) == null ? void 0 : ce.sponsor) || null,
|
|
903
905
|
primaryUrl: (ae = (de = e.personalityQuiz.branding) == null ? void 0 : de.urls) == null ? void 0 : ae.primaryUrl,
|
|
@@ -906,48 +908,48 @@ const cn = (e, n) => {
|
|
|
906
908
|
);
|
|
907
909
|
}, I = () => {
|
|
908
910
|
var G, ce, de;
|
|
909
|
-
return /* @__PURE__ */ t(
|
|
910
|
-
/* @__PURE__ */ t(
|
|
911
|
+
return /* @__PURE__ */ t(s, { sx: f.questionArea, children: /* @__PURE__ */ A(s, { sx: f.questionContainer, children: [
|
|
912
|
+
/* @__PURE__ */ t(s, { sx: f.questionContentContainer, children: /* @__PURE__ */ t(
|
|
911
913
|
Qe,
|
|
912
914
|
{
|
|
913
915
|
consents: e.consents,
|
|
914
|
-
primaryColor:
|
|
915
|
-
textColor:
|
|
916
|
+
primaryColor: z,
|
|
917
|
+
textColor: R,
|
|
916
918
|
brandingUrls: (G = e.personalityQuiz.branding) == null ? void 0 : G.urls,
|
|
917
919
|
align: "center"
|
|
918
920
|
}
|
|
919
921
|
) }),
|
|
920
922
|
/* @__PURE__ */ A(
|
|
921
|
-
|
|
923
|
+
s,
|
|
922
924
|
{
|
|
923
|
-
sx:
|
|
925
|
+
sx: C ? f.footerContainer : f.footerContainerNoLogo,
|
|
924
926
|
children: [
|
|
925
|
-
|
|
926
|
-
/* @__PURE__ */ t(
|
|
927
|
-
|
|
927
|
+
C && !g ? b(R) : /* @__PURE__ */ t(Z, {}),
|
|
928
|
+
/* @__PURE__ */ t(s, { sx: f.navigationContainer, children: /* @__PURE__ */ t(
|
|
929
|
+
$e,
|
|
928
930
|
{
|
|
929
931
|
onClick: e.startPlaying,
|
|
930
932
|
label: ((de = (ce = e.consents) == null ? void 0 : ce.labels) == null ? void 0 : de.ctaLabel) || i("personalityQuiz.buttons.start"),
|
|
931
933
|
isSubmitting: e.isSubmitting,
|
|
932
|
-
primaryColor:
|
|
934
|
+
primaryColor: z
|
|
933
935
|
}
|
|
934
936
|
) })
|
|
935
937
|
]
|
|
936
938
|
}
|
|
937
939
|
),
|
|
938
|
-
|
|
940
|
+
C && g ? b(R) : /* @__PURE__ */ t(Z, {})
|
|
939
941
|
] }) });
|
|
940
942
|
};
|
|
941
943
|
return /* @__PURE__ */ t(J, { brandingBorderColor: (y == null ? void 0 : y.borderColor) || null, children: /* @__PURE__ */ t(
|
|
942
|
-
|
|
944
|
+
pt,
|
|
943
945
|
{
|
|
944
946
|
entity: e.personalityQuiz,
|
|
945
947
|
headline: i("personalityQuiz.headline"),
|
|
946
948
|
finalImage: u,
|
|
947
|
-
imagePosition:
|
|
949
|
+
imagePosition: F,
|
|
948
950
|
rulesDisplay: e.rulesDisplay,
|
|
949
|
-
children: /* @__PURE__ */ t(Z, { children: e.applyConsentGate ? I() : n ? /* @__PURE__ */ t(
|
|
950
|
-
/* @__PURE__ */ t(
|
|
951
|
+
children: /* @__PURE__ */ t(Z, { children: e.applyConsentGate ? I() : n ? /* @__PURE__ */ t(s, { sx: f.leadCollectionContainer, children: /* @__PURE__ */ A(s, { sx: f.leadQuestionContainer, children: [
|
|
952
|
+
/* @__PURE__ */ t(s, { sx: f.leadContentContainer, children: /* @__PURE__ */ t(
|
|
951
953
|
we,
|
|
952
954
|
{
|
|
953
955
|
sdk: e.sdk,
|
|
@@ -956,7 +958,7 @@ const cn = (e, n) => {
|
|
|
956
958
|
contentName: e.personalityQuiz.title,
|
|
957
959
|
brandingColors: (W = e.personalityQuiz.branding) == null ? void 0 : W.colors,
|
|
958
960
|
brandingUrls: ($ = e.personalityQuiz.branding) == null ? void 0 : $.urls,
|
|
959
|
-
campaignId: (
|
|
961
|
+
campaignId: (V = e.leads) == null ? void 0 : V.campaignId,
|
|
960
962
|
campaignName: (ee = e.leads) == null ? void 0 : ee.campaignName,
|
|
961
963
|
fields: (te = e.leads) == null ? void 0 : te.fields,
|
|
962
964
|
leadTitle: (ie = e.personalityQuiz.labels) == null ? void 0 : ie.leadTitle,
|
|
@@ -968,10 +970,10 @@ const cn = (e, n) => {
|
|
|
968
970
|
consents: e.leadConsents
|
|
969
971
|
}
|
|
970
972
|
) }),
|
|
971
|
-
b(
|
|
973
|
+
b(R)
|
|
972
974
|
] }) }) : /* @__PURE__ */ A(Z, { children: [
|
|
973
|
-
/* @__PURE__ */ t(
|
|
974
|
-
|
|
975
|
+
/* @__PURE__ */ t(s, { sx: f.paginationContainer, children: /* @__PURE__ */ t(
|
|
976
|
+
fn,
|
|
975
977
|
{
|
|
976
978
|
personalityQuiz: e.personalityQuiz,
|
|
977
979
|
currentQuestion: e.currentQuestion,
|
|
@@ -979,14 +981,14 @@ const cn = (e, n) => {
|
|
|
979
981
|
brandingPrimaryColor: y == null ? void 0 : y.primaryColor
|
|
980
982
|
}
|
|
981
983
|
) }),
|
|
982
|
-
/* @__PURE__ */ t(
|
|
983
|
-
/* @__PURE__ */ A(
|
|
984
|
+
/* @__PURE__ */ t(s, { sx: f.questionArea, children: /* @__PURE__ */ A(s, { sx: f.questionContainer, children: [
|
|
985
|
+
/* @__PURE__ */ A(s, { sx: f.questionContentContainer, children: [
|
|
984
986
|
o && /* @__PURE__ */ t(
|
|
985
|
-
|
|
987
|
+
Oe,
|
|
986
988
|
{
|
|
987
989
|
ratio: "16/9",
|
|
988
990
|
sx: f.questionImageContainer,
|
|
989
|
-
children: /* @__PURE__ */ t(
|
|
991
|
+
children: /* @__PURE__ */ t(s, { sx: f.questionImageBox, children: /* @__PURE__ */ t(
|
|
990
992
|
"img",
|
|
991
993
|
{
|
|
992
994
|
src: o,
|
|
@@ -996,9 +998,9 @@ const cn = (e, n) => {
|
|
|
996
998
|
) })
|
|
997
999
|
}
|
|
998
1000
|
),
|
|
999
|
-
/* @__PURE__ */ t(
|
|
1001
|
+
/* @__PURE__ */ t(s, { sx: f.questionTextContainer, children: /* @__PURE__ */ t(w, { level: "body-lg", sx: f.questionText, children: e.question.question }) }),
|
|
1000
1002
|
/* @__PURE__ */ t(
|
|
1001
|
-
|
|
1003
|
+
yt,
|
|
1002
1004
|
{
|
|
1003
1005
|
options: e.question.options || [],
|
|
1004
1006
|
answerQuestion: e.answerQuestion,
|
|
@@ -1010,18 +1012,18 @@ const cn = (e, n) => {
|
|
|
1010
1012
|
)
|
|
1011
1013
|
] }),
|
|
1012
1014
|
/* @__PURE__ */ A(
|
|
1013
|
-
|
|
1015
|
+
s,
|
|
1014
1016
|
{
|
|
1015
|
-
sx:
|
|
1017
|
+
sx: C ? f.footerContainer : f.footerContainerNoLogo,
|
|
1016
1018
|
children: [
|
|
1017
|
-
|
|
1018
|
-
/* @__PURE__ */ t(
|
|
1019
|
-
|
|
1019
|
+
C && !g ? b(R) : /* @__PURE__ */ t(Z, {}),
|
|
1020
|
+
/* @__PURE__ */ t(s, { sx: f.navigationContainer, children: /* @__PURE__ */ t(
|
|
1021
|
+
vt,
|
|
1020
1022
|
{
|
|
1021
1023
|
selectedOption: e.selectedOption,
|
|
1022
|
-
endDecorator: /* @__PURE__ */ t(
|
|
1024
|
+
endDecorator: /* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(ut, {}) }),
|
|
1023
1025
|
label: L,
|
|
1024
|
-
buttonColor:
|
|
1026
|
+
buttonColor: z,
|
|
1025
1027
|
onClick: e.handleNext,
|
|
1026
1028
|
isLoading: e.isLoading
|
|
1027
1029
|
}
|
|
@@ -1029,12 +1031,12 @@ const cn = (e, n) => {
|
|
|
1029
1031
|
]
|
|
1030
1032
|
}
|
|
1031
1033
|
),
|
|
1032
|
-
|
|
1034
|
+
C && g ? b(R) : /* @__PURE__ */ t(Z, {})
|
|
1033
1035
|
] }) })
|
|
1034
1036
|
] }) })
|
|
1035
1037
|
}
|
|
1036
1038
|
) });
|
|
1037
|
-
},
|
|
1039
|
+
}, bn = (e) => ({
|
|
1038
1040
|
// Question area
|
|
1039
1041
|
questionArea: {
|
|
1040
1042
|
width: "100%",
|
|
@@ -1129,21 +1131,21 @@ const cn = (e, n) => {
|
|
|
1129
1131
|
presentedByMobile: {
|
|
1130
1132
|
display: { xs: "block", md: "none" }
|
|
1131
1133
|
}
|
|
1132
|
-
}),
|
|
1133
|
-
var
|
|
1134
|
-
const [n, l] =
|
|
1135
|
-
((
|
|
1136
|
-
), { optionsLayout: a } =
|
|
1134
|
+
}), Cn = (e) => {
|
|
1135
|
+
var v, U, H, E, m, W, $, V, ee, te, ie, re, se, me, ne, O, G, ce, de;
|
|
1136
|
+
const [n, l] = He.useState(
|
|
1137
|
+
((v = e.leads) == null ? void 0 : v.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
|
|
1138
|
+
), { optionsLayout: a } = it(at), o = X(), i = _(), c = lt(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? Ie : Pe, y = be(
|
|
1137
1139
|
{
|
|
1138
1140
|
images: e.personalityQuiz.images,
|
|
1139
|
-
imagePlaceholder:
|
|
1141
|
+
imagePlaceholder: r
|
|
1140
1142
|
},
|
|
1141
1143
|
p.SPLIT
|
|
1142
|
-
),
|
|
1143
|
-
spacingScale:
|
|
1144
|
+
), C = Te(e.question.images), { t: F } = q(), u = ((U = e.personalityQuiz.branding) == null ? void 0 : U.colors) || null, L = i ? ((H = e.personalityQuiz.branding) == null ? void 0 : H.images.mobileLogo) || ((E = e.personalityQuiz.branding) == null ? void 0 : E.images.mainLogo) || "" : ((m = e.personalityQuiz.branding) == null ? void 0 : m.images.mainLogo) || "", g = e.currentQuestion === e.personalityQuiz.questions.length && (((W = e.leads) == null ? void 0 : W.position) === "after" || e.hasAfterConsents) ? F("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? F("personalityQuiz.buttons.finish") : F("personalityQuiz.buttons.next"), R = (u == null ? void 0 : u.contentColor) || Q().textColor, T = K().primary, P = (u == null ? void 0 : u.backgroundColor) || Q().surfaceVariant, S = (u == null ? void 0 : u.primaryColor) || ((V = ($ = Q().palette) == null ? void 0 : $.primary) == null ? void 0 : V.plainColor), d = Q().textColor, z = fe(), h = oe(), f = ke(P || ""), x = bn({
|
|
1145
|
+
spacingScale: z,
|
|
1144
1146
|
borderRadius: h,
|
|
1145
|
-
fontFamilyPrimary:
|
|
1146
|
-
secondaryColor:
|
|
1147
|
+
fontFamilyPrimary: T,
|
|
1148
|
+
secondaryColor: R,
|
|
1147
1149
|
opacity: "60%",
|
|
1148
1150
|
bgcolor: f,
|
|
1149
1151
|
textColor: d
|
|
@@ -1152,7 +1154,7 @@ const cn = (e, n) => {
|
|
|
1152
1154
|
}, I = (ae) => {
|
|
1153
1155
|
var xe, le, ue, ge, ze;
|
|
1154
1156
|
return /* @__PURE__ */ t(
|
|
1155
|
-
|
|
1157
|
+
M,
|
|
1156
1158
|
{
|
|
1157
1159
|
brandingLogo: L,
|
|
1158
1160
|
textColor: ae,
|
|
@@ -1163,32 +1165,32 @@ const cn = (e, n) => {
|
|
|
1163
1165
|
);
|
|
1164
1166
|
}, D = () => {
|
|
1165
1167
|
var ae;
|
|
1166
|
-
return /* @__PURE__ */ t(
|
|
1168
|
+
return /* @__PURE__ */ t(s, { sx: x.mainContentContainer, children: /* @__PURE__ */ t(
|
|
1167
1169
|
Qe,
|
|
1168
1170
|
{
|
|
1169
1171
|
consents: e.consents,
|
|
1170
|
-
primaryColor:
|
|
1172
|
+
primaryColor: S,
|
|
1171
1173
|
textColor: d,
|
|
1172
1174
|
brandingUrls: (ae = e.personalityQuiz.branding) == null ? void 0 : ae.urls,
|
|
1173
1175
|
onSubmit: e.startPlaying,
|
|
1174
1176
|
isSubmitting: e.isSubmitting,
|
|
1175
|
-
ctaLabel:
|
|
1177
|
+
ctaLabel: F("personalityQuiz.buttons.start"),
|
|
1176
1178
|
align: "center"
|
|
1177
1179
|
}
|
|
1178
1180
|
) });
|
|
1179
1181
|
};
|
|
1180
1182
|
return /* @__PURE__ */ A(J, { brandingBorderColor: (u == null ? void 0 : u.borderColor) || null, children: [
|
|
1181
1183
|
/* @__PURE__ */ t(
|
|
1182
|
-
|
|
1184
|
+
Et,
|
|
1183
1185
|
{
|
|
1184
1186
|
entity: e.personalityQuiz,
|
|
1185
|
-
headline:
|
|
1187
|
+
headline: F("personalityQuiz.headline"),
|
|
1186
1188
|
finalImage: y,
|
|
1187
1189
|
brandingLogo: L,
|
|
1188
1190
|
renderPresentedBy: I,
|
|
1189
1191
|
rulesDisplay: e.rulesDisplay,
|
|
1190
|
-
children: /* @__PURE__ */ t(
|
|
1191
|
-
e.applyConsentGate ? D() : n ? /* @__PURE__ */ t(
|
|
1192
|
+
children: /* @__PURE__ */ t(s, { sx: x.questionArea, children: /* @__PURE__ */ A(s, { sx: x.questionAreaContent, children: [
|
|
1193
|
+
e.applyConsentGate ? D() : n ? /* @__PURE__ */ t(s, { sx: x.leadContentContainer, children: /* @__PURE__ */ t(
|
|
1192
1194
|
we,
|
|
1193
1195
|
{
|
|
1194
1196
|
sdk: e.sdk,
|
|
@@ -1208,23 +1210,23 @@ const cn = (e, n) => {
|
|
|
1208
1210
|
syncWithProfile: (de = e.leads) == null ? void 0 : de.syncWithProfile,
|
|
1209
1211
|
consents: e.leadConsents
|
|
1210
1212
|
}
|
|
1211
|
-
) }) : /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ A(
|
|
1212
|
-
|
|
1213
|
-
|
|
1213
|
+
) }) : /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ A(s, { sx: x.mainContentContainer, children: [
|
|
1214
|
+
C && /* @__PURE__ */ t(
|
|
1215
|
+
Oe,
|
|
1214
1216
|
{
|
|
1215
1217
|
ratio: "16/9",
|
|
1216
1218
|
sx: x.questionImageContainer,
|
|
1217
|
-
children: /* @__PURE__ */ t(
|
|
1219
|
+
children: /* @__PURE__ */ t(s, { sx: x.questionImageBox, children: /* @__PURE__ */ t(
|
|
1218
1220
|
"img",
|
|
1219
1221
|
{
|
|
1220
|
-
src:
|
|
1222
|
+
src: C,
|
|
1221
1223
|
alt: "Question illustration",
|
|
1222
1224
|
style: x.questionImage
|
|
1223
1225
|
}
|
|
1224
1226
|
) })
|
|
1225
1227
|
}
|
|
1226
1228
|
),
|
|
1227
|
-
/* @__PURE__ */ A(
|
|
1229
|
+
/* @__PURE__ */ A(s, { sx: x.questionSection, children: [
|
|
1228
1230
|
/* @__PURE__ */ A(w, { level: "body-lg", sx: x.questionStepsText, children: [
|
|
1229
1231
|
e.currentQuestion,
|
|
1230
1232
|
"/",
|
|
@@ -1233,29 +1235,29 @@ const cn = (e, n) => {
|
|
|
1233
1235
|
/* @__PURE__ */ t(w, { level: "body-lg", sx: x.questionText, children: e.question.question })
|
|
1234
1236
|
] }),
|
|
1235
1237
|
/* @__PURE__ */ t(
|
|
1236
|
-
|
|
1238
|
+
yt,
|
|
1237
1239
|
{
|
|
1238
1240
|
options: e.question.options || [],
|
|
1239
1241
|
answerQuestion: e.answerQuestion,
|
|
1240
1242
|
selectedOption: e.selectedOption,
|
|
1241
|
-
optionsLayout:
|
|
1242
|
-
questionImage:
|
|
1243
|
+
optionsLayout: c ? "column" : a ?? "twoByTwo",
|
|
1244
|
+
questionImage: C,
|
|
1243
1245
|
brandingColors: u
|
|
1244
1246
|
}
|
|
1245
1247
|
),
|
|
1246
|
-
/* @__PURE__ */ A(
|
|
1248
|
+
/* @__PURE__ */ A(s, { sx: x.buttonFooterContainer, children: [
|
|
1247
1249
|
/* @__PURE__ */ t(
|
|
1248
|
-
|
|
1250
|
+
vt,
|
|
1249
1251
|
{
|
|
1250
1252
|
selectedOption: e.selectedOption,
|
|
1251
|
-
endDecorator: /* @__PURE__ */ t(
|
|
1253
|
+
endDecorator: /* @__PURE__ */ t(ot, { children: /* @__PURE__ */ t(ut, {}) }),
|
|
1252
1254
|
label: g,
|
|
1253
|
-
buttonColor:
|
|
1255
|
+
buttonColor: S,
|
|
1254
1256
|
onClick: e.handleNext,
|
|
1255
1257
|
isLoading: e.isLoading
|
|
1256
1258
|
}
|
|
1257
1259
|
),
|
|
1258
|
-
L && !
|
|
1260
|
+
L && !c ? /* @__PURE__ */ t(s, { sx: x.presentedByMobile, children: I(
|
|
1259
1261
|
(u == null ? void 0 : u.contentColor) || d
|
|
1260
1262
|
) }) : /* @__PURE__ */ t(Z, {})
|
|
1261
1263
|
] })
|
|
@@ -1266,11 +1268,11 @@ const cn = (e, n) => {
|
|
|
1266
1268
|
] }) })
|
|
1267
1269
|
}
|
|
1268
1270
|
),
|
|
1269
|
-
L &&
|
|
1271
|
+
L && c && /* @__PURE__ */ t(s, { sx: { mb: z.lg, px: z.lg }, children: I(
|
|
1270
1272
|
(u == null ? void 0 : u.contentColor) || o.colorSchemes.dark.textColor
|
|
1271
1273
|
) })
|
|
1272
1274
|
] });
|
|
1273
|
-
},
|
|
1275
|
+
}, Sn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_1048'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_1048)'%3e%3cpath%20d='M12%2020.6254L5.20005%2016.9254V11.1254L1.36255%209.01289L12%203.21289L22.65%209.01464V16.7504H20.775V10.0504L18.8%2011.1254V16.9254L12%2020.6254ZM12%2012.6754L18.75%209.01289L12%205.36289L5.26255%209.01289L12%2012.6754ZM12%2018.4879L16.925%2015.8296V12.1129L12%2014.8254L7.07505%2012.1129V15.8296L12%2018.4879Z'%20fill='%23212121'/%3e%3c/g%3e%3c/svg%3e", In = "data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_504'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='25'%20height='24'%3e%3crect%20x='0.5'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_504)'%3e%3cpath%20d='M9.6875%206H11.5625V4.125H9.6875V6ZM13.4375%206V4.125H15.3125V6H13.4375ZM9.6875%2013.5V11.625H11.5625V13.5H9.6875ZM17.1875%209.75V7.875H19.0625V9.75H17.1875ZM17.1875%2013.5V11.625H19.0625V13.5H17.1875ZM13.4375%2013.5V11.625H15.3125V13.5H13.4375ZM17.1875%206V4.125H19.0625V6H17.1875ZM11.5625%207.875V6H13.4375V7.875H11.5625ZM5.9375%2019.825V4.125H7.8125V6H9.6875V7.875H7.8125V9.75H9.6875V11.625H7.8125V19.825H5.9375ZM15.3125%2011.625V9.75H17.1875V11.625H15.3125ZM11.5625%2011.625V9.75H13.4375V11.625H11.5625ZM9.6875%209.75V7.875H11.5625V9.75H9.6875ZM13.4375%209.75V7.875H15.3125V9.75H13.4375ZM15.3125%207.875V6H17.1875V7.875H15.3125Z'%20fill='%23212121'/%3e%3c/g%3e%3c/svg%3e", Pn = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_929_360'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%3e%3crect%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_929_360)'%3e%3cpath%20d='M9.22917%2014.0625H10.7917V9.1875H9.22917V14.0625ZM9.99771%207.58333C10.2215%207.58333%2010.4097%207.50771%2010.5625%207.35646C10.7153%207.20507%2010.7917%207.01757%2010.7917%206.79396C10.7917%206.57021%2010.716%206.38194%2010.5648%206.22917C10.4134%206.07639%2010.2259%206%2010.0023%206C9.77854%206%209.59028%206.07563%209.4375%206.22688C9.28472%206.37826%209.20833%206.56576%209.20833%206.78938C9.20833%207.01313%209.28396%207.20139%209.43521%207.35417C9.5866%207.50694%209.7741%207.58333%209.99771%207.58333ZM10%2018.125C8.87625%2018.125%207.82021%2017.9114%206.83187%2017.4842C5.84368%2017.0568%204.98403%2016.4769%204.25292%2015.7446C3.52181%2015.0121%202.94271%2014.1522%202.51562%2013.1648C2.08854%2012.1776%201.875%2011.1226%201.875%2010C1.875%208.87625%202.08861%207.82021%202.51583%206.83187C2.94319%205.84368%203.52306%204.98403%204.25542%204.25292C4.98792%203.52181%205.84785%202.94271%206.83521%202.51562C7.82243%202.08854%208.87736%201.875%2010%201.875C11.1237%201.875%2012.1798%202.08861%2013.1681%202.51583C14.1563%202.94319%2015.016%203.52306%2015.7471%204.25542C16.4782%204.98792%2017.0573%205.84785%2017.4844%206.83521C17.9115%207.82243%2018.125%208.87736%2018.125%2010C18.125%2011.1237%2017.9114%2012.1798%2017.4842%2013.1681C17.0568%2014.1563%2016.4769%2015.016%2015.7446%2015.7471C15.0121%2016.4782%2014.1522%2017.0573%2013.1648%2017.4844C12.1776%2017.9115%2011.1226%2018.125%2010%2018.125ZM10%2016.5625C11.8264%2016.5625%2013.3767%2015.9253%2014.651%2014.651C15.9253%2013.3767%2016.5625%2011.8264%2016.5625%2010C16.5625%208.17361%2015.9253%206.62326%2014.651%205.34896C13.3767%204.07465%2011.8264%203.4375%2010%203.4375C8.17361%203.4375%206.62326%204.07465%205.34896%205.34896C4.07465%206.62326%203.4375%208.17361%203.4375%2010C3.4375%2011.8264%204.07465%2013.3767%205.34896%2014.651C6.62326%2015.9253%208.17361%2016.5625%2010%2016.5625Z'%20fill='%23212121'%20fill-opacity='0.6'/%3e%3c/g%3e%3c/svg%3e", ft = ({
|
|
1274
1276
|
questions: e,
|
|
1275
1277
|
userParticipation: n,
|
|
1276
1278
|
resultsTabPanelSxProps: l,
|
|
@@ -1278,16 +1280,16 @@ const cn = (e, n) => {
|
|
|
1278
1280
|
children: o,
|
|
1279
1281
|
brandingColors: i
|
|
1280
1282
|
}) => {
|
|
1281
|
-
const [
|
|
1282
|
-
let
|
|
1283
|
-
i != null && i.primaryColor && (
|
|
1283
|
+
const [c, r] = He.useState(0), y = X(), { t: C } = q(), F = _(), u = oe().md, L = a ? y.colorSchemes.dark.textPrimary : Q().textPrimary, g = a ? y.colorSchemes.dark.textSecondary : Q().textSecondary, R = K().primary, T = K().secondary, P = a ? y.colorSchemes.dark.secondaryContainer : Q().secondaryContainer, S = i != null && i.backgroundColor || a ? y.colorSchemes.dark.surfaceVariant : Q().surfaceVariant, d = fe();
|
|
1284
|
+
let z = a ? y.colorSchemes.dark.textPrimary : Q().textPrimary;
|
|
1285
|
+
i != null && i.primaryColor && (z = i.primaryColor);
|
|
1284
1286
|
const h = (f, x) => {
|
|
1285
1287
|
var I;
|
|
1286
1288
|
const b = e.find(
|
|
1287
1289
|
(D) => D.questionId === f.questionId
|
|
1288
1290
|
);
|
|
1289
1291
|
return /* @__PURE__ */ t(
|
|
1290
|
-
|
|
1292
|
+
s,
|
|
1291
1293
|
{
|
|
1292
1294
|
sx: {
|
|
1293
1295
|
borderRadius: u,
|
|
@@ -1306,7 +1308,7 @@ const cn = (e, n) => {
|
|
|
1306
1308
|
left: 0,
|
|
1307
1309
|
right: 0,
|
|
1308
1310
|
bottom: 0,
|
|
1309
|
-
backgroundColor:
|
|
1311
|
+
backgroundColor: S,
|
|
1310
1312
|
opacity: 0.5,
|
|
1311
1313
|
borderRadius: "inherit",
|
|
1312
1314
|
zIndex: 0,
|
|
@@ -1318,7 +1320,7 @@ const cn = (e, n) => {
|
|
|
1318
1320
|
}
|
|
1319
1321
|
},
|
|
1320
1322
|
children: /* @__PURE__ */ A(
|
|
1321
|
-
|
|
1323
|
+
s,
|
|
1322
1324
|
{
|
|
1323
1325
|
sx: {
|
|
1324
1326
|
display: "flex",
|
|
@@ -1329,7 +1331,7 @@ const cn = (e, n) => {
|
|
|
1329
1331
|
},
|
|
1330
1332
|
children: [
|
|
1331
1333
|
/* @__PURE__ */ A(
|
|
1332
|
-
|
|
1334
|
+
s,
|
|
1333
1335
|
{
|
|
1334
1336
|
sx: {
|
|
1335
1337
|
display: "flex",
|
|
@@ -1344,7 +1346,7 @@ const cn = (e, n) => {
|
|
|
1344
1346
|
sx: {
|
|
1345
1347
|
alignSelf: "stretch",
|
|
1346
1348
|
color: g,
|
|
1347
|
-
fontFamily:
|
|
1349
|
+
fontFamily: T,
|
|
1348
1350
|
fontSize: "0.75em",
|
|
1349
1351
|
fontStyle: "normal",
|
|
1350
1352
|
fontWeight: 500,
|
|
@@ -1353,7 +1355,7 @@ const cn = (e, n) => {
|
|
|
1353
1355
|
textTransform: "uppercase"
|
|
1354
1356
|
},
|
|
1355
1357
|
children: [
|
|
1356
|
-
|
|
1358
|
+
C("classicQuiz.question"),
|
|
1357
1359
|
" ",
|
|
1358
1360
|
x + 1
|
|
1359
1361
|
]
|
|
@@ -1365,7 +1367,7 @@ const cn = (e, n) => {
|
|
|
1365
1367
|
sx: {
|
|
1366
1368
|
alignSelf: "stretch",
|
|
1367
1369
|
color: L,
|
|
1368
|
-
fontFamily:
|
|
1370
|
+
fontFamily: R,
|
|
1369
1371
|
fontSize: "1.25em",
|
|
1370
1372
|
fontStyle: "normal",
|
|
1371
1373
|
fontWeight: 500,
|
|
@@ -1378,12 +1380,12 @@ const cn = (e, n) => {
|
|
|
1378
1380
|
]
|
|
1379
1381
|
}
|
|
1380
1382
|
),
|
|
1381
|
-
/* @__PURE__ */ t(
|
|
1383
|
+
/* @__PURE__ */ t(s, { sx: { alignSelf: "stretch" }, children: /* @__PURE__ */ A(
|
|
1382
1384
|
w,
|
|
1383
1385
|
{
|
|
1384
1386
|
sx: {
|
|
1385
1387
|
color: L,
|
|
1386
|
-
fontFamily:
|
|
1388
|
+
fontFamily: T,
|
|
1387
1389
|
fontSize: "1em",
|
|
1388
1390
|
fontStyle: "normal",
|
|
1389
1391
|
fontWeight: 700,
|
|
@@ -1391,7 +1393,7 @@ const cn = (e, n) => {
|
|
|
1391
1393
|
letterSpacing: "0.15px"
|
|
1392
1394
|
},
|
|
1393
1395
|
children: [
|
|
1394
|
-
|
|
1396
|
+
C("classicQuiz.yourAnswer"),
|
|
1395
1397
|
" ",
|
|
1396
1398
|
(I = b == null ? void 0 : b.options.find(
|
|
1397
1399
|
(D) => D.optionId === f.optionId
|
|
@@ -1400,7 +1402,7 @@ const cn = (e, n) => {
|
|
|
1400
1402
|
}
|
|
1401
1403
|
) }),
|
|
1402
1404
|
b != null && b.explanation ? /* @__PURE__ */ A(
|
|
1403
|
-
|
|
1405
|
+
s,
|
|
1404
1406
|
{
|
|
1405
1407
|
sx: {
|
|
1406
1408
|
display: "flex",
|
|
@@ -1416,7 +1418,7 @@ const cn = (e, n) => {
|
|
|
1416
1418
|
/* @__PURE__ */ t(
|
|
1417
1419
|
"img",
|
|
1418
1420
|
{
|
|
1419
|
-
src:
|
|
1421
|
+
src: Pn,
|
|
1420
1422
|
alt: "explanation-icon",
|
|
1421
1423
|
style: {
|
|
1422
1424
|
display: "flex",
|
|
@@ -1434,14 +1436,14 @@ const cn = (e, n) => {
|
|
|
1434
1436
|
sx: {
|
|
1435
1437
|
flex: "1 0 0",
|
|
1436
1438
|
color: L,
|
|
1437
|
-
fontFamily:
|
|
1439
|
+
fontFamily: T,
|
|
1438
1440
|
fontSize: "0.875em",
|
|
1439
1441
|
fontStyle: "normal",
|
|
1440
1442
|
fontWeight: 400,
|
|
1441
1443
|
lineHeight: "143%",
|
|
1442
1444
|
letterSpacing: "0.17px"
|
|
1443
1445
|
},
|
|
1444
|
-
children:
|
|
1446
|
+
children: $t(b == null ? void 0 : b.explanation)
|
|
1445
1447
|
}
|
|
1446
1448
|
)
|
|
1447
1449
|
]
|
|
@@ -1455,11 +1457,11 @@ const cn = (e, n) => {
|
|
|
1455
1457
|
`user-answer-${f.questionId}`
|
|
1456
1458
|
);
|
|
1457
1459
|
};
|
|
1458
|
-
return /* @__PURE__ */ t(
|
|
1459
|
-
|
|
1460
|
+
return /* @__PURE__ */ t(s, { sx: { width: "100%" }, children: /* @__PURE__ */ A(
|
|
1461
|
+
_e,
|
|
1460
1462
|
{
|
|
1461
|
-
value:
|
|
1462
|
-
onChange: (f, x) =>
|
|
1463
|
+
value: c,
|
|
1464
|
+
onChange: (f, x) => r(x),
|
|
1463
1465
|
sx: {
|
|
1464
1466
|
borderRadius: u,
|
|
1465
1467
|
width: "100%",
|
|
@@ -1468,16 +1470,16 @@ const cn = (e, n) => {
|
|
|
1468
1470
|
},
|
|
1469
1471
|
children: [
|
|
1470
1472
|
/* @__PURE__ */ A(
|
|
1471
|
-
|
|
1473
|
+
Ge,
|
|
1472
1474
|
{
|
|
1473
1475
|
sx: {
|
|
1474
1476
|
fontSize: "1em",
|
|
1475
1477
|
"--Icon-fontSize": "1.25em",
|
|
1476
|
-
flexDirection:
|
|
1478
|
+
flexDirection: F ? "column" : "row"
|
|
1477
1479
|
},
|
|
1478
1480
|
children: [
|
|
1479
1481
|
/* @__PURE__ */ t(
|
|
1480
|
-
|
|
1482
|
+
ve,
|
|
1481
1483
|
{
|
|
1482
1484
|
sx: {
|
|
1483
1485
|
display: "flex",
|
|
@@ -1492,17 +1494,17 @@ const cn = (e, n) => {
|
|
|
1492
1494
|
bgcolor: a ? "#FAFAFA14" : "#2121210A"
|
|
1493
1495
|
// Highlight selected tab
|
|
1494
1496
|
},
|
|
1495
|
-
[`&.${
|
|
1497
|
+
[`&.${kt.selected}`]: {
|
|
1496
1498
|
bgcolor: a ? "#FAFAFA14" : "#2121210A",
|
|
1497
1499
|
// Highlight selected tab
|
|
1498
|
-
borderBottom: "3px solid " +
|
|
1500
|
+
borderBottom: "3px solid " + z,
|
|
1499
1501
|
opacity: "100%",
|
|
1500
1502
|
mb: "-1px"
|
|
1501
1503
|
}
|
|
1502
1504
|
},
|
|
1503
1505
|
disableIndicator: !0,
|
|
1504
1506
|
children: /* @__PURE__ */ A(
|
|
1505
|
-
|
|
1507
|
+
s,
|
|
1506
1508
|
{
|
|
1507
1509
|
sx: {
|
|
1508
1510
|
display: "flex",
|
|
@@ -1518,7 +1520,7 @@ const cn = (e, n) => {
|
|
|
1518
1520
|
/* @__PURE__ */ t(
|
|
1519
1521
|
"img",
|
|
1520
1522
|
{
|
|
1521
|
-
src:
|
|
1523
|
+
src: In,
|
|
1522
1524
|
alt: "answers-icon",
|
|
1523
1525
|
style: {
|
|
1524
1526
|
display: "flex",
|
|
@@ -1535,7 +1537,7 @@ const cn = (e, n) => {
|
|
|
1535
1537
|
{
|
|
1536
1538
|
sx: {
|
|
1537
1539
|
color: g,
|
|
1538
|
-
fontFamily:
|
|
1540
|
+
fontFamily: R,
|
|
1539
1541
|
fontSize: "1em",
|
|
1540
1542
|
fontStyle: "normal",
|
|
1541
1543
|
fontWeight: 500,
|
|
@@ -1543,7 +1545,7 @@ const cn = (e, n) => {
|
|
|
1543
1545
|
letterSpacing: "0.4px",
|
|
1544
1546
|
textTransform: "uppercase"
|
|
1545
1547
|
},
|
|
1546
|
-
children:
|
|
1548
|
+
children: C("classicQuiz.results")
|
|
1547
1549
|
}
|
|
1548
1550
|
)
|
|
1549
1551
|
]
|
|
@@ -1552,7 +1554,7 @@ const cn = (e, n) => {
|
|
|
1552
1554
|
}
|
|
1553
1555
|
),
|
|
1554
1556
|
/* @__PURE__ */ t(
|
|
1555
|
-
|
|
1557
|
+
ve,
|
|
1556
1558
|
{
|
|
1557
1559
|
sx: {
|
|
1558
1560
|
display: "flex",
|
|
@@ -1567,17 +1569,17 @@ const cn = (e, n) => {
|
|
|
1567
1569
|
bgcolor: a ? "#FAFAFA14" : "#2121210A"
|
|
1568
1570
|
// Highlight selected tab
|
|
1569
1571
|
},
|
|
1570
|
-
[`&.${
|
|
1572
|
+
[`&.${kt.selected}`]: {
|
|
1571
1573
|
bgcolor: a ? "#FAFAFA14" : "#2121210A",
|
|
1572
1574
|
// Highlight selected tab
|
|
1573
|
-
borderBottom: "3px solid " +
|
|
1575
|
+
borderBottom: "3px solid " + z,
|
|
1574
1576
|
opacity: "100%",
|
|
1575
1577
|
mb: "-1px"
|
|
1576
1578
|
}
|
|
1577
1579
|
},
|
|
1578
1580
|
disableIndicator: !0,
|
|
1579
1581
|
children: /* @__PURE__ */ A(
|
|
1580
|
-
|
|
1582
|
+
s,
|
|
1581
1583
|
{
|
|
1582
1584
|
sx: {
|
|
1583
1585
|
display: "flex",
|
|
@@ -1593,7 +1595,7 @@ const cn = (e, n) => {
|
|
|
1593
1595
|
/* @__PURE__ */ t(
|
|
1594
1596
|
"img",
|
|
1595
1597
|
{
|
|
1596
|
-
src:
|
|
1598
|
+
src: Sn,
|
|
1597
1599
|
alt: "answers-icon",
|
|
1598
1600
|
style: {
|
|
1599
1601
|
display: "flex",
|
|
@@ -1610,7 +1612,7 @@ const cn = (e, n) => {
|
|
|
1610
1612
|
{
|
|
1611
1613
|
sx: {
|
|
1612
1614
|
color: g,
|
|
1613
|
-
fontFamily:
|
|
1615
|
+
fontFamily: R,
|
|
1614
1616
|
fontSize: "1em",
|
|
1615
1617
|
fontStyle: "normal",
|
|
1616
1618
|
fontWeight: 500,
|
|
@@ -1618,7 +1620,7 @@ const cn = (e, n) => {
|
|
|
1618
1620
|
letterSpacing: "0.4px",
|
|
1619
1621
|
textTransform: "uppercase"
|
|
1620
1622
|
},
|
|
1621
|
-
children:
|
|
1623
|
+
children: C("classicQuiz.answers")
|
|
1622
1624
|
}
|
|
1623
1625
|
)
|
|
1624
1626
|
]
|
|
@@ -1629,9 +1631,9 @@ const cn = (e, n) => {
|
|
|
1629
1631
|
]
|
|
1630
1632
|
}
|
|
1631
1633
|
),
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1634
|
+
c === 0 && /* @__PURE__ */ t(Be, { value: 0, sx: { ...l, fontSize: "1em" }, children: o }),
|
|
1635
|
+
c === 1 && /* @__PURE__ */ t(
|
|
1636
|
+
Be,
|
|
1635
1637
|
{
|
|
1636
1638
|
value: 1,
|
|
1637
1639
|
sx: {
|
|
@@ -1640,7 +1642,7 @@ const cn = (e, n) => {
|
|
|
1640
1642
|
fontSize: "1em"
|
|
1641
1643
|
},
|
|
1642
1644
|
children: /* @__PURE__ */ t(
|
|
1643
|
-
|
|
1645
|
+
s,
|
|
1644
1646
|
{
|
|
1645
1647
|
sx: {
|
|
1646
1648
|
display: "flex",
|
|
@@ -1658,7 +1660,7 @@ const cn = (e, n) => {
|
|
|
1658
1660
|
]
|
|
1659
1661
|
}
|
|
1660
1662
|
) });
|
|
1661
|
-
},
|
|
1663
|
+
}, zn = (e) => ({
|
|
1662
1664
|
// Main content area
|
|
1663
1665
|
mainContentArea: {
|
|
1664
1666
|
flex: "1",
|
|
@@ -2216,16 +2218,16 @@ const cn = (e, n) => {
|
|
|
2216
2218
|
mt: e.spacingScale.xs,
|
|
2217
2219
|
overflow: "hidden"
|
|
2218
2220
|
}
|
|
2219
|
-
}),
|
|
2221
|
+
}), An = (e, n) => {
|
|
2220
2222
|
switch (e) {
|
|
2221
2223
|
case "success":
|
|
2222
|
-
return /* @__PURE__ */ t(
|
|
2224
|
+
return /* @__PURE__ */ t(sn, {});
|
|
2223
2225
|
case "error":
|
|
2224
|
-
return /* @__PURE__ */ t(
|
|
2226
|
+
return /* @__PURE__ */ t(dn, { sx: { color: n } });
|
|
2225
2227
|
case "info":
|
|
2226
|
-
return /* @__PURE__ */ t(
|
|
2228
|
+
return /* @__PURE__ */ t(cn, {});
|
|
2227
2229
|
}
|
|
2228
|
-
},
|
|
2230
|
+
}, Tn = (e) => {
|
|
2229
2231
|
switch (e) {
|
|
2230
2232
|
case "success":
|
|
2231
2233
|
return "success";
|
|
@@ -2234,19 +2236,19 @@ const cn = (e, n) => {
|
|
|
2234
2236
|
case "info":
|
|
2235
2237
|
return "primary";
|
|
2236
2238
|
}
|
|
2237
|
-
},
|
|
2239
|
+
}, xt = ({
|
|
2238
2240
|
variant: e,
|
|
2239
2241
|
title: n,
|
|
2240
2242
|
message: l,
|
|
2241
2243
|
description: a
|
|
2242
2244
|
}) => {
|
|
2243
|
-
const o = X(), i = oe(),
|
|
2245
|
+
const o = X(), i = oe(), c = K().secondary, r = Tn(e);
|
|
2244
2246
|
return /* @__PURE__ */ t(
|
|
2245
|
-
|
|
2247
|
+
on,
|
|
2246
2248
|
{
|
|
2247
2249
|
variant: "soft",
|
|
2248
|
-
color:
|
|
2249
|
-
startDecorator:
|
|
2250
|
+
color: r,
|
|
2251
|
+
startDecorator: An(
|
|
2250
2252
|
e,
|
|
2251
2253
|
o.colorSchemes.light.palette.danger.plainColor
|
|
2252
2254
|
),
|
|
@@ -2257,7 +2259,7 @@ const cn = (e, n) => {
|
|
|
2257
2259
|
"--Icon-fontSize": "1.25em"
|
|
2258
2260
|
},
|
|
2259
2261
|
children: /* @__PURE__ */ A(
|
|
2260
|
-
|
|
2262
|
+
rn,
|
|
2261
2263
|
{
|
|
2262
2264
|
sx: {
|
|
2263
2265
|
fontSize: "1.5em"
|
|
@@ -2267,9 +2269,9 @@ const cn = (e, n) => {
|
|
|
2267
2269
|
w,
|
|
2268
2270
|
{
|
|
2269
2271
|
level: "title-md",
|
|
2270
|
-
color:
|
|
2272
|
+
color: r,
|
|
2271
2273
|
fontWeight: "bold",
|
|
2272
|
-
sx: { fontFamily:
|
|
2274
|
+
sx: { fontFamily: c, fontSize: "0.875em" },
|
|
2273
2275
|
children: n
|
|
2274
2276
|
}
|
|
2275
2277
|
),
|
|
@@ -2277,7 +2279,7 @@ const cn = (e, n) => {
|
|
|
2277
2279
|
w,
|
|
2278
2280
|
{
|
|
2279
2281
|
level: "body-sm",
|
|
2280
|
-
sx: { fontFamily:
|
|
2282
|
+
sx: { fontFamily: c, fontSize: "0.675em" },
|
|
2281
2283
|
children: l
|
|
2282
2284
|
}
|
|
2283
2285
|
),
|
|
@@ -2285,7 +2287,7 @@ const cn = (e, n) => {
|
|
|
2285
2287
|
w,
|
|
2286
2288
|
{
|
|
2287
2289
|
level: "body-xs",
|
|
2288
|
-
sx: { fontFamily:
|
|
2290
|
+
sx: { fontFamily: c, fontSize: "0.6em" },
|
|
2289
2291
|
children: a
|
|
2290
2292
|
}
|
|
2291
2293
|
)
|
|
@@ -2294,7 +2296,7 @@ const cn = (e, n) => {
|
|
|
2294
2296
|
)
|
|
2295
2297
|
}
|
|
2296
2298
|
);
|
|
2297
|
-
},
|
|
2299
|
+
}, ht = (e, n) => !n.personas || !e.personaResults ? [] : n.personas.map((a) => {
|
|
2298
2300
|
const o = e.personaResults.find(
|
|
2299
2301
|
(i) => i.personaId === a.personaId
|
|
2300
2302
|
);
|
|
@@ -2304,7 +2306,7 @@ const cn = (e, n) => {
|
|
|
2304
2306
|
} : null;
|
|
2305
2307
|
}).filter(
|
|
2306
2308
|
(a) => a !== null && a.percent > 0
|
|
2307
|
-
).sort((a, o) => o.percent - a.percent),
|
|
2309
|
+
).sort((a, o) => o.percent - a.percent), kn = (e) => ({
|
|
2308
2310
|
// Content wrapper
|
|
2309
2311
|
contentWrapper: {
|
|
2310
2312
|
display: "flex",
|
|
@@ -2525,41 +2527,41 @@ const cn = (e, n) => {
|
|
|
2525
2527
|
textAlign: "center",
|
|
2526
2528
|
fontStyle: "italic"
|
|
2527
2529
|
}
|
|
2528
|
-
}),
|
|
2530
|
+
}), Fn = ({
|
|
2529
2531
|
personas: e
|
|
2530
2532
|
}) => {
|
|
2531
|
-
const [n, l] =
|
|
2532
|
-
spacingScale:
|
|
2533
|
+
const [n, l] = j(0), a = X(), o = Q(), i = oe(), c = K(), r = fe(), y = _(), C = o.textPrimary, F = o.palette.primary.plainColor, u = o.textColor, L = `rgba(${ke(o.surfaceVariant || "")}, 0.5)`, g = o.surfaceVariant, R = a.colorSchemes.light.palette.success.plainColor, T = a.colorSchemes.light.palette.primary.onPrimary, P = kn({
|
|
2534
|
+
spacingScale: r,
|
|
2533
2535
|
borderRadius: i,
|
|
2534
|
-
fontFamilyPrimary:
|
|
2535
|
-
fontFamilySecondary:
|
|
2536
|
-
textPrimary:
|
|
2537
|
-
primaryColor:
|
|
2536
|
+
fontFamilyPrimary: c.primary,
|
|
2537
|
+
fontFamilySecondary: c.secondary,
|
|
2538
|
+
textPrimary: C,
|
|
2539
|
+
primaryColor: F,
|
|
2538
2540
|
textColor: u,
|
|
2539
2541
|
surfaceVariant: L,
|
|
2540
2542
|
surfaceVariantHover: g,
|
|
2541
|
-
successColor:
|
|
2542
|
-
onPrimaryColor:
|
|
2543
|
+
successColor: R,
|
|
2544
|
+
onPrimaryColor: T,
|
|
2543
2545
|
isMobile: y
|
|
2544
2546
|
});
|
|
2545
|
-
return !e || e.length === 0 ? null : /* @__PURE__ */ t(
|
|
2546
|
-
|
|
2547
|
+
return !e || e.length === 0 ? null : /* @__PURE__ */ t(s, { sx: P.contentWrapper, children: /* @__PURE__ */ t(s, { sx: P.personalityResultsContainer, children: /* @__PURE__ */ A(
|
|
2548
|
+
_e,
|
|
2547
2549
|
{
|
|
2548
2550
|
value: n,
|
|
2549
|
-
onChange: (
|
|
2551
|
+
onChange: (S, d) => l(d),
|
|
2550
2552
|
sx: P.tabsContainer,
|
|
2551
2553
|
children: [
|
|
2552
|
-
/* @__PURE__ */ t(
|
|
2554
|
+
/* @__PURE__ */ t(Ge, { sx: P.tabList, children: e.map((S, d) => {
|
|
2553
2555
|
var I, D;
|
|
2554
|
-
const
|
|
2556
|
+
const z = d === 0, h = Te(S.images), f = ((I = S.images) == null ? void 0 : I.mobile) || ((D = S.images) == null ? void 0 : D.main), x = y ? !!f : !!h && !S.description, b = y ? f : h;
|
|
2555
2557
|
return /* @__PURE__ */ t(
|
|
2556
|
-
|
|
2558
|
+
ve,
|
|
2557
2559
|
{
|
|
2558
2560
|
value: d,
|
|
2559
|
-
sx: [P.tab,
|
|
2560
|
-
children: /* @__PURE__ */ A(
|
|
2561
|
+
sx: [P.tab, z && P.tabFirst],
|
|
2562
|
+
children: /* @__PURE__ */ A(s, { sx: P.tabLabelContainer, children: [
|
|
2561
2563
|
x && b && /* @__PURE__ */ t(
|
|
2562
|
-
|
|
2564
|
+
s,
|
|
2563
2565
|
{
|
|
2564
2566
|
sx: [
|
|
2565
2567
|
P.tabLogo,
|
|
@@ -2567,114 +2569,114 @@ const cn = (e, n) => {
|
|
|
2567
2569
|
]
|
|
2568
2570
|
}
|
|
2569
2571
|
),
|
|
2570
|
-
/* @__PURE__ */ t(w, { sx: P.tabLabel, children:
|
|
2572
|
+
/* @__PURE__ */ t(w, { sx: P.tabLabel, children: S.title }),
|
|
2571
2573
|
/* @__PURE__ */ A(w, { sx: P.percentageChip, children: [
|
|
2572
|
-
|
|
2574
|
+
S.percent,
|
|
2573
2575
|
"%"
|
|
2574
2576
|
] })
|
|
2575
2577
|
] })
|
|
2576
2578
|
},
|
|
2577
|
-
|
|
2579
|
+
S.personaId
|
|
2578
2580
|
);
|
|
2579
2581
|
}) }),
|
|
2580
|
-
e.filter((
|
|
2582
|
+
e.filter((S) => S.description).map((S) => {
|
|
2581
2583
|
const d = e.findIndex(
|
|
2582
|
-
(h) => h.personaId ===
|
|
2583
|
-
),
|
|
2584
|
+
(h) => h.personaId === S.personaId
|
|
2585
|
+
), z = Te(S.images);
|
|
2584
2586
|
return /* @__PURE__ */ t(
|
|
2585
|
-
|
|
2587
|
+
Be,
|
|
2586
2588
|
{
|
|
2587
2589
|
value: d,
|
|
2588
2590
|
sx: P.tabPanel,
|
|
2589
|
-
children: /* @__PURE__ */ t(
|
|
2590
|
-
/* @__PURE__ */ t(
|
|
2591
|
-
|
|
2591
|
+
children: /* @__PURE__ */ t(s, { sx: P.tabContent, children: z && !y ? /* @__PURE__ */ A(s, { sx: P.contentWithImageAndDescription, children: [
|
|
2592
|
+
/* @__PURE__ */ t(s, { sx: P.imageSection, children: /* @__PURE__ */ t(
|
|
2593
|
+
s,
|
|
2592
2594
|
{
|
|
2593
2595
|
sx: [
|
|
2594
2596
|
P.personaImageLarge,
|
|
2595
|
-
{ backgroundImage: `url("${
|
|
2597
|
+
{ backgroundImage: `url("${z}")` }
|
|
2596
2598
|
]
|
|
2597
2599
|
}
|
|
2598
2600
|
) }),
|
|
2599
|
-
/* @__PURE__ */ t(
|
|
2601
|
+
/* @__PURE__ */ t(s, { sx: P.descriptionSection, children: /* @__PURE__ */ t(
|
|
2600
2602
|
"span",
|
|
2601
2603
|
{
|
|
2602
2604
|
style: {
|
|
2603
|
-
fontFamily:
|
|
2605
|
+
fontFamily: c.secondary,
|
|
2604
2606
|
color: u,
|
|
2605
2607
|
lineHeight: 1.6,
|
|
2606
2608
|
fontSize: "0.95em",
|
|
2607
2609
|
opacity: 0.9
|
|
2608
2610
|
},
|
|
2609
2611
|
dangerouslySetInnerHTML: {
|
|
2610
|
-
__html:
|
|
2612
|
+
__html: S.description
|
|
2611
2613
|
}
|
|
2612
2614
|
}
|
|
2613
2615
|
) })
|
|
2614
|
-
] }) : /* @__PURE__ */ t(
|
|
2616
|
+
] }) : /* @__PURE__ */ t(s, { sx: P.contentDescriptionOnly, children: /* @__PURE__ */ t(
|
|
2615
2617
|
"span",
|
|
2616
2618
|
{
|
|
2617
2619
|
style: {
|
|
2618
|
-
fontFamily:
|
|
2620
|
+
fontFamily: c.secondary,
|
|
2619
2621
|
color: u,
|
|
2620
2622
|
lineHeight: 1.6,
|
|
2621
2623
|
fontSize: "0.95em",
|
|
2622
2624
|
opacity: 0.9
|
|
2623
2625
|
},
|
|
2624
2626
|
dangerouslySetInnerHTML: {
|
|
2625
|
-
__html:
|
|
2627
|
+
__html: S.description
|
|
2626
2628
|
}
|
|
2627
2629
|
}
|
|
2628
2630
|
) }) })
|
|
2629
2631
|
},
|
|
2630
|
-
|
|
2632
|
+
S.personaId
|
|
2631
2633
|
);
|
|
2632
2634
|
})
|
|
2633
2635
|
]
|
|
2634
2636
|
}
|
|
2635
2637
|
) }) });
|
|
2636
|
-
},
|
|
2637
|
-
var I, D,
|
|
2638
|
-
const n = X(), l =
|
|
2638
|
+
}, Rn = (e) => {
|
|
2639
|
+
var I, D, v, U, H;
|
|
2640
|
+
const n = X(), l = be(
|
|
2639
2641
|
{
|
|
2640
2642
|
images: e.personalityQuiz.images,
|
|
2641
2643
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
2642
2644
|
},
|
|
2643
2645
|
p.STANDARD
|
|
2644
|
-
), { t: a } = q(), o = ((I = e.personalityQuiz.branding) == null ? void 0 : I.colors) || null, i = _() ? ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mobileLogo) || ((
|
|
2646
|
+
), { t: a } = q(), o = ((I = e.personalityQuiz.branding) == null ? void 0 : I.colors) || null, i = _() ? ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mobileLogo) || ((v = e.personalityQuiz.branding) == null ? void 0 : v.images.mainLogo) || "" : ((U = e.personalityQuiz.branding) == null ? void 0 : U.images.mainLogo) || "", c = e.imagePosition || "left", r = Q().textPrimary, y = (o == null ? void 0 : o.primaryColor) || Q().palette.primary.plainColor, C = (o == null ? void 0 : o.secondaryColor) || Q().textSecondary, F = Q().secondaryContainer, u = (o == null ? void 0 : o.contentColor) || Q().textColor, L = K().secondary, g = K().primary, R = (o == null ? void 0 : o.backgroundColor) || Q().surface, T = Q().onSurface, P = oe(), S = nt().size, d = fe(), z = `rgba(${ke(
|
|
2645
2647
|
Q().surfaceVariant || ""
|
|
2646
|
-
)}, 0.5)`, h =
|
|
2648
|
+
)}, 0.5)`, h = zn({
|
|
2647
2649
|
spacingScale: d,
|
|
2648
2650
|
borderRadius: P,
|
|
2649
2651
|
fontFamilyPrimary: g,
|
|
2650
2652
|
fontFamilySecondary: L,
|
|
2651
|
-
textPrimary:
|
|
2653
|
+
textPrimary: r,
|
|
2652
2654
|
primaryColor: y,
|
|
2653
|
-
secondaryColor:
|
|
2654
|
-
secondaryContainer:
|
|
2655
|
+
secondaryColor: C,
|
|
2656
|
+
secondaryContainer: F,
|
|
2655
2657
|
textColor: u,
|
|
2656
|
-
bgcolor:
|
|
2657
|
-
onSurfaceColor:
|
|
2658
|
-
borderSize:
|
|
2659
|
-
surfaceVariant:
|
|
2658
|
+
bgcolor: R,
|
|
2659
|
+
onSurfaceColor: T,
|
|
2660
|
+
borderSize: S,
|
|
2661
|
+
surfaceVariant: z,
|
|
2660
2662
|
successColor: n.colorSchemes.light.palette.success.plainColor,
|
|
2661
2663
|
dangerColor: n.colorSchemes.light.palette.danger.plainColor,
|
|
2662
2664
|
onPrimaryColor: n.colorSchemes.light.palette.primary.onPrimary
|
|
2663
|
-
}), f =
|
|
2665
|
+
}), f = ht(
|
|
2664
2666
|
e.personalityQuiz,
|
|
2665
2667
|
e.summary
|
|
2666
|
-
), x = () => /* @__PURE__ */ t(
|
|
2668
|
+
), x = () => /* @__PURE__ */ t(Fn, { personas: f }), b = () => {
|
|
2667
2669
|
var E, m;
|
|
2668
|
-
return /* @__PURE__ */ t(
|
|
2670
|
+
return /* @__PURE__ */ t(s, { sx: h.mainContentArea, children: e.summary.personalityQuizId ? /* @__PURE__ */ A(Z, { children: [
|
|
2669
2671
|
x(),
|
|
2670
|
-
e.chanceGameContent && /* @__PURE__ */ t(
|
|
2672
|
+
e.chanceGameContent && /* @__PURE__ */ t(s, { sx: { p: d.md }, children: e.chanceGameContent }),
|
|
2671
2673
|
(i || e.additionalCTA !== void 0 || !e.maxAttemptsReached) && /* @__PURE__ */ A(
|
|
2672
|
-
|
|
2674
|
+
s,
|
|
2673
2675
|
{
|
|
2674
2676
|
sx: i ? h.buttonsContainer : h.buttonsContainerNoLogo,
|
|
2675
2677
|
children: [
|
|
2676
2678
|
i && /* @__PURE__ */ t(
|
|
2677
|
-
|
|
2679
|
+
M,
|
|
2678
2680
|
{
|
|
2679
2681
|
brandingLogo: i,
|
|
2680
2682
|
textColor: u,
|
|
@@ -2682,7 +2684,7 @@ const cn = (e, n) => {
|
|
|
2682
2684
|
}
|
|
2683
2685
|
),
|
|
2684
2686
|
/* @__PURE__ */ t(
|
|
2685
|
-
|
|
2687
|
+
rt,
|
|
2686
2688
|
{
|
|
2687
2689
|
additionalCTA: e.additionalCTA,
|
|
2688
2690
|
buttonStyle: h.additionalCTAButton,
|
|
@@ -2695,8 +2697,8 @@ const cn = (e, n) => {
|
|
|
2695
2697
|
{
|
|
2696
2698
|
sx: h.playAgainButton,
|
|
2697
2699
|
onClick: e.playAgain,
|
|
2698
|
-
children: /* @__PURE__ */ A(
|
|
2699
|
-
/* @__PURE__ */ t(
|
|
2700
|
+
children: /* @__PURE__ */ A(s, { sx: h.playAgainButtonContent, children: [
|
|
2701
|
+
/* @__PURE__ */ t(gt, { sx: h.playAgainIcon }),
|
|
2700
2702
|
/* @__PURE__ */ t(w, { sx: h.playAgainText, children: a("personalityQuiz.buttons.playAgain") })
|
|
2701
2703
|
] })
|
|
2702
2704
|
}
|
|
@@ -2706,7 +2708,7 @@ const cn = (e, n) => {
|
|
|
2706
2708
|
)
|
|
2707
2709
|
] }) : /* @__PURE__ */ A(Z, { children: [
|
|
2708
2710
|
/* @__PURE__ */ t(
|
|
2709
|
-
|
|
2711
|
+
xt,
|
|
2710
2712
|
{
|
|
2711
2713
|
variant: "error",
|
|
2712
2714
|
title: a("common.authentication.accessRequired"),
|
|
@@ -2714,7 +2716,7 @@ const cn = (e, n) => {
|
|
|
2714
2716
|
}
|
|
2715
2717
|
),
|
|
2716
2718
|
i ? /* @__PURE__ */ t(
|
|
2717
|
-
|
|
2719
|
+
M,
|
|
2718
2720
|
{
|
|
2719
2721
|
brandingLogo: i,
|
|
2720
2722
|
textColor: u,
|
|
@@ -2724,7 +2726,7 @@ const cn = (e, n) => {
|
|
|
2724
2726
|
] }) });
|
|
2725
2727
|
};
|
|
2726
2728
|
return /* @__PURE__ */ t(J, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
|
|
2727
|
-
|
|
2729
|
+
ft,
|
|
2728
2730
|
{
|
|
2729
2731
|
questions: e.personalityQuiz.questions,
|
|
2730
2732
|
userParticipation: e.summary.questions,
|
|
@@ -2736,24 +2738,24 @@ const cn = (e, n) => {
|
|
|
2736
2738
|
pb: 0,
|
|
2737
2739
|
pt: 0
|
|
2738
2740
|
},
|
|
2739
|
-
children: /* @__PURE__ */ t(
|
|
2740
|
-
|
|
2741
|
+
children: /* @__PURE__ */ t(s, { sx: h.scoreStateWrapperContainer, children: /* @__PURE__ */ t(
|
|
2742
|
+
Pt,
|
|
2741
2743
|
{
|
|
2742
2744
|
finalImage: l,
|
|
2743
|
-
imagePosition:
|
|
2745
|
+
imagePosition: c,
|
|
2744
2746
|
children: b()
|
|
2745
2747
|
}
|
|
2746
2748
|
) })
|
|
2747
2749
|
}
|
|
2748
2750
|
) : /* @__PURE__ */ t(
|
|
2749
|
-
|
|
2751
|
+
Pt,
|
|
2750
2752
|
{
|
|
2751
2753
|
finalImage: l,
|
|
2752
|
-
imagePosition:
|
|
2754
|
+
imagePosition: c,
|
|
2753
2755
|
children: b()
|
|
2754
2756
|
}
|
|
2755
2757
|
) });
|
|
2756
|
-
},
|
|
2758
|
+
}, Qn = (e) => ({
|
|
2757
2759
|
// Question area content wrapper
|
|
2758
2760
|
questionAreaContent: {
|
|
2759
2761
|
p: e.spacingScale.lg,
|
|
@@ -3084,7 +3086,7 @@ const cn = (e, n) => {
|
|
|
3084
3086
|
alertMessageWrapper: {
|
|
3085
3087
|
p: e.spacingScale.lg
|
|
3086
3088
|
}
|
|
3087
|
-
}),
|
|
3089
|
+
}), wn = (e) => ({
|
|
3088
3090
|
// Content wrapper
|
|
3089
3091
|
contentWrapper: {
|
|
3090
3092
|
display: "flex",
|
|
@@ -3296,48 +3298,48 @@ const cn = (e, n) => {
|
|
|
3296
3298
|
fontFamily: e.fontFamilyPrimary,
|
|
3297
3299
|
fontStyle: "italic"
|
|
3298
3300
|
}
|
|
3299
|
-
}),
|
|
3300
|
-
const [l, a] =
|
|
3301
|
+
}), Ln = ({ personas: e, brandingColors: n }) => {
|
|
3302
|
+
const [l, a] = j(0), o = X(), i = Q(), c = oe(), r = K(), y = fe(), C = _(), F = i.textPrimary, u = (n == null ? void 0 : n.primaryColor) || i.palette.primary.plainColor, L = i.textColor, g = `rgba(${ke(i.surfaceVariant || "")}, 0.5)`, R = i.surfaceVariant, T = o.colorSchemes.light.palette.success.plainColor, P = o.colorSchemes.light.palette.primary.onPrimary, S = wn({
|
|
3301
3303
|
spacingScale: y,
|
|
3302
|
-
borderRadius:
|
|
3303
|
-
fontFamilyPrimary:
|
|
3304
|
-
fontFamilySecondary:
|
|
3305
|
-
textPrimary:
|
|
3304
|
+
borderRadius: c,
|
|
3305
|
+
fontFamilyPrimary: r.primary,
|
|
3306
|
+
fontFamilySecondary: r.secondary,
|
|
3307
|
+
textPrimary: F,
|
|
3306
3308
|
primaryColor: u,
|
|
3307
3309
|
textColor: L,
|
|
3308
3310
|
surfaceVariant: g,
|
|
3309
|
-
surfaceVariantHover:
|
|
3310
|
-
successColor:
|
|
3311
|
+
surfaceVariantHover: R,
|
|
3312
|
+
successColor: T,
|
|
3311
3313
|
onPrimaryColor: P,
|
|
3312
|
-
isMobile:
|
|
3314
|
+
isMobile: C
|
|
3313
3315
|
});
|
|
3314
|
-
return !e || e.length === 0 ? null : /* @__PURE__ */ t(
|
|
3315
|
-
|
|
3316
|
+
return !e || e.length === 0 ? null : /* @__PURE__ */ t(s, { sx: S.contentWrapper, children: /* @__PURE__ */ A(
|
|
3317
|
+
_e,
|
|
3316
3318
|
{
|
|
3317
3319
|
value: l,
|
|
3318
|
-
onChange: (d,
|
|
3319
|
-
sx:
|
|
3320
|
+
onChange: (d, z) => a(z),
|
|
3321
|
+
sx: S.tabsContainer,
|
|
3320
3322
|
children: [
|
|
3321
|
-
/* @__PURE__ */ t(
|
|
3322
|
-
var D,
|
|
3323
|
-
const h =
|
|
3323
|
+
/* @__PURE__ */ t(Ge, { sx: S.tabList, children: e.map((d, z) => {
|
|
3324
|
+
var D, v;
|
|
3325
|
+
const h = z === 0, f = Te(d.images), x = ((D = d.images) == null ? void 0 : D.mobile) || ((v = d.images) == null ? void 0 : v.main), b = !!f, I = x || f;
|
|
3324
3326
|
return /* @__PURE__ */ t(
|
|
3325
|
-
|
|
3327
|
+
ve,
|
|
3326
3328
|
{
|
|
3327
|
-
value:
|
|
3328
|
-
sx: [
|
|
3329
|
-
children: /* @__PURE__ */ A(
|
|
3329
|
+
value: z,
|
|
3330
|
+
sx: [S.tab, h && S.tabFirst],
|
|
3331
|
+
children: /* @__PURE__ */ A(s, { sx: S.tabLabelContainer, children: [
|
|
3330
3332
|
b && I && /* @__PURE__ */ t(
|
|
3331
|
-
|
|
3333
|
+
s,
|
|
3332
3334
|
{
|
|
3333
3335
|
sx: [
|
|
3334
|
-
|
|
3336
|
+
S.tabLogo,
|
|
3335
3337
|
{ backgroundImage: `url("${I}")` }
|
|
3336
3338
|
]
|
|
3337
3339
|
}
|
|
3338
3340
|
),
|
|
3339
|
-
/* @__PURE__ */ t(w, { sx:
|
|
3340
|
-
/* @__PURE__ */ A(w, { sx:
|
|
3341
|
+
/* @__PURE__ */ t(w, { sx: S.tabLabel, children: d.title }),
|
|
3342
|
+
/* @__PURE__ */ A(w, { sx: S.percentageChip, children: [
|
|
3341
3343
|
d.percent,
|
|
3342
3344
|
"%"
|
|
3343
3345
|
] })
|
|
@@ -3347,20 +3349,20 @@ const cn = (e, n) => {
|
|
|
3347
3349
|
);
|
|
3348
3350
|
}) }),
|
|
3349
3351
|
e.filter((d) => d.description).map((d) => {
|
|
3350
|
-
const
|
|
3352
|
+
const z = e.findIndex(
|
|
3351
3353
|
(h) => h.personaId === d.personaId
|
|
3352
3354
|
);
|
|
3353
3355
|
return /* @__PURE__ */ t(
|
|
3354
|
-
|
|
3356
|
+
Be,
|
|
3355
3357
|
{
|
|
3356
|
-
value:
|
|
3357
|
-
sx:
|
|
3358
|
-
children: /* @__PURE__ */ t(
|
|
3358
|
+
value: z,
|
|
3359
|
+
sx: S.tabPanel,
|
|
3360
|
+
children: /* @__PURE__ */ t(s, { sx: S.tabContent, children: /* @__PURE__ */ t(s, { sx: S.contentDescriptionOnly, children: /* @__PURE__ */ t(
|
|
3359
3361
|
"span",
|
|
3360
3362
|
{
|
|
3361
3363
|
style: {
|
|
3362
3364
|
color: L,
|
|
3363
|
-
fontFamily:
|
|
3365
|
+
fontFamily: r.primary,
|
|
3364
3366
|
lineHeight: 1.6
|
|
3365
3367
|
},
|
|
3366
3368
|
dangerouslySetInnerHTML: {
|
|
@@ -3375,59 +3377,59 @@ const cn = (e, n) => {
|
|
|
3375
3377
|
]
|
|
3376
3378
|
}
|
|
3377
3379
|
) });
|
|
3378
|
-
},
|
|
3379
|
-
var
|
|
3380
|
-
const n = X(), { t: l } = q(), a = _(), o =
|
|
3380
|
+
}, Dn = (e) => {
|
|
3381
|
+
var U, H, E, m, W, $, V, ee, te, ie, re, se, me, ne;
|
|
3382
|
+
const n = X(), { t: l } = q(), a = _(), o = lt(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ie : Pe, c = be(
|
|
3381
3383
|
{
|
|
3382
3384
|
images: e.personalityQuiz.images,
|
|
3383
3385
|
imagePlaceholder: i
|
|
3384
3386
|
},
|
|
3385
3387
|
p.SPLIT
|
|
3386
|
-
),
|
|
3388
|
+
), r = ((U = e.personalityQuiz.branding) == null ? void 0 : U.colors) || null, y = Q().textPrimary, C = (r == null ? void 0 : r.primaryColor) || ((E = (H = Q().palette) == null ? void 0 : H.primary) == null ? void 0 : E.plainColor), F = (r == null ? void 0 : r.secondaryColor) || Q().textSecondary, u = Q().secondaryContainer, L = (W = (m = Q().palette) == null ? void 0 : m.primary) == null ? void 0 : W.onPrimary, g = K().secondary, R = K().primary, T = (r == null ? void 0 : r.backgroundColor) || Q().surfaceVariant, P = Q().surface, S = Q().onSurface, d = oe(), z = Q().textColor, h = fe(), f = a ? (($ = e.personalityQuiz.branding) == null ? void 0 : $.images.mobileLogo) || ((V = e.personalityQuiz.branding) == null ? void 0 : V.images.mainLogo) || "" : ((ee = e.personalityQuiz.branding) == null ? void 0 : ee.images.mainLogo) || "", x = ht(
|
|
3387
3389
|
e.personalityQuiz,
|
|
3388
3390
|
e.summary
|
|
3389
3391
|
), b = !o && f ? /* @__PURE__ */ t(
|
|
3390
|
-
|
|
3392
|
+
M,
|
|
3391
3393
|
{
|
|
3392
3394
|
brandingLogo: f,
|
|
3393
|
-
textColor: (
|
|
3395
|
+
textColor: (r == null ? void 0 : r.contentColor) || n.colorSchemes.dark.textColor,
|
|
3394
3396
|
label: ((te = e.personalityQuiz.labels) == null ? void 0 : te.sponsor) || null
|
|
3395
3397
|
}
|
|
3396
|
-
) : null, I =
|
|
3398
|
+
) : null, I = Qn({
|
|
3397
3399
|
spacingScale: h,
|
|
3398
3400
|
borderRadius: d,
|
|
3399
|
-
fontFamilyPrimary:
|
|
3401
|
+
fontFamilyPrimary: R,
|
|
3400
3402
|
fontFamilySecondary: g,
|
|
3401
3403
|
textPrimary: y,
|
|
3402
|
-
primaryColor:
|
|
3403
|
-
secondaryColor:
|
|
3404
|
+
primaryColor: C,
|
|
3405
|
+
secondaryColor: F,
|
|
3404
3406
|
secondaryContainer: u,
|
|
3405
3407
|
onPrimaryColor: L,
|
|
3406
|
-
bgcolor: ke(
|
|
3408
|
+
bgcolor: ke(T || ""),
|
|
3407
3409
|
surfaceColor: P,
|
|
3408
|
-
onSurfaceColor:
|
|
3410
|
+
onSurfaceColor: S,
|
|
3409
3411
|
successColor: (re = (ie = Q().palette) == null ? void 0 : ie.success) == null ? void 0 : re.plainColor,
|
|
3410
3412
|
dangerColor: (me = (se = Q().palette) == null ? void 0 : se.danger) == null ? void 0 : me.plainColor
|
|
3411
3413
|
}), D = () => /* @__PURE__ */ t(
|
|
3412
|
-
|
|
3414
|
+
Ln,
|
|
3413
3415
|
{
|
|
3414
3416
|
personas: x,
|
|
3415
|
-
brandingColors:
|
|
3417
|
+
brandingColors: r
|
|
3416
3418
|
}
|
|
3417
|
-
),
|
|
3419
|
+
), v = (O) => {
|
|
3418
3420
|
var G;
|
|
3419
3421
|
return /* @__PURE__ */ t(
|
|
3420
|
-
|
|
3422
|
+
Ot,
|
|
3421
3423
|
{
|
|
3422
3424
|
entity: e.personalityQuiz,
|
|
3423
3425
|
headline: l("personalityQuiz.headline"),
|
|
3424
|
-
finalImage:
|
|
3426
|
+
finalImage: c,
|
|
3425
3427
|
brandingContent: b,
|
|
3426
3428
|
isTabulated: O,
|
|
3427
|
-
children: e.summary.personalityQuizId ? /* @__PURE__ */ A(
|
|
3428
|
-
/* @__PURE__ */ t(
|
|
3429
|
+
children: e.summary.personalityQuizId ? /* @__PURE__ */ A(s, { sx: I.questionAreaContent, children: [
|
|
3430
|
+
/* @__PURE__ */ t(s, { children: D() }),
|
|
3429
3431
|
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t(
|
|
3430
|
-
|
|
3432
|
+
s,
|
|
3431
3433
|
{
|
|
3432
3434
|
id: "desktop-thanks",
|
|
3433
3435
|
sx: {
|
|
@@ -3436,11 +3438,11 @@ const cn = (e, n) => {
|
|
|
3436
3438
|
display: "flex",
|
|
3437
3439
|
flexDirection: "column",
|
|
3438
3440
|
backdropFilter: "blur(4px)",
|
|
3439
|
-
bgcolor: `rgba(${
|
|
3441
|
+
bgcolor: `rgba(${T ? ke(T || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
|
|
3440
3442
|
borderRadius: d.sm
|
|
3441
3443
|
},
|
|
3442
|
-
children: /* @__PURE__ */ t(
|
|
3443
|
-
|
|
3444
|
+
children: /* @__PURE__ */ t(s, { sx: I.ctaContainer, children: /* @__PURE__ */ A(
|
|
3445
|
+
s,
|
|
3444
3446
|
{
|
|
3445
3447
|
sx: {
|
|
3446
3448
|
...I.ctaContentWrapper,
|
|
@@ -3448,20 +3450,20 @@ const cn = (e, n) => {
|
|
|
3448
3450
|
},
|
|
3449
3451
|
children: [
|
|
3450
3452
|
/* @__PURE__ */ t(w, { level: "body-lg", sx: I.thanksText, children: l("classicQuiz.thanksForPlaying") }),
|
|
3451
|
-
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(
|
|
3453
|
+
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(s, { sx: I.buttonsContainer, children: [
|
|
3452
3454
|
!e.maxAttemptsReached && /* @__PURE__ */ t(
|
|
3453
3455
|
Y,
|
|
3454
3456
|
{
|
|
3455
3457
|
sx: I.playAgainButton,
|
|
3456
3458
|
onClick: e.playAgain,
|
|
3457
|
-
children: /* @__PURE__ */ A(
|
|
3458
|
-
/* @__PURE__ */ t(
|
|
3459
|
+
children: /* @__PURE__ */ A(s, { sx: I.playAgainButtonContent, children: [
|
|
3460
|
+
/* @__PURE__ */ t(gt, { sx: I.playAgainIcon }),
|
|
3459
3461
|
/* @__PURE__ */ t(w, { sx: I.playAgainText, children: l("classicQuiz.buttons.playAgain") })
|
|
3460
3462
|
] })
|
|
3461
3463
|
}
|
|
3462
3464
|
),
|
|
3463
3465
|
/* @__PURE__ */ t(
|
|
3464
|
-
|
|
3466
|
+
rt,
|
|
3465
3467
|
{
|
|
3466
3468
|
additionalCTA: e.additionalCTA,
|
|
3467
3469
|
buttonStyle: I.additionalCTAButton,
|
|
@@ -3477,15 +3479,15 @@ const cn = (e, n) => {
|
|
|
3477
3479
|
),
|
|
3478
3480
|
e.chanceGameContent,
|
|
3479
3481
|
o && f && /* @__PURE__ */ t(
|
|
3480
|
-
|
|
3482
|
+
M,
|
|
3481
3483
|
{
|
|
3482
3484
|
brandingLogo: f,
|
|
3483
|
-
textColor: (
|
|
3485
|
+
textColor: (r == null ? void 0 : r.contentColor) || z,
|
|
3484
3486
|
label: ((G = e.personalityQuiz.labels) == null ? void 0 : G.sponsor) || null
|
|
3485
3487
|
}
|
|
3486
3488
|
)
|
|
3487
|
-
] }) : /* @__PURE__ */ t(
|
|
3488
|
-
|
|
3489
|
+
] }) : /* @__PURE__ */ t(s, { sx: I.alertMessageArea, children: /* @__PURE__ */ t(s, { sx: I.alertMessageWrapper, children: /* @__PURE__ */ t(
|
|
3490
|
+
xt,
|
|
3489
3491
|
{
|
|
3490
3492
|
variant: "error",
|
|
3491
3493
|
title: l("common.authentication.accessRequired"),
|
|
@@ -3495,8 +3497,8 @@ const cn = (e, n) => {
|
|
|
3495
3497
|
}
|
|
3496
3498
|
);
|
|
3497
3499
|
};
|
|
3498
|
-
return /* @__PURE__ */ t(J, { brandingBorderColor: (
|
|
3499
|
-
|
|
3500
|
+
return /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
|
|
3501
|
+
ft,
|
|
3500
3502
|
{
|
|
3501
3503
|
questions: e.personalityQuiz.questions,
|
|
3502
3504
|
userParticipation: e.summary.questions,
|
|
@@ -3508,10 +3510,10 @@ const cn = (e, n) => {
|
|
|
3508
3510
|
pb: 0,
|
|
3509
3511
|
pt: 0
|
|
3510
3512
|
},
|
|
3511
|
-
children:
|
|
3513
|
+
children: v(!0)
|
|
3512
3514
|
}
|
|
3513
|
-
) :
|
|
3514
|
-
},
|
|
3515
|
+
) : v(!1) });
|
|
3516
|
+
}, vn = (e) => ({
|
|
3515
3517
|
// Score state wrapper content
|
|
3516
3518
|
scoreStateWrapperContent: {
|
|
3517
3519
|
display: "flex",
|
|
@@ -3852,7 +3854,7 @@ const cn = (e, n) => {
|
|
|
3852
3854
|
flexDirection: "column",
|
|
3853
3855
|
alignSelf: "stretch"
|
|
3854
3856
|
}
|
|
3855
|
-
}),
|
|
3857
|
+
}), Bn = (e) => ({
|
|
3856
3858
|
// Content wrapper
|
|
3857
3859
|
contentWrapper: {
|
|
3858
3860
|
display: "flex",
|
|
@@ -4111,22 +4113,22 @@ const cn = (e, n) => {
|
|
|
4111
4113
|
textAlign: "center",
|
|
4112
4114
|
my: "auto"
|
|
4113
4115
|
}
|
|
4114
|
-
}),
|
|
4115
|
-
const [a, o] =
|
|
4116
|
-
spacingScale:
|
|
4116
|
+
}), Wn = ({ personas: e, brandingColors: n, contentBgColor: l }) => {
|
|
4117
|
+
const [a, o] = j(0), i = X(), c = _(), r = i.colorSchemes.dark.textPrimary, y = (n == null ? void 0 : n.primaryColor) || i.colorSchemes.dark.palette.primary.plainColor, C = i.colorSchemes.dark.textColor, F = i.colorSchemes.dark.surface, u = i.colorSchemes.dark.palette.success.plainColor, L = i.colorSchemes.dark.palette.primary.onPrimary, g = i.customFontFamily.dark.primary, R = i.customFontFamily.dark.secondary, T = i.spacingScale, P = i.customRadius.dark, S = i.border.dark.size, d = Bn({
|
|
4118
|
+
spacingScale: T,
|
|
4117
4119
|
borderRadius: P,
|
|
4118
|
-
borderSize:
|
|
4120
|
+
borderSize: S,
|
|
4119
4121
|
fontFamilyPrimary: g,
|
|
4120
|
-
fontFamilySecondary:
|
|
4121
|
-
textPrimary:
|
|
4122
|
+
fontFamilySecondary: R,
|
|
4123
|
+
textPrimary: r,
|
|
4122
4124
|
primaryColor: y,
|
|
4123
|
-
textColor:
|
|
4124
|
-
surfaceVariantHover:
|
|
4125
|
+
textColor: C,
|
|
4126
|
+
surfaceVariantHover: F,
|
|
4125
4127
|
successColor: u,
|
|
4126
4128
|
onPrimaryColor: L,
|
|
4127
|
-
isMobile:
|
|
4129
|
+
isMobile: c,
|
|
4128
4130
|
contentBgColor: l
|
|
4129
|
-
}),
|
|
4131
|
+
}), z = He.useMemo(() => e.map((h) => {
|
|
4130
4132
|
var f, x, b;
|
|
4131
4133
|
return {
|
|
4132
4134
|
personaId: h.personaId,
|
|
@@ -4134,29 +4136,29 @@ const cn = (e, n) => {
|
|
|
4134
4136
|
mobileImage: ((x = h.images) == null ? void 0 : x.mobile) || ((b = h.images) == null ? void 0 : b.main) || null
|
|
4135
4137
|
};
|
|
4136
4138
|
}), [e]);
|
|
4137
|
-
return !e || e.length === 0 ? null : /* @__PURE__ */ t(
|
|
4138
|
-
|
|
4139
|
+
return !e || e.length === 0 ? null : /* @__PURE__ */ t(s, { sx: d.contentWrapper, children: /* @__PURE__ */ t(s, { sx: d.personalityResultsContainer, children: /* @__PURE__ */ A(
|
|
4140
|
+
_e,
|
|
4139
4141
|
{
|
|
4140
4142
|
value: a,
|
|
4141
4143
|
onChange: (h, f) => o(f),
|
|
4142
4144
|
sx: d.tabsContainer,
|
|
4143
4145
|
children: [
|
|
4144
|
-
/* @__PURE__ */ t(
|
|
4145
|
-
const x = f === 0, b =
|
|
4146
|
+
/* @__PURE__ */ t(Ge, { sx: d.tabList, children: e.map((h, f) => {
|
|
4147
|
+
const x = f === 0, b = z.find(
|
|
4146
4148
|
(H) => H.personaId === h.personaId
|
|
4147
|
-
), I = (b == null ? void 0 : b.imageUrl) || null, D = (b == null ? void 0 : b.mobileImage) || null,
|
|
4149
|
+
), I = (b == null ? void 0 : b.imageUrl) || null, D = (b == null ? void 0 : b.mobileImage) || null, v = c ? !!D : !!I && !h.description, U = c ? D : I;
|
|
4148
4150
|
return /* @__PURE__ */ t(
|
|
4149
|
-
|
|
4151
|
+
ve,
|
|
4150
4152
|
{
|
|
4151
4153
|
value: f,
|
|
4152
4154
|
sx: [d.tab, x && d.tabFirst],
|
|
4153
|
-
children: /* @__PURE__ */ A(
|
|
4154
|
-
|
|
4155
|
-
|
|
4155
|
+
children: /* @__PURE__ */ A(s, { sx: d.tabLabelContainer, children: [
|
|
4156
|
+
v && U && /* @__PURE__ */ t(
|
|
4157
|
+
s,
|
|
4156
4158
|
{
|
|
4157
4159
|
sx: [
|
|
4158
4160
|
d.tabLogo,
|
|
4159
|
-
{ backgroundImage: `url("${
|
|
4161
|
+
{ backgroundImage: `url("${U}")` }
|
|
4160
4162
|
]
|
|
4161
4163
|
}
|
|
4162
4164
|
),
|
|
@@ -4173,17 +4175,17 @@ const cn = (e, n) => {
|
|
|
4173
4175
|
e.filter((h) => h.description).map((h) => {
|
|
4174
4176
|
const f = e.findIndex(
|
|
4175
4177
|
(I) => I.personaId === h.personaId
|
|
4176
|
-
), x =
|
|
4178
|
+
), x = z.find(
|
|
4177
4179
|
(I) => I.personaId === h.personaId
|
|
4178
4180
|
), b = (x == null ? void 0 : x.imageUrl) || null;
|
|
4179
4181
|
return /* @__PURE__ */ t(
|
|
4180
|
-
|
|
4182
|
+
Be,
|
|
4181
4183
|
{
|
|
4182
4184
|
value: f,
|
|
4183
4185
|
sx: d.tabPanel,
|
|
4184
|
-
children: /* @__PURE__ */ t(
|
|
4185
|
-
/* @__PURE__ */ t(
|
|
4186
|
-
|
|
4186
|
+
children: /* @__PURE__ */ t(s, { sx: d.tabContent, children: b && !c ? /* @__PURE__ */ A(s, { sx: d.contentWithImageAndDescription, children: [
|
|
4187
|
+
/* @__PURE__ */ t(s, { sx: d.imageSection, children: /* @__PURE__ */ t(
|
|
4188
|
+
s,
|
|
4187
4189
|
{
|
|
4188
4190
|
sx: [
|
|
4189
4191
|
d.personaImageLarge,
|
|
@@ -4191,11 +4193,11 @@ const cn = (e, n) => {
|
|
|
4191
4193
|
]
|
|
4192
4194
|
}
|
|
4193
4195
|
) }),
|
|
4194
|
-
/* @__PURE__ */ t(
|
|
4196
|
+
/* @__PURE__ */ t(s, { sx: d.descriptionSection, children: /* @__PURE__ */ t(
|
|
4195
4197
|
"span",
|
|
4196
4198
|
{
|
|
4197
4199
|
style: {
|
|
4198
|
-
color:
|
|
4200
|
+
color: C,
|
|
4199
4201
|
fontFamily: g,
|
|
4200
4202
|
lineHeight: 1.6
|
|
4201
4203
|
},
|
|
@@ -4204,11 +4206,11 @@ const cn = (e, n) => {
|
|
|
4204
4206
|
}
|
|
4205
4207
|
}
|
|
4206
4208
|
) })
|
|
4207
|
-
] }) : /* @__PURE__ */ t(
|
|
4209
|
+
] }) : /* @__PURE__ */ t(s, { sx: d.contentDescriptionOnly, children: /* @__PURE__ */ t(
|
|
4208
4210
|
"span",
|
|
4209
4211
|
{
|
|
4210
4212
|
style: {
|
|
4211
|
-
color:
|
|
4213
|
+
color: C,
|
|
4212
4214
|
fontFamily: g,
|
|
4213
4215
|
lineHeight: 1.6
|
|
4214
4216
|
},
|
|
@@ -4224,61 +4226,61 @@ const cn = (e, n) => {
|
|
|
4224
4226
|
]
|
|
4225
4227
|
}
|
|
4226
4228
|
) }) });
|
|
4227
|
-
},
|
|
4229
|
+
}, Hn = (e) => {
|
|
4228
4230
|
var D;
|
|
4229
|
-
const n = X(), l = fe(), { t: a } = q(), o =
|
|
4231
|
+
const n = X(), l = fe(), { t: a } = q(), o = Ft(
|
|
4230
4232
|
p.OVERLAY
|
|
4231
|
-
), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : _() ? Ie : Pe, { brandingImage:
|
|
4233
|
+
), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : _() ? Ie : Pe, { brandingImage: c, brandingColors: r, brandingLogo: y } = We(e.personalityQuiz.branding || null), C = c || be(
|
|
4232
4234
|
{
|
|
4233
4235
|
images: e.personalityQuiz.images,
|
|
4234
4236
|
imagePlaceholder: i
|
|
4235
4237
|
},
|
|
4236
4238
|
p.OVERLAY
|
|
4237
|
-
),
|
|
4239
|
+
), F = (r == null ? void 0 : r.primaryColor) || n.colorSchemes.light.palette.primary.plainColor, u = (r == null ? void 0 : r.secondaryColor) || n.colorSchemes.dark.textSecondary, L = n.colorSchemes.dark.secondaryContainer, g = n.colorSchemes.light.palette.primary.onPrimary, R = n.colorSchemes.dark.textPrimary, T = n.customFontFamily.light.primary, P = n.customFontFamily.light.secondary, S = n.customRadius.light.md, d = n.customRadius.light.xl, z = (r == null ? void 0 : r.backgroundColor) || n.colorSchemes.dark.onSurface, h = Rt(C), f = ht(
|
|
4238
4240
|
e.personalityQuiz,
|
|
4239
4241
|
e.summary
|
|
4240
|
-
), x =
|
|
4242
|
+
), x = vn({
|
|
4241
4243
|
spacingScale: l,
|
|
4242
|
-
primaryColor:
|
|
4244
|
+
primaryColor: F,
|
|
4243
4245
|
secondaryColor: u,
|
|
4244
4246
|
secondaryContainer: L,
|
|
4245
4247
|
onPrimaryColor: g,
|
|
4246
|
-
textPrimary:
|
|
4247
|
-
fontFamilyPrimary:
|
|
4248
|
+
textPrimary: R,
|
|
4249
|
+
fontFamilyPrimary: T,
|
|
4248
4250
|
fontFamilySecondary: P,
|
|
4249
|
-
mdBorderRadius:
|
|
4251
|
+
mdBorderRadius: S,
|
|
4250
4252
|
xlBorderRadius: d,
|
|
4251
|
-
contentBgColor:
|
|
4253
|
+
contentBgColor: z,
|
|
4252
4254
|
onSurfaceColor: n.colorSchemes.dark.onSurface,
|
|
4253
4255
|
surfaceVariantColor: n.colorSchemes.dark.surfaceVariant
|
|
4254
4256
|
}), b = () => /* @__PURE__ */ t(
|
|
4255
|
-
|
|
4257
|
+
Wn,
|
|
4256
4258
|
{
|
|
4257
4259
|
personas: f,
|
|
4258
|
-
brandingColors:
|
|
4259
|
-
contentBgColor:
|
|
4260
|
+
brandingColors: r,
|
|
4261
|
+
contentBgColor: z
|
|
4260
4262
|
}
|
|
4261
4263
|
), I = () => {
|
|
4262
|
-
var
|
|
4263
|
-
return /* @__PURE__ */ A(
|
|
4264
|
+
var v;
|
|
4265
|
+
return /* @__PURE__ */ A(s, { sx: x.mainContentWrapper, children: [
|
|
4264
4266
|
e.summary.personalityQuizId ? /* @__PURE__ */ A(Z, { children: [
|
|
4265
|
-
/* @__PURE__ */ t(
|
|
4266
|
-
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t(
|
|
4267
|
+
/* @__PURE__ */ t(s, { sx: x.personalityResultsSection, children: b() }),
|
|
4268
|
+
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t(s, { sx: x.ctaSection, children: /* @__PURE__ */ A(s, { sx: x.ctaContentWrapper, children: [
|
|
4267
4269
|
/* @__PURE__ */ t(w, { level: "body-lg", sx: x.thanksText, children: a("personalityQuiz.thanksForPlaying") }),
|
|
4268
|
-
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(
|
|
4270
|
+
(!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(s, { sx: x.buttonsContainer, children: [
|
|
4269
4271
|
!e.maxAttemptsReached && /* @__PURE__ */ t(
|
|
4270
4272
|
Y,
|
|
4271
4273
|
{
|
|
4272
4274
|
sx: x.playAgainButton,
|
|
4273
4275
|
onClick: e.playAgain,
|
|
4274
|
-
children: /* @__PURE__ */ A(
|
|
4275
|
-
/* @__PURE__ */ t(
|
|
4276
|
+
children: /* @__PURE__ */ A(s, { sx: x.playAgainButtonContent, children: [
|
|
4277
|
+
/* @__PURE__ */ t(gt, { sx: x.playAgainIcon }),
|
|
4276
4278
|
/* @__PURE__ */ t(w, { sx: x.playAgainText, children: a("personalityQuiz.buttons.playAgain") })
|
|
4277
4279
|
] })
|
|
4278
4280
|
}
|
|
4279
4281
|
),
|
|
4280
4282
|
/* @__PURE__ */ t(
|
|
4281
|
-
|
|
4283
|
+
rt,
|
|
4282
4284
|
{
|
|
4283
4285
|
additionalCTA: e.additionalCTA,
|
|
4284
4286
|
buttonStyle: x.additionalCTAButton,
|
|
@@ -4290,7 +4292,7 @@ const cn = (e, n) => {
|
|
|
4290
4292
|
] }) }),
|
|
4291
4293
|
e.chanceGameContent
|
|
4292
4294
|
] }) : /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ t(
|
|
4293
|
-
|
|
4295
|
+
xt,
|
|
4294
4296
|
{
|
|
4295
4297
|
variant: "error",
|
|
4296
4298
|
title: a("common.authentication.accessRequired"),
|
|
@@ -4298,45 +4300,45 @@ const cn = (e, n) => {
|
|
|
4298
4300
|
}
|
|
4299
4301
|
) }),
|
|
4300
4302
|
/* @__PURE__ */ t(
|
|
4301
|
-
|
|
4303
|
+
M,
|
|
4302
4304
|
{
|
|
4303
4305
|
brandingLogo: y,
|
|
4304
4306
|
textColor: n.colorSchemes.dark.textColor,
|
|
4305
|
-
label: ((
|
|
4307
|
+
label: ((v = e.personalityQuiz.labels) == null ? void 0 : v.sponsor) || null
|
|
4306
4308
|
}
|
|
4307
4309
|
)
|
|
4308
4310
|
] });
|
|
4309
4311
|
};
|
|
4310
4312
|
return /* @__PURE__ */ t(
|
|
4311
|
-
|
|
4313
|
+
_t,
|
|
4312
4314
|
{
|
|
4313
4315
|
entity: e.personalityQuiz,
|
|
4314
4316
|
backgroundImage: h,
|
|
4315
4317
|
imageBackgroundGradient: o,
|
|
4316
4318
|
isWrappedWithScoreStateWrapper: e.showAnswerExplanations,
|
|
4317
4319
|
children: e.showAnswerExplanations ? /* @__PURE__ */ t(
|
|
4318
|
-
|
|
4320
|
+
ft,
|
|
4319
4321
|
{
|
|
4320
4322
|
questions: e.personalityQuiz.questions,
|
|
4321
4323
|
userParticipation: e.summary.questions,
|
|
4322
4324
|
resultsTabPanelSxProps: { p: 0, fontSize: "1.25em" },
|
|
4323
4325
|
isOverlayVariant: !0,
|
|
4324
4326
|
brandingColors: (D = e.personalityQuiz.branding) == null ? void 0 : D.colors,
|
|
4325
|
-
children: /* @__PURE__ */ t(
|
|
4327
|
+
children: /* @__PURE__ */ t(s, { sx: x.scoreStateWrapperContent, children: I() })
|
|
4326
4328
|
}
|
|
4327
4329
|
) : I()
|
|
4328
4330
|
}
|
|
4329
4331
|
);
|
|
4330
|
-
},
|
|
4332
|
+
}, qn = () => {
|
|
4331
4333
|
const { t: e } = q();
|
|
4332
4334
|
return /* @__PURE__ */ t(J, { brandingBorderColor: null, children: /* @__PURE__ */ t(
|
|
4333
|
-
|
|
4335
|
+
Gt,
|
|
4334
4336
|
{
|
|
4335
4337
|
notFoundTitle: e("personalityQuiz.quizNotFound"),
|
|
4336
4338
|
notFoundMessage: e("personalityQuiz.quizNotFoundDescription")
|
|
4337
4339
|
}
|
|
4338
4340
|
) });
|
|
4339
|
-
},
|
|
4341
|
+
}, Mn = ({
|
|
4340
4342
|
personalityQuiz: e,
|
|
4341
4343
|
template: n,
|
|
4342
4344
|
imagePosition: l,
|
|
@@ -4344,19 +4346,19 @@ const cn = (e, n) => {
|
|
|
4344
4346
|
rulesDisplay: o
|
|
4345
4347
|
}) => {
|
|
4346
4348
|
var u;
|
|
4347
|
-
const { t: i } = q(),
|
|
4349
|
+
const { t: i } = q(), c = _(), r = ((u = e.branding) == null ? void 0 : u.colors) || null, { brandingLogo: y } = We(
|
|
4348
4350
|
e.branding || null
|
|
4349
|
-
),
|
|
4351
|
+
), C = (L) => {
|
|
4350
4352
|
var g;
|
|
4351
4353
|
return /* @__PURE__ */ t(
|
|
4352
|
-
|
|
4354
|
+
M,
|
|
4353
4355
|
{
|
|
4354
4356
|
brandingLogo: y,
|
|
4355
4357
|
textColor: L,
|
|
4356
4358
|
label: ((g = e.labels) == null ? void 0 : g.sponsor) || null
|
|
4357
4359
|
}
|
|
4358
4360
|
);
|
|
4359
|
-
},
|
|
4361
|
+
}, F = {
|
|
4360
4362
|
entity: e,
|
|
4361
4363
|
headline: i("personalityQuiz.headline"),
|
|
4362
4364
|
tryAgainButtonText: "",
|
|
@@ -4364,34 +4366,34 @@ const cn = (e, n) => {
|
|
|
4364
4366
|
alertVariant: "neutral",
|
|
4365
4367
|
customAlertTitle: i("personalityQuiz.gameNotAvailable"),
|
|
4366
4368
|
customAlertMessage: i("personalityQuiz.gameNotAvailableDescription"),
|
|
4367
|
-
renderPresentedBy:
|
|
4369
|
+
renderPresentedBy: C,
|
|
4368
4370
|
rulesDisplay: o
|
|
4369
4371
|
};
|
|
4370
4372
|
return n === p.OVERLAY ? /* @__PURE__ */ t(
|
|
4371
|
-
|
|
4373
|
+
Qt,
|
|
4372
4374
|
{
|
|
4373
|
-
...
|
|
4374
|
-
defaultImagePlaceholderUrl: a || (
|
|
4375
|
+
...F,
|
|
4376
|
+
defaultImagePlaceholderUrl: a || (c ? Ie : Pe)
|
|
4375
4377
|
}
|
|
4376
|
-
) : n === p.SPLIT ? /* @__PURE__ */ t(J, { brandingBorderColor: (
|
|
4377
|
-
|
|
4378
|
+
) : n === p.SPLIT ? /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
|
|
4379
|
+
wt,
|
|
4378
4380
|
{
|
|
4379
|
-
...
|
|
4381
|
+
...F,
|
|
4380
4382
|
defaultImagePlaceholderUrl: a
|
|
4381
4383
|
}
|
|
4382
|
-
) }) : /* @__PURE__ */ t(J, { brandingBorderColor: (
|
|
4383
|
-
|
|
4384
|
+
) }) : /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
|
|
4385
|
+
Lt,
|
|
4384
4386
|
{
|
|
4385
|
-
...
|
|
4387
|
+
...F,
|
|
4386
4388
|
imagePosition: l || "left",
|
|
4387
4389
|
defaultImagePlaceholderUrl: a
|
|
4388
4390
|
}
|
|
4389
4391
|
) });
|
|
4390
|
-
},
|
|
4391
|
-
var o, i,
|
|
4392
|
-
const n = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, l = _() ? ((i = e.personalityQuiz.branding) == null ? void 0 : i.images.mobileLogo) || ((
|
|
4392
|
+
}, Un = (e) => {
|
|
4393
|
+
var o, i, c, r;
|
|
4394
|
+
const n = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, l = _() ? ((i = e.personalityQuiz.branding) == null ? void 0 : i.images.mobileLogo) || ((c = e.personalityQuiz.branding) == null ? void 0 : c.images.mainLogo) || "" : ((r = e.personalityQuiz.branding) == null ? void 0 : r.images.mainLogo) || "", { t: a } = q();
|
|
4393
4395
|
return /* @__PURE__ */ t(J, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
|
|
4394
|
-
|
|
4396
|
+
Lt,
|
|
4395
4397
|
{
|
|
4396
4398
|
entity: e.personalityQuiz,
|
|
4397
4399
|
headline: a("personalityQuiz.headline"),
|
|
@@ -4403,23 +4405,23 @@ const cn = (e, n) => {
|
|
|
4403
4405
|
apiErrorMessage: e.apiErrorMessage,
|
|
4404
4406
|
rulesDisplay: e.rulesDisplay,
|
|
4405
4407
|
renderPresentedBy: (y) => {
|
|
4406
|
-
var
|
|
4408
|
+
var C;
|
|
4407
4409
|
return /* @__PURE__ */ t(
|
|
4408
|
-
|
|
4410
|
+
M,
|
|
4409
4411
|
{
|
|
4410
4412
|
brandingLogo: l,
|
|
4411
4413
|
textColor: y,
|
|
4412
|
-
label: ((
|
|
4414
|
+
label: ((C = e.personalityQuiz.labels) == null ? void 0 : C.sponsor) || null
|
|
4413
4415
|
}
|
|
4414
4416
|
);
|
|
4415
4417
|
}
|
|
4416
4418
|
}
|
|
4417
4419
|
) });
|
|
4418
|
-
},
|
|
4419
|
-
var i,
|
|
4420
|
-
const n = _(), { t: l } = q(), a = ((i = e.personalityQuiz.branding) == null ? void 0 : i.colors) || null, o = n ? ((
|
|
4420
|
+
}, jn = (e) => {
|
|
4421
|
+
var i, c, r, y;
|
|
4422
|
+
const n = _(), { t: l } = q(), a = ((i = e.personalityQuiz.branding) == null ? void 0 : i.colors) || null, o = n ? ((c = e.personalityQuiz.branding) == null ? void 0 : c.images.mobileLogo) || ((r = e.personalityQuiz.branding) == null ? void 0 : r.images.mainLogo) || "" : ((y = e.personalityQuiz.branding) == null ? void 0 : y.images.mainLogo) || "";
|
|
4421
4423
|
return /* @__PURE__ */ t(J, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: /* @__PURE__ */ t(
|
|
4422
|
-
|
|
4424
|
+
wt,
|
|
4423
4425
|
{
|
|
4424
4426
|
entity: e.personalityQuiz,
|
|
4425
4427
|
headline: l("personalityQuiz.headline"),
|
|
@@ -4429,25 +4431,25 @@ const cn = (e, n) => {
|
|
|
4429
4431
|
toggleTryAgain: e.toggleTryAgain,
|
|
4430
4432
|
apiErrorMessage: e.apiErrorMessage,
|
|
4431
4433
|
rulesDisplay: e.rulesDisplay,
|
|
4432
|
-
renderPresentedBy: (
|
|
4433
|
-
var
|
|
4434
|
+
renderPresentedBy: (C) => {
|
|
4435
|
+
var F;
|
|
4434
4436
|
return /* @__PURE__ */ t(
|
|
4435
|
-
|
|
4437
|
+
M,
|
|
4436
4438
|
{
|
|
4437
4439
|
brandingLogo: o,
|
|
4438
|
-
textColor:
|
|
4439
|
-
label: ((
|
|
4440
|
+
textColor: C,
|
|
4441
|
+
label: ((F = e.personalityQuiz.labels) == null ? void 0 : F.sponsor) || null
|
|
4440
4442
|
}
|
|
4441
4443
|
);
|
|
4442
4444
|
}
|
|
4443
4445
|
}
|
|
4444
4446
|
) });
|
|
4445
|
-
},
|
|
4446
|
-
const { t: n } = q(), l = _(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Pe, { brandingLogo: o } =
|
|
4447
|
+
}, Vn = (e) => {
|
|
4448
|
+
const { t: n } = q(), l = _(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Pe, { brandingLogo: o } = We(
|
|
4447
4449
|
e.personalityQuiz.branding || null
|
|
4448
4450
|
);
|
|
4449
4451
|
return /* @__PURE__ */ t(
|
|
4450
|
-
|
|
4452
|
+
Qt,
|
|
4451
4453
|
{
|
|
4452
4454
|
entity: e.personalityQuiz,
|
|
4453
4455
|
headline: n("personalityQuiz.headline"),
|
|
@@ -4458,19 +4460,19 @@ const cn = (e, n) => {
|
|
|
4458
4460
|
apiErrorMessage: e.apiErrorMessage,
|
|
4459
4461
|
rulesDisplay: e.rulesDisplay,
|
|
4460
4462
|
renderPresentedBy: (i) => {
|
|
4461
|
-
var
|
|
4463
|
+
var c;
|
|
4462
4464
|
return /* @__PURE__ */ t(
|
|
4463
|
-
|
|
4465
|
+
M,
|
|
4464
4466
|
{
|
|
4465
4467
|
brandingLogo: o,
|
|
4466
4468
|
textColor: i,
|
|
4467
|
-
label: ((
|
|
4469
|
+
label: ((c = e.personalityQuiz.labels) == null ? void 0 : c.sponsor) || null
|
|
4468
4470
|
}
|
|
4469
4471
|
);
|
|
4470
4472
|
}
|
|
4471
4473
|
}
|
|
4472
4474
|
);
|
|
4473
|
-
},
|
|
4475
|
+
}, pn = (e) => ({
|
|
4474
4476
|
// Pulse animation for buttons
|
|
4475
4477
|
pulseAnimation: {
|
|
4476
4478
|
"@keyframes pulse": {
|
|
@@ -4518,20 +4520,20 @@ const cn = (e, n) => {
|
|
|
4518
4520
|
display: "flex",
|
|
4519
4521
|
alignItems: "center"
|
|
4520
4522
|
}
|
|
4521
|
-
}),
|
|
4522
|
-
var
|
|
4523
|
-
const n = ((
|
|
4523
|
+
}), En = (e) => {
|
|
4524
|
+
var T, P, S, d, z;
|
|
4525
|
+
const n = ((T = e.personalityQuiz.branding) == null ? void 0 : T.colors) || null, l = _(), a = X(), o = be(
|
|
4524
4526
|
{
|
|
4525
4527
|
images: e.personalityQuiz.images,
|
|
4526
4528
|
imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
|
|
4527
4529
|
},
|
|
4528
4530
|
p.STANDARD
|
|
4529
|
-
), i = K().primary,
|
|
4531
|
+
), i = K().primary, c = oe().xl, r = (n == null ? void 0 : n.primaryColor) || Q().palette.primary.plainColor, y = Q().palette.primary.onPrimary, C = (n == null ? void 0 : n.contentColor) || Q().textColor, F = l ? ((P = e.personalityQuiz.branding) == null ? void 0 : P.images.mobileLogo) || ((S = e.personalityQuiz.branding) == null ? void 0 : S.images.mainLogo) || "" : ((d = e.personalityQuiz.branding) == null ? void 0 : d.images.mainLogo) || "", { t: u } = q(), L = e.imagePosition || "left", g = pn({
|
|
4530
4532
|
fontFamilyPrimary: i,
|
|
4531
|
-
buttonRadius:
|
|
4532
|
-
primaryColor:
|
|
4533
|
+
buttonRadius: c,
|
|
4534
|
+
primaryColor: r,
|
|
4533
4535
|
onPrimaryColor: y
|
|
4534
|
-
}),
|
|
4536
|
+
}), R = () => {
|
|
4535
4537
|
var h, f, x, b;
|
|
4536
4538
|
return e.signInCTA ? (h = e.signInCTA) != null && h.component ? e.signInCTA.component : (f = e.signInCTA) != null && f.onClick ? /* @__PURE__ */ t(
|
|
4537
4539
|
Y,
|
|
@@ -4545,7 +4547,7 @@ const cn = (e, n) => {
|
|
|
4545
4547
|
children: /* @__PURE__ */ t(w, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || u("common.signIn") })
|
|
4546
4548
|
}
|
|
4547
4549
|
) : (x = e.signInCTA) != null && x.url ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
4548
|
-
|
|
4550
|
+
s,
|
|
4549
4551
|
{
|
|
4550
4552
|
component: "a",
|
|
4551
4553
|
href: e.signInCTA.url,
|
|
@@ -4569,8 +4571,8 @@ const cn = (e, n) => {
|
|
|
4569
4571
|
...g.pulseAnimation
|
|
4570
4572
|
},
|
|
4571
4573
|
onClick: () => {
|
|
4572
|
-
var I, D,
|
|
4573
|
-
((I = e.signInCTA) == null ? void 0 : I.target) === "_blank" ? window.open((D = e.signInCTA) == null ? void 0 : D.url, "_blank") : window.location.href = (
|
|
4574
|
+
var I, D, v;
|
|
4575
|
+
((I = e.signInCTA) == null ? void 0 : I.target) === "_blank" ? window.open((D = e.signInCTA) == null ? void 0 : D.url, "_blank") : window.location.href = (v = e.signInCTA) == null ? void 0 : v.url;
|
|
4574
4576
|
},
|
|
4575
4577
|
children: /* @__PURE__ */ t(w, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || u("common.signIn") })
|
|
4576
4578
|
}
|
|
@@ -4597,25 +4599,25 @@ const cn = (e, n) => {
|
|
|
4597
4599
|
);
|
|
4598
4600
|
};
|
|
4599
4601
|
return /* @__PURE__ */ t(J, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
|
|
4600
|
-
|
|
4602
|
+
Nt,
|
|
4601
4603
|
{
|
|
4602
4604
|
entity: e.personalityQuiz,
|
|
4603
4605
|
headline: u("personalityQuiz.headline"),
|
|
4604
4606
|
finalImage: o,
|
|
4605
4607
|
imagePosition: L,
|
|
4606
|
-
signInContent:
|
|
4608
|
+
signInContent: R(),
|
|
4607
4609
|
brandingContent: /* @__PURE__ */ t(
|
|
4608
|
-
|
|
4610
|
+
M,
|
|
4609
4611
|
{
|
|
4610
|
-
brandingLogo:
|
|
4611
|
-
textColor: l && o ? (n == null ? void 0 : n.contentColor) || a.colorSchemes.dark.textColor :
|
|
4612
|
-
label: ((
|
|
4612
|
+
brandingLogo: F,
|
|
4613
|
+
textColor: l && o ? (n == null ? void 0 : n.contentColor) || a.colorSchemes.dark.textColor : C,
|
|
4614
|
+
label: ((z = e.personalityQuiz.labels) == null ? void 0 : z.sponsor) || null
|
|
4613
4615
|
}
|
|
4614
4616
|
),
|
|
4615
4617
|
rulesDisplay: e.rulesDisplay
|
|
4616
4618
|
}
|
|
4617
4619
|
) });
|
|
4618
|
-
},
|
|
4620
|
+
}, $n = (e) => ({
|
|
4619
4621
|
// Pulse animation for buttons
|
|
4620
4622
|
pulseAnimation: {
|
|
4621
4623
|
"@keyframes pulse": {
|
|
@@ -4663,21 +4665,21 @@ const cn = (e, n) => {
|
|
|
4663
4665
|
display: "flex",
|
|
4664
4666
|
alignItems: "center"
|
|
4665
4667
|
}
|
|
4666
|
-
}),
|
|
4667
|
-
var
|
|
4668
|
-
const n = X(), l = _(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Pe, o =
|
|
4668
|
+
}), On = (e) => {
|
|
4669
|
+
var T, P, S, d, z;
|
|
4670
|
+
const n = X(), l = _(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Pe, o = be(
|
|
4669
4671
|
{
|
|
4670
4672
|
images: e.personalityQuiz.images,
|
|
4671
4673
|
imagePlaceholder: a
|
|
4672
4674
|
},
|
|
4673
4675
|
p.SPLIT
|
|
4674
|
-
), { t: i } = q(),
|
|
4675
|
-
fontFamilyPrimary:
|
|
4676
|
+
), { t: i } = q(), c = ((T = e.personalityQuiz.branding) == null ? void 0 : T.colors) || null, r = l ? ((P = e.personalityQuiz.branding) == null ? void 0 : P.images.mobileLogo) || ((S = e.personalityQuiz.branding) == null ? void 0 : S.images.mainLogo) || "" : ((d = e.personalityQuiz.branding) == null ? void 0 : d.images.mainLogo) || "", y = K().secondary, C = K().primary, F = oe().xl, u = (c == null ? void 0 : c.primaryColor) || Q().palette.primary.plainColor, L = Q().palette.primary.onPrimary, g = $n({
|
|
4677
|
+
fontFamilyPrimary: C,
|
|
4676
4678
|
fontFamilySecondary: y,
|
|
4677
|
-
buttonRadius:
|
|
4679
|
+
buttonRadius: F,
|
|
4678
4680
|
primaryColor: u,
|
|
4679
4681
|
onPrimaryColor: L
|
|
4680
|
-
}),
|
|
4682
|
+
}), R = () => {
|
|
4681
4683
|
var h, f, x, b;
|
|
4682
4684
|
return e.signInCTA ? (h = e.signInCTA) != null && h.component ? e.signInCTA.component : (f = e.signInCTA) != null && f.onClick ? /* @__PURE__ */ t(
|
|
4683
4685
|
Y,
|
|
@@ -4691,7 +4693,7 @@ const cn = (e, n) => {
|
|
|
4691
4693
|
children: /* @__PURE__ */ t(w, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || i("common.signIn") })
|
|
4692
4694
|
}
|
|
4693
4695
|
) : (x = e.signInCTA) != null && x.url ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
4694
|
-
|
|
4696
|
+
s,
|
|
4695
4697
|
{
|
|
4696
4698
|
component: "a",
|
|
4697
4699
|
href: e.signInCTA.url,
|
|
@@ -4715,8 +4717,8 @@ const cn = (e, n) => {
|
|
|
4715
4717
|
...g.pulseAnimation
|
|
4716
4718
|
},
|
|
4717
4719
|
onClick: () => {
|
|
4718
|
-
var I, D,
|
|
4719
|
-
((I = e.signInCTA) == null ? void 0 : I.target) === "_blank" ? window.open((D = e.signInCTA) == null ? void 0 : D.url, "_blank") : window.location.href = (
|
|
4720
|
+
var I, D, v;
|
|
4721
|
+
((I = e.signInCTA) == null ? void 0 : I.target) === "_blank" ? window.open((D = e.signInCTA) == null ? void 0 : D.url, "_blank") : window.location.href = (v = e.signInCTA) == null ? void 0 : v.url;
|
|
4720
4722
|
},
|
|
4721
4723
|
children: /* @__PURE__ */ t(w, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || i("common.signIn") })
|
|
4722
4724
|
}
|
|
@@ -4742,25 +4744,25 @@ const cn = (e, n) => {
|
|
|
4742
4744
|
}
|
|
4743
4745
|
);
|
|
4744
4746
|
};
|
|
4745
|
-
return /* @__PURE__ */ t(J, { brandingBorderColor: (
|
|
4746
|
-
|
|
4747
|
+
return /* @__PURE__ */ t(J, { brandingBorderColor: (c == null ? void 0 : c.borderColor) || null, children: /* @__PURE__ */ t(
|
|
4748
|
+
Zt,
|
|
4747
4749
|
{
|
|
4748
4750
|
entity: e.personalityQuiz,
|
|
4749
4751
|
headline: i("personalityQuiz.headline"),
|
|
4750
4752
|
finalImage: o,
|
|
4751
|
-
signInContent:
|
|
4753
|
+
signInContent: R(),
|
|
4752
4754
|
brandingContent: /* @__PURE__ */ t(
|
|
4753
|
-
|
|
4755
|
+
M,
|
|
4754
4756
|
{
|
|
4755
|
-
brandingLogo:
|
|
4756
|
-
textColor: (
|
|
4757
|
-
label: ((
|
|
4757
|
+
brandingLogo: r,
|
|
4758
|
+
textColor: (c == null ? void 0 : c.contentColor) || n.colorSchemes.dark.textColor,
|
|
4759
|
+
label: ((z = e.personalityQuiz.labels) == null ? void 0 : z.sponsor) || null
|
|
4758
4760
|
}
|
|
4759
4761
|
),
|
|
4760
4762
|
rulesDisplay: e.rulesDisplay
|
|
4761
4763
|
}
|
|
4762
4764
|
) });
|
|
4763
|
-
},
|
|
4765
|
+
}, _n = (e) => ({
|
|
4764
4766
|
// Pulse animation for buttons
|
|
4765
4767
|
pulseAnimation: {
|
|
4766
4768
|
"@keyframes pulse": {
|
|
@@ -4798,21 +4800,21 @@ const cn = (e, n) => {
|
|
|
4798
4800
|
display: "flex",
|
|
4799
4801
|
alignItems: "center"
|
|
4800
4802
|
}
|
|
4801
|
-
}),
|
|
4802
|
-
var
|
|
4803
|
-
const n = X(), { t: l } = q(), a = _(), o =
|
|
4803
|
+
}), Gn = (e) => {
|
|
4804
|
+
var S, d, z, h, f, x, b, I, D, v, U;
|
|
4805
|
+
const n = X(), { t: l } = q(), a = _(), o = Ft(
|
|
4804
4806
|
p.OVERLAY
|
|
4805
|
-
), { brandingImage: i, brandingColors:
|
|
4807
|
+
), { brandingImage: i, brandingColors: c, brandingLogo: r } = We(e.personalityQuiz.branding || null), y = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ie : Pe, C = i || be(
|
|
4806
4808
|
{
|
|
4807
4809
|
images: e.personalityQuiz.images,
|
|
4808
4810
|
imagePlaceholder: y
|
|
4809
4811
|
},
|
|
4810
4812
|
p.OVERLAY
|
|
4811
|
-
),
|
|
4813
|
+
), F = Rt(C), u = (d = (S = n.customRadius) == null ? void 0 : S.light) == null ? void 0 : d.xl, L = (c == null ? void 0 : c.primaryColor) || ((x = (f = (h = (z = n.colorSchemes) == null ? void 0 : z.light) == null ? void 0 : h.palette) == null ? void 0 : f.primary) == null ? void 0 : x.plainColor), g = (v = (D = (I = (b = n.colorSchemes) == null ? void 0 : b.light) == null ? void 0 : I.palette) == null ? void 0 : D.primary) == null ? void 0 : v.onPrimary, R = n.customFontFamily.dark.primary, T = _n({
|
|
4812
4814
|
buttonRadius: u,
|
|
4813
4815
|
primaryColor: L,
|
|
4814
4816
|
onPrimaryColor: g,
|
|
4815
|
-
fontFamilyPrimary:
|
|
4817
|
+
fontFamilyPrimary: R
|
|
4816
4818
|
}), P = () => {
|
|
4817
4819
|
var H, E, m, W;
|
|
4818
4820
|
return e.signInCTA ? (H = e.signInCTA) != null && H.component ? e.signInCTA.component : (E = e.signInCTA) != null && E.onClick ? /* @__PURE__ */ t(
|
|
@@ -4820,88 +4822,88 @@ const cn = (e, n) => {
|
|
|
4820
4822
|
{
|
|
4821
4823
|
variant: "soft",
|
|
4822
4824
|
sx: {
|
|
4823
|
-
...
|
|
4824
|
-
...
|
|
4825
|
+
...T.signInButton,
|
|
4826
|
+
...T.pulseAnimation
|
|
4825
4827
|
},
|
|
4826
4828
|
onClick: e.signInCTA.onClick,
|
|
4827
|
-
children: /* @__PURE__ */ t(w, { sx:
|
|
4829
|
+
children: /* @__PURE__ */ t(w, { sx: T.signInButtonText, children: e.signInCTA.defaultLabel || l("common.signIn") })
|
|
4828
4830
|
}
|
|
4829
4831
|
) : (m = e.signInCTA) != null && m.url ? typeof window > "u" ? /* @__PURE__ */ t(
|
|
4830
|
-
|
|
4832
|
+
s,
|
|
4831
4833
|
{
|
|
4832
4834
|
component: "a",
|
|
4833
4835
|
href: e.signInCTA.url,
|
|
4834
4836
|
target: ((W = e.signInCTA) == null ? void 0 : W.target) || "_self",
|
|
4835
4837
|
sx: {
|
|
4836
|
-
...
|
|
4837
|
-
...
|
|
4838
|
+
...T.signInButton,
|
|
4839
|
+
...T.pulseAnimation,
|
|
4838
4840
|
textDecoration: "none",
|
|
4839
4841
|
display: "inline-flex",
|
|
4840
4842
|
alignItems: "center",
|
|
4841
4843
|
justifyContent: "center"
|
|
4842
4844
|
},
|
|
4843
|
-
children: /* @__PURE__ */ t(w, { sx:
|
|
4845
|
+
children: /* @__PURE__ */ t(w, { sx: T.signInButtonText, children: e.signInCTA.defaultLabel || l("common.signIn") })
|
|
4844
4846
|
}
|
|
4845
4847
|
) : /* @__PURE__ */ t(
|
|
4846
4848
|
Y,
|
|
4847
4849
|
{
|
|
4848
4850
|
variant: "soft",
|
|
4849
4851
|
sx: {
|
|
4850
|
-
...
|
|
4851
|
-
...
|
|
4852
|
+
...T.signInButton,
|
|
4853
|
+
...T.pulseAnimation
|
|
4852
4854
|
},
|
|
4853
4855
|
onClick: () => {
|
|
4854
|
-
var $,
|
|
4855
|
-
(($ = e.signInCTA) == null ? void 0 : $.target) === "_blank" ? window.open((
|
|
4856
|
+
var $, V, ee;
|
|
4857
|
+
(($ = e.signInCTA) == null ? void 0 : $.target) === "_blank" ? window.open((V = e.signInCTA) == null ? void 0 : V.url, "_blank") : window.location.href = (ee = e.signInCTA) == null ? void 0 : ee.url;
|
|
4856
4858
|
},
|
|
4857
|
-
children: /* @__PURE__ */ t(w, { sx:
|
|
4859
|
+
children: /* @__PURE__ */ t(w, { sx: T.signInButtonText, children: e.signInCTA.defaultLabel || l("common.signIn") })
|
|
4858
4860
|
}
|
|
4859
4861
|
) : /* @__PURE__ */ t(
|
|
4860
4862
|
Y,
|
|
4861
4863
|
{
|
|
4862
4864
|
variant: "soft",
|
|
4863
4865
|
sx: {
|
|
4864
|
-
...
|
|
4866
|
+
...T.signInButton
|
|
4865
4867
|
},
|
|
4866
4868
|
disabled: !0,
|
|
4867
|
-
children: /* @__PURE__ */ t(w, { sx:
|
|
4869
|
+
children: /* @__PURE__ */ t(w, { sx: T.signInButtonText, children: e.signInCTA.defaultLabel || l("common.signIn") })
|
|
4868
4870
|
}
|
|
4869
4871
|
) : /* @__PURE__ */ t(
|
|
4870
4872
|
Y,
|
|
4871
4873
|
{
|
|
4872
4874
|
variant: "soft",
|
|
4873
4875
|
sx: {
|
|
4874
|
-
...
|
|
4876
|
+
...T.signInButton
|
|
4875
4877
|
},
|
|
4876
4878
|
disabled: !0,
|
|
4877
|
-
children: /* @__PURE__ */ t(w, { sx:
|
|
4879
|
+
children: /* @__PURE__ */ t(w, { sx: T.signInButtonText, children: l("common.signIn") })
|
|
4878
4880
|
}
|
|
4879
4881
|
);
|
|
4880
4882
|
};
|
|
4881
4883
|
return /* @__PURE__ */ t(
|
|
4882
|
-
|
|
4884
|
+
Yt,
|
|
4883
4885
|
{
|
|
4884
4886
|
entity: e.personalityQuiz,
|
|
4885
4887
|
headline: l("personalityQuiz.headline"),
|
|
4886
|
-
backgroundImage:
|
|
4888
|
+
backgroundImage: F,
|
|
4887
4889
|
imageBackgroundGradient: o,
|
|
4888
4890
|
signInContent: P(),
|
|
4889
4891
|
brandingContent: /* @__PURE__ */ t(
|
|
4890
|
-
|
|
4892
|
+
M,
|
|
4891
4893
|
{
|
|
4892
|
-
brandingLogo:
|
|
4894
|
+
brandingLogo: r,
|
|
4893
4895
|
textColor: n.colorSchemes.dark.textColor,
|
|
4894
|
-
label: ((
|
|
4896
|
+
label: ((U = e.personalityQuiz.labels) == null ? void 0 : U.sponsor) || null
|
|
4895
4897
|
}
|
|
4896
4898
|
),
|
|
4897
4899
|
rulesDisplay: e.rulesDisplay
|
|
4898
4900
|
}
|
|
4899
4901
|
);
|
|
4900
|
-
},
|
|
4901
|
-
var o, i,
|
|
4902
|
+
}, Nn = (e) => {
|
|
4903
|
+
var o, i, c;
|
|
4902
4904
|
const { t: n } = q(), l = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, a = (l == null ? void 0 : l.primaryColor) || Q().palette.primary.plainColor;
|
|
4903
4905
|
return /* @__PURE__ */ t(
|
|
4904
|
-
|
|
4906
|
+
st,
|
|
4905
4907
|
{
|
|
4906
4908
|
entity: e.personalityQuiz,
|
|
4907
4909
|
headline: n("personalityQuiz.headline"),
|
|
@@ -4911,13 +4913,13 @@ const cn = (e, n) => {
|
|
|
4911
4913
|
onLeadSubmitted: () => {
|
|
4912
4914
|
},
|
|
4913
4915
|
MainCard: J,
|
|
4914
|
-
PresentedBy:
|
|
4916
|
+
PresentedBy: M,
|
|
4915
4917
|
rulesDisplay: e.rulesDisplay,
|
|
4916
4918
|
content: /* @__PURE__ */ t(
|
|
4917
|
-
|
|
4919
|
+
ct,
|
|
4918
4920
|
{
|
|
4919
4921
|
signInCTA: e.signInCTA,
|
|
4920
|
-
labels: (
|
|
4922
|
+
labels: (c = (i = e.signInCTA) == null ? void 0 : i.gate) == null ? void 0 : c.labels,
|
|
4921
4923
|
primaryColor: a,
|
|
4922
4924
|
textColor: (l == null ? void 0 : l.contentColor) || void 0,
|
|
4923
4925
|
align: "center"
|
|
@@ -4925,11 +4927,11 @@ const cn = (e, n) => {
|
|
|
4925
4927
|
)
|
|
4926
4928
|
}
|
|
4927
4929
|
);
|
|
4928
|
-
},
|
|
4929
|
-
var o, i,
|
|
4930
|
+
}, Zn = (e) => {
|
|
4931
|
+
var o, i, c;
|
|
4930
4932
|
const { t: n } = q(), l = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, a = (l == null ? void 0 : l.primaryColor) || Q().palette.primary.plainColor;
|
|
4931
4933
|
return /* @__PURE__ */ t(
|
|
4932
|
-
|
|
4934
|
+
dt,
|
|
4933
4935
|
{
|
|
4934
4936
|
entity: e.personalityQuiz,
|
|
4935
4937
|
headline: n("personalityQuiz.headline"),
|
|
@@ -4938,13 +4940,13 @@ const cn = (e, n) => {
|
|
|
4938
4940
|
onLeadSubmitted: () => {
|
|
4939
4941
|
},
|
|
4940
4942
|
MainCard: J,
|
|
4941
|
-
PresentedBy:
|
|
4943
|
+
PresentedBy: M,
|
|
4942
4944
|
rulesDisplay: e.rulesDisplay,
|
|
4943
4945
|
content: /* @__PURE__ */ t(
|
|
4944
|
-
|
|
4946
|
+
ct,
|
|
4945
4947
|
{
|
|
4946
4948
|
signInCTA: e.signInCTA,
|
|
4947
|
-
labels: (
|
|
4949
|
+
labels: (c = (i = e.signInCTA) == null ? void 0 : i.gate) == null ? void 0 : c.labels,
|
|
4948
4950
|
primaryColor: a,
|
|
4949
4951
|
textColor: (l == null ? void 0 : l.contentColor) || void 0,
|
|
4950
4952
|
align: "center"
|
|
@@ -4952,11 +4954,11 @@ const cn = (e, n) => {
|
|
|
4952
4954
|
)
|
|
4953
4955
|
}
|
|
4954
4956
|
);
|
|
4955
|
-
},
|
|
4956
|
-
var i,
|
|
4957
|
+
}, Yn = (e) => {
|
|
4958
|
+
var i, c, r;
|
|
4957
4959
|
const { t: n } = q(), l = X(), a = ((i = e.personalityQuiz.branding) == null ? void 0 : i.colors) || null, o = (a == null ? void 0 : a.primaryColor) || l.colorSchemes.dark.palette.primary.plainColor;
|
|
4958
4960
|
return /* @__PURE__ */ t(
|
|
4959
|
-
|
|
4961
|
+
mt,
|
|
4960
4962
|
{
|
|
4961
4963
|
entity: e.personalityQuiz,
|
|
4962
4964
|
headline: n("personalityQuiz.headline"),
|
|
@@ -4964,13 +4966,13 @@ const cn = (e, n) => {
|
|
|
4964
4966
|
defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
|
|
4965
4967
|
onLeadSubmitted: () => {
|
|
4966
4968
|
},
|
|
4967
|
-
PresentedBy:
|
|
4969
|
+
PresentedBy: M,
|
|
4968
4970
|
rulesDisplay: e.rulesDisplay,
|
|
4969
4971
|
content: /* @__PURE__ */ t(
|
|
4970
|
-
|
|
4972
|
+
ct,
|
|
4971
4973
|
{
|
|
4972
4974
|
signInCTA: e.signInCTA,
|
|
4973
|
-
labels: (
|
|
4975
|
+
labels: (r = (c = e.signInCTA) == null ? void 0 : c.gate) == null ? void 0 : r.labels,
|
|
4974
4976
|
primaryColor: o,
|
|
4975
4977
|
textColor: (a == null ? void 0 : a.contentColor) || l.colorSchemes.dark.textColor,
|
|
4976
4978
|
align: "center"
|
|
@@ -4978,10 +4980,10 @@ const cn = (e, n) => {
|
|
|
4978
4980
|
)
|
|
4979
4981
|
}
|
|
4980
4982
|
);
|
|
4981
|
-
},
|
|
4983
|
+
}, Kn = (e) => {
|
|
4982
4984
|
const { t: n } = q();
|
|
4983
4985
|
return /* @__PURE__ */ t(
|
|
4984
|
-
|
|
4986
|
+
st,
|
|
4985
4987
|
{
|
|
4986
4988
|
entity: e.personalityQuiz,
|
|
4987
4989
|
headline: n("personalityQuiz.headline"),
|
|
@@ -4992,16 +4994,16 @@ const cn = (e, n) => {
|
|
|
4992
4994
|
onLeadSubmitted: e.onLeadSubmitted,
|
|
4993
4995
|
isSubmitting: e.isSubmitting,
|
|
4994
4996
|
MainCard: J,
|
|
4995
|
-
PresentedBy:
|
|
4997
|
+
PresentedBy: M,
|
|
4996
4998
|
CollectLeadWrapper: we,
|
|
4997
4999
|
consents: e.consents
|
|
4998
5000
|
}
|
|
4999
5001
|
);
|
|
5000
|
-
},
|
|
5001
|
-
var o, i,
|
|
5002
|
+
}, Jn = (e) => {
|
|
5003
|
+
var o, i, c;
|
|
5002
5004
|
const { t: n } = q(), l = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, a = (l == null ? void 0 : l.primaryColor) || Q().palette.primary.plainColor;
|
|
5003
5005
|
return /* @__PURE__ */ t(
|
|
5004
|
-
|
|
5006
|
+
st,
|
|
5005
5007
|
{
|
|
5006
5008
|
entity: e.personalityQuiz,
|
|
5007
5009
|
headline: n("personalityQuiz.headline"),
|
|
@@ -5011,7 +5013,7 @@ const cn = (e, n) => {
|
|
|
5011
5013
|
onLeadSubmitted: e.onSubmit,
|
|
5012
5014
|
isSubmitting: e.isSubmitting,
|
|
5013
5015
|
MainCard: J,
|
|
5014
|
-
PresentedBy:
|
|
5016
|
+
PresentedBy: M,
|
|
5015
5017
|
rulesDisplay: e.rulesDisplay,
|
|
5016
5018
|
content: /* @__PURE__ */ t(
|
|
5017
5019
|
Qe,
|
|
@@ -5023,21 +5025,21 @@ const cn = (e, n) => {
|
|
|
5023
5025
|
}
|
|
5024
5026
|
),
|
|
5025
5027
|
footerAction: /* @__PURE__ */ t(
|
|
5026
|
-
|
|
5028
|
+
$e,
|
|
5027
5029
|
{
|
|
5028
5030
|
onClick: e.onSubmit,
|
|
5029
|
-
label: ((
|
|
5031
|
+
label: ((c = e.consents.labels) == null ? void 0 : c.ctaLabel) || n("personalityQuiz.buttons.finish"),
|
|
5030
5032
|
isSubmitting: e.isSubmitting,
|
|
5031
5033
|
primaryColor: a
|
|
5032
5034
|
}
|
|
5033
5035
|
)
|
|
5034
5036
|
}
|
|
5035
5037
|
);
|
|
5036
|
-
},
|
|
5038
|
+
}, Xn = (e) => {
|
|
5037
5039
|
var o, i;
|
|
5038
5040
|
const { t: n } = q(), l = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, a = (l == null ? void 0 : l.primaryColor) || Q().palette.primary.plainColor;
|
|
5039
5041
|
return /* @__PURE__ */ t(
|
|
5040
|
-
|
|
5042
|
+
dt,
|
|
5041
5043
|
{
|
|
5042
5044
|
entity: e.personalityQuiz,
|
|
5043
5045
|
headline: n("personalityQuiz.headline"),
|
|
@@ -5046,7 +5048,7 @@ const cn = (e, n) => {
|
|
|
5046
5048
|
onLeadSubmitted: e.onSubmit,
|
|
5047
5049
|
isSubmitting: e.isSubmitting,
|
|
5048
5050
|
MainCard: J,
|
|
5049
|
-
PresentedBy:
|
|
5051
|
+
PresentedBy: M,
|
|
5050
5052
|
rulesDisplay: e.rulesDisplay,
|
|
5051
5053
|
content: (
|
|
5052
5054
|
// This template keeps its CTA inside the content frame
|
|
@@ -5065,11 +5067,11 @@ const cn = (e, n) => {
|
|
|
5065
5067
|
)
|
|
5066
5068
|
}
|
|
5067
5069
|
);
|
|
5068
|
-
},
|
|
5069
|
-
var i,
|
|
5070
|
+
}, ei = (e) => {
|
|
5071
|
+
var i, c, r;
|
|
5070
5072
|
const { t: n } = q(), l = X(), a = ((i = e.personalityQuiz.branding) == null ? void 0 : i.colors) || null, o = (a == null ? void 0 : a.primaryColor) || l.colorSchemes.dark.palette.primary.plainColor;
|
|
5071
5073
|
return /* @__PURE__ */ t(
|
|
5072
|
-
|
|
5074
|
+
mt,
|
|
5073
5075
|
{
|
|
5074
5076
|
entity: e.personalityQuiz,
|
|
5075
5077
|
headline: n("personalityQuiz.headline"),
|
|
@@ -5077,7 +5079,7 @@ const cn = (e, n) => {
|
|
|
5077
5079
|
defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
|
|
5078
5080
|
onLeadSubmitted: e.onSubmit,
|
|
5079
5081
|
isSubmitting: e.isSubmitting,
|
|
5080
|
-
PresentedBy:
|
|
5082
|
+
PresentedBy: M,
|
|
5081
5083
|
rulesDisplay: e.rulesDisplay,
|
|
5082
5084
|
content: /* @__PURE__ */ t(
|
|
5083
5085
|
Qe,
|
|
@@ -5085,24 +5087,24 @@ const cn = (e, n) => {
|
|
|
5085
5087
|
consents: e.consents,
|
|
5086
5088
|
primaryColor: o,
|
|
5087
5089
|
textColor: (a == null ? void 0 : a.contentColor) || l.colorSchemes.dark.textColor,
|
|
5088
|
-
brandingUrls: (
|
|
5090
|
+
brandingUrls: (c = e.personalityQuiz.branding) == null ? void 0 : c.urls
|
|
5089
5091
|
}
|
|
5090
5092
|
),
|
|
5091
5093
|
footerAction: /* @__PURE__ */ t(
|
|
5092
|
-
|
|
5094
|
+
$e,
|
|
5093
5095
|
{
|
|
5094
5096
|
onClick: e.onSubmit,
|
|
5095
|
-
label: ((
|
|
5097
|
+
label: ((r = e.consents.labels) == null ? void 0 : r.ctaLabel) || n("personalityQuiz.buttons.finish"),
|
|
5096
5098
|
isSubmitting: e.isSubmitting,
|
|
5097
5099
|
primaryColor: o
|
|
5098
5100
|
}
|
|
5099
5101
|
)
|
|
5100
5102
|
}
|
|
5101
5103
|
);
|
|
5102
|
-
},
|
|
5104
|
+
}, ti = (e) => {
|
|
5103
5105
|
const { t: n } = q();
|
|
5104
5106
|
return /* @__PURE__ */ t(
|
|
5105
|
-
|
|
5107
|
+
dt,
|
|
5106
5108
|
{
|
|
5107
5109
|
entity: e.personalityQuiz,
|
|
5108
5110
|
headline: n("personalityQuiz.headline"),
|
|
@@ -5112,15 +5114,15 @@ const cn = (e, n) => {
|
|
|
5112
5114
|
onLeadSubmitted: e.onLeadSubmitted,
|
|
5113
5115
|
isSubmitting: e.isSubmitting,
|
|
5114
5116
|
MainCard: J,
|
|
5115
|
-
PresentedBy:
|
|
5117
|
+
PresentedBy: M,
|
|
5116
5118
|
CollectLeadWrapper: we,
|
|
5117
5119
|
consents: e.consents
|
|
5118
5120
|
}
|
|
5119
5121
|
);
|
|
5120
|
-
},
|
|
5122
|
+
}, ni = (e) => {
|
|
5121
5123
|
const { t: n } = q();
|
|
5122
5124
|
return /* @__PURE__ */ t(
|
|
5123
|
-
|
|
5125
|
+
mt,
|
|
5124
5126
|
{
|
|
5125
5127
|
entity: e.personalityQuiz,
|
|
5126
5128
|
headline: n("personalityQuiz.headline"),
|
|
@@ -5129,7 +5131,7 @@ const cn = (e, n) => {
|
|
|
5129
5131
|
defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
|
|
5130
5132
|
onLeadSubmitted: e.onLeadSubmitted,
|
|
5131
5133
|
isSubmitting: e.isSubmitting,
|
|
5132
|
-
PresentedBy:
|
|
5134
|
+
PresentedBy: M,
|
|
5133
5135
|
CollectLeadWrapper: we,
|
|
5134
5136
|
consents: e.consents
|
|
5135
5137
|
}
|
|
@@ -5138,22 +5140,22 @@ const cn = (e, n) => {
|
|
|
5138
5140
|
function Se(e) {
|
|
5139
5141
|
return e.template === p.STANDARD;
|
|
5140
5142
|
}
|
|
5141
|
-
const
|
|
5142
|
-
var
|
|
5143
|
-
const [n, l] =
|
|
5143
|
+
const ii = (e) => {
|
|
5144
|
+
var bt, Ct, St, It;
|
|
5145
|
+
const [n, l] = j(1), [a, o] = j(null), [i, c] = j([]), [r, y] = j([]), [C, F] = j(!1), [u, L] = j(!1), [g, R] = j(!1), [T, P] = j(!1), [S, d] = j(!1), [z, h] = j(!1), [f, x] = j(!1), [b, I] = j(!1), [D, v] = j(!1), [U, H] = j(!1), E = Ee(!1), m = mn(e.entityId, e.sdk), W = Kt({
|
|
5144
5146
|
signInCTA: e.signInCTA,
|
|
5145
5147
|
authRequired: (m == null ? void 0 : m.authRequirement) === "REGISTERED",
|
|
5146
5148
|
userIsLoggedIn: e.userIsLoggedIn,
|
|
5147
|
-
totalSteps: ((
|
|
5149
|
+
totalSteps: ((bt = m == null ? void 0 : m.questions) == null ? void 0 : bt.length) ?? 0
|
|
5148
5150
|
}), $ = W.isDeferred && W.isPending, {
|
|
5149
|
-
myParticipation:
|
|
5151
|
+
myParticipation: V,
|
|
5150
5152
|
isUnauthorized: ee,
|
|
5151
5153
|
isApiError: te,
|
|
5152
5154
|
apiMessage: ie,
|
|
5153
5155
|
setIsUnauthorized: re,
|
|
5154
5156
|
setIsApiError: se,
|
|
5155
5157
|
setApiMessage: me
|
|
5156
|
-
} =
|
|
5158
|
+
} = un(
|
|
5157
5159
|
e.entityId,
|
|
5158
5160
|
e.sdk,
|
|
5159
5161
|
u,
|
|
@@ -5166,108 +5168,103 @@ const ti = (e) => {
|
|
|
5166
5168
|
setChecked: ce,
|
|
5167
5169
|
allRequiredChecked: de,
|
|
5168
5170
|
submit: ae
|
|
5169
|
-
} =
|
|
5171
|
+
} = Jt({
|
|
5170
5172
|
sdk: e.sdk,
|
|
5171
|
-
consents: (
|
|
5173
|
+
consents: (Ct = e.consents) == null ? void 0 : Ct.items,
|
|
5172
5174
|
entityId: e.entityId,
|
|
5173
5175
|
entityType: "personality_quiz"
|
|
5174
|
-
}), le = !!((m == null ? void 0 : m.authRequirement) === "LEAD" ? (
|
|
5175
|
-
ce(
|
|
5176
|
-
}, Le = (
|
|
5177
|
-
var
|
|
5176
|
+
}), le = !!((m == null ? void 0 : m.authRequirement) === "LEAD" ? (St = e.leads) == null ? void 0 : St.position : void 0) && O.length > 0, ue = le ? [] : O.filter((k) => k.position !== "after"), ge = le ? [] : O.filter((k) => k.position === "after"), ze = (k) => {
|
|
5177
|
+
ce(k), H(!1);
|
|
5178
|
+
}, Le = (k) => {
|
|
5179
|
+
var B;
|
|
5178
5180
|
return {
|
|
5179
|
-
items:
|
|
5181
|
+
items: k,
|
|
5180
5182
|
checked: G,
|
|
5181
5183
|
onChange: ze,
|
|
5182
|
-
labels: (
|
|
5183
|
-
showError:
|
|
5184
|
+
labels: (B = e.consents) == null ? void 0 : B.labels,
|
|
5185
|
+
showError: U
|
|
5184
5186
|
};
|
|
5185
|
-
},
|
|
5186
|
-
var
|
|
5187
|
+
}, qe = et(() => {
|
|
5188
|
+
var B;
|
|
5187
5189
|
if (!m) return "";
|
|
5188
|
-
const
|
|
5189
|
-
return `${((
|
|
5190
|
+
const k = (m.questions || []).map((N) => N.questionId).join(",");
|
|
5191
|
+
return `${((B = m.questions) == null ? void 0 : B.length) ?? 0}:${k}`;
|
|
5190
5192
|
}, [m]), {
|
|
5191
|
-
read:
|
|
5192
|
-
save:
|
|
5193
|
+
read: Me,
|
|
5194
|
+
save: Ue,
|
|
5193
5195
|
clear: Fe
|
|
5194
|
-
} =
|
|
5196
|
+
} = Xt({
|
|
5195
5197
|
namespace: "personality-quiz",
|
|
5196
5198
|
entityId: e.entityId,
|
|
5197
|
-
fingerprint:
|
|
5198
|
-
}), he =
|
|
5199
|
+
fingerprint: qe
|
|
5200
|
+
}), he = Ee([]), Re = Ee(!1);
|
|
5199
5201
|
ye(() => {
|
|
5200
|
-
var
|
|
5202
|
+
var B;
|
|
5201
5203
|
if (ne || E.current) return;
|
|
5202
|
-
const
|
|
5203
|
-
x(!
|
|
5204
|
+
const k = (m == null ? void 0 : m.authRequirement) === "LEAD" && ((B = e.leads) == null ? void 0 : B.position) === "before";
|
|
5205
|
+
x(!k && ue.length > 0);
|
|
5204
5206
|
}, [
|
|
5205
5207
|
ne,
|
|
5206
5208
|
ue.length,
|
|
5207
5209
|
m == null ? void 0 : m.authRequirement
|
|
5208
5210
|
]);
|
|
5209
|
-
const
|
|
5210
|
-
var v;
|
|
5211
|
-
if (!m || !M || M.length === 0 || !((v = M[0]) != null && v.personalityQuizId) || !m.maxAttempts) return !1;
|
|
5212
|
-
const z = M[0];
|
|
5213
|
-
return m.maxAttempts <= z.attempts;
|
|
5214
|
-
}, [m, M]), Ue = Xe(() => m ? Jt(m.related) : null, [m]);
|
|
5211
|
+
const De = (It = r[0]) != null && It.personalityQuizId ? r[0] : V == null ? void 0 : V[0], Ce = et(() => !m || !(De != null && De.personalityQuizId) || !m.maxAttempts ? !1 : m.maxAttempts <= De.attempts, [m, De]), je = et(() => m ? en(m.related) : null, [m]);
|
|
5215
5212
|
ye(() => {
|
|
5216
|
-
|
|
5213
|
+
tn(e.language || "en");
|
|
5217
5214
|
}, [e.language]), ye(() => {
|
|
5218
|
-
var
|
|
5219
|
-
(
|
|
5220
|
-
}, [
|
|
5221
|
-
if (Re.current || !(m != null && m.id) || !
|
|
5215
|
+
var k, B, N;
|
|
5216
|
+
(k = r[0]) != null && k.personalityQuizId && ((N = (B = e.callbacks) == null ? void 0 : B.onFinish) == null || N.call(B, r[0]));
|
|
5217
|
+
}, [r]), ye(() => {
|
|
5218
|
+
if (Re.current || !(m != null && m.id) || !V || ne || !W.isDeferred || !W.isSignedIn) return;
|
|
5222
5219
|
if (i.length) {
|
|
5223
5220
|
Re.current = !0;
|
|
5224
5221
|
return;
|
|
5225
5222
|
}
|
|
5226
5223
|
Re.current = !0;
|
|
5227
|
-
const
|
|
5228
|
-
if (!
|
|
5229
|
-
if (
|
|
5224
|
+
const k = Me();
|
|
5225
|
+
if (!k) return;
|
|
5226
|
+
if (Ce) {
|
|
5230
5227
|
Fe();
|
|
5231
5228
|
return;
|
|
5232
5229
|
}
|
|
5233
|
-
const
|
|
5234
|
-
|
|
5235
|
-
Math.min(
|
|
5236
|
-
),
|
|
5230
|
+
const B = k.answers || [];
|
|
5231
|
+
c(B), l(
|
|
5232
|
+
Math.min(B.length + 1, m.questions.length)
|
|
5233
|
+
), k.checkedConsents && ce(k.checkedConsents), he.current = k.heldConsentIds || [], E.current = !0, x(!1);
|
|
5237
5234
|
}, [
|
|
5238
5235
|
m,
|
|
5239
|
-
|
|
5236
|
+
V,
|
|
5240
5237
|
ne,
|
|
5241
5238
|
W.isDeferred,
|
|
5242
5239
|
W.isSignedIn,
|
|
5243
|
-
|
|
5240
|
+
Ce,
|
|
5244
5241
|
i.length
|
|
5245
5242
|
]), ye(() => {
|
|
5246
|
-
!$ || !(m != null && m.id) || i.length &&
|
|
5243
|
+
!$ || !(m != null && m.id) || i.length && Ue({
|
|
5247
5244
|
answers: i,
|
|
5248
5245
|
checkedConsents: G,
|
|
5249
5246
|
heldConsentIds: he.current
|
|
5250
5247
|
});
|
|
5251
5248
|
}, [$, m, i, G]), ye(() => {
|
|
5252
|
-
|
|
5253
|
-
}, [
|
|
5254
|
-
const
|
|
5249
|
+
Ce && Fe();
|
|
5250
|
+
}, [Ce]);
|
|
5251
|
+
const Ve = Ee(null);
|
|
5255
5252
|
if (ye(() => {
|
|
5256
|
-
var
|
|
5257
|
-
W.isPending || !
|
|
5258
|
-
}, [W.isPending,
|
|
5253
|
+
var k;
|
|
5254
|
+
W.isPending || !z || (h(!1), (k = Ve.current) == null || k.call(Ve));
|
|
5255
|
+
}, [W.isPending, z]), ye(() => {
|
|
5259
5256
|
if (W.isPending || !he.current.length) return;
|
|
5260
|
-
const
|
|
5261
|
-
(
|
|
5257
|
+
const k = O.filter(
|
|
5258
|
+
(B) => he.current.includes(B.consentId)
|
|
5262
5259
|
);
|
|
5263
|
-
he.current = [],
|
|
5264
|
-
}, [W.isPending, O, ae]), !m || !
|
|
5265
|
-
return /* @__PURE__ */ t(
|
|
5260
|
+
he.current = [], k.length && ae(k);
|
|
5261
|
+
}, [W.isPending, O, ae]), !m || !V)
|
|
5262
|
+
return /* @__PURE__ */ t(zt, { my: 20 });
|
|
5266
5263
|
if (!m.id)
|
|
5267
|
-
return /* @__PURE__ */ t(
|
|
5264
|
+
return /* @__PURE__ */ t(qn, {});
|
|
5268
5265
|
if (m.status !== "ACTIVE")
|
|
5269
5266
|
return /* @__PURE__ */ t(
|
|
5270
|
-
|
|
5267
|
+
Mn,
|
|
5271
5268
|
{
|
|
5272
5269
|
personalityQuiz: m,
|
|
5273
5270
|
template: e.template,
|
|
@@ -5278,7 +5275,7 @@ const ti = (e) => {
|
|
|
5278
5275
|
);
|
|
5279
5276
|
if (W.isPending && W.position === "before")
|
|
5280
5277
|
return Se(e) ? /* @__PURE__ */ t(
|
|
5281
|
-
|
|
5278
|
+
En,
|
|
5282
5279
|
{
|
|
5283
5280
|
personalityQuiz: m,
|
|
5284
5281
|
imagePosition: e.imagePosition,
|
|
@@ -5286,26 +5283,26 @@ const ti = (e) => {
|
|
|
5286
5283
|
signInCTA: e.signInCTA
|
|
5287
5284
|
}
|
|
5288
5285
|
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5289
|
-
|
|
5286
|
+
Gn,
|
|
5290
5287
|
{
|
|
5291
5288
|
personalityQuiz: m,
|
|
5292
5289
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5293
5290
|
signInCTA: e.signInCTA
|
|
5294
5291
|
}
|
|
5295
5292
|
) : /* @__PURE__ */ t(
|
|
5296
|
-
|
|
5293
|
+
On,
|
|
5297
5294
|
{
|
|
5298
5295
|
personalityQuiz: m,
|
|
5299
5296
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5300
5297
|
signInCTA: e.signInCTA
|
|
5301
5298
|
}
|
|
5302
5299
|
);
|
|
5303
|
-
const
|
|
5304
|
-
se(!1), re(!1), y([]), l(1), o(null),
|
|
5300
|
+
const Ne = () => {
|
|
5301
|
+
se(!1), re(!1), y([]), l(1), o(null), c([]), F(!1), R(!1), P(!1), d(!1), L(!u);
|
|
5305
5302
|
};
|
|
5306
5303
|
if (ee || te)
|
|
5307
5304
|
return Se(e) ? /* @__PURE__ */ t(
|
|
5308
|
-
|
|
5305
|
+
Un,
|
|
5309
5306
|
{
|
|
5310
5307
|
personalityQuiz: m,
|
|
5311
5308
|
imagePosition: e.imagePosition,
|
|
@@ -5313,39 +5310,39 @@ const ti = (e) => {
|
|
|
5313
5310
|
apiErrorMessage: ie,
|
|
5314
5311
|
isApiError: te,
|
|
5315
5312
|
rulesDisplay: e.rulesDisplay,
|
|
5316
|
-
toggleTryAgain:
|
|
5313
|
+
toggleTryAgain: Ne
|
|
5317
5314
|
}
|
|
5318
5315
|
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5319
|
-
|
|
5316
|
+
Vn,
|
|
5320
5317
|
{
|
|
5321
5318
|
personalityQuiz: m,
|
|
5322
5319
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5323
5320
|
apiErrorMessage: ie,
|
|
5324
5321
|
isApiError: te,
|
|
5325
5322
|
rulesDisplay: e.rulesDisplay,
|
|
5326
|
-
toggleTryAgain:
|
|
5323
|
+
toggleTryAgain: Ne
|
|
5327
5324
|
}
|
|
5328
5325
|
) : /* @__PURE__ */ t(
|
|
5329
|
-
|
|
5326
|
+
jn,
|
|
5330
5327
|
{
|
|
5331
5328
|
personalityQuiz: m,
|
|
5332
5329
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5333
5330
|
apiErrorMessage: ie,
|
|
5334
5331
|
isApiError: te,
|
|
5335
5332
|
rulesDisplay: e.rulesDisplay,
|
|
5336
|
-
toggleTryAgain:
|
|
5333
|
+
toggleTryAgain: Ne
|
|
5337
5334
|
}
|
|
5338
5335
|
);
|
|
5339
|
-
const
|
|
5336
|
+
const Ze = async () => {
|
|
5340
5337
|
var N;
|
|
5341
|
-
const
|
|
5338
|
+
const k = m.questions[n - 1], B = [
|
|
5342
5339
|
...i,
|
|
5343
5340
|
{
|
|
5344
|
-
questionId:
|
|
5341
|
+
questionId: k.questionId,
|
|
5345
5342
|
optionId: a
|
|
5346
5343
|
}
|
|
5347
5344
|
];
|
|
5348
|
-
if (
|
|
5345
|
+
if (c(B), n < m.questions.length) {
|
|
5349
5346
|
l((Ae) => Ae + 1), o(null);
|
|
5350
5347
|
return;
|
|
5351
5348
|
}
|
|
@@ -5358,39 +5355,39 @@ const ti = (e) => {
|
|
|
5358
5355
|
I(!0);
|
|
5359
5356
|
return;
|
|
5360
5357
|
}
|
|
5361
|
-
if (((N = e.leads) == null ? void 0 : N.position) === "after" && m.authRequirement === "LEAD" && !
|
|
5358
|
+
if (((N = e.leads) == null ? void 0 : N.position) === "after" && m.authRequirement === "LEAD" && !T) {
|
|
5362
5359
|
d(!0);
|
|
5363
5360
|
return;
|
|
5364
5361
|
}
|
|
5365
|
-
await
|
|
5362
|
+
await pe(B);
|
|
5366
5363
|
}
|
|
5367
|
-
},
|
|
5364
|
+
}, pe = async (k) => {
|
|
5368
5365
|
try {
|
|
5369
|
-
|
|
5370
|
-
const
|
|
5366
|
+
F(!0);
|
|
5367
|
+
const B = await e.sdk.miniGames.participateInPersonalityQuiz(
|
|
5371
5368
|
e.entityId,
|
|
5372
|
-
|
|
5369
|
+
k
|
|
5373
5370
|
);
|
|
5374
|
-
|
|
5375
|
-
} catch (
|
|
5376
|
-
|
|
5377
|
-
const { code: N, message: Ae } =
|
|
5371
|
+
F(!1), y([B]), o(null), Fe();
|
|
5372
|
+
} catch (B) {
|
|
5373
|
+
F(!1), y([new Dt()]), console.error("[personality-quiz-play] participation failed", B);
|
|
5374
|
+
const { code: N, message: Ae } = nn(B, e.sdk);
|
|
5378
5375
|
N === 401 || N === 403 ? re(!0) : (se(!0), me(Ae || ""));
|
|
5379
5376
|
}
|
|
5380
|
-
},
|
|
5381
|
-
var
|
|
5377
|
+
}, Bt = async () => {
|
|
5378
|
+
var k;
|
|
5382
5379
|
if (ge.length > 0 && !D) {
|
|
5383
5380
|
I(!0);
|
|
5384
5381
|
return;
|
|
5385
5382
|
}
|
|
5386
|
-
if (((
|
|
5383
|
+
if (((k = e.leads) == null ? void 0 : k.position) === "after" && m.authRequirement === "LEAD" && !T) {
|
|
5387
5384
|
d(!0);
|
|
5388
5385
|
return;
|
|
5389
5386
|
}
|
|
5390
|
-
await
|
|
5387
|
+
await pe(i);
|
|
5391
5388
|
};
|
|
5392
|
-
|
|
5393
|
-
const
|
|
5389
|
+
Ve.current = Bt;
|
|
5390
|
+
const Ye = async () => {
|
|
5394
5391
|
if (ue.length > 0) {
|
|
5395
5392
|
if (g) return;
|
|
5396
5393
|
if (!de(ue)) {
|
|
@@ -5398,26 +5395,26 @@ const ti = (e) => {
|
|
|
5398
5395
|
return;
|
|
5399
5396
|
}
|
|
5400
5397
|
$ ? he.current = ue.map(
|
|
5401
|
-
(
|
|
5402
|
-
) : (
|
|
5398
|
+
(k) => k.consentId
|
|
5399
|
+
) : (R(!0), await ae(ue), R(!1));
|
|
5403
5400
|
}
|
|
5404
5401
|
E.current = !0, x(!1);
|
|
5405
|
-
},
|
|
5402
|
+
}, Wt = async () => {
|
|
5406
5403
|
if (!de(ge)) {
|
|
5407
5404
|
H(!0);
|
|
5408
5405
|
return;
|
|
5409
5406
|
}
|
|
5410
|
-
|
|
5411
|
-
},
|
|
5412
|
-
|
|
5413
|
-
},
|
|
5414
|
-
o(
|
|
5415
|
-
},
|
|
5416
|
-
l(1), o(null),
|
|
5417
|
-
},
|
|
5418
|
-
const
|
|
5407
|
+
R(!0), await ae(ge), v(!0), await pe(i), R(!1), I(!1);
|
|
5408
|
+
}, Ke = async () => {
|
|
5409
|
+
R(!0), await pe(i), R(!1), P(!0);
|
|
5410
|
+
}, Je = (k) => {
|
|
5411
|
+
o(k);
|
|
5412
|
+
}, Xe = () => {
|
|
5413
|
+
l(1), o(null), c([]), y([]), R(!1), P(!1), d(!1), I(!1), H(!1);
|
|
5414
|
+
}, Ht = () => {
|
|
5415
|
+
const k = Le(ue), B = le ? O : void 0, N = ge.length > 0 && !D;
|
|
5419
5416
|
return e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5420
|
-
|
|
5417
|
+
yn,
|
|
5421
5418
|
{
|
|
5422
5419
|
sdk: e.sdk,
|
|
5423
5420
|
leads: e.leads,
|
|
@@ -5425,20 +5422,20 @@ const ti = (e) => {
|
|
|
5425
5422
|
question: m.questions[n - 1],
|
|
5426
5423
|
selectedOption: a,
|
|
5427
5424
|
currentQuestion: n,
|
|
5428
|
-
answerQuestion:
|
|
5429
|
-
handleNext:
|
|
5425
|
+
answerQuestion: Je,
|
|
5426
|
+
handleNext: Ze,
|
|
5430
5427
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5431
5428
|
rulesDisplay: e.rulesDisplay,
|
|
5432
|
-
isLoading:
|
|
5433
|
-
consents:
|
|
5434
|
-
leadConsents:
|
|
5429
|
+
isLoading: C,
|
|
5430
|
+
consents: k,
|
|
5431
|
+
leadConsents: B,
|
|
5435
5432
|
applyConsentGate: f,
|
|
5436
5433
|
hasAfterConsents: N,
|
|
5437
5434
|
isSubmitting: g,
|
|
5438
|
-
startPlaying:
|
|
5435
|
+
startPlaying: Ye
|
|
5439
5436
|
}
|
|
5440
5437
|
) : Se(e) ? /* @__PURE__ */ t(
|
|
5441
|
-
|
|
5438
|
+
hn,
|
|
5442
5439
|
{
|
|
5443
5440
|
sdk: e.sdk,
|
|
5444
5441
|
leads: e.leads,
|
|
@@ -5446,22 +5443,22 @@ const ti = (e) => {
|
|
|
5446
5443
|
question: m.questions[n - 1],
|
|
5447
5444
|
selectedOption: a,
|
|
5448
5445
|
currentQuestion: n,
|
|
5449
|
-
answerQuestion:
|
|
5450
|
-
handleNext:
|
|
5446
|
+
answerQuestion: Je,
|
|
5447
|
+
handleNext: Ze,
|
|
5451
5448
|
imagePosition: e.imagePosition,
|
|
5452
5449
|
userParticipation: i,
|
|
5453
5450
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5454
5451
|
rulesDisplay: e.rulesDisplay,
|
|
5455
|
-
isLoading:
|
|
5456
|
-
consents:
|
|
5457
|
-
leadConsents:
|
|
5452
|
+
isLoading: C,
|
|
5453
|
+
consents: k,
|
|
5454
|
+
leadConsents: B,
|
|
5458
5455
|
applyConsentGate: f,
|
|
5459
5456
|
hasAfterConsents: N,
|
|
5460
5457
|
isSubmitting: g,
|
|
5461
|
-
startPlaying:
|
|
5458
|
+
startPlaying: Ye
|
|
5462
5459
|
}
|
|
5463
5460
|
) : /* @__PURE__ */ t(
|
|
5464
|
-
|
|
5461
|
+
Cn,
|
|
5465
5462
|
{
|
|
5466
5463
|
sdk: e.sdk,
|
|
5467
5464
|
leads: e.leads,
|
|
@@ -5469,22 +5466,22 @@ const ti = (e) => {
|
|
|
5469
5466
|
question: m.questions[n - 1],
|
|
5470
5467
|
selectedOption: a,
|
|
5471
5468
|
currentQuestion: n,
|
|
5472
|
-
answerQuestion:
|
|
5473
|
-
handleNext:
|
|
5469
|
+
answerQuestion: Je,
|
|
5470
|
+
handleNext: Ze,
|
|
5474
5471
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5475
5472
|
rulesDisplay: e.rulesDisplay,
|
|
5476
|
-
isLoading:
|
|
5477
|
-
consents:
|
|
5478
|
-
leadConsents:
|
|
5473
|
+
isLoading: C,
|
|
5474
|
+
consents: k,
|
|
5475
|
+
leadConsents: B,
|
|
5479
5476
|
applyConsentGate: f,
|
|
5480
5477
|
hasAfterConsents: N,
|
|
5481
5478
|
isSubmitting: g,
|
|
5482
|
-
startPlaying:
|
|
5479
|
+
startPlaying: Ye
|
|
5483
5480
|
}
|
|
5484
5481
|
);
|
|
5485
5482
|
};
|
|
5486
|
-
if ($ && (
|
|
5487
|
-
const
|
|
5483
|
+
if ($ && (z || W.position === "step" && n > W.afterStep)) {
|
|
5484
|
+
const k = {
|
|
5488
5485
|
personalityQuiz: m,
|
|
5489
5486
|
sdk: e.sdk,
|
|
5490
5487
|
signInCTA: e.signInCTA,
|
|
@@ -5492,108 +5489,108 @@ const ti = (e) => {
|
|
|
5492
5489
|
rulesDisplay: e.rulesDisplay
|
|
5493
5490
|
};
|
|
5494
5491
|
return Se(e) ? /* @__PURE__ */ t(
|
|
5495
|
-
|
|
5492
|
+
Nn,
|
|
5496
5493
|
{
|
|
5497
|
-
...
|
|
5494
|
+
...k,
|
|
5498
5495
|
imagePosition: e.imagePosition
|
|
5499
5496
|
}
|
|
5500
|
-
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5497
|
+
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(Yn, { ...k }) : /* @__PURE__ */ t(Zn, { ...k });
|
|
5501
5498
|
}
|
|
5502
5499
|
if (b && ge.length > 0) {
|
|
5503
|
-
const
|
|
5500
|
+
const k = {
|
|
5504
5501
|
personalityQuiz: m,
|
|
5505
5502
|
sdk: e.sdk,
|
|
5506
5503
|
consents: Le(ge),
|
|
5507
|
-
onSubmit:
|
|
5504
|
+
onSubmit: Wt,
|
|
5508
5505
|
isSubmitting: g,
|
|
5509
5506
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5510
5507
|
rulesDisplay: e.rulesDisplay
|
|
5511
5508
|
};
|
|
5512
5509
|
return Se(e) ? /* @__PURE__ */ t(
|
|
5513
|
-
|
|
5510
|
+
Jn,
|
|
5514
5511
|
{
|
|
5515
|
-
...
|
|
5512
|
+
...k,
|
|
5516
5513
|
imagePosition: e.imagePosition
|
|
5517
5514
|
}
|
|
5518
|
-
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5515
|
+
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(ei, { ...k }) : /* @__PURE__ */ t(Xn, { ...k });
|
|
5519
5516
|
}
|
|
5520
|
-
if (
|
|
5517
|
+
if (S && !T)
|
|
5521
5518
|
return Se(e) ? /* @__PURE__ */ t(
|
|
5522
|
-
|
|
5519
|
+
Kn,
|
|
5523
5520
|
{
|
|
5524
5521
|
personalityQuiz: m,
|
|
5525
5522
|
sdk: e.sdk,
|
|
5526
5523
|
leads: e.leads,
|
|
5527
5524
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5528
5525
|
imagePosition: e.imagePosition,
|
|
5529
|
-
onLeadSubmitted:
|
|
5526
|
+
onLeadSubmitted: Ke,
|
|
5530
5527
|
isSubmitting: g,
|
|
5531
5528
|
consents: le ? O : void 0
|
|
5532
5529
|
}
|
|
5533
5530
|
) : e.template === p.SPLIT ? /* @__PURE__ */ t(
|
|
5534
|
-
|
|
5531
|
+
ti,
|
|
5535
5532
|
{
|
|
5536
5533
|
personalityQuiz: m,
|
|
5537
5534
|
sdk: e.sdk,
|
|
5538
5535
|
leads: e.leads,
|
|
5539
5536
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5540
|
-
onLeadSubmitted:
|
|
5537
|
+
onLeadSubmitted: Ke,
|
|
5541
5538
|
isSubmitting: g,
|
|
5542
5539
|
consents: le ? O : void 0
|
|
5543
5540
|
}
|
|
5544
5541
|
) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5545
|
-
|
|
5542
|
+
ni,
|
|
5546
5543
|
{
|
|
5547
5544
|
personalityQuiz: m,
|
|
5548
5545
|
sdk: e.sdk,
|
|
5549
5546
|
leads: e.leads,
|
|
5550
5547
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5551
|
-
onLeadSubmitted:
|
|
5548
|
+
onLeadSubmitted: Ke,
|
|
5552
5549
|
isSubmitting: g,
|
|
5553
5550
|
consents: le ? O : void 0
|
|
5554
5551
|
}
|
|
5555
|
-
) : /* @__PURE__ */ t(
|
|
5556
|
-
if (
|
|
5557
|
-
const
|
|
5552
|
+
) : /* @__PURE__ */ t(zt, { my: 20 });
|
|
5553
|
+
if (r.length || Ce) {
|
|
5554
|
+
const k = r[0] ?? V[0], B = je ? /* @__PURE__ */ t(At, { entityId: je, sdk: e.sdk, children: (Ae) => /* @__PURE__ */ t(Tt, { infoPage: Ae, variant: e.chanceGameVariant }) }) : void 0, N = je ? /* @__PURE__ */ t(At, { entityId: je, sdk: e.sdk, children: (Ae) => /* @__PURE__ */ t(Tt, { infoPage: Ae, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
|
|
5558
5555
|
return e.template === p.OVERLAY ? /* @__PURE__ */ t(
|
|
5559
|
-
|
|
5556
|
+
Hn,
|
|
5560
5557
|
{
|
|
5561
|
-
summary:
|
|
5558
|
+
summary: k,
|
|
5562
5559
|
showAnswerExplanations: e.showAnswerExplanations || !1,
|
|
5563
5560
|
personalityQuiz: m,
|
|
5564
|
-
maxAttemptsReached:
|
|
5565
|
-
playAgain:
|
|
5561
|
+
maxAttemptsReached: Ce,
|
|
5562
|
+
playAgain: Xe,
|
|
5566
5563
|
sdk: e.sdk,
|
|
5567
5564
|
leads: e.leads,
|
|
5568
5565
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5569
5566
|
rulesDisplay: e.rulesDisplay,
|
|
5570
5567
|
additionalCTA: e.additionalCTA,
|
|
5571
|
-
chanceGameContent:
|
|
5568
|
+
chanceGameContent: B
|
|
5572
5569
|
}
|
|
5573
5570
|
) : Se(e) ? /* @__PURE__ */ t(
|
|
5574
|
-
|
|
5571
|
+
Rn,
|
|
5575
5572
|
{
|
|
5576
5573
|
imagePosition: e.imagePosition || "left",
|
|
5577
|
-
summary:
|
|
5574
|
+
summary: k,
|
|
5578
5575
|
showAnswerExplanations: e.showAnswerExplanations || !1,
|
|
5579
5576
|
personalityQuiz: m,
|
|
5580
|
-
maxAttemptsReached:
|
|
5577
|
+
maxAttemptsReached: Ce,
|
|
5581
5578
|
sdk: e.sdk,
|
|
5582
5579
|
leads: e.leads,
|
|
5583
|
-
playAgain:
|
|
5580
|
+
playAgain: Xe,
|
|
5584
5581
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
5585
5582
|
rulesDisplay: e.rulesDisplay,
|
|
5586
5583
|
additionalCTA: e.additionalCTA,
|
|
5587
5584
|
chanceGameContent: N
|
|
5588
5585
|
}
|
|
5589
5586
|
) : /* @__PURE__ */ t(
|
|
5590
|
-
|
|
5587
|
+
Dn,
|
|
5591
5588
|
{
|
|
5592
|
-
summary:
|
|
5589
|
+
summary: k,
|
|
5593
5590
|
showAnswerExplanations: e.showAnswerExplanations || !1,
|
|
5594
5591
|
personalityQuiz: m,
|
|
5595
|
-
maxAttemptsReached:
|
|
5596
|
-
playAgain:
|
|
5592
|
+
maxAttemptsReached: Ce,
|
|
5593
|
+
playAgain: Xe,
|
|
5597
5594
|
sdk: e.sdk,
|
|
5598
5595
|
leads: e.leads,
|
|
5599
5596
|
defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
|
|
@@ -5603,8 +5600,8 @@ const ti = (e) => {
|
|
|
5603
5600
|
}
|
|
5604
5601
|
);
|
|
5605
5602
|
}
|
|
5606
|
-
return
|
|
5607
|
-
},
|
|
5603
|
+
return Ht();
|
|
5604
|
+
}, hi = (e) => /* @__PURE__ */ t(an, { packageName: "personality-quiz-play", ...e, children: /* @__PURE__ */ t(ii, { ...e }) });
|
|
5608
5605
|
export {
|
|
5609
|
-
|
|
5606
|
+
hi as M
|
|
5610
5607
|
};
|