fansunited-frontend-components 1.1.1 → 1.2.0

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 (53) hide show
  1. package/BattleOfFans.js +427 -404
  2. package/Betslip.js +1 -1
  3. package/ChanceGame.js +1 -1
  4. package/ClassicQuizPlay.js +2 -2
  5. package/CollectLead.js +1 -1
  6. package/CompetitionStatistics.js +1 -1
  7. package/CompetitorCard.js +1 -1
  8. package/Discussion.js +1 -1
  9. package/EitherOrPlay.js +2 -2
  10. package/EventCard.js +1 -1
  11. package/EventGamePlay.js +2 -2
  12. package/Leaderboard.js +1 -1
  13. package/List.js +4 -4
  14. package/MatchQuizPlay.js +2 -2
  15. package/Odds.js +1 -1
  16. package/PersonalityQuizPlay.js +2 -2
  17. package/PickThePair.js +1 -1
  18. package/PlayerOfTheMatch.js +805 -857
  19. package/PollVote.js +2 -2
  20. package/Predictor.js +1 -1
  21. package/ProfileStats.d.ts +4 -0
  22. package/ProfileStats.d.ts.map +1 -0
  23. package/ProfileStats.js +2781 -0
  24. package/README.md +61 -2
  25. package/Standings.js +1 -1
  26. package/TopX.js +1 -1
  27. package/chunks/index-CLJiQKNv.js +4 -0
  28. package/chunks/index-D6-V3WrE.js +4 -0
  29. package/chunks/index-Dt38wFLo.js +4 -0
  30. package/chunks/index-Ehvd1Qmz.js +4 -0
  31. package/chunks/index-QtarvzAb.js +4 -0
  32. package/chunks/index-kffkFNES.js +4 -0
  33. package/chunks/{main-DdL0UekL.js → main-BnuQygIM.js} +1853 -1783
  34. package/chunks/main-BpGmqCTf.js +2142 -0
  35. package/chunks/main-C0PSUCR_.js +3027 -0
  36. package/chunks/{main-LEE8n2cG.js → main-CfdOHNHz.js} +1268 -1203
  37. package/chunks/{main-D_QDfmAw.js → main-PpLP-LeG.js} +1797 -1753
  38. package/chunks/{main-C7X4dM_P.js → main-p1Qbq-Fw.js} +1532 -1483
  39. package/chunks/{withVersionStamp-CzdDF1rG.js → withVersionStamp-C1gbpK3-.js} +1 -1
  40. package/components.d.ts +2 -1
  41. package/components.d.ts.map +1 -1
  42. package/index.d.ts +1 -0
  43. package/index.d.ts.map +1 -1
  44. package/index.js +11 -9
  45. package/package.json +6 -2
  46. package/chunks/index-BNl8scz6.js +0 -4
  47. package/chunks/index-CSa2JU4m.js +0 -4
  48. package/chunks/index-Cd1dg0KI.js +0 -4
  49. package/chunks/index-Cei2fzi7.js +0 -4
  50. package/chunks/index-Cxb4wEJU.js +0 -4
  51. package/chunks/index-w1LGN5dz.js +0 -4
  52. package/chunks/main-07vzblS8.js +0 -2091
  53. package/chunks/main-DmBfwyb4.js +0 -2992
@@ -1,59 +1,59 @@
1
- import { jsx as t, jsxs as p, Fragment as Re } from "@emotion/react/jsx-runtime";
2
- import { useDisableCache as ni, useInternalTheme as ne, useColors as re, useImageUrl as Ze, useConstantContext as Ct, ConstantsContext as It, useIsMobile as Y, useIsLarge as St, useBrandingModelProperties as He, defaultBgVertical as Se, defaultBg as ze, useImageVariant as he, WidgetTemplate as G, DirectionalIcon as zt, useIsExtraSmall as ii, hexToRgb as Oe, useIsRtl as Ke, bidiIsolateAuto as ai, stripHtmlTags as ri, useImageBackgroundGradient as Un, sanitizeBackgroundUrl as Mn, useSignInGate as oi, useConsents as li, useParticipationDraft as si, getRelatedInfoPageId as ci, initializeI18n as di, ChanceGameEmbed as Vt, extractSdkError as ui } from "fansunited-frontend-core";
3
- import { C as jt } from "./ChanceGameEmbedVariant-z8XYzgDW.js";
4
- import Xe, { useState as U, useEffect as me, useRef as Ce, useId as Je, useMemo as dt } from "react";
5
- import { PersonalityQuizFullModel as gi, PersonalityQuizParticipationModel as $n } from "fansunited-sdk-esm/models";
6
- import { AspectRatio as et, useBreakpointUp as ue, PlayCollectLeadWrapper as mi, baseButton as Ie, ButtonSpinner as En, space as g, baseBody as fe, OverlaySkeleton as fi, ConsentPanel as Te, PresentedBy as V, ConsentCta as tt, ctaButton as yi, ctaLabel as hi, StandardSkeleton as bi, SplitSkeleton as pi, StandardContentSkeleton as xi, AdditionalCTA as wt, AlertMessage as kt, SplitScoreStateSkeleton as vi, OverlayScoreStateWrapperSkeleton as Ci, NotFound as Ii, OverlayApiErrorSkeleton as Fn, SplitApiErrorSkeleton as Hn, StandardApiErrorSkeleton as On, StandardSignInSkeleton as Si, SignInCta as At, SplitSignInSkeleton as zi, OverlaySignInSkeleton as wi, StandardLeadAfterCollection as Qt, SignInGatePanel as Pt, SplitLeadAfterCollection as qt, OverlayLeadAfterCollection as Lt, Spinner as Gt, WidgetPortal as ki } from "fansunited-frontend-core/ui/emotion";
1
+ import { jsx as t, jsxs as w, Fragment as Re } from "@emotion/react/jsx-runtime";
2
+ import { useDisableCache as ri, useInternalTheme as te, useColors as re, useImageUrl as Ke, useConstantContext as zt, ConstantsContext as wt, useIsMobile as Z, useIsLarge as kt, useBrandingModelProperties as Oe, defaultBgVertical as Ie, defaultBg as Se, useImageVariant as be, WidgetTemplate as _, DirectionalIcon as Qt, useIsExtraSmall as oi, hexToRgb as We, useIsRtl as Xe, bidiIsolateAuto as li, stripHtmlTags as si, getBrandingClickUrl as $n, useImageBackgroundGradient as Mn, sanitizeBackgroundUrl as Fn, isExpired as ci, useSignInGate as di, useConsents as ui, useParticipationDraft as gi, getRelatedInfoPageId as mi, initializeI18n as fi, ChanceGameEmbed as Nt, extractSdkError as yi } from "fansunited-frontend-core";
3
+ import { C as _t } from "./ChanceGameEmbedVariant-z8XYzgDW.js";
4
+ import Je, { useState as M, useEffect as fe, useRef as ve, useId as et, useMemo as gt } from "react";
5
+ import { PersonalityQuizFullModel as hi, PersonalityQuizParticipationModel as Hn } from "fansunited-sdk-esm/models";
6
+ import { ExpiredTooltip as tt, AspectRatio as nt, useBreakpointUp as ge, PlayCollectLeadWrapper as bi, baseButton as Ce, ButtonSpinner as On, space as f, baseBody as ye, OverlaySkeleton as xi, ConsentPanel as Te, PresentedBy as G, ConsentCta as it, ctaButton as pi, ctaLabel as vi, StandardSkeleton as Ci, SplitSkeleton as Ii, StandardContentSkeleton as Si, AdditionalCTA as At, AlertMessage as Pt, SplitScoreStateSkeleton as zi, OverlayScoreStateWrapperSkeleton as wi, NotFound as ki, OverlayApiErrorSkeleton as Wn, SplitApiErrorSkeleton as Vn, StandardApiErrorSkeleton as jn, StandardSignInSkeleton as Qi, SignInCta as qt, SplitSignInSkeleton as Ai, OverlaySignInSkeleton as Pi, StandardLeadAfterCollection as Lt, SignInGatePanel as Dt, SplitLeadAfterCollection as Ut, OverlayLeadAfterCollection as Rt, Spinner as Yt, WidgetPortal as qi } from "fansunited-frontend-core/ui/emotion";
7
7
  import { css as n } from "@emotion/react";
8
- import { ArrowRightAltIcon as Dt, ReplayIcon as Rt } from "fansunited-frontend-core/ui/icons";
9
- import { useTranslation as H } from "react-i18next";
10
- const Ai = (e, i) => {
11
- const [r, o] = U(null), c = ni(), a = async () => {
8
+ import { ArrowRightAltIcon as Tt, ReplayIcon as Bt } from "fansunited-frontend-core/ui/icons";
9
+ import { useTranslation as W } from "react-i18next";
10
+ const Li = (e, i) => {
11
+ const [r, o] = M(null), d = ri(), a = async () => {
12
12
  try {
13
- const l = await i.miniGames.getPersonalityQuizById(e, c);
13
+ const l = await i.miniGames.getPersonalityQuizById(e, d);
14
14
  o(l);
15
15
  } catch (l) {
16
- console.error(l), o(new gi());
16
+ console.error(l), o(new hi());
17
17
  }
18
18
  };
19
- return me(() => (a(), () => o(null)), [e, i, c]), r;
20
- }, Qi = (e, i, r, o = !1, c = !1) => {
21
- const [a, l] = U(null), [s, x] = U(!1), [y, m] = U(!1), [u, b] = U(""), [f, v] = U(r);
22
- r !== f && (v(r), l(null));
23
- const D = async () => {
19
+ return fe(() => (a(), () => o(null)), [e, i, d]), r;
20
+ }, Di = (e, i, r, o = !1, d = !1) => {
21
+ const [a, l] = M(null), [s, C] = M(!1), [y, g] = M(!1), [u, h] = M(""), [m, x] = M(r);
22
+ r !== m && (x(r), l(null));
23
+ const P = async () => {
24
24
  try {
25
- const S = await i.miniGames.getMyPersonalityQuizParticipations({
25
+ const b = await i.miniGames.getMyPersonalityQuizParticipations({
26
26
  personalityQuizIds: [e]
27
27
  });
28
- l(S.data);
29
- } catch (S) {
30
- if (l([new $n()]), i.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
31
- const P = S;
32
- if (P.error.code === 401 || P.error.code === 403) {
33
- o || x(!0);
28
+ l(b.data);
29
+ } catch (b) {
30
+ if (l([new Hn()]), i.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
31
+ const q = b;
32
+ if (q.error.code === 401 || q.error.code === 403) {
33
+ o || C(!0);
34
34
  return;
35
35
  }
36
- m(!0), b(P.error.message || "");
36
+ g(!0), h(q.error.message || "");
37
37
  return;
38
38
  }
39
- const w = S;
40
- if (w.data.error.code === 401 || w.data.error.code === 403) {
41
- o || x(!0);
39
+ const p = b;
40
+ if (p.data.error.code === 401 || p.data.error.code === 403) {
41
+ o || C(!0);
42
42
  return;
43
43
  }
44
- m(!0), b(w.data.error.message || "");
44
+ g(!0), h(p.data.error.message || "");
45
45
  }
46
46
  };
47
- return me(() => (D(), () => l((S) => S === null ? null : [])), [e, i, r, o, c]), {
47
+ return fe(() => (P(), () => l((b) => b === null ? null : [])), [e, i, r, o, d]), {
48
48
  myParticipation: a,
49
49
  isUnauthorized: s,
50
50
  isApiError: y,
51
51
  apiMessage: u,
52
- setIsUnauthorized: x,
53
- setIsApiError: m,
54
- setApiMessage: b
52
+ setIsUnauthorized: C,
53
+ setIsApiError: g,
54
+ setApiMessage: h
55
55
  };
56
- }, Nt = {
56
+ }, mt = {
57
57
  borderRadius: "var(--fu-ucrc-radius-sm)",
58
58
  flex: 1,
59
59
  padding: "var(--fu-ucrc-space-xs)",
@@ -68,7 +68,7 @@ const Ai = (e, i) => {
68
68
  "--fu-ucrc-pq-option-text": "var(--fu-ucrc-pq-light-text)",
69
69
  "&:hover": { transform: "scale(1.02)" },
70
70
  "&:active": { transform: "scale(0.98)" }
71
- }, _t = {
71
+ }, Zt = {
72
72
  margin: 0,
73
73
  unicodeBidi: "plaintext",
74
74
  fontFamily: "var(--fu-ucrc-font-primary)",
@@ -78,70 +78,78 @@ const Ai = (e, i) => {
78
78
  textAlign: "center",
79
79
  color: "var(--fu-ucrc-pq-option-text)",
80
80
  paddingInline: "var(--fu-ucrc-space-2xs)"
81
- }, Le = {
82
- idle: n(Nt),
83
- selected: n(Nt, {
81
+ }, Ae = {
82
+ idle: n(mt),
83
+ selected: n(mt, {
84
84
  backgroundColor: "var(--fu-ucrc-pq-primary)",
85
85
  boxShadow: "inset 0 0 0 var(--fu-ucrc-border-size) var(--fu-ucrc-pq-primary)",
86
86
  "--fu-ucrc-pq-option-text": "var(--fu-ucrc-primary-on-primary)"
87
87
  }),
88
88
  media: n({ borderRadius: "var(--fu-ucrc-radius-xs)", overflow: "hidden", flexGrow: 1 }),
89
89
  img: n({ width: "100%", height: "100%", objectFit: "cover" }),
90
- mediaTitle: n({ ..._t, lineHeight: "24px" }),
91
- title: n({ ..._t, lineHeight: "16px", marginBlock: "auto" })
92
- }, Pi = (e) => {
90
+ mediaTitle: n({ ...Zt, lineHeight: "24px" }),
91
+ title: n({ ...Zt, lineHeight: "16px", marginBlock: "auto" }),
92
+ // Expired: the poll's locked option look, no press feedback.
93
+ locked: n(mt, {
94
+ cursor: "not-allowed",
95
+ opacity: 0.5,
96
+ "&:hover": { transform: "scale(1)" },
97
+ "&:active": { transform: "scale(1)" }
98
+ })
99
+ }, Ui = (e) => {
93
100
  var l;
94
- const i = ne(), r = re(), o = Ze(e.option.images), c = e.questionImage ? null : o, a = {
101
+ const i = te(), r = re(), o = Ke(e.option.images), d = e.questionImage ? null : o, a = {
95
102
  "--fu-ucrc-pq-primary": ((l = e.brandingColors) == null ? void 0 : l.primaryColor) || r.palette.primary.plainColor,
96
103
  // The card is white, so its text keeps the light scheme's colour in either mode.
97
104
  "--fu-ucrc-pq-light-text": i.colorSchemes.light.textColor
98
105
  };
99
- return /* @__PURE__ */ t(
106
+ return /* @__PURE__ */ t(tt, { expired: !!e.expired, wrap: !1, children: /* @__PURE__ */ t(
100
107
  "div",
101
108
  {
102
- css: e.selectedOption === e.option.optionId ? Le.selected : Le.idle,
109
+ css: e.expired ? Ae.locked : e.selectedOption === e.option.optionId ? Ae.selected : Ae.idle,
103
110
  style: a,
104
- onClick: () => e.answerQuestion(e.option.optionId),
105
- children: c ? /* @__PURE__ */ p(Re, { children: [
106
- /* @__PURE__ */ t("div", { css: Le.media, children: /* @__PURE__ */ t(et, { ratio: "16/9", radius: "var(--fu-ucrc-radius-xs)", children: /* @__PURE__ */ t("img", { src: c, alt: "Option illustration", css: Le.img }) }) }),
107
- /* @__PURE__ */ t("p", { css: Le.mediaTitle, children: e.option.option })
108
- ] }) : /* @__PURE__ */ t("p", { css: Le.title, children: e.option.option })
111
+ onClick: e.expired ? void 0 : () => e.answerQuestion(e.option.optionId),
112
+ children: d ? /* @__PURE__ */ w(Re, { children: [
113
+ /* @__PURE__ */ t("div", { css: Ae.media, children: /* @__PURE__ */ t(nt, { ratio: "16/9", radius: "var(--fu-ucrc-radius-xs)", children: /* @__PURE__ */ t("img", { src: d, alt: "Option illustration", css: Ae.img }) }) }),
114
+ /* @__PURE__ */ t("p", { css: Ae.mediaTitle, children: e.option.option })
115
+ ] }) : /* @__PURE__ */ t("p", { css: Ae.title, children: e.option.option })
109
116
  }
110
- );
111
- }, Yt = { display: "flex", flexDirection: "column", gap: "16px" }, De = {
112
- list: n({ ...Yt, paddingBlock: "16px" }),
117
+ ) });
118
+ }, Kt = { display: "flex", flexDirection: "column", gap: "16px" }, Ue = {
119
+ list: n({ ...Kt, paddingBlock: "16px" }),
113
120
  row: n({ display: "flex", flexDirection: "row", gap: "16px" }),
114
- column: n(Yt),
121
+ column: n(Kt),
115
122
  wrapRow: n({ display: "flex", flexWrap: "wrap", flexDirection: "row", gap: "16px", paddingBlock: "16px" }),
116
123
  wrapColumn: n({ display: "flex", flexWrap: "wrap", flexDirection: "column", gap: "16px", paddingBlock: "16px" })
117
- }, qi = (e) => {
124
+ }, Ri = (e) => {
118
125
  const i = [];
119
126
  for (let r = 0; r < e.length; r += 2) i.push(e.slice(r, r + 2));
120
127
  return i;
121
- }, Tt = (e) => {
122
- const i = ue("md"), r = (o) => /* @__PURE__ */ t(
123
- Pi,
128
+ }, Et = (e) => {
129
+ const i = ge("md"), r = (o) => /* @__PURE__ */ t(
130
+ Ui,
124
131
  {
125
132
  option: o,
126
133
  questionImage: e.questionImage,
127
134
  selectedOption: e.selectedOption,
128
135
  answerQuestion: e.answerQuestion,
129
- brandingColors: e.brandingColors
136
+ brandingColors: e.brandingColors,
137
+ expired: e.expired
130
138
  },
131
139
  o.optionId
132
140
  );
133
- return e.optionsLayout === "twoByTwo" ? /* @__PURE__ */ t("div", { css: De.list, children: qi(e.options).map((o, c) => /* @__PURE__ */ t("div", { css: i ? De.row : De.column, children: o.map(r) }, `row-${c}`)) }) : e.optionsLayout === "column" ? /* @__PURE__ */ t("div", { css: De.list, children: e.options.map(r) }) : /* @__PURE__ */ t("div", { css: i ? De.wrapRow : De.wrapColumn, children: e.options.map(r) });
141
+ return e.optionsLayout === "twoByTwo" ? /* @__PURE__ */ t("div", { css: Ue.list, children: Ri(e.options).map((o, d) => /* @__PURE__ */ t("div", { css: i ? Ue.row : Ue.column, children: o.map(r) }, `row-${d}`)) }) : e.optionsLayout === "column" ? /* @__PURE__ */ t("div", { css: Ue.list, children: e.options.map(r) }) : /* @__PURE__ */ t("div", { css: i ? Ue.wrapRow : Ue.wrapColumn, children: e.options.map(r) });
134
142
  }, Be = ({ isAfterPosition: e = !1, ...i }) => {
135
- const { t: r } = H();
143
+ const { t: r } = W();
136
144
  return /* @__PURE__ */ t(
137
- mi,
145
+ bi,
138
146
  {
139
147
  ...i,
140
148
  contentType: "personality-quiz",
141
149
  successCtaLabel: r(e ? "personalityQuiz.buttons.finish" : "personalityQuiz.buttons.start")
142
150
  }
143
151
  );
144
- }, Zt = {
152
+ }, Xt = {
145
153
  paddingBlock: "10px",
146
154
  paddingRight: "12px",
147
155
  paddingLeft: "16px",
@@ -154,10 +162,10 @@ const Ai = (e, i) => {
154
162
  "&:hover": { transform: "scale(1.02)" },
155
163
  "&:active": { transform: "scale(0.98)" },
156
164
  "&:disabled": { opacity: "34%" }
157
- }, Ge = {
158
- root: n(Ie, Zt),
165
+ }, Ne = {
166
+ root: n(Ce, Xt),
159
167
  // Joy's `ml: { md: "auto" }`.
160
- rootEnd: n(Ie, Zt, { marginLeft: "auto" }),
168
+ rootEnd: n(Ce, Xt, { marginLeft: "auto" }),
161
169
  label: n({
162
170
  margin: 0,
163
171
  fontFamily: "var(--fu-ucrc-font-primary)",
@@ -178,11 +186,11 @@ const Ai = (e, i) => {
178
186
  "--Icon-fontSize": "1em",
179
187
  "--Icon-color": "var(--fu-ucrc-primary-on-primary)"
180
188
  })
181
- }, Li = { "--Icon-margin": "0 -4px 0 0" }, Di = (e) => /* @__PURE__ */ p(
189
+ }, Ti = { "--Icon-margin": "0 -4px 0 0" }, Bi = (e) => /* @__PURE__ */ w(
182
190
  "button",
183
191
  {
184
192
  type: "button",
185
- css: e.pushToEnd ? Ge.rootEnd : Ge.root,
193
+ css: e.pushToEnd ? Ne.rootEnd : Ne.root,
186
194
  style: {
187
195
  "--fu-ucrc-pq-next": e.primaryColor,
188
196
  "--fu-ucrc-primary-on-primary": e.onPrimaryColor,
@@ -191,13 +199,13 @@ const Ai = (e, i) => {
191
199
  disabled: e.isLoading || e.disabled,
192
200
  onClick: e.onClick,
193
201
  children: [
194
- /* @__PURE__ */ t("p", { css: Ge.label, children: e.label }),
195
- /* @__PURE__ */ t("span", { css: Ge.decorator, style: Li, children: e.endDecorator }),
196
- e.isLoading && /* @__PURE__ */ t(En, { size: 20, thickness: 3 })
202
+ /* @__PURE__ */ t("p", { css: Ne.label, children: e.label }),
203
+ /* @__PURE__ */ t("span", { css: Ne.decorator, style: Ti, children: e.endDecorator }),
204
+ e.isLoading && /* @__PURE__ */ t(On, { size: 20, thickness: 3 })
197
205
  ]
198
206
  }
199
- ), Kt = { display: "flex", alignItems: "center", gap: g("md") }, Xt = { gap: "8px", alignItems: "flex-start", justifyContent: "center" }, Jt = {
200
- ...fe,
207
+ ), Jt = { display: "flex", alignItems: "center", gap: f("md") }, en = { gap: "8px", alignItems: "flex-start", justifyContent: "center" }, tn = {
208
+ ...ye,
201
209
  fontFamily: "var(--fu-ucrc-font-primary)",
202
210
  lineHeight: "150%",
203
211
  letterSpacing: "0.15px",
@@ -205,14 +213,16 @@ const Ai = (e, i) => {
205
213
  fontSize: "1.25em",
206
214
  textAlign: "center",
207
215
  color: "var(--fu-ucrc-pq-ovl-text)"
208
- }, xe = {
216
+ }, he = {
217
+ // OverlayNextButton's own pushToEnd, moved onto the expired tooltip's wrapper.
218
+ pushToEnd: n({ marginLeft: "auto" }),
209
219
  // A blurred panel over the artwork, tinted by the content background at half opacity.
210
220
  content: n({
211
221
  borderRadius: "var(--fu-ucrc-radius-sm)",
212
- padding: g("md"),
222
+ padding: f("md"),
213
223
  display: "flex",
214
224
  flexDirection: "column",
215
- gap: g("md"),
225
+ gap: f("md"),
216
226
  backdropFilter: "blur(4px)",
217
227
  position: "relative",
218
228
  "&::before": {
@@ -230,125 +240,126 @@ const Ai = (e, i) => {
230
240
  "& > *": { position: "relative", zIndex: 1 }
231
241
  }),
232
242
  imageBox: n({ borderRadius: "var(--fu-ucrc-radius-sm)", overflow: "hidden" }),
233
- question: n(Xt, { display: "flex" }),
234
- questionBlock: n(Xt, { display: "block" }),
235
- steps: n(Jt, { opacity: "70%" }),
236
- questionText: n(Jt, { unicodeBidi: "plaintext" }),
237
- footer: n(Kt, { justifyContent: "space-between", flexDirection: "row" }),
238
- footerMobile: n(Kt, { justifyContent: "center", flexDirection: "column-reverse" })
239
- }, Ri = { width: "100%", height: "100%", objectFit: "cover" }, Ti = (e) => {
240
- var O, k, I, R, z, A, L, N, d, q, M, $, ee, X, te, le, se, ge, ae, _;
241
- const [i, r] = Xe.useState(
242
- ((O = e.leads) == null ? void 0 : O.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
243
- ), { optionsLayout: o } = Ct(It), c = ne(), a = Ze(e.question.images), { t: l } = H(), s = Y(), x = St(), y = ue("md"), { brandingImage: m, brandingColors: u, brandingLogo: b } = He(
243
+ question: n(en, { display: "flex" }),
244
+ questionBlock: n(en, { display: "block" }),
245
+ steps: n(tn, { opacity: "70%" }),
246
+ questionText: n(tn, { unicodeBidi: "plaintext" }),
247
+ footer: n(Jt, { justifyContent: "space-between", flexDirection: "row" }),
248
+ footerMobile: n(Jt, { justifyContent: "center", flexDirection: "column-reverse" })
249
+ }, Ei = { width: "100%", height: "100%", objectFit: "cover" }, $i = (e) => {
250
+ var F, Q, S, D, z, A, L, $, c, U, R, E, V, J, Y, oe, se, ce, me, ae;
251
+ const [i, r] = Je.useState(
252
+ ((F = e.leads) == null ? void 0 : F.position) === "before" && e.personalityQuiz.authRequirement === "LEAD" && !e.expired
253
+ ), { optionsLayout: o } = zt(wt), d = te(), a = Ke(e.question.images), { t: l } = W(), s = Z(), C = kt(), y = ge("md"), { brandingImage: g, brandingColors: u, brandingLogo: h } = Oe(
244
254
  e.personalityQuiz.branding || null
245
- ), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? Se : ze, v = he(
246
- { images: e.personalityQuiz.images, imagePlaceholder: f },
247
- G.OVERLAY
248
- ), D = m || v, S = e.currentQuestion === e.personalityQuiz.questions.length && (((k = e.leads) == null ? void 0 : k.position) === "after" || e.hasAfterConsents) ? l("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? l("personalityQuiz.buttons.finish") : l("personalityQuiz.buttons.next"), Q = c.colorSchemes.dark, w = c.colorSchemes.light, P = (u == null ? void 0 : u.primaryColor) || w.palette.primary.plainColor, C = {
249
- "--fu-ucrc-pq-ovl-content-bg": (u == null ? void 0 : u.backgroundColor) || Q.surfaceVariant,
250
- "--fu-ucrc-pq-ovl-text": Q.textColor
251
- }, B = () => {
255
+ ), m = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? Ie : Se, x = be(
256
+ { images: e.personalityQuiz.images, imagePlaceholder: m },
257
+ _.OVERLAY
258
+ ), P = g || x, b = e.currentQuestion === e.personalityQuiz.questions.length && (((Q = e.leads) == null ? void 0 : Q.position) === "after" || e.hasAfterConsents) ? l("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? l("personalityQuiz.buttons.finish") : l("personalityQuiz.buttons.next"), k = d.colorSchemes.dark, p = d.colorSchemes.light, q = (u == null ? void 0 : u.primaryColor) || p.palette.primary.plainColor, v = {
259
+ "--fu-ucrc-pq-ovl-content-bg": (u == null ? void 0 : u.backgroundColor) || k.surfaceVariant,
260
+ "--fu-ucrc-pq-ovl-text": k.textColor
261
+ }, T = () => {
252
262
  r(!1);
253
263
  };
254
- return /* @__PURE__ */ p(
255
- fi,
264
+ return /* @__PURE__ */ w(
265
+ xi,
256
266
  {
257
267
  entity: e.personalityQuiz,
258
268
  headline: l("personalityQuiz.headline"),
259
- finalImage: D,
269
+ finalImage: P,
260
270
  rulesDisplay: e.rulesDisplay,
261
271
  children: [
262
- /* @__PURE__ */ t("div", { css: xe.content, style: C, children: e.applyConsentGate ? /* @__PURE__ */ t(
272
+ /* @__PURE__ */ t("div", { css: he.content, style: v, children: e.applyConsentGate ? /* @__PURE__ */ t(
263
273
  Te,
264
274
  {
265
275
  consents: e.consents,
266
- primaryColor: P,
267
- textColor: (u == null ? void 0 : u.contentColor) || Q.textColor,
268
- brandingUrls: (I = e.personalityQuiz.branding) == null ? void 0 : I.urls
276
+ primaryColor: q,
277
+ textColor: (u == null ? void 0 : u.contentColor) || k.textColor,
278
+ brandingUrls: (S = e.personalityQuiz.branding) == null ? void 0 : S.urls
269
279
  }
270
280
  ) : i ? /* @__PURE__ */ t(
271
281
  Be,
272
282
  {
273
283
  sdk: e.sdk,
274
- startGame: B,
284
+ startGame: T,
275
285
  contentId: e.personalityQuiz.id,
276
286
  contentName: e.personalityQuiz.title,
277
- brandingColors: (R = e.personalityQuiz.branding) == null ? void 0 : R.colors,
287
+ brandingColors: (D = e.personalityQuiz.branding) == null ? void 0 : D.colors,
278
288
  brandingUrls: (z = e.personalityQuiz.branding) == null ? void 0 : z.urls,
279
289
  campaignId: (A = e.leads) == null ? void 0 : A.campaignId,
280
290
  campaignName: (L = e.leads) == null ? void 0 : L.campaignName,
281
- fields: (N = e.leads) == null ? void 0 : N.fields,
282
- leadTitle: (d = e.personalityQuiz.labels) == null ? void 0 : d.leadTitle,
283
- leadDescription: (q = e.personalityQuiz.labels) == null ? void 0 : q.leadDescription,
284
- leadCta: (M = e.personalityQuiz.labels) == null ? void 0 : M.leadCta,
285
- leadSuccessTitle: ($ = e.personalityQuiz.labels) == null ? void 0 : $.leadSuccessTitle,
286
- leadSuccessDescription: (ee = e.personalityQuiz.labels) == null ? void 0 : ee.leadSuccessDescription,
291
+ fields: ($ = e.leads) == null ? void 0 : $.fields,
292
+ leadTitle: (c = e.personalityQuiz.labels) == null ? void 0 : c.leadTitle,
293
+ leadDescription: (U = e.personalityQuiz.labels) == null ? void 0 : U.leadDescription,
294
+ leadCta: (R = e.personalityQuiz.labels) == null ? void 0 : R.leadCta,
295
+ leadSuccessTitle: (E = e.personalityQuiz.labels) == null ? void 0 : E.leadSuccessTitle,
296
+ leadSuccessDescription: (V = e.personalityQuiz.labels) == null ? void 0 : V.leadSuccessDescription,
287
297
  consents: e.leadConsents
288
298
  }
289
- ) : /* @__PURE__ */ p(Re, { children: [
290
- a && /* @__PURE__ */ t(et, { ratio: "16/9", radius: "var(--fu-ucrc-radius-sm)", children: /* @__PURE__ */ t("div", { css: xe.imageBox, children: /* @__PURE__ */ t("img", { src: a, alt: "Question illustration", style: Ri }) }) }),
291
- /* @__PURE__ */ p("div", { css: x ? xe.questionBlock : xe.question, children: [
292
- /* @__PURE__ */ p("p", { css: xe.steps, children: [
299
+ ) : /* @__PURE__ */ w(Re, { children: [
300
+ a && /* @__PURE__ */ t(nt, { ratio: "16/9", radius: "var(--fu-ucrc-radius-sm)", children: /* @__PURE__ */ t("div", { css: he.imageBox, children: /* @__PURE__ */ t("img", { src: a, alt: "Question illustration", style: Ei }) }) }),
301
+ /* @__PURE__ */ w("div", { css: C ? he.questionBlock : he.question, children: [
302
+ /* @__PURE__ */ w("p", { css: he.steps, children: [
293
303
  e.currentQuestion,
294
304
  "/",
295
305
  e.personalityQuiz.questions.length
296
306
  ] }),
297
- /* @__PURE__ */ t("p", { css: xe.questionText, children: e.question.question })
307
+ /* @__PURE__ */ t("p", { css: he.questionText, children: e.question.question })
298
308
  ] }),
299
309
  /* @__PURE__ */ t(
300
- Tt,
310
+ Et,
301
311
  {
302
312
  options: e.question.options || [],
303
313
  answerQuestion: e.answerQuestion,
304
314
  selectedOption: e.selectedOption,
305
- optionsLayout: x ? "column" : o ?? "row",
315
+ optionsLayout: C ? "column" : o ?? "row",
306
316
  questionImage: a,
307
- brandingColors: u
317
+ brandingColors: u,
318
+ expired: e.expired
308
319
  }
309
320
  )
310
321
  ] }) }),
311
- /* @__PURE__ */ p("div", { css: s ? xe.footerMobile : xe.footer, children: [
322
+ /* @__PURE__ */ w("div", { css: s ? he.footerMobile : he.footer, children: [
312
323
  /* @__PURE__ */ t(
313
- V,
324
+ G,
314
325
  {
315
- brandingLogo: b,
316
- textColor: Q.textColor,
317
- label: ((X = e.personalityQuiz.labels) == null ? void 0 : X.sponsor) || null,
318
- primaryUrl: (le = (te = e.personalityQuiz.branding) == null ? void 0 : te.urls) == null ? void 0 : le.primaryUrl,
319
- secondaryUrl: (ge = (se = e.personalityQuiz.branding) == null ? void 0 : se.urls) == null ? void 0 : ge.secondaryUrl
326
+ brandingLogo: h,
327
+ textColor: k.textColor,
328
+ label: ((J = e.personalityQuiz.labels) == null ? void 0 : J.sponsor) || null,
329
+ primaryUrl: (oe = (Y = e.personalityQuiz.branding) == null ? void 0 : Y.urls) == null ? void 0 : oe.primaryUrl,
330
+ secondaryUrl: (ce = (se = e.personalityQuiz.branding) == null ? void 0 : se.urls) == null ? void 0 : ce.secondaryUrl
320
331
  }
321
332
  ),
322
333
  e.applyConsentGate ? /* @__PURE__ */ t(
323
- tt,
334
+ it,
324
335
  {
325
336
  onClick: e.startPlaying,
326
- label: ((_ = (ae = e.consents) == null ? void 0 : ae.labels) == null ? void 0 : _.ctaLabel) || l("personalityQuiz.buttons.start"),
337
+ label: ((ae = (me = e.consents) == null ? void 0 : me.labels) == null ? void 0 : ae.ctaLabel) || l("personalityQuiz.buttons.start"),
327
338
  isSubmitting: e.isSubmitting,
328
- primaryColor: P,
339
+ primaryColor: q,
329
340
  showArrow: !0
330
341
  }
331
- ) : !i && /* @__PURE__ */ t(
332
- Di,
342
+ ) : !i && /* @__PURE__ */ t(tt, { expired: !!e.expired, css: !s && y ? he.pushToEnd : void 0, children: /* @__PURE__ */ t(
343
+ Bi,
333
344
  {
334
- label: S,
335
- primaryColor: P,
336
- onPrimaryColor: w.palette.primary.onPrimary,
337
- radius: c.customRadius.light.xl,
345
+ label: b,
346
+ primaryColor: q,
347
+ onPrimaryColor: p.palette.primary.onPrimary,
348
+ radius: d.customRadius.light.xl,
338
349
  pushToEnd: !s && y,
339
- disabled: e.selectedOption === null,
350
+ disabled: !!e.expired || e.selectedOption === null,
340
351
  isLoading: e.isLoading,
341
352
  onClick: e.handleNext,
342
- endDecorator: /* @__PURE__ */ t(zt, { children: /* @__PURE__ */ t(Dt, {}) })
353
+ endDecorator: /* @__PURE__ */ t(Qt, { children: /* @__PURE__ */ t(Tt, {}) })
343
354
  }
344
- )
355
+ ) })
345
356
  ] })
346
357
  ]
347
358
  }
348
359
  );
349
- }, ut = {
350
- root: n(yi, { paddingBlock: "10px", paddingRight: "12px", paddingLeft: "16px" }),
351
- label: n(hi),
360
+ }, ft = {
361
+ root: n(pi, { paddingBlock: "10px", paddingRight: "12px", paddingLeft: "16px" }),
362
+ label: n(vi),
352
363
  // Joy's endDecorator: an 8px gap; icons sized and coloured like the label.
353
364
  decorator: n({
354
365
  display: "flex",
@@ -356,21 +367,21 @@ const Ai = (e, i) => {
356
367
  "--Icon-fontSize": "1em",
357
368
  "--Icon-color": "var(--fu-ucrc-primary-on-primary)"
358
369
  })
359
- }, Bi = { "--Icon-margin": "0 -4px 0 0" }, Wn = (e) => /* @__PURE__ */ p(
370
+ }, Mi = { "--Icon-margin": "0 -4px 0 0" }, Gn = (e) => /* @__PURE__ */ w(
360
371
  "button",
361
372
  {
362
373
  type: "button",
363
- css: ut.root,
374
+ css: ft.root,
364
375
  style: { "--fu-ucrc-cta-bg": e.buttonColor },
365
- disabled: e.isLoading || e.selectedOption === null,
376
+ disabled: e.disabled || e.isLoading || e.selectedOption === null,
366
377
  onClick: e.onClick,
367
378
  children: [
368
- /* @__PURE__ */ t("p", { css: ut.label, children: e.label }),
369
- e.endDecorator && /* @__PURE__ */ t("span", { css: ut.decorator, style: Bi, children: e.endDecorator }),
370
- e.isLoading && /* @__PURE__ */ t(En, { size: 20, thickness: 3 })
379
+ /* @__PURE__ */ t("p", { css: ft.label, children: e.label }),
380
+ e.endDecorator && /* @__PURE__ */ t("span", { css: ft.decorator, style: Mi, children: e.endDecorator }),
381
+ e.isLoading && /* @__PURE__ */ t(On, { size: 20, thickness: 3 })
371
382
  ]
372
383
  }
373
- ), en = {
384
+ ), nn = {
374
385
  root: n({ display: "flex", justifyContent: "center", gap: "8px", paddingBlock: "var(--fu-ucrc-space-xs)" }),
375
386
  step: n({
376
387
  maxWidth: "82.67px",
@@ -381,19 +392,19 @@ const Ai = (e, i) => {
381
392
  borderStyle: "solid",
382
393
  transition: "background-color 0.3s ease"
383
394
  })
384
- }, Ui = (e) => {
385
- const i = ne(), r = i.colorSchemes.light, o = (c) => {
386
- const a = c + 1;
395
+ }, Fi = (e) => {
396
+ const i = te(), r = i.colorSchemes.light, o = (d) => {
397
+ const a = d + 1;
387
398
  return a < e.currentQuestion ? [r.palette.success.plainColor, r.palette.success.outlinedBorder] : a === e.currentQuestion ? [
388
399
  e.brandingPrimaryColor || r.palette.primary.plainColor,
389
400
  e.brandingPrimaryColor || r.palette.primary.outlinedBorder
390
401
  ] : [r.secondaryContainer, r.outlineEnabledBorder];
391
402
  };
392
- return /* @__PURE__ */ t("div", { css: en.root, style: { "--fu-ucrc-pq-step-radius": i.customRadius.light.full }, children: Array.from({ length: e.personalityQuiz.questions.length }, (c, a) => {
403
+ return /* @__PURE__ */ t("div", { css: nn.root, style: { "--fu-ucrc-pq-step-radius": i.customRadius.light.full }, children: Array.from({ length: e.personalityQuiz.questions.length }, (d, a) => {
393
404
  const [l, s] = o(a);
394
- return /* @__PURE__ */ t("div", { css: en.step, style: { backgroundColor: l, borderColor: s } }, `step-${a + 1}`);
405
+ return /* @__PURE__ */ t("div", { css: nn.step, style: { backgroundColor: l, borderColor: s } }, `step-${a + 1}`);
395
406
  }) });
396
- }, tn = {
407
+ }, an = {
397
408
  display: "flex",
398
409
  width: "100%",
399
410
  borderRadius: "var(--fu-ucrc-radius-md)",
@@ -401,35 +412,35 @@ const Ai = (e, i) => {
401
412
  overflow: "hidden",
402
413
  background: "var(--fu-ucrc-surface)",
403
414
  minHeight: "250px"
404
- }, nn = {
405
- row: n({ ...tn, flexDirection: "row" }),
406
- column: n({ ...tn, flexDirection: "column" })
407
- }, K = ({ children: e, brandingBorderColor: i }) => {
408
- const r = Y();
415
+ }, rn = {
416
+ row: n({ ...an, flexDirection: "row" }),
417
+ column: n({ ...an, flexDirection: "column" })
418
+ }, X = ({ children: e, brandingBorderColor: i }) => {
419
+ const r = Z();
409
420
  return /* @__PURE__ */ t(
410
421
  "div",
411
422
  {
412
- css: r ? nn.column : nn.row,
423
+ css: r ? rn.column : rn.row,
413
424
  style: i ? { "--fu-ucrc-pq-card-border": i } : void 0,
414
425
  children: e
415
426
  }
416
427
  );
417
- }, Ee = { display: "flex", flexDirection: "column" }, Ne = {
428
+ }, Fe = { display: "flex", flexDirection: "column" }, _e = {
418
429
  display: "flex",
419
430
  alignItems: "center",
420
- gap: g("lg")
421
- }, E = {
422
- pagination: n({ ...Ee, gap: g("md"), paddingInline: g("md") }),
423
- area: n({ ...Ee, padding: g("md") }),
424
- question: n({ ...Ee, gap: g("md") }),
425
- questionNarrow: n({ ...Ee, gap: g("lg") }),
431
+ gap: f("lg")
432
+ }, H = {
433
+ pagination: n({ ...Fe, gap: f("md"), paddingInline: f("md") }),
434
+ area: n({ ...Fe, padding: f("md") }),
435
+ question: n({ ...Fe, gap: f("md") }),
436
+ questionNarrow: n({ ...Fe, gap: f("lg") }),
426
437
  content: n({
427
- ...Ee,
438
+ ...Fe,
428
439
  borderRadius: "var(--fu-ucrc-radius-md)",
429
- paddingInline: g("md"),
430
- paddingTop: g("md"),
431
- paddingBottom: g("lg"),
432
- gap: g("md"),
440
+ paddingInline: f("md"),
441
+ paddingTop: f("md"),
442
+ paddingBottom: f("lg"),
443
+ gap: f("md"),
433
444
  backgroundColor: "var(--fu-ucrc-pq-content-bg)",
434
445
  backdropFilter: "blur(4px)"
435
446
  }),
@@ -439,7 +450,7 @@ const Ai = (e, i) => {
439
450
  }),
440
451
  textRow: n({ gap: "8px", display: "flex", justifyContent: "center" }),
441
452
  text: n({
442
- ...fe,
453
+ ...ye,
443
454
  unicodeBidi: "plaintext",
444
455
  fontFamily: "var(--fu-ucrc-font-primary)",
445
456
  lineHeight: "150%",
@@ -449,185 +460,187 @@ const Ai = (e, i) => {
449
460
  textAlign: "center",
450
461
  color: "var(--fu-ucrc-pq-text)"
451
462
  }),
452
- footer: n({ ...Ne, justifyContent: "space-between" }),
453
- footerEnd: n({ ...Ne, justifyContent: "flex-end" }),
463
+ footer: n({ ..._e, justifyContent: "space-between" }),
464
+ footerEnd: n({ ..._e, justifyContent: "flex-end" }),
454
465
  footerColumn: n({
455
- ...Ne,
466
+ ..._e,
456
467
  flexDirection: "column",
457
468
  justifyContent: "space-between"
458
469
  }),
459
470
  footerColumnEnd: n({
460
- ...Ne,
471
+ ..._e,
461
472
  flexDirection: "column",
462
473
  justifyContent: "flex-end"
463
474
  }),
464
475
  navigation: n({
465
476
  display: "flex",
466
- gap: g("md"),
477
+ gap: f("md"),
467
478
  justifyContent: "center",
468
479
  alignItems: "center"
469
480
  })
470
- }, Mi = {
481
+ }, Hi = {
471
482
  width: "100%",
472
483
  height: "100%",
473
484
  objectFit: "cover"
474
- }, $i = (e) => {
475
- var R, z, A, L, N, d;
476
- const [i, r] = Xe.useState(
477
- ((R = e.leads) == null ? void 0 : R.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
478
- ), { optionsLayout: o } = Ct(It), c = Ze(e.question.images), { t: a } = H(), l = Y(), s = ii(), x = ue("md"), y = re(), m = ((z = e.personalityQuiz.branding) == null ? void 0 : z.colors) || null, u = l ? ((A = e.personalityQuiz.branding) == null ? void 0 : A.images.mobileLogo) || ((L = e.personalityQuiz.branding) == null ? void 0 : L.images.mainLogo) || "" : ((N = e.personalityQuiz.branding) == null ? void 0 : N.images.mainLogo) || "", b = e.imagePosition || "left", f = he(
485
+ }, Oi = (e) => {
486
+ var D, z, A, L, $, c;
487
+ const [i, r] = Je.useState(
488
+ ((D = e.leads) == null ? void 0 : D.position) === "before" && e.personalityQuiz.authRequirement === "LEAD" && !e.expired
489
+ ), { optionsLayout: o } = zt(wt), d = Ke(e.question.images), { t: a } = W(), l = Z(), s = oi(), C = ge("md"), y = re(), g = ((z = e.personalityQuiz.branding) == null ? void 0 : z.colors) || null, u = l ? ((A = e.personalityQuiz.branding) == null ? void 0 : A.images.mobileLogo) || ((L = e.personalityQuiz.branding) == null ? void 0 : L.images.mainLogo) || "" : (($ = e.personalityQuiz.branding) == null ? void 0 : $.images.mainLogo) || "", h = e.imagePosition || "left", m = be(
479
490
  {
480
491
  images: e.personalityQuiz.images,
481
492
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
482
493
  },
483
- G.STANDARD
484
- ), v = e.currentQuestion === e.personalityQuiz.questions.length && (((d = e.leads) == null ? void 0 : d.position) === "after" || e.hasAfterConsents) ? a("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? a("personalityQuiz.buttons.finish") : a("personalityQuiz.buttons.next"), D = s || l && !!f, S = (m == null ? void 0 : m.contentColor) || y.textColor, Q = Oe(
485
- (m == null ? void 0 : m.backgroundColor) || y.surfaceVariant || ""
486
- ), w = (m == null ? void 0 : m.primaryColor) || y.palette.primary.plainColor, P = {
487
- "--fu-ucrc-pq-text": S,
488
- "--fu-ucrc-pq-content-bg": `rgba(${Q ? Q.replace(/[^\d,]/g, "") : ""}, 0.5)`
489
- }, C = () => {
494
+ _.STANDARD
495
+ ), x = e.currentQuestion === e.personalityQuiz.questions.length && (((c = e.leads) == null ? void 0 : c.position) === "after" || e.hasAfterConsents) ? a("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? a("personalityQuiz.buttons.finish") : a("personalityQuiz.buttons.next"), P = s || l && !!m, b = (g == null ? void 0 : g.contentColor) || y.textColor, k = We(
496
+ (g == null ? void 0 : g.backgroundColor) || y.surfaceVariant || ""
497
+ ), p = (g == null ? void 0 : g.primaryColor) || y.palette.primary.plainColor, q = {
498
+ "--fu-ucrc-pq-text": b,
499
+ "--fu-ucrc-pq-content-bg": `rgba(${k ? k.replace(/[^\d,]/g, "") : ""}, 0.5)`
500
+ }, v = () => {
490
501
  r(!1);
491
- }, B = (q) => {
492
- var M, $, ee, X, te;
502
+ }, T = (U) => {
503
+ var R, E, V, J, Y;
493
504
  return /* @__PURE__ */ t(
494
- V,
505
+ G,
495
506
  {
496
507
  brandingLogo: u,
497
- textColor: q,
498
- label: ((M = e.personalityQuiz.labels) == null ? void 0 : M.sponsor) || null,
499
- primaryUrl: (ee = ($ = e.personalityQuiz.branding) == null ? void 0 : $.urls) == null ? void 0 : ee.primaryUrl,
500
- secondaryUrl: (te = (X = e.personalityQuiz.branding) == null ? void 0 : X.urls) == null ? void 0 : te.secondaryUrl
508
+ textColor: U,
509
+ label: ((R = e.personalityQuiz.labels) == null ? void 0 : R.sponsor) || null,
510
+ primaryUrl: (V = (E = e.personalityQuiz.branding) == null ? void 0 : E.urls) == null ? void 0 : V.primaryUrl,
511
+ secondaryUrl: (Y = (J = e.personalityQuiz.branding) == null ? void 0 : J.urls) == null ? void 0 : Y.secondaryUrl
501
512
  }
502
513
  );
503
- }, O = () => {
504
- var q, M, $;
505
- return /* @__PURE__ */ t("div", { css: E.area, style: P, children: /* @__PURE__ */ p("div", { css: x ? E.question : E.questionNarrow, children: [
506
- /* @__PURE__ */ t("div", { css: E.content, children: /* @__PURE__ */ t(
514
+ }, F = () => {
515
+ var U, R, E;
516
+ return /* @__PURE__ */ t("div", { css: H.area, style: q, children: /* @__PURE__ */ w("div", { css: C ? H.question : H.questionNarrow, children: [
517
+ /* @__PURE__ */ t("div", { css: H.content, children: /* @__PURE__ */ t(
507
518
  Te,
508
519
  {
509
520
  consents: e.consents,
510
- primaryColor: w,
511
- textColor: S,
512
- brandingUrls: (q = e.personalityQuiz.branding) == null ? void 0 : q.urls,
521
+ primaryColor: p,
522
+ textColor: b,
523
+ brandingUrls: (U = e.personalityQuiz.branding) == null ? void 0 : U.urls,
513
524
  align: "center"
514
525
  }
515
526
  ) }),
516
- /* @__PURE__ */ p(
527
+ /* @__PURE__ */ w(
517
528
  "div",
518
529
  {
519
- css: D ? u ? E.footerColumn : E.footerColumnEnd : u ? E.footer : E.footerEnd,
530
+ css: P ? u ? H.footerColumn : H.footerColumnEnd : u ? H.footer : H.footerEnd,
520
531
  children: [
521
- u && !D && B(S),
522
- /* @__PURE__ */ t("div", { css: E.navigation, children: /* @__PURE__ */ t(
523
- tt,
532
+ u && !P && T(b),
533
+ /* @__PURE__ */ t("div", { css: H.navigation, children: /* @__PURE__ */ t(
534
+ it,
524
535
  {
525
536
  onClick: e.startPlaying,
526
- label: (($ = (M = e.consents) == null ? void 0 : M.labels) == null ? void 0 : $.ctaLabel) || a("personalityQuiz.buttons.start"),
537
+ label: ((E = (R = e.consents) == null ? void 0 : R.labels) == null ? void 0 : E.ctaLabel) || a("personalityQuiz.buttons.start"),
527
538
  isSubmitting: e.isSubmitting,
528
- primaryColor: w,
539
+ primaryColor: p,
529
540
  showArrow: !0
530
541
  }
531
542
  ) })
532
543
  ]
533
544
  }
534
545
  ),
535
- u && D && B(S)
546
+ u && P && T(b)
536
547
  ] }) });
537
- }, k = () => {
538
- var q, M, $, ee, X, te, le, se, ge, ae, _;
539
- return /* @__PURE__ */ t("div", { css: E.area, style: P, children: /* @__PURE__ */ p("div", { css: x ? E.question : E.questionNarrow, children: [
540
- /* @__PURE__ */ t("div", { css: E.content, children: /* @__PURE__ */ t(
548
+ }, Q = () => {
549
+ var U, R, E, V, J, Y, oe, se, ce, me, ae;
550
+ return /* @__PURE__ */ t("div", { css: H.area, style: q, children: /* @__PURE__ */ w("div", { css: C ? H.question : H.questionNarrow, children: [
551
+ /* @__PURE__ */ t("div", { css: H.content, children: /* @__PURE__ */ t(
541
552
  Be,
542
553
  {
543
554
  sdk: e.sdk,
544
- startGame: C,
555
+ startGame: v,
545
556
  contentId: e.personalityQuiz.id,
546
557
  contentName: e.personalityQuiz.title,
547
- brandingColors: (q = e.personalityQuiz.branding) == null ? void 0 : q.colors,
548
- brandingUrls: (M = e.personalityQuiz.branding) == null ? void 0 : M.urls,
549
- campaignId: ($ = e.leads) == null ? void 0 : $.campaignId,
550
- campaignName: (ee = e.leads) == null ? void 0 : ee.campaignName,
551
- fields: (X = e.leads) == null ? void 0 : X.fields,
552
- leadTitle: (te = e.personalityQuiz.labels) == null ? void 0 : te.leadTitle,
553
- leadDescription: (le = e.personalityQuiz.labels) == null ? void 0 : le.leadDescription,
558
+ brandingColors: (U = e.personalityQuiz.branding) == null ? void 0 : U.colors,
559
+ brandingUrls: (R = e.personalityQuiz.branding) == null ? void 0 : R.urls,
560
+ campaignId: (E = e.leads) == null ? void 0 : E.campaignId,
561
+ campaignName: (V = e.leads) == null ? void 0 : V.campaignName,
562
+ fields: (J = e.leads) == null ? void 0 : J.fields,
563
+ leadTitle: (Y = e.personalityQuiz.labels) == null ? void 0 : Y.leadTitle,
564
+ leadDescription: (oe = e.personalityQuiz.labels) == null ? void 0 : oe.leadDescription,
554
565
  leadCta: (se = e.personalityQuiz.labels) == null ? void 0 : se.leadCta,
555
- leadSuccessTitle: (ge = e.personalityQuiz.labels) == null ? void 0 : ge.leadSuccessTitle,
556
- leadSuccessDescription: (ae = e.personalityQuiz.labels) == null ? void 0 : ae.leadSuccessDescription,
557
- syncWithProfile: (_ = e.leads) == null ? void 0 : _.syncWithProfile,
566
+ leadSuccessTitle: (ce = e.personalityQuiz.labels) == null ? void 0 : ce.leadSuccessTitle,
567
+ leadSuccessDescription: (me = e.personalityQuiz.labels) == null ? void 0 : me.leadSuccessDescription,
568
+ syncWithProfile: (ae = e.leads) == null ? void 0 : ae.syncWithProfile,
558
569
  consents: e.leadConsents
559
570
  }
560
571
  ) }),
561
- B(S)
572
+ T(b)
562
573
  ] }) });
563
- }, I = () => /* @__PURE__ */ p(Re, { children: [
564
- /* @__PURE__ */ t("div", { css: E.pagination, children: /* @__PURE__ */ t(
565
- Ui,
574
+ }, S = () => /* @__PURE__ */ w(Re, { children: [
575
+ /* @__PURE__ */ t("div", { css: H.pagination, children: /* @__PURE__ */ t(
576
+ Fi,
566
577
  {
567
578
  personalityQuiz: e.personalityQuiz,
568
579
  currentQuestion: e.currentQuestion,
569
580
  userParticipation: e.userParticipation,
570
- brandingPrimaryColor: m == null ? void 0 : m.primaryColor
581
+ brandingPrimaryColor: g == null ? void 0 : g.primaryColor
571
582
  }
572
583
  ) }),
573
- /* @__PURE__ */ t("div", { css: E.area, style: P, children: /* @__PURE__ */ p("div", { css: x ? E.question : E.questionNarrow, children: [
574
- /* @__PURE__ */ p("div", { css: E.content, children: [
575
- c && /* @__PURE__ */ t(et, { ratio: "16/9", radius: "var(--fu-ucrc-radius-sm)", children: /* @__PURE__ */ t("div", { css: E.imageBox, children: /* @__PURE__ */ t(
584
+ /* @__PURE__ */ t("div", { css: H.area, style: q, children: /* @__PURE__ */ w("div", { css: C ? H.question : H.questionNarrow, children: [
585
+ /* @__PURE__ */ w("div", { css: H.content, children: [
586
+ d && /* @__PURE__ */ t(nt, { ratio: "16/9", radius: "var(--fu-ucrc-radius-sm)", children: /* @__PURE__ */ t("div", { css: H.imageBox, children: /* @__PURE__ */ t(
576
587
  "img",
577
588
  {
578
- src: c,
589
+ src: d,
579
590
  alt: "Question illustration",
580
- style: Mi
591
+ style: Hi
581
592
  }
582
593
  ) }) }),
583
- /* @__PURE__ */ t("div", { css: E.textRow, children: /* @__PURE__ */ t("p", { css: E.text, children: e.question.question }) }),
594
+ /* @__PURE__ */ t("div", { css: H.textRow, children: /* @__PURE__ */ t("p", { css: H.text, children: e.question.question }) }),
584
595
  /* @__PURE__ */ t(
585
- Tt,
596
+ Et,
586
597
  {
587
598
  options: e.question.options || [],
588
599
  answerQuestion: e.answerQuestion,
589
600
  selectedOption: e.selectedOption,
590
601
  optionsLayout: o ?? "twoByTwo",
591
- questionImage: c,
592
- brandingColors: m
602
+ questionImage: d,
603
+ brandingColors: g,
604
+ expired: e.expired
593
605
  }
594
606
  )
595
607
  ] }),
596
- /* @__PURE__ */ p(
608
+ /* @__PURE__ */ w(
597
609
  "div",
598
610
  {
599
- css: D ? u ? E.footerColumn : E.footerColumnEnd : u ? E.footer : E.footerEnd,
611
+ css: P ? u ? H.footerColumn : H.footerColumnEnd : u ? H.footer : H.footerEnd,
600
612
  children: [
601
- u && !D && B(S),
602
- /* @__PURE__ */ t("div", { css: E.navigation, children: /* @__PURE__ */ t(
603
- Wn,
613
+ u && !P && T(b),
614
+ /* @__PURE__ */ t("div", { css: H.navigation, children: /* @__PURE__ */ t(tt, { expired: !!e.expired, children: /* @__PURE__ */ t(
615
+ Gn,
604
616
  {
605
617
  selectedOption: e.selectedOption,
606
- endDecorator: /* @__PURE__ */ t(zt, { children: /* @__PURE__ */ t(Dt, {}) }),
607
- label: v,
608
- buttonColor: w,
618
+ endDecorator: /* @__PURE__ */ t(Qt, { children: /* @__PURE__ */ t(Tt, {}) }),
619
+ label: x,
620
+ buttonColor: p,
609
621
  onClick: e.handleNext,
610
- isLoading: e.isLoading
622
+ isLoading: e.isLoading,
623
+ disabled: e.expired
611
624
  }
612
- ) })
625
+ ) }) })
613
626
  ]
614
627
  }
615
628
  ),
616
- u && D && B(S)
629
+ u && P && T(b)
617
630
  ] }) })
618
631
  ] });
619
- return /* @__PURE__ */ t(K, { brandingBorderColor: (m == null ? void 0 : m.borderColor) || null, children: /* @__PURE__ */ t(
620
- bi,
632
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (g == null ? void 0 : g.borderColor) || null, children: /* @__PURE__ */ t(
633
+ Ci,
621
634
  {
622
635
  entity: e.personalityQuiz,
623
636
  headline: a("personalityQuiz.headline"),
624
- finalImage: f,
625
- imagePosition: b,
637
+ finalImage: m,
638
+ imagePosition: h,
626
639
  rulesDisplay: e.rulesDisplay,
627
- children: e.applyConsentGate ? O() : i ? k() : I()
640
+ children: e.applyConsentGate ? F() : i ? Q() : S()
628
641
  }
629
642
  ) });
630
- }, ft = "var(--fu-ucrc-radius-sm)", an = {
643
+ }, bt = "var(--fu-ucrc-radius-sm)", on = {
631
644
  margin: 0,
632
645
  fontFamily: "var(--fu-ucrc-font-primary)",
633
646
  lineHeight: "150%",
@@ -635,150 +648,152 @@ const Ai = (e, i) => {
635
648
  fontWeight: 500,
636
649
  fontSize: "1.25em",
637
650
  textAlign: "center"
638
- }, ce = {
651
+ }, de = {
639
652
  questionArea: n({ width: "100%", justifyContent: "center", display: "flex", flexDirection: "column" }),
640
653
  questionAreaContent: n({
641
- padding: g("md"),
654
+ padding: f("md"),
642
655
  display: "flex",
643
656
  flexDirection: "column",
644
657
  justifyContent: "center",
645
- gap: g("md")
658
+ gap: f("md")
646
659
  }),
647
660
  // Translucent panel over the card, from the branding background: `--fu-ucrc-pq-split-bg`.
648
661
  panel: n({
649
- padding: g("md"),
650
- gap: g("md"),
662
+ padding: f("md"),
663
+ gap: f("md"),
651
664
  display: "flex",
652
665
  flexDirection: "column",
653
666
  backdropFilter: "blur(4px)",
654
667
  backgroundColor: "var(--fu-ucrc-pq-split-bg)",
655
- borderRadius: ft
668
+ borderRadius: bt
656
669
  }),
657
670
  // Joy's `height: auto` lost to the AspectRatio's child rule.
658
- questionImage: n({ borderRadius: ft, overflow: "hidden" }),
659
- questionSection: n({ gap: g("2xs"), display: "flex", flexDirection: "column", justifyContent: "center" }),
660
- questionSteps: n(an, { color: "var(--fu-ucrc-pq-split-secondary)", opacity: "60%" }),
661
- questionText: n(an, { unicodeBidi: "plaintext", color: "var(--fu-ucrc-text-color)" }),
662
- buttonFooter: n({ display: "flex", flexDirection: "column", gap: g("lg") }),
663
- presentedBy: n({ marginBottom: g("lg"), paddingInline: g("lg") })
664
- }, Ei = { width: "100%", height: "100%", objectFit: "cover" }, Fi = (e) => {
665
- var k, I, R, z, A, L, N, d, q, M, $, ee, X, te, le, se, ge, ae, _;
666
- const [i, r] = Xe.useState(
667
- ((k = e.leads) == null ? void 0 : k.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
668
- ), { optionsLayout: o } = Ct(It), c = ne(), a = re(), l = Y(), s = St(), x = ue("md"), y = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Se : ze, m = he(
671
+ questionImage: n({ borderRadius: bt, overflow: "hidden" }),
672
+ questionSection: n({ gap: f("2xs"), display: "flex", flexDirection: "column", justifyContent: "center" }),
673
+ questionSteps: n(on, { color: "var(--fu-ucrc-pq-split-secondary)", opacity: "60%" }),
674
+ questionText: n(on, { unicodeBidi: "plaintext", color: "var(--fu-ucrc-text-color)" }),
675
+ buttonFooter: n({ display: "flex", flexDirection: "column", gap: f("lg") }),
676
+ presentedBy: n({ marginBottom: f("lg"), paddingInline: f("lg") })
677
+ }, Wi = { width: "100%", height: "100%", objectFit: "cover" }, Vi = (e) => {
678
+ var Q, S, D, z, A, L, $, c, U, R, E, V, J, Y, oe, se, ce, me, ae;
679
+ const [i, r] = Je.useState(
680
+ ((Q = e.leads) == null ? void 0 : Q.position) === "before" && e.personalityQuiz.authRequirement === "LEAD" && !e.expired
681
+ ), { optionsLayout: o } = zt(wt), d = te(), a = re(), l = Z(), s = kt(), C = ge("md"), y = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ie : Se, g = be(
669
682
  {
670
683
  images: e.personalityQuiz.images,
671
684
  imagePlaceholder: y
672
685
  },
673
- G.SPLIT
674
- ), u = Ze(e.question.images), { t: b } = H(), f = ((I = e.personalityQuiz.branding) == null ? void 0 : I.colors) || null, v = l ? ((R = e.personalityQuiz.branding) == null ? void 0 : R.images.mobileLogo) || ((z = e.personalityQuiz.branding) == null ? void 0 : z.images.mainLogo) || "" : ((A = e.personalityQuiz.branding) == null ? void 0 : A.images.mainLogo) || "", D = e.currentQuestion === e.personalityQuiz.questions.length && (((L = e.leads) == null ? void 0 : L.position) === "after" || e.hasAfterConsents) ? b("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? b("personalityQuiz.buttons.finish") : b("personalityQuiz.buttons.next"), S = a.textColor, Q = (f == null ? void 0 : f.primaryColor) || ((d = (N = a.palette) == null ? void 0 : N.primary) == null ? void 0 : d.plainColor), w = Oe((f == null ? void 0 : f.backgroundColor) || a.surfaceVariant || ""), P = {
675
- "--fu-ucrc-pq-split-secondary": (f == null ? void 0 : f.contentColor) || S,
676
- "--fu-ucrc-pq-split-bg": `rgba(${w ? w.replace(/[^\d,]/g, "") : ""}, 0.5)`
677
- }, C = () => {
686
+ _.SPLIT
687
+ ), u = Ke(e.question.images), { t: h } = W(), m = ((S = e.personalityQuiz.branding) == null ? void 0 : S.colors) || null, x = l ? ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mobileLogo) || ((z = e.personalityQuiz.branding) == null ? void 0 : z.images.mainLogo) || "" : ((A = e.personalityQuiz.branding) == null ? void 0 : A.images.mainLogo) || "", P = e.currentQuestion === e.personalityQuiz.questions.length && (((L = e.leads) == null ? void 0 : L.position) === "after" || e.hasAfterConsents) ? h("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? h("personalityQuiz.buttons.finish") : h("personalityQuiz.buttons.next"), b = a.textColor, k = (m == null ? void 0 : m.primaryColor) || ((c = ($ = a.palette) == null ? void 0 : $.primary) == null ? void 0 : c.plainColor), p = We((m == null ? void 0 : m.backgroundColor) || a.surfaceVariant || ""), q = {
688
+ "--fu-ucrc-pq-split-secondary": (m == null ? void 0 : m.contentColor) || b,
689
+ "--fu-ucrc-pq-split-bg": `rgba(${p ? p.replace(/[^\d,]/g, "") : ""}, 0.5)`
690
+ }, v = () => {
678
691
  r(!1);
679
- }, B = (be) => {
680
- var Pe, Ue, we, nt, ye;
692
+ }, T = (ne) => {
693
+ var Pe, qe, Ee, ze, at;
681
694
  return /* @__PURE__ */ t(
682
- V,
695
+ G,
683
696
  {
684
- brandingLogo: v,
685
- textColor: be,
697
+ brandingLogo: x,
698
+ textColor: ne,
686
699
  label: ((Pe = e.personalityQuiz.labels) == null ? void 0 : Pe.sponsor) || null,
687
- primaryUrl: (we = (Ue = e.personalityQuiz.branding) == null ? void 0 : Ue.urls) == null ? void 0 : we.primaryUrl,
688
- secondaryUrl: (ye = (nt = e.personalityQuiz.branding) == null ? void 0 : nt.urls) == null ? void 0 : ye.secondaryUrl
700
+ primaryUrl: (Ee = (qe = e.personalityQuiz.branding) == null ? void 0 : qe.urls) == null ? void 0 : Ee.primaryUrl,
701
+ secondaryUrl: (at = (ze = e.personalityQuiz.branding) == null ? void 0 : ze.urls) == null ? void 0 : at.secondaryUrl
689
702
  }
690
703
  );
691
- }, O = () => {
692
- var be;
693
- return /* @__PURE__ */ t("div", { css: ce.panel, children: /* @__PURE__ */ t(
704
+ }, F = () => {
705
+ var ne;
706
+ return /* @__PURE__ */ t("div", { css: de.panel, children: /* @__PURE__ */ t(
694
707
  Te,
695
708
  {
696
709
  consents: e.consents,
697
- primaryColor: Q,
698
- textColor: S,
699
- brandingUrls: (be = e.personalityQuiz.branding) == null ? void 0 : be.urls,
710
+ primaryColor: k,
711
+ textColor: b,
712
+ brandingUrls: (ne = e.personalityQuiz.branding) == null ? void 0 : ne.urls,
700
713
  onSubmit: e.startPlaying,
701
714
  isSubmitting: e.isSubmitting,
702
- ctaLabel: b("personalityQuiz.buttons.start"),
715
+ ctaLabel: h("personalityQuiz.buttons.start"),
703
716
  align: "center",
704
717
  showArrow: !0
705
718
  }
706
719
  ) });
707
720
  };
708
- return /* @__PURE__ */ p(K, { brandingBorderColor: (f == null ? void 0 : f.borderColor) || null, children: [
721
+ return /* @__PURE__ */ w(X, { brandingBorderColor: (m == null ? void 0 : m.borderColor) || null, children: [
709
722
  /* @__PURE__ */ t(
710
- pi,
723
+ Ii,
711
724
  {
712
725
  entity: e.personalityQuiz,
713
- headline: b("personalityQuiz.headline"),
714
- finalImage: m,
715
- brandingLogo: v,
716
- renderPresentedBy: B,
726
+ headline: h("personalityQuiz.headline"),
727
+ finalImage: g,
728
+ brandingLogo: x,
729
+ renderPresentedBy: T,
717
730
  rulesDisplay: e.rulesDisplay,
718
- children: /* @__PURE__ */ t("div", { css: ce.questionArea, style: P, children: /* @__PURE__ */ p("div", { css: ce.questionAreaContent, children: [
719
- e.applyConsentGate ? O() : i ? /* @__PURE__ */ t("div", { css: ce.panel, children: /* @__PURE__ */ t(
731
+ children: /* @__PURE__ */ t("div", { css: de.questionArea, style: q, children: /* @__PURE__ */ w("div", { css: de.questionAreaContent, children: [
732
+ e.applyConsentGate ? F() : i ? /* @__PURE__ */ t("div", { css: de.panel, children: /* @__PURE__ */ t(
720
733
  Be,
721
734
  {
722
735
  sdk: e.sdk,
723
- startGame: C,
736
+ startGame: v,
724
737
  contentId: e.personalityQuiz.id,
725
738
  contentName: e.personalityQuiz.title,
726
- brandingColors: (q = e.personalityQuiz.branding) == null ? void 0 : q.colors,
727
- brandingUrls: (M = e.personalityQuiz.branding) == null ? void 0 : M.urls,
728
- campaignId: ($ = e.leads) == null ? void 0 : $.campaignId,
729
- campaignName: (ee = e.leads) == null ? void 0 : ee.campaignName,
730
- fields: (X = e.leads) == null ? void 0 : X.fields,
731
- leadTitle: (te = e.personalityQuiz.labels) == null ? void 0 : te.leadTitle,
732
- leadDescription: (le = e.personalityQuiz.labels) == null ? void 0 : le.leadDescription,
739
+ brandingColors: (U = e.personalityQuiz.branding) == null ? void 0 : U.colors,
740
+ brandingUrls: (R = e.personalityQuiz.branding) == null ? void 0 : R.urls,
741
+ campaignId: (E = e.leads) == null ? void 0 : E.campaignId,
742
+ campaignName: (V = e.leads) == null ? void 0 : V.campaignName,
743
+ fields: (J = e.leads) == null ? void 0 : J.fields,
744
+ leadTitle: (Y = e.personalityQuiz.labels) == null ? void 0 : Y.leadTitle,
745
+ leadDescription: (oe = e.personalityQuiz.labels) == null ? void 0 : oe.leadDescription,
733
746
  leadCta: (se = e.personalityQuiz.labels) == null ? void 0 : se.leadCta,
734
- leadSuccessTitle: (ge = e.personalityQuiz.labels) == null ? void 0 : ge.leadSuccessTitle,
735
- leadSuccessDescription: (ae = e.personalityQuiz.labels) == null ? void 0 : ae.leadSuccessDescription,
736
- syncWithProfile: (_ = e.leads) == null ? void 0 : _.syncWithProfile,
747
+ leadSuccessTitle: (ce = e.personalityQuiz.labels) == null ? void 0 : ce.leadSuccessTitle,
748
+ leadSuccessDescription: (me = e.personalityQuiz.labels) == null ? void 0 : me.leadSuccessDescription,
749
+ syncWithProfile: (ae = e.leads) == null ? void 0 : ae.syncWithProfile,
737
750
  consents: e.leadConsents
738
751
  }
739
- ) }) : /* @__PURE__ */ p("div", { css: ce.panel, children: [
740
- u && /* @__PURE__ */ t(et, { ratio: "16/9", radius: ft, children: /* @__PURE__ */ t("div", { css: ce.questionImage, children: /* @__PURE__ */ t("img", { src: u, alt: "Question illustration", style: Ei }) }) }),
741
- /* @__PURE__ */ p("div", { css: ce.questionSection, children: [
742
- /* @__PURE__ */ p("p", { css: ce.questionSteps, children: [
752
+ ) }) : /* @__PURE__ */ w("div", { css: de.panel, children: [
753
+ u && /* @__PURE__ */ t(nt, { ratio: "16/9", radius: bt, children: /* @__PURE__ */ t("div", { css: de.questionImage, children: /* @__PURE__ */ t("img", { src: u, alt: "Question illustration", style: Wi }) }) }),
754
+ /* @__PURE__ */ w("div", { css: de.questionSection, children: [
755
+ /* @__PURE__ */ w("p", { css: de.questionSteps, children: [
743
756
  e.currentQuestion,
744
757
  "/",
745
758
  e.personalityQuiz.questions.length
746
759
  ] }),
747
- /* @__PURE__ */ t("p", { css: ce.questionText, children: e.question.question })
760
+ /* @__PURE__ */ t("p", { css: de.questionText, children: e.question.question })
748
761
  ] }),
749
762
  /* @__PURE__ */ t(
750
- Tt,
763
+ Et,
751
764
  {
752
765
  options: e.question.options || [],
753
766
  answerQuestion: e.answerQuestion,
754
767
  selectedOption: e.selectedOption,
755
768
  optionsLayout: s ? "column" : o ?? "twoByTwo",
756
769
  questionImage: u,
757
- brandingColors: f
770
+ brandingColors: m,
771
+ expired: e.expired
758
772
  }
759
773
  ),
760
- /* @__PURE__ */ p("div", { css: ce.buttonFooter, children: [
761
- /* @__PURE__ */ t(
762
- Wn,
774
+ /* @__PURE__ */ w("div", { css: de.buttonFooter, children: [
775
+ /* @__PURE__ */ t(tt, { expired: !!e.expired, children: /* @__PURE__ */ t(
776
+ Gn,
763
777
  {
764
778
  selectedOption: e.selectedOption,
765
- endDecorator: /* @__PURE__ */ t(zt, { children: /* @__PURE__ */ t(Dt, {}) }),
766
- label: D,
767
- buttonColor: Q,
779
+ endDecorator: /* @__PURE__ */ t(Qt, { children: /* @__PURE__ */ t(Tt, {}) }),
780
+ label: P,
781
+ buttonColor: k,
768
782
  onClick: e.handleNext,
769
- isLoading: e.isLoading
783
+ isLoading: e.isLoading,
784
+ disabled: e.expired
770
785
  }
771
- ),
772
- v && !s && !x && /* @__PURE__ */ t("div", { children: B((f == null ? void 0 : f.contentColor) || S) })
786
+ ) }),
787
+ x && !s && !C && /* @__PURE__ */ t("div", { children: T((m == null ? void 0 : m.contentColor) || b) })
773
788
  ] })
774
789
  ] }),
775
- i && v && l ? B((f == null ? void 0 : f.contentColor) || c.colorSchemes.dark.textColor) : null
790
+ i && x && l ? T((m == null ? void 0 : m.contentColor) || d.colorSchemes.dark.textColor) : null
776
791
  ] }) })
777
792
  }
778
793
  ),
779
- v && s && /* @__PURE__ */ t("div", { css: ce.presentedBy, children: B((f == null ? void 0 : f.contentColor) || c.colorSchemes.dark.textColor) })
794
+ x && s && /* @__PURE__ */ t("div", { css: de.presentedBy, children: T((m == null ? void 0 : m.contentColor) || d.colorSchemes.dark.textColor) })
780
795
  ] });
781
- }, Hi = "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", Oi = "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", Wi = "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", rn = {
796
+ }, ji = "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", Gi = "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", Ni = "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", ln = {
782
797
  position: "relative",
783
798
  boxSizing: "border-box",
784
799
  display: "flex",
@@ -803,16 +818,16 @@ const Ai = (e, i) => {
803
818
  opacity: "60%",
804
819
  WebkitTapHighlightColor: "transparent",
805
820
  "&:focus-visible": { outline: "2px solid var(--fu-ucrc-focus-visible)", outlineOffset: "2px" }
806
- }, on = (e) => ({
807
- off: n(rn, { "&:hover": { backgroundColor: e } }),
808
- on: n(rn, {
821
+ }, sn = (e) => ({
822
+ off: n(ln, { "&:hover": { backgroundColor: e } }),
823
+ on: n(ln, {
809
824
  backgroundColor: e,
810
825
  borderBottom: "3px solid var(--fu-ucrc-pq-ssw-primary)",
811
826
  opacity: "100%",
812
827
  marginBottom: "-1px",
813
828
  zIndex: 1
814
829
  })
815
- }), ln = { margin: 0, alignSelf: "stretch", fontStyle: "normal" }, yt = { display: "flex", width: "24px", height: "24px", justifyContent: "center", alignItems: "center" }, sn = { ...yt, width: "20px", height: "20px" }, cn = { filter: "brightness(0) invert(1)" }, dn = {
830
+ }), cn = { margin: 0, alignSelf: "stretch", fontStyle: "normal" }, xt = { display: "flex", width: "24px", height: "24px", justifyContent: "center", alignItems: "center" }, dn = { ...xt, width: "20px", height: "20px" }, un = { filter: "brightness(0) invert(1)" }, gn = {
816
831
  position: "relative",
817
832
  zIndex: 1,
818
833
  boxSizing: "border-box",
@@ -822,7 +837,7 @@ const Ai = (e, i) => {
822
837
  // Joy's divider: the neutral channel at 20% (16% in dark mode).
823
838
  boxShadow: "inset 0 -1px rgba(var(--fu-ucrc-neutral-main-channel) / 0.2)",
824
839
  ".dark &": { boxShadow: "inset 0 -1px rgba(var(--fu-ucrc-neutral-main-channel) / 0.16)" }
825
- }, gt = { flexGrow: 1, fontSize: "1em", padding: 0 }, un = { flexGrow: 1, overflowY: "auto", fontSize: "1em", padding: "16px" }, W = {
840
+ }, yt = { flexGrow: 1, fontSize: "1em", padding: 0 }, mn = { flexGrow: 1, overflowY: "auto", fontSize: "1em", padding: "16px" }, j = {
826
841
  root: n({ width: "100%" }),
827
842
  // Joy's Tabs: it set the body font, 1.5 line height and neutral colour the panels inherit.
828
843
  tabs: n({
@@ -837,9 +852,9 @@ const Ai = (e, i) => {
837
852
  lineHeight: 1.5,
838
853
  color: "var(--fu-ucrc-neutral-plain-color)"
839
854
  }),
840
- list: n(dn, { flexDirection: "row" }),
841
- listMobile: n(dn, { flexDirection: "column" }),
842
- tab: { plain: on("#2121210A"), overlay: on("#FAFAFA14") },
855
+ list: n(gn, { flexDirection: "row" }),
856
+ listMobile: n(gn, { flexDirection: "column" }),
857
+ tab: { plain: sn("#2121210A"), overlay: sn("#FAFAFA14") },
843
858
  // Full width plus padding, so it overflows the tab's padding and is centred over it.
844
859
  tabContent: n({
845
860
  display: "flex",
@@ -850,8 +865,8 @@ const Ai = (e, i) => {
850
865
  gap: "8px",
851
866
  width: "100%"
852
867
  }),
853
- tabIcon: n(yt),
854
- tabIconInverted: n(yt, cn),
868
+ tabIcon: n(xt),
869
+ tabIconInverted: n(xt, un),
855
870
  tabLabel: n({
856
871
  margin: 0,
857
872
  color: "var(--fu-ucrc-text-secondary)",
@@ -864,12 +879,12 @@ const Ai = (e, i) => {
864
879
  textTransform: "uppercase"
865
880
  }),
866
881
  results: {
867
- column: n(gt, { display: "flex", flexDirection: "column" }),
868
- row: n(gt, { display: "flex", flexDirection: "row" }),
869
- block: n(gt)
882
+ column: n(yt, { display: "flex", flexDirection: "column" }),
883
+ row: n(yt, { display: "flex", flexDirection: "row" }),
884
+ block: n(yt)
870
885
  },
871
- answersPanel: n(un),
872
- answersPanelMd: n(un, { maxHeight: "450px" }),
886
+ answersPanel: n(mn),
887
+ answersPanelMd: n(mn, { maxHeight: "450px" }),
873
888
  answers: n({
874
889
  display: "flex",
875
890
  flexDirection: "column",
@@ -905,7 +920,7 @@ const Ai = (e, i) => {
905
920
  }),
906
921
  single: n({ display: "flex", flexDirection: "column", alignItems: "flex-start", gap: "12px", alignSelf: "stretch" }),
907
922
  question: n({ display: "flex", flexDirection: "column", alignItems: "flex-start", alignSelf: "stretch" }),
908
- questionNumber: n(ln, {
923
+ questionNumber: n(cn, {
909
924
  color: "var(--fu-ucrc-text-secondary)",
910
925
  fontFamily: "var(--fu-ucrc-font-secondary)",
911
926
  fontSize: "0.75em",
@@ -914,7 +929,7 @@ const Ai = (e, i) => {
914
929
  letterSpacing: "1px",
915
930
  textTransform: "uppercase"
916
931
  }),
917
- questionText: n(ln, {
932
+ questionText: n(cn, {
918
933
  unicodeBidi: "plaintext",
919
934
  color: "var(--fu-ucrc-text-primary)",
920
935
  fontFamily: "var(--fu-ucrc-font-primary)",
@@ -944,8 +959,8 @@ const Ai = (e, i) => {
944
959
  alignItems: "flex-start",
945
960
  alignSelf: "stretch"
946
961
  }),
947
- explanationIcon: n(sn),
948
- explanationIconInverted: n(sn, cn),
962
+ explanationIcon: n(dn),
963
+ explanationIconInverted: n(dn, un),
949
964
  explanationText: n({
950
965
  margin: 0,
951
966
  unicodeBidi: "plaintext",
@@ -958,87 +973,87 @@ const Ai = (e, i) => {
958
973
  lineHeight: "143%",
959
974
  letterSpacing: "0.17px"
960
975
  })
961
- }, Bt = ({
976
+ }, $t = ({
962
977
  questions: e,
963
978
  userParticipation: i,
964
979
  resultsLayout: r,
965
980
  isOverlayVariant: o,
966
- children: c,
981
+ children: d,
967
982
  brandingColors: a
968
983
  }) => {
969
- const [l, s] = U(0), [x, y] = U(0), m = Ce([]), u = Je(), b = Ke(), f = ne(), { t: v } = H(), D = Y(), S = ue("md"), Q = o || f.mode == "dark", w = o ? "overlay" : "plain", P = {
984
+ const [l, s] = M(0), [C, y] = M(0), g = ve([]), u = et(), h = Xe(), m = te(), { t: x } = W(), P = Z(), b = ge("md"), k = o || m.mode == "dark", p = o ? "overlay" : "plain", q = {
970
985
  "--fu-ucrc-pq-ssw-primary": (a == null ? void 0 : a.primaryColor) || "var(--fu-ucrc-text-primary)",
971
986
  // Kept as it was: any branding background picks the dark scheme's surface.
972
- "--fu-ucrc-pq-ssw-content-bg": a != null && a.backgroundColor || o ? f.colorSchemes.dark.surfaceVariant : "var(--fu-ucrc-surface-variant)"
973
- }, C = [
974
- { icon: Oi, label: v("classicQuiz.results") },
975
- { icon: Hi, label: v("classicQuiz.answers") }
976
- ], B = (z) => {
987
+ "--fu-ucrc-pq-ssw-content-bg": a != null && a.backgroundColor || o ? m.colorSchemes.dark.surfaceVariant : "var(--fu-ucrc-surface-variant)"
988
+ }, v = [
989
+ { icon: Gi, label: x("classicQuiz.results") },
990
+ { icon: ji, label: x("classicQuiz.answers") }
991
+ ], T = (z) => {
977
992
  var L;
978
- const A = (z + C.length) % C.length;
979
- y(A), (L = m.current[A]) == null || L.focus();
980
- }, O = (z) => {
981
- const A = b ? "ArrowLeft" : "ArrowRight", L = b ? "ArrowRight" : "ArrowLeft", N = { [A]: x + 1, [L]: x - 1, Home: 0, End: C.length - 1 }[z.key];
982
- N !== void 0 && (z.preventDefault(), B(N));
983
- }, k = (z) => {
993
+ const A = (z + v.length) % v.length;
994
+ y(A), (L = g.current[A]) == null || L.focus();
995
+ }, F = (z) => {
996
+ const A = h ? "ArrowLeft" : "ArrowRight", L = h ? "ArrowRight" : "ArrowLeft", $ = { [A]: C + 1, [L]: C - 1, Home: 0, End: v.length - 1 }[z.key];
997
+ $ !== void 0 && (z.preventDefault(), T($));
998
+ }, Q = (z) => {
984
999
  var A;
985
- s(z), y(z), (A = m.current[z]) == null || A.focus();
986
- }, I = r === "responsive" ? S ? "row" : "column" : r, R = (z, A) => {
987
- var d;
988
- const L = e.find((q) => q.questionId === z.questionId), N = (d = L == null ? void 0 : L.options.find((q) => q.optionId === z.optionId)) == null ? void 0 : d.option;
989
- return /* @__PURE__ */ t("div", { css: W.answer, children: /* @__PURE__ */ p("div", { css: W.single, children: [
990
- /* @__PURE__ */ p("div", { css: W.question, children: [
991
- /* @__PURE__ */ p("p", { css: W.questionNumber, children: [
992
- v("classicQuiz.question"),
1000
+ s(z), y(z), (A = g.current[z]) == null || A.focus();
1001
+ }, S = r === "responsive" ? b ? "row" : "column" : r, D = (z, A) => {
1002
+ var c;
1003
+ const L = e.find((U) => U.questionId === z.questionId), $ = (c = L == null ? void 0 : L.options.find((U) => U.optionId === z.optionId)) == null ? void 0 : c.option;
1004
+ return /* @__PURE__ */ t("div", { css: j.answer, children: /* @__PURE__ */ w("div", { css: j.single, children: [
1005
+ /* @__PURE__ */ w("div", { css: j.question, children: [
1006
+ /* @__PURE__ */ w("p", { css: j.questionNumber, children: [
1007
+ x("classicQuiz.question"),
993
1008
  " ",
994
1009
  A + 1
995
1010
  ] }),
996
- /* @__PURE__ */ t("p", { css: W.questionText, children: L == null ? void 0 : L.question })
1011
+ /* @__PURE__ */ t("p", { css: j.questionText, children: L == null ? void 0 : L.question })
997
1012
  ] }),
998
- /* @__PURE__ */ t("div", { css: W.outcome, children: /* @__PURE__ */ p("p", { css: W.yourAnswer, children: [
999
- v("classicQuiz.yourAnswer"),
1013
+ /* @__PURE__ */ t("div", { css: j.outcome, children: /* @__PURE__ */ w("p", { css: j.yourAnswer, children: [
1014
+ x("classicQuiz.yourAnswer"),
1000
1015
  " ",
1001
- N && ai(N)
1016
+ $ && li($)
1002
1017
  ] }) }),
1003
- (L == null ? void 0 : L.explanation) && /* @__PURE__ */ p("div", { css: W.explanation, children: [
1018
+ (L == null ? void 0 : L.explanation) && /* @__PURE__ */ w("div", { css: j.explanation, children: [
1004
1019
  /* @__PURE__ */ t(
1005
1020
  "img",
1006
1021
  {
1007
- src: Wi,
1022
+ src: Ni,
1008
1023
  alt: "explanation-icon",
1009
- css: o ? W.explanationIconInverted : W.explanationIcon
1024
+ css: o ? j.explanationIconInverted : j.explanationIcon
1010
1025
  }
1011
1026
  ),
1012
- /* @__PURE__ */ t("p", { css: W.explanationText, children: ri(L.explanation) })
1027
+ /* @__PURE__ */ t("p", { css: j.explanationText, children: si(L.explanation) })
1013
1028
  ] })
1014
1029
  ] }) }, `user-answer-${z.questionId}`);
1015
1030
  };
1016
- return /* @__PURE__ */ t("div", { css: W.root, style: P, children: /* @__PURE__ */ p("div", { css: W.tabs, children: [
1031
+ return /* @__PURE__ */ t("div", { css: j.root, style: q, children: /* @__PURE__ */ w("div", { css: j.tabs, children: [
1017
1032
  /* @__PURE__ */ t(
1018
1033
  "div",
1019
1034
  {
1020
1035
  role: "tablist",
1021
1036
  "aria-orientation": "horizontal",
1022
- css: D ? W.listMobile : W.list,
1023
- onKeyDown: O,
1024
- children: C.map((z, A) => /* @__PURE__ */ t(
1037
+ css: P ? j.listMobile : j.list,
1038
+ onKeyDown: F,
1039
+ children: v.map((z, A) => /* @__PURE__ */ t(
1025
1040
  "button",
1026
1041
  {
1027
1042
  ref: (L) => {
1028
- m.current[A] = L;
1043
+ g.current[A] = L;
1029
1044
  },
1030
1045
  type: "button",
1031
1046
  role: "tab",
1032
1047
  id: `${u}-tab-${A}`,
1033
1048
  "aria-selected": A === l,
1034
1049
  "aria-controls": A === l ? `${u}-panel` : void 0,
1035
- tabIndex: A === x ? 0 : -1,
1036
- css: W.tab[w][A === l ? "on" : "off"],
1037
- onClick: () => k(A),
1050
+ tabIndex: A === C ? 0 : -1,
1051
+ css: j.tab[p][A === l ? "on" : "off"],
1052
+ onClick: () => Q(A),
1038
1053
  onFocus: () => y(A),
1039
- children: /* @__PURE__ */ p("div", { css: W.tabContent, children: [
1040
- /* @__PURE__ */ t("img", { src: z.icon, alt: "answers-icon", css: Q ? W.tabIconInverted : W.tabIcon }),
1041
- /* @__PURE__ */ t("p", { css: W.tabLabel, children: z.label })
1054
+ children: /* @__PURE__ */ w("div", { css: j.tabContent, children: [
1055
+ /* @__PURE__ */ t("img", { src: z.icon, alt: "answers-icon", css: k ? j.tabIconInverted : j.tabIcon }),
1056
+ /* @__PURE__ */ t("p", { css: j.tabLabel, children: z.label })
1042
1057
  ] })
1043
1058
  },
1044
1059
  A
@@ -1051,27 +1066,27 @@ const Ai = (e, i) => {
1051
1066
  role: "tabpanel",
1052
1067
  id: `${u}-panel`,
1053
1068
  "aria-labelledby": `${u}-tab-${l}`,
1054
- css: l === 0 ? W.results[I] : S ? W.answersPanelMd : W.answersPanel,
1055
- children: l === 0 ? c : /* @__PURE__ */ t("div", { css: W.answers, children: i.map((z, A) => R(z, A)) })
1069
+ css: l === 0 ? j.results[S] : b ? j.answersPanelMd : j.answersPanel,
1070
+ children: l === 0 ? d : /* @__PURE__ */ t("div", { css: j.answers, children: i.map((z, A) => D(z, A)) })
1056
1071
  }
1057
1072
  )
1058
1073
  ] }) });
1059
- }, Ut = (e, i) => !i.personas || !e.personaResults ? [] : i.personas.map((o) => {
1060
- const c = e.personaResults.find(
1074
+ }, Mt = (e, i) => !i.personas || !e.personaResults ? [] : i.personas.map((o) => {
1075
+ const d = e.personaResults.find(
1061
1076
  (a) => a.personaId === o.personaId
1062
1077
  );
1063
- return c ? {
1064
- ...c,
1078
+ return d ? {
1079
+ ...d,
1065
1080
  percent: o.percent
1066
1081
  } : null;
1067
1082
  }).filter(
1068
1083
  (o) => o !== null && o.percent > 0
1069
- ).sort((o, c) => c.percent - o.percent), ht = "var(--fu-ucrc-pq-rt-primary)", Vn = "var(--fu-ucrc-pq-rt-surface)", gn = {
1084
+ ).sort((o, d) => d.percent - o.percent), pt = "var(--fu-ucrc-pq-rt-primary)", Nn = "var(--fu-ucrc-pq-rt-surface)", fn = {
1070
1085
  fontFamily: "var(--fu-ucrc-font-body)",
1071
1086
  fontSize: "1em",
1072
1087
  lineHeight: 1.5,
1073
1088
  color: "var(--fu-ucrc-neutral-plain-color)"
1074
- }, jn = {
1089
+ }, _n = {
1075
1090
  position: "relative",
1076
1091
  boxSizing: "border-box",
1077
1092
  display: "flex",
@@ -1084,8 +1099,8 @@ const Ai = (e, i) => {
1084
1099
  minWidth: 0,
1085
1100
  minHeight: "auto",
1086
1101
  margin: 0,
1087
- paddingBlock: g("sm"),
1088
- paddingInline: g("md"),
1102
+ paddingBlock: f("sm"),
1103
+ paddingInline: f("md"),
1089
1104
  border: "none",
1090
1105
  borderBottom: "2px solid transparent",
1091
1106
  borderRadius: 0,
@@ -1102,37 +1117,37 @@ const Ai = (e, i) => {
1102
1117
  WebkitTapHighlightColor: "transparent",
1103
1118
  "&:focus-visible": { outline: "2px solid var(--fu-ucrc-focus-visible)", outlineOffset: "2px", zIndex: 1 },
1104
1119
  "&:hover": { backgroundColor: "var(--fu-ucrc-surface-variant)", borderBottom: "2px solid var(--fu-ucrc-pq-rt-primary-25)" }
1105
- }, mn = {
1120
+ }, yn = {
1106
1121
  borderTopLeftRadius: "var(--fu-ucrc-radius-md)",
1107
1122
  borderTopRightRadius: "var(--fu-ucrc-pq-rt-first-end-radius)"
1108
- }, fn = n(jn, { "&:hover": { color: "var(--fu-ucrc-neutral-plain-hover-color)" } }), yn = n(jn, {
1123
+ }, hn = n(_n, { "&:hover": { color: "var(--fu-ucrc-neutral-plain-hover-color)" } }), bn = n(_n, {
1109
1124
  zIndex: 1,
1110
1125
  backgroundColor: "var(--fu-ucrc-surface-variant)",
1111
- borderBottom: `2px solid ${ht}`,
1112
- "&:hover": { borderBottom: `2px solid ${ht}` }
1113
- }), hn = {
1114
- backgroundColor: Vn,
1126
+ borderBottom: `2px solid ${pt}`,
1127
+ "&:hover": { borderBottom: `2px solid ${pt}` }
1128
+ }), xn = {
1129
+ backgroundColor: Nn,
1115
1130
  borderBottomLeftRadius: "var(--fu-ucrc-radius-md)",
1116
1131
  borderBottomRightRadius: "var(--fu-ucrc-radius-md)",
1117
1132
  backdropFilter: "blur(4px)",
1118
1133
  border: "1px solid rgba(255, 255, 255, 0.1)",
1119
1134
  borderTop: "none",
1120
1135
  minHeight: "200px"
1121
- }, bn = { display: "flex", gap: g("lg") }, pn = {
1136
+ }, pn = { display: "flex", gap: f("lg") }, vn = {
1122
1137
  width: "100%",
1123
1138
  borderRadius: "var(--fu-ucrc-radius-md)",
1124
1139
  backgroundSize: "cover",
1125
1140
  backgroundPosition: "center",
1126
1141
  backgroundRepeat: "no-repeat",
1127
1142
  border: "1px solid rgba(255, 255, 255, 0.1)"
1128
- }, xn = {
1143
+ }, Cn = {
1129
1144
  backgroundSize: "cover",
1130
1145
  backgroundPosition: "center",
1131
1146
  backgroundRepeat: "no-repeat",
1132
1147
  borderRadius: "var(--fu-ucrc-radius-xs)",
1133
1148
  border: "1px solid rgba(0, 0, 0, 0.2)",
1134
1149
  flexShrink: 0
1135
- }, F = {
1150
+ }, O = {
1136
1151
  wrapper: n({
1137
1152
  display: "flex",
1138
1153
  flexDirection: "column",
@@ -1141,15 +1156,15 @@ const Ai = (e, i) => {
1141
1156
  alignSelf: "stretch",
1142
1157
  width: "100%"
1143
1158
  }),
1144
- container: n({ padding: g("md"), marginTop: g("md") }),
1159
+ container: n({ padding: f("md"), marginTop: f("md") }),
1145
1160
  // Joy's Tabs: the body font and neutral colour the panels inherit.
1146
1161
  tabs: n({
1147
- ...gn,
1162
+ ...fn,
1148
1163
  position: "relative",
1149
1164
  display: "flex",
1150
1165
  flexDirection: "column",
1151
1166
  width: "100%",
1152
- backgroundColor: Vn,
1167
+ backgroundColor: Nn,
1153
1168
  borderRadius: "var(--fu-ucrc-radius-md)",
1154
1169
  // Keeps the tab underline and the selected tab indicator from overshooting the rounded corners
1155
1170
  overflow: "hidden"
@@ -1174,22 +1189,22 @@ const Ai = (e, i) => {
1174
1189
  ".dark &": { boxShadow: "inset 0 -1px rgba(var(--fu-ucrc-neutral-main-channel) / 0.16)" }
1175
1190
  }),
1176
1191
  tab: {
1177
- off: fn,
1178
- on: yn,
1179
- firstOff: n(fn, { "&:hover": mn }),
1180
- firstOn: n(yn, mn)
1192
+ off: hn,
1193
+ on: bn,
1194
+ firstOff: n(hn, { "&:hover": yn }),
1195
+ firstOn: n(bn, yn)
1181
1196
  },
1182
1197
  labelRow: n({
1183
1198
  display: "flex",
1184
1199
  justifyContent: "space-between",
1185
1200
  alignItems: "center",
1186
1201
  width: "100%",
1187
- gap: g("sm")
1202
+ gap: f("sm")
1188
1203
  }),
1189
- logo: n(xn, { width: "24px", height: "24px" }),
1190
- logoMobile: n(xn, { width: "20px", height: "20px" }),
1204
+ logo: n(Cn, { width: "24px", height: "24px" }),
1205
+ logoMobile: n(Cn, { width: "20px", height: "20px" }),
1191
1206
  label: n({
1192
- ...fe,
1207
+ ...ye,
1193
1208
  fontSize: "inherit",
1194
1209
  fontWeight: "inherit",
1195
1210
  fontFamily: "var(--fu-ucrc-font-secondary)",
@@ -1200,10 +1215,10 @@ const Ai = (e, i) => {
1200
1215
  }),
1201
1216
  percentage: n({
1202
1217
  margin: 0,
1203
- backgroundColor: ht,
1218
+ backgroundColor: pt,
1204
1219
  color: "var(--fu-ucrc-pq-rt-on-primary)",
1205
- paddingInline: g("xs"),
1206
- paddingBlock: g("3xs"),
1220
+ paddingInline: f("xs"),
1221
+ paddingBlock: f("3xs"),
1207
1222
  borderRadius: "var(--fu-ucrc-radius-sm)",
1208
1223
  fontSize: "0.75em",
1209
1224
  fontWeight: 600,
@@ -1211,16 +1226,16 @@ const Ai = (e, i) => {
1211
1226
  minWidth: "auto",
1212
1227
  lineHeight: 1.2
1213
1228
  }),
1214
- panel: n({ ...gn, flexGrow: 1, padding: 0 }),
1229
+ panel: n({ ...fn, flexGrow: 1, padding: 0 }),
1215
1230
  // Square top, no top border: the panel butts against the tab list underline.
1216
- content: n(hn, { padding: g("lg") }),
1217
- contentMobile: n(hn, { padding: g("md") }),
1218
- withImageRow: n(bn, { flexDirection: "row", alignItems: "flex-start" }),
1219
- withImageColumn: n(bn, { flexDirection: "column", alignItems: "center" }),
1231
+ content: n(xn, { padding: f("lg") }),
1232
+ contentMobile: n(xn, { padding: f("md") }),
1233
+ withImageRow: n(pn, { flexDirection: "row", alignItems: "flex-start" }),
1234
+ withImageColumn: n(pn, { flexDirection: "column", alignItems: "center" }),
1220
1235
  imageSection: n({ flexShrink: 0, width: "200px", maxWidth: "300px" }),
1221
1236
  imageSectionFull: n({ flexShrink: 0, width: "100%", maxWidth: "300px" }),
1222
- personaImage: n(pn, { height: "200px" }),
1223
- personaImageShort: n(pn, { height: "150px" }),
1237
+ personaImage: n(vn, { height: "200px" }),
1238
+ personaImageShort: n(vn, { height: "150px" }),
1224
1239
  descriptionSection: n({ flex: 1, minWidth: 0 }),
1225
1240
  descriptionOnly: n({ display: "flex", justifyContent: "center", alignItems: "center", minHeight: "150px" }),
1226
1241
  description: n({
@@ -1230,91 +1245,91 @@ const Ai = (e, i) => {
1230
1245
  fontSize: "0.95em",
1231
1246
  opacity: 0.9
1232
1247
  })
1233
- }, Vi = ({ personas: e }) => {
1234
- const [i, r] = U(0), [o, c] = U(0), a = Ce([]), l = Je(), s = Ke(), x = ne(), y = re(), m = Y(), u = ue("sm"), b = ue("md");
1248
+ }, _i = ({ personas: e }) => {
1249
+ const [i, r] = M(0), [o, d] = M(0), a = ve([]), l = et(), s = Xe(), C = te(), y = re(), g = Z(), u = ge("sm"), h = ge("md");
1235
1250
  if (!e || e.length === 0)
1236
1251
  return null;
1237
- const f = y.palette.primary.plainColor, v = {
1238
- "--fu-ucrc-pq-rt-primary": f,
1239
- "--fu-ucrc-pq-rt-primary-25": `${f}40`,
1240
- "--fu-ucrc-pq-rt-surface": `rgba(${Oe(y.surfaceVariant || "")}, 0.5)`,
1252
+ const m = y.palette.primary.plainColor, x = {
1253
+ "--fu-ucrc-pq-rt-primary": m,
1254
+ "--fu-ucrc-pq-rt-primary-25": `${m}40`,
1255
+ "--fu-ucrc-pq-rt-surface": `rgba(${We(y.surfaceVariant || "")}, 0.5)`,
1241
1256
  // Joy read the light scheme's on-primary here, in both modes.
1242
- "--fu-ucrc-pq-rt-on-primary": x.colorSchemes.light.palette.primary.onPrimary
1243
- }, D = {
1244
- "--fu-ucrc-pq-rt-tab-width": b ? "auto" : "100%",
1257
+ "--fu-ucrc-pq-rt-on-primary": C.colorSchemes.light.palette.primary.onPrimary
1258
+ }, P = {
1259
+ "--fu-ucrc-pq-rt-tab-width": h ? "auto" : "100%",
1245
1260
  "--fu-ucrc-pq-rt-tab-size": u ? "0.9em" : "0.85em",
1246
- "--fu-ucrc-pq-rt-first-end-radius": b ? "0px" : "var(--fu-ucrc-radius-md)"
1247
- }, S = (k) => k && (m && k.mobile || k.main) || null, Q = (k) => {
1248
- var R;
1249
- const I = (k + e.length) % e.length;
1250
- c(I), (R = a.current[I]) == null || R.focus();
1251
- }, w = (k) => {
1252
- const I = s ? "ArrowLeft" : "ArrowRight", R = s ? "ArrowRight" : "ArrowLeft", z = { [I]: o + 1, [R]: o - 1, Home: 0, End: e.length - 1 }[k.key];
1253
- z !== void 0 && (k.preventDefault(), Q(z));
1254
- }, P = (k) => {
1255
- var I;
1256
- r(k), c(k), (I = a.current[k]) == null || I.focus();
1257
- }, C = e[i], B = C ? S(C.images) : null, O = (k) => /* @__PURE__ */ t("span", { css: F.description, dir: "auto", dangerouslySetInnerHTML: { __html: k } });
1258
- return /* @__PURE__ */ t("div", { css: F.wrapper, children: /* @__PURE__ */ t("div", { css: F.container, children: /* @__PURE__ */ p("div", { css: F.tabs, style: v, children: [
1261
+ "--fu-ucrc-pq-rt-first-end-radius": h ? "0px" : "var(--fu-ucrc-radius-md)"
1262
+ }, b = (Q) => Q && (g && Q.mobile || Q.main) || null, k = (Q) => {
1263
+ var D;
1264
+ const S = (Q + e.length) % e.length;
1265
+ d(S), (D = a.current[S]) == null || D.focus();
1266
+ }, p = (Q) => {
1267
+ const S = s ? "ArrowLeft" : "ArrowRight", D = s ? "ArrowRight" : "ArrowLeft", z = { [S]: o + 1, [D]: o - 1, Home: 0, End: e.length - 1 }[Q.key];
1268
+ z !== void 0 && (Q.preventDefault(), k(z));
1269
+ }, q = (Q) => {
1270
+ var S;
1271
+ r(Q), d(Q), (S = a.current[Q]) == null || S.focus();
1272
+ }, v = e[i], T = v ? b(v.images) : null, F = (Q) => /* @__PURE__ */ t("span", { css: O.description, dir: "auto", dangerouslySetInnerHTML: { __html: Q } });
1273
+ return /* @__PURE__ */ t("div", { css: O.wrapper, children: /* @__PURE__ */ t("div", { css: O.container, children: /* @__PURE__ */ w("div", { css: O.tabs, style: x, children: [
1259
1274
  /* @__PURE__ */ t(
1260
1275
  "div",
1261
1276
  {
1262
1277
  role: "tablist",
1263
1278
  "aria-orientation": "horizontal",
1264
- css: F.list,
1265
- style: D,
1266
- onKeyDown: w,
1267
- children: e.map((k, I) => {
1268
- var q, M;
1269
- const R = I === 0, z = I === i, A = S(k.images), L = ((q = k.images) == null ? void 0 : q.mobile) || ((M = k.images) == null ? void 0 : M.main), N = m ? !!L : !!A && !k.description, d = m ? L : A;
1279
+ css: O.list,
1280
+ style: P,
1281
+ onKeyDown: p,
1282
+ children: e.map((Q, S) => {
1283
+ var U, R;
1284
+ const D = S === 0, z = S === i, A = b(Q.images), L = ((U = Q.images) == null ? void 0 : U.mobile) || ((R = Q.images) == null ? void 0 : R.main), $ = g ? !!L : !!A && !Q.description, c = g ? L : A;
1270
1285
  return /* @__PURE__ */ t(
1271
1286
  "button",
1272
1287
  {
1273
- ref: ($) => {
1274
- a.current[I] = $;
1288
+ ref: (E) => {
1289
+ a.current[S] = E;
1275
1290
  },
1276
1291
  type: "button",
1277
1292
  role: "tab",
1278
- id: `${l}-tab-${I}`,
1293
+ id: `${l}-tab-${S}`,
1279
1294
  "aria-selected": z,
1280
- "aria-controls": z && k.description ? `${l}-panel` : void 0,
1281
- tabIndex: I === o ? 0 : -1,
1282
- css: R ? z ? F.tab.firstOn : F.tab.firstOff : z ? F.tab.on : F.tab.off,
1283
- onClick: () => P(I),
1284
- onFocus: () => c(I),
1285
- children: /* @__PURE__ */ p("div", { css: F.labelRow, children: [
1286
- N && d && /* @__PURE__ */ t(
1295
+ "aria-controls": z && Q.description ? `${l}-panel` : void 0,
1296
+ tabIndex: S === o ? 0 : -1,
1297
+ css: D ? z ? O.tab.firstOn : O.tab.firstOff : z ? O.tab.on : O.tab.off,
1298
+ onClick: () => q(S),
1299
+ onFocus: () => d(S),
1300
+ children: /* @__PURE__ */ w("div", { css: O.labelRow, children: [
1301
+ $ && c && /* @__PURE__ */ t(
1287
1302
  "div",
1288
1303
  {
1289
- css: m ? F.logoMobile : F.logo,
1290
- style: { backgroundImage: `url("${d}")` }
1304
+ css: g ? O.logoMobile : O.logo,
1305
+ style: { backgroundImage: `url("${c}")` }
1291
1306
  }
1292
1307
  ),
1293
- /* @__PURE__ */ t("p", { css: F.label, children: k.title }),
1294
- /* @__PURE__ */ p("p", { css: F.percentage, children: [
1295
- k.percent,
1308
+ /* @__PURE__ */ t("p", { css: O.label, children: Q.title }),
1309
+ /* @__PURE__ */ w("p", { css: O.percentage, children: [
1310
+ Q.percent,
1296
1311
  "%"
1297
1312
  ] })
1298
1313
  ] })
1299
1314
  },
1300
- k.personaId
1315
+ Q.personaId
1301
1316
  );
1302
1317
  })
1303
1318
  }
1304
1319
  ),
1305
- (C == null ? void 0 : C.description) && /* @__PURE__ */ t("div", { role: "tabpanel", id: `${l}-panel`, "aria-labelledby": `${l}-tab-${i}`, css: F.panel, children: /* @__PURE__ */ t("div", { css: m ? F.contentMobile : F.content, children: B && !m ? /* @__PURE__ */ p("div", { css: b ? F.withImageRow : F.withImageColumn, children: [
1306
- /* @__PURE__ */ t("div", { css: b ? F.imageSection : F.imageSectionFull, children: /* @__PURE__ */ t(
1320
+ (v == null ? void 0 : v.description) && /* @__PURE__ */ t("div", { role: "tabpanel", id: `${l}-panel`, "aria-labelledby": `${l}-tab-${i}`, css: O.panel, children: /* @__PURE__ */ t("div", { css: g ? O.contentMobile : O.content, children: T && !g ? /* @__PURE__ */ w("div", { css: h ? O.withImageRow : O.withImageColumn, children: [
1321
+ /* @__PURE__ */ t("div", { css: h ? O.imageSection : O.imageSectionFull, children: /* @__PURE__ */ t(
1307
1322
  "div",
1308
1323
  {
1309
- css: b ? F.personaImage : F.personaImageShort,
1310
- style: { backgroundImage: `url("${B}")` }
1324
+ css: h ? O.personaImage : O.personaImageShort,
1325
+ style: { backgroundImage: `url("${T}")` }
1311
1326
  }
1312
1327
  ) }),
1313
- /* @__PURE__ */ t("div", { css: F.descriptionSection, children: O(C.description) })
1314
- ] }) : /* @__PURE__ */ t("div", { css: F.descriptionOnly, children: O(C.description) }) }) })
1328
+ /* @__PURE__ */ t("div", { css: O.descriptionSection, children: F(v.description) })
1329
+ ] }) : /* @__PURE__ */ t("div", { css: O.descriptionOnly, children: F(v.description) }) }) })
1315
1330
  ] }) }) });
1316
- }, Gn = "var(--fu-ucrc-text-primary)", bt = { display: "flex", justifyContent: "center", alignItems: "center" }, vn = {
1317
- ...fe,
1331
+ }, Yn = "var(--fu-ucrc-text-primary)", vt = { display: "flex", justifyContent: "center", alignItems: "center" }, In = {
1332
+ ...ye,
1318
1333
  fontFamily: "var(--fu-ucrc-font-primary)",
1319
1334
  fontSize: "0.8125em",
1320
1335
  fontStyle: "normal",
@@ -1322,87 +1337,89 @@ const Ai = (e, i) => {
1322
1337
  lineHeight: "22px",
1323
1338
  letterSpacing: "0.46px",
1324
1339
  textTransform: "uppercase"
1325
- }, Cn = {
1326
- ...bt,
1340
+ }, Sn = {
1341
+ ...vt,
1327
1342
  flexDirection: "column",
1328
- paddingBlock: g("xs"),
1329
- paddingInline: g("md"),
1343
+ paddingBlock: f("xs"),
1344
+ paddingInline: f("md"),
1330
1345
  gap: "8px",
1331
1346
  borderRadius: "var(--fu-ucrc-radius-xl)",
1332
1347
  // Joy's solidColor (common.white) is not in the theme snapshot.
1333
1348
  color: "var(--fu-ucrc-primary-solid-color, #fff)",
1334
1349
  fontSize: "0.8125em"
1335
- }, Nn = { display: "flex", alignItems: "center", paddingInline: g("md") }, In = { ...Nn, justifyContent: "space-between", gap: g("lg") }, Sn = { ...Nn, gap: g("md") }, oe = {
1336
- main: n({ flex: "1", display: "flex", flexDirection: "column", padding: g("md"), gap: g("md") }),
1337
- chanceGame: n({ padding: g("md") }),
1338
- buttonsRow: n(In, { flexDirection: "row" }),
1339
- buttonsColumn: n(In, { flexDirection: "column-reverse" }),
1340
- buttonsEnd: n(Sn, { justifyContent: "flex-end" }),
1341
- buttonsCenter: n(Sn, { justifyContent: "center" }),
1342
- playAgain: n(Ie, Cn, {
1350
+ }, Zn = { display: "flex", alignItems: "center", paddingInline: f("md") }, zn = { ...Zn, justifyContent: "space-between", gap: f("lg") }, wn = { ...Zn, gap: f("md") }, le = {
1351
+ main: n({ flex: "1", display: "flex", flexDirection: "column", padding: f("md"), gap: f("md") }),
1352
+ chanceGame: n({ padding: f("md") }),
1353
+ buttonsRow: n(zn, { flexDirection: "row" }),
1354
+ buttonsColumn: n(zn, { flexDirection: "column-reverse" }),
1355
+ buttonsEnd: n(wn, { justifyContent: "flex-end" }),
1356
+ buttonsCenter: n(wn, { justifyContent: "center" }),
1357
+ playAgain: n(Ce, Sn, {
1343
1358
  border: "var(--fu-ucrc-border-size) solid var(--fu-ucrc-pq-ss-primary)",
1344
1359
  backgroundColor: "var(--fu-ucrc-pq-ss-bg)",
1345
1360
  "&:hover": { backgroundColor: "var(--fu-ucrc-on-surface)", borderColor: "var(--fu-ucrc-pq-ss-primary)" }
1346
1361
  }),
1347
- playAgainContent: n({ ...bt, gap: "8px", alignSelf: "stretch" }),
1348
- playAgainText: n({ ...vn, textAlign: "center", color: Gn }),
1349
- additionalCta: n(Ie, Cn, {
1362
+ playAgainContent: n({ ...vt, gap: "8px", alignSelf: "stretch" }),
1363
+ playAgainText: n({ ...In, textAlign: "center", color: Yn }),
1364
+ additionalCta: n(Ce, Sn, {
1350
1365
  border: "var(--fu-ucrc-border-size) solid var(--fu-ucrc-secondary-container)",
1351
1366
  backgroundColor: "var(--fu-ucrc-secondary-container)",
1352
1367
  "&:hover": { opacity: 0.9 },
1353
- "& > div": { ...bt, gap: "8px" },
1354
- "& p": { ...vn, color: "var(--fu-ucrc-pq-ss-secondary)" }
1368
+ "& > div": { ...vt, gap: "8px" },
1369
+ "& p": { ...In, color: "var(--fu-ucrc-pq-ss-secondary)" }
1355
1370
  }),
1356
1371
  wrapperRow: n({ display: "flex", flexDirection: "row", width: "100%" }),
1357
1372
  wrapperColumn: n({ display: "flex", flexDirection: "column", width: "100%" })
1358
- }, ji = {
1373
+ }, Yi = {
1359
1374
  display: "flex",
1360
1375
  width: "16px",
1361
1376
  height: "16px",
1362
1377
  justifyContent: "flex-end",
1363
1378
  alignItems: "center",
1364
- color: Gn
1365
- }, Gi = (e) => {
1366
- var f, v, D, S, Q;
1367
- const i = re(), r = he(
1379
+ color: Yn
1380
+ }, Zi = (e) => {
1381
+ var m, x, P, b, k, p, q, v, T;
1382
+ const i = re(), r = be(
1368
1383
  {
1369
1384
  images: e.personalityQuiz.images,
1370
1385
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
1371
1386
  },
1372
- G.STANDARD
1373
- ), { t: o } = H(), c = ue("md"), a = ((f = e.personalityQuiz.branding) == null ? void 0 : f.colors) || null, l = Y() ? ((v = e.personalityQuiz.branding) == null ? void 0 : v.images.mobileLogo) || ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mainLogo) || "" : ((S = e.personalityQuiz.branding) == null ? void 0 : S.images.mainLogo) || "", s = e.imagePosition || "left", x = (a == null ? void 0 : a.contentColor) || i.textColor, y = {
1387
+ _.STANDARD
1388
+ ), { t: o } = W(), d = ge("md"), a = ((m = e.personalityQuiz.branding) == null ? void 0 : m.colors) || null, l = Z() ? ((x = e.personalityQuiz.branding) == null ? void 0 : x.images.mobileLogo) || ((P = e.personalityQuiz.branding) == null ? void 0 : P.images.mainLogo) || "" : ((b = e.personalityQuiz.branding) == null ? void 0 : b.images.mainLogo) || "", s = e.imagePosition || "left", C = (a == null ? void 0 : a.contentColor) || i.textColor, y = {
1374
1389
  "--fu-ucrc-pq-ss-primary": (a == null ? void 0 : a.primaryColor) || i.palette.primary.plainColor,
1375
1390
  "--fu-ucrc-pq-ss-secondary": (a == null ? void 0 : a.secondaryColor) || i.textSecondary,
1376
1391
  "--fu-ucrc-pq-ss-bg": (a == null ? void 0 : a.backgroundColor) || i.surface
1377
- }, m = Ut(e.personalityQuiz, e.summary), b = /* @__PURE__ */ t(xi, { finalImage: r, imagePosition: s, children: (() => {
1378
- var w, P;
1379
- return /* @__PURE__ */ t("div", { css: oe.main, style: y, children: e.summary.personalityQuizId ? /* @__PURE__ */ p(Re, { children: [
1380
- /* @__PURE__ */ t(Vi, { personas: m }),
1381
- e.chanceGameContent && /* @__PURE__ */ t("div", { css: oe.chanceGame, children: e.chanceGameContent }),
1382
- (l || e.additionalCTA !== void 0 || !e.maxAttemptsReached) && /* @__PURE__ */ p(
1392
+ }, g = Mt(e.personalityQuiz, e.summary), u = () => {
1393
+ var F, Q, S, D, z, A, L, $, c, U;
1394
+ return /* @__PURE__ */ t("div", { css: le.main, style: y, children: e.summary.personalityQuizId ? /* @__PURE__ */ w(Re, { children: [
1395
+ /* @__PURE__ */ t(_i, { personas: g }),
1396
+ e.chanceGameContent && /* @__PURE__ */ t("div", { css: le.chanceGame, children: e.chanceGameContent }),
1397
+ (l || e.additionalCTA !== void 0 || !e.maxAttemptsReached) && /* @__PURE__ */ w(
1383
1398
  "div",
1384
1399
  {
1385
- css: l ? c ? oe.buttonsRow : oe.buttonsColumn : c ? oe.buttonsEnd : oe.buttonsCenter,
1400
+ css: l ? d ? le.buttonsRow : le.buttonsColumn : d ? le.buttonsEnd : le.buttonsCenter,
1386
1401
  children: [
1387
1402
  l && /* @__PURE__ */ t(
1388
- V,
1403
+ G,
1389
1404
  {
1390
1405
  brandingLogo: l,
1391
- textColor: x,
1392
- label: ((w = e.personalityQuiz.labels) == null ? void 0 : w.sponsor) || null
1406
+ textColor: C,
1407
+ label: ((F = e.personalityQuiz.labels) == null ? void 0 : F.sponsor) || null,
1408
+ primaryUrl: (S = (Q = e.personalityQuiz.branding) == null ? void 0 : Q.urls) == null ? void 0 : S.primaryUrl,
1409
+ secondaryUrl: (z = (D = e.personalityQuiz.branding) == null ? void 0 : D.urls) == null ? void 0 : z.secondaryUrl
1393
1410
  }
1394
1411
  ),
1395
- /* @__PURE__ */ t(wt, { additionalCTA: e.additionalCTA, css: oe.additionalCta }),
1396
- !e.maxAttemptsReached && /* @__PURE__ */ t("button", { type: "button", css: oe.playAgain, onClick: e.playAgain, children: /* @__PURE__ */ p("div", { css: oe.playAgainContent, children: [
1397
- /* @__PURE__ */ t(Rt, { style: ji }),
1398
- /* @__PURE__ */ t("p", { css: oe.playAgainText, children: o("personalityQuiz.buttons.playAgain") })
1412
+ /* @__PURE__ */ t(At, { additionalCTA: e.additionalCTA, css: le.additionalCta }),
1413
+ !e.maxAttemptsReached && /* @__PURE__ */ t("button", { type: "button", css: le.playAgain, onClick: e.playAgain, children: /* @__PURE__ */ w("div", { css: le.playAgainContent, children: [
1414
+ /* @__PURE__ */ t(Bt, { style: Yi }),
1415
+ /* @__PURE__ */ t("p", { css: le.playAgainText, children: o("personalityQuiz.buttons.playAgain") })
1399
1416
  ] }) })
1400
1417
  ]
1401
1418
  }
1402
1419
  )
1403
- ] }) : /* @__PURE__ */ p(Re, { children: [
1420
+ ] }) : /* @__PURE__ */ w(Re, { children: [
1404
1421
  /* @__PURE__ */ t(
1405
- kt,
1422
+ Pt,
1406
1423
  {
1407
1424
  variant: "error",
1408
1425
  title: o("common.authentication.accessRequired"),
@@ -1410,26 +1427,40 @@ const Ai = (e, i) => {
1410
1427
  }
1411
1428
  ),
1412
1429
  l ? /* @__PURE__ */ t(
1413
- V,
1430
+ G,
1414
1431
  {
1415
1432
  brandingLogo: l,
1416
- textColor: x,
1417
- label: ((P = e.personalityQuiz.labels) == null ? void 0 : P.sponsor) || null
1433
+ textColor: C,
1434
+ label: ((A = e.personalityQuiz.labels) == null ? void 0 : A.sponsor) || null,
1435
+ primaryUrl: ($ = (L = e.personalityQuiz.branding) == null ? void 0 : L.urls) == null ? void 0 : $.primaryUrl,
1436
+ secondaryUrl: (U = (c = e.personalityQuiz.branding) == null ? void 0 : c.urls) == null ? void 0 : U.secondaryUrl
1418
1437
  }
1419
1438
  ) : null
1420
1439
  ] }) });
1421
- })() });
1422
- return /* @__PURE__ */ t(K, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
1423
- Bt,
1440
+ }, h = /* @__PURE__ */ t(
1441
+ Si,
1442
+ {
1443
+ finalImage: r,
1444
+ imagePosition: s,
1445
+ imageClickUrl: $n(
1446
+ (p = (k = e.personalityQuiz.branding) == null ? void 0 : k.urls) == null ? void 0 : p.primaryUrl,
1447
+ (v = (q = e.personalityQuiz.branding) == null ? void 0 : q.urls) == null ? void 0 : v.secondaryUrl,
1448
+ "image"
1449
+ ),
1450
+ children: u()
1451
+ }
1452
+ );
1453
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
1454
+ $t,
1424
1455
  {
1425
1456
  questions: e.personalityQuiz.questions,
1426
1457
  userParticipation: e.summary.questions,
1427
- brandingColors: (Q = e.personalityQuiz.branding) == null ? void 0 : Q.colors,
1458
+ brandingColors: (T = e.personalityQuiz.branding) == null ? void 0 : T.colors,
1428
1459
  resultsLayout: "responsive",
1429
- children: /* @__PURE__ */ t("div", { css: c ? oe.wrapperRow : oe.wrapperColumn, children: b })
1460
+ children: /* @__PURE__ */ t("div", { css: d ? le.wrapperRow : le.wrapperColumn, children: h })
1430
1461
  }
1431
- ) : b });
1432
- }, pt = "var(--fu-ucrc-pq-srt-surface)", Ni = "var(--fu-ucrc-pq-srt-primary)", _n = {
1462
+ ) : h });
1463
+ }, Ct = "var(--fu-ucrc-pq-srt-surface)", Ki = "var(--fu-ucrc-pq-srt-primary)", Kn = {
1433
1464
  position: "relative",
1434
1465
  boxSizing: "border-box",
1435
1466
  display: "flex",
@@ -1443,8 +1474,8 @@ const Ai = (e, i) => {
1443
1474
  minWidth: 0,
1444
1475
  minHeight: "auto",
1445
1476
  margin: 0,
1446
- paddingBlock: g("sm"),
1447
- paddingInline: g("md"),
1477
+ paddingBlock: f("sm"),
1478
+ paddingInline: f("md"),
1448
1479
  font: "inherit",
1449
1480
  fontFamily: "var(--fu-ucrc-font-primary)",
1450
1481
  fontWeight: 500,
@@ -1461,30 +1492,30 @@ const Ai = (e, i) => {
1461
1492
  cursor: "pointer",
1462
1493
  WebkitTapHighlightColor: "transparent",
1463
1494
  "&:focus-visible": { outline: "2px solid var(--fu-ucrc-focus-visible)", outlineOffset: "2px", zIndex: 1 }
1464
- }, zn = {
1465
- ..._n,
1495
+ }, kn = {
1496
+ ...Kn,
1466
1497
  "&:hover": {
1467
1498
  backgroundColor: "var(--fu-ucrc-neutral-plain-hover-bg)",
1468
1499
  color: "var(--fu-ucrc-neutral-plain-hover-color)",
1469
1500
  borderRight: "2px solid var(--fu-ucrc-pq-srt-hover-edge)"
1470
1501
  },
1471
1502
  "&:active": { backgroundColor: "var(--fu-ucrc-neutral-plain-active-bg)" }
1472
- }, wn = {
1473
- ..._n,
1503
+ }, Qn = {
1504
+ ...Kn,
1474
1505
  zIndex: 1,
1475
- backgroundColor: pt,
1506
+ backgroundColor: Ct,
1476
1507
  borderRight: "2px solid var(--fu-ucrc-pq-srt-edge)",
1477
1508
  borderBottom: "2px solid var(--fu-ucrc-pq-srt-edge)",
1478
1509
  color: "var(--fu-ucrc-text-primary)",
1479
1510
  fontWeight: 600
1480
- }, _i = { "&:hover": { borderTopLeftRadius: "var(--fu-ucrc-radius-sm)" } }, kn = {
1511
+ }, Xi = { "&:hover": { borderTopLeftRadius: "var(--fu-ucrc-radius-sm)" } }, An = {
1481
1512
  backgroundSize: "cover",
1482
1513
  backgroundPosition: "center",
1483
1514
  backgroundRepeat: "no-repeat",
1484
1515
  borderRadius: "var(--fu-ucrc-radius-xs)",
1485
1516
  border: "1px solid rgba(0, 0, 0, 0.2)",
1486
1517
  flexShrink: 0
1487
- }, J = {
1518
+ }, ee = {
1488
1519
  contentWrapper: n({
1489
1520
  display: "flex",
1490
1521
  flexDirection: "column",
@@ -1499,7 +1530,7 @@ const Ai = (e, i) => {
1499
1530
  display: "flex",
1500
1531
  flexDirection: "column",
1501
1532
  width: "100%",
1502
- backgroundColor: pt,
1533
+ backgroundColor: Ct,
1503
1534
  borderRadius: "var(--fu-ucrc-radius-md)",
1504
1535
  fontFamily: "var(--fu-ucrc-font-body)",
1505
1536
  fontSize: "1em",
@@ -1522,21 +1553,21 @@ const Ai = (e, i) => {
1522
1553
  ".dark &": { boxShadow: "inset 0 -1px rgba(var(--fu-ucrc-neutral-main-channel) / 0.16)" }
1523
1554
  }),
1524
1555
  tab: {
1525
- off: n(zn),
1526
- on: n(wn),
1527
- firstOff: n(zn, _i),
1528
- firstOn: n(wn, { borderTopLeftRadius: "var(--fu-ucrc-radius-sm)" })
1556
+ off: n(kn),
1557
+ on: n(Qn),
1558
+ firstOff: n(kn, Xi),
1559
+ firstOn: n(Qn, { borderTopLeftRadius: "var(--fu-ucrc-radius-sm)" })
1529
1560
  },
1530
1561
  labelRow: n({
1531
1562
  display: "flex",
1532
1563
  justifyContent: "space-between",
1533
1564
  alignItems: "center",
1534
1565
  width: "100%",
1535
- gap: g("sm")
1566
+ gap: f("sm")
1536
1567
  }),
1537
- logo: n(kn, { width: "24px", height: "24px" }),
1538
- logoMobile: n(kn, { width: "20px", height: "20px" }),
1539
- label: n(fe, {
1568
+ logo: n(An, { width: "24px", height: "24px" }),
1569
+ logoMobile: n(An, { width: "20px", height: "20px" }),
1570
+ label: n(ye, {
1540
1571
  fontSize: "inherit",
1541
1572
  fontWeight: "inherit",
1542
1573
  fontFamily: "var(--fu-ucrc-font-secondary)",
@@ -1546,11 +1577,11 @@ const Ai = (e, i) => {
1546
1577
  flex: 1
1547
1578
  }),
1548
1579
  // Always the light scheme's on-primary, as before.
1549
- percentage: n(fe, {
1550
- backgroundColor: Ni,
1580
+ percentage: n(ye, {
1581
+ backgroundColor: Ki,
1551
1582
  color: "var(--fu-ucrc-pq-srt-on-primary)",
1552
- paddingInline: g("xs"),
1553
- paddingBlock: g("3xs"),
1583
+ paddingInline: f("xs"),
1584
+ paddingBlock: f("3xs"),
1554
1585
  borderRadius: "var(--fu-ucrc-radius-sm)",
1555
1586
  fontSize: "0.75em",
1556
1587
  fontWeight: 600,
@@ -1560,112 +1591,112 @@ const Ai = (e, i) => {
1560
1591
  }),
1561
1592
  panel: n({ flexGrow: 1, fontSize: "1em", padding: 0 }),
1562
1593
  content: n({
1563
- backgroundColor: pt,
1594
+ backgroundColor: Ct,
1564
1595
  borderRadius: "var(--fu-ucrc-radius-md)",
1565
- padding: g("lg"),
1596
+ padding: f("lg"),
1566
1597
  backdropFilter: "blur(4px)",
1567
1598
  border: "1px solid rgba(255, 255, 255, 0.1)",
1568
1599
  minHeight: "200px"
1569
1600
  }),
1570
1601
  descriptionOnly: n({ display: "flex", justifyContent: "center", alignItems: "center", minHeight: "150px" }),
1571
1602
  description: n({ color: "var(--fu-ucrc-text-color)", fontFamily: "var(--fu-ucrc-font-primary)", lineHeight: 1.6 })
1572
- }, Yi = ({ personas: e, brandingColors: i }) => {
1573
- const [r, o] = U(0), [c, a] = U(0), l = Ce([]), s = Je(), x = Ke(), y = ne(), m = re(), u = Y();
1603
+ }, Ji = ({ personas: e, brandingColors: i }) => {
1604
+ const [r, o] = M(0), [d, a] = M(0), l = ve([]), s = et(), C = Xe(), y = te(), g = re(), u = Z();
1574
1605
  if (!e || e.length === 0)
1575
1606
  return null;
1576
- const b = (i == null ? void 0 : i.primaryColor) || m.palette.primary.plainColor, f = {
1577
- "--fu-ucrc-pq-srt-surface": `rgba(${Oe(m.surfaceVariant || "")}, 0.5)`,
1578
- "--fu-ucrc-pq-srt-primary": b,
1607
+ const h = (i == null ? void 0 : i.primaryColor) || g.palette.primary.plainColor, m = {
1608
+ "--fu-ucrc-pq-srt-surface": `rgba(${We(g.surfaceVariant || "")}, 0.5)`,
1609
+ "--fu-ucrc-pq-srt-primary": h,
1579
1610
  "--fu-ucrc-pq-srt-on-primary": y.colorSchemes.light.palette.primary.onPrimary,
1580
1611
  // Hex alpha suffixes on the primary, as before.
1581
- "--fu-ucrc-pq-srt-line": `${b}20`,
1582
- "--fu-ucrc-pq-srt-hover-edge": `${b}40`,
1583
- "--fu-ucrc-pq-srt-edge": `${b}80`
1584
- }, v = (Q) => {
1585
- var P;
1586
- const w = (Q + e.length) % e.length;
1587
- a(w), (P = l.current[w]) == null || P.focus();
1588
- }, D = (Q) => {
1589
- const w = x ? "ArrowLeft" : "ArrowRight", P = x ? "ArrowRight" : "ArrowLeft", C = { [w]: c + 1, [P]: c - 1, Home: 0, End: e.length - 1 }[Q.key];
1590
- C !== void 0 && (Q.preventDefault(), v(C));
1591
- }, S = e[r];
1592
- return /* @__PURE__ */ t("div", { css: J.contentWrapper, style: f, children: /* @__PURE__ */ p("div", { css: J.tabs, children: [
1593
- /* @__PURE__ */ t("div", { role: "tablist", "aria-orientation": "horizontal", css: J.list, onKeyDown: D, children: e.map((Q, w) => {
1594
- const P = w === r, C = Q.images, B = u && (C == null ? void 0 : C.mobile) || (C == null ? void 0 : C.main), O = (C == null ? void 0 : C.mobile) || B;
1612
+ "--fu-ucrc-pq-srt-line": `${h}20`,
1613
+ "--fu-ucrc-pq-srt-hover-edge": `${h}40`,
1614
+ "--fu-ucrc-pq-srt-edge": `${h}80`
1615
+ }, x = (k) => {
1616
+ var q;
1617
+ const p = (k + e.length) % e.length;
1618
+ a(p), (q = l.current[p]) == null || q.focus();
1619
+ }, P = (k) => {
1620
+ const p = C ? "ArrowLeft" : "ArrowRight", q = C ? "ArrowRight" : "ArrowLeft", v = { [p]: d + 1, [q]: d - 1, Home: 0, End: e.length - 1 }[k.key];
1621
+ v !== void 0 && (k.preventDefault(), x(v));
1622
+ }, b = e[r];
1623
+ return /* @__PURE__ */ t("div", { css: ee.contentWrapper, style: m, children: /* @__PURE__ */ w("div", { css: ee.tabs, children: [
1624
+ /* @__PURE__ */ t("div", { role: "tablist", "aria-orientation": "horizontal", css: ee.list, onKeyDown: P, children: e.map((k, p) => {
1625
+ const q = p === r, v = k.images, T = u && (v == null ? void 0 : v.mobile) || (v == null ? void 0 : v.main), F = (v == null ? void 0 : v.mobile) || T;
1595
1626
  return /* @__PURE__ */ t(
1596
1627
  "button",
1597
1628
  {
1598
- ref: (k) => {
1599
- l.current[w] = k;
1629
+ ref: (Q) => {
1630
+ l.current[p] = Q;
1600
1631
  },
1601
1632
  type: "button",
1602
1633
  role: "tab",
1603
- id: `${s}-tab-${w}`,
1604
- "aria-selected": P,
1605
- "aria-controls": P && Q.description ? `${s}-panel` : void 0,
1606
- tabIndex: w === c ? 0 : -1,
1607
- css: w === 0 ? P ? J.tab.firstOn : J.tab.firstOff : P ? J.tab.on : J.tab.off,
1634
+ id: `${s}-tab-${p}`,
1635
+ "aria-selected": q,
1636
+ "aria-controls": q && k.description ? `${s}-panel` : void 0,
1637
+ tabIndex: p === d ? 0 : -1,
1638
+ css: p === 0 ? q ? ee.tab.firstOn : ee.tab.firstOff : q ? ee.tab.on : ee.tab.off,
1608
1639
  onClick: () => {
1609
- o(w), a(w);
1640
+ o(p), a(p);
1610
1641
  },
1611
- onFocus: () => a(w),
1612
- children: /* @__PURE__ */ p("div", { css: J.labelRow, children: [
1613
- B && O && /* @__PURE__ */ t(
1642
+ onFocus: () => a(p),
1643
+ children: /* @__PURE__ */ w("div", { css: ee.labelRow, children: [
1644
+ T && F && /* @__PURE__ */ t(
1614
1645
  "div",
1615
1646
  {
1616
- css: u ? J.logoMobile : J.logo,
1617
- style: { backgroundImage: `url("${O}")` }
1647
+ css: u ? ee.logoMobile : ee.logo,
1648
+ style: { backgroundImage: `url("${F}")` }
1618
1649
  }
1619
1650
  ),
1620
- /* @__PURE__ */ t("p", { css: J.label, children: Q.title }),
1621
- /* @__PURE__ */ p("p", { css: J.percentage, children: [
1622
- Q.percent,
1651
+ /* @__PURE__ */ t("p", { css: ee.label, children: k.title }),
1652
+ /* @__PURE__ */ w("p", { css: ee.percentage, children: [
1653
+ k.percent,
1623
1654
  "%"
1624
1655
  ] })
1625
1656
  ] })
1626
1657
  },
1627
- Q.personaId
1658
+ k.personaId
1628
1659
  );
1629
1660
  }) }),
1630
- (S == null ? void 0 : S.description) && /* @__PURE__ */ t("div", { role: "tabpanel", id: `${s}-panel`, "aria-labelledby": `${s}-tab-${r}`, css: J.panel, children: /* @__PURE__ */ t("div", { css: J.content, children: /* @__PURE__ */ t("div", { css: J.descriptionOnly, children: /* @__PURE__ */ t("span", { css: J.description, dir: "auto", dangerouslySetInnerHTML: { __html: S.description } }) }) }) })
1661
+ (b == null ? void 0 : b.description) && /* @__PURE__ */ t("div", { role: "tabpanel", id: `${s}-panel`, "aria-labelledby": `${s}-tab-${r}`, css: ee.panel, children: /* @__PURE__ */ t("div", { css: ee.content, children: /* @__PURE__ */ t("div", { css: ee.descriptionOnly, children: /* @__PURE__ */ t("span", { css: ee.description, dir: "auto", dangerouslySetInnerHTML: { __html: b.description } }) }) }) })
1631
1662
  ] }) });
1632
- }, _e = "var(--fu-ucrc-text-primary)", Yn = "var(--fu-ucrc-font-primary)", An = {
1663
+ }, Ye = "var(--fu-ucrc-text-primary)", Xn = "var(--fu-ucrc-font-primary)", Pn = {
1633
1664
  margin: 0,
1634
- fontFamily: Yn,
1665
+ fontFamily: Xn,
1635
1666
  fontSize: "0.9375em",
1636
1667
  fontStyle: "normal",
1637
1668
  fontWeight: 500,
1638
1669
  lineHeight: "22px",
1639
1670
  letterSpacing: "0.46px",
1640
1671
  textTransform: "uppercase"
1641
- }, Qn = {
1672
+ }, qn = {
1642
1673
  display: "flex",
1643
- paddingBlock: g("xs"),
1674
+ paddingBlock: f("xs"),
1644
1675
  flexDirection: "column",
1645
1676
  justifyContent: "center",
1646
1677
  alignItems: "center",
1647
1678
  gap: "8px",
1648
1679
  borderRadius: "var(--fu-ucrc-radius-xl)",
1649
1680
  fontSize: "0.9375em"
1650
- }, Pn = {
1681
+ }, Ln = {
1651
1682
  display: "flex",
1652
1683
  flexDirection: "column",
1653
1684
  justifyContent: "center",
1654
1685
  alignItems: "center"
1655
- }, qn = { display: "flex", flexDirection: "column", justifyContent: "center" }, ie = {
1686
+ }, Dn = { display: "flex", flexDirection: "column", justifyContent: "center" }, ie = {
1656
1687
  questionAreaContent: n({
1657
- padding: g("lg"),
1688
+ padding: f("lg"),
1658
1689
  display: "flex",
1659
1690
  flexDirection: "column",
1660
1691
  justifyContent: "center",
1661
- gap: g("lg"),
1692
+ gap: f("lg"),
1662
1693
  flex: 1,
1663
1694
  height: "100%"
1664
1695
  }),
1665
1696
  // Translucent panel, from the branding background: `--fu-ucrc-pq-split-bg` on the root.
1666
1697
  ctaPanel: n({
1667
- padding: g("lg"),
1668
- gap: g("lg"),
1698
+ padding: f("lg"),
1699
+ gap: f("lg"),
1669
1700
  display: "flex",
1670
1701
  flexDirection: "column",
1671
1702
  backdropFilter: "blur(4px)",
@@ -1673,13 +1704,13 @@ const Ai = (e, i) => {
1673
1704
  borderRadius: "var(--fu-ucrc-radius-sm)"
1674
1705
  }),
1675
1706
  ctaContainer: n({ display: "flex", flexDirection: "column", alignItems: "center" }),
1676
- ctaContentWrapper: n(Pn, { gap: g("lg") }),
1677
- ctaContentWrapperTight: n(Pn, { gap: 0 }),
1707
+ ctaContentWrapper: n(Ln, { gap: f("lg") }),
1708
+ ctaContentWrapperTight: n(Ln, { gap: 0 }),
1678
1709
  thanks: n({
1679
1710
  margin: 0,
1680
- color: _e,
1711
+ color: Ye,
1681
1712
  textAlign: "center",
1682
- fontFamily: Yn,
1713
+ fontFamily: Xn,
1683
1714
  fontSize: "1.25em",
1684
1715
  fontStyle: "normal",
1685
1716
  fontWeight: 500,
@@ -1687,9 +1718,9 @@ const Ai = (e, i) => {
1687
1718
  letterSpacing: "0.15px"
1688
1719
  }),
1689
1720
  buttons: n({ display: "flex", flexDirection: "column", gap: "16px" }),
1690
- playAgain: n(Ie, Qn, {
1721
+ playAgain: n(Ce, qn, {
1691
1722
  paddingInline: "16px",
1692
- color: _e,
1723
+ color: Ye,
1693
1724
  backgroundColor: "var(--fu-ucrc-surface)",
1694
1725
  "&:hover": { backgroundColor: "var(--fu-ucrc-on-surface)" }
1695
1726
  }),
@@ -1700,80 +1731,89 @@ const Ai = (e, i) => {
1700
1731
  gap: "8px",
1701
1732
  alignSelf: "stretch"
1702
1733
  }),
1703
- playAgainLabel: n(An, { color: _e, textAlign: "center" }),
1734
+ playAgainLabel: n(Pn, { color: Ye, textAlign: "center" }),
1704
1735
  // Joy's solid colour (common.white) stays on the button; the label takes the secondary colour.
1705
- additional: n(Ie, Qn, {
1706
- paddingInline: g("md"),
1736
+ additional: n(Ce, qn, {
1737
+ paddingInline: f("md"),
1707
1738
  color: "#fff",
1708
1739
  backgroundColor: "var(--fu-ucrc-secondary-container)",
1709
1740
  "&:hover": { opacity: 0.9 },
1710
1741
  "& > div": { display: "flex", justifyContent: "center", alignItems: "center", gap: "8px" },
1711
- "& p": { ...An, color: "var(--fu-ucrc-pq-split-secondary)" }
1742
+ "& p": { ...Pn, color: "var(--fu-ucrc-pq-split-secondary)" }
1712
1743
  }),
1713
1744
  alertArea: {
1714
- stacked: n(qn, { flex: "1", width: "100%", minWidth: "100%", maxWidth: "100%" }),
1715
- side: n(qn, { flex: "0 0 50%", width: "50%", minWidth: "50%", maxWidth: "50%" })
1745
+ stacked: n(Dn, { flex: "1", width: "100%", minWidth: "100%", maxWidth: "100%" }),
1746
+ side: n(Dn, { flex: "0 0 50%", width: "50%", minWidth: "50%", maxWidth: "50%" })
1716
1747
  },
1717
- alertWrapper: n({ padding: g("lg") })
1718
- }, Zi = {
1748
+ alertWrapper: n({ padding: f("lg") })
1749
+ }, ea = {
1719
1750
  display: "flex",
1720
1751
  width: "16px",
1721
1752
  height: "16px",
1722
1753
  justifyContent: "flex-end",
1723
1754
  alignItems: "center",
1724
- color: _e
1725
- }, Ki = (e) => {
1726
- var Q, w, P, C, B, O;
1727
- const i = ne(), r = re(), { t: o } = H(), c = Y(), a = St(), l = ue("lg"), s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : c ? Se : ze, x = he(
1755
+ color: Ye
1756
+ }, ta = (e) => {
1757
+ var k, p, q, v, T, F, Q, S, D, z;
1758
+ const i = te(), r = re(), { t: o } = W(), d = Z(), a = kt(), l = ge("lg"), s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? Ie : Se, C = be(
1728
1759
  {
1729
1760
  images: e.personalityQuiz.images,
1730
1761
  imagePlaceholder: s
1731
1762
  },
1732
- G.SPLIT
1733
- ), y = ((Q = e.personalityQuiz.branding) == null ? void 0 : Q.colors) || null, m = (y == null ? void 0 : y.backgroundColor) || r.surfaceVariant, u = r.textColor, b = c ? ((w = e.personalityQuiz.branding) == null ? void 0 : w.images.mobileLogo) || ((P = e.personalityQuiz.branding) == null ? void 0 : P.images.mainLogo) || "" : ((C = e.personalityQuiz.branding) == null ? void 0 : C.images.mainLogo) || "", f = {
1734
- "--fu-ucrc-pq-split-bg": `rgba(${m ? Oe(m || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
1763
+ _.SPLIT
1764
+ ), y = ((k = e.personalityQuiz.branding) == null ? void 0 : k.colors) || null, g = (y == null ? void 0 : y.backgroundColor) || r.surfaceVariant, u = r.textColor, h = d ? ((p = e.personalityQuiz.branding) == null ? void 0 : p.images.mobileLogo) || ((q = e.personalityQuiz.branding) == null ? void 0 : q.images.mainLogo) || "" : ((v = e.personalityQuiz.branding) == null ? void 0 : v.images.mainLogo) || "", m = {
1765
+ "--fu-ucrc-pq-split-bg": `rgba(${g ? We(g || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
1735
1766
  "--fu-ucrc-pq-split-secondary": (y == null ? void 0 : y.secondaryColor) || r.textSecondary
1736
- }, v = Ut(e.personalityQuiz, e.summary), D = !a && b ? /* @__PURE__ */ t(
1737
- V,
1767
+ }, x = Mt(e.personalityQuiz, e.summary), P = !a && h ? /* @__PURE__ */ t(
1768
+ G,
1738
1769
  {
1739
- brandingLogo: b,
1770
+ brandingLogo: h,
1740
1771
  textColor: (y == null ? void 0 : y.contentColor) || i.colorSchemes.dark.textColor,
1741
- label: ((B = e.personalityQuiz.labels) == null ? void 0 : B.sponsor) || null
1772
+ label: ((T = e.personalityQuiz.labels) == null ? void 0 : T.sponsor) || null,
1773
+ primaryUrl: (Q = (F = e.personalityQuiz.branding) == null ? void 0 : F.urls) == null ? void 0 : Q.primaryUrl,
1774
+ secondaryUrl: (D = (S = e.personalityQuiz.branding) == null ? void 0 : S.urls) == null ? void 0 : D.secondaryUrl
1742
1775
  }
1743
- ) : null, S = (k) => {
1744
- var I;
1776
+ ) : null, b = (A) => {
1777
+ var L, $, c, U, R, E, V, J, Y;
1745
1778
  return /* @__PURE__ */ t(
1746
- vi,
1779
+ zi,
1747
1780
  {
1748
1781
  entity: e.personalityQuiz,
1749
1782
  headline: o("personalityQuiz.headline"),
1750
- finalImage: x,
1751
- brandingContent: D,
1752
- isTabulated: k,
1783
+ finalImage: C,
1784
+ brandingContent: P,
1785
+ isTabulated: A,
1753
1786
  alwaysShowImage: !1,
1754
- children: e.summary.personalityQuizId ? /* @__PURE__ */ p("div", { css: ie.questionAreaContent, style: f, children: [
1755
- /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Yi, { personas: v, brandingColors: y }) }),
1756
- (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t("div", { id: "desktop-thanks", css: ie.ctaPanel, children: /* @__PURE__ */ t("div", { css: ie.ctaContainer, children: /* @__PURE__ */ p("div", { css: e.maxAttemptsReached ? ie.ctaContentWrapperTight : ie.ctaContentWrapper, children: [
1787
+ imageClickUrl: $n(
1788
+ ($ = (L = e.personalityQuiz.branding) == null ? void 0 : L.urls) == null ? void 0 : $.primaryUrl,
1789
+ (U = (c = e.personalityQuiz.branding) == null ? void 0 : c.urls) == null ? void 0 : U.secondaryUrl,
1790
+ "image"
1791
+ ),
1792
+ children: e.summary.personalityQuizId ? /* @__PURE__ */ w("div", { css: ie.questionAreaContent, style: m, children: [
1793
+ /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Ji, { personas: x, brandingColors: y }) }),
1794
+ (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t("div", { id: "desktop-thanks", css: ie.ctaPanel, children: /* @__PURE__ */ t("div", { css: ie.ctaContainer, children: /* @__PURE__ */ w("div", { css: e.maxAttemptsReached ? ie.ctaContentWrapperTight : ie.ctaContentWrapper, children: [
1757
1795
  /* @__PURE__ */ t("p", { css: ie.thanks, children: o("classicQuiz.thanksForPlaying") }),
1758
- /* @__PURE__ */ p("div", { css: ie.buttons, children: [
1759
- !e.maxAttemptsReached && /* @__PURE__ */ t("button", { type: "button", css: ie.playAgain, onClick: e.playAgain, children: /* @__PURE__ */ p("div", { css: ie.playAgainContent, children: [
1760
- /* @__PURE__ */ t(Rt, { style: Zi }),
1796
+ /* @__PURE__ */ w("div", { css: ie.buttons, children: [
1797
+ !e.maxAttemptsReached && /* @__PURE__ */ t("button", { type: "button", css: ie.playAgain, onClick: e.playAgain, children: /* @__PURE__ */ w("div", { css: ie.playAgainContent, children: [
1798
+ /* @__PURE__ */ t(Bt, { style: ea }),
1761
1799
  /* @__PURE__ */ t("p", { css: ie.playAgainLabel, children: o("classicQuiz.buttons.playAgain") })
1762
1800
  ] }) }),
1763
- /* @__PURE__ */ t(wt, { additionalCTA: e.additionalCTA, css: ie.additional })
1801
+ /* @__PURE__ */ t(At, { additionalCTA: e.additionalCTA, css: ie.additional })
1764
1802
  ] })
1765
1803
  ] }) }) }),
1766
1804
  e.chanceGameContent,
1767
- a && b && /* @__PURE__ */ t(
1768
- V,
1805
+ a && h && /* @__PURE__ */ t(
1806
+ G,
1769
1807
  {
1770
- brandingLogo: b,
1808
+ brandingLogo: h,
1771
1809
  textColor: (y == null ? void 0 : y.contentColor) || u,
1772
- label: ((I = e.personalityQuiz.labels) == null ? void 0 : I.sponsor) || null
1810
+ label: ((R = e.personalityQuiz.labels) == null ? void 0 : R.sponsor) || null,
1811
+ primaryUrl: (V = (E = e.personalityQuiz.branding) == null ? void 0 : E.urls) == null ? void 0 : V.primaryUrl,
1812
+ secondaryUrl: (Y = (J = e.personalityQuiz.branding) == null ? void 0 : J.urls) == null ? void 0 : Y.secondaryUrl
1773
1813
  }
1774
1814
  )
1775
1815
  ] }) : /* @__PURE__ */ t("div", { css: l ? ie.alertArea.side : ie.alertArea.stacked, children: /* @__PURE__ */ t("div", { css: ie.alertWrapper, children: /* @__PURE__ */ t(
1776
- kt,
1816
+ Pt,
1777
1817
  {
1778
1818
  variant: "error",
1779
1819
  title: o("common.authentication.accessRequired"),
@@ -1783,17 +1823,17 @@ const Ai = (e, i) => {
1783
1823
  }
1784
1824
  );
1785
1825
  };
1786
- return /* @__PURE__ */ t(K, { brandingBorderColor: (y == null ? void 0 : y.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
1787
- Bt,
1826
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (y == null ? void 0 : y.borderColor) || null, children: e.showAnswerExplanations ? /* @__PURE__ */ t(
1827
+ $t,
1788
1828
  {
1789
1829
  questions: e.personalityQuiz.questions,
1790
1830
  userParticipation: e.summary.questions,
1791
- brandingColors: (O = e.personalityQuiz.branding) == null ? void 0 : O.colors,
1792
- resultsLayout: c ? "column" : "row",
1793
- children: S(!0)
1831
+ brandingColors: (z = e.personalityQuiz.branding) == null ? void 0 : z.colors,
1832
+ resultsLayout: d ? "column" : "row",
1833
+ children: b(!0)
1794
1834
  }
1795
- ) : S(!1) });
1796
- }, xt = "var(--fu-ucrc-pq-ort-primary)", Zn = "var(--fu-ucrc-pq-ort-primary-25)", mt = {
1835
+ ) : b(!1) });
1836
+ }, It = "var(--fu-ucrc-pq-ort-primary)", Jn = "var(--fu-ucrc-pq-ort-primary-25)", ht = {
1797
1837
  backdropFilter: "blur(4px)",
1798
1838
  position: "relative",
1799
1839
  "&::before": {
@@ -1809,7 +1849,7 @@ const Ai = (e, i) => {
1809
1849
  zIndex: 0
1810
1850
  },
1811
1851
  "& > *": { position: "relative", zIndex: 1 }
1812
- }, Ye = {
1852
+ }, Ze = {
1813
1853
  position: "relative",
1814
1854
  boxSizing: "border-box",
1815
1855
  display: "flex",
@@ -1822,8 +1862,8 @@ const Ai = (e, i) => {
1822
1862
  minWidth: 0,
1823
1863
  minHeight: "auto",
1824
1864
  margin: 0,
1825
- paddingBlock: g("sm"),
1826
- paddingInline: g("md"),
1865
+ paddingBlock: f("sm"),
1866
+ paddingInline: f("md"),
1827
1867
  border: "none",
1828
1868
  borderBottom: "2px solid transparent",
1829
1869
  borderRadius: 0,
@@ -1841,28 +1881,28 @@ const Ai = (e, i) => {
1841
1881
  "&:focus-visible": { outline: "2px solid var(--fu-ucrc-focus-visible)", outlineOffset: "2px", zIndex: 1 },
1842
1882
  "&:hover": {
1843
1883
  backgroundColor: "var(--fu-ucrc-pq-ort-hover-bg)",
1844
- borderBottom: `2px solid ${Zn}`,
1884
+ borderBottom: `2px solid ${Jn}`,
1845
1885
  color: "#ffffff"
1846
1886
  }
1847
- }, Ln = {
1848
- ...Ye,
1887
+ }, Un = {
1888
+ ...Ze,
1849
1889
  zIndex: 1,
1850
1890
  fontWeight: 600,
1851
1891
  color: "#ffffff",
1852
- borderBottom: `2px solid ${xt}`,
1853
- "&:hover": { ...Ye["&:hover"], borderBottom: `2px solid ${xt}` }
1854
- }, Dn = { borderTopLeftRadius: "var(--fu-ucrc-radius-md)" }, Rn = {
1892
+ borderBottom: `2px solid ${It}`,
1893
+ "&:hover": { ...Ze["&:hover"], borderBottom: `2px solid ${It}` }
1894
+ }, Rn = { borderTopLeftRadius: "var(--fu-ucrc-radius-md)" }, Tn = {
1855
1895
  backgroundSize: "cover",
1856
1896
  backgroundPosition: "center",
1857
1897
  backgroundRepeat: "no-repeat",
1858
1898
  borderRadius: "var(--fu-ucrc-radius-xs)",
1859
1899
  border: "1px solid rgba(255, 255, 255, 0.3)",
1860
1900
  flexShrink: 0
1861
- }, Xi = {
1901
+ }, na = {
1862
1902
  flex: "none",
1863
1903
  textAlign: "center",
1864
1904
  maxWidth: "100%"
1865
- }, j = {
1905
+ }, N = {
1866
1906
  wrapper: n({
1867
1907
  display: "flex",
1868
1908
  flexDirection: "column",
@@ -1871,9 +1911,9 @@ const Ai = (e, i) => {
1871
1911
  alignSelf: "stretch",
1872
1912
  width: "100%"
1873
1913
  }),
1874
- container: n({ marginTop: g("md"), width: "100%" }),
1914
+ container: n({ marginTop: f("md"), width: "100%" }),
1875
1915
  // Joy's Tabs: the body font, 1.5 line height and neutral colour the panels inherit.
1876
- tabs: n(mt, {
1916
+ tabs: n(ht, {
1877
1917
  display: "flex",
1878
1918
  flexDirection: "column",
1879
1919
  width: "100%",
@@ -1893,26 +1933,26 @@ const Ai = (e, i) => {
1893
1933
  padding: 0,
1894
1934
  gap: 0,
1895
1935
  fontSize: "1em",
1896
- borderBottom: `1px solid ${Zn}`,
1936
+ borderBottom: `1px solid ${Jn}`,
1897
1937
  // Joy's divider: the neutral channel at 16% (the overlay is always dark).
1898
1938
  boxShadow: "inset 0 -1px rgba(var(--fu-ucrc-neutral-main-channel) / 0.16)"
1899
1939
  }),
1900
1940
  tab: {
1901
- off: n(Ye),
1902
- on: n(Ln),
1903
- firstOff: n(Ye, { "&:hover": Dn }),
1904
- firstOn: n(Ln, Dn)
1941
+ off: n(Ze),
1942
+ on: n(Un),
1943
+ firstOff: n(Ze, { "&:hover": Rn }),
1944
+ firstOn: n(Un, Rn)
1905
1945
  },
1906
1946
  labelRow: n({
1907
1947
  display: "flex",
1908
1948
  justifyContent: "space-between",
1909
1949
  alignItems: "center",
1910
1950
  width: "100%",
1911
- gap: g("sm")
1951
+ gap: f("sm")
1912
1952
  }),
1913
- logo: n(Rn, { width: "24px", height: "24px" }),
1914
- logoMobile: n(Rn, { width: "20px", height: "20px" }),
1915
- label: n(fe, {
1953
+ logo: n(Tn, { width: "24px", height: "24px" }),
1954
+ logoMobile: n(Tn, { width: "20px", height: "20px" }),
1955
+ label: n(ye, {
1916
1956
  fontSize: "inherit",
1917
1957
  fontWeight: "inherit",
1918
1958
  fontFamily: "var(--fu-ucrc-font-secondary)",
@@ -1921,11 +1961,11 @@ const Ai = (e, i) => {
1921
1961
  unicodeBidi: "plaintext",
1922
1962
  flex: 1
1923
1963
  }),
1924
- percentage: n(fe, {
1925
- backgroundColor: xt,
1964
+ percentage: n(ye, {
1965
+ backgroundColor: It,
1926
1966
  color: "var(--fu-ucrc-pq-ort-on-primary)",
1927
- paddingInline: g("xs"),
1928
- paddingBlock: g("3xs"),
1967
+ paddingInline: f("xs"),
1968
+ paddingBlock: f("3xs"),
1929
1969
  borderRadius: "var(--fu-ucrc-radius-sm)",
1930
1970
  fontSize: "0.75em",
1931
1971
  fontWeight: 600,
@@ -1934,10 +1974,10 @@ const Ai = (e, i) => {
1934
1974
  lineHeight: 1.2
1935
1975
  }),
1936
1976
  panel: n({ flexGrow: 1, fontSize: "1em", padding: 0 }),
1937
- content: n(mt, { padding: g("lg"), minHeight: "200px" }),
1938
- contentMobile: n(mt, { padding: g("md"), minHeight: "200px" }),
1977
+ content: n(ht, { padding: f("lg"), minHeight: "200px" }),
1978
+ contentMobile: n(ht, { padding: f("md"), minHeight: "200px" }),
1939
1979
  // Rendered on desktop only, so always a row.
1940
- withImage: n({ display: "flex", flexDirection: "row", alignItems: "flex-start", gap: g("lg") }),
1980
+ withImage: n({ display: "flex", flexDirection: "row", alignItems: "flex-start", gap: f("lg") }),
1941
1981
  imageSection: n({ display: "flex", justifyContent: "center", alignItems: "center", flex: "0 0 auto" }),
1942
1982
  personaImage: n({
1943
1983
  width: "250px",
@@ -1948,117 +1988,117 @@ const Ai = (e, i) => {
1948
1988
  borderRadius: "var(--fu-ucrc-radius-md)",
1949
1989
  border: "1px solid rgba(255, 255, 255, 0.2)"
1950
1990
  }),
1951
- descriptionSection: n(Xi),
1991
+ descriptionSection: n(na),
1952
1992
  descriptionSectionWide: n({ flex: "1", textAlign: "left", maxWidth: "60%" }),
1953
1993
  descriptionOnly: n({ display: "flex", justifyContent: "center", alignItems: "center", minHeight: "150px" }),
1954
1994
  description: n({ color: "var(--fu-ucrc-pq-ort-text)", fontFamily: "var(--fu-ucrc-font-primary)", lineHeight: 1.6 })
1955
- }, Ji = ({
1995
+ }, ia = ({
1956
1996
  personas: e,
1957
1997
  brandingColors: i,
1958
1998
  contentBgColor: r
1959
1999
  }) => {
1960
- var k;
1961
- const [o, c] = U(0), [a, l] = U(0), s = Ce([]), x = Je(), y = Ke(), m = ne(), u = Y(), b = ue("sm"), f = ue("md");
2000
+ var Q;
2001
+ const [o, d] = M(0), [a, l] = M(0), s = ve([]), C = et(), y = Xe(), g = te(), u = Z(), h = ge("sm"), m = ge("md");
1962
2002
  if (!e || e.length === 0)
1963
2003
  return null;
1964
- const v = m.colorSchemes.dark, D = (i == null ? void 0 : i.primaryColor) || v.palette.primary.plainColor, S = {
1965
- "--fu-ucrc-pq-ort-primary": D,
1966
- "--fu-ucrc-pq-ort-primary-25": `${D}40`,
2004
+ const x = g.colorSchemes.dark, P = (i == null ? void 0 : i.primaryColor) || x.palette.primary.plainColor, b = {
2005
+ "--fu-ucrc-pq-ort-primary": P,
2006
+ "--fu-ucrc-pq-ort-primary-25": `${P}40`,
1967
2007
  "--fu-ucrc-pq-ort-content-bg": r,
1968
- "--fu-ucrc-pq-ort-text": v.textColor,
1969
- "--fu-ucrc-pq-ort-hover-bg": v.surface,
1970
- "--fu-ucrc-pq-ort-on-primary": v.palette.primary.onPrimary
1971
- }, Q = {
2008
+ "--fu-ucrc-pq-ort-text": x.textColor,
2009
+ "--fu-ucrc-pq-ort-hover-bg": x.surface,
2010
+ "--fu-ucrc-pq-ort-on-primary": x.palette.primary.onPrimary
2011
+ }, k = {
1972
2012
  "--fu-ucrc-pq-ort-list-direction": u ? "column" : "row",
1973
2013
  "--fu-ucrc-pq-ort-list-wrap": u ? "nowrap" : "wrap",
1974
2014
  "--fu-ucrc-pq-ort-tab-width": u ? "100%" : "auto",
1975
- "--fu-ucrc-pq-ort-tab-size": b ? "0.9em" : "0.85em"
1976
- }, w = (I) => {
2015
+ "--fu-ucrc-pq-ort-tab-size": h ? "0.9em" : "0.85em"
2016
+ }, p = (S) => {
1977
2017
  var z;
1978
- const R = (I + e.length) % e.length;
1979
- l(R), (z = s.current[R]) == null || z.focus();
1980
- }, P = (I) => {
1981
- const R = y ? "ArrowLeft" : "ArrowRight", z = y ? "ArrowRight" : "ArrowLeft", A = { [R]: a + 1, [z]: a - 1, Home: 0, End: e.length - 1 }[I.key];
1982
- A !== void 0 && (I.preventDefault(), w(A));
1983
- }, C = e[o], B = ((k = C == null ? void 0 : C.images) == null ? void 0 : k.main) || null, O = (I) => /* @__PURE__ */ t("span", { css: j.description, dir: "auto", dangerouslySetInnerHTML: { __html: I } });
1984
- return /* @__PURE__ */ t("div", { css: j.wrapper, style: S, children: /* @__PURE__ */ t("div", { css: j.container, children: /* @__PURE__ */ p("div", { css: j.tabs, children: [
2018
+ const D = (S + e.length) % e.length;
2019
+ l(D), (z = s.current[D]) == null || z.focus();
2020
+ }, q = (S) => {
2021
+ const D = y ? "ArrowLeft" : "ArrowRight", z = y ? "ArrowRight" : "ArrowLeft", A = { [D]: a + 1, [z]: a - 1, Home: 0, End: e.length - 1 }[S.key];
2022
+ A !== void 0 && (S.preventDefault(), p(A));
2023
+ }, v = e[o], T = ((Q = v == null ? void 0 : v.images) == null ? void 0 : Q.main) || null, F = (S) => /* @__PURE__ */ t("span", { css: N.description, dir: "auto", dangerouslySetInnerHTML: { __html: S } });
2024
+ return /* @__PURE__ */ t("div", { css: N.wrapper, style: b, children: /* @__PURE__ */ t("div", { css: N.container, children: /* @__PURE__ */ w("div", { css: N.tabs, children: [
1985
2025
  /* @__PURE__ */ t(
1986
2026
  "div",
1987
2027
  {
1988
2028
  role: "tablist",
1989
2029
  "aria-orientation": "horizontal",
1990
- css: j.list,
1991
- style: Q,
1992
- onKeyDown: P,
1993
- children: e.map((I, R) => {
1994
- var q, M, $;
1995
- const z = R === o, A = ((q = I.images) == null ? void 0 : q.main) || null, L = ((M = I.images) == null ? void 0 : M.mobile) || (($ = I.images) == null ? void 0 : $.main) || null, N = u ? !!L : !!A && !I.description, d = u ? L : A;
2030
+ css: N.list,
2031
+ style: k,
2032
+ onKeyDown: q,
2033
+ children: e.map((S, D) => {
2034
+ var U, R, E;
2035
+ const z = D === o, A = ((U = S.images) == null ? void 0 : U.main) || null, L = ((R = S.images) == null ? void 0 : R.mobile) || ((E = S.images) == null ? void 0 : E.main) || null, $ = u ? !!L : !!A && !S.description, c = u ? L : A;
1996
2036
  return /* @__PURE__ */ t(
1997
2037
  "button",
1998
2038
  {
1999
- ref: (ee) => {
2000
- s.current[R] = ee;
2039
+ ref: (V) => {
2040
+ s.current[D] = V;
2001
2041
  },
2002
2042
  type: "button",
2003
2043
  role: "tab",
2004
- id: `${x}-tab-${R}`,
2044
+ id: `${C}-tab-${D}`,
2005
2045
  "aria-selected": z,
2006
- "aria-controls": z && I.description ? `${x}-panel` : void 0,
2007
- tabIndex: R === a ? 0 : -1,
2008
- css: R === 0 ? z ? j.tab.firstOn : j.tab.firstOff : z ? j.tab.on : j.tab.off,
2046
+ "aria-controls": z && S.description ? `${C}-panel` : void 0,
2047
+ tabIndex: D === a ? 0 : -1,
2048
+ css: D === 0 ? z ? N.tab.firstOn : N.tab.firstOff : z ? N.tab.on : N.tab.off,
2009
2049
  onClick: () => {
2010
- c(R), l(R);
2050
+ d(D), l(D);
2011
2051
  },
2012
- onFocus: () => l(R),
2013
- children: /* @__PURE__ */ p("div", { css: j.labelRow, children: [
2014
- N && d && /* @__PURE__ */ t(
2052
+ onFocus: () => l(D),
2053
+ children: /* @__PURE__ */ w("div", { css: N.labelRow, children: [
2054
+ $ && c && /* @__PURE__ */ t(
2015
2055
  "div",
2016
2056
  {
2017
- css: u ? j.logoMobile : j.logo,
2018
- style: { backgroundImage: `url("${d}")` }
2057
+ css: u ? N.logoMobile : N.logo,
2058
+ style: { backgroundImage: `url("${c}")` }
2019
2059
  }
2020
2060
  ),
2021
- /* @__PURE__ */ t("p", { css: j.label, children: I.title }),
2022
- /* @__PURE__ */ p("p", { css: j.percentage, children: [
2023
- I.percent,
2061
+ /* @__PURE__ */ t("p", { css: N.label, children: S.title }),
2062
+ /* @__PURE__ */ w("p", { css: N.percentage, children: [
2063
+ S.percent,
2024
2064
  "%"
2025
2065
  ] })
2026
2066
  ] })
2027
2067
  },
2028
- I.personaId
2068
+ S.personaId
2029
2069
  );
2030
2070
  })
2031
2071
  }
2032
2072
  ),
2033
- (C == null ? void 0 : C.description) && /* @__PURE__ */ t("div", { role: "tabpanel", id: `${x}-panel`, "aria-labelledby": `${x}-tab-${o}`, css: j.panel, children: /* @__PURE__ */ t("div", { css: u ? j.contentMobile : j.content, children: B && !u ? /* @__PURE__ */ p("div", { css: j.withImage, children: [
2034
- /* @__PURE__ */ t("div", { css: j.imageSection, children: /* @__PURE__ */ t("div", { css: j.personaImage, style: { backgroundImage: `url("${B}")` } }) }),
2035
- /* @__PURE__ */ t("div", { css: f ? j.descriptionSectionWide : j.descriptionSection, children: O(C.description) })
2036
- ] }) : /* @__PURE__ */ t("div", { css: j.descriptionOnly, children: O(C.description) }) }) })
2073
+ (v == null ? void 0 : v.description) && /* @__PURE__ */ t("div", { role: "tabpanel", id: `${C}-panel`, "aria-labelledby": `${C}-tab-${o}`, css: N.panel, children: /* @__PURE__ */ t("div", { css: u ? N.contentMobile : N.content, children: T && !u ? /* @__PURE__ */ w("div", { css: N.withImage, children: [
2074
+ /* @__PURE__ */ t("div", { css: N.imageSection, children: /* @__PURE__ */ t("div", { css: N.personaImage, style: { backgroundImage: `url("${T}")` } }) }),
2075
+ /* @__PURE__ */ t("div", { css: m ? N.descriptionSectionWide : N.descriptionSection, children: F(v.description) })
2076
+ ] }) : /* @__PURE__ */ t("div", { css: N.descriptionOnly, children: F(v.description) }) }) })
2037
2077
  ] }) }) });
2038
- }, vt = "var(--fu-ucrc-pq-oss-text-primary)", Fe = { display: "flex", justifyContent: "center", alignItems: "center" }, Tn = {
2039
- ...fe,
2078
+ }, St = "var(--fu-ucrc-pq-oss-text-primary)", He = { display: "flex", justifyContent: "center", alignItems: "center" }, Bn = {
2079
+ ...ye,
2040
2080
  fontFamily: "var(--fu-ucrc-font-primary)",
2041
2081
  fontSize: "0.9375em",
2042
2082
  fontStyle: "normal",
2043
2083
  fontWeight: 500,
2044
2084
  lineHeight: "24px",
2045
2085
  textTransform: "uppercase"
2046
- }, Bn = {
2047
- ...Fe,
2086
+ }, En = {
2087
+ ...He,
2048
2088
  flexDirection: "column",
2049
2089
  gap: "8px",
2050
2090
  borderRadius: "var(--fu-ucrc-pq-oss-radius-xl)",
2051
2091
  color: "#fff",
2052
2092
  fontSize: "0.9375em"
2053
- }, de = {
2054
- wrapperContent: n({ display: "flex", flexDirection: "column", gap: "40px", padding: g("xl") }),
2093
+ }, ue = {
2094
+ wrapperContent: n({ display: "flex", flexDirection: "column", gap: "40px", padding: f("xl") }),
2055
2095
  main: n({ display: "flex", flexDirection: "column", gap: "24px", zIndex: 10 }),
2056
2096
  results: n({ display: "flex", flexDirection: "column", alignSelf: "stretch" }),
2057
- cta: n({ ...Fe, paddingBlock: g("xs"), gap: "24px", flex: "1 0 0" }),
2058
- ctaContent: n({ ...Fe, flexDirection: "column", gap: g("md"), flex: "1 0 0" }),
2097
+ cta: n({ ...He, paddingBlock: f("xs"), gap: "24px", flex: "1 0 0" }),
2098
+ ctaContent: n({ ...He, flexDirection: "column", gap: f("md"), flex: "1 0 0" }),
2059
2099
  thanks: n({
2060
- ...fe,
2061
- color: vt,
2100
+ ...ye,
2101
+ color: St,
2062
2102
  textAlign: "center",
2063
2103
  fontFamily: "var(--fu-ucrc-font-primary)",
2064
2104
  fontSize: "1.25em",
@@ -2067,8 +2107,8 @@ const Ai = (e, i) => {
2067
2107
  lineHeight: "120%",
2068
2108
  letterSpacing: "0.15px"
2069
2109
  }),
2070
- buttons: n({ display: "flex", flexDirection: "column", gap: g("md") }),
2071
- playAgain: n(Ie, Bn, {
2110
+ buttons: n({ display: "flex", flexDirection: "column", gap: f("md") }),
2111
+ playAgain: n(Ce, En, {
2072
2112
  minHeight: "48px",
2073
2113
  paddingBlock: "12px",
2074
2114
  paddingRight: "24px",
@@ -2076,62 +2116,62 @@ const Ai = (e, i) => {
2076
2116
  backgroundColor: "var(--fu-ucrc-pq-oss-play-bg)",
2077
2117
  "&:hover": { backgroundColor: "var(--fu-ucrc-pq-oss-play-hover)" }
2078
2118
  }),
2079
- playAgainContent: n({ ...Fe, gap: "8px", alignSelf: "stretch" }),
2080
- playAgainText: n({ ...Tn, letterSpacing: "0.46px", textAlign: "center", color: vt }),
2081
- additionalCta: n(Ie, Bn, {
2082
- paddingBlock: g("sm"),
2083
- paddingInline: g("md"),
2119
+ playAgainContent: n({ ...He, gap: "8px", alignSelf: "stretch" }),
2120
+ playAgainText: n({ ...Bn, letterSpacing: "0.46px", textAlign: "center", color: St }),
2121
+ additionalCta: n(Ce, En, {
2122
+ paddingBlock: f("sm"),
2123
+ paddingInline: f("md"),
2084
2124
  backgroundColor: "var(--fu-ucrc-pq-oss-secondary-container)",
2085
2125
  "&:hover": { opacity: 0.9 },
2086
- "& > div": { ...Fe, gap: "8px" },
2087
- "& p": { ...Tn, letterSpacing: "0.40px", color: "var(--fu-ucrc-pq-oss-secondary)" }
2126
+ "& > div": { ...He, gap: "8px" },
2127
+ "& p": { ...Bn, letterSpacing: "0.40px", color: "var(--fu-ucrc-pq-oss-secondary)" }
2088
2128
  })
2089
- }, ea = {
2129
+ }, aa = {
2090
2130
  display: "flex",
2091
2131
  width: "24px",
2092
2132
  height: "24px",
2093
2133
  justifyContent: "center",
2094
2134
  alignItems: "center",
2095
- color: vt
2096
- }, ta = (e) => {
2097
- var S;
2098
- const i = ne(), { t: r } = H(), o = Un(G.OVERLAY), c = Y(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : c ? Se : ze, { brandingImage: l, brandingColors: s, brandingLogo: x } = He(
2135
+ color: St
2136
+ }, ra = (e) => {
2137
+ var b;
2138
+ const i = te(), { t: r } = W(), o = Mn(_.OVERLAY), d = Z(), a = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : d ? Ie : Se, { brandingImage: l, brandingColors: s, brandingLogo: C } = Oe(
2099
2139
  e.personalityQuiz.branding || null
2100
- ), y = he(
2140
+ ), y = be(
2101
2141
  { images: e.personalityQuiz.images, imagePlaceholder: a },
2102
- G.OVERLAY
2103
- ), m = l || y, u = i.colorSchemes.dark, b = (s == null ? void 0 : s.backgroundColor) || u.onSurface, f = {
2142
+ _.OVERLAY
2143
+ ), g = l || y, u = i.colorSchemes.dark, h = (s == null ? void 0 : s.backgroundColor) || u.onSurface, m = {
2104
2144
  "--fu-ucrc-pq-oss-text-primary": u.textPrimary,
2105
2145
  "--fu-ucrc-pq-oss-secondary": (s == null ? void 0 : s.secondaryColor) || u.textSecondary,
2106
2146
  "--fu-ucrc-pq-oss-secondary-container": u.secondaryContainer,
2107
2147
  "--fu-ucrc-pq-oss-play-bg": u.onSurface,
2108
2148
  "--fu-ucrc-pq-oss-play-hover": u.surfaceVariant,
2109
2149
  "--fu-ucrc-pq-oss-radius-xl": i.customRadius.light.xl
2110
- }, v = Ut(e.personalityQuiz, e.summary), D = () => {
2111
- var Q;
2112
- return /* @__PURE__ */ p("div", { css: de.main, style: f, children: [
2113
- e.summary.personalityQuizId ? /* @__PURE__ */ p(Re, { children: [
2114
- /* @__PURE__ */ t("div", { css: de.results, children: /* @__PURE__ */ t(
2115
- Ji,
2150
+ }, x = Mt(e.personalityQuiz, e.summary), P = () => {
2151
+ var k, p, q, v, T;
2152
+ return /* @__PURE__ */ w("div", { css: ue.main, style: m, children: [
2153
+ e.summary.personalityQuizId ? /* @__PURE__ */ w(Re, { children: [
2154
+ /* @__PURE__ */ t("div", { css: ue.results, children: /* @__PURE__ */ t(
2155
+ ia,
2116
2156
  {
2117
- personas: v,
2157
+ personas: x,
2118
2158
  brandingColors: s,
2119
- contentBgColor: b
2159
+ contentBgColor: h
2120
2160
  }
2121
2161
  ) }),
2122
- (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t("div", { css: de.cta, children: /* @__PURE__ */ p("div", { css: de.ctaContent, children: [
2123
- /* @__PURE__ */ t("p", { css: de.thanks, children: r("personalityQuiz.thanksForPlaying") }),
2124
- /* @__PURE__ */ p("div", { css: de.buttons, children: [
2125
- !e.maxAttemptsReached && /* @__PURE__ */ t("button", { type: "button", css: de.playAgain, onClick: e.playAgain, children: /* @__PURE__ */ p("div", { css: de.playAgainContent, children: [
2126
- /* @__PURE__ */ t(Rt, { style: ea }),
2127
- /* @__PURE__ */ t("p", { css: de.playAgainText, children: r("personalityQuiz.buttons.playAgain") })
2162
+ (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t("div", { css: ue.cta, children: /* @__PURE__ */ w("div", { css: ue.ctaContent, children: [
2163
+ /* @__PURE__ */ t("p", { css: ue.thanks, children: r("personalityQuiz.thanksForPlaying") }),
2164
+ /* @__PURE__ */ w("div", { css: ue.buttons, children: [
2165
+ !e.maxAttemptsReached && /* @__PURE__ */ t("button", { type: "button", css: ue.playAgain, onClick: e.playAgain, children: /* @__PURE__ */ w("div", { css: ue.playAgainContent, children: [
2166
+ /* @__PURE__ */ t(Bt, { style: aa }),
2167
+ /* @__PURE__ */ t("p", { css: ue.playAgainText, children: r("personalityQuiz.buttons.playAgain") })
2128
2168
  ] }) }),
2129
- /* @__PURE__ */ t(wt, { additionalCTA: e.additionalCTA, css: de.additionalCta })
2169
+ /* @__PURE__ */ t(At, { additionalCTA: e.additionalCTA, css: ue.additionalCta })
2130
2170
  ] })
2131
2171
  ] }) }),
2132
2172
  e.chanceGameContent
2133
2173
  ] }) : /* @__PURE__ */ t(
2134
- kt,
2174
+ Pt,
2135
2175
  {
2136
2176
  variant: "error",
2137
2177
  title: r("common.authentication.accessRequired"),
@@ -2139,59 +2179,63 @@ const Ai = (e, i) => {
2139
2179
  }
2140
2180
  ),
2141
2181
  /* @__PURE__ */ t(
2142
- V,
2182
+ G,
2143
2183
  {
2144
- brandingLogo: x,
2184
+ brandingLogo: C,
2145
2185
  textColor: u.textColor,
2146
- label: ((Q = e.personalityQuiz.labels) == null ? void 0 : Q.sponsor) || null
2186
+ label: ((k = e.personalityQuiz.labels) == null ? void 0 : k.sponsor) || null,
2187
+ primaryUrl: (q = (p = e.personalityQuiz.branding) == null ? void 0 : p.urls) == null ? void 0 : q.primaryUrl,
2188
+ secondaryUrl: (T = (v = e.personalityQuiz.branding) == null ? void 0 : v.urls) == null ? void 0 : T.secondaryUrl
2147
2189
  }
2148
2190
  )
2149
2191
  ] });
2150
2192
  };
2151
2193
  return /* @__PURE__ */ t(
2152
- Ci,
2194
+ wi,
2153
2195
  {
2154
2196
  entity: e.personalityQuiz,
2155
- backgroundImage: Mn(m),
2197
+ backgroundImage: Fn(g),
2156
2198
  imageBackgroundGradient: o,
2157
2199
  isWrappedWithScoreStateWrapper: e.showAnswerExplanations,
2158
2200
  children: e.showAnswerExplanations ? /* @__PURE__ */ t(
2159
- Bt,
2201
+ $t,
2160
2202
  {
2161
2203
  questions: e.personalityQuiz.questions,
2162
2204
  userParticipation: e.summary.questions,
2163
2205
  resultsLayout: "block",
2164
2206
  isOverlayVariant: !0,
2165
- brandingColors: (S = e.personalityQuiz.branding) == null ? void 0 : S.colors,
2166
- children: /* @__PURE__ */ t("div", { css: de.wrapperContent, children: D() })
2207
+ brandingColors: (b = e.personalityQuiz.branding) == null ? void 0 : b.colors,
2208
+ children: /* @__PURE__ */ t("div", { css: ue.wrapperContent, children: P() })
2167
2209
  }
2168
- ) : D()
2210
+ ) : P()
2169
2211
  }
2170
2212
  );
2171
- }, na = () => {
2172
- const { t: e } = H();
2173
- return /* @__PURE__ */ t(K, { brandingBorderColor: null, children: /* @__PURE__ */ t(Ii, { title: e("personalityQuiz.quizNotFound"), message: e("personalityQuiz.quizNotFoundDescription") }) });
2174
- }, ia = ({
2213
+ }, oa = () => {
2214
+ const { t: e } = W();
2215
+ return /* @__PURE__ */ t(X, { brandingBorderColor: null, children: /* @__PURE__ */ t(ki, { title: e("personalityQuiz.quizNotFound"), message: e("personalityQuiz.quizNotFoundDescription") }) });
2216
+ }, la = ({
2175
2217
  personalityQuiz: e,
2176
2218
  template: i,
2177
2219
  imagePosition: r,
2178
2220
  defaultImagePlaceholderUrl: o,
2179
- rulesDisplay: c
2221
+ rulesDisplay: d
2180
2222
  }) => {
2181
2223
  var u;
2182
- const { t: a } = H(), l = Y(), s = ((u = e.branding) == null ? void 0 : u.colors) || null, { brandingLogo: x } = He(
2224
+ const { t: a } = W(), l = Z(), s = ((u = e.branding) == null ? void 0 : u.colors) || null, { brandingLogo: C } = Oe(
2183
2225
  e.branding || null
2184
- ), y = (b) => {
2185
- var f;
2226
+ ), y = (h) => {
2227
+ var m, x, P, b, k;
2186
2228
  return /* @__PURE__ */ t(
2187
- V,
2229
+ G,
2188
2230
  {
2189
- brandingLogo: x,
2190
- textColor: b,
2191
- label: ((f = e.labels) == null ? void 0 : f.sponsor) || null
2231
+ brandingLogo: C,
2232
+ textColor: h,
2233
+ label: ((m = e.labels) == null ? void 0 : m.sponsor) || null,
2234
+ primaryUrl: (P = (x = e.branding) == null ? void 0 : x.urls) == null ? void 0 : P.primaryUrl,
2235
+ secondaryUrl: (k = (b = e.branding) == null ? void 0 : b.urls) == null ? void 0 : k.secondaryUrl
2192
2236
  }
2193
2237
  );
2194
- }, m = {
2238
+ }, g = {
2195
2239
  entity: e,
2196
2240
  headline: a("personalityQuiz.headline"),
2197
2241
  tryAgainButtonText: "",
@@ -2200,33 +2244,33 @@ const Ai = (e, i) => {
2200
2244
  customAlertTitle: a("personalityQuiz.gameNotAvailable"),
2201
2245
  customAlertMessage: a("personalityQuiz.gameNotAvailableDescription"),
2202
2246
  renderPresentedBy: y,
2203
- rulesDisplay: c
2247
+ rulesDisplay: d
2204
2248
  };
2205
- return i === G.OVERLAY ? /* @__PURE__ */ t(
2206
- Fn,
2249
+ return i === _.OVERLAY ? /* @__PURE__ */ t(
2250
+ Wn,
2207
2251
  {
2208
- ...m,
2209
- defaultImagePlaceholderUrl: o || (l ? Se : ze)
2252
+ ...g,
2253
+ defaultImagePlaceholderUrl: o || (l ? Ie : Se)
2210
2254
  }
2211
- ) : i === G.SPLIT ? /* @__PURE__ */ t(K, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
2212
- Hn,
2255
+ ) : i === _.SPLIT ? /* @__PURE__ */ t(X, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
2256
+ Vn,
2213
2257
  {
2214
- ...m,
2258
+ ...g,
2215
2259
  defaultImagePlaceholderUrl: o
2216
2260
  }
2217
- ) }) : /* @__PURE__ */ t(K, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
2218
- On,
2261
+ ) }) : /* @__PURE__ */ t(X, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
2262
+ jn,
2219
2263
  {
2220
- ...m,
2264
+ ...g,
2221
2265
  imagePosition: r || "left",
2222
2266
  defaultImagePlaceholderUrl: o
2223
2267
  }
2224
2268
  ) });
2225
- }, aa = (e) => {
2226
- var c, a, l, s;
2227
- const i = ((c = e.personalityQuiz.branding) == null ? void 0 : c.colors) || null, r = Y() ? ((a = e.personalityQuiz.branding) == null ? void 0 : a.images.mobileLogo) || ((l = e.personalityQuiz.branding) == null ? void 0 : l.images.mainLogo) || "" : ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mainLogo) || "", { t: o } = H();
2228
- return /* @__PURE__ */ t(K, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t(
2229
- On,
2269
+ }, sa = (e) => {
2270
+ var d, a, l, s;
2271
+ const i = ((d = e.personalityQuiz.branding) == null ? void 0 : d.colors) || null, r = Z() ? ((a = e.personalityQuiz.branding) == null ? void 0 : a.images.mobileLogo) || ((l = e.personalityQuiz.branding) == null ? void 0 : l.images.mainLogo) || "" : ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mainLogo) || "", { t: o } = W();
2272
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t(
2273
+ jn,
2230
2274
  {
2231
2275
  entity: e.personalityQuiz,
2232
2276
  headline: o("personalityQuiz.headline"),
@@ -2237,24 +2281,26 @@ const Ai = (e, i) => {
2237
2281
  toggleTryAgain: e.toggleTryAgain,
2238
2282
  apiErrorMessage: e.apiErrorMessage,
2239
2283
  rulesDisplay: e.rulesDisplay,
2240
- renderPresentedBy: (x) => {
2241
- var y;
2284
+ renderPresentedBy: (C) => {
2285
+ var y, g, u, h, m;
2242
2286
  return /* @__PURE__ */ t(
2243
- V,
2287
+ G,
2244
2288
  {
2245
2289
  brandingLogo: r,
2246
- textColor: x,
2247
- label: ((y = e.personalityQuiz.labels) == null ? void 0 : y.sponsor) || null
2290
+ textColor: C,
2291
+ label: ((y = e.personalityQuiz.labels) == null ? void 0 : y.sponsor) || null,
2292
+ primaryUrl: (u = (g = e.personalityQuiz.branding) == null ? void 0 : g.urls) == null ? void 0 : u.primaryUrl,
2293
+ secondaryUrl: (m = (h = e.personalityQuiz.branding) == null ? void 0 : h.urls) == null ? void 0 : m.secondaryUrl
2248
2294
  }
2249
2295
  );
2250
2296
  }
2251
2297
  }
2252
2298
  ) });
2253
- }, ra = (e) => {
2254
- var a, l, s, x;
2255
- const i = Y(), { t: r } = H(), o = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, c = i ? ((l = e.personalityQuiz.branding) == null ? void 0 : l.images.mobileLogo) || ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mainLogo) || "" : ((x = e.personalityQuiz.branding) == null ? void 0 : x.images.mainLogo) || "";
2256
- return /* @__PURE__ */ t(K, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ t(
2257
- Hn,
2299
+ }, ca = (e) => {
2300
+ var a, l, s, C;
2301
+ const i = Z(), { t: r } = W(), o = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, d = i ? ((l = e.personalityQuiz.branding) == null ? void 0 : l.images.mobileLogo) || ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mainLogo) || "" : ((C = e.personalityQuiz.branding) == null ? void 0 : C.images.mainLogo) || "";
2302
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ t(
2303
+ Vn,
2258
2304
  {
2259
2305
  entity: e.personalityQuiz,
2260
2306
  headline: r("personalityQuiz.headline"),
@@ -2265,22 +2311,24 @@ const Ai = (e, i) => {
2265
2311
  apiErrorMessage: e.apiErrorMessage,
2266
2312
  rulesDisplay: e.rulesDisplay,
2267
2313
  renderPresentedBy: (y) => {
2268
- var m;
2314
+ var g, u, h, m, x;
2269
2315
  return /* @__PURE__ */ t(
2270
- V,
2316
+ G,
2271
2317
  {
2272
- brandingLogo: c,
2318
+ brandingLogo: d,
2273
2319
  textColor: y,
2274
- label: ((m = e.personalityQuiz.labels) == null ? void 0 : m.sponsor) || null
2320
+ label: ((g = e.personalityQuiz.labels) == null ? void 0 : g.sponsor) || null,
2321
+ primaryUrl: (h = (u = e.personalityQuiz.branding) == null ? void 0 : u.urls) == null ? void 0 : h.primaryUrl,
2322
+ secondaryUrl: (x = (m = e.personalityQuiz.branding) == null ? void 0 : m.urls) == null ? void 0 : x.secondaryUrl
2275
2323
  }
2276
2324
  );
2277
2325
  }
2278
2326
  }
2279
2327
  ) });
2280
- }, oa = (e) => {
2281
- const { t: i } = H(), r = Y(), o = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Se : ze, { brandingLogo: c } = He(e.personalityQuiz.branding || null);
2328
+ }, da = (e) => {
2329
+ const { t: i } = W(), r = Z(), o = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Ie : Se, { brandingLogo: d } = Oe(e.personalityQuiz.branding || null);
2282
2330
  return /* @__PURE__ */ t(
2283
- Fn,
2331
+ Wn,
2284
2332
  {
2285
2333
  entity: e.personalityQuiz,
2286
2334
  headline: i("personalityQuiz.headline"),
@@ -2291,105 +2339,113 @@ const Ai = (e, i) => {
2291
2339
  apiErrorMessage: e.apiErrorMessage,
2292
2340
  rulesDisplay: e.rulesDisplay,
2293
2341
  renderPresentedBy: (a) => {
2294
- var l;
2342
+ var l, s, C, y, g;
2295
2343
  return /* @__PURE__ */ t(
2296
- V,
2344
+ G,
2297
2345
  {
2298
- brandingLogo: c,
2346
+ brandingLogo: d,
2299
2347
  textColor: a,
2300
- label: ((l = e.personalityQuiz.labels) == null ? void 0 : l.sponsor) || null
2348
+ label: ((l = e.personalityQuiz.labels) == null ? void 0 : l.sponsor) || null,
2349
+ primaryUrl: (C = (s = e.personalityQuiz.branding) == null ? void 0 : s.urls) == null ? void 0 : C.primaryUrl,
2350
+ secondaryUrl: (g = (y = e.personalityQuiz.branding) == null ? void 0 : y.urls) == null ? void 0 : g.secondaryUrl
2301
2351
  }
2302
2352
  );
2303
2353
  }
2304
2354
  }
2305
2355
  );
2306
- }, la = (e) => {
2307
- var u, b, f, v, D;
2308
- const i = ((u = e.personalityQuiz.branding) == null ? void 0 : u.colors) || null, r = Y(), o = ne(), c = re(), a = he(
2356
+ }, ua = (e) => {
2357
+ var u, h, m, x, P, b, k, p, q;
2358
+ const i = ((u = e.personalityQuiz.branding) == null ? void 0 : u.colors) || null, r = Z(), o = te(), d = re(), a = be(
2309
2359
  {
2310
2360
  images: e.personalityQuiz.images,
2311
2361
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
2312
2362
  },
2313
- G.STANDARD
2314
- ), l = (i == null ? void 0 : i.primaryColor) || c.palette.primary.plainColor, s = (i == null ? void 0 : i.contentColor) || c.textColor, x = r ? ((b = e.personalityQuiz.branding) == null ? void 0 : b.images.mobileLogo) || ((f = e.personalityQuiz.branding) == null ? void 0 : f.images.mainLogo) || "" : ((v = e.personalityQuiz.branding) == null ? void 0 : v.images.mainLogo) || "", { t: y } = H(), m = e.imagePosition || "left";
2315
- return /* @__PURE__ */ t(K, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t(
2316
- Si,
2363
+ _.STANDARD
2364
+ ), l = (i == null ? void 0 : i.primaryColor) || d.palette.primary.plainColor, s = (i == null ? void 0 : i.contentColor) || d.textColor, C = r ? ((h = e.personalityQuiz.branding) == null ? void 0 : h.images.mobileLogo) || ((m = e.personalityQuiz.branding) == null ? void 0 : m.images.mainLogo) || "" : ((x = e.personalityQuiz.branding) == null ? void 0 : x.images.mainLogo) || "", { t: y } = W(), g = e.imagePosition || "left";
2365
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t(
2366
+ Qi,
2317
2367
  {
2318
2368
  entity: e.personalityQuiz,
2319
2369
  headline: y("personalityQuiz.headline"),
2320
2370
  finalImage: a,
2321
- imagePosition: m,
2322
- signInContent: /* @__PURE__ */ t(At, { signInCTA: e.signInCTA, primaryColor: l, pulse: !0 }),
2371
+ imagePosition: g,
2372
+ signInContent: /* @__PURE__ */ t(qt, { signInCTA: e.signInCTA, primaryColor: l, pulse: !0 }),
2323
2373
  brandingContent: /* @__PURE__ */ t(
2324
- V,
2374
+ G,
2325
2375
  {
2326
- brandingLogo: x,
2376
+ brandingLogo: C,
2327
2377
  textColor: r && a ? (i == null ? void 0 : i.contentColor) || o.colorSchemes.dark.textColor : s,
2328
- label: ((D = e.personalityQuiz.labels) == null ? void 0 : D.sponsor) || null
2378
+ label: ((P = e.personalityQuiz.labels) == null ? void 0 : P.sponsor) || null,
2379
+ primaryUrl: (k = (b = e.personalityQuiz.branding) == null ? void 0 : b.urls) == null ? void 0 : k.primaryUrl,
2380
+ secondaryUrl: (q = (p = e.personalityQuiz.branding) == null ? void 0 : p.urls) == null ? void 0 : q.secondaryUrl
2329
2381
  }
2330
2382
  ),
2331
2383
  rulesDisplay: e.rulesDisplay
2332
2384
  }
2333
2385
  ) });
2334
- }, sa = (e) => {
2335
- var m, u, b, f, v;
2336
- const i = ne(), r = re(), o = Y(), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Se : ze, a = he(
2386
+ }, ga = (e) => {
2387
+ var g, u, h, m, x, P, b, k, p;
2388
+ const i = te(), r = re(), o = Z(), d = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Ie : Se, a = be(
2337
2389
  {
2338
2390
  images: e.personalityQuiz.images,
2339
- imagePlaceholder: c
2391
+ imagePlaceholder: d
2340
2392
  },
2341
- G.SPLIT
2342
- ), { t: l } = H(), s = ((m = e.personalityQuiz.branding) == null ? void 0 : m.colors) || null, x = o ? ((u = e.personalityQuiz.branding) == null ? void 0 : u.images.mobileLogo) || ((b = e.personalityQuiz.branding) == null ? void 0 : b.images.mainLogo) || "" : ((f = e.personalityQuiz.branding) == null ? void 0 : f.images.mainLogo) || "", y = (s == null ? void 0 : s.primaryColor) || r.palette.primary.plainColor;
2343
- return /* @__PURE__ */ t(K, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
2344
- zi,
2393
+ _.SPLIT
2394
+ ), { t: l } = W(), s = ((g = e.personalityQuiz.branding) == null ? void 0 : g.colors) || null, C = o ? ((u = e.personalityQuiz.branding) == null ? void 0 : u.images.mobileLogo) || ((h = e.personalityQuiz.branding) == null ? void 0 : h.images.mainLogo) || "" : ((m = e.personalityQuiz.branding) == null ? void 0 : m.images.mainLogo) || "", y = (s == null ? void 0 : s.primaryColor) || r.palette.primary.plainColor;
2395
+ return /* @__PURE__ */ t(X, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
2396
+ Ai,
2345
2397
  {
2346
2398
  entity: e.personalityQuiz,
2347
2399
  headline: l("personalityQuiz.headline"),
2348
2400
  finalImage: a,
2349
- signInContent: /* @__PURE__ */ t(At, { signInCTA: e.signInCTA, primaryColor: y, pulse: !0 }),
2401
+ signInContent: /* @__PURE__ */ t(qt, { signInCTA: e.signInCTA, primaryColor: y, pulse: !0 }),
2350
2402
  brandingContent: /* @__PURE__ */ t(
2351
- V,
2403
+ G,
2352
2404
  {
2353
- brandingLogo: x,
2405
+ brandingLogo: C,
2354
2406
  textColor: (s == null ? void 0 : s.contentColor) || i.colorSchemes.dark.textColor,
2355
- label: ((v = e.personalityQuiz.labels) == null ? void 0 : v.sponsor) || null
2407
+ label: ((x = e.personalityQuiz.labels) == null ? void 0 : x.sponsor) || null,
2408
+ primaryUrl: (b = (P = e.personalityQuiz.branding) == null ? void 0 : P.urls) == null ? void 0 : b.primaryUrl,
2409
+ secondaryUrl: (p = (k = e.personalityQuiz.branding) == null ? void 0 : k.urls) == null ? void 0 : p.secondaryUrl
2356
2410
  }
2357
2411
  ),
2358
2412
  rulesDisplay: e.rulesDisplay
2359
2413
  }
2360
2414
  ) });
2361
- }, ca = n({ display: "contents" }), da = (e) => {
2362
- var v;
2363
- const i = ne(), { t: r } = H(), o = Y(), c = Un(G.OVERLAY), { brandingImage: a, brandingColors: l, brandingLogo: s } = He(
2415
+ }, ma = n({ display: "contents" }), fa = (e) => {
2416
+ var x, P, b, k, p;
2417
+ const i = te(), { t: r } = W(), o = Z(), d = Mn(_.OVERLAY), { brandingImage: a, brandingColors: l, brandingLogo: s } = Oe(
2364
2418
  e.personalityQuiz.branding || null
2365
- ), x = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Se : ze, y = he({ images: e.personalityQuiz.images, imagePlaceholder: x }, G.OVERLAY), m = a || y, u = i.colorSchemes.light, b = (l == null ? void 0 : l.primaryColor) || u.palette.primary.plainColor, f = {
2419
+ ), C = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? Ie : Se, y = be({ images: e.personalityQuiz.images, imagePlaceholder: C }, _.OVERLAY), g = a || y, u = i.colorSchemes.light, h = (l == null ? void 0 : l.primaryColor) || u.palette.primary.plainColor, m = {
2366
2420
  "--fu-ucrc-primary-on-primary": u.palette.primary.onPrimary,
2367
2421
  "--fu-ucrc-radius-xl": i.customRadius.light.xl
2368
2422
  };
2369
2423
  return /* @__PURE__ */ t(
2370
- wi,
2424
+ Pi,
2371
2425
  {
2372
2426
  entity: e.personalityQuiz,
2373
2427
  headline: r("personalityQuiz.headline"),
2374
- backgroundImage: Mn(m),
2375
- imageBackgroundGradient: c,
2376
- signInContent: /* @__PURE__ */ t("div", { css: ca, style: f, children: /* @__PURE__ */ t(At, { signInCTA: e.signInCTA, primaryColor: b, pulse: !0 }) }),
2428
+ backgroundImage: Fn(g),
2429
+ imageBackgroundGradient: d,
2430
+ signInContent: /* @__PURE__ */ t("div", { css: ma, style: m, children: /* @__PURE__ */ t(qt, { signInCTA: e.signInCTA, primaryColor: h, pulse: !0 }) }),
2377
2431
  brandingContent: /* @__PURE__ */ t(
2378
- V,
2432
+ G,
2379
2433
  {
2380
2434
  brandingLogo: s,
2381
2435
  textColor: i.colorSchemes.dark.textColor,
2382
- label: ((v = e.personalityQuiz.labels) == null ? void 0 : v.sponsor) || null
2436
+ label: ((x = e.personalityQuiz.labels) == null ? void 0 : x.sponsor) || null,
2437
+ primaryUrl: (b = (P = e.personalityQuiz.branding) == null ? void 0 : P.urls) == null ? void 0 : b.primaryUrl,
2438
+ secondaryUrl: (p = (k = e.personalityQuiz.branding) == null ? void 0 : k.urls) == null ? void 0 : p.secondaryUrl
2383
2439
  }
2384
2440
  ),
2385
2441
  rulesDisplay: e.rulesDisplay
2386
2442
  }
2387
2443
  );
2388
- }, ua = (e) => {
2444
+ }, ya = (e) => {
2389
2445
  var a, l, s;
2390
- const { t: i } = H(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), c = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2446
+ const { t: i } = W(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), d = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2391
2447
  return /* @__PURE__ */ t(
2392
- Qt,
2448
+ Lt,
2393
2449
  {
2394
2450
  entity: e.personalityQuiz,
2395
2451
  headline: i("personalityQuiz.headline"),
@@ -2398,26 +2454,26 @@ const Ai = (e, i) => {
2398
2454
  imagePosition: e.imagePosition,
2399
2455
  onLeadSubmitted: () => {
2400
2456
  },
2401
- MainCard: K,
2402
- PresentedBy: V,
2457
+ MainCard: X,
2458
+ PresentedBy: G,
2403
2459
  rulesDisplay: e.rulesDisplay,
2404
2460
  content: /* @__PURE__ */ t(
2405
- Pt,
2461
+ Dt,
2406
2462
  {
2407
2463
  signInCTA: e.signInCTA,
2408
2464
  labels: (s = (l = e.signInCTA) == null ? void 0 : l.gate) == null ? void 0 : s.labels,
2409
- primaryColor: c,
2465
+ primaryColor: d,
2410
2466
  textColor: (r == null ? void 0 : r.contentColor) || void 0,
2411
2467
  align: "center"
2412
2468
  }
2413
2469
  )
2414
2470
  }
2415
2471
  );
2416
- }, ga = (e) => {
2472
+ }, ha = (e) => {
2417
2473
  var a, l, s;
2418
- const { t: i } = H(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), c = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2474
+ const { t: i } = W(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), d = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2419
2475
  return /* @__PURE__ */ t(
2420
- qt,
2476
+ Ut,
2421
2477
  {
2422
2478
  entity: e.personalityQuiz,
2423
2479
  headline: i("personalityQuiz.headline"),
@@ -2425,26 +2481,26 @@ const Ai = (e, i) => {
2425
2481
  defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
2426
2482
  onLeadSubmitted: () => {
2427
2483
  },
2428
- MainCard: K,
2429
- PresentedBy: V,
2484
+ MainCard: X,
2485
+ PresentedBy: G,
2430
2486
  rulesDisplay: e.rulesDisplay,
2431
2487
  content: /* @__PURE__ */ t(
2432
- Pt,
2488
+ Dt,
2433
2489
  {
2434
2490
  signInCTA: e.signInCTA,
2435
2491
  labels: (s = (l = e.signInCTA) == null ? void 0 : l.gate) == null ? void 0 : s.labels,
2436
- primaryColor: c,
2492
+ primaryColor: d,
2437
2493
  textColor: (r == null ? void 0 : r.contentColor) || void 0,
2438
2494
  align: "center"
2439
2495
  }
2440
2496
  )
2441
2497
  }
2442
2498
  );
2443
- }, ma = (e) => {
2499
+ }, ba = (e) => {
2444
2500
  var a, l, s;
2445
- const { t: i } = H(), r = ne(), o = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, c = (o == null ? void 0 : o.primaryColor) || r.colorSchemes.dark.palette.primary.plainColor;
2501
+ const { t: i } = W(), r = te(), o = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, d = (o == null ? void 0 : o.primaryColor) || r.colorSchemes.dark.palette.primary.plainColor;
2446
2502
  return /* @__PURE__ */ t(
2447
- Lt,
2503
+ Rt,
2448
2504
  {
2449
2505
  entity: e.personalityQuiz,
2450
2506
  headline: i("personalityQuiz.headline"),
@@ -2452,24 +2508,24 @@ const Ai = (e, i) => {
2452
2508
  defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
2453
2509
  onLeadSubmitted: () => {
2454
2510
  },
2455
- PresentedBy: V,
2511
+ PresentedBy: G,
2456
2512
  rulesDisplay: e.rulesDisplay,
2457
2513
  content: /* @__PURE__ */ t(
2458
- Pt,
2514
+ Dt,
2459
2515
  {
2460
2516
  signInCTA: e.signInCTA,
2461
2517
  labels: (s = (l = e.signInCTA) == null ? void 0 : l.gate) == null ? void 0 : s.labels,
2462
- primaryColor: c,
2518
+ primaryColor: d,
2463
2519
  textColor: (o == null ? void 0 : o.contentColor) || r.colorSchemes.dark.textColor,
2464
2520
  align: "center"
2465
2521
  }
2466
2522
  )
2467
2523
  }
2468
2524
  );
2469
- }, fa = (e) => {
2470
- const { t: i } = H();
2525
+ }, xa = (e) => {
2526
+ const { t: i } = W();
2471
2527
  return /* @__PURE__ */ t(
2472
- Qt,
2528
+ Lt,
2473
2529
  {
2474
2530
  entity: e.personalityQuiz,
2475
2531
  headline: i("personalityQuiz.headline"),
@@ -2479,17 +2535,17 @@ const Ai = (e, i) => {
2479
2535
  imagePosition: e.imagePosition,
2480
2536
  onLeadSubmitted: e.onLeadSubmitted,
2481
2537
  isSubmitting: e.isSubmitting,
2482
- MainCard: K,
2483
- PresentedBy: V,
2538
+ MainCard: X,
2539
+ PresentedBy: G,
2484
2540
  CollectLeadWrapper: Be,
2485
2541
  consents: e.consents
2486
2542
  }
2487
2543
  );
2488
- }, ya = (e) => {
2544
+ }, pa = (e) => {
2489
2545
  var a, l, s;
2490
- const { t: i } = H(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), c = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2546
+ const { t: i } = W(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), d = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2491
2547
  return /* @__PURE__ */ t(
2492
- Qt,
2548
+ Lt,
2493
2549
  {
2494
2550
  entity: e.personalityQuiz,
2495
2551
  headline: i("personalityQuiz.headline"),
@@ -2498,35 +2554,35 @@ const Ai = (e, i) => {
2498
2554
  imagePosition: e.imagePosition,
2499
2555
  onLeadSubmitted: e.onSubmit,
2500
2556
  isSubmitting: e.isSubmitting,
2501
- MainCard: K,
2502
- PresentedBy: V,
2557
+ MainCard: X,
2558
+ PresentedBy: G,
2503
2559
  rulesDisplay: e.rulesDisplay,
2504
2560
  content: /* @__PURE__ */ t(
2505
2561
  Te,
2506
2562
  {
2507
2563
  consents: e.consents,
2508
- primaryColor: c,
2564
+ primaryColor: d,
2509
2565
  brandingUrls: (l = e.personalityQuiz.branding) == null ? void 0 : l.urls,
2510
2566
  align: "center"
2511
2567
  }
2512
2568
  ),
2513
2569
  footerAction: /* @__PURE__ */ t(
2514
- tt,
2570
+ it,
2515
2571
  {
2516
2572
  onClick: e.onSubmit,
2517
2573
  label: ((s = e.consents.labels) == null ? void 0 : s.ctaLabel) || i("personalityQuiz.buttons.finish"),
2518
2574
  isSubmitting: e.isSubmitting,
2519
- primaryColor: c,
2575
+ primaryColor: d,
2520
2576
  showArrow: !0
2521
2577
  }
2522
2578
  )
2523
2579
  }
2524
2580
  );
2525
- }, ha = (e) => {
2581
+ }, va = (e) => {
2526
2582
  var a, l;
2527
- const { t: i } = H(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), c = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2583
+ const { t: i } = W(), r = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, o = re(), d = (r == null ? void 0 : r.primaryColor) || o.palette.primary.plainColor;
2528
2584
  return /* @__PURE__ */ t(
2529
- qt,
2585
+ Ut,
2530
2586
  {
2531
2587
  entity: e.personalityQuiz,
2532
2588
  headline: i("personalityQuiz.headline"),
@@ -2534,8 +2590,8 @@ const Ai = (e, i) => {
2534
2590
  defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
2535
2591
  onLeadSubmitted: e.onSubmit,
2536
2592
  isSubmitting: e.isSubmitting,
2537
- MainCard: K,
2538
- PresentedBy: V,
2593
+ MainCard: X,
2594
+ PresentedBy: G,
2539
2595
  rulesDisplay: e.rulesDisplay,
2540
2596
  content: (
2541
2597
  // This template keeps its CTA inside the content frame
@@ -2543,7 +2599,7 @@ const Ai = (e, i) => {
2543
2599
  Te,
2544
2600
  {
2545
2601
  consents: e.consents,
2546
- primaryColor: c,
2602
+ primaryColor: d,
2547
2603
  brandingUrls: (l = e.personalityQuiz.branding) == null ? void 0 : l.urls,
2548
2604
  onSubmit: e.onSubmit,
2549
2605
  isSubmitting: e.isSubmitting,
@@ -2555,11 +2611,11 @@ const Ai = (e, i) => {
2555
2611
  )
2556
2612
  }
2557
2613
  );
2558
- }, ba = (e) => {
2614
+ }, Ca = (e) => {
2559
2615
  var a, l, s;
2560
- const { t: i } = H(), r = ne(), o = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, c = (o == null ? void 0 : o.primaryColor) || r.colorSchemes.dark.palette.primary.plainColor;
2616
+ const { t: i } = W(), r = te(), o = ((a = e.personalityQuiz.branding) == null ? void 0 : a.colors) || null, d = (o == null ? void 0 : o.primaryColor) || r.colorSchemes.dark.palette.primary.plainColor;
2561
2617
  return /* @__PURE__ */ t(
2562
- Lt,
2618
+ Rt,
2563
2619
  {
2564
2620
  entity: e.personalityQuiz,
2565
2621
  headline: i("personalityQuiz.headline"),
@@ -2567,33 +2623,33 @@ const Ai = (e, i) => {
2567
2623
  defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
2568
2624
  onLeadSubmitted: e.onSubmit,
2569
2625
  isSubmitting: e.isSubmitting,
2570
- PresentedBy: V,
2626
+ PresentedBy: G,
2571
2627
  rulesDisplay: e.rulesDisplay,
2572
2628
  content: /* @__PURE__ */ t(
2573
2629
  Te,
2574
2630
  {
2575
2631
  consents: e.consents,
2576
- primaryColor: c,
2632
+ primaryColor: d,
2577
2633
  textColor: (o == null ? void 0 : o.contentColor) || r.colorSchemes.dark.textColor,
2578
2634
  brandingUrls: (l = e.personalityQuiz.branding) == null ? void 0 : l.urls
2579
2635
  }
2580
2636
  ),
2581
2637
  footerAction: /* @__PURE__ */ t(
2582
- tt,
2638
+ it,
2583
2639
  {
2584
2640
  onClick: e.onSubmit,
2585
2641
  label: ((s = e.consents.labels) == null ? void 0 : s.ctaLabel) || i("personalityQuiz.buttons.finish"),
2586
2642
  isSubmitting: e.isSubmitting,
2587
- primaryColor: c,
2643
+ primaryColor: d,
2588
2644
  showArrow: !0
2589
2645
  }
2590
2646
  )
2591
2647
  }
2592
2648
  );
2593
- }, pa = (e) => {
2594
- const { t: i } = H();
2649
+ }, Ia = (e) => {
2650
+ const { t: i } = W();
2595
2651
  return /* @__PURE__ */ t(
2596
- qt,
2652
+ Ut,
2597
2653
  {
2598
2654
  entity: e.personalityQuiz,
2599
2655
  headline: i("personalityQuiz.headline"),
@@ -2602,16 +2658,16 @@ const Ai = (e, i) => {
2602
2658
  defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
2603
2659
  onLeadSubmitted: e.onLeadSubmitted,
2604
2660
  isSubmitting: e.isSubmitting,
2605
- MainCard: K,
2606
- PresentedBy: V,
2661
+ MainCard: X,
2662
+ PresentedBy: G,
2607
2663
  CollectLeadWrapper: Be,
2608
2664
  consents: e.consents
2609
2665
  }
2610
2666
  );
2611
- }, xa = (e) => {
2612
- const { t: i } = H();
2667
+ }, Sa = (e) => {
2668
+ const { t: i } = W();
2613
2669
  return /* @__PURE__ */ t(
2614
- Lt,
2670
+ Rt,
2615
2671
  {
2616
2672
  entity: e.personalityQuiz,
2617
2673
  headline: i("personalityQuiz.headline"),
@@ -2620,487 +2676,496 @@ const Ai = (e, i) => {
2620
2676
  defaultImagePlaceholder: e.defaultImagePlaceholderUrl,
2621
2677
  onLeadSubmitted: e.onLeadSubmitted,
2622
2678
  isSubmitting: e.isSubmitting,
2623
- PresentedBy: V,
2679
+ PresentedBy: G,
2624
2680
  CollectLeadWrapper: Be,
2625
2681
  consents: e.consents
2626
2682
  }
2627
2683
  );
2628
2684
  };
2629
- function ve(e) {
2630
- return e.template === G.STANDARD;
2685
+ function pe(e) {
2686
+ return e.template === _.STANDARD;
2631
2687
  }
2632
- const va = (e) => {
2633
- var Ft, Ht, Ot, Wt;
2634
- const [i, r] = U(1), [o, c] = U(null), [a, l] = U([]), [s, x] = U([]), [y, m] = U(!1), [u, b] = U(!1), [f, v] = U(!1), [D, S] = U(!1), [Q, w] = U(!1), [P, C] = U(!1), [B, O] = U(!1), [k, I] = U(!1), [R, z] = U(!1), [A, L] = U(!1), N = Ce(!1), d = Ai(e.entityId, e.sdk), q = oi({
2688
+ const za = (e) => {
2689
+ var Wt, Vt, jt, Gt;
2690
+ const [i, r] = M(1), [o, d] = M(null), [a, l] = M([]), [s, C] = M([]), [y, g] = M(!1), [u, h] = M(!1), [m, x] = M(!1), [P, b] = M(!1), [k, p] = M(!1), [q, v] = M(!1), [T, F] = M(!1), [Q, S] = M(!1), [D, z] = M(!1), [A, L] = M(!1), $ = ve(!1), c = Li(e.entityId, e.sdk), U = ci(c == null ? void 0 : c.status), R = di({
2635
2691
  signInCTA: e.signInCTA,
2636
- authRequired: (d == null ? void 0 : d.authRequirement) === "REGISTERED",
2692
+ authRequired: (c == null ? void 0 : c.authRequirement) === "REGISTERED",
2637
2693
  userIsLoggedIn: e.userIsLoggedIn,
2638
- totalSteps: ((Ft = d == null ? void 0 : d.questions) == null ? void 0 : Ft.length) ?? 0
2639
- }), M = q.isDeferred && q.isPending, {
2640
- myParticipation: $,
2641
- isUnauthorized: ee,
2642
- isApiError: X,
2643
- apiMessage: te,
2644
- setIsUnauthorized: le,
2645
- setIsApiError: se,
2646
- setApiMessage: ge
2647
- } = Qi(
2694
+ totalSteps: ((Wt = c == null ? void 0 : c.questions) == null ? void 0 : Wt.length) ?? 0
2695
+ }), E = R.isDeferred && R.isPending, {
2696
+ myParticipation: V,
2697
+ isUnauthorized: J,
2698
+ isApiError: Y,
2699
+ apiMessage: oe,
2700
+ setIsUnauthorized: se,
2701
+ setIsApiError: ce,
2702
+ setApiMessage: me
2703
+ } = Di(
2648
2704
  e.entityId,
2649
2705
  e.sdk,
2650
2706
  u,
2651
- M,
2652
- q.isSignedIn
2707
+ E,
2708
+ R.isSignedIn
2653
2709
  ), {
2654
2710
  loading: ae,
2655
- pending: _,
2656
- checked: be,
2657
- setChecked: Pe,
2658
- allRequiredChecked: Ue,
2659
- submit: we
2660
- } = li({
2711
+ pending: ne,
2712
+ checked: Pe,
2713
+ setChecked: qe,
2714
+ allRequiredChecked: Ee,
2715
+ submit: ze
2716
+ } = ui({
2661
2717
  sdk: e.sdk,
2662
- consents: (Ht = e.consents) == null ? void 0 : Ht.items,
2718
+ consents: (Vt = e.consents) == null ? void 0 : Vt.items,
2663
2719
  entityId: e.entityId,
2664
2720
  entityType: "personality_quiz"
2665
- }), ye = !!((d == null ? void 0 : d.authRequirement) === "LEAD" ? (Ot = e.leads) == null ? void 0 : Ot.position : void 0) && _.length > 0, ke = ye ? [] : _.filter((h) => h.position !== "after"), Ae = ye ? [] : _.filter((h) => h.position === "after"), Kn = (h) => {
2666
- Pe(h), L(!1);
2667
- }, Mt = (h) => {
2668
- var T;
2721
+ }), Le = !!((c == null ? void 0 : c.authRequirement) === "LEAD" ? (jt = e.leads) == null ? void 0 : jt.position : void 0) && ne.length > 0, we = Le ? [] : ne.filter((I) => I.position !== "after"), ke = Le ? [] : ne.filter((I) => I.position === "after"), ei = (I) => {
2722
+ qe(I), L(!1);
2723
+ }, Ft = (I) => {
2724
+ var B;
2669
2725
  return {
2670
- items: h,
2671
- checked: be,
2672
- onChange: Kn,
2673
- labels: (T = e.consents) == null ? void 0 : T.labels,
2726
+ items: I,
2727
+ checked: Pe,
2728
+ onChange: ei,
2729
+ labels: (B = e.consents) == null ? void 0 : B.labels,
2674
2730
  showError: A
2675
2731
  };
2676
- }, Xn = dt(() => {
2677
- var T;
2678
- if (!d) return "";
2679
- const h = (d.questions || []).map((Z) => Z.questionId).join(",");
2680
- return `${((T = d.questions) == null ? void 0 : T.length) ?? 0}:${h}`;
2681
- }, [d]), {
2682
- read: $t,
2683
- save: Et,
2684
- clear: Me
2685
- } = si({
2732
+ }, ti = gt(() => {
2733
+ var B;
2734
+ if (!c) return "";
2735
+ const I = (c.questions || []).map((K) => K.questionId).join(",");
2736
+ return `${((B = c.questions) == null ? void 0 : B.length) ?? 0}:${I}`;
2737
+ }, [c]), {
2738
+ read: Ht,
2739
+ save: Ot,
2740
+ clear: $e
2741
+ } = gi({
2686
2742
  namespace: "personality-quiz",
2687
2743
  entityId: e.entityId,
2688
- fingerprint: Xn
2689
- }), qe = Ce([]), it = Ce(!1);
2690
- me(() => {
2691
- var T;
2692
- if (ae || N.current) return;
2693
- const h = (d == null ? void 0 : d.authRequirement) === "LEAD" && ((T = e.leads) == null ? void 0 : T.position) === "before";
2694
- O(!h && ke.length > 0);
2744
+ fingerprint: ti
2745
+ }), De = ve([]), rt = ve(!1);
2746
+ fe(() => {
2747
+ var B;
2748
+ if (ae || $.current) return;
2749
+ const I = (c == null ? void 0 : c.authRequirement) === "LEAD" && ((B = e.leads) == null ? void 0 : B.position) === "before";
2750
+ F(
2751
+ !U && !I && we.length > 0
2752
+ );
2695
2753
  }, [
2696
2754
  ae,
2697
- ke.length,
2698
- d == null ? void 0 : d.authRequirement
2755
+ we.length,
2756
+ c == null ? void 0 : c.authRequirement,
2757
+ U
2699
2758
  ]);
2700
- const $e = (Wt = s[0]) != null && Wt.personalityQuizId ? s[0] : $ == null ? void 0 : $[0], pe = dt(() => !d || !($e != null && $e.personalityQuizId) || !d.maxAttempts ? !1 : d.maxAttempts <= $e.attempts, [d, $e]), We = dt(() => d ? ci(d.related) : null, [d]);
2701
- me(() => {
2702
- di(e.language || "en");
2703
- }, [e.language]), me(() => {
2704
- var h, T, Z;
2705
- (h = s[0]) != null && h.personalityQuizId && ((Z = (T = e.callbacks) == null ? void 0 : T.onFinish) == null || Z.call(T, s[0]));
2706
- }, [s]), me(() => {
2707
- if (it.current || !(d != null && d.id) || !$ || ae || !q.isDeferred || !q.isSignedIn) return;
2759
+ const Me = (Gt = s[0]) != null && Gt.personalityQuizId ? s[0] : V == null ? void 0 : V[0], xe = gt(() => !c || !(Me != null && Me.personalityQuizId) || !c.maxAttempts ? !1 : c.maxAttempts <= Me.attempts, [c, Me]), Ve = gt(() => c ? mi(c.related) : null, [c]);
2760
+ fe(() => {
2761
+ fi(e.language || "en");
2762
+ }, [e.language]), fe(() => {
2763
+ var I, B, K;
2764
+ (I = s[0]) != null && I.personalityQuizId && ((K = (B = e.callbacks) == null ? void 0 : B.onFinish) == null || K.call(B, s[0]));
2765
+ }, [s]), fe(() => {
2766
+ if (rt.current || !(c != null && c.id) || !V || ae || !R.isDeferred || !R.isSignedIn) return;
2708
2767
  if (a.length) {
2709
- it.current = !0;
2768
+ rt.current = !0;
2710
2769
  return;
2711
2770
  }
2712
- it.current = !0;
2713
- const h = $t();
2714
- if (!h) return;
2715
- if (pe) {
2716
- Me();
2771
+ rt.current = !0;
2772
+ const I = Ht();
2773
+ if (!I) return;
2774
+ if (xe) {
2775
+ $e();
2717
2776
  return;
2718
2777
  }
2719
- const T = h.answers || [];
2720
- l(T), r(
2721
- Math.min(T.length + 1, d.questions.length)
2722
- ), h.checkedConsents && Pe(h.checkedConsents), qe.current = h.heldConsentIds || [], N.current = !0, O(!1);
2778
+ const B = I.answers || [];
2779
+ l(B), r(
2780
+ Math.min(B.length + 1, c.questions.length)
2781
+ ), I.checkedConsents && qe(I.checkedConsents), De.current = I.heldConsentIds || [], $.current = !0, F(!1);
2723
2782
  }, [
2724
- d,
2725
- $,
2783
+ c,
2784
+ V,
2726
2785
  ae,
2727
- q.isDeferred,
2728
- q.isSignedIn,
2729
- pe,
2786
+ R.isDeferred,
2787
+ R.isSignedIn,
2788
+ xe,
2730
2789
  a.length,
2731
- $t,
2732
- Me,
2733
- Pe
2734
- ]), me(() => {
2735
- !M || !(d != null && d.id) || a.length && Et({
2790
+ Ht,
2791
+ $e,
2792
+ qe
2793
+ ]), fe(() => {
2794
+ !E || !(c != null && c.id) || a.length && Ot({
2736
2795
  answers: a,
2737
- checkedConsents: be,
2738
- heldConsentIds: qe.current
2796
+ checkedConsents: Pe,
2797
+ heldConsentIds: De.current
2739
2798
  });
2740
- }, [M, d, a, be, Et]), me(() => {
2741
- pe && Me();
2742
- }, [pe, Me]);
2743
- const Ve = Ce(null);
2744
- if (me(() => {
2745
- var h;
2746
- q.isPending || !P || (C(!1), (h = Ve.current) == null || h.call(Ve));
2747
- }, [q.isPending, P]), me(() => {
2748
- if (q.isPending || !qe.current.length) return;
2749
- const h = _.filter(
2750
- (T) => qe.current.includes(T.consentId)
2799
+ }, [E, c, a, Pe, Ot]), fe(() => {
2800
+ xe && $e();
2801
+ }, [xe, $e]);
2802
+ const je = ve(null);
2803
+ if (fe(() => {
2804
+ var I;
2805
+ R.isPending || !q || (v(!1), (I = je.current) == null || I.call(je));
2806
+ }, [R.isPending, q]), fe(() => {
2807
+ if (R.isPending || !De.current.length) return;
2808
+ const I = ne.filter(
2809
+ (B) => De.current.includes(B.consentId)
2751
2810
  );
2752
- qe.current = [], h.length && we(h);
2753
- }, [q.isPending, _, we]), !d || !$)
2754
- return /* @__PURE__ */ t(Gt, { marginBlock: "160px" });
2755
- if (!d.id)
2756
- return /* @__PURE__ */ t(na, {});
2757
- if (d.status !== "ACTIVE")
2811
+ De.current = [], I.length && ze(I);
2812
+ }, [R.isPending, ne, ze]), !c || !V)
2813
+ return /* @__PURE__ */ t(Yt, { marginBlock: "160px" });
2814
+ if (!c.id)
2815
+ return /* @__PURE__ */ t(oa, {});
2816
+ if (c.status !== "ACTIVE" && !U)
2758
2817
  return /* @__PURE__ */ t(
2759
- ia,
2818
+ la,
2760
2819
  {
2761
- personalityQuiz: d,
2820
+ personalityQuiz: c,
2762
2821
  template: e.template,
2763
- imagePosition: ve(e) ? e.imagePosition : void 0,
2822
+ imagePosition: pe(e) ? e.imagePosition : void 0,
2764
2823
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2765
2824
  rulesDisplay: e.rulesDisplay
2766
2825
  }
2767
2826
  );
2768
- if (q.isPending && q.position === "before")
2769
- return ve(e) ? /* @__PURE__ */ t(
2770
- la,
2827
+ if (R.isPending && R.position === "before" && !U)
2828
+ return pe(e) ? /* @__PURE__ */ t(
2829
+ ua,
2771
2830
  {
2772
- personalityQuiz: d,
2831
+ personalityQuiz: c,
2773
2832
  imagePosition: e.imagePosition,
2774
2833
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2775
2834
  signInCTA: e.signInCTA
2776
2835
  }
2777
- ) : e.template === G.OVERLAY ? /* @__PURE__ */ t(
2778
- da,
2836
+ ) : e.template === _.OVERLAY ? /* @__PURE__ */ t(
2837
+ fa,
2779
2838
  {
2780
- personalityQuiz: d,
2839
+ personalityQuiz: c,
2781
2840
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2782
2841
  signInCTA: e.signInCTA
2783
2842
  }
2784
2843
  ) : /* @__PURE__ */ t(
2785
- sa,
2844
+ ga,
2786
2845
  {
2787
- personalityQuiz: d,
2846
+ personalityQuiz: c,
2788
2847
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2789
2848
  signInCTA: e.signInCTA
2790
2849
  }
2791
2850
  );
2792
- const at = () => {
2793
- se(!1), le(!1), x([]), r(1), c(null), l([]), m(!1), v(!1), S(!1), w(!1), b(!u);
2851
+ const ot = () => {
2852
+ ce(!1), se(!1), C([]), r(1), d(null), l([]), g(!1), x(!1), b(!1), p(!1), h(!u);
2794
2853
  };
2795
- if (ee || X)
2796
- return ve(e) ? /* @__PURE__ */ t(
2797
- aa,
2854
+ if (J && !U || Y)
2855
+ return pe(e) ? /* @__PURE__ */ t(
2856
+ sa,
2798
2857
  {
2799
- personalityQuiz: d,
2858
+ personalityQuiz: c,
2800
2859
  imagePosition: e.imagePosition,
2801
2860
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2802
- apiErrorMessage: te,
2803
- isApiError: X,
2861
+ apiErrorMessage: oe,
2862
+ isApiError: Y,
2804
2863
  rulesDisplay: e.rulesDisplay,
2805
- toggleTryAgain: at
2864
+ toggleTryAgain: ot
2806
2865
  }
2807
- ) : e.template === G.OVERLAY ? /* @__PURE__ */ t(
2808
- oa,
2866
+ ) : e.template === _.OVERLAY ? /* @__PURE__ */ t(
2867
+ da,
2809
2868
  {
2810
- personalityQuiz: d,
2869
+ personalityQuiz: c,
2811
2870
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2812
- apiErrorMessage: te,
2813
- isApiError: X,
2871
+ apiErrorMessage: oe,
2872
+ isApiError: Y,
2814
2873
  rulesDisplay: e.rulesDisplay,
2815
- toggleTryAgain: at
2874
+ toggleTryAgain: ot
2816
2875
  }
2817
2876
  ) : /* @__PURE__ */ t(
2818
- ra,
2877
+ ca,
2819
2878
  {
2820
- personalityQuiz: d,
2879
+ personalityQuiz: c,
2821
2880
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2822
- apiErrorMessage: te,
2823
- isApiError: X,
2881
+ apiErrorMessage: oe,
2882
+ isApiError: Y,
2824
2883
  rulesDisplay: e.rulesDisplay,
2825
- toggleTryAgain: at
2884
+ toggleTryAgain: ot
2826
2885
  }
2827
2886
  );
2828
- const rt = async () => {
2829
- var Z;
2830
- const h = d.questions[i - 1], T = [
2887
+ const lt = async () => {
2888
+ var K;
2889
+ if (U) return;
2890
+ const I = c.questions[i - 1], B = [
2831
2891
  ...a,
2832
2892
  {
2833
- questionId: h.questionId,
2893
+ questionId: I.questionId,
2834
2894
  optionId: o
2835
2895
  }
2836
2896
  ];
2837
- if (l(T), i < d.questions.length) {
2838
- r((Qe) => Qe + 1), c(null);
2897
+ if (l(B), i < c.questions.length) {
2898
+ r((Qe) => Qe + 1), d(null);
2839
2899
  return;
2840
2900
  }
2841
- if (i === d.questions.length) {
2842
- if (M) {
2843
- C(!0);
2901
+ if (i === c.questions.length) {
2902
+ if (E) {
2903
+ v(!0);
2844
2904
  return;
2845
2905
  }
2846
- if (Ae.length > 0 && !R) {
2847
- I(!0);
2906
+ if (ke.length > 0 && !D) {
2907
+ S(!0);
2848
2908
  return;
2849
2909
  }
2850
- if (((Z = e.leads) == null ? void 0 : Z.position) === "after" && d.authRequirement === "LEAD" && !D) {
2851
- w(!0);
2910
+ if (((K = e.leads) == null ? void 0 : K.position) === "after" && c.authRequirement === "LEAD" && !P) {
2911
+ p(!0);
2852
2912
  return;
2853
2913
  }
2854
- await je(T);
2914
+ await Ge(B);
2855
2915
  }
2856
- }, je = async (h) => {
2916
+ }, Ge = async (I) => {
2857
2917
  try {
2858
- m(!0);
2859
- const T = await e.sdk.miniGames.participateInPersonalityQuiz(
2918
+ g(!0);
2919
+ const B = await e.sdk.miniGames.participateInPersonalityQuiz(
2860
2920
  e.entityId,
2861
- h
2921
+ I
2862
2922
  );
2863
- m(!1), x([T]), c(null), Me();
2864
- } catch (T) {
2865
- m(!1), x([new $n()]), console.error("[personality-quiz-play] participation failed", T);
2866
- const { code: Z, message: Qe } = ui(T, e.sdk);
2867
- Z === 401 || Z === 403 ? le(!0) : (se(!0), ge(Qe || ""));
2923
+ g(!1), C([B]), d(null), $e();
2924
+ } catch (B) {
2925
+ g(!1), C([new Hn()]), console.error("[personality-quiz-play] participation failed", B);
2926
+ const { code: K, message: Qe } = yi(B, e.sdk);
2927
+ K === 401 || K === 403 ? se(!0) : (ce(!0), me(Qe || ""));
2868
2928
  }
2869
- }, Jn = async () => {
2870
- var h;
2871
- if (Ae.length > 0 && !R) {
2872
- I(!0);
2929
+ }, ni = async () => {
2930
+ var I;
2931
+ if (ke.length > 0 && !D) {
2932
+ S(!0);
2873
2933
  return;
2874
2934
  }
2875
- if (((h = e.leads) == null ? void 0 : h.position) === "after" && d.authRequirement === "LEAD" && !D) {
2876
- w(!0);
2935
+ if (((I = e.leads) == null ? void 0 : I.position) === "after" && c.authRequirement === "LEAD" && !P) {
2936
+ p(!0);
2877
2937
  return;
2878
2938
  }
2879
- await je(a);
2939
+ await Ge(a);
2880
2940
  };
2881
- Ve.current = Jn;
2882
- const ot = async () => {
2883
- if (ke.length > 0) {
2884
- if (f) return;
2885
- if (!Ue(ke)) {
2886
- L(!0);
2887
- return;
2941
+ je.current = ni;
2942
+ const st = async () => {
2943
+ if (!U) {
2944
+ if (we.length > 0) {
2945
+ if (m) return;
2946
+ if (!Ee(we)) {
2947
+ L(!0);
2948
+ return;
2949
+ }
2950
+ E ? De.current = we.map(
2951
+ (I) => I.consentId
2952
+ ) : (x(!0), await ze(we), x(!1));
2888
2953
  }
2889
- M ? qe.current = ke.map(
2890
- (h) => h.consentId
2891
- ) : (v(!0), await we(ke), v(!1));
2954
+ $.current = !0, F(!1);
2892
2955
  }
2893
- N.current = !0, O(!1);
2894
- }, ei = async () => {
2895
- if (!Ue(Ae)) {
2956
+ }, ii = async () => {
2957
+ if (!Ee(ke)) {
2896
2958
  L(!0);
2897
2959
  return;
2898
2960
  }
2899
- v(!0), await we(Ae), z(!0), await je(a), v(!1), I(!1);
2900
- }, lt = async () => {
2901
- v(!0), await je(a), v(!1), S(!0);
2902
- }, st = (h) => {
2903
- c(h);
2904
- }, ct = () => {
2905
- r(1), c(null), l([]), x([]), v(!1), S(!1), w(!1), I(!1), L(!1);
2906
- }, ti = () => {
2907
- const h = Mt(ke), T = ye ? _ : void 0, Z = Ae.length > 0 && !R;
2908
- return e.template === G.OVERLAY ? /* @__PURE__ */ t(
2909
- Ti,
2961
+ x(!0), await ze(ke), z(!0), await Ge(a), x(!1), S(!1);
2962
+ }, ct = async () => {
2963
+ x(!0), await Ge(a), x(!1), b(!0);
2964
+ }, dt = (I) => {
2965
+ U || d(I);
2966
+ }, ut = () => {
2967
+ r(1), d(null), l([]), C([]), x(!1), b(!1), p(!1), S(!1), L(!1);
2968
+ }, ai = () => {
2969
+ const I = Ft(we), B = Le ? ne : void 0, K = ke.length > 0 && !D;
2970
+ return e.template === _.OVERLAY ? /* @__PURE__ */ t(
2971
+ $i,
2910
2972
  {
2911
2973
  sdk: e.sdk,
2912
2974
  leads: e.leads,
2913
- personalityQuiz: d,
2914
- question: d.questions[i - 1],
2975
+ personalityQuiz: c,
2976
+ question: c.questions[i - 1],
2915
2977
  selectedOption: o,
2916
2978
  currentQuestion: i,
2917
- answerQuestion: st,
2918
- handleNext: rt,
2979
+ answerQuestion: dt,
2980
+ handleNext: lt,
2919
2981
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2920
2982
  rulesDisplay: e.rulesDisplay,
2921
2983
  isLoading: y,
2922
- consents: h,
2923
- leadConsents: T,
2924
- applyConsentGate: B,
2925
- hasAfterConsents: Z,
2926
- isSubmitting: f,
2927
- startPlaying: ot
2984
+ consents: I,
2985
+ leadConsents: B,
2986
+ applyConsentGate: T,
2987
+ hasAfterConsents: K,
2988
+ isSubmitting: m,
2989
+ startPlaying: st,
2990
+ expired: U
2928
2991
  }
2929
- ) : ve(e) ? /* @__PURE__ */ t(
2930
- $i,
2992
+ ) : pe(e) ? /* @__PURE__ */ t(
2993
+ Oi,
2931
2994
  {
2932
2995
  sdk: e.sdk,
2933
2996
  leads: e.leads,
2934
- personalityQuiz: d,
2935
- question: d.questions[i - 1],
2997
+ personalityQuiz: c,
2998
+ question: c.questions[i - 1],
2936
2999
  selectedOption: o,
2937
3000
  currentQuestion: i,
2938
- answerQuestion: st,
2939
- handleNext: rt,
3001
+ answerQuestion: dt,
3002
+ handleNext: lt,
2940
3003
  imagePosition: e.imagePosition,
2941
3004
  userParticipation: a,
2942
3005
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2943
3006
  rulesDisplay: e.rulesDisplay,
2944
3007
  isLoading: y,
2945
- consents: h,
2946
- leadConsents: T,
2947
- applyConsentGate: B,
2948
- hasAfterConsents: Z,
2949
- isSubmitting: f,
2950
- startPlaying: ot
3008
+ consents: I,
3009
+ leadConsents: B,
3010
+ applyConsentGate: T,
3011
+ hasAfterConsents: K,
3012
+ isSubmitting: m,
3013
+ startPlaying: st,
3014
+ expired: U
2951
3015
  }
2952
3016
  ) : /* @__PURE__ */ t(
2953
- Fi,
3017
+ Vi,
2954
3018
  {
2955
3019
  sdk: e.sdk,
2956
3020
  leads: e.leads,
2957
- personalityQuiz: d,
2958
- question: d.questions[i - 1],
3021
+ personalityQuiz: c,
3022
+ question: c.questions[i - 1],
2959
3023
  selectedOption: o,
2960
3024
  currentQuestion: i,
2961
- answerQuestion: st,
2962
- handleNext: rt,
3025
+ answerQuestion: dt,
3026
+ handleNext: lt,
2963
3027
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2964
3028
  rulesDisplay: e.rulesDisplay,
2965
3029
  isLoading: y,
2966
- consents: h,
2967
- leadConsents: T,
2968
- applyConsentGate: B,
2969
- hasAfterConsents: Z,
2970
- isSubmitting: f,
2971
- startPlaying: ot
3030
+ consents: I,
3031
+ leadConsents: B,
3032
+ applyConsentGate: T,
3033
+ hasAfterConsents: K,
3034
+ isSubmitting: m,
3035
+ startPlaying: st,
3036
+ expired: U
2972
3037
  }
2973
3038
  );
2974
3039
  };
2975
- if (M && (P || q.position === "step" && i > q.afterStep)) {
2976
- const h = {
2977
- personalityQuiz: d,
3040
+ if (E && (q || R.position === "step" && i > R.afterStep)) {
3041
+ const I = {
3042
+ personalityQuiz: c,
2978
3043
  sdk: e.sdk,
2979
3044
  signInCTA: e.signInCTA,
2980
3045
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2981
3046
  rulesDisplay: e.rulesDisplay
2982
3047
  };
2983
- return ve(e) ? /* @__PURE__ */ t(
2984
- ua,
3048
+ return pe(e) ? /* @__PURE__ */ t(
3049
+ ya,
2985
3050
  {
2986
- ...h,
3051
+ ...I,
2987
3052
  imagePosition: e.imagePosition
2988
3053
  }
2989
- ) : e.template === G.OVERLAY ? /* @__PURE__ */ t(ma, { ...h }) : /* @__PURE__ */ t(ga, { ...h });
3054
+ ) : e.template === _.OVERLAY ? /* @__PURE__ */ t(ba, { ...I }) : /* @__PURE__ */ t(ha, { ...I });
2990
3055
  }
2991
- if (k && Ae.length > 0) {
2992
- const h = {
2993
- personalityQuiz: d,
3056
+ if (Q && ke.length > 0) {
3057
+ const I = {
3058
+ personalityQuiz: c,
2994
3059
  sdk: e.sdk,
2995
- consents: Mt(Ae),
2996
- onSubmit: ei,
2997
- isSubmitting: f,
3060
+ consents: Ft(ke),
3061
+ onSubmit: ii,
3062
+ isSubmitting: m,
2998
3063
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
2999
3064
  rulesDisplay: e.rulesDisplay
3000
3065
  };
3001
- return ve(e) ? /* @__PURE__ */ t(
3002
- ya,
3066
+ return pe(e) ? /* @__PURE__ */ t(
3067
+ pa,
3003
3068
  {
3004
- ...h,
3069
+ ...I,
3005
3070
  imagePosition: e.imagePosition
3006
3071
  }
3007
- ) : e.template === G.OVERLAY ? /* @__PURE__ */ t(ba, { ...h }) : /* @__PURE__ */ t(ha, { ...h });
3072
+ ) : e.template === _.OVERLAY ? /* @__PURE__ */ t(Ca, { ...I }) : /* @__PURE__ */ t(va, { ...I });
3008
3073
  }
3009
- if (Q && !D)
3010
- return ve(e) ? /* @__PURE__ */ t(
3011
- fa,
3074
+ if (k && !P)
3075
+ return pe(e) ? /* @__PURE__ */ t(
3076
+ xa,
3012
3077
  {
3013
- personalityQuiz: d,
3078
+ personalityQuiz: c,
3014
3079
  sdk: e.sdk,
3015
3080
  leads: e.leads,
3016
3081
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3017
3082
  imagePosition: e.imagePosition,
3018
- onLeadSubmitted: lt,
3019
- isSubmitting: f,
3020
- consents: ye ? _ : void 0
3083
+ onLeadSubmitted: ct,
3084
+ isSubmitting: m,
3085
+ consents: Le ? ne : void 0
3021
3086
  }
3022
- ) : e.template === G.SPLIT ? /* @__PURE__ */ t(
3023
- pa,
3087
+ ) : e.template === _.SPLIT ? /* @__PURE__ */ t(
3088
+ Ia,
3024
3089
  {
3025
- personalityQuiz: d,
3090
+ personalityQuiz: c,
3026
3091
  sdk: e.sdk,
3027
3092
  leads: e.leads,
3028
3093
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3029
- onLeadSubmitted: lt,
3030
- isSubmitting: f,
3031
- consents: ye ? _ : void 0
3094
+ onLeadSubmitted: ct,
3095
+ isSubmitting: m,
3096
+ consents: Le ? ne : void 0
3032
3097
  }
3033
- ) : e.template === G.OVERLAY ? /* @__PURE__ */ t(
3034
- xa,
3098
+ ) : e.template === _.OVERLAY ? /* @__PURE__ */ t(
3099
+ Sa,
3035
3100
  {
3036
- personalityQuiz: d,
3101
+ personalityQuiz: c,
3037
3102
  sdk: e.sdk,
3038
3103
  leads: e.leads,
3039
3104
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3040
- onLeadSubmitted: lt,
3041
- isSubmitting: f,
3042
- consents: ye ? _ : void 0
3105
+ onLeadSubmitted: ct,
3106
+ isSubmitting: m,
3107
+ consents: Le ? ne : void 0
3043
3108
  }
3044
- ) : /* @__PURE__ */ t(Gt, { marginBlock: "160px" });
3045
- if (s.length || pe) {
3046
- const h = s[0] ?? $[0], T = We ? /* @__PURE__ */ t(Vt, { entityId: We, sdk: e.sdk, children: (Qe) => /* @__PURE__ */ t(jt, { infoPage: Qe, variant: e.chanceGameVariant }) }) : void 0, Z = We ? /* @__PURE__ */ t(Vt, { entityId: We, sdk: e.sdk, children: (Qe) => /* @__PURE__ */ t(jt, { infoPage: Qe, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
3047
- return e.template === G.OVERLAY ? /* @__PURE__ */ t(
3048
- ta,
3109
+ ) : /* @__PURE__ */ t(Yt, { marginBlock: "160px" });
3110
+ if (s.length || xe) {
3111
+ const I = s[0] ?? V[0], B = Ve ? /* @__PURE__ */ t(Nt, { entityId: Ve, sdk: e.sdk, children: (Qe) => /* @__PURE__ */ t(_t, { infoPage: Qe, variant: e.chanceGameVariant }) }) : void 0, K = Ve ? /* @__PURE__ */ t(Nt, { entityId: Ve, sdk: e.sdk, children: (Qe) => /* @__PURE__ */ t(_t, { infoPage: Qe, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
3112
+ return e.template === _.OVERLAY ? /* @__PURE__ */ t(
3113
+ ra,
3049
3114
  {
3050
- summary: h,
3115
+ summary: I,
3051
3116
  showAnswerExplanations: e.showAnswerExplanations || !1,
3052
- personalityQuiz: d,
3053
- maxAttemptsReached: pe,
3054
- playAgain: ct,
3117
+ personalityQuiz: c,
3118
+ maxAttemptsReached: xe,
3119
+ playAgain: ut,
3055
3120
  sdk: e.sdk,
3056
3121
  leads: e.leads,
3057
3122
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3058
3123
  rulesDisplay: e.rulesDisplay,
3059
3124
  additionalCTA: e.additionalCTA,
3060
- chanceGameContent: T
3125
+ chanceGameContent: B
3061
3126
  }
3062
- ) : ve(e) ? /* @__PURE__ */ t(
3063
- Gi,
3127
+ ) : pe(e) ? /* @__PURE__ */ t(
3128
+ Zi,
3064
3129
  {
3065
3130
  imagePosition: e.imagePosition || "left",
3066
- summary: h,
3131
+ summary: I,
3067
3132
  showAnswerExplanations: e.showAnswerExplanations || !1,
3068
- personalityQuiz: d,
3069
- maxAttemptsReached: pe,
3133
+ personalityQuiz: c,
3134
+ maxAttemptsReached: xe,
3070
3135
  sdk: e.sdk,
3071
3136
  leads: e.leads,
3072
- playAgain: ct,
3137
+ playAgain: ut,
3073
3138
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3074
3139
  rulesDisplay: e.rulesDisplay,
3075
3140
  additionalCTA: e.additionalCTA,
3076
- chanceGameContent: Z
3141
+ chanceGameContent: K
3077
3142
  }
3078
3143
  ) : /* @__PURE__ */ t(
3079
- Ki,
3144
+ ta,
3080
3145
  {
3081
- summary: h,
3146
+ summary: I,
3082
3147
  showAnswerExplanations: e.showAnswerExplanations || !1,
3083
- personalityQuiz: d,
3084
- maxAttemptsReached: pe,
3085
- playAgain: ct,
3148
+ personalityQuiz: c,
3149
+ maxAttemptsReached: xe,
3150
+ playAgain: ut,
3086
3151
  sdk: e.sdk,
3087
3152
  leads: e.leads,
3088
3153
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3089
3154
  rulesDisplay: e.rulesDisplay,
3090
3155
  additionalCTA: e.additionalCTA,
3091
- chanceGameContent: Z
3156
+ chanceGameContent: K
3092
3157
  }
3093
3158
  );
3094
3159
  }
3095
- return ti();
3096
- }, Ca = (e) => {
3160
+ return ai();
3161
+ }, wa = (e) => {
3097
3162
  var r;
3098
- const i = Xe.useMemo(
3099
- () => e.template === G.OVERLAY ? { ...e.themeOptions, mode: "dark" } : e.themeOptions,
3163
+ const i = Je.useMemo(
3164
+ () => e.template === _.OVERLAY ? { ...e.themeOptions, mode: "dark" } : e.themeOptions,
3100
3165
  [e.template, e.themeOptions]
3101
3166
  );
3102
3167
  return /* @__PURE__ */ t(
3103
- ki,
3168
+ qi,
3104
3169
  {
3105
3170
  packageName: "personality-quiz-play",
3106
3171
  language: e.language,
@@ -3111,7 +3176,7 @@ const va = (e) => {
3111
3176
  children: e.children
3112
3177
  }
3113
3178
  );
3114
- }, Da = (e) => /* @__PURE__ */ t(Ca, { ...e, children: /* @__PURE__ */ t(va, { ...e }) });
3179
+ }, Ba = (e) => /* @__PURE__ */ t(wa, { ...e, children: /* @__PURE__ */ t(za, { ...e }) });
3115
3180
  export {
3116
- Da as M
3181
+ Ba as M
3117
3182
  };