@agg-market/ui 3.0.1 → 4.0.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.
Files changed (41) hide show
  1. package/dist/chart.js +18 -5
  2. package/dist/chart.mjs +2 -2
  3. package/dist/{chunk-KUWTY4EM.mjs → chunk-3W7NBJLU.mjs} +1 -1
  4. package/dist/{chunk-MVJNQN7P.mjs → chunk-GNSPZ53C.mjs} +86 -85
  5. package/dist/{chunk-422MCIXV.mjs → chunk-HOXTJ742.mjs} +15 -11
  6. package/dist/{chunk-FF3QYU26.mjs → chunk-JNH64AKR.mjs} +31 -24
  7. package/dist/{chunk-RKCVOKE3.mjs → chunk-LA3FBBSJ.mjs} +2 -2
  8. package/dist/{chunk-CTVMT3VL.mjs → chunk-LCZKSITC.mjs} +2 -2
  9. package/dist/chunk-M4RJHRFT.mjs +445 -0
  10. package/dist/{chunk-RGHA4PZH.mjs → chunk-MBHTXNHX.mjs} +4 -4
  11. package/dist/{chunk-KSCSYCEF.mjs → chunk-MJHKBCXQ.mjs} +1 -1
  12. package/dist/{chunk-KRQFVMJE.mjs → chunk-OH56VUYK.mjs} +5 -19
  13. package/dist/{chunk-BN5VVHNV.mjs → chunk-OJVTGNIF.mjs} +17 -4
  14. package/dist/{chunk-ZJJA4I3I.mjs → chunk-P2PJBO5C.mjs} +1 -1
  15. package/dist/{chunk-GHB3GOCW.mjs → chunk-QM7CGMFG.mjs} +5 -21
  16. package/dist/event-list-item-details.js +213 -241
  17. package/dist/event-list-item-details.mjs +6 -6
  18. package/dist/event-list-item.js +156 -208
  19. package/dist/event-list-item.mjs +3 -3
  20. package/dist/event-list.js +159 -223
  21. package/dist/event-list.mjs +4 -4
  22. package/dist/event-market-page.js +476 -574
  23. package/dist/event-market-page.mjs +10 -11
  24. package/dist/home-page.js +159 -223
  25. package/dist/home-page.mjs +5 -5
  26. package/dist/index.js +296 -333
  27. package/dist/index.mjs +13 -13
  28. package/dist/market-details.js +323 -415
  29. package/dist/market-details.mjs +6 -7
  30. package/dist/place-order.js +151 -189
  31. package/dist/place-order.mjs +2 -2
  32. package/dist/settlement.js +151 -189
  33. package/dist/settlement.mjs +2 -2
  34. package/dist/skeleton.js +151 -189
  35. package/dist/skeleton.mjs +1 -1
  36. package/dist/styles.css +1 -1
  37. package/dist/switch-button.js +2 -2
  38. package/dist/switch-button.mjs +1 -1
  39. package/dist/tailwind.css +1 -1
  40. package/package.json +2 -2
  41. package/dist/chunk-V52WSZHQ.mjs +0 -482
@@ -1,18 +1,17 @@
1
1
  import {
2
2
  EventMarketPage
3
- } from "./chunk-RGHA4PZH.mjs";
4
- import "./chunk-KUWTY4EM.mjs";
5
- import "./chunk-KSCSYCEF.mjs";
3
+ } from "./chunk-MBHTXNHX.mjs";
4
+ import "./chunk-3W7NBJLU.mjs";
5
+ import "./chunk-MJHKBCXQ.mjs";
6
6
  import "./chunk-OBCHURW5.mjs";
7
- import "./chunk-FF3QYU26.mjs";
8
- import "./chunk-MVJNQN7P.mjs";
9
- import "./chunk-422MCIXV.mjs";
7
+ import "./chunk-JNH64AKR.mjs";
8
+ import "./chunk-GNSPZ53C.mjs";
9
+ import "./chunk-HOXTJ742.mjs";
10
10
  import "./chunk-S3H63TQ5.mjs";
11
- import "./chunk-GHB3GOCW.mjs";
11
+ import "./chunk-QM7CGMFG.mjs";
12
12
  import "./chunk-K6IJ4WBM.mjs";
13
13
  import "./chunk-YJA5VQW6.mjs";
14
- import "./chunk-V52WSZHQ.mjs";
15
- import "./chunk-IGPNIM2B.mjs";
14
+ import "./chunk-M4RJHRFT.mjs";
16
15
  import "./chunk-PORVP72S.mjs";
17
16
  import "./chunk-PZTHM6WG.mjs";
18
17
  import "./chunk-NDG43KGL.mjs";
@@ -21,8 +20,8 @@ import "./chunk-KAGYJ4XT.mjs";
21
20
  import "./chunk-FO263M3V.mjs";
22
21
  import "./chunk-ERGNR6UQ.mjs";
23
22
  import "./chunk-FO2QCB4Z.mjs";
24
- import "./chunk-BN5VVHNV.mjs";
25
- import "./chunk-CTVMT3VL.mjs";
23
+ import "./chunk-OJVTGNIF.mjs";
24
+ import "./chunk-LCZKSITC.mjs";
26
25
  import "./chunk-GJ4U5NCE.mjs";
27
26
  export {
28
27
  EventMarketPage
package/dist/home-page.js CHANGED
@@ -1481,6 +1481,7 @@ var EventListItemSkeletonView = ({
1481
1481
  isStandalone = false
1482
1482
  }) => {
1483
1483
  const labels = (0, import_hooks3.useLabels)();
1484
+ const outcomeTitleWidths = ["w-40", "w-[200px]"];
1484
1485
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1485
1486
  Card,
1486
1487
  {
@@ -1490,35 +1491,23 @@ var EventListItemSkeletonView = ({
1490
1491
  "aria-busy": isStandalone || void 0,
1491
1492
  "aria-hidden": isStandalone ? void 0 : true,
1492
1493
  children: [
1493
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
1494
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-10 w-10 rounded-agg-lg" }),
1495
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1496
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm" }),
1497
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[68%] rounded-agg-sm" })
1498
- ] })
1494
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1495
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1496
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1499
1497
  ] }),
1500
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1501
- "div",
1502
- {
1503
- className: "grid w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3",
1504
- children: [
1505
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1506
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1507
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[101px] rounded-agg-full" })
1508
- ]
1509
- },
1510
- index
1511
- )) }),
1512
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-2 text-agg-muted-foreground", children: [
1513
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
1514
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" }),
1498
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: outcomeTitleWidths.map((outcomeTitleWidth, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex w-full items-center justify-between gap-3", children: [
1499
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: cn("h-5 rounded-agg-sm", outcomeTitleWidth) }),
1500
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1501
+ ] }, index)) }),
1502
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-5 text-agg-muted-foreground", children: [
1503
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
1504
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" }),
1515
1505
  /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-1", children: [
1516
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1517
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1518
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" })
1506
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" }),
1507
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" })
1519
1508
  ] })
1520
1509
  ] }),
1521
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" })
1510
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1522
1511
  ] })
1523
1512
  ]
1524
1513
  }
@@ -1538,13 +1527,9 @@ var EventListSkeletonView = ({ className, ariaLabel }) => {
1538
1527
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
1539
1528
  "aria-busy": true,
1540
1529
  children: [
1541
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("header", { className: "flex w-full flex-col items-start justify-between gap-2 md:flex-row md:flex-nowrap md:items-center md:gap-4", children: [
1542
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-40 rounded-agg-sm" }),
1543
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex max-w-full gap-2", children: [
1544
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1545
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1546
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-24 rounded-agg-full" })
1547
- ] })
1530
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("header", { className: "flex w-full flex-col items-start justify-between gap-3 md:flex-row md:flex-nowrap md:items-center md:gap-5", children: [
1531
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-[120px] rounded-agg-md" }),
1532
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-8 w-full rounded-agg-md md:w-[400px]" })
1548
1533
  ] }),
1549
1534
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "grid grid-cols-1 gap-5 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1550
1535
  EventListItemSkeletonView,
@@ -1581,30 +1566,26 @@ var EventListItemDetailsSkeletonView = ({
1581
1566
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
1582
1567
  "aria-busy": true,
1583
1568
  children: [
1584
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full items-start gap-3 md:gap-4", children: [
1585
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10 rounded-agg-lg md:size-[60px]" }),
1586
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1587
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm md:h-7 md:w-[55%]" }),
1588
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1589
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1590
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1591
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" })
1592
- ] })
1593
- ] })
1569
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1570
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1571
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1594
1572
  ] }),
1595
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-4", children: [
1596
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-10 w-full rounded-agg-full md:w-[220px]" }),
1597
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1598
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1599
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1600
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1601
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" })
1573
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-4 md:gap-6", children: [
1574
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
1575
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex max-w-full gap-2 overflow-hidden", children: [
1576
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1577
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1578
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1579
+ ] }),
1580
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-full max-w-[221px] rounded-agg-full md:w-[221px]" })
1581
+ ] }),
1582
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1583
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-[220px] w-full rounded-agg-xl md:h-[240px]" }),
1584
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
1585
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[59px] rounded-agg-sm" }),
1586
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1587
+ ] })
1602
1588
  ] })
1603
- ] }),
1604
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "h-[300px] w-full rounded-agg-xl", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-full w-full rounded-agg-xl" }) }),
1605
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
1606
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1607
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1608
1589
  ] })
1609
1590
  ]
1610
1591
  }
@@ -1620,6 +1601,77 @@ var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg bord
1620
1601
 
1621
1602
  // src/primitives/skeleton/views/market-details-skeleton-view.tsx
1622
1603
  var import_jsx_runtime48 = require("react/jsx-runtime");
1604
+ var orderBookAskBarWidths = [
1605
+ "w-[52px] md:w-[240px]",
1606
+ "w-[48px] md:w-[200px]",
1607
+ "w-[40px] md:w-[120px]",
1608
+ "w-[36px] md:w-[60px]"
1609
+ ];
1610
+ var orderBookBidBarWidths = [
1611
+ "w-[36px] md:w-[60px]",
1612
+ "w-[40px] md:w-[120px]",
1613
+ "w-[48px] md:w-[200px]",
1614
+ "w-[52px] md:w-[240px]"
1615
+ ];
1616
+ var MarketDetailsHeaderSkeleton = () => {
1617
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-3 px-4 py-3 md:px-5", children: [
1618
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:min-w-52 md:gap-4", children: [
1619
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1620
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1621
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-[132px] rounded-agg-sm" }),
1622
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-[141px] rounded-agg-sm" })
1623
+ ] })
1624
+ ] }),
1625
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[60px] rounded-agg-md" }),
1626
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full gap-2 md:w-auto", children: [
1627
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[135px]" }),
1628
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[131px]" })
1629
+ ] })
1630
+ ] });
1631
+ };
1632
+ var MarketDetailsTabsSkeleton = () => {
1633
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-14 items-end px-4 md:px-5", children: [
1634
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col items-end justify-end rounded-t-agg-lg", children: [
1635
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }) }),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1637
+ ] }),
1638
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col justify-center", children: [
1639
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-12 rounded-agg-sm" }) }),
1640
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-[3px] w-full" })
1641
+ ] })
1642
+ ] });
1643
+ };
1644
+ var MarketDetailsOrderBookRows = ({
1645
+ side,
1646
+ barWidths
1647
+ }) => {
1648
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-col gap-2", children: barWidths.map((barWidthClassName, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
1649
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2 md:grid-cols-[88px_1fr_1fr_minmax(120px,220px)] md:gap-6", children: [
1650
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
1651
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1653
+ ] }),
1654
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1655
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1656
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: cn("h-2 rounded-agg-full", barWidthClassName) }) })
1657
+ ] }),
1658
+ index < barWidths.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
1659
+ ] }, `${side}-row-${index}`)) });
1660
+ };
1661
+ var MarketDetailsOderbookSkeleton = ({
1662
+ className
1663
+ }) => {
1664
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col gap-5", className), children: [
1665
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
1666
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1667
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "ask", barWidths: orderBookAskBarWidths })
1668
+ ] }),
1669
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
1670
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1671
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "bid", barWidths: orderBookBidBarWidths })
1672
+ ] })
1673
+ ] });
1674
+ };
1623
1675
  var MarketDetailsSkeletonView = ({
1624
1676
  className,
1625
1677
  ariaLabel,
@@ -1634,60 +1686,12 @@ var MarketDetailsSkeletonView = ({
1634
1686
  "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
1635
1687
  "aria-busy": true,
1636
1688
  children: [
1637
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3 p-4 md:px-5 md:py-4", children: [
1638
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1639
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:gap-4", children: [
1640
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1641
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1642
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-40 rounded-agg-sm" }),
1643
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1644
- ] })
1645
- ] }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-8 w-16 rounded-agg-sm" })
1647
- ] }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex gap-2", children: [
1649
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" }),
1650
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" })
1651
- ] })
1652
- ] }),
1689
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsHeaderSkeleton, {}),
1653
1690
  isDetailed ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
1654
1691
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1655
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex h-14 items-end", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-full w-full rounded-none" }) }),
1692
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsTabsSkeleton, {}),
1656
1693
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1657
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-4 p-5", children: [
1658
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3", children: [
1659
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1660
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1661
- "div",
1662
- {
1663
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1664
- children: [
1665
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1666
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1667
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1668
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1669
- ]
1670
- },
1671
- `ask-${index}`
1672
- ))
1673
- ] }),
1674
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3", children: [
1675
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1676
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1677
- "div",
1678
- {
1679
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1680
- children: [
1681
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1682
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1683
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1684
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1685
- ]
1686
- },
1687
- `bid-${index}`
1688
- ))
1689
- ] })
1690
- ] })
1694
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOderbookSkeleton, { className: "p-5" })
1691
1695
  ] }) : null
1692
1696
  ]
1693
1697
  }
@@ -1698,65 +1702,46 @@ MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
1698
1702
  // src/primitives/skeleton/views/place-order-skeleton-view.tsx
1699
1703
  var import_jsx_runtime49 = require("react/jsx-runtime");
1700
1704
  var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
1705
+ var TabsSkeletonBar = () => {
1706
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full items-end border-b border-agg-border", children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col rounded-t-agg-lg", children: [
1708
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "px-5 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-10 rounded-agg-sm" }) }),
1709
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1710
+ ] }),
1711
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col", children: [
1712
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "px-5 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-10 rounded-agg-sm" }) }),
1713
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-[3px] w-full" })
1714
+ ] })
1715
+ ] });
1716
+ };
1701
1717
  var ContentBody = () => {
1702
1718
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn("flex flex-col gap-6 p-5"), children: [
1703
1719
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1704
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
1705
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
1706
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-12 shrink-0 rounded-agg-lg" }),
1707
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1708
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[92%] rounded-agg-sm" }),
1709
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[80%] rounded-agg-sm" })
1710
- ] })
1711
- ] }),
1712
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-6 rounded-agg-sm" })
1720
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
1721
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-12 shrink-0 rounded-agg-lg" }),
1722
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1723
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[92%] max-w-[240px] rounded-agg-sm" }),
1724
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[64%] max-w-[160px] rounded-agg-sm" })
1725
+ ] })
1713
1726
  ] }),
1714
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-28 rounded-agg-sm" })
1727
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-[92px] rounded-agg-sm" }),
1728
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TabsSkeletonBar, {})
1715
1729
  ] }),
1716
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex h-11 items-end border-b border-agg-separator", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-8", children: [
1717
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1718
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" }),
1719
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-12 rounded-t-agg-sm" })
1720
- ] }),
1721
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1722
- ] }) }),
1723
1730
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-4", children: [
1724
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex gap-2", children: [
1731
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full gap-2", children: [
1725
1732
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" }),
1726
1733
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" })
1727
1734
  ] }),
1728
1735
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1729
1736
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1730
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1731
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1737
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[63px] rounded-agg-sm" }),
1738
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[118px] rounded-agg-sm" })
1732
1739
  ] }),
1733
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-28 rounded-agg-sm" })
1740
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: cn("text-agg-3xl font-agg-bold leading-agg-9 text-agg-separator"), children: "$0" })
1734
1741
  ] })
1735
1742
  ] }),
1736
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1737
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "rounded-agg-lg border border-agg-trade-highlight-border bg-agg-trade-highlight-surface p-3", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3", children: [
1738
- [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3", children: [
1739
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1740
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2", children: [
1741
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1742
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" })
1743
- ] }),
1744
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1745
- ] }),
1746
- index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-px w-full bg-agg-trade-highlight-border" }) : null
1747
- ] }, `place-order-route-${index}`)),
1748
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "mx-auto h-5 w-40 rounded-agg-sm" })
1749
- ] }) }),
1750
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" })
1751
- ] }),
1752
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1753
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1754
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1755
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-24 rounded-agg-sm" })
1756
- ] }),
1757
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-36 rounded-agg-sm" })
1758
- ] }),
1759
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[88%] self-center rounded-agg-sm" })
1743
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }),
1744
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[240px] self-center rounded-agg-sm" })
1760
1745
  ] });
1761
1746
  };
1762
1747
  var PlaceOrderSkeletonView = ({
@@ -1770,19 +1755,7 @@ var PlaceOrderSkeletonView = ({
1770
1755
  role: "status",
1771
1756
  "aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
1772
1757
  "aria-busy": true,
1773
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1774
- Card,
1775
- {
1776
- className: cn(
1777
- placeOrderCardClassName,
1778
- "w-full max-w-[400px] rounded-t-agg-xl rounded-b-none border-b-0"
1779
- ),
1780
- children: [
1781
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ContentBody, {}),
1782
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "border-t border-agg-separator bg-agg-secondary p-4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }) })
1783
- ]
1784
- }
1785
- ) })
1758
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card, { className: cn(placeOrderCardClassName, "w-full"), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ContentBody, {}) }) })
1786
1759
  }
1787
1760
  );
1788
1761
  };
@@ -1808,38 +1781,27 @@ var SettlementSkeletonView = ({
1808
1781
  "aria-label": ariaLabel != null ? ariaLabel : labels.trading.settlementLoading,
1809
1782
  "aria-busy": true,
1810
1783
  children: [
1811
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-1 md:flex-row md:items-center md:justify-between md:gap-4", children: [
1812
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" }),
1813
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-80 rounded-agg-sm" })
1784
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full items-center justify-between gap-4", children: [
1785
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[81px] rounded-agg-sm" }),
1786
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-[240px] rounded-agg-sm" })
1814
1787
  ] }),
1815
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1816
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-52 rounded-agg-sm" }),
1788
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1789
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[200px] rounded-agg-sm" }),
1817
1790
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1818
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[88%] rounded-agg-sm" }),
1819
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[84%] rounded-agg-sm" }),
1820
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[80%] rounded-agg-sm" }),
1821
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[74%] rounded-agg-sm" })
1791
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[320px] rounded-agg-sm" }),
1792
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[280px] rounded-agg-sm" })
1822
1793
  ] })
1823
1794
  ] }),
1824
1795
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1825
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-3", children: [
1826
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1827
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1828
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1829
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1831
- ] }),
1832
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2 pl-6", children: [
1833
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full rounded-agg-sm" }),
1834
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[92%] rounded-agg-sm" }),
1835
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[34%] rounded-agg-sm" })
1836
- ] })
1796
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1797
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1798
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1799
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" })
1837
1800
  ] }),
1838
- [0, 1, 2].map((index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1839
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1840
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-20 rounded-agg-sm" }),
1841
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1842
- ] }, `settlement-venue-${index}`))
1801
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1802
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1803
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1804
+ ] })
1843
1805
  ] })
1844
1806
  ]
1845
1807
  }
@@ -2922,27 +2884,14 @@ Badge.displayName = "Badge";
2922
2884
 
2923
2885
  // src/events/item/event-list-item.utils.ts
2924
2886
  var resolveEventListItemEvent = (fetchedEvent) => {
2925
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2926
2887
  if (!fetchedEvent)
2927
2888
  return void 0;
2928
- const fallbackVenueEvent = fetchedEvent.venueEvents[0];
2929
- if (!fallbackVenueEvent)
2930
- return void 0;
2931
2889
  const mergedVenueMarkets = fetchedEvent.markets.flatMap(
2932
- (venueEvent) => venueEvent.venueMarkets
2890
+ (market) => market.venueMarkets
2933
2891
  );
2934
- const venueMarkets = mergedVenueMarkets.length > 0 ? mergedVenueMarkets : [];
2935
- if ((venueMarkets == null ? void 0 : venueMarkets.length) === 0)
2892
+ if (mergedVenueMarkets.length === 0)
2936
2893
  return void 0;
2937
- return __spreadProps(__spreadValues({}, fetchedEvent), {
2938
- id: fetchedEvent.id,
2939
- title: fetchedEvent.title || fallbackVenueEvent.title,
2940
- description: (_b = (_a = fetchedEvent.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
2941
- volume: (_d = (_c = fetchedEvent.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
2942
- startDate: (_f = (_e = fetchedEvent.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
2943
- endDate: (_h = (_g = fetchedEvent.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
2944
- creationDate: (_j = (_i = fetchedEvent.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
2945
- });
2894
+ return fetchedEvent;
2946
2895
  };
2947
2896
  var normalizeProbability = (value) => {
2948
2897
  if (typeof value !== "number" || !Number.isFinite(value))
@@ -3043,15 +2992,14 @@ var resolveTileTitle = (event, primaryVenueMarket, titleOverride) => {
3043
2992
  return event.title;
3044
2993
  };
3045
2994
  var resolveTileImage = (event, primaryVenueMarket, imageOverride) => {
3046
- var _a, _b, _c, _d, _e, _f;
3047
2995
  if (typeof imageOverride === "string" && imageOverride.trim()) {
3048
2996
  return imageOverride;
3049
2997
  }
3050
2998
  if (typeof (primaryVenueMarket == null ? void 0 : primaryVenueMarket.image) === "string" && primaryVenueMarket.image.trim()) {
3051
2999
  return primaryVenueMarket.image;
3052
3000
  }
3053
- if (typeof ((_b = (_a = event.venueEvents) == null ? void 0 : _a[0]) == null ? void 0 : _b.image) === "string" && ((_d = (_c = event.venueEvents) == null ? void 0 : _c[0]) == null ? void 0 : _d.image.trim())) {
3054
- return (_f = (_e = event.venueEvents) == null ? void 0 : _e[0]) == null ? void 0 : _f.image;
3001
+ if (typeof event.image === "string" && event.image.trim()) {
3002
+ return event.image;
3055
3003
  }
3056
3004
  return void 0;
3057
3005
  };
@@ -3366,22 +3314,10 @@ var getDefaultEventListTabs = (labels) => {
3366
3314
 
3367
3315
  // src/events/list/event-list.utils.ts
3368
3316
  var mapEventToEventListItemEvent = (event) => {
3369
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
3370
- const fallbackVenueEvent = event.venueEvents[0];
3371
- if (!fallbackVenueEvent)
3372
- return null;
3373
3317
  const mergedVenueMarkets = event.markets.flatMap((m) => m.venueMarkets);
3374
- if ((mergedVenueMarkets == null ? void 0 : mergedVenueMarkets.length) === 0)
3318
+ if (mergedVenueMarkets.length === 0)
3375
3319
  return null;
3376
- return __spreadProps(__spreadValues({}, event), {
3377
- id: event.id,
3378
- title: event.title || fallbackVenueEvent.title,
3379
- description: (_b = (_a = event.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
3380
- volume: (_d = (_c = event.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
3381
- startDate: (_f = (_e = event.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
3382
- endDate: (_h = (_g = event.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
3383
- creationDate: (_j = (_i = event.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
3384
- });
3320
+ return event;
3385
3321
  };
3386
3322
  var filterEventsByTabValue = (events, _tabValue) => {
3387
3323
  return events;
@@ -3457,7 +3393,7 @@ var EventList = ({
3457
3393
  const [activeTabValue, setActiveTabValue] = (0, import_react4.useState)(
3458
3394
  (_b = (_a = defaultEventListTabs[0]) == null ? void 0 : _a.value) != null ? _b : "matched"
3459
3395
  );
3460
- const [shouldUseSelectOverflow, setShouldUseSelectOverflow] = (0, import_react4.useState)(false);
3396
+ const [_shouldUseSelectOverflow, setShouldUseSelectOverflow] = (0, import_react4.useState)(false);
3461
3397
  const activeTab = (0, import_react4.useMemo)(() => {
3462
3398
  return defaultEventListTabs.find((tab) => tab.value === activeTabValue);
3463
3399
  }, [activeTabValue]);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  HomePage
3
- } from "./chunk-ZJJA4I3I.mjs";
4
- import "./chunk-KRQFVMJE.mjs";
5
- import "./chunk-RKCVOKE3.mjs";
3
+ } from "./chunk-P2PJBO5C.mjs";
4
+ import "./chunk-OH56VUYK.mjs";
5
+ import "./chunk-LA3FBBSJ.mjs";
6
6
  import "./chunk-S3H63TQ5.mjs";
7
- import "./chunk-GHB3GOCW.mjs";
7
+ import "./chunk-QM7CGMFG.mjs";
8
8
  import "./chunk-K6IJ4WBM.mjs";
9
9
  import "./chunk-YJA5VQW6.mjs";
10
- import "./chunk-V52WSZHQ.mjs";
10
+ import "./chunk-M4RJHRFT.mjs";
11
11
  import "./chunk-PORVP72S.mjs";
12
12
  import "./chunk-PZTHM6WG.mjs";
13
13
  import "./chunk-NDG43KGL.mjs";