fansunited-frontend-components 0.0.95 → 0.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/Betslip.d.ts +1 -2
  2. package/Betslip.d.ts.map +1 -1
  3. package/Betslip.js +4 -3
  4. package/ChanceGame.js +165 -163
  5. package/ChanceGameComponent.d.ts +1 -1
  6. package/ChanceGameComponent.d.ts.map +1 -1
  7. package/ClassicQuizPlay.d.ts +1 -1
  8. package/ClassicQuizPlay.d.ts.map +1 -1
  9. package/ClassicQuizPlay.js +4 -3
  10. package/CollectLead.d.ts +1 -1
  11. package/CollectLead.d.ts.map +1 -1
  12. package/CollectLead.js +37 -36
  13. package/CompetitionStatistics.d.ts +1 -2
  14. package/CompetitionStatistics.d.ts.map +1 -1
  15. package/CompetitionStatistics.js +458 -451
  16. package/CompetitorCard.d.ts +1 -2
  17. package/CompetitorCard.d.ts.map +1 -1
  18. package/CompetitorCard.js +1235 -1226
  19. package/Discussion.d.ts +1 -1
  20. package/Discussion.d.ts.map +1 -1
  21. package/Discussion.js +4 -3
  22. package/EitherOrPlay.d.ts +1 -1
  23. package/EitherOrPlay.d.ts.map +1 -1
  24. package/EitherOrPlay.js +4 -3
  25. package/EventCard.d.ts +1 -2
  26. package/EventCard.d.ts.map +1 -1
  27. package/EventCard.js +1249 -1244
  28. package/EventGamePlay.d.ts +1 -1
  29. package/EventGamePlay.d.ts.map +1 -1
  30. package/EventGamePlay.js +4 -3
  31. package/Leaderboard.d.ts +1 -1
  32. package/Leaderboard.d.ts.map +1 -1
  33. package/Leaderboard.js +482 -449
  34. package/List.d.ts +1 -2
  35. package/List.d.ts.map +1 -1
  36. package/List.js +258 -254
  37. package/MatchQuizPlay.d.ts +1 -1
  38. package/MatchQuizPlay.d.ts.map +1 -1
  39. package/MatchQuizPlay.js +4 -3
  40. package/Odds.d.ts +1 -2
  41. package/Odds.d.ts.map +1 -1
  42. package/Odds.js +35 -34
  43. package/PersonalityQuizPlay.d.ts +1 -1
  44. package/PersonalityQuizPlay.d.ts.map +1 -1
  45. package/PersonalityQuizPlay.js +4 -3
  46. package/PickThePair.js +102 -100
  47. package/PickThePairComponent.d.ts +1 -1
  48. package/PickThePairComponent.d.ts.map +1 -1
  49. package/PlayerOfTheMatch.d.ts +1 -2
  50. package/PlayerOfTheMatch.d.ts.map +1 -1
  51. package/PlayerOfTheMatch.js +1096 -1085
  52. package/PollVote.d.ts +1 -1
  53. package/PollVote.d.ts.map +1 -1
  54. package/PollVote.js +4 -3
  55. package/Predictor.d.ts +1 -2
  56. package/Predictor.d.ts.map +1 -1
  57. package/Predictor.js +4553 -4525
  58. package/README.md +1 -1
  59. package/Standings.d.ts +1 -2
  60. package/Standings.d.ts.map +1 -1
  61. package/Standings.js +404 -394
  62. package/TopX.d.ts +1 -2
  63. package/TopX.d.ts.map +1 -1
  64. package/TopX.js +5296 -5286
  65. package/chunks/{ChanceGameEmbedVariant-C3NGwvTF.js → ChanceGameEmbedVariant-CVys-3Zh.js} +1 -1
  66. package/chunks/{OddsSkeleton-Bav8FHHN.js → OddsSkeleton-ClJE2xhR.js} +5 -5
  67. package/chunks/{OddsStrip-CviVfQI4.js → OddsStrip-BnSp5TXa.js} +3 -3
  68. package/chunks/{PickOneOfX-a6Dv0-rR.js → PickOneOfX-DaJtkbCw.js} +6 -6
  69. package/chunks/index-Aq5MbUB9.js +4 -0
  70. package/chunks/index-BBQm_8LD.js +4 -0
  71. package/chunks/index-BC_sWWgc.js +4 -0
  72. package/chunks/index-DXKDJ1Vp.js +4 -0
  73. package/chunks/index-DjT5NrbA.js +4 -0
  74. package/chunks/index-DvLRehH6.js +4 -0
  75. package/chunks/index-aIMaxR-p.js +4 -0
  76. package/chunks/{main-Dj4Manb5.js → main-52Wff7qC.js} +1763 -1757
  77. package/chunks/{main-dwV_55lz.js → main-65WcUqAl.js} +615 -615
  78. package/chunks/{main-gexg6lc-.js → main-B58mi9jx.js} +349 -334
  79. package/chunks/{main-Dys2_Jt2.js → main-BIdXUTZS.js} +842 -827
  80. package/chunks/{main-CFwRpvUi.js → main-DD-NEzC7.js} +818 -817
  81. package/chunks/{main-DjiQz1dv.js → main-DUnfJPzY.js} +311 -311
  82. package/chunks/{main-eAQMCxQ7.js → main-DpCBqqg_.js} +322 -321
  83. package/chunks/{main-D9tFZv2q.js → main-Drznt1ak.js} +283 -282
  84. package/chunks/withVersionStamp-B6nArAj4.js +16 -0
  85. package/index.d.ts.map +1 -1
  86. package/index.js +45 -50
  87. package/package.json +57 -49
  88. package/withVersionStamp.d.ts +4 -0
  89. package/withVersionStamp.d.ts.map +1 -0
  90. package/chunks/3dicons-bookmark-fav-dynamic-color-BkMV51tL.js +0 -4
  91. package/chunks/3dicons-crow-dynamic-color-BnvCj9i8.js +0 -4
  92. package/chunks/3dicons-fire-dynamic-color-rNRL0kAe.js +0 -4
  93. package/chunks/3dicons-flag-dynamic-color-BscQxNXn.js +0 -4
  94. package/chunks/3dicons-medal-dynamic-color-CsR036OL.js +0 -4
  95. package/chunks/3dicons-rocket-dynamic-color-EiHCJ2rb.js +0 -4
  96. package/chunks/3dicons-target-dynamic-color-ChQzHpwv.js +0 -4
  97. package/chunks/3dicons-thumb-down-dynamic-color-NQLnsNFt.js +0 -4
  98. package/chunks/index-B1d9q8fX.js +0 -4
  99. package/chunks/index-BP0pvFJ4.js +0 -4
  100. package/chunks/index-CHZyL_g_.js +0 -4
  101. package/chunks/index-CeCUdRmF.js +0 -4
  102. package/chunks/index-Ckyyw-I8.js +0 -4
  103. package/chunks/index-DGvCP5G8.js +0 -4
  104. package/chunks/index-yjMVOgwO.js +0 -4
package/Standings.js CHANGED
@@ -1,16 +1,17 @@
1
1
  import { jsxs as C, jsx as r, Fragment as _ } from "react/jsx-runtime";
2
- import E, { useState as N, useEffect as ge, useMemo as G, useRef as Te } from "react";
3
- import { Box as x, Typography as k, Chip as ve, Sheet as he, Table as Ee, Tabs as ye, TabList as xe, Tab as Se, TabPanel as be } from "@mui/joy";
2
+ import E, { useState as N, useEffect as ge, useMemo as G, useRef as ve } from "react";
3
+ import { Box as S, Typography as L, Chip as Ee, Sheet as he, Table as Pe, Tabs as ye, TabList as xe, Tab as Se, TabPanel as be } from "@mui/joy";
4
4
  import { useTranslation as Y } from "react-i18next";
5
- import { hexToRgb as ee, extractSdkErrorMessage as Pe, useColors as D, useFontFamily as P, useSpacingScale as $, toIntlLocale as q, bidiIsolate as V, useCornerRadius as j, useConstantContext as Fe, ConstantsContext as Ke, useIsRtl as Ae, InlineSpinner as Oe, Spinner as Ne, getLanguageDirection as ze, initializeI18n as Ie, applyDirectionToMount as Me, widgetCacheKey as $e, createWidgetCache as Ue, ContainerProvider as We, ThemeProvider as Be, ConstantsProvider as _e } from "fansunited-frontend-core";
6
- import { MatchFilters as de } from "fansunited-sdk-esm";
7
- import He from "@mui/icons-material/EmojiEvents";
8
- import { createPortal as Ce } from "react-dom";
9
- import { CacheProvider as Ge } from "@emotion/react";
10
- const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().replace(
5
+ import { hexToRgb as ee, useDisableCache as Ce, extractSdkErrorMessage as Fe, useColors as D, useFontFamily as P, useSpacingScale as $, toIntlLocale as q, bidiIsolate as V, useCornerRadius as j, useConstantContext as Ke, ConstantsContext as Ae, useIsRtl as Oe, InlineSpinner as Ne, Spinner as ze, getLanguageDirection as Ie, initializeI18n as Me, applyDirectionToMount as $e, widgetCacheKey as Ue, createWidgetCache as We, ContainerProvider as Be, ThemeProvider as _e, ConstantsProvider as He } from "fansunited-frontend-core";
6
+ import { MatchFilters as de } from "fansunited-sdk-esm/models";
7
+ import Ge from "@mui/icons-material/EmojiEvents";
8
+ import { createPortal as we } from "react-dom";
9
+ import { CacheProvider as je } from "@emotion/react";
10
+ import { w as Ze } from "./chunks/withVersionStamp-B6nArAj4.js";
11
+ const Ve = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().replace(
11
12
  /\S+/g,
12
13
  (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()
13
- ), Ze = [
14
+ ), Ye = [
14
15
  "championsLeague",
15
16
  "championsLeagueQual",
16
17
  "europaLeague",
@@ -28,10 +29,10 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
28
29
  "championshipGroup",
29
30
  "europaClGroup",
30
31
  "relegationGroup"
31
- ], te = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), Ve = Ze.reduce(
32
+ ], te = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), Qe = Ye.reduce(
32
33
  (e, t) => (e[te(t)] = t, e),
33
34
  {}
34
- ), we = (e) => Ve[te(e)] ?? null, Ye = {
35
+ ), ke = (e) => Qe[te(e)] ?? null, Xe = {
35
36
  championsLeague: "primary",
36
37
  championshipGroup: "primary",
37
38
  playOffs: "primary",
@@ -49,43 +50,43 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
49
50
  relegationPlayOffs: "warning",
50
51
  relegationGroup: "warning",
51
52
  relegation: "danger"
52
- }, Qe = {
53
+ }, qe = {
53
54
  primary: 0,
54
55
  success: 1,
55
56
  warning: 2,
56
57
  danger: 3
57
- }, Xe = (e, t) => t === 0 ? e : `rgba(${ee(e)}, ${Math.max(0.25, 1 - t * 0.25)})`, qe = (e, t) => {
58
+ }, Je = (e, t) => t === 0 ? e : `rgba(${ee(e)}, ${Math.max(0.25, 1 - t * 0.25)})`, et = (e, t) => {
58
59
  const n = te(e);
59
60
  return n.includes("relegation") ? n.includes("playoff") || n.includes("group") ? "warning" : "danger" : t ? "primary" : "success";
60
- }, Je = (e, t, n) => {
61
+ }, tt = (e, t, n) => {
61
62
  const o = /* @__PURE__ */ new Map();
62
- if (e.forEach((s, u) => {
63
- if (!s) return;
64
- const f = o.get(s);
65
- f ? f.push(u) : o.set(s, [u]);
63
+ if (e.forEach((d, u) => {
64
+ if (!d) return;
65
+ const p = o.get(d);
66
+ p ? p.push(u) : o.set(d, [u]);
66
67
  }), !o.size) return [];
67
- const a = (s) => {
68
- const u = o.get(s) ?? [];
69
- return u.reduce((f, h) => f + h, 0) / u.length;
68
+ const a = (d) => {
69
+ const u = o.get(d) ?? [];
70
+ return u.reduce((p, h) => p + h, 0) / u.length;
70
71
  }, l = Array.from(o.keys()).sort(
71
- (s, u) => a(s) - a(u)
72
- ), d = l.map((s) => we(s)), i = l.map((s, u) => {
73
- const f = d[u];
74
- return f ? Ye[f] : qe(s, u === 0);
75
- }), p = /* @__PURE__ */ new Map(), c = l.map((s, u) => {
76
- const f = i[u], h = p.get(f) ?? 0;
77
- return p.set(f, h + 1), Xe(t[f], h);
72
+ (d, u) => a(d) - a(u)
73
+ ), c = l.map((d) => ke(d)), i = l.map((d, u) => {
74
+ const p = c[u];
75
+ return p ? Xe[p] : et(d, u === 0);
76
+ }), f = /* @__PURE__ */ new Map(), s = l.map((d, u) => {
77
+ const p = i[u], h = f.get(p) ?? 0;
78
+ return f.set(p, h + 1), Je(t[p], h);
78
79
  });
79
- return l.map((s, u) => {
80
- const f = d[u], h = f ? n == null ? void 0 : n[f] : void 0;
80
+ return l.map((d, u) => {
81
+ const p = c[u], h = p ? n == null ? void 0 : n[p] : void 0;
81
82
  return {
82
- key: s,
83
- color: h ?? c[u],
84
- label: je(s),
85
- tierRank: Qe[i[u]]
83
+ key: d,
84
+ color: h ?? s[u],
85
+ label: Ve(d),
86
+ tierRank: qe[i[u]]
86
87
  };
87
- }).sort((s, u) => s.tierRank - u.tierRank).map(({ key: s, color: u, label: f }) => ({ key: s, color: u, label: f }));
88
- }, et = (e, t) => {
88
+ }).sort((d, u) => d.tierRank - u.tierRank).map(({ key: d, color: u, label: p }) => ({ key: d, color: u, label: p }));
89
+ }, nt = (e, t) => {
89
90
  var n;
90
91
  if (!e) return [];
91
92
  if (t) {
@@ -93,7 +94,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
93
94
  return o && o.type === "standing" ? [o] : [];
94
95
  }
95
96
  return (e.stages ?? []).filter((o) => o.type === "standing");
96
- }, ke = (e) => {
97
+ }, Le = (e) => {
97
98
  var t;
98
99
  return ((t = e == null ? void 0 : e.find((n) => n.key === "LOGO")) == null ? void 0 : t.value) ?? null;
99
100
  }, M = (e, t) => {
@@ -102,10 +103,10 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
102
103
  return ((a = o.key) == null ? void 0 : a.toLowerCase()) === t;
103
104
  });
104
105
  return n && Number(n.value) || 0;
105
- }, tt = (e, t) => e.some((n) => {
106
+ }, ot = (e, t) => e.some((n) => {
106
107
  var o;
107
108
  return ((o = n.key) == null ? void 0 : o.toLowerCase()) === t;
108
- }), nt = (e) => {
109
+ }), rt = (e) => {
109
110
  const t = M(e, "goals_for"), n = M(e, "goals_against"), o = M(e, "played"), a = M(e, "won");
110
111
  return {
111
112
  played: o,
@@ -119,189 +120,197 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
119
120
  points: M(e, "points"),
120
121
  winPercentage: o > 0 ? a / o : 0
121
122
  };
122
- }, ot = (e, t) => t == null ? null : e === t ? "same" : e < t ? "up" : "down", rt = (e, t) => {
123
+ }, at = (e, t) => t == null ? null : e === t ? "same" : e < t ? "up" : "down", st = (e, t) => {
123
124
  var a;
124
125
  const n = e.competitorModel, o = e.rank ?? 0;
125
126
  return {
126
127
  competitorId: e.competitorId,
127
128
  rank: o,
128
129
  lastRank: e.lastRank,
129
- rankChange: ot(o, e.lastRank),
130
+ rankChange: at(o, e.lastRank),
130
131
  teamName: (n == null ? void 0 : n.name) ?? t,
131
132
  teamShortName: (n == null ? void 0 : n.shortName) ?? null,
132
- logoUrl: ke(n == null ? void 0 : n.assets),
133
- stats: nt(e.stats ?? []),
133
+ logoUrl: Le(n == null ? void 0 : n.assets),
134
+ stats: rt(e.stats ?? []),
134
135
  zoneKey: ((a = e.rules) == null ? void 0 : a[0]) ?? null
135
136
  };
136
- }, at = (e, t, n) => {
137
+ }, lt = (e, t, n) => {
137
138
  if (t == null && n == null) return e;
138
- const o = e.map((p) => p.rank ?? 0);
139
+ const o = e.map((f) => f.rank ?? 0);
139
140
  if (!o.length) return e;
140
- const a = Math.min(...o), l = Math.max(...o), d = Math.max(t ?? a, a), i = Math.min(n ?? l, l);
141
- return e.filter((p) => {
142
- const c = p.rank ?? 0;
143
- return c >= d && c <= i;
141
+ const a = Math.min(...o), l = Math.max(...o), c = Math.max(t ?? a, a), i = Math.min(n ?? l, l);
142
+ return e.filter((f) => {
143
+ const s = f.rank ?? 0;
144
+ return s >= c && s <= i;
144
145
  });
145
- }, st = (e, t, n, o, a, l) => {
146
- const d = at(e.standings ?? [], a, l), i = d.map((s) => rt(s, o)), p = Je(
147
- i.map((s) => s.zoneKey),
146
+ }, it = (e, t, n, o, a, l) => {
147
+ const c = lt(e.standings ?? [], a, l), i = c.map((d) => st(d, o)), f = tt(
148
+ i.map((d) => d.zoneKey),
148
149
  t,
149
150
  n
150
- ), c = d.some(
151
- (s) => tt(s.stats ?? [], "points")
151
+ ), s = c.some(
152
+ (d) => ot(d.stats ?? [], "points")
152
153
  );
153
- return { id: e.id, name: e.name, rows: i, zones: p, hasPoints: c };
154
- }, lt = (e) => e ? {
154
+ return { id: e.id, name: e.name, rows: i, zones: f, hasPoints: s };
155
+ }, ct = (e) => e ? {
155
156
  name: e.name ?? null,
156
157
  year: e.year ?? null,
157
158
  startDate: e.startDate ?? null,
158
159
  endDate: e.endDate ?? null
159
- } : null, it = (e, t, n, o, a, l, d) => {
160
- var c;
161
- const i = e.groups ?? [], p = a && a.length ? i.filter(
162
- (s) => s.id !== null && a.includes(s.id)
160
+ } : null, dt = (e, t, n, o, a, l, c) => {
161
+ var s;
162
+ const i = e.groups ?? [], f = a && a.length ? i.filter(
163
+ (d) => d.id !== null && a.includes(d.id)
163
164
  ) : i;
164
165
  return {
165
166
  id: e.id,
166
- name: ((c = e.stageNameModel) == null ? void 0 : c.name) ?? null,
167
+ name: ((s = e.stageNameModel) == null ? void 0 : s.name) ?? null,
167
168
  startDate: e.startDate ?? null,
168
169
  endDate: e.endDate ?? null,
169
- groups: p.map(
170
- (s) => st(
171
- s,
170
+ groups: f.map(
171
+ (d) => it(
172
+ d,
172
173
  t,
173
174
  n,
174
175
  o,
175
176
  l,
176
- d
177
+ c
177
178
  )
178
179
  )
179
180
  };
180
- }, ct = (e, t, n, o, a, l, d, i) => {
181
- const c = et(e.season, i).map(
182
- (s) => it(
183
- s,
181
+ }, ut = (e, t, n, o, a, l, c, i) => {
182
+ const s = nt(e.season, i).map(
183
+ (d) => dt(
184
+ d,
184
185
  t,
185
186
  n,
186
187
  o,
187
188
  a,
188
189
  l,
189
- d
190
+ c
190
191
  )
191
192
  );
192
193
  return {
193
194
  competitionId: e.id,
194
195
  competitionName: e.name ?? e.shortName ?? e.id,
195
196
  sport: e.sport ?? null,
196
- logoUrl: ke(e.assets),
197
- season: lt(e.season),
198
- stageFound: c.length > 0,
199
- stages: c
197
+ logoUrl: Le(e.assets),
198
+ season: ct(e.season),
199
+ stageFound: s.length > 0,
200
+ stages: s
200
201
  };
201
- }, dt = (e, t, n, o, a, l, d, i, p) => {
202
- const [c, s] = N(null), [u, f] = N(!0), [h, b] = N(null);
202
+ }, mt = (e, t, n, o, a, l, c, i, f) => {
203
+ const [s, d] = N(null), [u, p] = N(!0), [h, b] = N(null), x = Ce();
203
204
  return ge(() => {
204
205
  if (!e || !t) return;
205
- let g = !1;
206
- return f(!0), b(null), t.sports.getCompetitionById(e, d ? { seasonId: d } : void 0).then((m) => {
207
- g || s(m);
208
- }).catch((m) => {
209
- g || b(Pe(m, t));
206
+ let m = !1;
207
+ return p(!0), b(null), t.sports.getCompetitionById(
208
+ e,
209
+ c ? { seasonId: c } : void 0,
210
+ x
211
+ ).then((w) => {
212
+ m || d(w);
213
+ }).catch((w) => {
214
+ m || b(Fe(w, t));
210
215
  }).finally(() => {
211
- g || f(!1);
216
+ m || p(!1);
212
217
  }), () => {
213
- g = !0;
218
+ m = !0;
214
219
  };
215
- }, [e, t, d]), { data: G(() => c ? ct(
216
- c,
220
+ }, [e, t, c, x]), { data: G(() => s ? ut(
221
+ s,
217
222
  n,
218
223
  a,
219
224
  o,
220
225
  l,
221
226
  i == null ? void 0 : i.startRank,
222
227
  i == null ? void 0 : i.endRank,
223
- p
228
+ f
224
229
  ) : null, [
225
- c,
230
+ s,
226
231
  n,
227
232
  a,
228
233
  o,
229
234
  l,
230
235
  i == null ? void 0 : i.startRank,
231
236
  i == null ? void 0 : i.endRank,
232
- p
237
+ f
233
238
  ]), loading: u, error: h };
234
- }, ut = 50, mt = (e, t) => e > t ? "win" : e < t ? "loss" : "draw", pt = (e, t) => {
235
- var p, c;
236
- const n = e.homeTeam.id === t, o = e.scores, a = Number(((p = o == null ? void 0 : o.ftScore) == null ? void 0 : p.homeGoals) ?? 0), l = Number(((c = o == null ? void 0 : o.ftScore) == null ? void 0 : c.awayGoals) ?? 0), d = n ? a : l, i = n ? l : a;
239
+ }, pt = 50, ft = (e, t) => e > t ? "win" : e < t ? "loss" : "draw", gt = (e, t) => {
240
+ var f, s;
241
+ const n = e.homeTeam.id === t, o = e.scores, a = Number(((f = o == null ? void 0 : o.ftScore) == null ? void 0 : f.homeGoals) ?? 0), l = Number(((s = o == null ? void 0 : o.ftScore) == null ? void 0 : s.awayGoals) ?? 0), c = n ? a : l, i = n ? l : a;
237
242
  return {
238
- result: mt(d, i),
243
+ result: ft(c, i),
239
244
  isHome: n,
240
245
  opponentId: n ? e.awayTeam.id : e.homeTeam.id,
241
- teamScore: d,
246
+ teamScore: c,
242
247
  opponentScore: i,
243
248
  kickoffAt: e.kickoffAt
244
249
  };
245
- }, ue = 12, ft = (e, t) => {
250
+ }, ue = 12, ht = (e, t) => {
246
251
  const n = new Date(e);
247
252
  return n.setUTCHours(n.getUTCHours() + t), n.toISOString().replace(/\.\d{3}Z$/, "Z");
248
253
  }, me = (e, t) => {
249
254
  if (!e) return null;
250
255
  const a = `${e.slice(0, 10)}T${t === "start" ? "00:00:00" : "23:59:59"}Z`;
251
- return ft(
256
+ return ht(
252
257
  a,
253
258
  t === "start" ? -ue : ue
254
259
  );
255
- }, gt = (e) => e.map(
260
+ }, yt = (e) => e.map(
256
261
  (t) => `${t.stageId}:${t.teamIds.join(",")}:${t.fromDate ?? ""}:${t.toDate ?? ""}`
257
- ).join("|"), ht = async (e, t, n) => {
258
- var i, p;
259
- const o = {
262
+ ).join("|"), xt = async (e, t, n, o) => {
263
+ var f, s;
264
+ const a = {
260
265
  competitionIds: [n],
261
266
  status: "finished",
262
267
  sortField: "date",
263
268
  sortOrder: "desc",
264
- limit: ut,
269
+ limit: pt,
265
270
  fromDate: me(t.fromDate, "start"),
266
271
  toDate: me(t.toDate, "end")
267
- }, a = await e.football.getMatches(
268
- new de({ ...o, page: 1 })
269
- ), l = [...a.data ?? []], d = ((p = (i = a.meta) == null ? void 0 : i.pagination) == null ? void 0 : p.numberOfPages) ?? 1;
270
- return d > 1 && (await Promise.all(
272
+ }, l = await e.football.getMatches(
273
+ new de({ ...a, page: 1 }),
274
+ o
275
+ ), c = [...l.data ?? []], i = ((s = (f = l.meta) == null ? void 0 : f.pagination) == null ? void 0 : s.numberOfPages) ?? 1;
276
+ return i > 1 && (await Promise.all(
271
277
  Array.from(
272
- { length: d - 1 },
273
- (s, u) => e.football.getMatches(new de({ ...o, page: u + 2 })).then((f) => f.data ?? []).catch(() => [])
278
+ { length: i - 1 },
279
+ (u, p) => e.football.getMatches(
280
+ new de({ ...a, page: p + 2 }),
281
+ o
282
+ ).then((h) => h.data ?? []).catch(() => [])
274
283
  )
275
- )).forEach((s) => l.push(...s)), l;
276
- }, yt = (e, t, n, o) => {
277
- const [a, l] = N({}), [d, i] = N(!1), p = gt(t);
284
+ )).forEach((u) => c.push(...u)), c;
285
+ }, St = (e, t, n, o) => {
286
+ const [a, l] = N({}), [c, i] = N(!1), f = Ce(), s = yt(t);
278
287
  return ge(() => {
279
288
  if (!o || !t.length) {
280
289
  l({}), i(!1);
281
290
  return;
282
291
  }
283
- let c = !1;
292
+ let d = !1;
284
293
  return i(!0), Promise.all(
285
294
  t.map(
286
- (s) => ht(e, s, n).then((u) => [s.stageId, s.teamIds, u]).catch(
287
- () => [s.stageId, s.teamIds, []]
295
+ (u) => xt(e, u, n, f).then((p) => [u.stageId, u.teamIds, p]).catch(
296
+ () => [u.stageId, u.teamIds, []]
288
297
  )
289
298
  )
290
- ).then((s) => {
291
- if (c) return;
292
- const u = {};
293
- s.forEach(([f, h, b]) => {
294
- const S = {};
295
- h.forEach((g) => {
296
- S[g] = b.filter(
297
- (m) => m.homeTeam.id === g || m.awayTeam.id === g
298
- ).slice(0, 5).map((m) => pt(m, g));
299
- }), u[f] = S;
300
- }), l(u), i(!1);
299
+ ).then((u) => {
300
+ if (d) return;
301
+ const p = {};
302
+ u.forEach(([h, b, x]) => {
303
+ const g = {};
304
+ b.forEach((m) => {
305
+ g[m] = x.filter(
306
+ (w) => w.homeTeam.id === m || w.awayTeam.id === m
307
+ ).slice(0, 5).map((w) => gt(w, m));
308
+ }), p[h] = g;
309
+ }), l(p), i(!1);
301
310
  }), () => {
302
- c = !0;
311
+ d = !0;
303
312
  };
304
- }, [e, p, n, o]), { formByStageAndTeam: a, loading: d };
313
+ }, [e, s, n, o, f]), { formByStageAndTeam: a, loading: c };
305
314
  }, pe = (e, t) => {
306
315
  if (!e) return null;
307
316
  const n = new Date(e);
@@ -310,32 +319,32 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
310
319
  month: "short",
311
320
  year: "numeric"
312
321
  });
313
- }, xt = ({
322
+ }, bt = ({
314
323
  title: e,
315
324
  logoUrl: t,
316
325
  season: n,
317
326
  language: o
318
327
  }) => {
319
- const a = D(), l = P(), d = $(), i = pe((n == null ? void 0 : n.startDate) ?? null, o), p = pe((n == null ? void 0 : n.endDate) ?? null, o), c = i && p ? `${i} – ${p}` : null, s = (n == null ? void 0 : n.year) ?? (n == null ? void 0 : n.name) ?? null;
328
+ const a = D(), l = P(), c = $(), i = pe((n == null ? void 0 : n.startDate) ?? null, o), f = pe((n == null ? void 0 : n.endDate) ?? null, o), s = i && f ? `${i} – ${f}` : null, d = (n == null ? void 0 : n.year) ?? (n == null ? void 0 : n.name) ?? null;
320
329
  return /* @__PURE__ */ C(
321
- x,
330
+ S,
322
331
  {
323
332
  sx: {
324
333
  display: "flex",
325
334
  alignItems: "center",
326
- gap: d.sm,
335
+ gap: c.sm,
327
336
  // Matches the group/stage tabs' and ZoneLegend's own padding so the header,
328
337
  // the tab pills, and the legend all read as the same consistent band.
329
- paddingLeft: d.md,
330
- paddingRight: d.md,
331
- paddingTop: d.sm,
332
- paddingBottom: d.sm,
338
+ paddingLeft: c.md,
339
+ paddingRight: c.md,
340
+ paddingTop: c.sm,
341
+ paddingBottom: c.sm,
333
342
  borderBottom: `1px solid ${a.outlineEnabledBorder}`,
334
343
  backgroundColor: a.surface
335
344
  },
336
345
  children: [
337
346
  t ? /* @__PURE__ */ r(
338
- x,
347
+ S,
339
348
  {
340
349
  component: "img",
341
350
  src: t,
@@ -343,7 +352,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
343
352
  sx: { width: 36, height: 36, objectFit: "contain", flexShrink: 0 }
344
353
  }
345
354
  ) : /* @__PURE__ */ r(
346
- x,
355
+ S,
347
356
  {
348
357
  sx: {
349
358
  width: 36,
@@ -357,26 +366,26 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
357
366
  overflow: "hidden"
358
367
  },
359
368
  children: /* @__PURE__ */ r(
360
- He,
369
+ Ge,
361
370
  {
362
371
  sx: { fontSize: "1.25em", color: a.textSecondary }
363
372
  }
364
373
  )
365
374
  }
366
375
  ),
367
- /* @__PURE__ */ C(x, { sx: { minWidth: 0 }, children: [
376
+ /* @__PURE__ */ C(S, { sx: { minWidth: 0 }, children: [
368
377
  /* @__PURE__ */ C(
369
- x,
378
+ S,
370
379
  {
371
380
  sx: {
372
381
  display: "flex",
373
382
  alignItems: "center",
374
- gap: d.xs,
383
+ gap: c.xs,
375
384
  flexWrap: "wrap"
376
385
  },
377
386
  children: [
378
387
  /* @__PURE__ */ r(
379
- k,
388
+ L,
380
389
  {
381
390
  sx: {
382
391
  fontFamily: l.primary,
@@ -387,8 +396,8 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
387
396
  children: e
388
397
  }
389
398
  ),
390
- s && /* @__PURE__ */ r(
391
- ve,
399
+ d && /* @__PURE__ */ r(
400
+ Ee,
392
401
  {
393
402
  size: "sm",
394
403
  sx: {
@@ -398,14 +407,14 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
398
407
  color: a.palette.primary.plainColor,
399
408
  backgroundColor: `rgba(${ee(a.palette.primary.plainColor)}, 0.08)`
400
409
  },
401
- children: s
410
+ children: d
402
411
  }
403
412
  )
404
413
  ]
405
414
  }
406
415
  ),
407
- c && /* @__PURE__ */ r(
408
- k,
416
+ s && /* @__PURE__ */ r(
417
+ L,
409
418
  {
410
419
  sx: {
411
420
  fontFamily: l.secondary,
@@ -413,7 +422,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
413
422
  color: a.textSecondary,
414
423
  marginTop: "2px"
415
424
  },
416
- children: c
425
+ children: s
417
426
  }
418
427
  )
419
428
  ] })
@@ -461,7 +470,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
461
470
  shortLabelKey: "standings.columns.form",
462
471
  fullLabelKey: "standings.columns.form"
463
472
  }
464
- ], St = [
473
+ ], Ct = [
465
474
  {
466
475
  key: "goalsFor",
467
476
  shortLabelKey: "standings.columns.goalsForShort",
@@ -477,27 +486,27 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
477
486
  shortLabelKey: "standings.columns.goalsDifferenceShort",
478
487
  fullLabelKey: "standings.columns.goalsDifference"
479
488
  }
480
- ], bt = [
489
+ ], wt = [
481
490
  ...J.slice(0, 5),
482
- ...St,
491
+ ...Ct,
483
492
  ...J.slice(5)
484
- ], Ct = {
493
+ ], kt = {
485
494
  hockey: ["drawn", "form"],
486
495
  // No ties, no goal-based scoring (points are the score itself, not a standings-only
487
496
  // stat), and no match-event data yet — leaves just played/won/lost/points.
488
497
  basketball: ["drawn", "form", "goals", "goalsFor", "goalsAgainst", "goalsDifference"]
489
- }, wt = (e, t, n = !0) => {
498
+ }, Lt = (e, t, n = !0) => {
490
499
  const o = new Set(
491
- t ? Ct[t.toLowerCase()] ?? [] : []
500
+ t ? kt[t.toLowerCase()] ?? [] : []
492
501
  );
493
- return o.add(n ? "winPercentage" : "points"), (!e || e.length === 0 ? J : bt.filter((l) => e.includes(l.key))).filter((l) => !o.has(l.key));
494
- }, kt = ({ rankChange: e }) => {
502
+ return o.add(n ? "winPercentage" : "points"), (!e || e.length === 0 ? J : wt.filter((l) => e.includes(l.key))).filter((l) => !o.has(l.key));
503
+ }, Rt = ({ rankChange: e }) => {
495
504
  const t = D();
496
505
  if (e === null || e === "same")
497
506
  return /* @__PURE__ */ r(_, {});
498
507
  const n = e === "up" ? "▲" : "▼", o = e === "up" ? t.palette.success.plainColor : t.palette.danger.plainColor;
499
508
  return /* @__PURE__ */ r(
500
- x,
509
+ S,
501
510
  {
502
511
  component: "span",
503
512
  sx: {
@@ -509,10 +518,10 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
509
518
  children: n
510
519
  }
511
520
  );
512
- }, Lt = ({ row: e, highlighted: t, compact: n }) => {
513
- const o = D(), a = P(), l = $(), d = n ? 22 : 28, i = (e.teamShortName ?? e.teamName).slice(0, 2).toUpperCase();
521
+ }, Dt = ({ row: e, highlighted: t, compact: n }) => {
522
+ const o = D(), a = P(), l = $(), c = n ? 22 : 28, i = (e.teamShortName ?? e.teamName).slice(0, 2).toUpperCase();
514
523
  return /* @__PURE__ */ C(
515
- x,
524
+ S,
516
525
  {
517
526
  sx: {
518
527
  display: "flex",
@@ -530,24 +539,24 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
530
539
  },
531
540
  children: [
532
541
  e.logoUrl ? /* @__PURE__ */ r(
533
- x,
542
+ S,
534
543
  {
535
544
  component: "img",
536
545
  src: e.logoUrl,
537
546
  alt: e.teamName,
538
547
  sx: {
539
- width: d,
540
- height: d,
548
+ width: c,
549
+ height: c,
541
550
  objectFit: "contain",
542
551
  flexShrink: 0
543
552
  }
544
553
  }
545
554
  ) : /* @__PURE__ */ r(
546
- x,
555
+ S,
547
556
  {
548
557
  sx: {
549
- width: d,
550
- height: d,
558
+ width: c,
559
+ height: c,
551
560
  display: "flex",
552
561
  alignItems: "center",
553
562
  justifyContent: "center",
@@ -564,7 +573,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
564
573
  }
565
574
  ),
566
575
  /* @__PURE__ */ r(
567
- k,
576
+ L,
568
577
  {
569
578
  sx: {
570
579
  fontFamily: a.primary,
@@ -582,10 +591,10 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
582
591
  ]
583
592
  }
584
593
  );
585
- }, Rt = ({ stats: e }) => {
594
+ }, Tt = ({ stats: e }) => {
586
595
  const t = D(), n = P(), o = e.goalsDifference > 0 ? t.palette.success.plainColor : e.goalsDifference < 0 ? t.palette.danger.plainColor : t.textSecondary, a = e.goalsDifference > 0 ? V(`+${e.goalsDifference}`) : V(e.goalsDifference);
587
596
  return /* @__PURE__ */ C(
588
- x,
597
+ S,
589
598
  {
590
599
  sx: {
591
600
  display: "flex",
@@ -596,7 +605,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
596
605
  },
597
606
  children: [
598
607
  /* @__PURE__ */ C(
599
- k,
608
+ L,
600
609
  {
601
610
  sx: {
602
611
  fontFamily: n.secondary,
@@ -611,7 +620,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
611
620
  }
612
621
  ),
613
622
  /* @__PURE__ */ r(
614
- k,
623
+ L,
615
624
  {
616
625
  sx: {
617
626
  fontFamily: n.primary,
@@ -625,7 +634,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
625
634
  ]
626
635
  }
627
636
  );
628
- }, fe = 200, Dt = (e, t) => {
637
+ }, fe = 200, vt = (e, t) => {
629
638
  const n = new Date(e);
630
639
  if (Number.isNaN(n.getTime())) return "";
631
640
  const o = n.toLocaleDateString(q(t), {
@@ -637,39 +646,39 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
637
646
  minute: "2-digit"
638
647
  });
639
648
  return `${o} · ${a}`;
640
- }, Tt = ({
649
+ }, Et = ({
641
650
  teamName: e,
642
651
  teamLogoUrl: t,
643
652
  matches: n,
644
653
  loading: o
645
654
  }) => {
646
- const { t: a, i18n: l } = Y("common"), d = D(), i = P(), p = j(), { shadowRootElement: c } = Fe(Ke), s = Ae(), [u, f] = N(null), h = Te([]), b = [...n].reverse();
655
+ const { t: a, i18n: l } = Y("common"), c = D(), i = P(), f = j(), { shadowRootElement: s } = Ke(Ae), d = Oe(), [u, p] = N(null), h = ve([]), b = [...n].reverse();
647
656
  if (o)
648
- return /* @__PURE__ */ r(x, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(Oe, {}) });
657
+ return /* @__PURE__ */ r(S, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(Ne, {}) });
649
658
  if (!b.length)
650
659
  return /* @__PURE__ */ r(
651
- k,
660
+ L,
652
661
  {
653
662
  sx: {
654
663
  fontFamily: i.secondary,
655
664
  fontSize: "0.75em",
656
- color: d.textSecondary,
665
+ color: c.textSecondary,
657
666
  textAlign: "center"
658
667
  },
659
668
  children: a("standings.formNotAvailable")
660
669
  }
661
670
  );
662
- const S = (T) => T === "win" ? d.palette.success.plainColor : T === "loss" ? d.palette.danger.plainColor : d.palette.neutral.plainColor, g = (T) => {
671
+ const x = (T) => T === "win" ? c.palette.success.plainColor : T === "loss" ? c.palette.danger.plainColor : c.palette.neutral.plainColor, g = (T) => {
663
672
  const y = h.current[T];
664
- y && f({ index: T, rect: y.getBoundingClientRect() });
665
- }, m = u ? b[u.index] : null, L = u ? u.rect.left + u.rect.width / 2 : 0, R = typeof window < "u" ? Math.max(
673
+ y && p({ index: T, rect: y.getBoundingClientRect() });
674
+ }, m = u ? b[u.index] : null, w = u ? u.rect.left + u.rect.width / 2 : 0, R = typeof window < "u" ? Math.max(
666
675
  fe / 2 + 8,
667
- Math.min(L, window.innerWidth - fe / 2 - 8)
668
- ) : L, w = s && typeof window < "u" ? window.innerWidth - R : R, F = u ? u.rect.top - 8 : 0, z = {
676
+ Math.min(w, window.innerWidth - fe / 2 - 8)
677
+ ) : w, k = d && typeof window < "u" ? window.innerWidth - R : R, F = u ? u.rect.top - 8 : 0, z = {
669
678
  fontFamily: i.primary,
670
679
  fontWeight: 600,
671
680
  fontSize: "0.8125em",
672
- color: d.textPrimary,
681
+ color: c.textPrimary,
673
682
  whiteSpace: "nowrap"
674
683
  }, I = {
675
684
  width: 16,
@@ -678,13 +687,13 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
678
687
  flexShrink: 0
679
688
  };
680
689
  return /* @__PURE__ */ C(
681
- x,
690
+ S,
682
691
  {
683
692
  sx: { display: "flex", gap: "3px", justifyContent: "center" },
684
- onMouseLeave: () => f(null),
693
+ onMouseLeave: () => p(null),
685
694
  children: [
686
695
  b.map((T, y) => /* @__PURE__ */ r(
687
- x,
696
+ S,
688
697
  {
689
698
  component: "span",
690
699
  ref: (K) => {
@@ -693,26 +702,26 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
693
702
  sx: { display: "inline-flex", cursor: "pointer" },
694
703
  onMouseEnter: () => g(y),
695
704
  children: /* @__PURE__ */ r(
696
- x,
705
+ S,
697
706
  {
698
707
  sx: {
699
708
  width: 9,
700
709
  height: 9,
701
710
  borderRadius: "50%",
702
- backgroundColor: S(T.result)
711
+ backgroundColor: x(T.result)
703
712
  }
704
713
  }
705
714
  )
706
715
  },
707
716
  y
708
717
  )),
709
- u && m && Ce(
718
+ u && m && we(
710
719
  /* @__PURE__ */ r(
711
- x,
720
+ S,
712
721
  {
713
722
  sx: {
714
723
  position: "fixed",
715
- left: `${w}px`,
724
+ left: `${k}px`,
716
725
  top: `${F}px`,
717
726
  transform: "translate(-50%, -100%)",
718
727
  zIndex: 9999,
@@ -722,9 +731,9 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
722
731
  gap: "4px",
723
732
  padding: "8px 12px",
724
733
  width: "max-content",
725
- borderRadius: p.sm,
726
- backgroundColor: d.surface,
727
- border: `1px solid ${d.outlineEnabledBorder}`,
734
+ borderRadius: f.sm,
735
+ backgroundColor: c.surface,
736
+ border: `1px solid ${c.outlineEnabledBorder}`,
728
737
  boxShadow: "0 6px 20px rgba(0, 0, 0, 0.16)",
729
738
  fontSize: "1em",
730
739
  pointerEvents: "none"
@@ -733,28 +742,28 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
733
742
  const T = m.isHome ? e : m.opponentName, y = m.isHome ? m.opponentName : e, K = m.isHome ? t : m.opponentLogoUrl, U = m.isHome ? m.opponentLogoUrl : t, H = m.isHome ? m.teamScore : m.opponentScore, Q = m.isHome ? m.opponentScore : m.teamScore;
734
743
  return /* @__PURE__ */ C(_, { children: [
735
744
  /* @__PURE__ */ r(
736
- k,
745
+ L,
737
746
  {
738
747
  sx: {
739
748
  fontFamily: i.secondary,
740
749
  fontSize: "0.6875em",
741
- color: d.textSecondary,
750
+ color: c.textSecondary,
742
751
  whiteSpace: "nowrap"
743
752
  },
744
- children: Dt(m.kickoffAt, l.language)
753
+ children: vt(m.kickoffAt, l.language)
745
754
  }
746
755
  ),
747
- /* @__PURE__ */ C(x, { sx: { display: "flex", alignItems: "center", gap: "6px" }, children: [
748
- /* @__PURE__ */ r(k, { sx: z, children: T }),
749
- K && /* @__PURE__ */ r(x, { component: "img", src: K, sx: I }),
756
+ /* @__PURE__ */ C(S, { sx: { display: "flex", alignItems: "center", gap: "6px" }, children: [
757
+ /* @__PURE__ */ r(L, { sx: z, children: T }),
758
+ K && /* @__PURE__ */ r(S, { component: "img", src: K, sx: I }),
750
759
  /* @__PURE__ */ C(
751
- k,
760
+ L,
752
761
  {
753
762
  sx: {
754
763
  fontFamily: i.primary,
755
764
  fontWeight: 700,
756
765
  fontSize: "0.8125em",
757
- color: d.textPrimary,
766
+ color: c.textPrimary,
758
767
  whiteSpace: "nowrap"
759
768
  },
760
769
  children: [
@@ -764,33 +773,33 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
764
773
  ]
765
774
  }
766
775
  ),
767
- U && /* @__PURE__ */ r(x, { component: "img", src: U, sx: I }),
768
- /* @__PURE__ */ r(k, { sx: z, children: y })
776
+ U && /* @__PURE__ */ r(S, { component: "img", src: U, sx: I }),
777
+ /* @__PURE__ */ r(L, { sx: z, children: y })
769
778
  ] })
770
779
  ] });
771
780
  })()
772
781
  }
773
782
  ),
774
- c ?? document.body
783
+ s ?? document.body
775
784
  )
776
785
  ]
777
786
  }
778
787
  );
779
- }, vt = ({
788
+ }, Pt = ({
780
789
  row: e,
781
790
  zone: t,
782
791
  columns: n,
783
792
  showRankChange: o,
784
793
  highlighted: a,
785
794
  compact: l,
786
- isLast: d = !1,
795
+ isLast: c = !1,
787
796
  form: i,
788
- formLoading: p
797
+ formLoading: f
789
798
  }) => {
790
- const c = D(), s = P(), u = d ? "none" : `1px solid ${c.outlineEnabledBorder}`, f = {
791
- fontFamily: s.secondary,
799
+ const s = D(), d = P(), u = c ? "none" : `1px solid ${s.outlineEnabledBorder}`, p = {
800
+ fontFamily: d.secondary,
792
801
  fontSize: l ? "0.6875em" : "0.75em",
793
- color: c.textBody,
802
+ color: s.textBody,
794
803
  textAlign: "center"
795
804
  }, h = (m) => {
796
805
  switch (m) {
@@ -814,16 +823,16 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
814
823
  default:
815
824
  return e.stats.points;
816
825
  }
817
- }, b = (m) => m.toFixed(3).replace(/^0(?=\.)/, ""), S = (m) => m > 0 ? c.palette.success.plainColor : m < 0 ? c.palette.danger.plainColor : c.textSecondary, g = (m) => m > 0 ? V(`+${m}`) : V(m);
826
+ }, b = (m) => m.toFixed(3).replace(/^0(?=\.)/, ""), x = (m) => m > 0 ? s.palette.success.plainColor : m < 0 ? s.palette.danger.plainColor : s.textSecondary, g = (m) => m > 0 ? V(`+${m}`) : V(m);
818
827
  return /* @__PURE__ */ C(
819
828
  "tr",
820
829
  {
821
830
  style: a ? {
822
- backgroundColor: `rgba(${ee(c.palette.primary.plainColor)}, 0.08)`
831
+ backgroundColor: `rgba(${ee(s.palette.primary.plainColor)}, 0.08)`
823
832
  } : void 0,
824
833
  children: [
825
834
  /* @__PURE__ */ r("td", { style: { width: 4, padding: 0, borderBottom: u }, children: /* @__PURE__ */ r(
826
- x,
835
+ S,
827
836
  {
828
837
  sx: {
829
838
  width: "4px",
@@ -834,7 +843,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
834
843
  }
835
844
  ) }),
836
845
  /* @__PURE__ */ r("td", { style: { padding: "10px 4px", textAlign: "center", borderBottom: u }, children: /* @__PURE__ */ C(
837
- x,
846
+ S,
838
847
  {
839
848
  sx: {
840
849
  display: "inline-grid",
@@ -844,36 +853,36 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
844
853
  },
845
854
  children: [
846
855
  /* @__PURE__ */ r(
847
- k,
856
+ L,
848
857
  {
849
858
  sx: {
850
- fontFamily: s.primary,
859
+ fontFamily: d.primary,
851
860
  fontWeight: 700,
852
861
  fontSize: l ? "0.6875em" : "0.8125em",
853
- color: c.textPrimary,
862
+ color: s.textPrimary,
854
863
  textAlign: "right"
855
864
  },
856
865
  children: e.rank
857
866
  }
858
867
  ),
859
- o && /* @__PURE__ */ r(kt, { rankChange: e.rankChange })
868
+ o && /* @__PURE__ */ r(Rt, { rankChange: e.rankChange })
860
869
  ]
861
870
  }
862
871
  ) }),
863
- /* @__PURE__ */ r("td", { style: { padding: "10px 6px", textAlign: "start", borderBottom: u }, children: /* @__PURE__ */ r(Lt, { row: e, highlighted: a, compact: l }) }),
872
+ /* @__PURE__ */ r("td", { style: { padding: "10px 6px", textAlign: "start", borderBottom: u }, children: /* @__PURE__ */ r(Dt, { row: e, highlighted: a, compact: l }) }),
864
873
  n.map((m) => {
865
874
  if (m.key === "goals")
866
- return /* @__PURE__ */ r("td", { style: { padding: "8px 6px", borderBottom: u }, children: /* @__PURE__ */ r(Rt, { stats: e.stats }) }, m.key);
875
+ return /* @__PURE__ */ r("td", { style: { padding: "8px 6px", borderBottom: u }, children: /* @__PURE__ */ r(Tt, { stats: e.stats }) }, m.key);
867
876
  if (m.key === "goalsDifference") {
868
877
  const R = e.stats.goalsDifference;
869
878
  return /* @__PURE__ */ r("td", { style: { padding: "10px 6px", borderBottom: u }, children: /* @__PURE__ */ r(
870
- k,
879
+ L,
871
880
  {
872
881
  sx: {
873
- fontFamily: s.primary,
882
+ fontFamily: d.primary,
874
883
  fontSize: l ? "0.6875em" : "0.75em",
875
884
  fontWeight: 700,
876
- color: S(R),
885
+ color: x(R),
877
886
  textAlign: "center"
878
887
  },
879
888
  children: g(R)
@@ -882,25 +891,25 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
882
891
  }
883
892
  if (m.key === "form")
884
893
  return /* @__PURE__ */ r("td", { style: { padding: "10px 6px", borderBottom: u }, children: /* @__PURE__ */ r(
885
- Tt,
894
+ Et,
886
895
  {
887
896
  teamName: e.teamName,
888
897
  teamLogoUrl: e.logoUrl,
889
898
  matches: i ?? [],
890
- loading: !!p
899
+ loading: !!f
891
900
  }
892
901
  ) }, m.key);
893
- const L = m.key === "points" || m.key === "winPercentage";
902
+ const w = m.key === "points" || m.key === "winPercentage";
894
903
  return /* @__PURE__ */ r("td", { style: { padding: "10px 6px", borderBottom: u }, children: /* @__PURE__ */ r(
895
- k,
904
+ L,
896
905
  {
897
- sx: L ? {
898
- fontFamily: s.primary,
906
+ sx: w ? {
907
+ fontFamily: d.primary,
899
908
  fontWeight: 700,
900
909
  fontSize: l ? "0.75em" : "0.875em",
901
- color: c.palette.primary.plainColor,
910
+ color: s.palette.primary.plainColor,
902
911
  textAlign: "center"
903
- } : f,
912
+ } : p,
904
913
  children: m.key === "winPercentage" ? b(h(m.key)) : h(m.key)
905
914
  }
906
915
  ) }, m.key);
@@ -908,7 +917,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
908
917
  ]
909
918
  }
910
919
  );
911
- }, Et = ({ colSpan: e }) => {
920
+ }, Ft = ({ colSpan: e }) => {
912
921
  const t = D();
913
922
  return /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r(
914
923
  "td",
@@ -922,10 +931,10 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
922
931
  }
923
932
  }
924
933
  ) });
925
- }, Le = ({ zones: e, zoneLabels: t }) => {
934
+ }, Re = ({ zones: e, zoneLabels: t }) => {
926
935
  const { t: n } = Y("common"), o = D(), a = P(), l = $();
927
936
  return e.length ? /* @__PURE__ */ r(
928
- x,
937
+ S,
929
938
  {
930
939
  sx: {
931
940
  display: "flex",
@@ -936,39 +945,39 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
936
945
  backgroundColor: o.surface,
937
946
  fontSize: "1em"
938
947
  },
939
- children: e.map((d) => {
940
- const i = we(d.key), c = (i ? t == null ? void 0 : t[i] : void 0) ?? (i ? n(`standings.rules.${i}`, d.label) : d.label);
948
+ children: e.map((c) => {
949
+ const i = ke(c.key), s = (i ? t == null ? void 0 : t[i] : void 0) ?? (i ? n(`standings.rules.${i}`, c.label) : c.label);
941
950
  return /* @__PURE__ */ C(
942
- x,
951
+ S,
943
952
  {
944
953
  sx: { display: "flex", alignItems: "center", gap: "6px" },
945
954
  children: [
946
955
  /* @__PURE__ */ r(
947
- x,
956
+ S,
948
957
  {
949
958
  sx: {
950
959
  width: 9,
951
960
  height: 9,
952
961
  borderRadius: "50%",
953
962
  flexShrink: 0,
954
- backgroundColor: d.color
963
+ backgroundColor: c.color
955
964
  }
956
965
  }
957
966
  ),
958
967
  /* @__PURE__ */ r(
959
- k,
968
+ L,
960
969
  {
961
970
  sx: {
962
971
  fontFamily: a.secondary,
963
972
  fontSize: "0.6875em",
964
973
  color: o.textSecondary
965
974
  },
966
- children: c
975
+ children: s
967
976
  }
968
977
  )
969
978
  ]
970
979
  },
971
- d.key
980
+ c.key
972
981
  );
973
982
  })
974
983
  }
@@ -980,22 +989,22 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
980
989
  showLegend: o = !0,
981
990
  highlightedCompetitorIds: a,
982
991
  compact: l = !1,
983
- groupLabel: d,
992
+ groupLabel: c,
984
993
  zoneLabels: i,
985
- formByTeamId: p,
986
- formLoading: c,
987
- sport: s
994
+ formByTeamId: f,
995
+ formLoading: s,
996
+ sport: d
988
997
  }) => {
989
- const { t: u } = Y("common"), f = D(), h = P(), b = j(), S = wt(t, s, e.hasPoints), g = new Map(e.zones.map((w) => [w.key, w])), m = 3 + S.length, L = {
998
+ const { t: u } = Y("common"), p = D(), h = P(), b = j(), x = Lt(t, d, e.hasPoints), g = new Map(e.zones.map((k) => [k.key, k])), m = 3 + x.length, w = {
990
999
  backgroundColor: "transparent",
991
- borderBottom: `1px solid ${f.outlineEnabledBorder}`,
1000
+ borderBottom: `1px solid ${p.outlineEnabledBorder}`,
992
1001
  padding: 0
993
- }, R = (w = "center") => ({
1002
+ }, R = (k = "center") => ({
994
1003
  display: "flex",
995
1004
  alignItems: "center",
996
- justifyContent: w === "left" ? "flex-start" : "center",
1005
+ justifyContent: k === "left" ? "flex-start" : "center",
997
1006
  padding: l ? "0.375em" : "0.625em 0.375em",
998
- color: f.textSecondary,
1007
+ color: p.textSecondary,
999
1008
  fontFamily: h.primary,
1000
1009
  fontWeight: 600,
1001
1010
  fontSize: "0.625em",
@@ -1009,14 +1018,14 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1009
1018
  variant: "outlined",
1010
1019
  sx: {
1011
1020
  fontSize: "1em",
1012
- borderRadius: d ? b.md : `0 0 ${b.md} ${b.md}`,
1021
+ borderRadius: c ? b.md : `0 0 ${b.md} ${b.md}`,
1013
1022
  overflow: "hidden",
1014
- backgroundColor: f.surface,
1015
- borderColor: f.outlineEnabledBorder
1023
+ backgroundColor: p.surface,
1024
+ borderColor: p.outlineEnabledBorder
1016
1025
  },
1017
1026
  children: [
1018
- /* @__PURE__ */ r(x, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ C(
1019
- Ee,
1027
+ /* @__PURE__ */ r(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ C(
1028
+ Pe,
1020
1029
  {
1021
1030
  variant: "plain",
1022
1031
  borderAxis: "none",
@@ -1036,13 +1045,13 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1036
1045
  },
1037
1046
  children: [
1038
1047
  /* @__PURE__ */ r("thead", { children: /* @__PURE__ */ C("tr", { children: [
1039
- d ? /* @__PURE__ */ r(
1048
+ c ? /* @__PURE__ */ r(
1040
1049
  "th",
1041
1050
  {
1042
1051
  colSpan: 3,
1043
- style: { ...L, minWidth: l ? 90 : 160 },
1052
+ style: { ...w, minWidth: l ? 90 : 160 },
1044
1053
  children: /* @__PURE__ */ r(
1045
- x,
1054
+ S,
1046
1055
  {
1047
1056
  sx: {
1048
1057
  ...R("left"),
@@ -1050,16 +1059,16 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1050
1059
  letterSpacing: "normal",
1051
1060
  fontSize: "0.6875em",
1052
1061
  fontWeight: 700,
1053
- color: f.textPrimary
1062
+ color: p.textPrimary
1054
1063
  },
1055
- children: d
1064
+ children: c
1056
1065
  }
1057
1066
  )
1058
1067
  }
1059
1068
  ) : /* @__PURE__ */ C(_, { children: [
1060
- /* @__PURE__ */ r("th", { style: { ...L, width: 4, padding: 0 } }),
1061
- /* @__PURE__ */ r("th", { style: L, title: u("leaderboard.position"), children: /* @__PURE__ */ r(x, { sx: R(), children: /* @__PURE__ */ C(
1062
- x,
1069
+ /* @__PURE__ */ r("th", { style: { ...w, width: 4, padding: 0 } }),
1070
+ /* @__PURE__ */ r("th", { style: w, title: u("leaderboard.position"), children: /* @__PURE__ */ r(S, { sx: R(), children: /* @__PURE__ */ C(
1071
+ S,
1063
1072
  {
1064
1073
  sx: {
1065
1074
  display: "inline-grid",
@@ -1072,62 +1081,62 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1072
1081
  ]
1073
1082
  }
1074
1083
  ) }) }),
1075
- /* @__PURE__ */ r("th", { style: { ...L, minWidth: l ? 90 : 160 }, children: /* @__PURE__ */ r(x, { sx: R("left"), children: u("standings.columns.team") }) })
1084
+ /* @__PURE__ */ r("th", { style: { ...w, minWidth: l ? 90 : 160 }, children: /* @__PURE__ */ r(S, { sx: R("left"), children: u("standings.columns.team") }) })
1076
1085
  ] }),
1077
- S.map((w) => /* @__PURE__ */ r(
1086
+ x.map((k) => /* @__PURE__ */ r(
1078
1087
  "th",
1079
1088
  {
1080
- style: L,
1081
- title: u(w.fullLabelKey),
1082
- children: /* @__PURE__ */ r(x, { sx: R(), children: u(w.shortLabelKey) })
1089
+ style: w,
1090
+ title: u(k.fullLabelKey),
1091
+ children: /* @__PURE__ */ r(S, { sx: R(), children: u(k.shortLabelKey) })
1083
1092
  },
1084
- w.key
1093
+ k.key
1085
1094
  ))
1086
1095
  ] }) }),
1087
- /* @__PURE__ */ r("tbody", { children: e.rows.map((w, F) => {
1088
- const z = F > 0 ? e.rows[F - 1].zoneKey : null, I = F > 0 && z !== w.zoneKey;
1096
+ /* @__PURE__ */ r("tbody", { children: e.rows.map((k, F) => {
1097
+ const z = F > 0 ? e.rows[F - 1].zoneKey : null, I = F > 0 && z !== k.zoneKey;
1089
1098
  return /* @__PURE__ */ C(E.Fragment, { children: [
1090
- I && /* @__PURE__ */ r(Et, { colSpan: m }),
1099
+ I && /* @__PURE__ */ r(Ft, { colSpan: m }),
1091
1100
  /* @__PURE__ */ r(
1092
- vt,
1101
+ Pt,
1093
1102
  {
1094
- row: w,
1095
- zone: w.zoneKey ? g.get(w.zoneKey) : void 0,
1096
- columns: S,
1103
+ row: k,
1104
+ zone: k.zoneKey ? g.get(k.zoneKey) : void 0,
1105
+ columns: x,
1097
1106
  showRankChange: n,
1098
- highlighted: !!(a != null && a.includes(w.competitorId)),
1107
+ highlighted: !!(a != null && a.includes(k.competitorId)),
1099
1108
  compact: l,
1100
1109
  isLast: F === e.rows.length - 1,
1101
- form: p == null ? void 0 : p[w.competitorId],
1102
- formLoading: c
1110
+ form: f == null ? void 0 : f[k.competitorId],
1111
+ formLoading: s
1103
1112
  }
1104
1113
  )
1105
- ] }, w.competitorId);
1114
+ ] }, k.competitorId);
1106
1115
  }) })
1107
1116
  ]
1108
1117
  }
1109
1118
  ) }),
1110
- o && /* @__PURE__ */ r(Le, { zones: e.zones, zoneLabels: i })
1119
+ o && /* @__PURE__ */ r(Re, { zones: e.zones, zoneLabels: i })
1111
1120
  ]
1112
1121
  }
1113
1122
  );
1114
- }, Pt = ({
1123
+ }, Kt = ({
1115
1124
  groups: e,
1116
1125
  columns: t,
1117
1126
  showRankChange: n,
1118
1127
  showLegend: o,
1119
1128
  highlightedCompetitorIds: a,
1120
1129
  zoneLabels: l,
1121
- formByTeamId: d,
1130
+ formByTeamId: c,
1122
1131
  formLoading: i,
1123
- sport: p
1132
+ sport: f
1124
1133
  }) => {
1125
- const c = D(), s = P(), u = j(), f = $(), [h, b] = N(0);
1134
+ const s = D(), d = P(), u = j(), p = $(), [h, b] = N(0);
1126
1135
  return /* @__PURE__ */ C(
1127
1136
  ye,
1128
1137
  {
1129
1138
  value: h,
1130
- onChange: (S, g) => b(g),
1139
+ onChange: (x, g) => b(g),
1131
1140
  sx: { fontSize: "1em", backgroundColor: "transparent" },
1132
1141
  children: [
1133
1142
  /* @__PURE__ */ r(
@@ -1143,20 +1152,20 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1143
1152
  gap: "0.25em",
1144
1153
  // Matches SeasonHeader's and ZoneLegend's own padding so the header, the tab
1145
1154
  // bar, and the legend all read as the same consistent band.
1146
- paddingLeft: f.md,
1147
- paddingRight: f.md,
1148
- paddingTop: f.sm,
1149
- paddingBottom: f.sm,
1155
+ paddingLeft: p.md,
1156
+ paddingRight: p.md,
1157
+ paddingTop: p.sm,
1158
+ paddingBottom: p.sm,
1150
1159
  "--ListItem-radius": "0px"
1151
1160
  },
1152
- children: e.map((S, g) => /* @__PURE__ */ r(
1161
+ children: e.map((x, g) => /* @__PURE__ */ r(
1153
1162
  Se,
1154
1163
  {
1155
1164
  variant: "plain",
1156
1165
  color: "neutral",
1157
1166
  disableIndicator: !0,
1158
1167
  sx: {
1159
- fontFamily: s.primary,
1168
+ fontFamily: d.primary,
1160
1169
  fontWeight: 700,
1161
1170
  fontSize: "0.75em",
1162
1171
  textTransform: "uppercase",
@@ -1172,25 +1181,25 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1172
1181
  lineHeight: 1,
1173
1182
  minHeight: "auto",
1174
1183
  minBlockSize: "auto",
1175
- color: g === h ? c.palette.primary.onPrimary : c.textSecondary,
1184
+ color: g === h ? s.palette.primary.onPrimary : s.textSecondary,
1176
1185
  // Joy's default selected/hover state fills the tab with its own soft
1177
1186
  // background — override with higher specificity ("&&") so the active
1178
1187
  // pill uses the primary colour solidly, matching the design.
1179
1188
  "&&": {
1180
- backgroundColor: g === h ? c.palette.primary.plainColor : "transparent"
1189
+ backgroundColor: g === h ? s.palette.primary.plainColor : "transparent"
1181
1190
  },
1182
1191
  "&&:hover": {
1183
- backgroundColor: g === h ? c.palette.primary.plainColor : c.surfaceVariant,
1184
- color: g === h ? c.palette.primary.onPrimary : c.palette.primary.plainColor
1192
+ backgroundColor: g === h ? s.palette.primary.plainColor : s.surfaceVariant,
1193
+ color: g === h ? s.palette.primary.onPrimary : s.palette.primary.plainColor
1185
1194
  }
1186
1195
  },
1187
- children: S.name ?? `#${g + 1}`
1196
+ children: x.name ?? `#${g + 1}`
1188
1197
  },
1189
- S.id ?? S.name ?? g
1198
+ x.id ?? x.name ?? g
1190
1199
  ))
1191
1200
  }
1192
1201
  ),
1193
- e.map((S, g) => /* @__PURE__ */ r(
1202
+ e.map((x, g) => /* @__PURE__ */ r(
1194
1203
  be,
1195
1204
  {
1196
1205
  value: g,
@@ -1198,29 +1207,29 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1198
1207
  children: /* @__PURE__ */ r(
1199
1208
  ne,
1200
1209
  {
1201
- group: S,
1210
+ group: x,
1202
1211
  columns: t,
1203
1212
  showRankChange: n,
1204
1213
  showLegend: o,
1205
1214
  highlightedCompetitorIds: a,
1206
1215
  zoneLabels: l,
1207
- formByTeamId: d,
1216
+ formByTeamId: c,
1208
1217
  formLoading: i,
1209
- sport: p
1218
+ sport: f
1210
1219
  }
1211
1220
  )
1212
1221
  },
1213
- S.id ?? S.name ?? g
1222
+ x.id ?? x.name ?? g
1214
1223
  ))
1215
1224
  ]
1216
1225
  }
1217
1226
  );
1218
- }, Ft = [
1227
+ }, At = [
1219
1228
  "won",
1220
1229
  "drawn",
1221
1230
  "lost",
1222
1231
  "points"
1223
- ], Kt = ({
1232
+ ], Ot = ({
1224
1233
  group: e,
1225
1234
  columns: t,
1226
1235
  highlightedCompetitorIds: n,
@@ -1231,7 +1240,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1231
1240
  ne,
1232
1241
  {
1233
1242
  group: e,
1234
- columns: t ?? Ft,
1243
+ columns: t ?? At,
1235
1244
  showLegend: !1,
1236
1245
  highlightedCompetitorIds: n,
1237
1246
  groupLabel: e.name ?? void 0,
@@ -1240,26 +1249,26 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1240
1249
  sport: l,
1241
1250
  compact: !0
1242
1251
  }
1243
- ), At = (e) => {
1252
+ ), Nt = (e) => {
1244
1253
  const t = /* @__PURE__ */ new Set(), n = [];
1245
1254
  return e.forEach((o) => {
1246
1255
  o.zones.forEach((a) => {
1247
1256
  t.has(a.key) || (t.add(a.key), n.push(a));
1248
1257
  });
1249
1258
  }), n;
1250
- }, Re = ({
1259
+ }, De = ({
1251
1260
  groups: e,
1252
1261
  groupsView: t,
1253
1262
  columns: n,
1254
1263
  showRankChange: o,
1255
1264
  showLegend: a,
1256
1265
  highlightedCompetitorIds: l,
1257
- zoneLabels: d,
1266
+ zoneLabels: c,
1258
1267
  formByTeamId: i,
1259
- formLoading: p,
1260
- sport: c
1268
+ formLoading: f,
1269
+ sport: s
1261
1270
  }) => {
1262
- const s = $();
1271
+ const d = $();
1263
1272
  return e.length <= 1 ? /* @__PURE__ */ r(
1264
1273
  ne,
1265
1274
  {
@@ -1268,68 +1277,68 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1268
1277
  showRankChange: o,
1269
1278
  showLegend: a,
1270
1279
  highlightedCompetitorIds: l,
1271
- zoneLabels: d,
1280
+ zoneLabels: c,
1272
1281
  formByTeamId: i,
1273
- formLoading: p,
1274
- sport: c
1282
+ formLoading: f,
1283
+ sport: s
1275
1284
  }
1276
1285
  ) : t === "detailed" ? /* @__PURE__ */ r(
1277
- Pt,
1286
+ Kt,
1278
1287
  {
1279
1288
  groups: e,
1280
1289
  columns: n,
1281
1290
  showRankChange: o,
1282
1291
  showLegend: a,
1283
1292
  highlightedCompetitorIds: l,
1284
- zoneLabels: d,
1293
+ zoneLabels: c,
1285
1294
  formByTeamId: i,
1286
- formLoading: p,
1287
- sport: c
1295
+ formLoading: f,
1296
+ sport: s
1288
1297
  }
1289
1298
  ) : /* @__PURE__ */ C(_, { children: [
1290
1299
  /* @__PURE__ */ r(
1291
- x,
1300
+ S,
1292
1301
  {
1293
1302
  sx: {
1294
1303
  display: "grid",
1295
1304
  gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))",
1296
- gap: s.sm,
1297
- padding: s.sm
1305
+ gap: d.sm,
1306
+ padding: d.sm
1298
1307
  },
1299
- children: e.map((u, f) => /* @__PURE__ */ r(
1300
- Kt,
1308
+ children: e.map((u, p) => /* @__PURE__ */ r(
1309
+ Ot,
1301
1310
  {
1302
1311
  group: u,
1303
1312
  columns: n,
1304
1313
  highlightedCompetitorIds: l,
1305
1314
  formByTeamId: i,
1306
- formLoading: p,
1307
- sport: c
1315
+ formLoading: f,
1316
+ sport: s
1308
1317
  },
1309
- u.id ?? u.name ?? f
1318
+ u.id ?? u.name ?? p
1310
1319
  ))
1311
1320
  }
1312
1321
  ),
1313
- a && /* @__PURE__ */ r(Le, { zones: At(e), zoneLabels: d })
1322
+ a && /* @__PURE__ */ r(Re, { zones: Nt(e), zoneLabels: c })
1314
1323
  ] });
1315
- }, Ot = ({
1324
+ }, zt = ({
1316
1325
  stages: e,
1317
1326
  groupsView: t,
1318
1327
  columns: n,
1319
1328
  showRankChange: o,
1320
1329
  showLegend: a,
1321
1330
  highlightedCompetitorIds: l,
1322
- zoneLabels: d,
1331
+ zoneLabels: c,
1323
1332
  formByStageId: i,
1324
- formLoading: p,
1325
- sport: c
1333
+ formLoading: f,
1334
+ sport: s
1326
1335
  }) => {
1327
- const s = D(), u = P(), f = j(), h = $(), [b, S] = N(0);
1336
+ const d = D(), u = P(), p = j(), h = $(), [b, x] = N(0);
1328
1337
  return /* @__PURE__ */ C(
1329
1338
  ye,
1330
1339
  {
1331
1340
  value: b,
1332
- onChange: (g, m) => S(m),
1341
+ onChange: (g, m) => x(m),
1333
1342
  sx: { fontSize: "1em", backgroundColor: "transparent" },
1334
1343
  children: [
1335
1344
  /* @__PURE__ */ r(
@@ -1365,7 +1374,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1365
1374
  letterSpacing: "0.025em",
1366
1375
  whiteSpace: "nowrap",
1367
1376
  flex: "0 0 auto",
1368
- borderRadius: f.full,
1377
+ borderRadius: p.full,
1369
1378
  padding: "0.375em 0.75em",
1370
1379
  // Joy's Tab/ListItemButton bases apply their own line-height and a
1371
1380
  // --ListItem/--Tab minHeight that padding alone doesn't override —
@@ -1374,16 +1383,16 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1374
1383
  lineHeight: 1,
1375
1384
  minHeight: "auto",
1376
1385
  minBlockSize: "auto",
1377
- color: m === b ? s.palette.primary.onPrimary : s.textSecondary,
1386
+ color: m === b ? d.palette.primary.onPrimary : d.textSecondary,
1378
1387
  // Joy's default selected/hover state fills the tab with its own soft
1379
1388
  // background — override with higher specificity ("&&") so the active
1380
1389
  // pill uses the primary colour solidly, matching the design.
1381
1390
  "&&": {
1382
- backgroundColor: m === b ? s.palette.primary.plainColor : "transparent"
1391
+ backgroundColor: m === b ? d.palette.primary.plainColor : "transparent"
1383
1392
  },
1384
1393
  "&&:hover": {
1385
- backgroundColor: m === b ? s.palette.primary.plainColor : s.surfaceVariant,
1386
- color: m === b ? s.palette.primary.onPrimary : s.palette.primary.plainColor
1394
+ backgroundColor: m === b ? d.palette.primary.plainColor : d.surfaceVariant,
1395
+ color: m === b ? d.palette.primary.onPrimary : d.palette.primary.plainColor
1387
1396
  }
1388
1397
  },
1389
1398
  children: g.name ?? `#${m + 1}`
@@ -1398,7 +1407,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1398
1407
  value: m,
1399
1408
  sx: { padding: 0, fontSize: "1em" },
1400
1409
  children: /* @__PURE__ */ r(
1401
- Re,
1410
+ De,
1402
1411
  {
1403
1412
  groups: g.groups,
1404
1413
  groupsView: t,
@@ -1406,10 +1415,10 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1406
1415
  showRankChange: o,
1407
1416
  showLegend: a,
1408
1417
  highlightedCompetitorIds: l,
1409
- zoneLabels: d,
1418
+ zoneLabels: c,
1410
1419
  formByTeamId: (i == null ? void 0 : i[g.id]) ?? {},
1411
- formLoading: p,
1412
- sport: c
1420
+ formLoading: f,
1421
+ sport: s
1413
1422
  }
1414
1423
  )
1415
1424
  },
@@ -1418,48 +1427,48 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1418
1427
  ]
1419
1428
  }
1420
1429
  );
1421
- }, Nt = ({
1430
+ }, It = ({
1422
1431
  entityId: e,
1423
1432
  sdk: t,
1424
1433
  language: n,
1425
1434
  stageId: o,
1426
1435
  showHeader: a = !0,
1427
1436
  showRankChange: l = !0,
1428
- showLegend: d = !0,
1437
+ showLegend: c = !0,
1429
1438
  highlightedCompetitorIds: i,
1430
- zoneColors: p,
1431
- zoneLabels: c,
1432
- columns: s,
1439
+ zoneColors: f,
1440
+ zoneLabels: s,
1441
+ columns: d,
1433
1442
  groupsView: u = "overview",
1434
- groupIds: f,
1443
+ groupIds: p,
1435
1444
  seasonId: h,
1436
1445
  range: b
1437
1446
  }) => {
1438
1447
  var ce;
1439
- const { t: S } = Y("common"), g = D(), m = P(), L = j(), R = $(), { success: w, primary: F, warning: z, danger: I } = g.palette, T = G(
1448
+ const { t: x } = Y("common"), g = D(), m = P(), w = j(), R = $(), { success: k, primary: F, warning: z, danger: I } = g.palette, T = G(
1440
1449
  () => ({
1441
- success: w.plainColor,
1450
+ success: k.plainColor,
1442
1451
  primary: F.plainColor,
1443
1452
  warning: z.plainColor,
1444
1453
  danger: I.plainColor
1445
1454
  }),
1446
1455
  [
1447
- w.plainColor,
1456
+ k.plainColor,
1448
1457
  F.plainColor,
1449
1458
  z.plainColor,
1450
1459
  I.plainColor
1451
1460
  ]
1452
- ), { data: y, loading: K, error: U } = dt(
1461
+ ), { data: y, loading: K, error: U } = mt(
1453
1462
  e,
1454
1463
  t,
1455
1464
  T,
1456
- S("standings.unknownTeam"),
1457
- p,
1465
+ x("standings.unknownTeam"),
1458
1466
  f,
1467
+ p,
1459
1468
  h,
1460
1469
  b,
1461
1470
  o
1462
- ), H = !s || s.includes("form"), Q = ((ce = y == null ? void 0 : y.sport) == null ? void 0 : ce.toLowerCase()) === "football", De = G(() => !y || !H ? [] : y.stages.map((v) => {
1471
+ ), H = !d || d.includes("form"), Q = ((ce = y == null ? void 0 : y.sport) == null ? void 0 : ce.toLowerCase()) === "football", Te = G(() => !y || !H ? [] : y.stages.map((v) => {
1463
1472
  var W, O;
1464
1473
  const A = /* @__PURE__ */ new Set();
1465
1474
  return v.groups.forEach(
@@ -1488,8 +1497,8 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1488
1497
  })
1489
1498
  )
1490
1499
  ), v;
1491
- }, [y]), { formByStageAndTeam: re, loading: ae } = yt(t, De, e, H && Q), se = G(() => {
1492
- const v = S("standings.unknownTeam");
1500
+ }, [y]), { formByStageAndTeam: re, loading: ae } = St(t, Te, e, H && Q), se = G(() => {
1501
+ const v = x("standings.unknownTeam");
1493
1502
  return Object.fromEntries(
1494
1503
  Object.entries(re).map(([A, W]) => [
1495
1504
  A,
@@ -1508,7 +1517,7 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1508
1517
  )
1509
1518
  ])
1510
1519
  );
1511
- }, [re, oe, S]), le = !y || y.stages.every(
1520
+ }, [re, oe, x]), le = !y || y.stages.every(
1512
1521
  (v) => v.groups.every((A) => A.rows.length === 0)
1513
1522
  ), ie = {
1514
1523
  fontFamily: m.secondary,
@@ -1524,18 +1533,18 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1524
1533
  sx: {
1525
1534
  fontSize: "1em",
1526
1535
  fontFamily: m.primary,
1527
- borderRadius: L.md,
1536
+ borderRadius: w.md,
1528
1537
  overflow: "hidden",
1529
1538
  backgroundColor: g.surface,
1530
1539
  borderColor: g.outlineEnabledBorder
1531
1540
  },
1532
1541
  children: [
1533
- K && /* @__PURE__ */ r(Ne, { my: 10 }),
1534
- !K && U && /* @__PURE__ */ r(k, { sx: ie, children: S("standings.loadFailed") }),
1535
- !K && !U && le && /* @__PURE__ */ r(k, { sx: ie, children: S("standings.noStandingsAvailable") }),
1542
+ K && /* @__PURE__ */ r(ze, { my: 10 }),
1543
+ !K && U && /* @__PURE__ */ r(L, { sx: ie, children: x("standings.loadFailed") }),
1544
+ !K && !U && le && /* @__PURE__ */ r(L, { sx: ie, children: x("standings.noStandingsAvailable") }),
1536
1545
  !K && !U && y && !le && /* @__PURE__ */ C(_, { children: [
1537
1546
  a && /* @__PURE__ */ r(
1538
- xt,
1547
+ bt,
1539
1548
  {
1540
1549
  title: y.competitionName,
1541
1550
  logoUrl: y.logoUrl,
@@ -1544,29 +1553,29 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1544
1553
  }
1545
1554
  ),
1546
1555
  y.stages.length > 1 ? /* @__PURE__ */ r(
1547
- Ot,
1556
+ zt,
1548
1557
  {
1549
1558
  stages: y.stages,
1550
1559
  groupsView: u,
1551
- columns: s,
1560
+ columns: d,
1552
1561
  showRankChange: l,
1553
- showLegend: d,
1562
+ showLegend: c,
1554
1563
  highlightedCompetitorIds: i,
1555
- zoneLabels: c,
1564
+ zoneLabels: s,
1556
1565
  formByStageId: se,
1557
1566
  formLoading: ae,
1558
1567
  sport: y.sport
1559
1568
  }
1560
1569
  ) : /* @__PURE__ */ r(
1561
- Re,
1570
+ De,
1562
1571
  {
1563
1572
  groups: y.stages[0].groups,
1564
1573
  groupsView: u,
1565
- columns: s,
1574
+ columns: d,
1566
1575
  showRankChange: l,
1567
- showLegend: d,
1576
+ showLegend: c,
1568
1577
  highlightedCompetitorIds: i,
1569
- zoneLabels: c,
1578
+ zoneLabels: s,
1570
1579
  formByTeamId: se[y.stages[0].id] ?? {},
1571
1580
  formLoading: ae,
1572
1581
  sport: y.sport
@@ -1576,59 +1585,60 @@ const je = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " "
1576
1585
  ]
1577
1586
  }
1578
1587
  );
1579
- }, zt = (e) => {
1580
- const [t, n] = E.useState(!1), [o, a] = E.useState(!1), l = ze(e.language), d = E.useRef(
1588
+ }, Mt = (e) => {
1589
+ const [t, n] = E.useState(!1), [o, a] = E.useState(!1), l = Ie(e.language), c = E.useRef(
1581
1590
  `$standings-shadow-root-${Math.random().toString(36).substring(2, 11)}`
1582
- ), i = E.useRef(null), p = E.useRef(null), c = E.useRef(null), [s, u] = E.useState(null);
1591
+ ), i = E.useRef(null), f = E.useRef(null), s = E.useRef(null), [d, u] = E.useState(null);
1583
1592
  E.useEffect(() => {
1584
- Ie(e.language || "en").finally(() => a(!0));
1593
+ Me(e.language || "en").finally(() => a(!0));
1585
1594
  }, [e.language]), E.useEffect(() => {
1586
1595
  if (!i.current) return;
1587
- i.current.shadowRoot ? (p.current = i.current.shadowRoot, c.current = p.current.getElementById(
1588
- d.current
1589
- ), c.current || (c.current = document.createElement("div"), c.current.id = d.current, c.current.style.height = "100%", p.current.appendChild(c.current))) : (p.current = i.current.attachShadow({ mode: "open" }), c.current = document.createElement("div"), c.current.id = d.current, c.current.style.height = "100%", p.current.appendChild(c.current)), Me(c.current, l);
1590
- const S = $e("standings", l);
1596
+ i.current.shadowRoot ? (f.current = i.current.shadowRoot, s.current = f.current.getElementById(
1597
+ c.current
1598
+ ), s.current || (s.current = document.createElement("div"), s.current.id = c.current, s.current.style.height = "100%", f.current.appendChild(s.current))) : (f.current = i.current.attachShadow({ mode: "open" }), s.current = document.createElement("div"), s.current.id = c.current, s.current.style.height = "100%", f.current.appendChild(s.current)), $e(s.current, l);
1599
+ const x = Ue("standings", l);
1591
1600
  return u(
1592
- (g) => (g == null ? void 0 : g.key) === S ? g : Ue(
1601
+ (g) => (g == null ? void 0 : g.key) === x ? g : We(
1593
1602
  "standings",
1594
- p.current,
1603
+ f.current,
1595
1604
  l
1596
1605
  )
1597
1606
  ), n(!0), () => {
1598
1607
  n(!1);
1599
1608
  };
1600
1609
  }, [l]);
1601
- const f = e.themeOptions, h = /* @__PURE__ */ r(x, { ref: i, lang: e.language || "en", sx: { height: "100%", display: "block" } }), b = t && o && c.current && s ? Ce(
1610
+ const p = e.themeOptions, h = /* @__PURE__ */ r(S, { ref: i, lang: e.language || "en", sx: { height: "100%", display: "block" } }), b = t && o && s.current && d ? we(
1602
1611
  // Keyed on the cache, not on `direction`: it must change in the same
1603
1612
  // render that adopts the new cache, or CssVarsProvider writes its CSS
1604
1613
  // variables into the outgoing cache and never repeats.
1605
- /* @__PURE__ */ r(Ge, { value: s, children: /* @__PURE__ */ r(We, { containerRef: i, children: /* @__PURE__ */ r(
1606
- Be,
1614
+ /* @__PURE__ */ r(je, { value: d, children: /* @__PURE__ */ r(Be, { containerRef: i, children: /* @__PURE__ */ r(
1615
+ _e,
1607
1616
  {
1608
- customTheme: f,
1609
- mode: f == null ? void 0 : f.mode,
1610
- shadowRootElement: c.current,
1617
+ customTheme: p,
1618
+ mode: p == null ? void 0 : p.mode,
1619
+ shadowRootElement: s.current,
1611
1620
  direction: l,
1612
1621
  children: /* @__PURE__ */ r(
1613
- _e,
1622
+ He,
1614
1623
  {
1615
- shadowRootElement: c.current,
1624
+ shadowRootElement: s.current,
1616
1625
  leadPhoneCountryCode: null,
1617
1626
  language: e.language,
1618
1627
  optionsLayout: null,
1619
1628
  direction: l,
1629
+ disableCache: e.disableCache ?? !1,
1620
1630
  children: e.children
1621
1631
  }
1622
1632
  )
1623
1633
  }
1624
- ) }) }, s.key),
1625
- c.current
1634
+ ) }) }, d.key),
1635
+ s.current
1626
1636
  ) : null;
1627
1637
  return /* @__PURE__ */ C(_, { children: [
1628
1638
  h,
1629
1639
  b
1630
1640
  ] });
1631
- }, It = (e) => /* @__PURE__ */ r(zt, { ...e, children: /* @__PURE__ */ r(Nt, { ...e }) }), Zt = It;
1641
+ }, $t = (e) => /* @__PURE__ */ r(Mt, { ...e, children: /* @__PURE__ */ r(It, { ...e }) }), Qt = Ze($t);
1632
1642
  export {
1633
- Zt as Standings
1643
+ Qt as Standings
1634
1644
  };