@agg-market/ui 3.0.0 → 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 (85) hide show
  1. package/dist/chart.js +18 -5
  2. package/dist/chart.mjs +2 -2
  3. package/dist/{chunk-LK5D3ZTK.mjs → chunk-3QLOUBDJ.mjs} +1 -1
  4. package/dist/{chunk-4KMFDCAH.mjs → chunk-3W7NBJLU.mjs} +2 -2
  5. package/dist/{chunk-KCPDVBIZ.mjs → chunk-4S3I6X7F.mjs} +14 -13
  6. package/dist/{chunk-OA2IZ3VW.mjs → chunk-5ADMXO3Y.mjs} +1 -1
  7. package/dist/{chunk-7NISYVSJ.mjs → chunk-6JG6I5AY.mjs} +1 -1
  8. package/dist/{chunk-TA7LKYKP.mjs → chunk-DCORNTCY.mjs} +1 -1
  9. package/dist/{chunk-QYZKC7KG.mjs → chunk-GNSPZ53C.mjs} +87 -86
  10. package/dist/{chunk-422MCIXV.mjs → chunk-HOXTJ742.mjs} +15 -11
  11. package/dist/{chunk-KFOATMAE.mjs → chunk-JNH64AKR.mjs} +32 -25
  12. package/dist/{chunk-DL7STJQ5.mjs → chunk-LA3FBBSJ.mjs} +3 -3
  13. package/dist/{chunk-CTVMT3VL.mjs → chunk-LCZKSITC.mjs} +2 -2
  14. package/dist/chunk-M4RJHRFT.mjs +445 -0
  15. package/dist/{chunk-D5FTFSKL.mjs → chunk-MBHTXNHX.mjs} +4 -4
  16. package/dist/{chunk-O46OFVH6.mjs → chunk-MJHKBCXQ.mjs} +2 -2
  17. package/dist/{chunk-2MJY6RVY.mjs → chunk-NH2G3POM.mjs} +1 -1
  18. package/dist/{chunk-BEDUFOIG.mjs → chunk-OH56VUYK.mjs} +6 -20
  19. package/dist/{chunk-BN5VVHNV.mjs → chunk-OJVTGNIF.mjs} +17 -4
  20. package/dist/{chunk-6425RRBI.mjs → chunk-P2PJBO5C.mjs} +1 -1
  21. package/dist/{chunk-D7JTOGYP.mjs → chunk-PORVP72S.mjs} +22 -2
  22. package/dist/{chunk-5GDNWQZS.mjs → chunk-QLMVKLNJ.mjs} +1 -1
  23. package/dist/{chunk-GHB3GOCW.mjs → chunk-QM7CGMFG.mjs} +5 -21
  24. package/dist/connect-button.js +22 -2
  25. package/dist/connect-button.mjs +2 -2
  26. package/dist/deposit-modal.js +22 -2
  27. package/dist/deposit-modal.mjs +2 -2
  28. package/dist/event-list-item-details.js +235 -243
  29. package/dist/event-list-item-details.mjs +7 -7
  30. package/dist/event-list-item.js +178 -210
  31. package/dist/event-list-item.mjs +4 -4
  32. package/dist/event-list.js +181 -225
  33. package/dist/event-list.mjs +5 -5
  34. package/dist/event-market-page.d.mts +1 -1
  35. package/dist/event-market-page.d.ts +1 -1
  36. package/dist/event-market-page.js +498 -576
  37. package/dist/event-market-page.mjs +11 -12
  38. package/dist/home-page.js +181 -225
  39. package/dist/home-page.mjs +6 -6
  40. package/dist/index.d.mts +3 -3
  41. package/dist/index.d.ts +3 -3
  42. package/dist/index.js +331 -347
  43. package/dist/index.mjs +21 -21
  44. package/dist/market-details.d.mts +1 -1
  45. package/dist/market-details.d.ts +1 -1
  46. package/dist/market-details.js +345 -417
  47. package/dist/market-details.mjs +7 -8
  48. package/dist/onboarding-modal.js +35 -14
  49. package/dist/onboarding-modal.mjs +2 -2
  50. package/dist/place-order.d.mts +1 -1
  51. package/dist/place-order.d.ts +1 -1
  52. package/dist/place-order.js +173 -191
  53. package/dist/place-order.mjs +3 -3
  54. package/dist/profile-modal.js +22 -2
  55. package/dist/profile-modal.mjs +2 -2
  56. package/dist/search.d.mts +1 -1
  57. package/dist/search.d.ts +1 -1
  58. package/dist/search.js +22 -2
  59. package/dist/search.mjs +2 -2
  60. package/dist/settlement.d.mts +1 -1
  61. package/dist/settlement.d.ts +1 -1
  62. package/dist/settlement.js +173 -191
  63. package/dist/settlement.mjs +3 -3
  64. package/dist/skeleton.js +151 -189
  65. package/dist/skeleton.mjs +1 -1
  66. package/dist/styles.css +1 -1
  67. package/dist/switch-button.js +2 -2
  68. package/dist/switch-button.mjs +1 -1
  69. package/dist/tailwind.css +1 -1
  70. package/dist/user-profile-page.d.mts +1 -1
  71. package/dist/user-profile-page.d.ts +1 -1
  72. package/dist/user-profile-page.js +22 -2
  73. package/dist/user-profile-page.mjs +2 -2
  74. package/dist/venue-logo.d.mts +3 -2
  75. package/dist/venue-logo.d.ts +3 -2
  76. package/dist/venue-logo.js +22 -2
  77. package/dist/venue-logo.mjs +1 -1
  78. package/dist/{venue-logo.types-HRf1yBLD.d.mts → venue-logo.types-CGUc22ly.d.mts} +3 -1
  79. package/dist/{venue-logo.types-D8Cu2rAm.d.ts → venue-logo.types-Dqr39S1-.d.ts} +3 -1
  80. package/dist/withdraw-modal.js +22 -2
  81. package/dist/withdraw-modal.mjs +2 -2
  82. package/package.json +2 -2
  83. package/dist/chunk-V52WSZHQ.mjs +0 -482
  84. package/dist/{types-JBf1DZlH.d.ts → types-DkGlbmXq.d.mts} +2 -2
  85. package/dist/{types-JBf1DZlH.d.mts → types-DkGlbmXq.d.ts} +2 -2
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  EventListItemDetails
3
- } from "./chunk-KFOATMAE.mjs";
4
- import "./chunk-422MCIXV.mjs";
5
- import "./chunk-GHB3GOCW.mjs";
3
+ } from "./chunk-JNH64AKR.mjs";
4
+ import "./chunk-HOXTJ742.mjs";
5
+ import "./chunk-QM7CGMFG.mjs";
6
6
  import "./chunk-K6IJ4WBM.mjs";
7
- import "./chunk-V52WSZHQ.mjs";
8
- import "./chunk-D7JTOGYP.mjs";
7
+ import "./chunk-M4RJHRFT.mjs";
8
+ import "./chunk-PORVP72S.mjs";
9
9
  import "./chunk-BNDFQPHF.mjs";
10
10
  import "./chunk-KAGYJ4XT.mjs";
11
11
  import "./chunk-FO263M3V.mjs";
12
12
  import "./chunk-ERGNR6UQ.mjs";
13
13
  import "./chunk-FO2QCB4Z.mjs";
14
- import "./chunk-BN5VVHNV.mjs";
15
- import "./chunk-CTVMT3VL.mjs";
14
+ import "./chunk-OJVTGNIF.mjs";
15
+ import "./chunk-LCZKSITC.mjs";
16
16
  import "./chunk-GJ4U5NCE.mjs";
17
17
  export {
18
18
  EventListItemDetails
@@ -1530,6 +1530,7 @@ var EventListItemSkeletonView = ({
1530
1530
  isStandalone = false
1531
1531
  }) => {
1532
1532
  const labels = (0, import_hooks4.useLabels)();
1533
+ const outcomeTitleWidths = ["w-40", "w-[200px]"];
1533
1534
  return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
1534
1535
  Card,
1535
1536
  {
@@ -1539,35 +1540,23 @@ var EventListItemSkeletonView = ({
1539
1540
  "aria-busy": isStandalone || void 0,
1540
1541
  "aria-hidden": isStandalone ? void 0 : true,
1541
1542
  children: [
1542
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
1543
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-10 rounded-agg-lg" }),
1544
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1545
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm" }),
1546
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-5 w-[68%] rounded-agg-sm" })
1547
- ] })
1543
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1544
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1545
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1548
1546
  ] }),
1549
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col gap-3", children: [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
1550
- "div",
1551
- {
1552
- className: "grid w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3",
1553
- children: [
1554
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1555
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1556
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-9 w-[101px] rounded-agg-full" })
1557
- ]
1558
- },
1559
- index
1560
- )) }),
1561
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center justify-between gap-2 text-agg-muted-foreground", children: [
1562
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-2", children: [
1563
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" }),
1547
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-col gap-3", children: outcomeTitleWidths.map((outcomeTitleWidth, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex w-full items-center justify-between gap-3", children: [
1548
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: cn("h-5 rounded-agg-sm", outcomeTitleWidth) }),
1549
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1550
+ ] }, index)) }),
1551
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center justify-between gap-5 text-agg-muted-foreground", children: [
1552
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
1553
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" }),
1564
1554
  /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-1", children: [
1565
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1566
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1567
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" })
1555
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" }),
1556
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" })
1568
1557
  ] })
1569
1558
  ] }),
1570
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" })
1559
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1571
1560
  ] })
1572
1561
  ]
1573
1562
  }
@@ -1587,13 +1576,9 @@ var EventListSkeletonView = ({ className, ariaLabel }) => {
1587
1576
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
1588
1577
  "aria-busy": true,
1589
1578
  children: [
1590
- /* @__PURE__ */ (0, import_jsx_runtime47.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: [
1591
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-7 w-40 rounded-agg-sm" }),
1592
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex max-w-full gap-2", children: [
1593
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1594
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1595
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-10 w-24 rounded-agg-full" })
1596
- ] })
1579
+ /* @__PURE__ */ (0, import_jsx_runtime47.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: [
1580
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-7 w-[120px] rounded-agg-md" }),
1581
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-full rounded-agg-md md:w-[400px]" })
1597
1582
  ] }),
1598
1583
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "grid grid-cols-1 gap-5 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1599
1584
  EventListItemSkeletonView,
@@ -1630,30 +1615,26 @@ var EventListItemDetailsSkeletonView = ({
1630
1615
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
1631
1616
  "aria-busy": true,
1632
1617
  children: [
1633
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full items-start gap-3 md:gap-4", children: [
1634
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-10 rounded-agg-lg md:size-[60px]" }),
1635
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1636
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm md:h-7 md:w-[55%]" }),
1637
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1638
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1639
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1640
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" })
1641
- ] })
1642
- ] })
1618
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1619
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1620
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1643
1621
  ] }),
1644
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-4", children: [
1645
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 w-full rounded-agg-full md:w-[220px]" }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1647
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1649
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1650
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" })
1622
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full flex-col gap-4 md:gap-6", children: [
1623
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
1624
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex max-w-full gap-2 overflow-hidden", children: [
1625
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1626
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1627
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1628
+ ] }),
1629
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full max-w-[221px] rounded-agg-full md:w-[221px]" })
1630
+ ] }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1632
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-[220px] w-full rounded-agg-xl md:h-[240px]" }),
1633
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between", children: [
1634
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-[59px] rounded-agg-sm" }),
1635
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1636
+ ] })
1651
1637
  ] })
1652
- ] }),
1653
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-[300px] w-full rounded-agg-xl", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-full w-full rounded-agg-xl" }) }),
1654
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between", children: [
1655
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1656
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1657
1638
  ] })
1658
1639
  ]
1659
1640
  }
@@ -1669,6 +1650,77 @@ var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg bord
1669
1650
 
1670
1651
  // src/primitives/skeleton/views/market-details-skeleton-view.tsx
1671
1652
  var import_jsx_runtime49 = require("react/jsx-runtime");
1653
+ var orderBookAskBarWidths = [
1654
+ "w-[52px] md:w-[240px]",
1655
+ "w-[48px] md:w-[200px]",
1656
+ "w-[40px] md:w-[120px]",
1657
+ "w-[36px] md:w-[60px]"
1658
+ ];
1659
+ var orderBookBidBarWidths = [
1660
+ "w-[36px] md:w-[60px]",
1661
+ "w-[40px] md:w-[120px]",
1662
+ "w-[48px] md:w-[200px]",
1663
+ "w-[52px] md:w-[240px]"
1664
+ ];
1665
+ var MarketDetailsHeaderSkeleton = () => {
1666
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-3 px-4 py-3 md:px-5", children: [
1667
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:min-w-52 md:gap-4", children: [
1668
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1669
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1670
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-[132px] rounded-agg-sm" }),
1671
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[141px] rounded-agg-sm" })
1672
+ ] })
1673
+ ] }),
1674
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-[60px] rounded-agg-md" }),
1675
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full gap-2 md:w-auto", children: [
1676
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[135px]" }),
1677
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[131px]" })
1678
+ ] })
1679
+ ] });
1680
+ };
1681
+ var MarketDetailsTabsSkeleton = () => {
1682
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex h-14 items-end px-4 md:px-5", children: [
1683
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex h-full flex-col items-end justify-end rounded-t-agg-lg", children: [
1684
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }) }),
1685
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1686
+ ] }),
1687
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex h-full flex-col justify-center", children: [
1688
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "px-4 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-12 rounded-agg-sm" }) }),
1689
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-[3px] w-full" })
1690
+ ] })
1691
+ ] });
1692
+ };
1693
+ var MarketDetailsOrderBookRows = ({
1694
+ side,
1695
+ barWidths
1696
+ }) => {
1697
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex flex-col gap-2", children: barWidths.map((barWidthClassName, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1698
+ /* @__PURE__ */ (0, import_jsx_runtime49.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: [
1699
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
1700
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1701
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1702
+ ] }),
1703
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1704
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1705
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: cn("h-2 rounded-agg-full", barWidthClassName) }) })
1706
+ ] }),
1707
+ index < barWidths.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
1708
+ ] }, `${side}-row-${index}`)) });
1709
+ };
1710
+ var MarketDetailsOderbookSkeleton = ({
1711
+ className
1712
+ }) => {
1713
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn("flex flex-col gap-5", className), children: [
1714
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1715
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1716
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MarketDetailsOrderBookRows, { side: "ask", barWidths: orderBookAskBarWidths })
1717
+ ] }),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1719
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1720
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MarketDetailsOrderBookRows, { side: "bid", barWidths: orderBookBidBarWidths })
1721
+ ] })
1722
+ ] });
1723
+ };
1672
1724
  var MarketDetailsSkeletonView = ({
1673
1725
  className,
1674
1726
  ariaLabel,
@@ -1683,60 +1735,12 @@ var MarketDetailsSkeletonView = ({
1683
1735
  "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
1684
1736
  "aria-busy": true,
1685
1737
  children: [
1686
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3 p-4 md:px-5 md:py-4", children: [
1687
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1688
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:gap-4", children: [
1689
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1690
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1691
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-40 rounded-agg-sm" }),
1692
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1693
- ] })
1694
- ] }),
1695
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-8 w-16 rounded-agg-sm" })
1696
- ] }),
1697
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex gap-2", children: [
1698
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" }),
1699
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" })
1700
- ] })
1701
- ] }),
1738
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MarketDetailsHeaderSkeleton, {}),
1702
1739
  isDetailed ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
1703
1740
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1704
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex h-14 items-end", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-full w-full rounded-none" }) }),
1741
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MarketDetailsTabsSkeleton, {}),
1705
1742
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1706
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-4 p-5", children: [
1707
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3", children: [
1708
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1709
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1710
- "div",
1711
- {
1712
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1713
- children: [
1714
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1715
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1716
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1717
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1718
- ]
1719
- },
1720
- `ask-${index}`
1721
- ))
1722
- ] }),
1723
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3", children: [
1724
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1725
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1726
- "div",
1727
- {
1728
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1729
- children: [
1730
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1731
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1732
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1733
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1734
- ]
1735
- },
1736
- `bid-${index}`
1737
- ))
1738
- ] })
1739
- ] })
1743
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(MarketDetailsOderbookSkeleton, { className: "p-5" })
1740
1744
  ] }) : null
1741
1745
  ]
1742
1746
  }
@@ -1747,65 +1751,46 @@ MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
1747
1751
  // src/primitives/skeleton/views/place-order-skeleton-view.tsx
1748
1752
  var import_jsx_runtime50 = require("react/jsx-runtime");
1749
1753
  var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
1754
+ var TabsSkeletonBar = () => {
1755
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full items-end border-b border-agg-border", children: [
1756
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col rounded-t-agg-lg", children: [
1757
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "px-5 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-6 w-10 rounded-agg-sm" }) }),
1758
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1759
+ ] }),
1760
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col", children: [
1761
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "px-5 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-6 w-10 rounded-agg-sm" }) }),
1762
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-[3px] w-full" })
1763
+ ] })
1764
+ ] });
1765
+ };
1750
1766
  var ContentBody = () => {
1751
1767
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: cn("flex flex-col gap-6 p-5"), children: [
1752
1768
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1753
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
1754
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
1755
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-12 w-12 shrink-0 rounded-agg-lg" }),
1756
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1757
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[92%] rounded-agg-sm" }),
1758
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[80%] rounded-agg-sm" })
1759
- ] })
1760
- ] }),
1761
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-6 w-6 rounded-agg-sm" })
1769
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
1770
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-12 shrink-0 rounded-agg-lg" }),
1771
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1772
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[92%] max-w-[240px] rounded-agg-sm" }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[64%] max-w-[160px] rounded-agg-sm" })
1774
+ ] })
1762
1775
  ] }),
1763
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-28 rounded-agg-sm" })
1776
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-6 w-[92px] rounded-agg-sm" }),
1777
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsSkeletonBar, {})
1764
1778
  ] }),
1765
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex h-11 items-end border-b border-agg-separator", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-8", children: [
1766
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1767
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" }),
1768
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-[3px] w-12 rounded-t-agg-sm" })
1769
- ] }),
1770
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1771
- ] }) }),
1772
1779
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-4", children: [
1773
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex gap-2", children: [
1780
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full gap-2", children: [
1774
1781
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" }),
1775
1782
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" })
1776
1783
  ] }),
1777
1784
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1778
1785
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1779
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1780
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1786
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[63px] rounded-agg-sm" }),
1787
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[118px] rounded-agg-sm" })
1781
1788
  ] }),
1782
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-9 w-28 rounded-agg-sm" })
1789
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: cn("text-agg-3xl font-agg-bold leading-agg-9 text-agg-separator"), children: "$0" })
1783
1790
  ] })
1784
1791
  ] }),
1785
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1786
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "rounded-agg-lg border border-agg-trade-highlight-border bg-agg-trade-highlight-surface p-3", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-3", children: [
1787
- [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-3", children: [
1788
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1789
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1790
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1791
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" })
1792
- ] }),
1793
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1794
- ] }),
1795
- index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px w-full bg-agg-trade-highlight-border" }) : null
1796
- ] }, `place-order-route-${index}`)),
1797
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "mx-auto h-5 w-40 rounded-agg-sm" })
1798
- ] }) }),
1799
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" })
1800
- ] }),
1801
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1802
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1803
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1804
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-24 rounded-agg-sm" })
1805
- ] }),
1806
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-9 w-36 rounded-agg-sm" })
1807
- ] }),
1808
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[88%] self-center rounded-agg-sm" })
1792
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }),
1793
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[240px] self-center rounded-agg-sm" })
1809
1794
  ] });
1810
1795
  };
1811
1796
  var PlaceOrderSkeletonView = ({
@@ -1819,19 +1804,7 @@ var PlaceOrderSkeletonView = ({
1819
1804
  role: "status",
1820
1805
  "aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
1821
1806
  "aria-busy": true,
1822
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
1823
- Card,
1824
- {
1825
- className: cn(
1826
- placeOrderCardClassName,
1827
- "w-full max-w-[400px] rounded-t-agg-xl rounded-b-none border-b-0"
1828
- ),
1829
- children: [
1830
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ContentBody, {}),
1831
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "border-t border-agg-separator bg-agg-secondary p-4", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }) })
1832
- ]
1833
- }
1834
- ) })
1807
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Card, { className: cn(placeOrderCardClassName, "w-full"), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ContentBody, {}) }) })
1835
1808
  }
1836
1809
  );
1837
1810
  };
@@ -1857,38 +1830,27 @@ var SettlementSkeletonView = ({
1857
1830
  "aria-label": ariaLabel != null ? ariaLabel : labels.trading.settlementLoading,
1858
1831
  "aria-busy": true,
1859
1832
  children: [
1860
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-1 md:flex-row md:items-center md:justify-between md:gap-4", children: [
1861
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" }),
1862
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-80 rounded-agg-sm" })
1833
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex w-full items-center justify-between gap-4", children: [
1834
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[81px] rounded-agg-sm" }),
1835
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-[240px] rounded-agg-sm" })
1863
1836
  ] }),
1864
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-2", children: [
1865
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-52 rounded-agg-sm" }),
1837
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1838
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-[200px] rounded-agg-sm" }),
1866
1839
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-2", children: [
1867
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[88%] rounded-agg-sm" }),
1868
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[84%] rounded-agg-sm" }),
1869
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[80%] rounded-agg-sm" }),
1870
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[74%] rounded-agg-sm" })
1840
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[320px] rounded-agg-sm" }),
1841
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[280px] rounded-agg-sm" })
1871
1842
  ] })
1872
1843
  ] }),
1873
1844
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1874
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-3", children: [
1875
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-2", children: [
1876
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2", children: [
1877
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1878
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1879
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1880
- ] }),
1881
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-2 pl-6", children: [
1882
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-full rounded-agg-sm" }),
1883
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[92%] rounded-agg-sm" }),
1884
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-[34%] rounded-agg-sm" })
1885
- ] })
1845
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1846
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2", children: [
1847
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1848
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" })
1886
1849
  ] }),
1887
- [0, 1, 2].map((index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2", children: [
1888
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1889
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-20 rounded-agg-sm" }),
1890
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1891
- ] }, `settlement-venue-${index}`))
1850
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2", children: [
1851
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1852
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1853
+ ] })
1892
1854
  ] })
1893
1855
  ]
1894
1856
  }
@@ -2174,6 +2136,13 @@ var venueLogoRegistry = {
2174
2136
  opinion: LogoOpinionIcon,
2175
2137
  probable: LogoProbableIcon
2176
2138
  };
2139
+ var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
2140
+ var venueLogoUrlRegistry = {
2141
+ kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
2142
+ polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
2143
+ opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
2144
+ probable: `${VENUE_LOGO_BASE_URL}/probable.png`
2145
+ };
2177
2146
  var venueLogoNames = Object.keys(venueLogoRegistry);
2178
2147
  var sizeClasses = {
2179
2148
  small: "h-4 w-4",
@@ -2185,6 +2154,7 @@ var sizeClasses = {
2185
2154
  var import_jsx_runtime58 = require("react/jsx-runtime");
2186
2155
  var VenueLogo = ({
2187
2156
  venue,
2157
+ variant = "icon",
2188
2158
  isColor = true,
2189
2159
  isMonochromatic = false,
2190
2160
  color,
@@ -2194,8 +2164,20 @@ var VenueLogo = ({
2194
2164
  title
2195
2165
  }) => {
2196
2166
  const labels = (0, import_hooks9.useLabels)();
2197
- const Component = venueLogoRegistry[venue];
2198
2167
  const sizeClass = sizeClasses[size];
2168
+ const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
2169
+ if (variant === "logo") {
2170
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2171
+ "img",
2172
+ {
2173
+ src: venueLogoUrlRegistry[venue],
2174
+ alt: resolvedLabel,
2175
+ title,
2176
+ className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
2177
+ }
2178
+ );
2179
+ }
2180
+ const Component = venueLogoRegistry[venue];
2199
2181
  const resolvedIsColor = isMonochromatic ? false : isColor;
2200
2182
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
2201
2183
  Component,
@@ -2203,7 +2185,7 @@ var VenueLogo = ({
2203
2185
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
2204
2186
  isColor: resolvedIsColor,
2205
2187
  color,
2206
- "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
2188
+ "aria-label": resolvedLabel,
2207
2189
  title
2208
2190
  }
2209
2191
  );
@@ -2212,27 +2194,14 @@ VenueLogo.displayName = "VenueLogo";
2212
2194
 
2213
2195
  // src/events/item/event-list-item.utils.ts
2214
2196
  var resolveEventListItemEvent = (fetchedEvent) => {
2215
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2216
2197
  if (!fetchedEvent)
2217
2198
  return void 0;
2218
- const fallbackVenueEvent = fetchedEvent.venueEvents[0];
2219
- if (!fallbackVenueEvent)
2220
- return void 0;
2221
2199
  const mergedVenueMarkets = fetchedEvent.markets.flatMap(
2222
- (venueEvent) => venueEvent.venueMarkets
2200
+ (market) => market.venueMarkets
2223
2201
  );
2224
- const venueMarkets = mergedVenueMarkets.length > 0 ? mergedVenueMarkets : [];
2225
- if ((venueMarkets == null ? void 0 : venueMarkets.length) === 0)
2202
+ if (mergedVenueMarkets.length === 0)
2226
2203
  return void 0;
2227
- return __spreadProps(__spreadValues({}, fetchedEvent), {
2228
- id: fetchedEvent.id,
2229
- title: fetchedEvent.title || fallbackVenueEvent.title,
2230
- description: (_b = (_a = fetchedEvent.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
2231
- volume: (_d = (_c = fetchedEvent.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
2232
- startDate: (_f = (_e = fetchedEvent.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
2233
- endDate: (_h = (_g = fetchedEvent.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
2234
- creationDate: (_j = (_i = fetchedEvent.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
2235
- });
2204
+ return fetchedEvent;
2236
2205
  };
2237
2206
  var normalizeProbability = (value) => {
2238
2207
  if (typeof value !== "number" || !Number.isFinite(value))
@@ -2333,15 +2302,14 @@ var resolveTileTitle = (event, primaryVenueMarket, titleOverride) => {
2333
2302
  return event.title;
2334
2303
  };
2335
2304
  var resolveTileImage = (event, primaryVenueMarket, imageOverride) => {
2336
- var _a, _b, _c, _d, _e, _f;
2337
2305
  if (typeof imageOverride === "string" && imageOverride.trim()) {
2338
2306
  return imageOverride;
2339
2307
  }
2340
2308
  if (typeof (primaryVenueMarket == null ? void 0 : primaryVenueMarket.image) === "string" && primaryVenueMarket.image.trim()) {
2341
2309
  return primaryVenueMarket.image;
2342
2310
  }
2343
- 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())) {
2344
- return (_f = (_e = event.venueEvents) == null ? void 0 : _e[0]) == null ? void 0 : _f.image;
2311
+ if (typeof event.image === "string" && event.image.trim()) {
2312
+ return event.image;
2345
2313
  }
2346
2314
  return void 0;
2347
2315
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  EventListItem
3
- } from "./chunk-DL7STJQ5.mjs";
4
- import "./chunk-GHB3GOCW.mjs";
3
+ } from "./chunk-LA3FBBSJ.mjs";
4
+ import "./chunk-QM7CGMFG.mjs";
5
5
  import "./chunk-K6IJ4WBM.mjs";
6
- import "./chunk-V52WSZHQ.mjs";
7
- import "./chunk-D7JTOGYP.mjs";
6
+ import "./chunk-M4RJHRFT.mjs";
7
+ import "./chunk-PORVP72S.mjs";
8
8
  import "./chunk-PZTHM6WG.mjs";
9
9
  import "./chunk-NDG43KGL.mjs";
10
10
  import "./chunk-BNDFQPHF.mjs";