fansunited-frontend-components 0.0.95 → 0.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/Betslip.d.ts +1 -2
  2. package/Betslip.d.ts.map +1 -1
  3. package/Betslip.js +4 -3
  4. package/ChanceGame.js +165 -163
  5. package/ChanceGameComponent.d.ts +1 -1
  6. package/ChanceGameComponent.d.ts.map +1 -1
  7. package/ClassicQuizPlay.d.ts +1 -1
  8. package/ClassicQuizPlay.d.ts.map +1 -1
  9. package/ClassicQuizPlay.js +4 -3
  10. package/CollectLead.d.ts +1 -1
  11. package/CollectLead.d.ts.map +1 -1
  12. package/CollectLead.js +37 -36
  13. package/CompetitionStatistics.d.ts +1 -2
  14. package/CompetitionStatistics.d.ts.map +1 -1
  15. package/CompetitionStatistics.js +458 -451
  16. package/CompetitorCard.d.ts +1 -2
  17. package/CompetitorCard.d.ts.map +1 -1
  18. package/CompetitorCard.js +1235 -1226
  19. package/Discussion.d.ts +1 -1
  20. package/Discussion.d.ts.map +1 -1
  21. package/Discussion.js +4 -3
  22. package/EitherOrPlay.d.ts +1 -1
  23. package/EitherOrPlay.d.ts.map +1 -1
  24. package/EitherOrPlay.js +4 -3
  25. package/EventCard.d.ts +1 -2
  26. package/EventCard.d.ts.map +1 -1
  27. package/EventCard.js +1249 -1244
  28. package/EventGamePlay.d.ts +1 -1
  29. package/EventGamePlay.d.ts.map +1 -1
  30. package/EventGamePlay.js +4 -3
  31. package/Leaderboard.d.ts +1 -1
  32. package/Leaderboard.d.ts.map +1 -1
  33. package/Leaderboard.js +482 -449
  34. package/List.d.ts +1 -2
  35. package/List.d.ts.map +1 -1
  36. package/List.js +258 -254
  37. package/MatchQuizPlay.d.ts +1 -1
  38. package/MatchQuizPlay.d.ts.map +1 -1
  39. package/MatchQuizPlay.js +4 -3
  40. package/Odds.d.ts +1 -2
  41. package/Odds.d.ts.map +1 -1
  42. package/Odds.js +35 -34
  43. package/PersonalityQuizPlay.d.ts +1 -1
  44. package/PersonalityQuizPlay.d.ts.map +1 -1
  45. package/PersonalityQuizPlay.js +4 -3
  46. package/PickThePair.js +102 -100
  47. package/PickThePairComponent.d.ts +1 -1
  48. package/PickThePairComponent.d.ts.map +1 -1
  49. package/PlayerOfTheMatch.d.ts +1 -2
  50. package/PlayerOfTheMatch.d.ts.map +1 -1
  51. package/PlayerOfTheMatch.js +1096 -1085
  52. package/PollVote.d.ts +1 -1
  53. package/PollVote.d.ts.map +1 -1
  54. package/PollVote.js +4 -3
  55. package/Predictor.d.ts +1 -2
  56. package/Predictor.d.ts.map +1 -1
  57. package/Predictor.js +4553 -4525
  58. package/README.md +1 -1
  59. package/Standings.d.ts +1 -2
  60. package/Standings.d.ts.map +1 -1
  61. package/Standings.js +404 -394
  62. package/TopX.d.ts +1 -2
  63. package/TopX.d.ts.map +1 -1
  64. package/TopX.js +5296 -5286
  65. package/chunks/{ChanceGameEmbedVariant-C3NGwvTF.js → ChanceGameEmbedVariant-CVys-3Zh.js} +1 -1
  66. package/chunks/{OddsSkeleton-Bav8FHHN.js → OddsSkeleton-ClJE2xhR.js} +5 -5
  67. package/chunks/{OddsStrip-CviVfQI4.js → OddsStrip-BnSp5TXa.js} +3 -3
  68. package/chunks/{PickOneOfX-a6Dv0-rR.js → PickOneOfX-DaJtkbCw.js} +6 -6
  69. package/chunks/index-Aq5MbUB9.js +4 -0
  70. package/chunks/index-BBQm_8LD.js +4 -0
  71. package/chunks/index-BC_sWWgc.js +4 -0
  72. package/chunks/index-DXKDJ1Vp.js +4 -0
  73. package/chunks/index-DjT5NrbA.js +4 -0
  74. package/chunks/index-DvLRehH6.js +4 -0
  75. package/chunks/index-aIMaxR-p.js +4 -0
  76. package/chunks/{main-Dj4Manb5.js → main-52Wff7qC.js} +1763 -1757
  77. package/chunks/{main-dwV_55lz.js → main-65WcUqAl.js} +615 -615
  78. package/chunks/{main-gexg6lc-.js → main-B58mi9jx.js} +349 -334
  79. package/chunks/{main-Dys2_Jt2.js → main-BIdXUTZS.js} +842 -827
  80. package/chunks/{main-CFwRpvUi.js → main-DD-NEzC7.js} +818 -817
  81. package/chunks/{main-DjiQz1dv.js → main-DUnfJPzY.js} +311 -311
  82. package/chunks/{main-eAQMCxQ7.js → main-DpCBqqg_.js} +322 -321
  83. package/chunks/{main-D9tFZv2q.js → main-Drznt1ak.js} +283 -282
  84. package/chunks/withVersionStamp-B6nArAj4.js +16 -0
  85. package/index.d.ts.map +1 -1
  86. package/index.js +45 -50
  87. package/package.json +57 -49
  88. package/withVersionStamp.d.ts +4 -0
  89. package/withVersionStamp.d.ts.map +1 -0
  90. package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +0 -4
  91. package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +0 -4
  92. package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +0 -4
  93. package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +0 -4
  94. package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +0 -4
  95. package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +0 -4
  96. package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +0 -4
  97. package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +0 -4
  98. package/chunks/index-B1d9q8fX.js +0 -4
  99. package/chunks/index-BP0pvFJ4.js +0 -4
  100. package/chunks/index-CHZyL_g_.js +0 -4
  101. package/chunks/index-CeCUdRmF.js +0 -4
  102. package/chunks/index-Ckyyw-I8.js +0 -4
  103. package/chunks/index-DGvCP5G8.js +0 -4
  104. package/chunks/index-yjMVOgwO.js +0 -4
@@ -1,34 +1,34 @@
1
1
  import { jsx as t, jsxs as x, Fragment as v } from "react/jsx-runtime";
2
- import { getTranslatedPollIds as rt, useFontFamily as fe, isTablet as St, isMobile as Q, getBrandingClickUrl as It, CollectLeadForm as Pt, useInternalTheme as ve, useColors as D, useCornerRadius as re, useSpacingScale as Te, useBorderSize as $e, useEmbedCode as Ye, useConstantContext as Fe, ConstantsContext as Be, isLarge as Me, extractBrandingModelProperties as Qe, defaultBgVertical as Ve, defaultBg as ze, useImageVariant as Ue, WidgetTemplate as G, OverlaySkeleton as Tt, ConsentPanel as Ee, ConsentCta as _e, SignInCta as Ge, isExtraSmall as At, hexToRgb as De, StandardSkeleton as vt, useImageBackgroundGradient as gt, SplitSkeleton as Lt, stripHtmlTags as kt, useIntlLocale as mt, StandardScoreStateSkeleton as wt, AdditionalCTA as pe, isDesktop as Dt, SplitScoreStateSkeleton as Rt, sanitizeBackgroundUrl as Ft, OverlayScoreStateSkeleton as Bt, NotFoundSkeleton as Vt, OverlayApiErrorSkeleton as ut, SplitApiErrorSkeleton as ft, StandardApiErrorSkeleton as xt, StandardLeadAfterCollection as yt, SplitLeadAfterCollection as ht, OverlayLeadAfterCollection as bt, getRelatedInfoPageId as zt, useConsents as Ut, initializeI18n as Et, Spinner as Wt, ChanceGameEmbed as ct, extractSdkError as Ot, Portal as qt } from "fansunited-frontend-core";
3
- import { C as st } from "./ChanceGameEmbedVariant-C3NGwvTF.js";
4
- import Re, { useState as U, useEffect as ke, useCallback as jt, useRef as Mt, useMemo as Ke } from "react";
5
- import { PollFullModel as Ht, SinglePollVoteModel as Gt } from "fansunited-sdk-esm";
6
- import { Box as i, Typography as L, AspectRatio as Ne, Button as He, Alert as Nt, Stack as $t } from "@mui/joy";
2
+ import { useDisableCache as gt, getTranslatedPollIds as rt, useFontFamily as fe, isTablet as It, isMobile as Q, getBrandingClickUrl as Pt, CollectLeadForm as Tt, useInternalTheme as ve, useColors as D, useCornerRadius as re, useSpacingScale as Te, useBorderSize as $e, useEmbedCode as Ye, useConstantContext as Fe, ConstantsContext as Be, isLarge as Me, extractBrandingModelProperties as Qe, defaultBgVertical as Ve, defaultBg as ze, useImageVariant as Ue, WidgetTemplate as G, OverlaySkeleton as At, ConsentPanel as Ee, ConsentCta as _e, SignInCta as Ge, isExtraSmall as vt, hexToRgb as De, StandardSkeleton as Lt, useImageBackgroundGradient as mt, SplitSkeleton as kt, stripHtmlTags as wt, useIntlLocale as ut, StandardScoreStateSkeleton as Dt, AdditionalCTA as pe, isDesktop as Rt, SplitScoreStateSkeleton as Ft, sanitizeBackgroundUrl as Bt, OverlayScoreStateSkeleton as Vt, NotFoundSkeleton as zt, OverlayApiErrorSkeleton as ft, SplitApiErrorSkeleton as xt, StandardApiErrorSkeleton as yt, StandardLeadAfterCollection as ht, SplitLeadAfterCollection as bt, OverlayLeadAfterCollection as Ct, getRelatedInfoPageId as Ut, useConsents as Et, initializeI18n as Wt, Spinner as Ot, ChanceGameEmbed as ct, extractSdkError as qt, Portal as jt } from "fansunited-frontend-core";
3
+ import { C as st } from "./ChanceGameEmbedVariant-CVys-3Zh.js";
4
+ import Re, { useState as U, useEffect as ke, useCallback as Mt, useRef as Ht, useMemo as Ke } from "react";
5
+ import { PollFullModel as Gt, SinglePollVoteModel as Nt } from "fansunited-sdk-esm/models";
6
+ import { Box as i, Typography as L, AspectRatio as Ne, Button as He, Alert as $t, Stack as Yt } from "@mui/joy";
7
7
  import { useTranslation as O } from "react-i18next";
8
8
  import et from "@mui/icons-material/Replay";
9
- import Yt from "@mui/icons-material/CheckCircle";
10
- import Qt from "@mui/icons-material/Info";
11
- import _t from "@mui/icons-material/Warning";
9
+ import Qt from "@mui/icons-material/CheckCircle";
10
+ import _t from "@mui/icons-material/Info";
11
+ import Kt from "@mui/icons-material/Warning";
12
12
  import je from "@mui/icons-material/People";
13
- const Kt = (e, n) => {
14
- const [a, l] = U(null), o = async () => {
13
+ const Jt = (e, n) => {
14
+ const [a, l] = U(null), o = gt(), c = async () => {
15
15
  try {
16
- const r = await n.voting.getPollById(e, !0);
16
+ const r = await n.voting.getPollById(e, o);
17
17
  l(r);
18
18
  } catch (r) {
19
- console.error(r), l(new Ht());
19
+ console.error(r), l(new Gt());
20
20
  }
21
21
  };
22
- return ke(() => (o(), () => l(null)), [e, n]), { poll: a, setPoll: l };
23
- }, Jt = (e, n, a, l = !1, o = !1) => {
24
- const [r, c] = U(null), [m, f] = U(!1), [u, d] = U(!1), [s, h] = U(""), [A, P] = U(a);
25
- a !== A && (P(a), c(null));
22
+ return ke(() => (c(), () => l(null)), [e, n, o]), { poll: a, setPoll: l };
23
+ }, Xt = (e, n, a, l = !1, o = !1) => {
24
+ const [c, r] = U(null), [u, f] = U(!1), [m, d] = U(!1), [s, h] = U(""), [A, P] = U(a);
25
+ a !== A && (P(a), r(null));
26
26
  const S = async () => {
27
27
  try {
28
28
  const B = await n.voting.getMyPollVote(e);
29
- c(B);
29
+ r(B);
30
30
  } catch (b) {
31
- if (c(new Gt()), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
31
+ if (r(new Nt()), n.helpers.getSDKConfiguration().errorHandlingMode === "standard") {
32
32
  const R = b;
33
33
  if (R.error.code === 404)
34
34
  return;
@@ -50,32 +50,32 @@ const Kt = (e, n) => {
50
50
  }
51
51
  };
52
52
  return ke(() => (S(), () => {
53
- c(null), f(!1), d(!1);
53
+ r(null), f(!1), d(!1);
54
54
  }), [e, n, a, l, o]), {
55
- myVote: r,
56
- setMyVote: c,
57
- isUnauthorized: m,
58
- isApiError: u,
55
+ myVote: c,
56
+ setMyVote: r,
57
+ isUnauthorized: u,
58
+ isApiError: m,
59
59
  apiErrorMessage: s,
60
60
  setIsUnauthorized: f,
61
61
  setIsApiError: d,
62
62
  setApiErrorMessage: h
63
63
  };
64
- }, dt = async (e, n) => {
64
+ }, dt = async (e, n, a) => {
65
65
  if (!n.length) return [];
66
- const a = await e.voting.getPolls(
66
+ const l = await e.voting.getPolls(
67
67
  { pollIds: n, limit: n.length },
68
- !0
68
+ a
69
69
  );
70
- return (a == null ? void 0 : a.data) || [];
71
- }, Xt = async (e, n) => {
72
- const a = /* @__PURE__ */ new Set([e.id]), l = (f) => f.filter((u) => !a.has(u)), o = l(rt(e.related));
73
- o.forEach((f) => a.add(f));
74
- const r = await dt(n, o), c = l(
75
- Array.from(new Set(r.flatMap((f) => rt(f.related))))
76
- ), m = await dt(n, c);
77
- return [...r, ...m];
78
- }, Zt = (e, n) => {
70
+ return (l == null ? void 0 : l.data) || [];
71
+ }, Zt = async (e, n, a = !1) => {
72
+ const l = /* @__PURE__ */ new Set([e.id]), o = (m) => m.filter((d) => !l.has(d)), c = o(rt(e.related));
73
+ c.forEach((m) => l.add(m));
74
+ const r = await dt(n, c, a), u = o(
75
+ Array.from(new Set(r.flatMap((m) => rt(m.related))))
76
+ ), f = await dt(n, u, a);
77
+ return [...r, ...f];
78
+ }, pt = (e, n) => {
79
79
  const a = n.filter((l) => {
80
80
  var o;
81
81
  return ((o = l.options) == null ? void 0 : o.length) === e.length ? !0 : (console.warn(
@@ -85,29 +85,29 @@ const Kt = (e, n) => {
85
85
  return e.map((l, o) => ({
86
86
  ...l,
87
87
  votes: a.reduce(
88
- (r, c) => r + (c.options[o].votes || 0),
88
+ (c, r) => c + (r.options[o].votes || 0),
89
89
  l.votes || 0
90
90
  )
91
91
  }));
92
- }, pt = (e, n) => {
93
- const [a, l] = U([]), [o, r] = U(!1), c = jt(async () => {
92
+ }, en = (e, n) => {
93
+ const [a, l] = U([]), [o, c] = U(!1), r = gt(), u = Mt(async () => {
94
94
  if (e != null && e.id)
95
95
  try {
96
- l(await Xt(e, n));
97
- } catch (m) {
98
- console.error("[poll-vote] translated polls could not be loaded", m), l([]);
96
+ l(await Zt(e, n, r));
97
+ } catch (f) {
98
+ console.error("[poll-vote] translated polls could not be loaded", f), l([]);
99
99
  } finally {
100
- r(!0);
100
+ c(!0);
101
101
  }
102
- }, [e, n]);
103
- return { translations: a, loaded: o, loadTranslations: c };
102
+ }, [e, n, r]);
103
+ return { translations: a, loaded: o, loadTranslations: u };
104
104
  }, W = (e) => {
105
- const n = fe().secondary, a = St(), l = e.isSplitVariant && a, o = Q(), r = It(e.primaryUrl, e.secondaryUrl, "logo");
105
+ const n = fe().secondary, a = It(), l = e.isSplitVariant && a, o = Q(), c = Pt(e.primaryUrl, e.secondaryUrl, "logo");
106
106
  if (!e.brandingLogo)
107
107
  return null;
108
- const c = () => {
109
- r && window.open(r, "_blank", "noopener,noreferrer");
110
- }, m = /* @__PURE__ */ t(
108
+ const r = () => {
109
+ c && window.open(c, "_blank", "noopener,noreferrer");
110
+ }, u = /* @__PURE__ */ t(
111
111
  "img",
112
112
  {
113
113
  src: e.brandingLogo,
@@ -117,11 +117,11 @@ const Kt = (e, n) => {
117
117
  maxWidth: "100px"
118
118
  }
119
119
  }
120
- ), f = r ? typeof window > "u" ? /* @__PURE__ */ t(
120
+ ), f = c ? typeof window > "u" ? /* @__PURE__ */ t(
121
121
  i,
122
122
  {
123
123
  component: "a",
124
- href: r,
124
+ href: c,
125
125
  target: "_blank",
126
126
  rel: "noopener noreferrer",
127
127
  sx: {
@@ -129,19 +129,19 @@ const Kt = (e, n) => {
129
129
  textDecoration: "none",
130
130
  display: "inline-flex"
131
131
  },
132
- children: m
132
+ children: u
133
133
  }
134
134
  ) : /* @__PURE__ */ t(
135
135
  i,
136
136
  {
137
- onClick: c,
137
+ onClick: r,
138
138
  sx: {
139
139
  cursor: "pointer",
140
140
  display: "inline-flex"
141
141
  },
142
- children: m
142
+ children: u
143
143
  }
144
- ) : m;
144
+ ) : u;
145
145
  return e.isCentered || l || o ? /* @__PURE__ */ x(
146
146
  i,
147
147
  {
@@ -212,11 +212,11 @@ const Kt = (e, n) => {
212
212
  contentName: a,
213
213
  brandingColors: l,
214
214
  brandingUrls: o,
215
- campaignId: r,
216
- campaignName: c,
217
- startGame: m,
215
+ campaignId: c,
216
+ campaignName: r,
217
+ startGame: u,
218
218
  fields: f = ["fullName", "email"],
219
- leadTitle: u,
219
+ leadTitle: m,
220
220
  leadDescription: d,
221
221
  leadCta: s,
222
222
  leadSuccessTitle: h,
@@ -226,12 +226,12 @@ const Kt = (e, n) => {
226
226
  isAfterPosition: b = !1,
227
227
  isSubmittingParticipation: B = !1
228
228
  }) => {
229
- const { t: C } = O(), R = u ?? C("leads.header.title"), V = d ?? C("leads.header.description"), T = s ?? C("leads.buttons.submit"), y = h ?? C("leads.success.title"), N = A ?? C("leads.success.description"), g = {
229
+ const { t: C } = O(), R = m ?? C("leads.header.title"), V = d ?? C("leads.header.description"), T = s ?? C("leads.buttons.submit"), y = h ?? C("leads.success.title"), N = A ?? C("leads.success.description"), g = {
230
230
  defaultLabel: C(b ? "poll.buttons.vote" : "poll.buttons.start"),
231
- onClick: m
231
+ onClick: u
232
232
  };
233
233
  return /* @__PURE__ */ t(
234
- Pt,
234
+ Tt,
235
235
  {
236
236
  sdk: e,
237
237
  content: {
@@ -245,8 +245,8 @@ const Kt = (e, n) => {
245
245
  urls: o
246
246
  },
247
247
  campaign: {
248
- id: r,
249
- name: c
248
+ id: c,
249
+ name: r
250
250
  },
251
251
  fields: f,
252
252
  labels: {
@@ -261,7 +261,7 @@ const Kt = (e, n) => {
261
261
  isSubmittingParticipation: B
262
262
  }
263
263
  );
264
- }, en = (e) => ({
264
+ }, tn = (e) => ({
265
265
  // Main content section (non-filter screen)
266
266
  mainContentSection: {
267
267
  display: "flex",
@@ -364,18 +364,18 @@ const Kt = (e, n) => {
364
364
  }
365
365
  }), Je = (e) => {
366
366
  var C;
367
- const n = ve(), a = D(), l = re().sm, o = fe().primary, r = re().xs, c = Te(), m = $e().size, f = Ye(e.option.embedCode || ""), u = !!e.option.embedCode, d = ((C = e.brandingColors) == null ? void 0 : C.primaryColor) || a.palette.primary.plainColor, s = a.palette.primary.onPrimary, h = e.selectedOptions.includes(e.option.id) ? s : n.colorSchemes.light.textColor, A = e.optionsImages.get(e.option.id), P = () => {
367
+ const n = ve(), a = D(), l = re().sm, o = fe().primary, c = re().xs, r = Te(), u = $e().size, f = Ye(e.option.embedCode || ""), m = !!e.option.embedCode, d = ((C = e.brandingColors) == null ? void 0 : C.primaryColor) || a.palette.primary.plainColor, s = a.palette.primary.onPrimary, h = e.selectedOptions.includes(e.option.id) ? s : n.colorSchemes.light.textColor, A = e.optionsImages.get(e.option.id), P = () => {
368
368
  e.multipleChoice ? e.answerPoll([e.option.id]) : e.answerPoll([e.option.id]);
369
- }, S = e.selectedOptions.includes(e.option.id), b = e.isVoting || e.disabled || e.multipleChoice && !S && e.selectedOptions.length >= (e.maxChoices || 1), B = () => u ? /* @__PURE__ */ x(v, { children: [
369
+ }, S = e.selectedOptions.includes(e.option.id), b = e.isVoting || e.disabled || e.multipleChoice && !S && e.selectedOptions.length >= (e.maxChoices || 1), B = () => m ? /* @__PURE__ */ x(v, { children: [
370
370
  /* @__PURE__ */ t(
371
371
  i,
372
372
  {
373
373
  sx: {
374
- borderRadius: r,
374
+ borderRadius: c,
375
375
  overflow: "hidden",
376
376
  flexGrow: 1
377
377
  },
378
- children: /* @__PURE__ */ t(Ne, { ratio: "16/9", sx: { borderRadius: r }, children: /* @__PURE__ */ t(i, { ref: f }) })
378
+ children: /* @__PURE__ */ t(Ne, { ratio: "16/9", sx: { borderRadius: c }, children: /* @__PURE__ */ t(i, { ref: f }) })
379
379
  }
380
380
  ),
381
381
  /* @__PURE__ */ t(
@@ -390,7 +390,7 @@ const Kt = (e, n) => {
390
390
  letterSpacing: "0.46px",
391
391
  textAlign: "center",
392
392
  color: h,
393
- px: c["2xs"]
393
+ px: r["2xs"]
394
394
  },
395
395
  children: e.option.title
396
396
  }
@@ -400,11 +400,11 @@ const Kt = (e, n) => {
400
400
  i,
401
401
  {
402
402
  sx: {
403
- borderRadius: r,
403
+ borderRadius: c,
404
404
  overflow: "hidden",
405
405
  flexGrow: 1
406
406
  },
407
- children: /* @__PURE__ */ t(Ne, { ratio: "16/9", sx: { borderRadius: r }, children: /* @__PURE__ */ t(
407
+ children: /* @__PURE__ */ t(Ne, { ratio: "16/9", sx: { borderRadius: c }, children: /* @__PURE__ */ t(
408
408
  "img",
409
409
  {
410
410
  src: A,
@@ -430,7 +430,7 @@ const Kt = (e, n) => {
430
430
  letterSpacing: "0.46px",
431
431
  textAlign: "center",
432
432
  color: h,
433
- px: c["2xs"]
433
+ px: r["2xs"]
434
434
  },
435
435
  children: e.option.title
436
436
  }
@@ -447,7 +447,7 @@ const Kt = (e, n) => {
447
447
  letterSpacing: "0.46px",
448
448
  textAlign: "center",
449
449
  color: h,
450
- px: c["2xs"],
450
+ px: r["2xs"],
451
451
  my: "auto"
452
452
  },
453
453
  children: e.option.title
@@ -459,10 +459,10 @@ const Kt = (e, n) => {
459
459
  sx: {
460
460
  borderRadius: l,
461
461
  flex: 1,
462
- p: c.xs,
463
- gap: c.xs,
462
+ p: r.xs,
463
+ gap: r.xs,
464
464
  bgcolor: S ? d : "#FFFFFF",
465
- boxShadow: S ? `inset 0 0 0 ${m} ${d}` : "none",
465
+ boxShadow: S ? `inset 0 0 0 ${u} ${d}` : "none",
466
466
  cursor: b ? "not-allowed" : "pointer",
467
467
  opacity: b ? 0.5 : 1,
468
468
  transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
@@ -562,11 +562,11 @@ const Kt = (e, n) => {
562
562
  }, Oe = (e) => {
563
563
  const n = /* @__PURE__ */ new Map(), a = Q();
564
564
  return e.forEach((l) => {
565
- var c, m;
566
- const r = (a ? (c = l.images) == null ? void 0 : c.mobile : (m = l.images) == null ? void 0 : m.main) || "";
567
- n.set(l.id, r);
565
+ var r, u;
566
+ const c = (a ? (r = l.images) == null ? void 0 : r.mobile : (u = l.images) == null ? void 0 : u.main) || "";
567
+ n.set(l.id, c);
568
568
  }), n;
569
- }, tn = (e) => {
569
+ }, nn = (e) => {
570
570
  var $, w, _, M, Z, ce, K, ne, xe, se, le, de, p, oe, H, ye, he, ge, me, J, q, j, Y, be, ie, Ce, ue, X, Ae;
571
571
  const [n, a] = Re.useState(
572
572
  (($ = e.leads) == null ? void 0 : $.position) === "before" && e.poll.authRequirement === "LEAD"
@@ -577,13 +577,13 @@ const Kt = (e, n) => {
577
577
  ((ae = e.leads) == null ? void 0 : ae.position) === "before" && e.poll.authRequirement === "LEAD" || !1
578
578
  );
579
579
  }, [(w = e.leads) == null ? void 0 : w.position, e.poll.authRequirement]);
580
- const { optionsLayout: l } = Fe(Be), o = Te(), r = ve(), c = Oe(e.options), { t: m } = O(), f = Q(), u = Me(), d = Ye(e.poll.embedCode), s = !n && !!e.poll.embedCode, h = ((_ = e.leads) == null ? void 0 : _.position) === "after" ? m("poll.buttons.continue") : m("poll.buttons.vote"), { brandingImage: A, brandingColors: P, brandingLogo: S } = Qe(e.poll.branding || null), b = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : Q() ? Ve : ze, B = A || Ue(
580
+ const { optionsLayout: l } = Fe(Be), o = Te(), c = ve(), r = Oe(e.options), { t: u } = O(), f = Q(), m = Me(), d = Ye(e.poll.embedCode), s = !n && !!e.poll.embedCode, h = ((_ = e.leads) == null ? void 0 : _.position) === "after" ? u("poll.buttons.continue") : u("poll.buttons.vote"), { brandingImage: A, brandingColors: P, brandingLogo: S } = Qe(e.poll.branding || null), b = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : Q() ? Ve : ze, B = A || Ue(
581
581
  {
582
582
  images: e.poll.images,
583
583
  imagePlaceholder: b
584
584
  },
585
585
  G.OVERLAY
586
- ), C = r.customRadius.dark.sm, R = (P == null ? void 0 : P.backgroundColor) || ((Z = (M = r.colorSchemes) == null ? void 0 : M.dark) == null ? void 0 : Z.surfaceVariant), V = (K = (ce = r.customRadius) == null ? void 0 : ce.light) == null ? void 0 : K.xl, T = (P == null ? void 0 : P.primaryColor) || ((le = (se = (xe = (ne = r.colorSchemes) == null ? void 0 : ne.light) == null ? void 0 : xe.palette) == null ? void 0 : se.primary) == null ? void 0 : le.plainColor), y = (H = (oe = (p = (de = r.colorSchemes) == null ? void 0 : de.light) == null ? void 0 : p.palette) == null ? void 0 : oe.primary) == null ? void 0 : H.onPrimary, N = r.customFontFamily.dark.primary, g = r.colorSchemes.dark.textColor, z = en({
586
+ ), C = c.customRadius.dark.sm, R = (P == null ? void 0 : P.backgroundColor) || ((Z = (M = c.colorSchemes) == null ? void 0 : M.dark) == null ? void 0 : Z.surfaceVariant), V = (K = (ce = c.customRadius) == null ? void 0 : ce.light) == null ? void 0 : K.xl, T = (P == null ? void 0 : P.primaryColor) || ((le = (se = (xe = (ne = c.colorSchemes) == null ? void 0 : ne.light) == null ? void 0 : xe.palette) == null ? void 0 : se.primary) == null ? void 0 : le.plainColor), y = (H = (oe = (p = (de = c.colorSchemes) == null ? void 0 : de.light) == null ? void 0 : p.palette) == null ? void 0 : oe.primary) == null ? void 0 : H.onPrimary, N = c.customFontFamily.dark.primary, g = c.colorSchemes.dark.textColor, z = tn({
587
587
  spacingScale: o,
588
588
  smBorderRadius: C,
589
589
  contentBgColor: R,
@@ -601,7 +601,7 @@ const Kt = (e, n) => {
601
601
  W,
602
602
  {
603
603
  brandingLogo: S,
604
- textColor: r.colorSchemes.dark.textColor,
604
+ textColor: c.colorSchemes.dark.textColor,
605
605
  label: ((ae = e.poll.labels) == null ? void 0 : ae.sponsor) || null,
606
606
  primaryUrl: (Se = (Le = e.poll.branding) == null ? void 0 : Le.urls) == null ? void 0 : Se.primaryUrl,
607
607
  secondaryUrl: (Pe = (Ie = e.poll.branding) == null ? void 0 : Ie.urls) == null ? void 0 : Pe.secondaryUrl
@@ -609,10 +609,10 @@ const Kt = (e, n) => {
609
609
  );
610
610
  };
611
611
  return /* @__PURE__ */ t(
612
- Tt,
612
+ At,
613
613
  {
614
614
  entity: e.poll,
615
- headline: m("poll.headline"),
615
+ headline: u("poll.headline"),
616
616
  finalImage: B,
617
617
  rulesDisplay: e.rulesDisplay,
618
618
  children: /* @__PURE__ */ x(i, { sx: z.mainContentSection, children: [
@@ -660,9 +660,9 @@ const Kt = (e, n) => {
660
660
  options: e.options || [],
661
661
  answerPoll: e.answerPoll,
662
662
  selectedOptions: e.selectedOptions,
663
- optionsLayout: u ? "column" : l ?? "row",
663
+ optionsLayout: m ? "column" : l ?? "row",
664
664
  brandingColors: P,
665
- optionsImages: c,
665
+ optionsImages: r,
666
666
  multipleChoice: e.poll.multipleChoice,
667
667
  maxChoices: e.optionChoices,
668
668
  isVoting: e.isVoting,
@@ -676,7 +676,7 @@ const Kt = (e, n) => {
676
676
  _e,
677
677
  {
678
678
  onClick: e.startVoting,
679
- label: ((Ae = (X = e.consents) == null ? void 0 : X.labels) == null ? void 0 : Ae.ctaLabel) || m("poll.buttons.start"),
679
+ label: ((Ae = (X = e.consents) == null ? void 0 : X.labels) == null ? void 0 : Ae.ctaLabel) || u("poll.buttons.start"),
680
680
  isSubmitting: e.isSubmitting,
681
681
  primaryColor: T,
682
682
  showArrow: !1
@@ -771,18 +771,18 @@ const Kt = (e, n) => {
771
771
  brandingBorderColor: n,
772
772
  state: a
773
773
  }) => {
774
- const l = Q(), o = Me(), r = a === "play" ? o : l, c = re().md, m = n || D().secondaryContainer, u = $e().size + " solid " + m;
774
+ const l = Q(), o = Me(), c = a === "play" ? o : l, r = re().md, u = n || D().secondaryContainer, m = $e().size + " solid " + u;
775
775
  return /* @__PURE__ */ t(
776
776
  i,
777
777
  {
778
778
  sx: {
779
779
  display: "flex",
780
780
  // flexDirection: mobile ? "column" : "row",
781
- flexDirection: r ? "column" : "row",
781
+ flexDirection: c ? "column" : "row",
782
782
  width: "100%",
783
- borderRadius: c,
783
+ borderRadius: r,
784
784
  boxShadow: "md",
785
- border: u,
785
+ border: m,
786
786
  overflow: "hidden",
787
787
  background: D().surface,
788
788
  minHeight: "250px"
@@ -790,7 +790,7 @@ const Kt = (e, n) => {
790
790
  children: e
791
791
  }
792
792
  );
793
- }, nn = (e) => ({
793
+ }, ln = (e) => ({
794
794
  // Lead collection container
795
795
  leadCollectionContainer: {
796
796
  display: "flex",
@@ -878,7 +878,7 @@ const Kt = (e, n) => {
878
878
  justifyContent: "center",
879
879
  alignItems: "center"
880
880
  }
881
- }), ln = (e) => {
881
+ }), on = (e) => {
882
882
  var k, te, $, w, _, M, Z, ce, K, ne, xe, se, le, de, p, oe, H, ye, he, ge, me;
883
883
  const [n, a] = Re.useState(
884
884
  ((k = e.leads) == null ? void 0 : k.position) === "before" && e.poll.authRequirement === "LEAD"
@@ -889,13 +889,13 @@ const Kt = (e, n) => {
889
889
  ((J = e.leads) == null ? void 0 : J.position) === "before" && e.poll.authRequirement === "LEAD" || !1
890
890
  );
891
891
  }, [(te = e.leads) == null ? void 0 : te.position, e.poll.authRequirement]);
892
- const { optionsLayout: l } = Fe(Be), o = Ye(e.poll.embedCode), r = !n && !!e.poll.embedCode, c = Oe(e.options), { t: m } = O(), f = Q(), u = At(), d = (($ = e.poll.branding) == null ? void 0 : $.colors) || null, s = f ? ((_ = (w = e.poll.branding) == null ? void 0 : w.images) == null ? void 0 : _.mobileLogo) || ((Z = (M = e.poll.branding) == null ? void 0 : M.images) == null ? void 0 : Z.mainLogo) || "" : ((K = (ce = e.poll.branding) == null ? void 0 : ce.images) == null ? void 0 : K.mainLogo) || "", h = e.imagePosition || "left", A = Ue(
892
+ const { optionsLayout: l } = Fe(Be), o = Ye(e.poll.embedCode), c = !n && !!e.poll.embedCode, r = Oe(e.options), { t: u } = O(), f = Q(), m = vt(), d = (($ = e.poll.branding) == null ? void 0 : $.colors) || null, s = f ? ((_ = (w = e.poll.branding) == null ? void 0 : w.images) == null ? void 0 : _.mobileLogo) || ((Z = (M = e.poll.branding) == null ? void 0 : M.images) == null ? void 0 : Z.mainLogo) || "" : ((K = (ce = e.poll.branding) == null ? void 0 : ce.images) == null ? void 0 : K.mainLogo) || "", h = e.imagePosition || "left", A = Ue(
893
893
  {
894
894
  images: e.poll.images,
895
895
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
896
896
  },
897
897
  G.STANDARD
898
- ), P = ((ne = e.leads) == null ? void 0 : ne.position) === "after" ? m("poll.buttons.continue") : m("poll.buttons.vote"), S = u || f && !!A, b = (d == null ? void 0 : d.contentColor) || D().textColor, B = fe().primary, C = (d == null ? void 0 : d.backgroundColor) || D().surfaceVariant, R = re().md, V = (d == null ? void 0 : d.primaryColor) || D().palette.primary.plainColor, T = Te(), y = nn({
898
+ ), P = ((ne = e.leads) == null ? void 0 : ne.position) === "after" ? u("poll.buttons.continue") : u("poll.buttons.vote"), S = m || f && !!A, b = (d == null ? void 0 : d.contentColor) || D().textColor, B = fe().primary, C = (d == null ? void 0 : d.backgroundColor) || D().surfaceVariant, R = re().md, V = (d == null ? void 0 : d.primaryColor) || D().palette.primary.plainColor, T = Te(), y = ln({
899
899
  spacingScale: T,
900
900
  fontFamilyPrimary: B,
901
901
  textColor: b,
@@ -939,7 +939,7 @@ const Kt = (e, n) => {
939
939
  _e,
940
940
  {
941
941
  onClick: e.startVoting,
942
- label: ((j = (q = e.consents) == null ? void 0 : q.labels) == null ? void 0 : j.ctaLabel) || m("poll.buttons.start"),
942
+ label: ((j = (q = e.consents) == null ? void 0 : q.labels) == null ? void 0 : j.ctaLabel) || u("poll.buttons.start"),
943
943
  isSubmitting: e.isSubmitting,
944
944
  primaryColor: V,
945
945
  showArrow: !1
@@ -952,15 +952,15 @@ const Kt = (e, n) => {
952
952
  ] }) });
953
953
  };
954
954
  return /* @__PURE__ */ t(ee, { brandingBorderColor: (d == null ? void 0 : d.borderColor) || null, children: /* @__PURE__ */ t(
955
- vt,
955
+ Lt,
956
956
  {
957
957
  entity: e.poll,
958
- headline: m("poll.headline"),
958
+ headline: u("poll.headline"),
959
959
  finalImage: A,
960
960
  imagePosition: h,
961
961
  rulesDisplay: e.rulesDisplay,
962
962
  embedCodeContainerRef: o,
963
- hasEmbedCode: r,
963
+ hasEmbedCode: c,
964
964
  children: /* @__PURE__ */ t(v, { children: e.applyConsentGate ? z() : n ? /* @__PURE__ */ t(i, { sx: y.leadCollectionContainer, children: /* @__PURE__ */ x(i, { sx: y.leadQuestionContainer, children: [
965
965
  /* @__PURE__ */ t(i, { sx: y.leadContentContainer, children: /* @__PURE__ */ t(
966
966
  We,
@@ -994,7 +994,7 @@ const Kt = (e, n) => {
994
994
  answerPoll: e.answerPoll,
995
995
  selectedOptions: e.selectedOptions,
996
996
  optionsLayout: l ?? "twoByTwo",
997
- optionsImages: c,
997
+ optionsImages: r,
998
998
  brandingColors: d,
999
999
  multipleChoice: e.poll.multipleChoice,
1000
1000
  maxChoices: e.optionChoices,
@@ -1032,8 +1032,8 @@ const Kt = (e, n) => {
1032
1032
  ] }) }) }) })
1033
1033
  }
1034
1034
  ) });
1035
- }, on = (e) => {
1036
- var n, a, l, o, r, c;
1035
+ }, an = (e) => {
1036
+ var n, a, l, o, c, r;
1037
1037
  return {
1038
1038
  // Main headline section with background image
1039
1039
  headlineSection: {
@@ -1204,7 +1204,7 @@ const Kt = (e, n) => {
1204
1204
  lineHeight: "140%",
1205
1205
  fontSize: "1.25em",
1206
1206
  letterSpacing: "0.15px",
1207
- color: ((r = e.brandingColors) == null ? void 0 : r.secondaryColor) || e.darkTextColor,
1207
+ color: ((c = e.brandingColors) == null ? void 0 : c.secondaryColor) || e.darkTextColor,
1208
1208
  opacity: "70%",
1209
1209
  fontFamily: e.fontFamilyPrimary,
1210
1210
  textAlign: e.isLarge ? "center" : "left"
@@ -1215,7 +1215,7 @@ const Kt = (e, n) => {
1215
1215
  lineHeight: "140%",
1216
1216
  fontSize: "1.25em",
1217
1217
  letterSpacing: "0.15px",
1218
- color: ((c = e.brandingColors) == null ? void 0 : c.secondaryColor) || e.textColor,
1218
+ color: ((r = e.brandingColors) == null ? void 0 : r.secondaryColor) || e.textColor,
1219
1219
  opacity: "70%",
1220
1220
  fontFamily: e.fontFamilyPrimary,
1221
1221
  textAlign: e.isLarge ? "center" : "left"
@@ -1360,7 +1360,7 @@ const Kt = (e, n) => {
1360
1360
  justifyContent: "center"
1361
1361
  }
1362
1362
  };
1363
- }, an = (e) => {
1363
+ }, rn = (e) => {
1364
1364
  var ce, K, ne, xe, se, le, de, p, oe, H, ye, he, ge, me, J, q, j, Y, be, ie, Ce, ue;
1365
1365
  const [n, a] = Re.useState(
1366
1366
  ((ce = e.leads) == null ? void 0 : ce.position) === "before" && e.poll.authRequirement === "LEAD"
@@ -1371,15 +1371,15 @@ const Kt = (e, n) => {
1371
1371
  ((X = e.leads) == null ? void 0 : X.position) === "before" && e.poll.authRequirement === "LEAD" || !1
1372
1372
  );
1373
1373
  }, [(K = e.leads) == null ? void 0 : K.position, e.poll.authRequirement]);
1374
- const { optionsLayout: l } = Fe(Be), o = ve(), r = Q(), c = Me(), m = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : r ? Ve : ze, f = Ue(
1374
+ const { optionsLayout: l } = Fe(Be), o = ve(), c = Q(), r = Me(), u = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : c ? Ve : ze, f = Ue(
1375
1375
  {
1376
1376
  images: e.poll.images,
1377
- imagePlaceholder: m
1377
+ imagePlaceholder: u
1378
1378
  },
1379
1379
  G.SPLIT
1380
- ), u = Oe(e.options), { t: d } = O(), s = ((ne = e.poll.branding) == null ? void 0 : ne.colors) || null, h = r ? ((xe = e.poll.branding) == null ? void 0 : xe.images.mobileLogo) || ((se = e.poll.branding) == null ? void 0 : se.images.mainLogo) || "" : ((le = e.poll.branding) == null ? void 0 : le.images.mainLogo) || "", A = Ye(e.poll.embedCode), P = !n && !!e.poll.embedCode, S = ((de = e.leads) == null ? void 0 : de.position) === "after" ? d("poll.buttons.continue") : d("poll.buttons.vote"), b = (s == null ? void 0 : s.contentColor) || D().textColor, B = fe().secondary, C = "60%", R = fe().primary, V = re().xl, T = (s == null ? void 0 : s.backgroundColor) || D().surfaceVariant, y = (s == null ? void 0 : s.primaryColor) || ((oe = (p = D().palette) == null ? void 0 : p.primary) == null ? void 0 : oe.plainColor), N = (ye = (H = D().palette) == null ? void 0 : H.primary) == null ? void 0 : ye.onPrimary, g = D().textColor, z = Te(), k = re(), te = gt(
1380
+ ), m = Oe(e.options), { t: d } = O(), s = ((ne = e.poll.branding) == null ? void 0 : ne.colors) || null, h = c ? ((xe = e.poll.branding) == null ? void 0 : xe.images.mobileLogo) || ((se = e.poll.branding) == null ? void 0 : se.images.mainLogo) || "" : ((le = e.poll.branding) == null ? void 0 : le.images.mainLogo) || "", A = Ye(e.poll.embedCode), P = !n && !!e.poll.embedCode, S = ((de = e.leads) == null ? void 0 : de.position) === "after" ? d("poll.buttons.continue") : d("poll.buttons.vote"), b = (s == null ? void 0 : s.contentColor) || D().textColor, B = fe().secondary, C = "60%", R = fe().primary, V = re().xl, T = (s == null ? void 0 : s.backgroundColor) || D().surfaceVariant, y = (s == null ? void 0 : s.primaryColor) || ((oe = (p = D().palette) == null ? void 0 : p.primary) == null ? void 0 : oe.plainColor), N = (ye = (H = D().palette) == null ? void 0 : H.primary) == null ? void 0 : ye.onPrimary, g = D().textColor, z = Te(), k = re(), te = mt(
1381
1381
  G.SPLIT
1382
- ), $ = De(T || ""), w = on({
1382
+ ), $ = De(T || ""), w = an({
1383
1383
  finalImage: f,
1384
1384
  spacingScale: z,
1385
1385
  borderRadius: k,
@@ -1395,7 +1395,7 @@ const Kt = (e, n) => {
1395
1395
  brandingColors: s,
1396
1396
  darkTextColor: o.colorSchemes.dark.textColor,
1397
1397
  imageBackgroundGradient: te,
1398
- isLarge: c
1398
+ isLarge: r
1399
1399
  }), _ = () => {
1400
1400
  a(!1);
1401
1401
  }, M = (X, Ae) => {
@@ -1435,7 +1435,7 @@ const Kt = (e, n) => {
1435
1435
  state: "play",
1436
1436
  children: [
1437
1437
  /* @__PURE__ */ t(
1438
- Lt,
1438
+ kt,
1439
1439
  {
1440
1440
  entity: { ...e.poll, type: "poll" },
1441
1441
  headline: d("poll.headline"),
@@ -1478,7 +1478,7 @@ const Kt = (e, n) => {
1478
1478
  color: g,
1479
1479
  textAlign: "center"
1480
1480
  },
1481
- children: kt(e.poll.description)
1481
+ children: wt(e.poll.description)
1482
1482
  }
1483
1483
  )
1484
1484
  ] })
@@ -1505,7 +1505,7 @@ const Kt = (e, n) => {
1505
1505
  consents: e.leadConsents
1506
1506
  }
1507
1507
  ) }),
1508
- h ? /* @__PURE__ */ t(i, { sx: { display: c ? "block" : "none" }, children: M(g) }) : /* @__PURE__ */ t(v, {})
1508
+ h ? /* @__PURE__ */ t(i, { sx: { display: r ? "block" : "none" }, children: M(g) }) : /* @__PURE__ */ t(v, {})
1509
1509
  ] }) : /* @__PURE__ */ t(v, { children: /* @__PURE__ */ x(i, { sx: w.mainContentContainer, children: [
1510
1510
  e.poll.alternativeTitle ? /* @__PURE__ */ t(i, { sx: w.alternativeTitleSection, children: /* @__PURE__ */ t(
1511
1511
  L,
@@ -1521,9 +1521,9 @@ const Kt = (e, n) => {
1521
1521
  options: e.options || [],
1522
1522
  answerPoll: e.answerPoll,
1523
1523
  selectedOptions: e.selectedOptions,
1524
- optionsLayout: c ? "column" : l ?? "twoByTwo",
1524
+ optionsLayout: r ? "column" : l ?? "twoByTwo",
1525
1525
  brandingColors: s,
1526
- optionsImages: u,
1526
+ optionsImages: m,
1527
1527
  multipleChoice: e.poll.multipleChoice,
1528
1528
  maxChoices: e.optionChoices,
1529
1529
  isVoting: e.isVoting,
@@ -1535,7 +1535,7 @@ const Kt = (e, n) => {
1535
1535
  {
1536
1536
  sx: {
1537
1537
  display: "flex",
1538
- flexDirection: c ? "column-reverse" : "row",
1538
+ flexDirection: r ? "column-reverse" : "row",
1539
1539
  gap: z.lg,
1540
1540
  justifyContent: h ? "space-between" : "center"
1541
1541
  },
@@ -1578,7 +1578,7 @@ const Kt = (e, n) => {
1578
1578
  isVoting: e.isVoting
1579
1579
  }
1580
1580
  ),
1581
- h && !c ? /* @__PURE__ */ t(i, { sx: w.presentedByMobile, children: M(
1581
+ h && !r ? /* @__PURE__ */ t(i, { sx: w.presentedByMobile, children: M(
1582
1582
  (s == null ? void 0 : s.contentColor) || g
1583
1583
  ) }) : /* @__PURE__ */ t(v, {})
1584
1584
  ] }) })
@@ -1586,15 +1586,15 @@ const Kt = (e, n) => {
1586
1586
  ] }) })
1587
1587
  }
1588
1588
  ),
1589
- h && c && /* @__PURE__ */ t(i, { sx: { mb: z.lg, px: z.lg }, children: M(
1589
+ h && r && /* @__PURE__ */ t(i, { sx: { mb: z.lg, px: z.lg }, children: M(
1590
1590
  (s == null ? void 0 : s.contentColor) || o.colorSchemes.dark.textColor,
1591
1591
  !0
1592
1592
  ) })
1593
1593
  ]
1594
1594
  }
1595
1595
  );
1596
- }, rn = (e) => {
1597
- const n = re(), a = Q(), l = $e().size, o = D(), r = fe(), c = o.palette.primary.plainColor, m = o.textPrimary, f = o.textSecondary, u = o.secondaryContainer, d = o.surface, s = o.onSurface, h = `rgba(${De(o.surfaceVariant)}, 0.5)`;
1596
+ }, cn = (e) => {
1597
+ const n = re(), a = Q(), l = $e().size, o = D(), c = fe(), r = o.palette.primary.plainColor, u = o.textPrimary, f = o.textSecondary, m = o.secondaryContainer, d = o.surface, s = o.onSurface, h = `rgba(${De(o.surfaceVariant)}, 0.5)`;
1598
1598
  return {
1599
1599
  // Question area
1600
1600
  questionArea: {
@@ -1630,11 +1630,11 @@ const Kt = (e, n) => {
1630
1630
  alignItems: "center",
1631
1631
  gap: "8px",
1632
1632
  borderRadius: n.xl,
1633
- border: l + " solid " + c,
1633
+ border: l + " solid " + r,
1634
1634
  bgcolor: d,
1635
1635
  "&:hover": {
1636
1636
  bgcolor: s,
1637
- borderColor: c
1637
+ borderColor: r
1638
1638
  },
1639
1639
  fontSize: "0.8125em"
1640
1640
  },
@@ -1653,13 +1653,13 @@ const Kt = (e, n) => {
1653
1653
  height: "16px",
1654
1654
  justifyContent: "flex-end",
1655
1655
  alignItems: "center",
1656
- color: m
1656
+ color: u
1657
1657
  },
1658
1658
  // Play again text
1659
1659
  playAgainText: {
1660
- color: m,
1660
+ color: u,
1661
1661
  textAlign: "center",
1662
- fontFamily: r.primary,
1662
+ fontFamily: c.primary,
1663
1663
  fontSize: "0.8125em",
1664
1664
  fontStyle: "normal",
1665
1665
  fontWeight: 500,
@@ -1677,10 +1677,10 @@ const Kt = (e, n) => {
1677
1677
  alignItems: "center",
1678
1678
  gap: "8px",
1679
1679
  borderRadius: n.xl,
1680
- border: l + " solid " + u,
1681
- bgcolor: u,
1680
+ border: l + " solid " + m,
1681
+ bgcolor: m,
1682
1682
  "&:hover": {
1683
- bgcolor: u,
1683
+ bgcolor: m,
1684
1684
  opacity: 0.9
1685
1685
  },
1686
1686
  fontSize: "0.8125em"
@@ -1695,7 +1695,7 @@ const Kt = (e, n) => {
1695
1695
  // Additional CTA text
1696
1696
  additionalCTAText: {
1697
1697
  color: f,
1698
- fontFamily: r.primary,
1698
+ fontFamily: c.primary,
1699
1699
  fontSize: "0.8125em",
1700
1700
  fontStyle: "normal",
1701
1701
  fontWeight: 500,
@@ -1735,7 +1735,7 @@ const Kt = (e, n) => {
1735
1735
  },
1736
1736
  // Alternative title text
1737
1737
  alternativeTitleText: {
1738
- fontFamily: r.primary,
1738
+ fontFamily: c.primary,
1739
1739
  lineHeight: "150%",
1740
1740
  letterSpacing: "0.15px",
1741
1741
  fontWeight: 500,
@@ -1744,16 +1744,16 @@ const Kt = (e, n) => {
1744
1744
  color: e.textColor
1745
1745
  }
1746
1746
  };
1747
- }, cn = (e, n) => {
1747
+ }, sn = (e, n) => {
1748
1748
  switch (e) {
1749
1749
  case "success":
1750
- return /* @__PURE__ */ t(Yt, {});
1750
+ return /* @__PURE__ */ t(Qt, {});
1751
1751
  case "error":
1752
- return /* @__PURE__ */ t(_t, { sx: { color: n } });
1752
+ return /* @__PURE__ */ t(Kt, { sx: { color: n } });
1753
1753
  case "info":
1754
- return /* @__PURE__ */ t(Qt, {});
1754
+ return /* @__PURE__ */ t(_t, {});
1755
1755
  }
1756
- }, sn = (e) => {
1756
+ }, dn = (e) => {
1757
1757
  switch (e) {
1758
1758
  case "success":
1759
1759
  return "success";
@@ -1768,24 +1768,24 @@ const Kt = (e, n) => {
1768
1768
  message: a,
1769
1769
  description: l
1770
1770
  }) => {
1771
- const o = ve(), r = re(), c = fe().secondary, m = sn(e);
1771
+ const o = ve(), c = re(), r = fe().secondary, u = dn(e);
1772
1772
  return /* @__PURE__ */ t(
1773
- Nt,
1773
+ $t,
1774
1774
  {
1775
1775
  variant: "soft",
1776
- color: m,
1777
- startDecorator: cn(
1776
+ color: u,
1777
+ startDecorator: sn(
1778
1778
  e,
1779
1779
  o.colorSchemes.light.palette.danger.plainColor
1780
1780
  ),
1781
1781
  sx: {
1782
1782
  gap: 1,
1783
- borderRadius: r.sm,
1783
+ borderRadius: c.sm,
1784
1784
  fontSize: "0.875em",
1785
1785
  "--Icon-fontSize": "1.25em"
1786
1786
  },
1787
1787
  children: /* @__PURE__ */ x(
1788
- $t,
1788
+ Yt,
1789
1789
  {
1790
1790
  sx: {
1791
1791
  fontSize: "1.5em"
@@ -1795,9 +1795,9 @@ const Kt = (e, n) => {
1795
1795
  L,
1796
1796
  {
1797
1797
  level: "title-md",
1798
- color: m,
1798
+ color: u,
1799
1799
  fontWeight: "bold",
1800
- sx: { fontFamily: c, fontSize: "0.875em" },
1800
+ sx: { fontFamily: r, fontSize: "0.875em" },
1801
1801
  children: n
1802
1802
  }
1803
1803
  ),
@@ -1805,7 +1805,7 @@ const Kt = (e, n) => {
1805
1805
  L,
1806
1806
  {
1807
1807
  level: "body-sm",
1808
- sx: { fontFamily: c, fontSize: "0.675em" },
1808
+ sx: { fontFamily: r, fontSize: "0.675em" },
1809
1809
  children: a
1810
1810
  }
1811
1811
  ),
@@ -1813,7 +1813,7 @@ const Kt = (e, n) => {
1813
1813
  L,
1814
1814
  {
1815
1815
  level: "body-xs",
1816
- sx: { fontFamily: c, fontSize: "0.6em" },
1816
+ sx: { fontFamily: r, fontSize: "0.6em" },
1817
1817
  children: l
1818
1818
  }
1819
1819
  )
@@ -1824,7 +1824,7 @@ const Kt = (e, n) => {
1824
1824
  );
1825
1825
  }, Xe = (e) => {
1826
1826
  var C;
1827
- const n = mt(), [a, l] = U(0), o = ve(), r = D(), c = re().sm, m = fe(), f = re().xs, u = Te(), d = e.optionsImages.get(e.option.id), s = e.selectedOptions.includes(e.option.id), h = ((C = e.brandingColors) == null ? void 0 : C.primaryColor) || r.palette.primary.plainColor, A = r.palette.primary.onPrimary, P = s ? A : o.colorSchemes.light.textColor, S = e.option.votes, b = e.totalVotes > 0 ? S / e.totalVotes * 100 : 0;
1827
+ const n = ut(), [a, l] = U(0), o = ve(), c = D(), r = re().sm, u = fe(), f = re().xs, m = Te(), d = e.optionsImages.get(e.option.id), s = e.selectedOptions.includes(e.option.id), h = ((C = e.brandingColors) == null ? void 0 : C.primaryColor) || c.palette.primary.plainColor, A = c.palette.primary.onPrimary, P = s ? A : o.colorSchemes.light.textColor, S = e.option.votes, b = e.totalVotes > 0 ? S / e.totalVotes * 100 : 0;
1828
1828
  ke(() => {
1829
1829
  const R = setTimeout(() => {
1830
1830
  l(b);
@@ -1839,7 +1839,7 @@ const Kt = (e, n) => {
1839
1839
  borderRadius: f,
1840
1840
  overflow: "hidden",
1841
1841
  flexGrow: 1,
1842
- mb: u["2xs"]
1842
+ mb: m["2xs"]
1843
1843
  },
1844
1844
  children: /* @__PURE__ */ t(Ne, { ratio: "16/9", sx: { borderRadius: f }, children: /* @__PURE__ */ t(
1845
1845
  "img",
@@ -1862,8 +1862,8 @@ const Kt = (e, n) => {
1862
1862
  display: "flex",
1863
1863
  alignItems: "center",
1864
1864
  justifyContent: "center",
1865
- gap: u["2xs"],
1866
- my: u["2xs"]
1865
+ gap: m["2xs"],
1866
+ my: m["2xs"]
1867
1867
  },
1868
1868
  children: [
1869
1869
  /* @__PURE__ */ t(
@@ -1883,7 +1883,7 @@ const Kt = (e, n) => {
1883
1883
  fontSize: "0.7em",
1884
1884
  fontWeight: 500,
1885
1885
  color: s ? A : o.colorSchemes.light.textColor,
1886
- fontFamily: m.secondary,
1886
+ fontFamily: u.secondary,
1887
1887
  whiteSpace: "nowrap",
1888
1888
  lineHeight: 1
1889
1889
  },
@@ -1903,14 +1903,14 @@ const Kt = (e, n) => {
1903
1903
  {
1904
1904
  level: "body-md",
1905
1905
  sx: {
1906
- fontFamily: m.primary,
1906
+ fontFamily: u.primary,
1907
1907
  fontWeight: 500,
1908
1908
  fontSize: "0.935em",
1909
1909
  lineHeight: "24px",
1910
1910
  letterSpacing: "0.46px",
1911
1911
  textAlign: "center",
1912
1912
  color: P,
1913
- px: u["2xs"]
1913
+ px: m["2xs"]
1914
1914
  },
1915
1915
  children: e.option.title
1916
1916
  }
@@ -1922,7 +1922,7 @@ const Kt = (e, n) => {
1922
1922
  position: "relative",
1923
1923
  zIndex: 1,
1924
1924
  display: "flex",
1925
- gap: u.xs
1925
+ gap: m.xs
1926
1926
  },
1927
1927
  children: [
1928
1928
  /* @__PURE__ */ x(
@@ -1932,7 +1932,7 @@ const Kt = (e, n) => {
1932
1932
  display: "flex",
1933
1933
  flexDirection: "column",
1934
1934
  justifyContent: "center",
1935
- gap: u["2xs"],
1935
+ gap: m["2xs"],
1936
1936
  flexShrink: 0,
1937
1937
  minWidth: "fit-content"
1938
1938
  },
@@ -1943,7 +1943,7 @@ const Kt = (e, n) => {
1943
1943
  sx: {
1944
1944
  display: "flex",
1945
1945
  alignItems: "center",
1946
- gap: u["2xs"]
1946
+ gap: m["2xs"]
1947
1947
  },
1948
1948
  children: [
1949
1949
  /* @__PURE__ */ t(
@@ -1963,7 +1963,7 @@ const Kt = (e, n) => {
1963
1963
  fontSize: "0.7em",
1964
1964
  fontWeight: 500,
1965
1965
  color: s ? A : o.colorSchemes.light.textColor,
1966
- fontFamily: m.secondary,
1966
+ fontFamily: u.secondary,
1967
1967
  whiteSpace: "nowrap",
1968
1968
  lineHeight: 0
1969
1969
  },
@@ -1981,7 +1981,7 @@ const Kt = (e, n) => {
1981
1981
  fontSize: "0.65em",
1982
1982
  fontWeight: 400,
1983
1983
  color: s ? A : o.colorSchemes.light.textColor,
1984
- fontFamily: m.secondary,
1984
+ fontFamily: u.secondary,
1985
1985
  whiteSpace: "nowrap",
1986
1986
  lineHeight: 1,
1987
1987
  textAlign: "center"
@@ -2004,14 +2004,14 @@ const Kt = (e, n) => {
2004
2004
  alignItems: "center",
2005
2005
  flex: 1,
2006
2006
  minWidth: 0,
2007
- gap: u.xs
2007
+ gap: m.xs
2008
2008
  },
2009
2009
  children: /* @__PURE__ */ t(
2010
2010
  L,
2011
2011
  {
2012
2012
  level: "body-md",
2013
2013
  sx: {
2014
- fontFamily: m.primary,
2014
+ fontFamily: u.primary,
2015
2015
  fontWeight: 500,
2016
2016
  fontSize: "0.935em",
2017
2017
  lineHeight: "16px",
@@ -2035,9 +2035,9 @@ const Kt = (e, n) => {
2035
2035
  i,
2036
2036
  {
2037
2037
  sx: {
2038
- borderRadius: c,
2038
+ borderRadius: r,
2039
2039
  flex: 1,
2040
- p: u.xs,
2040
+ p: m.xs,
2041
2041
  bgcolor: s ? h : "#FFFFFF",
2042
2042
  display: "flex",
2043
2043
  flexDirection: "column",
@@ -2055,7 +2055,7 @@ const Kt = (e, n) => {
2055
2055
  left: 0,
2056
2056
  height: "100%",
2057
2057
  width: `${a}%`,
2058
- bgcolor: s ? r.palette.primary.primaryContainer : o.mode === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.2)",
2058
+ bgcolor: s ? c.palette.primary.primaryContainer : o.mode === "light" ? "rgba(0, 0, 0, 0.1)" : "rgba(0, 0, 0, 0.2)",
2059
2059
  transition: "width 0.8s ease-out",
2060
2060
  zIndex: 0
2061
2061
  }
@@ -2067,19 +2067,19 @@ const Kt = (e, n) => {
2067
2067
  e.option.id
2068
2068
  );
2069
2069
  }, lt = (e) => {
2070
- const { t: n } = O(), a = mt(), l = Te(), o = D(), r = fe(), c = $e().size, f = e.options.reduce((u, d) => u + (d.votes || 0), 0);
2070
+ const { t: n } = O(), a = ut(), l = Te(), o = D(), c = fe(), r = $e().size, f = e.options.reduce((m, d) => m + (d.votes || 0), 0);
2071
2071
  if (e.optionsLayout === "twoByTwo") {
2072
- const u = [];
2072
+ const m = [];
2073
2073
  for (let d = 0; d < e.options.length; d += 2) {
2074
2074
  const s = e.options.slice(d, d + 2);
2075
- u.push(s);
2075
+ m.push(s);
2076
2076
  }
2077
2077
  return /* @__PURE__ */ x(
2078
2078
  i,
2079
2079
  {
2080
2080
  sx: { display: "flex", flexDirection: "column", gap: l.md },
2081
2081
  children: [
2082
- /* @__PURE__ */ t(i, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: u.map((d, s) => /* @__PURE__ */ t(
2082
+ /* @__PURE__ */ t(i, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: m.map((d, s) => /* @__PURE__ */ t(
2083
2083
  i,
2084
2084
  {
2085
2085
  sx: {
@@ -2113,7 +2113,7 @@ const Kt = (e, n) => {
2113
2113
  justifyContent: "center",
2114
2114
  gap: l.xs,
2115
2115
  pt: l.md,
2116
- borderTop: `${c} solid`,
2116
+ borderTop: `${r} solid`,
2117
2117
  borderColor: D().outlineEnabledBorder
2118
2118
  },
2119
2119
  children: [
@@ -2133,7 +2133,7 @@ const Kt = (e, n) => {
2133
2133
  sx: {
2134
2134
  color: o.textColor,
2135
2135
  fontWeight: 500,
2136
- fontFamily: r.secondary,
2136
+ fontFamily: c.secondary,
2137
2137
  fontSize: "0.875em"
2138
2138
  },
2139
2139
  children: [
@@ -2155,16 +2155,16 @@ const Kt = (e, n) => {
2155
2155
  {
2156
2156
  sx: { display: "flex", flexDirection: "column", gap: l.md },
2157
2157
  children: [
2158
- /* @__PURE__ */ t(i, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: e.options.map((u) => /* @__PURE__ */ t(
2158
+ /* @__PURE__ */ t(i, { sx: { py: 2, display: "flex", flexDirection: "column", gap: 2 }, children: e.options.map((m) => /* @__PURE__ */ t(
2159
2159
  Xe,
2160
2160
  {
2161
- option: u,
2161
+ option: m,
2162
2162
  selectedOptions: e.selectedOptions,
2163
2163
  optionsImages: e.optionsImages,
2164
2164
  brandingColors: e.brandingColors,
2165
2165
  totalVotes: f
2166
2166
  },
2167
- u.id
2167
+ m.id
2168
2168
  )) }),
2169
2169
  /* @__PURE__ */ x(
2170
2170
  i,
@@ -2175,7 +2175,7 @@ const Kt = (e, n) => {
2175
2175
  justifyContent: "center",
2176
2176
  gap: l.xs,
2177
2177
  pt: l.md,
2178
- borderTop: `${c} solid`,
2178
+ borderTop: `${r} solid`,
2179
2179
  borderColor: D().outlineEnabledBorder
2180
2180
  },
2181
2181
  children: [
@@ -2195,7 +2195,7 @@ const Kt = (e, n) => {
2195
2195
  sx: {
2196
2196
  color: o.textColor,
2197
2197
  fontWeight: 500,
2198
- fontFamily: r.secondary,
2198
+ fontFamily: c.secondary,
2199
2199
  fontSize: "0.875em"
2200
2200
  },
2201
2201
  children: [
@@ -2225,16 +2225,16 @@ const Kt = (e, n) => {
2225
2225
  flexDirection: { xs: "column", md: "row" },
2226
2226
  gap: 2
2227
2227
  },
2228
- children: e.options.map((u) => /* @__PURE__ */ t(
2228
+ children: e.options.map((m) => /* @__PURE__ */ t(
2229
2229
  Xe,
2230
2230
  {
2231
- option: u,
2231
+ option: m,
2232
2232
  selectedOptions: e.selectedOptions,
2233
2233
  optionsImages: e.optionsImages,
2234
2234
  brandingColors: e.brandingColors,
2235
2235
  totalVotes: f
2236
2236
  },
2237
- u.id
2237
+ m.id
2238
2238
  ))
2239
2239
  }
2240
2240
  ),
@@ -2247,7 +2247,7 @@ const Kt = (e, n) => {
2247
2247
  justifyContent: "center",
2248
2248
  gap: l.xs,
2249
2249
  pt: l.md,
2250
- borderTop: `${c} solid`,
2250
+ borderTop: `${r} solid`,
2251
2251
  borderColor: D().outlineEnabledBorder
2252
2252
  },
2253
2253
  children: [
@@ -2267,7 +2267,7 @@ const Kt = (e, n) => {
2267
2267
  sx: {
2268
2268
  color: o.textColor,
2269
2269
  fontWeight: 500,
2270
- fontFamily: r.secondary,
2270
+ fontFamily: c.secondary,
2271
2271
  fontSize: "0.875em"
2272
2272
  },
2273
2273
  children: [
@@ -2283,7 +2283,7 @@ const Kt = (e, n) => {
2283
2283
  ]
2284
2284
  }
2285
2285
  );
2286
- }, dn = (e) => {
2286
+ }, gn = (e) => {
2287
2287
  var A, P, S, b;
2288
2288
  const n = Ue(
2289
2289
  {
@@ -2291,9 +2291,9 @@ const Kt = (e, n) => {
2291
2291
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
2292
2292
  },
2293
2293
  G.STANDARD
2294
- ), { optionsLayout: a } = Fe(Be), { t: l } = O(), o = ((A = e.poll.branding) == null ? void 0 : A.colors) || null, c = Q() ? ((P = e.poll.branding) == null ? void 0 : P.images.mobileLogo) || ((S = e.poll.branding) == null ? void 0 : S.images.mainLogo) || "" : ((b = e.poll.branding) == null ? void 0 : b.images.mainLogo) || "", m = e.imagePosition || "left", f = Oe(e.poll.options), u = (o == null ? void 0 : o.contentColor) || D().textColor, d = Te(), s = rn({
2294
+ ), { optionsLayout: a } = Fe(Be), { t: l } = O(), o = ((A = e.poll.branding) == null ? void 0 : A.colors) || null, r = Q() ? ((P = e.poll.branding) == null ? void 0 : P.images.mobileLogo) || ((S = e.poll.branding) == null ? void 0 : S.images.mainLogo) || "" : ((b = e.poll.branding) == null ? void 0 : b.images.mainLogo) || "", u = e.imagePosition || "left", f = Oe(e.poll.options), m = (o == null ? void 0 : o.contentColor) || D().textColor, d = Te(), s = cn({
2295
2295
  spacingScale: d,
2296
- textColor: u
2296
+ textColor: m
2297
2297
  }), h = () => {
2298
2298
  var B, C, R, V, T;
2299
2299
  return /* @__PURE__ */ t(v, { children: e.isUnauthorized ? /* @__PURE__ */ x(v, { children: [
@@ -2305,11 +2305,11 @@ const Kt = (e, n) => {
2305
2305
  message: l("common.authentication.invalidOrMissingAuth")
2306
2306
  }
2307
2307
  ),
2308
- c ? /* @__PURE__ */ t(
2308
+ r ? /* @__PURE__ */ t(
2309
2309
  W,
2310
2310
  {
2311
- brandingLogo: c,
2312
- textColor: u,
2311
+ brandingLogo: r,
2312
+ textColor: m,
2313
2313
  label: ((T = e.poll.labels) == null ? void 0 : T.sponsor) || null
2314
2314
  }
2315
2315
  ) : /* @__PURE__ */ t(v, {})
@@ -2339,13 +2339,13 @@ const Kt = (e, n) => {
2339
2339
  /* @__PURE__ */ x(
2340
2340
  i,
2341
2341
  {
2342
- sx: c ? s.footerContainer : s.footerContainerNoLogo,
2342
+ sx: r ? s.footerContainer : s.footerContainerNoLogo,
2343
2343
  children: [
2344
- c ? /* @__PURE__ */ t(i, { sx: s.presentedByDesktop, children: /* @__PURE__ */ t(
2344
+ r ? /* @__PURE__ */ t(i, { sx: s.presentedByDesktop, children: /* @__PURE__ */ t(
2345
2345
  W,
2346
2346
  {
2347
- brandingLogo: c,
2348
- textColor: u,
2347
+ brandingLogo: r,
2348
+ textColor: m,
2349
2349
  label: ((R = e.poll.labels) == null ? void 0 : R.sponsor) || null
2350
2350
  }
2351
2351
  ) }) : /* @__PURE__ */ t(v, {}),
@@ -2383,11 +2383,11 @@ const Kt = (e, n) => {
2383
2383
  ]
2384
2384
  }
2385
2385
  ),
2386
- c ? /* @__PURE__ */ t(i, { sx: s.presentedByMobile, children: /* @__PURE__ */ t(
2386
+ r ? /* @__PURE__ */ t(i, { sx: s.presentedByMobile, children: /* @__PURE__ */ t(
2387
2387
  W,
2388
2388
  {
2389
- brandingLogo: c,
2390
- textColor: u,
2389
+ brandingLogo: r,
2390
+ textColor: m,
2391
2391
  label: ((V = e.poll.labels) == null ? void 0 : V.sponsor) || null
2392
2392
  }
2393
2393
  ) }) : /* @__PURE__ */ t(v, {})
@@ -2395,17 +2395,17 @@ const Kt = (e, n) => {
2395
2395
  ] }) });
2396
2396
  };
2397
2397
  return /* @__PURE__ */ t(ee, { brandingBorderColor: (o == null ? void 0 : o.borderColor) || null, children: /* @__PURE__ */ t(
2398
- wt,
2398
+ Dt,
2399
2399
  {
2400
2400
  entity: e.poll,
2401
2401
  headline: l("poll.headline"),
2402
2402
  finalImage: n,
2403
- imagePosition: m,
2403
+ imagePosition: u,
2404
2404
  rulesDisplay: e.rulesDisplay,
2405
2405
  children: h()
2406
2406
  }
2407
2407
  ) });
2408
- }, gn = (e) => ({
2408
+ }, mn = (e) => ({
2409
2409
  // Question area content wrapper
2410
2410
  questionAreaContent: {
2411
2411
  p: e.spacingScale.lg,
@@ -2557,15 +2557,15 @@ const Kt = (e, n) => {
2557
2557
  alertMessageWrapper: {
2558
2558
  p: e.spacingScale.lg
2559
2559
  }
2560
- }), mn = (e) => {
2560
+ }), un = (e) => {
2561
2561
  var g, z, k, te;
2562
- const n = ve(), a = Q(), l = Dt(), o = Me(), r = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ve : ze, c = Ue(
2562
+ const n = ve(), a = Q(), l = Rt(), o = Me(), c = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ve : ze, r = Ue(
2563
2563
  {
2564
2564
  images: e.poll.images,
2565
- imagePlaceholder: r
2565
+ imagePlaceholder: c
2566
2566
  },
2567
2567
  G.SPLIT
2568
- ), m = Oe(e.poll.options), { t: f } = O(), { optionsLayout: u } = Fe(Be), d = ((g = e.poll.branding) == null ? void 0 : g.colors) || null, s = D().textPrimary, h = (d == null ? void 0 : d.secondaryColor) || D().textSecondary, A = D().secondaryContainer, P = fe().primary, S = (d == null ? void 0 : d.backgroundColor) || D().surfaceVariant, b = D().surface, B = D().onSurface, C = re(), R = D().textColor, V = Te(), T = a ? ((z = e.poll.branding) == null ? void 0 : z.images.mobileLogo) || ((k = e.poll.branding) == null ? void 0 : k.images.mainLogo) || "" : ((te = e.poll.branding) == null ? void 0 : te.images.mainLogo) || "", y = gn({
2568
+ ), u = Oe(e.poll.options), { t: f } = O(), { optionsLayout: m } = Fe(Be), d = ((g = e.poll.branding) == null ? void 0 : g.colors) || null, s = D().textPrimary, h = (d == null ? void 0 : d.secondaryColor) || D().textSecondary, A = D().secondaryContainer, P = fe().primary, S = (d == null ? void 0 : d.backgroundColor) || D().surfaceVariant, b = D().surface, B = D().onSurface, C = re(), R = D().textColor, V = Te(), T = a ? ((z = e.poll.branding) == null ? void 0 : z.images.mobileLogo) || ((k = e.poll.branding) == null ? void 0 : k.images.mainLogo) || "" : ((te = e.poll.branding) == null ? void 0 : te.images.mainLogo) || "", y = mn({
2569
2569
  spacingScale: V,
2570
2570
  borderRadius: C,
2571
2571
  fontFamilyPrimary: P,
@@ -2589,11 +2589,11 @@ const Kt = (e, n) => {
2589
2589
  }
2590
2590
  ) : null;
2591
2591
  return /* @__PURE__ */ t(
2592
- Rt,
2592
+ Ft,
2593
2593
  {
2594
2594
  entity: e.poll,
2595
2595
  headline: f("poll.headline"),
2596
- finalImage: c,
2596
+ finalImage: r,
2597
2597
  brandingContent: $,
2598
2598
  isTabulated: !1,
2599
2599
  alwaysShowImage: !0,
@@ -2625,8 +2625,8 @@ const Kt = (e, n) => {
2625
2625
  {
2626
2626
  options: e.poll.options,
2627
2627
  selectedOptions: ((_ = e.userVote) == null ? void 0 : _.optionIds) || [],
2628
- optionsLayout: u ?? "twoByTwo",
2629
- optionsImages: m,
2628
+ optionsLayout: m ?? "twoByTwo",
2629
+ optionsImages: u,
2630
2630
  brandingColors: ((M = e.poll.branding) == null ? void 0 : M.colors) || null
2631
2631
  }
2632
2632
  )
@@ -2685,7 +2685,7 @@ const Kt = (e, n) => {
2685
2685
  );
2686
2686
  };
2687
2687
  return /* @__PURE__ */ t(ee, { brandingBorderColor: (d == null ? void 0 : d.borderColor) || null, children: N() });
2688
- }, un = (e) => ({
2688
+ }, fn = (e) => ({
2689
2689
  // Main content wrapper
2690
2690
  mainContentWrapper: {
2691
2691
  display: "flex",
@@ -2859,16 +2859,16 @@ const Kt = (e, n) => {
2859
2859
  letterSpacing: "0.46px",
2860
2860
  textTransform: "uppercase"
2861
2861
  }
2862
- }), fn = (e) => {
2863
- const n = ve(), a = Te(), { t: l } = O(), o = Me(), r = gt(
2862
+ }), xn = (e) => {
2863
+ const n = ve(), a = Te(), { t: l } = O(), o = Me(), c = mt(
2864
2864
  G.OVERLAY
2865
- ), { optionsLayout: c } = Fe(Be), { brandingImage: m, brandingColors: f, brandingLogo: u } = Qe(e.poll.branding), d = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : Q() ? Ve : ze, s = m || Ue(
2865
+ ), { optionsLayout: r } = Fe(Be), { brandingImage: u, brandingColors: f, brandingLogo: m } = Qe(e.poll.branding), d = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : Q() ? Ve : ze, s = u || Ue(
2866
2866
  {
2867
2867
  images: e.poll.images,
2868
2868
  imagePlaceholder: d
2869
2869
  },
2870
2870
  G.OVERLAY
2871
- ), h = Ft(s), A = Oe(e.poll.options), P = (f == null ? void 0 : f.secondaryColor) || n.colorSchemes.dark.textSecondary, S = n.colorSchemes.dark.secondaryContainer, b = n.colorSchemes.dark.textPrimary, B = n.customFontFamily.light.primary, C = n.customRadius.light.md, R = n.customRadius.light.xl, V = (f == null ? void 0 : f.backgroundColor) || n.colorSchemes.dark.surfaceVariant, T = un({
2871
+ ), h = Bt(s), A = Oe(e.poll.options), P = (f == null ? void 0 : f.secondaryColor) || n.colorSchemes.dark.textSecondary, S = n.colorSchemes.dark.secondaryContainer, b = n.colorSchemes.dark.textPrimary, B = n.customFontFamily.light.primary, C = n.customRadius.light.md, R = n.customRadius.light.xl, V = (f == null ? void 0 : f.backgroundColor) || n.colorSchemes.dark.surfaceVariant, T = fn({
2872
2872
  spacingScale: a,
2873
2873
  secondaryColor: P,
2874
2874
  secondaryContainer: S,
@@ -2897,7 +2897,7 @@ const Kt = (e, n) => {
2897
2897
  {
2898
2898
  options: e.poll.options,
2899
2899
  selectedOptions: ((N = e.userVote) == null ? void 0 : N.optionIds) || [],
2900
- optionsLayout: o ? "column" : c ?? "row",
2900
+ optionsLayout: o ? "column" : r ?? "row",
2901
2901
  optionsImages: A,
2902
2902
  brandingColors: ((g = e.poll.branding) == null ? void 0 : g.colors) || null
2903
2903
  }
@@ -2922,7 +2922,7 @@ const Kt = (e, n) => {
2922
2922
  /* @__PURE__ */ t(
2923
2923
  W,
2924
2924
  {
2925
- brandingLogo: u,
2925
+ brandingLogo: m,
2926
2926
  textColor: n.colorSchemes.dark.textColor,
2927
2927
  label: ((z = e.poll.labels) == null ? void 0 : z.sponsor) || null
2928
2928
  }
@@ -2930,26 +2930,26 @@ const Kt = (e, n) => {
2930
2930
  ] });
2931
2931
  };
2932
2932
  return /* @__PURE__ */ t(
2933
- Bt,
2933
+ Vt,
2934
2934
  {
2935
2935
  entity: e.poll,
2936
2936
  headline: l("poll.headline"),
2937
2937
  backgroundImage: h,
2938
- imageBackgroundGradient: r,
2938
+ imageBackgroundGradient: c,
2939
2939
  rulesDisplay: e.rulesDisplay,
2940
2940
  children: y()
2941
2941
  }
2942
2942
  );
2943
- }, xn = () => {
2943
+ }, yn = () => {
2944
2944
  const { t: e } = O();
2945
2945
  return /* @__PURE__ */ t(ee, { brandingBorderColor: null, children: /* @__PURE__ */ t(
2946
- Vt,
2946
+ zt,
2947
2947
  {
2948
2948
  notFoundTitle: e("poll.pollNotFound"),
2949
2949
  notFoundMessage: e("poll.pollNotFoundDescription")
2950
2950
  }
2951
2951
  ) });
2952
- }, yn = ({
2952
+ }, hn = ({
2953
2953
  poll: e,
2954
2954
  template: n,
2955
2955
  imagePosition: a,
@@ -2957,9 +2957,9 @@ const Kt = (e, n) => {
2957
2957
  rulesDisplay: o
2958
2958
  }) => {
2959
2959
  var s;
2960
- const { t: r } = O(), c = Q(), m = ((s = e.branding) == null ? void 0 : s.colors) || null, { brandingLogo: f } = Qe(
2960
+ const { t: c } = O(), r = Q(), u = ((s = e.branding) == null ? void 0 : s.colors) || null, { brandingLogo: f } = Qe(
2961
2961
  e.branding || null
2962
- ), u = (h) => {
2962
+ ), m = (h) => {
2963
2963
  var A;
2964
2964
  return /* @__PURE__ */ t(
2965
2965
  W,
@@ -2971,40 +2971,40 @@ const Kt = (e, n) => {
2971
2971
  );
2972
2972
  }, d = {
2973
2973
  entity: e,
2974
- headline: r("poll.headline"),
2974
+ headline: c("poll.headline"),
2975
2975
  tryAgainButtonText: "",
2976
2976
  isApiError: !1,
2977
2977
  alertVariant: "neutral",
2978
- customAlertTitle: r("poll.gameNotAvailable"),
2979
- customAlertMessage: r("poll.gameNotAvailableDescription"),
2980
- renderPresentedBy: u,
2978
+ customAlertTitle: c("poll.gameNotAvailable"),
2979
+ customAlertMessage: c("poll.gameNotAvailableDescription"),
2980
+ renderPresentedBy: m,
2981
2981
  rulesDisplay: o
2982
2982
  };
2983
2983
  return n === G.OVERLAY ? /* @__PURE__ */ t(
2984
- ut,
2984
+ ft,
2985
2985
  {
2986
2986
  ...d,
2987
- defaultImagePlaceholderUrl: l || (c ? Ve : ze)
2987
+ defaultImagePlaceholderUrl: l || (r ? Ve : ze)
2988
2988
  }
2989
- ) : n === G.SPLIT ? /* @__PURE__ */ t(ee, { brandingBorderColor: (m == null ? void 0 : m.borderColor) || null, children: /* @__PURE__ */ t(
2990
- ft,
2989
+ ) : n === G.SPLIT ? /* @__PURE__ */ t(ee, { brandingBorderColor: (u == null ? void 0 : u.borderColor) || null, children: /* @__PURE__ */ t(
2990
+ xt,
2991
2991
  {
2992
2992
  ...d,
2993
2993
  defaultImagePlaceholderUrl: l
2994
2994
  }
2995
- ) }) : /* @__PURE__ */ t(ee, { brandingBorderColor: (m == null ? void 0 : m.borderColor) || null, children: /* @__PURE__ */ t(
2996
- xt,
2995
+ ) }) : /* @__PURE__ */ t(ee, { brandingBorderColor: (u == null ? void 0 : u.borderColor) || null, children: /* @__PURE__ */ t(
2996
+ yt,
2997
2997
  {
2998
2998
  ...d,
2999
2999
  imagePosition: a || "left",
3000
3000
  defaultImagePlaceholderUrl: l
3001
3001
  }
3002
3002
  ) });
3003
- }, hn = (e) => {
3004
- var o, r, c, m;
3005
- const n = ((o = e.poll.branding) == null ? void 0 : o.colors) || null, a = Q() ? ((r = e.poll.branding) == null ? void 0 : r.images.mobileLogo) || ((c = e.poll.branding) == null ? void 0 : c.images.mainLogo) || "" : ((m = e.poll.branding) == null ? void 0 : m.images.mainLogo) || "", { t: l } = O();
3003
+ }, bn = (e) => {
3004
+ var o, c, r, u;
3005
+ const n = ((o = e.poll.branding) == null ? void 0 : o.colors) || null, a = Q() ? ((c = e.poll.branding) == null ? void 0 : c.images.mobileLogo) || ((r = e.poll.branding) == null ? void 0 : r.images.mainLogo) || "" : ((u = e.poll.branding) == null ? void 0 : u.images.mainLogo) || "", { t: l } = O();
3006
3006
  return /* @__PURE__ */ t(ee, { brandingBorderColor: (n == null ? void 0 : n.borderColor) || null, children: /* @__PURE__ */ t(
3007
- xt,
3007
+ yt,
3008
3008
  {
3009
3009
  entity: e.poll,
3010
3010
  headline: l("poll.headline"),
@@ -3016,23 +3016,23 @@ const Kt = (e, n) => {
3016
3016
  toggleTryAgain: e.toggleTryAgain,
3017
3017
  rulesDisplay: e.rulesDisplay,
3018
3018
  renderPresentedBy: (f) => {
3019
- var u;
3019
+ var m;
3020
3020
  return /* @__PURE__ */ t(
3021
3021
  W,
3022
3022
  {
3023
3023
  brandingLogo: a,
3024
3024
  textColor: f,
3025
- label: ((u = e.poll.labels) == null ? void 0 : u.sponsor) || null
3025
+ label: ((m = e.poll.labels) == null ? void 0 : m.sponsor) || null
3026
3026
  }
3027
3027
  );
3028
3028
  }
3029
3029
  }
3030
3030
  ) });
3031
- }, bn = (e) => {
3032
- var r, c, m, f;
3033
- const n = Q(), { t: a } = O(), l = ((r = e.poll.branding) == null ? void 0 : r.colors) || null, o = n ? ((c = e.poll.branding) == null ? void 0 : c.images.mobileLogo) || ((m = e.poll.branding) == null ? void 0 : m.images.mainLogo) || "" : ((f = e.poll.branding) == null ? void 0 : f.images.mainLogo) || "";
3031
+ }, Cn = (e) => {
3032
+ var c, r, u, f;
3033
+ const n = Q(), { t: a } = O(), l = ((c = e.poll.branding) == null ? void 0 : c.colors) || null, o = n ? ((r = e.poll.branding) == null ? void 0 : r.images.mobileLogo) || ((u = e.poll.branding) == null ? void 0 : u.images.mainLogo) || "" : ((f = e.poll.branding) == null ? void 0 : f.images.mainLogo) || "";
3034
3034
  return console.log("defaultImagePlaceholderUrl", e.defaultImagePlaceholderUrl), /* @__PURE__ */ t(ee, { brandingBorderColor: (l == null ? void 0 : l.borderColor) || null, children: /* @__PURE__ */ t(
3035
- ft,
3035
+ xt,
3036
3036
  {
3037
3037
  entity: e.poll,
3038
3038
  headline: a("poll.headline"),
@@ -3042,25 +3042,25 @@ const Kt = (e, n) => {
3042
3042
  apiErrorMessage: e.apiErrorMessage,
3043
3043
  toggleTryAgain: e.toggleTryAgain,
3044
3044
  rulesDisplay: e.rulesDisplay,
3045
- renderPresentedBy: (u) => {
3045
+ renderPresentedBy: (m) => {
3046
3046
  var d;
3047
3047
  return /* @__PURE__ */ t(
3048
3048
  W,
3049
3049
  {
3050
3050
  brandingLogo: o,
3051
- textColor: u,
3051
+ textColor: m,
3052
3052
  label: ((d = e.poll.labels) == null ? void 0 : d.sponsor) || null
3053
3053
  }
3054
3054
  );
3055
3055
  }
3056
3056
  }
3057
3057
  ) });
3058
- }, Cn = (e) => {
3058
+ }, Sn = (e) => {
3059
3059
  const { t: n } = O(), a = Q(), l = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : a ? Ve : ze, { brandingLogo: o } = Qe(
3060
3060
  e.poll.branding || null
3061
3061
  );
3062
3062
  return /* @__PURE__ */ t(
3063
- ut,
3063
+ ft,
3064
3064
  {
3065
3065
  entity: e.poll,
3066
3066
  headline: n("poll.headline"),
@@ -3070,23 +3070,23 @@ const Kt = (e, n) => {
3070
3070
  apiErrorMessage: e.apiErrorMessage,
3071
3071
  toggleTryAgain: e.toggleTryAgain,
3072
3072
  rulesDisplay: e.rulesDisplay,
3073
- renderPresentedBy: (r) => {
3074
- var c;
3073
+ renderPresentedBy: (c) => {
3074
+ var r;
3075
3075
  return /* @__PURE__ */ t(
3076
3076
  W,
3077
3077
  {
3078
3078
  brandingLogo: o,
3079
- textColor: r,
3080
- label: ((c = e.poll.labels) == null ? void 0 : c.sponsor) || null
3079
+ textColor: c,
3080
+ label: ((r = e.poll.labels) == null ? void 0 : r.sponsor) || null
3081
3081
  }
3082
3082
  );
3083
3083
  }
3084
3084
  }
3085
3085
  );
3086
- }, Sn = (e) => {
3086
+ }, In = (e) => {
3087
3087
  const { t: n } = O();
3088
3088
  return /* @__PURE__ */ t(
3089
- yt,
3089
+ ht,
3090
3090
  {
3091
3091
  entity: e.poll,
3092
3092
  headline: n("poll.headline"),
@@ -3102,10 +3102,10 @@ const Kt = (e, n) => {
3102
3102
  consents: e.consents
3103
3103
  }
3104
3104
  );
3105
- }, In = (e) => {
3105
+ }, Pn = (e) => {
3106
3106
  const { t: n } = O();
3107
3107
  return /* @__PURE__ */ t(
3108
- ht,
3108
+ bt,
3109
3109
  {
3110
3110
  entity: e.poll,
3111
3111
  headline: n("poll.headline"),
@@ -3120,10 +3120,10 @@ const Kt = (e, n) => {
3120
3120
  consents: e.consents
3121
3121
  }
3122
3122
  );
3123
- }, Pn = (e) => {
3123
+ }, Tn = (e) => {
3124
3124
  const { t: n } = O();
3125
3125
  return /* @__PURE__ */ t(
3126
- bt,
3126
+ Ct,
3127
3127
  {
3128
3128
  entity: e.poll,
3129
3129
  headline: n("poll.headline"),
@@ -3137,11 +3137,11 @@ const Kt = (e, n) => {
3137
3137
  consents: e.consents
3138
3138
  }
3139
3139
  );
3140
- }, Tn = (e) => {
3141
- var o, r, c;
3140
+ }, An = (e) => {
3141
+ var o, c, r;
3142
3142
  const { t: n } = O(), a = ((o = e.poll.branding) == null ? void 0 : o.colors) || null, l = (a == null ? void 0 : a.primaryColor) || D().palette.primary.plainColor;
3143
3143
  return /* @__PURE__ */ t(
3144
- yt,
3144
+ ht,
3145
3145
  {
3146
3146
  entity: e.poll,
3147
3147
  headline: n("poll.headline"),
@@ -3158,7 +3158,7 @@ const Kt = (e, n) => {
3158
3158
  {
3159
3159
  consents: e.consents,
3160
3160
  primaryColor: l,
3161
- brandingUrls: (r = e.poll.branding) == null ? void 0 : r.urls,
3161
+ brandingUrls: (c = e.poll.branding) == null ? void 0 : c.urls,
3162
3162
  align: "center"
3163
3163
  }
3164
3164
  ),
@@ -3166,7 +3166,7 @@ const Kt = (e, n) => {
3166
3166
  _e,
3167
3167
  {
3168
3168
  onClick: e.onSubmit,
3169
- label: ((c = e.consents.labels) == null ? void 0 : c.ctaLabel) || n("poll.buttons.vote"),
3169
+ label: ((r = e.consents.labels) == null ? void 0 : r.ctaLabel) || n("poll.buttons.vote"),
3170
3170
  isSubmitting: e.isSubmitting,
3171
3171
  primaryColor: l,
3172
3172
  showArrow: !1
@@ -3174,11 +3174,11 @@ const Kt = (e, n) => {
3174
3174
  )
3175
3175
  }
3176
3176
  );
3177
- }, An = (e) => {
3178
- var o, r;
3177
+ }, vn = (e) => {
3178
+ var o, c;
3179
3179
  const { t: n } = O(), a = ((o = e.poll.branding) == null ? void 0 : o.colors) || null, l = (a == null ? void 0 : a.primaryColor) || D().palette.primary.plainColor;
3180
3180
  return /* @__PURE__ */ t(
3181
- ht,
3181
+ bt,
3182
3182
  {
3183
3183
  entity: e.poll,
3184
3184
  headline: n("poll.headline"),
@@ -3194,7 +3194,7 @@ const Kt = (e, n) => {
3194
3194
  {
3195
3195
  consents: e.consents,
3196
3196
  primaryColor: l,
3197
- brandingUrls: (r = e.poll.branding) == null ? void 0 : r.urls,
3197
+ brandingUrls: (c = e.poll.branding) == null ? void 0 : c.urls,
3198
3198
  onSubmit: e.onSubmit,
3199
3199
  isSubmitting: e.isSubmitting,
3200
3200
  ctaLabel: n("poll.buttons.vote"),
@@ -3204,11 +3204,11 @@ const Kt = (e, n) => {
3204
3204
  )
3205
3205
  }
3206
3206
  );
3207
- }, vn = (e) => {
3208
- var r, c, m;
3209
- const { t: n } = O(), a = ve(), l = ((r = e.poll.branding) == null ? void 0 : r.colors) || null, o = (l == null ? void 0 : l.primaryColor) || a.colorSchemes.dark.palette.primary.plainColor;
3207
+ }, Ln = (e) => {
3208
+ var c, r, u;
3209
+ const { t: n } = O(), a = ve(), l = ((c = e.poll.branding) == null ? void 0 : c.colors) || null, o = (l == null ? void 0 : l.primaryColor) || a.colorSchemes.dark.palette.primary.plainColor;
3210
3210
  return /* @__PURE__ */ t(
3211
- bt,
3211
+ Ct,
3212
3212
  {
3213
3213
  entity: e.poll,
3214
3214
  headline: n("poll.headline"),
@@ -3224,14 +3224,14 @@ const Kt = (e, n) => {
3224
3224
  consents: e.consents,
3225
3225
  primaryColor: o,
3226
3226
  textColor: (l == null ? void 0 : l.contentColor) || a.colorSchemes.dark.textColor,
3227
- brandingUrls: (c = e.poll.branding) == null ? void 0 : c.urls
3227
+ brandingUrls: (r = e.poll.branding) == null ? void 0 : r.urls
3228
3228
  }
3229
3229
  ),
3230
3230
  footerAction: /* @__PURE__ */ t(
3231
3231
  _e,
3232
3232
  {
3233
3233
  onClick: e.onSubmit,
3234
- label: ((m = e.consents.labels) == null ? void 0 : m.ctaLabel) || n("poll.buttons.vote"),
3234
+ label: ((u = e.consents.labels) == null ? void 0 : u.ctaLabel) || n("poll.buttons.vote"),
3235
3235
  isSubmitting: e.isSubmitting,
3236
3236
  primaryColor: o,
3237
3237
  showArrow: !1
@@ -3243,9 +3243,9 @@ const Kt = (e, n) => {
3243
3243
  function we(e) {
3244
3244
  return e.template === G.STANDARD;
3245
3245
  }
3246
- const Ln = (e) => {
3246
+ const kn = (e) => {
3247
3247
  var it, at;
3248
- const [n, a] = U([]), [l, o] = U(!1), [r, c] = U(!1), [m, f] = U(!1), [u, d] = U(!1), [s, h] = U(!1), [A, P] = U(!1), [S, b] = U(!1), [B, C] = U(!1), [R, V] = U(!1), [T, y] = U(!1), N = Mt(!1), { poll: g, setPoll: z } = Kt(e.entityId, e.sdk), {
3248
+ const [n, a] = U([]), [l, o] = U(!1), [c, r] = U(!1), [u, f] = U(!1), [m, d] = U(!1), [s, h] = U(!1), [A, P] = U(!1), [S, b] = U(!1), [B, C] = U(!1), [R, V] = U(!1), [T, y] = U(!1), N = Ht(!1), { poll: g, setPoll: z } = Jt(e.entityId, e.sdk), {
3249
3249
  myVote: k,
3250
3250
  setMyVote: te,
3251
3251
  isUnauthorized: $,
@@ -3254,10 +3254,10 @@ const Ln = (e) => {
3254
3254
  setIsApiError: M,
3255
3255
  setApiErrorMessage: Z,
3256
3256
  setIsUnauthorized: ce
3257
- } = Jt(
3257
+ } = Xt(
3258
3258
  e.entityId,
3259
3259
  e.sdk,
3260
- m,
3260
+ u,
3261
3261
  // A REGISTERED poll now renders for anonymous users, so its 401 is expected.
3262
3262
  (g == null ? void 0 : g.authRequirement) === "REGISTERED" && !e.userIsLoggedIn,
3263
3263
  !!e.userIsLoggedIn
@@ -3265,18 +3265,18 @@ const Ln = (e) => {
3265
3265
  translations: ne,
3266
3266
  loaded: xe,
3267
3267
  loadTranslations: se
3268
- } = pt(g, e.sdk), le = !!e.aggregateTranslatedVotes && K && !xe;
3268
+ } = en(g, e.sdk), le = !!e.aggregateTranslatedVotes && K && !xe;
3269
3269
  ke(() => {
3270
3270
  le && se();
3271
3271
  }, [le]);
3272
- const de = Ke(() => !g || !ne.length ? null : Zt(g.options, ne), [g, ne]), p = Ke(() => g ? zt(g.related) : null, [g]), {
3272
+ const de = Ke(() => !g || !ne.length ? null : pt(g.options, ne), [g, ne]), p = Ke(() => g ? Ut(g.related) : null, [g]), {
3273
3273
  loading: oe,
3274
3274
  pending: H,
3275
3275
  checked: ye,
3276
3276
  setChecked: he,
3277
3277
  allRequiredChecked: ge,
3278
3278
  submit: me
3279
- } = Ut({
3279
+ } = Et({
3280
3280
  sdk: e.sdk,
3281
3281
  consents: (it = e.consents) == null ? void 0 : it.items,
3282
3282
  entityId: e.entityId,
@@ -3285,7 +3285,7 @@ const Ln = (e) => {
3285
3285
  he(I), y(!1);
3286
3286
  };
3287
3287
  if (ke(() => {
3288
- Et(e.language || "en");
3288
+ Wt(e.language || "en");
3289
3289
  }, [e.language]), ke(() => {
3290
3290
  var F;
3291
3291
  if (!g || oe || N.current) return;
@@ -3295,12 +3295,12 @@ const Ln = (e) => {
3295
3295
  var I, F;
3296
3296
  !l || !(k != null && k.id) || (F = (I = e.callbacks) == null ? void 0 : I.onFinish) == null || F.call(I, k);
3297
3297
  }, [l]), !g || !k || oe || le)
3298
- return /* @__PURE__ */ t(Wt, { my: 20 });
3298
+ return /* @__PURE__ */ t(Ot, { my: 20 });
3299
3299
  if (!g.id)
3300
- return /* @__PURE__ */ t(xn, {});
3300
+ return /* @__PURE__ */ t(yn, {});
3301
3301
  if (g.status !== "ACTIVE")
3302
3302
  return /* @__PURE__ */ t(
3303
- yn,
3303
+ hn,
3304
3304
  {
3305
3305
  poll: g,
3306
3306
  template: e.template,
@@ -3310,11 +3310,11 @@ const Ln = (e) => {
3310
3310
  }
3311
3311
  );
3312
3312
  const ie = g.authRequirement === "REGISTERED" && !e.userIsLoggedIn, Ce = () => {
3313
- M(!1), Z(""), ce(!1), f(!m);
3313
+ M(!1), Z(""), ce(!1), f(!u);
3314
3314
  };
3315
3315
  if ($ || w)
3316
3316
  return we(e) ? /* @__PURE__ */ t(
3317
- hn,
3317
+ bn,
3318
3318
  {
3319
3319
  poll: g,
3320
3320
  imagePosition: e.imagePosition,
@@ -3325,7 +3325,7 @@ const Ln = (e) => {
3325
3325
  rulesDisplay: e.rulesDisplay
3326
3326
  }
3327
3327
  ) : e.template === G.OVERLAY ? /* @__PURE__ */ t(
3328
- Cn,
3328
+ Sn,
3329
3329
  {
3330
3330
  poll: g,
3331
3331
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
@@ -3335,7 +3335,7 @@ const Ln = (e) => {
3335
3335
  rulesDisplay: e.rulesDisplay
3336
3336
  }
3337
3337
  ) : /* @__PURE__ */ t(
3338
- bn,
3338
+ Cn,
3339
3339
  {
3340
3340
  poll: g,
3341
3341
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
@@ -3365,7 +3365,7 @@ const Ln = (e) => {
3365
3365
  await Se();
3366
3366
  }, ae = async () => {
3367
3367
  if (j.length > 0) {
3368
- if (u) return;
3368
+ if (m) return;
3369
3369
  if (!ge(j)) {
3370
3370
  y(!0);
3371
3371
  return;
@@ -3380,7 +3380,7 @@ const Ln = (e) => {
3380
3380
  }
3381
3381
  d(!0), await me(Y), V(!0), await Se(), d(!1), C(!1);
3382
3382
  }, Se = async () => {
3383
- c(!0);
3383
+ r(!0);
3384
3384
  try {
3385
3385
  const I = await e.sdk.voting.voteForPoll(
3386
3386
  e.entityId,
@@ -3392,10 +3392,10 @@ const Ln = (e) => {
3392
3392
  } : E), F.totalVotes = (g.totalVotes || 0) + n.length, e.aggregateTranslatedVotes && await se(), z(F), te(I), o(!0);
3393
3393
  } catch (I) {
3394
3394
  console.error("[poll-vote] vote failed", I);
3395
- const { code: F, message: E } = Ot(I, e.sdk);
3395
+ const { code: F, message: E } = qt(I, e.sdk);
3396
3396
  F === 401 || F === 403 ? ce(!0) : (M(!0), Z(E));
3397
3397
  } finally {
3398
- c(!1);
3398
+ r(!1);
3399
3399
  }
3400
3400
  }, Ie = async () => {
3401
3401
  h(!0), d(!0), await Se(), d(!1), P(!1);
@@ -3410,10 +3410,10 @@ const Ln = (e) => {
3410
3410
  labels: (F = e.consents) == null ? void 0 : F.labels,
3411
3411
  showError: T
3412
3412
  };
3413
- }, Ct = () => {
3413
+ }, St = () => {
3414
3414
  const I = ot(j), F = q ? H : void 0, E = Y.length > 0 && !R;
3415
3415
  return e.template === G.OVERLAY ? /* @__PURE__ */ t(
3416
- tn,
3416
+ nn,
3417
3417
  {
3418
3418
  sdk: e.sdk,
3419
3419
  leads: e.leads,
@@ -3424,19 +3424,19 @@ const Ln = (e) => {
3424
3424
  voteForPoll: Ae,
3425
3425
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3426
3426
  optionChoices: ue,
3427
- isVoting: r,
3427
+ isVoting: c,
3428
3428
  rulesDisplay: e.rulesDisplay,
3429
3429
  consents: I,
3430
3430
  leadConsents: F,
3431
3431
  applyConsentGate: S,
3432
- isSubmitting: u,
3432
+ isSubmitting: m,
3433
3433
  hasAfterConsents: E,
3434
3434
  startVoting: ae,
3435
3435
  signInRequired: ie,
3436
3436
  signInCTA: e.signInCTA
3437
3437
  }
3438
3438
  ) : we(e) ? /* @__PURE__ */ t(
3439
- ln,
3439
+ on,
3440
3440
  {
3441
3441
  sdk: e.sdk,
3442
3442
  leads: e.leads,
@@ -3448,19 +3448,19 @@ const Ln = (e) => {
3448
3448
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3449
3449
  imagePosition: e.imagePosition,
3450
3450
  optionChoices: ue,
3451
- isVoting: r,
3451
+ isVoting: c,
3452
3452
  rulesDisplay: e.rulesDisplay,
3453
3453
  consents: I,
3454
3454
  leadConsents: F,
3455
3455
  applyConsentGate: S,
3456
- isSubmitting: u,
3456
+ isSubmitting: m,
3457
3457
  hasAfterConsents: E,
3458
3458
  startVoting: ae,
3459
3459
  signInRequired: ie,
3460
3460
  signInCTA: e.signInCTA
3461
3461
  }
3462
3462
  ) : /* @__PURE__ */ t(
3463
- an,
3463
+ rn,
3464
3464
  {
3465
3465
  sdk: e.sdk,
3466
3466
  leads: e.leads,
@@ -3471,12 +3471,12 @@ const Ln = (e) => {
3471
3471
  voteForPoll: Ae,
3472
3472
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3473
3473
  optionChoices: ue,
3474
- isVoting: r,
3474
+ isVoting: c,
3475
3475
  rulesDisplay: e.rulesDisplay,
3476
3476
  consents: I,
3477
3477
  leadConsents: F,
3478
3478
  applyConsentGate: S,
3479
- isSubmitting: u,
3479
+ isSubmitting: m,
3480
3480
  hasAfterConsents: E,
3481
3481
  startVoting: ae,
3482
3482
  signInRequired: ie,
@@ -3490,32 +3490,32 @@ const Ln = (e) => {
3490
3490
  sdk: e.sdk,
3491
3491
  consents: ot(Y),
3492
3492
  onSubmit: Le,
3493
- isSubmitting: u,
3493
+ isSubmitting: m,
3494
3494
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3495
3495
  rulesDisplay: e.rulesDisplay
3496
3496
  };
3497
- return e.template === G.OVERLAY ? /* @__PURE__ */ t(vn, { ...I }) : we(e) ? /* @__PURE__ */ t(
3498
- Tn,
3497
+ return e.template === G.OVERLAY ? /* @__PURE__ */ t(Ln, { ...I }) : we(e) ? /* @__PURE__ */ t(
3498
+ An,
3499
3499
  {
3500
3500
  ...I,
3501
3501
  imagePosition: e.imagePosition
3502
3502
  }
3503
- ) : /* @__PURE__ */ t(An, { ...I });
3503
+ ) : /* @__PURE__ */ t(vn, { ...I });
3504
3504
  }
3505
3505
  if (A)
3506
3506
  return e.template === G.OVERLAY ? /* @__PURE__ */ t(
3507
- Pn,
3507
+ Tn,
3508
3508
  {
3509
3509
  poll: g,
3510
3510
  sdk: e.sdk,
3511
3511
  leads: e.leads,
3512
3512
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3513
3513
  onLeadSubmitted: Ie,
3514
- isSubmitting: u,
3514
+ isSubmitting: m,
3515
3515
  consents: q ? H : void 0
3516
3516
  }
3517
3517
  ) : we(e) ? /* @__PURE__ */ t(
3518
- Sn,
3518
+ In,
3519
3519
  {
3520
3520
  poll: g,
3521
3521
  sdk: e.sdk,
@@ -3523,18 +3523,18 @@ const Ln = (e) => {
3523
3523
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3524
3524
  imagePosition: e.imagePosition,
3525
3525
  onLeadSubmitted: Ie,
3526
- isSubmitting: u,
3526
+ isSubmitting: m,
3527
3527
  consents: q ? H : void 0
3528
3528
  }
3529
3529
  ) : /* @__PURE__ */ t(
3530
- In,
3530
+ Pn,
3531
3531
  {
3532
3532
  poll: g,
3533
3533
  sdk: e.sdk,
3534
3534
  leads: e.leads,
3535
3535
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
3536
3536
  onLeadSubmitted: Ie,
3537
- isSubmitting: u,
3537
+ isSubmitting: m,
3538
3538
  consents: q ? H : void 0
3539
3539
  }
3540
3540
  );
@@ -3554,7 +3554,7 @@ const Ln = (e) => {
3554
3554
  }
3555
3555
  ) }) : void 0;
3556
3556
  return e.template === G.OVERLAY ? /* @__PURE__ */ t(
3557
- fn,
3557
+ xn,
3558
3558
  {
3559
3559
  userVote: k,
3560
3560
  poll: I,
@@ -3569,7 +3569,7 @@ const Ln = (e) => {
3569
3569
  chanceGameContent: F
3570
3570
  }
3571
3571
  ) : we(e) ? /* @__PURE__ */ t(
3572
- dn,
3572
+ gn,
3573
3573
  {
3574
3574
  imagePosition: e.imagePosition || "left",
3575
3575
  userVote: k,
@@ -3585,7 +3585,7 @@ const Ln = (e) => {
3585
3585
  chanceGameContent: E
3586
3586
  }
3587
3587
  ) : /* @__PURE__ */ t(
3588
- mn,
3588
+ un,
3589
3589
  {
3590
3590
  userVote: k,
3591
3591
  poll: I,
@@ -3601,8 +3601,8 @@ const Ln = (e) => {
3601
3601
  }
3602
3602
  );
3603
3603
  }
3604
- return Ct();
3605
- }, qn = (e) => /* @__PURE__ */ t(qt, { packageName: "poll-vote", ...e, children: /* @__PURE__ */ t(Ln, { ...e }) });
3604
+ return St();
3605
+ }, jn = (e) => /* @__PURE__ */ t(jt, { packageName: "poll-vote", ...e, children: /* @__PURE__ */ t(kn, { ...e }) });
3606
3606
  export {
3607
- qn as M
3607
+ jn as M
3608
3608
  };