@rhinestone/deposit-modal 0.3.0-alpha.4 → 0.3.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@
48
48
 
49
49
 
50
50
 
51
- var _chunkV6NJIPSScjs = require('./chunk-V6NJIPSS.cjs');
51
+ var _chunkDX2D2TRZcjs = require('./chunk-DX2D2TRZ.cjs');
52
52
 
53
53
 
54
54
 
@@ -106,7 +106,7 @@ function AssetSelectStep({
106
106
  const [error, setError] = _react.useState.call(void 0, null);
107
107
  const defaultAssetId = _react.useMemo.call(void 0, () => {
108
108
  if (!defaultSourceChain || !defaultSourceToken) return null;
109
- return _chunkV6NJIPSScjs.getAssetId.call(void 0, {
109
+ return _chunkDX2D2TRZcjs.getAssetId.call(void 0, {
110
110
  chainId: defaultSourceChain,
111
111
  token: defaultSourceToken
112
112
  });
@@ -123,7 +123,7 @@ function AssetSelectStep({
123
123
  try {
124
124
  const portfolio = await service.fetchPortfolio(address);
125
125
  if (!active) return;
126
- const portfolioAssets = _chunkV6NJIPSScjs.portfolioToAssets.call(void 0, portfolio.tokens);
126
+ const portfolioAssets = _chunkDX2D2TRZcjs.portfolioToAssets.call(void 0, portfolio.tokens);
127
127
  setAssets(portfolioAssets);
128
128
  const hasNative = portfolioAssets.some(
129
129
  (asset) => asset.token.toLowerCase() === _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS
@@ -204,7 +204,7 @@ function AssetSelectStep({
204
204
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
205
205
  const numeric = Number(raw);
206
206
  if (!Number.isFinite(numeric)) return raw;
207
- return _chunkV6NJIPSScjs.tokenFormatter.format(numeric);
207
+ return _chunkDX2D2TRZcjs.tokenFormatter.format(numeric);
208
208
  } catch (e3) {
209
209
  return asset.balance;
210
210
  }
@@ -212,20 +212,20 @@ function AssetSelectStep({
212
212
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
213
213
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
214
214
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
215
- _chunkV6NJIPSScjs.BodyHeader,
215
+ _chunkDX2D2TRZcjs.BodyHeader,
216
216
  {
217
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, {}),
217
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, {}),
218
218
  title: "Your assets",
219
219
  subtitle: "Select source assets to transfer"
220
220
  }
221
221
  ),
222
222
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
223
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Spinner, { className: "rs-text-tertiary" }),
223
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, { className: "rs-text-tertiary" }),
224
224
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
225
225
  ] }),
226
226
  error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-alert rs-alert--error", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error }) }),
227
227
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
228
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, { className: "rs-empty-icon" }),
228
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, { className: "rs-empty-icon" }),
229
229
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
230
230
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
231
231
  address.slice(0, 6),
@@ -292,14 +292,14 @@ function AssetSelectStep({
292
292
  ] })
293
293
  ] })
294
294
  ] }),
295
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkV6NJIPSScjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
295
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkDX2D2TRZcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
296
296
  ]
297
297
  },
298
298
  asset.id
299
299
  );
300
300
  }) }),
301
301
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
302
- _chunkV6NJIPSScjs.Button,
302
+ _chunkDX2D2TRZcjs.Button,
303
303
  {
304
304
  onClick: () => selectedAsset && onContinue(selectedAsset),
305
305
  disabled: !selectedAsset,
@@ -308,7 +308,7 @@ function AssetSelectStep({
308
308
  }
309
309
  )
310
310
  ] }),
311
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
311
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
312
312
  ] });
313
313
  }
314
314
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -316,7 +316,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
316
316
  const connectedChainId = _optionalChain([publicClient, 'access', _7 => _7.chain, 'optionalAccess', _8 => _8.id]);
317
317
  if (!connectedChainId) return [];
318
318
  if (!_chunkIVTXEYB2cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
319
- const id = _chunkV6NJIPSScjs.getAssetId.call(void 0, {
319
+ const id = _chunkDX2D2TRZcjs.getAssetId.call(void 0, {
320
320
  chainId: connectedChainId,
321
321
  token: _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS
322
322
  });
@@ -420,7 +420,7 @@ function AmountStep({
420
420
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
421
421
  if (!balanceTarget || !publicClient) return;
422
422
  try {
423
- const bal = _chunkV6NJIPSScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
423
+ const bal = _chunkDX2D2TRZcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
424
424
  address: asset.token,
425
425
  abi: _viem.erc20Abi,
426
426
  functionName: "balanceOf",
@@ -441,7 +441,7 @@ function AmountStep({
441
441
  hasAttemptedSwitch.current = true;
442
442
  switchChain(asset.chainId).catch((err) => {
443
443
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
444
- setError(_chunkV6NJIPSScjs.formatUserError.call(void 0, raw));
444
+ setError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw));
445
445
  });
446
446
  }
447
447
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -475,7 +475,7 @@ function AmountStep({
475
475
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
476
476
  const numeric = Number(raw);
477
477
  if (!Number.isFinite(numeric)) return raw;
478
- return _chunkV6NJIPSScjs.tokenFormatter.format(numeric);
478
+ return _chunkDX2D2TRZcjs.tokenFormatter.format(numeric);
479
479
  } catch (e8) {
480
480
  return "\u2026";
481
481
  }
@@ -586,7 +586,7 @@ function AmountStep({
586
586
  liquidityWarning
587
587
  );
588
588
  };
589
- const continueLabel = isCheckingLiquidity ? "Checking liquidity\u2026" : exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
589
+ const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
590
590
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
591
591
  const sourceChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId);
592
592
  const targetChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
@@ -594,7 +594,7 @@ function AmountStep({
594
594
  const targetTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol);
595
595
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
596
596
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
597
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, {}), title: "Wallet deposit" }),
597
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, {}), title: "Wallet deposit" }),
598
598
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
599
599
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
600
600
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-input-row", children: [
@@ -620,13 +620,13 @@ function AmountStep({
620
620
  " available",
621
621
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
622
622
  " (~",
623
- _chunkV6NJIPSScjs.currencyFormatter.format(balanceUsd),
623
+ _chunkDX2D2TRZcjs.currencyFormatter.format(balanceUsd),
624
624
  ")"
625
625
  ] })
626
626
  ] }),
627
627
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
628
628
  "Min. deposit ",
629
- _chunkV6NJIPSScjs.currencyFormatter.format(minDepositUsd)
629
+ _chunkDX2D2TRZcjs.currencyFormatter.format(minDepositUsd)
630
630
  ] })
631
631
  ] })
632
632
  ] }),
@@ -667,24 +667,26 @@ function AmountStep({
667
667
  ] }),
668
668
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
669
669
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
670
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkV6NJIPSScjs.currencyFormatter.format(balanceAfterUsd) })
670
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDX2D2TRZcjs.currencyFormatter.format(balanceAfterUsd) })
671
671
  ] })
672
672
  ] }),
673
673
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
674
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
675
675
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
676
676
  ] }),
677
677
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
678
- _chunkV6NJIPSScjs.Button,
678
+ _chunkDX2D2TRZcjs.Button,
679
679
  {
680
680
  onClick: handleContinue,
681
681
  fullWidth: true,
682
+ loading: isCheckingLiquidity,
683
+ loadingText: "Checking liquidity\u2026",
682
684
  disabled: continueDisabled,
683
685
  children: continueLabel
684
686
  }
685
687
  )
686
688
  ] }),
687
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
689
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
688
690
  ] });
689
691
  }
690
692
 
@@ -756,7 +758,7 @@ function ConfirmStep({
756
758
  hasAttemptedSwitch.current = true;
757
759
  switchChain(asset.chainId).catch((err) => {
758
760
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
759
- setError(_chunkV6NJIPSScjs.formatUserError.call(void 0, raw));
761
+ setError(_chunkDX2D2TRZcjs.formatUserError.call(void 0, raw));
760
762
  });
761
763
  }
762
764
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -803,7 +805,7 @@ function ConfirmStep({
803
805
  const result = await executeTransfer(amountUnits);
804
806
  hash = result.txHash;
805
807
  resolvedSourceToken = result.sourceToken;
806
- } else if (_chunkV6NJIPSScjs.isNativeAsset.call(void 0, asset)) {
808
+ } else if (_chunkDX2D2TRZcjs.isNativeAsset.call(void 0, asset)) {
807
809
  hash = await walletClient.sendTransaction({
808
810
  account,
809
811
  chain,
@@ -824,7 +826,7 @@ function ConfirmStep({
824
826
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
825
827
  } catch (err) {
826
828
  const raw = err instanceof Error ? err.message : "Transfer failed";
827
- const message = _chunkV6NJIPSScjs.formatUserError.call(void 0, raw);
829
+ const message = _chunkDX2D2TRZcjs.formatUserError.call(void 0, raw);
828
830
  setError(message);
829
831
  _optionalChain([onError, 'optionalCall', _23 => _23(message, "TRANSFER_ERROR")]);
830
832
  } finally {
@@ -833,51 +835,51 @@ function ConfirmStep({
833
835
  };
834
836
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
835
837
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
836
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, {}), title: "Review deposit" }),
837
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-details", children: [
838
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
838
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, {}), title: "Review deposit" }),
839
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
840
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
839
841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
840
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
842
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
841
843
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
842
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
844
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
843
845
  ] })
844
846
  ] }),
845
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
847
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
846
848
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
847
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
849
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
848
850
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
849
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
851
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
850
852
  ] })
851
853
  ] }),
852
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
854
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
853
855
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Estimated time" }),
854
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: estimatedTime })
856
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
855
857
  ] }),
856
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
858
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
857
859
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "You send" }),
858
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
860
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
859
861
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
860
862
  formattedSendAmount,
861
863
  " ",
862
864
  asset.symbol
863
865
  ] }),
864
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
866
+ sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
865
867
  ] })
866
868
  ] }),
867
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
869
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
868
870
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
869
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
871
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
870
872
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
871
873
  receiveAmount,
872
874
  " ",
873
875
  targetSymbol
874
876
  ] }),
875
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
877
+ targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
876
878
  ] })
877
879
  ] }),
878
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
880
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
879
881
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
880
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
882
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
881
883
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
882
884
  "span",
883
885
  {
@@ -885,7 +887,7 @@ function ConfirmStep({
885
887
  children: "$0.05"
886
888
  }
887
889
  ),
888
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.InfoIcon, {}) }) })
890
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.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, _chunkDX2D2TRZcjs.InfoIcon, {}) }) })
889
891
  ] })
890
892
  ] })
891
893
  ] }),
@@ -896,19 +898,19 @@ function ConfirmStep({
896
898
  // post-unwrap route works. Surface as a soft warning rather
897
899
  // than a red blocker until the orchestrator handles it.
898
900
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error rs-amount-error--warning", role: "status", children: [
899
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
900
902
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Low liquidity detected \u2014 deposit may take longer" })
901
903
  ] })
902
904
  ) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "status", children: [
903
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
905
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
904
906
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: liquidityWarning.kind === "unavailable" ? "Route may be unavailable" : "Liquidity check failed" })
905
907
  ] })),
906
908
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
907
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
909
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
908
910
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
909
911
  ] }),
910
912
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
911
- _chunkV6NJIPSScjs.Button,
913
+ _chunkDX2D2TRZcjs.Button,
912
914
  {
913
915
  onClick: handleConfirm,
914
916
  loading: isSubmitting,
@@ -919,7 +921,7 @@ function ConfirmStep({
919
921
  }
920
922
  )
921
923
  ] }),
922
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
924
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
923
925
  ] });
924
926
  }
925
927
 
@@ -942,9 +944,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
942
944
  var MAX_POLL_INTERVAL = 3e4;
943
945
  var BACKOFF_MULTIPLIER = 1.5;
944
946
  function isEventForTx(event, txHash) {
945
- const eventTxHash = _chunkV6NJIPSScjs.getEventTxHash.call(void 0, event);
947
+ const eventTxHash = _chunkDX2D2TRZcjs.getEventTxHash.call(void 0, event);
946
948
  if (!eventTxHash) return false;
947
- return _chunkV6NJIPSScjs.txRefsMatch.call(void 0, eventTxHash, txHash);
949
+ return _chunkDX2D2TRZcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
948
950
  }
949
951
  function truncateHash(hash) {
950
952
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -994,7 +996,7 @@ function formatBridgeFailedMessage(event) {
994
996
  }
995
997
  return "Bridge failed";
996
998
  }
997
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
999
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
998
1000
  function DepositNotification({
999
1001
  deposit,
1000
1002
  smartAccount,
@@ -1022,7 +1024,7 @@ function DepositNotification({
1022
1024
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1023
1025
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1024
1026
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1025
- const depositContextRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, {
1027
+ const depositContextRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, {
1026
1028
  amount,
1027
1029
  sourceChain,
1028
1030
  sourceToken: token,
@@ -1031,8 +1033,8 @@ function DepositNotification({
1031
1033
  waitForFinalTx,
1032
1034
  hasPostBridgeActions
1033
1035
  });
1034
- const onCompleteRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onComplete);
1035
- const onFailedRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onFailed);
1036
+ const onCompleteRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onComplete);
1037
+ const onFailedRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onFailed);
1036
1038
  const handleComplete = _react.useCallback.call(void 0,
1037
1039
  (destTxHash) => {
1038
1040
  if (completedRef.current) return;
@@ -1140,29 +1142,45 @@ function DepositNotification({
1140
1142
  const destExplorerUrl = destinationTxHash ? _chunkIVTXEYB2cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1141
1143
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1142
1144
  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.";
1143
- 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, _chunkV6NJIPSScjs.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, _chunkV6NJIPSScjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Spinner, {}) });
1145
+ 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, _chunkDX2D2TRZcjs.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, _chunkDX2D2TRZcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, {}) });
1146
+ const showClose = status !== "processing";
1144
1147
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1145
1148
  "div",
1146
1149
  {
1147
- className: `rs-deposit-notification rs-deposit-notification--${status}`,
1150
+ className: `rs-deposit-notification rs-deposit-notification--${status} ${expanded ? "rs-deposit-notification--expanded" : ""}`,
1148
1151
  children: [
1149
1152
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-notification-header", children: [
1150
1153
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-icon", children: statusIcon }),
1151
1154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-notification-content", children: [
1152
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-title", children: title }),
1155
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-notification-title-row", children: [
1156
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-notification-title", children: title }),
1157
+ showClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1158
+ "button",
1159
+ {
1160
+ type: "button",
1161
+ className: "rs-deposit-notification-close",
1162
+ onClick: () => onDismiss(deposit.id),
1163
+ "aria-label": "Dismiss",
1164
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CloseIcon, {})
1165
+ }
1166
+ )
1167
+ ] }),
1153
1168
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-subtitle", children: subtitle })
1154
- ] }),
1155
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1156
- "button",
1157
- {
1158
- type: "button",
1159
- className: "rs-deposit-notification-close",
1160
- onClick: () => onDismiss(deposit.id),
1161
- "aria-label": "Dismiss",
1162
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CloseIcon, {})
1163
- }
1164
- )
1169
+ ] })
1165
1170
  ] }),
1171
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1172
+ "button",
1173
+ {
1174
+ type: "button",
1175
+ className: "rs-deposit-notification-toggle",
1176
+ onClick: () => setExpanded(!expanded),
1177
+ "aria-expanded": expanded,
1178
+ children: [
1179
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1180
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1181
+ ]
1182
+ }
1183
+ ),
1166
1184
  expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-notification-details", children: [
1167
1185
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-notification-row", children: [
1168
1186
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-notification-label", children: "Deposit tx" }),
@@ -1204,16 +1222,7 @@ function DepositNotification({
1204
1222
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-notification-label", children: "Order filled" }),
1205
1223
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-notification-value", children: formatTimestamp(completedAt) })
1206
1224
  ] })
1207
- ] }),
1208
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1209
- "button",
1210
- {
1211
- type: "button",
1212
- className: "rs-deposit-notification-toggle",
1213
- onClick: () => setExpanded(!expanded),
1214
- children: expanded ? "See less" : "See more"
1215
- }
1216
- )
1225
+ ] })
1217
1226
  ]
1218
1227
  }
1219
1228
  );
@@ -1429,7 +1438,6 @@ function DepositAddressStep({
1429
1438
  onDepositComplete,
1430
1439
  onDepositFailed,
1431
1440
  onCopyAddress,
1432
- onRequestWalletPicker,
1433
1441
  onError
1434
1442
  }) {
1435
1443
  const hasSolana = Boolean(solanaDepositAddress);
@@ -1647,10 +1655,10 @@ function DepositAddressStep({
1647
1655
  return;
1648
1656
  }
1649
1657
  const event = status.lastEvent;
1650
- const eventTxHash = _chunkV6NJIPSScjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkV6NJIPSScjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1658
+ const eventTxHash = _chunkDX2D2TRZcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkDX2D2TRZcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1651
1659
  if (baselineTxHashRef.current === void 0) {
1652
1660
  baselineTxHashRef.current = eventTxHash;
1653
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkV6NJIPSScjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1661
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkDX2D2TRZcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1654
1662
  const details = getDepositEventDetails(event);
1655
1663
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1656
1664
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1723,7 +1731,7 @@ function DepositAddressStep({
1723
1731
  const qrIconSrc = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, sourceChainId);
1724
1732
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1725
1733
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1726
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CoinsIcon, {}), title: "Transfer crypto" }),
1734
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HandCoinsIcon, {}), title: "Transfer crypto" }),
1727
1735
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1728
1736
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1729
1737
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1731,7 +1739,8 @@ function DepositAddressStep({
1731
1739
  "button",
1732
1740
  {
1733
1741
  type: "button",
1734
- className: "rs-deposit-address-dropdown-trigger",
1742
+ className: `rs-deposit-address-dropdown-trigger ${chainDropdownOpen ? "rs-deposit-address-dropdown-trigger--open" : ""}`,
1743
+ "aria-expanded": chainDropdownOpen,
1735
1744
  onClick: () => {
1736
1745
  setChainDropdownOpen(!chainDropdownOpen);
1737
1746
  setTokenDropdownOpen(false);
@@ -1746,7 +1755,7 @@ function DepositAddressStep({
1746
1755
  }
1747
1756
  ),
1748
1757
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkIVTXEYB2cjs.getChainName.call(void 0, sourceChainId) }),
1749
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1758
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1750
1759
  ]
1751
1760
  }
1752
1761
  ),
@@ -1779,9 +1788,9 @@ function DepositAddressStep({
1779
1788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1780
1789
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1781
1790
  "Min.$",
1782
- _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _71 => _71.minDepositUsd]), () => ( 0.1)),
1783
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1784
- _chunkV6NJIPSScjs.InfoIcon,
1791
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _71 => _71.minDepositUsd]), () => ( 0.1))).toFixed(2),
1792
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1793
+ _chunkDX2D2TRZcjs.InfoIcon,
1785
1794
  {
1786
1795
  className: "rs-deposit-address-min-icon",
1787
1796
  "aria-hidden": "true"
@@ -1793,7 +1802,8 @@ function DepositAddressStep({
1793
1802
  "button",
1794
1803
  {
1795
1804
  type: "button",
1796
- className: "rs-deposit-address-dropdown-trigger",
1805
+ className: `rs-deposit-address-dropdown-trigger ${tokenDropdownOpen ? "rs-deposit-address-dropdown-trigger--open" : ""}`,
1806
+ "aria-expanded": tokenDropdownOpen,
1797
1807
  onClick: () => {
1798
1808
  setTokenDropdownOpen(!tokenDropdownOpen);
1799
1809
  setChainDropdownOpen(false);
@@ -1808,7 +1818,7 @@ function DepositAddressStep({
1808
1818
  }
1809
1819
  ),
1810
1820
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1811
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1821
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1812
1822
  ]
1813
1823
  }
1814
1824
  ),
@@ -1850,16 +1860,16 @@ function DepositAddressStep({
1850
1860
  "div",
1851
1861
  {
1852
1862
  style: {
1853
- width: 220,
1854
- height: 220,
1863
+ width: 200,
1864
+ height: 200,
1855
1865
  display: "flex",
1856
1866
  alignItems: "center",
1857
1867
  justifyContent: "center"
1858
1868
  },
1859
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Spinner, {})
1869
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, {})
1860
1870
  }
1861
1871
  ),
1862
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QRCode, { value: displayAddress, size: 220, iconSrc: qrIconSrc })
1872
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QRCode, { value: displayAddress, size: 200, iconSrc: qrIconSrc })
1863
1873
  }
1864
1874
  ) }),
1865
1875
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-value", children: displayAddress })
@@ -1871,7 +1881,7 @@ function DepositAddressStep({
1871
1881
  className: "rs-deposit-address-copy",
1872
1882
  onClick: handleCopy,
1873
1883
  children: [
1874
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CopyIcon, {}),
1884
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CopyIcon, {}),
1875
1885
  copied ? "Copied!" : "Copy address"
1876
1886
  ]
1877
1887
  }
@@ -1896,16 +1906,16 @@ function DepositAddressStep({
1896
1906
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1897
1907
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1898
1908
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1899
- _chunkV6NJIPSScjs.Tooltip,
1909
+ _chunkDX2D2TRZcjs.Tooltip,
1900
1910
  {
1901
1911
  className: "rs-price-impact-info",
1902
1912
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1903
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.InfoIcon, { "aria-hidden": "true" })
1913
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.InfoIcon, { "aria-hidden": "true" })
1904
1914
  }
1905
1915
  )
1906
1916
  ] }),
1907
1917
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1908
- _chunkV6NJIPSScjs.ChevronDownIcon,
1918
+ _chunkDX2D2TRZcjs.ChevronDownIcon,
1909
1919
  {
1910
1920
  className: "rs-price-impact-chevron",
1911
1921
  "aria-hidden": "true"
@@ -1916,29 +1926,29 @@ function DepositAddressStep({
1916
1926
  ),
1917
1927
  /* @__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: [
1918
1928
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1919
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PercentIcon, {}) }),
1929
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PercentIcon, {}) }),
1920
1930
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1921
1931
  "Max slippage: ",
1922
1932
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1923
1933
  ] }),
1924
1934
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1925
- _chunkV6NJIPSScjs.Tooltip,
1935
+ _chunkDX2D2TRZcjs.Tooltip,
1926
1936
  {
1927
1937
  className: "rs-price-impact-info",
1928
1938
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
1929
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.InfoIcon, { "aria-hidden": "true" })
1939
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.InfoIcon, { "aria-hidden": "true" })
1930
1940
  }
1931
1941
  )
1932
1942
  ] }),
1933
1943
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1934
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ClockIcon, {}) }),
1944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ClockIcon, {}) }),
1935
1945
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1936
1946
  "Processing time: ",
1937
1947
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
1938
1948
  ] })
1939
1949
  ] }),
1940
1950
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1941
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PlusCircleIcon, {}) }),
1951
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PlusCircleIcon, {}) }),
1942
1952
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1943
1953
  "Max deposit:",
1944
1954
  " ",
@@ -1952,16 +1962,7 @@ function DepositAddressStep({
1952
1962
  ]
1953
1963
  }
1954
1964
  ),
1955
- pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError }),
1956
- onRequestWalletPicker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1957
- "button",
1958
- {
1959
- type: "button",
1960
- className: "rs-connect-wallet-manage",
1961
- onClick: onRequestWalletPicker,
1962
- children: "Use a wallet to deposit instead"
1963
- }
1964
- )
1965
+ pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError })
1965
1966
  ] }),
1966
1967
  notifications.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notifications", children: notifications.map((deposit) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1967
1968
  DepositNotification,
@@ -1980,7 +1981,7 @@ function DepositAddressStep({
1980
1981
  },
1981
1982
  deposit.id
1982
1983
  )) }),
1983
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
1984
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
1984
1985
  ] });
1985
1986
  }
1986
1987
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2011,7 +2012,7 @@ function SolanaTokenSelectStep({
2011
2012
  setError(null);
2012
2013
  const portfolioBySymbol = {};
2013
2014
  try {
2014
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2015
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2015
2016
  solanaAddress
2016
2017
  });
2017
2018
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -2034,12 +2035,12 @@ function SolanaTokenSelectStep({
2034
2035
  };
2035
2036
  }
2036
2037
  }
2037
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2038
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2038
2039
  symbols: Object.keys(portfolioBySymbol)
2039
2040
  });
2040
2041
  } catch (err) {
2041
2042
  if (!active) return;
2042
- _chunkV6NJIPSScjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2043
+ _chunkDX2D2TRZcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2043
2044
  solanaAddress
2044
2045
  });
2045
2046
  setError(
@@ -2086,9 +2087,9 @@ function SolanaTokenSelectStep({
2086
2087
  }
2087
2088
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
2088
2089
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { padding: "0 12px 12px" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2089
- _chunkV6NJIPSScjs.BodyHeader,
2090
+ _chunkDX2D2TRZcjs.BodyHeader,
2090
2091
  {
2091
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CoinsIcon, {}),
2092
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CoinsIcon, {}),
2092
2093
  title: "Select asset",
2093
2094
  subtitle: "Pick a Solana token to deposit"
2094
2095
  }
@@ -2100,11 +2101,11 @@ function SolanaTokenSelectStep({
2100
2101
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
2101
2102
  children: [
2102
2103
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
2103
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Spinner, { className: "rs-text-tertiary" }),
2104
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, { className: "rs-text-tertiary" }),
2104
2105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2105
2106
  ] }),
2106
2107
  !loading && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
2107
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, { className: "rs-empty-icon" }),
2108
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, { className: "rs-empty-icon" }),
2108
2109
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
2109
2110
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
2110
2111
  solanaAddress.slice(0, 6),
@@ -2120,7 +2121,7 @@ function SolanaTokenSelectStep({
2120
2121
  try {
2121
2122
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2122
2123
  const numeric = Number(raw);
2123
- formattedBalance = Number.isFinite(numeric) ? _chunkV6NJIPSScjs.tokenFormatter.format(numeric) : raw;
2124
+ formattedBalance = Number.isFinite(numeric) ? _chunkDX2D2TRZcjs.tokenFormatter.format(numeric) : raw;
2124
2125
  } catch (e16) {
2125
2126
  formattedBalance = "...";
2126
2127
  }
@@ -2164,7 +2165,7 @@ function SolanaTokenSelectStep({
2164
2165
  ] })
2165
2166
  ] })
2166
2167
  ] }),
2167
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkV6NJIPSScjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
2168
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkDX2D2TRZcjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
2168
2169
  ]
2169
2170
  },
2170
2171
  entry.token.symbol
@@ -2174,7 +2175,7 @@ function SolanaTokenSelectStep({
2174
2175
  }
2175
2176
  ),
2176
2177
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2177
- _chunkV6NJIPSScjs.Button,
2178
+ _chunkDX2D2TRZcjs.Button,
2178
2179
  {
2179
2180
  onClick: () => selectedEntry && onContinue(
2180
2181
  selectedEntry.token,
@@ -2186,7 +2187,7 @@ function SolanaTokenSelectStep({
2186
2187
  children: "Continue"
2187
2188
  }
2188
2189
  ) }),
2189
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
2190
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
2190
2191
  ] });
2191
2192
  }
2192
2193
 
@@ -2244,7 +2245,7 @@ function SolanaAmountStep({
2244
2245
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
2245
2246
  const numeric = Number(raw);
2246
2247
  if (!Number.isFinite(numeric)) return raw;
2247
- return _chunkV6NJIPSScjs.tokenFormatter.format(numeric);
2248
+ return _chunkDX2D2TRZcjs.tokenFormatter.format(numeric);
2248
2249
  } catch (e18) {
2249
2250
  return "\u2026";
2250
2251
  }
@@ -2303,7 +2304,7 @@ function SolanaAmountStep({
2303
2304
  const factor = 1e3;
2304
2305
  const truncated = Math.floor(value * factor) / factor;
2305
2306
  const formatted = truncated.toFixed(3).replace(/\.?0+$/, "");
2306
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2307
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2307
2308
  percentage,
2308
2309
  symbol: token.symbol,
2309
2310
  formatted
@@ -2341,7 +2342,7 @@ function SolanaAmountStep({
2341
2342
  try {
2342
2343
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
2343
2344
  } catch (e23) {
2344
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2345
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2345
2346
  amount,
2346
2347
  sourceAmount: sourceAmountStr,
2347
2348
  reason: "parse-units-failed"
@@ -2356,7 +2357,7 @@ function SolanaAmountStep({
2356
2357
  );
2357
2358
  return;
2358
2359
  }
2359
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2360
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2360
2361
  symbol: token.symbol,
2361
2362
  inputAmountUsd: amount,
2362
2363
  sourceAmount: sourceAmountStr,
@@ -2370,7 +2371,7 @@ function SolanaAmountStep({
2370
2371
  const sourceTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, token.symbol);
2371
2372
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2372
2373
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2373
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, {}), title: "Wallet deposit" }),
2374
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, {}), title: "Wallet deposit" }),
2374
2375
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
2375
2376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
2376
2377
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-input-row", children: [
@@ -2396,13 +2397,13 @@ function SolanaAmountStep({
2396
2397
  " available",
2397
2398
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
2398
2399
  " (~",
2399
- _chunkV6NJIPSScjs.currencyFormatter.format(computedBalanceUsd),
2400
+ _chunkDX2D2TRZcjs.currencyFormatter.format(computedBalanceUsd),
2400
2401
  ")"
2401
2402
  ] })
2402
2403
  ] }),
2403
2404
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
2404
2405
  "Min. deposit ",
2405
- _chunkV6NJIPSScjs.currencyFormatter.format(minDepositUsd)
2406
+ _chunkDX2D2TRZcjs.currencyFormatter.format(minDepositUsd)
2406
2407
  ] })
2407
2408
  ] })
2408
2409
  ] }),
@@ -2441,15 +2442,15 @@ function SolanaAmountStep({
2441
2442
  ] }),
2442
2443
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
2443
2444
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
2444
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkV6NJIPSScjs.currencyFormatter.format(balanceAfterUsd) })
2445
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDX2D2TRZcjs.currencyFormatter.format(balanceAfterUsd) })
2445
2446
  ] })
2446
2447
  ] }),
2447
2448
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
2448
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
2449
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
2449
2450
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
2450
2451
  ] }),
2451
2452
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2452
- _chunkV6NJIPSScjs.Button,
2453
+ _chunkDX2D2TRZcjs.Button,
2453
2454
  {
2454
2455
  onClick: handleContinue,
2455
2456
  fullWidth: true,
@@ -2458,7 +2459,7 @@ function SolanaAmountStep({
2458
2459
  }
2459
2460
  )
2460
2461
  ] }),
2461
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
2462
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
2462
2463
  ] });
2463
2464
  }
2464
2465
 
@@ -2502,7 +2503,7 @@ function SolanaConfirmStep({
2502
2503
  const receiveAmount = isSameToken ? formattedReceiveAmount : `~ ${formattedReceiveAmount}`;
2503
2504
  const handleConfirm = async () => {
2504
2505
  if (!solanaProvider) {
2505
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2506
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2506
2507
  reason: "missing-provider"
2507
2508
  });
2508
2509
  setError("Solana wallet not connected");
@@ -2510,7 +2511,7 @@ function SolanaConfirmStep({
2510
2511
  }
2511
2512
  const parsedAmount = parseFloat(sourceAmount);
2512
2513
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
2513
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2514
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2514
2515
  reason: "invalid-amount",
2515
2516
  sourceAmount
2516
2517
  });
@@ -2519,7 +2520,7 @@ function SolanaConfirmStep({
2519
2520
  }
2520
2521
  setError(null);
2521
2522
  setIsSubmitting(true);
2522
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2523
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2523
2524
  smartAccount,
2524
2525
  solanaAddress,
2525
2526
  solanaDepositAddress,
@@ -2529,7 +2530,7 @@ function SolanaConfirmStep({
2529
2530
  });
2530
2531
  try {
2531
2532
  const check = await service.checkAccount(smartAccount);
2532
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2533
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2533
2534
  smartAccount,
2534
2535
  isRegistered: check.isRegistered,
2535
2536
  targetChain: check.targetChain,
@@ -2542,7 +2543,7 @@ function SolanaConfirmStep({
2542
2543
  }
2543
2544
  const connection = getSolanaConnection();
2544
2545
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
2545
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2546
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2546
2547
  token: token.symbol,
2547
2548
  sourceAmount,
2548
2549
  amountUnits: amountUnits.toString()
@@ -2559,7 +2560,7 @@ function SolanaConfirmStep({
2559
2560
  token.mint,
2560
2561
  amountUnits
2561
2562
  );
2562
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2563
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2563
2564
  token: token.symbol,
2564
2565
  instructionCount: transaction.instructions.length,
2565
2566
  feePayer: _optionalChain([transaction, 'access', _75 => _75.feePayer, 'optionalAccess', _76 => _76.toBase58, 'call', _77 => _77()]),
@@ -2570,15 +2571,15 @@ function SolanaConfirmStep({
2570
2571
  connection,
2571
2572
  transaction
2572
2573
  );
2573
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2574
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2574
2575
  txHash,
2575
2576
  amountUnits: amountUnits.toString()
2576
2577
  });
2577
2578
  onConfirm(txHash, amountUnits.toString());
2578
2579
  } catch (err) {
2579
2580
  const raw = err instanceof Error ? err.message : "Transfer failed";
2580
- const message = _chunkV6NJIPSScjs.formatUserError.call(void 0, raw);
2581
- _chunkV6NJIPSScjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2581
+ const message = _chunkDX2D2TRZcjs.formatUserError.call(void 0, raw);
2582
+ _chunkDX2D2TRZcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2582
2583
  smartAccount,
2583
2584
  token: token.symbol,
2584
2585
  sourceAmount
@@ -2590,7 +2591,7 @@ function SolanaConfirmStep({
2590
2591
  }
2591
2592
  };
2592
2593
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
2593
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { padding: "0 12px 12px" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.WalletIcon, {}), title: "Review deposit" }) }),
2594
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { padding: "0 12px 12px" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.WalletIcon, {}), title: "Review deposit" }) }),
2594
2595
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-space-y-3", style: { paddingTop: 0 }, children: [
2595
2596
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card", children: [
2596
2597
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-card-row", children: [
@@ -2689,12 +2690,12 @@ function SolanaConfirmStep({
2689
2690
  ] })
2690
2691
  ] }),
2691
2692
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-alert rs-alert--error", children: [
2692
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, { className: "rs-alert-icon" }),
2693
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, { className: "rs-alert-icon" }),
2693
2694
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error })
2694
2695
  ] })
2695
2696
  ] }),
2696
2697
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2697
- _chunkV6NJIPSScjs.Button,
2698
+ _chunkDX2D2TRZcjs.Button,
2698
2699
  {
2699
2700
  onClick: handleConfirm,
2700
2701
  loading: isSubmitting,
@@ -2703,7 +2704,7 @@ function SolanaConfirmStep({
2703
2704
  children: "Continue"
2704
2705
  }
2705
2706
  ) }),
2706
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
2707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
2707
2708
  ] });
2708
2709
  }
2709
2710
 
@@ -2717,24 +2718,24 @@ function DappImportAssetSelectStep({
2717
2718
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2718
2719
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2719
2720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2720
- _chunkV6NJIPSScjs.BodyHeader,
2721
+ _chunkDX2D2TRZcjs.BodyHeader,
2721
2722
  {
2722
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.HandCoinsIcon, {}),
2723
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HandCoinsIcon, {}),
2723
2724
  title: `Transfer from ${sourceLabel}`,
2724
2725
  subtitle: "Pick the balance to import"
2725
2726
  }
2726
2727
  ),
2727
2728
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-list", children: assets.map((asset) => {
2728
- const balanceTokens = asset.balance ? _chunkV6NJIPSScjs.tokenFormatter.format(
2729
+ const balanceTokens = asset.balance ? _chunkDX2D2TRZcjs.tokenFormatter.format(
2729
2730
  Number(asset.balance) / 10 ** asset.decimals
2730
2731
  ) : "0";
2731
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkV6NJIPSScjs.currencyFormatter.format(asset.balanceUsd) : `${balanceTokens} ${asset.symbol}`;
2732
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkDX2D2TRZcjs.currencyFormatter.format(asset.balanceUsd) : `${balanceTokens} ${asset.symbol}`;
2732
2733
  const iconSrc = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, asset.symbol);
2733
2734
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2734
- _chunkV6NJIPSScjs.ListRow,
2735
+ _chunkDX2D2TRZcjs.ListRow,
2735
2736
  {
2736
2737
  leadingMedia: iconSrc || void 0,
2737
- leading: iconSrc ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.HandCoinsIcon, {}),
2738
+ leading: iconSrc ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HandCoinsIcon, {}),
2738
2739
  title: asset.symbol,
2739
2740
  subtitle: `${balanceTokens} on ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)}`,
2740
2741
  meta: balanceUsd,
@@ -2744,7 +2745,7 @@ function DappImportAssetSelectStep({
2744
2745
  );
2745
2746
  }) })
2746
2747
  ] }),
2747
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
2748
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
2748
2749
  ] });
2749
2750
  }
2750
2751
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -2855,7 +2856,7 @@ async function executePolymarketSafeTransfer(params) {
2855
2856
  }
2856
2857
  const isOwner = await publicClient.readContract({
2857
2858
  address: safeAddress,
2858
- abi: _chunkV6NJIPSScjs.SAFE_ABI,
2859
+ abi: _chunkDX2D2TRZcjs.SAFE_ABI,
2859
2860
  functionName: "isOwner",
2860
2861
  args: [account.address]
2861
2862
  });
@@ -2872,7 +2873,7 @@ async function executePolymarketSafeTransfer(params) {
2872
2873
  account,
2873
2874
  chain,
2874
2875
  address: safeAddress,
2875
- abi: _chunkV6NJIPSScjs.SAFE_ABI,
2876
+ abi: _chunkDX2D2TRZcjs.SAFE_ABI,
2876
2877
  functionName: "execTransaction",
2877
2878
  args: [
2878
2879
  safeTx.to,
@@ -2891,7 +2892,7 @@ async function executePolymarketSafeTransfer(params) {
2891
2892
  hash: txHash
2892
2893
  });
2893
2894
  const parsed = _viem.parseEventLogs.call(void 0, {
2894
- abi: _chunkV6NJIPSScjs.SAFE_ABI,
2895
+ abi: _chunkDX2D2TRZcjs.SAFE_ABI,
2895
2896
  logs: receipt.logs.filter(
2896
2897
  (log) => log.address.toLowerCase() === safeAddress.toLowerCase()
2897
2898
  ),
@@ -3661,15 +3662,15 @@ var SetupError = class extends Error {
3661
3662
  }
3662
3663
  };
3663
3664
  async function resolveSessionOwner(eoaAddress) {
3664
- const local = _chunkV6NJIPSScjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
3665
+ const local = _chunkDX2D2TRZcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
3665
3666
  if (local) {
3666
3667
  return {
3667
- account: _chunkV6NJIPSScjs.accountFromPrivateKey.call(void 0, local.privateKey),
3668
+ account: _chunkDX2D2TRZcjs.accountFromPrivateKey.call(void 0, local.privateKey),
3668
3669
  address: local.address
3669
3670
  };
3670
3671
  }
3671
- const created = _chunkV6NJIPSScjs.createSessionOwnerKey.call(void 0, );
3672
- _chunkV6NJIPSScjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
3672
+ const created = _chunkDX2D2TRZcjs.createSessionOwnerKey.call(void 0, );
3673
+ _chunkDX2D2TRZcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
3673
3674
  return { account: created.account, address: created.address };
3674
3675
  }
3675
3676
  function stableStringify(value) {
@@ -3733,7 +3734,7 @@ async function runAccountSetup(input, deps) {
3733
3734
  try {
3734
3735
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
3735
3736
  const cacheKey = computeCacheKey(input, sessionOwner.address);
3736
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
3737
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
3737
3738
  owner: input.ownerAddress,
3738
3739
  sessionOwner: sessionOwner.address,
3739
3740
  hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _94 => _94.postBridgeActions, 'optionalAccess', _95 => _95.length])),
@@ -3742,7 +3743,7 @@ async function runAccountSetup(input, deps) {
3742
3743
  const setup = await service.setupAccount({
3743
3744
  ownerAddress: input.ownerAddress,
3744
3745
  sessionOwnerAddress: sessionOwner.address,
3745
- targetChain: _chunkV6NJIPSScjs.toEvmCaip2.call(void 0, input.targetChain),
3746
+ targetChain: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, input.targetChain),
3746
3747
  targetToken: input.targetToken,
3747
3748
  recipient: input.recipient,
3748
3749
  postBridgeActions: input.postBridgeActions,
@@ -3781,7 +3782,7 @@ async function runAccountSetup(input, deps) {
3781
3782
  primaryType: typedData.primaryType,
3782
3783
  message: typedData.message
3783
3784
  });
3784
- const sessionDetails = _chunkV6NJIPSScjs.buildSessionDetails.call(void 0,
3785
+ const sessionDetails = _chunkDX2D2TRZcjs.buildSessionDetails.call(void 0,
3785
3786
  setup.sessionDetailsUnsigned,
3786
3787
  signature
3787
3788
  );
@@ -3795,7 +3796,7 @@ async function runAccountSetup(input, deps) {
3795
3796
  eoaAddress: input.ownerAddress,
3796
3797
  sessionOwner: sessionOwner.address,
3797
3798
  target: {
3798
- chain: _chunkV6NJIPSScjs.toEvmCaip2.call(void 0, input.targetChain),
3799
+ chain: _chunkDX2D2TRZcjs.toEvmCaip2.call(void 0, input.targetChain),
3799
3800
  token: input.targetToken,
3800
3801
  ...input.recipient && { recipient: input.recipient },
3801
3802
  ..._optionalChain([input, 'access', _96 => _96.postBridgeActions, 'optionalAccess', _97 => _97.length]) && {
@@ -3817,7 +3818,7 @@ async function runAccountSetup(input, deps) {
3817
3818
  isRegistered: true
3818
3819
  };
3819
3820
  } catch (error) {
3820
- _chunkV6NJIPSScjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
3821
+ _chunkDX2D2TRZcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
3821
3822
  owner: input.ownerAddress
3822
3823
  });
3823
3824
  if (error instanceof SetupError) throw error;
@@ -3828,7 +3829,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
3828
3829
  const now = Date.now();
3829
3830
  const existing = setupRequestDedupe.get(requestKey);
3830
3831
  if (existing && (!existing.settled || existing.expiresAt > now)) {
3831
- _chunkV6NJIPSScjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
3832
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
3832
3833
  owner: input.ownerAddress,
3833
3834
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
3834
3835
  });
@@ -3912,15 +3913,6 @@ function AccountPreparingSkeleton({
3912
3913
  ) })
3913
3914
  ] });
3914
3915
  }
3915
- function SetupUpdatingBanner({
3916
- status,
3917
- message
3918
- }) {
3919
- if (status === "error") {
3920
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", role: "alert", children: _nullishCoalesce(message, () => ( "Couldn't update deposit details \u2014 please retry.")) });
3921
- }
3922
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-state", style: { padding: "8px 16px" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "Updating deposit details\u2026" }) }) });
3923
- }
3924
3916
  var QR_AUTO_ADVANCE_HYDRATION_GRACE_MS = 1e3;
3925
3917
  function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
3926
3918
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
@@ -4072,10 +4064,10 @@ function DepositFlow({
4072
4064
  onError,
4073
4065
  debug
4074
4066
  }) {
4075
- const onStepChangeRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onStepChange);
4076
- const onEventRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onEvent);
4077
- const onLifecycleRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onLifecycle);
4078
- const onErrorRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onError);
4067
+ const onStepChangeRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onStepChange);
4068
+ const onEventRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onEvent);
4069
+ const onLifecycleRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onLifecycle);
4070
+ const onErrorRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onError);
4079
4071
  const hasInitialReownSession = Boolean(
4080
4072
  enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _100 => _100.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _101 => _101.address]) : _optionalChain([reownWallet, 'optionalAccess', _102 => _102.address])
4081
4073
  );
@@ -4092,19 +4084,22 @@ function DepositFlow({
4092
4084
  const hasNavigatedBack = flowSlice.hasNavigatedBack;
4093
4085
  const selectedWalletId = useDepositStore(selectedWalletIdSelector);
4094
4086
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
4087
+ const [targetBalanceUsd, setTargetBalanceUsd] = _react.useState.call(void 0,
4088
+ void 0
4089
+ );
4095
4090
  const [hasQrAutoAdvanceGraceElapsed, setHasQrAutoAdvanceGraceElapsed] = _react.useState.call(void 0, () => !hasInitialWalletHydrationPending);
4096
4091
  const portfolioAssetsRef = _react.useRef.call(void 0, []);
4097
4092
  const stableWalletSignerRef = _react.useRef.call(void 0, null);
4098
4093
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
4099
4094
  const logFlow = _react.useCallback.call(void 0,
4100
4095
  (message, data) => {
4101
- _chunkV6NJIPSScjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
4096
+ _chunkDX2D2TRZcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
4102
4097
  },
4103
4098
  [debug]
4104
4099
  );
4105
4100
  const logFlowError = _react.useCallback.call(void 0,
4106
4101
  (message, error, data) => {
4107
- _chunkV6NJIPSScjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
4102
+ _chunkDX2D2TRZcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
4108
4103
  },
4109
4104
  [debug]
4110
4105
  );
@@ -4228,7 +4223,7 @@ function DepositFlow({
4228
4223
  return {
4229
4224
  ownerAddress: dappAddress,
4230
4225
  walletClient: void 0,
4231
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, targetChain))),
4226
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, targetChain))),
4232
4227
  switchChain: void 0
4233
4228
  };
4234
4229
  }
@@ -4237,7 +4232,7 @@ function DepositFlow({
4237
4232
  return {
4238
4233
  ownerAddress: dappWalletClient.account.address,
4239
4234
  walletClient: dappWalletClient,
4240
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, fallbackChainId))),
4235
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, fallbackChainId))),
4241
4236
  switchChain: dappSwitchChain
4242
4237
  };
4243
4238
  }
@@ -4251,7 +4246,7 @@ function DepositFlow({
4251
4246
  return {
4252
4247
  ownerAddress: dappAddress,
4253
4248
  walletClient: void 0,
4254
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, targetChain))),
4249
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, targetChain))),
4255
4250
  switchChain: void 0
4256
4251
  };
4257
4252
  }
@@ -4260,7 +4255,7 @@ function DepositFlow({
4260
4255
  return {
4261
4256
  ownerAddress: dappWalletClient.account.address,
4262
4257
  walletClient: dappWalletClient,
4263
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, fallbackChainId))),
4258
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, fallbackChainId))),
4264
4259
  switchChain: dappSwitchChain
4265
4260
  };
4266
4261
  }
@@ -4268,7 +4263,7 @@ function DepositFlow({
4268
4263
  return {
4269
4264
  ownerAddress: reownWallet.address,
4270
4265
  walletClient: reownWallet.walletClient,
4271
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, targetChain))),
4266
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, targetChain))),
4272
4267
  switchChain: reownWallet.switchChain
4273
4268
  };
4274
4269
  }
@@ -4306,7 +4301,7 @@ function DepositFlow({
4306
4301
  return {
4307
4302
  ownerAddress: dappAddress,
4308
4303
  walletClient: void 0,
4309
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkV6NJIPSScjs.getPublicClient.call(void 0, targetChain))),
4304
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDX2D2TRZcjs.getPublicClient.call(void 0, targetChain))),
4310
4305
  switchChain: void 0
4311
4306
  };
4312
4307
  }
@@ -4372,6 +4367,26 @@ function DepositFlow({
4372
4367
  () => readSetupForOwner(setupSlice, activeOwner),
4373
4368
  [setupSlice, activeOwner]
4374
4369
  );
4370
+ const activeSmartAccount = activeEntry.smartAccount;
4371
+ _react.useEffect.call(void 0, () => {
4372
+ if (!activeSmartAccount) {
4373
+ setTargetBalanceUsd(void 0);
4374
+ return;
4375
+ }
4376
+ let active = true;
4377
+ service.fetchPortfolio(activeSmartAccount).then((portfolio) => {
4378
+ if (!active) return;
4379
+ const target = portfolio.tokens.find(
4380
+ (t) => t.chainId === targetChain && typeof t.address === "string" && t.address.toLowerCase() === targetToken.toLowerCase()
4381
+ );
4382
+ setTargetBalanceUsd(_nullishCoalesce(_optionalChain([target, 'optionalAccess', _135 => _135.balanceUsd]), () => ( 0)));
4383
+ }).catch(() => {
4384
+ if (active) setTargetBalanceUsd(0);
4385
+ });
4386
+ return () => {
4387
+ active = false;
4388
+ };
4389
+ }, [activeSmartAccount, targetChain, targetToken, service]);
4375
4390
  const lastActiveSetupLifecycleKeyRef = _react.useRef.call(void 0, null);
4376
4391
  _react.useEffect.call(void 0, () => {
4377
4392
  if (!flowMode || !isConnectSelectionConfirmed) {
@@ -4390,12 +4405,12 @@ function DepositFlow({
4390
4405
  return;
4391
4406
  }
4392
4407
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
4393
- _optionalChain([onLifecycleRef, 'access', _135 => _135.current, 'optionalCall', _136 => _136({
4408
+ _optionalChain([onLifecycleRef, 'access', _136 => _136.current, 'optionalCall', _137 => _137({
4394
4409
  type: "smart-account-changed",
4395
4410
  evm: activeEntry.smartAccount,
4396
4411
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
4397
4412
  })]);
4398
- _optionalChain([onLifecycleRef, 'access', _137 => _137.current, 'optionalCall', _138 => _138({
4413
+ _optionalChain([onLifecycleRef, 'access', _138 => _138.current, 'optionalCall', _139 => _139({
4399
4414
  type: "connected",
4400
4415
  address: activeOwner,
4401
4416
  smartAccount: activeEntry.smartAccount
@@ -4428,7 +4443,7 @@ function DepositFlow({
4428
4443
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
4429
4444
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
4430
4445
  _react.useEffect.call(void 0, () => {
4431
- _optionalChain([onStepChangeRef, 'access', _139 => _139.current, 'optionalCall', _140 => _140(currentBackHandler, currentScreen)]);
4446
+ _optionalChain([onStepChangeRef, 'access', _140 => _140.current, 'optionalCall', _141 => _141(currentBackHandler, currentScreen)]);
4432
4447
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
4433
4448
  const stepSendToken = effectiveStep.type === "amount" ? effectiveStep.asset.symbol : null;
4434
4449
  const stepOpenEventKey = effectiveStep.type === "select-asset" ? "select-asset" : effectiveStep.type === "deposit-address" ? "deposit-address" : effectiveStep.type === "amount" && stepSendToken ? `amount:${stepSendToken.toLowerCase()}` : null;
@@ -4443,7 +4458,7 @@ function DepositFlow({
4443
4458
  }
4444
4459
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
4445
4460
  if (effectiveStep.type === "select-asset") {
4446
- _optionalChain([onEventRef, 'access', _141 => _141.current, 'optionalCall', _142 => _142({
4461
+ _optionalChain([onEventRef, 'access', _142 => _142.current, 'optionalCall', _143 => _143({
4447
4462
  type: "deposit_modal_connected_wallet_select_source_open",
4448
4463
  total_balance_in_external_wallet: totalBalanceUsd,
4449
4464
  pred_balance: totalBalanceUsd
@@ -4451,7 +4466,7 @@ function DepositFlow({
4451
4466
  } else if (effectiveStep.type === "deposit-address") {
4452
4467
  const chainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
4453
4468
  const tokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
4454
- _optionalChain([onEventRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144({
4469
+ _optionalChain([onEventRef, 'access', _144 => _144.current, 'optionalCall', _145 => _145({
4455
4470
  type: "deposit_modal_transfer_crypto_open",
4456
4471
  default_chain: chainName,
4457
4472
  default_token: tokenSymbol,
@@ -4459,7 +4474,7 @@ function DepositFlow({
4459
4474
  })]);
4460
4475
  } else if (effectiveStep.type === "amount" && stepSendToken) {
4461
4476
  const receiveSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
4462
- _optionalChain([onEventRef, 'access', _145 => _145.current, 'optionalCall', _146 => _146({
4477
+ _optionalChain([onEventRef, 'access', _146 => _146.current, 'optionalCall', _147 => _147({
4463
4478
  type: "deposit_modal_connected_wallet_enter_value_open",
4464
4479
  send_token: stepSendToken,
4465
4480
  receive_token: receiveSymbol,
@@ -4492,7 +4507,7 @@ function DepositFlow({
4492
4507
  targetToken
4493
4508
  ]);
4494
4509
  _react.useEffect.call(void 0, () => {
4495
- _optionalChain([onLifecycleRef, 'access', _147 => _147.current, 'optionalCall', _148 => _148({
4510
+ _optionalChain([onLifecycleRef, 'access', _148 => _148.current, 'optionalCall', _149 => _149({
4496
4511
  type: "balance-changed",
4497
4512
  totalUsd: totalBalanceUsd
4498
4513
  })]);
@@ -4506,7 +4521,7 @@ function DepositFlow({
4506
4521
  const handleConfirmWallet = _react.useCallback.call(void 0,
4507
4522
  (walletId) => {
4508
4523
  const selectedOption = walletOptions.find((o) => o.id === walletId);
4509
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _149 => _149.kind]) === "solana" ? "solana-wallet" : "wallet";
4524
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _150 => _150.kind]) === "solana" ? "solana-wallet" : "wallet";
4510
4525
  storeApi.dispatch({
4511
4526
  type: "connect/wallet-confirmed",
4512
4527
  walletId,
@@ -4524,7 +4539,7 @@ function DepositFlow({
4524
4539
  const owner = dappImportOwner;
4525
4540
  if (owner) {
4526
4541
  const wallet = walletOptions.find(
4527
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _150 => _150.toLowerCase, 'call', _151 => _151()]) === owner.toLowerCase()
4542
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _151 => _151.toLowerCase, 'call', _152 => _152()]) === owner.toLowerCase()
4528
4543
  );
4529
4544
  if (wallet) {
4530
4545
  storeApi.dispatch({
@@ -4562,7 +4577,7 @@ function DepositFlow({
4562
4577
  eoa: dappImportOwner,
4563
4578
  getPublicClient: (chainId) => {
4564
4579
  try {
4565
- return _chunkV6NJIPSScjs.getPublicClient.call(void 0, chainId);
4580
+ return _chunkDX2D2TRZcjs.getPublicClient.call(void 0, chainId);
4566
4581
  } catch (e28) {
4567
4582
  return null;
4568
4583
  }
@@ -4597,7 +4612,7 @@ function DepositFlow({
4597
4612
  );
4598
4613
  const connectStepDappImports = _react.useMemo.call(void 0,
4599
4614
  () => enabledDappImportProviders.map((provider) => {
4600
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _152 => _152.toLowerCase, 'call', _153 => _153()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[provider.id] : void 0;
4615
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _153 => _153.toLowerCase, 'call', _154 => _154()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[provider.id] : void 0;
4601
4616
  const dappImportSetup = readSetupForOwner(setupSlice, dappImportOwner);
4602
4617
  const baseRow = {
4603
4618
  id: provider.id,
@@ -4650,7 +4665,7 @@ function DepositFlow({
4650
4665
  }, [activeDappImportProviderId, enabledDappImportProviders]);
4651
4666
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
4652
4667
  if (!activeDappImportProviderId) return null;
4653
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _154 => _154.toLowerCase, 'call', _155 => _155()]) !== dappImportOwner.toLowerCase()) {
4668
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _155 => _155.toLowerCase, 'call', _156 => _156()]) !== dappImportOwner.toLowerCase()) {
4654
4669
  return null;
4655
4670
  }
4656
4671
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -4663,7 +4678,7 @@ function DepositFlow({
4663
4678
  dappImportOwner
4664
4679
  ]);
4665
4680
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
4666
- _optionalChain([onLifecycleRef, 'access', _156 => _156.current, 'optionalCall', _157 => _157({
4681
+ _optionalChain([onLifecycleRef, 'access', _157 => _157.current, 'optionalCall', _158 => _158({
4667
4682
  type: "smart-account-changed",
4668
4683
  evm: null,
4669
4684
  solana: null
@@ -4711,13 +4726,13 @@ function DepositFlow({
4711
4726
  };
4712
4727
  push(dappAddress);
4713
4728
  push(connectedWalletAddress);
4714
- push(_optionalChain([reownWallet, 'optionalAccess', _158 => _158.address]));
4729
+ push(_optionalChain([reownWallet, 'optionalAccess', _159 => _159.address]));
4715
4730
  push(dappImportOwner);
4716
4731
  return owners;
4717
4732
  }, [
4718
4733
  dappAddress,
4719
4734
  connectedWalletAddress,
4720
- _optionalChain([reownWallet, 'optionalAccess', _159 => _159.address]),
4735
+ _optionalChain([reownWallet, 'optionalAccess', _160 => _160.address]),
4721
4736
  dappImportOwner
4722
4737
  ]);
4723
4738
  _react.useEffect.call(void 0, () => {
@@ -4731,7 +4746,7 @@ function DepositFlow({
4731
4746
  try {
4732
4747
  sessionOwner = await resolveSessionOwner(owner);
4733
4748
  } catch (error) {
4734
- _chunkV6NJIPSScjs.debugError.call(void 0,
4749
+ _chunkDX2D2TRZcjs.debugError.call(void 0,
4735
4750
  debug,
4736
4751
  "deposit-flow",
4737
4752
  "session-owner:resolve-failed",
@@ -4822,7 +4837,7 @@ function DepositFlow({
4822
4837
  sourceChain: data.sourceChain,
4823
4838
  amount: data.amount
4824
4839
  });
4825
- _optionalChain([onLifecycleRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161({ type: "submitted", ...data })]);
4840
+ _optionalChain([onLifecycleRef, 'access', _161 => _161.current, 'optionalCall', _162 => _162({ type: "submitted", ...data })]);
4826
4841
  },
4827
4842
  [logFlow, onLifecycleRef]
4828
4843
  );
@@ -4879,7 +4894,7 @@ function DepositFlow({
4879
4894
  sourceSymbol: tokenAtSubmit.symbol,
4880
4895
  sourceDecimals: tokenAtSubmit.decimals
4881
4896
  });
4882
- _optionalChain([onLifecycleRef, 'access', _162 => _162.current, 'optionalCall', _163 => _163({
4897
+ _optionalChain([onLifecycleRef, 'access', _163 => _163.current, 'optionalCall', _164 => _164({
4883
4898
  type: "submitted",
4884
4899
  txHash,
4885
4900
  sourceChain: "solana",
@@ -4890,7 +4905,7 @@ function DepositFlow({
4890
4905
  );
4891
4906
  const handleAssetContinue = _react.useCallback.call(void 0,
4892
4907
  (asset) => {
4893
- _optionalChain([onEventRef, 'access', _164 => _164.current, 'optionalCall', _165 => _165({
4908
+ _optionalChain([onEventRef, 'access', _165 => _165.current, 'optionalCall', _166 => _166({
4894
4909
  type: "deposit_modal_connected_wallet_select_source_cta_click",
4895
4910
  total_balance_in_external_wallet: totalBalanceUsd,
4896
4911
  pred_balance: totalBalanceUsd,
@@ -4943,8 +4958,8 @@ function DepositFlow({
4943
4958
  sourceChain: chainId,
4944
4959
  sourceToken: token,
4945
4960
  amount,
4946
- sourceSymbol: _optionalChain([dappImport, 'optionalAccess', _166 => _166.symbol]),
4947
- sourceDecimals: _optionalChain([dappImport, 'optionalAccess', _167 => _167.decimals]),
4961
+ sourceSymbol: _optionalChain([dappImport, 'optionalAccess', _167 => _167.symbol]),
4962
+ sourceDecimals: _optionalChain([dappImport, 'optionalAccess', _168 => _168.decimals]),
4948
4963
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
4949
4964
  });
4950
4965
  },
@@ -4952,7 +4967,7 @@ function DepositFlow({
4952
4967
  );
4953
4968
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
4954
4969
  (txHash, sourceChain, amount) => {
4955
- _optionalChain([onLifecycleRef, 'access', _168 => _168.current, 'optionalCall', _169 => _169({
4970
+ _optionalChain([onLifecycleRef, 'access', _169 => _169.current, 'optionalCall', _170 => _170({
4956
4971
  type: "submitted",
4957
4972
  txHash,
4958
4973
  sourceChain,
@@ -4964,7 +4979,7 @@ function DepositFlow({
4964
4979
  const handleDepositComplete = _react.useCallback.call(void 0,
4965
4980
  (txHash, destinationTxHash, context) => {
4966
4981
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
4967
- _optionalChain([onLifecycleRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171({
4982
+ _optionalChain([onLifecycleRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172({
4968
4983
  type: "complete",
4969
4984
  txHash,
4970
4985
  destinationTxHash,
@@ -4976,14 +4991,14 @@ function DepositFlow({
4976
4991
  const handleDepositFailed = _react.useCallback.call(void 0,
4977
4992
  (txHash, error) => {
4978
4993
  logFlowError("deposit:failed", error, { txHash });
4979
- _optionalChain([onLifecycleRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173({ type: "failed", txHash, error })]);
4994
+ _optionalChain([onLifecycleRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174({ type: "failed", txHash, error })]);
4980
4995
  },
4981
4996
  [logFlowError, onLifecycleRef]
4982
4997
  );
4983
4998
  const handleError = _react.useCallback.call(void 0,
4984
4999
  (message, code) => {
4985
5000
  logFlowError("flow:error", message, { code });
4986
- _optionalChain([onErrorRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175({ message, code })]);
5001
+ _optionalChain([onErrorRef, 'access', _175 => _175.current, 'optionalCall', _176 => _176({ message, code })]);
4987
5002
  },
4988
5003
  [logFlowError, onErrorRef]
4989
5004
  );
@@ -5065,7 +5080,7 @@ function DepositFlow({
5065
5080
  );
5066
5081
  if (showConnectStep) {
5067
5082
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5068
- _chunkV6NJIPSScjs.ConnectStep,
5083
+ _chunkDX2D2TRZcjs.ConnectStep,
5069
5084
  {
5070
5085
  walletRows,
5071
5086
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -5111,16 +5126,7 @@ function DepositFlow({
5111
5126
  }
5112
5127
  if (isDepositAddressMode) {
5113
5128
  if (!dappAddress) return null;
5114
- const isWalletPickerReachable = walletOptions.length > 0 || Boolean(reownWallet) || Boolean(onConnect);
5115
- const showBanner = effectiveStep.type !== "setup" && (activeEntry.status === "loading" || activeEntry.status === "error");
5116
5129
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
5117
- showBanner && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5118
- SetupUpdatingBanner,
5119
- {
5120
- status: activeEntry.status,
5121
- message: _nullishCoalesce(activeEntry.message, () => ( void 0))
5122
- }
5123
- ),
5124
5130
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5125
5131
  AccountPreparingSkeleton,
5126
5132
  {
@@ -5138,7 +5144,7 @@ function DepositFlow({
5138
5144
  targetChain,
5139
5145
  targetToken,
5140
5146
  waitForFinalTx,
5141
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _176 => _176.length])),
5147
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _177 => _177.length])),
5142
5148
  uiConfig,
5143
5149
  onDepositSubmitted: handleDepositAddressSubmitted,
5144
5150
  onDepositComplete: handleDepositComplete,
@@ -5146,7 +5152,7 @@ function DepositFlow({
5146
5152
  onCopyAddress: () => {
5147
5153
  const chainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
5148
5154
  const tokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
5149
- _optionalChain([onEvent, 'optionalCall', _177 => _177({
5155
+ _optionalChain([onEvent, 'optionalCall', _178 => _178({
5150
5156
  type: "deposit_modal_transfer_crypto_cta_click",
5151
5157
  default_chain: chainName,
5152
5158
  default_token: tokenSymbol,
@@ -5154,9 +5160,6 @@ function DepositFlow({
5154
5160
  cta_name: "copy"
5155
5161
  })]);
5156
5162
  },
5157
- onRequestWalletPicker: isWalletPickerReachable ? () => storeApi.dispatch({
5158
- type: "connect/wallet-picker-requested"
5159
- }) : void 0,
5160
5163
  onError: handleError,
5161
5164
  debug
5162
5165
  }
@@ -5165,17 +5168,9 @@ function DepositFlow({
5165
5168
  }
5166
5169
  if (isSolanaWalletMode) {
5167
5170
  if (!dappAddress) return null;
5168
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _178 => _178.solanaAddress]);
5169
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _179 => _179.solanaProvider]);
5170
- const solanaShowBanner = effectiveStep.type !== "setup" && effectiveStep.type !== "processing" && (activeEntry.status === "loading" || activeEntry.status === "error");
5171
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _179 => _179.solanaAddress]);
5172
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _180 => _180.solanaProvider]);
5171
5173
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
5172
- solanaShowBanner && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5173
- SetupUpdatingBanner,
5174
- {
5175
- status: activeEntry.status,
5176
- message: _nullishCoalesce(activeEntry.message, () => ( void 0))
5177
- }
5178
- ),
5179
5174
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5180
5175
  AccountPreparingSkeleton,
5181
5176
  {
@@ -5206,6 +5201,7 @@ function DepositFlow({
5206
5201
  targetTokenIcon: _chunkIVTXEYB2cjs.getTokenIcon.call(void 0,
5207
5202
  _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain)
5208
5203
  ),
5204
+ targetBalanceUsd,
5209
5205
  onContinue: handleSolanaAmountContinue,
5210
5206
  debug
5211
5207
  }
@@ -5264,7 +5260,7 @@ function DepositFlow({
5264
5260
  ) })
5265
5261
  ] }) : null,
5266
5262
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5267
- _chunkV6NJIPSScjs.ProcessingStep,
5263
+ _chunkDX2D2TRZcjs.ProcessingStep,
5268
5264
  {
5269
5265
  smartAccount: effectiveStep.smartAccount,
5270
5266
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -5277,7 +5273,7 @@ function DepositFlow({
5277
5273
  sourceSymbol: effectiveStep.sourceSymbol,
5278
5274
  sourceDecimals: effectiveStep.sourceDecimals,
5279
5275
  waitForFinalTx,
5280
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _180 => _180.length])),
5276
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _181 => _181.length])),
5281
5277
  service,
5282
5278
  directTransfer: effectiveStep.directTransfer,
5283
5279
  onClose,
@@ -5290,26 +5286,18 @@ function DepositFlow({
5290
5286
  )
5291
5287
  ] });
5292
5288
  }
5293
- if (!_optionalChain([signerContext, 'optionalAccess', _181 => _181.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _182 => _182.publicClient])) {
5289
+ if (!_optionalChain([signerContext, 'optionalAccess', _182 => _182.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _183 => _183.publicClient])) {
5294
5290
  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..." }) }) }) }) });
5295
5291
  }
5296
5292
  const ownerAddress = signerContext.ownerAddress;
5297
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _183 => _183.walletClient, 'optionalAccess', _184 => _184.chain, 'optionalAccess', _185 => _185.id]), () => ( _optionalChain([signerContext, 'access', _186 => _186.publicClient, 'access', _187 => _187.chain, 'optionalAccess', _188 => _188.id]))), () => ( targetChain));
5293
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _184 => _184.walletClient, 'optionalAccess', _185 => _185.chain, 'optionalAccess', _186 => _186.id]), () => ( _optionalChain([signerContext, 'access', _187 => _187.publicClient, 'access', _188 => _188.chain, 'optionalAccess', _189 => _189.id]))), () => ( targetChain));
5298
5294
  const getReadClientForChain = (chainId) => {
5299
- if (_optionalChain([signerContext, 'access', _189 => _189.publicClient, 'access', _190 => _190.chain, 'optionalAccess', _191 => _191.id]) === chainId) {
5295
+ if (_optionalChain([signerContext, 'access', _190 => _190.publicClient, 'access', _191 => _191.chain, 'optionalAccess', _192 => _192.id]) === chainId) {
5300
5296
  return signerContext.publicClient;
5301
5297
  }
5302
- return _chunkV6NJIPSScjs.getPublicClient.call(void 0, chainId);
5298
+ return _chunkDX2D2TRZcjs.getPublicClient.call(void 0, chainId);
5303
5299
  };
5304
- const walletShowBanner = effectiveStep.type !== "setup" && effectiveStep.type !== "processing" && (activeEntry.status === "loading" || activeEntry.status === "error");
5305
5300
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
5306
- walletShowBanner && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5307
- SetupUpdatingBanner,
5308
- {
5309
- status: activeEntry.status,
5310
- message: _nullishCoalesce(activeEntry.message, () => ( void 0))
5311
- }
5312
- ),
5313
5301
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5314
5302
  AccountPreparingSkeleton,
5315
5303
  {
@@ -5338,7 +5326,7 @@ function DepositFlow({
5338
5326
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5339
5327
  DappImportAssetSelectStep,
5340
5328
  {
5341
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _192 => _192.assets, 'access', _193 => _193[0], 'optionalAccess', _194 => _194.sourceLabel]), () => ( activeDappImportProvider.label)),
5329
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _193 => _193.assets, 'access', _194 => _194[0], 'optionalAccess', _195 => _195.sourceLabel]), () => ( activeDappImportProvider.label)),
5342
5330
  assets: activeDappImportAvailability.assets,
5343
5331
  onSelect: handleDappImportAssetSelected
5344
5332
  }
@@ -5360,11 +5348,12 @@ function DepositFlow({
5360
5348
  targetChain,
5361
5349
  targetToken,
5362
5350
  uiConfig,
5351
+ targetBalanceUsd,
5363
5352
  service,
5364
5353
  onContinue: handleAmountContinue,
5365
5354
  onCtaClick: (ctaName) => {
5366
5355
  const receiveSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
5367
- _optionalChain([onEvent, 'optionalCall', _195 => _195({
5356
+ _optionalChain([onEvent, 'optionalCall', _196 => _196({
5368
5357
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
5369
5358
  send_token: effectiveStep.asset.symbol,
5370
5359
  receive_token: receiveSymbol,
@@ -5414,7 +5403,7 @@ function DepositFlow({
5414
5403
  }
5415
5404
  ),
5416
5405
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5417
- _chunkV6NJIPSScjs.ProcessingStep,
5406
+ _chunkDX2D2TRZcjs.ProcessingStep,
5418
5407
  {
5419
5408
  smartAccount: effectiveStep.smartAccount,
5420
5409
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -5427,7 +5416,7 @@ function DepositFlow({
5427
5416
  sourceSymbol: effectiveStep.sourceSymbol,
5428
5417
  sourceDecimals: effectiveStep.sourceDecimals,
5429
5418
  waitForFinalTx,
5430
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _196 => _196.length])),
5419
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _197 => _197.length])),
5431
5420
  service,
5432
5421
  directTransfer: effectiveStep.directTransfer,
5433
5422
  uiConfig,
@@ -5466,8 +5455,8 @@ function formatDate(iso) {
5466
5455
  function resolveChainId(value) {
5467
5456
  if (value === void 0 || value === null) return null;
5468
5457
  if (typeof value === "number") return value;
5469
- if (_chunkV6NJIPSScjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
5470
- const parsed = _chunkV6NJIPSScjs.parseEvmChainId.call(void 0, value);
5458
+ if (_chunkDX2D2TRZcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
5459
+ const parsed = _chunkDX2D2TRZcjs.parseEvmChainId.call(void 0, value);
5471
5460
  if (parsed !== null) return parsed;
5472
5461
  const num = Number(value);
5473
5462
  return Number.isFinite(num) ? num : null;
@@ -5581,10 +5570,9 @@ function DepositHistoryPanel({
5581
5570
  className: "rs-modal-header-back",
5582
5571
  "aria-label": "Back",
5583
5572
  onClick: onClose,
5584
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ChevronLeftIcon, {})
5573
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronLeftIcon, {})
5585
5574
  }
5586
5575
  ) }),
5587
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-center" }),
5588
5576
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5589
5577
  "button",
5590
5578
  {
@@ -5592,29 +5580,29 @@ function DepositHistoryPanel({
5592
5580
  className: "rs-modal-close",
5593
5581
  "aria-label": "Close",
5594
5582
  onClick: onCloseModal,
5595
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CloseIcon, {})
5583
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CloseIcon, {})
5596
5584
  }
5597
5585
  ) })
5598
5586
  ] }),
5599
5587
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
5600
5588
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
5601
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.HistoryIcon, {}), title: "History" }),
5589
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HistoryIcon, {}), title: "History" }),
5602
5590
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
5603
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.HistoryIcon, {}) }),
5591
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HistoryIcon, {}) }),
5604
5592
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
5605
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.Spinner, { className: "rs-spinner--sm" }),
5593
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.Spinner, { className: "rs-spinner--sm" }),
5606
5594
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
5607
5595
  ] })
5608
5596
  ] }),
5609
5597
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
5610
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.AlertTriangleIcon, {}) }),
5598
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.AlertTriangleIcon, {}) }),
5611
5599
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
5612
5600
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
5613
5601
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
5614
5602
  ] })
5615
5603
  ] }),
5616
5604
  !isLoading && !error && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
5617
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.HistoryIcon, {}) }),
5605
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HistoryIcon, {}) }),
5618
5606
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
5619
5607
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
5620
5608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -5634,7 +5622,7 @@ function DepositHistoryPanel({
5634
5622
  )
5635
5623
  ] })
5636
5624
  ] }),
5637
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.PoweredBy, {})
5625
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.PoweredBy, {})
5638
5626
  ] })
5639
5627
  ]
5640
5628
  }
@@ -5708,7 +5696,7 @@ function HistoryCard({ deposit }) {
5708
5696
  onClick: (e) => e.stopPropagation(),
5709
5697
  children: [
5710
5698
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
5711
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ArrowRightIcon, {})
5699
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ArrowUpRightIcon, {})
5712
5700
  ]
5713
5701
  }
5714
5702
  )
@@ -5723,7 +5711,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
5723
5711
  // src/DepositModal.tsx
5724
5712
 
5725
5713
  var ReownDepositInner = _react.lazy.call(void 0,
5726
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-XV4BEUHT.cjs"))).then((m) => ({ default: m.DepositModalReown }))
5714
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-SBSP5ZW2.cjs"))).then((m) => ({ default: m.DepositModalReown }))
5727
5715
  );
5728
5716
  function sortByCreatedAtDesc(items) {
5729
5717
  return [...items].sort((a, b) => {
@@ -5797,12 +5785,12 @@ function DepositModalInner({
5797
5785
  debug
5798
5786
  }) {
5799
5787
  const modalRef = _react.useRef.call(void 0, null);
5800
- const onReadyRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onReady);
5788
+ const onReadyRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onReady);
5801
5789
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
5802
5790
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
5803
5791
  void 0
5804
5792
  );
5805
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _197 => _197.showHistoryButton]), () => ( false));
5793
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _198 => _198.showHistoryButton]), () => ( false));
5806
5794
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
5807
5795
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
5808
5796
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -5816,7 +5804,7 @@ function DepositModalInner({
5816
5804
  const targetChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, targetChainProp);
5817
5805
  const sourceChain = sourceChainProp ? _chunkIVTXEYB2cjs.getChainId.call(void 0, sourceChainProp) : void 0;
5818
5806
  const service = _react.useMemo.call(void 0,
5819
- () => _chunkV6NJIPSScjs.createDepositService.call(void 0, backendUrl, {
5807
+ () => _chunkDX2D2TRZcjs.createDepositService.call(void 0, backendUrl, {
5820
5808
  debug,
5821
5809
  debugScope: "service:deposit"
5822
5810
  }),
@@ -5832,7 +5820,7 @@ function DepositModalInner({
5832
5820
  }, [store, targetChain, targetToken]);
5833
5821
  _react.useEffect.call(void 0, () => {
5834
5822
  if (isOpen && modalRef.current) {
5835
- _chunkV6NJIPSScjs.applyTheme.call(void 0, modalRef.current, theme);
5823
+ _chunkDX2D2TRZcjs.applyTheme.call(void 0, modalRef.current, theme);
5836
5824
  }
5837
5825
  }, [isOpen, theme]);
5838
5826
  _react.useEffect.call(void 0, () => {
@@ -5840,7 +5828,7 @@ function DepositModalInner({
5840
5828
  }, [solanaRpcUrl]);
5841
5829
  _react.useEffect.call(void 0, () => {
5842
5830
  if (isOpen) {
5843
- _optionalChain([onReadyRef, 'access', _198 => _198.current, 'optionalCall', _199 => _199()]);
5831
+ _optionalChain([onReadyRef, 'access', _199 => _199.current, 'optionalCall', _200 => _200()]);
5844
5832
  }
5845
5833
  }, [isOpen, onReadyRef]);
5846
5834
  const handleStepChange = _react.useCallback.call(void 0,
@@ -5916,10 +5904,10 @@ function DepositModalInner({
5916
5904
  fetchHistory("initial");
5917
5905
  }
5918
5906
  }, [historyOpen, fetchHistory]);
5919
- const onLifecycleRef = _chunkV6NJIPSScjs.useLatestRef.call(void 0, onLifecycle);
5907
+ const onLifecycleRef = _chunkDX2D2TRZcjs.useLatestRef.call(void 0, onLifecycle);
5920
5908
  const handleLifecycle = _react.useCallback.call(void 0,
5921
5909
  (event) => {
5922
- _optionalChain([onLifecycleRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201(event)]);
5910
+ _optionalChain([onLifecycleRef, 'access', _201 => _201.current, 'optionalCall', _202 => _202(event)]);
5923
5911
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
5924
5912
  historyStaleRef.current = true;
5925
5913
  }
@@ -5945,10 +5933,10 @@ function DepositModalInner({
5945
5933
  store.dispatch({ type: "flow/reset" });
5946
5934
  }
5947
5935
  }, [isOpen, store]);
5948
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _202 => _202.showBackButton]), () => ( true));
5936
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _203 => _203.showBackButton]), () => ( true));
5949
5937
  const canGoBack = backHandler !== void 0;
5950
5938
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
5951
- _chunkV6NJIPSScjs.Modal,
5939
+ _chunkDX2D2TRZcjs.Modal,
5952
5940
  {
5953
5941
  isOpen,
5954
5942
  onClose,
@@ -5964,7 +5952,7 @@ function DepositModalInner({
5964
5952
  className: "rs-modal-header-back",
5965
5953
  "aria-label": "Go back",
5966
5954
  onClick: backHandler,
5967
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.ChevronLeftIcon, {})
5955
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.ChevronLeftIcon, {})
5968
5956
  }
5969
5957
  ) }),
5970
5958
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -5976,7 +5964,7 @@ function DepositModalInner({
5976
5964
  "aria-label": "Deposit history",
5977
5965
  onClick: handleHistoryOpen,
5978
5966
  disabled: !recipient,
5979
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.HistoryIcon, {})
5967
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.HistoryIcon, {})
5980
5968
  }
5981
5969
  ),
5982
5970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -5986,7 +5974,7 @@ function DepositModalInner({
5986
5974
  onClick: onClose,
5987
5975
  className: "rs-modal-close",
5988
5976
  "aria-label": "Close",
5989
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV6NJIPSScjs.CloseIcon, {})
5977
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDX2D2TRZcjs.CloseIcon, {})
5990
5978
  }
5991
5979
  )
5992
5980
  ] })