@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
@@ -1477,6 +1477,7 @@ var EventListItemSkeletonView = ({
1477
1477
  isStandalone = false
1478
1478
  }) => {
1479
1479
  const labels = (0, import_hooks3.useLabels)();
1480
+ const outcomeTitleWidths = ["w-40", "w-[200px]"];
1480
1481
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1481
1482
  Card,
1482
1483
  {
@@ -1486,35 +1487,23 @@ var EventListItemSkeletonView = ({
1486
1487
  "aria-busy": isStandalone || void 0,
1487
1488
  "aria-hidden": isStandalone ? void 0 : true,
1488
1489
  children: [
1489
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
1490
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-10 w-10 rounded-agg-lg" }),
1491
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1492
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm" }),
1493
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[68%] rounded-agg-sm" })
1494
- ] })
1490
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1491
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1492
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1495
1493
  ] }),
1496
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1497
- "div",
1498
- {
1499
- className: "grid w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3",
1500
- children: [
1501
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1502
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1503
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[101px] rounded-agg-full" })
1504
- ]
1505
- },
1506
- index
1507
- )) }),
1508
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-2 text-agg-muted-foreground", children: [
1509
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
1510
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" }),
1494
+ /* @__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: [
1495
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: cn("h-5 rounded-agg-sm", outcomeTitleWidth) }),
1496
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1497
+ ] }, index)) }),
1498
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-5 text-agg-muted-foreground", children: [
1499
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
1500
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" }),
1511
1501
  /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-1", children: [
1512
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1513
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1514
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" })
1502
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" }),
1503
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" })
1515
1504
  ] })
1516
1505
  ] }),
1517
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" })
1506
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1518
1507
  ] })
1519
1508
  ]
1520
1509
  }
@@ -1534,13 +1523,9 @@ var EventListSkeletonView = ({ className, ariaLabel }) => {
1534
1523
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
1535
1524
  "aria-busy": true,
1536
1525
  children: [
1537
- /* @__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: [
1538
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-40 rounded-agg-sm" }),
1539
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex max-w-full gap-2", children: [
1540
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1541
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1542
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-24 rounded-agg-full" })
1543
- ] })
1526
+ /* @__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: [
1527
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-[120px] rounded-agg-md" }),
1528
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-8 w-full rounded-agg-md md:w-[400px]" })
1544
1529
  ] }),
1545
1530
  /* @__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)(
1546
1531
  EventListItemSkeletonView,
@@ -1577,30 +1562,26 @@ var EventListItemDetailsSkeletonView = ({
1577
1562
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
1578
1563
  "aria-busy": true,
1579
1564
  children: [
1580
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full items-start gap-3 md:gap-4", children: [
1581
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10 rounded-agg-lg md:size-[60px]" }),
1582
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1583
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm md:h-7 md:w-[55%]" }),
1584
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1585
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1586
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1587
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" })
1588
- ] })
1589
- ] })
1565
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1566
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1567
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1590
1568
  ] }),
1591
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-4", children: [
1592
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-10 w-full rounded-agg-full md:w-[220px]" }),
1593
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1594
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1595
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1596
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1597
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" })
1569
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-4 md:gap-6", children: [
1570
+ /* @__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: [
1571
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex max-w-full gap-2 overflow-hidden", children: [
1572
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1573
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1574
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1575
+ ] }),
1576
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-full max-w-[221px] rounded-agg-full md:w-[221px]" })
1577
+ ] }),
1578
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1579
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-[220px] w-full rounded-agg-xl md:h-[240px]" }),
1580
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
1581
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[59px] rounded-agg-sm" }),
1582
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1583
+ ] })
1598
1584
  ] })
1599
- ] }),
1600
- /* @__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" }) }),
1601
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
1602
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1603
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1604
1585
  ] })
1605
1586
  ]
1606
1587
  }
@@ -1616,6 +1597,77 @@ var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg bord
1616
1597
 
1617
1598
  // src/primitives/skeleton/views/market-details-skeleton-view.tsx
1618
1599
  var import_jsx_runtime48 = require("react/jsx-runtime");
1600
+ var orderBookAskBarWidths = [
1601
+ "w-[52px] md:w-[240px]",
1602
+ "w-[48px] md:w-[200px]",
1603
+ "w-[40px] md:w-[120px]",
1604
+ "w-[36px] md:w-[60px]"
1605
+ ];
1606
+ var orderBookBidBarWidths = [
1607
+ "w-[36px] md:w-[60px]",
1608
+ "w-[40px] md:w-[120px]",
1609
+ "w-[48px] md:w-[200px]",
1610
+ "w-[52px] md:w-[240px]"
1611
+ ];
1612
+ var MarketDetailsHeaderSkeleton = () => {
1613
+ 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: [
1614
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:min-w-52 md:gap-4", children: [
1615
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1616
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1617
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-[132px] rounded-agg-sm" }),
1618
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-[141px] rounded-agg-sm" })
1619
+ ] })
1620
+ ] }),
1621
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[60px] rounded-agg-md" }),
1622
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full gap-2 md:w-auto", children: [
1623
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[135px]" }),
1624
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[131px]" })
1625
+ ] })
1626
+ ] });
1627
+ };
1628
+ var MarketDetailsTabsSkeleton = () => {
1629
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-14 items-end px-4 md:px-5", children: [
1630
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col items-end justify-end rounded-t-agg-lg", children: [
1631
+ /* @__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" }) }),
1632
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1633
+ ] }),
1634
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col justify-center", 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-12 rounded-agg-sm" }) }),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-[3px] w-full" })
1637
+ ] })
1638
+ ] });
1639
+ };
1640
+ var MarketDetailsOrderBookRows = ({
1641
+ side,
1642
+ barWidths
1643
+ }) => {
1644
+ 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: [
1645
+ /* @__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: [
1646
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
1647
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1648
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1649
+ ] }),
1650
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1651
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1652
+ /* @__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) }) })
1653
+ ] }),
1654
+ index < barWidths.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
1655
+ ] }, `${side}-row-${index}`)) });
1656
+ };
1657
+ var MarketDetailsOderbookSkeleton = ({
1658
+ className
1659
+ }) => {
1660
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col gap-5", className), children: [
1661
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
1662
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1663
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "ask", barWidths: orderBookAskBarWidths })
1664
+ ] }),
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: "bid", barWidths: orderBookBidBarWidths })
1668
+ ] })
1669
+ ] });
1670
+ };
1619
1671
  var MarketDetailsSkeletonView = ({
1620
1672
  className,
1621
1673
  ariaLabel,
@@ -1630,60 +1682,12 @@ var MarketDetailsSkeletonView = ({
1630
1682
  "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
1631
1683
  "aria-busy": true,
1632
1684
  children: [
1633
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3 p-4 md:px-5 md:py-4", children: [
1634
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1635
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:gap-4", children: [
1636
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1637
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1638
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-40 rounded-agg-sm" }),
1639
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1640
- ] })
1641
- ] }),
1642
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-8 w-16 rounded-agg-sm" })
1643
- ] }),
1644
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex gap-2", children: [
1645
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" })
1647
- ] })
1648
- ] }),
1685
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsHeaderSkeleton, {}),
1649
1686
  isDetailed ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
1650
1687
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1651
- /* @__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" }) }),
1688
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsTabsSkeleton, {}),
1652
1689
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1653
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-4 p-5", children: [
1654
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3", children: [
1655
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1656
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1657
- "div",
1658
- {
1659
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1660
- children: [
1661
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1662
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1664
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1665
- ]
1666
- },
1667
- `ask-${index}`
1668
- ))
1669
- ] }),
1670
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3", children: [
1671
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1672
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1673
- "div",
1674
- {
1675
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1676
- children: [
1677
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1678
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1679
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1680
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1681
- ]
1682
- },
1683
- `bid-${index}`
1684
- ))
1685
- ] })
1686
- ] })
1690
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOderbookSkeleton, { className: "p-5" })
1687
1691
  ] }) : null
1688
1692
  ]
1689
1693
  }
@@ -1694,65 +1698,46 @@ MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
1694
1698
  // src/primitives/skeleton/views/place-order-skeleton-view.tsx
1695
1699
  var import_jsx_runtime49 = require("react/jsx-runtime");
1696
1700
  var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
1701
+ var TabsSkeletonBar = () => {
1702
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full items-end border-b border-agg-border", children: [
1703
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col rounded-t-agg-lg", children: [
1704
+ /* @__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" }) }),
1705
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1706
+ ] }),
1707
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col", 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)("div", { className: "h-[3px] w-full" })
1710
+ ] })
1711
+ ] });
1712
+ };
1697
1713
  var ContentBody = () => {
1698
1714
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn("flex flex-col gap-6 p-5"), children: [
1699
1715
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1700
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
1701
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
1702
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-12 shrink-0 rounded-agg-lg" }),
1703
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1704
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[92%] rounded-agg-sm" }),
1705
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[80%] rounded-agg-sm" })
1706
- ] })
1707
- ] }),
1708
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-6 rounded-agg-sm" })
1716
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
1717
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-12 shrink-0 rounded-agg-lg" }),
1718
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1719
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[92%] max-w-[240px] rounded-agg-sm" }),
1720
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[64%] max-w-[160px] rounded-agg-sm" })
1721
+ ] })
1709
1722
  ] }),
1710
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-28 rounded-agg-sm" })
1723
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-[92px] rounded-agg-sm" }),
1724
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TabsSkeletonBar, {})
1711
1725
  ] }),
1712
- /* @__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: [
1713
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1714
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" }),
1715
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-12 rounded-t-agg-sm" })
1716
- ] }),
1717
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1718
- ] }) }),
1719
1726
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-4", children: [
1720
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex gap-2", children: [
1727
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full gap-2", children: [
1721
1728
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" }),
1722
1729
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" })
1723
1730
  ] }),
1724
1731
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1725
1732
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1726
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1727
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1733
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[63px] rounded-agg-sm" }),
1734
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[118px] rounded-agg-sm" })
1728
1735
  ] }),
1729
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-28 rounded-agg-sm" })
1736
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: cn("text-agg-3xl font-agg-bold leading-agg-9 text-agg-separator"), children: "$0" })
1730
1737
  ] })
1731
1738
  ] }),
1732
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1733
- /* @__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: [
1734
- [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3", children: [
1735
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1736
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2", children: [
1737
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1738
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" })
1739
- ] }),
1740
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1741
- ] }),
1742
- index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-px w-full bg-agg-trade-highlight-border" }) : null
1743
- ] }, `place-order-route-${index}`)),
1744
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "mx-auto h-5 w-40 rounded-agg-sm" })
1745
- ] }) }),
1746
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" })
1747
- ] }),
1748
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1749
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1750
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1751
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-24 rounded-agg-sm" })
1752
- ] }),
1753
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-36 rounded-agg-sm" })
1754
- ] }),
1755
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[88%] self-center rounded-agg-sm" })
1739
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }),
1740
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[240px] self-center rounded-agg-sm" })
1756
1741
  ] });
1757
1742
  };
1758
1743
  var PlaceOrderSkeletonView = ({
@@ -1766,19 +1751,7 @@ var PlaceOrderSkeletonView = ({
1766
1751
  role: "status",
1767
1752
  "aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
1768
1753
  "aria-busy": true,
1769
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1770
- Card,
1771
- {
1772
- className: cn(
1773
- placeOrderCardClassName,
1774
- "w-full max-w-[400px] rounded-t-agg-xl rounded-b-none border-b-0"
1775
- ),
1776
- children: [
1777
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ContentBody, {}),
1778
- /* @__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" }) })
1779
- ]
1780
- }
1781
- ) })
1754
+ 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, {}) }) })
1782
1755
  }
1783
1756
  );
1784
1757
  };
@@ -1804,38 +1777,27 @@ var SettlementSkeletonView = ({
1804
1777
  "aria-label": ariaLabel != null ? ariaLabel : labels.trading.settlementLoading,
1805
1778
  "aria-busy": true,
1806
1779
  children: [
1807
- /* @__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: [
1808
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" }),
1809
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-80 rounded-agg-sm" })
1780
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full items-center justify-between gap-4", children: [
1781
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[81px] rounded-agg-sm" }),
1782
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-[240px] rounded-agg-sm" })
1810
1783
  ] }),
1811
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1812
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-52 rounded-agg-sm" }),
1784
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1785
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[200px] rounded-agg-sm" }),
1813
1786
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1814
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[88%] rounded-agg-sm" }),
1815
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[84%] rounded-agg-sm" }),
1816
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[80%] rounded-agg-sm" }),
1817
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[74%] rounded-agg-sm" })
1787
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[320px] rounded-agg-sm" }),
1788
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[280px] rounded-agg-sm" })
1818
1789
  ] })
1819
1790
  ] }),
1820
1791
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1821
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-3", children: [
1822
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1823
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1824
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1825
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1826
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1827
- ] }),
1828
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2 pl-6", children: [
1829
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full rounded-agg-sm" }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[92%] rounded-agg-sm" }),
1831
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[34%] rounded-agg-sm" })
1832
- ] })
1792
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1793
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1794
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1795
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" })
1833
1796
  ] }),
1834
- [0, 1, 2].map((index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1835
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1836
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-20 rounded-agg-sm" }),
1837
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1838
- ] }, `settlement-venue-${index}`))
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-[60px] rounded-agg-sm" })
1800
+ ] })
1839
1801
  ] })
1840
1802
  ]
1841
1803
  }
@@ -2800,6 +2762,13 @@ var venueLogoRegistry = {
2800
2762
  opinion: LogoOpinionIcon,
2801
2763
  probable: LogoProbableIcon
2802
2764
  };
2765
+ var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
2766
+ var venueLogoUrlRegistry = {
2767
+ kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
2768
+ polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
2769
+ opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
2770
+ probable: `${VENUE_LOGO_BASE_URL}/probable.png`
2771
+ };
2803
2772
  var venueLogoNames = Object.keys(venueLogoRegistry);
2804
2773
  var sizeClasses = {
2805
2774
  small: "h-4 w-4",
@@ -2811,6 +2780,7 @@ var sizeClasses = {
2811
2780
  var import_jsx_runtime59 = require("react/jsx-runtime");
2812
2781
  var VenueLogo = ({
2813
2782
  venue,
2783
+ variant = "icon",
2814
2784
  isColor = true,
2815
2785
  isMonochromatic = false,
2816
2786
  color,
@@ -2820,8 +2790,20 @@ var VenueLogo = ({
2820
2790
  title
2821
2791
  }) => {
2822
2792
  const labels = (0, import_hooks10.useLabels)();
2823
- const Component = venueLogoRegistry[venue];
2824
2793
  const sizeClass = sizeClasses[size];
2794
+ const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
2795
+ if (variant === "logo") {
2796
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2797
+ "img",
2798
+ {
2799
+ src: venueLogoUrlRegistry[venue],
2800
+ alt: resolvedLabel,
2801
+ title,
2802
+ className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
2803
+ }
2804
+ );
2805
+ }
2806
+ const Component = venueLogoRegistry[venue];
2825
2807
  const resolvedIsColor = isMonochromatic ? false : isColor;
2826
2808
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2827
2809
  Component,
@@ -2829,7 +2811,7 @@ var VenueLogo = ({
2829
2811
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
2830
2812
  isColor: resolvedIsColor,
2831
2813
  color,
2832
- "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
2814
+ "aria-label": resolvedLabel,
2833
2815
  title
2834
2816
  }
2835
2817
  );
@@ -2898,27 +2880,14 @@ Badge.displayName = "Badge";
2898
2880
 
2899
2881
  // src/events/item/event-list-item.utils.ts
2900
2882
  var resolveEventListItemEvent = (fetchedEvent) => {
2901
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2902
2883
  if (!fetchedEvent)
2903
2884
  return void 0;
2904
- const fallbackVenueEvent = fetchedEvent.venueEvents[0];
2905
- if (!fallbackVenueEvent)
2906
- return void 0;
2907
2885
  const mergedVenueMarkets = fetchedEvent.markets.flatMap(
2908
- (venueEvent) => venueEvent.venueMarkets
2886
+ (market) => market.venueMarkets
2909
2887
  );
2910
- const venueMarkets = mergedVenueMarkets.length > 0 ? mergedVenueMarkets : [];
2911
- if ((venueMarkets == null ? void 0 : venueMarkets.length) === 0)
2888
+ if (mergedVenueMarkets.length === 0)
2912
2889
  return void 0;
2913
- return __spreadProps(__spreadValues({}, fetchedEvent), {
2914
- id: fetchedEvent.id,
2915
- title: fetchedEvent.title || fallbackVenueEvent.title,
2916
- description: (_b = (_a = fetchedEvent.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
2917
- volume: (_d = (_c = fetchedEvent.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
2918
- startDate: (_f = (_e = fetchedEvent.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
2919
- endDate: (_h = (_g = fetchedEvent.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
2920
- creationDate: (_j = (_i = fetchedEvent.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
2921
- });
2890
+ return fetchedEvent;
2922
2891
  };
2923
2892
  var normalizeProbability = (value) => {
2924
2893
  if (typeof value !== "number" || !Number.isFinite(value))
@@ -3019,15 +2988,14 @@ var resolveTileTitle = (event, primaryVenueMarket, titleOverride) => {
3019
2988
  return event.title;
3020
2989
  };
3021
2990
  var resolveTileImage = (event, primaryVenueMarket, imageOverride) => {
3022
- var _a, _b, _c, _d, _e, _f;
3023
2991
  if (typeof imageOverride === "string" && imageOverride.trim()) {
3024
2992
  return imageOverride;
3025
2993
  }
3026
2994
  if (typeof (primaryVenueMarket == null ? void 0 : primaryVenueMarket.image) === "string" && primaryVenueMarket.image.trim()) {
3027
2995
  return primaryVenueMarket.image;
3028
2996
  }
3029
- 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())) {
3030
- return (_f = (_e = event.venueEvents) == null ? void 0 : _e[0]) == null ? void 0 : _f.image;
2997
+ if (typeof event.image === "string" && event.image.trim()) {
2998
+ return event.image;
3031
2999
  }
3032
3000
  return void 0;
3033
3001
  };
@@ -3342,22 +3310,10 @@ var getDefaultEventListTabs = (labels) => {
3342
3310
 
3343
3311
  // src/events/list/event-list.utils.ts
3344
3312
  var mapEventToEventListItemEvent = (event) => {
3345
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
3346
- const fallbackVenueEvent = event.venueEvents[0];
3347
- if (!fallbackVenueEvent)
3348
- return null;
3349
3313
  const mergedVenueMarkets = event.markets.flatMap((m) => m.venueMarkets);
3350
- if ((mergedVenueMarkets == null ? void 0 : mergedVenueMarkets.length) === 0)
3314
+ if (mergedVenueMarkets.length === 0)
3351
3315
  return null;
3352
- return __spreadProps(__spreadValues({}, event), {
3353
- id: event.id,
3354
- title: event.title || fallbackVenueEvent.title,
3355
- description: (_b = (_a = event.description) != null ? _a : fallbackVenueEvent.description) != null ? _b : null,
3356
- volume: (_d = (_c = event.volume) != null ? _c : fallbackVenueEvent.volume) != null ? _d : null,
3357
- startDate: (_f = (_e = event.startDate) != null ? _e : fallbackVenueEvent.startDate) != null ? _f : null,
3358
- endDate: (_h = (_g = event.endDate) != null ? _g : fallbackVenueEvent.endDate) != null ? _h : null,
3359
- creationDate: (_j = (_i = event.creationDate) != null ? _i : fallbackVenueEvent.creationDate) != null ? _j : null
3360
- });
3316
+ return event;
3361
3317
  };
3362
3318
  var filterEventsByTabValue = (events, _tabValue) => {
3363
3319
  return events;
@@ -3433,7 +3389,7 @@ var EventList = ({
3433
3389
  const [activeTabValue, setActiveTabValue] = (0, import_react4.useState)(
3434
3390
  (_b = (_a = defaultEventListTabs[0]) == null ? void 0 : _a.value) != null ? _b : "matched"
3435
3391
  );
3436
- const [shouldUseSelectOverflow, setShouldUseSelectOverflow] = (0, import_react4.useState)(false);
3392
+ const [_shouldUseSelectOverflow, setShouldUseSelectOverflow] = (0, import_react4.useState)(false);
3437
3393
  const activeTab = (0, import_react4.useMemo)(() => {
3438
3394
  return defaultEventListTabs.find((tab) => tab.value === activeTabValue);
3439
3395
  }, [activeTabValue]);
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  EventList
3
- } from "./chunk-BEDUFOIG.mjs";
4
- import "./chunk-DL7STJQ5.mjs";
3
+ } from "./chunk-OH56VUYK.mjs";
4
+ import "./chunk-LA3FBBSJ.mjs";
5
5
  import "./chunk-S3H63TQ5.mjs";
6
- import "./chunk-GHB3GOCW.mjs";
6
+ import "./chunk-QM7CGMFG.mjs";
7
7
  import "./chunk-K6IJ4WBM.mjs";
8
8
  import "./chunk-YJA5VQW6.mjs";
9
- import "./chunk-V52WSZHQ.mjs";
10
- import "./chunk-D7JTOGYP.mjs";
9
+ import "./chunk-M4RJHRFT.mjs";
10
+ import "./chunk-PORVP72S.mjs";
11
11
  import "./chunk-PZTHM6WG.mjs";
12
12
  import "./chunk-NDG43KGL.mjs";
13
13
  import "./chunk-BNDFQPHF.mjs";
@@ -1,5 +1,5 @@
1
1
  import { Event } from '@agg-market/hooks';
2
- import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-JBf1DZlH.mjs';
2
+ import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-DkGlbmXq.mjs';
3
3
  import { d as EventListItemDetailsTimeRange } from './event-list-item-details.types-DekJKeMD.mjs';
4
4
  import 'zod';
5
5
  import './event-list-item.types-Y6IeJ4e4.mjs';
@@ -1,5 +1,5 @@
1
1
  import { Event } from '@agg-market/hooks';
2
- import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-JBf1DZlH.js';
2
+ import { A as PlaceOrderViewModel, S as SettlementViewModel } from './types-DkGlbmXq.js';
3
3
  import { d as EventListItemDetailsTimeRange } from './event-list-item-details.types-CMbXOrT-.js';
4
4
  import 'zod';
5
5
  import './event-list-item.types-Y6IeJ4e4.js';