fansunited-frontend-components 0.0.87 → 0.0.88

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 (119) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +11 -11
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +7 -7
  5. package/CompetitionStatistics.js +14 -7
  6. package/CompetitorCard.js +17 -10
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +1 -1
  9. package/EventCard.js +17 -17
  10. package/EventGamePlay.js +1 -1
  11. package/Leaderboard.js +14 -14
  12. package/List.js +167 -165
  13. package/MatchQuizPlay.js +1 -1
  14. package/PersonalityQuizPlay.js +1 -1
  15. package/PickThePair.js +12 -12
  16. package/PlayerOfTheMatch.js +22 -22
  17. package/PollVote.js +1 -1
  18. package/Predictor.js +1 -1
  19. package/README.md +2 -1
  20. package/Standings.js +11 -11
  21. package/TopX.js +29 -29
  22. package/chunks/{AccessTime-DnYmc2y3.js → AccessTime-CuWfXUeM.js} +1 -1
  23. package/chunks/{AlertMessage-DaxNsecq.js → AlertMessage-DxXyNTWd.js} +6 -6
  24. package/chunks/{Avatar-CmxmG17Y.js → Avatar-WC0Nox4g.js} +3 -3
  25. package/chunks/{Button-ClWJ5CUf.js → Button-BmPR6-I9.js} +3 -3
  26. package/chunks/{Card-BAIFE-g5.js → Card-DRl1b9n_.js} +3 -3
  27. package/chunks/{CardActions-UK4_wiGW.js → CardActions-9g2U8usD.js} +6 -6
  28. package/chunks/{CardContent-BKLKsqNJ.js → CardContent-CILSFQ-A.js} +2 -2
  29. package/chunks/{ChanceGameEmbedVariant-BkX-XQ-f.js → ChanceGameEmbedVariant-PncY3mYO.js} +10 -10
  30. package/chunks/{CheckCircle-DPspFBOU.js → CheckCircle-By7XCvJ2.js} +1 -1
  31. package/chunks/{Chip-06eY-2lp.js → Chip-D225drt5.js} +4 -4
  32. package/chunks/{Close-DFwlCPON.js → Close-ClF9uvoW.js} +1 -1
  33. package/chunks/{Close-C04vOO5T.js → Close-QxmA6XR0.js} +1 -1
  34. package/chunks/{CollectLeadForm-CNl5gQZc.js → CollectLeadForm-CYum1DKG.js} +21 -21
  35. package/chunks/{ConsentsList-CccpD61h.js → ConsentsList-DEC5tW3P.js} +6 -6
  36. package/chunks/{DirectionScope-8YC2_4GO.js → DirectionScope-BmKg-88Y.js} +1 -1
  37. package/chunks/{Divider-DWIh5AWp.js → Divider-CnYUyYlx.js} +3 -3
  38. package/chunks/{Edit-CMe6gWEl.js → Edit-C_XLOc9W.js} +4 -4
  39. package/chunks/{EmojiEvents-CRgQHdIP.js → EmojiEvents-BN-SvaHx.js} +1 -1
  40. package/chunks/{FavoriteBorder-4LopuXjl.js → FavoriteBorder-phHpOpHG.js} +1 -1
  41. package/chunks/{FormControl-DVXYjXgr.js → FormControl-BMerupUP.js} +4 -4
  42. package/chunks/{FormLabel-D5Fg4BoV.js → FormLabel-Cz0vKTUi.js} +3 -3
  43. package/chunks/{GlobalStyles-Cu-OUtHY.js → GlobalStyles-D755dez5.js} +1 -1
  44. package/chunks/{InlineSpinner-BqP-sRnL.js → InlineSpinner-BOumaUyn.js} +2 -2
  45. package/chunks/{Input-BOvLXH0a.js → Input-yPt0NumQ.js} +4 -4
  46. package/chunks/{KeyboardArrowDown-BQz06NpG.js → KeyboardArrowDown-C2k46EFq.js} +1 -1
  47. package/chunks/{KeyboardArrowRight-CMArGhjp.js → KeyboardArrowRight-CKgIYtgj.js} +1 -1
  48. package/chunks/{Link-C73EMUDp.js → Link-CAQidih2.js} +3 -3
  49. package/chunks/{ListItemButton-6Dx_qKG9.js → ListItemButton-gR_CPzfB.js} +4 -4
  50. package/chunks/{ModalClose-DCM0NGvd.js → ModalClose-BarWj7JA.js} +6 -6
  51. package/chunks/{ModalDialog-CaSBYjVn.js → ModalDialog-DIwYrOma.js} +6 -6
  52. package/chunks/{NotFoundSkeleton-D34gqMWJ.js → NotFoundSkeleton-WUY_3P19.js} +2 -2
  53. package/chunks/{Notification-Q_rv7f9m.js → Notification-CSasJBC5.js} +7 -7
  54. package/chunks/{OverlayScoreStateSkeleton-k9CYtDkE.js → OverlayScoreStateSkeleton-VGKpjVsK.js} +4 -4
  55. package/chunks/{OverlayScoreStateWrapperSkeleton-B8wadyuJ.js → OverlayScoreStateWrapperSkeleton-DWUIj33o.js} +1 -1
  56. package/chunks/{OverlaySignInSkeleton-D_idxb5n.js → OverlaySignInSkeleton-DQA0KvBO.js} +4 -4
  57. package/chunks/{OverlaySkeleton-m-qkzhXB.js → OverlaySkeleton-DgQ8e8Pc.js} +9 -9
  58. package/chunks/{Person-utLXm1J4.js → Person-DTMqkckp.js} +1 -1
  59. package/chunks/{PersonOutline-lhMwfisr.js → PersonOutline-BUOBV3Xy.js} +1 -1
  60. package/chunks/{PickOneOfX-DRiLtqqV.js → PickOneOfX-D8WweXse.js} +3 -3
  61. package/chunks/{Popper-Bdn0wHi9.js → Popper-BekCbtlh.js} +3 -3
  62. package/chunks/{Portal-BEroYNyJ.js → Portal-CzOEM6Zn.js} +2 -2
  63. package/chunks/{Portal-BdRuZNR8.js → Portal-YBl0j_ES.js} +13 -13
  64. package/chunks/{Predictor-Bn2zkvlD.js → Predictor-zRy0zFXH.js} +5521 -5517
  65. package/chunks/{PrizeCard-nRBh9VU_.js → PrizeCard-hqjW4cf9.js} +3066 -1257
  66. package/chunks/{Search-B-Xqc3De.js → Search-QK3Ma4w0.js} +1 -1
  67. package/chunks/{Select-CmHfLRTg.js → Select-DLdZqnEh.js} +7 -7
  68. package/chunks/{Sheet-Q5izbz85.js → Sheet-fFvOeZA4.js} +3 -3
  69. package/chunks/{SignInCta-FBCz227A.js → SignInCta-Bb73mQ08.js} +3 -3
  70. package/chunks/{Spinner-wUVcNUtR.js → Spinner-GWmIiSdb.js} +2 -2
  71. package/chunks/{SportsSoccer-Dq3Azbu-.js → SportsSoccer-S_kMTEEv.js} +1 -1
  72. package/chunks/{Stack-CY7bQJ7u.js → Stack-CrrsFYri.js} +2 -2
  73. package/chunks/{StandardContentSkeleton-Bm_8xH6p.js → StandardContentSkeleton-CfhTWi-0.js} +1 -1
  74. package/chunks/{Table-Cew1z7pw.js → Table-b7uWAjvl.js} +2 -2
  75. package/chunks/{Tabs-DuqeCPIW.js → Tabs-DiM6ozNM.js} +5 -5
  76. package/chunks/{Textarea-Dwn6AF-Z.js → Textarea-C0JiMyvs.js} +3 -3
  77. package/chunks/{TimerOutlined-HGpj-FEQ.js → TimerOutlined-DM5eFOvZ.js} +1 -1
  78. package/chunks/{Tooltip-Boqkti8t.js → Tooltip-JvdfwwMd.js} +5 -5
  79. package/chunks/{Typography-DaXtC0md.js → Typography-CrE4Ll_X.js} +1 -1
  80. package/chunks/{WorkspacePremiumOutlined-OHYXXF58.js → WorkspacePremiumOutlined-B6nVIllg.js} +1 -1
  81. package/chunks/{colorInversionUtils-BPGyYARg.js → colorInversionUtils-D3587rh1.js} +1 -1
  82. package/chunks/{createSvgIcon-DaCJY2eU.js → createSvgIcon-Dv2JV5c-.js} +1 -1
  83. package/chunks/{createSvgIcon-mpOIuxRM.js → createSvgIcon-xDUbkW7t.js} +2 -2
  84. package/chunks/{dividerClasses-D8aWZR-L.js → dividerClasses-DADcSI1s.js} +1 -1
  85. package/chunks/{elementAcceptingRef-DhvOV1kD.js → elementAcceptingRef-DyU8841M.js} +1 -1
  86. package/chunks/{formLabelClasses-DrWVkeKS.js → formLabelClasses-DKYX1frW.js} +1 -1
  87. package/chunks/{helpers-CqPvv3gw.js → helpers-BWJ0cNY9.js} +33 -24
  88. package/chunks/index-BhmdGSzW.js +4 -0
  89. package/chunks/index-Bnvv4b84.js +4 -0
  90. package/chunks/index-Bw2Hn1g_.js +4 -0
  91. package/chunks/{index-iWn7Rdh9.js → index-BwjsmA37.js} +1 -1
  92. package/chunks/index-CwvcFge5.js +4 -0
  93. package/chunks/index-DFi89Xqa.js +4 -0
  94. package/chunks/index-DKMxtukO.js +4 -0
  95. package/chunks/index-Df6BjTpI.js +4 -0
  96. package/chunks/{main-DoPO3SkP.js → main-0BivGu_d.js} +381 -384
  97. package/chunks/{main-DgcqQ3D5.js → main-1_TuInwg.js} +22 -22
  98. package/chunks/{main-BOQ_5kqd.js → main-BN2BhQoI.js} +30 -30
  99. package/chunks/{main-C6bG2zD0.js → main-BRgS5sJD.js} +28 -28
  100. package/chunks/{main-DyQtrmbq.js → main-CqEGfJH6.js} +35 -35
  101. package/chunks/{main-CB6OELiE.js → main-D9AyE4A2.js} +991 -930
  102. package/chunks/{main-BRCfR5lM.js → main-D9TolULG.js} +19 -19
  103. package/chunks/{main-Dn5EUDh-.js → main-Dd-M6P_Y.js} +34 -34
  104. package/chunks/{useButton-4zMfywSn.js → useButton-DzeO8spM.js} +3 -3
  105. package/chunks/{useConsents-C9bnFES_.js → useConsents-C60gXeDR.js} +12 -12
  106. package/chunks/{useEventCallback-D-URXDH4.js → useEventCallback-r4tT5VOG.js} +1 -1
  107. package/chunks/{useForwardedInput-Bm2kgM0U.js → useForwardedInput-0l6nqWLW.js} +2 -2
  108. package/chunks/{useImageVariant-Bwh3HQQD.js → useImageVariant-CvLmKBAd.js} +1 -1
  109. package/chunks/{useParticipationDraft-ZkV4H6kC.js → useParticipationDraft-Cu0TWPY0.js} +6 -6
  110. package/chunks/{useSwitch-CIN7Th7t.js → useSwitch-Cvneix60.js} +3 -3
  111. package/index.js +4 -4
  112. package/package.json +2 -2
  113. package/chunks/index-BI_1_9JX.js +0 -4
  114. package/chunks/index-CBD3UTgX.js +0 -4
  115. package/chunks/index-CDxdDU5W.js +0 -4
  116. package/chunks/index-CR9X9c_3.js +0 -4
  117. package/chunks/index-DLWjbTmD.js +0 -4
  118. package/chunks/index-DVzuyb5J.js +0 -4
  119. package/chunks/index-kvAqk2tW.js +0 -4
package/List.js CHANGED
@@ -1,21 +1,21 @@
1
- import { jsx as o, jsxs as E } from "react/jsx-runtime";
2
- import * as V from "react";
3
- import { useState as A, useRef as z, useCallback as W, useEffect as at, lazy as H, Suspense as ct } from "react";
4
- import { F as lt, G as dt, H as pt, _ as $, I as mt, P as h, g as ut, u as ft, f as ht, d as gt, a as J, i as et, B as x, b as yt, v as Ct } from "./chunks/PrizeCard-nRBh9VU_.js";
1
+ import { jsx as o, jsxs as v } from "react/jsx-runtime";
2
+ import * as D from "react";
3
+ import { useState as A, useRef as z, useCallback as W, useEffect as at, lazy as V, Suspense as ct } from "react";
4
+ import { F as lt, G as dt, H as pt, _ as $, I as mt, P as g, g as ut, u as ft, f as gt, d as ht, a as J, i as et, B as x, b as yt, v as Ct } from "./chunks/PrizeCard-hqjW4cf9.js";
5
5
  import "react-dom";
6
- import { P as xt } from "./chunks/Portal-BdRuZNR8.js";
7
- import { S as nt } from "./chunks/Spinner-wUVcNUtR.js";
8
- import { a as It } from "./chunks/index-iWn7Rdh9.js";
9
- import { C as bt } from "./chunks/Card-BAIFE-g5.js";
10
- import { s as St, a as wt, b as Tt, c as Pt, T as D } from "./chunks/Typography-DaXtC0md.js";
11
- import { C as Et } from "./chunks/CardContent-BKLKsqNJ.js";
12
- import { C as vt } from "./chunks/Chip-06eY-2lp.js";
6
+ import { P as xt } from "./chunks/Portal-YBl0j_ES.js";
7
+ import { S as nt } from "./chunks/Spinner-GWmIiSdb.js";
8
+ import { a as It } from "./chunks/index-BwjsmA37.js";
9
+ import { C as bt } from "./chunks/Card-DRl1b9n_.js";
10
+ import { s as St, a as wt, b as Tt, c as Pt, T as Z } from "./chunks/Typography-CrE4Ll_X.js";
11
+ import { C as Et } from "./chunks/CardContent-CILSFQ-A.js";
12
+ import { C as vt } from "./chunks/Chip-D225drt5.js";
13
13
  import { U as Mt } from "./chunks/users-wbJRbqW8.js";
14
14
  import { W as Ut } from "./chunks/enums-B1lTCQvC.js";
15
- import { M as Lt, a as Rt } from "./chunks/ModalDialog-CaSBYjVn.js";
16
- import { M as _t } from "./chunks/ModalClose-DCM0NGvd.js";
17
- import { D as k } from "./chunks/DirectionScope-8YC2_4GO.js";
18
- import { I as G, B as ot } from "./chunks/Button-ClWJ5CUf.js";
15
+ import { M as Lt, a as Rt } from "./chunks/ModalDialog-DIwYrOma.js";
16
+ import { M as _t } from "./chunks/ModalClose-BarWj7JA.js";
17
+ import { D as k } from "./chunks/DirectionScope-BmKg-88Y.js";
18
+ import { I as G, B as ot } from "./chunks/Button-BmPR6-I9.js";
19
19
  import { C as Ft, a as Ot } from "./chunks/chevrons-right-CXSpQt9w.js";
20
20
  import { C as zt } from "./chunks/chevron-left-CxfCSZcr.js";
21
21
  import { C as At } from "./chunks/chevron-right-BEQMacFn.js";
@@ -57,7 +57,7 @@ const Bt = ["className", "component", "children", "slots", "slotProps"], Qt = ()
57
57
  objectFit: "cover"
58
58
  }
59
59
  }
60
- }), q = /* @__PURE__ */ V.forwardRef(function(n, t) {
60
+ }), q = /* @__PURE__ */ D.forwardRef(function(n, t) {
61
61
  const d = wt({
62
62
  props: n,
63
63
  name: "JoyCardCover"
@@ -67,21 +67,21 @@ const Bt = ["className", "component", "children", "slots", "slotProps"], Qt = ()
67
67
  children: r,
68
68
  slots: c = {},
69
69
  slotProps: C = {}
70
- } = d, i = pt(d, Bt), T = $({}, d, {
70
+ } = d, s = pt(d, Bt), E = $({}, d, {
71
71
  component: a
72
- }), v = Qt(), N = $({}, i, {
72
+ }), M = Qt(), N = $({}, s, {
73
73
  component: a,
74
74
  slots: c,
75
75
  slotProps: C
76
- }), [M, F] = Tt("root", {
76
+ }), [U, F] = Tt("root", {
77
77
  ref: t,
78
- className: mt(v.root, l),
78
+ className: mt(M.root, l),
79
79
  elementType: jt,
80
80
  externalForwardedProps: N,
81
- ownerState: T
81
+ ownerState: E
82
82
  });
83
- return /* @__PURE__ */ o(M, $({}, F, {
84
- children: V.Children.map(r, (I, S) => S === 0 && /* @__PURE__ */ V.isValidElement(I) ? /* @__PURE__ */ V.cloneElement(I, {
83
+ return /* @__PURE__ */ o(U, $({}, F, {
84
+ children: D.Children.map(r, (I, S) => S === 0 && /* @__PURE__ */ D.isValidElement(I) ? /* @__PURE__ */ D.cloneElement(I, {
85
85
  "data-first-child": ""
86
86
  }) : I)
87
87
  }));
@@ -95,34 +95,34 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
95
95
  * Used to render icon or text elements inside the CardCover if `src` is not set.
96
96
  * This can be an element, or just a string.
97
97
  */
98
- children: h.node,
98
+ children: g.node,
99
99
  /**
100
100
  * @ignore
101
101
  */
102
- className: h.string,
102
+ className: g.string,
103
103
  /**
104
104
  * The component used for the root node.
105
105
  * Either a string to use a HTML element or a component.
106
106
  */
107
- component: h.elementType,
107
+ component: g.elementType,
108
108
  /**
109
109
  * The props used for each slot inside.
110
110
  * @default {}
111
111
  */
112
- slotProps: h.shape({
113
- root: h.oneOfType([h.func, h.object])
112
+ slotProps: g.shape({
113
+ root: g.oneOfType([g.func, g.object])
114
114
  }),
115
115
  /**
116
116
  * The components used for each slot inside.
117
117
  * @default {}
118
118
  */
119
- slots: h.shape({
120
- root: h.elementType
119
+ slots: g.shape({
120
+ root: g.elementType
121
121
  }),
122
122
  /**
123
123
  * The system prop that allows defining system overrides as well as additional CSS styles.
124
124
  */
125
- sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object])
125
+ sx: g.oneOfType([g.arrayOf(g.oneOfType([g.func, g.object, g.bool])), g.func, g.object])
126
126
  });
127
127
  const rt = (e) => {
128
128
  const n = e.entityModel;
@@ -190,113 +190,113 @@ const rt = (e) => {
190
190
  default:
191
191
  return null;
192
192
  }
193
- }, Ht = /* @__PURE__ */ new Set(["ACTIVE", "OPEN"]), Zt = (e) => {
193
+ }, Ht = /* @__PURE__ */ new Set(["ACTIVE", "OPEN"]), Vt = (e) => {
194
194
  var t;
195
195
  const n = (t = rt(e)) == null ? void 0 : t.status;
196
196
  return !!(n && Ht.has(n));
197
- }, Dt = 50, Vt = 3, Wt = (e, n, t, d) => {
198
- const l = d === "paged", a = d === "limited", [r, c] = A([]), [C, i] = A(!1), [T, v] = A(!1), [N, M] = A(!l), [F, I] = A(1), [S, B] = A(1), w = z([]), O = z([]), P = z(/* @__PURE__ */ new Set()), U = z(1), L = z(!1), p = z(!1), u = z(null), s = z(0), R = W(
199
- async (m, g) => {
200
- var j;
197
+ }, Zt = 50, Dt = 3, Wt = (e, n, t, d) => {
198
+ const l = d === "paged", a = d === "limited", [r, c] = A([]), [C, s] = A(!1), [E, M] = A(!1), [N, U] = A(!l), [F, I] = A(1), [S, B] = A(1), w = z([]), O = z([]), Q = z(/* @__PURE__ */ new Set()), b = z(1), L = z(!1), T = z(!1), p = z(null), u = z(0), i = W(
199
+ async (m, h) => {
200
+ var H;
201
201
  const f = await e.lists.getListContent(n, {
202
- limit: g,
202
+ limit: h,
203
203
  page: m
204
- }), y = (j = f.meta) == null ? void 0 : j.pagination, _ = f.data ?? [];
204
+ }), y = (H = f.meta) == null ? void 0 : H.pagination, _ = f.data ?? [];
205
205
  return {
206
- valid: _.filter(Zt),
206
+ valid: _.filter(Vt),
207
207
  rawCount: _.length,
208
208
  pageCount: (y == null ? void 0 : y.numberOfPages) ?? 1
209
209
  };
210
210
  },
211
211
  [e, n]
212
- ), b = W(async () => {
213
- if (p.current || !e || !n) return;
214
- const m = s.current, g = () => m !== s.current, f = a ? t - O.current.length : t;
212
+ ), R = W(async () => {
213
+ if (T.current || !e || !n) return;
214
+ const m = u.current, h = () => m !== u.current, f = a ? t - O.current.length : t;
215
215
  if (f <= 0) {
216
- M(!1);
216
+ U(!1);
217
217
  return;
218
218
  }
219
219
  if (w.current.length < f && !L.current) {
220
- p.current = !0, i(!0);
220
+ T.current = !0, s(!0);
221
221
  try {
222
222
  let _ = 0;
223
- for (; w.current.length < f && !L.current && _ < Vt; ) {
223
+ for (; w.current.length < f && !L.current && _ < Dt; ) {
224
224
  const {
225
- valid: j,
225
+ valid: H,
226
226
  rawCount: st,
227
227
  pageCount: it
228
- } = await R(U.current, Dt);
229
- if (g()) return;
228
+ } = await i(b.current, Zt);
229
+ if (h()) return;
230
230
  _ += 1;
231
- const X = j.filter(
232
- (K) => !P.current.has(K.entityId)
231
+ const X = H.filter(
232
+ (K) => !Q.current.has(K.entityId)
233
233
  );
234
- X.forEach((K) => P.current.add(K.entityId)), w.current.push(...X), (st === 0 || U.current >= it) && (L.current = !0), U.current += 1;
234
+ X.forEach((K) => Q.current.add(K.entityId)), w.current.push(...X), (st === 0 || b.current >= it) && (L.current = !0), b.current += 1;
235
235
  }
236
236
  } catch (_) {
237
- if (g()) return;
238
- console.warn("Error fetching list content:", _), v(!0);
237
+ if (h()) return;
238
+ console.warn("Error fetching list content:", _), M(!0);
239
239
  return;
240
240
  } finally {
241
- g() || (p.current = !1, i(!1));
241
+ h() || (T.current = !1, s(!1));
242
242
  }
243
243
  }
244
- if (g()) return;
244
+ if (h()) return;
245
245
  const y = [...O.current, ...w.current.splice(0, f)];
246
- O.current = y, c(y), M(
246
+ O.current = y, c(y), U(
247
247
  !a && (w.current.length > 0 || !L.current)
248
248
  );
249
- }, [R, a, t, n, e]), Q = W(
250
- (m, g) => {
251
- const f = Math.max(1, Math.ceil(m.length / t)), y = Math.min(Math.max(g, 1), f);
249
+ }, [i, a, t, n, e]), P = W(
250
+ (m, h) => {
251
+ const f = Math.max(1, Math.ceil(m.length / t)), y = Math.min(Math.max(h, 1), f);
252
252
  c(m.slice((y - 1) * t, y * t)), B(f), I(y);
253
253
  },
254
254
  [t]
255
- ), Z = W(
255
+ ), j = W(
256
256
  async (m) => {
257
257
  if (m < 1) return;
258
- if (u.current) {
259
- Q(u.current, m);
258
+ if (p.current) {
259
+ P(p.current, m);
260
260
  return;
261
261
  }
262
- if (p.current || !e || !n) return;
263
- const g = s.current, f = () => g !== s.current;
264
- p.current = !0, i(!0);
262
+ if (T.current || !e || !n) return;
263
+ const h = u.current, f = () => h !== u.current;
264
+ T.current = !0, s(!0);
265
265
  try {
266
266
  const {
267
267
  valid: y,
268
268
  rawCount: _,
269
- pageCount: j
270
- } = await R(m, t);
269
+ pageCount: H
270
+ } = await i(m, t);
271
271
  if (f()) return;
272
272
  if (_ > t) {
273
- u.current = y, Q(y, m);
273
+ p.current = y, P(y, m);
274
274
  return;
275
275
  }
276
- c(y), B(j), I(m);
276
+ c(y), B(H), I(m);
277
277
  } catch (y) {
278
278
  if (f()) return;
279
- console.warn("Error fetching list content:", y), v(!0);
279
+ console.warn("Error fetching list content:", y), M(!0);
280
280
  } finally {
281
- f() || (p.current = !1, i(!1));
281
+ f() || (T.current = !1, s(!1));
282
282
  }
283
283
  },
284
- [R, t, n, e, Q]
284
+ [i, t, n, e, P]
285
285
  );
286
286
  return at(() => {
287
- s.current += 1, p.current = !1, w.current = [], O.current = [], P.current = /* @__PURE__ */ new Set(), U.current = 1, L.current = !1, u.current = null, c([]), v(!1), M(!l), I(1), B(1), l ? Z(1) : b();
288
- }, [l, Z, b]), {
287
+ u.current += 1, T.current = !1, w.current = [], O.current = [], Q.current = /* @__PURE__ */ new Set(), b.current = 1, L.current = !1, p.current = null, c([]), M(!1), U(!l), I(1), B(1), l ? j(1) : R();
288
+ }, [l, j, R]), {
289
289
  items: r,
290
290
  loading: C,
291
- error: T,
291
+ error: E,
292
292
  hasMore: N,
293
- loadMore: b,
293
+ loadMore: R,
294
294
  page: F,
295
295
  pageCount: S,
296
- goToPage: Z
296
+ goToPage: j
297
297
  };
298
298
  }, Y = () => {
299
- const e = ut(), n = ft(), t = ht(), d = gt();
299
+ const e = ut(), n = ft(), t = gt(), d = ht();
300
300
  return {
301
301
  fonts: n,
302
302
  spacing: d,
@@ -349,9 +349,9 @@ const rt = (e) => {
349
349
  imagePlaceholder: d,
350
350
  onClick: l
351
351
  }) => {
352
- var i, T;
352
+ var s, E;
353
353
  const { t: a } = J(), r = Y(), c = et(), C = Kt(n.branding, c);
354
- return /* @__PURE__ */ E(
354
+ return /* @__PURE__ */ v(
355
355
  bt,
356
356
  {
357
357
  onClick: () => l(e),
@@ -377,15 +377,15 @@ const rt = (e) => {
377
377
  /* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(
378
378
  "img",
379
379
  {
380
- src: ((i = n.images) == null ? void 0 : i.cover) || ((T = n.images) == null ? void 0 : T.main) || d || It,
380
+ src: ((s = n.images) == null ? void 0 : s.cover) || ((E = n.images) == null ? void 0 : E.main) || d || It,
381
381
  alt: n.title,
382
382
  loading: "lazy",
383
383
  style: { transition: "transform 0.4s ease-out" }
384
384
  }
385
385
  ) }),
386
386
  /* @__PURE__ */ o(q, { sx: { background: r.onImage.scrim } }),
387
- /* @__PURE__ */ E(Et, { sx: { justifyContent: "flex-end", gap: 0 }, children: [
388
- /* @__PURE__ */ E(
387
+ /* @__PURE__ */ v(Et, { sx: { justifyContent: "flex-end", gap: 0 }, children: [
388
+ /* @__PURE__ */ v(
389
389
  x,
390
390
  {
391
391
  sx: {
@@ -395,8 +395,8 @@ const rt = (e) => {
395
395
  gap: r.spacing.md
396
396
  },
397
397
  children: [
398
- /* @__PURE__ */ E(x, { children: [
399
- /* @__PURE__ */ E(
398
+ /* @__PURE__ */ v(x, { children: [
399
+ /* @__PURE__ */ v(
400
400
  x,
401
401
  {
402
402
  sx: {
@@ -421,7 +421,7 @@ const rt = (e) => {
421
421
  }
422
422
  ),
423
423
  !!n.participationCount && /* @__PURE__ */ o(
424
- D,
424
+ Z,
425
425
  {
426
426
  startDecorator: /* @__PURE__ */ o(Mt, { size: 16, color: r.onImage.text }),
427
427
  sx: {
@@ -436,7 +436,7 @@ const rt = (e) => {
436
436
  }
437
437
  ),
438
438
  /* @__PURE__ */ o(
439
- D,
439
+ Z,
440
440
  {
441
441
  sx: {
442
442
  fontSize: "1.5em",
@@ -454,7 +454,7 @@ const rt = (e) => {
454
454
  }
455
455
  )
456
456
  ] }),
457
- C && !c && /* @__PURE__ */ E(
457
+ C && !c && /* @__PURE__ */ v(
458
458
  x,
459
459
  {
460
460
  sx: {
@@ -467,7 +467,7 @@ const rt = (e) => {
467
467
  },
468
468
  children: [
469
469
  /* @__PURE__ */ o(
470
- D,
470
+ Z,
471
471
  {
472
472
  sx: {
473
473
  fontSize: "0.7em",
@@ -498,7 +498,7 @@ const rt = (e) => {
498
498
  ]
499
499
  }
500
500
  ),
501
- C && c && /* @__PURE__ */ E(
501
+ C && c && /* @__PURE__ */ v(
502
502
  x,
503
503
  {
504
504
  sx: {
@@ -513,7 +513,7 @@ const rt = (e) => {
513
513
  },
514
514
  children: [
515
515
  /* @__PURE__ */ o(
516
- D,
516
+ Z,
517
517
  {
518
518
  sx: {
519
519
  fontSize: "0.7em",
@@ -543,9 +543,9 @@ const rt = (e) => {
543
543
  ]
544
544
  }
545
545
  );
546
- }, qt = H(() => import("./chunks/index-CDxdDU5W.js")), Jt = H(
547
- () => import("./chunks/index-kvAqk2tW.js")
548
- ), Xt = H(() => import("./chunks/index-CR9X9c_3.js")), te = H(() => import("./chunks/index-DLWjbTmD.js")), ee = H(() => import("./chunks/index-CBD3UTgX.js")), ne = H(() => import("./chunks/index-BI_1_9JX.js")), oe = ({
546
+ }, qt = V(() => import("./chunks/index-Bw2Hn1g_.js")), Jt = V(
547
+ () => import("./chunks/index-CwvcFge5.js")
548
+ ), Xt = V(() => import("./chunks/index-Bnvv4b84.js")), te = V(() => import("./chunks/index-BhmdGSzW.js")), ee = V(() => import("./chunks/index-DFi89Xqa.js")), ne = V(() => import("./chunks/index-DKMxtukO.js")), oe = ({
549
549
  item: e,
550
550
  open: n,
551
551
  onClose: t,
@@ -554,52 +554,53 @@ const rt = (e) => {
554
554
  const { t: l } = J(), a = Y(), { shadowRootElement: r } = yt(Ct), {
555
555
  sdk: c,
556
556
  language: C,
557
- themeOptions: i,
558
- userIsLoggedIn: T,
559
- signInCTA: v,
557
+ themeOptions: s,
558
+ userIsLoggedIn: E,
559
+ signInCTA: M,
560
560
  additionalCTA: N,
561
- shareCTA: M,
561
+ shareCTA: U,
562
562
  rulesDisplay: F,
563
563
  leads: I,
564
564
  consents: S,
565
565
  chanceGameVariant: B,
566
566
  showAnswerExplanations: w,
567
567
  hideCorrectOption: O,
568
- optionsLayout: P,
569
- imagePosition: U,
570
- defaultImagePlaceholderUrl: L,
568
+ aggregateTranslatedVotes: Q,
569
+ optionsLayout: b,
570
+ imagePosition: L,
571
+ defaultImagePlaceholderUrl: T,
571
572
  matchQuiz: p,
572
573
  eventGame: u,
573
- callbacks: s
574
+ callbacks: i
574
575
  } = d, R = {
575
576
  sdk: c,
576
577
  language: C,
577
- themeOptions: i,
578
+ themeOptions: s,
578
579
  leads: I,
579
580
  consents: S,
580
- userIsLoggedIn: T,
581
- signInCTA: v,
581
+ userIsLoggedIn: E,
582
+ signInCTA: M,
582
583
  additionalCTA: N,
583
584
  rulesDisplay: F,
584
- defaultImagePlaceholderUrl: L,
585
+ defaultImagePlaceholderUrl: T,
585
586
  template: Ut.STANDARD,
586
- imagePosition: U
587
- }, b = { ...R, chanceGameVariant: B }, Q = () => {
587
+ imagePosition: L
588
+ }, P = { ...R, chanceGameVariant: B }, j = () => {
588
589
  if (!e) return null;
589
590
  switch (e.entityType) {
590
591
  case "CLASSIC_QUIZ":
591
592
  return /* @__PURE__ */ o(
592
593
  qt,
593
594
  {
594
- ...b,
595
+ ...P,
595
596
  entityId: e.entityId,
596
- shareCTA: M,
597
+ shareCTA: U,
597
598
  showAnswerExplanations: w,
598
599
  hideCorrectOption: O,
599
- optionsLayout: P,
600
+ optionsLayout: b,
600
601
  callbacks: {
601
- onFinish: s == null ? void 0 : s.onFinish,
602
- onShare: s == null ? void 0 : s.onShare
602
+ onFinish: i == null ? void 0 : i.onFinish,
603
+ onShare: i == null ? void 0 : i.onShare
603
604
  }
604
605
  }
605
606
  );
@@ -607,21 +608,22 @@ const rt = (e) => {
607
608
  return /* @__PURE__ */ o(
608
609
  Jt,
609
610
  {
610
- ...b,
611
+ ...P,
611
612
  entityId: e.entityId,
612
613
  showAnswerExplanations: w,
613
- optionsLayout: P,
614
- callbacks: { onFinish: s == null ? void 0 : s.onFinish }
614
+ optionsLayout: b,
615
+ callbacks: { onFinish: i == null ? void 0 : i.onFinish }
615
616
  }
616
617
  );
617
618
  case "POLL":
618
619
  return /* @__PURE__ */ o(
619
620
  Xt,
620
621
  {
621
- ...b,
622
+ ...P,
622
623
  entityId: e.entityId,
623
- optionsLayout: P,
624
- callbacks: { onFinish: s == null ? void 0 : s.onFinish }
624
+ optionsLayout: b,
625
+ aggregateTranslatedVotes: Q,
626
+ callbacks: { onFinish: i == null ? void 0 : i.onFinish }
625
627
  }
626
628
  );
627
629
  case "EITHER_OR":
@@ -630,38 +632,38 @@ const rt = (e) => {
630
632
  {
631
633
  ...R,
632
634
  entityId: e.entityId,
633
- callbacks: { onFinish: s == null ? void 0 : s.onFinish }
635
+ callbacks: { onFinish: i == null ? void 0 : i.onFinish }
634
636
  }
635
637
  );
636
638
  case "MATCH_QUIZ":
637
639
  return /* @__PURE__ */ o(
638
640
  ee,
639
641
  {
640
- ...b,
642
+ ...P,
641
643
  entityId: e.entityId,
642
644
  showPredictionDetails: (p == null ? void 0 : p.showPredictionDetails) ?? !0,
643
645
  showCountdown: (p == null ? void 0 : p.showCountdown) ?? !0,
644
646
  showTeamLabels: (p == null ? void 0 : p.showTeamLabels) ?? !0,
645
647
  showPoints: (p == null ? void 0 : p.showPoints) ?? !0,
646
- callbacks: { onFinish: s == null ? void 0 : s.onFinish }
648
+ callbacks: { onFinish: i == null ? void 0 : i.onFinish }
647
649
  }
648
650
  );
649
651
  case "CUSTOM_EVENT_GAME":
650
652
  return /* @__PURE__ */ o(
651
653
  ne,
652
654
  {
653
- ...b,
655
+ ...P,
654
656
  entityId: e.entityId,
655
- optionsLayout: P,
657
+ optionsLayout: b,
656
658
  showPredictionDetails: (u == null ? void 0 : u.showPredictionDetails) ?? !0,
657
659
  showCountdown: (u == null ? void 0 : u.showCountdown) ?? !0,
658
660
  showPoints: (u == null ? void 0 : u.showPoints) ?? !0,
659
- callbacks: { onFinish: s == null ? void 0 : s.onFinish }
661
+ callbacks: { onFinish: i == null ? void 0 : i.onFinish }
660
662
  }
661
663
  );
662
664
  default:
663
665
  return /* @__PURE__ */ o(x, { sx: { padding: a.spacing.md, textAlign: "center" }, children: /* @__PURE__ */ o(
664
- D,
666
+ Z,
665
667
  {
666
668
  sx: {
667
669
  fontSize: "1em",
@@ -680,7 +682,7 @@ const rt = (e) => {
680
682
  onClose: t,
681
683
  container: r,
682
684
  sx: { zIndex: 1300 },
683
- children: /* @__PURE__ */ E(
685
+ children: /* @__PURE__ */ v(
684
686
  Rt,
685
687
  {
686
688
  sx: {
@@ -706,7 +708,7 @@ const rt = (e) => {
706
708
  }
707
709
  }
708
710
  ),
709
- /* @__PURE__ */ o(x, { sx: { position: "relative", zIndex: 0, fontSize: "1em" }, children: /* @__PURE__ */ o(ct, { fallback: /* @__PURE__ */ o(nt, { my: 4 }), children: Q() }) })
711
+ /* @__PURE__ */ o(x, { sx: { position: "relative", zIndex: 0, fontSize: "1em" }, children: /* @__PURE__ */ o(ct, { fallback: /* @__PURE__ */ o(nt, { my: 4 }), children: j() }) })
710
712
  ]
711
713
  }
712
714
  )
@@ -736,7 +738,7 @@ const rt = (e) => {
736
738
  fontSize: "0.875em",
737
739
  color: l.colors.text
738
740
  };
739
- return /* @__PURE__ */ E(
741
+ return /* @__PURE__ */ v(
740
742
  x,
741
743
  {
742
744
  sx: {
@@ -785,7 +787,7 @@ const rt = (e) => {
785
787
  },
786
788
  `${c}-${C}`
787
789
  );
788
- const i = c === e;
790
+ const s = c === e;
789
791
  return /* @__PURE__ */ o(
790
792
  ot,
791
793
  {
@@ -795,11 +797,11 @@ const rt = (e) => {
795
797
  onClick: () => a(c),
796
798
  sx: {
797
799
  ...r,
798
- fontWeight: i ? 600 : 400,
799
- bgcolor: i ? l.colors.primary : "transparent",
800
- color: i ? l.colors.onPrimary : l.colors.text,
800
+ fontWeight: s ? 600 : 400,
801
+ bgcolor: s ? l.colors.primary : "transparent",
802
+ color: s ? l.colors.onPrimary : l.colors.text,
801
803
  "&:hover": {
802
- bgcolor: i ? l.colors.primary : l.colors.surface
804
+ bgcolor: s ? l.colors.primary : l.colors.surface
803
805
  }
804
806
  },
805
807
  children: c
@@ -848,45 +850,45 @@ const rt = (e) => {
848
850
  widgetMode: a = "load-more",
849
851
  urls: r,
850
852
  defaultImagePlaceholderUrl: c
851
- } = e, { t: C } = J(), i = Y(), T = et(), [v, N] = A(null), [M, F] = A(!1), {
853
+ } = e, { t: C } = J(), s = Y(), E = et(), [M, N] = A(null), [U, F] = A(!1), {
852
854
  items: I,
853
855
  loading: S,
854
856
  error: B,
855
857
  hasMore: w,
856
858
  loadMore: O,
857
- page: P,
858
- pageCount: U,
859
+ page: Q,
860
+ pageCount: b,
859
861
  goToPage: L
860
- } = Wt(t, n, d, a), p = Gt(r), u = a === "paged", s = (m) => {
861
- const g = Yt(m, r);
862
- if (g) {
863
- window.location.href = g;
862
+ } = Wt(t, n, d, a), T = Gt(r), p = a === "paged", u = (m) => {
863
+ const h = Yt(m, r);
864
+ if (h) {
865
+ window.location.href = h;
864
866
  return;
865
867
  }
866
- p || (N(m), F(!0));
867
- }, R = T ? 1 : Math.max(1, Math.floor(l)), b = u && U > 1, Q = !u && w && !S, Z = !(u && S);
868
- return B || !S && I.length === 0 && !b ? null : /* @__PURE__ */ E(x, { sx: { fontSize: "1em", fontFamily: i.fonts.secondary }, children: [
869
- Z && /* @__PURE__ */ o(
868
+ T || (N(m), F(!0));
869
+ }, i = E ? 1 : Math.max(1, Math.floor(l)), R = p && b > 1, P = !p && w && !S, j = !(p && S);
870
+ return B || !S && I.length === 0 && !R ? null : /* @__PURE__ */ v(x, { sx: { fontSize: "1em", fontFamily: s.fonts.secondary }, children: [
871
+ j && /* @__PURE__ */ o(
870
872
  x,
871
873
  {
872
874
  sx: {
873
875
  display: "grid",
874
- gridTemplateColumns: `repeat(${R}, minmax(0, 1fr))`,
875
- gap: i.spacing.xs,
876
- marginBottom: i.spacing.md
876
+ gridTemplateColumns: `repeat(${i}, minmax(0, 1fr))`,
877
+ gap: s.spacing.xs,
878
+ marginBottom: s.spacing.md
877
879
  },
878
880
  children: I.map((m) => {
879
- const g = rt(m);
880
- if (!g) return null;
881
+ const h = rt(m);
882
+ if (!h) return null;
881
883
  const f = ae[m.entityType];
882
884
  return /* @__PURE__ */ o(
883
885
  $t,
884
886
  {
885
887
  item: m,
886
- entityData: g,
888
+ entityData: h,
887
889
  typeLabel: f ? C(f) : "",
888
890
  imagePlaceholder: c || "",
889
- onClick: s
891
+ onClick: u
890
892
  },
891
893
  m.entityId
892
894
  );
@@ -894,13 +896,13 @@ const rt = (e) => {
894
896
  }
895
897
  ),
896
898
  S && /* @__PURE__ */ o(nt, { my: 4 }),
897
- Q && /* @__PURE__ */ o(
899
+ P && /* @__PURE__ */ o(
898
900
  x,
899
901
  {
900
902
  sx: {
901
903
  display: "flex",
902
904
  justifyContent: "center",
903
- marginTop: i.spacing.md
905
+ marginTop: s.spacing.md
904
906
  },
905
907
  children: /* @__PURE__ */ o(
906
908
  ot,
@@ -908,12 +910,12 @@ const rt = (e) => {
908
910
  variant: "soft",
909
911
  onClick: O,
910
912
  sx: {
911
- borderRadius: i.radius.xl,
913
+ borderRadius: s.radius.xl,
912
914
  py: "10px",
913
915
  px: "16px",
914
- bgcolor: i.colors.primary,
915
- color: i.colors.onPrimary,
916
- fontFamily: i.fonts.primary,
916
+ bgcolor: s.colors.primary,
917
+ color: s.colors.onPrimary,
918
+ fontFamily: s.fonts.primary,
917
919
  fontSize: "0.9375em",
918
920
  fontWeight: 500,
919
921
  lineHeight: "24px",
@@ -922,11 +924,11 @@ const rt = (e) => {
922
924
  transition: "all 300ms cubic-bezier(0.2, 0, 0, 1)",
923
925
  transform: "scale(1)",
924
926
  "&:hover": {
925
- bgcolor: i.colors.primary,
927
+ bgcolor: s.colors.primary,
926
928
  transform: "scale(1.02)"
927
929
  },
928
930
  "&:active": {
929
- color: i.colors.onPrimary,
931
+ color: s.colors.onPrimary,
930
932
  transform: "scale(0.98)"
931
933
  }
932
934
  },
@@ -935,11 +937,11 @@ const rt = (e) => {
935
937
  )
936
938
  }
937
939
  ),
938
- b && /* @__PURE__ */ o(x, { sx: { marginTop: i.spacing.md }, children: /* @__PURE__ */ o(
940
+ R && /* @__PURE__ */ o(x, { sx: { marginTop: s.spacing.md }, children: /* @__PURE__ */ o(
939
941
  ie,
940
942
  {
941
- page: P,
942
- count: U,
943
+ page: Q,
944
+ count: b,
943
945
  disabled: S,
944
946
  onChange: L
945
947
  }
@@ -947,8 +949,8 @@ const rt = (e) => {
947
949
  /* @__PURE__ */ o(
948
950
  oe,
949
951
  {
950
- item: v,
951
- open: M,
952
+ item: M,
953
+ open: U,
952
954
  onClose: () => F(!1),
953
955
  listProps: e
954
956
  }