@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
package/dist/search.js CHANGED
@@ -1593,6 +1593,13 @@ var venueLogoRegistry = {
1593
1593
  opinion: LogoOpinionIcon,
1594
1594
  probable: LogoProbableIcon
1595
1595
  };
1596
+ var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
1597
+ var venueLogoUrlRegistry = {
1598
+ kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
1599
+ polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
1600
+ opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
1601
+ probable: `${VENUE_LOGO_BASE_URL}/probable.png`
1602
+ };
1596
1603
  var venueLogoNames = Object.keys(venueLogoRegistry);
1597
1604
  var sizeClasses = {
1598
1605
  small: "h-4 w-4",
@@ -1604,6 +1611,7 @@ var sizeClasses = {
1604
1611
  var import_jsx_runtime47 = require("react/jsx-runtime");
1605
1612
  var VenueLogo = ({
1606
1613
  venue,
1614
+ variant = "icon",
1607
1615
  isColor = true,
1608
1616
  isMonochromatic = false,
1609
1617
  color,
@@ -1613,8 +1621,20 @@ var VenueLogo = ({
1613
1621
  title
1614
1622
  }) => {
1615
1623
  const labels = (0, import_hooks.useLabels)();
1616
- const Component = venueLogoRegistry[venue];
1617
1624
  const sizeClass = sizeClasses[size];
1625
+ const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
1626
+ if (variant === "logo") {
1627
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1628
+ "img",
1629
+ {
1630
+ src: venueLogoUrlRegistry[venue],
1631
+ alt: resolvedLabel,
1632
+ title,
1633
+ className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
1634
+ }
1635
+ );
1636
+ }
1637
+ const Component = venueLogoRegistry[venue];
1618
1638
  const resolvedIsColor = isMonochromatic ? false : isColor;
1619
1639
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1620
1640
  Component,
@@ -1622,7 +1642,7 @@ var VenueLogo = ({
1622
1642
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
1623
1643
  isColor: resolvedIsColor,
1624
1644
  color,
1625
- "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
1645
+ "aria-label": resolvedLabel,
1626
1646
  title
1627
1647
  }
1628
1648
  );
package/dist/search.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Search
3
- } from "./chunk-TA7LKYKP.mjs";
4
- import "./chunk-D7JTOGYP.mjs";
3
+ } from "./chunk-DCORNTCY.mjs";
4
+ import "./chunk-PORVP72S.mjs";
5
5
  import "./chunk-PZTHM6WG.mjs";
6
6
  import "./chunk-NDG43KGL.mjs";
7
7
  import "./chunk-BNDFQPHF.mjs";
@@ -1,4 +1,4 @@
1
- import { S as SettlementViewModel, T as TradingVenue } from './types-JBf1DZlH.mjs';
1
+ import { S as SettlementViewModel, T as TradingVenue } from './types-DkGlbmXq.mjs';
2
2
  import 'zod';
3
3
 
4
4
  type SettlementProps = SettlementViewModel & {
@@ -1,4 +1,4 @@
1
- import { S as SettlementViewModel, T as TradingVenue } from './types-JBf1DZlH.js';
1
+ import { S as SettlementViewModel, T as TradingVenue } from './types-DkGlbmXq.js';
2
2
  import 'zod';
3
3
 
4
4
  type SettlementProps = SettlementViewModel & {
@@ -1466,6 +1466,7 @@ var EventListItemSkeletonView = ({
1466
1466
  isStandalone = false
1467
1467
  }) => {
1468
1468
  const labels = (0, import_hooks3.useLabels)();
1469
+ const outcomeTitleWidths = ["w-40", "w-[200px]"];
1469
1470
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1470
1471
  Card,
1471
1472
  {
@@ -1475,35 +1476,23 @@ var EventListItemSkeletonView = ({
1475
1476
  "aria-busy": isStandalone || void 0,
1476
1477
  "aria-hidden": isStandalone ? void 0 : true,
1477
1478
  children: [
1478
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex w-full items-start gap-3", children: [
1479
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-10 w-10 rounded-agg-lg" }),
1480
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1481
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm" }),
1482
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[68%] rounded-agg-sm" })
1483
- ] })
1479
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1480
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1481
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1484
1482
  ] }),
1485
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex flex-col gap-3", children: [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1486
- "div",
1487
- {
1488
- className: "grid w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3",
1489
- children: [
1490
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1491
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1492
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[101px] rounded-agg-full" })
1493
- ]
1494
- },
1495
- index
1496
- )) }),
1497
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-2 text-agg-muted-foreground", children: [
1498
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
1499
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" }),
1483
+ /* @__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: [
1484
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: cn("h-5 rounded-agg-sm", outcomeTitleWidth) }),
1485
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1486
+ ] }, index)) }),
1487
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center justify-between gap-5 text-agg-muted-foreground", children: [
1488
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
1489
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" }),
1500
1490
  /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-1", children: [
1501
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1502
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" }),
1503
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-3 rounded-agg-full" })
1491
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" }),
1492
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "size-[14px] rounded-agg-sm" })
1504
1493
  ] })
1505
1494
  ] }),
1506
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" })
1495
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1507
1496
  ] })
1508
1497
  ]
1509
1498
  }
@@ -1523,13 +1512,9 @@ var EventListSkeletonView = ({ className, ariaLabel }) => {
1523
1512
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventList.loading("events"),
1524
1513
  "aria-busy": true,
1525
1514
  children: [
1526
- /* @__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: [
1527
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-40 rounded-agg-sm" }),
1528
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex max-w-full gap-2", children: [
1529
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1530
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-20 rounded-agg-full" }),
1531
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-10 w-24 rounded-agg-full" })
1532
- ] })
1515
+ /* @__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: [
1516
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-7 w-[120px] rounded-agg-md" }),
1517
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SkeletonBlock, { className: "h-8 w-full rounded-agg-md md:w-[400px]" })
1533
1518
  ] }),
1534
1519
  /* @__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)(
1535
1520
  EventListItemSkeletonView,
@@ -1566,30 +1551,26 @@ var EventListItemDetailsSkeletonView = ({
1566
1551
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.loading,
1567
1552
  "aria-busy": true,
1568
1553
  children: [
1569
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full items-start gap-3 md:gap-4", children: [
1570
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10 rounded-agg-lg md:size-[60px]" }),
1571
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-1 flex-col gap-2", children: [
1572
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[82%] rounded-agg-sm md:h-7 md:w-[55%]" }),
1573
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1574
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1575
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" }),
1576
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-8 w-28 rounded-agg-full" })
1577
- ] })
1578
- ] })
1554
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex h-14 w-full items-center gap-3 justify-stretch", children: [
1555
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "size-10! rounded-agg-lg" }),
1556
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-6 w-fit flex-1 rounded-agg-sm" })
1579
1557
  ] }),
1580
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-4", children: [
1581
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-10 w-full rounded-agg-full md:w-[220px]" }),
1582
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
1583
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1584
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1585
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" }),
1586
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-20 rounded-agg-full" })
1558
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-4 md:gap-6", children: [
1559
+ /* @__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: [
1560
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex max-w-full gap-2 overflow-hidden", children: [
1561
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1562
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" }),
1563
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-[100px] rounded-agg-full" })
1564
+ ] }),
1565
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-9 w-full max-w-[221px] rounded-agg-full md:w-[221px]" })
1566
+ ] }),
1567
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1568
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-[220px] w-full rounded-agg-xl md:h-[240px]" }),
1569
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
1570
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-[59px] rounded-agg-sm" }),
1571
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1572
+ ] })
1587
1573
  ] })
1588
- ] }),
1589
- /* @__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" }) }),
1590
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center justify-between", children: [
1591
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1592
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SkeletonBlock, { className: "h-5 w-40 rounded-agg-sm" })
1593
1574
  ] })
1594
1575
  ]
1595
1576
  }
@@ -1605,6 +1586,77 @@ var marketDetailsBaseCardClassName = "w-full overflow-hidden rounded-agg-lg bord
1605
1586
 
1606
1587
  // src/primitives/skeleton/views/market-details-skeleton-view.tsx
1607
1588
  var import_jsx_runtime48 = require("react/jsx-runtime");
1589
+ var orderBookAskBarWidths = [
1590
+ "w-[52px] md:w-[240px]",
1591
+ "w-[48px] md:w-[200px]",
1592
+ "w-[40px] md:w-[120px]",
1593
+ "w-[36px] md:w-[60px]"
1594
+ ];
1595
+ var orderBookBidBarWidths = [
1596
+ "w-[36px] md:w-[60px]",
1597
+ "w-[40px] md:w-[120px]",
1598
+ "w-[48px] md:w-[200px]",
1599
+ "w-[52px] md:w-[240px]"
1600
+ ];
1601
+ var MarketDetailsHeaderSkeleton = () => {
1602
+ 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: [
1603
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:min-w-52 md:gap-4", children: [
1604
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1605
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1606
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-[132px] rounded-agg-sm" }),
1607
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-[141px] rounded-agg-sm" })
1608
+ ] })
1609
+ ] }),
1610
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-[60px] rounded-agg-md" }),
1611
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex w-full gap-2 md:w-auto", children: [
1612
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[135px]" }),
1613
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-9 w-full rounded-agg-full md:w-[131px]" })
1614
+ ] })
1615
+ ] });
1616
+ };
1617
+ var MarketDetailsTabsSkeleton = () => {
1618
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-14 items-end px-4 md:px-5", children: [
1619
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col items-end justify-end rounded-t-agg-lg", children: [
1620
+ /* @__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" }) }),
1621
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1622
+ ] }),
1623
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex h-full flex-col justify-center", children: [
1624
+ /* @__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" }) }),
1625
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-[3px] w-full" })
1626
+ ] })
1627
+ ] });
1628
+ };
1629
+ var MarketDetailsOrderBookRows = ({
1630
+ side,
1631
+ barWidths
1632
+ }) => {
1633
+ 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: [
1634
+ /* @__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: [
1635
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
1636
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1637
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1638
+ ] }),
1639
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1640
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-5 rounded-agg-sm" }),
1641
+ /* @__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) }) })
1642
+ ] }),
1643
+ index < barWidths.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
1644
+ ] }, `${side}-row-${index}`)) });
1645
+ };
1646
+ var MarketDetailsOderbookSkeleton = ({
1647
+ className
1648
+ }) => {
1649
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col gap-5", className), children: [
1650
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
1651
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "ask", barWidths: orderBookAskBarWidths })
1653
+ ] }),
1654
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-2", children: [
1655
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-10 rounded-agg-sm" }),
1656
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOrderBookRows, { side: "bid", barWidths: orderBookBidBarWidths })
1657
+ ] })
1658
+ ] });
1659
+ };
1608
1660
  var MarketDetailsSkeletonView = ({
1609
1661
  className,
1610
1662
  ariaLabel,
@@ -1619,60 +1671,12 @@ var MarketDetailsSkeletonView = ({
1619
1671
  "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.loading,
1620
1672
  "aria-busy": true,
1621
1673
  children: [
1622
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3 p-4 md:px-5 md:py-4", children: [
1623
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1624
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 items-center gap-3 md:gap-4", children: [
1625
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "size-12 rounded-agg-lg md:size-[60px]" }),
1626
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
1627
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-6 w-40 rounded-agg-sm" }),
1628
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1629
- ] })
1630
- ] }),
1631
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-8 w-16 rounded-agg-sm" })
1632
- ] }),
1633
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex gap-2", children: [
1634
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" }),
1635
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-10 flex-1 rounded-agg-full" })
1636
- ] })
1637
- ] }),
1674
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsHeaderSkeleton, {}),
1638
1675
  isDetailed ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
1639
1676
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1640
- /* @__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" }) }),
1677
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsTabsSkeleton, {}),
1641
1678
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1642
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-4 p-5", children: [
1643
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3", children: [
1644
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1645
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1646
- "div",
1647
- {
1648
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1649
- children: [
1650
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1651
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1652
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1653
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1654
- ]
1655
- },
1656
- `ask-${index}`
1657
- ))
1658
- ] }),
1659
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-3", children: [
1660
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 w-12 rounded-agg-sm" }),
1661
- [0, 1, 2, 3].map((index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1662
- "div",
1663
- {
1664
- className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2",
1665
- children: [
1666
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1667
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1668
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-4 rounded-agg-sm" }),
1669
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SkeletonBlock, { className: "h-2 rounded-agg-full" })
1670
- ]
1671
- },
1672
- `bid-${index}`
1673
- ))
1674
- ] })
1675
- ] })
1679
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MarketDetailsOderbookSkeleton, { className: "p-5" })
1676
1680
  ] }) : null
1677
1681
  ]
1678
1682
  }
@@ -1683,65 +1687,46 @@ MarketDetailsSkeletonView.displayName = "MarketDetailsSkeletonView";
1683
1687
  // src/primitives/skeleton/views/place-order-skeleton-view.tsx
1684
1688
  var import_jsx_runtime49 = require("react/jsx-runtime");
1685
1689
  var placeOrderCardClassName = "overflow-hidden rounded-agg-xl border border-agg-border bg-agg-secondary shadow-none hover:shadow-none";
1690
+ var TabsSkeletonBar = () => {
1691
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full items-end border-b border-agg-border", children: [
1692
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col rounded-t-agg-lg", children: [
1693
+ /* @__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" }) }),
1694
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-full rounded-t-agg-sm" })
1695
+ ] }),
1696
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col", children: [
1697
+ /* @__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" }) }),
1698
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-[3px] w-full" })
1699
+ ] })
1700
+ ] });
1701
+ };
1686
1702
  var ContentBody = () => {
1687
1703
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn("flex flex-col gap-6 p-5"), children: [
1688
1704
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1689
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
1690
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
1691
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-12 shrink-0 rounded-agg-lg" }),
1692
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1693
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[92%] rounded-agg-sm" }),
1694
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[80%] rounded-agg-sm" })
1695
- ] })
1696
- ] }),
1697
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-6 rounded-agg-sm" })
1705
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
1706
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-12 shrink-0 rounded-agg-lg" }),
1707
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
1708
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[92%] max-w-[240px] rounded-agg-sm" }),
1709
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[64%] max-w-[160px] rounded-agg-sm" })
1710
+ ] })
1698
1711
  ] }),
1699
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-28 rounded-agg-sm" })
1712
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-[92px] rounded-agg-sm" }),
1713
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(TabsSkeletonBar, {})
1700
1714
  ] }),
1701
- /* @__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: [
1702
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1703
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" }),
1704
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-[3px] w-12 rounded-t-agg-sm" })
1705
- ] }),
1706
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1707
- ] }) }),
1708
1715
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-4", children: [
1709
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex gap-2", children: [
1716
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex w-full gap-2", children: [
1710
1717
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" }),
1711
1718
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-11 flex-1 rounded-agg-full" })
1712
1719
  ] }),
1713
1720
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1714
1721
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1715
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1716
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-28 rounded-agg-sm" })
1722
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-[63px] rounded-agg-sm" }),
1723
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[118px] rounded-agg-sm" })
1717
1724
  ] }),
1718
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-28 rounded-agg-sm" })
1725
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: cn("text-agg-3xl font-agg-bold leading-agg-9 text-agg-separator"), children: "$0" })
1719
1726
  ] })
1720
1727
  ] }),
1721
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1722
- /* @__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: [
1723
- [0, 1].map((index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-3", children: [
1724
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1725
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2", children: [
1726
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1727
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" })
1728
- ] }),
1729
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-5 w-10 rounded-agg-sm" })
1730
- ] }),
1731
- index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "h-px w-full bg-agg-trade-highlight-border" }) : null
1732
- ] }, `place-order-route-${index}`)),
1733
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "mx-auto h-5 w-40 rounded-agg-sm" })
1734
- ] }) }),
1735
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-36 rounded-agg-sm" })
1736
- ] }),
1737
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
1738
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1739
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-6 w-20 rounded-agg-sm" }),
1740
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-24 rounded-agg-sm" })
1741
- ] }),
1742
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-9 w-36 rounded-agg-sm" })
1743
- ] }),
1744
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-[88%] self-center rounded-agg-sm" })
1728
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-12 w-full rounded-agg-full" }),
1729
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[240px] self-center rounded-agg-sm" })
1745
1730
  ] });
1746
1731
  };
1747
1732
  var PlaceOrderSkeletonView = ({
@@ -1755,19 +1740,7 @@ var PlaceOrderSkeletonView = ({
1755
1740
  role: "status",
1756
1741
  "aria-label": ariaLabel != null ? ariaLabel : "Loading place order",
1757
1742
  "aria-busy": true,
1758
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex w-full items-end justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1759
- Card,
1760
- {
1761
- className: cn(
1762
- placeOrderCardClassName,
1763
- "w-full max-w-[400px] rounded-t-agg-xl rounded-b-none border-b-0"
1764
- ),
1765
- children: [
1766
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ContentBody, {}),
1767
- /* @__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" }) })
1768
- ]
1769
- }
1770
- ) })
1743
+ 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, {}) }) })
1771
1744
  }
1772
1745
  );
1773
1746
  };
@@ -1793,38 +1766,27 @@ var SettlementSkeletonView = ({
1793
1766
  "aria-label": ariaLabel != null ? ariaLabel : labels.trading.settlementLoading,
1794
1767
  "aria-busy": true,
1795
1768
  children: [
1796
- /* @__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: [
1797
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-20 rounded-agg-sm" }),
1798
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-80 rounded-agg-sm" })
1769
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full items-center justify-between gap-4", children: [
1770
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[81px] rounded-agg-sm" }),
1771
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-full max-w-[240px] rounded-agg-sm" })
1799
1772
  ] }),
1800
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1801
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-52 rounded-agg-sm" }),
1773
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1774
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[200px] rounded-agg-sm" }),
1802
1775
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1803
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[88%] rounded-agg-sm" }),
1804
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[84%] rounded-agg-sm" }),
1805
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[80%] rounded-agg-sm" }),
1806
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[74%] rounded-agg-sm" })
1776
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[320px] rounded-agg-sm" }),
1777
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full max-w-[280px] rounded-agg-sm" })
1807
1778
  ] })
1808
1779
  ] }),
1809
1780
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
1810
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-3", children: [
1811
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1812
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1813
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-full" }),
1814
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-24 rounded-agg-sm" }),
1815
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1816
- ] }),
1817
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2 pl-6", children: [
1818
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-full rounded-agg-sm" }),
1819
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[92%] rounded-agg-sm" }),
1820
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-[34%] rounded-agg-sm" })
1821
- ] })
1781
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex w-full flex-col gap-3", children: [
1782
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1783
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1784
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[100px] rounded-agg-sm" })
1822
1785
  ] }),
1823
- [0, 1, 2].map((index) => /* @__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-20 rounded-agg-sm" }),
1826
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-4 w-4 rounded-agg-sm" })
1827
- ] }, `settlement-venue-${index}`))
1786
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center gap-2", children: [
1787
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "size-4 rounded-agg-sm" }),
1788
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SkeletonBlock, { className: "h-5 w-[60px] rounded-agg-sm" })
1789
+ ] })
1828
1790
  ] })
1829
1791
  ]
1830
1792
  }
@@ -2068,6 +2030,13 @@ var venueLogoRegistry = {
2068
2030
  opinion: LogoOpinionIcon,
2069
2031
  probable: LogoProbableIcon
2070
2032
  };
2033
+ var VENUE_LOGO_BASE_URL = "https://assets.snagsolutions.io/public/prediction-markets/logos";
2034
+ var venueLogoUrlRegistry = {
2035
+ kalshi: `${VENUE_LOGO_BASE_URL}/kalshi.png`,
2036
+ polymarket: `${VENUE_LOGO_BASE_URL}/polymarket.png`,
2037
+ opinion: `${VENUE_LOGO_BASE_URL}/opinion.png`,
2038
+ probable: `${VENUE_LOGO_BASE_URL}/probable.png`
2039
+ };
2071
2040
  var venueLogoNames = Object.keys(venueLogoRegistry);
2072
2041
  var sizeClasses = {
2073
2042
  small: "h-4 w-4",
@@ -2079,6 +2048,7 @@ var sizeClasses = {
2079
2048
  var import_jsx_runtime56 = require("react/jsx-runtime");
2080
2049
  var VenueLogo = ({
2081
2050
  venue,
2051
+ variant = "icon",
2082
2052
  isColor = true,
2083
2053
  isMonochromatic = false,
2084
2054
  color,
@@ -2088,8 +2058,20 @@ var VenueLogo = ({
2088
2058
  title
2089
2059
  }) => {
2090
2060
  const labels = (0, import_hooks8.useLabels)();
2091
- const Component = venueLogoRegistry[venue];
2092
2061
  const sizeClass = sizeClasses[size];
2062
+ const resolvedLabel = ariaLabel != null ? ariaLabel : labels.venues[venue];
2063
+ if (variant === "logo") {
2064
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2065
+ "img",
2066
+ {
2067
+ src: venueLogoUrlRegistry[venue],
2068
+ alt: resolvedLabel,
2069
+ title,
2070
+ className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
2071
+ }
2072
+ );
2073
+ }
2074
+ const Component = venueLogoRegistry[venue];
2093
2075
  const resolvedIsColor = isMonochromatic ? false : isColor;
2094
2076
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2095
2077
  Component,
@@ -2097,7 +2079,7 @@ var VenueLogo = ({
2097
2079
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
2098
2080
  isColor: resolvedIsColor,
2099
2081
  color,
2100
- "aria-label": ariaLabel != null ? ariaLabel : labels.venues[venue],
2082
+ "aria-label": resolvedLabel,
2101
2083
  title
2102
2084
  }
2103
2085
  );
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Settlement
3
- } from "./chunk-4KMFDCAH.mjs";
3
+ } from "./chunk-3W7NBJLU.mjs";
4
4
  import "./chunk-OBCHURW5.mjs";
5
- import "./chunk-V52WSZHQ.mjs";
6
- import "./chunk-D7JTOGYP.mjs";
5
+ import "./chunk-M4RJHRFT.mjs";
6
+ import "./chunk-PORVP72S.mjs";
7
7
  import "./chunk-PZTHM6WG.mjs";
8
8
  import "./chunk-NDG43KGL.mjs";
9
9
  import "./chunk-BNDFQPHF.mjs";