@burdenoff/microfe-atheletebridge 2026.1109.1 → 2026.1110.1

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.
@@ -2,24 +2,25 @@ import { PageLayout as e } from "../../components/PageLayout.js";
2
2
  import { StatusBadge as t } from "../../components/StatusBadge.js";
3
3
  import { Crest as n } from "../../components/Crest.js";
4
4
  import { UserAvatar as r } from "../../components/UserAvatar.js";
5
- import { MatchupRow as i } from "../../components/MatchupRow.js";
5
+ import { MemberCard as i } from "../../components/MemberCard.js";
6
+ import { MatchupRow as ee } from "../../components/MatchupRow.js";
6
7
  import { EmptyState as a } from "../../components/EmptyState.js";
7
- import { ErrorState as ee, LoadingState as te } from "../../components/LoadingState.js";
8
+ import { ErrorState as te, LoadingState as ne } from "../../components/LoadingState.js";
8
9
  import { FormField as o, fieldInputClass as s } from "../../components/form.js";
9
- import { UserSearchSelect as ne } from "../../components/UserSearchSelect.js";
10
- import { MEMBER_ROLE_LABELS as c, SPORT_LABELS as re } from "../../components/domain.js";
11
- import { SubjectDecisions as ie } from "../../components/ai/SubjectDecisions.js";
10
+ import { UserSearchSelect as re } from "../../components/UserSearchSelect.js";
11
+ import { MEMBER_ROLE_LABELS as c, SPORT_LABELS as ie } from "../../components/domain.js";
12
+ import { SubjectDecisions as ae } from "../../components/ai/SubjectDecisions.js";
12
13
  import { useAthleteBridge as l } from "../../context/AthleteBridgeContext.js";
13
- import { useAddMember as ae, useArchiveTeam as oe, useRemoveMember as se, useTeam as ce, useUnarchiveTeam as le } from "../../hooks/useAthleteBridgeApi.js";
14
- import { useAbTranslate as ue } from "../../i18n.js";
14
+ import { useAddMember as oe, useArchiveTeam as se, useRemoveMember as ce, useTeam as le, useUnarchiveTeam as ue } from "../../hooks/useAthleteBridgeApi.js";
15
+ import { useAbTranslate as de } from "../../i18n.js";
15
16
  import { useState as u } from "react";
16
17
  import { useMutation as d, useQueryClient as f } from "@tanstack/react-query";
17
- import { Archive as de, ArchiveRestore as fe, ArrowLeft as pe, CalendarDays as me, Check as he, Edit as ge, Loader2 as p, MapPin as _e, Pencil as ve, Plus as ye, Trash2 as be, UserPlus as m, X as xe } from "lucide-react";
18
- import { useParams as Se } from "react-router";
18
+ import { Archive as fe, ArchiveRestore as pe, ArrowLeft as me, CalendarDays as he, Check as ge, Edit as _e, LayoutGrid as ve, List as ye, Loader2 as p, MapPin as be, Pencil as xe, Plus as Se, Trash2 as Ce, UserPlus as m, X as we } from "lucide-react";
19
+ import { useParams as Te } from "react-router";
19
20
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
20
21
  import { GlassCard as v, ResponsiveDialog as y, ResponsiveDialogContent as b, ResponsiveDialogFooter as x, ResponsiveDialogHeader as S, ResponsiveDialogTitle as C } from "@burdenoff/fe-libs/ui";
21
22
  import { clearGraphqlFetchResponseCache as w, graphqlFetch as T } from "@burdenoff/fe-libs/shared/graphql";
22
- import { useGlobalUi as Ce } from "@burdenoff/fe-libs/shared/providers/shell/GlobalUiProvider";
23
+ import { useGlobalUi as Ee } from "@burdenoff/fe-libs/shared/providers/shell/GlobalUiProvider";
23
24
  // src/atheletebridge/pages/teams/TeamDetailPage.tsx
24
25
  var E = Object.keys(c), D = [
25
26
  "TRIAL",
@@ -34,7 +35,7 @@ var E = Object.keys(c), D = [
34
35
  status: "ACTIVE",
35
36
  position: "",
36
37
  jerseyNumber: ""
37
- }, we = (e) => {
38
+ }, De = (e) => {
38
39
  let t = f(), { apiGatewayUrl: n } = l();
39
40
  return d({
40
41
  mutationFn: async ({ id: e, input: t }) => {
@@ -66,46 +67,46 @@ var E = Object.keys(c), D = [
66
67
  });
67
68
  };
68
69
  function A() {
69
- let d = ue(), { id: f } = Se(), { navigateTo: w } = l(), { showToast: T } = Ce(), A = ce(f), j = oe(), M = le(), N = ae(), P = se(f), F = we(f), [Te, I] = u(!1), [L, R] = u(k), [z, B] = u(null), [Ee, V] = u(null), [H, U] = u(null), [W, G] = u(null), [K, q] = u(null);
70
+ let d = de(), { id: f } = Te(), { navigateTo: w } = l(), { showToast: T } = Ee(), A = le(f), j = se(), M = ue(), N = oe(), P = ce(f), F = De(f), [Oe, I] = u(!1), [L, R] = u(k), [z, B] = u(null), [ke, V] = u(null), [H, U] = u(null), [W, G] = u(null), [K, q] = u(null), [J, Y] = u("list");
70
71
  if (A.isLoading) return /* @__PURE__ */ g(e, {
71
72
  title: d("atheletebridge.pages.teamDetail.title", "Team"),
72
- children: /* @__PURE__ */ g(te, { label: d("atheletebridge.pages.teamDetail.loading", "Loading team…") })
73
+ children: /* @__PURE__ */ g(ne, { label: d("atheletebridge.pages.teamDetail.loading", "Loading team…") })
73
74
  });
74
75
  if (A.isError || !A.data) return /* @__PURE__ */ g(e, {
75
76
  title: d("atheletebridge.pages.teamDetail.title", "Team"),
76
- children: /* @__PURE__ */ g(ee, {
77
+ children: /* @__PURE__ */ g(te, {
77
78
  title: d("atheletebridge.pages.teamDetail.notFoundTitle", "Team not found"),
78
79
  message: d("atheletebridge.pages.teamDetail.notFoundMessage", "This team does not exist or you do not have access to it."),
79
80
  onRetry: () => w("/teams")
80
81
  })
81
82
  });
82
- let J = A.data, Y = J.members?.items ?? [], X = J.fixtures?.items ?? [], Z = [
83
- re[J.sport],
84
- J.ageGroup ?? void 0,
85
- J.season ?? void 0,
86
- J.homeVenue ?? void 0
87
- ].filter(Boolean), De = async () => {
83
+ let X = A.data, Z = X.members?.items ?? [], Q = X.fixtures?.items ?? [], Ae = [
84
+ ie[X.sport],
85
+ X.ageGroup ?? void 0,
86
+ X.season ?? void 0,
87
+ X.homeVenue ?? void 0
88
+ ].filter(Boolean), je = async () => {
88
89
  if (f) try {
89
90
  await j.mutateAsync(f), w("/teams");
90
91
  } catch {
91
92
  T(d("atheletebridge.pages.teamDetail.archiveFailed", "Failed to archive team. Please try again."), "error");
92
93
  }
93
- }, Oe = async () => {
94
+ }, Me = async () => {
94
95
  if (f) try {
95
96
  await M.mutateAsync(f), T(d("atheletebridge.pages.teamDetail.unarchived", "Team restored"), "success");
96
97
  } catch {
97
98
  T(d("atheletebridge.pages.teamDetail.unarchiveFailed", "Failed to restore team. Please try again."), "error");
98
99
  }
99
- }, Q = (e) => {
100
+ }, Ne = (e) => {
100
101
  G(null), V(e.id), U({
101
102
  role: e.role,
102
103
  status: e.status,
103
104
  position: e.position ?? "",
104
105
  jerseyNumber: e.jerseyNumber == null ? "" : String(e.jerseyNumber)
105
106
  });
106
- }, $ = () => {
107
+ }, Pe = () => {
107
108
  V(null), U(null), G(null);
108
- }, ke = async (e) => {
109
+ }, Fe = async (e) => {
109
110
  if (!H) return;
110
111
  G(null);
111
112
  let t = H.jerseyNumber.trim(), n;
@@ -119,11 +120,11 @@ function A() {
119
120
  position: H.position.trim() || void 0,
120
121
  jerseyNumber: n
121
122
  }
122
- }), $();
123
+ }), Pe();
123
124
  } catch (e) {
124
125
  G(e instanceof Error ? e.message : "Failed to update member.");
125
126
  }
126
- }, Ae = async (e) => {
127
+ }, Ie = async (e) => {
127
128
  if (e.preventDefault(), B(null), !f) return;
128
129
  if (!L.userId.trim() || !L.displayName.trim()) {
129
130
  B("User ID and display name are required.");
@@ -144,7 +145,7 @@ function A() {
144
145
  } catch (e) {
145
146
  B(e instanceof Error ? e.message : "Failed to add member.");
146
147
  }
147
- }, je = (e) => w(`/teams/${J.id}/athletes/${e}`), Me = async () => {
148
+ }, $ = (e) => w(`/teams/${X.id}/athletes/${e}`), Le = async () => {
148
149
  if (!K) return;
149
150
  let e = K.displayName;
150
151
  try {
@@ -154,9 +155,9 @@ function A() {
154
155
  }
155
156
  };
156
157
  return /* @__PURE__ */ _(e, {
157
- title: J.name,
158
+ title: X.name,
158
159
  gradientTitle: !0,
159
- description: Z.join(" · "),
160
+ description: Ae.join(" · "),
160
161
  actions: /* @__PURE__ */ _("div", {
161
162
  className: "flex flex-wrap items-center gap-2",
162
163
  children: [
@@ -165,39 +166,39 @@ function A() {
165
166
  onClick: () => w("/teams"),
166
167
  className: "inline-flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken",
167
168
  children: [
168
- /* @__PURE__ */ g(pe, { className: "h-4 w-4" }),
169
+ /* @__PURE__ */ g(me, { className: "h-4 w-4" }),
169
170
  " ",
170
171
  d("atheletebridge.pages.teamDetail.back", "Back")
171
172
  ]
172
173
  }),
173
174
  /* @__PURE__ */ _("button", {
174
175
  type: "button",
175
- onClick: () => w(`/teams/${J.id}/edit`),
176
+ onClick: () => w(`/teams/${X.id}/edit`),
176
177
  className: "inline-flex items-center gap-1.5 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-semibold text-action-primary-text transition-colors hover:bg-action-primary-bg/90",
177
178
  children: [
178
- /* @__PURE__ */ g(ge, { className: "h-4 w-4" }),
179
+ /* @__PURE__ */ g(_e, { className: "h-4 w-4" }),
179
180
  " ",
180
181
  d("atheletebridge.pages.teamDetail.edit", "Edit")
181
182
  ]
182
183
  }),
183
- J.status !== "ARCHIVED" && /* @__PURE__ */ _("button", {
184
+ X.status !== "ARCHIVED" && /* @__PURE__ */ _("button", {
184
185
  type: "button",
185
- onClick: De,
186
+ onClick: je,
186
187
  disabled: j.isPending,
187
188
  className: "inline-flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-status-error-text transition-colors hover:bg-status-error-bg-subtle disabled:opacity-60",
188
189
  children: [
189
- j.isPending ? /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(de, { className: "h-4 w-4" }),
190
+ j.isPending ? /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(fe, { className: "h-4 w-4" }),
190
191
  " ",
191
192
  d("atheletebridge.pages.teamDetail.archive", "Archive")
192
193
  ]
193
194
  }),
194
- J.status === "ARCHIVED" && /* @__PURE__ */ _("button", {
195
+ X.status === "ARCHIVED" && /* @__PURE__ */ _("button", {
195
196
  type: "button",
196
- onClick: Oe,
197
+ onClick: Me,
197
198
  disabled: M.isPending,
198
199
  className: "inline-flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-2 text-sm font-medium text-action-primary-text transition-colors hover:bg-bg-sunken disabled:opacity-60",
199
200
  children: [
200
- M.isPending ? /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(fe, { className: "h-4 w-4" }),
201
+ M.isPending ? /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(pe, { className: "h-4 w-4" }),
201
202
  " ",
202
203
  d("atheletebridge.pages.teamDetail.unarchive", "Unarchive")
203
204
  ]
@@ -212,8 +213,8 @@ function A() {
212
213
  /* @__PURE__ */ _("div", {
213
214
  className: "flex flex-col gap-4 sm:flex-row sm:items-center",
214
215
  children: [/* @__PURE__ */ g(n, {
215
- name: J.name,
216
- sport: J.sport,
216
+ name: X.name,
217
+ sport: X.sport,
217
218
  size: 64
218
219
  }), /* @__PURE__ */ _("div", {
219
220
  className: "min-w-0 flex-1",
@@ -221,20 +222,20 @@ function A() {
221
222
  className: "flex flex-wrap items-center gap-3",
222
223
  children: [/* @__PURE__ */ g("h2", {
223
224
  className: "text-xl font-semibold text-text-primary",
224
- children: J.name
225
- }), /* @__PURE__ */ g(t, { status: J.status })]
225
+ children: X.name
226
+ }), /* @__PURE__ */ g(t, { status: X.status })]
226
227
  }), /* @__PURE__ */ g("div", {
227
228
  className: "mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-sm text-text-secondary",
228
- children: Z.map((e, t) => /* @__PURE__ */ _("span", {
229
+ children: Ae.map((e, t) => /* @__PURE__ */ _("span", {
229
230
  className: "flex items-center gap-2",
230
231
  children: [t > 0 && /* @__PURE__ */ g("span", {
231
232
  "aria-hidden": "true",
232
233
  className: "text-text-muted",
233
234
  children: "·"
234
- }), e === J.homeVenue ? /* @__PURE__ */ _("span", {
235
+ }), e === X.homeVenue ? /* @__PURE__ */ _("span", {
235
236
  className: "flex items-center gap-1",
236
237
  children: [
237
- /* @__PURE__ */ g(_e, {
238
+ /* @__PURE__ */ g(be, {
238
239
  className: "h-3.5 w-3.5",
239
240
  "aria-hidden": "true"
240
241
  }),
@@ -246,13 +247,13 @@ function A() {
246
247
  })]
247
248
  })]
248
249
  }),
249
- J.description && /* @__PURE__ */ g("p", {
250
+ X.description && /* @__PURE__ */ g("p", {
250
251
  className: "mt-4 text-sm text-text-secondary",
251
- children: J.description
252
+ children: X.description
252
253
  }),
253
- J.tags.length > 0 && /* @__PURE__ */ g("div", {
254
+ X.tags.length > 0 && /* @__PURE__ */ g("div", {
254
255
  className: "mt-4 flex flex-wrap gap-1.5",
255
- children: J.tags.map((e) => /* @__PURE__ */ g("span", {
256
+ children: X.tags.map((e) => /* @__PURE__ */ g("span", {
256
257
  className: "inline-flex items-center rounded-full bg-bg-sunken px-2 py-0.5 text-xs text-text-secondary",
257
258
  children: e
258
259
  }, e))
@@ -262,15 +263,35 @@ function A() {
262
263
  /* @__PURE__ */ _("section", {
263
264
  className: "mb-8",
264
265
  children: [/* @__PURE__ */ _("div", {
265
- className: "mb-4 flex items-center justify-between",
266
- children: [/* @__PURE__ */ _("h2", {
267
- className: "text-lg font-semibold text-text-primary",
268
- children: [
269
- d("atheletebridge.pages.teamDetail.rosterTitle", "Roster"),
270
- " (",
271
- Y.length,
272
- ")"
273
- ]
266
+ className: "mb-4 flex flex-wrap items-center justify-between gap-3",
267
+ children: [/* @__PURE__ */ _("div", {
268
+ className: "flex items-center gap-3",
269
+ children: [/* @__PURE__ */ _("h2", {
270
+ className: "text-lg font-semibold text-text-primary",
271
+ children: [
272
+ d("atheletebridge.pages.teamDetail.rosterTitle", "Roster"),
273
+ " (",
274
+ Z.length,
275
+ ")"
276
+ ]
277
+ }), Z.length > 0 && /* @__PURE__ */ _("div", {
278
+ className: "flex items-center rounded-lg border border-border-seam p-0.5",
279
+ children: [/* @__PURE__ */ g("button", {
280
+ type: "button",
281
+ onClick: () => Y("list"),
282
+ "aria-pressed": J === "list",
283
+ "aria-label": d("atheletebridge.pages.teamDetail.rosterListView", "Roster list view"),
284
+ className: `rounded-md p-1.5 transition-colors ${J === "list" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
285
+ children: /* @__PURE__ */ g(ye, { className: "h-4 w-4" })
286
+ }), /* @__PURE__ */ g("button", {
287
+ type: "button",
288
+ onClick: () => Y("cards"),
289
+ "aria-pressed": J === "cards",
290
+ "aria-label": d("atheletebridge.pages.teamDetail.rosterCardsView", "Squad cards view"),
291
+ className: `rounded-md p-1.5 transition-colors ${J === "cards" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
292
+ children: /* @__PURE__ */ g(ve, { className: "h-4 w-4" })
293
+ })]
294
+ })]
274
295
  }), /* @__PURE__ */ _("button", {
275
296
  type: "button",
276
297
  onClick: () => {
@@ -283,11 +304,17 @@ function A() {
283
304
  d("atheletebridge.pages.teamDetail.addMember", "Add member")
284
305
  ]
285
306
  })]
286
- }), Y.length === 0 ? /* @__PURE__ */ g(a, {
307
+ }), Z.length === 0 ? /* @__PURE__ */ g(a, {
287
308
  illustration: "empty-data",
288
309
  icon: /* @__PURE__ */ g(m, { className: "h-10 w-10" }),
289
310
  title: d("atheletebridge.pages.teamDetail.noMembersTitle", "No members yet"),
290
311
  description: d("atheletebridge.pages.teamDetail.noMembersHint", "Add players, coaches and staff to build the roster.")
312
+ }) : J === "cards" ? /* @__PURE__ */ g("div", {
313
+ className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",
314
+ children: Z.map((e) => /* @__PURE__ */ g(i, {
315
+ member: e,
316
+ onClick: () => $(e.id)
317
+ }, e.id))
291
318
  }) : /* @__PURE__ */ _(v, {
292
319
  treatment: "insight",
293
320
  className: "overflow-hidden p-0",
@@ -325,8 +352,8 @@ function A() {
325
352
  ]
326
353
  }) }), /* @__PURE__ */ g("tbody", {
327
354
  className: "divide-y divide-border-seam",
328
- children: Y.map((e) => {
329
- let n = Ee === e.id, i = F.isPending && n;
355
+ children: Z.map((e) => {
356
+ let n = ke === e.id, i = F.isPending && n;
330
357
  return /* @__PURE__ */ _("tr", {
331
358
  className: "align-middle transition-colors hover:bg-bg-sunken/60",
332
359
  children: [
@@ -334,7 +361,7 @@ function A() {
334
361
  className: "px-4 py-3",
335
362
  children: /* @__PURE__ */ _("button", {
336
363
  type: "button",
337
- onClick: () => je(e.id),
364
+ onClick: () => $(e.id),
338
365
  className: "group flex items-center gap-3 text-left focus-visible:outline-none",
339
366
  title: `${d("atheletebridge.pages.teamDetail.viewProfile", "View profile")}: ${e.displayName}`,
340
367
  children: [/* @__PURE__ */ g(r, {
@@ -428,31 +455,31 @@ function A() {
428
455
  className: "flex items-center justify-end gap-1",
429
456
  children: n ? /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("button", {
430
457
  type: "button",
431
- onClick: () => void ke(e.id),
458
+ onClick: () => void Fe(e.id),
432
459
  disabled: i,
433
460
  "aria-label": d("common.save", "Save"),
434
461
  className: "rounded-lg p-2 text-status-success-text transition-colors hover:bg-status-success-bg-subtle disabled:opacity-60",
435
- children: i ? /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(he, { className: "h-4 w-4" })
462
+ children: i ? /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(ge, { className: "h-4 w-4" })
436
463
  }), /* @__PURE__ */ g("button", {
437
464
  type: "button",
438
- onClick: $,
465
+ onClick: Pe,
439
466
  disabled: i,
440
467
  "aria-label": d("common.cancel", "Cancel"),
441
468
  className: "rounded-lg p-2 text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary disabled:opacity-60",
442
- children: /* @__PURE__ */ g(xe, { className: "h-4 w-4" })
469
+ children: /* @__PURE__ */ g(we, { className: "h-4 w-4" })
443
470
  })] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("button", {
444
471
  type: "button",
445
- onClick: () => Q(e),
472
+ onClick: () => Ne(e),
446
473
  "aria-label": `${d("common.edit", "Edit")} ${e.displayName}`,
447
474
  className: "rounded-lg p-2 text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary",
448
- children: /* @__PURE__ */ g(ve, { className: "h-4 w-4" })
475
+ children: /* @__PURE__ */ g(xe, { className: "h-4 w-4" })
449
476
  }), /* @__PURE__ */ g("button", {
450
477
  type: "button",
451
478
  onClick: () => q(e),
452
479
  disabled: P.isPending,
453
480
  "aria-label": `${d("common.delete", "Delete")} ${e.displayName}`,
454
481
  className: "rounded-lg p-2 text-text-secondary transition-colors hover:bg-status-error-bg-subtle hover:text-status-error-text disabled:opacity-60",
455
- children: /* @__PURE__ */ g(be, { className: "h-4 w-4" })
482
+ children: /* @__PURE__ */ g(Ce, { className: "h-4 w-4" })
456
483
  })] })
457
484
  })
458
485
  })
@@ -474,30 +501,30 @@ function A() {
474
501
  children: [
475
502
  d("atheletebridge.pages.teamDetail.fixturesTitle", "Fixtures"),
476
503
  " (",
477
- X.length,
504
+ Q.length,
478
505
  ")"
479
506
  ]
480
507
  }), /* @__PURE__ */ _("div", {
481
508
  className: "flex items-center gap-2",
482
- children: [X.length > 0 && /* @__PURE__ */ g("button", {
509
+ children: [Q.length > 0 && /* @__PURE__ */ g("button", {
483
510
  type: "button",
484
511
  onClick: () => w("/fixtures"),
485
512
  className: "text-sm font-medium text-text-link transition-colors hover:underline",
486
513
  children: d("atheletebridge.pages.teamDetail.viewAll", "View all")
487
514
  }), /* @__PURE__ */ _("button", {
488
515
  type: "button",
489
- onClick: () => w(`/fixtures/new?homeTeamId=${J.id}`),
516
+ onClick: () => w(`/fixtures/new?homeTeamId=${X.id}`),
490
517
  className: "inline-flex items-center gap-1.5 rounded-lg border border-border-seam px-3 py-1.5 text-sm font-medium text-text-primary transition-colors hover:bg-bg-sunken",
491
518
  children: [
492
- /* @__PURE__ */ g(ye, { className: "h-4 w-4" }),
519
+ /* @__PURE__ */ g(Se, { className: "h-4 w-4" }),
493
520
  " ",
494
521
  d("atheletebridge.pages.teamDetail.schedule", "Schedule")
495
522
  ]
496
523
  })]
497
524
  })]
498
- }), X.length === 0 ? /* @__PURE__ */ g(a, {
525
+ }), Q.length === 0 ? /* @__PURE__ */ g(a, {
499
526
  illustration: "empty-calendar",
500
- icon: /* @__PURE__ */ g(me, { className: "h-10 w-10" }),
527
+ icon: /* @__PURE__ */ g(he, { className: "h-10 w-10" }),
501
528
  title: d("atheletebridge.pages.teamDetail.noFixturesTitle", "No fixtures scheduled"),
502
529
  description: d("atheletebridge.pages.teamDetail.noFixturesHint", "Schedule a match for this team to start tracking results.")
503
530
  }) : /* @__PURE__ */ g(v, {
@@ -505,17 +532,17 @@ function A() {
505
532
  className: "px-4 py-1",
506
533
  children: /* @__PURE__ */ g("div", {
507
534
  className: "divide-y divide-border-seam",
508
- children: X.map((e) => /* @__PURE__ */ g(i, {
535
+ children: Q.map((e) => /* @__PURE__ */ g(ee, {
509
536
  fixture: e,
510
537
  onClick: () => w(`/fixtures/${e.id}`)
511
538
  }, e.id))
512
539
  })
513
540
  })] }),
514
- /* @__PURE__ */ g(ie, {
541
+ /* @__PURE__ */ g(ae, {
515
542
  className: "mt-8",
516
543
  subject: {
517
544
  kind: "team",
518
- teamId: J.id
545
+ teamId: X.id
519
546
  }
520
547
  }),
521
548
  /* @__PURE__ */ g(y, {
@@ -527,7 +554,7 @@ function A() {
527
554
  /* @__PURE__ */ g(S, { children: /* @__PURE__ */ g(C, { children: d("atheletebridge.pages.teamDetail.deleteMemberTitle", "Delete player?") }) }),
528
555
  /* @__PURE__ */ g("p", {
529
556
  className: "px-1 text-sm text-text-secondary",
530
- children: d("atheletebridge.pages.teamDetail.deleteMemberMessage", "This will remove \"{name}\" from {team}. This action cannot be undone.").replace("{name}", K?.displayName ?? "").replace("{team}", J.name)
557
+ children: d("atheletebridge.pages.teamDetail.deleteMemberMessage", "This will remove \"{name}\" from {team}. This action cannot be undone.").replace("{name}", K?.displayName ?? "").replace("{team}", X.name)
531
558
  }),
532
559
  /* @__PURE__ */ _(x, { children: [/* @__PURE__ */ g("button", {
533
560
  type: "button",
@@ -537,7 +564,7 @@ function A() {
537
564
  children: d("common.cancel", "Cancel")
538
565
  }), /* @__PURE__ */ _("button", {
539
566
  type: "button",
540
- onClick: () => void Me(),
567
+ onClick: () => void Le(),
541
568
  disabled: P.isPending,
542
569
  className: "inline-flex items-center gap-1.5 rounded-lg bg-action-danger-bg px-4 py-2 text-sm font-semibold text-action-danger-text transition-colors hover:bg-action-danger-bgHover disabled:opacity-60",
543
570
  children: [P.isPending && /* @__PURE__ */ g(p, { className: "h-4 w-4 animate-spin" }), d("common.delete", "Delete")]
@@ -545,13 +572,13 @@ function A() {
545
572
  ] })
546
573
  }),
547
574
  /* @__PURE__ */ g(y, {
548
- open: Te,
575
+ open: Oe,
549
576
  onOpenChange: I,
550
577
  children: /* @__PURE__ */ _(b, { children: [/* @__PURE__ */ g(S, { children: /* @__PURE__ */ g(C, { children: d("atheletebridge.pages.teamDetail.addMember", "Add member") }) }), /* @__PURE__ */ _("form", {
551
- onSubmit: Ae,
578
+ onSubmit: Ie,
552
579
  className: "space-y-4 px-1",
553
580
  children: [
554
- /* @__PURE__ */ g(ne, {
581
+ /* @__PURE__ */ g(re, {
555
582
  userId: L.userId,
556
583
  displayName: L.displayName,
557
584
  onSelect: ({ userId: e, displayName: t }) => R((n) => ({