fansunited-frontend-components 0.0.67 → 0.0.69

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 (91) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +66 -66
  3. package/ClassicQuizPlay.js +20 -20
  4. package/CollectLead.js +6 -6
  5. package/Discussion.js +1 -1
  6. package/EitherOrPlay.js +77 -77
  7. package/EventCard.js +4439 -0
  8. package/EventGamePlay.js +29 -27
  9. package/Leaderboard.js +95 -95
  10. package/MatchQuizPlay.js +208 -207
  11. package/PersonalityQuizPlay.js +19 -19
  12. package/PickThePair.js +9 -9
  13. package/PlayerOfTheMatch.js +188 -69
  14. package/PollVote.js +17 -17
  15. package/Predictor.js +8192 -6359
  16. package/README.md +113 -1
  17. package/Standings.js +231 -251
  18. package/TopX.js +70 -68
  19. package/chunks/{AccessTime-D7JlgCS_.js → AccessTime-7cim24ED.js} +3 -3
  20. package/chunks/{AlertMessage-D-cFYJtj.js → AlertMessage-X4MQ4qsN.js} +14 -14
  21. package/chunks/{ArrowRightAlt-BWEyQ4rF.js → ArrowRightAlt-DrBMgptf.js} +10 -10
  22. package/chunks/{Avatar-BtqTJz-0.js → Avatar-RBMU1Gkk.js} +20 -20
  23. package/chunks/{Button-BPtVuOyn.js → Button-GawVOPKi.js} +59 -76
  24. package/chunks/Card--xcz3SKi.js +195 -0
  25. package/chunks/{CardActions-jWCcpjQr.js → CardActions-CPwvcLGp.js} +19 -19
  26. package/chunks/{CardContent-D776lu64.js → CardContent-Ew6fr-KR.js} +7 -7
  27. package/chunks/{ChanceGameEmbedVariant-CJJnKkOG.js → ChanceGameEmbedVariant-Dio4ihOd.js} +9 -9
  28. package/chunks/CheckCircle-DgKcR_no.js +8 -0
  29. package/chunks/{Chip-isuqGl2h.js → Chip-CYpaygnD.js} +65 -64
  30. package/chunks/{Close-BDwyGxjj.js → Close-CdJNGcLx.js} +1 -1
  31. package/chunks/{Close-DGsfMhw8.js → Close-D2mtuGDo.js} +1 -1
  32. package/chunks/{CollectLeadForm-B1FGVWj4.js → CollectLeadForm-D0P_JHmT.js} +46 -44
  33. package/chunks/{Divider-RJTJH6No.js → Divider-DcW0V71y.js} +7 -7
  34. package/chunks/{Edit-CqpNynUG.js → Edit-Bcj6J4rt.js} +38 -44
  35. package/chunks/EditOutlined-PCc4gafz.js +11 -0
  36. package/chunks/{EmojiEvents-CxftZVbi.js → EmojiEvents-g001ss_z.js} +1 -1
  37. package/chunks/{FavoriteBorder-_0szWv8_.js → FavoriteBorder-Lr6swB6-.js} +1 -1
  38. package/chunks/{FormControl-CvjmoRuK.js → FormControl-BKlK7WPd.js} +24 -24
  39. package/chunks/{CheckCircle-DKzwnhnr.js → FormControlContext-B2HqeXgq.js} +44 -48
  40. package/chunks/{FormLabel-B6QTd99o.js → FormLabel-C47pX5hN.js} +8 -8
  41. package/chunks/InlineSpinner-Imz27zb2.js +28 -0
  42. package/chunks/{Input-BD1363mh.js → Input-nS_KO1Bu.js} +7 -7
  43. package/chunks/{KeyboardArrowDown-Bip53hQC.js → KeyboardArrowDown-CyZAOE-W.js} +3 -3
  44. package/chunks/KeyboardArrowRight-FI0kqwO1.js +11 -0
  45. package/chunks/{Link-B5vthpLg.js → Link-DKU7kDL8.js} +24 -24
  46. package/chunks/{ListItemButton-Dosv66vv.js → ListItemButton-CPVIEVpf.js} +33 -32
  47. package/chunks/{ModalDialog-Dn3_dWTo.js → ModalDialog-DDx8wQa3.js} +57 -56
  48. package/chunks/NotFoundSkeleton-CJZIRj5-.js +1244 -0
  49. package/chunks/{Notification-D20IfSF7.js → Notification-BvVfrrB3.js} +55 -61
  50. package/chunks/{OverlayApiErrorSkeleton-BdzLPy8g.js → OverlayApiErrorSkeleton-JMWA0FV8.js} +16 -16
  51. package/chunks/{OverlayLeadAfterCollection-C-rM0D5V.js → OverlayLeadAfterCollection-BwF9MvIB.js} +10 -10
  52. package/chunks/{OverlayScoreStateSkeleton-ChdCokGv.js → OverlayScoreStateSkeleton-CAhCAjkS.js} +10 -10
  53. package/chunks/{Person-OeVVOCoA.js → Person-DB_bEPcg.js} +1 -1
  54. package/chunks/PersonOutline-BAOtfb1t.js +8 -0
  55. package/chunks/{PickOneOfX-wiZPfKD5.js → PickOneOfX-Dp6fzXJn.js} +3 -3
  56. package/chunks/{Popper-DST5zEgT.js → Popper-Bpy7eYt-.js} +20 -20
  57. package/chunks/{Portal-DJylIbob.js → Portal-Dvh4m8kk.js} +4 -4
  58. package/chunks/{Portal-CVkKDGuY.js → Portal-bNE7Trh9.js} +8 -8
  59. package/chunks/{PrizeCard-DlK8irk1.js → PrizeCard-CXjFADAN.js} +279 -41
  60. package/chunks/{Search-B4FMXDHP.js → Search-uVJw-NhK.js} +1 -1
  61. package/chunks/{Select-DOCvesLO.js → Select-BeixD4Vw.js} +100 -99
  62. package/chunks/{Sheet-Co4lPFez.js → Sheet-vOgATocO.js} +15 -15
  63. package/chunks/{Spinner-00hTC1QH.js → Spinner-C219bcnm.js} +2 -2
  64. package/chunks/{SplitLeadAfterCollection-BUX0MjWC.js → SplitLeadAfterCollection-BijLacCk.js} +6 -6
  65. package/chunks/{Stack-CB_N08X-.js → Stack-JIDLCVx0.js} +18 -18
  66. package/chunks/{StandardContentSkeleton-0vB361fl.js → StandardContentSkeleton-DsGBNMHN.js} +1 -1
  67. package/chunks/{Table-Damdp0vr.js → Table-Cx7htUDp.js} +5 -5
  68. package/chunks/{Tabs-CiKqMnto.js → Tabs-CIJK8YZY.js} +23 -22
  69. package/chunks/{Textarea-BuSqmmKr.js → Textarea-KSwIUuq8.js} +37 -37
  70. package/chunks/{TimerOutlined-DC5foG2M.js → TimerOutlined-BUL4BZFp.js} +3 -3
  71. package/chunks/Tooltip-DrP2vx9i.js +534 -0
  72. package/chunks/Typography-DFdgIDQS.js +1429 -0
  73. package/chunks/dividerClasses-BtSFa36Z.js +9 -0
  74. package/chunks/elementAcceptingRef-CZFKGdxR.js +25 -0
  75. package/chunks/getReactElementRef-B3MFPBbS.js +21 -0
  76. package/chunks/{helpers-DQsdRliV.js → helpers-D8cWUfGf.js} +1 -1
  77. package/chunks/{index-B2VYQmtm.js → index-DZqXLvFO.js} +198 -204
  78. package/chunks/index-JDeYpSi1.js +4 -0
  79. package/chunks/{main-DSGHgdtY.js → main-C05CZWMa.js} +142 -141
  80. package/chunks/{main-D7MsMIjF.js → main-CHr45Z4W.js} +34 -34
  81. package/chunks/{ownerWindow-DbqHERs5.js → ownerWindow-PI509BpA.js} +1 -1
  82. package/chunks/useButton-tjUHKc-B.js +105 -0
  83. package/chunks/{useEventCallback-BDs4A_JZ.js → useEventCallback-BFPi8YtI.js} +1 -1
  84. package/chunks/{useForwardedInput-WirbkSwI.js → useForwardedInput-VvmRv9KU.js} +3 -3
  85. package/chunks/{useImageVariant-DMs19-UC.js → useImageVariant-Cs6lWUs2.js} +1 -1
  86. package/index.js +43 -1858
  87. package/package.json +2 -2
  88. package/chunks/Card-24cIw_HU.js +0 -217
  89. package/chunks/NotFoundSkeleton-T4NKrhfx.js +0 -1770
  90. package/chunks/Typography-BFCXsYfo.js +0 -1529
  91. package/chunks/index-CFw8sMh-.js +0 -4
package/EitherOrPlay.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import { jsx as t, jsxs as g, Fragment as De } from "react/jsx-runtime";
2
2
  import { useState as D, useEffect as me, useRef as qe, useCallback as Oe } from "react";
3
- import { r as Pe, b as be, q as ze, B as r, u as se, l as xe, a as K, c as fe, e as pe, I as Ht, j as Me, k as jt, W as Se, s as St, i as Gt } from "./chunks/PrizeCard-DlK8irk1.js";
4
- import { P as Vt } from "./chunks/Portal-CVkKDGuY.js";
3
+ import { l as Pe, d as be, k as ze, B as r, u as se, i as xe, b as K, c as fe, f as pe, G as Ht, a as Me, e as Gt, W as Se, m as St, n as jt } from "./chunks/PrizeCard-CXjFADAN.js";
4
+ import { P as Vt } from "./chunks/Portal-bNE7Trh9.js";
5
5
  import "react-dom";
6
- import { S as He } from "./chunks/Spinner-00hTC1QH.js";
6
+ import { S as He } from "./chunks/Spinner-C219bcnm.js";
7
7
  import { Z as Nt } from "./chunks/index-BBrO1Htm.js";
8
- import { g as Yt, h as re, e as je, a as Ct } from "./chunks/helpers-DQsdRliV.js";
9
- import { S as _t, N as qt, O as Kt } from "./chunks/NotFoundSkeleton-T4NKrhfx.js";
10
- import { u as Xt, b as Ge, d as Ke, a as Xe } from "./chunks/useImageVariant-DMs19-UC.js";
11
- import { A as Ze, O as Zt } from "./chunks/ArrowRightAlt-BWEyQ4rF.js";
12
- import { T as x } from "./chunks/Typography-BFCXsYfo.js";
13
- import { F as Fe, a as It } from "./chunks/FavoriteBorder-_0szWv8_.js";
14
- import { E as ve } from "./chunks/EmojiEvents-CxftZVbi.js";
15
- import { B as ge } from "./chunks/Button-BPtVuOyn.js";
16
- import { C as Ne } from "./chunks/CheckCircle-DKzwnhnr.js";
17
- import { T as Jt } from "./chunks/TimerOutlined-DC5foG2M.js";
18
- import { S as we } from "./chunks/Stack-CB_N08X-.js";
19
- import { A as Qt } from "./chunks/AccessTime-D7JlgCS_.js";
20
- import { A as en, S as Tt, O as tn } from "./chunks/OverlayApiErrorSkeleton-BdzLPy8g.js";
21
- import { P as nn } from "./chunks/Person-OeVVOCoA.js";
22
- import { S as rn } from "./chunks/Sheet-Co4lPFez.js";
23
- import { T as on } from "./chunks/Table-Damdp0vr.js";
24
- import { A as ln } from "./chunks/Avatar-BtqTJz-0.js";
25
- import { t as vt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-CiKqMnto.js";
26
- import { S as an, a as sn, O as cn, b as dn } from "./chunks/OverlayLeadAfterCollection-C-rM0D5V.js";
27
- import { C as un } from "./chunks/CollectLeadForm-B1FGVWj4.js";
8
+ import { g as Yt, h as re, e as Ge, a as Ct } from "./chunks/helpers-D8cWUfGf.js";
9
+ import { S as _t, N as qt, O as Kt } from "./chunks/NotFoundSkeleton-CJZIRj5-.js";
10
+ import { u as Xt, b as je, d as Ke, a as Xe } from "./chunks/useImageVariant-Cs6lWUs2.js";
11
+ import { A as Ze, O as Zt } from "./chunks/ArrowRightAlt-DrBMgptf.js";
12
+ import { T as x } from "./chunks/Typography-DFdgIDQS.js";
13
+ import { F as Fe, a as It } from "./chunks/FavoriteBorder-Lr6swB6-.js";
14
+ import { E as ve } from "./chunks/EmojiEvents-g001ss_z.js";
15
+ import { B as ge } from "./chunks/Button-GawVOPKi.js";
16
+ import { C as Ne } from "./chunks/CheckCircle-DgKcR_no.js";
17
+ import { T as Jt } from "./chunks/TimerOutlined-BUL4BZFp.js";
18
+ import { S as we } from "./chunks/Stack-JIDLCVx0.js";
19
+ import { A as Qt } from "./chunks/AccessTime-7cim24ED.js";
20
+ import { A as en, S as Tt, O as tn } from "./chunks/OverlayApiErrorSkeleton-JMWA0FV8.js";
21
+ import { P as nn } from "./chunks/Person-DB_bEPcg.js";
22
+ import { S as rn } from "./chunks/Sheet-vOgATocO.js";
23
+ import { T as on } from "./chunks/Table-Cx7htUDp.js";
24
+ import { A as ln } from "./chunks/Avatar-RBMU1Gkk.js";
25
+ import { t as vt, T as Pt, a as kt, b as Ee, c as We } from "./chunks/Tabs-CIJK8YZY.js";
26
+ import { S as an, a as sn, O as cn, b as dn } from "./chunks/OverlayLeadAfterCollection-BwF9MvIB.js";
27
+ import { C as un } from "./chunks/CollectLeadForm-D0P_JHmT.js";
28
28
  const Ye = Pe(/* @__PURE__ */ t("path", {
29
29
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
30
30
  }), "Cancel"), At = Pe(/* @__PURE__ */ t("path", {
@@ -244,7 +244,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
244
244
  flexDirection: "column",
245
245
  backdropFilter: "blur(4px)"
246
246
  },
247
- children: B.map((j, U) => {
247
+ children: B.map((G, U) => {
248
248
  const N = U === B.length - 1;
249
249
  return /* @__PURE__ */ g(r, { children: [
250
250
  /* @__PURE__ */ g(
@@ -272,7 +272,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
272
272
  justifyContent: "center",
273
273
  flexShrink: 0
274
274
  },
275
- children: j.icon
275
+ children: G.icon
276
276
  }
277
277
  ),
278
278
  /* @__PURE__ */ g(r, { sx: { flex: 1, minWidth: 0, pt: "2px" }, children: [
@@ -286,7 +286,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
286
286
  lineHeight: 1.3,
287
287
  color: y
288
288
  },
289
- children: j.title
289
+ children: G.title
290
290
  }
291
291
  ),
292
292
  /* @__PURE__ */ t(
@@ -301,7 +301,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
301
301
  opacity: 0.65,
302
302
  mt: p["2xs"]
303
303
  },
304
- children: j.description
304
+ children: G.description
305
305
  }
306
306
  )
307
307
  ] })
@@ -755,7 +755,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
755
755
  game: a
756
756
  }) => {
757
757
  var X, oe, ee, te, ie, ce, _, H, w, $;
758
- const [m, y] = D(0), [b, h] = D(!1), [I, O] = D(0), [p, S] = D(0), [C, P] = D(!1), c = qe(0), { t: B } = se(), k = xe(), v = ze(), W = K(), R = W.surfaceVariant, F = u || W.palette.primary.plainColor, E = ((oe = (X = a == null ? void 0 : a.branding) == null ? void 0 : X.colors) == null ? void 0 : oe.contentColor) || W.textColor, L = fe().md, o = pe(), z = re(R || ""), j = re(F || ""), U = k ? ((te = (ee = a == null ? void 0 : a.branding) == null ? void 0 : ee.images) == null ? void 0 : te.mobileLogo) || ((ce = (ie = a == null ? void 0 : a.branding) == null ? void 0 : ie.images) == null ? void 0 : ce.mainLogo) || "" : ((H = (_ = a == null ? void 0 : a.branding) == null ? void 0 : _.images) == null ? void 0 : H.mainLogo) || "", N = B("common.labels.point", { count: m });
758
+ const [m, y] = D(0), [b, h] = D(!1), [I, O] = D(0), [p, S] = D(0), [C, P] = D(!1), c = qe(0), { t: B } = se(), k = xe(), v = ze(), W = K(), R = W.surfaceVariant, F = u || W.palette.primary.plainColor, E = ((oe = (X = a == null ? void 0 : a.branding) == null ? void 0 : X.colors) == null ? void 0 : oe.contentColor) || W.textColor, L = fe().md, o = pe(), z = re(R || ""), G = re(F || ""), U = k ? ((te = (ee = a == null ? void 0 : a.branding) == null ? void 0 : ee.images) == null ? void 0 : te.mobileLogo) || ((ce = (ie = a == null ? void 0 : a.branding) == null ? void 0 : ie.images) == null ? void 0 : ce.mainLogo) || "" : ((H = (_ = a == null ? void 0 : a.branding) == null ? void 0 : _.images) == null ? void 0 : H.mainLogo) || "", N = B("common.labels.point", { count: m });
759
759
  me(() => {
760
760
  if (l != null && l.currentPoints && l.currentPoints > m) {
761
761
  O(l.currentPoints - m), h(!0), S((V) => V + 1);
@@ -791,14 +791,14 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
791
791
  {
792
792
  sx: {
793
793
  height: 20,
794
- color: j ? `rgba(${j.replace(/[^\d,]/g, "")}, 0.35)` : `${F}59`
794
+ color: G ? `rgba(${G.replace(/[^\d,]/g, "")}, 0.35)` : `${F}59`
795
795
  }
796
796
  },
797
797
  `empty-${Z}`
798
798
  )
799
799
  );
800
800
  return A;
801
- }, G = () => {
801
+ }, j = () => {
802
802
  const A = (l == null ? void 0 : l.currentStreak) ?? 0, V = C ? T : A % T, le = Math.floor(A / T) + 1;
803
803
  return /* @__PURE__ */ g(r, { sx: { display: "flex", alignItems: "center", gap: "4px" }, children: [
804
804
  Array.from({ length: T }, (he, Q) => /* @__PURE__ */ t(
@@ -807,7 +807,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
807
807
  sx: {
808
808
  flex: 1,
809
809
  height: 4,
810
- bgcolor: Q < V ? F : j ? `rgba(${j.replace(/[^\d,]/g, "")}, 0.2)` : `${F}33`,
810
+ bgcolor: Q < V ? F : G ? `rgba(${G.replace(/[^\d,]/g, "")}, 0.2)` : `${F}33`,
811
811
  borderRadius: "2px",
812
812
  transition: "background-color 0.3s ease"
813
813
  }
@@ -938,7 +938,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
938
938
  }
939
939
  ),
940
940
  /* @__PURE__ */ g(r, { children: [
941
- /* @__PURE__ */ t(r, { sx: { mb: o.xs }, children: G() }),
941
+ /* @__PURE__ */ t(r, { sx: { mb: o.xs }, children: j() }),
942
942
  /* @__PURE__ */ g(
943
943
  we,
944
944
  {
@@ -1041,16 +1041,16 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1041
1041
  }
1042
1042
  })();
1043
1043
  }, [e, n, i]), !e) return null;
1044
- const j = e.steps.filter((A) => A.played), U = j.filter((A) => A.correct === !0).length, N = j.filter(
1044
+ const G = e.steps.filter((A) => A.played), U = G.filter((A) => A.correct === !0).length, N = G.filter(
1045
1045
  (A) => A.correct === !1 && A.userSelection !== null
1046
- ).length, Y = j.filter(
1046
+ ).length, Y = G.filter(
1047
1047
  (A) => A.userSelection === null
1048
- ).length, T = j.length, M = yn(
1048
+ ).length, T = G.length, M = yn(
1049
1049
  U,
1050
1050
  T,
1051
1051
  e.currentLives,
1052
1052
  l
1053
- ), G = T > 0 ? U / T * 100 : 0, J = T > 0 ? N / T * 100 : 0, X = T > 0 ? Y / T * 100 : 0;
1053
+ ), j = T > 0 ? U / T * 100 : 0, J = T > 0 ? N / T * 100 : 0, X = T > 0 ? Y / T * 100 : 0;
1054
1054
  return /* @__PURE__ */ g(
1055
1055
  r,
1056
1056
  {
@@ -1321,11 +1321,11 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1321
1321
  bgcolor: u.surfaceVariant
1322
1322
  },
1323
1323
  children: [
1324
- G > 0 && /* @__PURE__ */ t(
1324
+ j > 0 && /* @__PURE__ */ t(
1325
1325
  r,
1326
1326
  {
1327
1327
  sx: {
1328
- width: `${G}%`,
1328
+ width: `${j}%`,
1329
1329
  bgcolor: b,
1330
1330
  transition: "width 0.7s ease"
1331
1331
  }
@@ -1735,7 +1735,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1735
1735
  width: "100%"
1736
1736
  },
1737
1737
  children: p.map((L, o) => {
1738
- const z = o === B, j = b === o, U = Math.log(L.totalUsers + 1) / C * 100, N = z || j ? i : `rgba(${y}, 0.5)`;
1738
+ const z = o === B, G = b === o, U = Math.log(L.totalUsers + 1) / C * 100, N = z || G ? i : `rgba(${y}, 0.5)`;
1739
1739
  return /* @__PURE__ */ t(
1740
1740
  r,
1741
1741
  {
@@ -1760,7 +1760,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1760
1760
  height: I ? `${U}%` : "0%",
1761
1761
  borderRadius: "3px 3px 1px 1px",
1762
1762
  backgroundColor: N,
1763
- boxShadow: z || j ? `0 0 10px rgba(${y}, 0.4), 0 0 3px rgba(${y}, 0.2)` : "none",
1763
+ boxShadow: z || G ? `0 0 10px rgba(${y}, 0.4), 0 0 3px rgba(${y}, 0.2)` : "none",
1764
1764
  transition: [
1765
1765
  `height 480ms cubic-bezier(0.34, 1.56, 0.64, 1) ${o * 18}ms`,
1766
1766
  "background-color 150ms ease",
@@ -1789,14 +1789,14 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1789
1789
  /* @__PURE__ */ t(r, { sx: { height: "1px", backgroundColor: m, mt: "1px" } }),
1790
1790
  /* @__PURE__ */ t(r, { sx: { position: "relative", height: "18px", mt: "4px" }, children: p.map((L, o) => {
1791
1791
  if (!E.has(o)) return null;
1792
- const z = p.length > 1 ? o / (p.length - 1) * 100 : 0, j = o === 0, U = o === p.length - 1;
1792
+ const z = p.length > 1 ? o / (p.length - 1) * 100 : 0, G = o === 0, U = o === p.length - 1;
1793
1793
  return /* @__PURE__ */ t(
1794
1794
  x,
1795
1795
  {
1796
1796
  sx: {
1797
1797
  position: "absolute",
1798
1798
  left: `${z}%`,
1799
- transform: j ? "none" : U ? "translateX(-100%)" : "translateX(-50%)",
1799
+ transform: G ? "none" : U ? "translateX(-100%)" : "translateX(-50%)",
1800
1800
  fontSize: "0.6em",
1801
1801
  fontFamily: a,
1802
1802
  color: s,
@@ -1824,18 +1824,18 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1824
1824
  (async () => {
1825
1825
  try {
1826
1826
  if (!e) return;
1827
- const [G, J] = await Promise.all([
1827
+ const [j, J] = await Promise.all([
1828
1828
  n.miniGames.getEitherOrResults(e.id),
1829
1829
  n.profile.getOwn().getInfo().catch(() => null)
1830
1830
  ]), X = (J == null ? void 0 : J.id) ?? null;
1831
- if (F(X), X && G.standings.some(
1831
+ if (F(X), X && j.standings.some(
1832
1832
  (ee) => ee.userId === X
1833
1833
  )) {
1834
- c(G);
1834
+ c(j);
1835
1835
  return;
1836
1836
  }
1837
1837
  if (o > 0) {
1838
- const oe = [...G.standings], ee = {
1838
+ const oe = [...j.standings], ee = {
1839
1839
  userId: "current",
1840
1840
  userModel: {
1841
1841
  id: "current",
@@ -1857,9 +1857,9 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1857
1857
  }, te = oe.findIndex(
1858
1858
  (ie) => Number.parseInt(ie.personalBest) < o
1859
1859
  );
1860
- te >= 0 && te < 50 && (oe.splice(te, 0, ee), G.standings = oe);
1860
+ te >= 0 && te < 50 && (oe.splice(te, 0, ee), j.standings = oe);
1861
1861
  }
1862
- c(G);
1862
+ c(j);
1863
1863
  } catch {
1864
1864
  } finally {
1865
1865
  k(!1);
@@ -1991,7 +1991,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
1991
1991
  children: /* @__PURE__ */ t(x, { level: "body-lg", sx: z.noLeaderboardText, children: d("common.labels.noData", "No standings available yet.") })
1992
1992
  }
1993
1993
  );
1994
- const j = P.standings, U = Math.ceil(j.length / Be), N = j.slice(
1994
+ const G = P.standings, U = Math.ceil(G.length / Be), N = G.slice(
1995
1995
  v * Be,
1996
1996
  (v + 1) * Be
1997
1997
  ), Y = [
@@ -2024,7 +2024,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2024
2024
  gap: I.xs
2025
2025
  },
2026
2026
  children: Y.map((M) => {
2027
- const G = E === M.id;
2027
+ const j = E === M.id;
2028
2028
  return /* @__PURE__ */ t(
2029
2029
  r,
2030
2030
  {
@@ -2036,7 +2036,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2036
2036
  justifyContent: "center",
2037
2037
  p: I.xs,
2038
2038
  borderRadius: `calc(${h["2xl"]} - 3px)`,
2039
- backgroundColor: G ? a : p,
2039
+ backgroundColor: j ? a : p,
2040
2040
  cursor: "pointer",
2041
2041
  transition: "background-color 220ms ease",
2042
2042
  userSelect: "none",
@@ -2047,10 +2047,10 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2047
2047
  {
2048
2048
  sx: {
2049
2049
  fontFamily: y,
2050
- fontWeight: G ? 700 : 500,
2050
+ fontWeight: j ? 700 : 500,
2051
2051
  fontSize: "0.8em",
2052
- color: G ? S : m,
2053
- opacity: G ? 1 : 0.45,
2052
+ color: j ? S : m,
2053
+ opacity: j ? 1 : 0.45,
2054
2054
  transition: "color 220ms ease, opacity 220ms ease",
2055
2055
  lineHeight: 1
2056
2056
  },
@@ -2091,9 +2091,9 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2091
2091
  /* @__PURE__ */ t("th", { style: z.headerCellName, children: d("eitherOr.leaderboard.name", "Name") }),
2092
2092
  /* @__PURE__ */ t("th", { style: z.headerCellPoints, children: O ? "🎯" : d("eitherOr.leaderboard.points", "Pts") })
2093
2093
  ] }) }),
2094
- /* @__PURE__ */ t("tbody", { children: N.map((M, G) => {
2094
+ /* @__PURE__ */ t("tbody", { children: N.map((M, j) => {
2095
2095
  var te, ie, ce;
2096
- const J = v * Be + G, X = M.userId === "current" || R !== null && M.userId === R, oe = ((te = M.userModel) == null ? void 0 : te.avatar) || void 0, ee = ((ie = M.userModel) == null ? void 0 : ie.nickname) || ((ce = M.userModel) == null ? void 0 : ce.name) || d("common.labels.anonymous", "Anonymous");
2096
+ const J = v * Be + j, X = M.userId === "current" || R !== null && M.userId === R, oe = ((te = M.userModel) == null ? void 0 : te.avatar) || void 0, ee = ((ie = M.userModel) == null ? void 0 : ie.nickname) || ((ce = M.userModel) == null ? void 0 : ce.name) || d("common.labels.anonymous", "Anonymous");
2097
2097
  return /* @__PURE__ */ g(
2098
2098
  "tr",
2099
2099
  {
@@ -2210,7 +2210,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2210
2210
  children: e,
2211
2211
  brandingBorderColor: n
2212
2212
  }) => {
2213
- const i = fe().md, s = n || K().secondaryContainer, d = K().surface, f = jt().size, l = xe(), u = f + " solid " + s;
2213
+ const i = fe().md, s = n || K().secondaryContainer, d = K().surface, f = Gt().size, l = xe(), u = f + " solid " + s;
2214
2214
  return /* @__PURE__ */ t(
2215
2215
  r,
2216
2216
  {
@@ -2229,7 +2229,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2229
2229
  }
2230
2230
  );
2231
2231
  }, In = (e) => {
2232
- var M, G;
2232
+ var M, j;
2233
2233
  const {
2234
2234
  eitherOr: n,
2235
2235
  currentPair: i,
@@ -2247,7 +2247,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2247
2247
  onSelection: O,
2248
2248
  onPlayAgain: p,
2249
2249
  imagePosition: S = "left"
2250
- } = e, { t: C } = se(), P = K(), c = ((M = n == null ? void 0 : n.branding) == null ? void 0 : M.colors) || null, B = (c == null ? void 0 : c.primaryColor) || P.palette.primary.plainColor, k = P.secondaryContainer, v = P.surfaceTintDim, W = ((G = re(v || "")) == null ? void 0 : G.replace(/[^\d,]/g, "")) ?? null, R = fe().md, F = be().primary, E = pe(), L = xe(), [o, z] = D(0), j = Ge(
2250
+ } = e, { t: C } = se(), P = K(), c = ((M = n == null ? void 0 : n.branding) == null ? void 0 : M.colors) || null, B = (c == null ? void 0 : c.primaryColor) || P.palette.primary.plainColor, k = P.secondaryContainer, v = P.surfaceTintDim, W = ((j = re(v || "")) == null ? void 0 : j.replace(/[^\d,]/g, "")) ?? null, R = fe().md, F = be().primary, E = pe(), L = xe(), [o, z] = D(0), G = je(
2251
2251
  {
2252
2252
  images: n == null ? void 0 : n.images,
2253
2253
  imagePlaceholder: m || ""
@@ -2417,7 +2417,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2417
2417
  {
2418
2418
  entity: n,
2419
2419
  headline: C("eitherOr.headline", "Either/Or"),
2420
- finalImage: j,
2420
+ finalImage: G,
2421
2421
  imagePosition: S,
2422
2422
  rulesDisplay: y,
2423
2423
  children: U()
@@ -2482,7 +2482,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2482
2482
  }
2483
2483
  }), Pn = (e) => {
2484
2484
  var p, S, C, P, c;
2485
- const n = ((p = e.eitherOr.branding) == null ? void 0 : p.colors) || null, i = xe(), s = Me(), d = Ge(
2485
+ const n = ((p = e.eitherOr.branding) == null ? void 0 : p.colors) || null, i = xe(), s = Me(), d = je(
2486
2486
  {
2487
2487
  images: e.eitherOr.images,
2488
2488
  imagePlaceholder: e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : ""
@@ -2584,7 +2584,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2584
2584
  rulesDisplay: s
2585
2585
  }) => {
2586
2586
  var m;
2587
- const { t: d } = se(), f = ((m = e.branding) == null ? void 0 : m.colors) || null, { brandingLogo: l } = je(
2587
+ const { t: d } = se(), f = ((m = e.branding) == null ? void 0 : m.colors) || null, { brandingLogo: l } = Ge(
2588
2588
  e.branding || null
2589
2589
  ), u = (y) => {
2590
2590
  var b;
@@ -2851,12 +2851,12 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2851
2851
  onGameStart: I,
2852
2852
  onSelection: O,
2853
2853
  onPlayAgain: p
2854
- } = e, S = Me(), C = pe(), P = xe(), { t: c } = se(), [B, k] = D(0), [v, W] = D(0), [R, F] = D(!1), [E, L] = D(0), [o, z] = D(0), [j, U] = D(!1), N = qe(0), { brandingImage: Y, brandingColors: T } = je(
2854
+ } = e, S = Me(), C = pe(), P = xe(), { t: c } = se(), [B, k] = D(0), [v, W] = D(0), [R, F] = D(!1), [E, L] = D(0), [o, z] = D(0), [G, U] = D(!1), N = qe(0), { brandingImage: Y, brandingColors: T } = Ge(
2855
2855
  n.branding || null
2856
- ), M = m || (P ? Ke : Xe), G = Ge(
2856
+ ), M = m || (P ? Ke : Xe), j = je(
2857
2857
  { images: n == null ? void 0 : n.images, imagePlaceholder: M },
2858
2858
  Se.OVERLAY
2859
- ), J = Y || G, X = Ct(J), oe = St(
2859
+ ), J = Y || j, X = Ct(J), oe = St(
2860
2860
  Se.OVERLAY
2861
2861
  ), ee = S.customRadius.dark.sm, te = S.customRadius.dark.md, ie = (T == null ? void 0 : T.backgroundColor) || ((tt = (et = S.colorSchemes) == null ? void 0 : et.dark) == null ? void 0 : tt.surfaceVariant), ce = (rt = (nt = S.customRadius) == null ? void 0 : nt.light) == null ? void 0 : rt.xl, _ = (T == null ? void 0 : T.primaryColor) || ((at = (lt = (it = (ot = S.colorSchemes) == null ? void 0 : ot.light) == null ? void 0 : it.palette) == null ? void 0 : lt.primary) == null ? void 0 : at.plainColor), H = (ut = (dt = (ct = (st = S.colorSchemes) == null ? void 0 : st.light) == null ? void 0 : ct.palette) == null ? void 0 : dt.primary) == null ? void 0 : ut.onPrimary, w = S.customFontFamily.dark.primary, $ = S.colorSchemes.dark.textColor, A = S.colorSchemes.dark.surface, V = S.colorSchemes.dark.secondaryContainer, Z = S.colorSchemes.dark.surfaceTintDim, le = ((mt = re(Z || "")) == null ? void 0 : mt.replace(/[^\d,]/g, "")) ?? null, he = re(_ || ""), Q = zn({
2862
2862
  spacingScale: C,
@@ -2912,7 +2912,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
2912
2912
  );
2913
2913
  return ne;
2914
2914
  }, Ft = () => {
2915
- const ne = (s == null ? void 0 : s.currentStreak) ?? 0, ae = j ? Ie : ne % Ie, Te = Math.floor(ne / Ie) + 1;
2915
+ const ne = (s == null ? void 0 : s.currentStreak) ?? 0, ae = G ? Ie : ne % Ie, Te = Math.floor(ne / Ie) + 1;
2916
2916
  return /* @__PURE__ */ g(r, { sx: { display: "flex", alignItems: "center", gap: "4px" }, children: [
2917
2917
  Array.from({ length: Ie }, (Ve, Le) => /* @__PURE__ */ t(
2918
2918
  r,
@@ -3449,17 +3449,17 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
3449
3449
  var P, c, B, k, v, W, R, F, E, L, o;
3450
3450
  const n = Me(), { t: i } = se(), s = xe(), d = St(
3451
3451
  Se.OVERLAY
3452
- ), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? Ke : Xe, l = Ge(
3452
+ ), f = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : s ? Ke : Xe, l = je(
3453
3453
  { images: e.eitherOr.images, imagePlaceholder: f },
3454
3454
  Se.OVERLAY
3455
- ), { brandingImage: u, brandingColors: a, brandingLogo: m } = je(e.eitherOr.branding || null), b = Ct(u || l), h = (c = (P = n.customRadius) == null ? void 0 : P.light) == null ? void 0 : c.xl, I = (a == null ? void 0 : a.primaryColor) || ((W = (v = (k = (B = n.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : k.palette) == null ? void 0 : v.primary) == null ? void 0 : W.plainColor), O = (L = (E = (F = (R = n.colorSchemes) == null ? void 0 : R.light) == null ? void 0 : F.palette) == null ? void 0 : E.primary) == null ? void 0 : L.onPrimary, p = n.customFontFamily.dark.primary, S = Ln({
3455
+ ), { brandingImage: u, brandingColors: a, brandingLogo: m } = Ge(e.eitherOr.branding || null), b = Ct(u || l), h = (c = (P = n.customRadius) == null ? void 0 : P.light) == null ? void 0 : c.xl, I = (a == null ? void 0 : a.primaryColor) || ((W = (v = (k = (B = n.colorSchemes) == null ? void 0 : B.light) == null ? void 0 : k.palette) == null ? void 0 : v.primary) == null ? void 0 : W.plainColor), O = (L = (E = (F = (R = n.colorSchemes) == null ? void 0 : R.light) == null ? void 0 : F.palette) == null ? void 0 : E.primary) == null ? void 0 : L.onPrimary, p = n.customFontFamily.dark.primary, S = Ln({
3456
3456
  buttonRadius: h,
3457
3457
  primaryColor: I,
3458
3458
  onPrimaryColor: O,
3459
3459
  fontFamilyPrimary: p
3460
3460
  }), C = () => {
3461
- var z, j, U, N;
3462
- return e.signInCTA ? (z = e.signInCTA) != null && z.component ? e.signInCTA.component : (j = e.signInCTA) != null && j.onClick ? /* @__PURE__ */ t(
3461
+ var z, G, U, N;
3462
+ return e.signInCTA ? (z = e.signInCTA) != null && z.component ? e.signInCTA.component : (G = e.signInCTA) != null && G.onClick ? /* @__PURE__ */ t(
3463
3463
  ge,
3464
3464
  {
3465
3465
  variant: "soft",
@@ -3516,7 +3516,7 @@ const Ye = Pe(/* @__PURE__ */ t("path", {
3516
3516
  }
3517
3517
  );
3518
3518
  }, Bn = (e) => {
3519
- const { t: n } = se(), i = xe(), s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? Ke : Xe, { brandingLogo: d } = je(
3519
+ const { t: n } = se(), i = xe(), s = e.defaultImagePlaceholderUrl ? e.defaultImagePlaceholderUrl : i ? Ke : Xe, { brandingLogo: d } = Ge(
3520
3520
  e.eitherOr.branding || null
3521
3521
  );
3522
3522
  return /* @__PURE__ */ t(
@@ -3577,13 +3577,13 @@ const Dn = (e) => {
3577
3577
  selectedOption: null
3578
3578
  }), [I, O] = D(!1), [p, S] = D(!1), [C, P] = D(!1), [c, B] = D(""), [k, v] = D(!1), [W, R] = D(!1), [F, E] = D(!1), L = qe(null), o = fn(e.entityId, e.sdk), {
3579
3579
  setIsUnauthorized: z,
3580
- setIsApiError: j
3580
+ setIsApiError: G
3581
3581
  } = hn(e.entityId, e.sdk, I);
3582
3582
  me(() => {
3583
3583
  var H, w;
3584
3584
  n !== q.RESULTS || !f || (w = (H = e.callbacks) == null ? void 0 : H.onFinish) == null || w.call(H, f);
3585
3585
  }, [n]), me(() => {
3586
- Gt(e.language || "en");
3586
+ jt(e.language || "en");
3587
3587
  }, [e.language]), me(() => {
3588
3588
  o && o.id && i(q.TUTORIAL);
3589
3589
  }, [o]);
@@ -3700,10 +3700,10 @@ const Dn = (e) => {
3700
3700
  }
3701
3701
  } else
3702
3702
  R(!1), E(!1), i(q.RESULTS);
3703
- }, [(ie = e.leads) == null ? void 0 : ie.position, e.entityId, e.sdk, o == null ? void 0 : o.time]), G = Oe(() => {
3703
+ }, [(ie = e.leads) == null ? void 0 : ie.position, e.entityId, e.sdk, o == null ? void 0 : o.time]), j = Oe(() => {
3704
3704
  i(q.TUTORIAL), d(null), l(null), a((o == null ? void 0 : o.time) ?? 10), y(null), h({ isCorrect: null, selectedOption: null }), v(!1), R(!1);
3705
3705
  }, [o == null ? void 0 : o.time]), J = () => {
3706
- P(!1), S(!1), B(""), j(!1), z(!1), O(!I), i(q.TUTORIAL), d(null), l(null), y(null), h({ isCorrect: null, selectedOption: null }), v(!1), R(!1);
3706
+ P(!1), S(!1), B(""), G(!1), z(!1), O(!I), i(q.TUTORIAL), d(null), l(null), y(null), h({ isCorrect: null, selectedOption: null }), v(!1), R(!1);
3707
3707
  };
3708
3708
  if (!o)
3709
3709
  return /* @__PURE__ */ t(He, { my: 20 });
@@ -3810,7 +3810,7 @@ const Dn = (e) => {
3810
3810
  imagePosition: e.imagePosition,
3811
3811
  onGameStart: Y,
3812
3812
  onSelection: T,
3813
- onPlayAgain: G
3813
+ onPlayAgain: j
3814
3814
  }
3815
3815
  ) : $e(e) ? /* @__PURE__ */ t(
3816
3816
  Rn,
@@ -3830,7 +3830,7 @@ const Dn = (e) => {
3830
3830
  additionalCTA: e.additionalCTA,
3831
3831
  onGameStart: Y,
3832
3832
  onSelection: T,
3833
- onPlayAgain: G
3833
+ onPlayAgain: j
3834
3834
  }
3835
3835
  ) : /* @__PURE__ */ t(De, {});
3836
3836
  }, Fn = (e) => /* @__PURE__ */ t(Vt, { packageName: "either-or-play", ...e, children: /* @__PURE__ */ t(Dn, { ...e }) }), dr = Fn;