@agg-build/ui 1.2.5 → 1.2.6

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.
@@ -15,7 +15,7 @@ import {
15
15
  PlaceOrder,
16
16
  SettlementDetails,
17
17
  WITHDRAW_MODAL_OPEN_EVENT
18
- } from "./chunk-XCECYRTH.mjs";
18
+ } from "./chunk-FS3FGVAG.mjs";
19
19
  import {
20
20
  AggErrorBoundary,
21
21
  Button,
@@ -3009,8 +3009,11 @@ var hasActivityError = (item) => {
3009
3009
  var isVisibleActivityItem = (item) => {
3010
3010
  var _a;
3011
3011
  if (item.type === "user_op" || item.type === "bridge") return false;
3012
- if (item.type === "trade" && item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
3013
- return false;
3012
+ if (item.type === "trade") {
3013
+ if (isOpenOrderStatus(item.status)) return false;
3014
+ if (item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
3015
+ return false;
3016
+ }
3014
3017
  return true;
3015
3018
  };
3016
3019
  var isVisibleUserProfileActivity = (activity) => activity.kind !== "bridge";
@@ -1765,70 +1765,64 @@ var PlaceOrderResolvedView = ({
1765
1765
  classNames == null ? void 0 : classNames.root,
1766
1766
  className
1767
1767
  ),
1768
- children: /* @__PURE__ */ jsxs3(
1769
- "div",
1770
- {
1771
- className: cn(
1772
- "agg-order-panel-body flex flex-col items-center gap-6 p-8",
1773
- classNames == null ? void 0 : classNames.body
1768
+ children: /* @__PURE__ */ jsxs3("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
1769
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-6 p-8", children: [
1770
+ /* @__PURE__ */ jsx4(
1771
+ "div",
1772
+ {
1773
+ className: cn(
1774
+ "flex h-15 w-15 items-center justify-center rounded-full",
1775
+ resolvedIconContainerClassName
1776
+ ),
1777
+ children: /* @__PURE__ */ jsx4(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
1778
+ }
1774
1779
  ),
1775
- children: [
1776
- /* @__PURE__ */ jsx4(
1777
- "div",
1778
- {
1779
- className: cn(
1780
- "flex h-15 w-15 items-center justify-center rounded-full",
1781
- resolvedIconContainerClassName
1782
- ),
1783
- children: /* @__PURE__ */ jsx4(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
1784
- }
1785
- ),
1786
- /* @__PURE__ */ jsxs3(
1787
- "div",
1780
+ /* @__PURE__ */ jsxs3(
1781
+ "div",
1782
+ {
1783
+ className: cn(
1784
+ "agg-order-panel-content flex flex-col items-center gap-1",
1785
+ classNames == null ? void 0 : classNames.content
1786
+ ),
1787
+ children: [
1788
+ tradingState.market ? /* @__PURE__ */ jsx4(Typography, { variant: "body", children: tradingState.market.question }) : null,
1789
+ tradingState.winningOutcome ? /* @__PURE__ */ jsx4(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
1790
+ ]
1791
+ }
1792
+ )
1793
+ ] }),
1794
+ resolvedClaim ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
1795
+ /* @__PURE__ */ jsx4("div", { className: "h-px w-full bg-agg-separator" }),
1796
+ /* @__PURE__ */ jsxs3("div", { className: "flex w-full flex-col gap-5 p-6", children: [
1797
+ /* @__PURE__ */ jsx4(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
1798
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
1799
+ resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
1800
+ /* @__PURE__ */ jsx4("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
1801
+ /* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
1802
+ ] }) : null,
1803
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
1804
+ /* @__PURE__ */ jsx4("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
1805
+ /* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
1806
+ ] }),
1807
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
1808
+ /* @__PURE__ */ jsx4("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
1809
+ /* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
1810
+ ] })
1811
+ ] }),
1812
+ resolvedClaim.onClaim ? /* @__PURE__ */ jsx4(
1813
+ Button,
1788
1814
  {
1789
- className: cn(
1790
- "agg-order-panel-content flex flex-col items-center gap-1",
1791
- classNames == null ? void 0 : classNames.content
1792
- ),
1793
- children: [
1794
- tradingState.market ? /* @__PURE__ */ jsx4(Typography, { variant: "body", children: tradingState.market.question }) : null,
1795
- tradingState.winningOutcome ? /* @__PURE__ */ jsx4(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
1796
- ]
1815
+ size: "large",
1816
+ className: "w-full",
1817
+ onClick: resolvedClaim.onClaim,
1818
+ isLoading: resolvedClaim.isClaiming,
1819
+ disabled: resolvedClaim.isClaiming,
1820
+ children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
1797
1821
  }
1798
- ),
1799
- resolvedClaim ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
1800
- /* @__PURE__ */ jsx4("div", { className: "h-px w-full bg-agg-separator" }),
1801
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-5 p-6", children: [
1802
- /* @__PURE__ */ jsx4(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
1803
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
1804
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
1805
- /* @__PURE__ */ jsx4("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
1806
- /* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
1807
- ] }),
1808
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
1809
- /* @__PURE__ */ jsx4("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
1810
- /* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
1811
- ] }),
1812
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between gap-4", children: [
1813
- /* @__PURE__ */ jsx4("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
1814
- /* @__PURE__ */ jsx4("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
1815
- ] })
1816
- ] }),
1817
- resolvedClaim.onClaim ? /* @__PURE__ */ jsx4(
1818
- Button,
1819
- {
1820
- size: "large",
1821
- onClick: resolvedClaim.onClaim,
1822
- isLoading: resolvedClaim.isClaiming,
1823
- disabled: resolvedClaim.isClaiming,
1824
- children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
1825
- }
1826
- ) : null
1827
- ] })
1828
- ] }) : null
1829
- ]
1830
- }
1831
- )
1822
+ ) : null
1823
+ ] })
1824
+ ] }) : null
1825
+ ] })
1832
1826
  }
1833
1827
  );
1834
1828
  };
@@ -1748,7 +1748,11 @@ var WithdrawAmountStep = ({
1748
1748
  /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
1749
1749
  /* @__PURE__ */ jsxs13("div", { className: "flex items-center justify-between", children: [
1750
1750
  /* @__PURE__ */ jsx13("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
1751
- /* @__PURE__ */ jsx13("p", { className: "agg-type-label text-agg-muted-foreground", children: balanceDisplay })
1751
+ /* @__PURE__ */ jsxs13("p", { className: "agg-type-label text-agg-muted-foreground", children: [
1752
+ labels.withdraw.balancePrefix,
1753
+ " ",
1754
+ balanceDisplay
1755
+ ] })
1752
1756
  ] }),
1753
1757
  /* @__PURE__ */ jsxs13("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
1754
1758
  /* @__PURE__ */ jsx13(
@@ -2191,7 +2195,7 @@ function WithdrawModalControlled({
2191
2195
  });
2192
2196
  const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
2193
2197
  const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
2194
- return /* @__PURE__ */ jsx15(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs15(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
2198
+ return /* @__PURE__ */ jsx15(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs15(Modal.Container, { maxWidth: step === "method" ? "600px" : "480px", "aria-label": "Withdraw", children: [
2195
2199
  step === "method" ? /* @__PURE__ */ jsx15(
2196
2200
  WithdrawMethodStep,
2197
2201
  {
package/dist/index.js CHANGED
@@ -17185,70 +17185,64 @@ var PlaceOrderResolvedView = ({
17185
17185
  classNames == null ? void 0 : classNames.root,
17186
17186
  className
17187
17187
  ),
17188
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
17189
- "div",
17190
- {
17191
- className: cn(
17192
- "agg-order-panel-body flex flex-col items-center gap-6 p-8",
17193
- classNames == null ? void 0 : classNames.body
17188
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
17189
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
17190
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17191
+ "div",
17192
+ {
17193
+ className: cn(
17194
+ "flex h-15 w-15 items-center justify-center rounded-full",
17195
+ resolvedIconContainerClassName
17196
+ ),
17197
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
17198
+ }
17194
17199
  ),
17195
- children: [
17196
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17197
- "div",
17198
- {
17199
- className: cn(
17200
- "flex h-15 w-15 items-center justify-center rounded-full",
17201
- resolvedIconContainerClassName
17202
- ),
17203
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
17204
- }
17205
- ),
17206
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
17207
- "div",
17200
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
17201
+ "div",
17202
+ {
17203
+ className: cn(
17204
+ "agg-order-panel-content flex flex-col items-center gap-1",
17205
+ classNames == null ? void 0 : classNames.content
17206
+ ),
17207
+ children: [
17208
+ tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
17209
+ tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
17210
+ ]
17211
+ }
17212
+ )
17213
+ ] }),
17214
+ resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
17215
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
17216
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
17217
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
17218
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
17219
+ resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
17220
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
17221
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
17222
+ ] }) : null,
17223
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
17224
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
17225
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
17226
+ ] }),
17227
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
17228
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
17229
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
17230
+ ] })
17231
+ ] }),
17232
+ resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17233
+ Button,
17208
17234
  {
17209
- className: cn(
17210
- "agg-order-panel-content flex flex-col items-center gap-1",
17211
- classNames == null ? void 0 : classNames.content
17212
- ),
17213
- children: [
17214
- tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
17215
- tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
17216
- ]
17235
+ size: "large",
17236
+ className: "w-full",
17237
+ onClick: resolvedClaim.onClaim,
17238
+ isLoading: resolvedClaim.isClaiming,
17239
+ disabled: resolvedClaim.isClaiming,
17240
+ children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
17217
17241
  }
17218
- ),
17219
- resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
17220
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
17221
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-5 p-6", children: [
17222
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
17223
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
17224
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
17225
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
17226
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
17227
- ] }),
17228
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
17229
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
17230
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
17231
- ] }),
17232
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
17233
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
17234
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
17235
- ] })
17236
- ] }),
17237
- resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17238
- Button,
17239
- {
17240
- size: "large",
17241
- onClick: resolvedClaim.onClaim,
17242
- isLoading: resolvedClaim.isClaiming,
17243
- disabled: resolvedClaim.isClaiming,
17244
- children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
17245
- }
17246
- ) : null
17247
- ] })
17248
- ] }) : null
17249
- ]
17250
- }
17251
- )
17242
+ ) : null
17243
+ ] })
17244
+ ] }) : null
17245
+ ] })
17252
17246
  }
17253
17247
  );
17254
17248
  };
@@ -21800,8 +21794,11 @@ var hasActivityError = (item) => {
21800
21794
  var isVisibleActivityItem = (item) => {
21801
21795
  var _a;
21802
21796
  if (item.type === "user_op" || item.type === "bridge") return false;
21803
- if (item.type === "trade" && item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
21804
- return false;
21797
+ if (item.type === "trade") {
21798
+ if (isOpenOrderStatus(item.status)) return false;
21799
+ if (item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
21800
+ return false;
21801
+ }
21805
21802
  return true;
21806
21803
  };
21807
21804
  var isVisibleUserProfileActivity = (activity) => activity.kind !== "bridge";
@@ -24194,7 +24191,11 @@ var WithdrawAmountStep = ({
24194
24191
  /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex flex-col gap-2", children: [
24195
24192
  /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex items-center justify-between", children: [
24196
24193
  /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
24197
- /* @__PURE__ */ (0, import_jsx_runtime165.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: balanceDisplay })
24194
+ /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
24195
+ labels.withdraw.balancePrefix,
24196
+ " ",
24197
+ balanceDisplay
24198
+ ] })
24198
24199
  ] }),
24199
24200
  /* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
24200
24201
  /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
@@ -24637,7 +24638,7 @@ function WithdrawModalControlled({
24637
24638
  });
24638
24639
  const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
24639
24640
  const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
24640
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
24641
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(Modal.Container, { maxWidth: step === "method" ? "600px" : "480px", "aria-label": "Withdraw", children: [
24641
24642
  step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
24642
24643
  WithdrawMethodStep,
24643
24644
  {
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  USER_PROFILE_TAB_POSITIONS,
11
11
  UserProfilePage,
12
12
  useHomePageModals
13
- } from "./chunk-UWAN6DRI.mjs";
13
+ } from "./chunk-2HI6K7JF.mjs";
14
14
  import {
15
15
  EventList,
16
16
  EventListItem,
@@ -40,7 +40,7 @@ import {
40
40
  WithdrawModal,
41
41
  clearPendingCardSession,
42
42
  getPendingCardSession
43
- } from "./chunk-VTLEFAAM.mjs";
43
+ } from "./chunk-WPF47BQQ.mjs";
44
44
  import {
45
45
  DEPOSIT_MODAL_OPEN_EVENT,
46
46
  PlaceOrder,
@@ -52,7 +52,7 @@ import {
52
52
  parseVenue,
53
53
  requestAggDepositModalOpen,
54
54
  requestAggWithdrawModalOpen
55
- } from "./chunk-XCECYRTH.mjs";
55
+ } from "./chunk-FS3FGVAG.mjs";
56
56
  import {
57
57
  SETTLEMENT_SECTION_ID,
58
58
  Settlement,
package/dist/modals.js CHANGED
@@ -5823,7 +5823,11 @@ var WithdrawAmountStep = ({
5823
5823
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
5824
5824
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center justify-between", children: [
5825
5825
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
5826
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: balanceDisplay })
5826
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
5827
+ labels.withdraw.balancePrefix,
5828
+ " ",
5829
+ balanceDisplay
5830
+ ] })
5827
5831
  ] }),
5828
5832
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
5829
5833
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
@@ -6266,7 +6270,7 @@ function WithdrawModalControlled({
6266
6270
  });
6267
6271
  const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
6268
6272
  const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
6269
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
6273
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(Modal.Container, { maxWidth: step === "method" ? "600px" : "480px", "aria-label": "Withdraw", children: [
6270
6274
  step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6271
6275
  WithdrawMethodStep,
6272
6276
  {
package/dist/modals.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  WithdrawModal,
14
14
  clearPendingCardSession,
15
15
  getPendingCardSession
16
- } from "./chunk-VTLEFAAM.mjs";
16
+ } from "./chunk-WPF47BQQ.mjs";
17
17
  import {
18
18
  GeoBlockBanner
19
19
  } from "./chunk-5FXMHTVR.mjs";
package/dist/pages.js CHANGED
@@ -15418,70 +15418,64 @@ var PlaceOrderResolvedView = ({
15418
15418
  classNames == null ? void 0 : classNames.root,
15419
15419
  className
15420
15420
  ),
15421
- children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
15422
- "div",
15423
- {
15424
- className: cn(
15425
- "agg-order-panel-body flex flex-col items-center gap-6 p-8",
15426
- classNames == null ? void 0 : classNames.body
15421
+ children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
15422
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
15423
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15424
+ "div",
15425
+ {
15426
+ className: cn(
15427
+ "flex h-15 w-15 items-center justify-center rounded-full",
15428
+ resolvedIconContainerClassName
15429
+ ),
15430
+ children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
15431
+ }
15427
15432
  ),
15428
- children: [
15429
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15430
- "div",
15431
- {
15432
- className: cn(
15433
- "flex h-15 w-15 items-center justify-center rounded-full",
15434
- resolvedIconContainerClassName
15435
- ),
15436
- children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
15437
- }
15438
- ),
15439
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
15440
- "div",
15433
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
15434
+ "div",
15435
+ {
15436
+ className: cn(
15437
+ "agg-order-panel-content flex flex-col items-center gap-1",
15438
+ classNames == null ? void 0 : classNames.content
15439
+ ),
15440
+ children: [
15441
+ tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
15442
+ tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
15443
+ ]
15444
+ }
15445
+ )
15446
+ ] }),
15447
+ resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
15448
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
15449
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
15450
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
15451
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
15452
+ resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
15453
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
15454
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
15455
+ ] }) : null,
15456
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
15457
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
15458
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
15459
+ ] }),
15460
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
15461
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
15462
+ /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
15463
+ ] })
15464
+ ] }),
15465
+ resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15466
+ Button,
15441
15467
  {
15442
- className: cn(
15443
- "agg-order-panel-content flex flex-col items-center gap-1",
15444
- classNames == null ? void 0 : classNames.content
15445
- ),
15446
- children: [
15447
- tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
15448
- tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
15449
- ]
15468
+ size: "large",
15469
+ className: "w-full",
15470
+ onClick: resolvedClaim.onClaim,
15471
+ isLoading: resolvedClaim.isClaiming,
15472
+ disabled: resolvedClaim.isClaiming,
15473
+ children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
15450
15474
  }
15451
- ),
15452
- resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
15453
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
15454
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-5 p-6", children: [
15455
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
15456
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
15457
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
15458
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
15459
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
15460
- ] }),
15461
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
15462
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
15463
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
15464
- ] }),
15465
- /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
15466
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
15467
- /* @__PURE__ */ (0, import_jsx_runtime135.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
15468
- ] })
15469
- ] }),
15470
- resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
15471
- Button,
15472
- {
15473
- size: "large",
15474
- onClick: resolvedClaim.onClaim,
15475
- isLoading: resolvedClaim.isClaiming,
15476
- disabled: resolvedClaim.isClaiming,
15477
- children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
15478
- }
15479
- ) : null
15480
- ] })
15481
- ] }) : null
15482
- ]
15483
- }
15484
- )
15475
+ ) : null
15476
+ ] })
15477
+ ] }) : null
15478
+ ] })
15485
15479
  }
15486
15480
  );
15487
15481
  };
@@ -20089,8 +20083,11 @@ var hasActivityError = (item) => {
20089
20083
  var isVisibleActivityItem = (item) => {
20090
20084
  var _a;
20091
20085
  if (item.type === "user_op" || item.type === "bridge") return false;
20092
- if (item.type === "trade" && item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
20093
- return false;
20086
+ if (item.type === "trade") {
20087
+ if (isOpenOrderStatus(item.status)) return false;
20088
+ if (item.status.toLowerCase() === "failed" && ((_a = parseRawMicroValue(item.filledAmountRaw)) != null ? _a : 0) <= 0)
20089
+ return false;
20090
+ }
20094
20091
  return true;
20095
20092
  };
20096
20093
  var isVisibleUserProfileActivity = (activity) => activity.kind !== "bridge";
package/dist/pages.mjs CHANGED
@@ -7,14 +7,14 @@ import {
7
7
  USER_PROFILE_TAB_POSITIONS,
8
8
  UserProfilePage,
9
9
  useHomePageModals
10
- } from "./chunk-UWAN6DRI.mjs";
10
+ } from "./chunk-2HI6K7JF.mjs";
11
11
  import "./chunk-E45WOOMN.mjs";
12
12
  import {
13
13
  DEPOSIT_MODAL_OPEN_EVENT,
14
14
  WITHDRAW_MODAL_OPEN_EVENT,
15
15
  requestAggDepositModalOpen,
16
16
  requestAggWithdrawModalOpen
17
- } from "./chunk-XCECYRTH.mjs";
17
+ } from "./chunk-FS3FGVAG.mjs";
18
18
  import "./chunk-TBKDLNOE.mjs";
19
19
  import "./chunk-5FXMHTVR.mjs";
20
20
  import "./chunk-34L7ZKJW.mjs";
package/dist/trading.js CHANGED
@@ -7353,70 +7353,64 @@ var PlaceOrderResolvedView = ({
7353
7353
  classNames == null ? void 0 : classNames.root,
7354
7354
  className
7355
7355
  ),
7356
- children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7357
- "div",
7358
- {
7359
- className: cn(
7360
- "agg-order-panel-body flex flex-col items-center gap-6 p-8",
7361
- classNames == null ? void 0 : classNames.body
7356
+ children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
7357
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
7358
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7359
+ "div",
7360
+ {
7361
+ className: cn(
7362
+ "flex h-15 w-15 items-center justify-center rounded-full",
7363
+ resolvedIconContainerClassName
7364
+ ),
7365
+ children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
7366
+ }
7362
7367
  ),
7363
- children: [
7364
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7365
- "div",
7366
- {
7367
- className: cn(
7368
- "flex h-15 w-15 items-center justify-center rounded-full",
7369
- resolvedIconContainerClassName
7370
- ),
7371
- children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
7372
- }
7373
- ),
7374
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7375
- "div",
7368
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7369
+ "div",
7370
+ {
7371
+ className: cn(
7372
+ "agg-order-panel-content flex flex-col items-center gap-1",
7373
+ classNames == null ? void 0 : classNames.content
7374
+ ),
7375
+ children: [
7376
+ tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
7377
+ tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
7378
+ ]
7379
+ }
7380
+ )
7381
+ ] }),
7382
+ resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
7383
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
7384
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
7385
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
7386
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7387
+ resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7388
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
7389
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
7390
+ ] }) : null,
7391
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7392
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
7393
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
7394
+ ] }),
7395
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7396
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
7397
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
7398
+ ] })
7399
+ ] }),
7400
+ resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7401
+ Button,
7376
7402
  {
7377
- className: cn(
7378
- "agg-order-panel-content flex flex-col items-center gap-1",
7379
- classNames == null ? void 0 : classNames.content
7380
- ),
7381
- children: [
7382
- tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
7383
- tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
7384
- ]
7403
+ size: "large",
7404
+ className: "w-full",
7405
+ onClick: resolvedClaim.onClaim,
7406
+ isLoading: resolvedClaim.isClaiming,
7407
+ disabled: resolvedClaim.isClaiming,
7408
+ children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
7385
7409
  }
7386
- ),
7387
- resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
7388
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
7389
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-5 p-6", children: [
7390
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Typography, { variant: "body-strong", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
7391
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7392
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7393
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
7394
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
7395
- ] }),
7396
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7397
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
7398
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
7399
- ] }),
7400
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7401
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
7402
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
7403
- ] })
7404
- ] }),
7405
- resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7406
- Button,
7407
- {
7408
- size: "large",
7409
- onClick: resolvedClaim.onClaim,
7410
- isLoading: resolvedClaim.isClaiming,
7411
- disabled: resolvedClaim.isClaiming,
7412
- children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
7413
- }
7414
- ) : null
7415
- ] })
7416
- ] }) : null
7417
- ]
7418
- }
7419
- )
7410
+ ) : null
7411
+ ] })
7412
+ ] }) : null
7413
+ ] })
7420
7414
  }
7421
7415
  );
7422
7416
  };
package/dist/trading.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SettlementDetails,
7
7
  parseAmount,
8
8
  parseVenue
9
- } from "./chunk-XCECYRTH.mjs";
9
+ } from "./chunk-FS3FGVAG.mjs";
10
10
  import {
11
11
  SETTLEMENT_SECTION_ID,
12
12
  Settlement,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/ui",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Pre-built React component library for the AGG prediction market aggregator. Tailwind-based, themeable, with primitives, event surfaces, trading flows, full pages, and modals.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",