@agg-build/ui 1.2.2 → 1.2.4

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.
package/dist/index.js CHANGED
@@ -5686,8 +5686,7 @@ var getDefaultEventListTabs = (labels) => {
5686
5686
  value: import_sdk2.Venue.hyperliquid,
5687
5687
  label: labels.venues.hyperliquid,
5688
5688
  venueLogo: import_sdk2.Venue.hyperliquid,
5689
- venues: [import_sdk2.Venue.hyperliquid],
5690
- isComingSoon: true
5689
+ venues: [import_sdk2.Venue.hyperliquid]
5691
5690
  }
5692
5691
  ];
5693
5692
  };
@@ -17285,7 +17284,7 @@ var renderRouteCard = ({
17285
17284
  var _a, _b;
17286
17285
  const showSplitDetails = isSelected && isExpanded && card.kind === "split" && !!((_a = card.rows) == null ? void 0 : _a.length);
17287
17286
  const ariaLabel = [card.label, card.hint, card.value].filter(Boolean).join(" ");
17288
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
17287
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17289
17288
  "button",
17290
17289
  {
17291
17290
  type: "button",
@@ -17304,72 +17303,69 @@ var renderRouteCard = ({
17304
17303
  isSelected && !card.isUnavailable ? "border border-agg-trade-highlight-border bg-gradient-to-b from-agg-trade-highlight-surface-from to-agg-trade-highlight-surface-to" : "border-transparent bg-agg-secondary-hover"
17305
17304
  ),
17306
17305
  onClick: () => onSelect(card.id),
17307
- children: [
17308
- isSelected && !card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-card-glow pointer-events-none absolute -inset-x-px -bottom-px h-11 bg-linear-to-b from-transparent to-agg-trade-highlight-glow" }) : null,
17309
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
17310
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
17311
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
17312
- card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17313
- Icon,
17314
- {
17315
- name: "sparkles-filled",
17316
- size: "small",
17317
- className: cn(
17318
- "mt-0.5 h-4 w-4 shrink-0",
17319
- isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
17320
- ),
17321
- "aria-hidden": "true"
17322
- }
17323
- ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17324
- VenueLogo,
17325
- {
17326
- venue: card.venue,
17327
- size: "small",
17328
- ariaLabel: getTradingVenueLabel(card.venue)
17329
- }
17330
- ) : null,
17331
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
17332
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center gap-1.5", children: [
17333
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
17334
- card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17335
- Icon,
17336
- {
17337
- name: "lock",
17338
- size: "xs",
17339
- className: "shrink-0 text-agg-muted-foreground",
17340
- "aria-hidden": "true"
17341
- }
17342
- ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17343
- Icon,
17344
- {
17345
- name: showSplitDetails ? "chevron-up" : "chevron-down",
17346
- size: "small",
17347
- className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
17348
- "aria-hidden": "true"
17349
- }
17350
- ) : null
17351
- ] }),
17352
- card.hint ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
17353
- ] })
17354
- ] }),
17355
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17356
- "p",
17306
+ children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
17307
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
17308
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
17309
+ card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17310
+ Icon,
17357
17311
  {
17312
+ name: "sparkles-filled",
17313
+ size: "small",
17358
17314
  className: cn(
17359
- "agg-route-card-value",
17360
- "shrink-0 whitespace-nowrap",
17361
- isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
17315
+ "mt-0.5 h-4 w-4 shrink-0",
17316
+ isSelected ? "text-agg-trade-highlight-accent" : "text-agg-muted-foreground/70"
17362
17317
  ),
17363
- children: card.value
17318
+ "aria-hidden": "true"
17364
17319
  }
17365
- )
17320
+ ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17321
+ VenueLogo,
17322
+ {
17323
+ venue: card.venue,
17324
+ size: "small",
17325
+ ariaLabel: getTradingVenueLabel(card.venue)
17326
+ }
17327
+ ) : null,
17328
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
17329
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)("div", { className: "flex items-center gap-1.5", children: [
17330
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
17331
+ card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17332
+ Icon,
17333
+ {
17334
+ name: "lock",
17335
+ size: "xs",
17336
+ className: "shrink-0 text-agg-muted-foreground",
17337
+ "aria-hidden": "true"
17338
+ }
17339
+ ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17340
+ Icon,
17341
+ {
17342
+ name: showSplitDetails ? "chevron-up" : "chevron-down",
17343
+ size: "small",
17344
+ className: "h-4 w-4 shrink-0 text-agg-muted-foreground/50",
17345
+ "aria-hidden": "true"
17346
+ }
17347
+ ) : null
17348
+ ] }),
17349
+ card.hint ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
17350
+ ] })
17366
17351
  ] }),
17367
- showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
17368
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
17369
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
17370
- ] }) : null
17371
- ] })
17372
- ]
17352
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
17353
+ "p",
17354
+ {
17355
+ className: cn(
17356
+ "agg-route-card-value",
17357
+ "shrink-0 whitespace-nowrap",
17358
+ isSelected && !card.isUnavailable ? "text-agg-lg font-agg-bold leading-agg-7 text-agg-trade-highlight-accent" : "text-agg-base leading-agg-6 text-agg-foreground"
17359
+ ),
17360
+ children: card.value
17361
+ }
17362
+ )
17363
+ ] }),
17364
+ showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
17365
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
17366
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
17367
+ ] }) : null
17368
+ ] })
17373
17369
  }
17374
17370
  );
17375
17371
  };
@@ -18751,7 +18747,7 @@ var PlaceOrder = ({
18751
18747
  }
18752
18748
  ) : null
18753
18749
  ] }),
18754
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? smartRoute.isFetching ? Array.from({ length: visibleRouteCards.length }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(PlaceOrderRouteCardSkeleton, {}, index)) : visibleRouteCards.map((card) => {
18750
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
18755
18751
  return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_react31.Fragment, { children: renderRouteCard({
18756
18752
  card,
18757
18753
  enableAnimations,
@@ -19953,18 +19949,20 @@ var formatChainIdLabel = (chainId) => {
19953
19949
 
19954
19950
  // src/pages/user-profile/components/available-balance-card.tsx
19955
19951
  var import_jsx_runtime145 = require("react/jsx-runtime");
19956
- var CHAIN_ID_TO_ICON = {
19957
- "1": "ethereum",
19958
- "10": "ethereum",
19959
- // Optimism (EVM)
19960
- "56": "ethereum",
19961
- // BNB Chain (EVM)
19962
- "137": "polygon",
19963
- "324": "ethereum",
19964
- // zkSync (EVM)
19965
- "8453": "base",
19966
- "42161": "arbitrum",
19967
- "792703809": "solana"
19952
+ var BASE_URL = "https://assets.snagsolutions.io";
19953
+ var CHAIN_ID_TO_ICON_URL = {
19954
+ "1": `${BASE_URL}/public/prediction-markets/logos/ETH.svg`,
19955
+ "10": `${BASE_URL}/public/prediction-markets/logos/ETH.svg`,
19956
+ // Optimism
19957
+ "56": `${BASE_URL}/public/prediction-markets/logos/BNB.svg`,
19958
+ "137": `${BASE_URL}/public/prediction-markets/logos/Polygon.svg`,
19959
+ "324": `${BASE_URL}/public/web/icons/chains/zksync/colored.svg`,
19960
+ // zkSync (no new logo)
19961
+ "747": `${BASE_URL}/public/prediction-markets/logos/Flow.svg`,
19962
+ "8453": `${BASE_URL}/public/prediction-markets/logos/Base.svg`,
19963
+ "42161": `${BASE_URL}/public/prediction-markets/logos/Arbitrum.svg`,
19964
+ "2741": `${BASE_URL}/public/prediction-markets/logos/Abstract.svg`,
19965
+ "792703809": `${BASE_URL}/public/prediction-markets/logos/Solana.svg`
19968
19966
  };
19969
19967
  var CHAIN_VENUE_MAP = {
19970
19968
  "137": ["polymarket"],
@@ -19974,17 +19972,19 @@ var CHAIN_VENUE_MAP = {
19974
19972
  "56": ["limitless", "opinion"]
19975
19973
  // BNB
19976
19974
  };
19977
- var chainIconName = (label2, key) => {
19978
- if (key && CHAIN_ID_TO_ICON[key]) return CHAIN_ID_TO_ICON[key];
19975
+ var chainIconUrl = (label2, key) => {
19976
+ if (key && CHAIN_ID_TO_ICON_URL[key]) return CHAIN_ID_TO_ICON_URL[key];
19979
19977
  const k = label2.trim().toLowerCase();
19980
- if (k.includes("polygon")) return "polygon";
19981
- if (k.includes("solana")) return "solana";
19982
- if (k.includes("base")) return "base";
19983
- if (k.includes("arbitrum")) return "arbitrum";
19984
- if (k.includes("optimism")) return "ethereum";
19985
- if (k.includes("bnb")) return "ethereum";
19986
- if (k.includes("zksync")) return "ethereum";
19987
- if (k.includes("ethereum") || k.includes("eth")) return "ethereum";
19978
+ if (k.includes("polygon")) return CHAIN_ID_TO_ICON_URL["137"];
19979
+ if (k.includes("solana")) return CHAIN_ID_TO_ICON_URL["792703809"];
19980
+ if (k.includes("base")) return CHAIN_ID_TO_ICON_URL["8453"];
19981
+ if (k.includes("arbitrum")) return CHAIN_ID_TO_ICON_URL["42161"];
19982
+ if (k.includes("bnb")) return CHAIN_ID_TO_ICON_URL["56"];
19983
+ if (k.includes("flow")) return CHAIN_ID_TO_ICON_URL["747"];
19984
+ if (k.includes("abstract")) return CHAIN_ID_TO_ICON_URL["2741"];
19985
+ if (k.includes("optimism")) return CHAIN_ID_TO_ICON_URL["10"];
19986
+ if (k.includes("zksync")) return CHAIN_ID_TO_ICON_URL["324"];
19987
+ if (k.includes("ethereum") || k.includes("eth")) return CHAIN_ID_TO_ICON_URL["1"];
19988
19988
  return void 0;
19989
19989
  };
19990
19990
  var AvailableBalanceCard = ({
@@ -20036,7 +20036,7 @@ var AvailableBalanceCard = ({
20036
20036
  /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("div", { className: "font-agg-sans text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: "Balance by network" }),
20037
20037
  /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("div", { role: "list", className: "agg-balance-list flex flex-col gap-3 w-full", children: chains.map((row) => {
20038
20038
  var _a;
20039
- const icon = chainIconName(row.label, row.key);
20039
+ const iconUrl = chainIconUrl(row.label, row.key);
20040
20040
  return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
20041
20041
  "div",
20042
20042
  {
@@ -20044,7 +20044,15 @@ var AvailableBalanceCard = ({
20044
20044
  className: "agg-balance-row flex items-center justify-between self-stretch gap-3 w-full",
20045
20045
  children: [
20046
20046
  /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
20047
- icon ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", { className: "flex h-4 w-4 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon, { name: icon, size: "small", className: "text-agg-foreground" }) }) : /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", { className: "flex h-4 w-4 items-center justify-center rounded-[4px] border border-agg-separator text-[10px] leading-3 text-agg-muted-foreground", children: row.label.slice(0, 2).toUpperCase() }),
20047
+ iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", { className: "overflow-clip flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
20048
+ "img",
20049
+ {
20050
+ src: iconUrl,
20051
+ alt: "",
20052
+ "aria-hidden": true,
20053
+ className: "size-full object-contain"
20054
+ }
20055
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] border border-agg-separator text-[10px] leading-3 text-agg-muted-foreground", children: row.label.slice(0, 2).toUpperCase() }),
20048
20056
  /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", { className: "truncate font-agg-sans text-agg-sm leading-5 font-agg-normal text-agg-foreground", children: row.label })
20049
20057
  ] }),
20050
20058
  /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("span", { className: "w-[100px] shrink-0 whitespace-nowrap text-right tabular-nums font-agg-sans text-agg-sm leading-agg-5 font-agg-bold text-agg-foreground", children: row.balance.toLocaleString("en-US", {
@@ -20077,24 +20085,24 @@ var AvailableBalanceCard = ({
20077
20085
  className: "agg-balance-trigger flex min-h-[20px] min-w-[20px] items-center gap-1 rounded-[6px] border-0 bg-agg-secondary-hover p-1.5",
20078
20086
  children: [
20079
20087
  (chains.slice(0, 4).length > 0 ? chains.slice(0, 4) : [{ key: "placeholder", label: "", balance: 0, accountCount: 0 }]).map((row) => {
20080
- const icon = chainIconName(row.label, row.key);
20081
- return icon ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
20088
+ const iconUrl = chainIconUrl(row.label, row.key);
20089
+ return iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
20082
20090
  "span",
20083
20091
  {
20084
- className: "relative z-0 flex h-4 w-4 items-center justify-center rounded-[4px] bg-agg-secondary",
20085
- children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon, { name: icon, size: "small", className: "text-agg-foreground" })
20092
+ className: "overflow-clip relative flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] bg-agg-secondary",
20093
+ children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("img", { src: iconUrl, alt: row.label, className: "size-full object-contain" })
20086
20094
  },
20087
20095
  `icon-${row.key}`
20088
20096
  ) : /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
20089
20097
  "span",
20090
20098
  {
20091
- className: "relative z-0 flex h-4 w-4 items-center justify-center rounded-[4px] bg-agg-secondary text-[10px] leading-3 text-agg-muted-foreground",
20099
+ className: "relative flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] bg-agg-secondary text-[10px] leading-3 text-agg-muted-foreground",
20092
20100
  children: row.label ? row.label.slice(0, 2).toUpperCase() : ""
20093
20101
  },
20094
20102
  `icon-${row.key}`
20095
20103
  );
20096
20104
  }),
20097
- chains.length > 4 ? /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("span", { className: "relative z-0 flex h-4 w-4 items-center justify-center rounded-[4px] bg-agg-secondary font-agg-sans text-[10px] leading-3 text-agg-muted-foreground", children: [
20105
+ chains.length > 4 ? /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("span", { className: "relative flex h-4 w-4 shrink-0 items-center justify-center rounded-[4px] bg-agg-secondary font-agg-sans text-[10px] leading-3 text-agg-muted-foreground", children: [
20098
20106
  "+",
20099
20107
  chains.length - 4
20100
20108
  ] }) : null
@@ -22243,7 +22251,7 @@ var UserProfilePage = ({
22243
22251
  const currentPriceCents = typeof displayCurrentPrice === "number" ? Math.round(displayCurrentPrice * 100) : null;
22244
22252
  const pnlPrefix = (displayPnlValue != null ? displayPnlValue : 0) >= 0 ? "+" : "";
22245
22253
  const pnlPercent = displayPnlPercent == null ? null : displayPnlPercent.toFixed(2);
22246
- const winningOutcomeIds = outcome.winner === true ? outcome.venueBreakdown.map((breakdown) => breakdown.venueMarketOutcomeId).filter((id) => !!id) : [];
22254
+ const winningOutcomeIds = outcome.winner === true ? outcome.venueBreakdown.map((breakdown) => breakdown.venueMarketOutcomeId) : [];
22247
22255
  return {
22248
22256
  id: `${group.targetMarketId}-${outcome.label}-${(_a2 = outcome.title) != null ? _a2 : ""}`,
22249
22257
  eventId,
@@ -22474,40 +22482,51 @@ var UserProfilePage = ({
22474
22482
  UserProfilePage.displayName = "UserProfilePage";
22475
22483
 
22476
22484
  // src/deposit/index.tsx
22477
- var import_react42 = require("react");
22485
+ var import_react40 = require("react");
22478
22486
  var import_hooks69 = require("@agg-build/hooks");
22479
22487
  var import_deposit = require("@agg-build/hooks/deposit");
22480
22488
 
22481
22489
  // src/shared/constants.ts
22482
- var import_react38 = __toESM(require("react"));
22483
22490
  var USDC = {
22484
22491
  value: "USDC",
22485
22492
  label: "USDC",
22486
22493
  iconUrl: "https://assets.snagsolutions.io/public/web/icons/usdc.svg"
22487
22494
  };
22488
22495
  var SUPPORTED_NETWORKS = [
22496
+ {
22497
+ value: "abstract",
22498
+ label: "Abstract",
22499
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/Abstract.svg",
22500
+ tokens: [USDC]
22501
+ },
22489
22502
  {
22490
22503
  value: "arbitrum",
22491
22504
  label: "Arbitrum One",
22492
- iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/arbitrum/colored.svg",
22505
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/Arbitrum.svg",
22493
22506
  tokens: [USDC]
22494
22507
  },
22495
22508
  {
22496
22509
  value: "base",
22497
22510
  label: "Base",
22498
- iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/base/colored.svg",
22511
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/Base.svg",
22499
22512
  tokens: [USDC]
22500
22513
  },
22501
22514
  {
22502
22515
  value: "bnb",
22503
22516
  label: "BNB Chain",
22504
- iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/bnb/colored.svg",
22517
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/BNB.svg",
22518
+ tokens: [USDC]
22519
+ },
22520
+ {
22521
+ value: "flow",
22522
+ label: "Flow",
22523
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/Flow.svg",
22505
22524
  tokens: [USDC]
22506
22525
  },
22507
22526
  {
22508
22527
  value: "mainnet",
22509
22528
  label: "Ethereum",
22510
- iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/eth/colored.svg",
22529
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/ETH.svg",
22511
22530
  tokens: [USDC]
22512
22531
  },
22513
22532
  {
@@ -22519,13 +22538,13 @@ var SUPPORTED_NETWORKS = [
22519
22538
  {
22520
22539
  value: "polygon",
22521
22540
  label: "Polygon Mainnet",
22522
- iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/polygon/colored.svg",
22541
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/Polygon.svg",
22523
22542
  tokens: [USDC]
22524
22543
  },
22525
22544
  {
22526
22545
  value: "solana",
22527
22546
  label: "Solana",
22528
- iconUrl: "https://assets.snagsolutions.io/public/web/icons/chains/solana/dark.svg",
22547
+ iconUrl: "https://assets.snagsolutions.io/public/prediction-markets/logos/Solana.svg",
22529
22548
  tokens: [USDC]
22530
22549
  },
22531
22550
  {
@@ -22536,15 +22555,11 @@ var SUPPORTED_NETWORKS = [
22536
22555
  }
22537
22556
  ];
22538
22557
  var mapNetworksToOptions = () => {
22539
- return SUPPORTED_NETWORKS.map((n) => {
22540
- const Component2 = CHAIN_ICON_COMPONENTS[n.value];
22541
- return {
22542
- value: n.value,
22543
- label: n.label,
22544
- iconUrl: n.iconUrl,
22545
- icon: Component2 ? import_react38.default.createElement(Component2) : void 0
22546
- };
22547
- });
22558
+ return SUPPORTED_NETWORKS.map((n) => ({
22559
+ value: n.value,
22560
+ label: n.label,
22561
+ iconUrl: n.iconUrl
22562
+ }));
22548
22563
  };
22549
22564
  var DEFAULT_CURRENCY_OPTIONS = [
22550
22565
  {
@@ -22599,27 +22614,19 @@ var CHAIN_ID_TO_SLUG = {
22599
22614
  "56": "bnb",
22600
22615
  "137": "polygon",
22601
22616
  "324": "zksync",
22617
+ "747": "flow",
22602
22618
  "8453": "base",
22603
22619
  "42161": "arbitrum",
22620
+ "2741": "abstract",
22604
22621
  "792703809": "solana"
22605
22622
  };
22606
- var CHAIN_ICON_COMPONENTS = {
22607
- mainnet: EthereumIcon,
22608
- polygon: PolygonIcon,
22609
- base: BaseIcon,
22610
- arbitrum: ArbitrumIcon,
22611
- solana: SolanaIcon,
22612
- bnb: BnbIcon
22613
- };
22614
22623
  var withNetworkIcons = (options) => {
22615
22624
  const bySlug = new Map(SUPPORTED_NETWORKS.map((n) => [n.value, n.iconUrl]));
22616
22625
  return options.map((o) => {
22617
- var _a, _b, _c;
22626
+ var _a, _b;
22618
22627
  const slug = (_a = CHAIN_ID_TO_SLUG[o.value]) != null ? _a : o.value;
22619
- const Component2 = CHAIN_ICON_COMPONENTS[slug];
22620
22628
  return __spreadProps(__spreadValues({}, o), {
22621
- iconUrl: (_b = o.iconUrl) != null ? _b : bySlug.get(slug),
22622
- icon: (_c = o.icon) != null ? _c : Component2 ? import_react38.default.createElement(Component2) : void 0
22629
+ iconUrl: (_b = o.iconUrl) != null ? _b : bySlug.get(slug)
22623
22630
  });
22624
22631
  });
22625
22632
  };
@@ -22642,13 +22649,29 @@ var mergeSelectOptionsUnique = (base, fill) => {
22642
22649
  };
22643
22650
 
22644
22651
  // src/deposit/deposit-modal.constants.ts
22645
- var import_react39 = __toESM(require("react"));
22652
+ var BASE_URL2 = "https://assets.snagsolutions.io";
22646
22653
  var CARD_NETWORK_OPTIONS = [
22647
- { value: "ethereum", label: "Ethereum", icon: import_react39.default.createElement(EthereumIcon) },
22648
- { value: "arbitrum", label: "Arbitrum", icon: import_react39.default.createElement(ArbitrumIcon) },
22649
- { value: "base", label: "Base", icon: import_react39.default.createElement(BaseIcon) },
22650
- { value: "solana", label: "Solana", icon: import_react39.default.createElement(SolanaIcon) },
22651
- { value: "polygon", label: "Polygon", icon: import_react39.default.createElement(PolygonIcon) }
22654
+ {
22655
+ value: "ethereum",
22656
+ label: "Ethereum",
22657
+ iconUrl: `${BASE_URL2}/public/prediction-markets/logos/ETH.svg`
22658
+ },
22659
+ {
22660
+ value: "arbitrum",
22661
+ label: "Arbitrum",
22662
+ iconUrl: `${BASE_URL2}/public/prediction-markets/logos/Arbitrum.svg`
22663
+ },
22664
+ { value: "base", label: "Base", iconUrl: `${BASE_URL2}/public/prediction-markets/logos/Base.svg` },
22665
+ {
22666
+ value: "solana",
22667
+ label: "Solana",
22668
+ iconUrl: `${BASE_URL2}/public/prediction-markets/logos/Solana.svg`
22669
+ },
22670
+ {
22671
+ value: "polygon",
22672
+ label: "Polygon",
22673
+ iconUrl: `${BASE_URL2}/public/prediction-markets/logos/Polygon.svg`
22674
+ }
22652
22675
  ];
22653
22676
  var NETWORK_TO_CURRENCY_CODE = {
22654
22677
  ethereum: "USDC",
@@ -22761,7 +22784,7 @@ var DepositMethodStep = ({
22761
22784
 
22762
22785
  // src/deposit/steps/card-deposit.tsx
22763
22786
  var import_hooks61 = require("@agg-build/hooks");
22764
- var import_react40 = require("react");
22787
+ var import_react38 = require("react");
22765
22788
  var import_jsx_runtime154 = require("react/jsx-runtime");
22766
22789
  var CardDepositStep = ({
22767
22790
  amount,
@@ -22779,8 +22802,8 @@ var CardDepositStep = ({
22779
22802
  onContinue
22780
22803
  }) => {
22781
22804
  const labels = (0, import_hooks61.useLabels)();
22782
- const [localAmount, setLocalAmount] = (0, import_react40.useState)(amount);
22783
- (0, import_react40.useEffect)(() => {
22805
+ const [localAmount, setLocalAmount] = (0, import_react38.useState)(amount);
22806
+ (0, import_react38.useEffect)(() => {
22784
22807
  setLocalAmount(amount);
22785
22808
  }, [amount]);
22786
22809
  const numericAmount = Number(localAmount) || 0;
@@ -23450,7 +23473,7 @@ var CardPurchaseSuccessStep = ({
23450
23473
 
23451
23474
  // src/deposit/steps/wallet-processing.tsx
23452
23475
  var import_hooks67 = require("@agg-build/hooks");
23453
- var import_react41 = require("react");
23476
+ var import_react39 = require("react");
23454
23477
  var import_jsx_runtime161 = require("react/jsx-runtime");
23455
23478
  var WalletProcessingStep = ({
23456
23479
  steps,
@@ -23458,7 +23481,7 @@ var WalletProcessingStep = ({
23458
23481
  onComplete
23459
23482
  }) => {
23460
23483
  const labels = (0, import_hooks67.useLabels)();
23461
- (0, import_react41.useEffect)(() => {
23484
+ (0, import_react39.useEffect)(() => {
23462
23485
  const allDone = steps.length > 0 && steps.every((s) => s.status === "complete");
23463
23486
  if (allDone) {
23464
23487
  onComplete();
@@ -23628,28 +23651,28 @@ function DepositModalControlled({
23628
23651
  const { walletActions } = (0, import_hooks69.useAggUiConfig)();
23629
23652
  const labels = (0, import_hooks69.useLabels)();
23630
23653
  const defaultMethod = isWeb3User ? "wallet" : "crypto";
23631
- const [step, setStep] = (0, import_react42.useState)(
23654
+ const [step, setStep] = (0, import_react40.useState)(
23632
23655
  () => pendingCardPurchaseSummary ? "card-success" : "method"
23633
23656
  );
23634
- const [highlightedMethod, setHighlightedMethod] = (0, import_react42.useState)(defaultMethod);
23635
- const walletSubmitInFlightRef = (0, import_react42.useRef)(false);
23636
- const [isWalletSubmitting, setIsWalletSubmitting] = (0, import_react42.useState)(false);
23637
- const [cardProviders, setCardProviders] = (0, import_react42.useState)([]);
23638
- const [quotesLoading, setQuotesLoading] = (0, import_react42.useState)(false);
23639
- const [quotesError, setQuotesError] = (0, import_react42.useState)(null);
23640
- const [sessionError, setSessionError] = (0, import_react42.useState)(null);
23641
- const [pendingProviderName, setPendingProviderName] = (0, import_react42.useState)("");
23642
- const [pendingProviderWalletAddress, setPendingProviderWalletAddress] = (0, import_react42.useState)("");
23643
- (0, import_react42.useEffect)(() => {
23657
+ const [highlightedMethod, setHighlightedMethod] = (0, import_react40.useState)(defaultMethod);
23658
+ const walletSubmitInFlightRef = (0, import_react40.useRef)(false);
23659
+ const [isWalletSubmitting, setIsWalletSubmitting] = (0, import_react40.useState)(false);
23660
+ const [cardProviders, setCardProviders] = (0, import_react40.useState)([]);
23661
+ const [quotesLoading, setQuotesLoading] = (0, import_react40.useState)(false);
23662
+ const [quotesError, setQuotesError] = (0, import_react40.useState)(null);
23663
+ const [sessionError, setSessionError] = (0, import_react40.useState)(null);
23664
+ const [pendingProviderName, setPendingProviderName] = (0, import_react40.useState)("");
23665
+ const [pendingProviderWalletAddress, setPendingProviderWalletAddress] = (0, import_react40.useState)("");
23666
+ (0, import_react40.useEffect)(() => {
23644
23667
  if (pendingCardPurchaseSummary) {
23645
23668
  clearPendingCardSession();
23646
23669
  setStep("card-success");
23647
23670
  }
23648
23671
  }, [pendingCardPurchaseSummary]);
23649
- const [walletChainId, setWalletChainId] = (0, import_react42.useState)("");
23650
- const [walletToken, setWalletToken] = (0, import_react42.useState)("");
23651
- const [sendChainId, setSendChainId] = (0, import_react42.useState)("");
23652
- const [sendToken, setSendToken] = (0, import_react42.useState)("");
23672
+ const [walletChainId, setWalletChainId] = (0, import_react40.useState)("");
23673
+ const [walletToken, setWalletToken] = (0, import_react40.useState)("");
23674
+ const [sendChainId, setSendChainId] = (0, import_react40.useState)("");
23675
+ const [sendToken, setSendToken] = (0, import_react40.useState)("");
23653
23676
  const {
23654
23677
  isReady,
23655
23678
  isTimedOut,
@@ -23657,14 +23680,14 @@ function DepositModalControlled({
23657
23680
  supportedChains,
23658
23681
  getAddress
23659
23682
  } = (0, import_hooks69.useDepositAddresses)({ enabled: open });
23660
- const fallbackNetworkOptions = (0, import_react42.useMemo)(() => mapNetworksToOptions(), []);
23661
- const networkOptions = (0, import_react42.useMemo)(() => {
23683
+ const fallbackNetworkOptions = (0, import_react40.useMemo)(() => mapNetworksToOptions(), []);
23684
+ const networkOptions = (0, import_react40.useMemo)(() => {
23662
23685
  if (!(supportedChains == null ? void 0 : supportedChains.length)) return fallbackNetworkOptions;
23663
23686
  return withNetworkIcons(
23664
23687
  supportedChains.map((c) => ({ value: String(c.chainId), label: c.name }))
23665
23688
  );
23666
23689
  }, [supportedChains, fallbackNetworkOptions]);
23667
- const walletNetworkOptions = (0, import_react42.useMemo)(() => {
23690
+ const walletNetworkOptions = (0, import_react40.useMemo)(() => {
23668
23691
  if (!(supportedChains == null ? void 0 : supportedChains.length) || !connectedWalletKind) return networkOptions;
23669
23692
  const filtered = supportedChains.filter(
23670
23693
  (c) => connectedWalletKind === "solana" ? import_deposit.SVM_CHAIN_IDS.has(c.chainId) : !import_deposit.SVM_CHAIN_IDS.has(c.chainId)
@@ -23672,17 +23695,17 @@ function DepositModalControlled({
23672
23695
  if (filtered.length === 0) return networkOptions;
23673
23696
  return withNetworkIcons(filtered.map((c) => ({ value: String(c.chainId), label: c.name })));
23674
23697
  }, [supportedChains, networkOptions, connectedWalletKind]);
23675
- const walletTokenOptions = (0, import_react42.useMemo)(() => {
23698
+ const walletTokenOptions = (0, import_react40.useMemo)(() => {
23676
23699
  const chain = supportedChains == null ? void 0 : supportedChains.find((c) => String(c.chainId) === walletChainId);
23677
23700
  if (!chain) return withTokenIcons(DEFAULT_CURRENCY_OPTIONS);
23678
23701
  return withTokenIcons(chain.tokens.map((t) => ({ value: t.symbol, label: t.symbol })));
23679
23702
  }, [supportedChains, walletChainId]);
23680
- const sendTokenOptions = (0, import_react42.useMemo)(() => {
23703
+ const sendTokenOptions = (0, import_react40.useMemo)(() => {
23681
23704
  const chain = supportedChains == null ? void 0 : supportedChains.find((c) => String(c.chainId) === sendChainId);
23682
23705
  if (!chain) return withTokenIcons(DEFAULT_CURRENCY_OPTIONS);
23683
23706
  return withTokenIcons(chain.tokens.map((t) => ({ value: t.symbol, label: t.symbol })));
23684
23707
  }, [supportedChains, sendChainId]);
23685
- (0, import_react42.useEffect)(() => {
23708
+ (0, import_react40.useEffect)(() => {
23686
23709
  if (walletNetworkOptions.length > 0) {
23687
23710
  if (!walletChainId || !walletNetworkOptions.some((o) => o.value === walletChainId)) {
23688
23711
  const preferred = initialWalletChainId && walletNetworkOptions.some((o) => o.value === initialWalletChainId) ? initialWalletChainId : walletNetworkOptions[0].value;
@@ -23690,25 +23713,25 @@ function DepositModalControlled({
23690
23713
  }
23691
23714
  }
23692
23715
  }, [walletNetworkOptions, walletChainId, initialWalletChainId]);
23693
- (0, import_react42.useEffect)(() => {
23716
+ (0, import_react40.useEffect)(() => {
23694
23717
  if (networkOptions.length > 0) {
23695
23718
  if (!sendChainId || !networkOptions.some((o) => o.value === sendChainId)) {
23696
23719
  setSendChainId(networkOptions[0].value);
23697
23720
  }
23698
23721
  }
23699
23722
  }, [networkOptions, sendChainId]);
23700
- (0, import_react42.useEffect)(() => {
23723
+ (0, import_react40.useEffect)(() => {
23701
23724
  if (walletTokenOptions.length > 0) setWalletToken(walletTokenOptions[0].value);
23702
23725
  }, [walletTokenOptions]);
23703
- (0, import_react42.useEffect)(() => {
23726
+ (0, import_react40.useEffect)(() => {
23704
23727
  if (sendTokenOptions.length > 0) setSendToken(sendTokenOptions[0].value);
23705
23728
  }, [sendTokenOptions]);
23706
- (0, import_react42.useEffect)(() => {
23729
+ (0, import_react40.useEffect)(() => {
23707
23730
  if (walletChainId) {
23708
23731
  onWalletNetworkChange == null ? void 0 : onWalletNetworkChange(walletChainId);
23709
23732
  }
23710
23733
  }, [walletChainId, onWalletNetworkChange]);
23711
- (0, import_react42.useEffect)(() => {
23734
+ (0, import_react40.useEffect)(() => {
23712
23735
  if (walletToken) {
23713
23736
  onWalletTokenChange == null ? void 0 : onWalletTokenChange(walletToken);
23714
23737
  }
@@ -23727,7 +23750,7 @@ function DepositModalControlled({
23727
23750
  fromWallet: walletFlow.walletLabel,
23728
23751
  gasFee: ""
23729
23752
  }, walletFlow.successSummary);
23730
- (0, import_react42.useEffect)(() => {
23753
+ (0, import_react40.useEffect)(() => {
23731
23754
  if (step === "wallet-processing" && !isWalletSubmitting && walletFlow.transactionStatus === "settled") {
23732
23755
  setStep("wallet-success");
23733
23756
  }
@@ -24053,7 +24076,7 @@ var DepositModal = (props) => {
24053
24076
  DepositModal.displayName = "DepositModal";
24054
24077
 
24055
24078
  // src/withdraw/index.tsx
24056
- var import_react44 = require("react");
24079
+ var import_react42 = require("react");
24057
24080
  var import_withdraw2 = require("@agg-build/hooks/withdraw");
24058
24081
 
24059
24082
  // src/withdraw/steps/withdraw-method.tsx
@@ -24243,7 +24266,7 @@ var WithdrawAmountStep = ({
24243
24266
  };
24244
24267
 
24245
24268
  // src/withdraw/steps/withdraw-success.tsx
24246
- var import_react43 = require("react");
24269
+ var import_react41 = require("react");
24247
24270
  var import_hooks72 = require("@agg-build/hooks");
24248
24271
  var import_withdraw = require("@agg-build/hooks/withdraw");
24249
24272
 
@@ -24377,7 +24400,7 @@ var WithdrawSuccessStep = ({
24377
24400
  features: { enableAnimations }
24378
24401
  } = (0, import_hooks72.useSdkUiConfig)();
24379
24402
  const { state } = (0, import_withdraw.useWithdrawalLifecycle)(withdrawalId);
24380
- const [isTimelineExpanded, setIsTimelineExpanded] = (0, import_react43.useState)(true);
24403
+ const [isTimelineExpanded, setIsTimelineExpanded] = (0, import_react41.useState)(true);
24381
24404
  const walletFlowLabels = labels.withdraw.walletFlow;
24382
24405
  const { groups, finalStep, hasDetails } = buildWithdrawalLifecycleSteps({
24383
24406
  pending: state.pending,
@@ -24385,7 +24408,7 @@ var WithdrawSuccessStep = ({
24385
24408
  legs: state.legs,
24386
24409
  walletFlowLabels
24387
24410
  });
24388
- (0, import_react43.useEffect)(() => {
24411
+ (0, import_react41.useEffect)(() => {
24389
24412
  if (!state.terminal) return;
24390
24413
  if (state.status !== "completed") return;
24391
24414
  const timer = window.setTimeout(() => onClose(), 1500);
@@ -24577,10 +24600,10 @@ function WithdrawModalControlled({
24577
24600
  onSelectWithdrawProvider,
24578
24601
  onDoneWithdraw
24579
24602
  }) {
24580
- const [step, setStep] = (0, import_react44.useState)("method");
24581
- const [isConfirming, setIsConfirming] = (0, import_react44.useState)(false);
24582
- const [confirmError, setConfirmError] = (0, import_react44.useState)(null);
24583
- (0, import_react44.useEffect)(() => {
24603
+ const [step, setStep] = (0, import_react42.useState)("method");
24604
+ const [isConfirming, setIsConfirming] = (0, import_react42.useState)(false);
24605
+ const [confirmError, setConfirmError] = (0, import_react42.useState)(null);
24606
+ (0, import_react42.useEffect)(() => {
24584
24607
  if (!open) {
24585
24608
  setStep("method");
24586
24609
  setIsConfirming(false);
@@ -24663,7 +24686,7 @@ var WithdrawModal = (props) => {
24663
24686
  WithdrawModal.displayName = "WithdrawModal";
24664
24687
 
24665
24688
  // src/onboarding/index.tsx
24666
- var import_react49 = require("react");
24689
+ var import_react47 = require("react");
24667
24690
  var import_hooks78 = require("@agg-build/hooks");
24668
24691
  var Dialog6 = __toESM(require("@radix-ui/react-dialog"));
24669
24692
 
@@ -24683,7 +24706,7 @@ var ONBOARDING_STEPS = {
24683
24706
  var ONCHAIN_VENUES = [import_sdk19.Venue.polymarket, import_sdk19.Venue.opinion, import_sdk19.Venue.predict];
24684
24707
 
24685
24708
  // src/onboarding/steps/how-it-works.tsx
24686
- var import_react45 = require("react");
24709
+ var import_react43 = require("react");
24687
24710
  var import_hooks73 = require("@agg-build/hooks");
24688
24711
  var import_jsx_runtime168 = require("react/jsx-runtime");
24689
24712
  var defaultIcons = {
@@ -24694,10 +24717,10 @@ var defaultIcons = {
24694
24717
  };
24695
24718
  var HowItWorksStep = ({ onContinue, icons }) => {
24696
24719
  const labels = (0, import_hooks73.useLabels)();
24697
- const scrollRef = (0, import_react45.useRef)(null);
24698
- const [showTopGradient, setShowTopGradient] = (0, import_react45.useState)(false);
24699
- const [showBottomGradient, setShowBottomGradient] = (0, import_react45.useState)(true);
24700
- const handleScroll = (0, import_react45.useCallback)(() => {
24720
+ const scrollRef = (0, import_react43.useRef)(null);
24721
+ const [showTopGradient, setShowTopGradient] = (0, import_react43.useState)(false);
24722
+ const [showBottomGradient, setShowBottomGradient] = (0, import_react43.useState)(true);
24723
+ const handleScroll = (0, import_react43.useCallback)(() => {
24701
24724
  const el = scrollRef.current;
24702
24725
  if (!el) return;
24703
24726
  setShowTopGradient(el.scrollTop > 0);
@@ -24766,20 +24789,20 @@ var HowItWorksStep = ({ onContinue, icons }) => {
24766
24789
  HowItWorksStep.displayName = "HowItWorksStep";
24767
24790
 
24768
24791
  // src/onboarding/steps/profile-setup.tsx
24769
- var import_react46 = require("react");
24792
+ var import_react44 = require("react");
24770
24793
  var import_hooks74 = require("@agg-build/hooks");
24771
24794
  var import_jsx_runtime169 = require("react/jsx-runtime");
24772
24795
  var ProfileSetupStep = ({ onContinue }) => {
24773
24796
  const labels = (0, import_hooks74.useLabels)();
24774
- const [username, setUsername] = (0, import_react46.useState)("");
24775
- const [avatarFile, setAvatarFile] = (0, import_react46.useState)();
24776
- const [avatarPreview, setAvatarPreview] = (0, import_react46.useState)();
24777
- const fileInputRef = (0, import_react46.useRef)(null);
24778
- const handleAvatarClick = (0, import_react46.useCallback)(() => {
24797
+ const [username, setUsername] = (0, import_react44.useState)("");
24798
+ const [avatarFile, setAvatarFile] = (0, import_react44.useState)();
24799
+ const [avatarPreview, setAvatarPreview] = (0, import_react44.useState)();
24800
+ const fileInputRef = (0, import_react44.useRef)(null);
24801
+ const handleAvatarClick = (0, import_react44.useCallback)(() => {
24779
24802
  var _a;
24780
24803
  (_a = fileInputRef.current) == null ? void 0 : _a.click();
24781
24804
  }, []);
24782
- const handleFileChange = (0, import_react46.useCallback)((e) => {
24805
+ const handleFileChange = (0, import_react44.useCallback)((e) => {
24783
24806
  var _a;
24784
24807
  const file = (_a = e.target.files) == null ? void 0 : _a[0];
24785
24808
  if (!file) return;
@@ -24791,7 +24814,7 @@ var ProfileSetupStep = ({ onContinue }) => {
24791
24814
  };
24792
24815
  reader.readAsDataURL(file);
24793
24816
  }, []);
24794
- const handleContinue = (0, import_react46.useCallback)(() => {
24817
+ const handleContinue = (0, import_react44.useCallback)(() => {
24795
24818
  onContinue({
24796
24819
  username,
24797
24820
  avatarFile,
@@ -25033,7 +25056,7 @@ ConnectAccountsStep.displayName = "ConnectAccountsStep";
25033
25056
 
25034
25057
  // src/onboarding/steps/connect-kalshi-modal.tsx
25035
25058
  var import_sdk21 = require("@agg-build/sdk");
25036
- var import_react47 = require("react");
25059
+ var import_react45 = require("react");
25037
25060
  var import_hooks76 = require("@agg-build/hooks");
25038
25061
  var Dialog4 = __toESM(require("@radix-ui/react-dialog"));
25039
25062
  var import_jsx_runtime171 = require("react/jsx-runtime");
@@ -25043,15 +25066,15 @@ var ConnectKalshiModal = ({
25043
25066
  onVerify
25044
25067
  }) => {
25045
25068
  const labels = (0, import_hooks76.useLabels)();
25046
- const [apiKeyId, setApiKeyId] = (0, import_react47.useState)("");
25047
- const [privateKey, setPrivateKey] = (0, import_react47.useState)("");
25048
- const [verifying, setVerifying] = (0, import_react47.useState)(false);
25049
- const [error, setError] = (0, import_react47.useState)();
25069
+ const [apiKeyId, setApiKeyId] = (0, import_react45.useState)("");
25070
+ const [privateKey, setPrivateKey] = (0, import_react45.useState)("");
25071
+ const [verifying, setVerifying] = (0, import_react45.useState)(false);
25072
+ const [error, setError] = (0, import_react45.useState)();
25050
25073
  const canVerify = apiKeyId.trim().length > 0 && privateKey.trim().length > 0;
25051
- const handleCancel = (0, import_react47.useCallback)(() => {
25074
+ const handleCancel = (0, import_react45.useCallback)(() => {
25052
25075
  onOpenChange(false);
25053
25076
  }, [onOpenChange]);
25054
- const handleVerify = (0, import_react47.useCallback)(() => __async(null, null, function* () {
25077
+ const handleVerify = (0, import_react45.useCallback)(() => __async(null, null, function* () {
25055
25078
  if (!canVerify || verifying) return;
25056
25079
  setVerifying(true);
25057
25080
  setError(void 0);
@@ -25080,7 +25103,7 @@ var ConnectKalshiModal = ({
25080
25103
  privateKey,
25081
25104
  verifying
25082
25105
  ]);
25083
- const handleOpenChange = (0, import_react47.useCallback)(
25106
+ const handleOpenChange = (0, import_react45.useCallback)(
25084
25107
  (value) => {
25085
25108
  if (value) {
25086
25109
  setApiKeyId("");
@@ -25283,7 +25306,7 @@ var ConnectKalshiModal = ({
25283
25306
  ConnectKalshiModal.displayName = "ConnectKalshiModal";
25284
25307
 
25285
25308
  // src/onboarding/steps/connect-onchain-modal.tsx
25286
- var import_react48 = require("react");
25309
+ var import_react46 = require("react");
25287
25310
  var import_hooks77 = require("@agg-build/hooks");
25288
25311
  var Dialog5 = __toESM(require("@radix-ui/react-dialog"));
25289
25312
  var import_jsx_runtime172 = require("react/jsx-runtime");
@@ -25293,12 +25316,12 @@ var ConnectOnchainModal = ({
25293
25316
  onConnect
25294
25317
  }) => {
25295
25318
  const labels = (0, import_hooks77.useLabels)();
25296
- const [connecting, setConnecting] = (0, import_react48.useState)(false);
25297
- const [error, setError] = (0, import_react48.useState)();
25298
- const handleCancel = (0, import_react48.useCallback)(() => {
25319
+ const [connecting, setConnecting] = (0, import_react46.useState)(false);
25320
+ const [error, setError] = (0, import_react46.useState)();
25321
+ const handleCancel = (0, import_react46.useCallback)(() => {
25299
25322
  onOpenChange(false);
25300
25323
  }, [onOpenChange]);
25301
- const handleConnect = (0, import_react48.useCallback)(() => __async(null, null, function* () {
25324
+ const handleConnect = (0, import_react46.useCallback)(() => __async(null, null, function* () {
25302
25325
  if (connecting) return;
25303
25326
  setConnecting(true);
25304
25327
  setError(void 0);
@@ -25313,7 +25336,7 @@ var ConnectOnchainModal = ({
25313
25336
  setConnecting(false);
25314
25337
  }
25315
25338
  }), [connecting, labels.onboarding.connectOnchainModal.fallbackError, onConnect, onOpenChange]);
25316
- const handleOpenChange = (0, import_react48.useCallback)(
25339
+ const handleOpenChange = (0, import_react46.useCallback)(
25317
25340
  (value) => {
25318
25341
  if (value) {
25319
25342
  setError(void 0);
@@ -25405,48 +25428,48 @@ var OnboardingModal = ({
25405
25428
  }) => {
25406
25429
  var _a;
25407
25430
  const labels = (0, import_hooks78.useLabels)();
25408
- const [step, setStep] = (0, import_react49.useState)(ONBOARDING_STEPS.HOW_IT_WORKS);
25431
+ const [step, setStep] = (0, import_react47.useState)(ONBOARDING_STEPS.HOW_IT_WORKS);
25409
25432
  const stepLabels = {
25410
25433
  [ONBOARDING_STEPS.HOW_IT_WORKS]: labels.onboarding.modal.stepHowItWorks,
25411
25434
  [ONBOARDING_STEPS.PROFILE_SETUP]: labels.onboarding.modal.stepProfileSetup,
25412
25435
  [ONBOARDING_STEPS.CONNECT_ACCOUNTS]: labels.onboarding.modal.stepConnectAccounts
25413
25436
  };
25414
25437
  const resolvedTitle = (_a = stepLabels[step]) != null ? _a : labels.onboarding.modal.title;
25415
- const [kalshiModalOpen, setKalshiModalOpen] = (0, import_react49.useState)(false);
25416
- const [kalshiConnected, setKalshiConnected] = (0, import_react49.useState)(false);
25417
- const [onchainModalOpen, setOnchainModalOpen] = (0, import_react49.useState)(false);
25418
- const [onchainConnected, setOnchainConnected] = (0, import_react49.useState)(false);
25419
- (0, import_react49.useEffect)(() => {
25438
+ const [kalshiModalOpen, setKalshiModalOpen] = (0, import_react47.useState)(false);
25439
+ const [kalshiConnected, setKalshiConnected] = (0, import_react47.useState)(false);
25440
+ const [onchainModalOpen, setOnchainModalOpen] = (0, import_react47.useState)(false);
25441
+ const [onchainConnected, setOnchainConnected] = (0, import_react47.useState)(false);
25442
+ (0, import_react47.useEffect)(() => {
25420
25443
  if (open) {
25421
25444
  setStep(ONBOARDING_STEPS.HOW_IT_WORKS);
25422
25445
  setKalshiConnected(false);
25423
25446
  setOnchainConnected(false);
25424
25447
  }
25425
25448
  }, [open]);
25426
- const handleHowItWorksContinue = (0, import_react49.useCallback)(() => {
25449
+ const handleHowItWorksContinue = (0, import_react47.useCallback)(() => {
25427
25450
  setStep(ONBOARDING_STEPS.PROFILE_SETUP);
25428
25451
  }, []);
25429
- const handleProfileContinue = (0, import_react49.useCallback)(
25452
+ const handleProfileContinue = (0, import_react47.useCallback)(
25430
25453
  (data) => {
25431
25454
  onProfileSubmit == null ? void 0 : onProfileSubmit(data);
25432
25455
  setStep(ONBOARDING_STEPS.CONNECT_ACCOUNTS);
25433
25456
  },
25434
25457
  [onProfileSubmit]
25435
25458
  );
25436
- const handleConnectContinue = (0, import_react49.useCallback)(() => {
25459
+ const handleConnectContinue = (0, import_react47.useCallback)(() => {
25437
25460
  onComplete == null ? void 0 : onComplete();
25438
25461
  }, [onComplete]);
25439
- const handleOpenOnchainModal = (0, import_react49.useCallback)(() => {
25462
+ const handleOpenOnchainModal = (0, import_react47.useCallback)(() => {
25440
25463
  setOnchainModalOpen(true);
25441
25464
  }, []);
25442
- const handleOnchainConnect = (0, import_react49.useCallback)(() => __async(null, null, function* () {
25465
+ const handleOnchainConnect = (0, import_react47.useCallback)(() => __async(null, null, function* () {
25443
25466
  yield onConnectOnchain == null ? void 0 : onConnectOnchain();
25444
25467
  setOnchainConnected(true);
25445
25468
  }), [onConnectOnchain]);
25446
- const handleOpenKalshiModal = (0, import_react49.useCallback)(() => {
25469
+ const handleOpenKalshiModal = (0, import_react47.useCallback)(() => {
25447
25470
  setKalshiModalOpen(true);
25448
25471
  }, []);
25449
- const handleKalshiVerify = (0, import_react49.useCallback)(
25472
+ const handleKalshiVerify = (0, import_react47.useCallback)(
25450
25473
  (credentials) => __async(null, null, function* () {
25451
25474
  yield onConnectKalshi == null ? void 0 : onConnectKalshi(credentials);
25452
25475
  setKalshiConnected(true);
@@ -25501,7 +25524,7 @@ OnboardingModal.displayName = "OnboardingModal";
25501
25524
 
25502
25525
  // src/profile/index.tsx
25503
25526
  var import_sdk22 = require("@agg-build/sdk");
25504
- var import_react52 = require("react");
25527
+ var import_react50 = require("react");
25505
25528
  var import_hooks81 = require("@agg-build/hooks");
25506
25529
 
25507
25530
  // src/profile/profile-modal.constants.ts
@@ -25519,7 +25542,7 @@ var PROFILE_TAB_ITEMS = [
25519
25542
  ];
25520
25543
 
25521
25544
  // src/profile/tabs/about-tab.tsx
25522
- var import_react50 = require("react");
25545
+ var import_react48 = require("react");
25523
25546
  var import_hooks79 = require("@agg-build/hooks");
25524
25547
  var import_jsx_runtime174 = require("react/jsx-runtime");
25525
25548
  var AboutTab = ({
@@ -25532,12 +25555,12 @@ var AboutTab = ({
25532
25555
  avatarError: _avatarError
25533
25556
  }) => {
25534
25557
  const labels = (0, import_hooks79.useLabels)();
25535
- const fileInputRef = (0, import_react50.useRef)(null);
25536
- const handleAvatarClick = (0, import_react50.useCallback)(() => {
25558
+ const fileInputRef = (0, import_react48.useRef)(null);
25559
+ const handleAvatarClick = (0, import_react48.useCallback)(() => {
25537
25560
  var _a;
25538
25561
  (_a = fileInputRef.current) == null ? void 0 : _a.click();
25539
25562
  }, []);
25540
- const handleFileChange = (0, import_react50.useCallback)(
25563
+ const handleFileChange = (0, import_react48.useCallback)(
25541
25564
  (e) => {
25542
25565
  var _a;
25543
25566
  const file = (_a = e.target.files) == null ? void 0 : _a[0];
@@ -25651,7 +25674,7 @@ var AboutTab = ({
25651
25674
  AboutTab.displayName = "AboutTab";
25652
25675
 
25653
25676
  // src/profile/tabs/accounts-wallets-tab.tsx
25654
- var import_react51 = require("react");
25677
+ var import_react49 = require("react");
25655
25678
  var import_hooks80 = require("@agg-build/hooks");
25656
25679
  var import_jsx_runtime175 = require("react/jsx-runtime");
25657
25680
  var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
@@ -25688,13 +25711,13 @@ var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runti
25688
25711
  var TRADING_ACCESS_VENUES = ["kalshi", "polymarket", "opinion", "predict"];
25689
25712
  var VerifyIdentityButton = ({ onError }) => {
25690
25713
  const client = (0, import_hooks80.useAggClient)();
25691
- const [isInitiating, setIsInitiating] = (0, import_react51.useState)(false);
25692
- const [needsDepositAddress, setNeedsDepositAddress] = (0, import_react51.useState)(false);
25714
+ const [isInitiating, setIsInitiating] = (0, import_react49.useState)(false);
25715
+ const [needsDepositAddress, setNeedsDepositAddress] = (0, import_react49.useState)(false);
25693
25716
  const { isReady, isTimedOut } = (0, import_hooks80.useDepositAddresses)({
25694
25717
  enabled: needsDepositAddress,
25695
25718
  poll: true
25696
25719
  });
25697
- (0, import_react51.useEffect)(() => {
25720
+ (0, import_react49.useEffect)(() => {
25698
25721
  if (!isInitiating || !isReady) return;
25699
25722
  const redirectUri = window.location.href;
25700
25723
  client.initiateKyc("kalshi", redirectUri).then((res) => {
@@ -25708,14 +25731,14 @@ var VerifyIdentityButton = ({ onError }) => {
25708
25731
  setNeedsDepositAddress(false);
25709
25732
  });
25710
25733
  }, [isReady, isInitiating, client, onError]);
25711
- (0, import_react51.useEffect)(() => {
25734
+ (0, import_react49.useEffect)(() => {
25712
25735
  if (isTimedOut && isInitiating) {
25713
25736
  setIsInitiating(false);
25714
25737
  setNeedsDepositAddress(false);
25715
25738
  onError == null ? void 0 : onError(new Error("Deposit address provisioning timed out"));
25716
25739
  }
25717
25740
  }, [isTimedOut, isInitiating, onError]);
25718
- const handleClick = (0, import_react51.useCallback)(() => {
25741
+ const handleClick = (0, import_react49.useCallback)(() => {
25719
25742
  setIsInitiating(true);
25720
25743
  setNeedsDepositAddress(true);
25721
25744
  }, []);
@@ -25880,18 +25903,18 @@ var ProfileModal = ({
25880
25903
  var _a, _b, _c, _d, _e, _f, _g, _h, _i;
25881
25904
  const client = (0, import_hooks81.useAggClient)();
25882
25905
  const { user, startAuth } = (0, import_hooks81.useAggAuthState)();
25883
- const [activeTab, setActiveTab] = (0, import_react52.useState)(PROFILE_TAB_KEYS.ABOUT);
25906
+ const [activeTab, setActiveTab] = (0, import_react50.useState)(PROFILE_TAB_KEYS.ABOUT);
25884
25907
  const resolvedInitialUsername = (_a = username != null ? username : user == null ? void 0 : user.username) != null ? _a : "";
25885
- const [draftUsername, setDraftUsername] = (0, import_react52.useState)(resolvedInitialUsername);
25886
- const [draftAvatarFile, setDraftAvatarFile] = (0, import_react52.useState)();
25887
- const [draftAvatarPreview, setDraftAvatarPreview] = (0, import_react52.useState)();
25888
- const [isSaving, setIsSaving] = (0, import_react52.useState)(false);
25889
- const [avatarTypeError, setAvatarTypeError] = (0, import_react52.useState)(null);
25890
- (0, import_react52.useEffect)(() => {
25908
+ const [draftUsername, setDraftUsername] = (0, import_react50.useState)(resolvedInitialUsername);
25909
+ const [draftAvatarFile, setDraftAvatarFile] = (0, import_react50.useState)();
25910
+ const [draftAvatarPreview, setDraftAvatarPreview] = (0, import_react50.useState)();
25911
+ const [isSaving, setIsSaving] = (0, import_react50.useState)(false);
25912
+ const [avatarTypeError, setAvatarTypeError] = (0, import_react50.useState)(null);
25913
+ (0, import_react50.useEffect)(() => {
25891
25914
  var _a2;
25892
25915
  setDraftUsername((_a2 = username != null ? username : user == null ? void 0 : user.username) != null ? _a2 : "");
25893
25916
  }, [username, user == null ? void 0 : user.username]);
25894
- const handleOpenChange = (0, import_react52.useCallback)(
25917
+ const handleOpenChange = (0, import_react50.useCallback)(
25895
25918
  (isOpen) => {
25896
25919
  var _a2;
25897
25920
  if (!isOpen) {
@@ -25915,7 +25938,7 @@ var ProfileModal = ({
25915
25938
  setDraftAvatarPreview
25916
25939
  ]
25917
25940
  );
25918
- const handleDraftAvatarChange = (0, import_react52.useCallback)(
25941
+ const handleDraftAvatarChange = (0, import_react50.useCallback)(
25919
25942
  (file, preview) => {
25920
25943
  const ACCEPTED_AVATAR_TYPES = ["image/jpeg", "image/png", "image/gif", "image/webp"];
25921
25944
  if (file && !ACCEPTED_AVATAR_TYPES.includes(file.type)) {
@@ -25930,7 +25953,7 @@ var ProfileModal = ({
25930
25953
  );
25931
25954
  const originalUsername = (_b = username != null ? username : user == null ? void 0 : user.username) != null ? _b : "";
25932
25955
  const hasChanges = draftUsername !== originalUsername || draftAvatarFile !== void 0;
25933
- const handleSave = (0, import_react52.useCallback)(() => __async(null, null, function* () {
25956
+ const handleSave = (0, import_react50.useCallback)(() => __async(null, null, function* () {
25934
25957
  var _a2, _b2;
25935
25958
  setIsSaving(true);
25936
25959
  try {
@@ -25975,7 +25998,7 @@ var ProfileModal = ({
25975
25998
  onSave,
25976
25999
  originalUsername
25977
26000
  ]);
25978
- const handleCancel = (0, import_react52.useCallback)(() => {
26001
+ const handleCancel = (0, import_react50.useCallback)(() => {
25979
26002
  handleOpenChange(false);
25980
26003
  }, [handleOpenChange]);
25981
26004
  const isAccountConnected = (providers) => {
@@ -26019,7 +26042,7 @@ var ProfileModal = ({
26019
26042
  if (typeof window === "undefined") return;
26020
26043
  ((_a2 = window.top) != null ? _a2 : window).location.assign(url);
26021
26044
  };
26022
- const handleConnectTwitter = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26045
+ const handleConnectTwitter = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26023
26046
  const result = yield startAuth({
26024
26047
  provider: "twitter",
26025
26048
  redirectUrl: resolveRedirectUrl()
@@ -26029,7 +26052,7 @@ var ProfileModal = ({
26029
26052
  navigateTopWindow(result.url);
26030
26053
  }
26031
26054
  }), [onConnectTwitter, startAuth]);
26032
- const handleConnectGoogle = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26055
+ const handleConnectGoogle = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26033
26056
  const result = yield startAuth({
26034
26057
  provider: "google",
26035
26058
  redirectUrl: resolveRedirectUrl()
@@ -26039,7 +26062,7 @@ var ProfileModal = ({
26039
26062
  navigateTopWindow(result.url);
26040
26063
  }
26041
26064
  }), [onConnectGoogle, startAuth]);
26042
- const handleConnectApple = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26065
+ const handleConnectApple = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26043
26066
  const result = yield startAuth({
26044
26067
  provider: "apple",
26045
26068
  redirectUrl: resolveRedirectUrl()
@@ -26049,22 +26072,22 @@ var ProfileModal = ({
26049
26072
  navigateTopWindow(result.url);
26050
26073
  }
26051
26074
  }), [onConnectApple, startAuth]);
26052
- const handleDisconnectTwitter = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26075
+ const handleDisconnectTwitter = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26053
26076
  yield client.disconnectAccount("twitter");
26054
26077
  yield client.getCurrentUser();
26055
26078
  onDisconnectTwitter == null ? void 0 : onDisconnectTwitter();
26056
26079
  }), [client, onDisconnectTwitter]);
26057
- const handleDisconnectGoogle = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26080
+ const handleDisconnectGoogle = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26058
26081
  yield client.disconnectAccount("google");
26059
26082
  yield client.getCurrentUser();
26060
26083
  onDisconnectGoogle == null ? void 0 : onDisconnectGoogle();
26061
26084
  }), [client, onDisconnectGoogle]);
26062
- const handleDisconnectApple = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26085
+ const handleDisconnectApple = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26063
26086
  yield client.disconnectAccount("apple");
26064
26087
  yield client.getCurrentUser();
26065
26088
  onDisconnectApple == null ? void 0 : onDisconnectApple();
26066
26089
  }), [client, onDisconnectApple]);
26067
- const handleConnectEmail = (0, import_react52.useCallback)(() => __async(null, null, function* () {
26090
+ const handleConnectEmail = (0, import_react50.useCallback)(() => __async(null, null, function* () {
26068
26091
  var _a2;
26069
26092
  const typedEmail = typeof window !== "undefined" ? (_a2 = window.prompt("Enter your email to receive a magic link")) == null ? void 0 : _a2.trim() : void 0;
26070
26093
  if (!typedEmail) return;
@@ -26075,7 +26098,7 @@ var ProfileModal = ({
26075
26098
  });
26076
26099
  onConnectEmail == null ? void 0 : onConnectEmail();
26077
26100
  }), [onConnectEmail, startAuth]);
26078
- const handleDisconnectWallet = (0, import_react52.useCallback)(
26101
+ const handleDisconnectWallet = (0, import_react50.useCallback)(
26079
26102
  (wallet) => __async(null, null, function* () {
26080
26103
  const normalizedChain = wallet.chain.toLowerCase();
26081
26104
  const provider = normalizedChain === "solana" || normalizedChain === "svm" ? "solana_wallet" : "wallet";
@@ -26085,7 +26108,7 @@ var ProfileModal = ({
26085
26108
  }),
26086
26109
  [client, onDisconnectWallet]
26087
26110
  );
26088
- const providerActionMap = (0, import_react52.useMemo)(
26111
+ const providerActionMap = (0, import_react50.useMemo)(
26089
26112
  () => ({
26090
26113
  twitter: {
26091
26114
  connect: () => {
@@ -26127,7 +26150,7 @@ var ProfileModal = ({
26127
26150
  handleDisconnectTwitter
26128
26151
  ]
26129
26152
  );
26130
- const resolvedWallets = (0, import_react52.useMemo)(() => {
26153
+ const resolvedWallets = (0, import_react50.useMemo)(() => {
26131
26154
  var _a2, _b2;
26132
26155
  if (wallets) return wallets;
26133
26156
  return (_b2 = (_a2 = user == null ? void 0 : user.wallets) == null ? void 0 : _a2.map((wallet) => {
@@ -26139,7 +26162,7 @@ var ProfileModal = ({
26139
26162
  };
26140
26163
  })) != null ? _b2 : [];
26141
26164
  }, [user == null ? void 0 : user.wallets, wallets]);
26142
- const resolvedExchanges = (0, import_react52.useMemo)(() => {
26165
+ const resolvedExchanges = (0, import_react50.useMemo)(() => {
26143
26166
  var _a2, _b2;
26144
26167
  if (exchanges !== void 0) return exchanges;
26145
26168
  const walletAccount = (_a2 = user == null ? void 0 : user.accounts) == null ? void 0 : _a2.find(
@@ -26150,7 +26173,7 @@ var ProfileModal = ({
26150
26173
  const displayAddress = (_b2 = shortenAddress(addr)) != null ? _b2 : addr;
26151
26174
  return EVM_WALLET_VENUES.map((venue) => ({ venue, displayAddress, verified: false }));
26152
26175
  }, [exchanges, user == null ? void 0 : user.accounts]);
26153
- const handleDisconnectExchange = (0, import_react52.useCallback)(
26176
+ const handleDisconnectExchange = (0, import_react50.useCallback)(
26154
26177
  (venue) => __async(null, null, function* () {
26155
26178
  if (exchanges !== void 0) {
26156
26179
  onDisconnectExchangeProp == null ? void 0 : onDisconnectExchangeProp(venue);
@@ -26307,7 +26330,7 @@ ProfileModal.displayName = "ProfileModal";
26307
26330
 
26308
26331
  // src/geo-block-modal/index.tsx
26309
26332
  var import_hooks82 = require("@agg-build/hooks");
26310
- var import_react53 = require("react");
26333
+ var import_react51 = require("react");
26311
26334
  var import_jsx_runtime177 = require("react/jsx-runtime");
26312
26335
  var GeoBlockModal = ({
26313
26336
  open,
@@ -26316,7 +26339,7 @@ var GeoBlockModal = ({
26316
26339
  classNames
26317
26340
  }) => {
26318
26341
  const labels = (0, import_hooks82.useLabels)();
26319
- const handleConfirm = (0, import_react53.useCallback)(() => {
26342
+ const handleConfirm = (0, import_react51.useCallback)(() => {
26320
26343
  onConfirm == null ? void 0 : onConfirm();
26321
26344
  onOpenChange(false);
26322
26345
  }, [onConfirm, onOpenChange]);