fansunited-frontend-components 0.0.47 → 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 (67) hide show
  1. package/ChanceGame.js +81 -81
  2. package/ClassicQuizPlay.js +1437 -1477
  3. package/CollectLead.js +32 -32
  4. package/Discussion.js +1 -1
  5. package/EitherOrPlay.js +60 -60
  6. package/EventGamePlay.js +22 -22
  7. package/Leaderboard.js +41 -41
  8. package/MatchQuizPlay.js +25 -25
  9. package/PersonalityQuizPlay.js +1330 -45792
  10. package/PickThePair.js +92 -92
  11. package/PollVote.js +55 -55
  12. package/Predictor.js +10543 -10053
  13. package/README.md +272 -0
  14. package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +4 -0
  15. package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +4 -0
  16. package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +4 -0
  17. package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +4 -0
  18. package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +4 -0
  19. package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +4 -0
  20. package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +4 -0
  21. package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +4 -0
  22. package/chunks/{AlertMessage-DEQIOPix.js → AlertMessage-Ds45MBHB.js} +16 -16
  23. package/chunks/{ArrowRightAlt-B2nkus4s.js → ArrowRightAlt-DKADQN2o.js} +1 -1
  24. package/chunks/{Avatar-C9PZ4fZC.js → Avatar-K1EWhhkA.js} +24 -24
  25. package/chunks/{ChanceGameEmbedVariant-Bb_hUXEk.js → ChanceGameEmbedVariant-DqFg4YKU.js} +24 -24
  26. package/chunks/{CheckCircle-RcO0pr0f.js → CheckCircle-CV9iMpkZ.js} +30 -30
  27. package/chunks/{Close-QIefKug3.js → Close-BHp4N1-6.js} +3 -3
  28. package/chunks/{Close-CzCzTDc8.js → Close-C6Cw96SJ.js} +1 -1
  29. package/chunks/{CollectLeadForm-DFIhLeYH.js → CollectLeadForm-DnLKA8qz.js} +133 -133
  30. package/chunks/{Divider-DPp2a61F.js → Divider-BvUimRFw.js} +10 -10
  31. package/chunks/{Edit-Bb8BBw7A.js → Edit-CZ3ni-Ur.js} +20 -20
  32. package/chunks/{EmojiEvents-BhDSwudY.js → EmojiEvents-DpmLq98V.js} +4 -4
  33. package/chunks/{FavoriteBorder-B73FKZ3W.js → FavoriteBorder-DUK_DrY4.js} +1 -1
  34. package/chunks/{FormControl-DzsevPhU.js → FormControl-BUItlVIg.js} +47 -47
  35. package/chunks/{FormLabel-CYBeKW8B.js → FormLabel-CeTNPUn7.js} +13 -13
  36. package/chunks/{Input-eeZp8VCW.js → Input-MJCQcYzo.js} +13 -13
  37. package/chunks/{KeyboardArrowDown-BWtUKUIp.js → KeyboardArrowDown-SZpn2GhJ.js} +5 -5
  38. package/chunks/{ModalDialog-BF0aFU49.js → ModalDialog-Cfgv9UAA.js} +42 -42
  39. package/chunks/{NotFoundSkeleton-B_cooMQ9.js → NotFoundSkeleton-Cs6DtD9u.js} +83 -83
  40. package/chunks/{Notification-DAj7523J.js → Notification-pcKtlRms.js} +27 -27
  41. package/chunks/{OverlayApiErrorSkeleton-CiVtcOmG.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +19 -19
  42. package/chunks/{OverlayLeadAfterCollection-Df7xGLgO.js → OverlayLeadAfterCollection-F2TAV9wK.js} +7 -7
  43. package/chunks/{OverlayScoreStateSkeleton-CHzX1Gf7.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
  44. package/chunks/{Person-C0oARTCn.js → Person-BGdniS_p.js} +27 -27
  45. package/chunks/{PickOneOfX-CXiNBq-I.js → PickOneOfX-Ci4ZJf7G.js} +1 -1
  46. package/chunks/{Popper-D4TcZDq1.js → Popper-DOVSI4rJ.js} +28 -28
  47. package/chunks/{Portal-BNrzAjXr.js → Portal-Cs0dgwmH.js} +8 -8
  48. package/chunks/{PrizeCard-B0HczmXj.js → PrizeCard-DF3QxwQJ.js} +690 -634
  49. package/chunks/{Select-BpXJGPDL.js → Select-BHeTdOYr.js} +139 -139
  50. package/chunks/{Spinner-VF7pS8cz.js → Spinner-DbUB64Gj.js} +7 -7
  51. package/chunks/{SplitLeadAfterCollection-BVHQGprp.js → SplitLeadAfterCollection-DSw6X5fx.js} +12 -12
  52. package/chunks/{Stack-DchTYx6z.js → Stack-BpHk5eb0.js} +21 -21
  53. package/chunks/StandardContentSkeleton-Bae1LLQ_.js +57 -0
  54. package/chunks/{Tabs-CDt4yvnj.js → Tabs-hwJ7jsUl.js} +62 -62
  55. package/chunks/{Textarea-DCPE5K26.js → Textarea-zOtMdgc5.js} +42 -42
  56. package/chunks/{TimerOutlined-azUFE6Ed.js → TimerOutlined-DWE7f0YX.js} +3 -3
  57. package/chunks/{helpers-CV2Mo9Pu.js → helpers-NuC1SzL3.js} +8 -8
  58. package/chunks/index-BaypiKlO.js +4 -0
  59. package/chunks/{index-B2OgR4TV.js → index-D1K1OB4p.js} +144 -130
  60. package/chunks/{main-BSaQcsoh.js → main-hB01WcoP.js} +89 -89
  61. package/chunks/{useEventCallback-BlWyXJSF.js → useEventCallback-CizlfWBo.js} +5 -5
  62. package/chunks/{useForwardedInput-BFETxKKi.js → useForwardedInput-RWDntqBU.js} +16 -16
  63. package/chunks/{useImageVariant-DalagjyR.js → useImageVariant-Cex1eIqq.js} +3 -3
  64. package/index.d.ts.map +1 -1
  65. package/index.js +17 -12
  66. package/package.json +1 -1
  67. package/chunks/index-DEdShMam.js +0 -4
package/PickThePair.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx as t, jsxs as w, Fragment as Q } from "react/jsx-runtime";
2
- import { g as Ie, h as se, b as We, l as De } from "./chunks/helpers-CV2Mo9Pu.js";
3
- import Z, { useMemo as me, useCallback as ze, useEffect as de, useState as G } from "react";
4
- import { Z as ne, m as K, ab as Le, t as ee, k as X, a0 as ge, B as h, aq as ae, r as re, ai as Be, T as p, n as ue, o as te, $ as ke, ae as pe, W as fe, ah as Ue, i as Ae, g as $e, C as _e, h as He, E as Ee, j as Oe } from "./chunks/PrizeCard-B0HczmXj.js";
5
- import { S as je } from "./chunks/Spinner-VF7pS8cz.js";
1
+ import { jsx as t, jsxs as w, Fragment as J } from "react/jsx-runtime";
2
+ import { g as Ie, h as se, c as We, l as De } from "./chunks/helpers-NuC1SzL3.js";
3
+ import K, { useMemo as me, useCallback as Le, useEffect as de, useState as G } from "react";
4
+ import { f as ne, i as Z, h as ze, b as ee, a as X, d as ge, B as h, G as ae, c as re, p as Be, T as p, u as ue, e as te, j as ke, l as pe, W as fe, H as Ue, o as Ae, J as $e, K as _e, L as He, M as Oe, N as Ee } from "./chunks/PrizeCard-DF3QxwQJ.js";
5
+ import { S as je } from "./chunks/Spinner-DbUB64Gj.js";
6
6
  import { createPortal as Me } from "react-dom";
7
7
  import { u as Ne } from "./chunks/useInfoPage-BHdgKdme.js";
8
- import { N as Ve, S as Ye, O as qe } from "./chunks/NotFoundSkeleton-B_cooMQ9.js";
9
- import { C as Xe } from "./chunks/CollectLeadForm-DFIhLeYH.js";
10
- import { u as he, d as Ge, a as Qe } from "./chunks/useImageVariant-DalagjyR.js";
11
- import { T as Je } from "./chunks/TimerOutlined-azUFE6Ed.js";
8
+ import { N as Ve, S as Ye, O as qe } from "./chunks/NotFoundSkeleton-Cs6DtD9u.js";
9
+ import { C as Xe } from "./chunks/CollectLeadForm-DnLKA8qz.js";
10
+ import { b as he, d as Ge, a as Je } from "./chunks/useImageVariant-Cex1eIqq.js";
11
+ import { T as Qe } from "./chunks/TimerOutlined-DWE7f0YX.js";
12
12
  const xe = ({
13
13
  sdk: e,
14
14
  contentId: n,
@@ -29,7 +29,7 @@ const xe = ({
29
29
  isSubmittingParticipation: S = !1,
30
30
  onSuccessLabel: W
31
31
  }) => {
32
- const { t: R } = ne(), T = y ?? R("leads.header.title"), N = g ?? R("leads.header.description"), L = u ?? R("leads.buttons.submit"), z = x ?? R("leads.success.title"), I = b ?? R("leads.success.description"), U = a ? {
32
+ const { t: R } = ne(), T = y ?? R("leads.header.title"), N = g ?? R("leads.header.description"), z = u ?? R("leads.buttons.submit"), L = x ?? R("leads.success.title"), I = b ?? R("leads.success.description"), U = a ? {
33
33
  defaultLabel: W,
34
34
  onClick: a
35
35
  } : void 0, F = {
@@ -61,8 +61,8 @@ const xe = ({
61
61
  labels: {
62
62
  title: T,
63
63
  description: N,
64
- submitButtonLabel: L,
65
- successTitle: z,
64
+ submitButtonLabel: z,
65
+ successTitle: L,
66
66
  successDescription: I
67
67
  },
68
68
  syncWithProfile: P,
@@ -74,7 +74,7 @@ const xe = ({
74
74
  brandingBorderColor: n,
75
75
  state: r
76
76
  }) => {
77
- const c = K(), i = Le(), s = r === "play" ? i : c, l = ee().md, d = n || X().secondaryContainer, o = ge().size + " solid " + d;
77
+ const c = Z(), i = ze(), s = r === "play" ? i : c, l = ee().md, d = n || X().secondaryContainer, o = ge().size + " solid " + d;
78
78
  return /* @__PURE__ */ t(
79
79
  h,
80
80
  {
@@ -92,7 +92,7 @@ const xe = ({
92
92
  children: e
93
93
  }
94
94
  );
95
- }, Ze = ({ template: e }) => {
95
+ }, Ke = ({ template: e }) => {
96
96
  const { t: n } = ne(), r = /* @__PURE__ */ t(
97
97
  Ve,
98
98
  {
@@ -102,7 +102,7 @@ const xe = ({
102
102
  );
103
103
  return e === ae.LANDING_PAGE ? r : /* @__PURE__ */ t(we, { brandingBorderColor: null, children: r });
104
104
  }, Re = (e) => {
105
- const n = re().secondary, r = Be(), c = e.isSplitVariant && r, i = K(), s = Ie(e.primaryUrl, e.secondaryUrl, "logo");
105
+ const n = re().secondary, r = Be(), c = e.isSplitVariant && r, i = Z(), s = Ie(e.primaryUrl, e.secondaryUrl, "logo");
106
106
  if (!e.brandingLogo)
107
107
  return null;
108
108
  const l = () => {
@@ -206,7 +206,7 @@ const xe = ({
206
206
  ]
207
207
  }
208
208
  );
209
- }, Ke = (e) => {
209
+ }, Ze = (e) => {
210
210
  const {
211
211
  spacingScale: n,
212
212
  fontFamilyPrimary: r,
@@ -521,12 +521,12 @@ const ve = ({
521
521
  disabled: o = !1,
522
522
  isTimeUp: y = !1
523
523
  }) => {
524
- const g = K(), u = X(), x = ue(), b = te(), P = ee().xl, S = ge().size, W = (a == null ? void 0 : a.primary_color) || u.palette.primary.plainColor, R = (a == null ? void 0 : a.content_color) || x.colorSchemes.light.textColor, T = x.colorSchemes.dark.textColor, N = u.palette.success.plainColor, L = u.palette.danger.plainColor, I = et({
524
+ const g = Z(), u = X(), x = ue(), b = te(), P = ee().xl, S = ge().size, W = (a == null ? void 0 : a.primary_color) || u.palette.primary.plainColor, R = (a == null ? void 0 : a.content_color) || x.colorSchemes.light.textColor, T = x.colorSchemes.dark.textColor, N = u.palette.success.plainColor, z = u.palette.danger.plainColor, I = et({
525
525
  primaryColor: W,
526
526
  textColor: R,
527
527
  whiteTextColor: T,
528
528
  successColor: N,
529
- dangerColor: L,
529
+ dangerColor: z,
530
530
  optionBackground: "#FFFFFF",
531
531
  spacingScale: b,
532
532
  xlBorderRadius: P,
@@ -534,11 +534,11 @@ const ve = ({
534
534
  }), U = me(
535
535
  () => Fe(e, n),
536
536
  [e, n]
537
- ), F = (k) => e.find((f) => f.id === k), $ = (k) => r.some((f) => f.leftId === k), E = (k) => r.some((f) => f.rightId === k), _ = (k, f) => {
537
+ ), F = (k) => e.find((f) => f.id === k), $ = (k) => r.some((f) => f.leftId === k), O = (k) => r.some((f) => f.rightId === k), _ = (k, f) => {
538
538
  var B, j, M;
539
539
  const C = F(k);
540
540
  if (!C) return null;
541
- const m = f === "left" ? $(k) : E(k), v = f === "left" && c === k || f === "right" && i === k, H = (v || m) && C.images, A = g ? ((B = C.images) == null ? void 0 : B.mobile) || ((j = C.images) == null ? void 0 : j.main) : (M = C.images) == null ? void 0 : M.main, O = f === "left" ? C.optionA : C.optionB, V = () => {
541
+ const m = f === "left" ? $(k) : O(k), v = f === "left" && c === k || f === "right" && i === k, H = (v || m) && C.images, A = g ? ((B = C.images) == null ? void 0 : B.mobile) || ((j = C.images) == null ? void 0 : j.main) : (M = C.images) == null ? void 0 : M.main, E = f === "left" ? C.optionA : C.optionB, V = () => {
542
542
  o || s || y || (f === "left" ? l(k) : d(k));
543
543
  }, D = s && v, Y = s && !v;
544
544
  return /* @__PURE__ */ w(
@@ -556,18 +556,18 @@ const ve = ({
556
556
  {
557
557
  loading: "lazy",
558
558
  src: A,
559
- alt: O.title,
559
+ alt: E.title,
560
560
  style: { width: "100%", height: "100%", objectFit: "cover" }
561
561
  }
562
562
  ) }),
563
563
  /* @__PURE__ */ w(h, { sx: I.textContainer, children: [
564
- /* @__PURE__ */ t(p, { level: "body-md", sx: I.getOptionTitleStyle(f, v, m, D), children: O.title }),
565
- O.subtitle && /* @__PURE__ */ t(
564
+ /* @__PURE__ */ t(p, { level: "body-md", sx: I.getOptionTitleStyle(f, v, m, D), children: E.title }),
565
+ E.subtitle && /* @__PURE__ */ t(
566
566
  p,
567
567
  {
568
568
  level: "body-sm",
569
569
  sx: I.getOptionSubtitleStyle(f, v, m, D),
570
- children: O.subtitle
570
+ children: E.subtitle
571
571
  }
572
572
  )
573
573
  ] }),
@@ -576,7 +576,7 @@ const ve = ({
576
576
  {
577
577
  loading: "lazy",
578
578
  src: A,
579
- alt: O.title,
579
+ alt: E.title,
580
580
  style: { width: "100%", height: "100%", objectFit: "cover" }
581
581
  }
582
582
  ) })
@@ -603,7 +603,7 @@ const ve = ({
603
603
  transform: "scale(1)"
604
604
  }
605
605
  }
606
- }, x = ze(() => {
606
+ }, x = Le(() => {
607
607
  const S = e.timer - 1;
608
608
  e.onTimeUpdate(S);
609
609
  }, [e.onTimeUpdate, e.timer]);
@@ -651,7 +651,7 @@ const ve = ({
651
651
  },
652
652
  children: [
653
653
  /* @__PURE__ */ t(
654
- Je,
654
+ Qe,
655
655
  {
656
656
  sx: {
657
657
  width: "24px",
@@ -689,7 +689,7 @@ const ve = ({
689
689
  brandingColors: l,
690
690
  bgcolor: d
691
691
  }) => {
692
- const { t: a } = ne(), o = K(), y = X(), g = te(), u = ee().md, x = (l == null ? void 0 : l.content_color) || y.textColor, b = (l == null ? void 0 : l.primary_color) || y.palette.primary.plainColor, P = y.palette.danger.plainColor, S = y.palette.success.plainColor, W = y.surface, R = i - s, T = c ? S : P;
692
+ const { t: a } = ne(), o = Z(), y = X(), g = te(), u = ee().md, x = (l == null ? void 0 : l.content_color) || y.textColor, b = (l == null ? void 0 : l.primary_color) || y.palette.primary.plainColor, P = y.palette.danger.plainColor, S = y.palette.success.plainColor, W = y.surface, R = i - s, T = c ? S : P;
693
693
  return /* @__PURE__ */ t(
694
694
  h,
695
695
  {
@@ -835,7 +835,7 @@ const ve = ({
835
835
  );
836
836
  }, tt = (e) => {
837
837
  const n = re().primary, r = ee().xl, c = X().palette.primary.onPrimary, i = e.selectedOptions.length === 0 || e.isVoting;
838
- return /* @__PURE__ */ t(Q, { children: /* @__PURE__ */ t(
838
+ return /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(
839
839
  ke,
840
840
  {
841
841
  variant: "soft",
@@ -898,14 +898,14 @@ const ve = ({
898
898
  }
899
899
  ) });
900
900
  }, nt = (e) => {
901
- var T, N, L, z, I, U, F, $, E, _, k, f, C, m, v, H, A, O, V, D, Y, B, j;
902
- const { t: n } = ne(), r = K(), c = pe(), i = ((T = e.infoPage.branding) == null ? void 0 : T.colors) || null, s = r ? ((L = (N = e.infoPage.branding) == null ? void 0 : N.images) == null ? void 0 : L.mobile_logo) || ((I = (z = e.infoPage.branding) == null ? void 0 : z.images) == null ? void 0 : I.main_logo) || "" : ((F = (U = e.infoPage.branding) == null ? void 0 : U.images) == null ? void 0 : F.main_logo) || "", l = e.imagePosition || "left", [d, a] = G(!1), o = he(
901
+ var T, N, z, L, I, U, F, $, O, _, k, f, C, m, v, H, A, E, V, D, Y, B, j;
902
+ const { t: n } = ne(), r = Z(), c = pe(), i = ((T = e.infoPage.branding) == null ? void 0 : T.colors) || null, s = r ? ((z = (N = e.infoPage.branding) == null ? void 0 : N.images) == null ? void 0 : z.mobile_logo) || ((I = (L = e.infoPage.branding) == null ? void 0 : L.images) == null ? void 0 : I.main_logo) || "" : ((F = (U = e.infoPage.branding) == null ? void 0 : U.images) == null ? void 0 : F.main_logo) || "", l = e.imagePosition || "left", [d, a] = G(!1), o = he(
903
903
  {
904
904
  images: e.infoPage.images,
905
905
  imagePlaceholder: e.defaultImagePlaceholderUrl || ""
906
906
  },
907
907
  fe.STANDARD
908
- ), y = c || r && !!o, g = (i == null ? void 0 : i.content_color) || X().textColor, u = re().primary, x = (i == null ? void 0 : i.background_color) || X().surfaceVariant, b = ee().md, P = te(), S = Ke({
908
+ ), y = c || r && !!o, g = (i == null ? void 0 : i.content_color) || X().textColor, u = re().primary, x = (i == null ? void 0 : i.background_color) || X().surfaceVariant, b = ee().md, P = te(), S = Ze({
909
909
  spacingScale: P,
910
910
  fontFamilyPrimary: u,
911
911
  textColor: g,
@@ -913,14 +913,14 @@ const ve = ({
913
913
  mdBorderRadius: b,
914
914
  isExtraSmall: y
915
915
  }), W = e.matchedPairs.length === e.pairData.pairs.length, R = (M) => {
916
- var q, J, ie, oe, le;
916
+ var q, Q, ie, oe, le;
917
917
  return /* @__PURE__ */ t(
918
918
  Re,
919
919
  {
920
920
  brandingLogo: s,
921
921
  textColor: M,
922
922
  label: ((q = e.infoPage.labels) == null ? void 0 : q.sponsor) || null,
923
- primaryUrl: (ie = (J = e.infoPage.branding) == null ? void 0 : J.urls) == null ? void 0 : ie.primary_url,
923
+ primaryUrl: (ie = (Q = e.infoPage.branding) == null ? void 0 : Q.urls) == null ? void 0 : ie.primary_url,
924
924
  secondaryUrl: (le = (oe = e.infoPage.branding) == null ? void 0 : oe.urls) == null ? void 0 : le.secondary_url
925
925
  }
926
926
  );
@@ -939,7 +939,7 @@ const ve = ({
939
939
  imagePosition: l,
940
940
  embedCodeContainerRef: void 0,
941
941
  hasEmbedCode: !1,
942
- children: /* @__PURE__ */ w(Q, { children: [
942
+ children: /* @__PURE__ */ w(J, { children: [
943
943
  (($ = e.infoPage.labels) == null ? void 0 : $.welcome) && /* @__PURE__ */ t(
944
944
  p,
945
945
  {
@@ -1008,7 +1008,7 @@ const ve = ({
1008
1008
  sdk: e.sdk,
1009
1009
  contentId: e.infoPage.id,
1010
1010
  contentType: e.infoPage.type,
1011
- onSuccessLabel: ((E = e.infoPage.labels) == null ? void 0 : E.buttonLabel) || n("pickThePair.buttons.submit"),
1011
+ onSuccessLabel: ((O = e.infoPage.labels) == null ? void 0 : O.buttonLabel) || n("pickThePair.buttons.submit"),
1012
1012
  contentName: e.infoPage.title,
1013
1013
  brandingColors: (_ = e.infoPage.branding) == null ? void 0 : _.colors,
1014
1014
  brandingUrls: (k = e.infoPage.branding) == null ? void 0 : k.urls,
@@ -1018,7 +1018,7 @@ const ve = ({
1018
1018
  leadTitle: (v = e.infoPage.labels) == null ? void 0 : v.leadTitle,
1019
1019
  leadDescription: (H = e.infoPage.labels) == null ? void 0 : H.leadDescription,
1020
1020
  leadCta: (A = e.infoPage.labels) == null ? void 0 : A.leadCta,
1021
- leadSuccessTitle: (O = e.infoPage.labels) == null ? void 0 : O.successTitle,
1021
+ leadSuccessTitle: (E = e.infoPage.labels) == null ? void 0 : E.successTitle,
1022
1022
  leadSuccessDescription: (V = e.infoPage.labels) == null ? void 0 : V.successDescription,
1023
1023
  syncWithProfile: (D = e.leads) == null ? void 0 : D.syncWithProfile,
1024
1024
  isSubmittingParticipation: !W || e.isChallengeMode && !e.meetsThreshold
@@ -1026,7 +1026,7 @@ const ve = ({
1026
1026
  ) }),
1027
1027
  R(g)
1028
1028
  ] }) })
1029
- ) : /* @__PURE__ */ w(Q, { children: [
1029
+ ) : /* @__PURE__ */ w(J, { children: [
1030
1030
  r && e.isTimeUp ? (
1031
1031
  // Mobile: Time's Up - Show only overlay with fixed height
1032
1032
  ((Y = e.infoPage.labels) == null ? void 0 : Y.timeUp) && /* @__PURE__ */ t(
@@ -1085,7 +1085,7 @@ const ve = ({
1085
1085
  {
1086
1086
  sx: s ? S.footerContainer : S.footerContainerNoLogo,
1087
1087
  children: [
1088
- s && !y ? R(g) : /* @__PURE__ */ t(Q, {}),
1088
+ s && !y ? R(g) : /* @__PURE__ */ t(J, {}),
1089
1089
  /* @__PURE__ */ t(
1090
1090
  tt,
1091
1091
  {
@@ -1099,7 +1099,7 @@ const ve = ({
1099
1099
  ]
1100
1100
  }
1101
1101
  ),
1102
- s && y ? R(g) : /* @__PURE__ */ t(Q, {})
1102
+ s && y ? R(g) : /* @__PURE__ */ t(J, {})
1103
1103
  ] })
1104
1104
  ] })
1105
1105
  }
@@ -1419,12 +1419,12 @@ const ve = ({
1419
1419
  disabled: o = !1,
1420
1420
  isTimeUp: y = !1
1421
1421
  }) => {
1422
- const g = K(), u = ue(), x = X(), b = Ue(), P = te(), S = ee().xl, W = ge().size, R = (a == null ? void 0 : a.primary_color) || x.palette.primary.plainColor, T = (a == null ? void 0 : a.content_color) || u.colorSchemes.light.textColor, N = u.colorSchemes.dark.textColor, L = x.palette.success.plainColor, z = x.palette.danger.plainColor, I = b === "dark" ? "#FFFFFF" : x.onSurface, U = x.surface, F = ot({
1422
+ const g = Z(), u = ue(), x = X(), b = Ue(), P = te(), S = ee().xl, W = ge().size, R = (a == null ? void 0 : a.primary_color) || x.palette.primary.plainColor, T = (a == null ? void 0 : a.content_color) || u.colorSchemes.light.textColor, N = u.colorSchemes.dark.textColor, z = x.palette.success.plainColor, L = x.palette.danger.plainColor, I = b === "dark" ? "#FFFFFF" : x.onSurface, U = x.surface, F = ot({
1423
1423
  primaryColor: R,
1424
1424
  textColor: T,
1425
1425
  whiteTextColor: N,
1426
- successColor: L,
1427
- dangerColor: z,
1426
+ successColor: z,
1427
+ dangerColor: L,
1428
1428
  optionBackground: I,
1429
1429
  surface: U,
1430
1430
  mobile: g,
@@ -1434,11 +1434,11 @@ const ve = ({
1434
1434
  }), $ = me(
1435
1435
  () => Fe(e, n),
1436
1436
  [e, n]
1437
- ), E = (C) => e.find((m) => m.id === C), _ = (C) => r.some((m) => m.leftId === C), k = (C) => r.some((m) => m.rightId === C), f = (C, m) => {
1438
- var M, q, J;
1439
- const v = E(C);
1437
+ ), O = (C) => e.find((m) => m.id === C), _ = (C) => r.some((m) => m.leftId === C), k = (C) => r.some((m) => m.rightId === C), f = (C, m) => {
1438
+ var M, q, Q;
1439
+ const v = O(C);
1440
1440
  if (!v) return null;
1441
- const H = m === "left" ? _(C) : k(C), A = m === "left" && c === C || m === "right" && i === C, O = (A || H) && v.images, V = g ? ((M = v.images) == null ? void 0 : M.mobile) || ((q = v.images) == null ? void 0 : q.main) : (J = v.images) == null ? void 0 : J.main, D = m === "left" ? v.optionA : v.optionB, Y = () => {
1441
+ const H = m === "left" ? _(C) : k(C), A = m === "left" && c === C || m === "right" && i === C, E = (A || H) && v.images, V = g ? ((M = v.images) == null ? void 0 : M.mobile) || ((q = v.images) == null ? void 0 : q.main) : (Q = v.images) == null ? void 0 : Q.main, D = m === "left" ? v.optionA : v.optionB, Y = () => {
1442
1442
  o || s || y || (m === "left" ? l(C) : d(C));
1443
1443
  }, B = s && A, j = s && !A;
1444
1444
  return /* @__PURE__ */ w(
@@ -1451,7 +1451,7 @@ const ve = ({
1451
1451
  B && F.errorItem
1452
1452
  ],
1453
1453
  children: [
1454
- m === "right" && O && V && /* @__PURE__ */ t(h, { sx: F.getImageContainerStyle(H, B, m), children: /* @__PURE__ */ t(
1454
+ m === "right" && E && V && /* @__PURE__ */ t(h, { sx: F.getImageContainerStyle(H, B, m), children: /* @__PURE__ */ t(
1455
1455
  "img",
1456
1456
  {
1457
1457
  loading: "lazy",
@@ -1488,7 +1488,7 @@ const ve = ({
1488
1488
  }
1489
1489
  )
1490
1490
  ] }),
1491
- m === "left" && O && V && /* @__PURE__ */ t(h, { sx: F.getImageContainerStyle(H, B, m), children: /* @__PURE__ */ t(
1491
+ m === "left" && E && V && /* @__PURE__ */ t(h, { sx: F.getImageContainerStyle(H, B, m), children: /* @__PURE__ */ t(
1492
1492
  "img",
1493
1493
  {
1494
1494
  loading: "lazy",
@@ -1507,8 +1507,8 @@ const ve = ({
1507
1507
  /* @__PURE__ */ t(h, { sx: F.column, children: $.columnB.map((C) => f(C, "right")) })
1508
1508
  ] });
1509
1509
  }, at = (e) => {
1510
- var P, S, W, R, T, N, L, z, I, U, F, $, E, _, k, f, C, m, v, H, A, O, V, D, Y, B, j, M, q;
1511
- const { t: n } = ne(), r = K(), c = ((P = e.infoPage.branding) == null ? void 0 : P.colors) || null, i = he(
1510
+ var P, S, W, R, T, N, z, L, I, U, F, $, O, _, k, f, C, m, v, H, A, E, V, D, Y, B, j, M, q;
1511
+ const { t: n } = ne(), r = Z(), c = ((P = e.infoPage.branding) == null ? void 0 : P.colors) || null, i = he(
1512
1512
  {
1513
1513
  images: e.infoPage.images,
1514
1514
  imagePlaceholder: e.defaultImagePlaceholderUrl || ""
@@ -1608,13 +1608,13 @@ const ve = ({
1608
1608
  contentId: e.infoPage.id,
1609
1609
  onSuccessLabel: ((N = e.infoPage.labels) == null ? void 0 : N.buttonLabel) || n("pickThePair.buttons.submit"),
1610
1610
  contentName: e.infoPage.title,
1611
- brandingColors: (L = e.infoPage.branding) == null ? void 0 : L.colors,
1612
- brandingUrls: (z = e.infoPage.branding) == null ? void 0 : z.urls,
1611
+ brandingColors: (z = e.infoPage.branding) == null ? void 0 : z.colors,
1612
+ brandingUrls: (L = e.infoPage.branding) == null ? void 0 : L.urls,
1613
1613
  campaignId: (I = e.leads) == null ? void 0 : I.campaignId,
1614
1614
  campaignName: (U = e.leads) == null ? void 0 : U.campaignName,
1615
1615
  fields: (F = e.leads) == null ? void 0 : F.fields,
1616
1616
  leadTitle: ($ = e.infoPage.labels) == null ? void 0 : $.leadTitle,
1617
- leadDescription: (E = e.infoPage.labels) == null ? void 0 : E.leadDescription,
1617
+ leadDescription: (O = e.infoPage.labels) == null ? void 0 : O.leadDescription,
1618
1618
  leadCta: (_ = e.infoPage.labels) == null ? void 0 : _.buttonLabel,
1619
1619
  leadSuccessTitle: (k = e.infoPage.labels) == null ? void 0 : k.successTitle,
1620
1620
  leadSuccessDescription: (f = e.infoPage.labels) == null ? void 0 : f.successDescription,
@@ -1624,7 +1624,7 @@ const ve = ({
1624
1624
  ) }),
1625
1625
  (((v = (m = e.infoPage.branding) == null ? void 0 : m.images) == null ? void 0 : v.main_logo) || ((H = e.infoPage.labels) == null ? void 0 : H.disclaimer)) && /* @__PURE__ */ w(h, { sx: b.footer, children: [
1626
1626
  ((A = e.infoPage.labels) == null ? void 0 : A.disclaimer) && /* @__PURE__ */ t(p, { level: "body-sm", sx: b.disclaimer, children: e.infoPage.labels.disclaimer }),
1627
- ((V = (O = e.infoPage.branding) == null ? void 0 : O.images) == null ? void 0 : V.main_logo) && /* @__PURE__ */ t(
1627
+ ((V = (E = e.infoPage.branding) == null ? void 0 : E.images) == null ? void 0 : V.main_logo) && /* @__PURE__ */ t(
1628
1628
  "img",
1629
1629
  {
1630
1630
  src: r ? ((Y = (D = e.infoPage.branding) == null ? void 0 : D.images) == null ? void 0 : Y.mobile_logo) || ((j = (B = e.infoPage.branding) == null ? void 0 : B.images) == null ? void 0 : j.main_logo) : (q = (M = e.infoPage.branding) == null ? void 0 : M.images) == null ? void 0 : q.main_logo,
@@ -1733,14 +1733,14 @@ const ve = ({
1733
1733
  opacity: 0.9
1734
1734
  }
1735
1735
  }), ct = (e) => {
1736
- var $, E, _, k, f, C, m, v, H, A, O, V;
1737
- const [n, r] = Z.useState(!1), c = te(), i = ue(), { t: s } = ne(), l = K(), d = pe(), { brandingImage: a, brandingColors: o, brandingLogo: y } = We(e.infoPage.branding || null), g = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ge : Qe, u = a || he(
1736
+ var $, O, _, k, f, C, m, v, H, A, E, V;
1737
+ const [n, r] = K.useState(!1), c = te(), i = ue(), { t: s } = ne(), l = Z(), d = pe(), { brandingImage: a, brandingColors: o, brandingLogo: y } = We(e.infoPage.branding || null), g = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : l ? Ge : Je, u = a || he(
1738
1738
  {
1739
1739
  images: e.infoPage.images,
1740
1740
  imagePlaceholder: g
1741
1741
  },
1742
1742
  fe.OVERLAY
1743
- ), x = i.customRadius.dark.md, b = (o == null ? void 0 : o.background_color) || ((E = ($ = i.colorSchemes) == null ? void 0 : $.dark) == null ? void 0 : E.surfaceVariant), P = (k = (_ = i.customRadius) == null ? void 0 : _.light) == null ? void 0 : k.xl, S = (o == null ? void 0 : o.primary_color) || ((v = (m = (C = (f = i.colorSchemes) == null ? void 0 : f.light) == null ? void 0 : C.palette) == null ? void 0 : m.primary) == null ? void 0 : v.plainColor), W = (V = (O = (A = (H = i.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : A.palette) == null ? void 0 : O.primary) == null ? void 0 : V.onPrimary, R = i.customFontFamily.dark.primary, T = i.colorSchemes.dark.textColor, N = (o == null ? void 0 : o.content_color) || i.colorSchemes.dark.textColor, z = rt({
1743
+ ), x = i.customRadius.dark.md, b = (o == null ? void 0 : o.background_color) || ((O = ($ = i.colorSchemes) == null ? void 0 : $.dark) == null ? void 0 : O.surfaceVariant), P = (k = (_ = i.customRadius) == null ? void 0 : _.light) == null ? void 0 : k.xl, S = (o == null ? void 0 : o.primary_color) || ((v = (m = (C = (f = i.colorSchemes) == null ? void 0 : f.light) == null ? void 0 : C.palette) == null ? void 0 : m.primary) == null ? void 0 : v.plainColor), W = (V = (E = (A = (H = i.colorSchemes) == null ? void 0 : H.light) == null ? void 0 : A.palette) == null ? void 0 : E.primary) == null ? void 0 : V.onPrimary, R = i.customFontFamily.dark.primary, T = i.colorSchemes.dark.textColor, N = (o == null ? void 0 : o.content_color) || i.colorSchemes.dark.textColor, L = rt({
1744
1744
  spacingScale: c,
1745
1745
  mdBorderRadius: x,
1746
1746
  contentBgColor: b,
@@ -1766,9 +1766,9 @@ const ve = ({
1766
1766
  }
1767
1767
  );
1768
1768
  }, F = () => {
1769
- var D, Y, B, j, M, q, J, ie, oe, le, Pe, Se, Ce, Te;
1770
- return /* @__PURE__ */ t(Q, { children: n ? /* @__PURE__ */ w(Q, { children: [
1771
- /* @__PURE__ */ t(h, { sx: z.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1769
+ var D, Y, B, j, M, q, Q, ie, oe, le, Pe, Se, Ce, Te;
1770
+ return /* @__PURE__ */ t(J, { children: n ? /* @__PURE__ */ w(J, { children: [
1771
+ /* @__PURE__ */ t(h, { sx: L.contentContainerWithBackdrop, children: /* @__PURE__ */ t(
1772
1772
  xe,
1773
1773
  {
1774
1774
  sdk: e.sdk,
@@ -1781,7 +1781,7 @@ const ve = ({
1781
1781
  campaignId: (j = e.leads) == null ? void 0 : j.campaignId,
1782
1782
  campaignName: (M = e.leads) == null ? void 0 : M.campaignName,
1783
1783
  fields: (q = e.leads) == null ? void 0 : q.fields,
1784
- leadTitle: (J = e.infoPage.labels) == null ? void 0 : J.leadTitle,
1784
+ leadTitle: (Q = e.infoPage.labels) == null ? void 0 : Q.leadTitle,
1785
1785
  leadDescription: (ie = e.infoPage.labels) == null ? void 0 : ie.leadDescription,
1786
1786
  leadCta: (oe = e.infoPage.labels) == null ? void 0 : oe.leadCta,
1787
1787
  leadSuccessTitle: (le = e.infoPage.labels) == null ? void 0 : le.leadSuccessTitle,
@@ -1789,19 +1789,19 @@ const ve = ({
1789
1789
  syncWithProfile: (Se = e.leads) == null ? void 0 : Se.syncWithProfile
1790
1790
  }
1791
1791
  ) }),
1792
- y ? U() : /* @__PURE__ */ t(Q, {})
1793
- ] }) : /* @__PURE__ */ w(Q, { children: [
1792
+ y ? U() : /* @__PURE__ */ t(J, {})
1793
+ ] }) : /* @__PURE__ */ w(J, { children: [
1794
1794
  ((Ce = e.infoPage.labels) == null ? void 0 : Ce.welcome) && /* @__PURE__ */ t(
1795
1795
  p,
1796
1796
  {
1797
1797
  level: "body-md",
1798
1798
  sx: {
1799
- ...z.welcome
1799
+ ...L.welcome
1800
1800
  },
1801
1801
  children: e.infoPage.labels.welcome
1802
1802
  }
1803
1803
  ),
1804
- e.pairData.config.timeLimit > 0 && /* @__PURE__ */ t(h, { sx: z.stopwatchContainer, children: /* @__PURE__ */ t(
1804
+ e.pairData.config.timeLimit > 0 && /* @__PURE__ */ t(h, { sx: L.stopwatchContainer, children: /* @__PURE__ */ t(
1805
1805
  ye,
1806
1806
  {
1807
1807
  isRunning: e.isTimerRunning,
@@ -1811,7 +1811,7 @@ const ve = ({
1811
1811
  onTimeUpdate: e.onTimeUpdate
1812
1812
  }
1813
1813
  ) }),
1814
- e.isChallengeMode && /* @__PURE__ */ t(h, { sx: z.challengeStatsContainer, children: /* @__PURE__ */ t(
1814
+ e.isChallengeMode && /* @__PURE__ */ t(h, { sx: L.challengeStatsContainer, children: /* @__PURE__ */ t(
1815
1815
  be,
1816
1816
  {
1817
1817
  totalAttempts: e.totalAttempts,
@@ -1824,8 +1824,8 @@ const ve = ({
1824
1824
  bgcolor: b
1825
1825
  }
1826
1826
  ) }),
1827
- /* @__PURE__ */ w(h, { sx: z.contentContainerWithBackdrop, children: [
1828
- ((Te = e.infoPage.labels) == null ? void 0 : Te.instructions) && /* @__PURE__ */ t(p, { level: "body-lg", sx: z.instructions, children: e.infoPage.labels.instructions }),
1827
+ /* @__PURE__ */ w(h, { sx: L.contentContainerWithBackdrop, children: [
1828
+ ((Te = e.infoPage.labels) == null ? void 0 : Te.instructions) && /* @__PURE__ */ t(p, { level: "body-lg", sx: L.instructions, children: e.infoPage.labels.instructions }),
1829
1829
  /* @__PURE__ */ t(
1830
1830
  ve,
1831
1831
  {
@@ -1843,14 +1843,14 @@ const ve = ({
1843
1843
  }
1844
1844
  )
1845
1845
  ] }),
1846
- /* @__PURE__ */ w(h, { sx: z.bottomFooterContainer, children: [
1846
+ /* @__PURE__ */ w(h, { sx: L.bottomFooterContainer, children: [
1847
1847
  U(),
1848
1848
  e.leads && /* @__PURE__ */ t(
1849
1849
  ke,
1850
1850
  {
1851
1851
  variant: "soft",
1852
1852
  disabled: !I || e.isChallengeMode && !e.meetsThreshold || e.isTimeUp,
1853
- sx: z.continueButton,
1853
+ sx: L.continueButton,
1854
1854
  onClick: () => r(!0),
1855
1855
  children: /* @__PURE__ */ t(
1856
1856
  p,
@@ -1901,7 +1901,7 @@ const ve = ({
1901
1901
  const f = N();
1902
1902
  Ae(f);
1903
1903
  }, [e.language, T]);
1904
- const L = me(() => {
1904
+ const z = me(() => {
1905
1905
  if (!T || T.id === "not-found")
1906
1906
  return {
1907
1907
  pairs: [],
@@ -1927,13 +1927,13 @@ const ve = ({
1927
1927
  }
1928
1928
  }, [T]);
1929
1929
  de(() => {
1930
- L.config.timeLimit && L.config.timeLimit > 0 && (y(L.config.timeLimit), u(!0));
1931
- }, [L.config.timeLimit]);
1932
- const z = L.config.mode.toLowerCase() === "challenge", I = n.length, U = P > 0 ? I / P * 100 : 0, F = U >= L.config.successThresholdPercent;
1930
+ z.config.timeLimit && z.config.timeLimit > 0 && (y(z.config.timeLimit), u(!0));
1931
+ }, [z.config.timeLimit]);
1932
+ const L = z.config.mode.toLowerCase() === "challenge", I = n.length, U = P > 0 ? I / P * 100 : 0, F = U >= z.config.successThresholdPercent;
1933
1933
  if (!T)
1934
1934
  return /* @__PURE__ */ t(je, { my: 20 });
1935
1935
  if (T.id === "not-found")
1936
- return /* @__PURE__ */ t(Ze, { template: e.template });
1936
+ return /* @__PURE__ */ t(Ke, { template: e.template });
1937
1937
  const $ = (f) => {
1938
1938
  if (c === f) {
1939
1939
  i(null);
@@ -1949,7 +1949,7 @@ const ve = ({
1949
1949
  ]), i(null), l(null)) : (S((m) => m + 1), R((m) => m + 1), i(f), a(!0), setTimeout(() => {
1950
1950
  a(!1), i(null), l(null);
1951
1951
  }, 800)) : i(f);
1952
- }, E = (f) => {
1952
+ }, O = (f) => {
1953
1953
  if (s === f) {
1954
1954
  l(null);
1955
1955
  return;
@@ -1973,7 +1973,7 @@ const ve = ({
1973
1973
  at,
1974
1974
  {
1975
1975
  infoPage: T,
1976
- pairData: L,
1976
+ pairData: z,
1977
1977
  matchedPairs: n,
1978
1978
  selectedLeft: c,
1979
1979
  selectedRight: s,
@@ -1988,9 +1988,9 @@ const ve = ({
1988
1988
  incorrectAttempts: W,
1989
1989
  accuracy: U,
1990
1990
  meetsThreshold: F,
1991
- isChallengeMode: z,
1991
+ isChallengeMode: L,
1992
1992
  onSelectLeft: $,
1993
- onSelectRight: E,
1993
+ onSelectRight: O,
1994
1994
  onSubmit: k,
1995
1995
  onTimeUpdate: _
1996
1996
  }
@@ -1998,7 +1998,7 @@ const ve = ({
1998
1998
  ct,
1999
1999
  {
2000
2000
  infoPage: T,
2001
- pairData: L,
2001
+ pairData: z,
2002
2002
  matchedPairs: n,
2003
2003
  selectedLeft: c,
2004
2004
  selectedRight: s,
@@ -2013,9 +2013,9 @@ const ve = ({
2013
2013
  incorrectAttempts: W,
2014
2014
  accuracy: U,
2015
2015
  meetsThreshold: F,
2016
- isChallengeMode: z,
2016
+ isChallengeMode: L,
2017
2017
  onSelectLeft: $,
2018
- onSelectRight: E,
2018
+ onSelectRight: O,
2019
2019
  onSubmit: k,
2020
2020
  onTimeUpdate: _
2021
2021
  }
@@ -2023,7 +2023,7 @@ const ve = ({
2023
2023
  nt,
2024
2024
  {
2025
2025
  infoPage: T,
2026
- pairData: L,
2026
+ pairData: z,
2027
2027
  matchedPairs: n,
2028
2028
  selectedLeft: c,
2029
2029
  selectedRight: s,
@@ -2039,19 +2039,19 @@ const ve = ({
2039
2039
  incorrectAttempts: W,
2040
2040
  accuracy: U,
2041
2041
  meetsThreshold: F,
2042
- isChallengeMode: z,
2042
+ isChallengeMode: L,
2043
2043
  onSelectLeft: $,
2044
- onSelectRight: E,
2044
+ onSelectRight: O,
2045
2045
  onSubmit: k,
2046
2046
  onTimeUpdate: _
2047
2047
  }
2048
2048
  );
2049
2049
  }, dt = (e) => {
2050
2050
  var u;
2051
- const [n, r] = Z.useState(!1), c = Z.useRef(
2051
+ const [n, r] = K.useState(!1), c = K.useRef(
2052
2052
  `pick-the-pair-shadow-root-${Math.random().toString(36).substring(2, 11)}`
2053
- ), i = Z.useRef(null), s = Z.useRef(null), l = Z.useRef(null), d = Z.useRef(null);
2054
- Z.useEffect(() => {
2053
+ ), i = K.useRef(null), s = K.useRef(null), l = K.useRef(null), d = K.useRef(null);
2054
+ K.useEffect(() => {
2055
2055
  if (i.current)
2056
2056
  return i.current.shadowRoot ? (s.current = i.current.shadowRoot, l.current = s.current.getElementById(
2057
2057
  c.current
@@ -2068,13 +2068,13 @@ const ve = ({
2068
2068
  mode: e.template === ae.OVERLAY ? "dark" : a == null ? void 0 : a.mode
2069
2069
  }, y = /* @__PURE__ */ t(h, { ref: i }), g = n && i.current && l.current && d.current ? Me(
2070
2070
  /* @__PURE__ */ t(_e, { value: d.current, children: /* @__PURE__ */ t(He, { containerRef: i, children: /* @__PURE__ */ t(
2071
- Ee,
2071
+ Oe,
2072
2072
  {
2073
2073
  customTheme: o,
2074
2074
  mode: o == null ? void 0 : o.mode,
2075
2075
  shadowRootElement: l.current,
2076
2076
  children: /* @__PURE__ */ t(
2077
- Oe,
2077
+ Ee,
2078
2078
  {
2079
2079
  shadowRootElement: l.current,
2080
2080
  leadPhoneCountryCode: ((u = e.leads) == null ? void 0 : u.phoneCountryCode) || null,
@@ -2087,7 +2087,7 @@ const ve = ({
2087
2087
  ) }) }),
2088
2088
  l.current
2089
2089
  ) : null;
2090
- return /* @__PURE__ */ w(Q, { children: [
2090
+ return /* @__PURE__ */ w(J, { children: [
2091
2091
  y,
2092
2092
  g
2093
2093
  ] });