@rhinestone/deposit-modal 0.4.0 → 0.4.2

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.
@@ -62,7 +62,9 @@ var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
62
62
 
63
63
 
64
64
 
65
- var _chunkOQVLEVNRcjs = require('./chunk-OQVLEVNR.cjs');
65
+
66
+
67
+ var _chunkEDUWRMQIcjs = require('./chunk-EDUWRMQI.cjs');
66
68
 
67
69
 
68
70
  var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
@@ -119,7 +121,6 @@ var _viem = require('viem');
119
121
 
120
122
 
121
123
 
122
-
123
124
  // src/components/steps/AssetSelectStep.tsx
124
125
 
125
126
 
@@ -133,7 +134,6 @@ function AssetSelectStep({
133
134
  service,
134
135
  onContinue,
135
136
  onTotalBalanceComputed,
136
- onAssetsLoaded,
137
137
  onDisconnect
138
138
  }) {
139
139
  const [assets, setAssets] = _react.useState.call(void 0, []);
@@ -142,13 +142,12 @@ function AssetSelectStep({
142
142
  const [error, setError] = _react.useState.call(void 0, null);
143
143
  const defaultAssetId = _react.useMemo.call(void 0, () => {
144
144
  if (!defaultSourceChain || !defaultSourceToken) return null;
145
- return _chunkOQVLEVNRcjs.getAssetId.call(void 0, {
145
+ return _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
146
146
  chainId: defaultSourceChain,
147
147
  token: defaultSourceToken
148
148
  });
149
149
  }, [defaultSourceChain, defaultSourceToken]);
150
- const onTotalBalanceComputedRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
151
- const onAssetsLoadedRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onAssetsLoaded);
150
+ const onTotalBalanceComputedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
152
151
  _react.useEffect.call(void 0, () => {
153
152
  let active = true;
154
153
  function emitAssetsUpdate(currentAssets) {
@@ -157,7 +156,6 @@ function AssetSelectStep({
157
156
  0
158
157
  );
159
158
  _optionalChain([onTotalBalanceComputedRef, 'access', _2 => _2.current, 'optionalCall', _3 => _3(total)]);
160
- if (currentAssets.length > 0) _optionalChain([onAssetsLoadedRef, 'access', _4 => _4.current, 'optionalCall', _5 => _5(currentAssets)]);
161
159
  }
162
160
  async function loadPortfolio() {
163
161
  if (!address) {
@@ -169,7 +167,7 @@ function AssetSelectStep({
169
167
  try {
170
168
  const portfolio = await service.fetchPortfolio(address);
171
169
  if (!active) return;
172
- const portfolioAssets = _chunkOQVLEVNRcjs.portfolioToAssets.call(void 0, portfolio.tokens);
170
+ const portfolioAssets = _chunkEDUWRMQIcjs.portfolioToAssets.call(void 0, portfolio.tokens);
173
171
  setAssets(portfolioAssets);
174
172
  emitAssetsUpdate(portfolioAssets);
175
173
  const hasNative = portfolioAssets.some(
@@ -201,7 +199,7 @@ function AssetSelectStep({
201
199
  return () => {
202
200
  active = false;
203
201
  };
204
- }, [address, publicClient, service, onTotalBalanceComputedRef, onAssetsLoadedRef]);
202
+ }, [address, publicClient, service, onTotalBalanceComputedRef]);
205
203
  _react.useEffect.call(void 0, () => {
206
204
  if (!defaultAssetId || selectedAssetId) return;
207
205
  if (assets.some((asset) => asset.id === defaultAssetId)) {
@@ -209,12 +207,12 @@ function AssetSelectStep({
209
207
  }
210
208
  }, [assets, defaultAssetId, selectedAssetId]);
211
209
  const allowedChainSet = _react.useMemo.call(void 0,
212
- () => _optionalChain([allowedRoutes, 'optionalAccess', _6 => _6.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
213
- [_optionalChain([allowedRoutes, 'optionalAccess', _7 => _7.sourceChains])]
210
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _4 => _4.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
211
+ [_optionalChain([allowedRoutes, 'optionalAccess', _5 => _5.sourceChains])]
214
212
  );
215
213
  const allowedTokenSet = _react.useMemo.call(void 0,
216
- () => _optionalChain([allowedRoutes, 'optionalAccess', _8 => _8.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
217
- [_optionalChain([allowedRoutes, 'optionalAccess', _9 => _9.sourceTokens])]
214
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _6 => _6.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
215
+ [_optionalChain([allowedRoutes, 'optionalAccess', _7 => _7.sourceTokens])]
218
216
  );
219
217
  const rows = _react.useMemo.call(void 0, () => {
220
218
  return assets.filter((a) => {
@@ -245,7 +243,7 @@ function AssetSelectStep({
245
243
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
246
244
  const numeric = Number(raw);
247
245
  if (!Number.isFinite(numeric)) return raw;
248
- return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
246
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
249
247
  } catch (e3) {
250
248
  return asset.balance;
251
249
  }
@@ -253,20 +251,20 @@ function AssetSelectStep({
253
251
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
254
252
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
255
253
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
256
- _chunkOQVLEVNRcjs.BodyHeader,
254
+ _chunkEDUWRMQIcjs.BodyHeader,
257
255
  {
258
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
256
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
259
257
  title: "Your assets",
260
258
  subtitle: "Select source assets to transfer"
261
259
  }
262
260
  ),
263
261
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
264
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-text-tertiary" }),
262
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-text-tertiary" }),
265
263
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
266
264
  ] }),
267
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
265
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
268
266
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
269
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, { className: "rs-empty-icon" }),
267
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-empty-icon" }),
270
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
271
269
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
272
270
  address.slice(0, 6),
@@ -333,14 +331,14 @@ function AssetSelectStep({
333
331
  ] })
334
332
  ] })
335
333
  ] }),
336
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkOQVLEVNRcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
334
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
337
335
  ]
338
336
  },
339
337
  asset.id
340
338
  );
341
339
  }) }),
342
340
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
343
- _chunkOQVLEVNRcjs.Button,
341
+ _chunkEDUWRMQIcjs.Button,
344
342
  {
345
343
  onClick: () => selectedAsset && onContinue(selectedAsset),
346
344
  disabled: !selectedAsset,
@@ -349,15 +347,15 @@ function AssetSelectStep({
349
347
  }
350
348
  )
351
349
  ] }),
352
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
350
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
353
351
  ] });
354
352
  }
355
353
  async function fetchNativeAssets(address, publicClient, existing) {
356
354
  const existingIds = new Set(existing.map((asset) => asset.id));
357
- const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
355
+ const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
358
356
  if (!connectedChainId) return [];
359
357
  if (!_chunkABVRVW3Pcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
360
- const id = _chunkOQVLEVNRcjs.getAssetId.call(void 0, {
358
+ const id = _chunkEDUWRMQIcjs.getAssetId.call(void 0, {
361
359
  chainId: connectedChainId,
362
360
  token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
363
361
  });
@@ -525,9 +523,9 @@ function AmountStep({
525
523
  const [isCheckingLiquidity, setIsCheckingLiquidity] = _react.useState.call(void 0, false);
526
524
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
527
525
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
528
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13(), 'access', _14 => _14.toLowerCase, 'call', _15 => _15()]) === "max";
526
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11(), 'access', _12 => _12.toLowerCase, 'call', _13 => _13()]) === "max";
529
527
  const chainMismatch = Boolean(
530
- _optionalChain([walletClient, 'optionalAccess', _16 => _16.chain, 'optionalAccess', _17 => _17.id]) && walletClient.chain.id !== asset.chainId
528
+ _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
531
529
  );
532
530
  const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
533
531
  const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, asset.symbol);
@@ -554,7 +552,7 @@ function AmountStep({
554
552
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
555
553
  if (!balanceTarget || !publicClient) return;
556
554
  try {
557
- const bal = _chunkOQVLEVNRcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
555
+ const bal = _chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
558
556
  address: asset.token,
559
557
  abi: _viem.erc20Abi,
560
558
  functionName: "balanceOf",
@@ -575,7 +573,7 @@ function AmountStep({
575
573
  hasAttemptedSwitch.current = true;
576
574
  switchChain(asset.chainId).catch((err) => {
577
575
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
578
- setError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw));
576
+ setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
579
577
  });
580
578
  }
581
579
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -628,7 +626,7 @@ function AmountStep({
628
626
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
629
627
  const numeric = Number(raw);
630
628
  if (!Number.isFinite(numeric)) return raw;
631
- return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
629
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
632
630
  } catch (e8) {
633
631
  return "\u2026";
634
632
  }
@@ -647,8 +645,8 @@ function AmountStep({
647
645
  return null;
648
646
  }
649
647
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
650
- const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.minDepositUsd]), () => ( null));
651
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _20 => _20.maxDepositUsd]), () => ( null));
648
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
649
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
652
650
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
653
651
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
654
652
  const exceedsBalance = Boolean(
@@ -657,7 +655,7 @@ function AmountStep({
657
655
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
658
656
  const handlePresetClick = (percentage) => {
659
657
  if (balance === null) return;
660
- _optionalChain([onCtaClick, 'optionalCall', _21 => _21(percentage === 100 ? "Max" : `${percentage}%`)]);
658
+ _optionalChain([onCtaClick, 'optionalCall', _19 => _19(percentage === 100 ? "Max" : `${percentage}%`)]);
661
659
  const next = formatAmountFromBalance(
662
660
  balance,
663
661
  asset.decimals,
@@ -704,33 +702,35 @@ function AmountStep({
704
702
  return;
705
703
  }
706
704
  setError(null);
707
- _optionalChain([onCtaClick, 'optionalCall', _22 => _22("continue")]);
708
- setIsCheckingLiquidity(true);
705
+ _optionalChain([onCtaClick, 'optionalCall', _20 => _20("continue")]);
709
706
  let liquidityWarning;
710
- try {
711
- const liquidity = await service.checkLiquidity({
712
- sourceChainId: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _23 => _23.chainId]), () => ( asset.chainId)),
713
- sourceToken: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _24 => _24.token]), () => ( asset.token)),
714
- destinationChainId: targetChain,
715
- destinationToken: targetToken,
716
- amount: amountInUnits.toString()
717
- });
718
- if (liquidity.unlimited || liquidity.hasLiquidity) {
719
- liquidityWarning = void 0;
720
- } else if (liquidity.maxAmount !== null) {
721
- liquidityWarning = {
722
- kind: "low",
723
- maxAmount: liquidity.maxAmount,
724
- decimals: liquidity.decimals,
725
- symbol: liquidity.symbol
726
- };
727
- } else {
728
- liquidityWarning = { kind: "unavailable" };
707
+ if (_optionalChain([uiConfig, 'optionalAccess', _21 => _21.checkLiquidity])) {
708
+ setIsCheckingLiquidity(true);
709
+ try {
710
+ const liquidity = await service.checkLiquidity({
711
+ sourceChainId: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _22 => _22.chainId]), () => ( asset.chainId)),
712
+ sourceToken: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _23 => _23.token]), () => ( asset.token)),
713
+ destinationChainId: targetChain,
714
+ destinationToken: targetToken,
715
+ amount: amountInUnits.toString()
716
+ });
717
+ if (liquidity.unlimited || liquidity.hasLiquidity) {
718
+ liquidityWarning = void 0;
719
+ } else if (liquidity.maxAmount !== null) {
720
+ liquidityWarning = {
721
+ kind: "low",
722
+ maxAmount: liquidity.maxAmount,
723
+ decimals: liquidity.decimals,
724
+ symbol: liquidity.symbol
725
+ };
726
+ } else {
727
+ liquidityWarning = { kind: "unavailable" };
728
+ }
729
+ } catch (e11) {
730
+ liquidityWarning = { kind: "check-failed" };
731
+ } finally {
732
+ setIsCheckingLiquidity(false);
729
733
  }
730
- } catch (e11) {
731
- liquidityWarning = { kind: "check-failed" };
732
- } finally {
733
- setIsCheckingLiquidity(false);
734
734
  }
735
735
  onContinue(
736
736
  sourceAmount.toString(),
@@ -747,7 +747,7 @@ function AmountStep({
747
747
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
748
748
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
749
749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
750
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Wallet deposit" }),
750
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Wallet deposit" }),
751
751
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
752
752
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
753
753
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -767,13 +767,13 @@ function AmountStep({
767
767
  " available",
768
768
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
769
769
  " (~",
770
- _chunkOQVLEVNRcjs.currencyFormatter.format(balanceUsd),
770
+ _chunkEDUWRMQIcjs.currencyFormatter.format(balanceUsd),
771
771
  ")"
772
772
  ] })
773
773
  ] }),
774
774
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
775
775
  "Min. deposit ",
776
- _chunkOQVLEVNRcjs.currencyFormatter.format(minDepositUsd)
776
+ _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
777
777
  ] })
778
778
  ] })
779
779
  ] }),
@@ -814,13 +814,13 @@ function AmountStep({
814
814
  ] }),
815
815
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
816
816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
817
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkOQVLEVNRcjs.currencyFormatter.format(balanceAfterUsd) })
817
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkEDUWRMQIcjs.currencyFormatter.format(balanceAfterUsd) })
818
818
  ] })
819
819
  ] }),
820
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
821
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
820
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
821
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
822
822
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
823
- _chunkOQVLEVNRcjs.Button,
823
+ _chunkEDUWRMQIcjs.Button,
824
824
  {
825
825
  onClick: handleContinue,
826
826
  fullWidth: true,
@@ -831,7 +831,7 @@ function AmountStep({
831
831
  }
832
832
  )
833
833
  ] }),
834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
834
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
835
835
  ] });
836
836
  }
837
837
 
@@ -868,7 +868,7 @@ function ConfirmStep({
868
868
  const [quote, setQuote] = _react.useState.call(void 0, null);
869
869
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
870
870
  const chainMismatch = Boolean(
871
- _optionalChain([walletClient, 'optionalAccess', _25 => _25.chain, 'optionalAccess', _26 => _26.id]) && walletClient.chain.id !== asset.chainId
871
+ _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
872
872
  );
873
873
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
874
874
  const targetSymbol = sameRoute ? asset.symbol : _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
@@ -878,12 +878,16 @@ function ConfirmStep({
878
878
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
879
879
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
880
880
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
881
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkOQVLEVNRcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
881
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkEDUWRMQIcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
882
882
  const receiveDisplay = (() => {
883
883
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
884
+ if (quote) {
885
+ const quoted = _chunkEDUWRMQIcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
886
+ if (quoted !== void 0) return quoted;
887
+ }
884
888
  const usdValue = Number(targetAmount);
885
889
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
886
- const estimate = _chunkOQVLEVNRcjs.formatReceiveEstimate.call(void 0, {
890
+ const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
887
891
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
888
892
  sourceSymbol: asset.symbol,
889
893
  targetSymbol,
@@ -891,10 +895,10 @@ function ConfirmStep({
891
895
  prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
892
896
  });
893
897
  if (estimate !== void 0) return estimate;
894
- return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedSendAmount} ${asset.symbol}`;
898
+ return targetSymbol;
895
899
  })();
896
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeSponsored]), () => ( false));
897
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
900
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _26 => _26.feeSponsored]), () => ( false));
901
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
898
902
  const feeDisplay = quote ? `$${quote.fees.totalUsd.toFixed(2)}` : null;
899
903
  const estimatedTimeDisplay = quote ? quote.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.estimatedFillTimeSeconds / 60)} min` : estimatedTime;
900
904
  _react.useEffect.call(void 0, () => {
@@ -902,7 +906,7 @@ function ConfirmStep({
902
906
  hasAttemptedSwitch.current = true;
903
907
  switchChain(asset.chainId).catch((err) => {
904
908
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
905
- setError(_chunkOQVLEVNRcjs.formatUserError.call(void 0, raw));
909
+ setError(_chunkEDUWRMQIcjs.formatUserError.call(void 0, raw));
906
910
  });
907
911
  }
908
912
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -982,7 +986,7 @@ function ConfirmStep({
982
986
  const result = await executeTransfer(amountUnits);
983
987
  hash = result.txHash;
984
988
  resolvedSourceToken = result.sourceToken;
985
- } else if (_chunkOQVLEVNRcjs.isNativeAsset.call(void 0, asset)) {
989
+ } else if (_chunkEDUWRMQIcjs.isNativeAsset.call(void 0, asset)) {
986
990
  hash = await walletClient.sendTransaction({
987
991
  account,
988
992
  chain,
@@ -999,20 +1003,20 @@ function ConfirmStep({
999
1003
  args: [transferTo, amountUnits]
1000
1004
  });
1001
1005
  }
1002
- _optionalChain([onDepositSubmitted, 'optionalCall', _29 => _29(hash, asset.chainId, amountUnits.toString())]);
1006
+ _optionalChain([onDepositSubmitted, 'optionalCall', _28 => _28(hash, asset.chainId, amountUnits.toString())]);
1003
1007
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
1004
1008
  } catch (err) {
1005
1009
  const raw = err instanceof Error ? err.message : "Transfer failed";
1006
- const message = _chunkOQVLEVNRcjs.formatUserError.call(void 0, raw);
1010
+ const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
1007
1011
  setError(message);
1008
- _optionalChain([onError, 'optionalCall', _30 => _30(message, "TRANSFER_ERROR")]);
1012
+ _optionalChain([onError, 'optionalCall', _29 => _29(message, "TRANSFER_ERROR")]);
1009
1013
  } finally {
1010
1014
  setIsSubmitting(false);
1011
1015
  }
1012
1016
  };
1013
1017
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1014
1018
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1015
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Review deposit" }),
1019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Review deposit" }),
1016
1020
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1017
1021
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1018
1022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1066,14 +1070,14 @@ function ConfirmStep({
1066
1070
  children: feeDisplay
1067
1071
  }
1068
1072
  ),
1069
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, {}) }) })
1073
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, {}) }) })
1070
1074
  ] })
1071
1075
  ] })
1072
1076
  ] }),
1073
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1074
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
1077
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1078
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
1075
1079
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1076
- _chunkOQVLEVNRcjs.Button,
1080
+ _chunkEDUWRMQIcjs.Button,
1077
1081
  {
1078
1082
  onClick: handleConfirm,
1079
1083
  loading: isSubmitting,
@@ -1084,7 +1088,7 @@ function ConfirmStep({
1084
1088
  }
1085
1089
  )
1086
1090
  ] }),
1087
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
1091
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
1088
1092
  ] });
1089
1093
  }
1090
1094
 
@@ -1107,9 +1111,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1107
1111
  var MAX_POLL_INTERVAL = 3e4;
1108
1112
  var BACKOFF_MULTIPLIER = 1.5;
1109
1113
  function isEventForTx(event, txHash) {
1110
- const eventTxHash = _chunkOQVLEVNRcjs.getEventTxHash.call(void 0, event);
1114
+ const eventTxHash = _chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event);
1111
1115
  if (!eventTxHash) return false;
1112
- return _chunkOQVLEVNRcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1116
+ return _chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1113
1117
  }
1114
1118
  function truncateHash(hash) {
1115
1119
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1139,7 +1143,7 @@ function formatTimestamp(ms) {
1139
1143
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
1140
1144
  }
1141
1145
  function formatBridgeFailedMessage(event) {
1142
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _31 => _31.data]), () => ( {}));
1146
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _30 => _30.data]), () => ( {}));
1143
1147
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1144
1148
  if (backendMessage.length > 0) {
1145
1149
  const lower = backendMessage.toLowerCase();
@@ -1159,7 +1163,7 @@ function formatBridgeFailedMessage(event) {
1159
1163
  }
1160
1164
  return "Bridge failed";
1161
1165
  }
1162
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1166
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1163
1167
  function DepositNotification({
1164
1168
  deposit,
1165
1169
  smartAccount,
@@ -1194,7 +1198,7 @@ function DepositNotification({
1194
1198
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1195
1199
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1196
1200
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1197
- const depositContextRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, {
1201
+ const depositContextRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, {
1198
1202
  amount,
1199
1203
  sourceChain,
1200
1204
  sourceToken: token,
@@ -1203,8 +1207,8 @@ function DepositNotification({
1203
1207
  targetToken,
1204
1208
  hasPostBridgeActions
1205
1209
  });
1206
- const onCompleteRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onComplete);
1207
- const onFailedRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onFailed);
1210
+ const onCompleteRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onComplete);
1211
+ const onFailedRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onFailed);
1208
1212
  const handleComplete = _react.useCallback.call(void 0,
1209
1213
  (destTxHash) => {
1210
1214
  if (completedRef.current) return;
@@ -1213,7 +1217,7 @@ function DepositNotification({
1213
1217
  setCompletedAt(Date.now());
1214
1218
  setStatus("complete");
1215
1219
  const context = depositContextRef.current;
1216
- _optionalChain([onCompleteRef, 'access', _32 => _32.current, 'optionalCall', _33 => _33(txHash, destTxHash, {
1220
+ _optionalChain([onCompleteRef, 'access', _31 => _31.current, 'optionalCall', _32 => _32(txHash, destTxHash, {
1217
1221
  amount: context.amount,
1218
1222
  sourceChain: context.sourceChain,
1219
1223
  sourceToken: context.sourceToken,
@@ -1229,7 +1233,7 @@ function DepositNotification({
1229
1233
  if (completedRef.current) return;
1230
1234
  completedRef.current = true;
1231
1235
  setStatus("failed");
1232
- _optionalChain([onFailedRef, 'access', _34 => _34.current, 'optionalCall', _35 => _35(txHash, error)]);
1236
+ _optionalChain([onFailedRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34(txHash, error)]);
1233
1237
  },
1234
1238
  [onFailedRef, txHash]
1235
1239
  );
@@ -1248,26 +1252,26 @@ function DepositNotification({
1248
1252
  const lastEvent = data.lastEvent;
1249
1253
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
1250
1254
  const awaitingPostBridgeSwap = depositContextRef.current.hasPostBridgeActions;
1251
- if (_optionalChain([eventForTx, 'optionalAccess', _36 => _36.type]) === "post-bridge-swap-complete") {
1252
- const swapTxHash = _optionalChain([eventForTx, 'access', _37 => _37.data, 'optionalAccess', _38 => _38.swap, 'optionalAccess', _39 => _39.transactionHash]);
1255
+ if (_optionalChain([eventForTx, 'optionalAccess', _35 => _35.type]) === "post-bridge-swap-complete") {
1256
+ const swapTxHash = _optionalChain([eventForTx, 'access', _36 => _36.data, 'optionalAccess', _37 => _37.swap, 'optionalAccess', _38 => _38.transactionHash]);
1253
1257
  handleComplete(swapTxHash);
1254
1258
  return;
1255
1259
  }
1256
- if (_optionalChain([eventForTx, 'optionalAccess', _40 => _40.type]) === "post-bridge-swap-failed") {
1260
+ if (_optionalChain([eventForTx, 'optionalAccess', _39 => _39.type]) === "post-bridge-swap-failed") {
1257
1261
  handleFailed(formatBridgeFailedMessage(eventForTx));
1258
1262
  return;
1259
1263
  }
1260
- if (_optionalChain([eventForTx, 'optionalAccess', _41 => _41.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1261
- const destTx = _optionalChain([eventForTx, 'access', _42 => _42.data, 'optionalAccess', _43 => _43.destination, 'optionalAccess', _44 => _44.transactionHash]);
1264
+ if (_optionalChain([eventForTx, 'optionalAccess', _40 => _40.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1265
+ const destTx = _optionalChain([eventForTx, 'access', _41 => _41.data, 'optionalAccess', _42 => _42.destination, 'optionalAccess', _43 => _43.transactionHash]);
1262
1266
  handleComplete(destTx);
1263
1267
  return;
1264
1268
  }
1265
- if (_optionalChain([eventForTx, 'optionalAccess', _45 => _45.type]) === "bridge-failed") {
1269
+ if (_optionalChain([eventForTx, 'optionalAccess', _44 => _44.type]) === "bridge-failed") {
1266
1270
  handleFailed(formatBridgeFailedMessage(eventForTx));
1267
1271
  return;
1268
1272
  }
1269
- if (_optionalChain([eventForTx, 'optionalAccess', _46 => _46.type]) === "error") {
1270
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _47 => _47.data, 'optionalAccess', _48 => _48.message]), () => ( "Unknown error"));
1273
+ if (_optionalChain([eventForTx, 'optionalAccess', _45 => _45.type]) === "error") {
1274
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _46 => _46.data, 'optionalAccess', _47 => _47.message]), () => ( "Unknown error"));
1271
1275
  handleFailed(errorMessage);
1272
1276
  return;
1273
1277
  }
@@ -1309,7 +1313,7 @@ function DepositNotification({
1309
1313
  const destExplorerUrl = destinationTxHash ? _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1310
1314
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1311
1315
  const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
1312
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1316
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1313
1317
  "svg",
1314
1318
  {
1315
1319
  className: "rs-deposit-notification-spinner",
@@ -1359,7 +1363,7 @@ function DepositNotification({
1359
1363
  className: "rs-deposit-notification-close",
1360
1364
  onClick: () => onDismiss(deposit.id),
1361
1365
  "aria-label": "Dismiss",
1362
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
1366
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
1363
1367
  }
1364
1368
  )
1365
1369
  ] }),
@@ -1375,7 +1379,7 @@ function DepositNotification({
1375
1379
  "aria-expanded": expanded,
1376
1380
  children: [
1377
1381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1378
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1382
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1379
1383
  ]
1380
1384
  }
1381
1385
  ),
@@ -1476,7 +1480,7 @@ function resolveSolanaTokenMeta(token) {
1476
1480
  return {};
1477
1481
  }
1478
1482
  function getDepositEventDetails(event) {
1479
- if (!_optionalChain([event, 'optionalAccess', _49 => _49.type]) || !isRecord(event.data)) return {};
1483
+ if (!_optionalChain([event, 'optionalAccess', _48 => _48.type]) || !isRecord(event.data)) return {};
1480
1484
  if (event.type === "deposit-received") {
1481
1485
  const chainId = asChainId(event.data.chain);
1482
1486
  const token = asString(event.data.token);
@@ -1491,12 +1495,12 @@ function getDepositEventDetails(event) {
1491
1495
  const source = isRecord(event.data.source) ? event.data.source : void 0;
1492
1496
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
1493
1497
  if (source || deposit) {
1494
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _50 => _50.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _51 => _51.chain]))));
1495
- const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _52 => _52.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _53 => _53.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _54 => _54.token]))));
1498
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _49 => _49.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _50 => _50.chain]))));
1499
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _51 => _51.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _52 => _52.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _53 => _53.token]))));
1496
1500
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
1497
1501
  return {
1498
1502
  chainId,
1499
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _55 => _55.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _56 => _56.amount])))),
1503
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _54 => _54.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _55 => _55.amount])))),
1500
1504
  token,
1501
1505
  ...solanaMeta
1502
1506
  };
@@ -1532,12 +1536,12 @@ function DepositAddressStep({
1532
1536
  }) {
1533
1537
  const hasSolana = Boolean(solanaDepositAddress);
1534
1538
  const allowedChainSet = _react.useMemo.call(void 0,
1535
- () => _optionalChain([allowedRoutes, 'optionalAccess', _57 => _57.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1536
- [_optionalChain([allowedRoutes, 'optionalAccess', _58 => _58.sourceChains])]
1539
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _56 => _56.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1540
+ [_optionalChain([allowedRoutes, 'optionalAccess', _57 => _57.sourceChains])]
1537
1541
  );
1538
1542
  const allowedTokenSet = _react.useMemo.call(void 0,
1539
- () => _optionalChain([allowedRoutes, 'optionalAccess', _59 => _59.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1540
- [_optionalChain([allowedRoutes, 'optionalAccess', _60 => _60.sourceTokens])]
1543
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _58 => _58.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1544
+ [_optionalChain([allowedRoutes, 'optionalAccess', _59 => _59.sourceTokens])]
1541
1545
  );
1542
1546
  const evmChainIds = _react.useMemo.call(void 0, () => {
1543
1547
  const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
@@ -1629,8 +1633,8 @@ function DepositAddressStep({
1629
1633
  function handlePointerDown(event) {
1630
1634
  const target = event.target;
1631
1635
  if (!target) return;
1632
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _61 => _61.current, 'optionalAccess', _62 => _62.contains, 'call', _63 => _63(target)]);
1633
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _64 => _64.current, 'optionalAccess', _65 => _65.contains, 'call', _66 => _66(target)]);
1636
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _60 => _60.current, 'optionalAccess', _61 => _61.contains, 'call', _62 => _62(target)]);
1637
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _63 => _63.current, 'optionalAccess', _64 => _64.contains, 'call', _65 => _65(target)]);
1634
1638
  if (clickedChainDropdown || clickedTokenDropdown) return;
1635
1639
  setChainDropdownOpen(false);
1636
1640
  setTokenDropdownOpen(false);
@@ -1643,7 +1647,7 @@ function DepositAddressStep({
1643
1647
  };
1644
1648
  }, [chainDropdownOpen, tokenDropdownOpen]);
1645
1649
  const handleCopy = _react.useCallback.call(void 0, async () => {
1646
- _optionalChain([onCopyAddress, 'optionalCall', _67 => _67()]);
1650
+ _optionalChain([onCopyAddress, 'optionalCall', _66 => _66()]);
1647
1651
  try {
1648
1652
  await navigator.clipboard.writeText(displayAddress);
1649
1653
  setCopied(true);
@@ -1722,10 +1726,10 @@ function DepositAddressStep({
1722
1726
  return;
1723
1727
  }
1724
1728
  const event = status.lastEvent;
1725
- const eventTxHash = _chunkOQVLEVNRcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkOQVLEVNRcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1729
+ const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1726
1730
  if (baselineTxHashRef.current === void 0) {
1727
1731
  baselineTxHashRef.current = eventTxHash;
1728
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkOQVLEVNRcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1732
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1729
1733
  const details = getDepositEventDetails(event);
1730
1734
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1731
1735
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1757,7 +1761,7 @@ function DepositAddressStep({
1757
1761
  directTransfer
1758
1762
  };
1759
1763
  setNotifications((prev) => [notification, ...prev]);
1760
- _optionalChain([onDepositSubmittedRef, 'access', _68 => _68.current, 'optionalCall', _69 => _69({
1764
+ _optionalChain([onDepositSubmittedRef, 'access', _67 => _67.current, 'optionalCall', _68 => _68({
1761
1765
  txHash: eventTxHash,
1762
1766
  sourceChain: chainId,
1763
1767
  amount,
@@ -1769,7 +1773,7 @@ function DepositAddressStep({
1769
1773
  if (!cancelled) {
1770
1774
  const msg = err instanceof Error ? err.message : "Failed to check status";
1771
1775
  setPollingError(msg);
1772
- _optionalChain([onErrorRef, 'access', _70 => _70.current, 'optionalCall', _71 => _71(msg, "STATUS_POLL_ERROR")]);
1776
+ _optionalChain([onErrorRef, 'access', _69 => _69.current, 'optionalCall', _70 => _70(msg, "STATUS_POLL_ERROR")]);
1773
1777
  }
1774
1778
  }
1775
1779
  if (!cancelled) {
@@ -1785,14 +1789,14 @@ function DepositAddressStep({
1785
1789
  const handleNotificationComplete = _react.useCallback.call(void 0,
1786
1790
  (txHash, destinationTxHash, context) => {
1787
1791
  isTrackingRef.current = false;
1788
- _optionalChain([onDepositCompleteRef, 'access', _72 => _72.current, 'optionalCall', _73 => _73(txHash, destinationTxHash, context)]);
1792
+ _optionalChain([onDepositCompleteRef, 'access', _71 => _71.current, 'optionalCall', _72 => _72(txHash, destinationTxHash, context)]);
1789
1793
  },
1790
1794
  []
1791
1795
  );
1792
1796
  const handleNotificationFailed = _react.useCallback.call(void 0,
1793
1797
  (txHash, error) => {
1794
1798
  isTrackingRef.current = false;
1795
- _optionalChain([onDepositFailedRef, 'access', _74 => _74.current, 'optionalCall', _75 => _75(txHash, error)]);
1799
+ _optionalChain([onDepositFailedRef, 'access', _73 => _73.current, 'optionalCall', _74 => _74(txHash, error)]);
1796
1800
  },
1797
1801
  []
1798
1802
  );
@@ -1802,7 +1806,7 @@ function DepositAddressStep({
1802
1806
  const qrIconSrc = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId);
1803
1807
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1804
1808
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1805
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1809
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1806
1810
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1807
1811
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1808
1812
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1826,7 +1830,7 @@ function DepositAddressStep({
1826
1830
  }
1827
1831
  ),
1828
1832
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) }),
1829
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1833
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1830
1834
  ]
1831
1835
  }
1832
1836
  ),
@@ -1856,9 +1860,9 @@ function DepositAddressStep({
1856
1860
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1857
1861
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1858
1862
  "Min.$",
1859
- (targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _77 => _77.minDepositUsd]), () => ( 0.1))).toFixed(2),
1860
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1861
- _chunkOQVLEVNRcjs.InfoIcon,
1863
+ (targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _75 => _75.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0.1))).toFixed(2),
1864
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1865
+ _chunkEDUWRMQIcjs.InfoIcon,
1862
1866
  {
1863
1867
  className: "rs-deposit-address-min-icon",
1864
1868
  "aria-hidden": "true"
@@ -1886,7 +1890,7 @@ function DepositAddressStep({
1886
1890
  }
1887
1891
  ),
1888
1892
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1889
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1893
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1890
1894
  ]
1891
1895
  }
1892
1896
  ),
@@ -1937,7 +1941,7 @@ function DepositAddressStep({
1937
1941
  className: "rs-deposit-address-copy",
1938
1942
  onClick: handleCopy,
1939
1943
  children: [
1940
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CopyIcon, {}),
1944
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
1941
1945
  copied ? "Copied!" : "Copy address"
1942
1946
  ]
1943
1947
  }
@@ -1945,7 +1949,7 @@ function DepositAddressStep({
1945
1949
  ]
1946
1950
  }
1947
1951
  ),
1948
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
1952
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
1949
1953
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1950
1954
  "div",
1951
1955
  {
@@ -1963,16 +1967,16 @@ function DepositAddressStep({
1963
1967
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1964
1968
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1965
1969
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1966
- _chunkOQVLEVNRcjs.Tooltip,
1970
+ _chunkEDUWRMQIcjs.Tooltip,
1967
1971
  {
1968
1972
  className: "rs-price-impact-info",
1969
1973
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1970
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, { "aria-hidden": "true" })
1974
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
1971
1975
  }
1972
1976
  )
1973
1977
  ] }),
1974
1978
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1975
- _chunkOQVLEVNRcjs.ChevronDownIcon,
1979
+ _chunkEDUWRMQIcjs.ChevronDownIcon,
1976
1980
  {
1977
1981
  className: "rs-price-impact-chevron",
1978
1982
  "aria-hidden": "true"
@@ -1983,29 +1987,29 @@ function DepositAddressStep({
1983
1987
  ),
1984
1988
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-price-impact-panel", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-panel-inner", children: [
1985
1989
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1986
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PercentIcon, {}) }),
1990
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PercentIcon, {}) }),
1987
1991
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1988
1992
  "Max slippage: ",
1989
1993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1990
1994
  ] }),
1991
1995
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1992
- _chunkOQVLEVNRcjs.Tooltip,
1996
+ _chunkEDUWRMQIcjs.Tooltip,
1993
1997
  {
1994
1998
  className: "rs-price-impact-info",
1995
1999
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
1996
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, { "aria-hidden": "true" })
2000
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
1997
2001
  }
1998
2002
  )
1999
2003
  ] }),
2000
2004
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2001
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ClockIcon, {}) }),
2005
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ClockIcon, {}) }),
2002
2006
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2003
2007
  "Processing time: ",
2004
2008
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2005
2009
  ] })
2006
2010
  ] }),
2007
2011
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2008
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PlusCircleIcon, {}) }),
2012
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PlusCircleIcon, {}) }),
2009
2013
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2010
2014
  "Max deposit:",
2011
2015
  " ",
@@ -2037,7 +2041,7 @@ function DepositAddressStep({
2037
2041
  },
2038
2042
  deposit.id
2039
2043
  )) }),
2040
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2044
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2041
2045
  ] });
2042
2046
  }
2043
2047
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2053,13 +2057,13 @@ DepositAddressStep.displayName = "DepositAddressStep";
2053
2057
  function FinalisingDepositStep() {
2054
2058
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-finalising", children: [
2055
2059
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-finalising-body", children: [
2056
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) }),
2060
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2057
2061
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-finalising-text", children: [
2058
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2059
2063
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2060
2064
  ] })
2061
2065
  ] }),
2062
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2066
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2063
2067
  ] });
2064
2068
  }
2065
2069
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2090,7 +2094,7 @@ function SwappedOrderTracker({
2090
2094
  ];
2091
2095
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2092
2096
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2093
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HandCoinsIcon, {}), title }),
2097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HandCoinsIcon, {}), title }),
2094
2098
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2095
2099
  const status = stepStates[idx];
2096
2100
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2104,7 +2108,7 @@ function SwappedOrderTracker({
2104
2108
  {
2105
2109
  className: "rs-swapped-tracker-step-marker",
2106
2110
  "aria-hidden": "true",
2107
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) : null
2111
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) : null
2108
2112
  }
2109
2113
  )
2110
2114
  ]
@@ -2131,7 +2135,7 @@ function SwappedOrderTracker({
2131
2135
  }
2132
2136
  )
2133
2137
  ] }),
2134
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2138
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2135
2139
  ] });
2136
2140
  }
2137
2141
  function formatTrackerAmount(amount) {
@@ -2249,7 +2253,7 @@ function SwappedIframeStep({
2249
2253
  if (cancelled) return;
2250
2254
  const message = err instanceof Error ? err.message : loadErrorFallback;
2251
2255
  setLoadError(message);
2252
- _optionalChain([onErrorRef, 'access', _78 => _78.current, 'optionalCall', _79 => _79(message, loadErrorCode)]);
2256
+ _optionalChain([onErrorRef, 'access', _77 => _77.current, 'optionalCall', _78 => _78(message, loadErrorCode)]);
2253
2257
  });
2254
2258
  return () => {
2255
2259
  cancelled = true;
@@ -2295,10 +2299,10 @@ function SwappedIframeStep({
2295
2299
  const status = await service.fetchLatestStatus(smartAccount);
2296
2300
  if (cancelled) return;
2297
2301
  const event = status.lastEvent;
2298
- const eventTxHash = _chunkOQVLEVNRcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkOQVLEVNRcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2302
+ const eventTxHash = _chunkEDUWRMQIcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEDUWRMQIcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2299
2303
  if (baselineDepositTxHashRef.current === void 0) {
2300
2304
  baselineDepositTxHashRef.current = eventTxHash;
2301
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkOQVLEVNRcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2305
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkEDUWRMQIcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2302
2306
  currentDepositTxHashRef.current = eventTxHash;
2303
2307
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2304
2308
  }
@@ -2323,10 +2327,10 @@ function SwappedIframeStep({
2323
2327
  }, [service, smartAccount]);
2324
2328
  _react.useEffect.call(void 0, () => {
2325
2329
  if (fastDepositPollEnabledRef.current) return;
2326
- const status = _optionalChain([orderState, 'optionalAccess', _80 => _80.status]);
2330
+ const status = _optionalChain([orderState, 'optionalAccess', _79 => _79.status]);
2327
2331
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
2328
2332
  fastDepositPollEnabledRef.current = true;
2329
- _optionalChain([rescheduleDepositPollRef, 'access', _81 => _81.current, 'optionalCall', _82 => _82(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2333
+ _optionalChain([rescheduleDepositPollRef, 'access', _80 => _80.current, 'optionalCall', _81 => _81(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2330
2334
  }, [orderState]);
2331
2335
  _react.useEffect.call(void 0, () => {
2332
2336
  function onMessage(e) {
@@ -2334,16 +2338,16 @@ function SwappedIframeStep({
2334
2338
  const parsed = parseSwappedIframeMessage(e.data);
2335
2339
  if (!parsed) return;
2336
2340
  setOrderState((prev) => ({
2337
- orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.orderId]))), () => ( "")),
2341
+ orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderId]))), () => ( "")),
2338
2342
  status: parsed.status,
2339
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCrypto]))), () => ( null)),
2340
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.orderCryptoAmount]))), () => ( null)),
2341
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _86 => _86.transactionId]))), () => ( null)),
2343
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.orderCrypto]))), () => ( null)),
2344
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCryptoAmount]))), () => ( null)),
2345
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.transactionId]))), () => ( null)),
2342
2346
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
2343
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountUsd]), () => ( null)),
2344
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.paidAmountEur]), () => ( null)),
2345
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.onrampFeeUsd]), () => ( null)),
2346
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _90 => _90.paymentMethod]), () => ( null))
2347
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _86 => _86.paidAmountUsd]), () => ( null)),
2348
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountEur]), () => ( null)),
2349
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.onrampFeeUsd]), () => ( null)),
2350
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.paymentMethod]), () => ( null))
2347
2351
  }));
2348
2352
  }
2349
2353
  window.addEventListener("message", onMessage);
@@ -2355,17 +2359,17 @@ function SwappedIframeStep({
2355
2359
  }
2356
2360
  }, [phase, orderState]);
2357
2361
  const stepStates = _react.useMemo.call(void 0,
2358
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _91 => _91.status]), () => ( null)), latestEvent),
2362
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _90 => _90.status]), () => ( null)), latestEvent),
2359
2363
  [orderState, latestEvent]
2360
2364
  );
2361
2365
  const terminalState = _react.useMemo.call(void 0, () => {
2362
- if (_chunkOQVLEVNRcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2366
+ if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2363
2367
  return {
2364
2368
  kind: "failed",
2365
- message: _chunkOQVLEVNRcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2369
+ message: _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2366
2370
  };
2367
2371
  }
2368
- if (_optionalChain([orderState, 'optionalAccess', _92 => _92.status]) === "order_cancelled") {
2372
+ if (_optionalChain([orderState, 'optionalAccess', _91 => _91.status]) === "order_cancelled") {
2369
2373
  const banner = bannerForStatus("order_cancelled", {});
2370
2374
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
2371
2375
  }
@@ -2373,7 +2377,7 @@ function SwappedIframeStep({
2373
2377
  }, [latestEvent, orderState, bannerForStatus]);
2374
2378
  _react.useEffect.call(void 0, () => {
2375
2379
  if (completeFiredRef.current || failedFiredRef.current) return;
2376
- const t = _optionalChain([latestEvent, 'optionalAccess', _93 => _93.type]);
2380
+ const t = _optionalChain([latestEvent, 'optionalAccess', _92 => _92.type]);
2377
2381
  const isSuccess = t === "bridge-complete" || t === "post-bridge-swap-complete";
2378
2382
  if (!isSuccess) return;
2379
2383
  const txHash = currentDepositTxHashRef.current;
@@ -2381,22 +2385,22 @@ function SwappedIframeStep({
2381
2385
  completeFiredRef.current = true;
2382
2386
  onSwappedCompleteRef.current({
2383
2387
  txHash,
2384
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCrypto]), () => ( null)),
2388
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _93 => _93.orderCrypto]), () => ( null)),
2385
2389
  // Base-unit source amount from the deposit row/event, consistent with the
2386
2390
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2387
- amount: _nullishCoalesce(_chunkOQVLEVNRcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2391
+ amount: _nullishCoalesce(_chunkEDUWRMQIcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2388
2392
  });
2389
2393
  }, [latestEvent, orderState]);
2390
2394
  _react.useEffect.call(void 0, () => {
2391
2395
  if (failedFiredRef.current || completeFiredRef.current) return;
2392
- if (!_chunkOQVLEVNRcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2396
+ if (!_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2393
2397
  const txHash = currentDepositTxHashRef.current;
2394
2398
  if (!txHash) return;
2395
2399
  failedFiredRef.current = true;
2396
2400
  setPhase("tracker");
2397
- _optionalChain([onSwappedFailedRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(
2401
+ _optionalChain([onSwappedFailedRef, 'access', _94 => _94.current, 'optionalCall', _95 => _95(
2398
2402
  txHash,
2399
- _chunkOQVLEVNRcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2403
+ _chunkEDUWRMQIcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2400
2404
  )]);
2401
2405
  }, [latestEvent]);
2402
2406
  if (phase === "tracker") {
@@ -2407,8 +2411,8 @@ function SwappedIframeStep({
2407
2411
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2408
2412
  SwappedOrderTracker,
2409
2413
  {
2410
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCryptoAmount]), () => ( null)),
2411
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _98 => _98.orderCrypto]), () => ( "USDC")),
2414
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _96 => _96.orderCryptoAmount]), () => ( null)),
2415
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCrypto]), () => ( "USDC")),
2412
2416
  stepStates,
2413
2417
  terminal: terminalState,
2414
2418
  onRetry: () => setRetryToken((n) => n + 1),
@@ -2417,48 +2421,38 @@ function SwappedIframeStep({
2417
2421
  );
2418
2422
  }
2419
2423
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
2420
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2421
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2422
- _chunkOQVLEVNRcjs.BodyHeader,
2423
- {
2424
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HandCoinsIcon, {}),
2425
- title: "Deposit",
2426
- subtitle: "Add money to your balance"
2427
- }
2428
- ),
2429
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-iframe-wrap", children: [
2430
- loadError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-error", children: [
2431
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: loadError }),
2432
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2433
- "button",
2434
- {
2435
- type: "button",
2436
- className: "rs-fiat-onramp-retry",
2437
- onClick: () => setRetryToken((n) => n + 1),
2438
- children: "Retry"
2439
- }
2440
- )
2441
- ] }),
2442
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) }),
2443
- widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2444
- "iframe",
2424
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-body rs-fiat-onramp-body", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-iframe-wrap", children: [
2425
+ loadError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-error", children: [
2426
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: loadError }),
2427
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2428
+ "button",
2445
2429
  {
2446
- src: widgetUrl,
2447
- title: iframeTitle,
2448
- className: "rs-fiat-onramp-iframe",
2449
- sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",
2450
- allow: "payment; camera; microphone; clipboard-write; geolocation",
2451
- onLoad: () => setIframeLoaded(true)
2452
- },
2453
- retryToken
2430
+ type: "button",
2431
+ className: "rs-fiat-onramp-retry",
2432
+ onClick: () => setRetryToken((n) => n + 1),
2433
+ children: "Retry"
2434
+ }
2454
2435
  )
2455
- ] })
2456
- ] }),
2457
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2436
+ ] }),
2437
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2438
+ widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2439
+ "iframe",
2440
+ {
2441
+ src: widgetUrl,
2442
+ title: iframeTitle,
2443
+ className: "rs-fiat-onramp-iframe",
2444
+ sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",
2445
+ allow: "payment; camera; microphone; clipboard-write; geolocation",
2446
+ onLoad: () => setIframeLoaded(true)
2447
+ },
2448
+ retryToken
2449
+ )
2450
+ ] }) }),
2451
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2458
2452
  ] });
2459
2453
  }
2460
2454
  function deriveStepStates(swappedStatus, latestEvent) {
2461
- if (_chunkOQVLEVNRcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2455
+ if (_chunkEDUWRMQIcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2462
2456
  return ["complete", "complete", "failed", "pending"];
2463
2457
  }
2464
2458
  if (swappedStatus === "order_cancelled") {
@@ -2466,7 +2460,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2466
2460
  }
2467
2461
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2468
2462
  const step2Complete = latestEvent !== null;
2469
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _100 => _100.type]) === "post-bridge-swap-complete";
2463
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _98 => _98.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "post-bridge-swap-complete";
2470
2464
  if (step3Complete) {
2471
2465
  return ["complete", "complete", "complete", "pending"];
2472
2466
  }
@@ -2615,114 +2609,10 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2615
2609
  // src/components/steps/ExchangeSelectStep.tsx
2616
2610
 
2617
2611
 
2618
- // src/components/ui/ExchangeLogos.tsx
2619
-
2620
- var HTX_LOGO_DATA_URI = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXYAAACQCAMAAAAr6rB8AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAACNUExURQAAAAAAPgAAPgAAPgAAQAAAPQAAPgAAPQAAPQAAPgAAOAAAPgAAPQAAPQAAPAAAOgAAPgAAPQAAPQAAQAAAQACK1QCM1QCNzwCL1gCL1gCM1QCM1gCL1gAAPgCL1wCK1ACL1QCL0wCM1gCM1QCM1ACL1AAAPQCM1gAAPgCM1gAAOgCM1gAAPgCM1v///6KyLqIAAAAsdFJOUwCAj88Qn6BQv+8g33CvQDCQT2AgUCBgEN+AkL/eb58wcECw71Cgvs/O7zGgm66ePgAAAAFiS0dELlTTEIcAAAAHdElNRQfoDAUMAwII1OX3AAAI7ElEQVR42u2dbWPaOBCEQ8Ml4UyAg5IQ0ru8kLS9Vv7/f+9CaArYs7sjg/GtrfmKjeXHYjVarcXZGa/ep4iDk46lXjjvN92GDqoXEvcG9IY9/NF0I7qnizfsodd0Kzqnd+zhsulmdE1X79gHfzbdjo5pgz1cNd2OjinbYA/DphvSLf2iHgbJRZ5Q/Q/s4brppnRJo9/Yw6jptnRIl1vsaVQ9nXohdfcGdL2D/bzpxnRHVyF19wY02MWeovuJNA4hdffT63Ife+rup9FkH3tIU9WT6LyAPSXeT6F+gXoYNN2iTuiyiD0NqqfQRQn7pOkmdUFZSFHm9BqHkKLM6TUB2CdNN6r9ygD2lA+rWyjGpBlT7bqA2P9qulktVz+D2CdNt6vlmkLqKR1Ws3BnT869XgmdPYRUl1enMgl7GlNrlNjZw7TpprVZYmdPVqZGyZ09vdtRn/pyZ08Osj71ZOopK1ObZgr1kDXdutYqS9gbkBZiEva6pIaYhL0m9bOEvQF9Cgn76dUzqCffXofGFvX07lgNmmUm9vSG6tFlDadrpUqZo+vcpp5KB44uy8QcPqKOpyUxv56+ddpseiSN1982Qp98pm5wfoOknmKamLUOW+XoVXuOYAa3n38e2Q3n9F7BPxugj5hB7XaRA90dTP3ApVQf2EGFeeB2d1ki6veHUz/QtTvBDss/iZT3DaL+Za6c8TfXrAMXsL1gx5bO2pxxDkOMFtmnXKsOzQx4wS5MG43h/x5R/+dw6uUBVfsBecZ+NkSf6uH9LjbEjAdco0qd/SF/bCn2/ff+mcbOEfX86XDq5c5+Y7gjx9hjXWS0dyQSMRuVI/uz5Ur9YscuMoylNkLv+OUI1IFnX5mzAb/YsYvMhOQI9I65HNh56pPSuS/ELMwv9hgXOY8NMUz6a/Ocy539mbCmfrELLhKmR6B3VKanTPpLutx27H5oJXbeRcZ6R3JyGmDJ6evvKyxI/+4MO3aRX5X+x01PZ3R7wFCya5m+tRM7dpHF8I69ozw9ZVaTfgn8svYG72UrsQsuspAkwN5RDgB8YEc7yew/Y2U65hg75SKf4qanbCYGlwsUnOritkHsiq4OOPdMCgiF8A5G1LvIb4RPF6WAigGNCTP+sAsuspAkKPlHZXrKLWyshWbE5SdMhBmH2AUXuY9kviqwUKanNHUU2MG0TF288osdu8hCeH9hQ4ywp0AgW/ma5xW6u0vslItckh2QHvxh8gdOEBbtxC64yP3/idn17trSBvzpAOEVlW8Iu52b8Ykdu8gCmIcVg4Hu7LAsB6c57ejuFDvlIh8/KGirp2xkhztu4jQnEd2dYhfW3wou8tkOMayNwVBeBepmd/eKHbvIQpLgV3jXuh7Z2eE8CU+GNzKmqm6xUy7yyfCOxjuQW+EChYWM/bGt2LGLLCRNlur0lB5Q8VbKS5m6FWX8YheQlZIE6sIDF2Nw85QQY0YZx9gpFzl/VL+CijE4sM8XKnb9up6xYxf5PeI1Cy7G4MD+qlJXTatv7IKLjPizcCr3iAP7jU49/7e92CkXGdmUknBxrxFi8lwfU3xjx9z4P5Nlah4rhZjcyMvwKX5LjWDHLvIrebb9zq8UYl5M6voik3PsnIuUdBlMCe8PmCEmz5/bjB27SLkeNfbmcYi5s6nrFTPusWMXmVEu8tq6J6Fhc4K6bmXcYz/7Ud1FmkYmqzqertVu7IKLZMK7WeSLx1Oqs+sOsgXYq7tIKzUgjKf3CftaP2B7vtsnWreEX3C35qddwS6kEe3wbtxRdfP4Lq3WvQXYh1KLzCRBpTt6Iqm3vLfPxBm+6SKNO8KjAxnZ245dGRetJIGeksG5qQeWeruxqzdguEjdyeABlfPsa1VutQPsn9U2DfQkge7bYYgiPXve7lmq9TKpHt7V5ACOMax7bHdOxpzeqy5yop2JA9Q3GnvsXkGDjND/AzvRaS6V04faidB+8jEmOt/uZ3WJqaTTkgRqvh2e8chjf2krdu6dI+V2+sppeEMsPsboL2R7xk7WL/bkb1CeG9zCNyLGtLZygH6tUU4SKA9ugo4nllA/pK7pOcY+Y7c6Ulyk8uTgb2TJY4/e4dMJdhggerD/int+K8EdYqfzMUaZjF/s0Dt+FYZZMUkg+36YGuCpt7TiFyYF1kufsIJDdJGy8UdPik+DWS+NOcWOkwLvPXSIPpHqUeUog4IMnWq3YoxX7DCb0hO/X04SiFFmAg7mEzJ6va9X7DA2fKzBYYsjuEix1Bo1ialKojq7T+w4KfA7fkdtfy3ZUDRLpbG38r1U063AzKJwW9Kgiv5inMZubjrgETv05rtfEeMi+1J3Z/d9qxDZXWKHU8v9sjkc3vFSk9TdwQ7tLHZ7ezx/2KkRcwgfDXSRUh5zUj6UdDLE5qf+sOOkQPEo6DDxZYSsO8DAZcLsbU0cYle941Yx4R1790H5t8HlfZmt8bxhp+f+EUkCIZcJnP6KoE7tr+wMu5IUKAq6SFyPOoTYJ+UDiQwkt+2pM+wRITsmSYBLtcvH2Uup5Ca/vrDjwC6kuSKSBPhHVD7UTEGuGt5auRbsRlKgKGzw4UOCr0pOysdZS9jUTrPOsPc577hVRJJgCI4EXsaYMDW+bX4d2OEGyFpVb4yL7FFH3q6OQt0TdiIpUBR8vWZAJwkACWURe8VTd4Qdj5DG/2cO4aPCYzBAUR5U5RnTiv2DCF/YYcCYVLiYuNRUZgFQSNGd/XsIZ9jJpECpofz8Cl2j3N2F6P6T2bXdH3a8+Ea8expVSTAkWKAp0+oxCrob7LO48pddxSw1la8DZlflDMF95P9HusFuLigp+o7OlSoJZoUrARjFreEXakm1Z+w4sJObJEVVErz51Mw6bq9cZhFhG51hx0kBekuwIXxoYj3qfodHNLZuZnUXN5R6wh6dFCgqrh717e52E51oAHmtHNQ/rjAqidl5qF8+bcZechx7LrjYmyJusj9F0l7iG23Bg8zM2e0mJfazIvQkUbOLTPlZve9H+Bz9pUmERhvyqLuv/wohbl6aFKHx9Dob4NexlzE5mKSt/gNCZI6GyUmWNAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNC0xMi0wNVQxMjowMzowMiswMDowMLpM60QAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjQtMTItMDVUMTI6MDM6MDIrMDA6MDDLEVP4AAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI0LTEyLTA1VDEyOjAzOjAyKzAwOjAwnARyJwAAAABJRU5ErkJggg==";
2621
- function Tile({
2622
- bg,
2623
- children,
2624
- fg = "#fff"
2625
- }) {
2626
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
2627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "40", height: "40", fill: bg }),
2628
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "g", { color: fg, children })
2629
- ] });
2630
- }
2631
- function Icon({
2632
- children,
2633
- x = 8,
2634
- y = 8,
2635
- size = 24,
2636
- viewBox = "0 0 24 24"
2637
- }) {
2638
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "svg", { x, y, width: size, height: size, viewBox, children });
2639
- }
2640
- var LOGOS = {
2641
- coinbase: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#0052FF", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { x: 7, y: 7, size: 26, viewBox: "0 0 512 512", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2642
- "path",
2643
- {
2644
- fill: "#fff",
2645
- d: "M256.737 338.138c-45.081 0-81.512-36.531-81.512-81.513 0-44.98 36.53-81.512 81.512-81.512 40.356 0 73.863 29.387 80.306 67.925h82.113C412.212 159.313 342.175 93.5 256.637 93.5c-90.069 0-163.125 73.063-163.125 163.125 0 90.07 73.056 163.125 163.125 163.125 85.538 0 155.575-65.812 162.519-149.537h-82.213c-6.443 38.537-39.85 67.925-80.206 67.925z"
2646
- }
2647
- ) }) }),
2648
- binance: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#181A20", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2649
- "path",
2650
- {
2651
- fill: "#F0B90B",
2652
- d: "m16.624 13.920 2.718 2.716-7.353 7.353-7.353-7.353 2.717-2.716 4.636 4.66zm4.637-4.636L24 12l-2.715 2.716L18.568 12zm-9.272.001 2.716 2.691-2.716 2.717L9.272 12zm-9.273-.001L5.409 12l-2.692 2.692L0 12zM11.989.012l7.353 7.329-2.718 2.715-4.635-4.636-4.636 4.66-2.717-2.716z"
2653
- }
2654
- ) }) }),
2655
- bitfinex: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#101914", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Icon, { x: 5, y: 8, size: 30, viewBox: "780 0 116 100", children: [
2656
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2657
- "path",
2658
- {
2659
- fill: "#97C554",
2660
- d: "m792.54 88.414c4.795 5.078 31.135 29.418 72.478 1.17C894.913 66.302 894.166 15.827 891.294.584c-1 2.219-35.724 78.26-98.754 87.83Z"
2661
- }
2662
- ),
2663
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2664
- "path",
2665
- {
2666
- fill: "#709B30",
2667
- d: "M891.29.572c-.366-.152-38.827-5.395-76.85 19.094-23.61 15.207-26.731 37.464-25.654 52.295 55.273-6.185 101.25-69.646 102.504-71.39Z"
2668
- }
2669
- )
2670
- ] }) }),
2671
- bybit: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#16171A", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { x: 4, y: 4, size: 32, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { fill: "none", children: [
2672
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { fill: "#F6A500", d: "M15.829 13.626V9h.93v4.626z" }),
2673
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2674
- "path",
2675
- {
2676
- fill: "#fff",
2677
- d: "M4.993 15H3v-4.626h1.913c.93 0 1.471.507 1.471 1.3 0 .513-.348.845-.588.955.287.13.655.423.655 1.04 0 .863-.609 1.33-1.458 1.33m-.154-3.82h-.91v1.065h.91c.395 0 .615-.214.615-.533 0-.317-.22-.532-.615-.532m.06 1.877h-.97v1.137h.97c.42 0 .622-.259.622-.571s-.201-.565-.622-.565zm4.388.046V15h-.923v-1.898l-1.431-2.728h1.01l.889 1.864.877-1.864h1.01zM13.355 15h-1.993v-4.626h1.913c.93 0 1.47.507 1.47 1.3 0 .513-.347.845-.588.955.287.13.655.423.655 1.04 0 .863-.608 1.33-1.457 1.33m-.155-3.82h-.91v1.065h.91c.395 0 .616-.214.616-.533 0-.317-.22-.532-.616-.532m.06 1.877h-.97v1.137h.97c.422 0 .622-.259.622-.571s-.2-.565-.622-.565zm6.495-1.876V15h-.929v-3.82h-1.245v-.806H21v.806z"
2678
- }
2679
- )
2680
- ] }) }) }),
2681
- btcturk: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#FFFFFF", fg: "#0D0D17", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { x: 7, y: 7, size: 26, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2682
- "path",
2683
- {
2684
- fill: "currentColor",
2685
- d: "M14.126 18.743c-1.05.742-1.67 1.67-1.38 2.072s1.365.128 2.414-.612 1.667-1.668 1.379-2.072c-.089-.12-.256-.186-.474-.186-.48 0-1.218.29-1.94.798m-5.76-1.584c-2.028.842-3.433 2.088-3.141 2.796.291.709 2.17.607 4.2-.23 2.03-.836 3.428-2.084 3.137-2.797-.13-.317-.576-.47-1.21-.47-.787 0-1.865.24-2.987.701m9.293-.84c-.36.683-.47 1.33-.251 1.44.22.11.685-.345 1.043-1.028s.47-1.33.25-1.44a.15.15 0 0 0-.074-.017c-.24 0-.648.433-.968 1.045m-2.927-1.891c-.695.4-1.058 1.073-.812 1.5s1.008.448 1.703.047c.695-.4 1.057-1.073.811-1.5-.128-.222-.396-.335-.72-.335-.346.01-.684.11-.981.288m2.568-.91c-.202.348-.188.735.03.86.218.127.56-.053.76-.404.202-.35.19-.735-.03-.861a.3.3 0 0 0-.155-.041c-.204 0-.447.17-.6.445m-2.592-1.499c0 .418.384.758.858.758s.858-.34.858-.758c0-.417-.384-.757-.858-.757s-.858.339-.858.757m-5.728 0c0 .938 1.057 1.697 2.361 1.697s2.36-.755 2.36-1.697-1.055-1.698-2.36-1.698-2.361.761-2.361 1.698m8.369-2.4c-.218.12-.232.513-.03.862.201.35.541.531.76.404.22-.127.232-.51.03-.861-.158-.274-.401-.446-.6-.446a.3.3 0 0 0-.155.041m-3.413-1.545c-.24.427.12 1.099.811 1.5.691.4 1.457.38 1.703-.047s-.12-1.098-.811-1.5a2 2 0 0 0-.983-.287c-.325 0-.593.112-.72.334m3.456-1.833c-.218.12-.107.762.25 1.44.358.678.825 1.144 1.045 1.029.22-.116.105-.762-.252-1.44-.32-.612-.73-1.046-.969-1.046a.2.2 0 0 0-.074.017M5.225 4.05c-.292.708 1.115 1.96 3.14 2.797s3.902.94 4.197.233-1.115-1.962-3.14-2.798c-1.123-.464-2.196-.702-2.988-.702-.633 0-1.08.154-1.21.47m7.51-.864c-.284.403.337 1.33 1.386 2.071s2.13 1.016 2.413.612c.283-.403-.336-1.33-1.387-2.071C14.427 3.289 13.692 3 13.21 3c-.219 0-.385.06-.48.186"
2686
- }
2687
- ) }) }),
2688
- gate: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#FFFFFF", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { x: 7, y: 7, size: 26, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { fill: "none", children: [
2689
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { fill: "#2354E6", d: "M12 16.95a4.95 4.95 0 1 1 0-9.9V3a9 9 0 1 0 9 9h-4.05A4.95 4.95 0 0 1 12 16.95" }),
2690
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "path", { fill: "#17E6A1", d: "M16.95 7.05H12V12h4.95z" })
2691
- ] }) }) }),
2692
- gateio: () => LOGOS.gate(),
2693
- htx: () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
2694
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "40", height: "40", fill: "#fff" }),
2695
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "image", { href: HTX_LOGO_DATA_URI, x: "3", y: "12", width: "34", height: "13.1", preserveAspectRatio: "xMidYMid meet" })
2696
- ] }),
2697
- kraken: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#7133F5", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { x: 6, y: 6, size: 28, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2698
- "path",
2699
- {
2700
- fill: "#fff",
2701
- d: "M11.998 4.5C7.028 4.5 3 8.774 3 14.047v4.09c0 .753.575 1.363 1.285 1.363s1.288-.61 1.288-1.362v-4.091c0-.755.573-1.365 1.285-1.365.71 0 1.284.61 1.284 1.365v4.09c0 .753.575 1.363 1.285 1.363.712 0 1.286-.61 1.286-1.362v-4.091c0-.755.575-1.365 1.285-1.365.712 0 1.289.61 1.289 1.365v4.09c0 .753.574 1.363 1.284 1.363s1.285-.61 1.285-1.362v-4.091c0-.755.574-1.365 1.288-1.365.71 0 1.285.61 1.285 1.365v4.09c0 .753.575 1.363 1.287 1.363.71 0 1.284-.61 1.284-1.362v-4.091C21 8.774 16.97 4.5 11.998 4.5"
2702
- }
2703
- ) }) }),
2704
- kucoin: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tile, { bg: "#01BC8D", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { x: 7, y: 7, size: 26, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2705
- "path",
2706
- {
2707
- fill: "#fff",
2708
- d: "m7.928 11.996 7.122 7.122 4.49-4.49a2.004 2.004 0 0 1 2.865 0 2.004 2.004 0 0 1 0 2.865l-5.918 5.918a2.058 2.058 0 0 1-2.883 0l-8.541-8.542v5.07a2.034 2.034 0 1 1-4.07 0V4.043a2.034 2.034 0 1 1 4.07 0v5.088L13.604.589a2.058 2.058 0 0 1 2.883 0l5.918 5.918c.785.803.785 2.088 0 2.865-.804.785-2.089.785-2.865 0l-4.49-4.49zM15.05 9.96a2.038 2.038 0 0 0-2.053 2.035c0 1.133.902 2.052 2.035 2.052a2.038 2.038 0 0 0 2.053-2.035v-.018a2.07 2.07 0 0 0-2.035-2.034z"
2709
- }
2710
- ) }) })
2711
- };
2712
- function normalize(value) {
2713
- return value.toLowerCase().replace(/[^a-z0-9]/g, "");
2714
- }
2715
- function getExchangeLogo(name, connection) {
2716
- const render = _nullishCoalesce(LOGOS[normalize(name)], () => ( LOGOS[normalize(_nullishCoalesce(connection, () => ( "")))]));
2717
- return render ? render() : null;
2718
- }
2719
-
2720
- // src/components/steps/ExchangeSelectStep.tsx
2721
-
2722
2612
  function ExchangeLogo({ exchange }) {
2723
2613
  const [failed, setFailed] = _react.useState.call(void 0, false);
2724
2614
  if (!exchange.logoUrl || failed) {
2725
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BankIcon, {});
2615
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BankIcon, {});
2726
2616
  }
2727
2617
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2728
2618
  "img",
@@ -2757,7 +2647,7 @@ function ExchangeSelectStep({
2757
2647
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2758
2648
  setExchanges([]);
2759
2649
  setError(message);
2760
- _optionalChain([onError, 'optionalCall', _101 => _101(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2650
+ _optionalChain([onError, 'optionalCall', _100 => _100(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2761
2651
  }).finally(() => {
2762
2652
  if (!cancelled) setLoading(false);
2763
2653
  });
@@ -2768,14 +2658,14 @@ function ExchangeSelectStep({
2768
2658
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2769
2659
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2770
2660
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2771
- _chunkOQVLEVNRcjs.BodyHeader,
2661
+ _chunkEDUWRMQIcjs.BodyHeader,
2772
2662
  {
2773
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.UnplugIcon, {}),
2663
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.UnplugIcon, {}),
2774
2664
  title: "Connect exchange",
2775
2665
  subtitle: "Select an exchange to connect"
2776
2666
  }
2777
2667
  ),
2778
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, {}) }),
2668
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, {}) }),
2779
2669
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2780
2670
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2781
2671
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2801,7 +2691,7 @@ function ExchangeSelectStep({
2801
2691
  )
2802
2692
  ] }),
2803
2693
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2804
- const brand = getExchangeLogo(exchange.name, exchange.connection);
2694
+ const brand = _chunkEDUWRMQIcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2805
2695
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2806
2696
  "button",
2807
2697
  {
@@ -2824,7 +2714,7 @@ function ExchangeSelectStep({
2824
2714
  );
2825
2715
  }) })
2826
2716
  ] }),
2827
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2717
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2828
2718
  ] });
2829
2719
  }
2830
2720
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2836,8 +2726,8 @@ function DepositAddressSkeleton({
2836
2726
  uiConfig,
2837
2727
  allowedRoutes
2838
2728
  }) {
2839
- const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2840
- const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _103 => _103.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2729
+ const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _101 => _101.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2730
+ const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2841
2731
  const evmChainIds = (() => {
2842
2732
  const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
2843
2733
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
@@ -2854,7 +2744,7 @@ function DepositAddressSkeleton({
2854
2744
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2855
2745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2856
2746
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2857
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2747
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2858
2748
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2859
2749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2860
2750
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2868,7 +2758,7 @@ function DepositAddressSkeleton({
2868
2758
  }
2869
2759
  ),
2870
2760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2871
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2761
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2872
2762
  ] })
2873
2763
  ] }),
2874
2764
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2876,9 +2766,9 @@ function DepositAddressSkeleton({
2876
2766
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2877
2767
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2878
2768
  "Min.$",
2879
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _104 => _104.minDepositUsd]), () => ( 0.1))).toFixed(2),
2880
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2881
- _chunkOQVLEVNRcjs.InfoIcon,
2769
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _103 => _103.minDepositUsd]), () => ( 0.1))).toFixed(2),
2770
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2771
+ _chunkEDUWRMQIcjs.InfoIcon,
2882
2772
  {
2883
2773
  className: "rs-deposit-address-min-icon",
2884
2774
  "aria-hidden": "true"
@@ -2896,7 +2786,7 @@ function DepositAddressSkeleton({
2896
2786
  }
2897
2787
  ),
2898
2788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2899
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2789
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2900
2790
  ] })
2901
2791
  ] })
2902
2792
  ] }),
@@ -2917,7 +2807,7 @@ function DepositAddressSkeleton({
2917
2807
  disabled: true,
2918
2808
  "aria-hidden": "true",
2919
2809
  children: [
2920
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CopyIcon, {}),
2810
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CopyIcon, {}),
2921
2811
  "Copy address"
2922
2812
  ]
2923
2813
  }
@@ -2930,16 +2820,16 @@ function DepositAddressSkeleton({
2930
2820
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2931
2821
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2932
2822
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2933
- _chunkOQVLEVNRcjs.Tooltip,
2823
+ _chunkEDUWRMQIcjs.Tooltip,
2934
2824
  {
2935
2825
  className: "rs-price-impact-info",
2936
2826
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2937
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, { "aria-hidden": "true" })
2827
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, { "aria-hidden": "true" })
2938
2828
  }
2939
2829
  )
2940
2830
  ] }),
2941
2831
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2942
- _chunkOQVLEVNRcjs.ChevronDownIcon,
2832
+ _chunkEDUWRMQIcjs.ChevronDownIcon,
2943
2833
  {
2944
2834
  className: "rs-price-impact-chevron",
2945
2835
  "aria-hidden": "true"
@@ -2947,7 +2837,7 @@ function DepositAddressSkeleton({
2947
2837
  )
2948
2838
  ] }) })
2949
2839
  ] }),
2950
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
2840
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
2951
2841
  ] });
2952
2842
  }
2953
2843
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2979,7 +2869,7 @@ function SolanaTokenSelectStep({
2979
2869
  setError(null);
2980
2870
  const portfolioBySymbol = {};
2981
2871
  try {
2982
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2872
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2983
2873
  solanaAddress
2984
2874
  });
2985
2875
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -3002,12 +2892,12 @@ function SolanaTokenSelectStep({
3002
2892
  };
3003
2893
  }
3004
2894
  }
3005
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2895
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3006
2896
  symbols: Object.keys(portfolioBySymbol)
3007
2897
  });
3008
2898
  } catch (err) {
3009
2899
  if (!active) return;
3010
- _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2900
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3011
2901
  solanaAddress
3012
2902
  });
3013
2903
  setError(
@@ -3032,7 +2922,7 @@ function SolanaTokenSelectStep({
3032
2922
  setTokenBalances(results);
3033
2923
  setLoading(false);
3034
2924
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
3035
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _105 => _105(totalUsd)]);
2925
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _104 => _104(totalUsd)]);
3036
2926
  }
3037
2927
  void loadBalances();
3038
2928
  return () => {
@@ -3054,7 +2944,7 @@ function SolanaTokenSelectStep({
3054
2944
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3055
2945
  const numeric = Number(raw);
3056
2946
  if (!Number.isFinite(numeric)) return raw;
3057
- return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
2947
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
3058
2948
  } catch (e20) {
3059
2949
  return "--";
3060
2950
  }
@@ -3064,20 +2954,20 @@ function SolanaTokenSelectStep({
3064
2954
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3065
2955
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3066
2956
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3067
- _chunkOQVLEVNRcjs.BodyHeader,
2957
+ _chunkEDUWRMQIcjs.BodyHeader,
3068
2958
  {
3069
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
2959
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3070
2960
  title: "Your assets",
3071
2961
  subtitle: "Select source assets to transfer"
3072
2962
  }
3073
2963
  ),
3074
2964
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3075
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-text-tertiary" }),
2965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-text-tertiary" }),
3076
2966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3077
2967
  ] }),
3078
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
2968
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3079
2969
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3080
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, { className: "rs-empty-icon" }),
2970
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, { className: "rs-empty-icon" }),
3081
2971
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3082
2972
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3083
2973
  solanaAddress.slice(0, 6),
@@ -3126,14 +3016,14 @@ function SolanaTokenSelectStep({
3126
3016
  ] })
3127
3017
  ] })
3128
3018
  ] }),
3129
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkOQVLEVNRcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3130
3020
  ]
3131
3021
  },
3132
3022
  entry.token.symbol
3133
3023
  );
3134
3024
  }) }),
3135
3025
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3136
- _chunkOQVLEVNRcjs.Button,
3026
+ _chunkEDUWRMQIcjs.Button,
3137
3027
  {
3138
3028
  onClick: () => selectedEntry && onContinue(
3139
3029
  selectedEntry.token,
@@ -3146,7 +3036,7 @@ function SolanaTokenSelectStep({
3146
3036
  }
3147
3037
  )
3148
3038
  ] }),
3149
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3039
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3150
3040
  ] });
3151
3041
  }
3152
3042
 
@@ -3179,7 +3069,7 @@ function SolanaAmountStep({
3179
3069
  const [error, setError] = _react.useState.call(void 0, null);
3180
3070
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3181
3071
  const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, token.symbol);
3182
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107(), 'access', _108 => _108.toLowerCase, 'call', _109 => _109()]) === "max";
3072
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _105 => _105.trim, 'call', _106 => _106(), 'access', _107 => _107.toLowerCase, 'call', _108 => _108()]) === "max";
3183
3073
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3184
3074
  if (isSourceStablecoin) return 1;
3185
3075
  try {
@@ -3199,7 +3089,7 @@ function SolanaAmountStep({
3199
3089
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3200
3090
  const numeric = Number(raw);
3201
3091
  if (!Number.isFinite(numeric)) return raw;
3202
- return _chunkOQVLEVNRcjs.tokenFormatter.format(numeric);
3092
+ return _chunkEDUWRMQIcjs.tokenFormatter.format(numeric);
3203
3093
  } catch (e22) {
3204
3094
  return "\u2026";
3205
3095
  }
@@ -3281,8 +3171,8 @@ function SolanaAmountStep({
3281
3171
  return null;
3282
3172
  }
3283
3173
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3284
- const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.minDepositUsd]), () => ( null));
3285
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.maxDepositUsd]), () => ( null));
3174
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _109 => _109.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( null));
3175
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.maxDepositUsd]), () => ( null));
3286
3176
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3287
3177
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3288
3178
  const exceedsBalance = Boolean(
@@ -3292,7 +3182,7 @@ function SolanaAmountStep({
3292
3182
  const handlePresetClick = (percentage) => {
3293
3183
  const formatted = computePresetAmount(percentage);
3294
3184
  if (!formatted) return;
3295
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3185
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3296
3186
  percentage,
3297
3187
  symbol: token.symbol,
3298
3188
  formatted
@@ -3327,7 +3217,7 @@ function SolanaAmountStep({
3327
3217
  try {
3328
3218
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3329
3219
  } catch (e27) {
3330
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3220
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3331
3221
  amount,
3332
3222
  sourceAmount: sourceAmountStr,
3333
3223
  reason: "parse-units-failed"
@@ -3342,7 +3232,7 @@ function SolanaAmountStep({
3342
3232
  );
3343
3233
  return;
3344
3234
  }
3345
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3235
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3346
3236
  symbol: token.symbol,
3347
3237
  inputAmountUsd: amount,
3348
3238
  sourceAmount: sourceAmountStr,
@@ -3356,7 +3246,7 @@ function SolanaAmountStep({
3356
3246
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3357
3247
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3358
3248
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3359
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Wallet deposit" }),
3249
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Wallet deposit" }),
3360
3250
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3361
3251
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3362
3252
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3376,13 +3266,13 @@ function SolanaAmountStep({
3376
3266
  " available",
3377
3267
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3378
3268
  " (~",
3379
- _chunkOQVLEVNRcjs.currencyFormatter.format(computedBalanceUsd),
3269
+ _chunkEDUWRMQIcjs.currencyFormatter.format(computedBalanceUsd),
3380
3270
  ")"
3381
3271
  ] })
3382
3272
  ] }),
3383
3273
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3384
3274
  "Min. deposit ",
3385
- _chunkOQVLEVNRcjs.currencyFormatter.format(minDepositUsd)
3275
+ _chunkEDUWRMQIcjs.currencyFormatter.format(minDepositUsd)
3386
3276
  ] })
3387
3277
  ] })
3388
3278
  ] }),
@@ -3421,13 +3311,13 @@ function SolanaAmountStep({
3421
3311
  ] }),
3422
3312
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3423
3313
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3424
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkOQVLEVNRcjs.currencyFormatter.format(balanceAfterUsd) })
3314
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkEDUWRMQIcjs.currencyFormatter.format(balanceAfterUsd) })
3425
3315
  ] })
3426
3316
  ] }),
3427
- targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3428
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
3317
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3318
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3429
3319
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3430
- _chunkOQVLEVNRcjs.Button,
3320
+ _chunkEDUWRMQIcjs.Button,
3431
3321
  {
3432
3322
  onClick: handleContinue,
3433
3323
  fullWidth: true,
@@ -3436,7 +3326,7 @@ function SolanaAmountStep({
3436
3326
  }
3437
3327
  )
3438
3328
  ] }),
3439
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3329
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3440
3330
  ] });
3441
3331
  }
3442
3332
 
@@ -3460,7 +3350,7 @@ var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3460
3350
  var configuredSolanaRpcUrl = null;
3461
3351
  var cachedConnections = /* @__PURE__ */ new Map();
3462
3352
  function configureSolanaRpcUrl(rpcUrl) {
3463
- const normalized = _optionalChain([rpcUrl, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]);
3353
+ const normalized = _optionalChain([rpcUrl, 'optionalAccess', _112 => _112.trim, 'call', _113 => _113()]);
3464
3354
  configuredSolanaRpcUrl = normalized ? normalized : null;
3465
3355
  cachedConnections.clear();
3466
3356
  }
@@ -3579,13 +3469,13 @@ function SolanaConfirmStep({
3579
3469
  const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
3580
3470
  const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3581
3471
  const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
3582
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeSponsored]), () => ( false));
3583
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _116 => _116.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3584
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkOQVLEVNRcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3472
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _114 => _114.feeSponsored]), () => ( false));
3473
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3474
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkEDUWRMQIcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3585
3475
  const receiveDisplay = (() => {
3586
3476
  const usdValue = Number(targetAmount);
3587
3477
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3588
- const estimate = _chunkOQVLEVNRcjs.formatReceiveEstimate.call(void 0, {
3478
+ const estimate = _chunkEDUWRMQIcjs.formatReceiveEstimate.call(void 0, {
3589
3479
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3590
3480
  sourceSymbol: token.symbol,
3591
3481
  targetSymbol,
@@ -3593,11 +3483,11 @@ function SolanaConfirmStep({
3593
3483
  prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3594
3484
  });
3595
3485
  if (estimate !== void 0) return estimate;
3596
- return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedAmount} ${token.symbol}`;
3486
+ return targetSymbol;
3597
3487
  })();
3598
3488
  const handleConfirm = async () => {
3599
3489
  if (!solanaProvider) {
3600
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3490
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3601
3491
  reason: "missing-provider"
3602
3492
  });
3603
3493
  setError("Solana wallet not connected");
@@ -3605,7 +3495,7 @@ function SolanaConfirmStep({
3605
3495
  }
3606
3496
  const parsedAmount = parseFloat(sourceAmount);
3607
3497
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3608
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3498
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3609
3499
  reason: "invalid-amount",
3610
3500
  sourceAmount
3611
3501
  });
@@ -3614,7 +3504,7 @@ function SolanaConfirmStep({
3614
3504
  }
3615
3505
  setError(null);
3616
3506
  setIsSubmitting(true);
3617
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3507
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3618
3508
  smartAccount,
3619
3509
  solanaAddress,
3620
3510
  solanaDepositAddress,
@@ -3624,7 +3514,7 @@ function SolanaConfirmStep({
3624
3514
  });
3625
3515
  try {
3626
3516
  const check = await service.checkAccount(smartAccount);
3627
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3517
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3628
3518
  smartAccount,
3629
3519
  isRegistered: check.isRegistered,
3630
3520
  targetChain: check.targetChain,
@@ -3637,7 +3527,7 @@ function SolanaConfirmStep({
3637
3527
  }
3638
3528
  const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3639
3529
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3640
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3530
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3641
3531
  token: token.symbol,
3642
3532
  sourceAmount,
3643
3533
  amountUnits: amountUnits.toString()
@@ -3654,10 +3544,10 @@ function SolanaConfirmStep({
3654
3544
  token.mint,
3655
3545
  amountUnits
3656
3546
  );
3657
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3547
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3658
3548
  token: token.symbol,
3659
3549
  instructionCount: transaction.instructions.length,
3660
- feePayer: _optionalChain([transaction, 'access', _117 => _117.feePayer, 'optionalAccess', _118 => _118.toBase58, 'call', _119 => _119()]),
3550
+ feePayer: _optionalChain([transaction, 'access', _116 => _116.feePayer, 'optionalAccess', _117 => _117.toBase58, 'call', _118 => _118()]),
3661
3551
  recentBlockhash: transaction.recentBlockhash
3662
3552
  });
3663
3553
  const txHash = await sendSolanaTransaction(
@@ -3665,28 +3555,28 @@ function SolanaConfirmStep({
3665
3555
  connection,
3666
3556
  transaction
3667
3557
  );
3668
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3558
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3669
3559
  txHash,
3670
3560
  amountUnits: amountUnits.toString()
3671
3561
  });
3672
3562
  onConfirm(txHash, amountUnits.toString());
3673
3563
  } catch (err) {
3674
3564
  const raw = err instanceof Error ? err.message : "Transfer failed";
3675
- const message = _chunkOQVLEVNRcjs.formatUserError.call(void 0, raw);
3676
- _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3565
+ const message = _chunkEDUWRMQIcjs.formatUserError.call(void 0, raw);
3566
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3677
3567
  smartAccount,
3678
3568
  token: token.symbol,
3679
3569
  sourceAmount
3680
3570
  });
3681
3571
  setError(message);
3682
- _optionalChain([onError, 'optionalCall', _120 => _120(message, "SOLANA_TRANSFER_ERROR")]);
3572
+ _optionalChain([onError, 'optionalCall', _119 => _119(message, "SOLANA_TRANSFER_ERROR")]);
3683
3573
  } finally {
3684
3574
  setIsSubmitting(false);
3685
3575
  }
3686
3576
  };
3687
3577
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3688
3578
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3689
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}), title: "Review deposit" }),
3579
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}), title: "Review deposit" }),
3690
3580
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3691
3581
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3692
3582
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3734,13 +3624,13 @@ function SolanaConfirmStep({
3734
3624
  children: "$0.04"
3735
3625
  }
3736
3626
  ),
3737
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.InfoIcon, {}) }) })
3627
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.InfoIcon, {}) }) })
3738
3628
  ] })
3739
3629
  ] })
3740
3630
  ] }),
3741
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: error }),
3631
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: error }),
3742
3632
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3743
- _chunkOQVLEVNRcjs.Button,
3633
+ _chunkEDUWRMQIcjs.Button,
3744
3634
  {
3745
3635
  onClick: handleConfirm,
3746
3636
  loading: isSubmitting,
@@ -3751,7 +3641,7 @@ function SolanaConfirmStep({
3751
3641
  }
3752
3642
  )
3753
3643
  ] }),
3754
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3644
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3755
3645
  ] });
3756
3646
  }
3757
3647
 
@@ -3765,18 +3655,18 @@ function DappImportAssetSelectStep({
3765
3655
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3766
3656
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3767
3657
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3768
- _chunkOQVLEVNRcjs.BodyHeader,
3658
+ _chunkEDUWRMQIcjs.BodyHeader,
3769
3659
  {
3770
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
3660
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3771
3661
  title: `Transfer from ${sourceLabel}`,
3772
3662
  subtitle: "Pick the balance to import"
3773
3663
  }
3774
3664
  ),
3775
3665
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3776
- const tokenAmount = asset.balance ? _chunkOQVLEVNRcjs.tokenFormatter.format(
3666
+ const tokenAmount = asset.balance ? _chunkEDUWRMQIcjs.tokenFormatter.format(
3777
3667
  Number(asset.balance) / 10 ** asset.decimals
3778
3668
  ) : "0";
3779
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkOQVLEVNRcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3669
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkEDUWRMQIcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3780
3670
  const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol)));
3781
3671
  const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
3782
3672
  const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
@@ -3827,7 +3717,7 @@ function DappImportAssetSelectStep({
3827
3717
  );
3828
3718
  }) })
3829
3719
  ] }),
3830
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3720
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3831
3721
  ] });
3832
3722
  }
3833
3723
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3844,9 +3734,9 @@ function DappImportAssetSelectSkeleton({
3844
3734
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3845
3735
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3846
3736
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3847
- _chunkOQVLEVNRcjs.BodyHeader,
3737
+ _chunkEDUWRMQIcjs.BodyHeader,
3848
3738
  {
3849
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.WalletIcon, {}),
3739
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.WalletIcon, {}),
3850
3740
  title: `Transfer from ${sourceLabel}`,
3851
3741
  subtitle: "Pick the balance to import"
3852
3742
  }
@@ -3884,7 +3774,7 @@ function DappImportAssetSelectSkeleton({
3884
3774
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3885
3775
  }
3886
3776
  ) }),
3887
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
3777
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
3888
3778
  ] });
3889
3779
  }
3890
3780
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -4074,21 +3964,21 @@ var polymarketProvider = {
4074
3964
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4075
3965
  const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4076
3966
  if (!proxyWallet) return null;
4077
- if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3967
+ if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
4078
3968
  const polygonClient = getPublicClient2(_chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID);
4079
3969
  if (!polygonClient) return null;
4080
3970
  const balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
4081
3971
  publicClient: polygonClient,
4082
3972
  proxyWallet
4083
3973
  });
4084
- if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
3974
+ if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
4085
3975
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
4086
3976
  const walletKind = await detectPolymarketWalletKind({
4087
3977
  publicClient: polygonClient,
4088
3978
  proxyWallet,
4089
3979
  eoa
4090
3980
  });
4091
- if (_optionalChain([signal, 'optionalAccess', _123 => _123.aborted])) return null;
3981
+ if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
4092
3982
  if (!walletKind) return null;
4093
3983
  const assets = [];
4094
3984
  if (balances.pusd > 0n) {
@@ -4213,7 +4103,7 @@ function readSetupForOwner(setup, owner) {
4213
4103
  function computeDappImportStatus(providerId, inputs) {
4214
4104
  const { owner, availability, availabilityOwner, setup } = inputs;
4215
4105
  if (!owner) return "needs-connect";
4216
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _124 => _124.toLowerCase, 'call', _125 => _125()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4106
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _123 => _123.toLowerCase, 'call', _124 => _124()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4217
4107
  if (entry === "loading" || entry === void 0) return "loading";
4218
4108
  if (entry === "error") {
4219
4109
  return {
@@ -4567,12 +4457,12 @@ function applyAction(state, action) {
4567
4457
  requestKey: action.requestKey,
4568
4458
  cacheKey: action.cacheKey,
4569
4459
  status: "loading",
4570
- smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.smartAccount]), () => ( null)),
4571
- sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _127 => _127.sessionOwnerAddress]), () => ( null)),
4572
- solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _128 => _128.solanaDepositAddress]), () => ( null)),
4460
+ smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _125 => _125.smartAccount]), () => ( null)),
4461
+ sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.sessionOwnerAddress]), () => ( null)),
4462
+ solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _127 => _127.solanaDepositAddress]), () => ( null)),
4573
4463
  message: null,
4574
4464
  cacheable: action.cacheable,
4575
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _129 => _129.attemptNonce]), () => ( 0))
4465
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _128 => _128.attemptNonce]), () => ( 0))
4576
4466
  }));
4577
4467
  }
4578
4468
  case "setup/ready": {
@@ -5010,15 +4900,15 @@ var SetupError = class extends Error {
5010
4900
  }
5011
4901
  };
5012
4902
  async function resolveSessionOwner(eoaAddress) {
5013
- const local = _chunkOQVLEVNRcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4903
+ const local = _chunkEDUWRMQIcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5014
4904
  if (local) {
5015
4905
  return {
5016
- account: _chunkOQVLEVNRcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4906
+ account: _chunkEDUWRMQIcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5017
4907
  address: local.address
5018
4908
  };
5019
4909
  }
5020
- const created = _chunkOQVLEVNRcjs.createSessionOwnerKey.call(void 0, );
5021
- _chunkOQVLEVNRcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4910
+ const created = _chunkEDUWRMQIcjs.createSessionOwnerKey.call(void 0, );
4911
+ _chunkEDUWRMQIcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5022
4912
  return { account: created.account, address: created.address };
5023
4913
  }
5024
4914
  function stableStringify(value) {
@@ -5068,14 +4958,14 @@ function computeCacheKey(input, sessionOwnerAddress) {
5068
4958
  });
5069
4959
  }
5070
4960
  function computeIsCacheable(input) {
5071
- return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _130 => _130.postBridgeActions, 'optionalAccess', _131 => _131.length]), () => ( 0)));
4961
+ return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _129 => _129.postBridgeActions, 'optionalAccess', _130 => _130.length]), () => ( 0)));
5072
4962
  }
5073
4963
  var SETUP_REQUEST_DEDUPE_TTL_MS = 3e4;
5074
4964
  var setupRequestDedupe = /* @__PURE__ */ new Map();
5075
4965
  function readDedupedAccountSetupResult(requestKey) {
5076
4966
  const now = Date.now();
5077
4967
  const existing = setupRequestDedupe.get(requestKey);
5078
- if (_optionalChain([existing, 'optionalAccess', _132 => _132.settled]) && existing.expiresAt > now && existing.result) {
4968
+ if (_optionalChain([existing, 'optionalAccess', _131 => _131.settled]) && existing.expiresAt > now && existing.result) {
5079
4969
  return existing.result;
5080
4970
  }
5081
4971
  return null;
@@ -5086,10 +4976,10 @@ async function runAccountSetup(input, deps) {
5086
4976
  try {
5087
4977
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5088
4978
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5089
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4979
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5090
4980
  owner: input.ownerAddress,
5091
4981
  sessionOwner: sessionOwner.address,
5092
- hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _133 => _133.postBridgeActions, 'optionalAccess', _134 => _134.length])),
4982
+ hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _132 => _132.postBridgeActions, 'optionalAccess', _133 => _133.length])),
5093
4983
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5094
4984
  });
5095
4985
  const setup = await service.setupAccount({
@@ -5134,7 +5024,7 @@ async function runAccountSetup(input, deps) {
5134
5024
  primaryType: typedData.primaryType,
5135
5025
  message: typedData.message
5136
5026
  });
5137
- const sessionDetails = _chunkOQVLEVNRcjs.buildSessionDetails.call(void 0,
5027
+ const sessionDetails = _chunkEDUWRMQIcjs.buildSessionDetails.call(void 0,
5138
5028
  setup.sessionDetailsUnsigned,
5139
5029
  signature
5140
5030
  );
@@ -5151,10 +5041,10 @@ async function runAccountSetup(input, deps) {
5151
5041
  chain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5152
5042
  token: input.targetToken,
5153
5043
  ...input.recipient && { recipient: input.recipient },
5154
- ..._optionalChain([input, 'access', _135 => _135.postBridgeActions, 'optionalAccess', _136 => _136.length]) && {
5044
+ ..._optionalChain([input, 'access', _134 => _134.postBridgeActions, 'optionalAccess', _135 => _135.length]) && {
5155
5045
  postBridgeActions: input.postBridgeActions
5156
5046
  },
5157
- ..._optionalChain([input, 'access', _137 => _137.outputTokenRules, 'optionalAccess', _138 => _138.length]) && {
5047
+ ..._optionalChain([input, 'access', _136 => _136.outputTokenRules, 'optionalAccess', _137 => _137.length]) && {
5158
5048
  outputTokenRules: input.outputTokenRules
5159
5049
  },
5160
5050
  ...input.rejectUnmapped != null && {
@@ -5170,7 +5060,7 @@ async function runAccountSetup(input, deps) {
5170
5060
  isRegistered: true
5171
5061
  };
5172
5062
  } catch (error) {
5173
- _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5063
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5174
5064
  owner: input.ownerAddress
5175
5065
  });
5176
5066
  if (error instanceof SetupError) throw error;
@@ -5181,7 +5071,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5181
5071
  const now = Date.now();
5182
5072
  const existing = setupRequestDedupe.get(requestKey);
5183
5073
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5184
- _chunkOQVLEVNRcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5074
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5185
5075
  owner: input.ownerAddress,
5186
5076
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5187
5077
  });
@@ -5265,7 +5155,6 @@ function AccountPreparingSkeleton({
5265
5155
  ) })
5266
5156
  ] });
5267
5157
  }
5268
- var QR_AUTO_ADVANCE_HYDRATION_GRACE_MS = 1e3;
5269
5158
  var DAPP_IMPORT_RESOLVE_TIMEOUT_MS = 1e4;
5270
5159
  function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
5271
5160
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
@@ -5469,16 +5358,10 @@ function DepositFlow({
5469
5358
  onError,
5470
5359
  debug
5471
5360
  }) {
5472
- const onStepChangeRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onStepChange);
5473
- const onEventRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onEvent);
5474
- const onLifecycleRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onLifecycle);
5475
- const onErrorRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onError);
5476
- const hasInitialReownSession = Boolean(
5477
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _139 => _139.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _140 => _140.address]) : _optionalChain([reownWallet, 'optionalAccess', _141 => _141.address])
5478
- );
5479
- const hasInitialWalletHydrationPending = Boolean(
5480
- dappAddress && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasInitialReownSession && !reownWallet.isReady)
5481
- );
5361
+ const onStepChangeRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onStepChange);
5362
+ const onEventRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onEvent);
5363
+ const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
5364
+ const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
5482
5365
  const storeApi = useDepositStoreApi();
5483
5366
  const flowSlice = useDepositStore((s) => s.flow);
5484
5367
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5488,50 +5371,29 @@ function DepositFlow({
5488
5371
  const exchangeSlice = useDepositStore((s) => s.exchange);
5489
5372
  const flowMode = flowSlice.mode;
5490
5373
  const isConnectSelectionConfirmed = flowSlice.isConnectSelectionConfirmed;
5491
- const hasNavigatedBack = flowSlice.hasNavigatedBack;
5492
5374
  const selectedWalletId = useDepositStore(selectedWalletIdSelector);
5493
5375
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
5494
- const [hasQrAutoAdvanceGraceElapsed, setHasQrAutoAdvanceGraceElapsed] = _react.useState.call(void 0, () => !hasInitialWalletHydrationPending);
5495
- const portfolioAssetsRef = _react.useRef.call(void 0, []);
5496
5376
  const stableWalletSignerRef = _react.useRef.call(void 0, null);
5497
5377
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5498
5378
  const logFlow = _react.useCallback.call(void 0,
5499
5379
  (message, data) => {
5500
- _chunkOQVLEVNRcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5380
+ _chunkEDUWRMQIcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5501
5381
  },
5502
5382
  [debug]
5503
5383
  );
5504
5384
  const logFlowError = _react.useCallback.call(void 0,
5505
5385
  (message, error, data) => {
5506
- _chunkOQVLEVNRcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5386
+ _chunkEDUWRMQIcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5507
5387
  },
5508
5388
  [debug]
5509
5389
  );
5510
- const handleAssetsLoaded = _react.useCallback.call(void 0, (assets) => {
5511
- portfolioAssetsRef.current = assets;
5512
- }, []);
5513
- const getTokenPriceUsd = _react.useCallback.call(void 0, (symbol) => {
5514
- const sym = symbol.toLowerCase();
5515
- for (const asset of portfolioAssetsRef.current) {
5516
- if (asset.symbol.toLowerCase() === sym && asset.balanceUsd && asset.balance) {
5517
- try {
5518
- const balanceUnits = Number(
5519
- _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals)
5520
- );
5521
- if (balanceUnits > 0) return asset.balanceUsd / balanceUnits;
5522
- } catch (e28) {
5523
- }
5524
- }
5525
- }
5526
- return null;
5527
- }, []);
5528
5390
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5529
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _142 => _142.switchChain])) return void 0;
5391
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _138 => _138.switchChain])) return void 0;
5530
5392
  return async (chainId) => {
5531
- await _optionalChain([dappWalletClient, 'access', _143 => _143.switchChain, 'optionalCall', _144 => _144({ id: chainId })]);
5393
+ await _optionalChain([dappWalletClient, 'access', _139 => _139.switchChain, 'optionalCall', _140 => _140({ id: chainId })]);
5532
5394
  };
5533
5395
  }, [dappWalletClient]);
5534
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _145 => _145.account, 'optionalAccess', _146 => _146.address]), () => ( null));
5396
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _141 => _141.account, 'optionalAccess', _142 => _142.address]), () => ( null));
5535
5397
  const walletOptions = _react.useMemo.call(void 0, () => {
5536
5398
  const options = [];
5537
5399
  const seen = /* @__PURE__ */ new Set();
@@ -5545,7 +5407,7 @@ function DepositFlow({
5545
5407
  });
5546
5408
  seen.add(id);
5547
5409
  }
5548
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _147 => _147.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5410
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _143 => _143.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5549
5411
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5550
5412
  if (!seen.has(id)) {
5551
5413
  options.push({
@@ -5557,7 +5419,7 @@ function DepositFlow({
5557
5419
  });
5558
5420
  seen.add(id);
5559
5421
  }
5560
- } else if (_optionalChain([reownWallet, 'optionalAccess', _148 => _148.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5422
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _144 => _144.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5561
5423
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5562
5424
  if (!seen.has(id)) {
5563
5425
  options.push({
@@ -5574,39 +5436,25 @@ function DepositFlow({
5574
5436
  }, [
5575
5437
  connectedWalletAddress,
5576
5438
  dappAddress,
5577
- _optionalChain([reownWallet, 'optionalAccess', _149 => _149.address]),
5578
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.isConnected]),
5579
- _optionalChain([reownWallet, 'optionalAccess', _151 => _151.walletClient]),
5580
- _optionalChain([reownWallet, 'optionalAccess', _152 => _152.publicClient]),
5581
- _optionalChain([reownWallet, 'optionalAccess', _153 => _153.icon]),
5439
+ _optionalChain([reownWallet, 'optionalAccess', _145 => _145.address]),
5440
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.isConnected]),
5441
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.walletClient]),
5442
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.publicClient]),
5443
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.icon]),
5582
5444
  enableSolana,
5583
- _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isSolana]),
5584
- _optionalChain([reownWallet, 'optionalAccess', _155 => _155.solanaAddress]),
5585
- _optionalChain([reownWallet, 'optionalAccess', _156 => _156.caipAddress])
5445
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.isSolana]),
5446
+ _optionalChain([reownWallet, 'optionalAccess', _151 => _151.solanaAddress]),
5447
+ _optionalChain([reownWallet, 'optionalAccess', _152 => _152.caipAddress])
5586
5448
  ]);
5587
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5449
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _153 => _153.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5588
5450
  const hasWalletOptions = walletOptions.length > 0;
5589
5451
  const hasReownSession = Boolean(
5590
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _158 => _158.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _159 => _159.address]) : _optionalChain([reownWallet, 'optionalAccess', _160 => _160.address])
5591
- );
5592
- const isWalletHydrationPending = Boolean(
5593
- dappAddress && !hasWalletOptions && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady)
5452
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _155 => _155.address]) : _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address])
5594
5453
  );
5595
5454
  const isDappImportWalletHydrating = Boolean(
5596
5455
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
5597
5456
  );
5598
5457
  const showConnectStep = flowMode === null && !isConnectSelectionConfirmed;
5599
- _react.useEffect.call(void 0, () => {
5600
- if (!isWalletHydrationPending) {
5601
- setHasQrAutoAdvanceGraceElapsed(true);
5602
- return;
5603
- }
5604
- setHasQrAutoAdvanceGraceElapsed(false);
5605
- const timeout = window.setTimeout(() => {
5606
- setHasQrAutoAdvanceGraceElapsed(true);
5607
- }, QR_AUTO_ADVANCE_HYDRATION_GRACE_MS);
5608
- return () => window.clearTimeout(timeout);
5609
- }, [isWalletHydrationPending]);
5610
5458
  const walletSelectionKey = _react.useMemo.call(void 0, () => {
5611
5459
  if (flowMode !== "wallet" && flowMode !== "dapp-import") return null;
5612
5460
  if (canAutoLock) {
@@ -5649,16 +5497,16 @@ function DepositFlow({
5649
5497
  return {
5650
5498
  ownerAddress: dappAddress,
5651
5499
  walletClient: void 0,
5652
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5500
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5653
5501
  switchChain: void 0
5654
5502
  };
5655
5503
  }
5656
5504
  if (canAutoLock) {
5657
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _161 => _161.chain, 'optionalAccess', _162 => _162.id]), () => ( setupChainId));
5505
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.chain, 'optionalAccess', _158 => _158.id]), () => ( setupChainId));
5658
5506
  return {
5659
5507
  ownerAddress: dappWalletClient.account.address,
5660
5508
  walletClient: dappWalletClient,
5661
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, fallbackChainId))),
5509
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5662
5510
  switchChain: dappSwitchChain
5663
5511
  };
5664
5512
  }
@@ -5672,24 +5520,24 @@ function DepositFlow({
5672
5520
  return {
5673
5521
  ownerAddress: dappAddress,
5674
5522
  walletClient: void 0,
5675
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5523
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5676
5524
  switchChain: void 0
5677
5525
  };
5678
5526
  }
5679
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _163 => _163.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5680
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _164 => _164.chain, 'optionalAccess', _165 => _165.id]), () => ( setupChainId));
5527
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _159 => _159.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5528
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _160 => _160.chain, 'optionalAccess', _161 => _161.id]), () => ( setupChainId));
5681
5529
  return {
5682
5530
  ownerAddress: dappWalletClient.account.address,
5683
5531
  walletClient: dappWalletClient,
5684
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, fallbackChainId))),
5532
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, fallbackChainId))),
5685
5533
  switchChain: dappSwitchChain
5686
5534
  };
5687
5535
  }
5688
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5536
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _162 => _162.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5689
5537
  return {
5690
5538
  ownerAddress: reownWallet.address,
5691
5539
  walletClient: reownWallet.walletClient,
5692
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5540
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5693
5541
  switchChain: reownWallet.switchChain
5694
5542
  };
5695
5543
  }
@@ -5727,7 +5575,7 @@ function DepositFlow({
5727
5575
  return {
5728
5576
  ownerAddress: dappAddress,
5729
5577
  walletClient: void 0,
5730
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkOQVLEVNRcjs.getPublicClient.call(void 0, setupChainId))),
5578
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEDUWRMQIcjs.getPublicClient.call(void 0, setupChainId))),
5731
5579
  switchChain: void 0
5732
5580
  };
5733
5581
  }
@@ -5752,37 +5600,37 @@ function DepositFlow({
5752
5600
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5753
5601
  if (!selectedWalletId) return null;
5754
5602
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5755
- if (_optionalChain([opt, 'optionalAccess', _167 => _167.kind]) === "external" && opt.address) {
5603
+ if (_optionalChain([opt, 'optionalAccess', _163 => _163.kind]) === "external" && opt.address) {
5756
5604
  return opt.address;
5757
5605
  }
5758
- if (_optionalChain([opt, 'optionalAccess', _168 => _168.kind]) === "connected" && opt.address) {
5606
+ if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "connected" && opt.address) {
5759
5607
  return opt.address;
5760
5608
  }
5761
5609
  return null;
5762
5610
  }, [selectedWalletId, walletOptions]);
5763
5611
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5764
5612
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5765
- if (_optionalChain([reownWallet, 'optionalAccess', _169 => _169.address]) && reownWallet.isConnected) {
5613
+ if (_optionalChain([reownWallet, 'optionalAccess', _165 => _165.address]) && reownWallet.isConnected) {
5766
5614
  return reownWallet.address;
5767
5615
  }
5768
5616
  if (connectedWalletAddress) return connectedWalletAddress;
5769
5617
  return null;
5770
5618
  }, [
5771
5619
  selectedEvmWalletOwner,
5772
- _optionalChain([reownWallet, 'optionalAccess', _170 => _170.address]),
5773
- _optionalChain([reownWallet, 'optionalAccess', _171 => _171.isConnected]),
5620
+ _optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]),
5621
+ _optionalChain([reownWallet, 'optionalAccess', _167 => _167.isConnected]),
5774
5622
  connectedWalletAddress
5775
5623
  ]);
5776
5624
  const activeOwner = _react.useMemo.call(void 0,
5777
5625
  () => resolveOwnerForMode(flowMode, {
5778
5626
  dappAddress,
5779
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _172 => _172.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5627
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _168 => _168.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5780
5628
  dappImportOwner
5781
5629
  }),
5782
5630
  [
5783
5631
  flowMode,
5784
5632
  dappAddress,
5785
- _optionalChain([signerContext, 'optionalAccess', _173 => _173.ownerAddress]),
5633
+ _optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]),
5786
5634
  canAutoLock,
5787
5635
  connectedWalletAddress,
5788
5636
  selectedEvmWalletOwner,
@@ -5811,12 +5659,12 @@ function DepositFlow({
5811
5659
  return;
5812
5660
  }
5813
5661
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5814
- _optionalChain([onLifecycleRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175({
5662
+ _optionalChain([onLifecycleRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171({
5815
5663
  type: "smart-account-changed",
5816
5664
  evm: activeEntry.smartAccount,
5817
5665
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5818
5666
  })]);
5819
- _optionalChain([onLifecycleRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177({
5667
+ _optionalChain([onLifecycleRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173({
5820
5668
  type: "connected",
5821
5669
  address: activeOwner,
5822
5670
  smartAccount: activeEntry.smartAccount
@@ -5850,14 +5698,10 @@ function DepositFlow({
5850
5698
  );
5851
5699
  const step = effectiveStep;
5852
5700
  const handleBack = _react.useCallback.call(void 0, () => {
5853
- const stepBeforeBack = storeApi.getState().flow.step;
5854
5701
  storeApi.dispatch({
5855
5702
  type: "back/requested",
5856
5703
  hasWalletOptions: hasWalletOptions || Boolean(reownWallet)
5857
5704
  });
5858
- if (stepBeforeBack === "deposit-address" || stepBeforeBack === "select-asset" || stepBeforeBack === "solana-token-select") {
5859
- portfolioAssetsRef.current = [];
5860
- }
5861
5705
  }, [storeApi, hasWalletOptions, reownWallet]);
5862
5706
  const canGoBackFromHere = effectiveStep.type === "deposit-address" || effectiveStep.type === "solana-token-select" || effectiveStep.type === "solana-amount" || effectiveStep.type === "solana-confirm" || effectiveStep.type === "amount" || effectiveStep.type === "confirm" || // Escape hatch from a slow or stuck pre-routed resolve. Mode-gated so
5863
5707
  // the chevron doesn't linger if a disconnect cleared the mode out from
@@ -5866,7 +5710,7 @@ function DepositFlow({
5866
5710
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
5867
5711
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
5868
5712
  _react.useEffect.call(void 0, () => {
5869
- _optionalChain([onStepChangeRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179(currentBackHandler, currentScreen)]);
5713
+ _optionalChain([onStepChangeRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175(currentBackHandler, currentScreen)]);
5870
5714
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
5871
5715
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
5872
5716
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -5876,7 +5720,7 @@ function DepositFlow({
5876
5720
  modalContentElRef.current = mc;
5877
5721
  const ro = new ResizeObserver((entries) => {
5878
5722
  for (const entry of entries) {
5879
- const border = _optionalChain([entry, 'access', _180 => _180.borderBoxSize, 'optionalAccess', _181 => _181[0], 'optionalAccess', _182 => _182.blockSize]);
5723
+ const border = _optionalChain([entry, 'access', _176 => _176.borderBoxSize, 'optionalAccess', _177 => _177[0], 'optionalAccess', _178 => _178.blockSize]);
5880
5724
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
5881
5725
  }
5882
5726
  });
@@ -5917,7 +5761,7 @@ function DepositFlow({
5917
5761
  }
5918
5762
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
5919
5763
  if (effectiveStep.type === "select-asset") {
5920
- _optionalChain([onEventRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5764
+ _optionalChain([onEventRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180({
5921
5765
  type: "deposit_modal_connected_wallet_select_source_open",
5922
5766
  total_balance_in_external_wallet: totalBalanceUsd,
5923
5767
  pred_balance: totalBalanceUsd
@@ -5925,7 +5769,7 @@ function DepositFlow({
5925
5769
  } else if (effectiveStep.type === "deposit-address") {
5926
5770
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
5927
5771
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5928
- _optionalChain([onEventRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5772
+ _optionalChain([onEventRef, 'access', _181 => _181.current, 'optionalCall', _182 => _182({
5929
5773
  type: "deposit_modal_transfer_crypto_open",
5930
5774
  default_chain: chainName,
5931
5775
  default_token: tokenSymbol,
@@ -5933,7 +5777,7 @@ function DepositFlow({
5933
5777
  })]);
5934
5778
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5935
5779
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5936
- _optionalChain([onEventRef, 'access', _187 => _187.current, 'optionalCall', _188 => _188({
5780
+ _optionalChain([onEventRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5937
5781
  type: "deposit_modal_connected_wallet_enter_value_open",
5938
5782
  send_token: stepSendToken,
5939
5783
  receive_token: receiveSymbol,
@@ -5966,7 +5810,7 @@ function DepositFlow({
5966
5810
  targetToken
5967
5811
  ]);
5968
5812
  _react.useEffect.call(void 0, () => {
5969
- _optionalChain([onLifecycleRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190({
5813
+ _optionalChain([onLifecycleRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5970
5814
  type: "balance-changed",
5971
5815
  totalUsd: totalBalanceUsd
5972
5816
  })]);
@@ -5982,7 +5826,7 @@ function DepositFlow({
5982
5826
  const handleConfirmWallet = _react.useCallback.call(void 0,
5983
5827
  (walletId) => {
5984
5828
  const selectedOption = walletOptions.find((o) => o.id === walletId);
5985
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _191 => _191.kind]) === "solana" ? "solana-wallet" : "wallet";
5829
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _187 => _187.kind]) === "solana" ? "solana-wallet" : "wallet";
5986
5830
  storeApi.dispatch({
5987
5831
  type: "connect/wallet-confirmed",
5988
5832
  walletId,
@@ -5992,7 +5836,7 @@ function DepositFlow({
5992
5836
  [walletOptions, enableSolana, storeApi]
5993
5837
  );
5994
5838
  const isSolanaWalletConnected = Boolean(
5995
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _192 => _192.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _193 => _193.isSolana])
5839
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _188 => _188.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isSolana])
5996
5840
  );
5997
5841
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
5998
5842
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -6009,7 +5853,7 @@ function DepositFlow({
6009
5853
  const owner = dappImportOwner;
6010
5854
  if (owner) {
6011
5855
  const wallet = walletOptions.find(
6012
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === owner.toLowerCase()
5856
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _190 => _190.toLowerCase, 'call', _191 => _191()]) === owner.toLowerCase()
6013
5857
  );
6014
5858
  if (wallet) {
6015
5859
  storeApi.dispatch({
@@ -6050,8 +5894,8 @@ function DepositFlow({
6050
5894
  eoa: dappImportOwner,
6051
5895
  getPublicClient: (chainId) => {
6052
5896
  try {
6053
- return _chunkOQVLEVNRcjs.getPublicClient.call(void 0, chainId);
6054
- } catch (e29) {
5897
+ return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
5898
+ } catch (e28) {
6055
5899
  return null;
6056
5900
  }
6057
5901
  },
@@ -6126,7 +5970,7 @@ function DepositFlow({
6126
5970
  }, [activeDappImportProviderId, enabledDappImportProviders]);
6127
5971
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
6128
5972
  if (!activeDappImportProviderId) return null;
6129
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _196 => _196.toLowerCase, 'call', _197 => _197()]) !== dappImportOwner.toLowerCase()) {
5973
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _192 => _192.toLowerCase, 'call', _193 => _193()]) !== dappImportOwner.toLowerCase()) {
6130
5974
  return null;
6131
5975
  }
6132
5976
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6167,7 +6011,7 @@ function DepositFlow({
6167
6011
  setup: setupSlice
6168
6012
  });
6169
6013
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6170
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _198 => _198.toLowerCase, 'call', _199 => _199()]) === dappImportOwner.toLowerCase()
6014
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === dappImportOwner.toLowerCase()
6171
6015
  ), () => ( null)) : null;
6172
6016
  const outcome = resolveBootOutcome({
6173
6017
  status,
@@ -6209,7 +6053,7 @@ function DepositFlow({
6209
6053
  if (dappImportOwner) {
6210
6054
  const plan = bootRetryPlan({
6211
6055
  setupStatus: readSetupForOwner(snapshot.setup, dappImportOwner).status,
6212
- availabilityEntry: _optionalChain([snapshot, 'access', _200 => _200.dappImport, 'access', _201 => _201.availabilityOwner, 'optionalAccess', _202 => _202.toLowerCase, 'call', _203 => _203()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6056
+ availabilityEntry: _optionalChain([snapshot, 'access', _196 => _196.dappImport, 'access', _197 => _197.availabilityOwner, 'optionalAccess', _198 => _198.toLowerCase, 'call', _199 => _199()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6213
6057
  });
6214
6058
  if (plan.restartSetup) {
6215
6059
  storeApi.dispatch({
@@ -6250,13 +6094,12 @@ function DepositFlow({
6250
6094
  [storeApi]
6251
6095
  );
6252
6096
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6253
- _optionalChain([onLifecycleRef, 'access', _204 => _204.current, 'optionalCall', _205 => _205({
6097
+ _optionalChain([onLifecycleRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
6254
6098
  type: "smart-account-changed",
6255
6099
  evm: null,
6256
6100
  solana: null
6257
6101
  })]);
6258
6102
  storeApi.dispatch({ type: "flow/reset" });
6259
- portfolioAssetsRef.current = [];
6260
6103
  stableWalletSignerRef.current = null;
6261
6104
  stableWalletSelectionKeyRef.current = null;
6262
6105
  }, [onLifecycleRef, storeApi]);
@@ -6298,13 +6141,13 @@ function DepositFlow({
6298
6141
  };
6299
6142
  push(dappAddress);
6300
6143
  push(connectedWalletAddress);
6301
- push(_optionalChain([reownWallet, 'optionalAccess', _206 => _206.address]));
6144
+ push(_optionalChain([reownWallet, 'optionalAccess', _202 => _202.address]));
6302
6145
  push(dappImportOwner);
6303
6146
  return owners;
6304
6147
  }, [
6305
6148
  dappAddress,
6306
6149
  connectedWalletAddress,
6307
- _optionalChain([reownWallet, 'optionalAccess', _207 => _207.address]),
6150
+ _optionalChain([reownWallet, 'optionalAccess', _203 => _203.address]),
6308
6151
  dappImportOwner
6309
6152
  ]);
6310
6153
  _react.useEffect.call(void 0, () => {
@@ -6318,7 +6161,7 @@ function DepositFlow({
6318
6161
  try {
6319
6162
  sessionOwner = await resolveSessionOwner(owner);
6320
6163
  } catch (error) {
6321
- _chunkOQVLEVNRcjs.debugError.call(void 0,
6164
+ _chunkEDUWRMQIcjs.debugError.call(void 0,
6322
6165
  debug,
6323
6166
  "deposit-flow",
6324
6167
  "session-owner:resolve-failed",
@@ -6409,7 +6252,7 @@ function DepositFlow({
6409
6252
  sourceChain: data.sourceChain,
6410
6253
  amount: data.amount
6411
6254
  });
6412
- _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({ type: "submitted", ...data })]);
6255
+ _optionalChain([onLifecycleRef, 'access', _204 => _204.current, 'optionalCall', _205 => _205({ type: "submitted", ...data })]);
6413
6256
  },
6414
6257
  [logFlow, onLifecycleRef]
6415
6258
  );
@@ -6430,7 +6273,7 @@ function DepositFlow({
6430
6273
  (token, sourceAmount, inputAmountUsd) => {
6431
6274
  const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6432
6275
  const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6433
- const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6276
+ const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6434
6277
  logFlow("solana:amount:continue", {
6435
6278
  token: token.symbol,
6436
6279
  sourceAmount,
@@ -6446,7 +6289,7 @@ function DepositFlow({
6446
6289
  targetTokenPriceUsd
6447
6290
  });
6448
6291
  },
6449
- [targetToken, targetChain, getTokenPriceUsd, logFlow, storeApi]
6292
+ [targetToken, targetChain, logFlow, storeApi]
6450
6293
  );
6451
6294
  const handleSolanaConfirmed = _react.useCallback.call(void 0,
6452
6295
  (txHash, amountUnits) => {
@@ -6469,7 +6312,7 @@ function DepositFlow({
6469
6312
  sourceDecimals: tokenAtSubmit.decimals,
6470
6313
  inputAmountUsd: amountUsd
6471
6314
  });
6472
- _optionalChain([onLifecycleRef, 'access', _210 => _210.current, 'optionalCall', _211 => _211({
6315
+ _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({
6473
6316
  type: "submitted",
6474
6317
  txHash,
6475
6318
  sourceChain: "solana",
@@ -6482,7 +6325,7 @@ function DepositFlow({
6482
6325
  );
6483
6326
  const handleAssetContinue = _react.useCallback.call(void 0,
6484
6327
  (asset) => {
6485
- _optionalChain([onEventRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6328
+ _optionalChain([onEventRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6486
6329
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6487
6330
  total_balance_in_external_wallet: totalBalanceUsd,
6488
6331
  pred_balance: totalBalanceUsd,
@@ -6507,7 +6350,7 @@ function DepositFlow({
6507
6350
  if (entry.status !== "ready") return;
6508
6351
  const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6509
6352
  const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6510
- const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6353
+ const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6511
6354
  storeApi.dispatch({
6512
6355
  type: "amount/entered",
6513
6356
  amount,
@@ -6517,7 +6360,7 @@ function DepositFlow({
6517
6360
  liquidityWarning
6518
6361
  });
6519
6362
  },
6520
- [targetToken, targetChain, getTokenPriceUsd, storeApi, activeOwner]
6363
+ [targetToken, targetChain, storeApi, activeOwner]
6521
6364
  );
6522
6365
  const handleDepositSubmitted = _react.useCallback.call(void 0,
6523
6366
  (txHash, chainId, amount, token) => {
@@ -6536,8 +6379,8 @@ function DepositFlow({
6536
6379
  sourceChain: chainId,
6537
6380
  sourceToken: token,
6538
6381
  amount,
6539
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _214 => _214.symbol]),
6540
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _215 => _215.decimals]),
6382
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _210 => _210.symbol]),
6383
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _211 => _211.decimals]),
6541
6384
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6542
6385
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
6543
6386
  });
@@ -6560,7 +6403,7 @@ function DepositFlow({
6560
6403
  sourceSymbol: _nullishCoalesce(info.orderCrypto, () => ( "USDC")),
6561
6404
  sourceDecimals: SWAPPED_SOURCE_DECIMALS
6562
6405
  });
6563
- _optionalChain([onLifecycleRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217({
6406
+ _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6564
6407
  type: "submitted",
6565
6408
  txHash: info.txHash,
6566
6409
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6573,12 +6416,12 @@ function DepositFlow({
6573
6416
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6574
6417
  (txHash, sourceChain, amount) => {
6575
6418
  const depositAtSubmit = storeApi.getState().deposit;
6576
- _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6419
+ _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({
6577
6420
  type: "submitted",
6578
6421
  txHash,
6579
6422
  sourceChain,
6580
6423
  amount,
6581
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _220 => _220.selectedAsset, 'optionalAccess', _221 => _221.decimals]),
6424
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _216 => _216.selectedAsset, 'optionalAccess', _217 => _217.decimals]),
6582
6425
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6583
6426
  })]);
6584
6427
  },
@@ -6587,7 +6430,7 @@ function DepositFlow({
6587
6430
  const handleDepositComplete = _react.useCallback.call(void 0,
6588
6431
  (txHash, destinationTxHash, context) => {
6589
6432
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6590
- _optionalChain([onLifecycleRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({
6433
+ _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6591
6434
  type: "complete",
6592
6435
  txHash,
6593
6436
  destinationTxHash,
@@ -6599,14 +6442,14 @@ function DepositFlow({
6599
6442
  const handleDepositFailed = _react.useCallback.call(void 0,
6600
6443
  (txHash, error) => {
6601
6444
  logFlowError("deposit:failed", error, { txHash });
6602
- _optionalChain([onLifecycleRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225({ type: "failed", txHash, error })]);
6445
+ _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({ type: "failed", txHash, error })]);
6603
6446
  },
6604
6447
  [logFlowError, onLifecycleRef]
6605
6448
  );
6606
6449
  const handleError = _react.useCallback.call(void 0,
6607
6450
  (message, code) => {
6608
6451
  logFlowError("flow:error", message, { code });
6609
- _optionalChain([onErrorRef, 'access', _226 => _226.current, 'optionalCall', _227 => _227({ message, code })]);
6452
+ _optionalChain([onErrorRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({ message, code })]);
6610
6453
  },
6611
6454
  [logFlowError, onErrorRef]
6612
6455
  );
@@ -6648,26 +6491,6 @@ function DepositFlow({
6648
6491
  storeApi.dispatch({ type: "flow/step-set", step: "connect" });
6649
6492
  }
6650
6493
  }, [enableSolana, flowMode, storeApi]);
6651
- _react.useEffect.call(void 0, () => {
6652
- if (hasNavigatedBack || isConnectSelectionConfirmed || flowMode || enableFiatOnramp || enableExchangeConnect || initialDappImportProvider) {
6653
- return;
6654
- }
6655
- if (enableQrTransfer && !hasWalletOptions && dappAddress && !hasReownSession && !dappWalletClient && hasQrAutoAdvanceGraceElapsed) {
6656
- handleSelectTransferCrypto();
6657
- }
6658
- }, [
6659
- enableQrTransfer,
6660
- hasWalletOptions,
6661
- hasReownSession,
6662
- hasQrAutoAdvanceGraceElapsed,
6663
- isConnectSelectionConfirmed,
6664
- flowMode,
6665
- hasNavigatedBack,
6666
- dappAddress,
6667
- dappWalletClient,
6668
- initialDappImportProvider,
6669
- handleSelectTransferCrypto
6670
- ]);
6671
6494
  const walletRows = _react.useMemo.call(void 0, () => {
6672
6495
  return walletOptions.map((option) => {
6673
6496
  const ownerForRow = option.kind === "solana" ? dappAddress : _nullishCoalesce(option.address, () => ( null));
@@ -6697,7 +6520,7 @@ function DepositFlow({
6697
6520
  );
6698
6521
  if (showConnectStep) {
6699
6522
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6700
- _chunkOQVLEVNRcjs.ConnectStep,
6523
+ _chunkEDUWRMQIcjs.ConnectStep,
6701
6524
  {
6702
6525
  walletRows,
6703
6526
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6729,7 +6552,7 @@ function DepositFlow({
6729
6552
  },
6730
6553
  dappImports: connectStepDappImports,
6731
6554
  onSelectDappImport: (providerId) => {
6732
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _228 => _228.toLowerCase, 'call', _229 => _229()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6555
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _224 => _224.toLowerCase, 'call', _225 => _225()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6733
6556
  if (availabilityEntry === "error") {
6734
6557
  storeApi.dispatch({
6735
6558
  type: "dapp-import/availability-retry-requested"
@@ -6775,7 +6598,7 @@ function DepositFlow({
6775
6598
  allowedRoutes,
6776
6599
  targetChain,
6777
6600
  targetToken,
6778
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _230 => _230.length])),
6601
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _226 => _226.length])),
6779
6602
  uiConfig,
6780
6603
  onDepositSubmitted: handleDepositAddressSubmitted,
6781
6604
  onDepositComplete: handleDepositComplete,
@@ -6783,7 +6606,7 @@ function DepositFlow({
6783
6606
  onCopyAddress: () => {
6784
6607
  const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
6785
6608
  const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6786
- _optionalChain([onEvent, 'optionalCall', _231 => _231({
6609
+ _optionalChain([onEvent, 'optionalCall', _227 => _227({
6787
6610
  type: "deposit_modal_transfer_crypto_cta_click",
6788
6611
  default_chain: chainName,
6789
6612
  default_token: tokenSymbol,
@@ -6827,7 +6650,7 @@ function DepositFlow({
6827
6650
  }
6828
6651
  ),
6829
6652
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6830
- _chunkOQVLEVNRcjs.ProcessingStep,
6653
+ _chunkEDUWRMQIcjs.ProcessingStep,
6831
6654
  {
6832
6655
  smartAccount: step.smartAccount,
6833
6656
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6840,7 +6663,7 @@ function DepositFlow({
6840
6663
  sourceSymbol: step.sourceSymbol,
6841
6664
  sourceDecimals: step.sourceDecimals,
6842
6665
  amountUsd: step.inputAmountUsd,
6843
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _232 => _232.length])),
6666
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6844
6667
  service,
6845
6668
  directTransfer: step.directTransfer,
6846
6669
  isSwappedOrder: true,
@@ -6894,7 +6717,7 @@ function DepositFlow({
6894
6717
  }
6895
6718
  ),
6896
6719
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6897
- _chunkOQVLEVNRcjs.ProcessingStep,
6720
+ _chunkEDUWRMQIcjs.ProcessingStep,
6898
6721
  {
6899
6722
  smartAccount: step.smartAccount,
6900
6723
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6907,7 +6730,7 @@ function DepositFlow({
6907
6730
  sourceSymbol: step.sourceSymbol,
6908
6731
  sourceDecimals: step.sourceDecimals,
6909
6732
  amountUsd: step.inputAmountUsd,
6910
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _233 => _233.length])),
6733
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _229 => _229.length])),
6911
6734
  service,
6912
6735
  directTransfer: step.directTransfer,
6913
6736
  isSwappedOrder: true,
@@ -6925,8 +6748,8 @@ function DepositFlow({
6925
6748
  }
6926
6749
  if (isSolanaWalletMode) {
6927
6750
  if (!dappAddress) return null;
6928
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _234 => _234.solanaAddress]);
6929
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _235 => _235.solanaProvider]);
6751
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _230 => _230.solanaAddress]);
6752
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaProvider]);
6930
6753
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6931
6754
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6932
6755
  AccountPreparingSkeleton,
@@ -6983,7 +6806,7 @@ function DepositFlow({
6983
6806
  targetToken,
6984
6807
  service,
6985
6808
  solanaProvider,
6986
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _236 => _236.solanaConnection]),
6809
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaConnection]),
6987
6810
  uiConfig,
6988
6811
  onConfirm: handleSolanaConfirmed,
6989
6812
  onError: handleError,
@@ -7024,7 +6847,7 @@ function DepositFlow({
7024
6847
  ) })
7025
6848
  ] }) : null,
7026
6849
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7027
- _chunkOQVLEVNRcjs.ProcessingStep,
6850
+ _chunkEDUWRMQIcjs.ProcessingStep,
7028
6851
  {
7029
6852
  smartAccount: effectiveStep.smartAccount,
7030
6853
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7037,7 +6860,7 @@ function DepositFlow({
7037
6860
  sourceSymbol: effectiveStep.sourceSymbol,
7038
6861
  sourceDecimals: effectiveStep.sourceDecimals,
7039
6862
  amountUsd: effectiveStep.inputAmountUsd,
7040
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _237 => _237.length])),
6863
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _233 => _233.length])),
7041
6864
  service,
7042
6865
  directTransfer: effectiveStep.directTransfer,
7043
6866
  onClose,
@@ -7060,7 +6883,7 @@ function DepositFlow({
7060
6883
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7061
6884
  DappImportAssetSelectSkeleton,
7062
6885
  {
7063
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _238 => _238.sourceLabel]), () => ( "")),
6886
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _234 => _234.sourceLabel]), () => ( "")),
7064
6887
  error: dappImportBootError,
7065
6888
  onRetry: handleBootRetry
7066
6889
  }
@@ -7068,16 +6891,16 @@ function DepositFlow({
7068
6891
  }
7069
6892
  );
7070
6893
  }
7071
- if (!_optionalChain([signerContext, 'optionalAccess', _239 => _239.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _240 => _240.publicClient])) {
6894
+ if (!_optionalChain([signerContext, 'optionalAccess', _235 => _235.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _236 => _236.publicClient])) {
7072
6895
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-state", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: "Connecting wallet\u2026" }) }) }) }) });
7073
6896
  }
7074
6897
  const ownerAddress = signerContext.ownerAddress;
7075
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _241 => _241.walletClient, 'optionalAccess', _242 => _242.chain, 'optionalAccess', _243 => _243.id]), () => ( _optionalChain([signerContext, 'access', _244 => _244.publicClient, 'access', _245 => _245.chain, 'optionalAccess', _246 => _246.id]))), () => ( setupChainId));
6898
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _237 => _237.walletClient, 'optionalAccess', _238 => _238.chain, 'optionalAccess', _239 => _239.id]), () => ( _optionalChain([signerContext, 'access', _240 => _240.publicClient, 'access', _241 => _241.chain, 'optionalAccess', _242 => _242.id]))), () => ( setupChainId));
7076
6899
  const getReadClientForChain = (chainId) => {
7077
- if (_optionalChain([signerContext, 'access', _247 => _247.publicClient, 'access', _248 => _248.chain, 'optionalAccess', _249 => _249.id]) === chainId) {
6900
+ if (_optionalChain([signerContext, 'access', _243 => _243.publicClient, 'access', _244 => _244.chain, 'optionalAccess', _245 => _245.id]) === chainId) {
7078
6901
  return signerContext.publicClient;
7079
6902
  }
7080
- return _chunkOQVLEVNRcjs.getPublicClient.call(void 0, chainId);
6903
+ return _chunkEDUWRMQIcjs.getPublicClient.call(void 0, chainId);
7081
6904
  };
7082
6905
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7083
6906
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7098,7 +6921,6 @@ function DepositFlow({
7098
6921
  service,
7099
6922
  onContinue: handleAssetContinue,
7100
6923
  onTotalBalanceComputed: handleTotalBalanceComputed,
7101
- onAssetsLoaded: handleAssetsLoaded,
7102
6924
  onDisconnect: onDisconnect ? () => {
7103
6925
  onDisconnect();
7104
6926
  handleBack();
@@ -7108,7 +6930,7 @@ function DepositFlow({
7108
6930
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7109
6931
  DappImportAssetSelectStep,
7110
6932
  {
7111
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _250 => _250.assets, 'access', _251 => _251[0], 'optionalAccess', _252 => _252.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6933
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _246 => _246.assets, 'access', _247 => _247[0], 'optionalAccess', _248 => _248.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
7112
6934
  assets: activeDappImportAvailability.assets,
7113
6935
  onSelect: handleDappImportAssetSelected
7114
6936
  }
@@ -7135,7 +6957,7 @@ function DepositFlow({
7135
6957
  onContinue: handleAmountContinue,
7136
6958
  onCtaClick: (ctaName) => {
7137
6959
  const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7138
- _optionalChain([onEvent, 'optionalCall', _253 => _253({
6960
+ _optionalChain([onEvent, 'optionalCall', _249 => _249({
7139
6961
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7140
6962
  send_token: effectiveStep.asset.symbol,
7141
6963
  receive_token: receiveSymbol,
@@ -7187,7 +7009,7 @@ function DepositFlow({
7187
7009
  }
7188
7010
  ),
7189
7011
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7190
- _chunkOQVLEVNRcjs.ProcessingStep,
7012
+ _chunkEDUWRMQIcjs.ProcessingStep,
7191
7013
  {
7192
7014
  smartAccount: effectiveStep.smartAccount,
7193
7015
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7200,7 +7022,7 @@ function DepositFlow({
7200
7022
  sourceSymbol: effectiveStep.sourceSymbol,
7201
7023
  sourceDecimals: effectiveStep.sourceDecimals,
7202
7024
  amountUsd: effectiveStep.inputAmountUsd,
7203
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _254 => _254.length])),
7025
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _250 => _250.length])),
7204
7026
  service,
7205
7027
  directTransfer: effectiveStep.directTransfer,
7206
7028
  uiConfig,
@@ -7232,7 +7054,7 @@ function formatDate(iso) {
7232
7054
  month: "short",
7233
7055
  year: "numeric"
7234
7056
  });
7235
- } catch (e30) {
7057
+ } catch (e29) {
7236
7058
  return iso;
7237
7059
  }
7238
7060
  }
@@ -7290,7 +7112,7 @@ function formatAmount(rawAmount, token, chainId) {
7290
7112
  let frac = fracStr.slice(0, 5).replace(/0+$/, "");
7291
7113
  if (frac.length < 2) frac = frac.padEnd(2, "0");
7292
7114
  return `${whole}.${frac}`;
7293
- } catch (e31) {
7115
+ } catch (e30) {
7294
7116
  return rawAmount;
7295
7117
  }
7296
7118
  }
@@ -7339,7 +7161,7 @@ function DepositHistoryPanel({
7339
7161
  );
7340
7162
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7341
7163
  const sourceHashes = new Set(
7342
- deposits.map((d) => _optionalChain([d, 'access', _255 => _255.sourceTxHash, 'optionalAccess', _256 => _256.toLowerCase, 'call', _257 => _257()])).filter((h) => Boolean(h))
7164
+ deposits.map((d) => _optionalChain([d, 'access', _251 => _251.sourceTxHash, 'optionalAccess', _252 => _252.toLowerCase, 'call', _253 => _253()])).filter((h) => Boolean(h))
7343
7165
  );
7344
7166
  return deposits.filter(
7345
7167
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7361,7 +7183,7 @@ function DepositHistoryPanel({
7361
7183
  className: "rs-modal-header-back",
7362
7184
  "aria-label": "Back",
7363
7185
  onClick: onClose,
7364
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronLeftIcon, {})
7186
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7365
7187
  }
7366
7188
  ) }),
7367
7189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7371,29 +7193,29 @@ function DepositHistoryPanel({
7371
7193
  className: "rs-modal-close",
7372
7194
  "aria-label": "Close",
7373
7195
  onClick: onCloseModal,
7374
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
7196
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7375
7197
  }
7376
7198
  ) })
7377
7199
  ] }),
7378
7200
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7379
7201
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7380
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {}), title: "History" }),
7202
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}), title: "History" }),
7381
7203
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7382
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {}) }),
7204
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}) }),
7383
7205
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7384
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Spinner, { className: "rs-spinner--sm" }),
7206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Spinner, { className: "rs-spinner--sm" }),
7385
7207
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7386
7208
  ] })
7387
7209
  ] }),
7388
7210
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7389
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.AlertTriangleIcon, {}) }),
7211
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.AlertTriangleIcon, {}) }),
7390
7212
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7391
7213
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7392
7214
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7393
7215
  ] })
7394
7216
  ] }),
7395
7217
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7396
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {}) }),
7218
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {}) }),
7397
7219
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7398
7220
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7399
7221
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7413,7 +7235,7 @@ function DepositHistoryPanel({
7413
7235
  )
7414
7236
  ] })
7415
7237
  ] }),
7416
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.PoweredBy, {})
7238
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.PoweredBy, {})
7417
7239
  ] })
7418
7240
  ]
7419
7241
  }
@@ -7488,7 +7310,7 @@ function HistoryCard({ deposit }) {
7488
7310
  onClick: (e) => e.stopPropagation(),
7489
7311
  children: [
7490
7312
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7491
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ArrowUpRightIcon, {})
7313
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ArrowUpRightIcon, {})
7492
7314
  ]
7493
7315
  }
7494
7316
  )
@@ -7503,7 +7325,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7503
7325
  // src/DepositModal.tsx
7504
7326
 
7505
7327
  var ReownDepositInner = _react.lazy.call(void 0,
7506
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-KFTMS2WX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7328
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-MCDIOJLT.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7507
7329
  );
7508
7330
  function sortByCreatedAtDesc(items) {
7509
7331
  return [...items].sort((a, b) => {
@@ -7582,12 +7404,12 @@ function DepositModalInner({
7582
7404
  debug
7583
7405
  }) {
7584
7406
  const modalRef = _react.useRef.call(void 0, null);
7585
- const onReadyRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onReady);
7407
+ const onReadyRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onReady);
7586
7408
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7587
7409
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7588
7410
  void 0
7589
7411
  );
7590
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _258 => _258.showHistoryButton]), () => ( false));
7412
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _254 => _254.showHistoryButton]), () => ( false));
7591
7413
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7592
7414
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7593
7415
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7601,19 +7423,19 @@ function DepositModalInner({
7601
7423
  const targetChain = targetChainProp === "solana" ? "solana" : _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
7602
7424
  const sourceChain = sourceChainProp ? _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7603
7425
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7604
- const onErrorRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onError);
7426
+ const onErrorRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onError);
7605
7427
  _react.useEffect.call(void 0, () => {
7606
7428
  if (targetChain !== _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7607
7429
  setRecipientIsContract(false);
7608
7430
  return;
7609
7431
  }
7610
7432
  let cancelled = false;
7611
- _chunkOQVLEVNRcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7433
+ _chunkEDUWRMQIcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7612
7434
  if (cancelled) return;
7613
7435
  const isContract = _chunkABVRVW3Pcjs.isContractBytecode.call(void 0, code);
7614
7436
  setRecipientIsContract(isContract);
7615
7437
  if (isContract) {
7616
- _optionalChain([onErrorRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260({
7438
+ _optionalChain([onErrorRef, 'access', _255 => _255.current, 'optionalCall', _256 => _256({
7617
7439
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7618
7440
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7619
7441
  })]);
@@ -7626,7 +7448,7 @@ function DepositModalInner({
7626
7448
  };
7627
7449
  }, [targetChain, recipient, onErrorRef]);
7628
7450
  const service = _react.useMemo.call(void 0,
7629
- () => _chunkOQVLEVNRcjs.createDepositService.call(void 0, backendUrl, {
7451
+ () => _chunkEDUWRMQIcjs.createDepositService.call(void 0, backendUrl, {
7630
7452
  debug,
7631
7453
  debugScope: "service:deposit"
7632
7454
  }),
@@ -7642,7 +7464,7 @@ function DepositModalInner({
7642
7464
  }, [store, targetChain, targetToken]);
7643
7465
  _react.useEffect.call(void 0, () => {
7644
7466
  if (isOpen && modalRef.current) {
7645
- _chunkOQVLEVNRcjs.applyTheme.call(void 0, modalRef.current, theme);
7467
+ _chunkEDUWRMQIcjs.applyTheme.call(void 0, modalRef.current, theme);
7646
7468
  }
7647
7469
  }, [isOpen, theme]);
7648
7470
  _react.useEffect.call(void 0, () => {
@@ -7650,7 +7472,7 @@ function DepositModalInner({
7650
7472
  }, [solanaRpcUrl]);
7651
7473
  _react.useEffect.call(void 0, () => {
7652
7474
  if (isOpen) {
7653
- _optionalChain([onReadyRef, 'access', _261 => _261.current, 'optionalCall', _262 => _262()]);
7475
+ _optionalChain([onReadyRef, 'access', _257 => _257.current, 'optionalCall', _258 => _258()]);
7654
7476
  }
7655
7477
  }, [isOpen, onReadyRef]);
7656
7478
  const handleStepChange = _react.useCallback.call(void 0,
@@ -7726,10 +7548,10 @@ function DepositModalInner({
7726
7548
  fetchHistory("initial");
7727
7549
  }
7728
7550
  }, [historyOpen, fetchHistory]);
7729
- const onLifecycleRef = _chunkOQVLEVNRcjs.useLatestRef.call(void 0, onLifecycle);
7551
+ const onLifecycleRef = _chunkEDUWRMQIcjs.useLatestRef.call(void 0, onLifecycle);
7730
7552
  const handleLifecycle = _react.useCallback.call(void 0,
7731
7553
  (event) => {
7732
- _optionalChain([onLifecycleRef, 'access', _263 => _263.current, 'optionalCall', _264 => _264(event)]);
7554
+ _optionalChain([onLifecycleRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260(event)]);
7733
7555
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
7734
7556
  historyStaleRef.current = true;
7735
7557
  }
@@ -7755,10 +7577,10 @@ function DepositModalInner({
7755
7577
  store.dispatch({ type: "flow/reset" });
7756
7578
  }
7757
7579
  }, [isOpen, store]);
7758
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _265 => _265.showBackButton]), () => ( true));
7580
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showBackButton]), () => ( true));
7759
7581
  const canGoBack = backHandler !== void 0;
7760
7582
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7761
- _chunkOQVLEVNRcjs.Modal,
7583
+ _chunkEDUWRMQIcjs.Modal,
7762
7584
  {
7763
7585
  isOpen,
7764
7586
  onClose,
@@ -7774,7 +7596,7 @@ function DepositModalInner({
7774
7596
  className: "rs-modal-header-back",
7775
7597
  "aria-label": "Go back",
7776
7598
  onClick: backHandler,
7777
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.ChevronLeftIcon, {})
7599
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.ChevronLeftIcon, {})
7778
7600
  }
7779
7601
  ) }),
7780
7602
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7786,7 +7608,7 @@ function DepositModalInner({
7786
7608
  "aria-label": "Deposit history",
7787
7609
  onClick: handleHistoryOpen,
7788
7610
  disabled: !recipient,
7789
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.HistoryIcon, {})
7611
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.HistoryIcon, {})
7790
7612
  }
7791
7613
  ),
7792
7614
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7796,12 +7618,12 @@ function DepositModalInner({
7796
7618
  onClick: onClose,
7797
7619
  className: "rs-modal-close",
7798
7620
  "aria-label": "Close",
7799
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.CloseIcon, {})
7621
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.CloseIcon, {})
7800
7622
  }
7801
7623
  )
7802
7624
  ] })
7803
7625
  ] }),
7804
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOQVLEVNRcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7626
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDUWRMQIcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7805
7627
  DepositFlow,
7806
7628
  {
7807
7629
  dappWalletClient,