fansunited-frontend-components 0.0.78 → 0.0.80

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 (115) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +12 -11
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +39 -38
  5. package/Discussion.js +1 -1
  6. package/EitherOrPlay.js +1 -1
  7. package/EventCard.js +61 -61
  8. package/EventGamePlay.js +1 -1
  9. package/Leaderboard.js +13 -13
  10. package/List.js +93 -82
  11. package/MatchQuizPlay.js +1 -1
  12. package/PersonalityQuizPlay.js +1 -1
  13. package/PickThePair.js +13 -12
  14. package/PlayerOfTheMatch.js +22 -22
  15. package/PollVote.js +1 -1
  16. package/Predictor.js +1 -1
  17. package/README.md +131 -16
  18. package/Standings.js +26 -26
  19. package/TopX.js +27 -27
  20. package/chunks/{AccessTime-B30dztb0.js → AccessTime-BoYoyig3.js} +1 -1
  21. package/chunks/{AlertMessage-DioJxnEH.js → AlertMessage-DBbObbCr.js} +13 -13
  22. package/chunks/{Avatar-BDK_vO0c.js → Avatar-Bs2ODH24.js} +25 -25
  23. package/chunks/{Button-CsvEgUxT.js → Button-By0gW9vl.js} +17 -17
  24. package/chunks/{Card-Bp7sboHu.js → Card-Bbq-568c.js} +17 -17
  25. package/chunks/{CardActions-ehD6I2GZ.js → CardActions-DntJimyi.js} +14 -14
  26. package/chunks/{CardContent-BZDBKTQD.js → CardContent-JrB_z1Or.js} +5 -5
  27. package/chunks/{ChanceGameEmbedVariant-DMI7i2Me.js → ChanceGameEmbedVariant-D8b8PZnU.js} +21 -20
  28. package/chunks/{CheckCircle-BXhOrVkK.js → CheckCircle-BVTGl0Ft.js} +1 -1
  29. package/chunks/{Chip-Bm-Ccjvy.js → Chip-WC9No4h9.js} +10 -10
  30. package/chunks/{Close-CG_aSJDO.js → Close-CKW5gQRw.js} +1 -1
  31. package/chunks/{Close-AaOgLIme.js → Close-tWsMMKfA.js} +1 -1
  32. package/chunks/{CollectLeadForm-DZe1Ymdq.js → CollectLeadForm-CwcEETPM.js} +90 -90
  33. package/chunks/{ConsentsList-DooBFFmw.js → ConsentsList-D1KKdfOJ.js} +39 -39
  34. package/chunks/{DirectionScope-oLk_U3C_.js → DirectionScope-BYGJWPAq.js} +1 -1
  35. package/chunks/{Divider-CAgadBhD.js → Divider-4Rcw4h05.js} +5 -5
  36. package/chunks/{Edit-kXDl-pRS.js → Edit-D7yPt8sV.js} +13 -13
  37. package/chunks/{EditOutlined-BX5qBF8L.js → EditOutlined-DvZLGuHA.js} +1 -1
  38. package/chunks/{EmojiEvents-xseHOk4b.js → EmojiEvents-YHRdPnXx.js} +1 -1
  39. package/chunks/{FavoriteBorder-BMOLtK7X.js → FavoriteBorder-BXLiJyTv.js} +1 -1
  40. package/chunks/{FormControl-BTDS6ct5.js → FormControl-yhrIQ7ci.js} +17 -17
  41. package/chunks/{FormLabel-Ddvg7Uaw.js → FormLabel-COGIjfEx.js} +10 -10
  42. package/chunks/{InlineSpinner-CvwR2FB_.js → InlineSpinner-CyqM_yQn.js} +2 -2
  43. package/chunks/{Input-aCtmZdRk.js → Input-Dm3GnI0X.js} +10 -10
  44. package/chunks/{KeyboardArrowDown-BFuNjWbC.js → KeyboardArrowDown-CCFl-_Cw.js} +1 -1
  45. package/chunks/{KeyboardArrowRight-DaukpNJR.js → KeyboardArrowRight-387qOqAR.js} +1 -1
  46. package/chunks/{Link-lifAyVr-.js → Link-ByX_uwKs.js} +16 -16
  47. package/chunks/{ListItemButton-BSg2RH3G.js → ListItemButton-CxWpt9SR.js} +52 -52
  48. package/chunks/{ModalClose-C-dgGCpP.js → ModalClose-Cm8vOuk-.js} +17 -17
  49. package/chunks/{ModalDialog-DyJQmPgR.js → ModalDialog-CXSBeWlQ.js} +42 -42
  50. package/chunks/{NotFoundSkeleton-CPrI2SnC.js → NotFoundSkeleton-BV0mXA7z.js} +40 -39
  51. package/chunks/{Notification-1ogsNUiX.js → Notification-preGSwrO.js} +12 -12
  52. package/chunks/{OverlayScoreStateSkeleton-DALoMahw.js → OverlayScoreStateSkeleton-CA4yxhzc.js} +4 -4
  53. package/chunks/{OverlayScoreStateWrapperSkeleton-BDDNd4hM.js → OverlayScoreStateWrapperSkeleton-BwDWj5VX.js} +1 -1
  54. package/chunks/{OverlaySignInSkeleton-BUiNvDRX.js → OverlaySignInSkeleton-C0gpFLV4.js} +11 -10
  55. package/chunks/{Person-CtBkSz4s.js → Person-DFs8t3vY.js} +1 -1
  56. package/chunks/{PersonOutline-ftsY5SqE.js → PersonOutline-BHHHU-iP.js} +1 -1
  57. package/chunks/{PickOneOfX-ASPYutVw.js → PickOneOfX-eEOpXC-f.js} +3 -3
  58. package/chunks/{Popper-Bj1kl7y_.js → Popper-BJbMQoEj.js} +19 -19
  59. package/chunks/{Portal-B5LOp_VA.js → Portal-0HYQP6vC.js} +9 -8
  60. package/chunks/{Portal-DxNZWqOV.js → Portal-Cd3abSBt.js} +2 -2
  61. package/chunks/{Predictor-o1ZtxfmB.js → Predictor-Db1YZFlF.js} +27 -27
  62. package/chunks/{PrizeCard-DG54vy2l.js → PrizeCard-YH9jftwY.js} +1773 -1611
  63. package/chunks/{Search-Jq0gJI9j.js → Search-CWYaTHth.js} +1 -1
  64. package/chunks/{Select-Dvq1fOJv.js → Select-osvV4zXY.js} +82 -82
  65. package/chunks/{Sheet-emOLchyd.js → Sheet-Bj4wdH5F.js} +14 -14
  66. package/chunks/{SignInCta-DUarOlDT.js → SignInCta-3q_FTCgs.js} +3 -3
  67. package/chunks/{Spinner-CfnxZwI6.js → Spinner-CP7juuny.js} +2 -2
  68. package/chunks/{Stack-Ck9Xjygq.js → Stack-DuL71jRI.js} +27 -27
  69. package/chunks/{StandardContentSkeleton-Bx2HVrwG.js → StandardContentSkeleton-CsYymZyn.js} +1 -1
  70. package/chunks/{Table-DU0BCrKV.js → Table-DvjSYLKy.js} +5 -5
  71. package/chunks/{Tabs-Dx0bzmUT.js → Tabs-D44eIyd1.js} +19 -19
  72. package/chunks/{Textarea-CrulPENr.js → Textarea-Cjks7P0A.js} +27 -27
  73. package/chunks/{TimerOutlined-C3LRF5_A.js → TimerOutlined-D-ySNoFF.js} +1 -1
  74. package/chunks/{Tooltip-C8hJsZr9.js → Tooltip-C9OhGeHY.js} +52 -52
  75. package/chunks/{Typography-ECqxGAdq.js → Typography-Ce4eGDV-.js} +29 -29
  76. package/chunks/{WorkspacePremiumOutlined-DZe6H7gK.js → WorkspacePremiumOutlined-mcdyqu4a.js} +1 -1
  77. package/chunks/{createSvgIcon-SFvnySaS.js → createSvgIcon-D2EzyIzB.js} +12 -12
  78. package/chunks/{createSvgIcon-ZK1E4tSQ.js → createSvgIcon-D9F_KILu.js} +40 -40
  79. package/chunks/{dividerClasses-vQL1-lZZ.js → dividerClasses-D7_NXMv_.js} +1 -1
  80. package/chunks/{elementAcceptingRef-BQjX8_HI.js → elementAcceptingRef-z3i9EgXj.js} +1 -1
  81. package/chunks/enums-B1lTCQvC.js +15 -0
  82. package/chunks/{formLabelClasses-C6bWt8jt.js → formLabelClasses-DWH0zNVd.js} +1 -1
  83. package/chunks/{helpers-DK7NIWA3.js → helpers-B4K14VMy.js} +1 -1
  84. package/chunks/index-7P5xWKpe.js +4 -0
  85. package/chunks/index-BU6n6VAs.js +4 -0
  86. package/chunks/index-BeAwxbb7.js +4 -0
  87. package/chunks/index-CYbzrOCD.js +4 -0
  88. package/chunks/{index-D5NQUqT3.js → index-D6_vWz9t.js} +1 -1
  89. package/chunks/index-DfmHCVlq.js +4 -0
  90. package/chunks/index-Do8G2ehs.js +4 -0
  91. package/chunks/index-bI2wtknX.js +4 -0
  92. package/chunks/{main-CsgyDzQn.js → main-3TaPwm3t.js} +21 -20
  93. package/chunks/{main-BFR2-Jev.js → main-ChI4MrZS.js} +3788 -1553
  94. package/chunks/{main-t-kBnJfd.js → main-Cn8QJIGS.js} +190 -189
  95. package/chunks/{main-CMaUkaQg.js → main-D1KgLv-3.js} +36 -35
  96. package/chunks/{main-BpEXHrXG.js → main-D3vY3EZB.js} +177 -176
  97. package/chunks/{main-DXZDk8yw.js → main-eplFgf8K.js} +3 -3
  98. package/chunks/{main-XzVztuyY.js → main-la4AkVWG.js} +32 -31
  99. package/chunks/{main-BqzP5wNI.js → main-ndsgeKK2.js} +43 -43
  100. package/chunks/{useButton-BuGBhKba.js → useButton-BkNIp1Dt.js} +2 -2
  101. package/chunks/{useConsents-CTrXjPMT.js → useConsents-G3YImrA0.js} +27 -26
  102. package/chunks/{useEventCallback-BL4OQp0i.js → useEventCallback-Bpmr_fht.js} +1 -1
  103. package/chunks/{useForwardedInput-87iBLSE1.js → useForwardedInput-BnX6YP2x.js} +27 -27
  104. package/chunks/{useImageVariant-BpkocGDo.js → useImageVariant-CHZmm8-4.js} +6 -5
  105. package/chunks/{useParticipationDraft-C39xos8n.js → useParticipationDraft-CLycICaf.js} +6 -6
  106. package/chunks/{useSwitch-wS7XLrgV.js → useSwitch-C5TzU7zu.js} +2 -2
  107. package/index.js +4 -4
  108. package/package.json +2 -2
  109. package/chunks/index--sCTbryp.js +0 -4
  110. package/chunks/index-629uVyFa.js +0 -4
  111. package/chunks/index-BJfy__18.js +0 -4
  112. package/chunks/index-DD09ekhb.js +0 -4
  113. package/chunks/index-Dbxw2Q2L.js +0 -4
  114. package/chunks/index-GkKP5Yym.js +0 -4
  115. package/chunks/index-Ke1RX9Pb.js +0 -4
package/EventCard.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { jsx as s, jsxs as S, Fragment as q } from "react/jsx-runtime";
2
2
  import ce, { useState as W, useCallback as he, useEffect as se, useRef as fe, useMemo as oe, useContext as en, useLayoutEffect as tn } from "react";
3
- import { S as nn, _ as rn, T as on, U as sn, a as _e, g as an, u as ln, f as cn, d as un, B as d, D as Ct, A as $e, y as dn, V as mn, p as fn, o as hn, q as pn, r as gn, C as yn, s as xn, E as Sn, t as bn, w as En } from "./chunks/PrizeCard-DG54vy2l.js";
4
- import { S as wn } from "./chunks/Spinner-CfnxZwI6.js";
3
+ import { O as nn, _ as rn, Q as on, T as sn, a as _e, g as an, u as ln, f as cn, d as un, B as d, z as Ct, y as $e, v as dn, R as mn, p as fn, o as hn, q as pn, r as gn, C as yn, s as xn, E as Sn, t as bn, w as En } from "./chunks/PrizeCard-YH9jftwY.js";
4
+ import { S as wn } from "./chunks/Spinner-CP7juuny.js";
5
5
  import { createPortal as Rt } from "react-dom";
6
- import { h as Ce } from "./chunks/helpers-DK7NIWA3.js";
7
- import { E as rt } from "./chunks/EmojiEvents-xseHOk4b.js";
8
- import { T as F } from "./chunks/Typography-ECqxGAdq.js";
9
- import { S as ze } from "./chunks/Sheet-emOLchyd.js";
10
- import { T as Cn } from "./chunks/Tooltip-C8hJsZr9.js";
11
- import { K as Le, a as Rn } from "./chunks/KeyboardArrowDown-BFuNjWbC.js";
12
- import { c as Oe } from "./chunks/createSvgIcon-ZK1E4tSQ.js";
13
- import { I as _n } from "./chunks/InlineSpinner-CvwR2FB_.js";
14
- import { N as Ln } from "./chunks/Notification-1ogsNUiX.js";
15
- import { C as ke, E as On, D as ot } from "./chunks/EditOutlined-BX5qBF8L.js";
16
- import { K as Tn, a as An } from "./chunks/KeyboardArrowRight-DaukpNJR.js";
17
- import { P as Nn } from "./chunks/PersonOutline-ftsY5SqE.js";
6
+ import { h as Ce } from "./chunks/helpers-B4K14VMy.js";
7
+ import { E as rt } from "./chunks/EmojiEvents-YHRdPnXx.js";
8
+ import { T as F } from "./chunks/Typography-Ce4eGDV-.js";
9
+ import { S as ze } from "./chunks/Sheet-Bj4wdH5F.js";
10
+ import { T as Cn } from "./chunks/Tooltip-C9OhGeHY.js";
11
+ import { K as Le, a as Rn } from "./chunks/KeyboardArrowDown-CCFl-_Cw.js";
12
+ import { c as Oe } from "./chunks/createSvgIcon-D9F_KILu.js";
13
+ import { I as _n } from "./chunks/InlineSpinner-CyqM_yQn.js";
14
+ import { N as Ln } from "./chunks/Notification-preGSwrO.js";
15
+ import { C as ke, E as On, D as ot } from "./chunks/EditOutlined-DvZLGuHA.js";
16
+ import { K as Tn, a as An } from "./chunks/KeyboardArrowRight-387qOqAR.js";
17
+ import { P as Nn } from "./chunks/PersonOutline-BHHHU-iP.js";
18
18
  function In(e) {
19
19
  return /* @__PURE__ */ s(nn, rn({}, e, {
20
20
  defaultTheme: on,
@@ -131,9 +131,9 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
131
131
  if (!e) return null;
132
132
  const t = e.trim().split(/\s+/).filter(Boolean);
133
133
  return t.length === 0 ? null : t.length === 1 ? t[0].slice(0, 3).toUpperCase() : t.slice(0, 2).map((n) => n[0]).join("").toUpperCase();
134
- }, Gn = /(LIVE|PROGRESS|PLAY|INPLAY|IN_PLAY|1ST|2ND|HALF|PERIOD)/, Un = /(FINISH|ENDED|FULL[_\s-]?TIME|CLOSED|AFTER_|AET|PEN|\bFT\b)/, Vn = /(CANCEL|POSTPON|ABANDON|SUSPEND|INTERRUPT|WALKOVER|DELAYED)/, Bn = (e, t) => {
134
+ }, Gn = /(LIVE|PROGRESS|PLAY|INPLAY|IN_PLAY|1ST|2ND|HALF|PERIOD)/, Un = /(FINISH|ENDED|FULL[_\s-]?TIME|CLOSED|AFTER_|AET|PEN|\bFT\b)/, Bn = /(CANCEL|POSTPON|ABANDON|SUSPEND|INTERRUPT|WALKOVER|DELAYED)/, Vn = (e, t) => {
135
135
  const n = (e ?? "").toUpperCase();
136
- if (Vn.test(n)) return "CANCELLED";
136
+ if (Bn.test(n)) return "CANCELLED";
137
137
  if (Un.test(n)) return "FINISHED";
138
138
  if (Gn.test(n)) return "LIVE";
139
139
  if (/(UPCOMING|NOT[_\s-]?STARTED|SCHEDULED|FIXTURE|PENDING|NS)/.test(n))
@@ -236,7 +236,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
236
236
  "status_type",
237
237
  "state",
238
238
  "match_status"
239
- ), g = m && typeof m == "object" ? m : null, _ = Q(g ? U(g, "type", "code") : m), y = g ? Q(U(g, "sub_type", "subType", "code")) : null, p = Bn(_, h), f = Jn(e), T = Q(
239
+ ), g = m && typeof m == "object" ? m : null, _ = Q(g ? U(g, "type", "code") : m), y = g ? Q(U(g, "sub_type", "subType", "code")) : null, p = Vn(_, h), f = Jn(e), T = Q(
240
240
  U(e, "competitor_one", "competitorOne", "home_competitor")
241
241
  ) ?? "", L = Q(
242
242
  U(e, "competitor_two", "competitorTwo", "away_competitor")
@@ -262,9 +262,9 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
262
262
  const x = f.get("penalties") ?? f.get("penalty_shootout"), b = x && (x.one !== null || x.two !== null) ? { home: x.one ?? "", away: x.two ?? "" } : null;
263
263
  let C = null;
264
264
  if (p === "FINISHED") {
265
- const V = Number(R.score), B = Number(w.score);
266
- if (!Number.isNaN(V) && !Number.isNaN(B) && V !== B)
267
- C = V > B ? "home" : "away";
265
+ const B = Number(R.score), V = Number(w.score);
266
+ if (!Number.isNaN(B) && !Number.isNaN(V) && B !== V)
267
+ C = B > V ? "home" : "away";
268
268
  else if (b) {
269
269
  const ne = Number(b.home), ae = Number(b.away);
270
270
  !Number.isNaN(ne) && !Number.isNaN(ae) && ne !== ae && (C = ne > ae ? "home" : "away");
@@ -272,7 +272,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
272
272
  }
273
273
  const I = Q(
274
274
  U(e, "competition_id", "competitionId")
275
- ), N = (n == null ? void 0 : n.season) ?? null, H = Q(U(e, "stage_id", "stageId")), v = H ? ((N == null ? void 0 : N.stages) ?? []).find((V) => V.id === H) ?? null : null, P = (n == null ? void 0 : n.name) ?? (n == null ? void 0 : n.shortName) ?? Q(U(e, "competition_name", "competition")), Y = (N == null ? void 0 : N.year) || (N == null ? void 0 : N.name) || null, $ = (((z = N == null ? void 0 : N.stages) == null ? void 0 : z.length) ?? 0) <= 1, M = ((j = v == null ? void 0 : v.stageNameModel) == null ? void 0 : j.name) ?? null, k = $ ? r ?? M : M;
275
+ ), N = (n == null ? void 0 : n.season) ?? null, H = Q(U(e, "stage_id", "stageId")), v = H ? ((N == null ? void 0 : N.stages) ?? []).find((B) => B.id === H) ?? null : null, P = (n == null ? void 0 : n.name) ?? (n == null ? void 0 : n.shortName) ?? Q(U(e, "competition_name", "competition")), Y = (N == null ? void 0 : N.year) || (N == null ? void 0 : N.name) || null, $ = (((z = N == null ? void 0 : N.stages) == null ? void 0 : z.length) ?? 0) <= 1, M = ((j = v == null ? void 0 : v.stageNameModel) == null ? void 0 : j.name) ?? null, k = $ ? r ?? M : M;
276
276
  return {
277
277
  id: a,
278
278
  sport: u,
@@ -399,10 +399,10 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
399
399
  if (M) {
400
400
  const { unit: k, n: z } = M;
401
401
  let j = k;
402
- const V = {};
403
- (k === "overtime" || k === "extraTime") && (j = z != null ? `${k}N` : k), z != null && (V.n = z), $.phaseLabel = o(`eventCard.phase.${j}`, V);
404
- let B;
405
- k === "halftime" || k === "penalties" || k === "break" || (k === "overtime" || k === "extraTime") && z == null ? B = k : z != null && z >= 1 && z <= dt.length ? B = `${dt[z - 1]}${or(k)}` : B = k, $.phaseLabelFull = o(`eventCard.phaseFull.${B}`);
402
+ const B = {};
403
+ (k === "overtime" || k === "extraTime") && (j = z != null ? `${k}N` : k), z != null && (B.n = z), $.phaseLabel = o(`eventCard.phase.${j}`, B);
404
+ let V;
405
+ k === "halftime" || k === "penalties" || k === "break" || (k === "overtime" || k === "extraTime") && z == null ? V = k : z != null && z >= 1 && z <= dt.length ? V = `${dt[z - 1]}${or(k)}` : V = k, $.phaseLabelFull = o(`eventCard.phaseFull.${V}`);
406
406
  }
407
407
  }
408
408
  a($), m(!1);
@@ -1638,7 +1638,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
1638
1638
  ]
1639
1639
  }
1640
1640
  );
1641
- }, Vt = ({
1641
+ }, Bt = ({
1642
1642
  homeSets: e,
1643
1643
  awaySets: t,
1644
1644
  expanded: n,
@@ -1719,7 +1719,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
1719
1719
  ]
1720
1720
  }
1721
1721
  );
1722
- }, Bt = ({
1722
+ }, Vt = ({
1723
1723
  home: e,
1724
1724
  away: t,
1725
1725
  homeSets: n,
@@ -2074,7 +2074,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2074
2074
  marginTop: "0.375em"
2075
2075
  },
2076
2076
  children: /* @__PURE__ */ s(
2077
- Vt,
2077
+ Bt,
2078
2078
  {
2079
2079
  homeSets: e.homeSets,
2080
2080
  awaySets: e.awaySets,
@@ -2086,7 +2086,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2086
2086
  }
2087
2087
  ),
2088
2088
  g && /* @__PURE__ */ s(
2089
- Bt,
2089
+ Vt,
2090
2090
  {
2091
2091
  home: e.home,
2092
2092
  away: e.away,
@@ -2341,7 +2341,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2341
2341
  justifyContent: "center"
2342
2342
  },
2343
2343
  children: /* @__PURE__ */ s(
2344
- Vt,
2344
+ Bt,
2345
2345
  {
2346
2346
  homeSets: e.homeSets,
2347
2347
  awaySets: e.awaySets,
@@ -2377,7 +2377,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2377
2377
  }
2378
2378
  ),
2379
2379
  g && /* @__PURE__ */ s(
2380
- Bt,
2380
+ Vt,
2381
2381
  {
2382
2382
  home: e.home,
2383
2383
  away: e.away,
@@ -2645,7 +2645,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2645
2645
  ]
2646
2646
  }
2647
2647
  );
2648
- }, Ge = 0.1875, Ie = 0.125, Vr = 0.125, Br = ({
2648
+ }, Ge = 0.1875, Ie = 0.125, Br = 0.125, Vr = ({
2649
2649
  outcomes: e,
2650
2650
  labels: t,
2651
2651
  hiddenOutcomes: n,
@@ -2663,7 +2663,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2663
2663
  const C = setTimeout(() => T(!0), 60);
2664
2664
  return () => clearTimeout(C);
2665
2665
  }, []);
2666
- const [L, R] = W(!1), w = `${Vr}em`, E = (C, I, N) => {
2666
+ const [L, R] = W(!1), w = `${Br}em`, E = (C, I, N) => {
2667
2667
  const H = l && !C.isActual && !C.isOwn, v = C.isActual ? m.success : C.isOwn ? m.primary : null, P = v ?? m.primary;
2668
2668
  return /* @__PURE__ */ S(
2669
2669
  d,
@@ -2921,7 +2921,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
2921
2921
  );
2922
2922
  }
2923
2923
  return /* @__PURE__ */ s(
2924
- Br,
2924
+ Vr,
2925
2925
  {
2926
2926
  outcomes: e.outcomes,
2927
2927
  labels: e.outcomes.map((i) => r(i.key)),
@@ -3162,7 +3162,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
3162
3162
  ]
3163
3163
  }
3164
3164
  );
3165
- }, Ue = 1.75, Ve = 2.5, Ye = ({
3165
+ }, Ue = 1.75, Be = 2.5, Ye = ({
3166
3166
  value: e,
3167
3167
  onChange: t,
3168
3168
  min: n,
@@ -3190,8 +3190,8 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
3190
3190
  width: g ? `${Ue}em` : `${Ue * 1.2}em`,
3191
3191
  height: `${Ue}em`,
3192
3192
  "@media (hover: none)": {
3193
- width: g ? `${Ve}em` : `${Ve * 1.2}em`,
3194
- height: `${Ve}em`
3193
+ width: g ? `${Be}em` : `${Be * 1.2}em`,
3194
+ height: `${Be}em`
3195
3195
  },
3196
3196
  flexShrink: 0,
3197
3197
  padding: 0,
@@ -3499,7 +3499,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
3499
3499
  ]
3500
3500
  }
3501
3501
  );
3502
- }, Be = 260, et = ({
3502
+ }, Ve = 260, et = ({
3503
3503
  options: e,
3504
3504
  value: t,
3505
3505
  onChange: n,
@@ -3525,8 +3525,8 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
3525
3525
  }
3526
3526
  (Y = C.current) == null || Y.focus();
3527
3527
  const v = ($) => {
3528
- var j, V, B;
3529
- const M = ((j = $.composedPath) == null ? void 0 : j.call($)[0]) ?? $.target, k = (V = O.current) == null ? void 0 : V.contains(M), z = (B = b.current) == null ? void 0 : B.contains(M);
3528
+ var j, B, V;
3529
+ const M = ((j = $.composedPath) == null ? void 0 : j.call($)[0]) ?? $.target, k = (B = O.current) == null ? void 0 : B.contains(M), z = (V = b.current) == null ? void 0 : V.contains(M);
3530
3530
  !k && !z && T(!1);
3531
3531
  }, P = ($) => {
3532
3532
  $.key === "Escape" && T(!1);
@@ -3617,7 +3617,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
3617
3617
  sx: {
3618
3618
  position: "fixed",
3619
3619
  // Flips above the trigger when the viewport can't fit the list below it.
3620
- ...w.bottom + Be + 8 > window.innerHeight && w.top > Be + 8 ? { bottom: `${window.innerHeight - w.top + 4}px` } : { top: `${w.bottom + 4}px` },
3620
+ ...w.bottom + Ve + 8 > window.innerHeight && w.top > Ve + 8 ? { bottom: `${window.innerHeight - w.top + 4}px` } : { top: `${w.bottom + 4}px` },
3621
3621
  ...a === "right" ? { right: `${window.innerWidth - w.right}px` } : { left: `${w.left}px` },
3622
3622
  zIndex: 30,
3623
3623
  minWidth: `${Math.max(w.width, 176)}px`,
@@ -3676,7 +3676,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
3676
3676
  {
3677
3677
  role: "listbox",
3678
3678
  sx: {
3679
- maxHeight: `${Be}px`,
3679
+ maxHeight: `${Ve}px`,
3680
3680
  overflowY: "auto",
3681
3681
  padding: _["2xs"]
3682
3682
  },
@@ -4250,7 +4250,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4250
4250
  }, z = P === "player" ? Er(o.touched ? o.playerId : i == null ? void 0 : i.playerId, k) : vt(e, $, k), j = (() => {
4251
4251
  const X = o.touched ? o.playerId : i == null ? void 0 : i.playerId;
4252
4252
  return X === void 0 ? null : X === null ? je : X;
4253
- })(), V = {
4253
+ })(), B = {
4254
4254
  display: "inline-flex",
4255
4255
  alignItems: "center",
4256
4256
  justifyContent: "center",
@@ -4271,7 +4271,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4271
4271
  outline: `2px solid ${E.primary}`,
4272
4272
  outlineOffset: "0.0625em"
4273
4273
  }
4274
- }, B = {
4274
+ }, V = {
4275
4275
  display: "inline-flex",
4276
4276
  alignItems: "center",
4277
4277
  justifyContent: "center",
@@ -4546,7 +4546,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4546
4546
  onClick: g,
4547
4547
  "aria-label": p.edit,
4548
4548
  title: p.edit,
4549
- sx: V,
4549
+ sx: B,
4550
4550
  children: /* @__PURE__ */ s(On, { sx: { fontSize: "0.9375em" } })
4551
4551
  }
4552
4552
  ),
@@ -4558,7 +4558,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4558
4558
  onClick: () => N(!0),
4559
4559
  "aria-label": p.remove,
4560
4560
  title: p.remove,
4561
- sx: V,
4561
+ sx: B,
4562
4562
  children: /* @__PURE__ */ s(ot, { sx: { fontSize: "0.9375em" } })
4563
4563
  }
4564
4564
  )
@@ -4754,7 +4754,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4754
4754
  onClick: () => N(!1),
4755
4755
  disabled: H,
4756
4756
  sx: {
4757
- ...B,
4757
+ ...V,
4758
4758
  border: `1px solid ${E.border}`,
4759
4759
  backgroundColor: "transparent",
4760
4760
  color: E.dim,
@@ -4775,7 +4775,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4775
4775
  onClick: ne,
4776
4776
  disabled: H,
4777
4777
  sx: {
4778
- ...B,
4778
+ ...V,
4779
4779
  border: `1px solid ${E.danger}`,
4780
4780
  backgroundColor: E.danger,
4781
4781
  // The theme's readable-on-accent text colour — the palette has no dedicated
@@ -4904,7 +4904,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4904
4904
  variant: "error",
4905
4905
  title: "",
4906
4906
  message: ""
4907
- }), V = he(
4907
+ }), B = he(
4908
4908
  (A) => j({
4909
4909
  open: !0,
4910
4910
  variant: "error",
@@ -4912,7 +4912,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4912
4912
  message: w("common.error.message")
4913
4913
  }),
4914
4914
  [w]
4915
- ), B = he(
4915
+ ), V = he(
4916
4916
  (A) => Y[A] ?? Ke,
4917
4917
  [Y]
4918
4918
  ), ne = he(
@@ -4944,12 +4944,12 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4944
4944
  }),
4945
4945
  [w]
4946
4946
  ), J = oe(
4947
- () => e.map((A) => ({ market: A, draft: B(A) })).filter(({ draft: A }) => A.touched && wr(A.value)).map(({ market: A, draft: K }) => ({
4947
+ () => e.map((A) => ({ market: A, draft: V(A) })).filter(({ draft: A }) => A.touched && wr(A.value)).map(({ market: A, draft: K }) => ({
4948
4948
  market: A,
4949
4949
  value: K.value,
4950
4950
  playerId: K.playerId
4951
4951
  })),
4952
- [e, B]
4952
+ [e, V]
4953
4953
  ), re = e.filter(
4954
4954
  (A) => r.has(A)
4955
4955
  ).length, ue = !!L && L.size > 0, xe = o && !ue ? e.filter((A) => r.has(A)) : e, Se = J.length > 0 || re < e.length, ie = M || J.length === 0, G = async () => {
@@ -4973,7 +4973,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4973
4973
  editing: !1
4974
4974
  };
4975
4975
  }), le;
4976
- }), ee.length > 0 && V(w("predictor.errors.submitFailed")), K.forEach((te) => {
4976
+ }), ee.length > 0 && B(w("predictor.errors.submitFailed")), K.forEach((te) => {
4977
4977
  const le = J.find((Zt) => Zt.market === te);
4978
4978
  if (!le) return;
4979
4979
  const ge = A.get(te) ?? null;
@@ -4986,7 +4986,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4986
4986
  }, de = he(
4987
4987
  async (A) => {
4988
4988
  const K = r.get(A) ?? null, ee = await y(A);
4989
- return ee || V(w("predictor.errors.deleteFailed")), ee && ($((te) => {
4989
+ return ee || B(w("predictor.errors.deleteFailed")), ee && ($((te) => {
4990
4990
  const le = { ...te };
4991
4991
  return delete le[A], le;
4992
4992
  }), T == null || T(
@@ -4995,7 +4995,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
4995
4995
  null
4996
4996
  )), ee;
4997
4997
  },
4998
- [y, V, w, T, r]
4998
+ [y, B, w, T, r]
4999
4999
  ), we = (p ? Array.from(p.values()) : []).reduce((A, K) => A + K.total, 0), X = f && we > 0 ? /* @__PURE__ */ S(
5000
5000
  d,
5001
5001
  {
@@ -5242,7 +5242,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
5242
5242
  home: t,
5243
5243
  away: n,
5244
5244
  existing: r.get(A) ?? null,
5245
- draft: B(A),
5245
+ draft: V(A),
5246
5246
  locked: o,
5247
5247
  canDelete: l,
5248
5248
  onChange: (K, ee) => ne(A, {
@@ -5391,17 +5391,17 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
5391
5391
  de.playerId
5392
5392
  );
5393
5393
  }), G;
5394
- }, [H]), V = oe(
5394
+ }, [H]), B = oe(
5395
5395
  () => vr($, E, {
5396
5396
  results: z,
5397
5397
  ownKeys: j
5398
5398
  }),
5399
5399
  [$, E, z, j]
5400
- ), B = oe(
5400
+ ), V = oe(
5401
5401
  () => new Map(
5402
- V.map((G) => [G.market, G])
5402
+ B.map((G) => [G.market, G])
5403
5403
  ),
5404
- [V]
5404
+ [B]
5405
5405
  ), ne = ({
5406
5406
  children: G
5407
5407
  }) => /* @__PURE__ */ s(
@@ -5486,7 +5486,7 @@ const Fn = Oe(/* @__PURE__ */ s("path", {
5486
5486
  playerName: N,
5487
5487
  submit: P,
5488
5488
  remove: Y,
5489
- crowd: M ? void 0 : B,
5489
+ crowd: M ? void 0 : V,
5490
5490
  crowdLabels: M ? void 0 : xe,
5491
5491
  results: Se,
5492
5492
  resultLabel: c("eventCard.predictions.actualResult"),
package/EventGamePlay.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as a } from "./chunks/main-XzVztuyY.js";
1
+ import { M as a } from "./chunks/main-la4AkVWG.js";
2
2
  const t = a;
3
3
  export {
4
4
  t as EventGamePlay
package/Leaderboard.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { jsxs as E, jsx as l, Fragment as ce } from "react/jsx-runtime";
2
2
  import z, { useState as B, useEffect as Q, useCallback as me, useMemo as D } from "react";
3
- import { a as X, b as fe, y as he, z as ge, g as G, f as de, u as O, d as j, B as L, c as ue, m as be, p as ye, o as xe, q as Ce, r as ve, C as Te, s as Pe, E as Se, t as we, w as Ee } from "./chunks/PrizeCard-DG54vy2l.js";
4
- import { A as J } from "./chunks/AlertMessage-DioJxnEH.js";
3
+ import { a as X, b as fe, v as he, x as ge, g as G, f as de, u as O, d as j, B as L, c as ue, m as be, p as ye, o as xe, q as Ce, r as ve, C as Te, s as Pe, E as Se, t as we, w as Ee } from "./chunks/PrizeCard-YH9jftwY.js";
4
+ import { A as J } from "./chunks/AlertMessage-DBbObbCr.js";
5
5
  import { createPortal as Ae } from "react-dom";
6
- import { F as Ie } from "./chunks/FormLabel-Ddvg7Uaw.js";
7
- import { T as R } from "./chunks/Typography-ECqxGAdq.js";
8
- import { S as Re, a as Le } from "./chunks/Select-Dvq1fOJv.js";
9
- import { P as ee } from "./chunks/Person-CtBkSz4s.js";
10
- import { h as U, a as Me } from "./chunks/helpers-DK7NIWA3.js";
11
- import { S as ze } from "./chunks/Spinner-CfnxZwI6.js";
12
- import { S as Be } from "./chunks/Sheet-emOLchyd.js";
13
- import { T as Fe } from "./chunks/Table-DU0BCrKV.js";
14
- import { A as te } from "./chunks/Avatar-BDK_vO0c.js";
15
- import { D as H } from "./chunks/DirectionScope-oLk_U3C_.js";
16
- import { I as k, B as re } from "./chunks/Button-CsvEgUxT.js";
6
+ import { F as Ie } from "./chunks/FormLabel-COGIjfEx.js";
7
+ import { T as R } from "./chunks/Typography-Ce4eGDV-.js";
8
+ import { S as Re, a as Le } from "./chunks/Select-osvV4zXY.js";
9
+ import { P as ee } from "./chunks/Person-DFs8t3vY.js";
10
+ import { h as U, a as Me } from "./chunks/helpers-B4K14VMy.js";
11
+ import { S as ze } from "./chunks/Spinner-CP7juuny.js";
12
+ import { S as Be } from "./chunks/Sheet-Bj4wdH5F.js";
13
+ import { T as Fe } from "./chunks/Table-DvjSYLKy.js";
14
+ import { A as te } from "./chunks/Avatar-Bs2ODH24.js";
15
+ import { D as H } from "./chunks/DirectionScope-BYGJWPAq.js";
16
+ import { I as k, B as re } from "./chunks/Button-By0gW9vl.js";
17
17
  import { C as Ue, a as $e } from "./chunks/chevrons-right-CXSpQt9w.js";
18
18
  import { C as Qe, a as He } from "./chunks/chevron-right-eZEqQ93O.js";
19
19
  const ke = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()).join(" "), _e = ({