fansunited-frontend-components 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/ChanceGame.js +45 -45
  2. package/ClassicQuizPlay.js +184 -183
  3. package/CollectLead.js +16 -15
  4. package/Discussion.js +1 -1
  5. package/EitherOrPlay.js +66 -65
  6. package/EventGamePlay.js +68 -67
  7. package/Leaderboard.js +22 -22
  8. package/MatchQuizPlay.js +82 -81
  9. package/PersonalityQuizPlay.js +77 -76
  10. package/PickThePair.js +42 -42
  11. package/PollVote.js +53 -52
  12. package/Predictor.js +75 -75
  13. package/README.md +272 -0
  14. package/chunks/{AlertMessage-D4Uc6n5U.js → AlertMessage-Ds45MBHB.js} +3 -3
  15. package/chunks/{ArrowRightAlt-wEs8SY1V.js → ArrowRightAlt-DKADQN2o.js} +1 -1
  16. package/chunks/{Avatar-BXHdXHLA.js → Avatar-K1EWhhkA.js} +2 -2
  17. package/chunks/{ChanceGameEmbedVariant-DfS5LPpp.js → ChanceGameEmbedVariant-DqFg4YKU.js} +31 -29
  18. package/chunks/{CheckCircle-CU2itira.js → CheckCircle-CV9iMpkZ.js} +1 -1
  19. package/chunks/{Close-DBt1nfGo.js → Close-BHp4N1-6.js} +1 -1
  20. package/chunks/{Close-C5SGTkPr.js → Close-C6Cw96SJ.js} +1 -1
  21. package/chunks/{CollectLeadForm-BqjgPYKX.js → CollectLeadForm-DnLKA8qz.js} +13 -13
  22. package/chunks/{Divider-Cbns9B3Y.js → Divider-BvUimRFw.js} +2 -2
  23. package/chunks/{Edit-BVP8fCB4.js → Edit-CZ3ni-Ur.js} +4 -4
  24. package/chunks/{EmojiEvents-D_ObJxNy.js → EmojiEvents-DpmLq98V.js} +1 -1
  25. package/chunks/{FavoriteBorder-_mUf1vas.js → FavoriteBorder-DUK_DrY4.js} +1 -1
  26. package/chunks/{FormControl-DLBvX-Sn.js → FormControl-BUItlVIg.js} +3 -3
  27. package/chunks/{FormLabel-jXtScWTI.js → FormLabel-CeTNPUn7.js} +2 -2
  28. package/chunks/{Input-Cha_dm3J.js → Input-MJCQcYzo.js} +2 -2
  29. package/chunks/{KeyboardArrowDown-C_8g8wLS.js → KeyboardArrowDown-SZpn2GhJ.js} +1 -1
  30. package/chunks/{ModalDialog-Co3jck0z.js → ModalDialog-Cfgv9UAA.js} +2 -2
  31. package/chunks/{NotFoundSkeleton-D5Jh3lnu.js → NotFoundSkeleton-Cs6DtD9u.js} +13 -12
  32. package/chunks/{Notification-r1Fm0If2.js → Notification-pcKtlRms.js} +4 -4
  33. package/chunks/{OverlayApiErrorSkeleton-BUuD0zL8.js → OverlayApiErrorSkeleton-Dl3s5Oaf.js} +20 -19
  34. package/chunks/{OverlayLeadAfterCollection-B-N1OjPu.js → OverlayLeadAfterCollection-F2TAV9wK.js} +14 -12
  35. package/chunks/{OverlayScoreStateSkeleton-Bd3-ZNlU.js → OverlayScoreStateSkeleton-LQ0svzeX.js} +3 -3
  36. package/chunks/{Person-K8GGMiAW.js → Person-BGdniS_p.js} +1 -1
  37. package/chunks/{PickOneOfX-CvIn7QOd.js → PickOneOfX-Ci4ZJf7G.js} +8 -7
  38. package/chunks/{Popper-Bti_HOMS.js → Popper-DOVSI4rJ.js} +1 -1
  39. package/chunks/{Portal-B-nN3a_R.js → Portal-Cs0dgwmH.js} +1 -1
  40. package/chunks/{index-Btf_jw7-.js → PrizeCard-DF3QxwQJ.js} +0 -1
  41. package/chunks/{Select-C2QtqgA7.js → Select-BHeTdOYr.js} +3 -3
  42. package/chunks/{Spinner-D7-MZe2m.js → Spinner-DbUB64Gj.js} +1 -1
  43. package/chunks/{SplitLeadAfterCollection-CyXBWAIK.js → SplitLeadAfterCollection-DSw6X5fx.js} +36 -34
  44. package/chunks/{Stack-CU36SsgA.js → Stack-BpHk5eb0.js} +1 -1
  45. package/chunks/{StandardContentSkeleton-CYduGHsc.js → StandardContentSkeleton-Bae1LLQ_.js} +1 -1
  46. package/chunks/{Tabs-CA-FqQfT.js → Tabs-hwJ7jsUl.js} +3 -3
  47. package/chunks/{Textarea-Cn4VvCBl.js → Textarea-zOtMdgc5.js} +3 -3
  48. package/chunks/{TimerOutlined-DOpryr42.js → TimerOutlined-DWE7f0YX.js} +1 -1
  49. package/chunks/{helpers-1jFObSvc.js → helpers-NuC1SzL3.js} +1 -1
  50. package/chunks/index-BaypiKlO.js +4 -0
  51. package/chunks/{main-Chqd9Wwn.js → main-hB01WcoP.js} +88 -88
  52. package/chunks/{useEventCallback-CkO2rd5W.js → useEventCallback-CizlfWBo.js} +1 -1
  53. package/chunks/{useForwardedInput-C3SP2QmS.js → useForwardedInput-RWDntqBU.js} +2 -2
  54. package/chunks/{useImageVariant-BJ722AFw.js → useImageVariant-Cex1eIqq.js} +1 -1
  55. package/index.js +1 -1
  56. package/package.json +1 -1
  57. package/chunks/index-CyODGG_P.js +0 -4
package/Predictor.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { jsx as o, jsxs as g, Fragment as Fe } from "react/jsx-runtime";
2
- import { m as ce, a as pe, e as ae, B as u, f as Ie, b as xe, c as ye, T as k, j as Pe, g as Nt, C as _t, i as Nr, I as gt, u as il, l as ds, d as sl } from "./chunks/index-Btf_jw7-.js";
3
- import * as _r from "react";
4
- import we, { createContext as Ut, useContext as Ue, useState as F, useCallback as Z, useRef as ve, useMemo as ie, useEffect as se, useId as Ur, Component as al, useLayoutEffect as Kr, useInsertionEffect as us, forwardRef as ll, Fragment as ps, createElement as cl, Children as dl, isValidElement as ul, lazy as pl, Suspense as hl } from "react";
5
- import { u as fl, d as ml, b as gl, e as xl, o as yl } from "./chunks/index-D1K1OB4p.js";
6
- import { S as bl } from "./chunks/Stack-CU36SsgA.js";
7
- import { F as vl, C as Sl } from "./chunks/FormControl-DLBvX-Sn.js";
8
- import { S as wr, T as kr, P as tn } from "./chunks/Person-K8GGMiAW.js";
9
- import { C as Cl, a as wl } from "./chunks/chevrons-right-CRIN5sOe.js";
10
- import { C as kl, a as Tl } from "./chunks/chevron-right-B3IZtaMT.js";
11
- import { n as Ze, h as Wt } from "./chunks/helpers-1jFObSvc.js";
12
- import { S as Ll } from "./chunks/Spinner-D7-MZe2m.js";
13
- import { A as On } from "./chunks/Avatar-BXHdXHLA.js";
14
- import { E as jt } from "./chunks/EmojiEvents-D_ObJxNy.js";
15
- import { M as Yr, a as Gr } from "./chunks/ModalDialog-Co3jck0z.js";
16
- import { createPortal as Pl } from "react-dom";
17
- import { C as hs } from "./chunks/Close-DBt1nfGo.js";
18
- import { I as sn } from "./chunks/Input-Cha_dm3J.js";
19
- import { T as fs } from "./chunks/Textarea-Cn4VvCBl.js";
20
- import { N as jn } from "./chunks/Notification-r1Fm0If2.js";
21
- import { K as Il, a as Rl } from "./chunks/KeyboardArrowDown-C_8g8wLS.js";
22
- import { D as Al } from "./chunks/Divider-Cbns9B3Y.js";
23
- import { P as $l } from "./chunks/Portal-B-nN3a_R.js";
2
+ import * as Nr from "react";
3
+ import we, { createContext as Nt, useContext as Ue, useState as F, useCallback as Z, useRef as ve, useMemo as ie, useEffect as se, useId as _r, Component as il, useLayoutEffect as Ur, useInsertionEffect as ds, forwardRef as sl, Fragment as us, createElement as al, Children as ll, isValidElement as cl, lazy as dl, Suspense as ul } from "react";
4
+ import { m as ce, a as pe, e as ae, B as u, f as Ie, b as xe, c as ye, T as k, j as Pe, g as _t, C as Ut, i as Kr, I as gt, u as pl, l as ps, d as hl } from "./chunks/PrizeCard-DF3QxwQJ.js";
5
+ import { P as fl } from "./chunks/Portal-Cs0dgwmH.js";
6
+ import { createPortal as ml } from "react-dom";
7
+ import { u as gl, d as xl, b as yl, e as bl, o as vl } from "./chunks/index-D1K1OB4p.js";
8
+ import { S as Sl } from "./chunks/Stack-BpHk5eb0.js";
9
+ import { F as Cl, C as wl } from "./chunks/FormControl-BUItlVIg.js";
10
+ import { S as wr, T as kr, P as tn } from "./chunks/Person-BGdniS_p.js";
11
+ import { n as Ze, h as Wt } from "./chunks/helpers-NuC1SzL3.js";
12
+ import { S as kl } from "./chunks/Spinner-DbUB64Gj.js";
13
+ import { C as Tl, a as Ll } from "./chunks/chevrons-right-CRIN5sOe.js";
14
+ import { C as Pl, a as Il } from "./chunks/chevron-right-B3IZtaMT.js";
15
+ import { A as On } from "./chunks/Avatar-K1EWhhkA.js";
16
+ import { E as jt } from "./chunks/EmojiEvents-DpmLq98V.js";
17
+ import { N as jn } from "./chunks/Notification-pcKtlRms.js";
18
+ import { M as Yr, a as Gr } from "./chunks/ModalDialog-Cfgv9UAA.js";
19
+ import { C as hs } from "./chunks/Close-BHp4N1-6.js";
20
+ import { I as sn } from "./chunks/Input-MJCQcYzo.js";
21
+ import { T as fs } from "./chunks/Textarea-zOtMdgc5.js";
22
+ import { K as Rl, a as Al } from "./chunks/KeyboardArrowDown-SZpn2GhJ.js";
23
+ import { D as $l } from "./chunks/Divider-BvUimRFw.js";
24
24
  const Fl = ce(/* @__PURE__ */ o("path", {
25
25
  d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72"
26
26
  }), "AccessTimeRounded"), Mo = ce(/* @__PURE__ */ o("path", {
@@ -109,7 +109,7 @@ const Fl = ce(/* @__PURE__ */ o("path", {
109
109
  d: "M12 5.99 19.53 19H4.47zM2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1m0 5h2v2h-2z"
110
110
  }), "WarningAmberRounded"), nc = ce(/* @__PURE__ */ o("path", {
111
111
  d: "M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6m0 15-4 1.02v-3.1c1.18.68 2.54 1.08 4 1.08s2.82-.4 4-1.08v3.1z"
112
- }), "WorkspacePremiumOutlined"), ws = Ut(null), rc = ({ children: e, ...t }) => /* @__PURE__ */ o(ws.Provider, { value: t, children: e }), pt = () => {
112
+ }), "WorkspacePremiumOutlined"), ws = Nt(null), rc = ({ children: e, ...t }) => /* @__PURE__ */ o(ws.Provider, { value: t, children: e }), pt = () => {
113
113
  const e = Ue(ws);
114
114
  if (!e)
115
115
  throw new Error(
@@ -251,7 +251,7 @@ function ks({
251
251
  sdk: e,
252
252
  matchIds: t,
253
253
  markets: n = ["1x2"],
254
- oddType: r = xl.ALL,
254
+ oddType: r = bl.ALL,
255
255
  isLive: i = !1,
256
256
  pollingIntervalMs: a = hc,
257
257
  operatorId: s
@@ -266,9 +266,9 @@ function ks({
266
266
  try {
267
267
  const C = {
268
268
  oddType: r,
269
- scopeType: fl.ORDINARY_TIME,
270
- oddFormat: ml.DECIMAL,
271
- marketTypes: [gl.FT_1X2]
269
+ scopeType: gl.ORDINARY_TIME,
270
+ oddFormat: xl.DECIMAL,
271
+ marketTypes: [yl.FT_1X2]
272
272
  }, y = await e.odds.getByMatchIds(t, C);
273
273
  let v = dc(y);
274
274
  if (s) {
@@ -378,9 +378,9 @@ const xc = ({
378
378
  p.current(m);
379
379
  }, [c]), e.length === 0) return null;
380
380
  const f = t ?? /* @__PURE__ */ new Set();
381
- return /* @__PURE__ */ o(bl, { spacing: 1, children: e.map((m) => {
381
+ return /* @__PURE__ */ o(Sl, { spacing: 1, children: e.map((m) => {
382
382
  const x = f.has(m.consentId), b = !!c[m.consentId];
383
- return /* @__PURE__ */ o(vl, { disabled: x, size: "sm", children: /* @__PURE__ */ g(
383
+ return /* @__PURE__ */ o(Cl, { disabled: x, size: "sm", children: /* @__PURE__ */ g(
384
384
  u,
385
385
  {
386
386
  component: "label",
@@ -392,7 +392,7 @@ const xc = ({
392
392
  },
393
393
  children: [
394
394
  /* @__PURE__ */ o(
395
- Sl,
395
+ wl,
396
396
  {
397
397
  checked: b,
398
398
  disabled: x,
@@ -733,7 +733,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
733
733
  try {
734
734
  const V = await t.predictor.makeFootballPrediction(
735
735
  e,
736
- yl.CORRECT_SCORE_ADVANCED,
736
+ vl.CORRECT_SCORE_ADVANCED,
737
737
  `${c}:${h}`
738
738
  );
739
739
  m(!0), S.current = !1, y("success"), i == null || i({
@@ -2237,7 +2237,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
2237
2237
  matchCardBgImageUrl: c
2238
2238
  }) => {
2239
2239
  var le, J, ge, Re, me, Te, Se, X, Ce, ue, Le, it, Ct, nt;
2240
- const { t: d } = Ie("common"), h = pe(), p = ye(), f = ae(), m = xe(), { sdk: x, userIsLoggedIn: b } = pt(), { language: C } = Nt(_t), y = ie(() => new Date(e.kickoffAt), [e.kickoffAt]), v = e.status === "FINISHED", w = e.status === "LIVE", S = y < /* @__PURE__ */ new Date() && v, P = 15 * 60 * 1e3, T = !v && (w || Date.now() >= y.getTime() - P), I = e.homeScore ?? null, L = e.awayScore ?? null, [R, A] = F(!1), O = Z(
2240
+ const { t: d } = Ie("common"), h = pe(), p = ye(), f = ae(), m = xe(), { sdk: x, userIsLoggedIn: b } = pt(), { language: C } = _t(Ut), y = ie(() => new Date(e.kickoffAt), [e.kickoffAt]), v = e.status === "FINISHED", w = e.status === "LIVE", S = y < /* @__PURE__ */ new Date() && v, P = 15 * 60 * 1e3, T = !v && (w || Date.now() >= y.getTime() - P), I = e.homeScore ?? null, L = e.awayScore ?? null, [R, A] = F(!1), O = Z(
2241
2241
  (He) => n == null ? void 0 : n(e.id, He),
2242
2242
  [e.id, n]
2243
2243
  ), $ = Z(
@@ -3045,7 +3045,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3045
3045
  playTabBanners: r,
3046
3046
  matchCardBgImageUrl: i
3047
3047
  }) => {
3048
- const { t: a } = Ie("common"), s = pe(), l = ye(), c = ae(), d = xe(), h = Nr(), { entityId: p, sdk: f, userIsLoggedIn: m } = pt(), { language: x } = Nt(_t), { ensureConsents: b, modal: C } = bc(), y = (e == null ? void 0 : e.groups) ?? [], v = ie(
3048
+ const { t: a } = Ie("common"), s = pe(), l = ye(), c = ae(), d = xe(), h = Kr(), { entityId: p, sdk: f, userIsLoggedIn: m } = pt(), { language: x } = _t(Ut), { ensureConsents: b, modal: C } = bc(), y = (e == null ? void 0 : e.groups) ?? [], v = ie(
3049
3049
  () => Zc(y),
3050
3050
  [y]
3051
3051
  ), [w, S] = F(v), P = ve(v);
@@ -3376,7 +3376,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3376
3376
  onClick: () => d(1),
3377
3377
  disabled: c || t === 1,
3378
3378
  sx: C(),
3379
- children: /* @__PURE__ */ o(Cl, { size: x })
3379
+ children: /* @__PURE__ */ o(Tl, { size: x })
3380
3380
  }
3381
3381
  ),
3382
3382
  /* @__PURE__ */ o(
@@ -3388,7 +3388,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3388
3388
  onClick: () => d(t - 1),
3389
3389
  disabled: c || t === 1,
3390
3390
  sx: C(),
3391
- children: /* @__PURE__ */ o(kl, { size: x })
3391
+ children: /* @__PURE__ */ o(Pl, { size: x })
3392
3392
  }
3393
3393
  ),
3394
3394
  f.map((y, v) => {
@@ -3433,7 +3433,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3433
3433
  onClick: () => d(t + 1),
3434
3434
  disabled: c || t === e,
3435
3435
  sx: C(),
3436
- children: /* @__PURE__ */ o(Tl, { size: x })
3436
+ children: /* @__PURE__ */ o(Il, { size: x })
3437
3437
  }
3438
3438
  ),
3439
3439
  s && /* @__PURE__ */ o(
@@ -3445,7 +3445,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3445
3445
  onClick: () => d(e),
3446
3446
  disabled: c || t === e,
3447
3447
  sx: C(),
3448
- children: /* @__PURE__ */ o(wl, { size: x })
3448
+ children: /* @__PURE__ */ o(Ll, { size: x })
3449
3449
  }
3450
3450
  )
3451
3451
  ]
@@ -3453,7 +3453,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3453
3453
  );
3454
3454
  }, ed = 10, td = () => {
3455
3455
  var B, z;
3456
- const { t: e } = Ie("common"), t = pe(), n = ae(), r = xe(), i = ye(), a = il(), s = ds(), { entityId: l, sdk: c, userIsLoggedIn: d } = pt(), h = ((z = (B = t.palette) == null ? void 0 : B.primary) == null ? void 0 : z.plainColor) ?? t.textPrimary, p = a.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", f = t.textColor ?? t.textPrimary, m = t.surfaceVariant, x = t.outlineEnabledBorder, [b, C] = F([]), [y, v] = F(null), [w, S] = F(null), [P, T] = F(!0), [I, L] = F(null), [R, A] = F(1), [O, $] = F(1);
3456
+ const { t: e } = Ie("common"), t = pe(), n = ae(), r = xe(), i = ye(), a = pl(), s = ps(), { entityId: l, sdk: c, userIsLoggedIn: d } = pt(), h = ((z = (B = t.palette) == null ? void 0 : B.primary) == null ? void 0 : z.plainColor) ?? t.textPrimary, p = a.colorSchemes.light.palette.primary.onPrimary ?? "#ffffff", f = t.textColor ?? t.textPrimary, m = t.surfaceVariant, x = t.outlineEnabledBorder, [b, C] = F([]), [y, v] = F(null), [w, S] = F(null), [P, T] = F(!0), [I, L] = F(null), [R, A] = F(1), [O, $] = F(1);
3457
3457
  se(() => {
3458
3458
  A(1), $(1), v(null), S(null);
3459
3459
  }, [l, c]), se(() => {
@@ -3622,7 +3622,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3622
3622
  }
3623
3623
  };
3624
3624
  if (P)
3625
- return /* @__PURE__ */ o(Ll, { my: 10 });
3625
+ return /* @__PURE__ */ o(kl, { my: 10 });
3626
3626
  if (I)
3627
3627
  return /* @__PURE__ */ o(k, { level: "body-lg", sx: M.noLeaderboardText, children: e("predictor.errors.loadFailed") });
3628
3628
  if (b.length === 0)
@@ -3708,7 +3708,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
3708
3708
  onCopyCode: i
3709
3709
  }) => {
3710
3710
  var T, I, L, R;
3711
- const { t: a } = Ie("common"), s = pe(), l = ye(), c = ae(), d = xe(), h = sl(), [p, f] = F(!1), [m, x] = F(!1), b = ve(null), C = ve(null);
3711
+ const { t: a } = Ie("common"), s = pe(), l = ye(), c = ae(), d = xe(), h = hl(), [p, f] = F(!1), [m, x] = F(!1), b = ve(null), C = ve(null);
3712
3712
  se(() => {
3713
3713
  if (!p) return;
3714
3714
  const A = ($) => {
@@ -4600,7 +4600,7 @@ const vc = 0, Sc = 20, Tt = (e) => Math.max(vc, Math.min(Sc, e)), Cc = ({
4600
4600
  title: n,
4601
4601
  children: r
4602
4602
  }) => {
4603
- const i = pe(), a = ae(), s = xe(), l = ye(), { shadowRootElement: c } = Nt(_t);
4603
+ const i = pe(), a = ae(), s = xe(), l = ye(), { shadowRootElement: c } = _t(Ut);
4604
4604
  return /* @__PURE__ */ o(
4605
4605
  Yr,
4606
4606
  {
@@ -4972,7 +4972,7 @@ function lr({
4972
4972
  isCompareMode: b = !1,
4973
4973
  dotSize: C = 12
4974
4974
  }) {
4975
- const y = ae(), [v, w] = F(null), S = ve([]), { shadowRootElement: P } = Nt(_t), T = (W) => ({ correct: i, partial: a, incorrect: s, pending: l })[W], I = (W) => ({
4975
+ const y = ae(), [v, w] = F(null), S = ve([]), { shadowRootElement: P } = _t(Ut), T = (W) => ({ correct: i, partial: a, incorrect: s, pending: l })[W], I = (W) => ({
4976
4976
  correct: x("predictor.outcomes.correct"),
4977
4977
  partial: x("predictor.outcomes.correctPartial"),
4978
4978
  incorrect: x("predictor.outcomes.incorrect"),
@@ -5011,7 +5011,7 @@ function lr({
5011
5011
  },
5012
5012
  H
5013
5013
  )),
5014
- v && $ && Pl(
5014
+ v && $ && ml(
5015
5015
  /* @__PURE__ */ g(
5016
5016
  u,
5017
5017
  {
@@ -8711,17 +8711,17 @@ class Xp extends At {
8711
8711
  this.removePointerDownListener(), this.session && this.session.end();
8712
8712
  }
8713
8713
  }
8714
- const or = Ut(null);
8714
+ const or = Nt(null);
8715
8715
  function qp() {
8716
8716
  const e = Ue(or);
8717
8717
  if (e === null)
8718
8718
  return [!0, null];
8719
- const { isPresent: t, onExitComplete: n, register: r } = e, i = Ur();
8719
+ const { isPresent: t, onExitComplete: n, register: r } = e, i = _r();
8720
8720
  se(() => r(i), []);
8721
8721
  const a = Z(() => n && n(i), [i, n]);
8722
8722
  return !t && n ? [!1, a] : [!0];
8723
8723
  }
8724
- const vo = Ut({}), Ta = Ut({}), Dn = {
8724
+ const vo = Nt({}), Ta = Nt({}), Dn = {
8725
8725
  /**
8726
8726
  * Global flag as to whether the tree has animated since the last time
8727
8727
  * we resized the window
@@ -8763,7 +8763,7 @@ function Jp(e) {
8763
8763
  Object.assign(Xn, e);
8764
8764
  }
8765
8765
  const { schedule: So, cancel: Cg } = Ps(queueMicrotask, !1);
8766
- class Qp extends al {
8766
+ class Qp extends il {
8767
8767
  /**
8768
8768
  * This only mounts projection nodes for components that
8769
8769
  * need measuring, we might want to do it for all components
@@ -9789,11 +9789,11 @@ const Kh = {
9789
9789
  ProjectionNode: Ma,
9790
9790
  MeasureLayout: La
9791
9791
  }
9792
- }, Co = Ut({
9792
+ }, Co = Nt({
9793
9793
  transformPagePoint: (e) => e,
9794
9794
  isStatic: !1,
9795
9795
  reducedMotion: "never"
9796
- }), ir = Ut({}), wo = typeof window < "u", Va = wo ? Kr : se, Da = Ut({ strict: !1 });
9796
+ }), ir = Nt({}), wo = typeof window < "u", Va = wo ? Ur : se, Da = Nt({ strict: !1 });
9797
9797
  function Gh(e, t, n, r, i) {
9798
9798
  var a, s;
9799
9799
  const { visualElement: l } = Ue(ir), c = Ue(Da), d = Ue(or), h = Ue(Co).reducedMotion, p = ve();
@@ -9808,7 +9808,7 @@ function Gh(e, t, n, r, i) {
9808
9808
  const f = p.current, m = Ue(Ta);
9809
9809
  f && !f.projection && i && (f.type === "html" || f.type === "svg") && Xh(p.current, n, i, m);
9810
9810
  const x = ve(!1);
9811
- us(() => {
9811
+ ds(() => {
9812
9812
  f && x.current && f.update(n, d);
9813
9813
  });
9814
9814
  const b = n[la], C = ve(!!b && !(!((a = window.MotionHandoffIsComplete) === null || a === void 0) && a.call(window, b)) && ((s = window.MotionHasOptimisedAnimation) === null || s === void 0 ? void 0 : s.call(window, b)));
@@ -9929,7 +9929,7 @@ function tf({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
9929
9929
  }
9930
9930
  return g(ir.Provider, { value: f, children: [d && f.visualElement ? o(d, { visualElement: f.visualElement, ...h }) : null, n(i, l, qh(m, f.visualElement, c), m, p, f.visualElement)] });
9931
9931
  }
9932
- const s = ll(a);
9932
+ const s = sl(a);
9933
9933
  return s[ef] = i, s;
9934
9934
  }
9935
9935
  function nf({ layoutId: e }) {
@@ -10306,8 +10306,8 @@ function kf(e, t, n, r) {
10306
10306
  }
10307
10307
  function Tf(e = !1) {
10308
10308
  return (n, r, i, { latestValues: a }, s) => {
10309
- const c = (ko(n) ? kf : vf)(r, a, s, n), d = wf(r, typeof n == "string", e), h = n !== ps ? { ...d, ...c, ref: i } : {}, { children: p } = r, f = ie(() => Ge(p) ? p.get() : p, [p]);
10310
- return cl(n, {
10309
+ const c = (ko(n) ? kf : vf)(r, a, s, n), d = wf(r, typeof n == "string", e), h = n !== us ? { ...d, ...c, ref: i } : {}, { children: p } = r, f = ie(() => Ge(p) ? p.get() : p, [p]);
10310
+ return al(n, {
10311
10311
  ...h,
10312
10312
  children: f
10313
10313
  });
@@ -10631,14 +10631,14 @@ class Mf extends Za {
10631
10631
  }
10632
10632
  }
10633
10633
  const zf = (e, t) => ko(e) ? new Mf(t) : new Ef(t, {
10634
- allowProjection: e !== ps
10634
+ allowProjection: e !== us
10635
10635
  }), Vf = /* @__PURE__ */ Lf({
10636
10636
  ...kp,
10637
10637
  ...Kh,
10638
10638
  ...zh,
10639
10639
  ...Yh
10640
10640
  }, zf), Df = /* @__PURE__ */ md(Vf);
10641
- class Wf extends _r.Component {
10641
+ class Wf extends Nr.Component {
10642
10642
  getSnapshotBeforeUpdate(t) {
10643
10643
  const n = this.props.childRef.current;
10644
10644
  if (n && t.isPresent && !this.props.isPresent) {
@@ -10657,13 +10657,13 @@ class Wf extends _r.Component {
10657
10657
  }
10658
10658
  }
10659
10659
  function Bf({ children: e, isPresent: t }) {
10660
- const n = Ur(), r = ve(null), i = ve({
10660
+ const n = _r(), r = ve(null), i = ve({
10661
10661
  width: 0,
10662
10662
  height: 0,
10663
10663
  top: 0,
10664
10664
  left: 0
10665
10665
  }), { nonce: a } = Ue(Co);
10666
- return us(() => {
10666
+ return ds(() => {
10667
10667
  const { width: s, height: l, top: c, left: d } = i.current;
10668
10668
  if (t || !r.current || !s || !l)
10669
10669
  return;
@@ -10680,10 +10680,10 @@ function Bf({ children: e, isPresent: t }) {
10680
10680
  `), () => {
10681
10681
  document.head.removeChild(h);
10682
10682
  };
10683
- }, [t]), o(Wf, { isPresent: t, childRef: r, sizeRef: i, children: _r.cloneElement(e, { ref: r }) });
10683
+ }, [t]), o(Wf, { isPresent: t, childRef: r, sizeRef: i, children: Nr.cloneElement(e, { ref: r }) });
10684
10684
  }
10685
10685
  const Of = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: s }) => {
10686
- const l = Lo(jf), c = Ur(), d = Z((p) => {
10686
+ const l = Lo(jf), c = _r(), d = Z((p) => {
10687
10687
  l.set(p, !0);
10688
10688
  for (const f of l.values())
10689
10689
  if (!f)
@@ -10707,7 +10707,7 @@ const Of = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
10707
10707
  );
10708
10708
  return ie(() => {
10709
10709
  l.forEach((p, f) => l.set(f, !1));
10710
- }, [n]), _r.useEffect(() => {
10710
+ }, [n]), Nr.useEffect(() => {
10711
10711
  !n && !l.size && r && r();
10712
10712
  }, [n]), s === "popLayout" && (e = o(Bf, { isPresent: n, children: e })), o(or.Provider, { value: h, children: e });
10713
10713
  };
@@ -10717,8 +10717,8 @@ function jf() {
10717
10717
  const En = (e) => e.key || "";
10718
10718
  function ns(e) {
10719
10719
  const t = [];
10720
- return dl.forEach(e, (n) => {
10721
- ul(n) && t.push(n);
10720
+ return ll.forEach(e, (n) => {
10721
+ cl(n) && t.push(n);
10722
10722
  }), t;
10723
10723
  }
10724
10724
  const Hf = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExitComplete: i, presenceAffectsLayout: a = !0, mode: s = "sync" }) => {
@@ -12672,7 +12672,7 @@ const am = ({
12672
12672
  currentUserPoints: x = 0
12673
12673
  }) => {
12674
12674
  var Ae, ne, ze, lt, st, $o, Fo, Eo;
12675
- const { t: b } = Ie("common"), C = pe(), y = ae(), v = xe(), w = ye(), S = ds(), { shadowRootElement: P, language: T } = Nt(_t), { sdk: I } = pt(), { template: L } = Ja(r, I), R = ((ne = (Ae = C.palette) == null ? void 0 : Ae.primary) == null ? void 0 : ne.plainColor) ?? "#1A77D2", A = ((lt = (ze = C.palette) == null ? void 0 : ze.success) == null ? void 0 : lt.plainColor) ?? "#4CAF50", O = (($o = (st = C.palette) == null ? void 0 : st.warning) == null ? void 0 : $o.plainColor) ?? "#DC6803", $ = ((Eo = (Fo = C.palette) == null ? void 0 : Fo.danger) == null ? void 0 : Eo.plainColor) ?? "#F44336", M = C.textPrimary ?? "#212121", E = C.textSecondary ?? "#757575", B = C.textTertiary ?? C.textSecondary ?? "#9E9E9E", z = C.surface ?? "#FFFFFF", D = C.surfaceVariant ?? "#F5F5F5", N = C.outlineEnabledBorder ?? "#E0E0E0", V = `${N}88`, [j, W] = F(/* @__PURE__ */ new Map()), [H, Y] = F([]), [re, de] = F(!1), [he, U] = F("all"), [Q, fe] = F("profile"), [ee, le] = F(!1), [J, ge] = F(0), [Re, me] = F(!1), [Te, Se] = F(!1), X = ve(null), Ce = ve(null), ue = ie(
12675
+ const { t: b } = Ie("common"), C = pe(), y = ae(), v = xe(), w = ye(), S = ps(), { shadowRootElement: P, language: T } = _t(Ut), { sdk: I } = pt(), { template: L } = Ja(r, I), R = ((ne = (Ae = C.palette) == null ? void 0 : Ae.primary) == null ? void 0 : ne.plainColor) ?? "#1A77D2", A = ((lt = (ze = C.palette) == null ? void 0 : ze.success) == null ? void 0 : lt.plainColor) ?? "#4CAF50", O = (($o = (st = C.palette) == null ? void 0 : st.warning) == null ? void 0 : $o.plainColor) ?? "#DC6803", $ = ((Eo = (Fo = C.palette) == null ? void 0 : Fo.danger) == null ? void 0 : Eo.plainColor) ?? "#F44336", M = C.textPrimary ?? "#212121", E = C.textSecondary ?? "#757575", B = C.textTertiary ?? C.textSecondary ?? "#9E9E9E", z = C.surface ?? "#FFFFFF", D = C.surfaceVariant ?? "#F5F5F5", N = C.outlineEnabledBorder ?? "#E0E0E0", V = `${N}88`, [j, W] = F(/* @__PURE__ */ new Map()), [H, Y] = F([]), [re, de] = F(!1), [he, U] = F("all"), [Q, fe] = F("profile"), [ee, le] = F(!1), [J, ge] = F(0), [Re, me] = F(!1), [Te, Se] = F(!1), X = ve(null), Ce = ve(null), ue = ie(
12676
12676
  () => Jf(
12677
12677
  H,
12678
12678
  j,
@@ -16602,7 +16602,7 @@ const am = ({
16602
16602
  ]
16603
16603
  }
16604
16604
  );
16605
- }, Pm = we.memo(Lm), Im = pl(() => import("./chunks/index-CyODGG_P.js")), Rm = ({
16605
+ }, Pm = we.memo(Lm), Im = dl(() => import("./chunks/index-BaypiKlO.js")), Rm = ({
16606
16606
  league: e,
16607
16607
  onBack: t,
16608
16608
  onLeagueLeft: n,
@@ -16616,7 +16616,7 @@ const am = ({
16616
16616
  onSelectLeague: h
16617
16617
  }) => {
16618
16618
  var kt, $t, ht, Ft, K;
16619
- const { t: p } = Ie("common"), f = pe(), m = ae(), x = xe(), b = ye(), { sdk: C, language: y, themeOptions: v, userIsLoggedIn: w, signInCTA: S } = pt(), { language: P } = Nt(_t), [T, I] = F(a ?? null), [L, R] = F(
16619
+ const { t: p } = Ie("common"), f = pe(), m = ae(), x = xe(), b = ye(), { sdk: C, language: y, themeOptions: v, userIsLoggedIn: w, signInCTA: S } = pt(), { language: P } = _t(Ut), [T, I] = F(a ?? null), [L, R] = F(
16620
16620
  s ?? null
16621
16621
  ), [A, O] = F(
16622
16622
  l ?? null
@@ -16951,7 +16951,7 @@ const am = ({
16951
16951
  }
16952
16952
  ),
16953
16953
  z === "discussion" && /* @__PURE__ */ o(u, { sx: { p: m.md, backgroundColor: f.surface }, children: /* @__PURE__ */ o(
16954
- hl,
16954
+ ul,
16955
16955
  {
16956
16956
  fallback: /* @__PURE__ */ o(
16957
16957
  u,
@@ -17285,7 +17285,7 @@ const am = ({
17285
17285
  title: n,
17286
17286
  children: r
17287
17287
  }) => {
17288
- const i = pe(), a = ae(), s = xe(), l = ye(), { shadowRootElement: c } = Nt(_t);
17288
+ const i = pe(), a = ae(), s = xe(), l = ye(), { shadowRootElement: c } = _t(Ut);
17289
17289
  return /* @__PURE__ */ o(
17290
17290
  Yr,
17291
17291
  {
@@ -17448,7 +17448,7 @@ const am = ({
17448
17448
  var ee, le, J, ge, Re, me, Te, Se;
17449
17449
  const { t: n } = Ie("common"), r = pe(), i = ae(), a = xe(), s = ye(), { sdk: l, entityId: c } = pt(), [d, h] = F(!1), [p, f] = F(""), [m, x] = F(""), [b, C] = F(!0), [y, v] = F(""), [w, S] = F(
17450
17450
  () => Cr()
17451
- ), [P, T] = F(!1), [I, L] = F(""), [R, A] = F(!1), [O, $] = F(!1), [M, E] = F({}), [B, z] = F(null), [D, N] = F({ open: !1, variant: "success", title: "", message: "" }), V = Nr(), j = ((le = (ee = r.palette) == null ? void 0 : ee.primary) == null ? void 0 : le.plainColor) ?? "#e53e3e", W = ((ge = (J = r.palette) == null ? void 0 : J.primary) == null ? void 0 : ge.onPrimary) ?? "#fff", H = (me = (Re = r.palette) == null ? void 0 : Re.primary) == null ? void 0 : me.primaryButtonGradient, Y = ((Se = (Te = r.palette) == null ? void 0 : Te.danger) == null ? void 0 : Se.plainColor) ?? "#dc2626", re = Z(() => {
17451
+ ), [P, T] = F(!1), [I, L] = F(""), [R, A] = F(!1), [O, $] = F(!1), [M, E] = F({}), [B, z] = F(null), [D, N] = F({ open: !1, variant: "success", title: "", message: "" }), V = Kr(), j = ((le = (ee = r.palette) == null ? void 0 : ee.primary) == null ? void 0 : le.plainColor) ?? "#e53e3e", W = ((ge = (J = r.palette) == null ? void 0 : J.primary) == null ? void 0 : ge.onPrimary) ?? "#fff", H = (me = (Re = r.palette) == null ? void 0 : Re.primary) == null ? void 0 : me.primaryButtonGradient, Y = ((Se = (Te = r.palette) == null ? void 0 : Te.danger) == null ? void 0 : Se.plainColor) ?? "#dc2626", re = Z(() => {
17452
17452
  S(Cr()), f(""), x(""), C(!0), v(""), E({}), T(!1), h(!0);
17453
17453
  }, []), de = async () => {
17454
17454
  try {
@@ -19605,7 +19605,7 @@ const Bm = ({ t: e }) => /* @__PURE__ */ o(
19605
19605
  color: "neutral",
19606
19606
  onClick: () => i(-1),
19607
19607
  "aria-label": "previous",
19608
- children: /* @__PURE__ */ o(Il, { sx: { fontSize: 14 } })
19608
+ children: /* @__PURE__ */ o(Rl, { sx: { fontSize: 14 } })
19609
19609
  }
19610
19610
  ),
19611
19611
  /* @__PURE__ */ o(
@@ -19616,7 +19616,7 @@ const Bm = ({ t: e }) => /* @__PURE__ */ o(
19616
19616
  color: "neutral",
19617
19617
  onClick: () => i(1),
19618
19618
  "aria-label": "next",
19619
- children: /* @__PURE__ */ o(Rl, { sx: { fontSize: 14 } })
19619
+ children: /* @__PURE__ */ o(Al, { sx: { fontSize: 14 } })
19620
19620
  }
19621
19621
  )
19622
19622
  ] }),
@@ -19651,7 +19651,7 @@ const Bm = ({ t: e }) => /* @__PURE__ */ o(
19651
19651
  () => ({ bg: t.warnSoftBg, color: t.warnColor }),
19652
19652
  [t.warnSoftBg, t.warnColor]
19653
19653
  );
19654
- Kr(() => {
19654
+ Ur(() => {
19655
19655
  s.current && (s.current.innerHTML = i);
19656
19656
  }, [i]), se(() => {
19657
19657
  if (!s.current) return;
@@ -19999,7 +19999,7 @@ const Bm = ({ t: e }) => /* @__PURE__ */ o(
19999
19999
  }), b.current && (b.current.scrollTop = 0);
20000
20000
  }, [s]);
20001
20001
  const y = a.find((L) => L.id === s), v = a.findIndex((L) => L.id === s), w = a[v - 1], S = a[v + 1];
20002
- Kr(() => {
20002
+ Ur(() => {
20003
20003
  m.current && (m.current.innerHTML = (y == null ? void 0 : y.html) ?? "");
20004
20004
  }, [y == null ? void 0 : y.html]);
20005
20005
  const P = Z(() => {
@@ -20166,7 +20166,7 @@ const Bm = ({ t: e }) => /* @__PURE__ */ o(
20166
20166
  ]
20167
20167
  }
20168
20168
  ),
20169
- /* @__PURE__ */ o(Al, { sx: { flex: 1 } }),
20169
+ /* @__PURE__ */ o($l, { sx: { flex: 1 } }),
20170
20170
  /* @__PURE__ */ g(
20171
20171
  k,
20172
20172
  {
@@ -20244,7 +20244,7 @@ const Bm = ({ t: e }) => /* @__PURE__ */ o(
20244
20244
  )
20245
20245
  ] });
20246
20246
  }, Km = we.memo(Um), Ym = ({ template: e, loading: t }) => {
20247
- const { t: n } = Ie("common"), r = pe(), i = ye(), a = ae(), s = xe(), l = Nr(), c = ie(
20247
+ const { t: n } = Ie("common"), r = pe(), i = ye(), a = ae(), s = xe(), l = Kr(), c = ie(
20248
20248
  () => {
20249
20249
  var d, h, p, f, m, x, b, C, y, v;
20250
20250
  return {
@@ -20676,7 +20676,7 @@ const Zm = ({ template: e, loading: t }) => {
20676
20676
  )
20677
20677
  }
20678
20678
  );
20679
- }, Qm = (e) => /* @__PURE__ */ o($l, { packageName: "predictor", ...e, children: /* @__PURE__ */ o(Jm, { ...e }) }), kg = Qm;
20679
+ }, Qm = (e) => /* @__PURE__ */ o(fl, { packageName: "predictor", ...e, children: /* @__PURE__ */ o(Jm, { ...e }) }), kg = Qm;
20680
20680
  export {
20681
20681
  kg as Predictor
20682
20682
  };