@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.cjs CHANGED
@@ -32,6 +32,8 @@ __export(team_exports, {
32
32
  TeamFactsWidget: () => TeamFactsWidget,
33
33
  TeamHeaderCard: () => TeamHeaderCard,
34
34
  TeamInfoCard: () => TeamInfoCard,
35
+ TeamPlacesCard: () => TeamPlacesCard,
36
+ TeamRosterTable: () => TeamRosterTable,
35
37
  TeamScheduleTable: () => TeamScheduleTable,
36
38
  TeamSeasonScheduleSummaryPanel: () => TeamSeasonScheduleSummaryPanel,
37
39
  TeamSeasonStatsSummaryPanel: () => TeamSeasonStatsSummaryPanel,
@@ -97,6 +99,7 @@ function EntityAvatar({
97
99
  className,
98
100
  fallbackClassName,
99
101
  showInitials = true,
102
+ preferInitials = false,
100
103
  cacheBreaker
101
104
  }) {
102
105
  const extractedFirstName = firstName || entityData?.first_name || "";
@@ -241,6 +244,8 @@ function EntityAvatar({
241
244
  return "Avatar";
242
245
  }
243
246
  };
247
+ const hasNameInitials = Boolean(extractedFirstName[0] || extractedLastName[0]);
248
+ const showsInitialsText = entityType === "contact" || entityType === "initials" || preferInitials && showInitials && hasNameInitials;
244
249
  const processedImageUrl = getImageUrl();
245
250
  const defaultImageUrl = getDefaultImageUrl();
246
251
  const initials = getInitials();
@@ -258,7 +263,7 @@ function EntityAvatar({
258
263
  isSquared && "rounded-lg bg-greys-grey-table-h",
259
264
  fallbackClassName
260
265
  ),
261
- children: entityType === "contact" || entityType === "initials" ? initials : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
266
+ children: showsInitialsText ? initials : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
262
267
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
263
268
  "img",
264
269
  {
@@ -343,7 +348,7 @@ function TeamInfoCard({ team, resolveImageUrl, className }) {
343
348
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex flex-col text-right", children: team.officialWebsite ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
344
349
  "a",
345
350
  {
346
- href: /^https?:\/\//.test(team.officialWebsite) ? team.officialWebsite : `http://${team.officialWebsite}`,
351
+ href: (0, import_core.getTeamWebsiteHref)(team.officialWebsite),
347
352
  target: "_blank",
348
353
  rel: "noopener noreferrer",
349
354
  className: "text-primary-color-nuk-text body-text inline-flex items-center justify-end gap-1",
@@ -448,7 +453,6 @@ function TeamStaffTable({
448
453
  const [internalSorting, setInternalSorting] = (0, import_react.useState)(DEFAULT_SORT);
449
454
  const activeSorting = sorting ?? internalSorting;
450
455
  const handleSortingChange = onSortingChange ?? setInternalSorting;
451
- const effectiveVirtualized = virtualized && !isSplitLayout;
452
456
  const rows = (0, import_react.useMemo)(() => {
453
457
  if (staff.length === 0) return [];
454
458
  const grouped = /* @__PURE__ */ new Map();
@@ -484,7 +488,7 @@ function TeamStaffTable({
484
488
  const { visibleItems, sentinelRef, hasMore } = (0, import_ui_web4.useInfiniteList)(rows, {
485
489
  resetKey: `${staff.length}|${JSON.stringify(activeSorting)}`
486
490
  });
487
- const displayedRows = effectiveVirtualized ? visibleItems : rows;
491
+ const displayedRows = virtualized ? visibleItems : rows;
488
492
  const columns = (0, import_react.useMemo)(() => {
489
493
  const activate = (id) => onStaffClick?.(id);
490
494
  const interactionProps = (id, ariaLabel) => interactive ? {
@@ -526,6 +530,7 @@ function TeamStaffTable({
526
530
  coach_image_url: member.coach_image_url
527
531
  },
528
532
  resolveImageUrl,
533
+ preferInitials: true,
529
534
  size: isCompact ? "xs" : "lg"
530
535
  }
531
536
  )
@@ -576,18 +581,18 @@ function TeamStaffTable({
576
581
  loading,
577
582
  emptyMessage: isError ? "Failed to load coaching staff. Please try again." : "No coaches found.",
578
583
  pageSize: Math.max(displayedRows.length, 25),
579
- hidePagination: effectiveVirtualized,
584
+ hidePagination: virtualized,
580
585
  stickyHeader: true,
581
586
  splitLayout: isSplitLayout,
582
587
  numberOfColumns: 1,
583
588
  splitLayoutGridCols: isCompact ? "!grid-cols-[minmax(120px,120px)_1fr]" : isSplitLayout ? "sm:!grid-cols-[minmax(220px,220px)_1fr]" : "",
584
- containerClassName: (0, import_ui_web4.cn)("border-0 rounded-none xl:h-full", effectiveVirtualized && "h-full"),
589
+ containerClassName: (0, import_ui_web4.cn)("border-0 rounded-none xl:h-full", virtualized && "h-full"),
585
590
  className: (0, import_ui_web4.cn)(
586
591
  "border-none xl:flex-1 xl:min-h-0 xl:overflow-hidden",
587
- effectiveVirtualized && "h-full min-h-0 w-full",
592
+ virtualized && "h-full min-h-0 w-full",
588
593
  className
589
594
  ),
590
- bottomContent: effectiveVirtualized && hasMore ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref: sentinelRef, className: "h-px w-full" }) : null,
595
+ bottomContent: virtualized && hasMore ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref: sentinelRef, className: "h-px w-full" }) : null,
591
596
  getRowBanner: (row) => row.__isCategoryRow ? row.__categoryLabel : null,
592
597
  bannerRowClassName: "bg-greys-background-hover hover:bg-greys-background-hover",
593
598
  getRowClassName: (row) => row.__isCategoryRow ? "hidden" : ""
@@ -595,12 +600,243 @@ function TeamStaffTable({
595
600
  ) });
596
601
  }
597
602
 
598
- // src/team/stat-column.tsx
603
+ // src/team/team-roster-table.tsx
604
+ var import_react2 = require("react");
605
+ var import_ui_web5 = require("@nukleus-sports/ui-web");
606
+ var import_core4 = require("@nukleus-sports/core");
599
607
  var import_jsx_runtime5 = require("react/jsx-runtime");
608
+ var DEFAULT_SORT2 = [{ id: "first_name", desc: false }];
609
+ var NO_SORT = [];
610
+ function cellSizeFor(key, isCompact) {
611
+ switch (key) {
612
+ case "first_name":
613
+ return isCompact ? "teamMobile" : "xl";
614
+ case "college":
615
+ case "birthplace":
616
+ case "hometown":
617
+ return "l";
618
+ default:
619
+ return "xxs";
620
+ }
621
+ }
622
+ function RosterNameCell({
623
+ player,
624
+ value,
625
+ rowClickable,
626
+ onPlayerClick,
627
+ isCompact,
628
+ resolveImageUrl
629
+ }) {
630
+ const content = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
631
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
632
+ EntityAvatar,
633
+ {
634
+ entityType: "player",
635
+ entityData: {
636
+ first_name: player.first_name,
637
+ last_name: player.last_name,
638
+ player_image_url: player.player_image_url
639
+ },
640
+ resolveImageUrl,
641
+ preferInitials: true,
642
+ size: "md",
643
+ className: isCompact ? "h-5 w-5" : "h-[34px] w-[34px]"
644
+ }
645
+ ),
646
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "min-w-0 line-clamp-2 break-words", children: value })
647
+ ] });
648
+ return rowClickable ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
649
+ "button",
650
+ {
651
+ type: "button",
652
+ className: "flex min-w-0 w-full items-center gap-2 text-left",
653
+ "aria-label": `View ${value}'s profile`,
654
+ onClick: (event) => {
655
+ event.stopPropagation();
656
+ onPlayerClick?.(player.id);
657
+ },
658
+ children: content
659
+ }
660
+ ) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex min-w-0 w-full items-center gap-2", children: content });
661
+ }
662
+ function splitGridCols(isCompact, isSplitLayout) {
663
+ if (isCompact) return "!grid-cols-[minmax(136px,136px)_1fr]";
664
+ return isSplitLayout ? "sm:!grid-cols-[minmax(220px,220px)_1fr]" : "";
665
+ }
666
+ function useRosterSorting({ sortable, sorting, onSortingChange }) {
667
+ const [internalSorting, setInternalSorting] = (0, import_react2.useState)(DEFAULT_SORT2);
668
+ const activeSorting = sortable ? sorting ?? internalSorting : NO_SORT;
669
+ const handleSortingChange = onSortingChange ?? setInternalSorting;
670
+ const tableSortingProps = sortable ? {
671
+ sorting: activeSorting,
672
+ manualSorting: true,
673
+ onSortingChange: ((updater) => {
674
+ const next = typeof updater === "function" ? updater(activeSorting) : updater;
675
+ handleSortingChange(next);
676
+ })
677
+ } : { manualSorting: false };
678
+ return { activeSorting, tableSortingProps };
679
+ }
680
+ function useRosterColumns({
681
+ leagueId,
682
+ sortable,
683
+ rowClickable,
684
+ onPlayerClick,
685
+ isCompact,
686
+ resolveImageUrl
687
+ }) {
688
+ return (0, import_react2.useMemo)(() => {
689
+ if (leagueId === null) return [];
690
+ const dataColumns = (0, import_core4.getRosterColumns)(leagueId).map(
691
+ ({ key, label }) => ({
692
+ id: key,
693
+ header: sortable ? (0, import_ui_web5.createClickableSortableHeader)(label) : label,
694
+ accessorFn: (player) => (0, import_core4.getRosterCellValue)(player, key, leagueId),
695
+ enableSorting: sortable,
696
+ enableMultiSort: false,
697
+ cell: ({ row }) => {
698
+ const player = row.original;
699
+ const value = (0, import_core4.getRosterCellValue)(player, key, leagueId);
700
+ if (key !== "first_name") {
701
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex items-center h-full min-h-[46px]", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "line-clamp-2 break-all", children: value }) });
702
+ }
703
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
704
+ RosterNameCell,
705
+ {
706
+ player,
707
+ value,
708
+ rowClickable,
709
+ onPlayerClick,
710
+ isCompact,
711
+ resolveImageUrl
712
+ }
713
+ );
714
+ },
715
+ meta: { cellSize: cellSizeFor(key, isCompact) }
716
+ })
717
+ );
718
+ return [
719
+ ...dataColumns,
720
+ {
721
+ id: "empty",
722
+ header: "",
723
+ enableSorting: false,
724
+ cell: () => null,
725
+ meta: { cellSize: "" }
726
+ }
727
+ ];
728
+ }, [leagueId, sortable, rowClickable, onPlayerClick, isCompact, resolveImageUrl]);
729
+ }
730
+ function TeamRosterTable({
731
+ players,
732
+ leagueId,
733
+ loading,
734
+ isError,
735
+ rowClickable = false,
736
+ onPlayerClick,
737
+ sortable = false,
738
+ sorting,
739
+ onSortingChange,
740
+ virtualized = false,
741
+ isSplitLayout = false,
742
+ isCompact = false,
743
+ resolveImageUrl,
744
+ className
745
+ }) {
746
+ const { activeSorting, tableSortingProps } = useRosterSorting({
747
+ sortable,
748
+ sorting,
749
+ onSortingChange
750
+ });
751
+ const sortedPlayers = (0, import_react2.useMemo)(
752
+ () => (0, import_core4.sortTeamPlayers)(players, activeSorting, leagueId ?? void 0),
753
+ [players, activeSorting, leagueId]
754
+ );
755
+ const { visibleItems, sentinelRef, hasMore } = (0, import_ui_web5.useInfiniteList)(sortedPlayers, {
756
+ resetKey: `${leagueId ?? ""}|${players.length}|${JSON.stringify(activeSorting)}`
757
+ });
758
+ const displayedPlayers = virtualized ? visibleItems : sortedPlayers;
759
+ const columns = useRosterColumns({
760
+ leagueId,
761
+ sortable,
762
+ rowClickable,
763
+ onPlayerClick,
764
+ isCompact,
765
+ resolveImageUrl
766
+ });
767
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "w-full xl:flex xl:h-full xl:flex-1 xl:min-h-0 xl:flex-col xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
768
+ import_ui_web5.BaseTable,
769
+ {
770
+ columns,
771
+ data: displayedPlayers,
772
+ getRowId: (row) => String(row.id),
773
+ ...tableSortingProps,
774
+ onRowClick: rowClickable ? (player) => onPlayerClick?.(player.id) : void 0,
775
+ loading,
776
+ emptyMessage: isError ? "Failed to load roster. Please try again." : "No roster found",
777
+ pageSize: Math.max(displayedPlayers.length, 25),
778
+ hidePagination: virtualized,
779
+ stickyHeader: true,
780
+ splitLayout: isSplitLayout,
781
+ numberOfColumns: 1,
782
+ splitLayoutGridCols: splitGridCols(isCompact, isSplitLayout),
783
+ containerClassName: (0, import_ui_web5.cn)("border-0 rounded-none xl:h-full", virtualized && "h-full"),
784
+ className: (0, import_ui_web5.cn)(
785
+ "border-none xl:flex-1 xl:min-h-0 xl:overflow-hidden",
786
+ virtualized && "h-full min-h-0 w-full",
787
+ className
788
+ ),
789
+ bottomContent: virtualized && hasMore ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { ref: sentinelRef, className: "h-px w-full" }) : null
790
+ }
791
+ ) });
792
+ }
793
+
794
+ // src/team/team-places-card.tsx
795
+ var import_react3 = require("react");
796
+ var import_ui_web6 = require("@nukleus-sports/ui-web");
797
+ var import_core5 = require("@nukleus-sports/core");
798
+ var import_jsx_runtime6 = require("react/jsx-runtime");
799
+ function TeamPlacesCard({ team, className }) {
800
+ const { venue, facility } = (0, import_core5.getTeamPlaceSummaries)(team.specificData, team.leagueAbbreviation);
801
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web6.Card, { className: (0, import_ui_web6.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web6.CardContent, { className: "p-4", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "grid h-full grid-cols-[auto_1fr] gap-x-3 gap-y-4 sm:gap-4", children: [
802
+ [venue, facility].map((place) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react3.Fragment, { children: [
803
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col max-sm:max-w-[96px]", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mb-1 text-14.5 text-text-primary sm:text-base", children: place.label }) }),
804
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col break-words text-right max-sm:min-w-0", children: place.name ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "text-14.5 sm:text-base", children: [
805
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: place.name }),
806
+ place.address ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { children: place.address }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-muted-foreground", children: "No address available" })
807
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-14.5 text-muted-foreground sm:text-base", children: "No address available" }) })
808
+ ] }, place.label)),
809
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col max-sm:max-w-[96px]", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mb-1 text-14.5 text-text-primary sm:text-base", children: "Website" }) }),
810
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col break-words text-right max-sm:min-w-0", children: team.officialWebsite ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
811
+ "a",
812
+ {
813
+ href: (0, import_core5.getTeamWebsiteHref)(team.officialWebsite),
814
+ target: "_blank",
815
+ rel: "noopener noreferrer",
816
+ className: "inline-flex items-center justify-end gap-1 text-14.5 text-primary-color-nuk-text sm:text-base",
817
+ children: [
818
+ team.officialWebsite.replace(/^https?:\/\//i, ""),
819
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", { className: "h-3 w-3", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
820
+ "path",
821
+ {
822
+ strokeLinecap: "round",
823
+ strokeLinejoin: "round",
824
+ strokeWidth: 2,
825
+ d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
826
+ }
827
+ ) })
828
+ ]
829
+ }
830
+ ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-14.5 text-muted-foreground sm:text-base", children: "No website available" }) })
831
+ ] }) }) });
832
+ }
833
+
834
+ // src/team/stat-column.tsx
835
+ var import_jsx_runtime7 = require("react/jsx-runtime");
600
836
  function StatColumn({ label, value, suffix, rankBadge }) {
601
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col items-center h-full justify-center flex-1 gap-1 sm:gap-3 w-full", children: [
602
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "label-xs-medium text-text-secondary leading-normal opacity-[0.8] ss05", children: label }),
603
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "text-[19px] font-semibold sm:text-[32px] sm:font-bold text-text-primary leading-normal title-text opacity-[0.8]", children: [
837
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col items-center h-full justify-center flex-1 gap-1 sm:gap-3 w-full", children: [
838
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "label-xs-medium text-text-secondary leading-normal opacity-[0.8] ss05", children: label }),
839
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "text-[19px] font-semibold sm:text-[32px] sm:font-bold text-text-primary leading-normal title-text opacity-[0.8]", children: [
604
840
  value,
605
841
  suffix || ""
606
842
  ] }),
@@ -609,9 +845,9 @@ function StatColumn({ label, value, suffix, rankBadge }) {
609
845
  }
610
846
 
611
847
  // src/team/team-season-stats-summary-panel.tsx
612
- var import_ui_web5 = require("@nukleus-sports/ui-web");
613
- var import_core4 = require("@nukleus-sports/core");
614
- var import_jsx_runtime6 = require("react/jsx-runtime");
848
+ var import_ui_web7 = require("@nukleus-sports/ui-web");
849
+ var import_core6 = require("@nukleus-sports/core");
850
+ var import_jsx_runtime8 = require("react/jsx-runtime");
615
851
  function getStatusMessage({
616
852
  isSupportedSport,
617
853
  selectedYear,
@@ -634,17 +870,17 @@ function TeamSeasonStatsSummaryPanel({
634
870
  isError,
635
871
  className
636
872
  }) {
637
- const columns = (0, import_core4.getTeamStatColumns)(sportId);
873
+ const columns = (0, import_core6.getTeamStatColumns)(sportId);
638
874
  const statusMessage = loading ? null : getStatusMessage({
639
- isSupportedSport: (0, import_core4.isSupportedTeamStatsSport)(sportId),
875
+ isSupportedSport: (0, import_core6.isSupportedTeamStatsSport)(sportId),
640
876
  selectedYear,
641
877
  selectedType,
642
878
  isError,
643
879
  stats
644
880
  });
645
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui_web5.Card, { className: (0, import_ui_web5.cn)("border-0 p-4 flex flex-col gap-4", className), children: [
646
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web5.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web5.CardTitle, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Stats" }) }),
647
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web5.CardContent, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web5.Skeleton, { className: "h-4 w-3/4" }) }) : statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: statusMessage }) : stats && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("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__ */ (0, import_jsx_runtime6.jsx)(
881
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui_web7.Card, { className: (0, import_ui_web7.cn)("border-0 p-4 flex flex-col gap-4", className), children: [
882
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.CardTitle, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Stats" }) }),
883
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.CardContent, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.Skeleton, { className: "h-4 w-3/4" }) }) : statusMessage ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: statusMessage }) : stats && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("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__ */ (0, import_jsx_runtime8.jsx)(
648
884
  StatColumn,
649
885
  {
650
886
  label: col.label,
@@ -657,8 +893,8 @@ function TeamSeasonStatsSummaryPanel({
657
893
  }
658
894
 
659
895
  // src/team/team-season-schedule-summary-panel.tsx
660
- var import_ui_web6 = require("@nukleus-sports/ui-web");
661
- var import_jsx_runtime7 = require("react/jsx-runtime");
896
+ var import_ui_web8 = require("@nukleus-sports/ui-web");
897
+ var import_jsx_runtime9 = require("react/jsx-runtime");
662
898
  function TeamSeasonScheduleSummaryPanel({
663
899
  selectedYear,
664
900
  selectedType,
@@ -667,11 +903,11 @@ function TeamSeasonScheduleSummaryPanel({
667
903
  isError,
668
904
  className
669
905
  }) {
670
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui_web6.Card, { className: (0, import_ui_web6.cn)("border-0 p-4 flex flex-col gap-4", className), children: [
671
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web6.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web6.CardTitle, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Summary" }) }),
672
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web6.CardContent, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web6.Skeleton, { className: "h-4 w-3/4" }) }) : !selectedYear || selectedType === null ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("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__ */ (0, import_jsx_runtime7.jsx)("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__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "No schedule data for the current season." }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "w-full flex flex-col sm:flex-row gap-6 sm:gap-3 justify-between items-center", children: [
673
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(StatColumn, { label: "Record", value: summary.record }),
674
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
906
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_ui_web8.Card, { className: (0, import_ui_web8.cn)("border-0 p-4 flex flex-col gap-4", className), children: [
907
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ui_web8.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ui_web8.CardTitle, { className: "text-base text-text-primary font-medium leading-normal", children: "Season Summary" }) }),
908
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ui_web8.CardContent, { className: "p-0 flex-1 flex justify-center items-center", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ui_web8.Skeleton, { className: "h-4 w-3/4" }) }) : !selectedYear || selectedType === null ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("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__ */ (0, import_jsx_runtime9.jsx)("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__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex items-center justify-center w-full text-14.5 text-text-secondary", children: "No schedule data for the current season." }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "w-full flex flex-col sm:flex-row gap-6 sm:gap-3 justify-between items-center", children: [
909
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StatColumn, { label: "Record", value: summary.record }),
910
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
675
911
  StatColumn,
676
912
  {
677
913
  label: "Games Played",
@@ -683,8 +919,8 @@ function TeamSeasonScheduleSummaryPanel({
683
919
  }
684
920
 
685
921
  // src/team/season-selector.tsx
686
- var import_ui_web7 = require("@nukleus-sports/ui-web");
687
- var import_jsx_runtime8 = require("react/jsx-runtime");
922
+ var import_ui_web9 = require("@nukleus-sports/ui-web");
923
+ var import_jsx_runtime10 = require("react/jsx-runtime");
688
924
  function SeasonSelector({
689
925
  years,
690
926
  types,
@@ -695,39 +931,39 @@ function SeasonSelector({
695
931
  hideTypeOnMobile = false,
696
932
  className
697
933
  }) {
698
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: (0, import_ui_web7.cn)("flex gap-3", className), children: [
699
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
700
- import_ui_web7.Select,
934
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: (0, import_ui_web9.cn)("flex gap-3", className), children: [
935
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
936
+ import_ui_web9.Select,
701
937
  {
702
938
  value: selectedYear?.toString() ?? "",
703
939
  onValueChange: (value) => onYearChange(Number(value)),
704
940
  children: [
705
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season year", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.SelectValue, { placeholder: "Select year" }) }),
706
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
707
- import_ui_web7.SelectContent,
941
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season year", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.SelectValue, { placeholder: "Select year" }) }),
942
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
943
+ import_ui_web9.SelectContent,
708
944
  {
709
945
  className: "bg-card border-border z-50 [&_.checkbox]:!flex",
710
946
  classNameViewPort: "gap-2",
711
- children: years.map((year) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.SelectItem, { value: year.value.toString(), className: "min-h-8", children: year.label }, year.value))
947
+ children: years.map((year) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.SelectItem, { value: year.value.toString(), className: "min-h-8", children: year.label }, year.value))
712
948
  }
713
949
  )
714
950
  ]
715
951
  }
716
952
  ),
717
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: (0, import_ui_web7.cn)(hideTypeOnMobile && "hidden sm:block"), children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
718
- import_ui_web7.Select,
953
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: (0, import_ui_web9.cn)(hideTypeOnMobile && "hidden sm:block"), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
954
+ import_ui_web9.Select,
719
955
  {
720
956
  value: selectedType?.toString() ?? "",
721
957
  onValueChange: (value) => onTypeChange(Number(value)),
722
958
  disabled: selectedYear === null,
723
959
  children: [
724
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season type", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.SelectValue, { placeholder: "Select type" }) }),
725
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
726
- import_ui_web7.SelectContent,
960
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Season type", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.SelectValue, { placeholder: "Select type" }) }),
961
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
962
+ import_ui_web9.SelectContent,
727
963
  {
728
964
  className: "bg-card border-border z-50 [&_.checkbox]:!flex",
729
965
  classNameViewPort: "gap-2",
730
- children: types.map((type) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web7.SelectItem, { value: type.value.toString(), className: "min-h-8", children: type.label }, type.value))
966
+ children: types.map((type) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.SelectItem, { value: type.value.toString(), className: "min-h-8", children: type.label }, type.value))
731
967
  }
732
968
  )
733
969
  ]
@@ -737,9 +973,9 @@ function SeasonSelector({
737
973
  }
738
974
 
739
975
  // src/team/fact-pills.tsx
740
- var import_react2 = require("react");
741
- var import_ui_web8 = require("@nukleus-sports/ui-web");
742
- var import_jsx_runtime9 = require("react/jsx-runtime");
976
+ var import_react4 = require("react");
977
+ var import_ui_web10 = require("@nukleus-sports/ui-web");
978
+ var import_jsx_runtime11 = require("react/jsx-runtime");
743
979
  var MAX_ROWS = 2;
744
980
  var KEY_SEPARATOR = "";
745
981
  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";
@@ -754,16 +990,16 @@ function pillKeys(items) {
754
990
  });
755
991
  }
756
992
  function FactPills({ items, capped = false }) {
757
- const listId = (0, import_react2.useId)();
758
- const listRef = (0, import_react2.useRef)(null);
759
- const [expanded, setExpanded] = (0, import_react2.useState)(false);
760
- const [visibleCount, setVisibleCount] = (0, import_react2.useState)(null);
761
- const [clipHeight, setClipHeight] = (0, import_react2.useState)(null);
762
- const [width, setWidth] = (0, import_react2.useState)(0);
993
+ const listId = (0, import_react4.useId)();
994
+ const listRef = (0, import_react4.useRef)(null);
995
+ const [expanded, setExpanded] = (0, import_react4.useState)(false);
996
+ const [visibleCount, setVisibleCount] = (0, import_react4.useState)(null);
997
+ const [clipHeight, setClipHeight] = (0, import_react4.useState)(null);
998
+ const [width, setWidth] = (0, import_react4.useState)(0);
763
999
  const contentKey = items.join(KEY_SEPARATOR);
764
1000
  const keys = pillKeys(items);
765
1001
  const collapsible = capped && !expanded;
766
- (0, import_react2.useLayoutEffect)(() => {
1002
+ (0, import_react4.useLayoutEffect)(() => {
767
1003
  const list = listRef.current;
768
1004
  if (!capped || !list || typeof ResizeObserver === "undefined") return;
769
1005
  const observer = new ResizeObserver((entries) => {
@@ -774,12 +1010,12 @@ function FactPills({ items, capped = false }) {
774
1010
  return () => observer.disconnect();
775
1011
  }, [capped]);
776
1012
  const measurementKey = `${width}:${contentKey}`;
777
- const [measuredFor, setMeasuredFor] = (0, import_react2.useState)(measurementKey);
1013
+ const [measuredFor, setMeasuredFor] = (0, import_react4.useState)(measurementKey);
778
1014
  if (measuredFor !== measurementKey) {
779
1015
  setMeasuredFor(measurementKey);
780
1016
  if (visibleCount !== null) setVisibleCount(null);
781
1017
  }
782
- (0, import_react2.useLayoutEffect)(() => {
1018
+ (0, import_react4.useLayoutEffect)(() => {
783
1019
  const list = listRef.current;
784
1020
  if (!collapsible || !list) return;
785
1021
  const children = Array.from(list.children).filter(
@@ -810,19 +1046,19 @@ function FactPills({ items, capped = false }) {
810
1046
  setExpanded(false);
811
1047
  setVisibleCount(null);
812
1048
  };
813
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1049
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
814
1050
  "ul",
815
1051
  {
816
1052
  id: listId,
817
1053
  ref: listRef,
818
- className: (0, import_ui_web8.cn)(
1054
+ className: (0, import_ui_web10.cn)(
819
1055
  "flex w-full flex-wrap content-start items-start gap-1",
820
1056
  collapsible && "overflow-hidden"
821
1057
  ),
822
1058
  style: collapsible && clipHeight !== null ? { maxHeight: clipHeight } : void 0,
823
1059
  children: [
824
- items.slice(0, shownCount).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { className: PILL_CLASS, title: String(item), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "truncate", children: item }) }, keys[index])),
825
- truncated && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { className: "flex shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1060
+ items.slice(0, shownCount).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { className: PILL_CLASS, title: String(item), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "truncate", children: item }) }, keys[index])),
1061
+ truncated && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { className: "flex shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
826
1062
  "button",
827
1063
  {
828
1064
  type: "button",
@@ -833,7 +1069,7 @@ function FactPills({ items, capped = false }) {
833
1069
  children: "Show More"
834
1070
  }
835
1071
  ) }),
836
- capped && expanded && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { className: "flex shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1072
+ capped && expanded && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { className: "flex shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
837
1073
  "button",
838
1074
  {
839
1075
  type: "button",
@@ -850,9 +1086,9 @@ function FactPills({ items, capped = false }) {
850
1086
  }
851
1087
 
852
1088
  // src/team/fact-field.tsx
853
- var import_ui_web9 = require("@nukleus-sports/ui-web");
854
- var import_core5 = require("@nukleus-sports/core");
855
- var import_jsx_runtime10 = require("react/jsx-runtime");
1089
+ var import_ui_web11 = require("@nukleus-sports/ui-web");
1090
+ var import_core7 = require("@nukleus-sports/core");
1091
+ var import_jsx_runtime12 = require("react/jsx-runtime");
856
1092
  function numberFact(facts, key) {
857
1093
  const value = facts[key];
858
1094
  return typeof value === "number" ? value : null;
@@ -865,23 +1101,23 @@ function textFact(facts, key) {
865
1101
  const value = facts[key];
866
1102
  return typeof value === "string" ? value : null;
867
1103
  }
868
- function EmptyValue({ children = import_core5.EMPTY_FACT_VALUE }) {
869
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "body-text font-ss02-ss05 text-text-secondary", children });
1104
+ function EmptyValue({ children = import_core7.EMPTY_FACT_VALUE }) {
1105
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "body-text font-ss02-ss05 text-text-secondary", children });
870
1106
  }
871
1107
  function FieldLabel({ children }) {
872
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "w-full label-xs-text font-ss02-ss05 text-text-secondary", children });
1108
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "w-full label-xs-text font-ss02-ss05 text-text-secondary", children });
873
1109
  }
874
1110
  function CountFact({
875
1111
  factKey,
876
1112
  data
877
1113
  }) {
878
1114
  const { facts, config } = data;
879
- const pairedYears = import_core5.TEAM_FACT_YEAR_PAIRS[factKey];
880
- const years = pairedYears ? (0, import_core5.formatYearPills)(listFact(facts, pairedYears), config.formatChampionshipYear) : [];
881
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex min-w-0 flex-col items-start gap-1", children: [
882
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FieldLabel, { children: config.labels[factKey] }),
883
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "stat-count-number title-text text-text-primary", children: (0, import_core5.formatTeamFactNumber)("count", numberFact(facts, factKey)) }),
884
- years.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FactPills, { items: years, capped: true })
1115
+ const pairedYears = import_core7.TEAM_FACT_YEAR_PAIRS[factKey];
1116
+ const years = pairedYears ? (0, import_core7.formatYearPills)(listFact(facts, pairedYears), config.formatChampionshipYear) : [];
1117
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex min-w-0 flex-col items-start gap-1", children: [
1118
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FieldLabel, { children: config.labels[factKey] }),
1119
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "stat-count-number title-text text-text-primary", children: (0, import_core7.formatTeamFactNumber)("count", numberFact(facts, factKey)) }),
1120
+ years.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FactPills, { items: years, capped: true })
885
1121
  ] });
886
1122
  }
887
1123
  function RivalValue({
@@ -891,14 +1127,14 @@ function RivalValue({
891
1127
  }) {
892
1128
  switch (rival.status) {
893
1129
  case "none":
894
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(EmptyValue, {});
1130
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(EmptyValue, {});
895
1131
  case "loading":
896
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_ui_web9.Skeleton, { className: "h-8 w-40", "aria-label": "Loading rival" });
1132
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_ui_web11.Skeleton, { className: "h-8 w-40", "aria-label": "Loading rival" });
897
1133
  case "error":
898
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(EmptyValue, { children: "Couldn't load the rival team" });
1134
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(EmptyValue, { children: "Couldn't load the rival team" });
899
1135
  case "ready": {
900
- const content = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
901
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1136
+ const content = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1137
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
902
1138
  EntityAvatar,
903
1139
  {
904
1140
  entityType: "initials",
@@ -909,37 +1145,37 @@ function RivalValue({
909
1145
  className: "shrink-0"
910
1146
  }
911
1147
  ),
912
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "min-w-0", children: rival.rival.name })
1148
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "min-w-0", children: rival.rival.name })
913
1149
  ] });
914
1150
  const className = "inline-flex max-w-full items-center gap-1.5 body-text-semibold font-ss02-ss05 text-primary-color-nuk-text";
915
- return getRivalHref ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("a", { href: getRivalHref(rival.rival.id), className: (0, import_ui_web9.cn)(className, "hover:underline"), children: content }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className, children: content });
1151
+ return getRivalHref ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("a", { href: getRivalHref(rival.rival.id), className: (0, import_ui_web11.cn)(className, "hover:underline"), children: content }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className, children: content });
916
1152
  }
917
1153
  }
918
1154
  }
919
1155
  function factValue(factKey, layout, data, resolveImageUrl, getRivalHref) {
920
1156
  const { facts, config } = data;
921
- const kind = import_core5.TEAM_FACT_KINDS[factKey];
1157
+ const kind = import_core7.TEAM_FACT_KINDS[factKey];
922
1158
  if (kind === "number" || kind === "year" || kind === "text") {
923
- const display = kind === "text" ? textFact(facts, factKey) : (0, import_core5.formatTeamFactNumber)(kind, numberFact(facts, factKey));
924
- const isEmpty = !display || display === import_core5.EMPTY_FACT_VALUE;
925
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1159
+ const display = kind === "text" ? textFact(facts, factKey) : (0, import_core7.formatTeamFactNumber)(kind, numberFact(facts, factKey));
1160
+ const isEmpty = !display || display === import_core7.EMPTY_FACT_VALUE;
1161
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
926
1162
  "span",
927
1163
  {
928
- className: (0, import_ui_web9.cn)(
1164
+ className: (0, import_ui_web11.cn)(
929
1165
  "w-full header-xl-medium-card font-ss02-ss05 [overflow-wrap:anywhere]",
930
1166
  isEmpty ? "text-text-secondary" : "text-text-primary"
931
1167
  ),
932
- children: display ?? import_core5.EMPTY_FACT_VALUE
1168
+ children: display ?? import_core7.EMPTY_FACT_VALUE
933
1169
  }
934
1170
  );
935
1171
  }
936
1172
  if (kind === "years" || kind === "labeled_years" || kind === "list") {
937
1173
  const raw = listFact(facts, factKey);
938
- const items = kind === "years" ? (0, import_core5.formatYearPills)(raw, config.formatChampionshipYear) : raw;
939
- return items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FactPills, { items, capped: layout === "grid" }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(EmptyValue, {});
1174
+ const items = kind === "years" ? (0, import_core7.formatYearPills)(raw, config.formatChampionshipYear) : raw;
1175
+ return items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FactPills, { items, capped: layout === "grid" }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(EmptyValue, {});
940
1176
  }
941
1177
  if (kind === "rival") {
942
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1178
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
943
1179
  RivalValue,
944
1180
  {
945
1181
  rival: data.rival,
@@ -949,14 +1185,14 @@ function factValue(factKey, layout, data, resolveImageUrl, getRivalHref) {
949
1185
  );
950
1186
  }
951
1187
  const text = textFact(facts, factKey);
952
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1188
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
953
1189
  "p",
954
1190
  {
955
- className: (0, import_ui_web9.cn)(
1191
+ className: (0, import_ui_web11.cn)(
956
1192
  "w-full body-text font-ss02-ss05 whitespace-pre-line",
957
1193
  text ? "text-text-primary" : "text-text-secondary"
958
1194
  ),
959
- children: text ?? import_core5.EMPTY_FACT_VALUE
1195
+ children: text ?? import_core7.EMPTY_FACT_VALUE
960
1196
  }
961
1197
  );
962
1198
  }
@@ -967,18 +1203,18 @@ function FactField({
967
1203
  resolveImageUrl,
968
1204
  getRivalHref
969
1205
  }) {
970
- const kind = import_core5.TEAM_FACT_KINDS[factKey];
971
- if (kind === "count") return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(CountFact, { factKey, data });
972
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1206
+ const kind = import_core7.TEAM_FACT_KINDS[factKey];
1207
+ if (kind === "count") return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CountFact, { factKey, data });
1208
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
973
1209
  "div",
974
1210
  {
975
- className: (0, import_ui_web9.cn)(
1211
+ className: (0, import_ui_web11.cn)(
976
1212
  "flex min-w-0 flex-col items-start gap-1.5",
977
1213
  layout === "row" && "flex-1",
978
1214
  layout === "grid" && kind !== "list" && "gap-1"
979
1215
  ),
980
1216
  children: [
981
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FieldLabel, { children: data.config.labels[factKey] }),
1217
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(FieldLabel, { children: data.config.labels[factKey] }),
982
1218
  factValue(factKey, layout, data, resolveImageUrl, getRivalHref)
983
1219
  ]
984
1220
  }
@@ -986,16 +1222,16 @@ function FactField({
986
1222
  }
987
1223
 
988
1224
  // src/team/venue-photo.tsx
989
- var import_react3 = require("react");
990
- var import_ui_web10 = require("@nukleus-sports/ui-web");
1225
+ var import_react5 = require("react");
1226
+ var import_ui_web12 = require("@nukleus-sports/ui-web");
991
1227
  var import_icons = require("@nukleus-sports/icons");
992
- var import_core6 = require("@nukleus-sports/core");
993
- var import_jsx_runtime11 = require("react/jsx-runtime");
1228
+ var import_core8 = require("@nukleus-sports/core");
1229
+ var import_jsx_runtime13 = require("react/jsx-runtime");
994
1230
  var PHOTO_WIDTHS = [640, 960, 1280];
995
1231
  var PHOTO_SIZES = "(min-width: 1280px) 420px, 100vw";
996
1232
  var LINK_CLASS = "inline-flex shrink-0 items-center gap-1 hover:text-text-primary";
997
1233
  function NewTabNote() {
998
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "sr-only", children: " (opens in a new tab)" });
1234
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sr-only", children: " (opens in a new tab)" });
999
1235
  }
1000
1236
  function resolvePhotoSources(path, resolveImageUrl) {
1001
1237
  const candidates = PHOTO_WIDTHS.flatMap((width) => {
@@ -1010,18 +1246,18 @@ function resolvePhotoSources(path, resolveImageUrl) {
1010
1246
  }
1011
1247
  function VenueNameOnly({ name, label }) {
1012
1248
  if (!name) return null;
1013
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex min-w-0 flex-col items-start gap-1.5", children: [
1014
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(FieldLabel, { children: label }),
1015
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "w-full header-xl-medium-card font-ss02-ss05 text-text-primary", children: name })
1249
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex min-w-0 flex-col items-start gap-1.5", children: [
1250
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(FieldLabel, { children: label }),
1251
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "w-full header-xl-medium-card font-ss02-ss05 text-text-primary", children: name })
1016
1252
  ] });
1017
1253
  }
1018
1254
  function PhotoCaption({ name, image }) {
1019
- const credit = (0, import_core6.facilityImageCredit)(image);
1020
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("figcaption", { className: "flex w-full flex-col gap-1 xxs-body-text font-ss02-ss05", children: [
1021
- name && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "w-full text-text-primary", children: name }),
1022
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex w-full items-start gap-2 text-greys-text-secondary", children: [
1023
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "min-w-0 flex-1", children: credit ? `Photo: ${credit}` : "Photo from Wikimedia Commons" }),
1024
- image.sourceUrl && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1255
+ const credit = (0, import_core8.facilityImageCredit)(image);
1256
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("figcaption", { className: "flex w-full flex-col gap-1 xxs-body-text font-ss02-ss05", children: [
1257
+ name && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "w-full text-text-primary", children: name }),
1258
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex w-full items-start gap-2 text-greys-text-secondary", children: [
1259
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "min-w-0 flex-1", children: credit ? `Photo: ${credit}` : "Photo from Wikimedia Commons" }),
1260
+ image.sourceUrl && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1025
1261
  "a",
1026
1262
  {
1027
1263
  href: image.sourceUrl,
@@ -1030,8 +1266,8 @@ function PhotoCaption({ name, image }) {
1030
1266
  className: LINK_CLASS,
1031
1267
  children: [
1032
1268
  "Source",
1033
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(NewTabNote, {}),
1034
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1269
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(NewTabNote, {}),
1270
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1035
1271
  import_icons.XsViewInvoiceIcon,
1036
1272
  {
1037
1273
  width: 16,
@@ -1042,7 +1278,7 @@ function PhotoCaption({ name, image }) {
1042
1278
  ]
1043
1279
  }
1044
1280
  ),
1045
- image.licenseUrl && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1281
+ image.licenseUrl && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1046
1282
  "a",
1047
1283
  {
1048
1284
  href: image.licenseUrl,
@@ -1051,7 +1287,7 @@ function PhotoCaption({ name, image }) {
1051
1287
  className: LINK_CLASS,
1052
1288
  children: [
1053
1289
  "License",
1054
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(NewTabNote, {})
1290
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(NewTabNote, {})
1055
1291
  ]
1056
1292
  }
1057
1293
  )
@@ -1060,14 +1296,14 @@ function PhotoCaption({ name, image }) {
1060
1296
  }
1061
1297
  function VenuePhoto({ venue, label, resolveImageUrl }) {
1062
1298
  const { name, image } = venue;
1063
- const [failed, setFailed] = (0, import_react3.useState)("none");
1064
- const [isLoaded, setIsLoaded] = (0, import_react3.useState)(false);
1299
+ const [failed, setFailed] = (0, import_react5.useState)("none");
1300
+ const [isLoaded, setIsLoaded] = (0, import_react5.useState)(false);
1065
1301
  const sources = image && resolveImageUrl ? resolvePhotoSources(image.path, resolveImageUrl) : null;
1066
1302
  const useResized = failed === "none" && Boolean(sources?.srcSet);
1067
1303
  const src = failed === "all" ? void 0 : useResized ? sources?.resized : sources?.original;
1068
- if (!image || !src) return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(VenueNameOnly, { name, label });
1069
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("figure", { className: "flex w-full flex-col gap-3", children: [
1070
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1304
+ if (!image || !src) return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(VenueNameOnly, { name, label });
1305
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("figure", { className: "flex w-full flex-col gap-3", children: [
1306
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1071
1307
  "img",
1072
1308
  {
1073
1309
  src,
@@ -1076,20 +1312,20 @@ function VenuePhoto({ venue, label, resolveImageUrl }) {
1076
1312
  onLoad: () => setIsLoaded(true),
1077
1313
  onError: () => setFailed(useResized ? "resized" : "all"),
1078
1314
  alt: name ?? label,
1079
- className: (0, import_ui_web10.cn)(
1315
+ className: (0, import_ui_web12.cn)(
1080
1316
  "h-[150px] w-full rounded-[8px] bg-greys-background-hover object-cover",
1081
1317
  !isLoaded && "animate-pulse"
1082
1318
  ),
1083
1319
  loading: "lazy"
1084
1320
  }
1085
1321
  ),
1086
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(PhotoCaption, { name, image })
1322
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(PhotoCaption, { name, image })
1087
1323
  ] });
1088
1324
  }
1089
1325
 
1090
1326
  // src/team/team-facts-content.tsx
1091
- var import_core7 = require("@nukleus-sports/core");
1092
- var import_jsx_runtime12 = require("react/jsx-runtime");
1327
+ var import_core9 = require("@nukleus-sports/core");
1328
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1093
1329
  var SECTION_FIELDS_CLASS = {
1094
1330
  grid: "grid grid-cols-2 items-start gap-3",
1095
1331
  row: "flex items-start gap-3",
@@ -1106,7 +1342,7 @@ function TeamFactsContent({
1106
1342
  getRivalHref
1107
1343
  }) {
1108
1344
  const { config, venue, hasFacts } = data;
1109
- const photo = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1345
+ const photo = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1110
1346
  VenuePhoto,
1111
1347
  {
1112
1348
  venue,
@@ -1116,14 +1352,14 @@ function TeamFactsContent({
1116
1352
  venue.image?.path ?? "none"
1117
1353
  );
1118
1354
  if (!hasFacts) {
1119
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-3", children: [
1120
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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." }),
1121
- (venue.image || venue.name) && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("section", { className: SECTION_CLASS, children: photo })
1355
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col gap-3", children: [
1356
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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." }),
1357
+ (venue.image || venue.name) && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("section", { className: SECTION_CLASS, children: photo })
1122
1358
  ] });
1123
1359
  }
1124
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col gap-3", children: config.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { "aria-label": section.title, className: SECTION_CLASS, children: [
1125
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h3", { className: "label-xs-semibold-text font-ss02-ss05 uppercase text-greys-text-secondary", children: section.title }),
1126
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: SECTION_FIELDS_CLASS[section.layout], children: (0, import_core7.teamFactsDisplayFields)(section).map((key) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1360
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex flex-col gap-3", children: config.sections.map((section) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("section", { "aria-label": section.title, className: SECTION_CLASS, children: [
1361
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("h3", { className: "label-xs-semibold-text font-ss02-ss05 uppercase text-greys-text-secondary", children: section.title }),
1362
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: SECTION_FIELDS_CLASS[section.layout], children: (0, import_core9.teamFactsDisplayFields)(section).map((key) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1127
1363
  FactField,
1128
1364
  {
1129
1365
  factKey: key,
@@ -1139,8 +1375,8 @@ function TeamFactsContent({
1139
1375
  }
1140
1376
 
1141
1377
  // src/team/team-facts-widget.tsx
1142
- var import_ui_web11 = require("@nukleus-sports/ui-web");
1143
- var import_jsx_runtime13 = require("react/jsx-runtime");
1378
+ var import_ui_web13 = require("@nukleus-sports/ui-web");
1379
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1144
1380
  var SKELETON_KEYS = ["trophy-case", "tradition", "profile"];
1145
1381
  function TeamFactsWidget({
1146
1382
  state,
@@ -1149,32 +1385,32 @@ function TeamFactsWidget({
1149
1385
  getRivalHref,
1150
1386
  className
1151
1387
  }) {
1152
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1153
- import_ui_web11.Card,
1388
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1389
+ import_ui_web13.Card,
1154
1390
  {
1155
- className: (0, import_ui_web11.cn)(
1391
+ className: (0, import_ui_web13.cn)(
1156
1392
  "flex w-full min-w-0 flex-col gap-3 rounded-[10px] border-0 px-4 pb-[22px] pt-4",
1157
1393
  // Matches the Team Info card's desktop height (TeamInfoCard `md:min-h-[612px]`).
1158
1394
  "xl:min-h-[612px] xl:self-stretch xl:[contain:size]",
1159
1395
  className
1160
1396
  ),
1161
1397
  children: [
1162
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ui_web11.CardHeader, { className: "flex h-8 shrink-0 flex-row items-center p-0", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ui_web11.CardTitle, { className: "header-xl-medium-card font-ss02-ss05 text-text-primary", children: "Team Facts" }) }),
1163
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_ui_web11.CardContent, { className: "p-0 xl:min-h-0 xl:flex-1 xl:overflow-y-auto xl:[scrollbar-width:none] xl:[&::-webkit-scrollbar]:hidden", children: [
1164
- state.status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex flex-col gap-3", role: "status", "aria-label": "Loading team facts", children: SKELETON_KEYS.map((key) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ui_web11.Skeleton, { className: "h-[200px] w-full rounded-[10px]" }, key)) }),
1165
- state.status === "error" && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
1398
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardHeader, { className: "flex h-8 shrink-0 flex-row items-center p-0", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardTitle, { className: "header-xl-medium-card font-ss02-ss05 text-text-primary", children: "Team Facts" }) }),
1399
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_ui_web13.CardContent, { className: "p-0 xl:min-h-0 xl:flex-1 xl:overflow-y-auto xl:[scrollbar-width:none] xl:[&::-webkit-scrollbar]:hidden", children: [
1400
+ state.status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex flex-col gap-3", role: "status", "aria-label": "Loading team facts", children: SKELETON_KEYS.map((key) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.Skeleton, { className: "h-[200px] w-full rounded-[10px]" }, key)) }),
1401
+ state.status === "error" && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1166
1402
  "div",
1167
1403
  {
1168
1404
  role: "alert",
1169
1405
  className: "flex h-[120px] flex-col items-center justify-center gap-2 text-14.5 text-text-secondary",
1170
1406
  children: [
1171
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "Couldn't load team facts." }),
1172
- state.devMessage && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "xxs-body-text", children: state.devMessage }),
1173
- state.retry && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_ui_web11.Button, { type: "button", variant: "outline", size: "sm", onClick: state.retry, children: "Try again" })
1407
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: "Couldn't load team facts." }),
1408
+ state.devMessage && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "xxs-body-text", children: state.devMessage }),
1409
+ state.retry && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.Button, { type: "button", variant: "outline", size: "sm", onClick: state.retry, children: "Try again" })
1174
1410
  ]
1175
1411
  }
1176
1412
  ),
1177
- state.status === "ready" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1413
+ state.status === "ready" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1178
1414
  TeamFactsContent,
1179
1415
  {
1180
1416
  data: state.data,
@@ -1191,31 +1427,31 @@ function TeamFactsWidget({
1191
1427
  }
1192
1428
 
1193
1429
  // src/team/stat-ranking-leaderboard-dialog.tsx
1194
- var import_react4 = require("react");
1195
- var import_ui_web12 = require("@nukleus-sports/ui-web");
1430
+ var import_react6 = require("react");
1431
+ var import_ui_web14 = require("@nukleus-sports/ui-web");
1196
1432
  var import_icons2 = require("@nukleus-sports/icons");
1197
- var import_core8 = require("@nukleus-sports/core");
1198
- var import_jsx_runtime14 = require("react/jsx-runtime");
1433
+ var import_core10 = require("@nukleus-sports/core");
1434
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1199
1435
  var PAGE_BUTTON_BASE = "background";
1200
1436
  var PAGE_BUTTON_DESKTOP = "!h-[32px] !w-[32px] p-[6px]";
1201
1437
  var PAGE_BUTTON_MOBILE = "!h-11 !w-11 p-3 !outline-0 !border-0 !bg-inherit";
1202
1438
  var HIGHLIGHT_CLASS = "text-semantic-color-status-priority-completed-copy bg-primary-color-total-row-table-2";
1203
1439
  function formatRank(rank, tied) {
1204
- return tied ? `T-${(0, import_core8.toOrdinal)(rank)}` : (0, import_core8.toOrdinal)(rank);
1440
+ return tied ? `T-${(0, import_core10.toOrdinal)(rank)}` : (0, import_core10.toOrdinal)(rank);
1205
1441
  }
1206
1442
  function Footnotes({ notes }) {
1207
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: notes.map((note) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("p", { className: "alert-text-italic text-text-secondary", children: [
1443
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: notes.map((note) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "alert-text-italic text-text-secondary", children: [
1208
1444
  "* ",
1209
1445
  note
1210
1446
  ] }, note)) });
1211
1447
  }
1212
1448
  function Pagination({ page, totalPages, isCountKnown, isSm, onPageChange }) {
1213
- const buttonClass = (0, import_ui_web12.cn)(PAGE_BUTTON_BASE, isSm ? PAGE_BUTTON_DESKTOP : PAGE_BUTTON_MOBILE);
1214
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between", children: [
1215
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "label-xs-text text-text-secondary", children: isCountKnown ? `Page ${page} of ${totalPages}` : `Page ${page}` }),
1216
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center gap-3", children: [
1217
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1218
- import_ui_web12.Button,
1449
+ const buttonClass = (0, import_ui_web14.cn)(PAGE_BUTTON_BASE, isSm ? PAGE_BUTTON_DESKTOP : PAGE_BUTTON_MOBILE);
1450
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center justify-between", children: [
1451
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "label-xs-text text-text-secondary", children: isCountKnown ? `Page ${page} of ${totalPages}` : `Page ${page}` }),
1452
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-3", children: [
1453
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1454
+ import_ui_web14.Button,
1219
1455
  {
1220
1456
  variant: "secondary-greys",
1221
1457
  size: "sm",
@@ -1223,11 +1459,11 @@ function Pagination({ page, totalPages, isCountKnown, isSm, onPageChange }) {
1223
1459
  onClick: () => onPageChange(Math.max(1, page - 1)),
1224
1460
  disabled: page === 1,
1225
1461
  "aria-label": "Go to previous page",
1226
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons2.ChevronLeftIcon, { className: "h-4 w-4" })
1462
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons2.ChevronLeftIcon, { className: "h-4 w-4" })
1227
1463
  }
1228
1464
  ),
1229
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1230
- import_ui_web12.Button,
1465
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1466
+ import_ui_web14.Button,
1231
1467
  {
1232
1468
  variant: "secondary-greys",
1233
1469
  size: "sm",
@@ -1235,14 +1471,14 @@ function Pagination({ page, totalPages, isCountKnown, isSm, onPageChange }) {
1235
1471
  onClick: () => onPageChange(Math.min(totalPages, page + 1)),
1236
1472
  disabled: !isCountKnown || page >= totalPages,
1237
1473
  "aria-label": "Go to next page",
1238
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons2.ChevronRightIcon, { className: "h-4 w-4" })
1474
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons2.ChevronRightIcon, { className: "h-4 w-4" })
1239
1475
  }
1240
1476
  )
1241
1477
  ] })
1242
1478
  ] });
1243
1479
  }
1244
1480
  function useLeaderboardColumns(entityLabel, statLabel, formatValue, isSm) {
1245
- return (0, import_react4.useMemo)(
1481
+ return (0, import_react6.useMemo)(
1246
1482
  () => [
1247
1483
  {
1248
1484
  accessorKey: "rank",
@@ -1261,7 +1497,7 @@ function useLeaderboardColumns(entityLabel, statLabel, formatValue, isSm) {
1261
1497
  },
1262
1498
  {
1263
1499
  accessorKey: "value",
1264
- header: () => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "text-right text-wrap line-clamp-2", title: statLabel, children: statLabel }),
1500
+ header: () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "text-right text-wrap line-clamp-2", title: statLabel, children: statLabel }),
1265
1501
  meta: {
1266
1502
  cellSize: isSm ? "m" : "xs",
1267
1503
  rowCellClassName: "text-right tabular-nums break-all"
@@ -1281,12 +1517,12 @@ function LeaderboardTable(props) {
1281
1517
  props.isSm
1282
1518
  );
1283
1519
  if (isConfigError) {
1284
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children: "Couldn't load ranking details. Please try again." });
1520
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children: "Couldn't load ranking details. Please try again." });
1285
1521
  }
1286
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
1287
- isError && rows.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-12 text-destructive px-1 pb-2", children: "Couldn't refresh rankings. Showing the last loaded data." }),
1288
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1289
- import_ui_web12.BaseTable,
1522
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
1523
+ isError && rows.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-12 text-destructive px-1 pb-2", children: "Couldn't refresh rankings. Showing the last loaded data." }),
1524
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1525
+ import_ui_web14.BaseTable,
1290
1526
  {
1291
1527
  columns,
1292
1528
  data: rows,
@@ -1309,17 +1545,17 @@ function LeaderboardContent(props) {
1309
1545
  const isCountKnown = totalCount !== void 0;
1310
1546
  const totalPages = Math.max(1, Math.ceil((totalCount ?? 0) / pageSize));
1311
1547
  const showPagination = page > 1 || isCountKnown && totalPages > 1;
1312
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col h-full overflow-hidden", children: [
1313
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col gap-6 sm:gap-4 overflow-hidden px-5", children: [
1314
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_ui_web12.DialogDescription, { className: "flex flex-col gap-1 header-xl-medium-card text-text-secondary sm:px-4 font-ss02 ss05 leading-normal", children: [
1548
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-col h-full overflow-hidden", children: [
1549
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-col gap-6 sm:gap-4 overflow-hidden px-5", children: [
1550
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_ui_web14.DialogDescription, { className: "flex flex-col gap-1 header-xl-medium-card text-text-secondary sm:px-4 font-ss02 ss05 leading-normal", children: [
1315
1551
  subtitle,
1316
- !isSm && footnotes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Footnotes, { notes: footnotes })
1552
+ !isSm && footnotes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Footnotes, { notes: footnotes })
1317
1553
  ] }),
1318
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LeaderboardTable, { ...props }) })
1554
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LeaderboardTable, { ...props }) })
1319
1555
  ] }),
1320
- (footnotes.length > 0 || showPagination) && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("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: [
1321
- footnotes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Footnotes, { notes: footnotes }),
1322
- showPagination && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1556
+ (footnotes.length > 0 || showPagination) && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("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: [
1557
+ footnotes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Footnotes, { notes: footnotes }),
1558
+ showPagination && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1323
1559
  Pagination,
1324
1560
  {
1325
1561
  page,
@@ -1335,13 +1571,13 @@ function LeaderboardContent(props) {
1335
1571
  function StatRankingLeaderboardDialog(props) {
1336
1572
  const { open, onOpenChange, title, isSm } = props;
1337
1573
  if (isSm) {
1338
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui_web12.Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_ui_web12.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: [
1339
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui_web12.DialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ui_web12.DialogTitle, { className: "header-xl-medium-card", children: title }) }),
1340
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LeaderboardContent, { ...props })
1574
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_ui_web14.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: [
1575
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.DialogHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.DialogTitle, { className: "header-xl-medium-card", children: title }) }),
1576
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LeaderboardContent, { ...props })
1341
1577
  ] }) });
1342
1578
  }
1343
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1344
- import_ui_web12.MobileModalLayout,
1579
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1580
+ import_ui_web14.MobileModalLayout,
1345
1581
  {
1346
1582
  onCancel: () => onOpenChange(false),
1347
1583
  isOpen: open,
@@ -1349,15 +1585,15 @@ function StatRankingLeaderboardDialog(props) {
1349
1585
  title,
1350
1586
  cancelButtonName: "Close",
1351
1587
  childClassName: "h-auto min-h-full h-[calc(100vh-100px)]",
1352
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "flex flex-col h-full pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LeaderboardContent, { ...props }) })
1588
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex flex-col h-full pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LeaderboardContent, { ...props }) })
1353
1589
  }
1354
1590
  );
1355
1591
  }
1356
1592
 
1357
1593
  // src/team/team-season-stats-widget.tsx
1358
- var import_ui_web13 = require("@nukleus-sports/ui-web");
1359
- var import_core9 = require("@nukleus-sports/core");
1360
- var import_jsx_runtime15 = require("react/jsx-runtime");
1594
+ var import_ui_web15 = require("@nukleus-sports/ui-web");
1595
+ var import_core11 = require("@nukleus-sports/core");
1596
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1361
1597
  var PRESEASON_TYPE = 1;
1362
1598
  var RANK_TEXT_CLASS = "label-xs-medium text-text-secondary";
1363
1599
  var RANK_LINK_CLASS = `${RANK_TEXT_CLASS} hover:text-text-primary hover:underline cursor-pointer transition-colors`;
@@ -1369,15 +1605,15 @@ function RankBadge({
1369
1605
  onRankClick
1370
1606
  }) {
1371
1607
  if (isRankingsError) {
1372
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "label-xs-medium text-destructive", title: "Couldn't load ranking", children: [
1373
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", children: "--" }),
1374
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "sr-only", children: "Couldn't load ranking" })
1608
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "label-xs-medium text-destructive", title: "Couldn't load ranking", children: [
1609
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", children: "--" }),
1610
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: "Couldn't load ranking" })
1375
1611
  ] });
1376
1612
  }
1377
1613
  if (!rankText) return null;
1378
- if (!onRankClick) return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: RANK_TEXT_CLASS, children: rankText });
1379
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1380
- import_ui_web13.Button,
1614
+ if (!onRankClick) return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: RANK_TEXT_CLASS, children: rankText });
1615
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1616
+ import_ui_web15.Button,
1381
1617
  {
1382
1618
  type: "button",
1383
1619
  variant: "unstyled",
@@ -1393,7 +1629,7 @@ function RankBadge({
1393
1629
  );
1394
1630
  }
1395
1631
  function CenteredMessage({ children }) {
1396
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children });
1632
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center justify-center h-full text-14.5 text-text-secondary", children });
1397
1633
  }
1398
1634
  function StatsBody({
1399
1635
  stats,
@@ -1405,21 +1641,21 @@ function StatsBody({
1405
1641
  isRankingsError,
1406
1642
  onRankClick
1407
1643
  }) {
1408
- const columns = (0, import_core9.getTeamStatColumns)(sportId);
1409
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-col gap-1.5 h-full w-full justify-center", children: [
1410
- isSummaryError && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "text-12 text-destructive", children: "Couldn't refresh stats. Showing the last loaded data." }),
1411
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("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) => {
1644
+ const columns = (0, import_core11.getTeamStatColumns)(sportId);
1645
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col gap-1.5 h-full w-full justify-center", children: [
1646
+ isSummaryError && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-12 text-destructive", children: "Couldn't refresh stats. Showing the last loaded data." }),
1647
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("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) => {
1412
1648
  const configId = configIds?.[index];
1413
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1649
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1414
1650
  StatColumn,
1415
1651
  {
1416
1652
  label: column.label,
1417
1653
  value: stats.values[index],
1418
1654
  suffix: column.suffix,
1419
- rankBadge: showRanks && configId !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1655
+ rankBadge: showRanks && configId !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1420
1656
  RankBadge,
1421
1657
  {
1422
- rankText: (0, import_core9.formatStatRankByConfig)(rankings, configId),
1658
+ rankText: (0, import_core11.formatStatRankByConfig)(rankings, configId),
1423
1659
  statLabel: column.label,
1424
1660
  configId,
1425
1661
  isRankingsError,
@@ -1450,22 +1686,22 @@ function TeamSeasonStatsWidget({
1450
1686
  onRankClick,
1451
1687
  className
1452
1688
  }) {
1453
- const isSupportedSport = sportId != null && (0, import_core9.isSupportedTeamStatsSport)(sportId);
1689
+ const isSupportedSport = sportId != null && (0, import_core11.isSupportedTeamStatsSport)(sportId);
1454
1690
  const hasSeason = Boolean(seasons?.selectedYear) && seasons?.selectedType != null;
1455
- const stats = isSupportedSport && hasSeason ? (0, import_core9.computeTeamSeasonStatsFromSummary)(summary, sportId) : null;
1456
- const configIds = (0, import_core9.getTeamRankingConfigIds)(sportId, leagueId);
1691
+ const stats = isSupportedSport && hasSeason ? (0, import_core11.computeTeamSeasonStatsFromSummary)(summary, sportId) : null;
1692
+ const configIds = (0, import_core11.getTeamRankingConfigIds)(sportId, leagueId);
1457
1693
  const showRanks = seasons?.selectedType !== PRESEASON_TYPE;
1458
1694
  if (seasonsLoading) {
1459
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_ui_web13.Card, { className: (0, import_ui_web13.cn)("border-0 p-4 h-[300px]", className), children: [
1460
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardHeader, { className: "p-0 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardTitle, { className: "text-base font-medium", children: "Season Stats" }) }),
1461
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardContent, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "space-y-3 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.IconLoader, {}) }) })
1695
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_ui_web15.Card, { className: (0, import_ui_web15.cn)("border-0 p-4 h-[300px]", className), children: [
1696
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardHeader, { className: "p-0 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardTitle, { className: "text-base font-medium", children: "Season Stats" }) }),
1697
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardContent, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "space-y-3 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.IconLoader, {}) }) })
1462
1698
  ] });
1463
1699
  }
1464
1700
  let body;
1465
1701
  if (statsLoading) {
1466
- body = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.Skeleton, { className: "h-4 w-3/4" }) });
1702
+ body = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Skeleton, { className: "h-4 w-3/4" }) });
1467
1703
  } else if (isSupportedSport && stats) {
1468
- body = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1704
+ body = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1469
1705
  StatsBody,
1470
1706
  {
1471
1707
  stats,
@@ -1479,31 +1715,31 @@ function TeamSeasonStatsWidget({
1479
1715
  }
1480
1716
  );
1481
1717
  } else {
1482
- body = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CenteredMessage, { children: getEmptyMessage(isSupportedSport, hasSeason, isSummaryError) });
1718
+ body = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CenteredMessage, { children: getEmptyMessage(isSupportedSport, hasSeason, isSummaryError) });
1483
1719
  }
1484
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
1485
- import_ui_web13.Card,
1720
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1721
+ import_ui_web15.Card,
1486
1722
  {
1487
- className: (0, import_ui_web13.cn)(
1723
+ className: (0, import_ui_web15.cn)(
1488
1724
  "border-0 px-4 py-3 sm:p-4 flex flex-col gap-[25px] sm:gap-4 sm:h-[300px]",
1489
1725
  className
1490
1726
  ),
1491
1727
  children: [
1492
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-row items-center justify-between w-full h-8", children: [
1493
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardTitle, { className: "header-xl-medium-card text-base text-text-primary", children: "Team Stats" }),
1494
- isSupportedSport && seasons && seasons.years.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(SeasonSelector, { ...seasons, hideTypeOnMobile: true })
1728
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-row items-center justify-between w-full h-8", children: [
1729
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardTitle, { className: "header-xl-medium-card text-base text-text-primary", children: "Team Stats" }),
1730
+ isSupportedSport && seasons && seasons.years.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SeasonSelector, { ...seasons, hideTypeOnMobile: true })
1495
1731
  ] }) }),
1496
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ui_web13.CardContent, { className: "p-0 h-auto sm:h-[220px] flex justify-center", children: body })
1732
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardContent, { className: "p-0 h-auto sm:h-[220px] flex justify-center", children: body })
1497
1733
  ]
1498
1734
  }
1499
1735
  );
1500
1736
  }
1501
1737
 
1502
1738
  // src/team/recent-games-widget.tsx
1503
- var import_react5 = require("react");
1504
- var import_ui_web14 = require("@nukleus-sports/ui-web");
1739
+ var import_react7 = require("react");
1740
+ var import_ui_web16 = require("@nukleus-sports/ui-web");
1505
1741
  var import_icons3 = require("@nukleus-sports/icons");
1506
- var import_jsx_runtime16 = require("react/jsx-runtime");
1742
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1507
1743
  var DATE_FORMAT = new Intl.DateTimeFormat("en-US", {
1508
1744
  weekday: "long",
1509
1745
  month: "long",
@@ -1516,33 +1752,33 @@ var MESSAGES = {
1516
1752
  "games-error": "Couldn't load games. Please try again."
1517
1753
  };
1518
1754
  function ResultText({ result }) {
1519
- if (result.outcome === "none") return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-text-secondary text-14", children: "--" });
1755
+ if (result.outcome === "none") return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-secondary text-14", children: "--" });
1520
1756
  if (result.outcome === "tie") {
1521
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "text-14 font-medium text-text-primary", children: [
1757
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "text-14 font-medium text-text-primary", children: [
1522
1758
  "T ",
1523
1759
  result.detail
1524
1760
  ] });
1525
1761
  }
1526
1762
  const isWin = result.outcome === "win";
1527
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "text-14 font-medium", children: [
1528
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1763
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "text-14 font-medium", children: [
1764
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1529
1765
  "span",
1530
1766
  {
1531
1767
  className: isWin ? "text-primary-color-nuk-text" : "text-semantic-color-status-priority-blocked-hot-copy",
1532
1768
  children: isWin ? "W" : "L"
1533
1769
  }
1534
1770
  ),
1535
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "text-text-primary", children: [
1771
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "text-text-primary", children: [
1536
1772
  " ",
1537
1773
  result.detail
1538
1774
  ] })
1539
1775
  ] });
1540
1776
  }
1541
1777
  function OpponentLogo({ opponent, resolveImageUrl, defaultLogoUrl }) {
1542
- const [failedUrl, setFailedUrl] = (0, import_react5.useState)(null);
1778
+ const [failedUrl, setFailedUrl] = (0, import_react7.useState)(null);
1543
1779
  const { logo } = opponent;
1544
1780
  const resolved = logo ? logo.stored ? resolveImageUrl?.(logo.url) : logo.url : void 0;
1545
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1781
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1546
1782
  "img",
1547
1783
  {
1548
1784
  src: resolved && resolved !== failedUrl ? resolved : defaultLogoUrl,
@@ -1556,13 +1792,13 @@ function OpponentLogo({ opponent, resolveImageUrl, defaultLogoUrl }) {
1556
1792
  );
1557
1793
  }
1558
1794
  function GameItem({ row, resolveImageUrl, defaultLogoUrl }) {
1559
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "border-b border-border last:border-0", children: [
1560
- row.isFirstUpcoming && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "px-2 pt-2 text-12 font-medium uppercase tracking-wide text-text-secondary", children: "Upcoming" }),
1561
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-col p-2 gap-[5px]", children: [
1562
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-14 font-normal text-text-secondary", children: DATE_FORMAT.format(new Date(row.gameDate)) }),
1563
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-3", children: [
1564
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-14 font-normal text-text-secondary shrink-0", children: row.isHome ? "vs " : "@ " }),
1565
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1795
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "border-b border-border last:border-0", children: [
1796
+ row.isFirstUpcoming && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "px-2 pt-2 text-12 font-medium uppercase tracking-wide text-text-secondary", children: "Upcoming" }),
1797
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col p-2 gap-[5px]", children: [
1798
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-14 font-normal text-text-secondary", children: DATE_FORMAT.format(new Date(row.gameDate)) }),
1799
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-3", children: [
1800
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-14 font-normal text-text-secondary shrink-0", children: row.isHome ? "vs " : "@ " }),
1801
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1566
1802
  OpponentLogo,
1567
1803
  {
1568
1804
  opponent: row.opponent,
@@ -1570,18 +1806,18 @@ function GameItem({ row, resolveImageUrl, defaultLogoUrl }) {
1570
1806
  defaultLogoUrl
1571
1807
  }
1572
1808
  ),
1573
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-14.5 font-normal text-text-primary truncate", children: row.opponent.name }),
1574
- row.result && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
1575
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-14 text-text-secondary", children: "-" }),
1576
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ResultText, { result: row.result })
1809
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-14.5 font-normal text-text-primary truncate", children: row.opponent.name }),
1810
+ row.result && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
1811
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-14 text-text-secondary", children: "-" }),
1812
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ResultText, { result: row.result })
1577
1813
  ] })
1578
1814
  ] }),
1579
- row.time && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-14 font-normal text-text-secondary", children: row.time })
1815
+ row.time && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-14 font-normal text-text-secondary", children: row.time })
1580
1816
  ] })
1581
1817
  ] });
1582
1818
  }
1583
1819
  function Message({ children }) {
1584
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "text-text-primary text-14.5 px-1", children });
1820
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "text-text-primary text-14.5 px-1", children });
1585
1821
  }
1586
1822
  function Body({
1587
1823
  status,
@@ -1590,11 +1826,11 @@ function Body({
1590
1826
  defaultLogoUrl
1591
1827
  }) {
1592
1828
  if (status === "loading") {
1593
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "space-y-4 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.IconLoader, {}) });
1829
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4 flex justify-center items-center w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.IconLoader, {}) });
1594
1830
  }
1595
- if (status !== "ready") return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Message, { children: MESSAGES[status] });
1596
- if (rows.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Message, { children: "There are no games scheduled at this time." });
1597
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex flex-col overflow-y-auto overflow-x-hidden gap-1", children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1831
+ if (status !== "ready") return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Message, { children: MESSAGES[status] });
1832
+ if (rows.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Message, { children: "There are no games scheduled at this time." });
1833
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col overflow-y-auto overflow-x-hidden gap-1", children: rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1598
1834
  GameItem,
1599
1835
  {
1600
1836
  row,
@@ -1612,18 +1848,18 @@ function RecentGamesWidget({
1612
1848
  onExpand,
1613
1849
  className
1614
1850
  }) {
1615
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1616
- import_ui_web14.Card,
1851
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1852
+ import_ui_web16.Card,
1617
1853
  {
1618
- className: (0, import_ui_web14.cn)(
1854
+ className: (0, import_ui_web16.cn)(
1619
1855
  "p-4 w-full xl:w-[420px] flex flex-col overflow-hidden border-none gap-3 h-full md:min-h-[612px]",
1620
1856
  className
1621
1857
  ),
1622
1858
  children: [
1623
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_ui_web14.CardHeader, { className: "flex flex-row items-center justify-between space-y-0 p-0", children: [
1624
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.CardTitle, { children: "Recent Games" }),
1625
- onExpand && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1626
- import_ui_web14.Button,
1859
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_ui_web16.CardHeader, { className: "flex flex-row items-center justify-between space-y-0 p-0", children: [
1860
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.CardTitle, { children: "Recent Games" }),
1861
+ onExpand && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1862
+ import_ui_web16.Button,
1627
1863
  {
1628
1864
  type: "button",
1629
1865
  variant: "ghost",
@@ -1631,11 +1867,11 @@ function RecentGamesWidget({
1631
1867
  "aria-label": "View full schedule",
1632
1868
  onClick: onExpand,
1633
1869
  className: "outline-1 background outline-offset-[-1px] outline-[hsl(var(--color-ui-elem-strokes))] outline h-[32px] w-[32px]",
1634
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons3.ArrowUpRightIcon, { className: "text-greys-icons h-5 w-5" })
1870
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_icons3.ArrowUpRightIcon, { className: "text-greys-icons h-5 w-5" })
1635
1871
  }
1636
1872
  )
1637
1873
  ] }),
1638
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_ui_web14.CardContent, { className: "flex-1 flex flex-col overflow-hidden p-0", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1874
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.CardContent, { className: "flex-1 flex flex-col overflow-hidden p-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1639
1875
  Body,
1640
1876
  {
1641
1877
  status,
@@ -1650,10 +1886,10 @@ function RecentGamesWidget({
1650
1886
  }
1651
1887
 
1652
1888
  // src/team/team-stats-table.tsx
1653
- var import_react6 = require("react");
1654
- var import_ui_web15 = require("@nukleus-sports/ui-web");
1655
- var import_core10 = require("@nukleus-sports/core");
1656
- var import_jsx_runtime17 = require("react/jsx-runtime");
1889
+ var import_react8 = require("react");
1890
+ var import_ui_web17 = require("@nukleus-sports/ui-web");
1891
+ var import_core12 = require("@nukleus-sports/core");
1892
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1657
1893
  function stripLeadingSlash(path) {
1658
1894
  return path.startsWith("/") ? path.slice(1) : path;
1659
1895
  }
@@ -1689,10 +1925,10 @@ function formatTeamStatDate(stat) {
1689
1925
  const dateStr = stat.stat_details?.game_details?.date;
1690
1926
  const date = dateStr ? new Date(dateStr) : null;
1691
1927
  if (!date || Number.isNaN(date.getTime())) {
1692
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-text-primary body-text", children: "--" });
1928
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-text-primary body-text", children: "--" });
1693
1929
  }
1694
1930
  const formatted = date.toLocaleDateString("en-US", { month: "short", day: "numeric" });
1695
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "text-13.5 font-normal text-text-primary", children: formatted });
1931
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "text-13.5 font-normal text-text-primary", children: formatted });
1696
1932
  }
1697
1933
  function getTeamStatResult(stat) {
1698
1934
  const gameDetails = stat.stat_details?.game_details;
@@ -1711,9 +1947,9 @@ function getTeamStatResult(stat) {
1711
1947
  const opponentScore = isHome ? awayScore : homeScore;
1712
1948
  const score = `${teamScore}-${opponentScore}${gameDetails.status_alt_details ? ` ${gameDetails.status_alt_details}` : ""}`;
1713
1949
  const colorClass = winLoss === "W" ? "text-primary-color-nuk-text" : winLoss === "L" ? "text-semantic-color-status-priority-blocked-hot-copy" : "text-text-primary";
1714
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-baseline gap-1 leading-tight", children: [
1715
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: (0, import_ui_web15.cn)(colorClass, "body-text"), children: winLoss }),
1716
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-text-primary body-text", children: score })
1950
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-baseline gap-1 leading-tight", children: [
1951
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: (0, import_ui_web17.cn)(colorClass, "body-text"), children: winLoss }),
1952
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-text-primary body-text", children: score })
1717
1953
  ] });
1718
1954
  }
1719
1955
  function StatOpponentCell({
@@ -1722,18 +1958,18 @@ function StatOpponentCell({
1722
1958
  defaultLogoUrl,
1723
1959
  showName
1724
1960
  }) {
1725
- const [failedUrl, setFailedUrl] = (0, import_react6.useState)(null);
1961
+ const [failedUrl, setFailedUrl] = (0, import_react8.useState)(null);
1726
1962
  const gameDetails = stat.stat_details?.game_details;
1727
1963
  const isHome = stat.team_id === gameDetails?.home_team_id;
1728
1964
  const opponentName = isHome ? gameDetails?.away_team_name : gameDetails?.home_team_name;
1729
1965
  const opponentLogoPath = isHome ? gameDetails?.away_team_logo : gameDetails?.home_team_logo;
1730
- if (!opponentName) return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, { children: "--" });
1966
+ if (!opponentName) return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, { children: "--" });
1731
1967
  const prefix = isHome ? "vs" : "@";
1732
1968
  const resolved = opponentLogoPath ? resolveOpponentLogoUrl(stripLeadingSlash(opponentLogoPath)) : null;
1733
1969
  const logoSrc = resolved && resolved !== failedUrl ? resolved : defaultLogoUrl;
1734
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "h-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center h-full", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex max-sm:gap-1 gap-2 items-center font-normal leading-tight text-12", children: [
1735
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-text-primary body-text", children: prefix }),
1736
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1970
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "h-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex items-center h-full", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex max-sm:gap-1 gap-2 items-center font-normal leading-tight text-12", children: [
1971
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-text-primary body-text", children: prefix }),
1972
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1737
1973
  "img",
1738
1974
  {
1739
1975
  src: logoSrc,
@@ -1744,7 +1980,7 @@ function StatOpponentCell({
1744
1980
  }
1745
1981
  }
1746
1982
  ),
1747
- showName && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentName })
1983
+ showName && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentName })
1748
1984
  ] }) }) });
1749
1985
  }
1750
1986
  function buildStatsColumns({
@@ -1758,14 +1994,14 @@ function buildStatsColumns({
1758
1994
  return [
1759
1995
  {
1760
1996
  id: "game_date",
1761
- header: () => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-[50px] shrink-0", children: "Date" }),
1997
+ header: () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "w-[50px] shrink-0", children: "Date" }),
1762
1998
  cell: ({ row }) => formatTeamStatDate(row.original),
1763
1999
  meta: { cellSize: isSm ? "xs" : "xxs", headerClassName: "h-auto" }
1764
2000
  },
1765
2001
  {
1766
2002
  id: "opponent",
1767
- header: () => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: isSm ? "Opponent" : "Opp" }),
1768
- cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2003
+ header: () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { children: isSm ? "Opponent" : "Opp" }),
2004
+ cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1769
2005
  StatOpponentCell,
1770
2006
  {
1771
2007
  stat: row.original,
@@ -1817,33 +2053,33 @@ function StatsBody2({
1817
2053
  isSmallLaptop,
1818
2054
  emptyMessage
1819
2055
  }) {
1820
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
1821
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center gap-2 min-[360px]:gap-3 xl:shrink-0", children: [
1822
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
1823
- showsCategoryPicker && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1824
- import_ui_web15.Select,
2056
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
2057
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 min-[360px]:gap-3 xl:shrink-0", children: [
2058
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3" }),
2059
+ showsCategoryPicker && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2060
+ import_ui_web17.Select,
1825
2061
  {
1826
2062
  value: selectedStatCategory,
1827
2063
  onValueChange: onStatCategoryChange,
1828
2064
  disabled: !seasons.selectedYear || seasons.selectedType === null,
1829
2065
  children: [
1830
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Stat category", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.SelectValue, { placeholder: "Select stat category" }) }),
1831
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1832
- import_ui_web15.SelectContent,
2066
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.SelectTrigger, { variant: "widget", size: "widget", "aria-label": "Stat category", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.SelectValue, { placeholder: "Select stat category" }) }),
2067
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2068
+ import_ui_web17.SelectContent,
1833
2069
  {
1834
2070
  className: "bg-popover border-border z-50 [&_.checkbox]:!flex",
1835
2071
  classNameViewPort: "gap-2",
1836
- children: availableStatCategories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.SelectItem, { value: category, className: "capitalize min-h-8", children: category.charAt(0).toUpperCase() + category.slice(1) }, category))
2072
+ children: availableStatCategories.map((category) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.SelectItem, { value: category, className: "capitalize min-h-8", children: category.charAt(0).toUpperCase() + category.slice(1) }, category))
1837
2073
  }
1838
2074
  )
1839
2075
  ]
1840
2076
  }
1841
2077
  )
1842
2078
  ] }),
1843
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
1844
- isStatTypesError && !hasVisibleStatTypes && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-text-secondary text-13.5", children: "Couldn't load stat categories -- showing limited columns." }),
1845
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1846
- import_ui_web15.BaseTable,
2079
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-col space-y-4 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2080
+ isStatTypesError && !hasVisibleStatTypes && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-text-secondary text-13.5", children: "Couldn't load stat categories -- showing limited columns." }),
2081
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2082
+ import_ui_web17.BaseTable,
1847
2083
  {
1848
2084
  columns,
1849
2085
  data: stats,
@@ -1879,35 +2115,35 @@ function TeamStatsTable({
1879
2115
  isSmallLaptop,
1880
2116
  className
1881
2117
  }) {
1882
- const [requestedStatCategory, setRequestedStatCategory] = (0, import_react6.useState)(null);
2118
+ const [requestedStatCategory, setRequestedStatCategory] = (0, import_react8.useState)(null);
1883
2119
  const availableStatCategories = getAvailableStatCategories(stats);
1884
2120
  const selectedStatCategory = deriveSelectedStatCategory(
1885
2121
  requestedStatCategory,
1886
2122
  availableStatCategories
1887
2123
  );
1888
2124
  if (isTeamError) {
1889
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Card, { className: (0, import_ui_web15.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardContent, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
2125
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Card, { className: (0, import_ui_web17.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.CardContent, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
1890
2126
  }
1891
2127
  if (seasonsLoading || sportId === null) {
1892
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Card, { className: (0, import_ui_web15.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_ui_web15.CardContent, { className: "space-y-4 pt-6", children: [
1893
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row justify-start", children: [
1894
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Skeleton, { className: "h-7 w-[68px] bg-form rounded-[5px]" }),
1895
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Skeleton, { className: "h-7 w-[142px] bg-form rounded-[5px]" }),
1896
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Skeleton, { className: "h-7 w-[102px] bg-form rounded-[5px]" })
2128
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Card, { className: (0, import_ui_web17.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_ui_web17.CardContent, { className: "space-y-4 pt-6", children: [
2129
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row justify-start", children: [
2130
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Skeleton, { className: "h-7 w-[68px] bg-form rounded-[5px]" }),
2131
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Skeleton, { className: "h-7 w-[142px] bg-form rounded-[5px]" }),
2132
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Skeleton, { className: "h-7 w-[102px] bg-form rounded-[5px]" })
1897
2133
  ] }),
1898
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Skeleton, { className: "h-40 w-full bg-form !mt-3" })
2134
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Skeleton, { className: "h-40 w-full bg-form !mt-3" })
1899
2135
  ] }) });
1900
2136
  }
1901
2137
  if (!seasons || seasons.years.length === 0) {
1902
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.Card, { className: (0, import_ui_web15.cn)("border-none", className), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "text-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("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." }) }) }) });
2138
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.Card, { className: (0, import_ui_web17.cn)("border-none", className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "text-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("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." }) }) }) });
1903
2139
  }
1904
- const visibleStatTypes = (0, import_core10.getVisibleTeamStatTypes)(statTypes, sportId);
1905
- const filteredStatTypes = (0, import_core10.getOrderedTeamStatTypesForCategory)(
2140
+ const visibleStatTypes = (0, import_core12.getVisibleTeamStatTypes)(statTypes, sportId);
2141
+ const filteredStatTypes = (0, import_core12.getOrderedTeamStatTypesForCategory)(
1906
2142
  visibleStatTypes,
1907
2143
  sportId,
1908
2144
  selectedStatCategory
1909
2145
  );
1910
- const showsCategoryPicker = availableStatCategories.length > 0 && (0, import_core10.showsTeamStatCategoryPicker)(sportId);
2146
+ const showsCategoryPicker = availableStatCategories.length > 0 && (0, import_core12.showsTeamStatCategoryPicker)(sportId);
1911
2147
  const columns = buildStatsColumns({
1912
2148
  filteredStatTypes,
1913
2149
  selectedStatCategory,
@@ -1917,16 +2153,16 @@ function TeamStatsTable({
1917
2153
  isSmallLaptop
1918
2154
  });
1919
2155
  const emptyMessage = getStatsEmptyMessage(seasons, stats.length);
1920
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
1921
- import_ui_web15.Card,
2156
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2157
+ import_ui_web17.Card,
1922
2158
  {
1923
- className: (0, import_ui_web15.cn)(
2159
+ className: (0, import_ui_web17.cn)(
1924
2160
  "border-none p-4 flex flex-col gap-3 xl:h-full xl:min-h-0 xl:flex-1 xl:overflow-hidden",
1925
2161
  className
1926
2162
  ),
1927
2163
  children: [
1928
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardTitle, { children: "Stats" }) }),
1929
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_ui_web15.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2164
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.CardHeader, { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.CardTitle, { children: "Stats" }) }),
2165
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_ui_web17.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1930
2166
  StatsBody2,
1931
2167
  {
1932
2168
  seasons,
@@ -1951,8 +2187,8 @@ function TeamStatsTable({
1951
2187
  }
1952
2188
 
1953
2189
  // src/team/team-schedule-table.tsx
1954
- var import_ui_web16 = require("@nukleus-sports/ui-web");
1955
- var import_jsx_runtime18 = require("react/jsx-runtime");
2190
+ var import_ui_web18 = require("@nukleus-sports/ui-web");
2191
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1956
2192
  var SPECIAL_LOGO_LEAGUES = ["NFL", "NBA", "NHL", "MLB", "WNBA"];
1957
2193
  var COLLEGE_LEAGUE_IDS = [2, 6, 13];
1958
2194
  var COMPLETED_STATUS_ID = "3";
@@ -2001,12 +2237,12 @@ function showsMlbLeaders(leagueId) {
2001
2237
  }
2002
2238
  function leaderCell(leader, small = false) {
2003
2239
  if (!leader) return "--";
2004
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col leading-tight", children: [
2005
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-primary font-normal truncate", children: leader.displayName }),
2006
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2240
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col leading-tight", children: [
2241
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-primary font-normal truncate", children: leader.displayName }),
2242
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2007
2243
  "span",
2008
2244
  {
2009
- className: (0, import_ui_web16.cn)(
2245
+ className: (0, import_ui_web18.cn)(
2010
2246
  small ? "text-text-secondary text-11" : "text-text-primary body-text",
2011
2247
  "truncate"
2012
2248
  ),
@@ -2023,7 +2259,7 @@ function formatScheduleDate(game) {
2023
2259
  const [year, month, day] = rawDate.split("T")[0].split("-").map(Number);
2024
2260
  return new Date(year, month - 1, day);
2025
2261
  })();
2026
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-primary body-text", children: DATE_FORMAT2.format(date) });
2262
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-primary body-text", children: DATE_FORMAT2.format(date) });
2027
2263
  } catch {
2028
2264
  return "--";
2029
2265
  }
@@ -2041,9 +2277,9 @@ function getScheduleResult(game, teamEspnId) {
2041
2277
  const winLoss = tied ? "T" : own.winner === true ? "W" : "L";
2042
2278
  const score = `${formatScore(own.score)}-${formatScore(other.score)}`;
2043
2279
  const colorClass = winLoss === "W" ? "text-primary-color-nuk-text" : winLoss === "L" ? "text-semantic-color-status-priority-blocked-hot-copy" : "text-text-primary";
2044
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-baseline gap-1 leading-tight", children: [
2045
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: (0, import_ui_web16.cn)(colorClass, "body-text"), children: winLoss }),
2046
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-primary body-text", children: score })
2280
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-baseline gap-1 leading-tight", children: [
2281
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: (0, import_ui_web18.cn)(colorClass, "body-text"), children: winLoss }),
2282
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-primary body-text", children: score })
2047
2283
  ] });
2048
2284
  }
2049
2285
  function getScheduleRecord(game, teamEspnId) {
@@ -2054,7 +2290,7 @@ function getScheduleRecord(game, teamEspnId) {
2054
2290
  function getWinningGoalie(game) {
2055
2291
  const athlete = firstCompetition(game)?.featuredAthletes?.[0]?.athlete;
2056
2292
  if (!athlete?.lastName) return "--";
2057
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col leading-tight", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }) });
2293
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex flex-col leading-tight", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }) });
2058
2294
  }
2059
2295
  function getHockeyTopPlayer(game) {
2060
2296
  const competitors = firstCompetition(game)?.competitors;
@@ -2071,9 +2307,9 @@ function getMlbPitcher(game, pitcherType) {
2071
2307
  const athlete = pitcher?.athlete;
2072
2308
  if (!athlete?.lastName) return "--";
2073
2309
  const stat = pitcherType === "savingPitcher" ? athlete.saves : athlete.record;
2074
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col leading-tight", children: [
2075
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }),
2076
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-secondary text-11 truncate", children: stat || "--" })
2310
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col leading-tight", children: [
2311
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-primary font-normal truncate", children: athlete.lastName }),
2312
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-secondary text-11 truncate", children: stat || "--" })
2077
2313
  ] });
2078
2314
  }
2079
2315
  function OpponentCell({
@@ -2086,15 +2322,15 @@ function OpponentCell({
2086
2322
  showName
2087
2323
  }) {
2088
2324
  const match = findCompetitor(firstCompetition(game)?.competitors, teamEspnId);
2089
- if (!match || leagueId === null || !leagueAbbreviation) return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: "--" });
2325
+ if (!match || leagueId === null || !leagueAbbreviation) return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, { children: "--" });
2090
2326
  const prefix = match.own.homeAway === "home" ? "vs" : "@";
2091
2327
  const opponentTeam = match.other.team;
2092
2328
  const isSpecialLeague = SPECIAL_LOGO_LEAGUES.includes(leagueAbbreviation);
2093
2329
  const identifier = isSpecialLeague ? opponentTeam.abbreviation : opponentTeam.id;
2094
2330
  const folder = COLLEGE_LEAGUE_IDS.includes(leagueId) ? "NCAA" : leagueAbbreviation;
2095
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-1 sm:gap-2 h-full overflow-hidden", children: [
2096
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-primary body-text shrink-0 sm:w-4", children: prefix }),
2097
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2331
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-1 sm:gap-2 h-full overflow-hidden", children: [
2332
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-text-primary body-text shrink-0 sm:w-4", children: prefix }),
2333
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2098
2334
  "img",
2099
2335
  {
2100
2336
  src: resolveLogoUrl(folder, identifier),
@@ -2106,7 +2342,7 @@ function OpponentCell({
2106
2342
  }
2107
2343
  }
2108
2344
  ),
2109
- showName && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentTeam.displayName })
2345
+ showName && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-primary-color-nuk-text body-text line-clamp-2", children: opponentTeam.displayName })
2110
2346
  ] });
2111
2347
  }
2112
2348
  function buildScheduleColumns({
@@ -2122,15 +2358,15 @@ function buildScheduleColumns({
2122
2358
  return [
2123
2359
  {
2124
2360
  id: "game_date",
2125
- header: () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-[50px] shrink-0", children: "Date" }),
2361
+ header: () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "w-[50px] shrink-0", children: "Date" }),
2126
2362
  accessorFn: (row) => row.game_date,
2127
2363
  cell: ({ row }) => formatScheduleDate(row.original),
2128
2364
  meta: { cellSize: isSm ? "xs" : "xxs" }
2129
2365
  },
2130
2366
  {
2131
2367
  id: "opponent",
2132
- header: () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { children: isSm ? "Opponent" : "Opp" }),
2133
- cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2368
+ header: () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { children: isSm ? "Opponent" : "Opp" }),
2369
+ cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2134
2370
  OpponentCell,
2135
2371
  {
2136
2372
  game: row.original,
@@ -2246,15 +2482,15 @@ function ScheduleBody({
2246
2482
  isSmallLaptop
2247
2483
  }) {
2248
2484
  if (seasonsLoading) {
2249
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "text-sm text-text-primary", children: "Loading seasons..." }) });
2485
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex justify-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "text-sm text-text-primary", children: "Loading seasons..." }) });
2250
2486
  }
2251
2487
  if (!seasons || seasons.years.length === 0) {
2252
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "text-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-primary", children: isSeasonsError ? "Couldn't load seasons. Please try again." : "No seasons found" }) });
2488
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "text-center py-8", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-text-primary", children: isSeasonsError ? "Couldn't load seasons. Please try again." : "No seasons found" }) });
2253
2489
  }
2254
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2255
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3 xl:shrink-0" }),
2256
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2257
- import_ui_web16.BaseTable,
2490
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: [
2491
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SeasonSelector, { ...seasons, className: "gap-2 min-[360px]:gap-3 xl:shrink-0" }),
2492
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2493
+ import_ui_web18.BaseTable,
2258
2494
  {
2259
2495
  columns,
2260
2496
  data: games,
@@ -2297,24 +2533,24 @@ function TeamScheduleTable({
2297
2533
  isSmallLaptop
2298
2534
  });
2299
2535
  if (isTeamError) {
2300
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.Card, { className: (0, import_ui_web16.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.CardContent, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
2536
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.Card, { className: (0, import_ui_web18.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.CardContent, { className: "p-4 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-text-secondary", children: "Couldn't load team information. Please try again." }) }) });
2301
2537
  }
2302
2538
  if (leagueId === null) {
2303
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.Card, { className: (0, import_ui_web16.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_ui_web16.CardContent, { className: "p-4 flex justify-center items-center gap-2", children: [
2304
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.IconLoader, {}),
2305
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-secondary", children: "Loading team information..." })
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.Card, { className: (0, import_ui_web18.cn)("border-0", className), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_ui_web18.CardContent, { className: "p-4 flex justify-center items-center gap-2", children: [
2540
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.IconLoader, {}),
2541
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-text-secondary", children: "Loading team information..." })
2306
2542
  ] }) });
2307
2543
  }
2308
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2309
- import_ui_web16.Card,
2544
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2545
+ import_ui_web18.Card,
2310
2546
  {
2311
- className: (0, import_ui_web16.cn)(
2547
+ className: (0, import_ui_web18.cn)(
2312
2548
  "border-none p-4 flex flex-col gap-3 xl:h-full xl:min-h-0 xl:flex-1 xl:overflow-hidden",
2313
2549
  className
2314
2550
  ),
2315
2551
  children: [
2316
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.CardHeader, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.CardTitle, { children: "Schedule" }) }),
2317
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_ui_web16.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2552
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.CardHeader, { className: "p-0 flex flex-row items-center justify-between space-y-0", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.CardTitle, { children: "Schedule" }) }),
2553
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_ui_web18.CardContent, { className: "space-y-0 p-0 flex flex-col gap-3 xl:flex-1 xl:min-h-0 xl:overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2318
2554
  ScheduleBody,
2319
2555
  {
2320
2556
  seasonsLoading,
@@ -2346,6 +2582,8 @@ function TeamScheduleTable({
2346
2582
  TeamFactsWidget,
2347
2583
  TeamHeaderCard,
2348
2584
  TeamInfoCard,
2585
+ TeamPlacesCard,
2586
+ TeamRosterTable,
2349
2587
  TeamScheduleTable,
2350
2588
  TeamSeasonScheduleSummaryPanel,
2351
2589
  TeamSeasonStatsSummaryPanel,