fansunited-frontend-components 0.0.48 → 0.0.49

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 (57) hide show
  1. package/ChanceGame.js +45 -45
  2. package/ClassicQuizPlay.js +184 -183
  3. package/CollectLead.js +16 -15
  4. package/Discussion.js +1 -1
  5. package/EitherOrPlay.js +66 -65
  6. package/EventGamePlay.js +68 -67
  7. package/Leaderboard.js +22 -22
  8. package/MatchQuizPlay.js +82 -81
  9. package/PersonalityQuizPlay.js +77 -76
  10. package/PickThePair.js +42 -42
  11. package/PollVote.js +53 -52
  12. package/Predictor.js +75 -75
  13. package/README.md +272 -0
  14. package/chunks/{AlertMessage-D4Uc6n5U.js → AlertMessage-Ds45MBHB.js} +3 -3
  15. package/chunks/{ArrowRightAlt-wEs8SY1V.js → ArrowRightAlt-DKADQN2o.js} +1 -1
  16. package/chunks/{Avatar-BXHdXHLA.js → Avatar-K1EWhhkA.js} +2 -2
  17. package/chunks/{ChanceGameEmbedVariant-DfS5LPpp.js → ChanceGameEmbedVariant-DqFg4YKU.js} +31 -29
  18. package/chunks/{CheckCircle-CU2itira.js → CheckCircle-CV9iMpkZ.js} +1 -1
  19. package/chunks/{Close-DBt1nfGo.js → Close-BHp4N1-6.js} +1 -1
  20. package/chunks/{Close-C5SGTkPr.js → Close-C6Cw96SJ.js} +1 -1
  21. package/chunks/{CollectLeadForm-BqjgPYKX.js → CollectLeadForm-DnLKA8qz.js} +13 -13
  22. package/chunks/{Divider-Cbns9B3Y.js → Divider-BvUimRFw.js} +2 -2
  23. package/chunks/{Edit-BVP8fCB4.js → Edit-CZ3ni-Ur.js} +4 -4
  24. package/chunks/{EmojiEvents-D_ObJxNy.js → EmojiEvents-DpmLq98V.js} +1 -1
  25. package/chunks/{FavoriteBorder-_mUf1vas.js → FavoriteBorder-DUK_DrY4.js} +1 -1
  26. package/chunks/{FormControl-DLBvX-Sn.js → FormControl-BUItlVIg.js} +3 -3
  27. package/chunks/{FormLabel-jXtScWTI.js → FormLabel-CeTNPUn7.js} +2 -2
  28. package/chunks/{Input-Cha_dm3J.js → Input-MJCQcYzo.js} +2 -2
  29. package/chunks/{KeyboardArrowDown-C_8g8wLS.js → KeyboardArrowDown-SZpn2GhJ.js} +1 -1
  30. package/chunks/{ModalDialog-Co3jck0z.js → ModalDialog-Cfgv9UAA.js} +2 -2
  31. package/chunks/{NotFoundSkeleton-D5Jh3lnu.js → NotFoundSkeleton-Cs6DtD9u.js} +13 -12
  32. package/chunks/{Notification-r1Fm0If2.js → Notification-pcKtlRms.js} +4 -4
  33. package/chunks/{OverlayApiErrorSkeleton-BUuD0zL8.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +20 -19
  34. package/chunks/{OverlayLeadAfterCollection-B-N1OjPu.js → OverlayLeadAfterCollection-F2TAV9wK.js} +14 -12
  35. package/chunks/{OverlayScoreStateSkeleton-Bd3-ZNlU.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
  36. package/chunks/{Person-K8GGMiAW.js → Person-BGdniS_p.js} +1 -1
  37. package/chunks/{PickOneOfX-CvIn7QOd.js → PickOneOfX-Ci4ZJf7G.js} +8 -7
  38. package/chunks/{Popper-Bti_HOMS.js → Popper-DOVSI4rJ.js} +1 -1
  39. package/chunks/{Portal-B-nN3a_R.js → Portal-Cs0dgwmH.js} +1 -1
  40. package/chunks/{index-Btf_jw7-.js → PrizeCard-DF3QxwQJ.js} +0 -1
  41. package/chunks/{Select-C2QtqgA7.js → Select-BHeTdOYr.js} +3 -3
  42. package/chunks/{Spinner-D7-MZe2m.js → Spinner-DbUB64Gj.js} +1 -1
  43. package/chunks/{SplitLeadAfterCollection-CyXBWAIK.js → SplitLeadAfterCollection-DSw6X5fx.js} +36 -34
  44. package/chunks/{Stack-CU36SsgA.js → Stack-BpHk5eb0.js} +1 -1
  45. package/chunks/{StandardContentSkeleton-CYduGHsc.js → StandardContentSkeleton-Bae1LLQ_.js} +1 -1
  46. package/chunks/{Tabs-CA-FqQfT.js → Tabs-hwJ7jsUl.js} +3 -3
  47. package/chunks/{Textarea-Cn4VvCBl.js → Textarea-zOtMdgc5.js} +3 -3
  48. package/chunks/{TimerOutlined-DOpryr42.js → TimerOutlined-DWE7f0YX.js} +1 -1
  49. package/chunks/{helpers-1jFObSvc.js → helpers-NuC1SzL3.js} +1 -1
  50. package/chunks/index-BaypiKlO.js +4 -0
  51. package/chunks/{main-Chqd9Wwn.js → main-hB01WcoP.js} +88 -88
  52. package/chunks/{useEventCallback-CkO2rd5W.js → useEventCallback-CizlfWBo.js} +1 -1
  53. package/chunks/{useForwardedInput-C3SP2QmS.js → useForwardedInput-RWDntqBU.js} +2 -2
  54. package/chunks/{useImageVariant-BJ722AFw.js → useImageVariant-Cex1eIqq.js} +1 -1
  55. package/index.js +1 -1
  56. package/package.json +1 -1
  57. package/chunks/index-CyODGG_P.js +0 -4
@@ -1,33 +1,34 @@
1
1
  import { jsx as t, jsxs as A, Fragment as K } from "react/jsx-runtime";
2
- import { u as X, a as Q, b as J, c as Y, d as Re, e as ae, B as o, T as k, i as j, f as U, g as we, C as Qe, h as Le, W as q, j as Z, k as at, l as ot, n as Ke, o as lt } from "./chunks/index-Btf_jw7-.js";
3
- import { S as rt, a as ct, b as Je, C as Oe, c as _e } from "./chunks/ChanceGameEmbedVariant-DfS5LPpp.js";
4
- import Pe, { useState as G, useEffect as De, useMemo as Ne } from "react";
5
- import { s as st, l as Xe } from "./chunks/index-D1K1OB4p.js";
6
- import { S as Ge } from "./chunks/Spinner-D7-MZe2m.js";
7
- import { A as Be, O as dt } from "./chunks/ArrowRightAlt-wEs8SY1V.js";
8
- import { A as Ae, O as mt, S as gt, N as ut } from "./chunks/NotFoundSkeleton-D5Jh3lnu.js";
9
- import { u as ue, d as de, a as me, b as le } from "./chunks/useImageVariant-BJ722AFw.js";
10
- import { g as yt, e as ze, h as ye, s as ft, a as et, b as xt } from "./chunks/helpers-1jFObSvc.js";
11
- import { C as ht } from "./chunks/CollectLeadForm-BqjgPYKX.js";
12
- import { A as pe, R as ve, O as tt, S as nt } from "./chunks/OverlayApiErrorSkeleton-BUuD0zL8.js";
13
- import { T as Te, a as Fe, b as Ce, t as Ze, c as Ie } from "./chunks/Tabs-CA-FqQfT.js";
14
- import { C as bt } from "./chunks/CheckCircle-CU2itira.js";
15
- import { A as St, I as Ct, W as It } from "./chunks/AlertMessage-D4Uc6n5U.js";
16
- import { S as Pt } from "./chunks/Stack-CU36SsgA.js";
17
- import { S as Ye } from "./chunks/StandardContentSkeleton-CYduGHsc.js";
18
- import { S as zt, O as At, a as Tt, b as Ft } from "./chunks/OverlayLeadAfterCollection-B-N1OjPu.js";
19
- import { S as kt, a as Rt } from "./chunks/SplitLeadAfterCollection-CyXBWAIK.js";
20
- import { P as wt } from "./chunks/Portal-B-nN3a_R.js";
2
+ import Pe, { useState as G, useEffect as Re, useMemo as Oe } from "react";
3
+ import { u as X, a as Q, b as J, c as Y, d as we, e as ae, B as o, T as k, i as j, f as U, g as Qe, C as Le, h as De, W as q, j as Z, k as at, l as ot, n as Ke, o as lt } from "./chunks/PrizeCard-DF3QxwQJ.js";
4
+ import { P as rt } from "./chunks/Portal-Cs0dgwmH.js";
5
+ import "react-dom";
6
+ import { g as ct, e as ze, h as ue, s as st, a as Je, b as dt } from "./chunks/helpers-NuC1SzL3.js";
7
+ import { S as _e } from "./chunks/Spinner-DbUB64Gj.js";
8
+ import { S as mt, a as gt, b as Xe, C as Ne, c as Ge } from "./chunks/ChanceGameEmbedVariant-DqFg4YKU.js";
9
+ import { s as ut, l as et } from "./chunks/index-D1K1OB4p.js";
10
+ import { A as Be, O as yt } from "./chunks/ArrowRightAlt-DKADQN2o.js";
11
+ import { A as Ae, O as ft, S as xt, N as ht } from "./chunks/NotFoundSkeleton-Cs6DtD9u.js";
12
+ import { u as ye, d as de, a as me, b as le } from "./chunks/useImageVariant-Cex1eIqq.js";
13
+ import { C as bt } from "./chunks/CollectLeadForm-DnLKA8qz.js";
14
+ import { A as pe, R as ve, O as tt, S as nt } from "./chunks/OverlayApiErrorSkeleton-Dl3s5Oaf.js";
15
+ import { S as Ze } from "./chunks/StandardContentSkeleton-Bae1LLQ_.js";
16
+ import { T as Te, a as Fe, b as Ce, t as Ye, c as Ie } from "./chunks/Tabs-hwJ7jsUl.js";
17
+ import { C as St } from "./chunks/CheckCircle-CV9iMpkZ.js";
18
+ import { A as Ct, I as It, W as Pt } from "./chunks/AlertMessage-Ds45MBHB.js";
19
+ import { S as zt } from "./chunks/Stack-BpHk5eb0.js";
20
+ import { S as At, O as Tt, a as Ft, b as kt } from "./chunks/OverlayLeadAfterCollection-F2TAV9wK.js";
21
+ import { S as Rt, a as wt } from "./chunks/SplitLeadAfterCollection-DSw6X5fx.js";
21
22
  const Qt = (e, n) => {
22
23
  const [c, a] = G(null), l = async () => {
23
24
  try {
24
25
  const i = await n.miniGames.getPersonalityQuizById(e, !0);
25
26
  a(i);
26
27
  } catch (i) {
27
- console.error(i), a(new st());
28
+ console.error(i), a(new ut());
28
29
  }
29
30
  };
30
- return De(() => (l(), () => a(null)), [e, n]), c;
31
+ return Re(() => (l(), () => a(null)), [e, n]), c;
31
32
  }, Lt = (e, n, c) => {
32
33
  const [a, l] = G(null), [i, s] = G(!1), [r, g] = G(!1), [I, T] = G(""), m = async () => {
33
34
  try {
@@ -36,7 +37,7 @@ const Qt = (e, n) => {
36
37
  });
37
38
  l(F.data);
38
39
  } catch (F) {
39
- if (l([new Xe()]), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
40
+ if (l([new et()]), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
40
41
  const P = F;
41
42
  if (P.error.code === 401 || P.error.code === 403) {
42
43
  s(!0);
@@ -53,7 +54,7 @@ const Qt = (e, n) => {
53
54
  g(!0), T(R.data.error.message || "");
54
55
  }
55
56
  };
56
- return De(() => (m(), () => l([])), [e, n, c]), {
57
+ return Re(() => (m(), () => l([])), [e, n, c]), {
57
58
  myParticipation: a,
58
59
  isUnauthorized: i,
59
60
  isApiError: r,
@@ -64,7 +65,7 @@ const Qt = (e, n) => {
64
65
  };
65
66
  }, ke = (e) => {
66
67
  var u;
67
- const n = X(), c = Q(), a = J().sm, l = Y().primary, i = J().xs, s = Re().size, r = ae(), g = ue(e.option.images), I = e.questionImage ? null : g, T = ((u = e.brandingColors) == null ? void 0 : u.primaryColor) || c.palette.primary.plainColor, m = c.palette.primary.onPrimary, F = n.colorSchemes.light.textColor, h = (d) => e.selectedOption === d.optionId ? {
68
+ const n = X(), c = Q(), a = J().sm, l = Y().primary, i = J().xs, s = we().size, r = ae(), g = ye(e.option.images), I = e.questionImage ? null : g, T = ((u = e.brandingColors) == null ? void 0 : u.primaryColor) || c.palette.primary.plainColor, m = c.palette.primary.onPrimary, F = n.colorSchemes.light.textColor, h = (d) => e.selectedOption === d.optionId ? {
68
69
  bgcolor: T,
69
70
  boxShadow: `inset 0 0 0 ${s} ${T}`,
70
71
  color: m
@@ -228,7 +229,7 @@ const Qt = (e, n) => {
228
229
  }
229
230
  );
230
231
  }, _ = (e) => {
231
- const n = Y().secondary, c = j(), a = yt(e.primaryUrl, e.secondaryUrl, "logo");
232
+ const n = Y().secondary, c = j(), a = ct(e.primaryUrl, e.secondaryUrl, "logo");
232
233
  if (!e.brandingLogo)
233
234
  return null;
234
235
  const l = () => {
@@ -356,7 +357,7 @@ const Qt = (e, n) => {
356
357
  onClick: r
357
358
  };
358
359
  return /* @__PURE__ */ t(
359
- ht,
360
+ bt,
360
361
  {
361
362
  sdk: e,
362
363
  content: {
@@ -517,7 +518,7 @@ const Qt = (e, n) => {
517
518
  var L, D, p, H, M, N, V, E, $, ee, W, v, O, B, ne, oe, ie, re, ge, ce, se, he, be, Se;
518
519
  const [n, c] = Pe.useState(
519
520
  ((L = e.leads) == null ? void 0 : L.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
520
- ), { optionsLayout: a } = we(Qe), l = ae(), i = X(), s = ue(e.question.images), { t: r } = U(), g = j(), I = Le(), { brandingImage: T, brandingColors: m, brandingLogo: F } = ze(e.personalityQuiz.branding || null), h = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : j() ? de : me, R = T || le(
521
+ ), { optionsLayout: a } = Qe(Le), l = ae(), i = X(), s = ye(e.question.images), { t: r } = U(), g = j(), I = De(), { brandingImage: T, brandingColors: m, brandingLogo: F } = ze(e.personalityQuiz.branding || null), h = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : j() ? de : me, R = T || le(
521
522
  {
522
523
  images: e.personalityQuiz.images,
523
524
  imagePlaceholder: h
@@ -550,7 +551,7 @@ const Qt = (e, n) => {
550
551
  );
551
552
  };
552
553
  return /* @__PURE__ */ A(
553
- mt,
554
+ ft,
554
555
  {
555
556
  entity: e.personalityQuiz,
556
557
  headline: r("personalityQuiz.headline"),
@@ -717,7 +718,7 @@ const Qt = (e, n) => {
717
718
  children: e,
718
719
  brandingBorderColor: n
719
720
  }) => {
720
- const c = J().md, a = n || Q().secondaryContainer, l = Re().size, i = j(), s = l + " solid " + a;
721
+ const c = J().md, a = n || Q().secondaryContainer, l = we().size, i = j(), s = l + " solid " + a;
721
722
  return /* @__PURE__ */ t(
722
723
  o,
723
724
  {
@@ -865,7 +866,7 @@ const Qt = (e, n) => {
865
866
  var C, w, L, D, p, H, M, N, V, E, $, ee, W, v, O, B, ne;
866
867
  const [n, c] = Pe.useState(
867
868
  ((C = e.leads) == null ? void 0 : C.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
868
- ), { optionsLayout: a } = we(Qe), l = ue(e.question.images), { t: i } = U(), s = j(), r = ot(), g = ((w = e.personalityQuiz.branding) == null ? void 0 : w.colors) || null, I = s ? ((L = e.personalityQuiz.branding) == null ? void 0 : L.images.mobileLogo) || ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mainLogo) || "" : ((p = e.personalityQuiz.branding) == null ? void 0 : p.images.mainLogo) || "", T = e.imagePosition || "left", m = le(
869
+ ), { optionsLayout: a } = Qe(Le), l = ye(e.question.images), { t: i } = U(), s = j(), r = ot(), g = ((w = e.personalityQuiz.branding) == null ? void 0 : w.colors) || null, I = s ? ((L = e.personalityQuiz.branding) == null ? void 0 : L.images.mobileLogo) || ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mainLogo) || "" : ((p = e.personalityQuiz.branding) == null ? void 0 : p.images.mainLogo) || "", T = e.imagePosition || "left", m = le(
869
870
  {
870
871
  images: e.personalityQuiz.images,
871
872
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
@@ -875,7 +876,7 @@ const Qt = (e, n) => {
875
876
  spacingScale: y,
876
877
  fontFamilyPrimary: P,
877
878
  textColor: R,
878
- bgcolor: ye(z || ""),
879
+ bgcolor: ue(z || ""),
879
880
  mdBorderRadius: b,
880
881
  smBorderRadius: u,
881
882
  isExtraSmall: h
@@ -895,7 +896,7 @@ const Qt = (e, n) => {
895
896
  );
896
897
  };
897
898
  return /* @__PURE__ */ t(te, { brandingBorderColor: (g == null ? void 0 : g.borderColor) || null, children: /* @__PURE__ */ t(
898
- gt,
899
+ xt,
899
900
  {
900
901
  entity: e.personalityQuiz,
901
902
  headline: i("personalityQuiz.headline"),
@@ -1088,13 +1089,13 @@ const Qt = (e, n) => {
1088
1089
  var w, L, D, p, H, M, N, V, E, $, ee, W, v, O, B, ne, oe, ie, re;
1089
1090
  const [n, c] = Pe.useState(
1090
1091
  ((w = e.leads) == null ? void 0 : w.position) === "before" && e.personalityQuiz.authRequirement === "LEAD"
1091
- ), { optionsLayout: a } = we(Qe), l = X(), i = j(), s = Le(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? de : me, g = le(
1092
+ ), { optionsLayout: a } = Qe(Le), l = X(), i = j(), s = De(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? de : me, g = le(
1092
1093
  {
1093
1094
  images: e.personalityQuiz.images,
1094
1095
  imagePlaceholder: r
1095
1096
  },
1096
1097
  q.SPLIT
1097
- ), I = ue(e.question.images), { t: T } = U(), m = ((L = e.personalityQuiz.branding) == null ? void 0 : L.colors) || null, F = i ? ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mobileLogo) || ((p = e.personalityQuiz.branding) == null ? void 0 : p.images.mainLogo) || "" : ((H = e.personalityQuiz.branding) == null ? void 0 : H.images.mainLogo) || "", h = e.currentQuestion === e.personalityQuiz.questions.length && ((M = e.leads) == null ? void 0 : M.position) === "after" ? T("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? T("personalityQuiz.buttons.finish") : T("personalityQuiz.buttons.next"), R = (m == null ? void 0 : m.contentColor) || Q().textColor, P = Y().primary, z = (m == null ? void 0 : m.backgroundColor) || Q().surfaceVariant, b = (m == null ? void 0 : m.primaryColor) || ((V = (N = Q().palette) == null ? void 0 : N.primary) == null ? void 0 : V.plainColor), u = Q().textColor, d = ae(), y = J(), S = ye(z || ""), f = Ht({
1098
+ ), I = ye(e.question.images), { t: T } = U(), m = ((L = e.personalityQuiz.branding) == null ? void 0 : L.colors) || null, F = i ? ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mobileLogo) || ((p = e.personalityQuiz.branding) == null ? void 0 : p.images.mainLogo) || "" : ((H = e.personalityQuiz.branding) == null ? void 0 : H.images.mainLogo) || "", h = e.currentQuestion === e.personalityQuiz.questions.length && ((M = e.leads) == null ? void 0 : M.position) === "after" ? T("personalityQuiz.buttons.continue") : e.currentQuestion === e.personalityQuiz.questions.length ? T("personalityQuiz.buttons.finish") : T("personalityQuiz.buttons.next"), R = (m == null ? void 0 : m.contentColor) || Q().textColor, P = Y().primary, z = (m == null ? void 0 : m.backgroundColor) || Q().surfaceVariant, b = (m == null ? void 0 : m.primaryColor) || ((V = (N = Q().palette) == null ? void 0 : N.primary) == null ? void 0 : V.plainColor), u = Q().textColor, d = ae(), y = J(), S = ue(z || ""), f = Ht({
1098
1099
  spacingScale: d,
1099
1100
  borderRadius: y,
1100
1101
  fontFamilyPrimary: P,
@@ -1119,7 +1120,7 @@ const Qt = (e, n) => {
1119
1120
  };
1120
1121
  return /* @__PURE__ */ A(te, { brandingBorderColor: (m == null ? void 0 : m.borderColor) || null, children: [
1121
1122
  /* @__PURE__ */ t(
1122
- rt,
1123
+ mt,
1123
1124
  {
1124
1125
  entity: e.personalityQuiz,
1125
1126
  headline: T("personalityQuiz.headline"),
@@ -1380,7 +1381,7 @@ const Qt = (e, n) => {
1380
1381
  lineHeight: "143%",
1381
1382
  letterSpacing: "0.17px"
1382
1383
  },
1383
- children: ft(x == null ? void 0 : x.explanation)
1384
+ children: st(x == null ? void 0 : x.explanation)
1384
1385
  }
1385
1386
  )
1386
1387
  ]
@@ -1431,7 +1432,7 @@ const Qt = (e, n) => {
1431
1432
  bgcolor: a ? "#FAFAFA14" : "#2121210A"
1432
1433
  // Highlight selected tab
1433
1434
  },
1434
- [`&.${Ze.selected}`]: {
1435
+ [`&.${Ye.selected}`]: {
1435
1436
  bgcolor: a ? "#FAFAFA14" : "#2121210A",
1436
1437
  // Highlight selected tab
1437
1438
  borderBottom: "3px solid " + d,
@@ -1506,7 +1507,7 @@ const Qt = (e, n) => {
1506
1507
  bgcolor: a ? "#FAFAFA14" : "#2121210A"
1507
1508
  // Highlight selected tab
1508
1509
  },
1509
- [`&.${Ze.selected}`]: {
1510
+ [`&.${Ye.selected}`]: {
1510
1511
  bgcolor: a ? "#FAFAFA14" : "#2121210A",
1511
1512
  // Highlight selected tab
1512
1513
  borderBottom: "3px solid " + d,
@@ -2158,11 +2159,11 @@ const Qt = (e, n) => {
2158
2159
  }), Et = (e, n) => {
2159
2160
  switch (e) {
2160
2161
  case "success":
2161
- return /* @__PURE__ */ t(bt, {});
2162
+ return /* @__PURE__ */ t(St, {});
2162
2163
  case "error":
2163
- return /* @__PURE__ */ t(It, { sx: { color: n } });
2164
+ return /* @__PURE__ */ t(Pt, { sx: { color: n } });
2164
2165
  case "info":
2165
- return /* @__PURE__ */ t(Ct, {});
2166
+ return /* @__PURE__ */ t(It, {});
2166
2167
  }
2167
2168
  }, $t = (e) => {
2168
2169
  switch (e) {
@@ -2181,7 +2182,7 @@ const Qt = (e, n) => {
2181
2182
  }) => {
2182
2183
  const l = X(), i = J(), s = Y().secondary, r = $t(e);
2183
2184
  return /* @__PURE__ */ t(
2184
- St,
2185
+ Ct,
2185
2186
  {
2186
2187
  variant: "soft",
2187
2188
  color: r,
@@ -2196,7 +2197,7 @@ const Qt = (e, n) => {
2196
2197
  "--Icon-fontSize": "1.25em"
2197
2198
  },
2198
2199
  children: /* @__PURE__ */ A(
2199
- Pt,
2200
+ zt,
2200
2201
  {
2201
2202
  sx: {
2202
2203
  fontSize: "1.5em"
@@ -2459,7 +2460,7 @@ const Qt = (e, n) => {
2459
2460
  }), _t = ({
2460
2461
  personas: e
2461
2462
  }) => {
2462
- const [n, c] = G(0), a = X(), l = Q(), i = J(), s = Y(), r = ae(), g = j(), I = l.textPrimary, T = l.palette.primary.plainColor, m = l.textColor, F = `rgba(${ye(l.surfaceVariant || "")}, 0.5)`, h = l.surfaceVariant, R = a.colorSchemes.light.palette.success.plainColor, P = a.colorSchemes.light.palette.primary.onPrimary, z = Ot({
2463
+ const [n, c] = G(0), a = X(), l = Q(), i = J(), s = Y(), r = ae(), g = j(), I = l.textPrimary, T = l.palette.primary.plainColor, m = l.textColor, F = `rgba(${ue(l.surfaceVariant || "")}, 0.5)`, h = l.surfaceVariant, R = a.colorSchemes.light.palette.success.plainColor, P = a.colorSchemes.light.palette.primary.onPrimary, z = Ot({
2463
2464
  spacingScale: r,
2464
2465
  borderRadius: i,
2465
2466
  fontFamilyPrimary: s.primary,
@@ -2482,7 +2483,7 @@ const Qt = (e, n) => {
2482
2483
  children: [
2483
2484
  /* @__PURE__ */ t(Fe, { sx: z.tabList, children: e.map((b, u) => {
2484
2485
  var C, w;
2485
- const d = u === 0, y = ue(b.images), S = ((C = b.images) == null ? void 0 : C.mobile) || ((w = b.images) == null ? void 0 : w.main), f = g ? !!S : !!y && !b.description, x = g ? S : y;
2486
+ const d = u === 0, y = ye(b.images), S = ((C = b.images) == null ? void 0 : C.mobile) || ((w = b.images) == null ? void 0 : w.main), f = g ? !!S : !!y && !b.description, x = g ? S : y;
2486
2487
  return /* @__PURE__ */ t(
2487
2488
  Ce,
2488
2489
  {
@@ -2511,7 +2512,7 @@ const Qt = (e, n) => {
2511
2512
  e.filter((b) => b.description).map((b) => {
2512
2513
  const u = e.findIndex(
2513
2514
  (y) => y.personaId === b.personaId
2514
- ), d = ue(b.images);
2515
+ ), d = ye(b.images);
2515
2516
  return /* @__PURE__ */ t(
2516
2517
  Ie,
2517
2518
  {
@@ -2572,7 +2573,7 @@ const Qt = (e, n) => {
2572
2573
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
2573
2574
  },
2574
2575
  q.STANDARD
2575
- ), { t: a } = U(), l = ((C = e.personalityQuiz.branding) == null ? void 0 : C.colors) || null, i = j() ? ((w = e.personalityQuiz.branding) == null ? void 0 : w.images.mobileLogo) || ((L = e.personalityQuiz.branding) == null ? void 0 : L.images.mainLogo) || "" : ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mainLogo) || "", s = e.imagePosition || "left", r = Q().textPrimary, g = (l == null ? void 0 : l.primaryColor) || Q().palette.primary.plainColor, I = (l == null ? void 0 : l.secondaryColor) || Q().textSecondary, T = Q().secondaryContainer, m = (l == null ? void 0 : l.contentColor) || Q().textColor, F = Y().secondary, h = Y().primary, R = (l == null ? void 0 : l.backgroundColor) || Q().surface, P = Q().onSurface, z = J(), b = Re().size, u = ae(), d = `rgba(${ye(
2576
+ ), { t: a } = U(), l = ((C = e.personalityQuiz.branding) == null ? void 0 : C.colors) || null, i = j() ? ((w = e.personalityQuiz.branding) == null ? void 0 : w.images.mobileLogo) || ((L = e.personalityQuiz.branding) == null ? void 0 : L.images.mainLogo) || "" : ((D = e.personalityQuiz.branding) == null ? void 0 : D.images.mainLogo) || "", s = e.imagePosition || "left", r = Q().textPrimary, g = (l == null ? void 0 : l.primaryColor) || Q().palette.primary.plainColor, I = (l == null ? void 0 : l.secondaryColor) || Q().textSecondary, T = Q().secondaryContainer, m = (l == null ? void 0 : l.contentColor) || Q().textColor, F = Y().secondary, h = Y().primary, R = (l == null ? void 0 : l.backgroundColor) || Q().surface, P = Q().onSurface, z = J(), b = we().size, u = ae(), d = `rgba(${ue(
2576
2577
  Q().surfaceVariant || ""
2577
2578
  )}, 0.5)`, y = Vt({
2578
2579
  spacingScale: u,
@@ -2668,7 +2669,7 @@ const Qt = (e, n) => {
2668
2669
  pt: 0
2669
2670
  },
2670
2671
  children: /* @__PURE__ */ t(o, { sx: y.scoreStateWrapperContainer, children: /* @__PURE__ */ t(
2671
- Ye,
2672
+ Ze,
2672
2673
  {
2673
2674
  finalImage: c,
2674
2675
  imagePosition: s,
@@ -2677,7 +2678,7 @@ const Qt = (e, n) => {
2677
2678
  ) })
2678
2679
  }
2679
2680
  ) : /* @__PURE__ */ t(
2680
- Ye,
2681
+ Ze,
2681
2682
  {
2682
2683
  finalImage: c,
2683
2684
  imagePosition: s,
@@ -3228,7 +3229,7 @@ const Qt = (e, n) => {
3228
3229
  fontStyle: "italic"
3229
3230
  }
3230
3231
  }), Yt = ({ personas: e, brandingColors: n }) => {
3231
- const [c, a] = G(0), l = X(), i = Q(), s = J(), r = Y(), g = ae(), I = j(), T = i.textPrimary, m = (n == null ? void 0 : n.primaryColor) || i.palette.primary.plainColor, F = i.textColor, h = `rgba(${ye(i.surfaceVariant || "")}, 0.5)`, R = i.surfaceVariant, P = l.colorSchemes.light.palette.success.plainColor, z = l.colorSchemes.light.palette.primary.onPrimary, b = Zt({
3232
+ const [c, a] = G(0), l = X(), i = Q(), s = J(), r = Y(), g = ae(), I = j(), T = i.textPrimary, m = (n == null ? void 0 : n.primaryColor) || i.palette.primary.plainColor, F = i.textColor, h = `rgba(${ue(i.surfaceVariant || "")}, 0.5)`, R = i.surfaceVariant, P = l.colorSchemes.light.palette.success.plainColor, z = l.colorSchemes.light.palette.primary.onPrimary, b = Zt({
3232
3233
  spacingScale: g,
3233
3234
  borderRadius: s,
3234
3235
  fontFamilyPrimary: r.primary,
@@ -3251,7 +3252,7 @@ const Qt = (e, n) => {
3251
3252
  children: [
3252
3253
  /* @__PURE__ */ t(Fe, { sx: b.tabList, children: e.map((u, d) => {
3253
3254
  var w, L;
3254
- const y = d === 0, S = ue(u.images), f = ((w = u.images) == null ? void 0 : w.mobile) || ((L = u.images) == null ? void 0 : L.main), x = !!S, C = f || S;
3255
+ const y = d === 0, S = ye(u.images), f = ((w = u.images) == null ? void 0 : w.mobile) || ((L = u.images) == null ? void 0 : L.main), x = !!S, C = f || S;
3255
3256
  return /* @__PURE__ */ t(
3256
3257
  Ce,
3257
3258
  {
@@ -3308,7 +3309,7 @@ const Qt = (e, n) => {
3308
3309
  ) });
3309
3310
  }, Kt = (e) => {
3310
3311
  var D, p, H, M, N, V, E, $, ee, W, v, O, B, ne;
3311
- const n = X(), { t: c } = U(), a = j(), l = Le(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? de : me, s = le(
3312
+ const n = X(), { t: c } = U(), a = j(), l = De(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? de : me, s = le(
3312
3313
  {
3313
3314
  images: e.personalityQuiz.images,
3314
3315
  imagePlaceholder: i
@@ -3334,7 +3335,7 @@ const Qt = (e, n) => {
3334
3335
  secondaryColor: T,
3335
3336
  secondaryContainer: m,
3336
3337
  onPrimaryColor: F,
3337
- bgcolor: ye(P || ""),
3338
+ bgcolor: ue(P || ""),
3338
3339
  surfaceColor: z,
3339
3340
  onSurfaceColor: b,
3340
3341
  successColor: (v = (W = Q().palette) == null ? void 0 : W.success) == null ? void 0 : v.plainColor,
@@ -3348,7 +3349,7 @@ const Qt = (e, n) => {
3348
3349
  ), L = (oe) => {
3349
3350
  var ie;
3350
3351
  return /* @__PURE__ */ t(
3351
- ct,
3352
+ gt,
3352
3353
  {
3353
3354
  entity: e.personalityQuiz,
3354
3355
  headline: c("personalityQuiz.headline"),
@@ -3367,7 +3368,7 @@ const Qt = (e, n) => {
3367
3368
  display: "flex",
3368
3369
  flexDirection: "column",
3369
3370
  backdropFilter: "blur(4px)",
3370
- bgcolor: `rgba(${P ? ye(P || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
3371
+ bgcolor: `rgba(${P ? ue(P || "").replace(/[^\d,]/g, "") : ""}, 0.5)`,
3371
3372
  borderRadius: u.sm
3372
3373
  },
3373
3374
  children: /* @__PURE__ */ t(o, { sx: C.ctaContainer, children: /* @__PURE__ */ A(
@@ -4165,7 +4166,7 @@ const Qt = (e, n) => {
4165
4166
  imagePlaceholder: i
4166
4167
  },
4167
4168
  q.OVERLAY
4168
- ), T = (r == null ? void 0 : r.primaryColor) || n.colorSchemes.light.palette.primary.plainColor, m = (r == null ? void 0 : r.secondaryColor) || n.colorSchemes.dark.textSecondary, F = n.colorSchemes.dark.secondaryContainer, h = n.colorSchemes.light.palette.primary.onPrimary, R = n.colorSchemes.dark.textPrimary, P = n.customFontFamily.light.primary, z = n.customFontFamily.light.secondary, b = n.customRadius.light.md, u = n.customRadius.light.xl, d = (r == null ? void 0 : r.backgroundColor) || n.colorSchemes.dark.onSurface, y = et(I), S = qe(
4169
+ ), T = (r == null ? void 0 : r.primaryColor) || n.colorSchemes.light.palette.primary.plainColor, m = (r == null ? void 0 : r.secondaryColor) || n.colorSchemes.dark.textSecondary, F = n.colorSchemes.dark.secondaryContainer, h = n.colorSchemes.light.palette.primary.onPrimary, R = n.colorSchemes.dark.textPrimary, P = n.customFontFamily.light.primary, z = n.customFontFamily.light.secondary, b = n.customRadius.light.md, u = n.customRadius.light.xl, d = (r == null ? void 0 : r.backgroundColor) || n.colorSchemes.dark.onSurface, y = Je(I), S = qe(
4169
4170
  e.personalityQuiz,
4170
4171
  e.summary
4171
4172
  ), f = Jt({
@@ -4239,7 +4240,7 @@ const Qt = (e, n) => {
4239
4240
  ] });
4240
4241
  };
4241
4242
  return /* @__PURE__ */ t(
4242
- dt,
4243
+ yt,
4243
4244
  {
4244
4245
  entity: e.personalityQuiz,
4245
4246
  backgroundImage: y,
@@ -4261,7 +4262,7 @@ const Qt = (e, n) => {
4261
4262
  }, nn = () => {
4262
4263
  const { t: e } = U();
4263
4264
  return /* @__PURE__ */ t(te, { brandingBorderColor: null, children: /* @__PURE__ */ t(
4264
- ut,
4265
+ ht,
4265
4266
  {
4266
4267
  notFoundTitle: e("personalityQuiz.quizNotFound"),
4267
4268
  notFoundMessage: e("personalityQuiz.quizNotFoundDescription")
@@ -4305,7 +4306,7 @@ const Qt = (e, n) => {
4305
4306
  defaultImagePlaceholderUrl: a || (s ? de : me)
4306
4307
  }
4307
4308
  ) : n === q.SPLIT ? /* @__PURE__ */ t(te, { brandingBorderColor: (r == null ? void 0 : r.borderColor) || null, children: /* @__PURE__ */ t(
4308
- Je,
4309
+ Xe,
4309
4310
  {
4310
4311
  ...T,
4311
4312
  defaultImagePlaceholderUrl: a
@@ -4350,7 +4351,7 @@ const Qt = (e, n) => {
4350
4351
  var i, s, r, g;
4351
4352
  const n = j(), { t: c } = U(), a = ((i = e.personalityQuiz.branding) == null ? void 0 : i.colors) || null, l = n ? ((s = e.personalityQuiz.branding) == null ? void 0 : s.images.mobileLogo) || ((r = e.personalityQuiz.branding) == null ? void 0 : r.images.mainLogo) || "" : ((g = e.personalityQuiz.branding) == null ? void 0 : g.images.mainLogo) || "";
4352
4353
  return /* @__PURE__ */ t(te, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: /* @__PURE__ */ t(
4353
- Je,
4354
+ Xe,
4354
4355
  {
4355
4356
  entity: e.personalityQuiz,
4356
4357
  headline: c("personalityQuiz.headline"),
@@ -4528,7 +4529,7 @@ const Qt = (e, n) => {
4528
4529
  );
4529
4530
  };
4530
4531
  return /* @__PURE__ */ t(te, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
4531
- zt,
4532
+ At,
4532
4533
  {
4533
4534
  entity: e.personalityQuiz,
4534
4535
  headline: m("personalityQuiz.headline"),
@@ -4674,7 +4675,7 @@ const Qt = (e, n) => {
4674
4675
  );
4675
4676
  };
4676
4677
  return /* @__PURE__ */ t(te, { brandingBorderColor: (s == null ? void 0 : s.borderColor) || null, children: /* @__PURE__ */ t(
4677
- kt,
4678
+ Rt,
4678
4679
  {
4679
4680
  entity: e.personalityQuiz,
4680
4681
  headline: i("personalityQuiz.headline"),
@@ -4739,7 +4740,7 @@ const Qt = (e, n) => {
4739
4740
  imagePlaceholder: g
4740
4741
  },
4741
4742
  q.OVERLAY
4742
- ), T = et(I), m = (u = (b = n.customRadius) == null ? void 0 : b.light) == null ? void 0 : u.xl, F = (s == null ? void 0 : s.primaryColor) || ((f = (S = (y = (d = n.colorSchemes) == null ? void 0 : d.light) == null ? void 0 : y.palette) == null ? void 0 : S.primary) == null ? void 0 : f.plainColor), h = (L = (w = (C = (x = n.colorSchemes) == null ? void 0 : x.light) == null ? void 0 : C.palette) == null ? void 0 : w.primary) == null ? void 0 : L.onPrimary, R = n.customFontFamily.dark.primary, P = gn({
4743
+ ), T = Je(I), m = (u = (b = n.customRadius) == null ? void 0 : b.light) == null ? void 0 : u.xl, F = (s == null ? void 0 : s.primaryColor) || ((f = (S = (y = (d = n.colorSchemes) == null ? void 0 : d.light) == null ? void 0 : y.palette) == null ? void 0 : S.primary) == null ? void 0 : f.plainColor), h = (L = (w = (C = (x = n.colorSchemes) == null ? void 0 : x.light) == null ? void 0 : C.palette) == null ? void 0 : w.primary) == null ? void 0 : L.onPrimary, R = n.customFontFamily.dark.primary, P = gn({
4743
4744
  buttonRadius: m,
4744
4745
  primaryColor: F,
4745
4746
  onPrimaryColor: h,
@@ -4810,7 +4811,7 @@ const Qt = (e, n) => {
4810
4811
  );
4811
4812
  };
4812
4813
  return /* @__PURE__ */ t(
4813
- At,
4814
+ Tt,
4814
4815
  {
4815
4816
  entity: e.personalityQuiz,
4816
4817
  headline: c("personalityQuiz.headline"),
@@ -4831,7 +4832,7 @@ const Qt = (e, n) => {
4831
4832
  }, yn = (e) => {
4832
4833
  const { t: n } = U();
4833
4834
  return /* @__PURE__ */ t(
4834
- Tt,
4835
+ Ft,
4835
4836
  {
4836
4837
  entity: e.personalityQuiz,
4837
4838
  headline: n("personalityQuiz.headline"),
@@ -4849,7 +4850,7 @@ const Qt = (e, n) => {
4849
4850
  }, fn = (e) => {
4850
4851
  const { t: n } = U();
4851
4852
  return /* @__PURE__ */ t(
4852
- Rt,
4853
+ wt,
4853
4854
  {
4854
4855
  entity: e.personalityQuiz,
4855
4856
  headline: n("personalityQuiz.headline"),
@@ -4866,7 +4867,7 @@ const Qt = (e, n) => {
4866
4867
  }, xn = (e) => {
4867
4868
  const { t: n } = U();
4868
4869
  return /* @__PURE__ */ t(
4869
- Ft,
4870
+ kt,
4870
4871
  {
4871
4872
  entity: e.personalityQuiz,
4872
4873
  headline: n("personalityQuiz.headline"),
@@ -4892,16 +4893,16 @@ const hn = (e) => {
4892
4893
  setIsUnauthorized: C,
4893
4894
  setIsApiError: w,
4894
4895
  setApiMessage: L
4895
- } = Lt(e.entityId, e.sdk, m), D = Ne(() => {
4896
+ } = Lt(e.entityId, e.sdk, m), D = Oe(() => {
4896
4897
  var v;
4897
4898
  if (!d || !y || y.length === 0 || !((v = y[0]) != null && v.personalityQuizId) || !d.maxAttempts) return !1;
4898
4899
  const W = y[0];
4899
4900
  return d.maxAttempts <= W.attempts;
4900
- }, [d, y]), p = Ne(() => d ? xt(d.related) : null, [d]);
4901
- if (De(() => {
4901
+ }, [d, y]), p = Oe(() => d ? dt(d.related) : null, [d]);
4902
+ if (Re(() => {
4902
4903
  lt(e.language || "en");
4903
4904
  }, [e.language]), !d || !y)
4904
- return /* @__PURE__ */ t(Ge, { my: 20 });
4905
+ return /* @__PURE__ */ t(_e, { my: 20 });
4905
4906
  if (!d.id)
4906
4907
  return /* @__PURE__ */ t(nn, {});
4907
4908
  if (d.status !== "ACTIVE")
@@ -5004,7 +5005,7 @@ const hn = (e) => {
5004
5005
  );
5005
5006
  T(!1), g([v]), l(null);
5006
5007
  } catch (v) {
5007
- if (T(!1), g([new Xe()]), e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
5008
+ if (T(!1), g([new et()]), e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
5008
5009
  const B = v;
5009
5010
  B.error.code === 401 || B.error.code === 403 ? C(!0) : (w(!0), L(B.error.message || ""));
5010
5011
  } else {
@@ -5098,9 +5099,9 @@ const hn = (e) => {
5098
5099
  onLeadSubmitted: V,
5099
5100
  isSubmitting: h
5100
5101
  }
5101
- ) : /* @__PURE__ */ t(Ge, { my: 20 });
5102
+ ) : /* @__PURE__ */ t(_e, { my: 20 });
5102
5103
  if (r.length || D) {
5103
- const W = D ? y[0] : r[0], v = p ? /* @__PURE__ */ t(Oe, { entityId: p, sdk: e.sdk, children: (B) => /* @__PURE__ */ t(_e, { infoPage: B, variant: e.chanceGameVariant }) }) : void 0, O = p ? /* @__PURE__ */ t(Oe, { entityId: p, sdk: e.sdk, children: (B) => /* @__PURE__ */ t(_e, { infoPage: B, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
5104
+ const W = D ? y[0] : r[0], v = p ? /* @__PURE__ */ t(Ne, { entityId: p, sdk: e.sdk, children: (B) => /* @__PURE__ */ t(Ge, { infoPage: B, variant: e.chanceGameVariant }) }) : void 0, O = p ? /* @__PURE__ */ t(Ne, { entityId: p, sdk: e.sdk, children: (B) => /* @__PURE__ */ t(Ge, { infoPage: B, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
5104
5105
  return e.template === q.OVERLAY ? /* @__PURE__ */ t(
5105
5106
  tn,
5106
5107
  {
@@ -5150,7 +5151,7 @@ const hn = (e) => {
5150
5151
  );
5151
5152
  }
5152
5153
  return ee();
5153
- }, bn = (e) => /* @__PURE__ */ t(wt, { packageName: "personality-quiz-play", ...e, children: /* @__PURE__ */ t(hn, { ...e }) }), qn = bn;
5154
+ }, bn = (e) => /* @__PURE__ */ t(rt, { packageName: "personality-quiz-play", ...e, children: /* @__PURE__ */ t(hn, { ...e }) }), jn = bn;
5154
5155
  export {
5155
- qn as PersonalityQuizPlay
5156
+ jn as PersonalityQuizPlay
5156
5157
  };