@burdenoff/microfe-atheletebridge 2026.1116.1 → 2026.1123.2

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 (37) hide show
  1. package/dist/atheletebridge/AthleteBridgeRoot.js +71 -55
  2. package/dist/atheletebridge/AthleteBridgeRoot.js.map +1 -1
  3. package/dist/atheletebridge/AthleteBridgeRoutes.js +30 -6
  4. package/dist/atheletebridge/AthleteBridgeRoutes.js.map +1 -1
  5. package/dist/atheletebridge/components/MatchupRow.js +11 -2
  6. package/dist/atheletebridge/components/MatchupRow.js.map +1 -1
  7. package/dist/atheletebridge/components/analytics/AiInsightsPanel.d.ts +5 -0
  8. package/dist/atheletebridge/components/analytics/AiInsightsPanel.js +617 -0
  9. package/dist/atheletebridge/components/analytics/AiInsightsPanel.js.map +1 -0
  10. package/dist/atheletebridge/components/wearables/ConnectedDevicesPanel.d.ts +5 -0
  11. package/dist/atheletebridge/components/wearables/ConnectedDevicesPanel.js +453 -0
  12. package/dist/atheletebridge/components/wearables/ConnectedDevicesPanel.js.map +1 -0
  13. package/dist/atheletebridge/hooks/index.d.ts +2 -0
  14. package/dist/atheletebridge/hooks/index.js +1 -0
  15. package/dist/atheletebridge/hooks/useInsightsWearablesMarketplaceApi.d.ts +62 -0
  16. package/dist/atheletebridge/hooks/useInsightsWearablesMarketplaceApi.js +362 -0
  17. package/dist/atheletebridge/hooks/useInsightsWearablesMarketplaceApi.js.map +1 -0
  18. package/dist/atheletebridge/pages/DashboardPage.js +71 -1
  19. package/dist/atheletebridge/pages/DashboardPage.js.map +1 -1
  20. package/dist/atheletebridge/pages/analytics/CoachAnalyticsPage.d.ts +3 -1
  21. package/dist/atheletebridge/pages/analytics/CoachAnalyticsPage.js +346 -317
  22. package/dist/atheletebridge/pages/analytics/CoachAnalyticsPage.js.map +1 -1
  23. package/dist/atheletebridge/pages/athletes/AthleteProfilePage.js +171 -159
  24. package/dist/atheletebridge/pages/athletes/AthleteProfilePage.js.map +1 -1
  25. package/dist/atheletebridge/pages/devices/ConnectedDevicesPage.d.ts +1 -0
  26. package/dist/atheletebridge/pages/devices/ConnectedDevicesPage.js +14 -0
  27. package/dist/atheletebridge/pages/devices/ConnectedDevicesPage.js.map +1 -0
  28. package/dist/atheletebridge/pages/marketplace/MarketplacePage.d.ts +1 -0
  29. package/dist/atheletebridge/pages/marketplace/MarketplacePage.js +756 -0
  30. package/dist/atheletebridge/pages/marketplace/MarketplacePage.js.map +1 -0
  31. package/dist/atheletebridge/pages/performance/PerformancePage.js +296 -277
  32. package/dist/atheletebridge/pages/performance/PerformancePage.js.map +1 -1
  33. package/dist/atheletebridge/pages/sessions/SessionDetailPage.js +279 -147
  34. package/dist/atheletebridge/pages/sessions/SessionDetailPage.js.map +1 -1
  35. package/dist/atheletebridge/types/index.d.ts +1 -0
  36. package/dist/atheletebridge/types/insights.d.ts +270 -0
  37. package/package.json +1 -1
@@ -1,32 +1,34 @@
1
1
  import { PageLayout as e } from "../../components/PageLayout.js";
2
2
  import { MetricsCard as t } from "../../components/MetricsCard.js";
3
- import { Crest as n } from "../../components/Crest.js";
3
+ import { AiInsightsPanel as n } from "../../components/analytics/AiInsightsPanel.js";
4
4
  import { STATUS as r } from "../../components/viz/lib/palette.js";
5
5
  import { LineChart as i } from "../../components/viz/LineChart.js";
6
6
  import { BarChart as a } from "../../components/viz/BarChart.js";
7
7
  import { DonutChart as o } from "../../components/viz/DonutChart.js";
8
8
  import { RatingStars as s } from "../../components/viz/RatingStars.js";
9
- import { UserAvatar as c } from "../../components/UserAvatar.js";
10
- import { EmptyState as l } from "../../components/EmptyState.js";
11
- import { ErrorState as u, LoadingState as d } from "../../components/LoadingState.js";
9
+ import { Crest as c } from "../../components/Crest.js";
10
+ import { UserAvatar as l } from "../../components/UserAvatar.js";
11
+ import { EmptyState as u } from "../../components/EmptyState.js";
12
+ import { ErrorState as d, LoadingState as f } from "../../components/LoadingState.js";
12
13
  import "../../components/viz/index.js";
13
- import { humanizeEnum as f } from "../../components/domain.js";
14
- import { useAthleteBridge as p } from "../../context/AthleteBridgeContext.js";
15
- import { useAbTranslate as m } from "../../i18n.js";
16
- import { useCoachAnalytics as h, useUserDirectory as g } from "../../hooks/useAthleteBridgeApi.js";
17
- import { useMemo as _ } from "react";
18
- import { Activity as v, BarChart3 as y, CheckCircle2 as b, Info as x, ListChecks as S, Star as C, Users as w } from "lucide-react";
19
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
20
- import { Badge as O, GlassCard as k, GradientText as A, ResponsiveTable as j, Tooltip as M, TooltipContent as N, TooltipProvider as P, TooltipTrigger as F } from "@burdenoff/fe-libs/ui";
14
+ import { humanizeEnum as p } from "../../components/domain.js";
15
+ import { useAthleteBridge as m } from "../../context/AthleteBridgeContext.js";
16
+ import { useAbTranslate as h } from "../../i18n.js";
17
+ import { useCoachAnalytics as g, useUserDirectory as _ } from "../../hooks/useAthleteBridgeApi.js";
18
+ import { useMemo as v } from "react";
19
+ import { FeatureGate as y } from "@burdenoff/fe-libs/shared/feature-flags";
20
+ import { Activity as b, BarChart3 as x, CheckCircle2 as S, Info as C, ListChecks as w, Sparkles as T, Star as E, Users as D } from "lucide-react";
21
+ import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
22
+ import { Badge as j, GlassCard as M, GradientText as ee, ResponsiveTable as N, Tabs as P, TabsContent as F, TabsList as I, TabsTrigger as L, Tooltip as R, TooltipContent as z, TooltipProvider as B, TooltipTrigger as V } from "@burdenoff/fe-libs/ui";
21
23
  // src/atheletebridge/pages/analytics/CoachAnalyticsPage.tsx
22
- var I = {
24
+ var H = {
23
25
  COMPLETED: r.success,
24
26
  CONFIRMED: r.info,
25
27
  REQUESTED: r.warning,
26
28
  CANCELLED: r.danger,
27
29
  NO_SHOW: "var(--color-text-muted)"
28
30
  };
29
- function L(e, t) {
31
+ function U(e, t) {
30
32
  return e == null ? {
31
33
  label: t("atheletebridge.pages.analytics.acwr.noData", "No data"),
32
34
  variant: "secondary"
@@ -41,76 +43,76 @@ function L(e, t) {
41
43
  variant: "default"
42
44
  };
43
45
  }
44
- function R(e, t, n) {
46
+ function W(e, t, n) {
45
47
  return e && e.trim() ? e : `${n} ${t.slice(0, 4)}`;
46
48
  }
47
- var z = (e) => Math.round(e).toLocaleString();
48
- function B({ value: e, max: t }) {
49
+ var G = (e) => Math.round(e).toLocaleString();
50
+ function K({ value: e, max: t }) {
49
51
  let n = t > 0 ? Math.round(e / t * 100) : 0;
50
- return /* @__PURE__ */ E("span", {
52
+ return /* @__PURE__ */ k("span", {
51
53
  className: "block h-1.5 w-16 overflow-hidden rounded-full bg-bg-sunken",
52
54
  "aria-hidden": "true",
53
- children: /* @__PURE__ */ E("span", {
55
+ children: /* @__PURE__ */ k("span", {
54
56
  className: "block h-1.5 rounded-full bg-[var(--color-accent-teal)]",
55
57
  style: { width: `${Math.max(e > 0 ? 4 : 0, Math.min(100, n))}%` }
56
58
  })
57
59
  });
58
60
  }
59
- function V() {
60
- let r = m(), { navigateTo: w } = p(), z = h(), B = _(() => [...z.coachIds, ...z.athleteIds], [z.coachIds, z.athleteIds]), V = g(B), U = _(() => z.sessionsByStatus.map((e) => ({
61
- label: f(e.status),
61
+ function q({ initialTab: r = "ai-insights" } = {}) {
62
+ let D = h(), { navigateTo: G } = m(), K = g(), q = v(() => [...K.coachIds, ...K.athleteIds], [K.coachIds, K.athleteIds]), Y = _(q), X = v(() => K.sessionsByStatus.map((e) => ({
63
+ label: p(e.status),
62
64
  value: e.count,
63
- color: I[e.status]
64
- })), [z.sessionsByStatus]), W = _(() => z.ratingByCoach.map((e) => ({
65
- label: R(V.nameOf(e.coachId), e.coachId, r("atheletebridge.rolePrefix.coach", "Coach")),
65
+ color: H[e.status]
66
+ })), [K.sessionsByStatus]), Z = v(() => K.ratingByCoach.map((e) => ({
67
+ label: W(Y.nameOf(e.coachId), e.coachId, D("atheletebridge.rolePrefix.coach", "Coach")),
66
68
  value: Number(e.avgRating.toFixed(2))
67
69
  })), [
68
- z.ratingByCoach,
69
- V,
70
- r
71
- ]), G = [
70
+ K.ratingByCoach,
71
+ Y,
72
+ D
73
+ ]), Q = [
72
74
  {
73
75
  key: "rank",
74
- header: r("atheletebridge.pages.analytics.standings.rank", "#"),
76
+ header: D("atheletebridge.pages.analytics.standings.rank", "#"),
75
77
  priority: "secondary",
76
- cell: (e, t) => /* @__PURE__ */ E("span", {
78
+ cell: (e, t) => /* @__PURE__ */ k("span", {
77
79
  className: "tabular-nums text-text-secondary",
78
80
  children: e.rank ?? t + 1
79
81
  })
80
82
  },
81
83
  {
82
84
  key: "team",
83
- header: r("atheletebridge.pages.analytics.standings.team", "Team"),
85
+ header: D("atheletebridge.pages.analytics.standings.team", "Team"),
84
86
  priority: "primary",
85
- cell: (e) => /* @__PURE__ */ D("span", {
87
+ cell: (e) => /* @__PURE__ */ A("span", {
86
88
  className: "flex items-center gap-2",
87
- children: [/* @__PURE__ */ E(n, {
88
- name: e.team?.name ?? r("atheletebridge.pages.analytics.standings.teamFallback", "Team"),
89
+ children: [/* @__PURE__ */ k(c, {
90
+ name: e.team?.name ?? D("atheletebridge.pages.analytics.standings.teamFallback", "Team"),
89
91
  sport: e.team?.sport,
90
92
  size: 20,
91
93
  showSportGlyph: !1
92
- }), /* @__PURE__ */ E("span", {
94
+ }), /* @__PURE__ */ k("span", {
93
95
  className: "truncate font-medium text-text-primary",
94
- children: e.team?.name ?? r("atheletebridge.pages.analytics.standings.teamFallback", "Team")
96
+ children: e.team?.name ?? D("atheletebridge.pages.analytics.standings.teamFallback", "Team")
95
97
  })]
96
98
  })
97
99
  },
98
100
  {
99
101
  key: "played",
100
- header: r("atheletebridge.pages.analytics.standings.played", "P"),
102
+ header: D("atheletebridge.pages.analytics.standings.played", "P"),
101
103
  priority: "hidden-on-mobile",
102
- cell: (e) => /* @__PURE__ */ E("span", {
104
+ cell: (e) => /* @__PURE__ */ k("span", {
103
105
  className: "tabular-nums text-text-secondary",
104
106
  children: e.played
105
107
  })
106
108
  },
107
109
  {
108
110
  key: "gd",
109
- header: r("atheletebridge.pages.analytics.standings.gd", "GD"),
111
+ header: D("atheletebridge.pages.analytics.standings.gd", "GD"),
110
112
  priority: "hidden-on-mobile",
111
113
  cell: (e) => {
112
114
  let t = e.goalsFor - e.goalsAgainst;
113
- return /* @__PURE__ */ D("span", {
115
+ return /* @__PURE__ */ A("span", {
114
116
  className: "tabular-nums text-text-secondary",
115
117
  children: [t > 0 ? "+" : "", t]
116
118
  });
@@ -118,293 +120,320 @@ function V() {
118
120
  },
119
121
  {
120
122
  key: "points",
121
- header: r("atheletebridge.pages.analytics.standings.points", "Pts"),
123
+ header: D("atheletebridge.pages.analytics.standings.points", "Pts"),
122
124
  priority: "secondary",
123
- cell: (e) => /* @__PURE__ */ E("span", {
125
+ cell: (e) => /* @__PURE__ */ k("span", {
124
126
  className: "font-semibold tabular-nums text-text-primary",
125
127
  children: e.points
126
128
  })
127
129
  }
128
130
  ];
129
- if (z.isLoading) return /* @__PURE__ */ E(e, {
130
- title: r("atheletebridge.pages.analytics.title", "Coach analytics"),
131
- children: /* @__PURE__ */ E(d, { label: r("atheletebridge.pages.analytics.loading", "Crunching coaching data…") })
131
+ if (K.isLoading) return /* @__PURE__ */ k(e, {
132
+ title: D("atheletebridge.pages.analytics.title", "Coach analytics"),
133
+ children: /* @__PURE__ */ k(f, { label: D("atheletebridge.pages.analytics.loading", "Crunching coaching data…") })
132
134
  });
133
- if (z.isError) return /* @__PURE__ */ E(e, {
134
- title: r("atheletebridge.pages.analytics.title", "Coach analytics"),
135
- children: /* @__PURE__ */ E(u, {
136
- title: r("atheletebridge.pages.analytics.errorTitle", "Analytics unavailable"),
137
- message: r("atheletebridge.pages.analytics.errorMessage", "We could not load coaching analytics. Please try again.")
135
+ if (K.isError) return /* @__PURE__ */ k(e, {
136
+ title: D("atheletebridge.pages.analytics.title", "Coach analytics"),
137
+ children: /* @__PURE__ */ k(d, {
138
+ title: D("atheletebridge.pages.analytics.errorTitle", "Analytics unavailable"),
139
+ message: D("atheletebridge.pages.analytics.errorMessage", "We could not load coaching analytics. Please try again.")
138
140
  })
139
141
  });
140
- let K = z.totalSessions > 0 || z.standings.length > 0 || z.loadByAthlete.length > 0, q = L(z.trainingLoad.ratio, r);
141
- return /* @__PURE__ */ E(e, {
142
- title: /* @__PURE__ */ D("span", {
142
+ let te = K.totalSessions > 0 || K.standings.length > 0 || K.loadByAthlete.length > 0, $ = U(K.trainingLoad.ratio, D);
143
+ return /* @__PURE__ */ k(e, {
144
+ title: /* @__PURE__ */ A("span", {
143
145
  className: "flex items-center gap-2",
144
- children: [/* @__PURE__ */ E(A, { children: r("atheletebridge.pages.analytics.title", "Coach analytics") }), /* @__PURE__ */ E(O, {
146
+ children: [/* @__PURE__ */ k(ee, { children: D("atheletebridge.pages.analytics.title", "Coach analytics") }), /* @__PURE__ */ k(j, {
145
147
  variant: "outline",
146
- children: r("common.beta", "Beta")
148
+ children: D("common.beta", "Beta")
147
149
  })]
148
150
  }),
149
- description: r("atheletebridge.pages.analytics.description", "Honest aggregates over your real sessions, workouts and results."),
150
- children: K ? /* @__PURE__ */ D("div", {
151
- className: "space-y-8",
151
+ description: D("atheletebridge.pages.analytics.description", "Grounded AI performance insights and honest aggregates over your real sessions, workouts and results."),
152
+ children: /* @__PURE__ */ A(P, {
153
+ defaultValue: r,
154
+ className: "space-y-6",
152
155
  children: [
153
- /* @__PURE__ */ D("div", {
154
- className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
155
- children: [
156
- /* @__PURE__ */ E(t, {
157
- icon: /* @__PURE__ */ E(S, { className: "h-5 w-5" }),
158
- value: z.totalSessions,
159
- label: r("atheletebridge.pages.analytics.totalSessions", "Total sessions"),
160
- tone: "accent"
161
- }),
162
- /* @__PURE__ */ D(k, {
163
- treatment: "metric",
164
- className: "flex flex-col justify-between gap-3 p-5",
165
- children: [
166
- /* @__PURE__ */ D("div", {
167
- className: "flex items-start justify-between gap-2",
168
- children: [/* @__PURE__ */ E("span", {
169
- className: "text-sm font-medium text-text-secondary",
170
- children: r("atheletebridge.pages.analytics.avgRating", "Avg session rating")
171
- }), /* @__PURE__ */ E(C, { className: "h-5 w-5 text-text-muted" })]
172
- }),
173
- z.avgRating == null ? /* @__PURE__ */ E("span", {
174
- className: "text-sm text-text-muted",
175
- children: r("atheletebridge.pages.analytics.noRatedSessions", "No rated sessions yet")
176
- }) : /* @__PURE__ */ D("div", {
177
- className: "flex items-end gap-3",
178
- children: [/* @__PURE__ */ D("span", {
179
- className: "text-3xl font-semibold leading-none tabular-nums text-text-primary",
180
- children: [z.avgRating.toFixed(1), /* @__PURE__ */ E("span", {
181
- className: "ml-1 text-base text-text-secondary",
182
- children: r("atheletebridge.pages.analytics.ratingOutOf", "/5")
183
- })]
184
- }), /* @__PURE__ */ E("div", {
185
- className: "pb-1",
186
- children: /* @__PURE__ */ E(s, {
187
- value: z.avgRating,
188
- max: 5,
189
- size: 16
190
- })
191
- })]
192
- }),
193
- /* @__PURE__ */ D("span", {
194
- className: "text-xs text-text-muted tabular-nums",
195
- children: [
196
- z.ratedCount,
197
- " ",
198
- r("atheletebridge.pages.analytics.ratedOf", "rated of"),
199
- " ",
200
- z.totalSessions
201
- ]
202
- })
203
- ]
204
- }),
205
- /* @__PURE__ */ E(t, {
206
- icon: /* @__PURE__ */ E(b, { className: "h-5 w-5" }),
207
- value: `${Math.round(z.completedPct)}%`,
208
- label: r("atheletebridge.pages.analytics.sessionsCompleted", "Sessions completed"),
209
- tone: "success"
210
- })
211
- ]
156
+ /* @__PURE__ */ A(I, {
157
+ className: "flex-wrap",
158
+ children: [/* @__PURE__ */ A(L, {
159
+ value: "ai-insights",
160
+ children: [/* @__PURE__ */ k(T, { className: "mr-1.5 h-4 w-4" }), D("atheletebridge.pages.analytics.tabs.aiInsights", "AI Performance Insights")]
161
+ }), /* @__PURE__ */ A(L, {
162
+ value: "aggregates",
163
+ children: [/* @__PURE__ */ k(x, { className: "mr-1.5 h-4 w-4" }), D("atheletebridge.pages.analytics.tabs.aggregates", "Coach Aggregates")]
164
+ })]
165
+ }),
166
+ /* @__PURE__ */ k(F, {
167
+ value: "ai-insights",
168
+ children: /* @__PURE__ */ k(y, {
169
+ flag: "atheletebridge.ai-insights.enabled",
170
+ defaultValue: !0,
171
+ children: /* @__PURE__ */ k(n, {})
172
+ })
212
173
  }),
213
- /* @__PURE__ */ D("div", {
214
- className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
215
- children: [/* @__PURE__ */ D(k, {
216
- treatment: "insight",
217
- className: "p-6",
218
- children: [/* @__PURE__ */ E("h2", {
219
- className: "mb-4 text-lg font-semibold text-text-primary",
220
- children: r("atheletebridge.pages.analytics.statusOverviewTitle", "Session status overview")
221
- }), U.length > 0 ? /* @__PURE__ */ E(o, {
222
- segments: U,
223
- centerLabel: z.totalSessions,
224
- centerCaption: r("atheletebridge.pages.analytics.sessionsCaption", "sessions"),
225
- valueFormatter: (e) => e.toLocaleString()
226
- }) : /* @__PURE__ */ E("p", {
227
- className: "text-sm text-text-muted",
228
- children: r("atheletebridge.pages.analytics.statusOverviewEmpty", "No sessions to break down yet.")
229
- })]
230
- }), /* @__PURE__ */ D(k, {
231
- treatment: "insight",
232
- className: "p-6",
233
- children: [/* @__PURE__ */ E("h2", {
234
- className: "mb-4 text-lg font-semibold text-text-primary",
235
- children: r("atheletebridge.pages.analytics.ratingByCoachTitle", "Average rating by coach")
236
- }), W.length > 0 ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(a, {
237
- series: W,
238
- height: 220,
239
- colorful: !0,
240
- valueFormatter: (e) => e.toFixed(1)
241
- }), /* @__PURE__ */ E("div", {
242
- className: "mt-3 flex flex-wrap gap-x-4 gap-y-2",
243
- children: z.ratingByCoach.map((e) => /* @__PURE__ */ D("span", {
244
- className: "flex items-center gap-2 text-xs text-text-secondary",
245
- children: [/* @__PURE__ */ E(c, {
246
- name: V.nameOf(e.coachId),
247
- id: e.coachId,
248
- size: "xs"
249
- }), /* @__PURE__ */ D("span", {
250
- className: "truncate",
251
- children: [R(V.nameOf(e.coachId), e.coachId, r("atheletebridge.rolePrefix.coach", "Coach")), /* @__PURE__ */ D("span", {
252
- className: "ml-1 text-text-muted tabular-nums",
174
+ /* @__PURE__ */ k(F, {
175
+ value: "aggregates",
176
+ children: te ? /* @__PURE__ */ A("div", {
177
+ className: "space-y-8",
178
+ children: [
179
+ /* @__PURE__ */ A("div", {
180
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
181
+ children: [
182
+ /* @__PURE__ */ k(t, {
183
+ icon: /* @__PURE__ */ k(w, { className: "h-5 w-5" }),
184
+ value: K.totalSessions,
185
+ label: D("atheletebridge.pages.analytics.totalSessions", "Total sessions"),
186
+ tone: "accent"
187
+ }),
188
+ /* @__PURE__ */ A(M, {
189
+ treatment: "metric",
190
+ className: "flex flex-col justify-between gap-3 p-5",
253
191
  children: [
254
- "(",
255
- e.count,
256
- ")"
192
+ /* @__PURE__ */ A("div", {
193
+ className: "flex items-start justify-between gap-2",
194
+ children: [/* @__PURE__ */ k("span", {
195
+ className: "text-sm font-medium text-text-secondary",
196
+ children: D("atheletebridge.pages.analytics.avgRating", "Avg session rating")
197
+ }), /* @__PURE__ */ k(E, { className: "h-5 w-5 text-text-muted" })]
198
+ }),
199
+ K.avgRating == null ? /* @__PURE__ */ k("span", {
200
+ className: "text-sm text-text-muted",
201
+ children: D("atheletebridge.pages.analytics.noRatedSessions", "No rated sessions yet")
202
+ }) : /* @__PURE__ */ A("div", {
203
+ className: "flex items-end gap-3",
204
+ children: [/* @__PURE__ */ A("span", {
205
+ className: "text-3xl font-semibold leading-none tabular-nums text-text-primary",
206
+ children: [K.avgRating.toFixed(1), /* @__PURE__ */ k("span", {
207
+ className: "ml-1 text-base text-text-secondary",
208
+ children: D("atheletebridge.pages.analytics.ratingOutOf", "/5")
209
+ })]
210
+ }), /* @__PURE__ */ k("div", {
211
+ className: "pb-1",
212
+ children: /* @__PURE__ */ k(s, {
213
+ value: K.avgRating,
214
+ max: 5,
215
+ size: 16
216
+ })
217
+ })]
218
+ }),
219
+ /* @__PURE__ */ A("span", {
220
+ className: "text-xs text-text-muted tabular-nums",
221
+ children: [
222
+ K.ratedCount,
223
+ " ",
224
+ D("atheletebridge.pages.analytics.ratedOf", "rated of"),
225
+ " ",
226
+ K.totalSessions
227
+ ]
228
+ })
257
229
  ]
230
+ }),
231
+ /* @__PURE__ */ k(t, {
232
+ icon: /* @__PURE__ */ k(S, { className: "h-5 w-5" }),
233
+ value: `${Math.round(K.completedPct)}%`,
234
+ label: D("atheletebridge.pages.analytics.sessionsCompleted", "Sessions completed"),
235
+ tone: "success"
236
+ })
237
+ ]
238
+ }),
239
+ /* @__PURE__ */ A("div", {
240
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
241
+ children: [/* @__PURE__ */ A(M, {
242
+ treatment: "insight",
243
+ className: "p-6",
244
+ children: [/* @__PURE__ */ k("h2", {
245
+ className: "mb-4 text-lg font-semibold text-text-primary",
246
+ children: D("atheletebridge.pages.analytics.statusOverviewTitle", "Session status overview")
247
+ }), X.length > 0 ? /* @__PURE__ */ k(o, {
248
+ segments: X,
249
+ centerLabel: K.totalSessions,
250
+ centerCaption: D("atheletebridge.pages.analytics.sessionsCaption", "sessions"),
251
+ valueFormatter: (e) => e.toLocaleString()
252
+ }) : /* @__PURE__ */ k("p", {
253
+ className: "text-sm text-text-muted",
254
+ children: D("atheletebridge.pages.analytics.statusOverviewEmpty", "No sessions to break down yet.")
255
+ })]
256
+ }), /* @__PURE__ */ A(M, {
257
+ treatment: "insight",
258
+ className: "p-6",
259
+ children: [/* @__PURE__ */ k("h2", {
260
+ className: "mb-4 text-lg font-semibold text-text-primary",
261
+ children: D("atheletebridge.pages.analytics.ratingByCoachTitle", "Average rating by coach")
262
+ }), Z.length > 0 ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(a, {
263
+ series: Z,
264
+ height: 220,
265
+ colorful: !0,
266
+ valueFormatter: (e) => e.toFixed(1)
267
+ }), /* @__PURE__ */ k("div", {
268
+ className: "mt-3 flex flex-wrap gap-x-4 gap-y-2",
269
+ children: K.ratingByCoach.map((e) => /* @__PURE__ */ A("span", {
270
+ className: "flex items-center gap-2 text-xs text-text-secondary",
271
+ children: [/* @__PURE__ */ k(l, {
272
+ name: Y.nameOf(e.coachId),
273
+ id: e.coachId,
274
+ size: "xs"
275
+ }), /* @__PURE__ */ A("span", {
276
+ className: "truncate",
277
+ children: [W(Y.nameOf(e.coachId), e.coachId, D("atheletebridge.rolePrefix.coach", "Coach")), /* @__PURE__ */ A("span", {
278
+ className: "ml-1 text-text-muted tabular-nums",
279
+ children: [
280
+ "(",
281
+ e.count,
282
+ ")"
283
+ ]
284
+ })]
285
+ })]
286
+ }, e.coachId))
287
+ })] }) : /* @__PURE__ */ k("p", {
288
+ className: "text-sm text-text-muted",
289
+ children: D("atheletebridge.pages.analytics.ratingByCoachEmpty", "Rate completed sessions to compare coaches.")
258
290
  })]
259
291
  })]
260
- }, e.coachId))
261
- })] }) : /* @__PURE__ */ E("p", {
262
- className: "text-sm text-text-muted",
263
- children: r("atheletebridge.pages.analytics.ratingByCoachEmpty", "Rate completed sessions to compare coaches.")
264
- })]
265
- })]
266
- }),
267
- /* @__PURE__ */ D("div", {
268
- className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
269
- children: [/* @__PURE__ */ D(k, {
270
- treatment: "insight",
271
- className: "p-6",
272
- children: [/* @__PURE__ */ D("div", {
273
- className: "mb-4 flex items-center justify-between gap-2",
274
- children: [/* @__PURE__ */ E("h2", {
275
- className: "text-lg font-semibold text-text-primary",
276
- children: r("atheletebridge.pages.analytics.weeklyLoadTitle", "Weekly training load")
277
- }), /* @__PURE__ */ E(P, { children: /* @__PURE__ */ D(M, { children: [/* @__PURE__ */ E(F, {
278
- asChild: !0,
279
- children: /* @__PURE__ */ E("button", {
280
- type: "button",
281
- "aria-label": r("atheletebridge.pages.analytics.acwrAboutLabel", "About ACWR training load"),
282
- className: "rounded-full p-1 text-text-muted transition-colors hover:text-text-primary",
283
- children: /* @__PURE__ */ E(x, { className: "h-4 w-4" })
284
- })
285
- }), /* @__PURE__ */ E(N, {
286
- className: "max-w-xs",
287
- children: r("atheletebridge.pages.analytics.acwrAbout", "Total workout load per week (sum of real totalLoad). The badge is the acute:chronic workload ratio (last 7 days vs 28-day average) — a standard sports-science load indicator; 0.8–1.3 is the typical sweet spot.")
288
- })] }) })]
289
- }), z.loadTrend.some((e) => e.value > 0) ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(i, {
290
- series: z.loadTrend,
291
- seriesLabel: r("atheletebridge.pages.analytics.trainingLoadLabel", "Training load"),
292
- height: 200,
293
- valueFormatter: (e) => e.toLocaleString()
294
- }), /* @__PURE__ */ D("div", {
295
- className: "mt-4 flex flex-wrap items-center gap-x-6 gap-y-2 text-sm",
296
- children: [
297
- /* @__PURE__ */ D("span", {
298
- className: "text-text-secondary",
299
- children: [
300
- r("atheletebridge.pages.analytics.acuteLoad", "Acute (7d)"),
301
- " ",
302
- /* @__PURE__ */ E("span", {
303
- className: "font-semibold tabular-nums text-text-primary",
304
- children: Math.round(z.trainingLoad.acute).toLocaleString()
305
- })
306
- ]
307
- }),
308
- /* @__PURE__ */ D("span", {
309
- className: "text-text-secondary",
292
+ }),
293
+ /* @__PURE__ */ A("div", {
294
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
295
+ children: [/* @__PURE__ */ A(M, {
296
+ treatment: "insight",
297
+ className: "p-6",
298
+ children: [/* @__PURE__ */ A("div", {
299
+ className: "mb-4 flex items-center justify-between gap-2",
300
+ children: [/* @__PURE__ */ k("h2", {
301
+ className: "text-lg font-semibold text-text-primary",
302
+ children: D("atheletebridge.pages.analytics.weeklyLoadTitle", "Weekly training load")
303
+ }), /* @__PURE__ */ k(B, { children: /* @__PURE__ */ A(R, { children: [/* @__PURE__ */ k(V, {
304
+ asChild: !0,
305
+ children: /* @__PURE__ */ k("button", {
306
+ type: "button",
307
+ "aria-label": D("atheletebridge.pages.analytics.acwrAboutLabel", "About ACWR training load"),
308
+ className: "rounded-full p-1 text-text-muted transition-colors hover:text-text-primary",
309
+ children: /* @__PURE__ */ k(C, { className: "h-4 w-4" })
310
+ })
311
+ }), /* @__PURE__ */ k(z, {
312
+ className: "max-w-xs",
313
+ children: D("atheletebridge.pages.analytics.acwrAbout", "Total workout load per week (sum of real totalLoad). The badge is the acute:chronic workload ratio (last 7 days vs 28-day average) — a standard sports-science load indicator; 0.8–1.3 is the typical sweet spot.")
314
+ })] }) })]
315
+ }), K.loadTrend.some((e) => e.value > 0) ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(i, {
316
+ series: K.loadTrend,
317
+ seriesLabel: D("atheletebridge.pages.analytics.trainingLoadLabel", "Training load"),
318
+ height: 200,
319
+ valueFormatter: (e) => e.toLocaleString()
320
+ }), /* @__PURE__ */ A("div", {
321
+ className: "mt-4 flex flex-wrap items-center gap-x-6 gap-y-2 text-sm",
322
+ children: [
323
+ /* @__PURE__ */ A("span", {
324
+ className: "text-text-secondary",
325
+ children: [
326
+ D("atheletebridge.pages.analytics.acuteLoad", "Acute (7d)"),
327
+ " ",
328
+ /* @__PURE__ */ k("span", {
329
+ className: "font-semibold tabular-nums text-text-primary",
330
+ children: Math.round(K.trainingLoad.acute).toLocaleString()
331
+ })
332
+ ]
333
+ }),
334
+ /* @__PURE__ */ A("span", {
335
+ className: "text-text-secondary",
336
+ children: [
337
+ D("atheletebridge.pages.analytics.chronicLoad", "Chronic (28d avg)"),
338
+ " ",
339
+ /* @__PURE__ */ k("span", {
340
+ className: "font-semibold tabular-nums text-text-primary",
341
+ children: Math.round(K.trainingLoad.chronic).toLocaleString()
342
+ })
343
+ ]
344
+ }),
345
+ /* @__PURE__ */ A("span", {
346
+ className: "flex items-center gap-2 text-text-secondary",
347
+ children: [D("atheletebridge.pages.analytics.acwrAbbreviation", "ACWR"), /* @__PURE__ */ k(j, {
348
+ variant: $.variant,
349
+ className: "tabular-nums",
350
+ children: K.trainingLoad.ratio == null ? $.label : `${K.trainingLoad.ratio.toFixed(2)} · ${$.label}`
351
+ })]
352
+ })
353
+ ]
354
+ })] }) : /* @__PURE__ */ k("p", {
355
+ className: "text-sm text-text-muted",
356
+ children: D("atheletebridge.pages.analytics.weeklyLoadEmpty", "Log workouts with a load to see training trend.")
357
+ })]
358
+ }), /* @__PURE__ */ A(M, {
359
+ treatment: "insight",
360
+ className: "p-6",
361
+ children: [/* @__PURE__ */ k("h2", {
362
+ className: "mb-4 text-lg font-semibold text-text-primary",
363
+ children: D("atheletebridge.pages.analytics.sessionsPerWeekTitle", "Sessions per week")
364
+ }), K.sessionTrend.some((e) => e.value > 0) ? /* @__PURE__ */ k(a, {
365
+ series: K.sessionTrend,
366
+ height: 200,
367
+ valueFormatter: (e) => e.toLocaleString()
368
+ }) : /* @__PURE__ */ k("p", {
369
+ className: "text-sm text-text-muted",
370
+ children: D("atheletebridge.pages.analytics.sessionsPerWeekEmpty", "Schedule sessions to see weekly volume.")
371
+ })]
372
+ })]
373
+ }),
374
+ /* @__PURE__ */ k(J, {
375
+ rows: K.loadByAthlete,
376
+ directory: Y,
377
+ truncated: K.loadSampleTruncated,
378
+ tr: D
379
+ }),
380
+ K.standings.length > 0 ? /* @__PURE__ */ A("section", { children: [/* @__PURE__ */ A("div", {
381
+ className: "mb-4 flex flex-wrap items-center justify-between gap-3",
382
+ children: [/* @__PURE__ */ A("h2", {
383
+ className: "flex items-center gap-2 text-lg font-semibold text-text-primary",
310
384
  children: [
311
- r("atheletebridge.pages.analytics.chronicLoad", "Chronic (28d avg)"),
312
- " ",
313
- /* @__PURE__ */ E("span", {
314
- className: "font-semibold tabular-nums text-text-primary",
315
- children: Math.round(z.trainingLoad.chronic).toLocaleString()
316
- })
385
+ /* @__PURE__ */ k(b, { className: "h-5 w-5 text-text-muted" }),
386
+ D("atheletebridge.pages.analytics.standingsTitle", "League standings"),
387
+ K.competition ? /* @__PURE__ */ k(j, {
388
+ variant: "secondary",
389
+ children: K.competition
390
+ }) : null
317
391
  ]
318
- }),
319
- /* @__PURE__ */ D("span", {
320
- className: "flex items-center gap-2 text-text-secondary",
321
- children: [r("atheletebridge.pages.analytics.acwrAbbreviation", "ACWR"), /* @__PURE__ */ E(O, {
322
- variant: q.variant,
323
- className: "tabular-nums",
324
- children: z.trainingLoad.ratio == null ? q.label : `${z.trainingLoad.ratio.toFixed(2)} · ${q.label}`
325
- })]
392
+ }), /* @__PURE__ */ k("button", {
393
+ type: "button",
394
+ onClick: () => G("/standings"),
395
+ className: "text-sm font-medium text-[var(--color-accent-teal)] transition-colors hover:underline",
396
+ children: D("atheletebridge.pages.analytics.viewFullStandings", "View full standings")
397
+ })]
398
+ }), /* @__PURE__ */ k(M, {
399
+ treatment: "insight",
400
+ className: "p-2 sm:p-4",
401
+ children: /* @__PURE__ */ k(N, {
402
+ columns: Q,
403
+ data: K.standings,
404
+ rowKey: (e) => e.id
326
405
  })
327
- ]
328
- })] }) : /* @__PURE__ */ E("p", {
329
- className: "text-sm text-text-muted",
330
- children: r("atheletebridge.pages.analytics.weeklyLoadEmpty", "Log workouts with a load to see training trend.")
331
- })]
332
- }), /* @__PURE__ */ D(k, {
333
- treatment: "insight",
334
- className: "p-6",
335
- children: [/* @__PURE__ */ E("h2", {
336
- className: "mb-4 text-lg font-semibold text-text-primary",
337
- children: r("atheletebridge.pages.analytics.sessionsPerWeekTitle", "Sessions per week")
338
- }), z.sessionTrend.some((e) => e.value > 0) ? /* @__PURE__ */ E(a, {
339
- series: z.sessionTrend,
340
- height: 200,
341
- valueFormatter: (e) => e.toLocaleString()
342
- }) : /* @__PURE__ */ E("p", {
343
- className: "text-sm text-text-muted",
344
- children: r("atheletebridge.pages.analytics.sessionsPerWeekEmpty", "Schedule sessions to see weekly volume.")
345
- })]
346
- })]
347
- }),
348
- /* @__PURE__ */ E(H, {
349
- rows: z.loadByAthlete,
350
- directory: V,
351
- truncated: z.loadSampleTruncated,
352
- tr: r
353
- }),
354
- z.standings.length > 0 ? /* @__PURE__ */ D("section", { children: [/* @__PURE__ */ D("div", {
355
- className: "mb-4 flex flex-wrap items-center justify-between gap-3",
356
- children: [/* @__PURE__ */ D("h2", {
357
- className: "flex items-center gap-2 text-lg font-semibold text-text-primary",
358
- children: [
359
- /* @__PURE__ */ E(v, { className: "h-5 w-5 text-text-muted" }),
360
- r("atheletebridge.pages.analytics.standingsTitle", "League standings"),
361
- z.competition ? /* @__PURE__ */ E(O, {
362
- variant: "secondary",
363
- children: z.competition
364
- }) : null
406
+ })] }) : null
365
407
  ]
366
- }), /* @__PURE__ */ E("button", {
367
- type: "button",
368
- onClick: () => w("/standings"),
369
- className: "text-sm font-medium text-[var(--color-accent-teal)] transition-colors hover:underline",
370
- children: r("atheletebridge.pages.analytics.viewFullStandings", "View full standings")
371
- })]
372
- }), /* @__PURE__ */ E(k, {
373
- treatment: "insight",
374
- className: "p-2 sm:p-4",
375
- children: /* @__PURE__ */ E(j, {
376
- columns: G,
377
- data: z.standings,
378
- rowKey: (e) => e.id
408
+ }) : /* @__PURE__ */ k(u, {
409
+ illustration: "empty-data",
410
+ icon: /* @__PURE__ */ k(x, { className: "h-10 w-10" }),
411
+ title: D("atheletebridge.pages.analytics.emptyTitle", "No coaching data yet"),
412
+ description: D("atheletebridge.pages.analytics.emptyDescription", "Book and complete sessions, log workouts and record fixtures to unlock analytics.")
379
413
  })
380
- })] }) : null
414
+ })
381
415
  ]
382
- }) : /* @__PURE__ */ E(l, {
383
- illustration: "empty-data",
384
- icon: /* @__PURE__ */ E(y, { className: "h-10 w-10" }),
385
- title: r("atheletebridge.pages.analytics.emptyTitle", "No coaching data yet"),
386
- description: r("atheletebridge.pages.analytics.emptyDescription", "Book and complete sessions, log workouts and record fixtures to unlock analytics.")
387
416
  })
388
417
  });
389
418
  }
390
- function H({ rows: e, directory: t, truncated: n, tr: r }) {
391
- let i = _(() => e.reduce((e, t) => Math.max(e, t.acute, t.chronic), 0), [e]), a = _(() => [
419
+ function J({ rows: e, directory: t, truncated: n, tr: r }) {
420
+ let i = v(() => e.reduce((e, t) => Math.max(e, t.acute, t.chronic), 0), [e]), a = v(() => [
392
421
  {
393
422
  key: "athlete",
394
423
  header: r("atheletebridge.pages.analytics.loadByAthlete.athlete", "Athlete"),
395
424
  priority: "primary",
396
- cell: (e) => /* @__PURE__ */ D("span", {
425
+ cell: (e) => /* @__PURE__ */ A("span", {
397
426
  className: "flex items-center gap-2",
398
- children: [/* @__PURE__ */ E(c, {
427
+ children: [/* @__PURE__ */ k(l, {
399
428
  name: t.nameOf(e.athleteId),
400
429
  id: e.athleteId,
401
430
  size: "xs"
402
- }), /* @__PURE__ */ D("span", {
431
+ }), /* @__PURE__ */ A("span", {
403
432
  className: "min-w-0",
404
- children: [/* @__PURE__ */ E("span", {
433
+ children: [/* @__PURE__ */ k("span", {
405
434
  className: "block truncate font-medium text-text-primary",
406
- children: R(t.nameOf(e.athleteId), e.athleteId, r("atheletebridge.rolePrefix.athlete", "Athlete"))
407
- }), /* @__PURE__ */ D("span", {
435
+ children: W(t.nameOf(e.athleteId), e.athleteId, r("atheletebridge.rolePrefix.athlete", "Athlete"))
436
+ }), /* @__PURE__ */ A("span", {
408
437
  className: "block text-xs tabular-nums text-text-muted",
409
438
  children: [
410
439
  e.workoutCount,
@@ -420,15 +449,15 @@ function H({ rows: e, directory: t, truncated: n, tr: r }) {
420
449
  header: r("atheletebridge.pages.analytics.loadByAthlete.acute", "Acute load (7d)"),
421
450
  priority: "secondary",
422
451
  mobileLabel: r("atheletebridge.pages.analytics.loadByAthlete.acute", "Acute load (7d)"),
423
- cell: (e) => e.loadedCount === 0 ? /* @__PURE__ */ E("span", {
452
+ cell: (e) => e.loadedCount === 0 ? /* @__PURE__ */ k("span", {
424
453
  className: "text-text-muted",
425
454
  children: "—"
426
- }) : /* @__PURE__ */ D("span", {
455
+ }) : /* @__PURE__ */ A("span", {
427
456
  className: "flex items-center gap-2",
428
- children: [/* @__PURE__ */ E("span", {
457
+ children: [/* @__PURE__ */ k("span", {
429
458
  className: "w-14 text-right font-medium tabular-nums text-text-primary",
430
- children: z(e.acute)
431
- }), /* @__PURE__ */ E(B, {
459
+ children: G(e.acute)
460
+ }), /* @__PURE__ */ k(K, {
432
461
  value: e.acute,
433
462
  max: i
434
463
  })]
@@ -439,15 +468,15 @@ function H({ rows: e, directory: t, truncated: n, tr: r }) {
439
468
  header: r("atheletebridge.pages.analytics.loadByAthlete.chronic", "Chronic load (28d avg)"),
440
469
  priority: "secondary",
441
470
  mobileLabel: r("atheletebridge.pages.analytics.loadByAthlete.chronic", "Chronic load (28d avg)"),
442
- cell: (e) => e.loadedCount === 0 ? /* @__PURE__ */ E("span", {
471
+ cell: (e) => e.loadedCount === 0 ? /* @__PURE__ */ k("span", {
443
472
  className: "text-text-muted",
444
473
  children: "—"
445
- }) : /* @__PURE__ */ D("span", {
474
+ }) : /* @__PURE__ */ A("span", {
446
475
  className: "flex items-center gap-2",
447
- children: [/* @__PURE__ */ E("span", {
476
+ children: [/* @__PURE__ */ k("span", {
448
477
  className: "w-14 text-right font-medium tabular-nums text-text-primary",
449
- children: z(e.chronic)
450
- }), /* @__PURE__ */ E(B, {
478
+ children: G(e.chronic)
479
+ }), /* @__PURE__ */ k(K, {
451
480
  value: e.chronic,
452
481
  max: i
453
482
  })]
@@ -458,10 +487,10 @@ function H({ rows: e, directory: t, truncated: n, tr: r }) {
458
487
  header: r("atheletebridge.pages.analytics.loadByAthlete.ratio", "Load ratio"),
459
488
  priority: "secondary",
460
489
  mobileLabel: r("atheletebridge.pages.analytics.loadByAthlete.ratio", "Load ratio"),
461
- cell: (e) => e.ratio == null ? /* @__PURE__ */ E("span", {
490
+ cell: (e) => e.ratio == null ? /* @__PURE__ */ k("span", {
462
491
  className: "text-text-muted",
463
492
  children: "—"
464
- }) : /* @__PURE__ */ E("span", {
493
+ }) : /* @__PURE__ */ k("span", {
465
494
  className: "font-semibold tabular-nums text-text-primary",
466
495
  children: e.ratio.toFixed(2)
467
496
  })
@@ -472,8 +501,8 @@ function H({ rows: e, directory: t, truncated: n, tr: r }) {
472
501
  priority: "primary",
473
502
  mobileLabel: r("atheletebridge.pages.analytics.loadByAthlete.status", "Status"),
474
503
  cell: (e) => {
475
- let t = L(e.ratio, r);
476
- return /* @__PURE__ */ E(O, {
504
+ let t = U(e.ratio, r);
505
+ return /* @__PURE__ */ k(j, {
477
506
  variant: t.variant,
478
507
  children: t.label
479
508
  });
@@ -484,44 +513,44 @@ function H({ rows: e, directory: t, truncated: n, tr: r }) {
484
513
  i,
485
514
  r
486
515
  ]);
487
- return /* @__PURE__ */ D("section", { children: [/* @__PURE__ */ D("div", {
516
+ return /* @__PURE__ */ A("section", { children: [/* @__PURE__ */ A("div", {
488
517
  className: "mb-4 flex flex-wrap items-center gap-2",
489
- children: [/* @__PURE__ */ D("h2", {
518
+ children: [/* @__PURE__ */ A("h2", {
490
519
  className: "flex items-center gap-2 text-lg font-semibold text-text-primary",
491
- children: [/* @__PURE__ */ E(w, { className: "h-5 w-5 text-text-muted" }), r("atheletebridge.pages.analytics.loadByAthlete.title", "Training load by athlete")]
492
- }), /* @__PURE__ */ E(P, { children: /* @__PURE__ */ D(M, { children: [/* @__PURE__ */ E(F, {
520
+ children: [/* @__PURE__ */ k(D, { className: "h-5 w-5 text-text-muted" }), r("atheletebridge.pages.analytics.loadByAthlete.title", "Training load by athlete")]
521
+ }), /* @__PURE__ */ k(B, { children: /* @__PURE__ */ A(R, { children: [/* @__PURE__ */ k(V, {
493
522
  asChild: !0,
494
- children: /* @__PURE__ */ E("button", {
523
+ children: /* @__PURE__ */ k("button", {
495
524
  type: "button",
496
525
  "aria-label": r("atheletebridge.pages.analytics.loadByAthlete.aboutLabel", "About per-athlete training load"),
497
526
  className: "rounded-full p-1 text-text-muted transition-colors hover:text-text-primary",
498
- children: /* @__PURE__ */ E(x, { className: "h-4 w-4" })
527
+ children: /* @__PURE__ */ k(C, { className: "h-4 w-4" })
499
528
  })
500
- }), /* @__PURE__ */ E(N, {
529
+ }), /* @__PURE__ */ k(z, {
501
530
  className: "max-w-xs",
502
531
  children: r("atheletebridge.pages.analytics.loadByAthlete.about", "Each athlete’s acute:chronic workload ratio — their last 7 days of logged workout load against their 28-day weekly average. 0.8–1.3 is the typical sweet spot; above 1.5 is a spike worth reviewing.")
503
532
  })] }) })]
504
- }), e.length === 0 ? /* @__PURE__ */ E(k, {
533
+ }), e.length === 0 ? /* @__PURE__ */ k(M, {
505
534
  treatment: "insight",
506
535
  className: "p-6",
507
- children: /* @__PURE__ */ E("p", {
536
+ children: /* @__PURE__ */ k("p", {
508
537
  className: "text-sm text-text-muted",
509
538
  children: r("atheletebridge.pages.analytics.loadByAthlete.empty", "No workouts logged in the last 28 days. Log workouts with a total load to compare athletes.")
510
539
  })
511
- }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(k, {
540
+ }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(M, {
512
541
  treatment: "insight",
513
542
  className: "p-2 sm:p-4",
514
- children: /* @__PURE__ */ E(j, {
543
+ children: /* @__PURE__ */ k(N, {
515
544
  columns: a,
516
545
  data: e,
517
546
  rowKey: (e) => e.athleteId,
518
547
  caption: r("atheletebridge.pages.analytics.loadByAthlete.caption", "Acute and chronic training load per athlete over the last 28 days")
519
548
  })
520
- }), n ? /* @__PURE__ */ E("p", {
549
+ }), n ? /* @__PURE__ */ k("p", {
521
550
  className: "mt-3 text-xs text-text-muted",
522
551
  children: r("atheletebridge.pages.analytics.loadByAthlete.truncated", "Computed from the most recent page of workout logs, which does not reach back a full 28 days — these loads are a floor, not a total.")
523
552
  }) : null] })] });
524
553
  }
525
- export { V as CoachAnalyticsPage };
554
+ export { q as CoachAnalyticsPage };
526
555
 
527
556
  //# sourceMappingURL=CoachAnalyticsPage.js.map