@nukleus-sports/ui-patterns 0.7.0 → 0.8.0

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.
package/dist/team.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EntityAvatar
3
- } from "./chunk-4N2GUEA7.js";
3
+ } from "./chunk-2KJMI6DZ.js";
4
4
 
5
5
  // src/team/team-info-card.tsx
6
6
  import {
@@ -12,7 +12,11 @@ import {
12
12
  TabsTrigger,
13
13
  cn
14
14
  } from "@nukleus-sports/ui-web";
15
- import { formatTeamName, getTeamPlaceSummaries } from "@nukleus-sports/core";
15
+ import {
16
+ formatTeamName,
17
+ getTeamPlaceSummaries,
18
+ getTeamWebsiteHref
19
+ } from "@nukleus-sports/core";
16
20
  import { jsx, jsxs } from "react/jsx-runtime";
17
21
  function PlaceValueCell({ place }) {
18
22
  if (!place.name) {
@@ -81,7 +85,7 @@ function TeamInfoCard({ team, resolveImageUrl, className }) {
81
85
  /* @__PURE__ */ jsx("div", { className: "flex flex-col text-right", children: team.officialWebsite ? /* @__PURE__ */ jsxs(
82
86
  "a",
83
87
  {
84
- href: /^https?:\/\//.test(team.officialWebsite) ? team.officialWebsite : `http://${team.officialWebsite}`,
88
+ href: getTeamWebsiteHref(team.officialWebsite),
85
89
  target: "_blank",
86
90
  rel: "noopener noreferrer",
87
91
  className: "text-primary-color-nuk-text body-text inline-flex items-center justify-end gap-1",
@@ -191,7 +195,6 @@ function TeamStaffTable({
191
195
  const [internalSorting, setInternalSorting] = useState(DEFAULT_SORT);
192
196
  const activeSorting = sorting ?? internalSorting;
193
197
  const handleSortingChange = onSortingChange ?? setInternalSorting;
194
- const effectiveVirtualized = virtualized && !isSplitLayout;
195
198
  const rows = useMemo(() => {
196
199
  if (staff.length === 0) return [];
197
200
  const grouped = /* @__PURE__ */ new Map();
@@ -227,7 +230,7 @@ function TeamStaffTable({
227
230
  const { visibleItems, sentinelRef, hasMore } = useInfiniteList(rows, {
228
231
  resetKey: `${staff.length}|${JSON.stringify(activeSorting)}`
229
232
  });
230
- const displayedRows = effectiveVirtualized ? visibleItems : rows;
233
+ const displayedRows = virtualized ? visibleItems : rows;
231
234
  const columns = useMemo(() => {
232
235
  const activate = (id) => onStaffClick?.(id);
233
236
  const interactionProps = (id, ariaLabel) => interactive ? {
@@ -269,6 +272,7 @@ function TeamStaffTable({
269
272
  coach_image_url: member.coach_image_url
270
273
  },
271
274
  resolveImageUrl,
275
+ preferInitials: true,
272
276
  size: isCompact ? "xs" : "lg"
273
277
  }
274
278
  )
@@ -319,18 +323,18 @@ function TeamStaffTable({
319
323
  loading,
320
324
  emptyMessage: isError ? "Failed to load coaching staff. Please try again." : "No coaches found.",
321
325
  pageSize: Math.max(displayedRows.length, 25),
322
- hidePagination: effectiveVirtualized,
326
+ hidePagination: virtualized,
323
327
  stickyHeader: true,
324
328
  splitLayout: isSplitLayout,
325
329
  numberOfColumns: 1,
326
330
  splitLayoutGridCols: isCompact ? "!grid-cols-[minmax(120px,120px)_1fr]" : isSplitLayout ? "sm:!grid-cols-[minmax(220px,220px)_1fr]" : "",
327
- containerClassName: cn3("border-0 rounded-none xl:h-full", effectiveVirtualized && "h-full"),
331
+ containerClassName: cn3("border-0 rounded-none xl:h-full", virtualized && "h-full"),
328
332
  className: cn3(
329
333
  "border-none xl:flex-1 xl:min-h-0 xl:overflow-hidden",
330
- effectiveVirtualized && "h-full min-h-0 w-full",
334
+ virtualized && "h-full min-h-0 w-full",
331
335
  className
332
336
  ),
333
- bottomContent: effectiveVirtualized && hasMore ? /* @__PURE__ */ jsx3("div", { ref: sentinelRef, className: "h-px w-full" }) : null,
337
+ bottomContent: virtualized && hasMore ? /* @__PURE__ */ jsx3("div", { ref: sentinelRef, className: "h-px w-full" }) : null,
334
338
  getRowBanner: (row) => row.__isCategoryRow ? row.__categoryLabel : null,
335
339
  bannerRowClassName: "bg-greys-background-hover hover:bg-greys-background-hover",
336
340
  getRowClassName: (row) => row.__isCategoryRow ? "hidden" : ""
@@ -338,12 +342,252 @@ function TeamStaffTable({
338
342
  ) });
339
343
  }
340
344
 
345
+ // src/team/team-roster-table.tsx
346
+ import { useMemo as useMemo2, useState as useState2 } from "react";
347
+ import {
348
+ BaseTable as BaseTable2,
349
+ createClickableSortableHeader as createClickableSortableHeader2,
350
+ useInfiniteList as useInfiniteList2,
351
+ cn as cn4
352
+ } from "@nukleus-sports/ui-web";
353
+ import {
354
+ getRosterCellValue,
355
+ getRosterColumns,
356
+ sortTeamPlayers
357
+ } from "@nukleus-sports/core";
358
+ import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
359
+ var DEFAULT_SORT2 = [{ id: "first_name", desc: false }];
360
+ var NO_SORT = [];
361
+ function cellSizeFor(key, isCompact) {
362
+ switch (key) {
363
+ case "first_name":
364
+ return isCompact ? "teamMobile" : "xl";
365
+ case "college":
366
+ case "birthplace":
367
+ case "hometown":
368
+ return "l";
369
+ default:
370
+ return "xxs";
371
+ }
372
+ }
373
+ function RosterNameCell({
374
+ player,
375
+ value,
376
+ rowClickable,
377
+ onPlayerClick,
378
+ isCompact,
379
+ resolveImageUrl
380
+ }) {
381
+ const content = /* @__PURE__ */ jsxs4(Fragment, { children: [
382
+ /* @__PURE__ */ jsx4(
383
+ EntityAvatar,
384
+ {
385
+ entityType: "player",
386
+ entityData: {
387
+ first_name: player.first_name,
388
+ last_name: player.last_name,
389
+ player_image_url: player.player_image_url
390
+ },
391
+ resolveImageUrl,
392
+ preferInitials: true,
393
+ size: "md",
394
+ className: isCompact ? "h-5 w-5" : "h-[34px] w-[34px]"
395
+ }
396
+ ),
397
+ /* @__PURE__ */ jsx4("span", { className: "min-w-0 line-clamp-2 break-words", children: value })
398
+ ] });
399
+ return rowClickable ? /* @__PURE__ */ jsx4(
400
+ "button",
401
+ {
402
+ type: "button",
403
+ className: "flex min-w-0 w-full items-center gap-2 text-left",
404
+ "aria-label": `View ${value}'s profile`,
405
+ onClick: (event) => {
406
+ event.stopPropagation();
407
+ onPlayerClick?.(player.id);
408
+ },
409
+ children: content
410
+ }
411
+ ) : /* @__PURE__ */ jsx4("div", { className: "flex min-w-0 w-full items-center gap-2", children: content });
412
+ }
413
+ function splitGridCols(isCompact, isSplitLayout) {
414
+ if (isCompact) return "!grid-cols-[minmax(136px,136px)_1fr]";
415
+ return isSplitLayout ? "sm:!grid-cols-[minmax(220px,220px)_1fr]" : "";
416
+ }
417
+ function useRosterSorting({ sortable, sorting, onSortingChange }) {
418
+ const [internalSorting, setInternalSorting] = useState2(DEFAULT_SORT2);
419
+ const activeSorting = sortable ? sorting ?? internalSorting : NO_SORT;
420
+ const handleSortingChange = onSortingChange ?? setInternalSorting;
421
+ const tableSortingProps = sortable ? {
422
+ sorting: activeSorting,
423
+ manualSorting: true,
424
+ onSortingChange: ((updater) => {
425
+ const next = typeof updater === "function" ? updater(activeSorting) : updater;
426
+ handleSortingChange(next);
427
+ })
428
+ } : { manualSorting: false };
429
+ return { activeSorting, tableSortingProps };
430
+ }
431
+ function useRosterColumns({
432
+ leagueId,
433
+ sortable,
434
+ rowClickable,
435
+ onPlayerClick,
436
+ isCompact,
437
+ resolveImageUrl
438
+ }) {
439
+ return useMemo2(() => {
440
+ if (leagueId === null) return [];
441
+ const dataColumns = getRosterColumns(leagueId).map(
442
+ ({ key, label }) => ({
443
+ id: key,
444
+ header: sortable ? createClickableSortableHeader2(label) : label,
445
+ accessorFn: (player) => getRosterCellValue(player, key, leagueId),
446
+ enableSorting: sortable,
447
+ enableMultiSort: false,
448
+ cell: ({ row }) => {
449
+ const player = row.original;
450
+ const value = getRosterCellValue(player, key, leagueId);
451
+ if (key !== "first_name") {
452
+ return /* @__PURE__ */ jsx4("div", { className: "flex items-center h-full min-h-[46px]", children: /* @__PURE__ */ jsx4("span", { className: "line-clamp-2 break-all", children: value }) });
453
+ }
454
+ return /* @__PURE__ */ jsx4(
455
+ RosterNameCell,
456
+ {
457
+ player,
458
+ value,
459
+ rowClickable,
460
+ onPlayerClick,
461
+ isCompact,
462
+ resolveImageUrl
463
+ }
464
+ );
465
+ },
466
+ meta: { cellSize: cellSizeFor(key, isCompact) }
467
+ })
468
+ );
469
+ return [
470
+ ...dataColumns,
471
+ {
472
+ id: "empty",
473
+ header: "",
474
+ enableSorting: false,
475
+ cell: () => null,
476
+ meta: { cellSize: "" }
477
+ }
478
+ ];
479
+ }, [leagueId, sortable, rowClickable, onPlayerClick, isCompact, resolveImageUrl]);
480
+ }
481
+ function TeamRosterTable({
482
+ players,
483
+ leagueId,
484
+ loading,
485
+ isError,
486
+ rowClickable = false,
487
+ onPlayerClick,
488
+ sortable = false,
489
+ sorting,
490
+ onSortingChange,
491
+ virtualized = false,
492
+ isSplitLayout = false,
493
+ isCompact = false,
494
+ resolveImageUrl,
495
+ className
496
+ }) {
497
+ const { activeSorting, tableSortingProps } = useRosterSorting({
498
+ sortable,
499
+ sorting,
500
+ onSortingChange
501
+ });
502
+ const sortedPlayers = useMemo2(
503
+ () => sortTeamPlayers(players, activeSorting, leagueId ?? void 0),
504
+ [players, activeSorting, leagueId]
505
+ );
506
+ const { visibleItems, sentinelRef, hasMore } = useInfiniteList2(sortedPlayers, {
507
+ resetKey: `${leagueId ?? ""}|${players.length}|${JSON.stringify(activeSorting)}`
508
+ });
509
+ const displayedPlayers = virtualized ? visibleItems : sortedPlayers;
510
+ const columns = useRosterColumns({
511
+ leagueId,
512
+ sortable,
513
+ rowClickable,
514
+ onPlayerClick,
515
+ isCompact,
516
+ resolveImageUrl
517
+ });
518
+ return /* @__PURE__ */ jsx4("div", { className: "w-full xl:flex xl:h-full xl:flex-1 xl:min-h-0 xl:flex-col xl:overflow-hidden", children: /* @__PURE__ */ jsx4(
519
+ BaseTable2,
520
+ {
521
+ columns,
522
+ data: displayedPlayers,
523
+ getRowId: (row) => String(row.id),
524
+ ...tableSortingProps,
525
+ onRowClick: rowClickable ? (player) => onPlayerClick?.(player.id) : void 0,
526
+ loading,
527
+ emptyMessage: isError ? "Failed to load roster. Please try again." : "No roster found",
528
+ pageSize: Math.max(displayedPlayers.length, 25),
529
+ hidePagination: virtualized,
530
+ stickyHeader: true,
531
+ splitLayout: isSplitLayout,
532
+ numberOfColumns: 1,
533
+ splitLayoutGridCols: splitGridCols(isCompact, isSplitLayout),
534
+ containerClassName: cn4("border-0 rounded-none xl:h-full", virtualized && "h-full"),
535
+ className: cn4(
536
+ "border-none xl:flex-1 xl:min-h-0 xl:overflow-hidden",
537
+ virtualized && "h-full min-h-0 w-full",
538
+ className
539
+ ),
540
+ bottomContent: virtualized && hasMore ? /* @__PURE__ */ jsx4("div", { ref: sentinelRef, className: "h-px w-full" }) : null
541
+ }
542
+ ) });
543
+ }
544
+
545
+ // src/team/team-places-card.tsx
546
+ import { Fragment as Fragment2 } from "react";
547
+ import { Card as Card3, CardContent as CardContent3, cn as cn5 } from "@nukleus-sports/ui-web";
548
+ import { getTeamPlaceSummaries as getTeamPlaceSummaries2, getTeamWebsiteHref as getTeamWebsiteHref2 } from "@nukleus-sports/core";
549
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
550
+ function TeamPlacesCard({ team, className }) {
551
+ const { venue, facility } = getTeamPlaceSummaries2(team.specificData, team.leagueAbbreviation);
552
+ return /* @__PURE__ */ jsx5(Card3, { className: cn5("border-0", className), children: /* @__PURE__ */ jsx5(CardContent3, { className: "p-4", children: /* @__PURE__ */ jsxs5("div", { className: "grid h-full grid-cols-[auto_1fr] gap-x-3 gap-y-4 sm:gap-4", children: [
553
+ [venue, facility].map((place) => /* @__PURE__ */ jsxs5(Fragment2, { children: [
554
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-col max-sm:max-w-[96px]", children: /* @__PURE__ */ jsx5("p", { className: "mb-1 text-14.5 text-text-primary sm:text-base", children: place.label }) }),
555
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-col break-words text-right max-sm:min-w-0", children: place.name ? /* @__PURE__ */ jsxs5("div", { className: "text-14.5 sm:text-base", children: [
556
+ /* @__PURE__ */ jsx5("p", { children: place.name }),
557
+ place.address ? /* @__PURE__ */ jsx5("p", { children: place.address }) : /* @__PURE__ */ jsx5("p", { className: "text-muted-foreground", children: "No address available" })
558
+ ] }) : /* @__PURE__ */ jsx5("p", { className: "text-14.5 text-muted-foreground sm:text-base", children: "No address available" }) })
559
+ ] }, place.label)),
560
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-col max-sm:max-w-[96px]", children: /* @__PURE__ */ jsx5("p", { className: "mb-1 text-14.5 text-text-primary sm:text-base", children: "Website" }) }),
561
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-col break-words text-right max-sm:min-w-0", children: team.officialWebsite ? /* @__PURE__ */ jsxs5(
562
+ "a",
563
+ {
564
+ href: getTeamWebsiteHref2(team.officialWebsite),
565
+ target: "_blank",
566
+ rel: "noopener noreferrer",
567
+ className: "inline-flex items-center justify-end gap-1 text-14.5 text-primary-color-nuk-text sm:text-base",
568
+ children: [
569
+ team.officialWebsite.replace(/^https?:\/\//i, ""),
570
+ /* @__PURE__ */ jsx5("svg", { className: "h-3 w-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5(
571
+ "path",
572
+ {
573
+ strokeLinecap: "round",
574
+ strokeLinejoin: "round",
575
+ strokeWidth: 2,
576
+ d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
577
+ }
578
+ ) })
579
+ ]
580
+ }
581
+ ) : /* @__PURE__ */ jsx5("p", { className: "text-14.5 text-muted-foreground sm:text-base", children: "No website available" }) })
582
+ ] }) }) });
583
+ }
584
+
341
585
  // src/team/stat-column.tsx
342
- import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
586
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
343
587
  function StatColumn({ label, value, suffix, rankBadge }) {
344
- return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center h-full justify-center flex-1 gap-1 sm:gap-3 w-full", children: [
345
- /* @__PURE__ */ jsx4("span", { className: "label-xs-medium text-text-secondary leading-normal opacity-[0.8] ss05", children: label }),
346
- /* @__PURE__ */ jsxs4("span", { className: "text-[19px] font-semibold sm:text-[32px] sm:font-bold text-text-primary leading-normal title-text opacity-[0.8]", children: [
588
+ return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center h-full justify-center flex-1 gap-1 sm:gap-3 w-full", children: [
589
+ /* @__PURE__ */ jsx6("span", { className: "label-xs-medium text-text-secondary leading-normal opacity-[0.8] ss05", children: label }),
590
+ /* @__PURE__ */ jsxs6("span", { className: "text-[19px] font-semibold sm:text-[32px] sm:font-bold text-text-primary leading-normal title-text opacity-[0.8]", children: [
347
591
  value,
348
592
  suffix || ""
349
593
  ] }),
@@ -352,12 +596,12 @@ function StatColumn({ label, value, suffix, rankBadge }) {
352
596
  }
353
597
 
354
598
  // src/team/team-season-stats-summary-panel.tsx
355
- import { Card as Card3, CardContent as CardContent3, CardHeader, CardTitle, Skeleton, cn as cn4 } from "@nukleus-sports/ui-web";
599
+ import { Card as Card4, CardContent as CardContent4, CardHeader, CardTitle, Skeleton, cn as cn6 } from "@nukleus-sports/ui-web";
356
600
  import {
357
601
  getTeamStatColumns,
358
602
  isSupportedTeamStatsSport
359
603
  } from "@nukleus-sports/core";
360
- import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
604
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
361
605
  function getStatusMessage({
362
606
  isSupportedSport,
363
607
  selectedYear,
@@ -388,9 +632,9 @@ function TeamSeasonStatsSummaryPanel({
388
632
  isError,
389
633
  stats
390
634
  });
391
- return /* @__PURE__ */ jsxs5(Card3, { className: cn4("border-0 p-4 flex flex-col gap-4", className), children: [
392
- /* @__PURE__ */ jsx5(CardHeader, { className: "p-0", children: /* @__PURE__ */ jsx5(CardTitle, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Stats" }) }),
393
- /* @__PURE__ */ jsx5(CardContent3, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ jsx5("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsx5(Skeleton, { className: "h-4 w-3/4" }) }) : statusMessage ? /* @__PURE__ */ jsx5("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: statusMessage }) : stats && /* @__PURE__ */ jsx5("div", { className: "w-full flex flex-col sm:flex-row gap-6 sm:gap-3 justify-between items-center", children: columns.map((col, i) => /* @__PURE__ */ jsx5(
635
+ return /* @__PURE__ */ jsxs7(Card4, { className: cn6("border-0 p-4 flex flex-col gap-4", className), children: [
636
+ /* @__PURE__ */ jsx7(CardHeader, { className: "p-0", children: /* @__PURE__ */ jsx7(CardTitle, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Stats" }) }),
637
+ /* @__PURE__ */ jsx7(CardContent4, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ jsx7("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsx7(Skeleton, { className: "h-4 w-3/4" }) }) : statusMessage ? /* @__PURE__ */ jsx7("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: statusMessage }) : stats && /* @__PURE__ */ jsx7("div", { className: "w-full flex flex-col sm:flex-row gap-6 sm:gap-3 justify-between items-center", children: columns.map((col, i) => /* @__PURE__ */ jsx7(
394
638
  StatColumn,
395
639
  {
396
640
  label: col.label,
@@ -403,8 +647,8 @@ function TeamSeasonStatsSummaryPanel({
403
647
  }
404
648
 
405
649
  // src/team/team-season-schedule-summary-panel.tsx
406
- import { Card as Card4, CardContent as CardContent4, CardHeader as CardHeader2, CardTitle as CardTitle2, Skeleton as Skeleton2, cn as cn5 } from "@nukleus-sports/ui-web";
407
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
650
+ import { Card as Card5, CardContent as CardContent5, CardHeader as CardHeader2, CardTitle as CardTitle2, Skeleton as Skeleton2, cn as cn7 } from "@nukleus-sports/ui-web";
651
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
408
652
  function TeamSeasonScheduleSummaryPanel({
409
653
  selectedYear,
410
654
  selectedType,
@@ -413,11 +657,11 @@ function TeamSeasonScheduleSummaryPanel({
413
657
  isError,
414
658
  className
415
659
  }) {
416
- return /* @__PURE__ */ jsxs6(Card4, { className: cn5("border-0 p-4 flex flex-col gap-4", className), children: [
417
- /* @__PURE__ */ jsx6(CardHeader2, { className: "p-0", children: /* @__PURE__ */ jsx6(CardTitle2, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Summary" }) }),
418
- /* @__PURE__ */ jsx6(CardContent4, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ jsx6("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsx6(Skeleton2, { className: "h-4 w-3/4" }) }) : !selectedYear || selectedType === null ? /* @__PURE__ */ jsx6("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "Select a season to view summary." }) : isError && !summary ? /* @__PURE__ */ jsx6("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "Couldn't load the schedule summary. Please try again." }) : !summary ? /* @__PURE__ */ jsx6("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "No schedule data for the current season." }) : /* @__PURE__ */ jsxs6("div", { className: "w-full flex flex-col sm:flex-row gap-6 sm:gap-3 justify-between items-center", children: [
419
- /* @__PURE__ */ jsx6(StatColumn, { label: "Record", value: summary.record }),
420
- /* @__PURE__ */ jsx6(
660
+ return /* @__PURE__ */ jsxs8(Card5, { className: cn7("border-0 p-4 flex flex-col gap-4", className), children: [
661
+ /* @__PURE__ */ jsx8(CardHeader2, { className: "p-0", children: /* @__PURE__ */ jsx8(CardTitle2, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Summary" }) }),
662
+ /* @__PURE__ */ jsx8(CardContent5, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ jsx8(Skeleton2, { className: "h-4 w-3/4" }) }) : !selectedYear || selectedType === null ? /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "Select a season to view summary." }) : isError && !summary ? /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "Couldn't load the schedule summary. Please try again." }) : !summary ? /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "No schedule data for the current season." }) : /* @__PURE__ */ jsxs8("div", { className: "w-full flex flex-col sm:flex-row gap-6 sm:gap-3 justify-between items-center", children: [
663
+ /* @__PURE__ */ jsx8(StatColumn, { label: "Record", value: summary.record }),
664
+ /* @__PURE__ */ jsx8(
421
665
  StatColumn,
422
666
  {
423
667
  label: "Games Played",
@@ -435,9 +679,9 @@ import {
435
679
  SelectItem,
436
680
  SelectTrigger,
437
681
  SelectValue,
438
- cn as cn6
682
+ cn as cn8
439
683
  } from "@nukleus-sports/ui-web";
440
- import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
684
+ import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
441
685
  function SeasonSelector({
442
686
  years,
443
687
  types,
@@ -448,39 +692,39 @@ function SeasonSelector({
448
692
  hideTypeOnMobile = false,
449
693
  className
450
694
  }) {
451
- return /* @__PURE__ */ jsxs7("div", { className: cn6("flex gap-3", className), children: [
452
- /* @__PURE__ */ jsxs7(
695
+ return /* @__PURE__ */ jsxs9("div", { className: cn8("flex gap-3", className), children: [
696
+ /* @__PURE__ */ jsxs9(
453
697
  Select,
454
698
  {
455
699
  value: selectedYear?.toString() ?? "",
456
700
  onValueChange: (value) => onYearChange(Number(value)),
457
701
  children: [
458
- /* @__PURE__ */ jsx7(SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season year", children: /* @__PURE__ */ jsx7(SelectValue, { placeholder: "Select year" }) }),
459
- /* @__PURE__ */ jsx7(
702
+ /* @__PURE__ */ jsx9(SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season year", children: /* @__PURE__ */ jsx9(SelectValue, { placeholder: "Select year" }) }),
703
+ /* @__PURE__ */ jsx9(
460
704
  SelectContent,
461
705
  {
462
706
  className: "bg-card border-border z-50 [&_.checkbox]:!flex",
463
707
  classNameViewPort: "gap-2",
464
- children: years.map((year) => /* @__PURE__ */ jsx7(SelectItem, { value: year.value.toString(), className: "min-h-8", children: year.label }, year.value))
708
+ children: years.map((year) => /* @__PURE__ */ jsx9(SelectItem, { value: year.value.toString(), className: "min-h-8", children: year.label }, year.value))
465
709
  }
466
710
  )
467
711
  ]
468
712
  }
469
713
  ),
470
- /* @__PURE__ */ jsx7("div", { className: cn6(hideTypeOnMobile && "hidden sm:block"), children: /* @__PURE__ */ jsxs7(
714
+ /* @__PURE__ */ jsx9("div", { className: cn8(hideTypeOnMobile && "hidden sm:block"), children: /* @__PURE__ */ jsxs9(
471
715
  Select,
472
716
  {
473
717
  value: selectedType?.toString() ?? "",
474
718
  onValueChange: (value) => onTypeChange(Number(value)),
475
719
  disabled: selectedYear === null,
476
720
  children: [
477
- /* @__PURE__ */ jsx7(SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season type", children: /* @__PURE__ */ jsx7(SelectValue, { placeholder: "Select type" }) }),
478
- /* @__PURE__ */ jsx7(
721
+ /* @__PURE__ */ jsx9(SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season type", children: /* @__PURE__ */ jsx9(SelectValue, { placeholder: "Select type" }) }),
722
+ /* @__PURE__ */ jsx9(
479
723
  SelectContent,
480
724
  {
481
725
  className: "bg-card border-border z-50 [&_.checkbox]:!flex",
482
726
  classNameViewPort: "gap-2",
483
- children: types.map((type) => /* @__PURE__ */ jsx7(SelectItem, { value: type.value.toString(), className: "min-h-8", children: type.label }, type.value))
727
+ children: types.map((type) => /* @__PURE__ */ jsx9(SelectItem, { value: type.value.toString(), className: "min-h-8", children: type.label }, type.value))
484
728
  }
485
729
  )
486
730
  ]
@@ -490,9 +734,9 @@ function SeasonSelector({
490
734
  }
491
735
 
492
736
  // src/team/fact-pills.tsx
493
- import { useId, useLayoutEffect, useRef, useState as useState2 } from "react";
494
- import { cn as cn7 } from "@nukleus-sports/ui-web";
495
- import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
737
+ import { useId, useLayoutEffect, useRef, useState as useState3 } from "react";
738
+ import { cn as cn9 } from "@nukleus-sports/ui-web";
739
+ import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
496
740
  var MAX_ROWS = 2;
497
741
  var KEY_SEPARATOR = "";
498
742
  var PILL_CLASS = "flex min-w-0 max-w-full shrink-0 items-center justify-center rounded-[6px] bg-greys-background-hover px-2 py-0.5 label-xs-table font-ss02-ss05 text-text-primary";
@@ -509,10 +753,10 @@ function pillKeys(items) {
509
753
  function FactPills({ items, capped = false }) {
510
754
  const listId = useId();
511
755
  const listRef = useRef(null);
512
- const [expanded, setExpanded] = useState2(false);
513
- const [visibleCount, setVisibleCount] = useState2(null);
514
- const [clipHeight, setClipHeight] = useState2(null);
515
- const [width, setWidth] = useState2(0);
756
+ const [expanded, setExpanded] = useState3(false);
757
+ const [visibleCount, setVisibleCount] = useState3(null);
758
+ const [clipHeight, setClipHeight] = useState3(null);
759
+ const [width, setWidth] = useState3(0);
516
760
  const contentKey = items.join(KEY_SEPARATOR);
517
761
  const keys = pillKeys(items);
518
762
  const collapsible = capped && !expanded;
@@ -527,7 +771,7 @@ function FactPills({ items, capped = false }) {
527
771
  return () => observer.disconnect();
528
772
  }, [capped]);
529
773
  const measurementKey = `${width}:${contentKey}`;
530
- const [measuredFor, setMeasuredFor] = useState2(measurementKey);
774
+ const [measuredFor, setMeasuredFor] = useState3(measurementKey);
531
775
  if (measuredFor !== measurementKey) {
532
776
  setMeasuredFor(measurementKey);
533
777
  if (visibleCount !== null) setVisibleCount(null);
@@ -563,19 +807,19 @@ function FactPills({ items, capped = false }) {
563
807
  setExpanded(false);
564
808
  setVisibleCount(null);
565
809
  };
566
- return /* @__PURE__ */ jsxs8(
810
+ return /* @__PURE__ */ jsxs10(
567
811
  "ul",
568
812
  {
569
813
  id: listId,
570
814
  ref: listRef,
571
- className: cn7(
815
+ className: cn9(
572
816
  "flex w-full flex-wrap content-start items-start gap-1",
573
817
  collapsible && "overflow-hidden"
574
818
  ),
575
819
  style: collapsible && clipHeight !== null ? { maxHeight: clipHeight } : void 0,
576
820
  children: [
577
- items.slice(0, shownCount).map((item, index) => /* @__PURE__ */ jsx8("li", { className: PILL_CLASS, title: String(item), children: /* @__PURE__ */ jsx8("span", { className: "truncate", children: item }) }, keys[index])),
578
- truncated && /* @__PURE__ */ jsx8("li", { className: "flex shrink-0", children: /* @__PURE__ */ jsx8(
821
+ items.slice(0, shownCount).map((item, index) => /* @__PURE__ */ jsx10("li", { className: PILL_CLASS, title: String(item), children: /* @__PURE__ */ jsx10("span", { className: "truncate", children: item }) }, keys[index])),
822
+ truncated && /* @__PURE__ */ jsx10("li", { className: "flex shrink-0", children: /* @__PURE__ */ jsx10(
579
823
  "button",
580
824
  {
581
825
  type: "button",
@@ -586,7 +830,7 @@ function FactPills({ items, capped = false }) {
586
830
  children: "Show More"
587
831
  }
588
832
  ) }),
589
- capped && expanded && /* @__PURE__ */ jsx8("li", { className: "flex shrink-0", children: /* @__PURE__ */ jsx8(
833
+ capped && expanded && /* @__PURE__ */ jsx10("li", { className: "flex shrink-0", children: /* @__PURE__ */ jsx10(
590
834
  "button",
591
835
  {
592
836
  type: "button",
@@ -603,7 +847,7 @@ function FactPills({ items, capped = false }) {
603
847
  }
604
848
 
605
849
  // src/team/fact-field.tsx
606
- import { Skeleton as Skeleton3, cn as cn8 } from "@nukleus-sports/ui-web";
850
+ import { Skeleton as Skeleton3, cn as cn10 } from "@nukleus-sports/ui-web";
607
851
  import {
608
852
  EMPTY_FACT_VALUE,
609
853
  formatTeamFactNumber,
@@ -611,7 +855,7 @@ import {
611
855
  TEAM_FACT_KINDS,
612
856
  TEAM_FACT_YEAR_PAIRS
613
857
  } from "@nukleus-sports/core";
614
- import { Fragment, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
858
+ import { Fragment as Fragment3, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
615
859
  function numberFact(facts, key) {
616
860
  const value = facts[key];
617
861
  return typeof value === "number" ? value : null;
@@ -625,10 +869,10 @@ function textFact(facts, key) {
625
869
  return typeof value === "string" ? value : null;
626
870
  }
627
871
  function EmptyValue({ children = EMPTY_FACT_VALUE }) {
628
- return /* @__PURE__ */ jsx9("span", { className: "body-text font-ss02-ss05 text-text-secondary", children });
872
+ return /* @__PURE__ */ jsx11("span", { className: "body-text font-ss02-ss05 text-text-secondary", children });
629
873
  }
630
874
  function FieldLabel({ children }) {
631
- return /* @__PURE__ */ jsx9("span", { className: "w-full label-xs-text font-ss02-ss05 text-text-secondary", children });
875
+ return /* @__PURE__ */ jsx11("span", { className: "w-full label-xs-text font-ss02-ss05 text-text-secondary", children });
632
876
  }
633
877
  function CountFact({
634
878
  factKey,
@@ -637,10 +881,10 @@ function CountFact({
637
881
  const { facts, config } = data;
638
882
  const pairedYears = TEAM_FACT_YEAR_PAIRS[factKey];
639
883
  const years = pairedYears ? formatYearPills(listFact(facts, pairedYears), config.formatChampionshipYear) : [];
640
- return /* @__PURE__ */ jsxs9("div", { className: "flex min-w-0 flex-col items-start gap-1", children: [
641
- /* @__PURE__ */ jsx9(FieldLabel, { children: config.labels[factKey] }),
642
- /* @__PURE__ */ jsx9("span", { className: "stat-count-number title-text text-text-primary", children: formatTeamFactNumber("count", numberFact(facts, factKey)) }),
643
- years.length > 0 && /* @__PURE__ */ jsx9(FactPills, { items: years, capped: true })
884
+ return /* @__PURE__ */ jsxs11("div", { className: "flex min-w-0 flex-col items-start gap-1", children: [
885
+ /* @__PURE__ */ jsx11(FieldLabel, { children: config.labels[factKey] }),
886
+ /* @__PURE__ */ jsx11("span", { className: "stat-count-number title-text text-text-primary", children: formatTeamFactNumber("count", numberFact(facts, factKey)) }),
887
+ years.length > 0 && /* @__PURE__ */ jsx11(FactPills, { items: years, capped: true })
644
888
  ] });
645
889
  }
646
890
  function RivalValue({
@@ -650,14 +894,14 @@ function RivalValue({
650
894
  }) {
651
895
  switch (rival.status) {
652
896
  case "none":
653
- return /* @__PURE__ */ jsx9(EmptyValue, {});
897
+ return /* @__PURE__ */ jsx11(EmptyValue, {});
654
898
  case "loading":
655
- return /* @__PURE__ */ jsx9(Skeleton3, { className: "h-8 w-40", "aria-label": "Loading rival" });
899
+ return /* @__PURE__ */ jsx11(Skeleton3, { className: "h-8 w-40", "aria-label": "Loading rival" });
656
900
  case "error":
657
- return /* @__PURE__ */ jsx9(EmptyValue, { children: "Couldn't load the rival team" });
901
+ return /* @__PURE__ */ jsx11(EmptyValue, { children: "Couldn't load the rival team" });
658
902
  case "ready": {
659
- const content = /* @__PURE__ */ jsxs9(Fragment, { children: [
660
- /* @__PURE__ */ jsx9(
903
+ const content = /* @__PURE__ */ jsxs11(Fragment3, { children: [
904
+ /* @__PURE__ */ jsx11(
661
905
  EntityAvatar,
662
906
  {
663
907
  entityType: "initials",
@@ -668,10 +912,10 @@ function RivalValue({
668
912
  className: "shrink-0"
669
913
  }
670
914
  ),
671
- /* @__PURE__ */ jsx9("span", { className: "min-w-0", children: rival.rival.name })
915
+ /* @__PURE__ */ jsx11("span", { className: "min-w-0", children: rival.rival.name })
672
916
  ] });
673
917
  const className = "inline-flex max-w-full items-center gap-1.5 body-text-semibold font-ss02-ss05 text-primary-color-nuk-text";
674
- return getRivalHref ? /* @__PURE__ */ jsx9("a", { href: getRivalHref(rival.rival.id), className: cn8(className, "hover:underline"), children: content }) : /* @__PURE__ */ jsx9("span", { className, children: content });
918
+ return getRivalHref ? /* @__PURE__ */ jsx11("a", { href: getRivalHref(rival.rival.id), className: cn10(className, "hover:underline"), children: content }) : /* @__PURE__ */ jsx11("span", { className, children: content });
675
919
  }
676
920
  }
677
921
  }
@@ -681,10 +925,10 @@ function factValue(factKey, layout, data, resolveImageUrl, getRivalHref) {
681
925
  if (kind === "number" || kind === "year" || kind === "text") {
682
926
  const display = kind === "text" ? textFact(facts, factKey) : formatTeamFactNumber(kind, numberFact(facts, factKey));
683
927
  const isEmpty = !display || display === EMPTY_FACT_VALUE;
684
- return /* @__PURE__ */ jsx9(
928
+ return /* @__PURE__ */ jsx11(
685
929
  "span",
686
930
  {
687
- className: cn8(
931
+ className: cn10(
688
932
  "w-full header-xl-medium-card font-ss02-ss05 [overflow-wrap:anywhere]",
689
933
  isEmpty ? "text-text-secondary" : "text-text-primary"
690
934
  ),
@@ -695,10 +939,10 @@ function factValue(factKey, layout, data, resolveImageUrl, getRivalHref) {
695
939
  if (kind === "years" || kind === "labeled_years" || kind === "list") {
696
940
  const raw = listFact(facts, factKey);
697
941
  const items = kind === "years" ? formatYearPills(raw, config.formatChampionshipYear) : raw;
698
- return items.length > 0 ? /* @__PURE__ */ jsx9(FactPills, { items, capped: layout === "grid" }) : /* @__PURE__ */ jsx9(EmptyValue, {});
942
+ return items.length > 0 ? /* @__PURE__ */ jsx11(FactPills, { items, capped: layout === "grid" }) : /* @__PURE__ */ jsx11(EmptyValue, {});
699
943
  }
700
944
  if (kind === "rival") {
701
- return /* @__PURE__ */ jsx9(
945
+ return /* @__PURE__ */ jsx11(
702
946
  RivalValue,
703
947
  {
704
948
  rival: data.rival,
@@ -708,10 +952,10 @@ function factValue(factKey, layout, data, resolveImageUrl, getRivalHref) {
708
952
  );
709
953
  }
710
954
  const text = textFact(facts, factKey);
711
- return /* @__PURE__ */ jsx9(
955
+ return /* @__PURE__ */ jsx11(
712
956
  "p",
713
957
  {
714
- className: cn8(
958
+ className: cn10(
715
959
  "w-full body-text font-ss02-ss05 whitespace-pre-line",
716
960
  text ? "text-text-primary" : "text-text-secondary"
717
961
  ),
@@ -727,17 +971,17 @@ function FactField({
727
971
  getRivalHref
728
972
  }) {
729
973
  const kind = TEAM_FACT_KINDS[factKey];
730
- if (kind === "count") return /* @__PURE__ */ jsx9(CountFact, { factKey, data });
731
- return /* @__PURE__ */ jsxs9(
974
+ if (kind === "count") return /* @__PURE__ */ jsx11(CountFact, { factKey, data });
975
+ return /* @__PURE__ */ jsxs11(
732
976
  "div",
733
977
  {
734
- className: cn8(
978
+ className: cn10(
735
979
  "flex min-w-0 flex-col items-start gap-1.5",
736
980
  layout === "row" && "flex-1",
737
981
  layout === "grid" && kind !== "list" && "gap-1"
738
982
  ),
739
983
  children: [
740
- /* @__PURE__ */ jsx9(FieldLabel, { children: data.config.labels[factKey] }),
984
+ /* @__PURE__ */ jsx11(FieldLabel, { children: data.config.labels[factKey] }),
741
985
  factValue(factKey, layout, data, resolveImageUrl, getRivalHref)
742
986
  ]
743
987
  }
@@ -745,16 +989,16 @@ function FactField({
745
989
  }
746
990
 
747
991
  // src/team/venue-photo.tsx
748
- import { useState as useState3 } from "react";
749
- import { cn as cn9 } from "@nukleus-sports/ui-web";
992
+ import { useState as useState4 } from "react";
993
+ import { cn as cn11 } from "@nukleus-sports/ui-web";
750
994
  import { XsViewInvoiceIcon } from "@nukleus-sports/icons";
751
995
  import { facilityImageCredit } from "@nukleus-sports/core";
752
- import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
996
+ import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
753
997
  var PHOTO_WIDTHS = [640, 960, 1280];
754
998
  var PHOTO_SIZES = "(min-width: 1280px) 420px, 100vw";
755
999
  var LINK_CLASS = "inline-flex shrink-0 items-center gap-1 hover:text-text-primary";
756
1000
  function NewTabNote() {
757
- return /* @__PURE__ */ jsx10("span", { className: "sr-only", children: " (opens in a new tab)" });
1001
+ return /* @__PURE__ */ jsx12("span", { className: "sr-only", children: " (opens in a new tab)" });
758
1002
  }
759
1003
  function resolvePhotoSources(path, resolveImageUrl) {
760
1004
  const candidates = PHOTO_WIDTHS.flatMap((width) => {
@@ -769,18 +1013,18 @@ function resolvePhotoSources(path, resolveImageUrl) {
769
1013
  }
770
1014
  function VenueNameOnly({ name, label }) {
771
1015
  if (!name) return null;
772
- return /* @__PURE__ */ jsxs10("div", { className: "flex min-w-0 flex-col items-start gap-1.5", children: [
773
- /* @__PURE__ */ jsx10(FieldLabel, { children: label }),
774
- /* @__PURE__ */ jsx10("span", { className: "w-full header-xl-medium-card font-ss02-ss05 text-text-primary", children: name })
1016
+ return /* @__PURE__ */ jsxs12("div", { className: "flex min-w-0 flex-col items-start gap-1.5", children: [
1017
+ /* @__PURE__ */ jsx12(FieldLabel, { children: label }),
1018
+ /* @__PURE__ */ jsx12("span", { className: "w-full header-xl-medium-card font-ss02-ss05 text-text-primary", children: name })
775
1019
  ] });
776
1020
  }
777
1021
  function PhotoCaption({ name, image }) {
778
1022
  const credit = facilityImageCredit(image);
779
- return /* @__PURE__ */ jsxs10("figcaption", { className: "flex w-full flex-col gap-1 xxs-body-text font-ss02-ss05", children: [
780
- name && /* @__PURE__ */ jsx10("span", { className: "w-full text-text-primary", children: name }),
781
- /* @__PURE__ */ jsxs10("div", { className: "flex w-full items-start gap-2 text-greys-text-secondary", children: [
782
- /* @__PURE__ */ jsx10("span", { className: "min-w-0 flex-1", children: credit ? `Photo: ${credit}` : "Photo from Wikimedia Commons" }),
783
- image.sourceUrl && /* @__PURE__ */ jsxs10(
1023
+ return /* @__PURE__ */ jsxs12("figcaption", { className: "flex w-full flex-col gap-1 xxs-body-text font-ss02-ss05", children: [
1024
+ name && /* @__PURE__ */ jsx12("span", { className: "w-full text-text-primary", children: name }),
1025
+ /* @__PURE__ */ jsxs12("div", { className: "flex w-full items-start gap-2 text-greys-text-secondary", children: [
1026
+ /* @__PURE__ */ jsx12("span", { className: "min-w-0 flex-1", children: credit ? `Photo: ${credit}` : "Photo from Wikimedia Commons" }),
1027
+ image.sourceUrl && /* @__PURE__ */ jsxs12(
784
1028
  "a",
785
1029
  {
786
1030
  href: image.sourceUrl,
@@ -789,8 +1033,8 @@ function PhotoCaption({ name, image }) {
789
1033
  className: LINK_CLASS,
790
1034
  children: [
791
1035
  "Source",
792
- /* @__PURE__ */ jsx10(NewTabNote, {}),
793
- /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ jsx10(
1036
+ /* @__PURE__ */ jsx12(NewTabNote, {}),
1037
+ /* @__PURE__ */ jsx12("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ jsx12(
794
1038
  XsViewInvoiceIcon,
795
1039
  {
796
1040
  width: 16,
@@ -801,7 +1045,7 @@ function PhotoCaption({ name, image }) {
801
1045
  ]
802
1046
  }
803
1047
  ),
804
- image.licenseUrl && /* @__PURE__ */ jsxs10(
1048
+ image.licenseUrl && /* @__PURE__ */ jsxs12(
805
1049
  "a",
806
1050
  {
807
1051
  href: image.licenseUrl,
@@ -810,7 +1054,7 @@ function PhotoCaption({ name, image }) {
810
1054
  className: LINK_CLASS,
811
1055
  children: [
812
1056
  "License",
813
- /* @__PURE__ */ jsx10(NewTabNote, {})
1057
+ /* @__PURE__ */ jsx12(NewTabNote, {})
814
1058
  ]
815
1059
  }
816
1060
  )
@@ -819,14 +1063,14 @@ function PhotoCaption({ name, image }) {
819
1063
  }
820
1064
  function VenuePhoto({ venue, label, resolveImageUrl }) {
821
1065
  const { name, image } = venue;
822
- const [failed, setFailed] = useState3("none");
823
- const [isLoaded, setIsLoaded] = useState3(false);
1066
+ const [failed, setFailed] = useState4("none");
1067
+ const [isLoaded, setIsLoaded] = useState4(false);
824
1068
  const sources = image && resolveImageUrl ? resolvePhotoSources(image.path, resolveImageUrl) : null;
825
1069
  const useResized = failed === "none" && Boolean(sources?.srcSet);
826
1070
  const src = failed === "all" ? void 0 : useResized ? sources?.resized : sources?.original;
827
- if (!image || !src) return /* @__PURE__ */ jsx10(VenueNameOnly, { name, label });
828
- return /* @__PURE__ */ jsxs10("figure", { className: "flex w-full flex-col gap-3", children: [
829
- /* @__PURE__ */ jsx10(
1071
+ if (!image || !src) return /* @__PURE__ */ jsx12(VenueNameOnly, { name, label });
1072
+ return /* @__PURE__ */ jsxs12("figure", { className: "flex w-full flex-col gap-3", children: [
1073
+ /* @__PURE__ */ jsx12(
830
1074
  "img",
831
1075
  {
832
1076
  src,
@@ -835,14 +1079,14 @@ function VenuePhoto({ venue, label, resolveImageUrl }) {
835
1079
  onLoad: () => setIsLoaded(true),
836
1080
  onError: () => setFailed(useResized ? "resized" : "all"),
837
1081
  alt: name ?? label,
838
- className: cn9(
1082
+ className: cn11(
839
1083
  "h-[150px] w-full rounded-[8px] bg-greys-background-hover object-cover",
840
1084
  !isLoaded && "animate-pulse"
841
1085
  ),
842
1086
  loading: "lazy"
843
1087
  }
844
1088
  ),
845
- /* @__PURE__ */ jsx10(PhotoCaption, { name, image })
1089
+ /* @__PURE__ */ jsx12(PhotoCaption, { name, image })
846
1090
  ] });
847
1091
  }
848
1092
 
@@ -850,7 +1094,7 @@ function VenuePhoto({ venue, label, resolveImageUrl }) {
850
1094
  import {
851
1095
  teamFactsDisplayFields
852
1096
  } from "@nukleus-sports/core";
853
- import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
1097
+ import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
854
1098
  var SECTION_FIELDS_CLASS = {
855
1099
  grid: "grid grid-cols-2 items-start gap-3",
856
1100
  row: "flex items-start gap-3",
@@ -867,7 +1111,7 @@ function TeamFactsContent({
867
1111
  getRivalHref
868
1112
  }) {
869
1113
  const { config, venue, hasFacts } = data;
870
- const photo = /* @__PURE__ */ jsx11(
1114
+ const photo = /* @__PURE__ */ jsx13(
871
1115
  VenuePhoto,
872
1116
  {
873
1117
  venue,
@@ -877,14 +1121,14 @@ function TeamFactsContent({
877
1121
  venue.image?.path ?? "none"
878
1122
  );
879
1123
  if (!hasFacts) {
880
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3", children: [
881
- /* @__PURE__ */ jsx11("div", { className: "flex h-[120px] items-center justify-center rounded-[10px] border border-dashed border-greys-grey-strokes-tables text-14.5 text-text-secondary", children: "No team facts yet." }),
882
- (venue.image || venue.name) && /* @__PURE__ */ jsx11("section", { className: SECTION_CLASS, children: photo })
1124
+ return /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-3", children: [
1125
+ /* @__PURE__ */ jsx13("div", { className: "flex h-[120px] items-center justify-center rounded-[10px] border border-dashed border-greys-grey-strokes-tables text-14.5 text-text-secondary", children: "No team facts yet." }),
1126
+ (venue.image || venue.name) && /* @__PURE__ */ jsx13("section", { className: SECTION_CLASS, children: photo })
883
1127
  ] });
884
1128
  }
885
- return /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-3", children: config.sections.map((section) => /* @__PURE__ */ jsxs11("section", { "aria-label": section.title, className: SECTION_CLASS, children: [
886
- /* @__PURE__ */ jsx11("h3", { className: "label-xs-semibold-text font-ss02-ss05 uppercase text-greys-text-secondary", children: section.title }),
887
- /* @__PURE__ */ jsx11("div", { className: SECTION_FIELDS_CLASS[section.layout], children: teamFactsDisplayFields(section).map((key) => /* @__PURE__ */ jsx11(
1129
+ return /* @__PURE__ */ jsx13("div", { className: "flex flex-col gap-3", children: config.sections.map((section) => /* @__PURE__ */ jsxs13("section", { "aria-label": section.title, className: SECTION_CLASS, children: [
1130
+ /* @__PURE__ */ jsx13("h3", { className: "label-xs-semibold-text font-ss02-ss05 uppercase text-greys-text-secondary", children: section.title }),
1131
+ /* @__PURE__ */ jsx13("div", { className: SECTION_FIELDS_CLASS[section.layout], children: teamFactsDisplayFields(section).map((key) => /* @__PURE__ */ jsx13(
888
1132
  FactField,
889
1133
  {
890
1134
  factKey: key,
@@ -902,14 +1146,14 @@ function TeamFactsContent({
902
1146
  // src/team/team-facts-widget.tsx
903
1147
  import {
904
1148
  Button,
905
- Card as Card5,
906
- CardContent as CardContent5,
1149
+ Card as Card6,
1150
+ CardContent as CardContent6,
907
1151
  CardHeader as CardHeader3,
908
1152
  CardTitle as CardTitle3,
909
1153
  Skeleton as Skeleton4,
910
- cn as cn10
1154
+ cn as cn12
911
1155
  } from "@nukleus-sports/ui-web";
912
- import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
1156
+ import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
913
1157
  var SKELETON_KEYS = ["trophy-case", "tradition", "profile"];
914
1158
  function TeamFactsWidget({
915
1159
  state,
@@ -918,32 +1162,32 @@ function TeamFactsWidget({
918
1162
  getRivalHref,
919
1163
  className
920
1164
  }) {
921
- return /* @__PURE__ */ jsxs12(
922
- Card5,
1165
+ return /* @__PURE__ */ jsxs14(
1166
+ Card6,
923
1167
  {
924
- className: cn10(
1168
+ className: cn12(
925
1169
  "flex w-full min-w-0 flex-col gap-3 rounded-[10px] border-0 px-4 pb-[22px] pt-4",
926
1170
  // Matches the Team Info card's desktop height (TeamInfoCard `md:min-h-[612px]`).
927
1171
  "xl:min-h-[612px] xl:self-stretch xl:[contain:size]",
928
1172
  className
929
1173
  ),
930
1174
  children: [
931
- /* @__PURE__ */ jsx12(CardHeader3, { className: "flex h-8 shrink-0 flex-row items-center p-0", children: /* @__PURE__ */ jsx12(CardTitle3, { className: "header-xl-medium-card font-ss02-ss05 text-text-primary", children: "Team Facts" }) }),
932
- /* @__PURE__ */ jsxs12(CardContent5, { className: "p-0 xl:min-h-0 xl:flex-1 xl:overflow-y-auto xl:[scrollbar-width:none] xl:[&::-webkit-scrollbar]:hidden", children: [
933
- state.status === "loading" && /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-3", role: "status", "aria-label": "Loading team facts", children: SKELETON_KEYS.map((key) => /* @__PURE__ */ jsx12(Skeleton4, { className: "h-[200px] w-full rounded-[10px]" }, key)) }),
934
- state.status === "error" && /* @__PURE__ */ jsxs12(
1175
+ /* @__PURE__ */ jsx14(CardHeader3, { className: "flex h-8 shrink-0 flex-row items-center p-0", children: /* @__PURE__ */ jsx14(CardTitle3, { className: "header-xl-medium-card font-ss02-ss05 text-text-primary", children: "Team Facts" }) }),
1176
+ /* @__PURE__ */ jsxs14(CardContent6, { className: "p-0 xl:min-h-0 xl:flex-1 xl:overflow-y-auto xl:[scrollbar-width:none] xl:[&::-webkit-scrollbar]:hidden", children: [
1177
+ state.status === "loading" && /* @__PURE__ */ jsx14("div", { className: "flex flex-col gap-3", role: "status", "aria-label": "Loading team facts", children: SKELETON_KEYS.map((key) => /* @__PURE__ */ jsx14(Skeleton4, { className: "h-[200px] w-full rounded-[10px]" }, key)) }),
1178
+ state.status === "error" && /* @__PURE__ */ jsxs14(
935
1179
  "div",
936
1180
  {
937
1181
  role: "alert",
938
1182
  className: "flex h-[120px] flex-col items-center justify-center gap-2 text-14.5 text-text-secondary",
939
1183
  children: [
940
- /* @__PURE__ */ jsx12("span", { children: "Couldn't load team facts." }),
941
- state.devMessage && /* @__PURE__ */ jsx12("span", { className: "xxs-body-text", children: state.devMessage }),
942
- state.retry && /* @__PURE__ */ jsx12(Button, { type: "button", variant: "outline", size: "sm", onClick: state.retry, children: "Try again" })
1184
+ /* @__PURE__ */ jsx14("span", { children: "Couldn't load team facts." }),
1185
+ state.devMessage && /* @__PURE__ */ jsx14("span", { className: "xxs-body-text", children: state.devMessage }),
1186
+ state.retry && /* @__PURE__ */ jsx14(Button, { type: "button", variant: "outline", size: "sm", onClick: state.retry, children: "Try again" })
943
1187
  ]
944
1188
  }
945
1189
  ),
946
- state.status === "ready" && /* @__PURE__ */ jsx12(
1190
+ state.status === "ready" && /* @__PURE__ */ jsx14(
947
1191
  TeamFactsContent,
948
1192
  {
949
1193
  data: state.data,
@@ -960,9 +1204,9 @@ function TeamFactsWidget({
960
1204
  }
961
1205
 
962
1206
  // src/team/stat-ranking-leaderboard-dialog.tsx
963
- import { useMemo as useMemo2 } from "react";
1207
+ import { useMemo as useMemo3 } from "react";
964
1208
  import {
965
- BaseTable as BaseTable2,
1209
+ BaseTable as BaseTable3,
966
1210
  Button as Button2,
967
1211
  Dialog,
968
1212
  DialogContent,
@@ -970,11 +1214,11 @@ import {
970
1214
  DialogHeader,
971
1215
  DialogTitle,
972
1216
  MobileModalLayout,
973
- cn as cn11
1217
+ cn as cn13
974
1218
  } from "@nukleus-sports/ui-web";
975
1219
  import { ChevronLeftIcon, ChevronRightIcon } from "@nukleus-sports/icons";
976
1220
  import { toOrdinal } from "@nukleus-sports/core";
977
- import { Fragment as Fragment2, jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
1221
+ import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
978
1222
  var PAGE_BUTTON_BASE = "background";
979
1223
  var PAGE_BUTTON_DESKTOP = "!h-[32px] !w-[32px] p-[6px]";
980
1224
  var PAGE_BUTTON_MOBILE = "!h-11 !w-11 p-3 !outline-0 !border-0 !bg-inherit";
@@ -983,17 +1227,17 @@ function formatRank(rank, tied) {
983
1227
  return tied ? `T-${toOrdinal(rank)}` : toOrdinal(rank);
984
1228
  }
985
1229
  function Footnotes({ notes }) {
986
- return /* @__PURE__ */ jsx13("div", { children: notes.map((note) => /* @__PURE__ */ jsxs13("p", { className: "alert-text-italic text-text-secondary", children: [
1230
+ return /* @__PURE__ */ jsx15("div", { children: notes.map((note) => /* @__PURE__ */ jsxs15("p", { className: "alert-text-italic text-text-secondary", children: [
987
1231
  "* ",
988
1232
  note
989
1233
  ] }, note)) });
990
1234
  }
991
1235
  function Pagination({ page, totalPages, isCountKnown, isSm, onPageChange }) {
992
- const buttonClass = cn11(PAGE_BUTTON_BASE, isSm ? PAGE_BUTTON_DESKTOP : PAGE_BUTTON_MOBILE);
993
- return /* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-between", children: [
994
- /* @__PURE__ */ jsx13("span", { className: "label-xs-text text-text-secondary", children: isCountKnown ? `Page ${page} of ${totalPages}` : `Page ${page}` }),
995
- /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-3", children: [
996
- /* @__PURE__ */ jsx13(
1236
+ const buttonClass = cn13(PAGE_BUTTON_BASE, isSm ? PAGE_BUTTON_DESKTOP : PAGE_BUTTON_MOBILE);
1237
+ return /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between", children: [
1238
+ /* @__PURE__ */ jsx15("span", { className: "label-xs-text text-text-secondary", children: isCountKnown ? `Page ${page} of ${totalPages}` : `Page ${page}` }),
1239
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-3", children: [
1240
+ /* @__PURE__ */ jsx15(
997
1241
  Button2,
998
1242
  {
999
1243
  variant: "secondary-greys",
@@ -1002,10 +1246,10 @@ function Pagination({ page, totalPages, isCountKnown, isSm, onPageChange }) {
1002
1246
  onClick: () => onPageChange(Math.max(1, page - 1)),
1003
1247
  disabled: page === 1,
1004
1248
  "aria-label": "Go to previous page",
1005
- children: /* @__PURE__ */ jsx13(ChevronLeftIcon, { className: "h-4 w-4" })
1249
+ children: /* @__PURE__ */ jsx15(ChevronLeftIcon, { className: "h-4 w-4" })
1006
1250
  }
1007
1251
  ),
1008
- /* @__PURE__ */ jsx13(
1252
+ /* @__PURE__ */ jsx15(
1009
1253
  Button2,
1010
1254
  {
1011
1255
  variant: "secondary-greys",
@@ -1014,14 +1258,14 @@ function Pagination({ page, totalPages, isCountKnown, isSm, onPageChange }) {
1014
1258
  onClick: () => onPageChange(Math.min(totalPages, page + 1)),
1015
1259
  disabled: !isCountKnown || page >= totalPages,
1016
1260
  "aria-label": "Go to next page",
1017
- children: /* @__PURE__ */ jsx13(ChevronRightIcon, { className: "h-4 w-4" })
1261
+ children: /* @__PURE__ */ jsx15(ChevronRightIcon, { className: "h-4 w-4" })
1018
1262
  }
1019
1263
  )
1020
1264
  ] })
1021
1265
  ] });
1022
1266
  }
1023
1267
  function useLeaderboardColumns(entityLabel, statLabel, formatValue, isSm) {
1024
- return useMemo2(
1268
+ return useMemo3(
1025
1269
  () => [
1026
1270
  {
1027
1271
  accessorKey: "rank",
@@ -1040,7 +1284,7 @@ function useLeaderboardColumns(entityLabel, statLabel, formatValue, isSm) {
1040
1284
  },
1041
1285
  {
1042
1286
  accessorKey: "value",
1043
- header: () => /* @__PURE__ */ jsx13("div", { className: "text-right text-wrap line-clamp-2", title: statLabel, children: statLabel }),
1287
+ header: () => /* @__PURE__ */ jsx15("div", { className: "text-right text-wrap line-clamp-2", title: statLabel, children: statLabel }),
1044
1288
  meta: {
1045
1289
  cellSize: isSm ? "m" : "xs",
1046
1290
  rowCellClassName: "text-right tabular-nums break-all"
@@ -1060,12 +1304,12 @@ function LeaderboardTable(props) {
1060
1304
  props.isSm
1061
1305
  );
1062
1306
  if (isConfigError) {
1063
- return /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children: "Couldn't load ranking details. Please try again." });
1307
+ return /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children: "Couldn't load ranking details. Please try again." });
1064
1308
  }
1065
- return /* @__PURE__ */ jsxs13(Fragment2, { children: [
1066
- isError && rows.length > 0 && /* @__PURE__ */ jsx13("p", { className: "text-12 text-destructive px-1 pb-2", children: "Couldn't refresh rankings. Showing the last loaded data." }),
1067
- /* @__PURE__ */ jsx13(
1068
- BaseTable2,
1309
+ return /* @__PURE__ */ jsxs15(Fragment4, { children: [
1310
+ isError && rows.length > 0 && /* @__PURE__ */ jsx15("p", { className: "text-12 text-destructive px-1 pb-2", children: "Couldn't refresh rankings. Showing the last loaded data." }),
1311
+ /* @__PURE__ */ jsx15(
1312
+ BaseTable3,
1069
1313
  {
1070
1314
  columns,
1071
1315
  data: rows,
@@ -1088,17 +1332,17 @@ function LeaderboardContent(props) {
1088
1332
  const isCountKnown = totalCount !== void 0;
1089
1333
  const totalPages = Math.max(1, Math.ceil((totalCount ?? 0) / pageSize));
1090
1334
  const showPagination = page > 1 || isCountKnown && totalPages > 1;
1091
- return /* @__PURE__ */ jsxs13("div", { className: "flex flex-col h-full overflow-hidden", children: [
1092
- /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-6 sm:gap-4 overflow-hidden px-5", children: [
1093
- subtitle && /* @__PURE__ */ jsxs13(DialogDescription, { className: "flex flex-col gap-1 header-xl-medium-card text-text-secondary sm:px-4 font-ss02 ss05 leading-normal", children: [
1335
+ return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col h-full overflow-hidden", children: [
1336
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-6 sm:gap-4 overflow-hidden px-5", children: [
1337
+ subtitle && /* @__PURE__ */ jsxs15(DialogDescription, { className: "flex flex-col gap-1 header-xl-medium-card text-text-secondary sm:px-4 font-ss02 ss05 leading-normal", children: [
1094
1338
  subtitle,
1095
- !isSm && footnotes.length > 0 && /* @__PURE__ */ jsx13(Footnotes, { notes: footnotes })
1339
+ !isSm && footnotes.length > 0 && /* @__PURE__ */ jsx15(Footnotes, { notes: footnotes })
1096
1340
  ] }),
1097
- /* @__PURE__ */ jsx13("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx13(LeaderboardTable, { ...props }) })
1341
+ /* @__PURE__ */ jsx15("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx15(LeaderboardTable, { ...props }) })
1098
1342
  ] }),
1099
- (footnotes.length > 0 || showPagination) && /* @__PURE__ */ jsxs13("div", { className: "flex flex-col pt-3 pb-6 px-9 border-t border-border gap-3 relative z-10 shadow-[0_0_4px_0_rgba(0,0,0,0.25)]", children: [
1100
- footnotes.length > 0 && /* @__PURE__ */ jsx13(Footnotes, { notes: footnotes }),
1101
- showPagination && /* @__PURE__ */ jsx13(
1343
+ (footnotes.length > 0 || showPagination) && /* @__PURE__ */ jsxs15("div", { className: "flex flex-col pt-3 pb-6 px-9 border-t border-border gap-3 relative z-10 shadow-[0_0_4px_0_rgba(0,0,0,0.25)]", children: [
1344
+ footnotes.length > 0 && /* @__PURE__ */ jsx15(Footnotes, { notes: footnotes }),
1345
+ showPagination && /* @__PURE__ */ jsx15(
1102
1346
  Pagination,
1103
1347
  {
1104
1348
  page,
@@ -1114,12 +1358,12 @@ function LeaderboardContent(props) {
1114
1358
  function StatRankingLeaderboardDialog(props) {
1115
1359
  const { open, onOpenChange, title, isSm } = props;
1116
1360
  if (isSm) {
1117
- return /* @__PURE__ */ jsx13(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs13(DialogContent, { className: "p-0 min-w-[536px] sm:max-w-[500px] pt-4 gap-6 bg-card border-0 flex flex-col max-h-[85vh]", children: [
1118
- /* @__PURE__ */ jsx13(DialogHeader, { children: /* @__PURE__ */ jsx13(DialogTitle, { className: "header-xl-medium-card", children: title }) }),
1119
- /* @__PURE__ */ jsx13(LeaderboardContent, { ...props })
1361
+ return /* @__PURE__ */ jsx15(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs15(DialogContent, { className: "p-0 min-w-[536px] sm:max-w-[500px] pt-4 gap-6 bg-card border-0 flex flex-col max-h-[85vh]", children: [
1362
+ /* @__PURE__ */ jsx15(DialogHeader, { children: /* @__PURE__ */ jsx15(DialogTitle, { className: "header-xl-medium-card", children: title }) }),
1363
+ /* @__PURE__ */ jsx15(LeaderboardContent, { ...props })
1120
1364
  ] }) });
1121
1365
  }
1122
- return /* @__PURE__ */ jsx13(
1366
+ return /* @__PURE__ */ jsx15(
1123
1367
  MobileModalLayout,
1124
1368
  {
1125
1369
  onCancel: () => onOpenChange(false),
@@ -1128,7 +1372,7 @@ function StatRankingLeaderboardDialog(props) {
1128
1372
  title,
1129
1373
  cancelButtonName: "Close",
1130
1374
  childClassName: "h-auto min-h-full h-[calc(100vh-100px)]",
1131
- children: /* @__PURE__ */ jsx13("div", { className: "flex flex-col h-full pt-6", children: /* @__PURE__ */ jsx13(LeaderboardContent, { ...props }) })
1375
+ children: /* @__PURE__ */ jsx15("div", { className: "flex flex-col h-full pt-6", children: /* @__PURE__ */ jsx15(LeaderboardContent, { ...props }) })
1132
1376
  }
1133
1377
  );
1134
1378
  }
@@ -1136,13 +1380,13 @@ function StatRankingLeaderboardDialog(props) {
1136
1380
  // src/team/team-season-stats-widget.tsx
1137
1381
  import {
1138
1382
  Button as Button3,
1139
- Card as Card6,
1140
- CardContent as CardContent6,
1383
+ Card as Card7,
1384
+ CardContent as CardContent7,
1141
1385
  CardHeader as CardHeader4,
1142
1386
  CardTitle as CardTitle4,
1143
1387
  IconLoader,
1144
1388
  Skeleton as Skeleton5,
1145
- cn as cn12
1389
+ cn as cn14
1146
1390
  } from "@nukleus-sports/ui-web";
1147
1391
  import {
1148
1392
  computeTeamSeasonStatsFromSummary,
@@ -1151,7 +1395,7 @@ import {
1151
1395
  getTeamStatColumns as getTeamStatColumns2,
1152
1396
  isSupportedTeamStatsSport as isSupportedTeamStatsSport2
1153
1397
  } from "@nukleus-sports/core";
1154
- import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
1398
+ import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
1155
1399
  var PRESEASON_TYPE = 1;
1156
1400
  var RANK_TEXT_CLASS = "label-xs-medium text-text-secondary";
1157
1401
  var RANK_LINK_CLASS = `${RANK_TEXT_CLASS} hover:text-text-primary hover:underline cursor-pointer transition-colors`;
@@ -1163,14 +1407,14 @@ function RankBadge({
1163
1407
  onRankClick
1164
1408
  }) {
1165
1409
  if (isRankingsError) {
1166
- return /* @__PURE__ */ jsxs14("span", { className: "label-xs-medium text-destructive", title: "Couldn't load ranking", children: [
1167
- /* @__PURE__ */ jsx14("span", { "aria-hidden": "true", children: "--" }),
1168
- /* @__PURE__ */ jsx14("span", { className: "sr-only", children: "Couldn't load ranking" })
1410
+ return /* @__PURE__ */ jsxs16("span", { className: "label-xs-medium text-destructive", title: "Couldn't load ranking", children: [
1411
+ /* @__PURE__ */ jsx16("span", { "aria-hidden": "true", children: "--" }),
1412
+ /* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Couldn't load ranking" })
1169
1413
  ] });
1170
1414
  }
1171
1415
  if (!rankText) return null;
1172
- if (!onRankClick) return /* @__PURE__ */ jsx14("span", { className: RANK_TEXT_CLASS, children: rankText });
1173
- return /* @__PURE__ */ jsx14(
1416
+ if (!onRankClick) return /* @__PURE__ */ jsx16("span", { className: RANK_TEXT_CLASS, children: rankText });
1417
+ return /* @__PURE__ */ jsx16(
1174
1418
  Button3,
1175
1419
  {
1176
1420
  type: "button",
@@ -1187,7 +1431,7 @@ function RankBadge({
1187
1431
  );
1188
1432
  }
1189
1433
  function CenteredMessage({ children }) {
1190
- return /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children });
1434
+ return /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children });
1191
1435
  }
1192
1436
  function StatsBody({
1193
1437
  stats,
@@ -1200,17 +1444,17 @@ function StatsBody({
1200
1444
  onRankClick
1201
1445
  }) {
1202
1446
  const columns = getTeamStatColumns2(sportId);
1203
- return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-1.5 h-full w-full justify-center", children: [
1204
- isSummaryError && /* @__PURE__ */ jsx14("p", { className: "text-12 text-destructive", children: "Couldn't refresh stats. Showing the last loaded data." }),
1205
- /* @__PURE__ */ jsx14("div", { className: "grid grid-cols-2 gap-x-1.5 gap-y-1.5 sm:flex sm:flex-row sm:gap-3 sm:justify-between items-center w-full", children: columns.map((column, index) => {
1447
+ return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1.5 h-full w-full justify-center", children: [
1448
+ isSummaryError && /* @__PURE__ */ jsx16("p", { className: "text-12 text-destructive", children: "Couldn't refresh stats. Showing the last loaded data." }),
1449
+ /* @__PURE__ */ jsx16("div", { className: "grid grid-cols-2 gap-x-1.5 gap-y-1.5 sm:flex sm:flex-row sm:gap-3 sm:justify-between items-center w-full", children: columns.map((column, index) => {
1206
1450
  const configId = configIds?.[index];
1207
- return /* @__PURE__ */ jsx14(
1451
+ return /* @__PURE__ */ jsx16(
1208
1452
  StatColumn,
1209
1453
  {
1210
1454
  label: column.label,
1211
1455
  value: stats.values[index],
1212
1456
  suffix: column.suffix,
1213
- rankBadge: showRanks && configId !== void 0 ? /* @__PURE__ */ jsx14(
1457
+ rankBadge: showRanks && configId !== void 0 ? /* @__PURE__ */ jsx16(
1214
1458
  RankBadge,
1215
1459
  {
1216
1460
  rankText: formatStatRankByConfig(rankings, configId),
@@ -1250,16 +1494,16 @@ function TeamSeasonStatsWidget({
1250
1494
  const configIds = getTeamRankingConfigIds(sportId, leagueId);
1251
1495
  const showRanks = seasons?.selectedType !== PRESEASON_TYPE;
1252
1496
  if (seasonsLoading) {
1253
- return /* @__PURE__ */ jsxs14(Card6, { className: cn12("border-0 p-4 h-[300px]", className), children: [
1254
- /* @__PURE__ */ jsx14(CardHeader4, { className: "p-0 pb-4", children: /* @__PURE__ */ jsx14(CardTitle4, { className: "text-base font-medium", children: "Season Stats" }) }),
1255
- /* @__PURE__ */ jsx14(CardContent6, { className: "p-0", children: /* @__PURE__ */ jsx14("div", { className: "space-y-3 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ jsx14(IconLoader, {}) }) })
1497
+ return /* @__PURE__ */ jsxs16(Card7, { className: cn14("border-0 p-4 h-[300px]", className), children: [
1498
+ /* @__PURE__ */ jsx16(CardHeader4, { className: "p-0 pb-4", children: /* @__PURE__ */ jsx16(CardTitle4, { className: "text-base font-medium", children: "Season Stats" }) }),
1499
+ /* @__PURE__ */ jsx16(CardContent7, { className: "p-0", children: /* @__PURE__ */ jsx16("div", { className: "space-y-3 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ jsx16(IconLoader, {}) }) })
1256
1500
  ] });
1257
1501
  }
1258
1502
  let body;
1259
1503
  if (statsLoading) {
1260
- body = /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsx14(Skeleton5, { className: "h-4 w-3/4" }) });
1504
+ body = /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsx16(Skeleton5, { className: "h-4 w-3/4" }) });
1261
1505
  } else if (isSupportedSport && stats) {
1262
- body = /* @__PURE__ */ jsx14(
1506
+ body = /* @__PURE__ */ jsx16(
1263
1507
  StatsBody,
1264
1508
  {
1265
1509
  stats,
@@ -1273,39 +1517,39 @@ function TeamSeasonStatsWidget({
1273
1517
  }
1274
1518
  );
1275
1519
  } else {
1276
- body = /* @__PURE__ */ jsx14(CenteredMessage, { children: getEmptyMessage(isSupportedSport, hasSeason, isSummaryError) });
1520
+ body = /* @__PURE__ */ jsx16(CenteredMessage, { children: getEmptyMessage(isSupportedSport, hasSeason, isSummaryError) });
1277
1521
  }
1278
- return /* @__PURE__ */ jsxs14(
1279
- Card6,
1522
+ return /* @__PURE__ */ jsxs16(
1523
+ Card7,
1280
1524
  {
1281
- className: cn12(
1525
+ className: cn14(
1282
1526
  "border-0 px-4 py-3 sm:p-4 flex flex-col gap-[25px] sm:gap-4 sm:h-[300px]",
1283
1527
  className
1284
1528
  ),
1285
1529
  children: [
1286
- /* @__PURE__ */ jsx14(CardHeader4, { className: "p-0", children: /* @__PURE__ */ jsxs14("div", { className: "flex flex-row items-center justify-between w-full h-8", children: [
1287
- /* @__PURE__ */ jsx14(CardTitle4, { className: "header-xl-medium-card text-base text-text-primary", children: "Team Stats" }),
1288
- isSupportedSport && seasons && seasons.years.length > 0 && /* @__PURE__ */ jsx14(SeasonSelector, { ...seasons, hideTypeOnMobile: true })
1530
+ /* @__PURE__ */ jsx16(CardHeader4, { className: "p-0", children: /* @__PURE__ */ jsxs16("div", { className: "flex flex-row items-center justify-between w-full h-8", children: [
1531
+ /* @__PURE__ */ jsx16(CardTitle4, { className: "header-xl-medium-card text-base text-text-primary", children: "Team Stats" }),
1532
+ isSupportedSport && seasons && seasons.years.length > 0 && /* @__PURE__ */ jsx16(SeasonSelector, { ...seasons, hideTypeOnMobile: true })
1289
1533
  ] }) }),
1290
- /* @__PURE__ */ jsx14(CardContent6, { className: "p-0 h-auto sm:h-[220px] flex justify-center", children: body })
1534
+ /* @__PURE__ */ jsx16(CardContent7, { className: "p-0 h-auto sm:h-[220px] flex justify-center", children: body })
1291
1535
  ]
1292
1536
  }
1293
1537
  );
1294
1538
  }
1295
1539
 
1296
1540
  // src/team/recent-games-widget.tsx
1297
- import { useState as useState4 } from "react";
1541
+ import { useState as useState5 } from "react";
1298
1542
  import {
1299
1543
  Button as Button4,
1300
- Card as Card7,
1301
- CardContent as CardContent7,
1544
+ Card as Card8,
1545
+ CardContent as CardContent8,
1302
1546
  CardHeader as CardHeader5,
1303
1547
  CardTitle as CardTitle5,
1304
1548
  IconLoader as IconLoader2,
1305
- cn as cn13
1549
+ cn as cn15
1306
1550
  } from "@nukleus-sports/ui-web";
1307
1551
  import { ArrowUpRightIcon } from "@nukleus-sports/icons";
1308
- import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
1552
+ import { Fragment as Fragment5, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
1309
1553
  var DATE_FORMAT = new Intl.DateTimeFormat("en-US", {
1310
1554
  weekday: "long",
1311
1555
  month: "long",
@@ -1318,33 +1562,33 @@ var MESSAGES = {
1318
1562
  "games-error": "Couldn't load games. Please try again."
1319
1563
  };
1320
1564
  function ResultText({ result }) {
1321
- if (result.outcome === "none") return /* @__PURE__ */ jsx15("span", { className: "text-text-secondary text-14", children: "--" });
1565
+ if (result.outcome === "none") return /* @__PURE__ */ jsx17("span", { className: "text-text-secondary text-14", children: "--" });
1322
1566
  if (result.outcome === "tie") {
1323
- return /* @__PURE__ */ jsxs15("span", { className: "text-14 font-medium text-text-primary", children: [
1567
+ return /* @__PURE__ */ jsxs17("span", { className: "text-14 font-medium text-text-primary", children: [
1324
1568
  "T ",
1325
1569
  result.detail
1326
1570
  ] });
1327
1571
  }
1328
1572
  const isWin = result.outcome === "win";
1329
- return /* @__PURE__ */ jsxs15("span", { className: "text-14 font-medium", children: [
1330
- /* @__PURE__ */ jsx15(
1573
+ return /* @__PURE__ */ jsxs17("span", { className: "text-14 font-medium", children: [
1574
+ /* @__PURE__ */ jsx17(
1331
1575
  "span",
1332
1576
  {
1333
1577
  className: isWin ? "text-primary-color-nuk-text" : "text-semantic-color-status-priority-blocked-hot-copy",
1334
1578
  children: isWin ? "W" : "L"
1335
1579
  }
1336
1580
  ),
1337
- /* @__PURE__ */ jsxs15("span", { className: "text-text-primary", children: [
1581
+ /* @__PURE__ */ jsxs17("span", { className: "text-text-primary", children: [
1338
1582
  " ",
1339
1583
  result.detail
1340
1584
  ] })
1341
1585
  ] });
1342
1586
  }
1343
1587
  function OpponentLogo({ opponent, resolveImageUrl, defaultLogoUrl }) {
1344
- const [failedUrl, setFailedUrl] = useState4(null);
1588
+ const [failedUrl, setFailedUrl] = useState5(null);
1345
1589
  const { logo } = opponent;
1346
1590
  const resolved = logo ? logo.stored ? resolveImageUrl?.(logo.url) : logo.url : void 0;
1347
- return /* @__PURE__ */ jsx15(
1591
+ return /* @__PURE__ */ jsx17(
1348
1592
  "img",
1349
1593
  {
1350
1594
  src: resolved && resolved !== failedUrl ? resolved : defaultLogoUrl,
@@ -1358,13 +1602,13 @@ function OpponentLogo({ opponent, resolveImageUrl, defaultLogoUrl }) {
1358
1602
  );
1359
1603
  }
1360
1604
  function GameItem({ row, resolveImageUrl, defaultLogoUrl }) {
1361
- return /* @__PURE__ */ jsxs15("div", { className: "border-b border-border last:border-0", children: [
1362
- row.isFirstUpcoming && /* @__PURE__ */ jsx15("p", { className: "px-2 pt-2 text-12 font-medium uppercase tracking-wide text-text-secondary", children: "Upcoming" }),
1363
- /* @__PURE__ */ jsxs15("div", { className: "flex flex-col p-2 gap-[5px]", children: [
1364
- /* @__PURE__ */ jsx15("p", { className: "text-14 font-normal text-text-secondary", children: DATE_FORMAT.format(new Date(row.gameDate)) }),
1365
- /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-3", children: [
1366
- /* @__PURE__ */ jsx15("span", { className: "text-14 font-normal text-text-secondary shrink-0", children: row.isHome ? "vs " : "@ " }),
1367
- /* @__PURE__ */ jsx15(
1605
+ return /* @__PURE__ */ jsxs17("div", { className: "border-b border-border last:border-0", children: [
1606
+ row.isFirstUpcoming && /* @__PURE__ */ jsx17("p", { className: "px-2 pt-2 text-12 font-medium uppercase tracking-wide text-text-secondary", children: "Upcoming" }),
1607
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col p-2 gap-[5px]", children: [
1608
+ /* @__PURE__ */ jsx17("p", { className: "text-14 font-normal text-text-secondary", children: DATE_FORMAT.format(new Date(row.gameDate)) }),
1609
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-3", children: [
1610
+ /* @__PURE__ */ jsx17("span", { className: "text-14 font-normal text-text-secondary shrink-0", children: row.isHome ? "vs " : "@ " }),
1611
+ /* @__PURE__ */ jsx17(
1368
1612
  OpponentLogo,
1369
1613
  {
1370
1614
  opponent: row.opponent,
@@ -1372,18 +1616,18 @@ function GameItem({ row, resolveImageUrl, defaultLogoUrl }) {
1372
1616
  defaultLogoUrl
1373
1617
  }
1374
1618
  ),
1375
- /* @__PURE__ */ jsx15("span", { className: "text-14.5 font-normal text-text-primary truncate", children: row.opponent.name }),
1376
- row.result && /* @__PURE__ */ jsxs15(Fragment3, { children: [
1377
- /* @__PURE__ */ jsx15("span", { className: "text-14 text-text-secondary", children: "-" }),
1378
- /* @__PURE__ */ jsx15(ResultText, { result: row.result })
1619
+ /* @__PURE__ */ jsx17("span", { className: "text-14.5 font-normal text-text-primary truncate", children: row.opponent.name }),
1620
+ row.result && /* @__PURE__ */ jsxs17(Fragment5, { children: [
1621
+ /* @__PURE__ */ jsx17("span", { className: "text-14 text-text-secondary", children: "-" }),
1622
+ /* @__PURE__ */ jsx17(ResultText, { result: row.result })
1379
1623
  ] })
1380
1624
  ] }),
1381
- row.time && /* @__PURE__ */ jsx15("p", { className: "text-14 font-normal text-text-secondary", children: row.time })
1625
+ row.time && /* @__PURE__ */ jsx17("p", { className: "text-14 font-normal text-text-secondary", children: row.time })
1382
1626
  ] })
1383
1627
  ] });
1384
1628
  }
1385
1629
  function Message({ children }) {
1386
- return /* @__PURE__ */ jsx15("div", { className: "text-text-primary text-14.5 px-1", children });
1630
+ return /* @__PURE__ */ jsx17("div", { className: "text-text-primary text-14.5 px-1", children });
1387
1631
  }
1388
1632
  function Body({
1389
1633
  status,
@@ -1392,11 +1636,11 @@ function Body({
1392
1636
  defaultLogoUrl
1393
1637
  }) {
1394
1638
  if (status === "loading") {
1395
- return /* @__PURE__ */ jsx15("div", { className: "space-y-4 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ jsx15(IconLoader2, {}) });
1639
+ return /* @__PURE__ */ jsx17("div", { className: "space-y-4 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ jsx17(IconLoader2, {}) });
1396
1640
  }
1397
- if (status !== "ready") return /* @__PURE__ */ jsx15(Message, { children: MESSAGES[status] });
1398
- if (rows.length === 0) return /* @__PURE__ */ jsx15(Message, { children: "There are no games scheduled at this time." });
1399
- return /* @__PURE__ */ jsx15("div", { className: "flex flex-col overflow-y-auto overflow-x-hidden gap-1", children: rows.map((row) => /* @__PURE__ */ jsx15(
1641
+ if (status !== "ready") return /* @__PURE__ */ jsx17(Message, { children: MESSAGES[status] });
1642
+ if (rows.length === 0) return /* @__PURE__ */ jsx17(Message, { children: "There are no games scheduled at this time." });
1643
+ return /* @__PURE__ */ jsx17("div", { className: "flex flex-col overflow-y-auto overflow-x-hidden gap-1", children: rows.map((row) => /* @__PURE__ */ jsx17(
1400
1644
  GameItem,
1401
1645
  {
1402
1646
  row,
@@ -1414,17 +1658,17 @@ function RecentGamesWidget({
1414
1658
  onExpand,
1415
1659
  className
1416
1660
  }) {
1417
- return /* @__PURE__ */ jsxs15(
1418
- Card7,
1661
+ return /* @__PURE__ */ jsxs17(
1662
+ Card8,
1419
1663
  {
1420
- className: cn13(
1664
+ className: cn15(
1421
1665
  "p-4 w-full xl:w-[420px] flex flex-col overflow-hidden border-none gap-3 h-full md:min-h-[612px]",
1422
1666
  className
1423
1667
  ),
1424
1668
  children: [
1425
- /* @__PURE__ */ jsxs15(CardHeader5, { className: "flex flex-row items-center justify-between space-y-0 p-0", children: [
1426
- /* @__PURE__ */ jsx15(CardTitle5, { children: "Recent Games" }),
1427
- onExpand && /* @__PURE__ */ jsx15(
1669
+ /* @__PURE__ */ jsxs17(CardHeader5, { className: "flex flex-row items-center justify-between space-y-0 p-0", children: [
1670
+ /* @__PURE__ */ jsx17(CardTitle5, { children: "Recent Games" }),
1671
+ onExpand && /* @__PURE__ */ jsx17(
1428
1672
  Button4,
1429
1673
  {
1430
1674
  type: "button",
@@ -1433,11 +1677,11 @@ function RecentGamesWidget({
1433
1677
  "aria-label": "View full schedule",
1434
1678
  onClick: onExpand,
1435
1679
  className: "outline-1 background outline-offset-[-1px] outline-[hsl(var(--color-ui-elem-strokes))] outline h-[32px] w-[32px]",
1436
- children: /* @__PURE__ */ jsx15(ArrowUpRightIcon, { className: "text-greys-icons h-5 w-5" })
1680
+ children: /* @__PURE__ */ jsx17(ArrowUpRightIcon, { className: "text-greys-icons h-5 w-5" })
1437
1681
  }
1438
1682
  )
1439
1683
  ] }),
1440
- /* @__PURE__ */ jsx15(CardContent7, { className: "flex-1 flex flex-col overflow-hidden p-0", children: /* @__PURE__ */ jsx15(
1684
+ /* @__PURE__ */ jsx17(CardContent8, { className: "flex-1 flex flex-col overflow-hidden p-0", children: /* @__PURE__ */ jsx17(
1441
1685
  Body,
1442
1686
  {
1443
1687
  status,
@@ -1452,11 +1696,11 @@ function RecentGamesWidget({
1452
1696
  }
1453
1697
 
1454
1698
  // src/team/team-stats-table.tsx
1455
- import { useState as useState5 } from "react";
1699
+ import { useState as useState6 } from "react";
1456
1700
  import {
1457
- BaseTable as BaseTable3,
1458
- Card as Card8,
1459
- CardContent as CardContent8,
1701
+ BaseTable as BaseTable4,
1702
+ Card as Card9,
1703
+ CardContent as CardContent9,
1460
1704
  CardHeader as CardHeader6,
1461
1705
  CardTitle as CardTitle6,
1462
1706
  Select as Select2,
@@ -1465,14 +1709,14 @@ import {
1465
1709
  SelectTrigger as SelectTrigger2,
1466
1710
  SelectValue as SelectValue2,
1467
1711
  Skeleton as Skeleton6,
1468
- cn as cn14
1712
+ cn as cn16
1469
1713
  } from "@nukleus-sports/ui-web";
1470
1714
  import {
1471
1715
  getOrderedTeamStatTypesForCategory,
1472
1716
  getVisibleTeamStatTypes,
1473
1717
  showsTeamStatCategoryPicker
1474
1718
  } from "@nukleus-sports/core";
1475
- import { Fragment as Fragment4, jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
1719
+ import { Fragment as Fragment6, jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
1476
1720
  function stripLeadingSlash(path) {
1477
1721
  return path.startsWith("/") ? path.slice(1) : path;
1478
1722
  }
@@ -1508,10 +1752,10 @@ function formatTeamStatDate(stat) {
1508
1752
  const dateStr = stat.stat_details?.game_details?.date;
1509
1753
  const date = dateStr ? new Date(dateStr) : null;
1510
1754
  if (!date || Number.isNaN(date.getTime())) {
1511
- return /* @__PURE__ */ jsx16("span", { className: "text-text-primary body-text", children: "--" });
1755
+ return /* @__PURE__ */ jsx18("span", { className: "text-text-primary body-text", children: "--" });
1512
1756
  }
1513
1757
  const formatted = date.toLocaleDateString("en-US", { month: "short", day: "numeric" });
1514
- return /* @__PURE__ */ jsx16("div", { className: "text-13.5 font-normal text-text-primary", children: formatted });
1758
+ return /* @__PURE__ */ jsx18("div", { className: "text-13.5 font-normal text-text-primary", children: formatted });
1515
1759
  }
1516
1760
  function getTeamStatResult(stat) {
1517
1761
  const gameDetails = stat.stat_details?.game_details;
@@ -1530,9 +1774,9 @@ function getTeamStatResult(stat) {
1530
1774
  const opponentScore = isHome ? awayScore : homeScore;
1531
1775
  const score = `${teamScore}-${opponentScore}${gameDetails.status_alt_details ? ` ${gameDetails.status_alt_details}` : ""}`;
1532
1776
  const colorClass = winLoss === "W" ? "text-primary-color-nuk-text" : winLoss === "L" ? "text-semantic-color-status-priority-blocked-hot-copy" : "text-text-primary";
1533
- return /* @__PURE__ */ jsxs16("div", { className: "flex items-baseline gap-1 leading-tight", children: [
1534
- /* @__PURE__ */ jsx16("span", { className: cn14(colorClass, "body-text"), children: winLoss }),
1535
- /* @__PURE__ */ jsx16("span", { className: "text-text-primary body-text", children: score })
1777
+ return /* @__PURE__ */ jsxs18("div", { className: "flex items-baseline gap-1 leading-tight", children: [
1778
+ /* @__PURE__ */ jsx18("span", { className: cn16(colorClass, "body-text"), children: winLoss }),
1779
+ /* @__PURE__ */ jsx18("span", { className: "text-text-primary body-text", children: score })
1536
1780
  ] });
1537
1781
  }
1538
1782
  function StatOpponentCell({
@@ -1541,18 +1785,18 @@ function StatOpponentCell({
1541
1785
  defaultLogoUrl,
1542
1786
  showName
1543
1787
  }) {
1544
- const [failedUrl, setFailedUrl] = useState5(null);
1788
+ const [failedUrl, setFailedUrl] = useState6(null);
1545
1789
  const gameDetails = stat.stat_details?.game_details;
1546
1790
  const isHome = stat.team_id === gameDetails?.home_team_id;
1547
1791
  const opponentName = isHome ? gameDetails?.away_team_name : gameDetails?.home_team_name;
1548
1792
  const opponentLogoPath = isHome ? gameDetails?.away_team_logo : gameDetails?.home_team_logo;
1549
- if (!opponentName) return /* @__PURE__ */ jsx16(Fragment4, { children: "--" });
1793
+ if (!opponentName) return /* @__PURE__ */ jsx18(Fragment6, { children: "--" });
1550
1794
  const prefix = isHome ? "vs" : "@";
1551
1795
  const resolved = opponentLogoPath ? resolveOpponentLogoUrl(stripLeadingSlash(opponentLogoPath)) : null;
1552
1796
  const logoSrc = resolved && resolved !== failedUrl ? resolved : defaultLogoUrl;
1553
- return /* @__PURE__ */ jsx16("div", { className: "h-full overflow-hidden", children: /* @__PURE__ */ jsx16("div", { className: "flex items-center h-full", children: /* @__PURE__ */ jsxs16("div", { className: "flex max-sm:gap-1 gap-2 items-center font-normal leading-tight text-12", children: [
1554
- /* @__PURE__ */ jsx16("span", { className: "text-text-primary body-text", children: prefix }),
1555
- /* @__PURE__ */ jsx16(
1797
+ return /* @__PURE__ */ jsx18("div", { className: "h-full overflow-hidden", children: /* @__PURE__ */ jsx18("div", { className: "flex items-center h-full", children: /* @__PURE__ */ jsxs18("div", { className: "flex max-sm:gap-1 gap-2 items-center font-normal leading-tight text-12", children: [
1798
+ /* @__PURE__ */ jsx18("span", { className: "text-text-primary body-text", children: prefix }),
1799
+ /* @__PURE__ */ jsx18(
1556
1800
  "img",
1557
1801
  {
1558
1802
  src: logoSrc,
@@ -1563,7 +1807,7 @@ function StatOpponentCell({
1563
1807
  }
1564
1808
  }
1565
1809
  ),
1566
- showName && /* @__PURE__ */ jsx16("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentName })
1810
+ showName && /* @__PURE__ */ jsx18("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentName })
1567
1811
  ] }) }) });
1568
1812
  }
1569
1813
  function buildStatsColumns({
@@ -1577,14 +1821,14 @@ function buildStatsColumns({
1577
1821
  return [
1578
1822
  {
1579
1823
  id: "game_date",
1580
- header: () => /* @__PURE__ */ jsx16("div", { className: "w-[50px] shrink-0", children: "Date" }),
1824
+ header: () => /* @__PURE__ */ jsx18("div", { className: "w-[50px] shrink-0", children: "Date" }),
1581
1825
  cell: ({ row }) => formatTeamStatDate(row.original),
1582
1826
  meta: { cellSize: isSm ? "xs" : "xxs", headerClassName: "h-auto" }
1583
1827
  },
1584
1828
  {
1585
1829
  id: "opponent",
1586
- header: () => /* @__PURE__ */ jsx16("div", { children: isSm ? "Opponent" : "Opp" }),
1587
- cell: ({ row }) => /* @__PURE__ */ jsx16(
1830
+ header: () => /* @__PURE__ */ jsx18("div", { children: isSm ? "Opponent" : "Opp" }),
1831
+ cell: ({ row }) => /* @__PURE__ */ jsx18(
1588
1832
  StatOpponentCell,
1589
1833
  {
1590
1834
  stat: row.original,
@@ -1636,33 +1880,33 @@ function StatsBody2({
1636
1880
  isSmallLaptop,
1637
1881
  emptyMessage
1638
1882
  }) {
1639
- return /* @__PURE__ */ jsxs16(Fragment4, { children: [
1640
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2 min-[360px]:gap-3 xl:shrink-0", children: [
1641
- /* @__PURE__ */ jsx16(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
1642
- showsCategoryPicker && /* @__PURE__ */ jsxs16(
1883
+ return /* @__PURE__ */ jsxs18(Fragment6, { children: [
1884
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2 min-[360px]:gap-3 xl:shrink-0", children: [
1885
+ /* @__PURE__ */ jsx18(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
1886
+ showsCategoryPicker && /* @__PURE__ */ jsxs18(
1643
1887
  Select2,
1644
1888
  {
1645
1889
  value: selectedStatCategory,
1646
1890
  onValueChange: onStatCategoryChange,
1647
1891
  disabled: !seasons.selectedYear || seasons.selectedType === null,
1648
1892
  children: [
1649
- /* @__PURE__ */ jsx16(SelectTrigger2, { variant: "widget", size: "widget", "aria-label": "Stat category", children: /* @__PURE__ */ jsx16(SelectValue2, { placeholder: "Select stat category" }) }),
1650
- /* @__PURE__ */ jsx16(
1893
+ /* @__PURE__ */ jsx18(SelectTrigger2, { variant: "widget", size: "widget", "aria-label": "Stat category", children: /* @__PURE__ */ jsx18(SelectValue2, { placeholder: "Select stat category" }) }),
1894
+ /* @__PURE__ */ jsx18(
1651
1895
  SelectContent2,
1652
1896
  {
1653
1897
  className: "bg-popover border-border z-50 [&_.checkbox]:!flex",
1654
1898
  classNameViewPort: "gap-2",
1655
- children: availableStatCategories.map((category) => /* @__PURE__ */ jsx16(SelectItem2, { value: category, className: "capitalize min-h-8", children: category.charAt(0).toUpperCase() + category.slice(1) }, category))
1899
+ children: availableStatCategories.map((category) => /* @__PURE__ */ jsx18(SelectItem2, { value: category, className: "capitalize min-h-8", children: category.charAt(0).toUpperCase() + category.slice(1) }, category))
1656
1900
  }
1657
1901
  )
1658
1902
  ]
1659
1903
  }
1660
1904
  )
1661
1905
  ] }),
1662
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1663
- isStatTypesError && !hasVisibleStatTypes && /* @__PURE__ */ jsx16("p", { className: "text-text-secondary text-13.5", children: "Couldn't load stat categories -- showing limited columns." }),
1664
- /* @__PURE__ */ jsx16(
1665
- BaseTable3,
1906
+ /* @__PURE__ */ jsxs18("div", { className: "flex flex-col space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1907
+ isStatTypesError && !hasVisibleStatTypes && /* @__PURE__ */ jsx18("p", { className: "text-text-secondary text-13.5", children: "Couldn't load stat categories -- showing limited columns." }),
1908
+ /* @__PURE__ */ jsx18(
1909
+ BaseTable4,
1666
1910
  {
1667
1911
  columns,
1668
1912
  data: stats,
@@ -1698,27 +1942,27 @@ function TeamStatsTable({
1698
1942
  isSmallLaptop,
1699
1943
  className
1700
1944
  }) {
1701
- const [requestedStatCategory, setRequestedStatCategory] = useState5(null);
1945
+ const [requestedStatCategory, setRequestedStatCategory] = useState6(null);
1702
1946
  const availableStatCategories = getAvailableStatCategories(stats);
1703
1947
  const selectedStatCategory = deriveSelectedStatCategory(
1704
1948
  requestedStatCategory,
1705
1949
  availableStatCategories
1706
1950
  );
1707
1951
  if (isTeamError) {
1708
- return /* @__PURE__ */ jsx16(Card8, { className: cn14("border-0", className), children: /* @__PURE__ */ jsx16(CardContent8, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ jsx16("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
1952
+ return /* @__PURE__ */ jsx18(Card9, { className: cn16("border-0", className), children: /* @__PURE__ */ jsx18(CardContent9, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ jsx18("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
1709
1953
  }
1710
1954
  if (seasonsLoading || sportId === null) {
1711
- return /* @__PURE__ */ jsx16(Card8, { className: cn14("border-0", className), children: /* @__PURE__ */ jsxs16(CardContent8, { className: "space-y-4 pt-6", children: [
1712
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-3 sm:flex-row justify-start", children: [
1713
- /* @__PURE__ */ jsx16(Skeleton6, { className: "h-7 w-[68px] bg-form rounded-[5px]" }),
1714
- /* @__PURE__ */ jsx16(Skeleton6, { className: "h-7 w-[142px] bg-form rounded-[5px]" }),
1715
- /* @__PURE__ */ jsx16(Skeleton6, { className: "h-7 w-[102px] bg-form rounded-[5px]" })
1955
+ return /* @__PURE__ */ jsx18(Card9, { className: cn16("border-0", className), children: /* @__PURE__ */ jsxs18(CardContent9, { className: "space-y-4 pt-6", children: [
1956
+ /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-3 sm:flex-row justify-start", children: [
1957
+ /* @__PURE__ */ jsx18(Skeleton6, { className: "h-7 w-[68px] bg-form rounded-[5px]" }),
1958
+ /* @__PURE__ */ jsx18(Skeleton6, { className: "h-7 w-[142px] bg-form rounded-[5px]" }),
1959
+ /* @__PURE__ */ jsx18(Skeleton6, { className: "h-7 w-[102px] bg-form rounded-[5px]" })
1716
1960
  ] }),
1717
- /* @__PURE__ */ jsx16(Skeleton6, { className: "h-40 w-full bg-form !mt-3" })
1961
+ /* @__PURE__ */ jsx18(Skeleton6, { className: "h-40 w-full bg-form !mt-3" })
1718
1962
  ] }) });
1719
1963
  }
1720
1964
  if (!seasons || seasons.years.length === 0) {
1721
- return /* @__PURE__ */ jsx16(Card8, { className: cn14("border-none", className), children: /* @__PURE__ */ jsx16(CardContent8, { className: "pt-6", children: /* @__PURE__ */ jsx16("div", { className: "text-center py-8", children: /* @__PURE__ */ jsx16("p", { className: "text-text-primary text-14.5 font-normal leading-normal", children: isSeasonsError ? "Couldn't load stats. Please try again." : "There are no stats for this team at this time." }) }) }) });
1965
+ return /* @__PURE__ */ jsx18(Card9, { className: cn16("border-none", className), children: /* @__PURE__ */ jsx18(CardContent9, { className: "pt-6", children: /* @__PURE__ */ jsx18("div", { className: "text-center py-8", children: /* @__PURE__ */ jsx18("p", { className: "text-text-primary text-14.5 font-normal leading-normal", children: isSeasonsError ? "Couldn't load stats. Please try again." : "There are no stats for this team at this time." }) }) }) });
1722
1966
  }
1723
1967
  const visibleStatTypes = getVisibleTeamStatTypes(statTypes, sportId);
1724
1968
  const filteredStatTypes = getOrderedTeamStatTypesForCategory(
@@ -1736,16 +1980,16 @@ function TeamStatsTable({
1736
1980
  isSmallLaptop
1737
1981
  });
1738
1982
  const emptyMessage = getStatsEmptyMessage(seasons, stats.length);
1739
- return /* @__PURE__ */ jsxs16(
1740
- Card8,
1983
+ return /* @__PURE__ */ jsxs18(
1984
+ Card9,
1741
1985
  {
1742
- className: cn14(
1986
+ className: cn16(
1743
1987
  "border-none p-4 flex flex-col gap-3 xl:h-full xl:min-h-0 xl:flex-1 xl:overflow-hidden",
1744
1988
  className
1745
1989
  ),
1746
1990
  children: [
1747
- /* @__PURE__ */ jsx16(CardHeader6, { className: "p-0", children: /* @__PURE__ */ jsx16(CardTitle6, { children: "Stats" }) }),
1748
- /* @__PURE__ */ jsx16(CardContent8, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx16(
1991
+ /* @__PURE__ */ jsx18(CardHeader6, { className: "p-0", children: /* @__PURE__ */ jsx18(CardTitle6, { children: "Stats" }) }),
1992
+ /* @__PURE__ */ jsx18(CardContent9, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx18(
1749
1993
  StatsBody2,
1750
1994
  {
1751
1995
  seasons,
@@ -1771,15 +2015,15 @@ function TeamStatsTable({
1771
2015
 
1772
2016
  // src/team/team-schedule-table.tsx
1773
2017
  import {
1774
- BaseTable as BaseTable4,
1775
- Card as Card9,
1776
- CardContent as CardContent9,
2018
+ BaseTable as BaseTable5,
2019
+ Card as Card10,
2020
+ CardContent as CardContent10,
1777
2021
  CardHeader as CardHeader7,
1778
2022
  CardTitle as CardTitle7,
1779
2023
  IconLoader as IconLoader3,
1780
- cn as cn15
2024
+ cn as cn17
1781
2025
  } from "@nukleus-sports/ui-web";
1782
- import { Fragment as Fragment5, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
2026
+ import { Fragment as Fragment7, jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
1783
2027
  var SPECIAL_LOGO_LEAGUES = ["NFL", "NBA", "NHL", "MLB", "WNBA"];
1784
2028
  var COLLEGE_LEAGUE_IDS = [2, 6, 13];
1785
2029
  var COMPLETED_STATUS_ID = "3";
@@ -1828,12 +2072,12 @@ function showsMlbLeaders(leagueId) {
1828
2072
  }
1829
2073
  function leaderCell(leader, small = false) {
1830
2074
  if (!leader) return "--";
1831
- return /* @__PURE__ */ jsxs17("div", { className: "flex flex-col leading-tight", children: [
1832
- /* @__PURE__ */ jsx17("span", { className: "text-text-primary font-normal truncate", children: leader.displayName }),
1833
- /* @__PURE__ */ jsx17(
2075
+ return /* @__PURE__ */ jsxs19("div", { className: "flex flex-col leading-tight", children: [
2076
+ /* @__PURE__ */ jsx19("span", { className: "text-text-primary font-normal truncate", children: leader.displayName }),
2077
+ /* @__PURE__ */ jsx19(
1834
2078
  "span",
1835
2079
  {
1836
- className: cn15(
2080
+ className: cn17(
1837
2081
  small ? "text-text-secondary text-11" : "text-text-primary body-text",
1838
2082
  "truncate"
1839
2083
  ),
@@ -1850,7 +2094,7 @@ function formatScheduleDate(game) {
1850
2094
  const [year, month, day] = rawDate.split("T")[0].split("-").map(Number);
1851
2095
  return new Date(year, month - 1, day);
1852
2096
  })();
1853
- return /* @__PURE__ */ jsx17("span", { className: "text-text-primary body-text", children: DATE_FORMAT2.format(date) });
2097
+ return /* @__PURE__ */ jsx19("span", { className: "text-text-primary body-text", children: DATE_FORMAT2.format(date) });
1854
2098
  } catch {
1855
2099
  return "--";
1856
2100
  }
@@ -1868,9 +2112,9 @@ function getScheduleResult(game, teamEspnId) {
1868
2112
  const winLoss = tied ? "T" : own.winner === true ? "W" : "L";
1869
2113
  const score = `${formatScore(own.score)}-${formatScore(other.score)}`;
1870
2114
  const colorClass = winLoss === "W" ? "text-primary-color-nuk-text" : winLoss === "L" ? "text-semantic-color-status-priority-blocked-hot-copy" : "text-text-primary";
1871
- return /* @__PURE__ */ jsxs17("div", { className: "flex items-baseline gap-1 leading-tight", children: [
1872
- /* @__PURE__ */ jsx17("span", { className: cn15(colorClass, "body-text"), children: winLoss }),
1873
- /* @__PURE__ */ jsx17("span", { className: "text-text-primary body-text", children: score })
2115
+ return /* @__PURE__ */ jsxs19("div", { className: "flex items-baseline gap-1 leading-tight", children: [
2116
+ /* @__PURE__ */ jsx19("span", { className: cn17(colorClass, "body-text"), children: winLoss }),
2117
+ /* @__PURE__ */ jsx19("span", { className: "text-text-primary body-text", children: score })
1874
2118
  ] });
1875
2119
  }
1876
2120
  function getScheduleRecord(game, teamEspnId) {
@@ -1881,7 +2125,7 @@ function getScheduleRecord(game, teamEspnId) {
1881
2125
  function getWinningGoalie(game) {
1882
2126
  const athlete = firstCompetition(game)?.featuredAthletes?.[0]?.athlete;
1883
2127
  if (!athlete?.lastName) return "--";
1884
- return /* @__PURE__ */ jsx17("div", { className: "flex flex-col leading-tight", children: /* @__PURE__ */ jsx17("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }) });
2128
+ return /* @__PURE__ */ jsx19("div", { className: "flex flex-col leading-tight", children: /* @__PURE__ */ jsx19("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }) });
1885
2129
  }
1886
2130
  function getHockeyTopPlayer(game) {
1887
2131
  const competitors = firstCompetition(game)?.competitors;
@@ -1898,9 +2142,9 @@ function getMlbPitcher(game, pitcherType) {
1898
2142
  const athlete = pitcher?.athlete;
1899
2143
  if (!athlete?.lastName) return "--";
1900
2144
  const stat = pitcherType === "savingPitcher" ? athlete.saves : athlete.record;
1901
- return /* @__PURE__ */ jsxs17("div", { className: "flex flex-col leading-tight", children: [
1902
- /* @__PURE__ */ jsx17("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }),
1903
- /* @__PURE__ */ jsx17("span", { className: "text-text-secondary text-11 truncate", children: stat || "--" })
2145
+ return /* @__PURE__ */ jsxs19("div", { className: "flex flex-col leading-tight", children: [
2146
+ /* @__PURE__ */ jsx19("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }),
2147
+ /* @__PURE__ */ jsx19("span", { className: "text-text-secondary text-11 truncate", children: stat || "--" })
1904
2148
  ] });
1905
2149
  }
1906
2150
  function OpponentCell({
@@ -1913,15 +2157,15 @@ function OpponentCell({
1913
2157
  showName
1914
2158
  }) {
1915
2159
  const match = findCompetitor(firstCompetition(game)?.competitors, teamEspnId);
1916
- if (!match || leagueId === null || !leagueAbbreviation) return /* @__PURE__ */ jsx17(Fragment5, { children: "--" });
2160
+ if (!match || leagueId === null || !leagueAbbreviation) return /* @__PURE__ */ jsx19(Fragment7, { children: "--" });
1917
2161
  const prefix = match.own.homeAway === "home" ? "vs" : "@";
1918
2162
  const opponentTeam = match.other.team;
1919
2163
  const isSpecialLeague = SPECIAL_LOGO_LEAGUES.includes(leagueAbbreviation);
1920
2164
  const identifier = isSpecialLeague ? opponentTeam.abbreviation : opponentTeam.id;
1921
2165
  const folder = COLLEGE_LEAGUE_IDS.includes(leagueId) ? "NCAA" : leagueAbbreviation;
1922
- return /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1 sm:gap-2 h-full overflow-hidden", children: [
1923
- /* @__PURE__ */ jsx17("span", { className: "text-text-primary body-text shrink-0 sm:w-4", children: prefix }),
1924
- /* @__PURE__ */ jsx17(
2166
+ return /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-1 sm:gap-2 h-full overflow-hidden", children: [
2167
+ /* @__PURE__ */ jsx19("span", { className: "text-text-primary body-text shrink-0 sm:w-4", children: prefix }),
2168
+ /* @__PURE__ */ jsx19(
1925
2169
  "img",
1926
2170
  {
1927
2171
  src: resolveLogoUrl(folder, identifier),
@@ -1933,7 +2177,7 @@ function OpponentCell({
1933
2177
  }
1934
2178
  }
1935
2179
  ),
1936
- showName && /* @__PURE__ */ jsx17("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentTeam.displayName })
2180
+ showName && /* @__PURE__ */ jsx19("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentTeam.displayName })
1937
2181
  ] });
1938
2182
  }
1939
2183
  function buildScheduleColumns({
@@ -1949,15 +2193,15 @@ function buildScheduleColumns({
1949
2193
  return [
1950
2194
  {
1951
2195
  id: "game_date",
1952
- header: () => /* @__PURE__ */ jsx17("div", { className: "w-[50px] shrink-0", children: "Date" }),
2196
+ header: () => /* @__PURE__ */ jsx19("div", { className: "w-[50px] shrink-0", children: "Date" }),
1953
2197
  accessorFn: (row) => row.game_date,
1954
2198
  cell: ({ row }) => formatScheduleDate(row.original),
1955
2199
  meta: { cellSize: isSm ? "xs" : "xxs" }
1956
2200
  },
1957
2201
  {
1958
2202
  id: "opponent",
1959
- header: () => /* @__PURE__ */ jsx17("div", { children: isSm ? "Opponent" : "Opp" }),
1960
- cell: ({ row }) => /* @__PURE__ */ jsx17(
2203
+ header: () => /* @__PURE__ */ jsx19("div", { children: isSm ? "Opponent" : "Opp" }),
2204
+ cell: ({ row }) => /* @__PURE__ */ jsx19(
1961
2205
  OpponentCell,
1962
2206
  {
1963
2207
  game: row.original,
@@ -2073,15 +2317,15 @@ function ScheduleBody({
2073
2317
  isSmallLaptop
2074
2318
  }) {
2075
2319
  if (seasonsLoading) {
2076
- return /* @__PURE__ */ jsx17("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ jsx17("div", { className: "text-sm text-text-primary", children: "Loading seasons..." }) });
2320
+ return /* @__PURE__ */ jsx19("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ jsx19("div", { className: "text-sm text-text-primary", children: "Loading seasons..." }) });
2077
2321
  }
2078
2322
  if (!seasons || seasons.years.length === 0) {
2079
- return /* @__PURE__ */ jsx17("div", { className: "text-center py-8", children: /* @__PURE__ */ jsx17("p", { className: "text-text-primary", children: isSeasonsError ? "Couldn't load seasons. Please try again." : "No seasons found" }) });
2323
+ return /* @__PURE__ */ jsx19("div", { className: "text-center py-8", children: /* @__PURE__ */ jsx19("p", { className: "text-text-primary", children: isSeasonsError ? "Couldn't load seasons. Please try again." : "No seasons found" }) });
2080
2324
  }
2081
- return /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2082
- /* @__PURE__ */ jsx17(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3 xl:shrink-0" }),
2083
- /* @__PURE__ */ jsx17("div", { className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx17(
2084
- BaseTable4,
2325
+ return /* @__PURE__ */ jsxs19("div", { className: "flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2326
+ /* @__PURE__ */ jsx19(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3 xl:shrink-0" }),
2327
+ /* @__PURE__ */ jsx19("div", { className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx19(
2328
+ BaseTable5,
2085
2329
  {
2086
2330
  columns,
2087
2331
  data: games,
@@ -2124,24 +2368,24 @@ function TeamScheduleTable({
2124
2368
  isSmallLaptop
2125
2369
  });
2126
2370
  if (isTeamError) {
2127
- return /* @__PURE__ */ jsx17(Card9, { className: cn15("border-0", className), children: /* @__PURE__ */ jsx17(CardContent9, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ jsx17("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
2371
+ return /* @__PURE__ */ jsx19(Card10, { className: cn17("border-0", className), children: /* @__PURE__ */ jsx19(CardContent10, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ jsx19("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
2128
2372
  }
2129
2373
  if (leagueId === null) {
2130
- return /* @__PURE__ */ jsx17(Card9, { className: cn15("border-0", className), children: /* @__PURE__ */ jsxs17(CardContent9, { className: "p-4 flex justify-center items-center gap-2", children: [
2131
- /* @__PURE__ */ jsx17(IconLoader3, {}),
2132
- /* @__PURE__ */ jsx17("p", { className: "text-text-secondary", children: "Loading team information..." })
2374
+ return /* @__PURE__ */ jsx19(Card10, { className: cn17("border-0", className), children: /* @__PURE__ */ jsxs19(CardContent10, { className: "p-4 flex justify-center items-center gap-2", children: [
2375
+ /* @__PURE__ */ jsx19(IconLoader3, {}),
2376
+ /* @__PURE__ */ jsx19("p", { className: "text-text-secondary", children: "Loading team information..." })
2133
2377
  ] }) });
2134
2378
  }
2135
- return /* @__PURE__ */ jsxs17(
2136
- Card9,
2379
+ return /* @__PURE__ */ jsxs19(
2380
+ Card10,
2137
2381
  {
2138
- className: cn15(
2382
+ className: cn17(
2139
2383
  "border-none p-4 flex flex-col gap-3 xl:h-full xl:min-h-0 xl:flex-1 xl:overflow-hidden",
2140
2384
  className
2141
2385
  ),
2142
2386
  children: [
2143
- /* @__PURE__ */ jsx17(CardHeader7, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ jsx17(CardTitle7, { children: "Schedule" }) }),
2144
- /* @__PURE__ */ jsx17(CardContent9, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx17(
2387
+ /* @__PURE__ */ jsx19(CardHeader7, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ jsx19(CardTitle7, { children: "Schedule" }) }),
2388
+ /* @__PURE__ */ jsx19(CardContent10, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ jsx19(
2145
2389
  ScheduleBody,
2146
2390
  {
2147
2391
  seasonsLoading,
@@ -2172,6 +2416,8 @@ export {
2172
2416
  TeamFactsWidget,
2173
2417
  TeamHeaderCard,
2174
2418
  TeamInfoCard,
2419
+ TeamPlacesCard,
2420
+ TeamRosterTable,
2175
2421
  TeamScheduleTable,
2176
2422
  TeamSeasonScheduleSummaryPanel,
2177
2423
  TeamSeasonStatsSummaryPanel,