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