fansunited-frontend-components 0.0.95 → 0.0.96

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.
Files changed (104) hide show
  1. package/Betslip.d.ts +1 -2
  2. package/Betslip.d.ts.map +1 -1
  3. package/Betslip.js +4 -3
  4. package/ChanceGame.js +165 -163
  5. package/ChanceGameComponent.d.ts +1 -1
  6. package/ChanceGameComponent.d.ts.map +1 -1
  7. package/ClassicQuizPlay.d.ts +1 -1
  8. package/ClassicQuizPlay.d.ts.map +1 -1
  9. package/ClassicQuizPlay.js +4 -3
  10. package/CollectLead.d.ts +1 -1
  11. package/CollectLead.d.ts.map +1 -1
  12. package/CollectLead.js +37 -36
  13. package/CompetitionStatistics.d.ts +1 -2
  14. package/CompetitionStatistics.d.ts.map +1 -1
  15. package/CompetitionStatistics.js +458 -451
  16. package/CompetitorCard.d.ts +1 -2
  17. package/CompetitorCard.d.ts.map +1 -1
  18. package/CompetitorCard.js +1235 -1226
  19. package/Discussion.d.ts +1 -1
  20. package/Discussion.d.ts.map +1 -1
  21. package/Discussion.js +4 -3
  22. package/EitherOrPlay.d.ts +1 -1
  23. package/EitherOrPlay.d.ts.map +1 -1
  24. package/EitherOrPlay.js +4 -3
  25. package/EventCard.d.ts +1 -2
  26. package/EventCard.d.ts.map +1 -1
  27. package/EventCard.js +1249 -1244
  28. package/EventGamePlay.d.ts +1 -1
  29. package/EventGamePlay.d.ts.map +1 -1
  30. package/EventGamePlay.js +4 -3
  31. package/Leaderboard.d.ts +1 -1
  32. package/Leaderboard.d.ts.map +1 -1
  33. package/Leaderboard.js +482 -449
  34. package/List.d.ts +1 -2
  35. package/List.d.ts.map +1 -1
  36. package/List.js +258 -254
  37. package/MatchQuizPlay.d.ts +1 -1
  38. package/MatchQuizPlay.d.ts.map +1 -1
  39. package/MatchQuizPlay.js +4 -3
  40. package/Odds.d.ts +1 -2
  41. package/Odds.d.ts.map +1 -1
  42. package/Odds.js +35 -34
  43. package/PersonalityQuizPlay.d.ts +1 -1
  44. package/PersonalityQuizPlay.d.ts.map +1 -1
  45. package/PersonalityQuizPlay.js +4 -3
  46. package/PickThePair.js +102 -100
  47. package/PickThePairComponent.d.ts +1 -1
  48. package/PickThePairComponent.d.ts.map +1 -1
  49. package/PlayerOfTheMatch.d.ts +1 -2
  50. package/PlayerOfTheMatch.d.ts.map +1 -1
  51. package/PlayerOfTheMatch.js +1096 -1085
  52. package/PollVote.d.ts +1 -1
  53. package/PollVote.d.ts.map +1 -1
  54. package/PollVote.js +4 -3
  55. package/Predictor.d.ts +1 -2
  56. package/Predictor.d.ts.map +1 -1
  57. package/Predictor.js +4553 -4525
  58. package/README.md +1 -1
  59. package/Standings.d.ts +1 -2
  60. package/Standings.d.ts.map +1 -1
  61. package/Standings.js +404 -394
  62. package/TopX.d.ts +1 -2
  63. package/TopX.d.ts.map +1 -1
  64. package/TopX.js +5296 -5286
  65. package/chunks/{ChanceGameEmbedVariant-C3NGwvTF.js → ChanceGameEmbedVariant-CVys-3Zh.js} +1 -1
  66. package/chunks/{OddsSkeleton-Bav8FHHN.js → OddsSkeleton-ClJE2xhR.js} +5 -5
  67. package/chunks/{OddsStrip-CviVfQI4.js → OddsStrip-BnSp5TXa.js} +3 -3
  68. package/chunks/{PickOneOfX-a6Dv0-rR.js → PickOneOfX-DaJtkbCw.js} +6 -6
  69. package/chunks/index-Aq5MbUB9.js +4 -0
  70. package/chunks/index-BBQm_8LD.js +4 -0
  71. package/chunks/index-BC_sWWgc.js +4 -0
  72. package/chunks/index-DXKDJ1Vp.js +4 -0
  73. package/chunks/index-DjT5NrbA.js +4 -0
  74. package/chunks/index-DvLRehH6.js +4 -0
  75. package/chunks/index-aIMaxR-p.js +4 -0
  76. package/chunks/{main-Dj4Manb5.js → main-52Wff7qC.js} +1763 -1757
  77. package/chunks/{main-dwV_55lz.js → main-65WcUqAl.js} +615 -615
  78. package/chunks/{main-gexg6lc-.js → main-B58mi9jx.js} +349 -334
  79. package/chunks/{main-Dys2_Jt2.js → main-BIdXUTZS.js} +842 -827
  80. package/chunks/{main-CFwRpvUi.js → main-DD-NEzC7.js} +818 -817
  81. package/chunks/{main-DjiQz1dv.js → main-DUnfJPzY.js} +311 -311
  82. package/chunks/{main-eAQMCxQ7.js → main-DpCBqqg_.js} +322 -321
  83. package/chunks/{main-D9tFZv2q.js → main-Drznt1ak.js} +283 -282
  84. package/chunks/withVersionStamp-B6nArAj4.js +16 -0
  85. package/index.d.ts.map +1 -1
  86. package/index.js +45 -50
  87. package/package.json +57 -49
  88. package/withVersionStamp.d.ts +4 -0
  89. package/withVersionStamp.d.ts.map +1 -0
  90. package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +0 -4
  91. package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +0 -4
  92. package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +0 -4
  93. package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +0 -4
  94. package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +0 -4
  95. package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +0 -4
  96. package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +0 -4
  97. package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +0 -4
  98. package/chunks/index-B1d9q8fX.js +0 -4
  99. package/chunks/index-BP0pvFJ4.js +0 -4
  100. package/chunks/index-CHZyL_g_.js +0 -4
  101. package/chunks/index-CeCUdRmF.js +0 -4
  102. package/chunks/index-Ckyyw-I8.js +0 -4
  103. package/chunks/index-DGvCP5G8.js +0 -4
  104. package/chunks/index-yjMVOgwO.js +0 -4
@@ -1,36 +1,36 @@
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 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";
2
+ import { useDisableCache as qt, 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 Mt, CollectLeadForm as Ut, 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 jt, ConsentPanel as Qe, ConsentCta as $e, DirectionalIcon as ot, getSpacing as Vt, isExtraSmall as pt, hexToRgb as ke, StandardSkeleton as Et, SplitSkeleton as $t, stripHtmlTags as Ot, StandardContentSkeleton as Pt, AdditionalCTA as rt, SplitScoreStateSkeleton as _t, useImageBackgroundGradient as Ft, sanitizeBackgroundUrl as Rt, OverlayScoreStateWrapperSkeleton as Gt, NotFoundSkeleton as Nt, OverlayApiErrorSkeleton as Qt, SplitApiErrorSkeleton as wt, StandardApiErrorSkeleton as Lt, StandardSignInSkeleton as Zt, SplitSignInSkeleton as Yt, OverlaySignInSkeleton as Kt, StandardLeadAfterCollection as st, SignInGatePanel as ct, SplitLeadAfterCollection as dt, OverlayLeadAfterCollection as mt, useSignInGate as Jt, useConsents as Xt, useParticipationDraft as en, getRelatedInfoPageId as tn, initializeI18n as nn, Spinner as zt, ChanceGameEmbed as At, extractSdkError as an, Portal as ln } from "fansunited-frontend-core";
3
+ import { C as Tt } from "./ChanceGameEmbedVariant-CVys-3Zh.js";
4
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";
5
+ import { PersonalityQuizFullModel as on, PersonalityQuizParticipationModel as Dt } from "fansunited-sdk-esm/models";
6
+ import { Box as c, 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 rn, Stack as sn } from "@mui/joy";
7
7
  import ut from "@mui/icons-material/ArrowRightAlt";
8
8
  import { useTranslation as q } from "react-i18next";
9
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 () => {
10
+ import cn from "@mui/icons-material/CheckCircle";
11
+ import dn from "@mui/icons-material/Info";
12
+ import mn from "@mui/icons-material/Warning";
13
+ const un = (e, n) => {
14
+ const [l, a] = j(null), o = qt(), i = async () => {
15
15
  try {
16
- const i = await n.miniGames.getPersonalityQuizById(e, !0);
17
- a(i);
18
- } catch (i) {
19
- console.error(i), a(new ln());
16
+ const r = await n.miniGames.getPersonalityQuizById(e, o);
17
+ a(r);
18
+ } catch (r) {
19
+ console.error(r), a(new on());
20
20
  }
21
21
  };
22
- return ye(() => (o(), () => a(null)), [e, n]), l;
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));
22
+ return ye(() => (i(), () => a(null)), [e, n, o]), l;
23
+ }, gn = (e, n, l, a = !1, o = !1) => {
24
+ const [i, r] = j(null), [s, y] = j(!1), [C, F] = j(!1), [u, L] = j(""), [g, R] = j(l);
25
+ l !== g && (R(l), r(null));
26
26
  const T = async () => {
27
27
  try {
28
28
  const P = await n.miniGames.getMyPersonalityQuizParticipations({
29
29
  personalityQuizIds: [e]
30
30
  });
31
- c(P.data);
31
+ r(P.data);
32
32
  } catch (P) {
33
- if (c([new Dt()]), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
33
+ if (r([new Dt()]), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
34
34
  const z = P;
35
35
  if (z.error.code === 401 || z.error.code === 403) {
36
36
  a || y(!0);
@@ -47,9 +47,9 @@ const mn = (e, n) => {
47
47
  F(!0), L(d.data.error.message || "");
48
48
  }
49
49
  };
50
- return ye(() => (T(), () => c((P) => P === null ? null : [])), [e, n, l, a, o]), {
50
+ return ye(() => (T(), () => r((P) => P === null ? null : [])), [e, n, l, a, o]), {
51
51
  myParticipation: i,
52
- isUnauthorized: r,
52
+ isUnauthorized: s,
53
53
  isApiError: C,
54
54
  apiMessage: u,
55
55
  setIsUnauthorized: y,
@@ -58,9 +58,9 @@ const mn = (e, n) => {
58
58
  };
59
59
  }, tt = (e) => {
60
60
  var d;
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 ? {
61
+ const n = X(), l = Q(), a = oe().sm, o = K().primary, i = oe().xs, r = nt().size, s = 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
62
  bgcolor: F,
63
- boxShadow: `inset 0 0 0 ${c} ${F}`,
63
+ boxShadow: `inset 0 0 0 ${r} ${F}`,
64
64
  color: u
65
65
  } : {
66
66
  bgcolor: "#FFFFFF",
@@ -70,14 +70,14 @@ const mn = (e, n) => {
70
70
  e.answerQuestion(e.option.optionId);
71
71
  }, { bgcolor: T, color: P, boxShadow: S } = g(e.option);
72
72
  return /* @__PURE__ */ t(
73
- s,
73
+ c,
74
74
  {
75
75
  sx: {
76
76
  borderRadius: a,
77
77
  flex: 1,
78
78
  // Take equal space within the row
79
- p: r.xs,
80
- gap: r.xs,
79
+ p: s.xs,
80
+ gap: s.xs,
81
81
  bgcolor: T,
82
82
  cursor: "pointer",
83
83
  transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
@@ -96,7 +96,7 @@ const mn = (e, n) => {
96
96
  onClick: R,
97
97
  children: C ? /* @__PURE__ */ A(Z, { children: [
98
98
  /* @__PURE__ */ t(
99
- s,
99
+ c,
100
100
  {
101
101
  sx: {
102
102
  borderRadius: i,
@@ -129,7 +129,7 @@ const mn = (e, n) => {
129
129
  letterSpacing: "0.46px",
130
130
  textAlign: "center",
131
131
  color: P,
132
- px: r["2xs"]
132
+ px: s["2xs"]
133
133
  },
134
134
  children: e.option.option
135
135
  }
@@ -146,7 +146,7 @@ const mn = (e, n) => {
146
146
  letterSpacing: "0.46px",
147
147
  textAlign: "center",
148
148
  color: P,
149
- px: r["2xs"],
149
+ px: s["2xs"],
150
150
  my: "auto"
151
151
  },
152
152
  children: e.option.option
@@ -162,8 +162,8 @@ const mn = (e, n) => {
162
162
  const a = e.options.slice(l, l + 2);
163
163
  n.push(a);
164
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
+ return /* @__PURE__ */ t(c, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: n.map((l, a) => /* @__PURE__ */ t(
166
+ c,
167
167
  {
168
168
  sx: {
169
169
  display: "flex",
@@ -188,7 +188,7 @@ const mn = (e, n) => {
188
188
  `row-${a}`
189
189
  )) });
190
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(
191
+ return e.optionsLayout === "column" ? /* @__PURE__ */ t(c, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: e.options.map((n) => /* @__PURE__ */ t(
192
192
  tt,
193
193
  {
194
194
  option: n,
@@ -199,7 +199,7 @@ const mn = (e, n) => {
199
199
  },
200
200
  n.optionId
201
201
  )) }) : /* @__PURE__ */ t(
202
- s,
202
+ c,
203
203
  {
204
204
  sx: {
205
205
  py: 2,
@@ -222,7 +222,7 @@ const mn = (e, n) => {
222
222
  }
223
223
  );
224
224
  }, M = (e) => {
225
- const n = K().secondary, l = _(), a = qt(e.primaryUrl, e.secondaryUrl, "logo");
225
+ const n = K().secondary, l = _(), a = Mt(e.primaryUrl, e.secondaryUrl, "logo");
226
226
  if (!e.brandingLogo)
227
227
  return null;
228
228
  const o = () => {
@@ -237,8 +237,8 @@ const mn = (e, n) => {
237
237
  maxWidth: "100px"
238
238
  }
239
239
  }
240
- ), c = a ? typeof window > "u" ? /* @__PURE__ */ t(
241
- s,
240
+ ), r = a ? typeof window > "u" ? /* @__PURE__ */ t(
241
+ c,
242
242
  {
243
243
  component: "a",
244
244
  href: a,
@@ -252,7 +252,7 @@ const mn = (e, n) => {
252
252
  children: i
253
253
  }
254
254
  ) : /* @__PURE__ */ t(
255
- s,
255
+ c,
256
256
  {
257
257
  onClick: o,
258
258
  sx: {
@@ -263,7 +263,7 @@ const mn = (e, n) => {
263
263
  }
264
264
  ) : i;
265
265
  return l ? /* @__PURE__ */ A(
266
- s,
266
+ c,
267
267
  {
268
268
  sx: {
269
269
  display: "flex",
@@ -291,11 +291,11 @@ const mn = (e, n) => {
291
291
  children: e.label
292
292
  }
293
293
  ),
294
- c
294
+ r
295
295
  ]
296
296
  }
297
297
  ) : /* @__PURE__ */ A(
298
- s,
298
+ c,
299
299
  {
300
300
  sx: {
301
301
  minWidth: "180px",
@@ -322,7 +322,7 @@ const mn = (e, n) => {
322
322
  children: e.label
323
323
  }
324
324
  ),
325
- c
325
+ r
326
326
  ]
327
327
  }
328
328
  );
@@ -333,8 +333,8 @@ const mn = (e, n) => {
333
333
  brandingColors: a,
334
334
  brandingUrls: o,
335
335
  campaignId: i,
336
- campaignName: c,
337
- startGame: r,
336
+ campaignName: r,
337
+ startGame: s,
338
338
  fields: y = ["fullName", "email"],
339
339
  leadTitle: C,
340
340
  leadDescription: F,
@@ -348,10 +348,10 @@ const mn = (e, n) => {
348
348
  }) => {
349
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 = {
350
350
  defaultLabel: d(P ? "personalityQuiz.buttons.finish" : "personalityQuiz.buttons.start"),
351
- onClick: r
351
+ onClick: s
352
352
  };
353
353
  return /* @__PURE__ */ t(
354
- Mt,
354
+ Ut,
355
355
  {
356
356
  sdk: e,
357
357
  content: {
@@ -366,7 +366,7 @@ const mn = (e, n) => {
366
366
  },
367
367
  campaign: {
368
368
  id: i,
369
- name: c
369
+ name: r
370
370
  },
371
371
  fields: y,
372
372
  labels: {
@@ -381,7 +381,7 @@ const mn = (e, n) => {
381
381
  isSubmittingParticipation: S
382
382
  }
383
383
  );
384
- }, gn = (e) => ({
384
+ }, yn = (e) => ({
385
385
  // Content container with backdrop
386
386
  contentContainerWithBackdrop: {
387
387
  borderRadius: e.smBorderRadius,
@@ -509,17 +509,17 @@ const mn = (e, n) => {
509
509
  display: "flex",
510
510
  alignItems: "center"
511
511
  }
512
- }), yn = (e) => {
512
+ }), fn = (e) => {
513
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
514
  const [n, l] = He.useState(
515
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(
516
+ ), { optionsLayout: a } = it(at), o = fe(), i = X(), r = Te(e.question.images), { t: s } = 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(
517
517
  {
518
518
  images: e.personalityQuiz.images,
519
519
  imagePlaceholder: g
520
520
  },
521
521
  p.OVERLAY
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({
522
+ ), T = e.currentQuestion === e.personalityQuiz.questions.length && (((U = e.leads) == null ? void 0 : U.position) === "after" || e.hasAfterConsents) ? s("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? s("personalityQuiz.buttons.finish") : s("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 = yn({
523
523
  spacingScale: o,
524
524
  smBorderRadius: P,
525
525
  contentBgColor: S,
@@ -546,14 +546,14 @@ const mn = (e, n) => {
546
546
  );
547
547
  };
548
548
  return /* @__PURE__ */ A(
549
- Ut,
549
+ jt,
550
550
  {
551
551
  entity: e.personalityQuiz,
552
- headline: r("personalityQuiz.headline"),
552
+ headline: s("personalityQuiz.headline"),
553
553
  finalImage: R,
554
554
  rulesDisplay: e.rulesDisplay,
555
555
  children: [
556
- /* @__PURE__ */ t(s, { sx: b.contentContainerWithBackdrop, children: e.applyConsentGate ? /* @__PURE__ */ t(
556
+ /* @__PURE__ */ t(c, { sx: b.contentContainerWithBackdrop, children: e.applyConsentGate ? /* @__PURE__ */ t(
557
557
  Qe,
558
558
  {
559
559
  consents: e.consents,
@@ -581,15 +581,15 @@ const mn = (e, n) => {
581
581
  consents: e.leadConsents
582
582
  }
583
583
  ) : /* @__PURE__ */ A(Z, { children: [
584
- c && /* @__PURE__ */ t(Oe, { ratio: "16/9", sx: b.questionImageContainer, children: /* @__PURE__ */ t(s, { sx: b.questionImageBox, children: /* @__PURE__ */ t(
584
+ r && /* @__PURE__ */ t(Oe, { ratio: "16/9", sx: b.questionImageContainer, children: /* @__PURE__ */ t(c, { sx: b.questionImageBox, children: /* @__PURE__ */ t(
585
585
  "img",
586
586
  {
587
- src: c,
587
+ src: r,
588
588
  alt: "Question illustration",
589
589
  style: b.questionImage
590
590
  }
591
591
  ) }) }),
592
- /* @__PURE__ */ A(s, { sx: b.questionSection, children: [
592
+ /* @__PURE__ */ A(c, { sx: b.questionSection, children: [
593
593
  /* @__PURE__ */ A(w, { level: "body-lg", sx: b.questionStepsText, children: [
594
594
  e.currentQuestion,
595
595
  "/",
@@ -604,18 +604,18 @@ const mn = (e, n) => {
604
604
  answerQuestion: e.answerQuestion,
605
605
  selectedOption: e.selectedOption,
606
606
  optionsLayout: C ? "column" : a ?? "row",
607
- questionImage: c,
607
+ questionImage: r,
608
608
  brandingColors: u
609
609
  }
610
610
  )
611
611
  ] }) }),
612
- /* @__PURE__ */ A(s, { sx: b.bottomFooterContainer, children: [
612
+ /* @__PURE__ */ A(c, { sx: b.bottomFooterContainer, children: [
613
613
  D(),
614
614
  e.applyConsentGate ? /* @__PURE__ */ t(
615
615
  $e,
616
616
  {
617
617
  onClick: e.startPlaying,
618
- label: ((qe = (Le = e.consents) == null ? void 0 : Le.labels) == null ? void 0 : qe.ctaLabel) || r("personalityQuiz.buttons.start"),
618
+ label: ((qe = (Le = e.consents) == null ? void 0 : Le.labels) == null ? void 0 : qe.ctaLabel) || s("personalityQuiz.buttons.start"),
619
619
  isSubmitting: e.isSubmitting,
620
620
  primaryColor: z
621
621
  }
@@ -691,14 +691,14 @@ const mn = (e, n) => {
691
691
  )
692
692
  }
693
693
  );
694
- }, fn = (e) => {
694
+ }, xn = (e) => {
695
695
  const n = () => {
696
696
  const l = X(), a = l.customRadius.light.full, o = e.personalityQuiz.questions.length;
697
- return Array.from({ length: o }, (i, c) => {
698
- const r = c + 1;
697
+ return Array.from({ length: o }, (i, r) => {
698
+ const s = r + 1;
699
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
+ return s < e.currentQuestion ? (y = l.colorSchemes.light.palette.success.plainColor, C = l.colorSchemes.light.palette.success.outlinedBorder) : s === 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
+ c,
702
702
  {
703
703
  sx: {
704
704
  maxWidth: "82.67px",
@@ -710,18 +710,18 @@ const mn = (e, n) => {
710
710
  transition: "background-color 0.3s ease"
711
711
  }
712
712
  },
713
- `step-${r}`
713
+ `step-${s}`
714
714
  );
715
715
  });
716
716
  };
717
717
  return /* @__PURE__ */ t(
718
- s,
718
+ c,
719
719
  {
720
720
  sx: {
721
721
  display: "flex",
722
722
  justifyContent: "center",
723
723
  gap: "8px",
724
- py: jt("xs")
724
+ py: Vt("xs")
725
725
  },
726
726
  children: n()
727
727
  }
@@ -730,9 +730,9 @@ const mn = (e, n) => {
730
730
  children: e,
731
731
  brandingBorderColor: n
732
732
  }) => {
733
- const l = oe().md, a = n || Q().secondaryContainer, o = nt().size, i = _(), c = o + " solid " + a;
733
+ const l = oe().md, a = n || Q().secondaryContainer, o = nt().size, i = _(), r = o + " solid " + a;
734
734
  return /* @__PURE__ */ t(
735
- s,
735
+ c,
736
736
  {
737
737
  sx: {
738
738
  display: "flex",
@@ -740,7 +740,7 @@ const mn = (e, n) => {
740
740
  width: "100%",
741
741
  borderRadius: l,
742
742
  boxShadow: "md",
743
- border: c,
743
+ border: r,
744
744
  overflow: "hidden",
745
745
  background: Q().surface,
746
746
  minHeight: "250px"
@@ -748,7 +748,7 @@ const mn = (e, n) => {
748
748
  children: e
749
749
  }
750
750
  );
751
- }, xn = (e) => ({
751
+ }, hn = (e) => ({
752
752
  // Stopwatch container
753
753
  stopwatchContainer: {
754
754
  display: "flex",
@@ -874,17 +874,17 @@ const mn = (e, n) => {
874
874
  justifyContent: "center",
875
875
  alignItems: "center"
876
876
  }
877
- }), hn = (e) => {
877
+ }), bn = (e) => {
878
878
  var D, v, U, H, E, m, W, $, V, ee, te, ie, re, se, me, ne, O;
879
879
  const [n, l] = He.useState(
880
880
  ((D = e.leads) == null ? void 0 : D.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
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(
881
+ ), { optionsLayout: a } = it(at), o = Te(e.question.images), { t: i } = q(), r = _(), s = pt(), y = ((v = e.personalityQuiz.branding) == null ? void 0 : v.colors) || null, C = r ? ((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(
882
882
  {
883
883
  images: e.personalityQuiz.images,
884
884
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
885
885
  },
886
886
  p.STANDARD
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({
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 = s || r && !!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 = hn({
888
888
  spacingScale: h,
889
889
  fontFamilyPrimary: T,
890
890
  textColor: R,
@@ -908,8 +908,8 @@ const mn = (e, n) => {
908
908
  );
909
909
  }, I = () => {
910
910
  var G, ce, de;
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
+ return /* @__PURE__ */ t(c, { sx: f.questionArea, children: /* @__PURE__ */ A(c, { sx: f.questionContainer, children: [
912
+ /* @__PURE__ */ t(c, { sx: f.questionContentContainer, children: /* @__PURE__ */ t(
913
913
  Qe,
914
914
  {
915
915
  consents: e.consents,
@@ -920,12 +920,12 @@ const mn = (e, n) => {
920
920
  }
921
921
  ) }),
922
922
  /* @__PURE__ */ A(
923
- s,
923
+ c,
924
924
  {
925
925
  sx: C ? f.footerContainer : f.footerContainerNoLogo,
926
926
  children: [
927
927
  C && !g ? b(R) : /* @__PURE__ */ t(Z, {}),
928
- /* @__PURE__ */ t(s, { sx: f.navigationContainer, children: /* @__PURE__ */ t(
928
+ /* @__PURE__ */ t(c, { sx: f.navigationContainer, children: /* @__PURE__ */ t(
929
929
  $e,
930
930
  {
931
931
  onClick: e.startPlaying,
@@ -941,15 +941,15 @@ const mn = (e, n) => {
941
941
  ] }) });
942
942
  };
943
943
  return /* @__PURE__ */ t(J, { brandingBorderColor: (y == null ? void 0 : y.borderColor) || null, children: /* @__PURE__ */ t(
944
- pt,
944
+ Et,
945
945
  {
946
946
  entity: e.personalityQuiz,
947
947
  headline: i("personalityQuiz.headline"),
948
948
  finalImage: u,
949
949
  imagePosition: F,
950
950
  rulesDisplay: e.rulesDisplay,
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
+ children: /* @__PURE__ */ t(Z, { children: e.applyConsentGate ? I() : n ? /* @__PURE__ */ t(c, { sx: f.leadCollectionContainer, children: /* @__PURE__ */ A(c, { sx: f.leadQuestionContainer, children: [
952
+ /* @__PURE__ */ t(c, { sx: f.leadContentContainer, children: /* @__PURE__ */ t(
953
953
  we,
954
954
  {
955
955
  sdk: e.sdk,
@@ -972,8 +972,8 @@ const mn = (e, n) => {
972
972
  ) }),
973
973
  b(R)
974
974
  ] }) }) : /* @__PURE__ */ A(Z, { children: [
975
- /* @__PURE__ */ t(s, { sx: f.paginationContainer, children: /* @__PURE__ */ t(
976
- fn,
975
+ /* @__PURE__ */ t(c, { sx: f.paginationContainer, children: /* @__PURE__ */ t(
976
+ xn,
977
977
  {
978
978
  personalityQuiz: e.personalityQuiz,
979
979
  currentQuestion: e.currentQuestion,
@@ -981,14 +981,14 @@ const mn = (e, n) => {
981
981
  brandingPrimaryColor: y == null ? void 0 : y.primaryColor
982
982
  }
983
983
  ) }),
984
- /* @__PURE__ */ t(s, { sx: f.questionArea, children: /* @__PURE__ */ A(s, { sx: f.questionContainer, children: [
985
- /* @__PURE__ */ A(s, { sx: f.questionContentContainer, children: [
984
+ /* @__PURE__ */ t(c, { sx: f.questionArea, children: /* @__PURE__ */ A(c, { sx: f.questionContainer, children: [
985
+ /* @__PURE__ */ A(c, { sx: f.questionContentContainer, children: [
986
986
  o && /* @__PURE__ */ t(
987
987
  Oe,
988
988
  {
989
989
  ratio: "16/9",
990
990
  sx: f.questionImageContainer,
991
- children: /* @__PURE__ */ t(s, { sx: f.questionImageBox, children: /* @__PURE__ */ t(
991
+ children: /* @__PURE__ */ t(c, { sx: f.questionImageBox, children: /* @__PURE__ */ t(
992
992
  "img",
993
993
  {
994
994
  src: o,
@@ -998,7 +998,7 @@ const mn = (e, n) => {
998
998
  ) })
999
999
  }
1000
1000
  ),
1001
- /* @__PURE__ */ t(s, { sx: f.questionTextContainer, children: /* @__PURE__ */ t(w, { level: "body-lg", sx: f.questionText, children: e.question.question }) }),
1001
+ /* @__PURE__ */ t(c, { sx: f.questionTextContainer, children: /* @__PURE__ */ t(w, { level: "body-lg", sx: f.questionText, children: e.question.question }) }),
1002
1002
  /* @__PURE__ */ t(
1003
1003
  yt,
1004
1004
  {
@@ -1012,12 +1012,12 @@ const mn = (e, n) => {
1012
1012
  )
1013
1013
  ] }),
1014
1014
  /* @__PURE__ */ A(
1015
- s,
1015
+ c,
1016
1016
  {
1017
1017
  sx: C ? f.footerContainer : f.footerContainerNoLogo,
1018
1018
  children: [
1019
1019
  C && !g ? b(R) : /* @__PURE__ */ t(Z, {}),
1020
- /* @__PURE__ */ t(s, { sx: f.navigationContainer, children: /* @__PURE__ */ t(
1020
+ /* @__PURE__ */ t(c, { sx: f.navigationContainer, children: /* @__PURE__ */ t(
1021
1021
  vt,
1022
1022
  {
1023
1023
  selectedOption: e.selectedOption,
@@ -1036,7 +1036,7 @@ const mn = (e, n) => {
1036
1036
  ] }) })
1037
1037
  }
1038
1038
  ) });
1039
- }, bn = (e) => ({
1039
+ }, Cn = (e) => ({
1040
1040
  // Question area
1041
1041
  questionArea: {
1042
1042
  width: "100%",
@@ -1131,17 +1131,17 @@ const mn = (e, n) => {
1131
1131
  presentedByMobile: {
1132
1132
  display: { xs: "block", md: "none" }
1133
1133
  }
1134
- }), Cn = (e) => {
1134
+ }), Sn = (e) => {
1135
1135
  var v, U, H, E, m, W, $, V, ee, te, ie, re, se, me, ne, O, G, ce, de;
1136
1136
  const [n, l] = He.useState(
1137
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(
1138
+ ), { optionsLayout: a } = it(at), o = X(), i = _(), r = lt(), s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? Ie : Pe, y = be(
1139
1139
  {
1140
1140
  images: e.personalityQuiz.images,
1141
- imagePlaceholder: r
1141
+ imagePlaceholder: s
1142
1142
  },
1143
1143
  p.SPLIT
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({
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 = Cn({
1145
1145
  spacingScale: z,
1146
1146
  borderRadius: h,
1147
1147
  fontFamilyPrimary: T,
@@ -1165,7 +1165,7 @@ const mn = (e, n) => {
1165
1165
  );
1166
1166
  }, D = () => {
1167
1167
  var ae;
1168
- return /* @__PURE__ */ t(s, { sx: x.mainContentContainer, children: /* @__PURE__ */ t(
1168
+ return /* @__PURE__ */ t(c, { sx: x.mainContentContainer, children: /* @__PURE__ */ t(
1169
1169
  Qe,
1170
1170
  {
1171
1171
  consents: e.consents,
@@ -1181,7 +1181,7 @@ const mn = (e, n) => {
1181
1181
  };
1182
1182
  return /* @__PURE__ */ A(J, { brandingBorderColor: (u == null ? void 0 : u.borderColor) || null, children: [
1183
1183
  /* @__PURE__ */ t(
1184
- Et,
1184
+ $t,
1185
1185
  {
1186
1186
  entity: e.personalityQuiz,
1187
1187
  headline: F("personalityQuiz.headline"),
@@ -1189,8 +1189,8 @@ const mn = (e, n) => {
1189
1189
  brandingLogo: L,
1190
1190
  renderPresentedBy: I,
1191
1191
  rulesDisplay: e.rulesDisplay,
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
+ children: /* @__PURE__ */ t(c, { sx: x.questionArea, children: /* @__PURE__ */ A(c, { sx: x.questionAreaContent, children: [
1193
+ e.applyConsentGate ? D() : n ? /* @__PURE__ */ t(c, { sx: x.leadContentContainer, children: /* @__PURE__ */ t(
1194
1194
  we,
1195
1195
  {
1196
1196
  sdk: e.sdk,
@@ -1210,13 +1210,13 @@ const mn = (e, n) => {
1210
1210
  syncWithProfile: (de = e.leads) == null ? void 0 : de.syncWithProfile,
1211
1211
  consents: e.leadConsents
1212
1212
  }
1213
- ) }) : /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ A(s, { sx: x.mainContentContainer, children: [
1213
+ ) }) : /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ A(c, { sx: x.mainContentContainer, children: [
1214
1214
  C && /* @__PURE__ */ t(
1215
1215
  Oe,
1216
1216
  {
1217
1217
  ratio: "16/9",
1218
1218
  sx: x.questionImageContainer,
1219
- children: /* @__PURE__ */ t(s, { sx: x.questionImageBox, children: /* @__PURE__ */ t(
1219
+ children: /* @__PURE__ */ t(c, { sx: x.questionImageBox, children: /* @__PURE__ */ t(
1220
1220
  "img",
1221
1221
  {
1222
1222
  src: C,
@@ -1226,7 +1226,7 @@ const mn = (e, n) => {
1226
1226
  ) })
1227
1227
  }
1228
1228
  ),
1229
- /* @__PURE__ */ A(s, { sx: x.questionSection, children: [
1229
+ /* @__PURE__ */ A(c, { sx: x.questionSection, children: [
1230
1230
  /* @__PURE__ */ A(w, { level: "body-lg", sx: x.questionStepsText, children: [
1231
1231
  e.currentQuestion,
1232
1232
  "/",
@@ -1240,12 +1240,12 @@ const mn = (e, n) => {
1240
1240
  options: e.question.options || [],
1241
1241
  answerQuestion: e.answerQuestion,
1242
1242
  selectedOption: e.selectedOption,
1243
- optionsLayout: c ? "column" : a ?? "twoByTwo",
1243
+ optionsLayout: r ? "column" : a ?? "twoByTwo",
1244
1244
  questionImage: C,
1245
1245
  brandingColors: u
1246
1246
  }
1247
1247
  ),
1248
- /* @__PURE__ */ A(s, { sx: x.buttonFooterContainer, children: [
1248
+ /* @__PURE__ */ A(c, { sx: x.buttonFooterContainer, children: [
1249
1249
  /* @__PURE__ */ t(
1250
1250
  vt,
1251
1251
  {
@@ -1257,7 +1257,7 @@ const mn = (e, n) => {
1257
1257
  isLoading: e.isLoading
1258
1258
  }
1259
1259
  ),
1260
- L && !c ? /* @__PURE__ */ t(s, { sx: x.presentedByMobile, children: I(
1260
+ L && !r ? /* @__PURE__ */ t(c, { sx: x.presentedByMobile, children: I(
1261
1261
  (u == null ? void 0 : u.contentColor) || d
1262
1262
  ) }) : /* @__PURE__ */ t(Z, {})
1263
1263
  ] })
@@ -1268,11 +1268,11 @@ const mn = (e, n) => {
1268
1268
  ] }) })
1269
1269
  }
1270
1270
  ),
1271
- L && c && /* @__PURE__ */ t(s, { sx: { mb: z.lg, px: z.lg }, children: I(
1271
+ L && r && /* @__PURE__ */ t(c, { sx: { mb: z.lg, px: z.lg }, children: I(
1272
1272
  (u == null ? void 0 : u.contentColor) || o.colorSchemes.dark.textColor
1273
1273
  ) })
1274
1274
  ] });
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 = ({
1275
+ }, In = "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", Pn = "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", zn = "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 = ({
1276
1276
  questions: e,
1277
1277
  userParticipation: n,
1278
1278
  resultsTabPanelSxProps: l,
@@ -1280,7 +1280,7 @@ const mn = (e, n) => {
1280
1280
  children: o,
1281
1281
  brandingColors: i
1282
1282
  }) => {
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();
1283
+ const [r, s] = 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
1284
  let z = a ? y.colorSchemes.dark.textPrimary : Q().textPrimary;
1285
1285
  i != null && i.primaryColor && (z = i.primaryColor);
1286
1286
  const h = (f, x) => {
@@ -1289,7 +1289,7 @@ const mn = (e, n) => {
1289
1289
  (D) => D.questionId === f.questionId
1290
1290
  );
1291
1291
  return /* @__PURE__ */ t(
1292
- s,
1292
+ c,
1293
1293
  {
1294
1294
  sx: {
1295
1295
  borderRadius: u,
@@ -1320,7 +1320,7 @@ const mn = (e, n) => {
1320
1320
  }
1321
1321
  },
1322
1322
  children: /* @__PURE__ */ A(
1323
- s,
1323
+ c,
1324
1324
  {
1325
1325
  sx: {
1326
1326
  display: "flex",
@@ -1331,7 +1331,7 @@ const mn = (e, n) => {
1331
1331
  },
1332
1332
  children: [
1333
1333
  /* @__PURE__ */ A(
1334
- s,
1334
+ c,
1335
1335
  {
1336
1336
  sx: {
1337
1337
  display: "flex",
@@ -1380,7 +1380,7 @@ const mn = (e, n) => {
1380
1380
  ]
1381
1381
  }
1382
1382
  ),
1383
- /* @__PURE__ */ t(s, { sx: { alignSelf: "stretch" }, children: /* @__PURE__ */ A(
1383
+ /* @__PURE__ */ t(c, { sx: { alignSelf: "stretch" }, children: /* @__PURE__ */ A(
1384
1384
  w,
1385
1385
  {
1386
1386
  sx: {
@@ -1402,7 +1402,7 @@ const mn = (e, n) => {
1402
1402
  }
1403
1403
  ) }),
1404
1404
  b != null && b.explanation ? /* @__PURE__ */ A(
1405
- s,
1405
+ c,
1406
1406
  {
1407
1407
  sx: {
1408
1408
  display: "flex",
@@ -1418,7 +1418,7 @@ const mn = (e, n) => {
1418
1418
  /* @__PURE__ */ t(
1419
1419
  "img",
1420
1420
  {
1421
- src: Pn,
1421
+ src: zn,
1422
1422
  alt: "explanation-icon",
1423
1423
  style: {
1424
1424
  display: "flex",
@@ -1443,7 +1443,7 @@ const mn = (e, n) => {
1443
1443
  lineHeight: "143%",
1444
1444
  letterSpacing: "0.17px"
1445
1445
  },
1446
- children: $t(b == null ? void 0 : b.explanation)
1446
+ children: Ot(b == null ? void 0 : b.explanation)
1447
1447
  }
1448
1448
  )
1449
1449
  ]
@@ -1457,11 +1457,11 @@ const mn = (e, n) => {
1457
1457
  `user-answer-${f.questionId}`
1458
1458
  );
1459
1459
  };
1460
- return /* @__PURE__ */ t(s, { sx: { width: "100%" }, children: /* @__PURE__ */ A(
1460
+ return /* @__PURE__ */ t(c, { sx: { width: "100%" }, children: /* @__PURE__ */ A(
1461
1461
  _e,
1462
1462
  {
1463
- value: c,
1464
- onChange: (f, x) => r(x),
1463
+ value: r,
1464
+ onChange: (f, x) => s(x),
1465
1465
  sx: {
1466
1466
  borderRadius: u,
1467
1467
  width: "100%",
@@ -1504,7 +1504,7 @@ const mn = (e, n) => {
1504
1504
  },
1505
1505
  disableIndicator: !0,
1506
1506
  children: /* @__PURE__ */ A(
1507
- s,
1507
+ c,
1508
1508
  {
1509
1509
  sx: {
1510
1510
  display: "flex",
@@ -1520,7 +1520,7 @@ const mn = (e, n) => {
1520
1520
  /* @__PURE__ */ t(
1521
1521
  "img",
1522
1522
  {
1523
- src: In,
1523
+ src: Pn,
1524
1524
  alt: "answers-icon",
1525
1525
  style: {
1526
1526
  display: "flex",
@@ -1579,7 +1579,7 @@ const mn = (e, n) => {
1579
1579
  },
1580
1580
  disableIndicator: !0,
1581
1581
  children: /* @__PURE__ */ A(
1582
- s,
1582
+ c,
1583
1583
  {
1584
1584
  sx: {
1585
1585
  display: "flex",
@@ -1595,7 +1595,7 @@ const mn = (e, n) => {
1595
1595
  /* @__PURE__ */ t(
1596
1596
  "img",
1597
1597
  {
1598
- src: Sn,
1598
+ src: In,
1599
1599
  alt: "answers-icon",
1600
1600
  style: {
1601
1601
  display: "flex",
@@ -1631,8 +1631,8 @@ const mn = (e, n) => {
1631
1631
  ]
1632
1632
  }
1633
1633
  ),
1634
- c === 0 && /* @__PURE__ */ t(Be, { value: 0, sx: { ...l, fontSize: "1em" }, children: o }),
1635
- c === 1 && /* @__PURE__ */ t(
1634
+ r === 0 && /* @__PURE__ */ t(Be, { value: 0, sx: { ...l, fontSize: "1em" }, children: o }),
1635
+ r === 1 && /* @__PURE__ */ t(
1636
1636
  Be,
1637
1637
  {
1638
1638
  value: 1,
@@ -1642,7 +1642,7 @@ const mn = (e, n) => {
1642
1642
  fontSize: "1em"
1643
1643
  },
1644
1644
  children: /* @__PURE__ */ t(
1645
- s,
1645
+ c,
1646
1646
  {
1647
1647
  sx: {
1648
1648
  display: "flex",
@@ -1660,7 +1660,7 @@ const mn = (e, n) => {
1660
1660
  ]
1661
1661
  }
1662
1662
  ) });
1663
- }, zn = (e) => ({
1663
+ }, An = (e) => ({
1664
1664
  // Main content area
1665
1665
  mainContentArea: {
1666
1666
  flex: "1",
@@ -1708,8 +1708,11 @@ const mn = (e, n) => {
1708
1708
  // Achievement badge container
1709
1709
  achievementBadgeContainer: {
1710
1710
  display: "flex",
1711
- width: { xs: "172px", md: "auto" },
1712
- height: { xs: "160px", md: "auto" },
1711
+ // The hexagon is absolutely positioned, so the box must be sized for it (not the 80px emoji),
1712
+ // or the row gap is measured from the emoji and a long title pushes the hexagon off the edge.
1713
+ width: "172px",
1714
+ height: "160px",
1715
+ flexShrink: 0,
1713
1716
  flexDirection: "column",
1714
1717
  justifyContent: "center",
1715
1718
  alignItems: "center",
@@ -1717,12 +1720,15 @@ const mn = (e, n) => {
1717
1720
  },
1718
1721
  // Hexagon background image
1719
1722
  hexagonBackground: {
1723
+ // The SVG is 160x180: the hexagon spans y 4-156 (centre at 80) and the rest is its drop
1724
+ // shadow. Keep the natural size and shift by the hexagon's centre (80/180), so the shape,
1725
+ // not the box, sits on the container centre where the emoji is.
1720
1726
  width: "160px",
1721
- height: "160px",
1727
+ height: "180px",
1722
1728
  position: "absolute",
1723
- top: "55%",
1729
+ top: "50%",
1724
1730
  left: "50%",
1725
- transform: "translate(-50%, -50%)"
1731
+ transform: "translate(-50%, -44.444%)"
1726
1732
  },
1727
1733
  // Achievement emoji
1728
1734
  achievementEmoji: {
@@ -1734,7 +1740,10 @@ const mn = (e, n) => {
1734
1740
  textSection: {
1735
1741
  display: "flex",
1736
1742
  flexDirection: "column",
1737
- alignItems: "center"
1743
+ alignItems: "center",
1744
+ // Wrap long titles instead of growing past the badge.
1745
+ flex: "1 1 auto",
1746
+ minWidth: 0
1738
1747
  },
1739
1748
  // Congratulations text
1740
1749
  congratulationsText: {
@@ -2218,16 +2227,16 @@ const mn = (e, n) => {
2218
2227
  mt: e.spacingScale.xs,
2219
2228
  overflow: "hidden"
2220
2229
  }
2221
- }), An = (e, n) => {
2230
+ }), Tn = (e, n) => {
2222
2231
  switch (e) {
2223
2232
  case "success":
2224
- return /* @__PURE__ */ t(sn, {});
2233
+ return /* @__PURE__ */ t(cn, {});
2225
2234
  case "error":
2226
- return /* @__PURE__ */ t(dn, { sx: { color: n } });
2235
+ return /* @__PURE__ */ t(mn, { sx: { color: n } });
2227
2236
  case "info":
2228
- return /* @__PURE__ */ t(cn, {});
2237
+ return /* @__PURE__ */ t(dn, {});
2229
2238
  }
2230
- }, Tn = (e) => {
2239
+ }, kn = (e) => {
2231
2240
  switch (e) {
2232
2241
  case "success":
2233
2242
  return "success";
@@ -2242,13 +2251,13 @@ const mn = (e, n) => {
2242
2251
  message: l,
2243
2252
  description: a
2244
2253
  }) => {
2245
- const o = X(), i = oe(), c = K().secondary, r = Tn(e);
2254
+ const o = X(), i = oe(), r = K().secondary, s = kn(e);
2246
2255
  return /* @__PURE__ */ t(
2247
- on,
2256
+ rn,
2248
2257
  {
2249
2258
  variant: "soft",
2250
- color: r,
2251
- startDecorator: An(
2259
+ color: s,
2260
+ startDecorator: Tn(
2252
2261
  e,
2253
2262
  o.colorSchemes.light.palette.danger.plainColor
2254
2263
  ),
@@ -2259,7 +2268,7 @@ const mn = (e, n) => {
2259
2268
  "--Icon-fontSize": "1.25em"
2260
2269
  },
2261
2270
  children: /* @__PURE__ */ A(
2262
- rn,
2271
+ sn,
2263
2272
  {
2264
2273
  sx: {
2265
2274
  fontSize: "1.5em"
@@ -2269,9 +2278,9 @@ const mn = (e, n) => {
2269
2278
  w,
2270
2279
  {
2271
2280
  level: "title-md",
2272
- color: r,
2281
+ color: s,
2273
2282
  fontWeight: "bold",
2274
- sx: { fontFamily: c, fontSize: "0.875em" },
2283
+ sx: { fontFamily: r, fontSize: "0.875em" },
2275
2284
  children: n
2276
2285
  }
2277
2286
  ),
@@ -2279,7 +2288,7 @@ const mn = (e, n) => {
2279
2288
  w,
2280
2289
  {
2281
2290
  level: "body-sm",
2282
- sx: { fontFamily: c, fontSize: "0.675em" },
2291
+ sx: { fontFamily: r, fontSize: "0.675em" },
2283
2292
  children: l
2284
2293
  }
2285
2294
  ),
@@ -2287,7 +2296,7 @@ const mn = (e, n) => {
2287
2296
  w,
2288
2297
  {
2289
2298
  level: "body-xs",
2290
- sx: { fontFamily: c, fontSize: "0.6em" },
2299
+ sx: { fontFamily: r, fontSize: "0.6em" },
2291
2300
  children: a
2292
2301
  }
2293
2302
  )
@@ -2306,7 +2315,7 @@ const mn = (e, n) => {
2306
2315
  } : null;
2307
2316
  }).filter(
2308
2317
  (a) => a !== null && a.percent > 0
2309
- ).sort((a, o) => o.percent - a.percent), kn = (e) => ({
2318
+ ).sort((a, o) => o.percent - a.percent), Fn = (e) => ({
2310
2319
  // Content wrapper
2311
2320
  contentWrapper: {
2312
2321
  display: "flex",
@@ -2527,14 +2536,14 @@ const mn = (e, n) => {
2527
2536
  textAlign: "center",
2528
2537
  fontStyle: "italic"
2529
2538
  }
2530
- }), Fn = ({
2539
+ }), Rn = ({
2531
2540
  personas: e
2532
2541
  }) => {
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,
2542
+ const [n, l] = j(0), a = X(), o = Q(), i = oe(), r = K(), s = 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 = Fn({
2543
+ spacingScale: s,
2535
2544
  borderRadius: i,
2536
- fontFamilyPrimary: c.primary,
2537
- fontFamilySecondary: c.secondary,
2545
+ fontFamilyPrimary: r.primary,
2546
+ fontFamilySecondary: r.secondary,
2538
2547
  textPrimary: C,
2539
2548
  primaryColor: F,
2540
2549
  textColor: u,
@@ -2544,7 +2553,7 @@ const mn = (e, n) => {
2544
2553
  onPrimaryColor: T,
2545
2554
  isMobile: y
2546
2555
  });
2547
- return !e || e.length === 0 ? null : /* @__PURE__ */ t(s, { sx: P.contentWrapper, children: /* @__PURE__ */ t(s, { sx: P.personalityResultsContainer, children: /* @__PURE__ */ A(
2556
+ return !e || e.length === 0 ? null : /* @__PURE__ */ t(c, { sx: P.contentWrapper, children: /* @__PURE__ */ t(c, { sx: P.personalityResultsContainer, children: /* @__PURE__ */ A(
2548
2557
  _e,
2549
2558
  {
2550
2559
  value: n,
@@ -2559,9 +2568,9 @@ const mn = (e, n) => {
2559
2568
  {
2560
2569
  value: d,
2561
2570
  sx: [P.tab, z && P.tabFirst],
2562
- children: /* @__PURE__ */ A(s, { sx: P.tabLabelContainer, children: [
2571
+ children: /* @__PURE__ */ A(c, { sx: P.tabLabelContainer, children: [
2563
2572
  x && b && /* @__PURE__ */ t(
2564
- s,
2573
+ c,
2565
2574
  {
2566
2575
  sx: [
2567
2576
  P.tabLogo,
@@ -2588,9 +2597,9 @@ const mn = (e, n) => {
2588
2597
  {
2589
2598
  value: d,
2590
2599
  sx: P.tabPanel,
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,
2600
+ children: /* @__PURE__ */ t(c, { sx: P.tabContent, children: z && !y ? /* @__PURE__ */ A(c, { sx: P.contentWithImageAndDescription, children: [
2601
+ /* @__PURE__ */ t(c, { sx: P.imageSection, children: /* @__PURE__ */ t(
2602
+ c,
2594
2603
  {
2595
2604
  sx: [
2596
2605
  P.personaImageLarge,
@@ -2598,11 +2607,11 @@ const mn = (e, n) => {
2598
2607
  ]
2599
2608
  }
2600
2609
  ) }),
2601
- /* @__PURE__ */ t(s, { sx: P.descriptionSection, children: /* @__PURE__ */ t(
2610
+ /* @__PURE__ */ t(c, { sx: P.descriptionSection, children: /* @__PURE__ */ t(
2602
2611
  "span",
2603
2612
  {
2604
2613
  style: {
2605
- fontFamily: c.secondary,
2614
+ fontFamily: r.secondary,
2606
2615
  color: u,
2607
2616
  lineHeight: 1.6,
2608
2617
  fontSize: "0.95em",
@@ -2613,11 +2622,11 @@ const mn = (e, n) => {
2613
2622
  }
2614
2623
  }
2615
2624
  ) })
2616
- ] }) : /* @__PURE__ */ t(s, { sx: P.contentDescriptionOnly, children: /* @__PURE__ */ t(
2625
+ ] }) : /* @__PURE__ */ t(c, { sx: P.contentDescriptionOnly, children: /* @__PURE__ */ t(
2617
2626
  "span",
2618
2627
  {
2619
2628
  style: {
2620
- fontFamily: c.secondary,
2629
+ fontFamily: r.secondary,
2621
2630
  color: u,
2622
2631
  lineHeight: 1.6,
2623
2632
  fontSize: "0.95em",
@@ -2635,7 +2644,7 @@ const mn = (e, n) => {
2635
2644
  ]
2636
2645
  }
2637
2646
  ) }) });
2638
- }, Rn = (e) => {
2647
+ }, Qn = (e) => {
2639
2648
  var I, D, v, U, H;
2640
2649
  const n = X(), l = be(
2641
2650
  {
@@ -2643,14 +2652,14 @@ const mn = (e, n) => {
2643
2652
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
2644
2653
  },
2645
2654
  p.STANDARD
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(
2655
+ ), { 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) || "", r = e.imagePosition || "left", s = 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(
2647
2656
  Q().surfaceVariant || ""
2648
- )}, 0.5)`, h = zn({
2657
+ )}, 0.5)`, h = An({
2649
2658
  spacingScale: d,
2650
2659
  borderRadius: P,
2651
2660
  fontFamilyPrimary: g,
2652
2661
  fontFamilySecondary: L,
2653
- textPrimary: r,
2662
+ textPrimary: s,
2654
2663
  primaryColor: y,
2655
2664
  secondaryColor: C,
2656
2665
  secondaryContainer: F,
@@ -2665,13 +2674,13 @@ const mn = (e, n) => {
2665
2674
  }), f = ht(
2666
2675
  e.personalityQuiz,
2667
2676
  e.summary
2668
- ), x = () => /* @__PURE__ */ t(Fn, { personas: f }), b = () => {
2677
+ ), x = () => /* @__PURE__ */ t(Rn, { personas: f }), b = () => {
2669
2678
  var E, m;
2670
- return /* @__PURE__ */ t(s, { sx: h.mainContentArea, children: e.summary.personalityQuizId ? /* @__PURE__ */ A(Z, { children: [
2679
+ return /* @__PURE__ */ t(c, { sx: h.mainContentArea, children: e.summary.personalityQuizId ? /* @__PURE__ */ A(Z, { children: [
2671
2680
  x(),
2672
- e.chanceGameContent && /* @__PURE__ */ t(s, { sx: { p: d.md }, children: e.chanceGameContent }),
2681
+ e.chanceGameContent && /* @__PURE__ */ t(c, { sx: { p: d.md }, children: e.chanceGameContent }),
2673
2682
  (i || e.additionalCTA !== void 0 || !e.maxAttemptsReached) && /* @__PURE__ */ A(
2674
- s,
2683
+ c,
2675
2684
  {
2676
2685
  sx: i ? h.buttonsContainer : h.buttonsContainerNoLogo,
2677
2686
  children: [
@@ -2697,7 +2706,7 @@ const mn = (e, n) => {
2697
2706
  {
2698
2707
  sx: h.playAgainButton,
2699
2708
  onClick: e.playAgain,
2700
- children: /* @__PURE__ */ A(s, { sx: h.playAgainButtonContent, children: [
2709
+ children: /* @__PURE__ */ A(c, { sx: h.playAgainButtonContent, children: [
2701
2710
  /* @__PURE__ */ t(gt, { sx: h.playAgainIcon }),
2702
2711
  /* @__PURE__ */ t(w, { sx: h.playAgainText, children: a("personalityQuiz.buttons.playAgain") })
2703
2712
  ] })
@@ -2738,11 +2747,11 @@ const mn = (e, n) => {
2738
2747
  pb: 0,
2739
2748
  pt: 0
2740
2749
  },
2741
- children: /* @__PURE__ */ t(s, { sx: h.scoreStateWrapperContainer, children: /* @__PURE__ */ t(
2750
+ children: /* @__PURE__ */ t(c, { sx: h.scoreStateWrapperContainer, children: /* @__PURE__ */ t(
2742
2751
  Pt,
2743
2752
  {
2744
2753
  finalImage: l,
2745
- imagePosition: c,
2754
+ imagePosition: r,
2746
2755
  children: b()
2747
2756
  }
2748
2757
  ) })
@@ -2751,11 +2760,11 @@ const mn = (e, n) => {
2751
2760
  Pt,
2752
2761
  {
2753
2762
  finalImage: l,
2754
- imagePosition: c,
2763
+ imagePosition: r,
2755
2764
  children: b()
2756
2765
  }
2757
2766
  ) });
2758
- }, Qn = (e) => ({
2767
+ }, wn = (e) => ({
2759
2768
  // Question area content wrapper
2760
2769
  questionAreaContent: {
2761
2770
  p: e.spacingScale.lg,
@@ -2824,12 +2833,15 @@ const mn = (e, n) => {
2824
2833
  },
2825
2834
  // Hexagon background
2826
2835
  hexagonBackground: {
2836
+ // The SVG is 160x180: the hexagon spans y 4-156 (centre at 80) and the rest is its drop
2837
+ // shadow. Keep the natural size and shift by the hexagon's centre (80/180), so the shape,
2838
+ // not the box, sits on the container centre where the emoji is.
2827
2839
  width: "160px",
2828
- height: "160px",
2840
+ height: "180px",
2829
2841
  position: "absolute",
2830
2842
  top: "50%",
2831
2843
  left: "50%",
2832
- transform: "translate(-50%, -50%)"
2844
+ transform: "translate(-50%, -44.444%)"
2833
2845
  },
2834
2846
  // Achievement emoji
2835
2847
  achievementEmoji: {
@@ -3086,7 +3098,7 @@ const mn = (e, n) => {
3086
3098
  alertMessageWrapper: {
3087
3099
  p: e.spacingScale.lg
3088
3100
  }
3089
- }), wn = (e) => ({
3101
+ }), Ln = (e) => ({
3090
3102
  // Content wrapper
3091
3103
  contentWrapper: {
3092
3104
  display: "flex",
@@ -3298,12 +3310,12 @@ const mn = (e, n) => {
3298
3310
  fontFamily: e.fontFamilyPrimary,
3299
3311
  fontStyle: "italic"
3300
3312
  }
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({
3313
+ }), Dn = ({ personas: e, brandingColors: n }) => {
3314
+ const [l, a] = j(0), o = X(), i = Q(), r = oe(), s = 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 = Ln({
3303
3315
  spacingScale: y,
3304
- borderRadius: c,
3305
- fontFamilyPrimary: r.primary,
3306
- fontFamilySecondary: r.secondary,
3316
+ borderRadius: r,
3317
+ fontFamilyPrimary: s.primary,
3318
+ fontFamilySecondary: s.secondary,
3307
3319
  textPrimary: F,
3308
3320
  primaryColor: u,
3309
3321
  textColor: L,
@@ -3313,7 +3325,7 @@ const mn = (e, n) => {
3313
3325
  onPrimaryColor: P,
3314
3326
  isMobile: C
3315
3327
  });
3316
- return !e || e.length === 0 ? null : /* @__PURE__ */ t(s, { sx: S.contentWrapper, children: /* @__PURE__ */ A(
3328
+ return !e || e.length === 0 ? null : /* @__PURE__ */ t(c, { sx: S.contentWrapper, children: /* @__PURE__ */ A(
3317
3329
  _e,
3318
3330
  {
3319
3331
  value: l,
@@ -3328,9 +3340,9 @@ const mn = (e, n) => {
3328
3340
  {
3329
3341
  value: z,
3330
3342
  sx: [S.tab, h && S.tabFirst],
3331
- children: /* @__PURE__ */ A(s, { sx: S.tabLabelContainer, children: [
3343
+ children: /* @__PURE__ */ A(c, { sx: S.tabLabelContainer, children: [
3332
3344
  b && I && /* @__PURE__ */ t(
3333
- s,
3345
+ c,
3334
3346
  {
3335
3347
  sx: [
3336
3348
  S.tabLogo,
@@ -3357,12 +3369,12 @@ const mn = (e, n) => {
3357
3369
  {
3358
3370
  value: z,
3359
3371
  sx: S.tabPanel,
3360
- children: /* @__PURE__ */ t(s, { sx: S.tabContent, children: /* @__PURE__ */ t(s, { sx: S.contentDescriptionOnly, children: /* @__PURE__ */ t(
3372
+ children: /* @__PURE__ */ t(c, { sx: S.tabContent, children: /* @__PURE__ */ t(c, { sx: S.contentDescriptionOnly, children: /* @__PURE__ */ t(
3361
3373
  "span",
3362
3374
  {
3363
3375
  style: {
3364
3376
  color: L,
3365
- fontFamily: r.primary,
3377
+ fontFamily: s.primary,
3366
3378
  lineHeight: 1.6
3367
3379
  },
3368
3380
  dangerouslySetInnerHTML: {
@@ -3377,25 +3389,25 @@ const mn = (e, n) => {
3377
3389
  ]
3378
3390
  }
3379
3391
  ) });
3380
- }, Dn = (e) => {
3392
+ }, vn = (e) => {
3381
3393
  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(
3394
+ const n = X(), { t: l } = q(), a = _(), o = lt(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ie : Pe, r = be(
3383
3395
  {
3384
3396
  images: e.personalityQuiz.images,
3385
3397
  imagePlaceholder: i
3386
3398
  },
3387
3399
  p.SPLIT
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(
3400
+ ), s = ((U = e.personalityQuiz.branding) == null ? void 0 : U.colors) || null, y = Q().textPrimary, C = (s == null ? void 0 : s.primaryColor) || ((E = (H = Q().palette) == null ? void 0 : H.primary) == null ? void 0 : E.plainColor), F = (s == null ? void 0 : s.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 = (s == null ? void 0 : s.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(
3389
3401
  e.personalityQuiz,
3390
3402
  e.summary
3391
3403
  ), b = !o && f ? /* @__PURE__ */ t(
3392
3404
  M,
3393
3405
  {
3394
3406
  brandingLogo: f,
3395
- textColor: (r == null ? void 0 : r.contentColor) || n.colorSchemes.dark.textColor,
3407
+ textColor: (s == null ? void 0 : s.contentColor) || n.colorSchemes.dark.textColor,
3396
3408
  label: ((te = e.personalityQuiz.labels) == null ? void 0 : te.sponsor) || null
3397
3409
  }
3398
- ) : null, I = Qn({
3410
+ ) : null, I = wn({
3399
3411
  spacingScale: h,
3400
3412
  borderRadius: d,
3401
3413
  fontFamilyPrimary: R,
@@ -3411,25 +3423,25 @@ const mn = (e, n) => {
3411
3423
  successColor: (re = (ie = Q().palette) == null ? void 0 : ie.success) == null ? void 0 : re.plainColor,
3412
3424
  dangerColor: (me = (se = Q().palette) == null ? void 0 : se.danger) == null ? void 0 : me.plainColor
3413
3425
  }), D = () => /* @__PURE__ */ t(
3414
- Ln,
3426
+ Dn,
3415
3427
  {
3416
3428
  personas: x,
3417
- brandingColors: r
3429
+ brandingColors: s
3418
3430
  }
3419
3431
  ), v = (O) => {
3420
3432
  var G;
3421
3433
  return /* @__PURE__ */ t(
3422
- Ot,
3434
+ _t,
3423
3435
  {
3424
3436
  entity: e.personalityQuiz,
3425
3437
  headline: l("personalityQuiz.headline"),
3426
- finalImage: c,
3438
+ finalImage: r,
3427
3439
  brandingContent: b,
3428
3440
  isTabulated: O,
3429
- children: e.summary.personalityQuizId ? /* @__PURE__ */ A(s, { sx: I.questionAreaContent, children: [
3430
- /* @__PURE__ */ t(s, { children: D() }),
3441
+ children: e.summary.personalityQuizId ? /* @__PURE__ */ A(c, { sx: I.questionAreaContent, children: [
3442
+ /* @__PURE__ */ t(c, { children: D() }),
3431
3443
  (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t(
3432
- s,
3444
+ c,
3433
3445
  {
3434
3446
  id: "desktop-thanks",
3435
3447
  sx: {
@@ -3441,8 +3453,8 @@ const mn = (e, n) => {
3441
3453
  bgcolor: `rgba(${T ? ke(T || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
3442
3454
  borderRadius: d.sm
3443
3455
  },
3444
- children: /* @__PURE__ */ t(s, { sx: I.ctaContainer, children: /* @__PURE__ */ A(
3445
- s,
3456
+ children: /* @__PURE__ */ t(c, { sx: I.ctaContainer, children: /* @__PURE__ */ A(
3457
+ c,
3446
3458
  {
3447
3459
  sx: {
3448
3460
  ...I.ctaContentWrapper,
@@ -3450,13 +3462,13 @@ const mn = (e, n) => {
3450
3462
  },
3451
3463
  children: [
3452
3464
  /* @__PURE__ */ t(w, { level: "body-lg", sx: I.thanksText, children: l("classicQuiz.thanksForPlaying") }),
3453
- (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(s, { sx: I.buttonsContainer, children: [
3465
+ (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(c, { sx: I.buttonsContainer, children: [
3454
3466
  !e.maxAttemptsReached && /* @__PURE__ */ t(
3455
3467
  Y,
3456
3468
  {
3457
3469
  sx: I.playAgainButton,
3458
3470
  onClick: e.playAgain,
3459
- children: /* @__PURE__ */ A(s, { sx: I.playAgainButtonContent, children: [
3471
+ children: /* @__PURE__ */ A(c, { sx: I.playAgainButtonContent, children: [
3460
3472
  /* @__PURE__ */ t(gt, { sx: I.playAgainIcon }),
3461
3473
  /* @__PURE__ */ t(w, { sx: I.playAgainText, children: l("classicQuiz.buttons.playAgain") })
3462
3474
  ] })
@@ -3482,11 +3494,11 @@ const mn = (e, n) => {
3482
3494
  M,
3483
3495
  {
3484
3496
  brandingLogo: f,
3485
- textColor: (r == null ? void 0 : r.contentColor) || z,
3497
+ textColor: (s == null ? void 0 : s.contentColor) || z,
3486
3498
  label: ((G = e.personalityQuiz.labels) == null ? void 0 : G.sponsor) || null
3487
3499
  }
3488
3500
  )
3489
- ] }) : /* @__PURE__ */ t(s, { sx: I.alertMessageArea, children: /* @__PURE__ */ t(s, { sx: I.alertMessageWrapper, children: /* @__PURE__ */ t(
3501
+ ] }) : /* @__PURE__ */ t(c, { sx: I.alertMessageArea, children: /* @__PURE__ */ t(c, { sx: I.alertMessageWrapper, children: /* @__PURE__ */ t(
3490
3502
  xt,
3491
3503
  {
3492
3504
  variant: "error",
@@ -3497,7 +3509,7 @@ const mn = (e, n) => {
3497
3509
  }
3498
3510
  );
3499
3511
  };
3500
- return /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
3512
+ return /* @__PURE__ */ t(J, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
3501
3513
  ft,
3502
3514
  {
3503
3515
  questions: e.personalityQuiz.questions,
@@ -3513,7 +3525,7 @@ const mn = (e, n) => {
3513
3525
  children: v(!0)
3514
3526
  }
3515
3527
  ) : v(!1) });
3516
- }, vn = (e) => ({
3528
+ }, Bn = (e) => ({
3517
3529
  // Score state wrapper content
3518
3530
  scoreStateWrapperContent: {
3519
3531
  display: "flex",
@@ -3599,12 +3611,15 @@ const mn = (e, n) => {
3599
3611
  },
3600
3612
  // Hexagon background
3601
3613
  hexagonBackground: {
3614
+ // The SVG is 160x180: the hexagon spans y 4-156 (centre at 80) and the rest is its drop
3615
+ // shadow. Keep the natural size and shift by the hexagon's centre (80/180), so the shape,
3616
+ // not the box, sits on the container centre where the emoji is.
3602
3617
  width: "160px",
3603
- height: "160px",
3618
+ height: "180px",
3604
3619
  position: "absolute",
3605
- top: "55%",
3620
+ top: "50%",
3606
3621
  left: "50%",
3607
- transform: "translate(-50%, -50%)"
3622
+ transform: "translate(-50%, -44.444%)"
3608
3623
  },
3609
3624
  // Achievement emoji
3610
3625
  achievementEmoji: {
@@ -3854,7 +3869,7 @@ const mn = (e, n) => {
3854
3869
  flexDirection: "column",
3855
3870
  alignSelf: "stretch"
3856
3871
  }
3857
- }), Bn = (e) => ({
3872
+ }), Wn = (e) => ({
3858
3873
  // Content wrapper
3859
3874
  contentWrapper: {
3860
3875
  display: "flex",
@@ -4113,20 +4128,20 @@ const mn = (e, n) => {
4113
4128
  textAlign: "center",
4114
4129
  my: "auto"
4115
4130
  }
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({
4131
+ }), Hn = ({ personas: e, brandingColors: n, contentBgColor: l }) => {
4132
+ const [a, o] = j(0), i = X(), r = _(), s = 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 = Wn({
4118
4133
  spacingScale: T,
4119
4134
  borderRadius: P,
4120
4135
  borderSize: S,
4121
4136
  fontFamilyPrimary: g,
4122
4137
  fontFamilySecondary: R,
4123
- textPrimary: r,
4138
+ textPrimary: s,
4124
4139
  primaryColor: y,
4125
4140
  textColor: C,
4126
4141
  surfaceVariantHover: F,
4127
4142
  successColor: u,
4128
4143
  onPrimaryColor: L,
4129
- isMobile: c,
4144
+ isMobile: r,
4130
4145
  contentBgColor: l
4131
4146
  }), z = He.useMemo(() => e.map((h) => {
4132
4147
  var f, x, b;
@@ -4136,7 +4151,7 @@ const mn = (e, n) => {
4136
4151
  mobileImage: ((x = h.images) == null ? void 0 : x.mobile) || ((b = h.images) == null ? void 0 : b.main) || null
4137
4152
  };
4138
4153
  }), [e]);
4139
- return !e || e.length === 0 ? null : /* @__PURE__ */ t(s, { sx: d.contentWrapper, children: /* @__PURE__ */ t(s, { sx: d.personalityResultsContainer, children: /* @__PURE__ */ A(
4154
+ return !e || e.length === 0 ? null : /* @__PURE__ */ t(c, { sx: d.contentWrapper, children: /* @__PURE__ */ t(c, { sx: d.personalityResultsContainer, children: /* @__PURE__ */ A(
4140
4155
  _e,
4141
4156
  {
4142
4157
  value: a,
@@ -4146,15 +4161,15 @@ const mn = (e, n) => {
4146
4161
  /* @__PURE__ */ t(Ge, { sx: d.tabList, children: e.map((h, f) => {
4147
4162
  const x = f === 0, b = z.find(
4148
4163
  (H) => H.personaId === h.personaId
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;
4164
+ ), I = (b == null ? void 0 : b.imageUrl) || null, D = (b == null ? void 0 : b.mobileImage) || null, v = r ? !!D : !!I && !h.description, U = r ? D : I;
4150
4165
  return /* @__PURE__ */ t(
4151
4166
  ve,
4152
4167
  {
4153
4168
  value: f,
4154
4169
  sx: [d.tab, x && d.tabFirst],
4155
- children: /* @__PURE__ */ A(s, { sx: d.tabLabelContainer, children: [
4170
+ children: /* @__PURE__ */ A(c, { sx: d.tabLabelContainer, children: [
4156
4171
  v && U && /* @__PURE__ */ t(
4157
- s,
4172
+ c,
4158
4173
  {
4159
4174
  sx: [
4160
4175
  d.tabLogo,
@@ -4183,9 +4198,9 @@ const mn = (e, n) => {
4183
4198
  {
4184
4199
  value: f,
4185
4200
  sx: d.tabPanel,
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,
4201
+ children: /* @__PURE__ */ t(c, { sx: d.tabContent, children: b && !r ? /* @__PURE__ */ A(c, { sx: d.contentWithImageAndDescription, children: [
4202
+ /* @__PURE__ */ t(c, { sx: d.imageSection, children: /* @__PURE__ */ t(
4203
+ c,
4189
4204
  {
4190
4205
  sx: [
4191
4206
  d.personaImageLarge,
@@ -4193,7 +4208,7 @@ const mn = (e, n) => {
4193
4208
  ]
4194
4209
  }
4195
4210
  ) }),
4196
- /* @__PURE__ */ t(s, { sx: d.descriptionSection, children: /* @__PURE__ */ t(
4211
+ /* @__PURE__ */ t(c, { sx: d.descriptionSection, children: /* @__PURE__ */ t(
4197
4212
  "span",
4198
4213
  {
4199
4214
  style: {
@@ -4206,7 +4221,7 @@ const mn = (e, n) => {
4206
4221
  }
4207
4222
  }
4208
4223
  ) })
4209
- ] }) : /* @__PURE__ */ t(s, { sx: d.contentDescriptionOnly, children: /* @__PURE__ */ t(
4224
+ ] }) : /* @__PURE__ */ t(c, { sx: d.contentDescriptionOnly, children: /* @__PURE__ */ t(
4210
4225
  "span",
4211
4226
  {
4212
4227
  style: {
@@ -4226,20 +4241,20 @@ const mn = (e, n) => {
4226
4241
  ]
4227
4242
  }
4228
4243
  ) }) });
4229
- }, Hn = (e) => {
4244
+ }, qn = (e) => {
4230
4245
  var D;
4231
4246
  const n = X(), l = fe(), { t: a } = q(), o = Ft(
4232
4247
  p.OVERLAY
4233
- ), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : _() ? Ie : Pe, { brandingImage: c, brandingColors: r, brandingLogo: y } = We(e.personalityQuiz.branding || null), C = c || be(
4248
+ ), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : _() ? Ie : Pe, { brandingImage: r, brandingColors: s, brandingLogo: y } = We(e.personalityQuiz.branding || null), C = r || be(
4234
4249
  {
4235
4250
  images: e.personalityQuiz.images,
4236
4251
  imagePlaceholder: i
4237
4252
  },
4238
4253
  p.OVERLAY
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(
4254
+ ), F = (s == null ? void 0 : s.primaryColor) || n.colorSchemes.light.palette.primary.plainColor, u = (s == null ? void 0 : s.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 = (s == null ? void 0 : s.backgroundColor) || n.colorSchemes.dark.onSurface, h = Rt(C), f = ht(
4240
4255
  e.personalityQuiz,
4241
4256
  e.summary
4242
- ), x = vn({
4257
+ ), x = Bn({
4243
4258
  spacingScale: l,
4244
4259
  primaryColor: F,
4245
4260
  secondaryColor: u,
@@ -4254,26 +4269,26 @@ const mn = (e, n) => {
4254
4269
  onSurfaceColor: n.colorSchemes.dark.onSurface,
4255
4270
  surfaceVariantColor: n.colorSchemes.dark.surfaceVariant
4256
4271
  }), b = () => /* @__PURE__ */ t(
4257
- Wn,
4272
+ Hn,
4258
4273
  {
4259
4274
  personas: f,
4260
- brandingColors: r,
4275
+ brandingColors: s,
4261
4276
  contentBgColor: z
4262
4277
  }
4263
4278
  ), I = () => {
4264
4279
  var v;
4265
- return /* @__PURE__ */ A(s, { sx: x.mainContentWrapper, children: [
4280
+ return /* @__PURE__ */ A(c, { sx: x.mainContentWrapper, children: [
4266
4281
  e.summary.personalityQuizId ? /* @__PURE__ */ A(Z, { children: [
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: [
4282
+ /* @__PURE__ */ t(c, { sx: x.personalityResultsSection, children: b() }),
4283
+ (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t(c, { sx: x.ctaSection, children: /* @__PURE__ */ A(c, { sx: x.ctaContentWrapper, children: [
4269
4284
  /* @__PURE__ */ t(w, { level: "body-lg", sx: x.thanksText, children: a("personalityQuiz.thanksForPlaying") }),
4270
- (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(s, { sx: x.buttonsContainer, children: [
4285
+ (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ A(c, { sx: x.buttonsContainer, children: [
4271
4286
  !e.maxAttemptsReached && /* @__PURE__ */ t(
4272
4287
  Y,
4273
4288
  {
4274
4289
  sx: x.playAgainButton,
4275
4290
  onClick: e.playAgain,
4276
- children: /* @__PURE__ */ A(s, { sx: x.playAgainButtonContent, children: [
4291
+ children: /* @__PURE__ */ A(c, { sx: x.playAgainButtonContent, children: [
4277
4292
  /* @__PURE__ */ t(gt, { sx: x.playAgainIcon }),
4278
4293
  /* @__PURE__ */ t(w, { sx: x.playAgainText, children: a("personalityQuiz.buttons.playAgain") })
4279
4294
  ] })
@@ -4310,7 +4325,7 @@ const mn = (e, n) => {
4310
4325
  ] });
4311
4326
  };
4312
4327
  return /* @__PURE__ */ t(
4313
- _t,
4328
+ Gt,
4314
4329
  {
4315
4330
  entity: e.personalityQuiz,
4316
4331
  backgroundImage: h,
@@ -4324,21 +4339,21 @@ const mn = (e, n) => {
4324
4339
  resultsTabPanelSxProps: { p: 0, fontSize: "1.25em" },
4325
4340
  isOverlayVariant: !0,
4326
4341
  brandingColors: (D = e.personalityQuiz.branding) == null ? void 0 : D.colors,
4327
- children: /* @__PURE__ */ t(s, { sx: x.scoreStateWrapperContent, children: I() })
4342
+ children: /* @__PURE__ */ t(c, { sx: x.scoreStateWrapperContent, children: I() })
4328
4343
  }
4329
4344
  ) : I()
4330
4345
  }
4331
4346
  );
4332
- }, qn = () => {
4347
+ }, Mn = () => {
4333
4348
  const { t: e } = q();
4334
4349
  return /* @__PURE__ */ t(J, { brandingBorderColor: null, children: /* @__PURE__ */ t(
4335
- Gt,
4350
+ Nt,
4336
4351
  {
4337
4352
  notFoundTitle: e("personalityQuiz.quizNotFound"),
4338
4353
  notFoundMessage: e("personalityQuiz.quizNotFoundDescription")
4339
4354
  }
4340
4355
  ) });
4341
- }, Mn = ({
4356
+ }, Un = ({
4342
4357
  personalityQuiz: e,
4343
4358
  template: n,
4344
4359
  imagePosition: l,
@@ -4346,7 +4361,7 @@ const mn = (e, n) => {
4346
4361
  rulesDisplay: o
4347
4362
  }) => {
4348
4363
  var u;
4349
- const { t: i } = q(), c = _(), r = ((u = e.branding) == null ? void 0 : u.colors) || null, { brandingLogo: y } = We(
4364
+ const { t: i } = q(), r = _(), s = ((u = e.branding) == null ? void 0 : u.colors) || null, { brandingLogo: y } = We(
4350
4365
  e.branding || null
4351
4366
  ), C = (L) => {
4352
4367
  var g;
@@ -4373,15 +4388,15 @@ const mn = (e, n) => {
4373
4388
  Qt,
4374
4389
  {
4375
4390
  ...F,
4376
- defaultImagePlaceholderUrl: a || (c ? Ie : Pe)
4391
+ defaultImagePlaceholderUrl: a || (r ? Ie : Pe)
4377
4392
  }
4378
- ) : n === p.SPLIT ? /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
4393
+ ) : n === p.SPLIT ? /* @__PURE__ */ t(J, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
4379
4394
  wt,
4380
4395
  {
4381
4396
  ...F,
4382
4397
  defaultImagePlaceholderUrl: a
4383
4398
  }
4384
- ) }) : /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
4399
+ ) }) : /* @__PURE__ */ t(J, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
4385
4400
  Lt,
4386
4401
  {
4387
4402
  ...F,
@@ -4389,9 +4404,9 @@ const mn = (e, n) => {
4389
4404
  defaultImagePlaceholderUrl: a
4390
4405
  }
4391
4406
  ) });
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();
4407
+ }, jn = (e) => {
4408
+ var o, i, r, s;
4409
+ const n = ((o = e.personalityQuiz.branding) == null ? void 0 : o.colors) || null, l = _() ? ((i = e.personalityQuiz.branding) == null ? void 0 : i.images.mobileLogo) || ((r = e.personalityQuiz.branding) == null ? void 0 : r.images.mainLogo) || "" : ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mainLogo) || "", { t: a } = q();
4395
4410
  return /* @__PURE__ */ t(J, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
4396
4411
  Lt,
4397
4412
  {
@@ -4417,9 +4432,9 @@ const mn = (e, n) => {
4417
4432
  }
4418
4433
  }
4419
4434
  ) });
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) || "";
4435
+ }, Vn = (e) => {
4436
+ var i, r, s, y;
4437
+ const n = _(), { t: l } = q(), a = ((i = e.personalityQuiz.branding) == null ? void 0 : i.colors) || null, o = n ? ((r = e.personalityQuiz.branding) == null ? void 0 : r.images.mobileLogo) || ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mainLogo) || "" : ((y = e.personalityQuiz.branding) == null ? void 0 : y.images.mainLogo) || "";
4423
4438
  return /* @__PURE__ */ t(J, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: /* @__PURE__ */ t(
4424
4439
  wt,
4425
4440
  {
@@ -4444,7 +4459,7 @@ const mn = (e, n) => {
4444
4459
  }
4445
4460
  }
4446
4461
  ) });
4447
- }, Vn = (e) => {
4462
+ }, pn = (e) => {
4448
4463
  const { t: n } = q(), l = _(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Pe, { brandingLogo: o } = We(
4449
4464
  e.personalityQuiz.branding || null
4450
4465
  );
@@ -4460,19 +4475,19 @@ const mn = (e, n) => {
4460
4475
  apiErrorMessage: e.apiErrorMessage,
4461
4476
  rulesDisplay: e.rulesDisplay,
4462
4477
  renderPresentedBy: (i) => {
4463
- var c;
4478
+ var r;
4464
4479
  return /* @__PURE__ */ t(
4465
4480
  M,
4466
4481
  {
4467
4482
  brandingLogo: o,
4468
4483
  textColor: i,
4469
- label: ((c = e.personalityQuiz.labels) == null ? void 0 : c.sponsor) || null
4484
+ label: ((r = e.personalityQuiz.labels) == null ? void 0 : r.sponsor) || null
4470
4485
  }
4471
4486
  );
4472
4487
  }
4473
4488
  }
4474
4489
  );
4475
- }, pn = (e) => ({
4490
+ }, En = (e) => ({
4476
4491
  // Pulse animation for buttons
4477
4492
  pulseAnimation: {
4478
4493
  "@keyframes pulse": {
@@ -4520,7 +4535,7 @@ const mn = (e, n) => {
4520
4535
  display: "flex",
4521
4536
  alignItems: "center"
4522
4537
  }
4523
- }), En = (e) => {
4538
+ }), $n = (e) => {
4524
4539
  var T, P, S, d, z;
4525
4540
  const n = ((T = e.personalityQuiz.branding) == null ? void 0 : T.colors) || null, l = _(), a = X(), o = be(
4526
4541
  {
@@ -4528,10 +4543,10 @@ const mn = (e, n) => {
4528
4543
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
4529
4544
  },
4530
4545
  p.STANDARD
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({
4546
+ ), i = K().primary, r = oe().xl, s = (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 = En({
4532
4547
  fontFamilyPrimary: i,
4533
- buttonRadius: c,
4534
- primaryColor: r,
4548
+ buttonRadius: r,
4549
+ primaryColor: s,
4535
4550
  onPrimaryColor: y
4536
4551
  }), R = () => {
4537
4552
  var h, f, x, b;
@@ -4547,7 +4562,7 @@ const mn = (e, n) => {
4547
4562
  children: /* @__PURE__ */ t(w, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || u("common.signIn") })
4548
4563
  }
4549
4564
  ) : (x = e.signInCTA) != null && x.url ? typeof window > "u" ? /* @__PURE__ */ t(
4550
- s,
4565
+ c,
4551
4566
  {
4552
4567
  component: "a",
4553
4568
  href: e.signInCTA.url,
@@ -4599,7 +4614,7 @@ const mn = (e, n) => {
4599
4614
  );
4600
4615
  };
4601
4616
  return /* @__PURE__ */ t(J, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
4602
- Nt,
4617
+ Zt,
4603
4618
  {
4604
4619
  entity: e.personalityQuiz,
4605
4620
  headline: u("personalityQuiz.headline"),
@@ -4617,7 +4632,7 @@ const mn = (e, n) => {
4617
4632
  rulesDisplay: e.rulesDisplay
4618
4633
  }
4619
4634
  ) });
4620
- }, $n = (e) => ({
4635
+ }, On = (e) => ({
4621
4636
  // Pulse animation for buttons
4622
4637
  pulseAnimation: {
4623
4638
  "@keyframes pulse": {
@@ -4665,7 +4680,7 @@ const mn = (e, n) => {
4665
4680
  display: "flex",
4666
4681
  alignItems: "center"
4667
4682
  }
4668
- }), On = (e) => {
4683
+ }), _n = (e) => {
4669
4684
  var T, P, S, d, z;
4670
4685
  const n = X(), l = _(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Pe, o = be(
4671
4686
  {
@@ -4673,7 +4688,7 @@ const mn = (e, n) => {
4673
4688
  imagePlaceholder: a
4674
4689
  },
4675
4690
  p.SPLIT
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({
4691
+ ), { t: i } = q(), r = ((T = e.personalityQuiz.branding) == null ? void 0 : T.colors) || null, s = 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 = (r == null ? void 0 : r.primaryColor) || Q().palette.primary.plainColor, L = Q().palette.primary.onPrimary, g = On({
4677
4692
  fontFamilyPrimary: C,
4678
4693
  fontFamilySecondary: y,
4679
4694
  buttonRadius: F,
@@ -4693,7 +4708,7 @@ const mn = (e, n) => {
4693
4708
  children: /* @__PURE__ */ t(w, { sx: g.signInButtonText, children: e.signInCTA.defaultLabel || i("common.signIn") })
4694
4709
  }
4695
4710
  ) : (x = e.signInCTA) != null && x.url ? typeof window > "u" ? /* @__PURE__ */ t(
4696
- s,
4711
+ c,
4697
4712
  {
4698
4713
  component: "a",
4699
4714
  href: e.signInCTA.url,
@@ -4744,8 +4759,8 @@ const mn = (e, n) => {
4744
4759
  }
4745
4760
  );
4746
4761
  };
4747
- return /* @__PURE__ */ t(J, { brandingBorderColor: (c == null ? void 0 : c.borderColor) || null, children: /* @__PURE__ */ t(
4748
- Zt,
4762
+ return /* @__PURE__ */ t(J, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
4763
+ Yt,
4749
4764
  {
4750
4765
  entity: e.personalityQuiz,
4751
4766
  headline: i("personalityQuiz.headline"),
@@ -4754,15 +4769,15 @@ const mn = (e, n) => {
4754
4769
  brandingContent: /* @__PURE__ */ t(
4755
4770
  M,
4756
4771
  {
4757
- brandingLogo: r,
4758
- textColor: (c == null ? void 0 : c.contentColor) || n.colorSchemes.dark.textColor,
4772
+ brandingLogo: s,
4773
+ textColor: (r == null ? void 0 : r.contentColor) || n.colorSchemes.dark.textColor,
4759
4774
  label: ((z = e.personalityQuiz.labels) == null ? void 0 : z.sponsor) || null
4760
4775
  }
4761
4776
  ),
4762
4777
  rulesDisplay: e.rulesDisplay
4763
4778
  }
4764
4779
  ) });
4765
- }, _n = (e) => ({
4780
+ }, Gn = (e) => ({
4766
4781
  // Pulse animation for buttons
4767
4782
  pulseAnimation: {
4768
4783
  "@keyframes pulse": {
@@ -4800,17 +4815,17 @@ const mn = (e, n) => {
4800
4815
  display: "flex",
4801
4816
  alignItems: "center"
4802
4817
  }
4803
- }), Gn = (e) => {
4818
+ }), Nn = (e) => {
4804
4819
  var S, d, z, h, f, x, b, I, D, v, U;
4805
4820
  const n = X(), { t: l } = q(), a = _(), o = Ft(
4806
4821
  p.OVERLAY
4807
- ), { brandingImage: i, brandingColors: c, brandingLogo: r } = We(e.personalityQuiz.branding || null), y = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ie : Pe, C = i || be(
4822
+ ), { brandingImage: i, brandingColors: r, brandingLogo: s } = We(e.personalityQuiz.branding || null), y = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ie : Pe, C = i || be(
4808
4823
  {
4809
4824
  images: e.personalityQuiz.images,
4810
4825
  imagePlaceholder: y
4811
4826
  },
4812
4827
  p.OVERLAY
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({
4828
+ ), F = Rt(C), u = (d = (S = n.customRadius) == null ? void 0 : S.light) == null ? void 0 : d.xl, L = (r == null ? void 0 : r.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 = Gn({
4814
4829
  buttonRadius: u,
4815
4830
  primaryColor: L,
4816
4831
  onPrimaryColor: g,
@@ -4829,7 +4844,7 @@ const mn = (e, n) => {
4829
4844
  children: /* @__PURE__ */ t(w, { sx: T.signInButtonText, children: e.signInCTA.defaultLabel || l("common.signIn") })
4830
4845
  }
4831
4846
  ) : (m = e.signInCTA) != null && m.url ? typeof window > "u" ? /* @__PURE__ */ t(
4832
- s,
4847
+ c,
4833
4848
  {
4834
4849
  component: "a",
4835
4850
  href: e.signInCTA.url,
@@ -4881,7 +4896,7 @@ const mn = (e, n) => {
4881
4896
  );
4882
4897
  };
4883
4898
  return /* @__PURE__ */ t(
4884
- Yt,
4899
+ Kt,
4885
4900
  {
4886
4901
  entity: e.personalityQuiz,
4887
4902
  headline: l("personalityQuiz.headline"),
@@ -4891,7 +4906,7 @@ const mn = (e, n) => {
4891
4906
  brandingContent: /* @__PURE__ */ t(
4892
4907
  M,
4893
4908
  {
4894
- brandingLogo: r,
4909
+ brandingLogo: s,
4895
4910
  textColor: n.colorSchemes.dark.textColor,
4896
4911
  label: ((U = e.personalityQuiz.labels) == null ? void 0 : U.sponsor) || null
4897
4912
  }
@@ -4899,8 +4914,8 @@ const mn = (e, n) => {
4899
4914
  rulesDisplay: e.rulesDisplay
4900
4915
  }
4901
4916
  );
4902
- }, Nn = (e) => {
4903
- var o, i, c;
4917
+ }, Zn = (e) => {
4918
+ var o, i, r;
4904
4919
  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;
4905
4920
  return /* @__PURE__ */ t(
4906
4921
  st,
@@ -4919,7 +4934,7 @@ const mn = (e, n) => {
4919
4934
  ct,
4920
4935
  {
4921
4936
  signInCTA: e.signInCTA,
4922
- labels: (c = (i = e.signInCTA) == null ? void 0 : i.gate) == null ? void 0 : c.labels,
4937
+ labels: (r = (i = e.signInCTA) == null ? void 0 : i.gate) == null ? void 0 : r.labels,
4923
4938
  primaryColor: a,
4924
4939
  textColor: (l == null ? void 0 : l.contentColor) || void 0,
4925
4940
  align: "center"
@@ -4927,8 +4942,8 @@ const mn = (e, n) => {
4927
4942
  )
4928
4943
  }
4929
4944
  );
4930
- }, Zn = (e) => {
4931
- var o, i, c;
4945
+ }, Yn = (e) => {
4946
+ var o, i, r;
4932
4947
  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;
4933
4948
  return /* @__PURE__ */ t(
4934
4949
  dt,
@@ -4946,7 +4961,7 @@ const mn = (e, n) => {
4946
4961
  ct,
4947
4962
  {
4948
4963
  signInCTA: e.signInCTA,
4949
- labels: (c = (i = e.signInCTA) == null ? void 0 : i.gate) == null ? void 0 : c.labels,
4964
+ labels: (r = (i = e.signInCTA) == null ? void 0 : i.gate) == null ? void 0 : r.labels,
4950
4965
  primaryColor: a,
4951
4966
  textColor: (l == null ? void 0 : l.contentColor) || void 0,
4952
4967
  align: "center"
@@ -4954,8 +4969,8 @@ const mn = (e, n) => {
4954
4969
  )
4955
4970
  }
4956
4971
  );
4957
- }, Yn = (e) => {
4958
- var i, c, r;
4972
+ }, Kn = (e) => {
4973
+ var i, r, s;
4959
4974
  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;
4960
4975
  return /* @__PURE__ */ t(
4961
4976
  mt,
@@ -4972,7 +4987,7 @@ const mn = (e, n) => {
4972
4987
  ct,
4973
4988
  {
4974
4989
  signInCTA: e.signInCTA,
4975
- labels: (r = (c = e.signInCTA) == null ? void 0 : c.gate) == null ? void 0 : r.labels,
4990
+ labels: (s = (r = e.signInCTA) == null ? void 0 : r.gate) == null ? void 0 : s.labels,
4976
4991
  primaryColor: o,
4977
4992
  textColor: (a == null ? void 0 : a.contentColor) || l.colorSchemes.dark.textColor,
4978
4993
  align: "center"
@@ -4980,7 +4995,7 @@ const mn = (e, n) => {
4980
4995
  )
4981
4996
  }
4982
4997
  );
4983
- }, Kn = (e) => {
4998
+ }, Jn = (e) => {
4984
4999
  const { t: n } = q();
4985
5000
  return /* @__PURE__ */ t(
4986
5001
  st,
@@ -4999,8 +5014,8 @@ const mn = (e, n) => {
4999
5014
  consents: e.consents
5000
5015
  }
5001
5016
  );
5002
- }, Jn = (e) => {
5003
- var o, i, c;
5017
+ }, Xn = (e) => {
5018
+ var o, i, r;
5004
5019
  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;
5005
5020
  return /* @__PURE__ */ t(
5006
5021
  st,
@@ -5028,14 +5043,14 @@ const mn = (e, n) => {
5028
5043
  $e,
5029
5044
  {
5030
5045
  onClick: e.onSubmit,
5031
- label: ((c = e.consents.labels) == null ? void 0 : c.ctaLabel) || n("personalityQuiz.buttons.finish"),
5046
+ label: ((r = e.consents.labels) == null ? void 0 : r.ctaLabel) || n("personalityQuiz.buttons.finish"),
5032
5047
  isSubmitting: e.isSubmitting,
5033
5048
  primaryColor: a
5034
5049
  }
5035
5050
  )
5036
5051
  }
5037
5052
  );
5038
- }, Xn = (e) => {
5053
+ }, ei = (e) => {
5039
5054
  var o, i;
5040
5055
  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;
5041
5056
  return /* @__PURE__ */ t(
@@ -5067,8 +5082,8 @@ const mn = (e, n) => {
5067
5082
  )
5068
5083
  }
5069
5084
  );
5070
- }, ei = (e) => {
5071
- var i, c, r;
5085
+ }, ti = (e) => {
5086
+ var i, r, s;
5072
5087
  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;
5073
5088
  return /* @__PURE__ */ t(
5074
5089
  mt,
@@ -5087,21 +5102,21 @@ const mn = (e, n) => {
5087
5102
  consents: e.consents,
5088
5103
  primaryColor: o,
5089
5104
  textColor: (a == null ? void 0 : a.contentColor) || l.colorSchemes.dark.textColor,
5090
- brandingUrls: (c = e.personalityQuiz.branding) == null ? void 0 : c.urls
5105
+ brandingUrls: (r = e.personalityQuiz.branding) == null ? void 0 : r.urls
5091
5106
  }
5092
5107
  ),
5093
5108
  footerAction: /* @__PURE__ */ t(
5094
5109
  $e,
5095
5110
  {
5096
5111
  onClick: e.onSubmit,
5097
- label: ((r = e.consents.labels) == null ? void 0 : r.ctaLabel) || n("personalityQuiz.buttons.finish"),
5112
+ label: ((s = e.consents.labels) == null ? void 0 : s.ctaLabel) || n("personalityQuiz.buttons.finish"),
5098
5113
  isSubmitting: e.isSubmitting,
5099
5114
  primaryColor: o
5100
5115
  }
5101
5116
  )
5102
5117
  }
5103
5118
  );
5104
- }, ti = (e) => {
5119
+ }, ni = (e) => {
5105
5120
  const { t: n } = q();
5106
5121
  return /* @__PURE__ */ t(
5107
5122
  dt,
@@ -5119,7 +5134,7 @@ const mn = (e, n) => {
5119
5134
  consents: e.consents
5120
5135
  }
5121
5136
  );
5122
- }, ni = (e) => {
5137
+ }, ii = (e) => {
5123
5138
  const { t: n } = q();
5124
5139
  return /* @__PURE__ */ t(
5125
5140
  mt,
@@ -5140,9 +5155,9 @@ const mn = (e, n) => {
5140
5155
  function Se(e) {
5141
5156
  return e.template === p.STANDARD;
5142
5157
  }
5143
- const ii = (e) => {
5158
+ const ai = (e) => {
5144
5159
  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({
5160
+ const [n, l] = j(1), [a, o] = j(null), [i, r] = j([]), [s, 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 = un(e.entityId, e.sdk), W = Jt({
5146
5161
  signInCTA: e.signInCTA,
5147
5162
  authRequired: (m == null ? void 0 : m.authRequirement) === "REGISTERED",
5148
5163
  userIsLoggedIn: e.userIsLoggedIn,
@@ -5155,7 +5170,7 @@ const ii = (e) => {
5155
5170
  setIsUnauthorized: re,
5156
5171
  setIsApiError: se,
5157
5172
  setApiMessage: me
5158
- } = un(
5173
+ } = gn(
5159
5174
  e.entityId,
5160
5175
  e.sdk,
5161
5176
  u,
@@ -5168,7 +5183,7 @@ const ii = (e) => {
5168
5183
  setChecked: ce,
5169
5184
  allRequiredChecked: de,
5170
5185
  submit: ae
5171
- } = Jt({
5186
+ } = Xt({
5172
5187
  sdk: e.sdk,
5173
5188
  consents: (Ct = e.consents) == null ? void 0 : Ct.items,
5174
5189
  entityId: e.entityId,
@@ -5193,7 +5208,7 @@ const ii = (e) => {
5193
5208
  read: Me,
5194
5209
  save: Ue,
5195
5210
  clear: Fe
5196
- } = Xt({
5211
+ } = en({
5197
5212
  namespace: "personality-quiz",
5198
5213
  entityId: e.entityId,
5199
5214
  fingerprint: qe
@@ -5208,13 +5223,13 @@ const ii = (e) => {
5208
5223
  ue.length,
5209
5224
  m == null ? void 0 : m.authRequirement
5210
5225
  ]);
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]);
5226
+ const De = (It = s[0]) != null && It.personalityQuizId ? s[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 ? tn(m.related) : null, [m]);
5212
5227
  ye(() => {
5213
- tn(e.language || "en");
5228
+ nn(e.language || "en");
5214
5229
  }, [e.language]), ye(() => {
5215
5230
  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(() => {
5231
+ (k = s[0]) != null && k.personalityQuizId && ((N = (B = e.callbacks) == null ? void 0 : B.onFinish) == null || N.call(B, s[0]));
5232
+ }, [s]), ye(() => {
5218
5233
  if (Re.current || !(m != null && m.id) || !V || ne || !W.isDeferred || !W.isSignedIn) return;
5219
5234
  if (i.length) {
5220
5235
  Re.current = !0;
@@ -5228,7 +5243,7 @@ const ii = (e) => {
5228
5243
  return;
5229
5244
  }
5230
5245
  const B = k.answers || [];
5231
- c(B), l(
5246
+ r(B), l(
5232
5247
  Math.min(B.length + 1, m.questions.length)
5233
5248
  ), k.checkedConsents && ce(k.checkedConsents), he.current = k.heldConsentIds || [], E.current = !0, x(!1);
5234
5249
  }, [
@@ -5261,10 +5276,10 @@ const ii = (e) => {
5261
5276
  }, [W.isPending, O, ae]), !m || !V)
5262
5277
  return /* @__PURE__ */ t(zt, { my: 20 });
5263
5278
  if (!m.id)
5264
- return /* @__PURE__ */ t(qn, {});
5279
+ return /* @__PURE__ */ t(Mn, {});
5265
5280
  if (m.status !== "ACTIVE")
5266
5281
  return /* @__PURE__ */ t(
5267
- Mn,
5282
+ Un,
5268
5283
  {
5269
5284
  personalityQuiz: m,
5270
5285
  template: e.template,
@@ -5275,7 +5290,7 @@ const ii = (e) => {
5275
5290
  );
5276
5291
  if (W.isPending && W.position === "before")
5277
5292
  return Se(e) ? /* @__PURE__ */ t(
5278
- En,
5293
+ $n,
5279
5294
  {
5280
5295
  personalityQuiz: m,
5281
5296
  imagePosition: e.imagePosition,
@@ -5283,14 +5298,14 @@ const ii = (e) => {
5283
5298
  signInCTA: e.signInCTA
5284
5299
  }
5285
5300
  ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
5286
- Gn,
5301
+ Nn,
5287
5302
  {
5288
5303
  personalityQuiz: m,
5289
5304
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
5290
5305
  signInCTA: e.signInCTA
5291
5306
  }
5292
5307
  ) : /* @__PURE__ */ t(
5293
- On,
5308
+ _n,
5294
5309
  {
5295
5310
  personalityQuiz: m,
5296
5311
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
@@ -5298,11 +5313,11 @@ const ii = (e) => {
5298
5313
  }
5299
5314
  );
5300
5315
  const Ne = () => {
5301
- se(!1), re(!1), y([]), l(1), o(null), c([]), F(!1), R(!1), P(!1), d(!1), L(!u);
5316
+ se(!1), re(!1), y([]), l(1), o(null), r([]), F(!1), R(!1), P(!1), d(!1), L(!u);
5302
5317
  };
5303
5318
  if (ee || te)
5304
5319
  return Se(e) ? /* @__PURE__ */ t(
5305
- Un,
5320
+ jn,
5306
5321
  {
5307
5322
  personalityQuiz: m,
5308
5323
  imagePosition: e.imagePosition,
@@ -5313,7 +5328,7 @@ const ii = (e) => {
5313
5328
  toggleTryAgain: Ne
5314
5329
  }
5315
5330
  ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
5316
- Vn,
5331
+ pn,
5317
5332
  {
5318
5333
  personalityQuiz: m,
5319
5334
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
@@ -5323,7 +5338,7 @@ const ii = (e) => {
5323
5338
  toggleTryAgain: Ne
5324
5339
  }
5325
5340
  ) : /* @__PURE__ */ t(
5326
- jn,
5341
+ Vn,
5327
5342
  {
5328
5343
  personalityQuiz: m,
5329
5344
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
@@ -5342,7 +5357,7 @@ const ii = (e) => {
5342
5357
  optionId: a
5343
5358
  }
5344
5359
  ];
5345
- if (c(B), n < m.questions.length) {
5360
+ if (r(B), n < m.questions.length) {
5346
5361
  l((Ae) => Ae + 1), o(null);
5347
5362
  return;
5348
5363
  }
@@ -5371,7 +5386,7 @@ const ii = (e) => {
5371
5386
  F(!1), y([B]), o(null), Fe();
5372
5387
  } catch (B) {
5373
5388
  F(!1), y([new Dt()]), console.error("[personality-quiz-play] participation failed", B);
5374
- const { code: N, message: Ae } = nn(B, e.sdk);
5389
+ const { code: N, message: Ae } = an(B, e.sdk);
5375
5390
  N === 401 || N === 403 ? re(!0) : (se(!0), me(Ae || ""));
5376
5391
  }
5377
5392
  }, Bt = async () => {
@@ -5410,11 +5425,11 @@ const ii = (e) => {
5410
5425
  }, Je = (k) => {
5411
5426
  o(k);
5412
5427
  }, Xe = () => {
5413
- l(1), o(null), c([]), y([]), R(!1), P(!1), d(!1), I(!1), H(!1);
5428
+ l(1), o(null), r([]), y([]), R(!1), P(!1), d(!1), I(!1), H(!1);
5414
5429
  }, Ht = () => {
5415
5430
  const k = Le(ue), B = le ? O : void 0, N = ge.length > 0 && !D;
5416
5431
  return e.template === p.OVERLAY ? /* @__PURE__ */ t(
5417
- yn,
5432
+ fn,
5418
5433
  {
5419
5434
  sdk: e.sdk,
5420
5435
  leads: e.leads,
@@ -5435,7 +5450,7 @@ const ii = (e) => {
5435
5450
  startPlaying: Ye
5436
5451
  }
5437
5452
  ) : Se(e) ? /* @__PURE__ */ t(
5438
- hn,
5453
+ bn,
5439
5454
  {
5440
5455
  sdk: e.sdk,
5441
5456
  leads: e.leads,
@@ -5458,7 +5473,7 @@ const ii = (e) => {
5458
5473
  startPlaying: Ye
5459
5474
  }
5460
5475
  ) : /* @__PURE__ */ t(
5461
- Cn,
5476
+ Sn,
5462
5477
  {
5463
5478
  sdk: e.sdk,
5464
5479
  leads: e.leads,
@@ -5489,12 +5504,12 @@ const ii = (e) => {
5489
5504
  rulesDisplay: e.rulesDisplay
5490
5505
  };
5491
5506
  return Se(e) ? /* @__PURE__ */ t(
5492
- Nn,
5507
+ Zn,
5493
5508
  {
5494
5509
  ...k,
5495
5510
  imagePosition: e.imagePosition
5496
5511
  }
5497
- ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(Yn, { ...k }) : /* @__PURE__ */ t(Zn, { ...k });
5512
+ ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(Kn, { ...k }) : /* @__PURE__ */ t(Yn, { ...k });
5498
5513
  }
5499
5514
  if (b && ge.length > 0) {
5500
5515
  const k = {
@@ -5507,16 +5522,16 @@ const ii = (e) => {
5507
5522
  rulesDisplay: e.rulesDisplay
5508
5523
  };
5509
5524
  return Se(e) ? /* @__PURE__ */ t(
5510
- Jn,
5525
+ Xn,
5511
5526
  {
5512
5527
  ...k,
5513
5528
  imagePosition: e.imagePosition
5514
5529
  }
5515
- ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(ei, { ...k }) : /* @__PURE__ */ t(Xn, { ...k });
5530
+ ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(ti, { ...k }) : /* @__PURE__ */ t(ei, { ...k });
5516
5531
  }
5517
5532
  if (S && !T)
5518
5533
  return Se(e) ? /* @__PURE__ */ t(
5519
- Kn,
5534
+ Jn,
5520
5535
  {
5521
5536
  personalityQuiz: m,
5522
5537
  sdk: e.sdk,
@@ -5528,7 +5543,7 @@ const ii = (e) => {
5528
5543
  consents: le ? O : void 0
5529
5544
  }
5530
5545
  ) : e.template === p.SPLIT ? /* @__PURE__ */ t(
5531
- ti,
5546
+ ni,
5532
5547
  {
5533
5548
  personalityQuiz: m,
5534
5549
  sdk: e.sdk,
@@ -5539,7 +5554,7 @@ const ii = (e) => {
5539
5554
  consents: le ? O : void 0
5540
5555
  }
5541
5556
  ) : e.template === p.OVERLAY ? /* @__PURE__ */ t(
5542
- ni,
5557
+ ii,
5543
5558
  {
5544
5559
  personalityQuiz: m,
5545
5560
  sdk: e.sdk,
@@ -5550,10 +5565,10 @@ const ii = (e) => {
5550
5565
  consents: le ? O : void 0
5551
5566
  }
5552
5567
  ) : /* @__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;
5568
+ if (s.length || Ce) {
5569
+ const k = s[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;
5555
5570
  return e.template === p.OVERLAY ? /* @__PURE__ */ t(
5556
- Hn,
5571
+ qn,
5557
5572
  {
5558
5573
  summary: k,
5559
5574
  showAnswerExplanations: e.showAnswerExplanations || !1,
@@ -5568,7 +5583,7 @@ const ii = (e) => {
5568
5583
  chanceGameContent: B
5569
5584
  }
5570
5585
  ) : Se(e) ? /* @__PURE__ */ t(
5571
- Rn,
5586
+ Qn,
5572
5587
  {
5573
5588
  imagePosition: e.imagePosition || "left",
5574
5589
  summary: k,
@@ -5584,7 +5599,7 @@ const ii = (e) => {
5584
5599
  chanceGameContent: N
5585
5600
  }
5586
5601
  ) : /* @__PURE__ */ t(
5587
- Dn,
5602
+ vn,
5588
5603
  {
5589
5604
  summary: k,
5590
5605
  showAnswerExplanations: e.showAnswerExplanations || !1,
@@ -5601,7 +5616,7 @@ const ii = (e) => {
5601
5616
  );
5602
5617
  }
5603
5618
  return Ht();
5604
- }, hi = (e) => /* @__PURE__ */ t(an, { packageName: "personality-quiz-play", ...e, children: /* @__PURE__ */ t(ii, { ...e }) });
5619
+ }, bi = (e) => /* @__PURE__ */ t(ln, { packageName: "personality-quiz-play", ...e, children: /* @__PURE__ */ t(ai, { ...e }) });
5605
5620
  export {
5606
- hi as M
5621
+ bi as M
5607
5622
  };