fansunited-frontend-components 0.0.39 → 0.0.40

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 (48) hide show
  1. package/ChanceGame.js +104 -102
  2. package/ClassicQuizPlay.js +45 -42
  3. package/CollectLead.js +25 -24
  4. package/Discussion.js +376 -378
  5. package/EitherOrPlay.d.ts +4 -0
  6. package/EitherOrPlay.d.ts.map +1 -0
  7. package/EitherOrPlay.js +2533 -0
  8. package/EventGamePlay.js +59 -54
  9. package/MatchQuizPlay.js +63 -57
  10. package/PersonalityQuizPlay.js +7935 -7201
  11. package/PickThePair.js +153 -151
  12. package/PollVote.js +108 -104
  13. package/chunks/{AlertMessage-C2aBXCrl.js → AlertMessage-cjTHrMUK.js} +51 -51
  14. package/chunks/ArrowRightAlt-88jKjh6A.js +8 -0
  15. package/chunks/Avatar-CQCrd1m-.js +352 -0
  16. package/chunks/ChanceGameEmbedVariant-DWqOTf4o.js +1051 -0
  17. package/chunks/{CheckCircle-D-GH16Lb.js → CheckCircle-ClY-iOQ5.js} +105 -105
  18. package/chunks/{CollectLeadForm-o9NdYQgu.js → CollectLeadForm-0vVnu4DL.js} +5 -5
  19. package/chunks/FavoriteBorder-BHnvGBrn.js +11 -0
  20. package/chunks/{useInfoPage-v91yL5SS.js → NotFoundSkeleton-B3RNa8KJ.js} +451 -646
  21. package/chunks/Notification-BTtUhfZQ.js +615 -0
  22. package/chunks/OverlayLeadAfterCollection-CaBbwZVo.js +480 -0
  23. package/chunks/{OverlayScoreStateSkeleton-xvq9lQEi.js → OverlayScoreStateSkeleton-DJn0Rim3.js} +3 -3
  24. package/chunks/Person-D0Im9_zE.js +522 -0
  25. package/chunks/{PickOneOfX-C2YpLk40.js → PickOneOfX-DYQ4c1o2.js} +7 -7
  26. package/chunks/{Portal-DWAr8MhA.js → Portal-B9wkUnY2.js} +7 -7
  27. package/chunks/{ConstantsProvider-BPJJz9fq.js → PrizeCard-gMp7I66d.js} +3593 -2860
  28. package/chunks/{Spinner-m59ZJZ35.js → Spinner-BBA89t5s.js} +50 -50
  29. package/chunks/StandardLeadAfterCollection-L1cOGfS6.js +432 -0
  30. package/chunks/{Tabs-BGihvj9C.js → Tabs-D_n8rNw3.js} +28 -28
  31. package/chunks/{Textarea-Bzlb89Zp.js → Textarea-BdN2xj4j.js} +44 -44
  32. package/chunks/{TimerOutlined-DiX8hCoC.js → TimerOutlined-DmKZDDI-.js} +1 -1
  33. package/chunks/chevron-right-DGEksBI7.js +330 -0
  34. package/chunks/default-quiz-bg-vertical-CT7rrg9o.js +5 -0
  35. package/chunks/index-2s5UkG1y.js +1607 -0
  36. package/chunks/useImageVariant-pnFelF9A.js +535 -0
  37. package/chunks/useInfoPage-DPkzE5Gn.js +204 -0
  38. package/components.d.ts +2 -1
  39. package/components.d.ts.map +1 -1
  40. package/index.d.ts +1 -0
  41. package/index.d.ts.map +1 -1
  42. package/index.js +4 -2
  43. package/package.json +1 -1
  44. package/chunks/ChanceGameEmbedVariant-BvIKBhq_.js +0 -2609
  45. package/chunks/Notification-Bwcoljir.js +0 -961
  46. package/chunks/OverlayLeadAfterCollection-B3D5ct0J.js +0 -901
  47. package/chunks/chevron-right-Dlc9ZKhv.js +0 -846
  48. package/chunks/useImageVariant-Do8kOVs2.js +0 -537
package/PollVote.js CHANGED
@@ -1,17 +1,21 @@
1
1
  import { jsxs as x, Fragment as B, jsx as t } from "react/jsx-runtime";
2
2
  import Ie, { useState as J, useEffect as Be, useRef as ot, useMemo as Xe } from "react";
3
- import { e as N, u as Z, f as ee, v as _, w as Y, x as F, y as ze, W as V, B as l, T as h, a7 as at, a0 as G, a2 as Ee, a1 as Te, am as Ae, a3 as We, a5 as p, aq as rt, d as ct, ao as st, i as dt } from "./chunks/ConstantsProvider-BPJJz9fq.js";
4
- import { P as gt } from "./chunks/Portal-DWAr8MhA.js";
5
- import { h as Ce, s as Ue, g as mt, e as Ve, d as he, a as be, u as ie, b as tt, n as ut } from "./chunks/useImageVariant-Do8kOVs2.js";
6
- import { S as ft } from "./chunks/Spinner-m59ZJZ35.js";
3
+ import { e as N, u as Z, f as ee, h as _, j as Y, k as F, g as ze, W as V, B as l, T as h, ac as at, A as p, F as je, a7 as Te, ag as Ae, S as We, D as G, aq as rt, c as ct, ao as st, i as dt } from "./chunks/PrizeCard-gMp7I66d.js";
4
+ import { P as gt } from "./chunks/Portal-B9wkUnY2.js";
5
+ import { h as Ce, s as Ue, g as mt, e as Ve, u as ie, a as tt, k as ut } from "./chunks/useImageVariant-pnFelF9A.js";
6
+ import { S as ft } from "./chunks/Spinner-BBA89t5s.js";
7
7
  import "react-dom";
8
- import { g as xt, M as yt, S as ht, A as Ge, R as pe, a as bt, O as nt, b as lt, c as it, C as Ze, d as et } from "./chunks/ChanceGameEmbedVariant-BvIKBhq_.js";
9
- import { R as Oe, A as Me, O as Ct, S as St, N as It } from "./chunks/useInfoPage-v91yL5SS.js";
10
- import { C as Tt } from "./chunks/CollectLeadForm-o9NdYQgu.js";
11
- import { C as At } from "./chunks/CheckCircle-D-GH16Lb.js";
12
- import { e as Pt, d as kt, f as vt, W as Ft } from "./chunks/AlertMessage-C2aBXCrl.js";
13
- import { O as Dt } from "./chunks/OverlayScoreStateSkeleton-xvq9lQEi.js";
14
- import { S as Lt, a as Rt, O as wt, b as Bt, c as zt, d as Wt } from "./chunks/OverlayLeadAfterCollection-B3D5ct0J.js";
8
+ import { S as xt, a as yt, O as nt, b as lt, C as Ze, c as et } from "./chunks/ChanceGameEmbedVariant-DWqOTf4o.js";
9
+ import { g as ht, M as bt, A as pe, R as Ge, S as it } from "./chunks/index-2s5UkG1y.js";
10
+ import { O as Ct } from "./chunks/useInfoPage-DPkzE5Gn.js";
11
+ import { d as he, a as be } from "./chunks/default-quiz-bg-vertical-CT7rrg9o.js";
12
+ import { C as St } from "./chunks/CollectLeadForm-0vVnu4DL.js";
13
+ import { R as Oe, A as Me, S as It, N as Tt } from "./chunks/NotFoundSkeleton-B3RNa8KJ.js";
14
+ import { C as At } from "./chunks/CheckCircle-ClY-iOQ5.js";
15
+ import { e as Pt, S as kt, f as vt, W as Ft } from "./chunks/AlertMessage-cjTHrMUK.js";
16
+ import { O as Dt } from "./chunks/OverlayScoreStateSkeleton-DJn0Rim3.js";
17
+ import { S as Lt, a as Rt } from "./chunks/StandardLeadAfterCollection-L1cOGfS6.js";
18
+ import { S as wt, O as Bt, a as zt, b as Wt } from "./chunks/OverlayLeadAfterCollection-CaBbwZVo.js";
15
19
  const Vt = (e) => {
16
20
  var n, o, i;
17
21
  return {
@@ -348,7 +352,7 @@ const Vt = (e) => {
348
352
  const c = await n.voting.getPollById(e, !0);
349
353
  i(c);
350
354
  } catch (c) {
351
- console.error(c), i(new xt());
355
+ console.error(c), i(new ht());
352
356
  }
353
357
  };
354
358
  return Be(() => (s(), () => i(null)), [e, n]), { poll: o, setPoll: i };
@@ -358,7 +362,7 @@ const Vt = (e) => {
358
362
  const k = await n.voting.getMyPollVote(e);
359
363
  s(k);
360
364
  } catch (f) {
361
- if (s(new yt()), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
365
+ if (s(new bt()), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
362
366
  const r = f;
363
367
  if (r.error.code === 404)
364
368
  return;
@@ -515,12 +519,12 @@ const Vt = (e) => {
515
519
  isAfterPosition: r = !1,
516
520
  isSubmittingParticipation: A = !1
517
521
  }) => {
518
- const { t: S } = G(), b = y ?? S("leads.header.title"), P = d ?? S("leads.header.description"), D = m ?? S("leads.buttons.submit"), T = f ?? S("leads.success.title"), C = k ?? S("leads.success.description"), z = {
522
+ const { t: S } = p(), b = y ?? S("leads.header.title"), P = d ?? S("leads.header.description"), D = m ?? S("leads.buttons.submit"), T = f ?? S("leads.success.title"), C = k ?? S("leads.success.description"), z = {
519
523
  defaultLabel: S(r ? "poll.buttons.vote" : "poll.buttons.start"),
520
524
  onClick: u
521
525
  };
522
526
  return /* @__PURE__ */ t(
523
- Tt,
527
+ St,
524
528
  {
525
529
  sdk: e,
526
530
  content: {
@@ -549,7 +553,7 @@ const Vt = (e) => {
549
553
  isSubmittingParticipation: A
550
554
  }
551
555
  );
552
- }, je = (e) => {
556
+ }, Ee = (e) => {
553
557
  const n = ot(null);
554
558
  return Be(() => {
555
559
  var o;
@@ -574,7 +578,7 @@ const Vt = (e) => {
574
578
  n.current && (n.current.innerHTML = "");
575
579
  };
576
580
  }, [e]), n;
577
- }, Et = (e) => ({
581
+ }, jt = (e) => ({
578
582
  // Main content section (non-filter screen)
579
583
  mainContentSection: {
580
584
  display: "flex",
@@ -677,7 +681,7 @@ const Vt = (e) => {
677
681
  }
678
682
  }), qe = (e) => {
679
683
  var b;
680
- const n = Z(), o = F(), i = Y().sm, s = _().primary, c = Y().xs, a = ee(), u = Ee().size, g = je(e.option.embedCode || ""), y = !!e.option.embedCode, d = ((b = e.brandingColors) == null ? void 0 : b.primaryColor) || o.palette.primary.plainColor, m = o.palette.primary.onPrimary, f = e.selectedOptions.includes(e.option.id) ? m : n.colorSchemes.light.textColor, k = e.optionsImages.get(e.option.id), I = () => {
684
+ const n = Z(), o = F(), i = Y().sm, s = _().primary, c = Y().xs, a = ee(), u = je().size, g = Ee(e.option.embedCode || ""), y = !!e.option.embedCode, d = ((b = e.brandingColors) == null ? void 0 : b.primaryColor) || o.palette.primary.plainColor, m = o.palette.primary.onPrimary, f = e.selectedOptions.includes(e.option.id) ? m : n.colorSchemes.light.textColor, k = e.optionsImages.get(e.option.id), I = () => {
681
685
  e.multipleChoice ? e.answerPoll([e.option.id]) : e.answerPoll([e.option.id]);
682
686
  }, r = e.selectedOptions.includes(e.option.id), A = e.isVoting || e.multipleChoice && !r && e.selectedOptions.length >= (e.maxChoices || 1), S = () => y ? /* @__PURE__ */ x(B, { children: [
683
687
  /* @__PURE__ */ t(
@@ -876,8 +880,8 @@ const Vt = (e) => {
876
880
  const c = (o ? (a = i.images) == null ? void 0 : a.mobile : (u = i.images) == null ? void 0 : u.main) || "";
877
881
  n.set(i.id, c);
878
882
  }), n;
879
- }, jt = (e) => {
880
- var U, R, O, W, M, K, Q, E, q, w, te, oe, ae, re, ce, se, de, ge, ne, me, ue, fe, xe, ye, ve, Fe;
883
+ }, Et = (e) => {
884
+ var U, R, O, W, M, K, Q, j, q, w, te, oe, ae, re, ce, se, de, ge, ne, me, ue, fe, xe, ye, ve, Fe;
881
885
  const [n, o] = Ie.useState(
882
886
  ((U = e.leads) == null ? void 0 : U.position) === "before" && e.poll.authRequirement === "LEAD"
883
887
  );
@@ -887,13 +891,13 @@ const Vt = (e) => {
887
891
  ((le = e.leads) == null ? void 0 : le.position) === "before" && e.poll.authRequirement === "LEAD" || !1
888
892
  );
889
893
  }, [(R = e.leads) == null ? void 0 : R.position, e.poll.authRequirement]);
890
- const { optionsLayout: i } = Te(Ae), s = ee(), c = Z(), a = ke(e.options), { t: u } = G(), g = N(), y = We(), d = je(e.poll.embedCode), m = !n && !!e.poll.embedCode, f = ((O = e.leads) == null ? void 0 : O.position) === "after" ? u("poll.buttons.continue") : u("poll.buttons.vote"), { brandingImage: k, brandingColors: I, brandingLogo: r } = Ve(e.poll.branding || null), A = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : N() ? he : be, S = k || ie(
894
+ const { optionsLayout: i } = Te(Ae), s = ee(), c = Z(), a = ke(e.options), { t: u } = p(), g = N(), y = We(), d = Ee(e.poll.embedCode), m = !n && !!e.poll.embedCode, f = ((O = e.leads) == null ? void 0 : O.position) === "after" ? u("poll.buttons.continue") : u("poll.buttons.vote"), { brandingImage: k, brandingColors: I, brandingLogo: r } = Ve(e.poll.branding || null), A = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : N() ? he : be, S = k || ie(
891
895
  {
892
896
  images: e.poll.images,
893
897
  imagePlaceholder: A
894
898
  },
895
899
  V.OVERLAY
896
- ), b = c.customRadius.dark.sm, P = (I == null ? void 0 : I.backgroundColor) || ((M = (W = c.colorSchemes) == null ? void 0 : W.dark) == null ? void 0 : M.surfaceVariant), D = (Q = (K = c.customRadius) == null ? void 0 : K.light) == null ? void 0 : Q.xl, T = (I == null ? void 0 : I.primaryColor) || ((te = (w = (q = (E = c.colorSchemes) == null ? void 0 : E.light) == null ? void 0 : q.palette) == null ? void 0 : w.primary) == null ? void 0 : te.plainColor), C = (ce = (re = (ae = (oe = c.colorSchemes) == null ? void 0 : oe.light) == null ? void 0 : ae.palette) == null ? void 0 : re.primary) == null ? void 0 : ce.onPrimary, z = c.customFontFamily.dark.primary, L = c.colorSchemes.dark.textColor, v = Et({
900
+ ), b = c.customRadius.dark.sm, P = (I == null ? void 0 : I.backgroundColor) || ((M = (W = c.colorSchemes) == null ? void 0 : W.dark) == null ? void 0 : M.surfaceVariant), D = (Q = (K = c.customRadius) == null ? void 0 : K.light) == null ? void 0 : Q.xl, T = (I == null ? void 0 : I.primaryColor) || ((te = (w = (q = (j = c.colorSchemes) == null ? void 0 : j.light) == null ? void 0 : q.palette) == null ? void 0 : w.primary) == null ? void 0 : te.plainColor), C = (ce = (re = (ae = (oe = c.colorSchemes) == null ? void 0 : oe.light) == null ? void 0 : ae.palette) == null ? void 0 : re.primary) == null ? void 0 : ce.onPrimary, z = c.customFontFamily.dark.primary, L = c.colorSchemes.dark.textColor, v = jt({
897
901
  spacingScale: s,
898
902
  smBorderRadius: b,
899
903
  contentBgColor: P,
@@ -905,7 +909,7 @@ const Vt = (e) => {
905
909
  isMobile: g
906
910
  }), H = () => {
907
911
  o(!1);
908
- }, j = () => {
912
+ }, E = () => {
909
913
  var le, He, De, Le, Re;
910
914
  return /* @__PURE__ */ t(
911
915
  $,
@@ -971,9 +975,9 @@ const Vt = (e) => {
971
975
  )
972
976
  ] }) }),
973
977
  /* @__PURE__ */ x(l, { sx: v.bottomFooterContainer, children: [
974
- j(),
978
+ E(),
975
979
  !n && /* @__PURE__ */ t(
976
- p,
980
+ G,
977
981
  {
978
982
  variant: "soft",
979
983
  sx: v.nextButton,
@@ -990,7 +994,7 @@ const Vt = (e) => {
990
994
  }, Ne = (e) => {
991
995
  const n = _().primary, o = Y().xl, i = F().palette.primary.onPrimary, s = e.selectedOptions.length === 0 || e.isVoting;
992
996
  return /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(
993
- p,
997
+ G,
994
998
  {
995
999
  variant: "soft",
996
1000
  disabled: s,
@@ -1056,7 +1060,7 @@ const Vt = (e) => {
1056
1060
  brandingBorderColor: n,
1057
1061
  state: o
1058
1062
  }) => {
1059
- const i = N(), s = We(), c = o === "play" ? s : i, a = Y().md, u = n || F().secondaryContainer, y = Ee().size + " solid " + u;
1063
+ const i = N(), s = We(), c = o === "play" ? s : i, a = Y().md, u = n || F().secondaryContainer, y = je().size + " solid " + u;
1060
1064
  return /* @__PURE__ */ t(
1061
1065
  l,
1062
1066
  {
@@ -1164,7 +1168,7 @@ const Vt = (e) => {
1164
1168
  alignItems: "center"
1165
1169
  }
1166
1170
  }), qt = (e) => {
1167
- var v, H, j, U, R, O, W, M, K, Q, E, q, w, te, oe, ae, re, ce, se, de, ge;
1171
+ var v, H, E, U, R, O, W, M, K, Q, j, q, w, te, oe, ae, re, ce, se, de, ge;
1168
1172
  const [n, o] = Ie.useState(
1169
1173
  ((v = e.leads) == null ? void 0 : v.position) === "before" && e.poll.authRequirement === "LEAD"
1170
1174
  );
@@ -1174,7 +1178,7 @@ const Vt = (e) => {
1174
1178
  ((ne = e.leads) == null ? void 0 : ne.position) === "before" && e.poll.authRequirement === "LEAD" || !1
1175
1179
  );
1176
1180
  }, [(H = e.leads) == null ? void 0 : H.position, e.poll.authRequirement]);
1177
- const { optionsLayout: i } = Te(Ae), s = je(e.poll.embedCode), c = !n && !!e.poll.embedCode, a = ke(e.options), { t: u } = G(), g = N(), y = rt(), d = ((j = e.poll.branding) == null ? void 0 : j.colors) || null, m = g ? ((R = (U = e.poll.branding) == null ? void 0 : U.images) == null ? void 0 : R.mobileLogo) || ((W = (O = e.poll.branding) == null ? void 0 : O.images) == null ? void 0 : W.mainLogo) || "" : ((K = (M = e.poll.branding) == null ? void 0 : M.images) == null ? void 0 : K.mainLogo) || "", f = e.imagePosition || "left", k = ie(
1181
+ const { optionsLayout: i } = Te(Ae), s = Ee(e.poll.embedCode), c = !n && !!e.poll.embedCode, a = ke(e.options), { t: u } = p(), g = N(), y = rt(), d = ((E = e.poll.branding) == null ? void 0 : E.colors) || null, m = g ? ((R = (U = e.poll.branding) == null ? void 0 : U.images) == null ? void 0 : R.mobileLogo) || ((W = (O = e.poll.branding) == null ? void 0 : O.images) == null ? void 0 : W.mainLogo) || "" : ((K = (M = e.poll.branding) == null ? void 0 : M.images) == null ? void 0 : K.mainLogo) || "", f = e.imagePosition || "left", k = ie(
1178
1182
  {
1179
1183
  images: e.poll.images,
1180
1184
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
@@ -1203,7 +1207,7 @@ const Vt = (e) => {
1203
1207
  );
1204
1208
  };
1205
1209
  return /* @__PURE__ */ t(X, { brandingBorderColor: (d == null ? void 0 : d.borderColor) || null, children: /* @__PURE__ */ t(
1206
- St,
1210
+ It,
1207
1211
  {
1208
1212
  entity: e.poll,
1209
1213
  headline: u("poll.headline"),
@@ -1220,7 +1224,7 @@ const Vt = (e) => {
1220
1224
  startGame: z,
1221
1225
  contentId: e.poll.id,
1222
1226
  contentName: e.poll.title,
1223
- brandingColors: (E = e.poll.branding) == null ? void 0 : E.colors,
1227
+ brandingColors: (j = e.poll.branding) == null ? void 0 : j.colors,
1224
1228
  brandingUrls: (q = e.poll.branding) == null ? void 0 : q.urls,
1225
1229
  campaignId: (w = e.leads) == null ? void 0 : w.campaignId,
1226
1230
  campaignName: (te = e.leads) == null ? void 0 : te.campaignName,
@@ -1604,7 +1608,7 @@ const Vt = (e) => {
1604
1608
  }
1605
1609
  };
1606
1610
  }, Nt = (e) => {
1607
- var M, K, Q, E, q, w, te, oe, ae, re, ce, se, de, ge, ne, me, ue, fe, xe, ye, ve, Fe;
1611
+ var M, K, Q, j, q, w, te, oe, ae, re, ce, se, de, ge, ne, me, ue, fe, xe, ye, ve, Fe;
1608
1612
  const [n, o] = Ie.useState(
1609
1613
  ((M = e.leads) == null ? void 0 : M.position) === "before" && e.poll.authRequirement === "LEAD"
1610
1614
  );
@@ -1620,7 +1624,7 @@ const Vt = (e) => {
1620
1624
  imagePlaceholder: u
1621
1625
  },
1622
1626
  V.SPLIT
1623
- ), y = ke(e.options), { t: d } = G(), m = ((Q = e.poll.branding) == null ? void 0 : Q.colors) || null, f = c ? ((E = e.poll.branding) == null ? void 0 : E.images.mobileLogo) || ((q = e.poll.branding) == null ? void 0 : q.images.mainLogo) || "" : ((w = e.poll.branding) == null ? void 0 : w.images.mainLogo) || "", k = je(e.poll.embedCode), I = !n && !!e.poll.embedCode, r = ((te = e.leads) == null ? void 0 : te.position) === "after" ? d("poll.buttons.continue") : d("poll.buttons.vote"), A = (m == null ? void 0 : m.contentColor) || F().textColor, S = _().secondary, b = "60%", P = _().primary, D = Y().xl, T = (m == null ? void 0 : m.backgroundColor) || F().surfaceVariant, C = (m == null ? void 0 : m.primaryColor) || ((ae = (oe = F().palette) == null ? void 0 : oe.primary) == null ? void 0 : ae.plainColor), z = (ce = (re = F().palette) == null ? void 0 : re.primary) == null ? void 0 : ce.onPrimary, L = F().textColor, v = ee(), H = Y(), j = ze(
1627
+ ), y = ke(e.options), { t: d } = p(), m = ((Q = e.poll.branding) == null ? void 0 : Q.colors) || null, f = c ? ((j = e.poll.branding) == null ? void 0 : j.images.mobileLogo) || ((q = e.poll.branding) == null ? void 0 : q.images.mainLogo) || "" : ((w = e.poll.branding) == null ? void 0 : w.images.mainLogo) || "", k = Ee(e.poll.embedCode), I = !n && !!e.poll.embedCode, r = ((te = e.leads) == null ? void 0 : te.position) === "after" ? d("poll.buttons.continue") : d("poll.buttons.vote"), A = (m == null ? void 0 : m.contentColor) || F().textColor, S = _().secondary, b = "60%", P = _().primary, D = Y().xl, T = (m == null ? void 0 : m.backgroundColor) || F().surfaceVariant, C = (m == null ? void 0 : m.primaryColor) || ((ae = (oe = F().palette) == null ? void 0 : oe.primary) == null ? void 0 : ae.plainColor), z = (ce = (re = F().palette) == null ? void 0 : re.primary) == null ? void 0 : ce.onPrimary, L = F().textColor, v = ee(), H = Y(), E = ze(
1624
1628
  V.SPLIT
1625
1629
  ), U = Ce(T || ""), R = $t({
1626
1630
  finalImage: g,
@@ -1637,7 +1641,7 @@ const Vt = (e) => {
1637
1641
  textColor: L,
1638
1642
  brandingColors: m,
1639
1643
  darkTextColor: s.colorSchemes.dark.textColor,
1640
- imageBackgroundGradient: j,
1644
+ imageBackgroundGradient: E,
1641
1645
  isLarge: a
1642
1646
  }), O = () => {
1643
1647
  o(!1);
@@ -1662,7 +1666,7 @@ const Vt = (e) => {
1662
1666
  state: "play",
1663
1667
  children: [
1664
1668
  /* @__PURE__ */ t(
1665
- ht,
1669
+ xt,
1666
1670
  {
1667
1671
  entity: { ...e.poll, type: "poll" },
1668
1672
  headline: d("poll.headline"),
@@ -1806,8 +1810,8 @@ const Vt = (e) => {
1806
1810
  ]
1807
1811
  }
1808
1812
  );
1809
- }, Gt = (e) => {
1810
- const n = Y(), o = N(), i = Ee().size, s = F(), c = _(), a = s.palette.primary.plainColor, u = s.textPrimary, g = s.textSecondary, y = s.secondaryContainer, d = s.surface, m = s.onSurface, f = `rgba(${Ce(s.surfaceVariant)}, 0.5)`;
1813
+ }, pt = (e) => {
1814
+ const n = Y(), o = N(), i = je().size, s = F(), c = _(), a = s.palette.primary.plainColor, u = s.textPrimary, g = s.textSecondary, y = s.secondaryContainer, d = s.surface, m = s.onSurface, f = `rgba(${Ce(s.surfaceVariant)}, 0.5)`;
1811
1815
  return {
1812
1816
  // Question area
1813
1817
  questionArea: {
@@ -1957,7 +1961,7 @@ const Vt = (e) => {
1957
1961
  color: e.textColor
1958
1962
  }
1959
1963
  };
1960
- }, pt = (e, n) => {
1964
+ }, Gt = (e, n) => {
1961
1965
  switch (e) {
1962
1966
  case "success":
1963
1967
  return /* @__PURE__ */ t(At, {});
@@ -1987,7 +1991,7 @@ const Vt = (e) => {
1987
1991
  {
1988
1992
  variant: "soft",
1989
1993
  color: u,
1990
- startDecorator: pt(
1994
+ startDecorator: Gt(
1991
1995
  e,
1992
1996
  s.colorSchemes.light.palette.danger.plainColor
1993
1997
  ),
@@ -2282,7 +2286,7 @@ const Vt = (e) => {
2282
2286
  e.option.id
2283
2287
  );
2284
2288
  }, Ke = (e) => {
2285
- const { t: n } = G(), o = ee(), i = F(), s = _(), c = Ee().size, u = e.options.reduce(
2289
+ const { t: n } = p(), o = ee(), i = F(), s = _(), c = je().size, u = e.options.reduce(
2286
2290
  (g, y) => g + (y.votes || 0),
2287
2291
  0
2288
2292
  );
@@ -2506,7 +2510,7 @@ const Vt = (e) => {
2506
2510
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
2507
2511
  },
2508
2512
  V.STANDARD
2509
- ), { optionsLayout: o } = Te(Ae), { t: i } = G(), s = ((k = e.poll.branding) == null ? void 0 : k.colors) || null, a = N() ? ((I = e.poll.branding) == null ? void 0 : I.images.mobileLogo) || ((r = e.poll.branding) == null ? void 0 : r.images.mainLogo) || "" : ((A = e.poll.branding) == null ? void 0 : A.images.mainLogo) || "", u = e.imagePosition || "left", g = ke(e.poll.options), y = (s == null ? void 0 : s.contentColor) || F().textColor, d = ee(), m = Gt({
2513
+ ), { optionsLayout: o } = Te(Ae), { t: i } = p(), s = ((k = e.poll.branding) == null ? void 0 : k.colors) || null, a = N() ? ((I = e.poll.branding) == null ? void 0 : I.images.mobileLogo) || ((r = e.poll.branding) == null ? void 0 : r.images.mainLogo) || "" : ((A = e.poll.branding) == null ? void 0 : A.images.mainLogo) || "", u = e.imagePosition || "left", g = ke(e.poll.options), y = (s == null ? void 0 : s.contentColor) || F().textColor, d = ee(), m = pt({
2510
2514
  spacingScale: d,
2511
2515
  textColor: y
2512
2516
  }), f = () => {
@@ -2573,7 +2577,7 @@ const Vt = (e) => {
2573
2577
  },
2574
2578
  children: [
2575
2579
  /* @__PURE__ */ t(
2576
- Ge,
2580
+ pe,
2577
2581
  {
2578
2582
  additionalCTA: e.additionalCTA,
2579
2583
  buttonStyle: m.additionalCTAButton,
@@ -2582,12 +2586,12 @@ const Vt = (e) => {
2582
2586
  }
2583
2587
  ),
2584
2588
  e.maxAttemptsReached ? /* @__PURE__ */ t(B, {}) : /* @__PURE__ */ t(
2585
- p,
2589
+ G,
2586
2590
  {
2587
2591
  sx: m.voteAgainButton,
2588
2592
  onClick: e.voteAgain,
2589
2593
  children: /* @__PURE__ */ x(l, { sx: m.playAgainButtonContent, children: [
2590
- /* @__PURE__ */ t(pe, { sx: m.playAgainIcon }),
2594
+ /* @__PURE__ */ t(Ge, { sx: m.playAgainIcon }),
2591
2595
  /* @__PURE__ */ t(h, { sx: m.playAgainText, children: i("poll.buttons.voteAgain") })
2592
2596
  ] })
2593
2597
  }
@@ -2773,14 +2777,14 @@ const Vt = (e) => {
2773
2777
  p: e.spacingScale.lg
2774
2778
  }
2775
2779
  }), Qt = (e) => {
2776
- var L, v, H, j;
2780
+ var L, v, H, E;
2777
2781
  const n = Z(), o = N(), i = st(), s = We(), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? he : be, a = ie(
2778
2782
  {
2779
2783
  images: e.poll.images,
2780
2784
  imagePlaceholder: c
2781
2785
  },
2782
2786
  V.SPLIT
2783
- ), u = ke(e.poll.options), { t: g } = G(), { optionsLayout: y } = Te(Ae), d = ((L = e.poll.branding) == null ? void 0 : L.colors) || null, m = F().textPrimary, f = (d == null ? void 0 : d.secondaryColor) || F().textSecondary, k = F().secondaryContainer, I = _().primary, r = (d == null ? void 0 : d.backgroundColor) || F().surfaceVariant, A = F().surface, S = F().onSurface, b = Y(), P = F().textColor, D = ee(), T = o ? ((v = e.poll.branding) == null ? void 0 : v.images.mobileLogo) || ((H = e.poll.branding) == null ? void 0 : H.images.mainLogo) || "" : ((j = e.poll.branding) == null ? void 0 : j.images.mainLogo) || "", C = Kt({
2787
+ ), u = ke(e.poll.options), { t: g } = p(), { optionsLayout: y } = Te(Ae), d = ((L = e.poll.branding) == null ? void 0 : L.colors) || null, m = F().textPrimary, f = (d == null ? void 0 : d.secondaryColor) || F().textSecondary, k = F().secondaryContainer, I = _().primary, r = (d == null ? void 0 : d.backgroundColor) || F().surfaceVariant, A = F().surface, S = F().onSurface, b = Y(), P = F().textColor, D = ee(), T = o ? ((v = e.poll.branding) == null ? void 0 : v.images.mobileLogo) || ((H = e.poll.branding) == null ? void 0 : H.images.mainLogo) || "" : ((E = e.poll.branding) == null ? void 0 : E.images.mainLogo) || "", C = Kt({
2784
2788
  spacingScale: D,
2785
2789
  borderRadius: b,
2786
2790
  fontFamilyPrimary: I,
@@ -2804,7 +2808,7 @@ const Vt = (e) => {
2804
2808
  }
2805
2809
  ) : null;
2806
2810
  return /* @__PURE__ */ t(
2807
- bt,
2811
+ yt,
2808
2812
  {
2809
2813
  entity: e.poll,
2810
2814
  headline: g("poll.headline"),
@@ -2863,18 +2867,18 @@ const Vt = (e) => {
2863
2867
  },
2864
2868
  children: /* @__PURE__ */ t(l, { sx: C.ctaContainer, children: /* @__PURE__ */ t(l, { sx: C.ctaContentWrapper, children: /* @__PURE__ */ x(l, { sx: C.buttonsContainer, children: [
2865
2869
  !e.maxAttemptsReached && /* @__PURE__ */ t(
2866
- p,
2870
+ G,
2867
2871
  {
2868
2872
  sx: C.playAgainButton,
2869
2873
  onClick: e.voteAgain,
2870
2874
  children: /* @__PURE__ */ x(l, { sx: C.playAgainButtonContent, children: [
2871
- /* @__PURE__ */ t(pe, { sx: C.playAgainIcon }),
2875
+ /* @__PURE__ */ t(Ge, { sx: C.playAgainIcon }),
2872
2876
  /* @__PURE__ */ t(h, { sx: C.playAgainText, children: g("poll.buttons.voteAgain") })
2873
2877
  ] })
2874
2878
  }
2875
2879
  ),
2876
2880
  /* @__PURE__ */ t(
2877
- Ge,
2881
+ pe,
2878
2882
  {
2879
2883
  additionalCTA: e.additionalCTA,
2880
2884
  buttonStyle: C.additionalCTAButton,
@@ -3075,7 +3079,7 @@ const Vt = (e) => {
3075
3079
  textTransform: "uppercase"
3076
3080
  }
3077
3081
  }), Xt = (e) => {
3078
- const n = Z(), o = ee(), { t: i } = G(), s = We(), c = ze(
3082
+ const n = Z(), o = ee(), { t: i } = p(), s = We(), c = ze(
3079
3083
  V.OVERLAY
3080
3084
  ), { optionsLayout: a } = Te(Ae), { brandingImage: u, brandingColors: g, brandingLogo: y } = Ve(e.poll.branding), d = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : N() ? he : be, m = u || ie(
3081
3085
  {
@@ -3119,12 +3123,12 @@ const Vt = (e) => {
3119
3123
  ) })
3120
3124
  ] }) }),
3121
3125
  (!e.maxAttemptsReached || e.additionalCTA !== void 0) && /* @__PURE__ */ t(l, { sx: T.ctaSection, children: /* @__PURE__ */ x(l, { sx: T.buttonsContainer, children: [
3122
- !e.maxAttemptsReached && /* @__PURE__ */ t(p, { sx: T.playAgainButton, onClick: e.voteAgain, children: /* @__PURE__ */ x(l, { sx: T.playAgainButtonContent, children: [
3123
- /* @__PURE__ */ t(pe, { sx: T.playAgainIcon }),
3126
+ !e.maxAttemptsReached && /* @__PURE__ */ t(G, { sx: T.playAgainButton, onClick: e.voteAgain, children: /* @__PURE__ */ x(l, { sx: T.playAgainButtonContent, children: [
3127
+ /* @__PURE__ */ t(Ge, { sx: T.playAgainIcon }),
3124
3128
  /* @__PURE__ */ t(h, { sx: T.playAgainText, children: i("poll.buttons.voteAgain") })
3125
3129
  ] }) }),
3126
3130
  /* @__PURE__ */ t(
3127
- Ge,
3131
+ pe,
3128
3132
  {
3129
3133
  additionalCTA: e.additionalCTA,
3130
3134
  buttonStyle: T.additionalCTAButton,
@@ -3156,9 +3160,9 @@ const Vt = (e) => {
3156
3160
  }
3157
3161
  );
3158
3162
  }, Zt = () => {
3159
- const { t: e } = G();
3163
+ const { t: e } = p();
3160
3164
  return /* @__PURE__ */ t(X, { brandingBorderColor: null, children: /* @__PURE__ */ t(
3161
- It,
3165
+ Tt,
3162
3166
  {
3163
3167
  notFoundTitle: e("poll.pollNotFound"),
3164
3168
  notFoundMessage: e("poll.pollNotFoundDescription")
@@ -3172,7 +3176,7 @@ const Vt = (e) => {
3172
3176
  rulesDisplay: s
3173
3177
  }) => {
3174
3178
  var m;
3175
- const { t: c } = G(), a = N(), u = ((m = e.branding) == null ? void 0 : m.colors) || null, { brandingLogo: g } = Ve(
3179
+ const { t: c } = p(), a = N(), u = ((m = e.branding) == null ? void 0 : m.colors) || null, { brandingLogo: g } = Ve(
3176
3180
  e.branding || null
3177
3181
  ), y = (f) => {
3178
3182
  var k;
@@ -3217,7 +3221,7 @@ const Vt = (e) => {
3217
3221
  ) });
3218
3222
  }, tn = (e) => {
3219
3223
  var s, c, a, u;
3220
- const n = ((s = e.poll.branding) == null ? void 0 : s.colors) || null, o = N() ? ((c = e.poll.branding) == null ? void 0 : c.images.mobileLogo) || ((a = e.poll.branding) == null ? void 0 : a.images.mainLogo) || "" : ((u = e.poll.branding) == null ? void 0 : u.images.mainLogo) || "", { t: i } = G();
3224
+ const n = ((s = e.poll.branding) == null ? void 0 : s.colors) || null, o = N() ? ((c = e.poll.branding) == null ? void 0 : c.images.mobileLogo) || ((a = e.poll.branding) == null ? void 0 : a.images.mainLogo) || "" : ((u = e.poll.branding) == null ? void 0 : u.images.mainLogo) || "", { t: i } = p();
3221
3225
  return /* @__PURE__ */ t(X, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
3222
3226
  it,
3223
3227
  {
@@ -3245,7 +3249,7 @@ const Vt = (e) => {
3245
3249
  ) });
3246
3250
  }, nn = (e) => {
3247
3251
  var c, a, u, g;
3248
- const n = N(), { t: o } = G(), i = ((c = e.poll.branding) == null ? void 0 : c.colors) || null, s = n ? ((a = e.poll.branding) == null ? void 0 : a.images.mobileLogo) || ((u = e.poll.branding) == null ? void 0 : u.images.mainLogo) || "" : ((g = e.poll.branding) == null ? void 0 : g.images.mainLogo) || "";
3252
+ const n = N(), { t: o } = p(), i = ((c = e.poll.branding) == null ? void 0 : c.colors) || null, s = n ? ((a = e.poll.branding) == null ? void 0 : a.images.mobileLogo) || ((u = e.poll.branding) == null ? void 0 : u.images.mainLogo) || "" : ((g = e.poll.branding) == null ? void 0 : g.images.mainLogo) || "";
3249
3253
  return console.log("defaultImagePlaceholderUrl", e.defaultImagePlaceholderUrl), /* @__PURE__ */ t(X, { brandingBorderColor: (i == null ? void 0 : i.borderColor) || null, children: /* @__PURE__ */ t(
3250
3254
  lt,
3251
3255
  {
@@ -3271,7 +3275,7 @@ const Vt = (e) => {
3271
3275
  }
3272
3276
  ) });
3273
3277
  }, ln = (e) => {
3274
- const { t: n } = G(), o = N(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? he : be, { brandingLogo: s } = Ve(
3278
+ const { t: n } = p(), o = N(), i = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : o ? he : be, { brandingLogo: s } = Ve(
3275
3279
  e.poll.branding || null
3276
3280
  );
3277
3281
  return /* @__PURE__ */ t(
@@ -3552,7 +3556,7 @@ const Vt = (e) => {
3552
3556
  V.STANDARD
3553
3557
  ), c = ee(), a = _().primary, u = _().secondary, g = Y(), y = Y().xl, d = (n == null ? void 0 : n.primaryColor) || F().palette.primary.plainColor, m = F().palette.primary.onPrimary, f = (n == null ? void 0 : n.contentColor) || F().textColor, k = (n == null ? void 0 : n.secondaryColor) || F().textColor, I = ze(
3554
3558
  V.STANDARD
3555
- ), r = o ? ((C = e.poll.branding) == null ? void 0 : C.images.mobileLogo) || ((z = e.poll.branding) == null ? void 0 : z.images.mainLogo) || "" : ((L = e.poll.branding) == null ? void 0 : L.images.mainLogo) || "", { t: A } = G(), S = e.imagePosition || "left", P = on({
3559
+ ), r = o ? ((C = e.poll.branding) == null ? void 0 : C.images.mobileLogo) || ((z = e.poll.branding) == null ? void 0 : z.images.mainLogo) || "" : ((L = e.poll.branding) == null ? void 0 : L.images.mainLogo) || "", { t: A } = p(), S = e.imagePosition || "left", P = on({
3556
3560
  finalImage: s,
3557
3561
  spacingScale: c,
3558
3562
  borderRadius: g,
@@ -3568,9 +3572,9 @@ const Vt = (e) => {
3568
3572
  primaryColor: d,
3569
3573
  onPrimaryColor: m
3570
3574
  }), D = () => {
3571
- var H, j, U, R;
3572
- return e.signInCTA ? (H = e.signInCTA) != null && H.component ? e.signInCTA.component : (j = e.signInCTA) != null && j.onClick ? /* @__PURE__ */ t(
3573
- p,
3575
+ var H, E, U, R;
3576
+ return e.signInCTA ? (H = e.signInCTA) != null && H.component ? e.signInCTA.component : (E = e.signInCTA) != null && E.onClick ? /* @__PURE__ */ t(
3577
+ G,
3574
3578
  {
3575
3579
  variant: "soft",
3576
3580
  sx: {
@@ -3597,7 +3601,7 @@ const Vt = (e) => {
3597
3601
  children: /* @__PURE__ */ t(h, { sx: P.signInButtonText, children: e.signInCTA.defaultLabel || A("common.signIn") })
3598
3602
  }
3599
3603
  ) : /* @__PURE__ */ t(
3600
- p,
3604
+ G,
3601
3605
  {
3602
3606
  variant: "soft",
3603
3607
  sx: {
@@ -3611,7 +3615,7 @@ const Vt = (e) => {
3611
3615
  children: /* @__PURE__ */ t(h, { sx: P.signInButtonText, children: e.signInCTA.defaultLabel || A("common.signIn") })
3612
3616
  }
3613
3617
  ) : /* @__PURE__ */ t(
3614
- p,
3618
+ G,
3615
3619
  {
3616
3620
  variant: "soft",
3617
3621
  sx: {
@@ -3621,7 +3625,7 @@ const Vt = (e) => {
3621
3625
  children: /* @__PURE__ */ t(h, { sx: P.signInButtonText, children: e.signInCTA.defaultLabel || A("common.signIn") })
3622
3626
  }
3623
3627
  ) : /* @__PURE__ */ t(
3624
- p,
3628
+ G,
3625
3629
  {
3626
3630
  variant: "soft",
3627
3631
  sx: {
@@ -3708,7 +3712,7 @@ const Vt = (e) => {
3708
3712
  imagePlaceholder: i
3709
3713
  },
3710
3714
  V.SPLIT
3711
- ), { t: c } = G(), a = ((I = e.poll.branding) == null ? void 0 : I.colors) || null, u = o ? ((r = e.poll.branding) == null ? void 0 : r.images.mobileLogo) || ((A = e.poll.branding) == null ? void 0 : A.images.mainLogo) || "" : ((S = e.poll.branding) == null ? void 0 : S.images.mainLogo) || "", g = _().primary, y = Y().xl, d = (a == null ? void 0 : a.primaryColor) || F().palette.primary.plainColor, m = F().palette.primary.onPrimary, f = rn({
3715
+ ), { t: c } = p(), a = ((I = e.poll.branding) == null ? void 0 : I.colors) || null, u = o ? ((r = e.poll.branding) == null ? void 0 : r.images.mobileLogo) || ((A = e.poll.branding) == null ? void 0 : A.images.mainLogo) || "" : ((S = e.poll.branding) == null ? void 0 : S.images.mainLogo) || "", g = _().primary, y = Y().xl, d = (a == null ? void 0 : a.primaryColor) || F().palette.primary.plainColor, m = F().palette.primary.onPrimary, f = rn({
3712
3716
  fontFamilyPrimary: g,
3713
3717
  buttonRadius: y,
3714
3718
  primaryColor: d,
@@ -3716,7 +3720,7 @@ const Vt = (e) => {
3716
3720
  }), k = () => {
3717
3721
  var P, D, T, C;
3718
3722
  return e.signInCTA ? (P = e.signInCTA) != null && P.component ? e.signInCTA.component : (D = e.signInCTA) != null && D.onClick ? /* @__PURE__ */ t(
3719
- p,
3723
+ G,
3720
3724
  {
3721
3725
  variant: "soft",
3722
3726
  sx: {
@@ -3743,7 +3747,7 @@ const Vt = (e) => {
3743
3747
  children: /* @__PURE__ */ t(h, { sx: f.signInButtonText, children: e.signInCTA.defaultLabel || c("common.signIn") })
3744
3748
  }
3745
3749
  ) : /* @__PURE__ */ t(
3746
- p,
3750
+ G,
3747
3751
  {
3748
3752
  variant: "soft",
3749
3753
  sx: {
@@ -3757,7 +3761,7 @@ const Vt = (e) => {
3757
3761
  children: /* @__PURE__ */ t(h, { sx: f.signInButtonText, children: e.signInCTA.defaultLabel || c("common.signIn") })
3758
3762
  }
3759
3763
  ) : /* @__PURE__ */ t(
3760
- p,
3764
+ G,
3761
3765
  {
3762
3766
  variant: "soft",
3763
3767
  sx: {
@@ -3767,7 +3771,7 @@ const Vt = (e) => {
3767
3771
  children: /* @__PURE__ */ t(h, { sx: f.signInButtonText, children: e.signInCTA.defaultLabel || c("common.signIn") })
3768
3772
  }
3769
3773
  ) : /* @__PURE__ */ t(
3770
- p,
3774
+ G,
3771
3775
  {
3772
3776
  variant: "soft",
3773
3777
  sx: {
@@ -3779,7 +3783,7 @@ const Vt = (e) => {
3779
3783
  );
3780
3784
  };
3781
3785
  return /* @__PURE__ */ t(X, { brandingBorderColor: (a == null ? void 0 : a.borderColor) || null, children: /* @__PURE__ */ t(
3782
- Rt,
3786
+ wt,
3783
3787
  {
3784
3788
  entity: e.poll,
3785
3789
  headline: c("poll.headline"),
@@ -3835,8 +3839,8 @@ const Vt = (e) => {
3835
3839
  alignItems: "center"
3836
3840
  }
3837
3841
  }), dn = (e) => {
3838
- var S, b, P, D, T, C, z, L, v, H, j;
3839
- const n = Z(), { t: o } = G(), i = N(), s = ze(
3842
+ var S, b, P, D, T, C, z, L, v, H, E;
3843
+ const n = Z(), { t: o } = p(), i = N(), s = ze(
3840
3844
  V.OVERLAY
3841
3845
  ), { brandingImage: c, brandingColors: a, brandingLogo: u } = Ve(e.poll.branding || null), g = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? he : be, y = c || ie(
3842
3846
  {
@@ -3852,7 +3856,7 @@ const Vt = (e) => {
3852
3856
  }), A = () => {
3853
3857
  var U, R, O, W;
3854
3858
  return e.signInCTA ? (U = e.signInCTA) != null && U.component ? e.signInCTA.component : (R = e.signInCTA) != null && R.onClick ? /* @__PURE__ */ t(
3855
- p,
3859
+ G,
3856
3860
  {
3857
3861
  variant: "soft",
3858
3862
  sx: {
@@ -3879,7 +3883,7 @@ const Vt = (e) => {
3879
3883
  children: /* @__PURE__ */ t(h, { sx: r.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
3880
3884
  }
3881
3885
  ) : /* @__PURE__ */ t(
3882
- p,
3886
+ G,
3883
3887
  {
3884
3888
  variant: "soft",
3885
3889
  sx: {
@@ -3893,7 +3897,7 @@ const Vt = (e) => {
3893
3897
  children: /* @__PURE__ */ t(h, { sx: r.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
3894
3898
  }
3895
3899
  ) : /* @__PURE__ */ t(
3896
- p,
3900
+ G,
3897
3901
  {
3898
3902
  variant: "soft",
3899
3903
  sx: {
@@ -3903,7 +3907,7 @@ const Vt = (e) => {
3903
3907
  children: /* @__PURE__ */ t(h, { sx: r.signInButtonText, children: e.signInCTA.defaultLabel || o("common.signIn") })
3904
3908
  }
3905
3909
  ) : /* @__PURE__ */ t(
3906
- p,
3910
+ G,
3907
3911
  {
3908
3912
  variant: "soft",
3909
3913
  sx: {
@@ -3915,7 +3919,7 @@ const Vt = (e) => {
3915
3919
  );
3916
3920
  };
3917
3921
  return /* @__PURE__ */ t(
3918
- wt,
3922
+ Bt,
3919
3923
  {
3920
3924
  entity: e.poll,
3921
3925
  headline: o("poll.headline"),
@@ -3928,15 +3932,15 @@ const Vt = (e) => {
3928
3932
  {
3929
3933
  brandingLogo: u,
3930
3934
  textColor: n.colorSchemes.dark.textColor,
3931
- label: ((j = e.poll.labels) == null ? void 0 : j.sponsor) || null
3935
+ label: ((E = e.poll.labels) == null ? void 0 : E.sponsor) || null
3932
3936
  }
3933
3937
  )
3934
3938
  }
3935
3939
  );
3936
3940
  }, gn = (e) => {
3937
- const { t: n } = G();
3941
+ const { t: n } = p();
3938
3942
  return /* @__PURE__ */ t(
3939
- Bt,
3943
+ Rt,
3940
3944
  {
3941
3945
  entity: e.poll,
3942
3946
  headline: n("poll.headline"),
@@ -3952,7 +3956,7 @@ const Vt = (e) => {
3952
3956
  }
3953
3957
  );
3954
3958
  }, mn = (e) => {
3955
- const { t: n } = G();
3959
+ const { t: n } = p();
3956
3960
  return /* @__PURE__ */ t(
3957
3961
  zt,
3958
3962
  {
@@ -3969,7 +3973,7 @@ const Vt = (e) => {
3969
3973
  }
3970
3974
  );
3971
3975
  }, un = (e) => {
3972
- const { t: n } = G();
3976
+ const { t: n } = p();
3973
3977
  return /* @__PURE__ */ t(
3974
3978
  Wt,
3975
3979
  {
@@ -4043,7 +4047,7 @@ const fn = (e) => {
4043
4047
  rulesDisplay: e.rulesDisplay
4044
4048
  }
4045
4049
  );
4046
- const j = () => {
4050
+ const E = () => {
4047
4051
  C(!1), z(""), L(!1), g(!u);
4048
4052
  };
4049
4053
  if (P || D)
@@ -4055,7 +4059,7 @@ const fn = (e) => {
4055
4059
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
4056
4060
  isApiError: D,
4057
4061
  apiErrorMessage: T,
4058
- toggleTryAgain: j,
4062
+ toggleTryAgain: E,
4059
4063
  rulesDisplay: e.rulesDisplay
4060
4064
  }
4061
4065
  ) : e.template === V.OVERLAY ? /* @__PURE__ */ t(
@@ -4065,7 +4069,7 @@ const fn = (e) => {
4065
4069
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
4066
4070
  isApiError: D,
4067
4071
  apiErrorMessage: T,
4068
- toggleTryAgain: j,
4072
+ toggleTryAgain: E,
4069
4073
  rulesDisplay: e.rulesDisplay
4070
4074
  }
4071
4075
  ) : /* @__PURE__ */ t(
@@ -4075,20 +4079,20 @@ const fn = (e) => {
4075
4079
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
4076
4080
  isApiError: D,
4077
4081
  apiErrorMessage: T,
4078
- toggleTryAgain: j,
4082
+ toggleTryAgain: E,
4079
4083
  rulesDisplay: e.rulesDisplay
4080
4084
  }
4081
4085
  );
4082
- const U = r.multipleChoice && r.maxMultipleChoiceOptions || 1, R = (E) => {
4086
+ const U = r.multipleChoice && r.maxMultipleChoiceOptions || 1, R = (j) => {
4083
4087
  if (U === 1)
4084
- o(E);
4088
+ o(j);
4085
4089
  else {
4086
- const q = E[0];
4090
+ const q = j[0];
4087
4091
  o((w) => w.includes(q) ? w.filter((te) => te !== q) : w.length < U ? [...w, q] : w);
4088
4092
  }
4089
4093
  }, O = async () => {
4090
- var E;
4091
- if (((E = e.leads) == null ? void 0 : E.position) === "after" && r.authRequirement === "LEAD" && !m) {
4094
+ var j;
4095
+ if (((j = e.leads) == null ? void 0 : j.position) === "after" && r.authRequirement === "LEAD" && !m) {
4092
4096
  I(!0);
4093
4097
  return;
4094
4098
  }
@@ -4096,20 +4100,20 @@ const fn = (e) => {
4096
4100
  }, W = async () => {
4097
4101
  a(!0);
4098
4102
  try {
4099
- const E = await e.sdk.voting.voteForPoll(
4103
+ const j = await e.sdk.voting.voteForPoll(
4100
4104
  e.entityId,
4101
4105
  n
4102
4106
  ), q = { ...r };
4103
4107
  q.options = r.options.map((w) => n.includes(w.id) ? {
4104
4108
  ...w,
4105
4109
  votes: w.votes + 1
4106
- } : w), q.totalVotes = (r.totalVotes || 0) + n.length, A(q), b(E), s(!0);
4107
- } catch (E) {
4110
+ } : w), q.totalVotes = (r.totalVotes || 0) + n.length, A(q), b(j), s(!0);
4111
+ } catch (j) {
4108
4112
  if (e.sdk.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
4109
- const w = E;
4113
+ const w = j;
4110
4114
  w.error.code === 401 || w.error.code === 403 ? L(!0) : (C(!0), z(w.error.message));
4111
4115
  } else {
4112
- const w = E;
4116
+ const w = j;
4113
4117
  w.data.error.code === 401 || w.data.error.code === 403 ? L(!0) : (C(!0), z(w.data.error.message));
4114
4118
  }
4115
4119
  } finally {
@@ -4120,7 +4124,7 @@ const fn = (e) => {
4120
4124
  }, K = () => {
4121
4125
  s(!1), o([]), d(!1), f(!1), I(!1);
4122
4126
  }, Q = () => e.template === V.OVERLAY ? /* @__PURE__ */ t(
4123
- jt,
4127
+ Et,
4124
4128
  {
4125
4129
  sdk: e.sdk,
4126
4130
  leads: e.leads,
@@ -4200,7 +4204,7 @@ const fn = (e) => {
4200
4204
  }
4201
4205
  );
4202
4206
  if (i || v) {
4203
- const E = H ? /* @__PURE__ */ t(Ze, { entityId: H, sdk: e.sdk, children: (w) => /* @__PURE__ */ t(et, { infoPage: w, variant: e.chanceGameVariant }) }) : void 0, q = H ? /* @__PURE__ */ t(Ze, { entityId: H, sdk: e.sdk, children: (w) => /* @__PURE__ */ t(et, { infoPage: w, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
4207
+ const j = H ? /* @__PURE__ */ t(Ze, { entityId: H, sdk: e.sdk, children: (w) => /* @__PURE__ */ t(et, { infoPage: w, variant: e.chanceGameVariant }) }) : void 0, q = H ? /* @__PURE__ */ t(Ze, { entityId: H, sdk: e.sdk, children: (w) => /* @__PURE__ */ t(et, { infoPage: w, variant: e.chanceGameVariant, forceMobile: !0 }) }) : void 0;
4204
4208
  return e.template === V.OVERLAY ? /* @__PURE__ */ t(
4205
4209
  Xt,
4206
4210
  {
@@ -4214,7 +4218,7 @@ const fn = (e) => {
4214
4218
  isUnauthorized: P,
4215
4219
  additionalCTA: e.additionalCTA,
4216
4220
  rulesDisplay: e.rulesDisplay,
4217
- chanceGameContent: E
4221
+ chanceGameContent: j
4218
4222
  }
4219
4223
  ) : Se(e) ? /* @__PURE__ */ t(
4220
4224
  Yt,
@@ -4250,7 +4254,7 @@ const fn = (e) => {
4250
4254
  );
4251
4255
  }
4252
4256
  return Q();
4253
- }, xn = (e) => /* @__PURE__ */ t(gt, { packageName: "poll-vote", ...e, children: /* @__PURE__ */ t(fn, { ...e }) }), Rn = xn;
4257
+ }, xn = (e) => /* @__PURE__ */ t(gt, { packageName: "poll-vote", ...e, children: /* @__PURE__ */ t(fn, { ...e }) }), Wn = xn;
4254
4258
  export {
4255
- Rn as PollVote
4259
+ Wn as PollVote
4256
4260
  };