@rhinestone/deposit-modal 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{DepositModalReown-UND3DEJH.cjs → DepositModalReown-A2W6R27Q.cjs} +9 -9
  2. package/dist/{DepositModalReown-4BSHOQ5Y.mjs → DepositModalReown-IB5WUXVT.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-FVXSSGY5.mjs → WithdrawModalReown-A4S4BJHG.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-TVZWJKQI.cjs → WithdrawModalReown-KUWNNA2X.cjs} +8 -8
  5. package/dist/{chunk-O5OKA27M.mjs → chunk-2O2FJYRY.mjs} +1 -1
  6. package/dist/{chunk-HQWZCOMS.cjs → chunk-3WIHTUQ6.cjs} +99 -99
  7. package/dist/{chunk-D3Y7ZBED.cjs → chunk-46BRQZ2P.cjs} +486 -457
  8. package/dist/{chunk-2JPB3PLB.mjs → chunk-4BLOPOVO.mjs} +2 -2
  9. package/dist/{chunk-Q3W53BKR.cjs → chunk-5E67UM3V.cjs} +7 -7
  10. package/dist/{chunk-7OKA6GNA.cjs → chunk-DSXMWQYB.cjs} +110 -105
  11. package/dist/{chunk-7KHEIMWD.mjs → chunk-KGZU3BL2.mjs} +40 -11
  12. package/dist/{chunk-4NN7UTWQ.cjs → chunk-ORKEBFMR.cjs} +4 -4
  13. package/dist/{chunk-U7SVYWVD.cjs → chunk-P5T4XSN2.cjs} +1 -1
  14. package/dist/{chunk-DABKCJVL.mjs → chunk-RARNNVZO.mjs} +1 -1
  15. package/dist/{chunk-WK5AFRSP.mjs → chunk-RH6XQHMA.mjs} +1 -1
  16. package/dist/{chunk-NASHLEVQ.mjs → chunk-TUSEN26M.mjs} +8 -3
  17. package/dist/{chunk-XRWQMIBY.cjs → chunk-UNVVUULP.cjs} +3 -3
  18. package/dist/{chunk-T43VUEJH.mjs → chunk-XK5RH4FZ.mjs} +4 -4
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.mjs +1 -1
  21. package/dist/deposit.cjs +6 -6
  22. package/dist/deposit.mjs +5 -5
  23. package/dist/index.cjs +7 -7
  24. package/dist/index.mjs +6 -6
  25. package/dist/polymarket.cjs +6 -6
  26. package/dist/polymarket.mjs +3 -3
  27. package/dist/styles.css +118 -1
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk4NN7UTWQcjs = require('./chunk-4NN7UTWQ.cjs');
10
+ var _chunkORKEBFMRcjs = require('./chunk-ORKEBFMR.cjs');
11
11
 
12
12
 
13
13
 
@@ -72,10 +72,10 @@ var _chunk4NN7UTWQcjs = require('./chunk-4NN7UTWQ.cjs');
72
72
 
73
73
 
74
74
 
75
- var _chunk7OKA6GNAcjs = require('./chunk-7OKA6GNA.cjs');
75
+ var _chunkDSXMWQYBcjs = require('./chunk-DSXMWQYB.cjs');
76
76
 
77
77
 
78
- var _chunkXRWQMIBYcjs = require('./chunk-XRWQMIBY.cjs');
78
+ var _chunkUNVVUULPcjs = require('./chunk-UNVVUULP.cjs');
79
79
 
80
80
 
81
81
 
@@ -107,7 +107,7 @@ var _chunkXRWQMIBYcjs = require('./chunk-XRWQMIBY.cjs');
107
107
 
108
108
 
109
109
 
110
- var _chunkU7SVYWVDcjs = require('./chunk-U7SVYWVD.cjs');
110
+ var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
111
111
 
112
112
  // src/DepositModal.tsx
113
113
 
@@ -152,12 +152,12 @@ function AssetSelectStep({
152
152
  const [error, setError] = _react.useState.call(void 0, null);
153
153
  const defaultAssetId = _react.useMemo.call(void 0, () => {
154
154
  if (!defaultSourceChain || !defaultSourceToken) return null;
155
- return _chunk7OKA6GNAcjs.getAssetId.call(void 0, {
155
+ return _chunkDSXMWQYBcjs.getAssetId.call(void 0, {
156
156
  chainId: defaultSourceChain,
157
157
  token: defaultSourceToken
158
158
  });
159
159
  }, [defaultSourceChain, defaultSourceToken]);
160
- const onTotalBalanceComputedRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
160
+ const onTotalBalanceComputedRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
161
161
  _react.useEffect.call(void 0, () => {
162
162
  let active = true;
163
163
  function emitAssetsUpdate(currentAssets) {
@@ -177,11 +177,11 @@ function AssetSelectStep({
177
177
  try {
178
178
  const portfolio = await service.fetchPortfolio(address);
179
179
  if (!active) return;
180
- const portfolioAssets = _chunk7OKA6GNAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
180
+ const portfolioAssets = _chunkDSXMWQYBcjs.portfolioToAssets.call(void 0, portfolio.tokens);
181
181
  setAssets(portfolioAssets);
182
182
  emitAssetsUpdate(portfolioAssets);
183
183
  const hasNative = portfolioAssets.some(
184
- (asset) => asset.token.toLowerCase() === _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS
184
+ (asset) => asset.token.toLowerCase() === _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS
185
185
  );
186
186
  if (!hasNative) {
187
187
  const nativeAssets = await fetchNativeAssets(
@@ -228,9 +228,9 @@ function AssetSelectStep({
228
228
  if (allowedChainSet && !allowedChainSet.has(a.chainId)) return false;
229
229
  if (allowedTokenSet) {
230
230
  if (!allowedTokenSet.has(a.symbol.toUpperCase())) return false;
231
- if (!_chunkU7SVYWVDcjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
231
+ if (!_chunkP5T4XSN2cjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
232
232
  }
233
- const isNativeToken = a.token.toLowerCase() === _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS;
233
+ const isNativeToken = a.token.toLowerCase() === _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS;
234
234
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
235
235
  return false;
236
236
  return true;
@@ -258,7 +258,7 @@ function AssetSelectStep({
258
258
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
259
259
  const numeric = Number(raw);
260
260
  if (!Number.isFinite(numeric)) return raw;
261
- return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
261
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
262
262
  } catch (e3) {
263
263
  return asset.balance;
264
264
  }
@@ -266,20 +266,20 @@ function AssetSelectStep({
266
266
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
267
267
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
268
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
269
- _chunk7OKA6GNAcjs.BodyHeader,
269
+ _chunkDSXMWQYBcjs.BodyHeader,
270
270
  {
271
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
271
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
272
272
  title: "Your assets",
273
273
  subtitle: "Select source assets to transfer"
274
274
  }
275
275
  ),
276
276
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
277
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-text-tertiary" }),
277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, { className: "rs-text-tertiary" }),
278
278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
279
279
  ] }),
280
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
280
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
281
281
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
282
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, { className: "rs-empty-icon" }),
282
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, { className: "rs-empty-icon" }),
283
283
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
284
284
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
285
285
  address.slice(0, 6),
@@ -299,8 +299,8 @@ function AssetSelectStep({
299
299
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
300
300
  const isSelected = selectedAssetId === asset.id;
301
301
  const tokenAmount = formatBalance(asset);
302
- const badge = _chunkU7SVYWVDcjs.getChainBadge.call(void 0, asset.chainId);
303
- const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
302
+ const badge = _chunkP5T4XSN2cjs.getChainBadge.call(void 0, asset.chainId);
303
+ const chainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, asset.chainId);
304
304
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
305
305
  "button",
306
306
  {
@@ -312,7 +312,7 @@ function AssetSelectStep({
312
312
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
313
313
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
314
314
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
315
- _chunk7OKA6GNAcjs.TokenIcon,
315
+ _chunkDSXMWQYBcjs.TokenIcon,
316
316
  {
317
317
  symbol: asset.symbol,
318
318
  fallback: asset.symbol.slice(0, 4)
@@ -322,7 +322,7 @@ function AssetSelectStep({
322
322
  "img",
323
323
  {
324
324
  src: chainIcon,
325
- alt: _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
325
+ alt: _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId)
326
326
  }
327
327
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
328
328
  "span",
@@ -341,7 +341,7 @@ function AssetSelectStep({
341
341
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
342
342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
343
343
  "on ",
344
- _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
344
+ _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId)
345
345
  ] })
346
346
  ] }),
347
347
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -351,14 +351,14 @@ function AssetSelectStep({
351
351
  ] })
352
352
  ] })
353
353
  ] }),
354
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkDSXMWQYBcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
355
355
  ]
356
356
  },
357
357
  asset.id
358
358
  );
359
359
  }) }),
360
360
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
361
- _chunk7OKA6GNAcjs.Button,
361
+ _chunkDSXMWQYBcjs.Button,
362
362
  {
363
363
  onClick: () => selectedAsset && onContinue(selectedAsset),
364
364
  disabled: !selectedAsset,
@@ -367,27 +367,27 @@ function AssetSelectStep({
367
367
  }
368
368
  )
369
369
  ] }),
370
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
370
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
371
371
  ] });
372
372
  }
373
373
  async function fetchNativeAssets(address, publicClient, existing) {
374
374
  const existingIds = new Set(existing.map((asset) => asset.id));
375
375
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
376
376
  if (!connectedChainId) return [];
377
- if (!_chunkU7SVYWVDcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
378
- const id = _chunk7OKA6GNAcjs.getAssetId.call(void 0, {
377
+ if (!_chunkP5T4XSN2cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
378
+ const id = _chunkDSXMWQYBcjs.getAssetId.call(void 0, {
379
379
  chainId: connectedChainId,
380
- token: _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS
380
+ token: _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS
381
381
  });
382
382
  if (existingIds.has(id)) return [];
383
383
  try {
384
384
  const balance = await publicClient.getBalance({ address });
385
- const nativeSymbol = _chunkU7SVYWVDcjs.getNativeSymbol.call(void 0, connectedChainId);
385
+ const nativeSymbol = _chunkP5T4XSN2cjs.getNativeSymbol.call(void 0, connectedChainId);
386
386
  return [
387
387
  {
388
388
  id,
389
389
  chainId: connectedChainId,
390
- token: _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS,
390
+ token: _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS,
391
391
  symbol: nativeSymbol,
392
392
  name: nativeSymbol,
393
393
  decimals: 18,
@@ -548,8 +548,8 @@ function AmountStep({
548
548
  const chainMismatch = Boolean(
549
549
  _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
550
550
  );
551
- const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
552
- const isSourceStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, asset.symbol);
551
+ const targetSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
552
+ const isSourceStablecoin = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, asset.symbol);
553
553
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
554
554
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
555
555
  return tokenPriceUsdOverride;
@@ -573,7 +573,7 @@ function AmountStep({
573
573
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
574
574
  if (!balanceTarget || !publicClient) return;
575
575
  try {
576
- const bal = _chunk7OKA6GNAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
576
+ const bal = _chunkDSXMWQYBcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
577
577
  address: asset.token,
578
578
  abi: _viem.erc20Abi,
579
579
  functionName: "balanceOf",
@@ -594,7 +594,7 @@ function AmountStep({
594
594
  hasAttemptedSwitch.current = true;
595
595
  switchChain(asset.chainId).catch((err) => {
596
596
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
597
- setError(_chunk7OKA6GNAcjs.formatUserError.call(void 0, raw));
597
+ setError(_chunkDSXMWQYBcjs.formatUserError.call(void 0, raw));
598
598
  });
599
599
  }
600
600
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -647,7 +647,7 @@ function AmountStep({
647
647
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
648
648
  const numeric = Number(raw);
649
649
  if (!Number.isFinite(numeric)) return raw;
650
- return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
650
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
651
651
  } catch (e8) {
652
652
  return "\u2026";
653
653
  }
@@ -666,7 +666,7 @@ function AmountStep({
666
666
  return null;
667
667
  }
668
668
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
669
- const minDepositUsd = targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
669
+ const minDepositUsd = targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkP5T4XSN2cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
670
670
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
671
671
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
672
672
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -762,11 +762,11 @@ function AmountStep({
762
762
  };
763
763
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
764
764
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
765
- const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId);
766
- const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
765
+ const sourceChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId);
766
+ const targetChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain);
767
767
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
768
768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
769
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Wallet deposit" }),
769
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}), title: "Wallet deposit" }),
770
770
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
771
771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
772
772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -786,13 +786,13 @@ function AmountStep({
786
786
  " available",
787
787
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
788
788
  " (~",
789
- _chunk7OKA6GNAcjs.currencyFormatter.format(balanceUsd),
789
+ _chunkDSXMWQYBcjs.currencyFormatter.format(balanceUsd),
790
790
  ")"
791
791
  ] })
792
792
  ] }),
793
793
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
794
794
  "Min. deposit ",
795
- _chunk7OKA6GNAcjs.currencyFormatter.format(minDepositUsd)
795
+ _chunkDSXMWQYBcjs.currencyFormatter.format(minDepositUsd)
796
796
  ] })
797
797
  ] })
798
798
  ] }),
@@ -817,7 +817,7 @@ function AmountStep({
817
817
  " ",
818
818
  asset.symbol
819
819
  ] }),
820
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: asset.symbol }) })
820
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: asset.symbol }) })
821
821
  ] })
822
822
  ] }),
823
823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -828,18 +828,18 @@ function AmountStep({
828
828
  " ",
829
829
  targetSymbol
830
830
  ] }),
831
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
831
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: targetSymbol }) })
832
832
  ] })
833
833
  ] }),
834
834
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
835
835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
836
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7OKA6GNAcjs.currencyFormatter.format(balanceAfterUsd) })
836
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDSXMWQYBcjs.currencyFormatter.format(balanceAfterUsd) })
837
837
  ] })
838
838
  ] }),
839
- targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
840
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
839
+ targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
840
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
841
841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
842
- _chunk7OKA6GNAcjs.Button,
842
+ _chunkDSXMWQYBcjs.Button,
843
843
  {
844
844
  onClick: handleContinue,
845
845
  fullWidth: true,
@@ -850,7 +850,7 @@ function AmountStep({
850
850
  }
851
851
  )
852
852
  ] }),
853
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
853
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
854
854
  ] });
855
855
  }
856
856
 
@@ -890,30 +890,30 @@ function ConfirmStep({
890
890
  _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
891
891
  );
892
892
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
893
- const targetSymbol = sameRoute ? asset.symbol : _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
894
- const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId);
895
- const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
896
- const sourceChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
897
- const targetChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChain);
898
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunk7OKA6GNAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
893
+ const targetSymbol = sameRoute ? asset.symbol : _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
894
+ const sourceChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId);
895
+ const targetChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain);
896
+ const sourceChainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, asset.chainId);
897
+ const targetChainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, targetChain);
898
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkDSXMWQYBcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
899
899
  const receiveDisplay = (() => {
900
900
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
901
901
  if (quote) {
902
- const quoted = _chunk7OKA6GNAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
902
+ const quoted = _chunkDSXMWQYBcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
903
903
  if (quoted !== void 0) return quoted;
904
904
  }
905
905
  const usdValue = Number(targetAmount);
906
906
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
907
- const estimate = _chunk7OKA6GNAcjs.formatReceiveEstimate.call(void 0, {
907
+ const estimate = _chunkDSXMWQYBcjs.formatReceiveEstimate.call(void 0, {
908
908
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
909
909
  sourceSymbol: asset.symbol,
910
910
  targetSymbol,
911
911
  sourceAmountUsd,
912
- sourceTrusted: _chunk7OKA6GNAcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
912
+ sourceTrusted: _chunkDSXMWQYBcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
913
913
  // The target is the curated deposit destination, so a stablecoin target
914
914
  // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
915
915
  // target prices). Not applied to the source — that can be a held token.
916
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk7OKA6GNAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
916
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDSXMWQYBcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
917
917
  });
918
918
  if (estimate !== void 0) return estimate;
919
919
  return targetSymbol;
@@ -927,7 +927,7 @@ function ConfirmStep({
927
927
  hasAttemptedSwitch.current = true;
928
928
  switchChain(asset.chainId).catch((err) => {
929
929
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
930
- setError(_chunk7OKA6GNAcjs.formatUserError.call(void 0, raw));
930
+ setError(_chunkDSXMWQYBcjs.formatUserError.call(void 0, raw));
931
931
  });
932
932
  }
933
933
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1007,7 +1007,7 @@ function ConfirmStep({
1007
1007
  const result = await executeTransfer(amountUnits);
1008
1008
  hash = result.txHash;
1009
1009
  resolvedSourceToken = result.sourceToken;
1010
- } else if (_chunk7OKA6GNAcjs.isNativeAsset.call(void 0, asset)) {
1010
+ } else if (_chunkDSXMWQYBcjs.isNativeAsset.call(void 0, asset)) {
1011
1011
  hash = await walletClient.sendTransaction({
1012
1012
  account,
1013
1013
  chain,
@@ -1034,7 +1034,7 @@ function ConfirmStep({
1034
1034
  );
1035
1035
  } catch (err) {
1036
1036
  const raw = err instanceof Error ? err.message : "Transfer failed";
1037
- const message = _chunk7OKA6GNAcjs.formatUserError.call(void 0, raw);
1037
+ const message = _chunkDSXMWQYBcjs.formatUserError.call(void 0, raw);
1038
1038
  setError(message);
1039
1039
  _optionalChain([onError, 'optionalCall', _31 => _31(message, "TRANSFER_ERROR")]);
1040
1040
  } finally {
@@ -1043,7 +1043,7 @@ function ConfirmStep({
1043
1043
  };
1044
1044
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1045
1045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1046
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Review deposit" }),
1046
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}), title: "Review deposit" }),
1047
1047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1048
1048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1049
1049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1071,14 +1071,14 @@ function ConfirmStep({
1071
1071
  " ",
1072
1072
  asset.symbol
1073
1073
  ] }),
1074
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: asset.symbol }) })
1074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: asset.symbol }) })
1075
1075
  ] })
1076
1076
  ] }),
1077
1077
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1078
1078
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1079
1079
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1080
1080
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1081
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
1081
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: targetSymbol }) })
1082
1082
  ] })
1083
1083
  ] }),
1084
1084
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1097,14 +1097,14 @@ function ConfirmStep({
1097
1097
  children: feeDisplay
1098
1098
  }
1099
1099
  ),
1100
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.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, _chunk7OKA6GNAcjs.InfoIcon, {}) }) })
1100
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.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, _chunkDSXMWQYBcjs.InfoIcon, {}) }) })
1101
1101
  ] })
1102
1102
  ] })
1103
1103
  ] }),
1104
- targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1105
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
1104
+ targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1105
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
1106
1106
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1107
- _chunk7OKA6GNAcjs.Button,
1107
+ _chunkDSXMWQYBcjs.Button,
1108
1108
  {
1109
1109
  onClick: handleConfirm,
1110
1110
  loading: isSubmitting,
@@ -1115,7 +1115,7 @@ function ConfirmStep({
1115
1115
  }
1116
1116
  )
1117
1117
  ] }),
1118
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
1118
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
1119
1119
  ] });
1120
1120
  }
1121
1121
 
@@ -1138,9 +1138,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1138
1138
  var MAX_POLL_INTERVAL = 3e4;
1139
1139
  var BACKOFF_MULTIPLIER = 1.5;
1140
1140
  function isEventForTx(event, txHash) {
1141
- const eventTxHash = _chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event);
1141
+ const eventTxHash = _chunkDSXMWQYBcjs.getEventTxHash.call(void 0, event);
1142
1142
  if (!eventTxHash) return false;
1143
- return _chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1143
+ return _chunkDSXMWQYBcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1144
1144
  }
1145
1145
  function truncateHash(hash) {
1146
1146
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1190,7 +1190,7 @@ function formatBridgeFailedMessage(event) {
1190
1190
  }
1191
1191
  return "Bridge failed";
1192
1192
  }
1193
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1193
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1194
1194
  function DepositNotification({
1195
1195
  deposit,
1196
1196
  smartAccount,
@@ -1224,7 +1224,7 @@ function DepositNotification({
1224
1224
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1225
1225
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1226
1226
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1227
- const depositContextRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, {
1227
+ const depositContextRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, {
1228
1228
  amount,
1229
1229
  sourceChain,
1230
1230
  sourceToken: token,
@@ -1232,8 +1232,8 @@ function DepositNotification({
1232
1232
  targetChain,
1233
1233
  targetToken
1234
1234
  });
1235
- const onCompleteRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onComplete);
1236
- const onFailedRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onFailed);
1235
+ const onCompleteRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onComplete);
1236
+ const onFailedRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onFailed);
1237
1237
  const handleComplete = _react.useCallback.call(void 0,
1238
1238
  (destTxHash) => {
1239
1239
  if (completedRef.current) return;
@@ -1324,11 +1324,11 @@ function DepositNotification({
1324
1324
  status,
1325
1325
  txHash
1326
1326
  ]);
1327
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkU7SVYWVDcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1328
- const destExplorerUrl = destinationTxHash ? _chunkU7SVYWVDcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1327
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkP5T4XSN2cjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1328
+ const destExplorerUrl = destinationTxHash ? _chunkP5T4XSN2cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1329
1329
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1330
1330
  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.";
1331
- 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, _chunk7OKA6GNAcjs.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, _chunk7OKA6GNAcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1331
+ 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, _chunkDSXMWQYBcjs.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, _chunkDSXMWQYBcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1332
1332
  "svg",
1333
1333
  {
1334
1334
  className: "rs-deposit-notification-spinner",
@@ -1378,7 +1378,7 @@ function DepositNotification({
1378
1378
  className: "rs-deposit-notification-close",
1379
1379
  onClick: () => onDismiss(deposit.id),
1380
1380
  "aria-label": "Dismiss",
1381
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
1381
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {})
1382
1382
  }
1383
1383
  )
1384
1384
  ] }),
@@ -1394,7 +1394,7 @@ function DepositNotification({
1394
1394
  "aria-expanded": expanded,
1395
1395
  children: [
1396
1396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1397
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1398
1398
  ]
1399
1399
  }
1400
1400
  ),
@@ -1484,7 +1484,7 @@ function asString(value) {
1484
1484
  function resolveSolanaTokenMeta(token) {
1485
1485
  if (!token) return {};
1486
1486
  const normalized = token.toLowerCase();
1487
- const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
1487
+ const matched = _chunkP5T4XSN2cjs.SOLANA_TOKENS.find(
1488
1488
  (entry) => entry.mint.toLowerCase() === normalized
1489
1489
  );
1490
1490
  if (matched) {
@@ -1527,24 +1527,24 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1527
1527
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1528
1528
  }
1529
1529
  function chainLabel(chainId) {
1530
- return _chunkU7SVYWVDcjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1530
+ return _chunkP5T4XSN2cjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1531
1531
  }
1532
1532
  function computeTokensForChain(chainId, allowedTokenSet, topTokens) {
1533
1533
  const fromBackend = _optionalChain([topTokens, 'optionalAccess', _53 => _53[String(chainId)], 'optionalAccess', _54 => _54.map, 'call', _55 => _55((t) => t.symbol)]);
1534
- const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkU7SVYWVDcjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1534
+ const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkP5T4XSN2cjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1535
1535
  // HyperCore accepts USDC + USDT0 as origin tokens (native Hyperliquid L1
1536
1536
  // spot transfers); it has no EVM source-chain matrix entry.
1537
- chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1537
+ chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1538
1538
  ))));
1539
1539
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1540
1540
  }
1541
1541
  function resolveSourceTokenAddress(symbol, chainId, topTokens) {
1542
1542
  const top = _optionalChain([topTokens, 'optionalAccess', _56 => _56[String(chainId)], 'optionalAccess', _57 => _57.find, 'call', _58 => _58((t) => t.symbol === symbol)]);
1543
- return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkU7SVYWVDcjs.getTokenAddress.call(void 0, symbol, chainId)));
1543
+ return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkP5T4XSN2cjs.getTokenAddress.call(void 0, symbol, chainId)));
1544
1544
  }
1545
1545
  function TokenGlyph({ symbol }) {
1546
1546
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1547
- _chunk7OKA6GNAcjs.TokenIcon,
1547
+ _chunkDSXMWQYBcjs.TokenIcon,
1548
1548
  {
1549
1549
  symbol,
1550
1550
  className: "rs-deposit-address-dropdown-icon",
@@ -1581,21 +1581,21 @@ function DepositAddressStep({
1581
1581
  [_optionalChain([allowedRoutes, 'optionalAccess', _63 => _63.sourceTokens])]
1582
1582
  );
1583
1583
  const evmChainIds = _react.useMemo.call(void 0, () => {
1584
- const all = _chunkU7SVYWVDcjs.getSupportedChainIds.call(void 0, );
1584
+ const all = _chunkP5T4XSN2cjs.getSupportedChainIds.call(void 0, );
1585
1585
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1586
1586
  }, [allowedChainSet]);
1587
1587
  const chainOptions = _react.useMemo.call(void 0, () => {
1588
1588
  const options = [...evmChainIds];
1589
1589
  const extras = [];
1590
1590
  if (hasSolana) extras.push("solana");
1591
- if (!allowedChainSet || allowedChainSet.has(_chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID)) {
1591
+ if (!allowedChainSet || allowedChainSet.has(_chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID)) {
1592
1592
  extras.push("hypercore");
1593
1593
  }
1594
1594
  options.splice(1, 0, ...extras);
1595
1595
  return options;
1596
1596
  }, [evmChainIds, hasSolana, allowedChainSet]);
1597
1597
  const BASE_CHAIN_ID2 = 8453;
1598
- const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1598
+ const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1599
1599
  (s) => allowedTokenSet.has(s.toUpperCase())
1600
1600
  );
1601
1601
  const evmDefault = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
@@ -1794,10 +1794,10 @@ function DepositAddressStep({
1794
1794
  return;
1795
1795
  }
1796
1796
  const event = status.lastEvent;
1797
- const eventTxHash = _chunk7OKA6GNAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1797
+ const eventTxHash = _chunkDSXMWQYBcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkDSXMWQYBcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1798
1798
  if (baselineTxHashRef.current === void 0) {
1799
1799
  baselineTxHashRef.current = eventTxHash;
1800
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1800
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkDSXMWQYBcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1801
1801
  const details = getDepositEventDetails(event);
1802
1802
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1803
1803
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1806,7 +1806,7 @@ function DepositAddressStep({
1806
1806
  baselineTxHashRef.current = eventTxHash;
1807
1807
  isTrackingRef.current = true;
1808
1808
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1809
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkU7SVYWVDcjs.findTokenDecimals.call(void 0,
1809
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkP5T4XSN2cjs.findTokenDecimals.call(void 0,
1810
1810
  token,
1811
1811
  typeof chainId === "number" ? chainId : void 0
1812
1812
  ) : void 0)));
@@ -1871,10 +1871,10 @@ function DepositAddressStep({
1871
1871
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1872
1872
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1873
1873
  }, []);
1874
- const qrIconSrc = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId);
1874
+ const qrIconSrc = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId);
1875
1875
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1876
1876
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1877
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1878
1878
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1879
1879
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1880
1880
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1889,16 +1889,16 @@ function DepositAddressStep({
1889
1889
  setTokenDropdownOpen(false);
1890
1890
  },
1891
1891
  children: [
1892
- _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
+ _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1893
1893
  "img",
1894
1894
  {
1895
- src: _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId),
1895
+ src: _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId),
1896
1896
  alt: "",
1897
1897
  className: "rs-deposit-address-dropdown-icon"
1898
1898
  }
1899
1899
  ),
1900
1900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
1901
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1902
1902
  ]
1903
1903
  }
1904
1904
  ),
@@ -1909,10 +1909,10 @@ function DepositAddressStep({
1909
1909
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1910
1910
  onClick: () => handleSelectChain(chainId),
1911
1911
  children: [
1912
- _chunkU7SVYWVDcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1912
+ _chunkP5T4XSN2cjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1913
1913
  "img",
1914
1914
  {
1915
- src: _chunkU7SVYWVDcjs.getChainIcon.call(void 0, chainId),
1915
+ src: _chunkP5T4XSN2cjs.getChainIcon.call(void 0, chainId),
1916
1916
  alt: "",
1917
1917
  className: "rs-deposit-address-dropdown-icon"
1918
1918
  }
@@ -1928,9 +1928,9 @@ function DepositAddressStep({
1928
1928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1929
1929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1930
1930
  "Min.$",
1931
- (targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1932
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1933
- _chunk7OKA6GNAcjs.InfoIcon,
1931
+ (targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkP5T4XSN2cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1932
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1933
+ _chunkDSXMWQYBcjs.InfoIcon,
1934
1934
  {
1935
1935
  className: "rs-deposit-address-min-icon",
1936
1936
  "aria-hidden": "true"
@@ -1951,7 +1951,7 @@ function DepositAddressStep({
1951
1951
  children: [
1952
1952
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
1953
1953
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1954
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1954
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1955
1955
  ]
1956
1956
  }
1957
1957
  ),
@@ -1995,7 +1995,7 @@ function DepositAddressStep({
1995
1995
  className: "rs-deposit-address-copy",
1996
1996
  onClick: handleCopy,
1997
1997
  children: [
1998
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CopyIcon, {}),
1998
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CopyIcon, {}),
1999
1999
  copied ? "Copied!" : "Copy address"
2000
2000
  ]
2001
2001
  }
@@ -2003,7 +2003,7 @@ function DepositAddressStep({
2003
2003
  ]
2004
2004
  }
2005
2005
  ),
2006
- targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2006
+ targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2007
2007
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2008
2008
  "div",
2009
2009
  {
@@ -2021,16 +2021,16 @@ function DepositAddressStep({
2021
2021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2022
2022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2023
2023
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2024
- _chunk7OKA6GNAcjs.Tooltip,
2024
+ _chunkDSXMWQYBcjs.Tooltip,
2025
2025
  {
2026
2026
  className: "rs-price-impact-info",
2027
2027
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2028
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2028
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.InfoIcon, { "aria-hidden": "true" })
2029
2029
  }
2030
2030
  )
2031
2031
  ] }),
2032
2032
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2033
- _chunk7OKA6GNAcjs.ChevronDownIcon,
2033
+ _chunkDSXMWQYBcjs.ChevronDownIcon,
2034
2034
  {
2035
2035
  className: "rs-price-impact-chevron",
2036
2036
  "aria-hidden": "true"
@@ -2041,29 +2041,29 @@ function DepositAddressStep({
2041
2041
  ),
2042
2042
  /* @__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: [
2043
2043
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2044
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PercentIcon, {}) }),
2044
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PercentIcon, {}) }),
2045
2045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2046
2046
  "Max slippage: ",
2047
2047
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2048
2048
  ] }),
2049
2049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2050
- _chunk7OKA6GNAcjs.Tooltip,
2050
+ _chunkDSXMWQYBcjs.Tooltip,
2051
2051
  {
2052
2052
  className: "rs-price-impact-info",
2053
2053
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2054
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2054
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.InfoIcon, { "aria-hidden": "true" })
2055
2055
  }
2056
2056
  )
2057
2057
  ] }),
2058
2058
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2059
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ClockIcon, {}) }),
2059
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ClockIcon, {}) }),
2060
2060
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2061
2061
  "Processing time: ",
2062
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2063
2063
  ] })
2064
2064
  ] }),
2065
2065
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2066
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PlusCircleIcon, {}) }),
2066
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PlusCircleIcon, {}) }),
2067
2067
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2068
2068
  "Max deposit:",
2069
2069
  " ",
@@ -2094,7 +2094,7 @@ function DepositAddressStep({
2094
2094
  },
2095
2095
  deposit.id
2096
2096
  )) }),
2097
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2098
2098
  ] });
2099
2099
  }
2100
2100
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2142,7 +2142,7 @@ function FinalisingDepositStep() {
2142
2142
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2143
2143
  ] })
2144
2144
  ] }),
2145
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2145
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2146
2146
  ] });
2147
2147
  }
2148
2148
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2172,7 +2172,7 @@ function SwappedOrderTracker({
2172
2172
  ];
2173
2173
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2174
2174
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2175
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HandCoinsIcon, {}), title }),
2175
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HandCoinsIcon, {}), title }),
2176
2176
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2177
2177
  const status = stepStates[idx];
2178
2178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2186,7 +2186,7 @@ function SwappedOrderTracker({
2186
2186
  {
2187
2187
  className: "rs-swapped-tracker-step-marker",
2188
2188
  "aria-hidden": "true",
2189
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2189
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2190
2190
  "svg",
2191
2191
  {
2192
2192
  className: "rs-swapped-tracker-step-ring",
@@ -2221,7 +2221,7 @@ function SwappedOrderTracker({
2221
2221
  }
2222
2222
  )
2223
2223
  ] }),
2224
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2225
2225
  ] });
2226
2226
  }
2227
2227
  function formatTrackerAmount(amount) {
@@ -2312,6 +2312,7 @@ function SwappedIframeStep({
2312
2312
  onImmersiveChange
2313
2313
  }) {
2314
2314
  const [widgetUrl, setWidgetUrl] = _react.useState.call(void 0, null);
2315
+ const [iframeSrc, setIframeSrc] = _react.useState.call(void 0, null);
2315
2316
  const [loadError, setLoadError] = _react.useState.call(void 0, null);
2316
2317
  const [iframeLoaded, setIframeLoaded] = _react.useState.call(void 0, false);
2317
2318
  const [retryToken, setRetryToken] = _react.useState.call(void 0, 0);
@@ -2347,6 +2348,7 @@ function SwappedIframeStep({
2347
2348
  setLoadError(null);
2348
2349
  setIframeLoaded(false);
2349
2350
  setWidgetUrl(null);
2351
+ setIframeSrc(null);
2350
2352
  setOrderState(null);
2351
2353
  setLatestEvent(null);
2352
2354
  setPhase("iframe");
@@ -2388,6 +2390,9 @@ function SwappedIframeStep({
2388
2390
  }, IFRAME_LOAD_TIMEOUT_MS);
2389
2391
  return () => clearTimeout(timer);
2390
2392
  }, [widgetUrl, iframeLoaded, loadError]);
2393
+ _react.useEffect.call(void 0, () => {
2394
+ setIframeSrc(widgetUrl && !loadError ? widgetUrl : null);
2395
+ }, [widgetUrl, loadError, retryToken]);
2391
2396
  _react.useEffect.call(void 0, () => {
2392
2397
  let cancelled = false;
2393
2398
  let timeoutId;
@@ -2421,10 +2426,10 @@ function SwappedIframeStep({
2421
2426
  const status = await service.fetchLatestStatus(smartAccount);
2422
2427
  if (cancelled) return;
2423
2428
  const event = status.lastEvent;
2424
- const eventTxHash = _chunk7OKA6GNAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2429
+ const eventTxHash = _chunkDSXMWQYBcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkDSXMWQYBcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2425
2430
  if (baselineDepositTxHashRef.current === void 0) {
2426
2431
  baselineDepositTxHashRef.current = eventTxHash;
2427
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2432
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkDSXMWQYBcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2428
2433
  currentDepositTxHashRef.current = eventTxHash;
2429
2434
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2430
2435
  }
@@ -2498,10 +2503,10 @@ function SwappedIframeStep({
2498
2503
  [orderState, latestEvent]
2499
2504
  );
2500
2505
  const terminalState = _react.useMemo.call(void 0, () => {
2501
- if (_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2506
+ if (_chunkDSXMWQYBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2502
2507
  return {
2503
2508
  kind: "failed",
2504
- message: _chunk7OKA6GNAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2509
+ message: _chunkDSXMWQYBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2505
2510
  };
2506
2511
  }
2507
2512
  if (_optionalChain([orderState, 'optionalAccess', _97 => _97.status]) === "order_cancelled") {
@@ -2524,7 +2529,7 @@ function SwappedIframeStep({
2524
2529
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _99 => _99.orderCrypto]), () => ( null)),
2525
2530
  // Base-unit source amount from the deposit row/event, consistent with the
2526
2531
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2527
- amount: _nullishCoalesce(_chunk7OKA6GNAcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2532
+ amount: _nullishCoalesce(_chunkDSXMWQYBcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2528
2533
  expectedOrderUuid: expectedOrderUuidRef.current,
2529
2534
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
2530
2535
  };
@@ -2535,14 +2540,14 @@ function SwappedIframeStep({
2535
2540
  }, [latestEvent, orderState, smartAccount]);
2536
2541
  _react.useEffect.call(void 0, () => {
2537
2542
  if (failedFiredRef.current || completeFiredRef.current) return;
2538
- if (!_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2543
+ if (!_chunkDSXMWQYBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2539
2544
  const txHash = currentDepositTxHashRef.current;
2540
2545
  if (!txHash) return;
2541
2546
  failedFiredRef.current = true;
2542
2547
  setPhase("tracker");
2543
2548
  _optionalChain([onSwappedFailedRef, 'access', _100 => _100.current, 'optionalCall', _101 => _101(
2544
2549
  txHash,
2545
- _chunk7OKA6GNAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2550
+ _chunkDSXMWQYBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2546
2551
  )]);
2547
2552
  }, [latestEvent]);
2548
2553
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
@@ -2550,6 +2555,13 @@ function SwappedIframeStep({
2550
2555
  _optionalChain([onImmersiveChangeRef, 'access', _102 => _102.current, 'optionalCall', _103 => _103(immersive)]);
2551
2556
  }, [immersive]);
2552
2557
  _react.useEffect.call(void 0, () => () => _optionalChain([onImmersiveChangeRef, 'access', _104 => _104.current, 'optionalCall', _105 => _105(false)]), []);
2558
+ const handleRetry = () => {
2559
+ setIframeSrc(null);
2560
+ setWidgetUrl(null);
2561
+ setIframeLoaded(false);
2562
+ setLoadError(null);
2563
+ setRetryToken((n) => n + 1);
2564
+ };
2553
2565
  if (phase === "tracker") {
2554
2566
  const paymentReceived = stepStates[0] === "complete";
2555
2567
  if (variant === "connect" && !terminalState && paymentReceived) {
@@ -2562,7 +2574,7 @@ function SwappedIframeStep({
2562
2574
  currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _107 => _107.orderCrypto]), () => ( "USDC")),
2563
2575
  stepStates,
2564
2576
  terminal: terminalState,
2565
- onRetry: () => setRetryToken((n) => n + 1),
2577
+ onRetry: handleRetry,
2566
2578
  onClose
2567
2579
  }
2568
2580
  );
@@ -2576,31 +2588,39 @@ function SwappedIframeStep({
2576
2588
  {
2577
2589
  type: "button",
2578
2590
  className: "rs-fiat-onramp-retry",
2579
- onClick: () => setRetryToken((n) => n + 1),
2591
+ onClick: handleRetry,
2580
2592
  children: "Retry"
2581
2593
  }
2582
2594
  )
2583
2595
  ] }),
2584
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) }),
2596
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, {}) }),
2585
2597
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2586
2598
  "iframe",
2587
2599
  {
2588
2600
  ref: iframeRef,
2589
- src: widgetUrl,
2601
+ src: _nullishCoalesce(iframeSrc, () => ( void 0)),
2590
2602
  title: iframeTitle,
2591
2603
  className: "rs-fiat-onramp-iframe",
2592
2604
  sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",
2593
2605
  allow: "payment; camera; microphone; clipboard-write; geolocation",
2594
- onLoad: () => setIframeLoaded(true)
2606
+ onLoad: () => {
2607
+ try {
2608
+ if (_optionalChain([iframeRef, 'access', _108 => _108.current, 'optionalAccess', _109 => _109.contentWindow, 'optionalAccess', _110 => _110.location, 'optionalAccess', _111 => _111.href]) === "about:blank") {
2609
+ return;
2610
+ }
2611
+ } catch (e20) {
2612
+ }
2613
+ setIframeLoaded(true);
2614
+ }
2595
2615
  },
2596
2616
  retryToken
2597
2617
  )
2598
2618
  ] }) }),
2599
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2619
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2600
2620
  ] });
2601
2621
  }
2602
2622
  function deriveStepStates(swappedStatus, latestEvent) {
2603
- if (_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2623
+ if (_chunkDSXMWQYBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2604
2624
  return ["complete", "complete", "failed", "pending"];
2605
2625
  }
2606
2626
  if (swappedStatus === "order_cancelled") {
@@ -2608,7 +2628,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2608
2628
  }
2609
2629
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2610
2630
  const step2Complete = latestEvent !== null || swappedStatus === "order_broadcasted";
2611
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _108 => _108.type]) === "bridge-complete";
2631
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _112 => _112.type]) === "bridge-complete";
2612
2632
  if (step3Complete) {
2613
2633
  return ["complete", "complete", "complete", "complete"];
2614
2634
  }
@@ -2663,12 +2683,12 @@ function FiatOnrampStep({
2663
2683
  onImmersiveChange
2664
2684
  }) {
2665
2685
  const loadUrl = _react.useCallback.call(void 0, async () => {
2666
- const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _109 => _109(smartAccount, paymentMethod)]);
2686
+ const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _113 => _113(smartAccount, paymentMethod)]);
2667
2687
  if (prefetched) {
2668
2688
  try {
2669
2689
  const cached = await prefetched;
2670
2690
  if (isSwappedWidgetUrlFresh(cached)) return cached;
2671
- } catch (e20) {
2691
+ } catch (e21) {
2672
2692
  }
2673
2693
  }
2674
2694
  return service.getSwappedWidgetUrl({
@@ -2776,7 +2796,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2776
2796
  function ExchangeLogo({ exchange }) {
2777
2797
  const [failed, setFailed] = _react.useState.call(void 0, false);
2778
2798
  if (!exchange.logoUrl || failed) {
2779
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BankIcon, {});
2799
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BankIcon, {});
2780
2800
  }
2781
2801
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2782
2802
  "img",
@@ -2811,7 +2831,7 @@ function ExchangeSelectStep({
2811
2831
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2812
2832
  setExchanges([]);
2813
2833
  setError(message);
2814
- _optionalChain([onError, 'optionalCall', _110 => _110(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2834
+ _optionalChain([onError, 'optionalCall', _114 => _114(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2815
2835
  }).finally(() => {
2816
2836
  if (!cancelled) setLoading(false);
2817
2837
  });
@@ -2822,14 +2842,14 @@ function ExchangeSelectStep({
2822
2842
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2823
2843
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2824
2844
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2825
- _chunk7OKA6GNAcjs.BodyHeader,
2845
+ _chunkDSXMWQYBcjs.BodyHeader,
2826
2846
  {
2827
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.UnplugIcon, {}),
2847
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.UnplugIcon, {}),
2828
2848
  title: "Connect exchange",
2829
2849
  subtitle: "Select an exchange to connect"
2830
2850
  }
2831
2851
  ),
2832
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) }),
2852
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, {}) }),
2833
2853
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2834
2854
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2835
2855
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2855,7 +2875,7 @@ function ExchangeSelectStep({
2855
2875
  )
2856
2876
  ] }),
2857
2877
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2858
- const brand = _chunk7OKA6GNAcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2878
+ const brand = _chunkDSXMWQYBcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2859
2879
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2860
2880
  "button",
2861
2881
  {
@@ -2878,7 +2898,7 @@ function ExchangeSelectStep({
2878
2898
  );
2879
2899
  }) })
2880
2900
  ] }),
2881
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2882
2902
  ] });
2883
2903
  }
2884
2904
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2890,24 +2910,24 @@ function DepositAddressSkeleton({
2890
2910
  uiConfig,
2891
2911
  allowedRoutes
2892
2912
  }) {
2893
- const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _111 => _111.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2894
- const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _112 => _112.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2913
+ const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _115 => _115.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2914
+ const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _116 => _116.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2895
2915
  const evmChainIds = (() => {
2896
- const all = _chunkU7SVYWVDcjs.getSupportedChainIds.call(void 0, );
2916
+ const all = _chunkP5T4XSN2cjs.getSupportedChainIds.call(void 0, );
2897
2917
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2898
2918
  })();
2899
2919
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2900
2920
  const tokensForChain = (() => {
2901
- const all = _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2921
+ const all = _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2902
2922
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2903
2923
  })();
2904
2924
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2905
- const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, defaultChainId);
2906
- const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, defaultChainId);
2925
+ const chainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, defaultChainId);
2926
+ const chainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, defaultChainId);
2907
2927
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2908
2928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2909
2929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2910
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2930
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2911
2931
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2912
2932
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2913
2933
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2921,7 +2941,7 @@ function DepositAddressSkeleton({
2921
2941
  }
2922
2942
  ),
2923
2943
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2924
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2925
2945
  ] })
2926
2946
  ] }),
2927
2947
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2929,9 +2949,9 @@ function DepositAddressSkeleton({
2929
2949
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2930
2950
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2931
2951
  "Min.$",
2932
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.minDepositUsd]), () => ( 0.1))).toFixed(2),
2933
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2934
- _chunk7OKA6GNAcjs.InfoIcon,
2952
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _117 => _117.minDepositUsd]), () => ( 0.1))).toFixed(2),
2953
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2954
+ _chunkDSXMWQYBcjs.InfoIcon,
2935
2955
  {
2936
2956
  className: "rs-deposit-address-min-icon",
2937
2957
  "aria-hidden": "true"
@@ -2941,14 +2961,14 @@ function DepositAddressSkeleton({
2941
2961
  ] }),
2942
2962
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2943
2963
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2944
- _chunk7OKA6GNAcjs.TokenIcon,
2964
+ _chunkDSXMWQYBcjs.TokenIcon,
2945
2965
  {
2946
2966
  symbol: defaultToken,
2947
2967
  className: "rs-deposit-address-dropdown-icon"
2948
2968
  }
2949
2969
  ),
2950
2970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2951
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2971
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2952
2972
  ] })
2953
2973
  ] })
2954
2974
  ] }),
@@ -2969,7 +2989,7 @@ function DepositAddressSkeleton({
2969
2989
  disabled: true,
2970
2990
  "aria-hidden": "true",
2971
2991
  children: [
2972
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CopyIcon, {}),
2992
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CopyIcon, {}),
2973
2993
  "Copy address"
2974
2994
  ]
2975
2995
  }
@@ -2982,16 +3002,16 @@ function DepositAddressSkeleton({
2982
3002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2983
3003
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2984
3004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2985
- _chunk7OKA6GNAcjs.Tooltip,
3005
+ _chunkDSXMWQYBcjs.Tooltip,
2986
3006
  {
2987
3007
  className: "rs-price-impact-info",
2988
3008
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2989
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
3009
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.InfoIcon, { "aria-hidden": "true" })
2990
3010
  }
2991
3011
  )
2992
3012
  ] }),
2993
3013
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2994
- _chunk7OKA6GNAcjs.ChevronDownIcon,
3014
+ _chunkDSXMWQYBcjs.ChevronDownIcon,
2995
3015
  {
2996
3016
  className: "rs-price-impact-chevron",
2997
3017
  "aria-hidden": "true"
@@ -2999,7 +3019,7 @@ function DepositAddressSkeleton({
2999
3019
  )
3000
3020
  ] }) })
3001
3021
  ] }),
3002
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3022
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3003
3023
  ] });
3004
3024
  }
3005
3025
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3031,18 +3051,18 @@ function SolanaTokenSelectStep({
3031
3051
  setError(null);
3032
3052
  const portfolioBySymbol = {};
3033
3053
  try {
3034
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3054
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3035
3055
  solanaAddress
3036
3056
  });
3037
3057
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
3038
3058
  if (!active) return;
3039
3059
  for (const t of portfolio.tokens) {
3040
3060
  const symbol = t.symbol.toUpperCase();
3041
- if (!_chunkU7SVYWVDcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3061
+ if (!_chunkP5T4XSN2cjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3042
3062
  let parsed = 0n;
3043
3063
  try {
3044
3064
  parsed = BigInt(t.balance || "0");
3045
- } catch (e21) {
3065
+ } catch (e22) {
3046
3066
  parsed = 0n;
3047
3067
  }
3048
3068
  if (parsed <= 0n) continue;
@@ -3054,12 +3074,12 @@ function SolanaTokenSelectStep({
3054
3074
  };
3055
3075
  }
3056
3076
  }
3057
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3077
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3058
3078
  symbols: Object.keys(portfolioBySymbol)
3059
3079
  });
3060
3080
  } catch (err) {
3061
3081
  if (!active) return;
3062
- _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3082
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3063
3083
  solanaAddress
3064
3084
  });
3065
3085
  setError(
@@ -3070,7 +3090,7 @@ function SolanaTokenSelectStep({
3070
3090
  return;
3071
3091
  }
3072
3092
  const results = [];
3073
- for (const token of _chunkU7SVYWVDcjs.SOLANA_TOKENS) {
3093
+ for (const token of _chunkP5T4XSN2cjs.SOLANA_TOKENS) {
3074
3094
  const fromPortfolio = portfolioBySymbol[token.symbol];
3075
3095
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3076
3096
  results.push({
@@ -3084,7 +3104,7 @@ function SolanaTokenSelectStep({
3084
3104
  setTokenBalances(results);
3085
3105
  setLoading(false);
3086
3106
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
3087
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _114 => _114(totalUsd)]);
3107
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _118 => _118(totalUsd)]);
3088
3108
  }
3089
3109
  void loadBalances();
3090
3110
  return () => {
@@ -3106,30 +3126,30 @@ function SolanaTokenSelectStep({
3106
3126
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3107
3127
  const numeric = Number(raw);
3108
3128
  if (!Number.isFinite(numeric)) return raw;
3109
- return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
3110
- } catch (e22) {
3129
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
3130
+ } catch (e23) {
3111
3131
  return "--";
3112
3132
  }
3113
3133
  };
3114
- const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, "solana");
3115
- const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, "solana");
3134
+ const chainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, "solana");
3135
+ const chainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, "solana");
3116
3136
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3117
3137
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3118
3138
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3119
- _chunk7OKA6GNAcjs.BodyHeader,
3139
+ _chunkDSXMWQYBcjs.BodyHeader,
3120
3140
  {
3121
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3141
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
3122
3142
  title: "Your assets",
3123
3143
  subtitle: "Select source assets to transfer"
3124
3144
  }
3125
3145
  ),
3126
3146
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3127
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-text-tertiary" }),
3147
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, { className: "rs-text-tertiary" }),
3128
3148
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3129
3149
  ] }),
3130
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3150
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
3131
3151
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3132
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, { className: "rs-empty-icon" }),
3152
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, { className: "rs-empty-icon" }),
3133
3153
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3134
3154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3135
3155
  solanaAddress.slice(0, 6),
@@ -3160,7 +3180,7 @@ function SolanaTokenSelectStep({
3160
3180
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3161
3181
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3162
3182
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3163
- _chunk7OKA6GNAcjs.TokenIcon,
3183
+ _chunkDSXMWQYBcjs.TokenIcon,
3164
3184
  {
3165
3185
  symbol: entry.token.symbol,
3166
3186
  fallback: entry.token.symbol.slice(0, 4)
@@ -3183,14 +3203,14 @@ function SolanaTokenSelectStep({
3183
3203
  ] })
3184
3204
  ] })
3185
3205
  ] }),
3186
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkDSXMWQYBcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3187
3207
  ]
3188
3208
  },
3189
3209
  entry.token.symbol
3190
3210
  );
3191
3211
  }) }),
3192
3212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3193
- _chunk7OKA6GNAcjs.Button,
3213
+ _chunkDSXMWQYBcjs.Button,
3194
3214
  {
3195
3215
  onClick: () => selectedEntry && onContinue(
3196
3216
  selectedEntry.token,
@@ -3203,7 +3223,7 @@ function SolanaTokenSelectStep({
3203
3223
  }
3204
3224
  )
3205
3225
  ] }),
3206
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3226
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3207
3227
  ] });
3208
3228
  }
3209
3229
 
@@ -3234,8 +3254,8 @@ function SolanaAmountStep({
3234
3254
  const [amount, setAmount] = _react.useState.call(void 0, "");
3235
3255
  const [error, setError] = _react.useState.call(void 0, null);
3236
3256
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3237
- const isSourceStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, token.symbol);
3238
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _115 => _115.trim, 'call', _116 => _116(), 'access', _117 => _117.toLowerCase, 'call', _118 => _118()]) === "max";
3257
+ const isSourceStablecoin = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, token.symbol);
3258
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _119 => _119.trim, 'call', _120 => _120(), 'access', _121 => _121.toLowerCase, 'call', _122 => _122()]) === "max";
3239
3259
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3240
3260
  if (isSourceStablecoin) return 1;
3241
3261
  try {
@@ -3245,7 +3265,7 @@ function SolanaAmountStep({
3245
3265
  }
3246
3266
  const price = balanceUsd / balanceUnits;
3247
3267
  return price > 0 ? price : null;
3248
- } catch (e23) {
3268
+ } catch (e24) {
3249
3269
  return null;
3250
3270
  }
3251
3271
  }, [isSourceStablecoin, balance, token.decimals, balanceUsd]);
@@ -3255,8 +3275,8 @@ function SolanaAmountStep({
3255
3275
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3256
3276
  const numeric = Number(raw);
3257
3277
  if (!Number.isFinite(numeric)) return raw;
3258
- return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
3259
- } catch (e24) {
3278
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
3279
+ } catch (e25) {
3260
3280
  return "\u2026";
3261
3281
  }
3262
3282
  }, [balance, token.decimals]);
@@ -3267,12 +3287,12 @@ function SolanaAmountStep({
3267
3287
  if (tokenPriceUsd !== null) return balanceUnits * tokenPriceUsd;
3268
3288
  if (Number.isFinite(balanceUsd) && balanceUsd > 0) return balanceUsd;
3269
3289
  return null;
3270
- } catch (e25) {
3290
+ } catch (e26) {
3271
3291
  return null;
3272
3292
  }
3273
3293
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3274
3294
  const spendableBalance = _react.useMemo.call(void 0, () => {
3275
- if (!_chunkU7SVYWVDcjs.isNativeSol.call(void 0, token)) return balance;
3295
+ if (!_chunkP5T4XSN2cjs.isNativeSol.call(void 0, token)) return balance;
3276
3296
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3277
3297
  }, [balance, token]);
3278
3298
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3281,7 +3301,7 @@ function SolanaAmountStep({
3281
3301
  if (!Number.isFinite(spendableUnits) || spendableUnits < 0) return null;
3282
3302
  if (tokenPriceUsd !== null) return spendableUnits * tokenPriceUsd;
3283
3303
  return null;
3284
- } catch (e26) {
3304
+ } catch (e27) {
3285
3305
  return null;
3286
3306
  }
3287
3307
  }, [spendableBalance, token.decimals, tokenPriceUsd]);
@@ -3296,7 +3316,7 @@ function SolanaAmountStep({
3296
3316
  const factor = 1e3;
3297
3317
  const truncated = Math.floor(value * factor) / factor;
3298
3318
  return truncated.toFixed(3).replace(/\.?0+$/, "");
3299
- } catch (e27) {
3319
+ } catch (e28) {
3300
3320
  return "";
3301
3321
  }
3302
3322
  },
@@ -3333,12 +3353,12 @@ function SolanaAmountStep({
3333
3353
  const raw = isSourceStablecoin || !hasPricing ? numericAmount : numericAmount / (_nullishCoalesce(tokenPriceUsd, () => ( 1)));
3334
3354
  try {
3335
3355
  return _viem.parseUnits.call(void 0, raw.toString(), token.decimals);
3336
- } catch (e28) {
3356
+ } catch (e29) {
3337
3357
  return null;
3338
3358
  }
3339
3359
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3340
- const minDepositUsd = targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3341
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _121 => _121.maxDepositUsd]), () => ( null));
3360
+ const minDepositUsd = targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkP5T4XSN2cjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _123 => _123.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _124 => _124.minDepositUsd]), () => ( null));
3361
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _125 => _125.maxDepositUsd]), () => ( null));
3342
3362
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3343
3363
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3344
3364
  const exceedsBalance = Boolean(
@@ -3348,7 +3368,7 @@ function SolanaAmountStep({
3348
3368
  const handlePresetClick = (percentage) => {
3349
3369
  const formatted = computePresetAmount(percentage);
3350
3370
  if (!formatted) return;
3351
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3371
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3352
3372
  percentage,
3353
3373
  symbol: token.symbol,
3354
3374
  formatted
@@ -3382,8 +3402,8 @@ function SolanaAmountStep({
3382
3402
  let amountInUnits;
3383
3403
  try {
3384
3404
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3385
- } catch (e29) {
3386
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3405
+ } catch (e30) {
3406
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3387
3407
  amount,
3388
3408
  sourceAmount: sourceAmountStr,
3389
3409
  reason: "parse-units-failed"
@@ -3392,13 +3412,13 @@ function SolanaAmountStep({
3392
3412
  return;
3393
3413
  }
3394
3414
  if (amountInUnits > spendableBalance) {
3395
- const isReserveIssue = _chunkU7SVYWVDcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3415
+ const isReserveIssue = _chunkP5T4XSN2cjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3396
3416
  setError(
3397
3417
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3398
3418
  );
3399
3419
  return;
3400
3420
  }
3401
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3421
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3402
3422
  symbol: token.symbol,
3403
3423
  inputAmountUsd: amount,
3404
3424
  sourceAmount: sourceAmountStr,
@@ -3411,7 +3431,7 @@ function SolanaAmountStep({
3411
3431
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3412
3432
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3413
3433
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3434
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}), title: "Wallet deposit" }),
3415
3435
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3416
3436
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3417
3437
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3431,13 +3451,13 @@ function SolanaAmountStep({
3431
3451
  " available",
3432
3452
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3433
3453
  " (~",
3434
- _chunk7OKA6GNAcjs.currencyFormatter.format(computedBalanceUsd),
3454
+ _chunkDSXMWQYBcjs.currencyFormatter.format(computedBalanceUsd),
3435
3455
  ")"
3436
3456
  ] })
3437
3457
  ] }),
3438
3458
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3439
3459
  "Min. deposit ",
3440
- _chunk7OKA6GNAcjs.currencyFormatter.format(minDepositUsd)
3460
+ _chunkDSXMWQYBcjs.currencyFormatter.format(minDepositUsd)
3441
3461
  ] })
3442
3462
  ] })
3443
3463
  ] }),
@@ -3460,7 +3480,7 @@ function SolanaAmountStep({
3460
3480
  "Solana ",
3461
3481
  token.symbol
3462
3482
  ] }),
3463
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: token.symbol }) })
3483
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: token.symbol }) })
3464
3484
  ] })
3465
3485
  ] }),
3466
3486
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -3471,18 +3491,18 @@ function SolanaAmountStep({
3471
3491
  " ",
3472
3492
  targetTokenSymbol
3473
3493
  ] }),
3474
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetTokenSymbol }) })
3494
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: targetTokenSymbol }) })
3475
3495
  ] })
3476
3496
  ] }),
3477
3497
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3478
3498
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3479
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7OKA6GNAcjs.currencyFormatter.format(balanceAfterUsd) })
3499
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDSXMWQYBcjs.currencyFormatter.format(balanceAfterUsd) })
3480
3500
  ] })
3481
3501
  ] }),
3482
- targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3483
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3502
+ targetChain === _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3503
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
3484
3504
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3485
- _chunk7OKA6GNAcjs.Button,
3505
+ _chunkDSXMWQYBcjs.Button,
3486
3506
  {
3487
3507
  onClick: handleContinue,
3488
3508
  fullWidth: true,
@@ -3491,7 +3511,7 @@ function SolanaAmountStep({
3491
3511
  }
3492
3512
  )
3493
3513
  ] }),
3494
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3514
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3495
3515
  ] });
3496
3516
  }
3497
3517
 
@@ -3514,10 +3534,10 @@ var _spltoken = require('@solana/spl-token');
3514
3534
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3515
3535
  var cachedConnections = /* @__PURE__ */ new Map();
3516
3536
  function getSolanaRpcUrl(rpcUrls) {
3517
- return _nullishCoalesce(_chunk7OKA6GNAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3537
+ return _nullishCoalesce(_chunkDSXMWQYBcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3518
3538
  }
3519
3539
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
3520
- return _chunk7OKA6GNAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3540
+ return _chunkDSXMWQYBcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3521
3541
  }
3522
3542
  function getSolanaConnection(rpcUrls) {
3523
3543
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -3619,36 +3639,36 @@ function SolanaConfirmStep({
3619
3639
  onError,
3620
3640
  debug
3621
3641
  }) {
3622
- const rpcUrls = _chunk7OKA6GNAcjs.useRpcUrls.call(void 0, );
3642
+ const rpcUrls = _chunkDSXMWQYBcjs.useRpcUrls.call(void 0, );
3623
3643
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3624
3644
  const [error, setError] = _react.useState.call(void 0, null);
3625
- const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3626
- const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, "solana");
3627
- const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
3628
- const sourceChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, "solana");
3629
- const targetChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChain);
3630
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _122 => _122.feeSponsored]), () => ( false));
3631
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _123 => _123.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3632
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunk7OKA6GNAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3645
+ const targetSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3646
+ const sourceChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, "solana");
3647
+ const targetChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain);
3648
+ const sourceChainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, "solana");
3649
+ const targetChainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, targetChain);
3650
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _126 => _126.feeSponsored]), () => ( false));
3651
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _127 => _127.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3652
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkDSXMWQYBcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3633
3653
  const receiveDisplay = (() => {
3634
3654
  const usdValue = Number(targetAmount);
3635
3655
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3636
- const estimate = _chunk7OKA6GNAcjs.formatReceiveEstimate.call(void 0, {
3656
+ const estimate = _chunkDSXMWQYBcjs.formatReceiveEstimate.call(void 0, {
3637
3657
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3638
3658
  sourceSymbol: token.symbol,
3639
3659
  targetSymbol,
3640
3660
  sourceAmountUsd,
3641
- sourceTrusted: _chunk7OKA6GNAcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
3661
+ sourceTrusted: _chunkDSXMWQYBcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
3642
3662
  // Curated stablecoin target estimates at $1 when unquoted; never applied
3643
3663
  // to the source (a held token). See ConfirmStep for the rationale.
3644
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk7OKA6GNAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
3664
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDSXMWQYBcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
3645
3665
  });
3646
3666
  if (estimate !== void 0) return estimate;
3647
3667
  return targetSymbol;
3648
3668
  })();
3649
3669
  const handleConfirm = async () => {
3650
3670
  if (!solanaProvider) {
3651
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3671
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3652
3672
  reason: "missing-provider"
3653
3673
  });
3654
3674
  setError("Solana wallet not connected");
@@ -3656,7 +3676,7 @@ function SolanaConfirmStep({
3656
3676
  }
3657
3677
  const parsedAmount = parseFloat(sourceAmount);
3658
3678
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3659
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3679
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3660
3680
  reason: "invalid-amount",
3661
3681
  sourceAmount
3662
3682
  });
@@ -3665,7 +3685,7 @@ function SolanaConfirmStep({
3665
3685
  }
3666
3686
  setError(null);
3667
3687
  setIsSubmitting(true);
3668
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3688
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3669
3689
  smartAccount,
3670
3690
  solanaAddress,
3671
3691
  solanaDepositAddress,
@@ -3675,7 +3695,7 @@ function SolanaConfirmStep({
3675
3695
  });
3676
3696
  try {
3677
3697
  const check = await service.checkAccount(smartAccount);
3678
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3698
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3679
3699
  smartAccount,
3680
3700
  isRegistered: check.isRegistered,
3681
3701
  targetChain: check.targetChain,
@@ -3688,12 +3708,12 @@ function SolanaConfirmStep({
3688
3708
  }
3689
3709
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3690
3710
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3691
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3711
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3692
3712
  token: token.symbol,
3693
3713
  sourceAmount,
3694
3714
  amountUnits: amountUnits.toString()
3695
3715
  });
3696
- const transaction = _chunkU7SVYWVDcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3716
+ const transaction = _chunkP5T4XSN2cjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3697
3717
  connection,
3698
3718
  solanaAddress,
3699
3719
  solanaDepositAddress,
@@ -3705,10 +3725,10 @@ function SolanaConfirmStep({
3705
3725
  token.mint,
3706
3726
  amountUnits
3707
3727
  );
3708
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3728
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3709
3729
  token: token.symbol,
3710
3730
  instructionCount: transaction.instructions.length,
3711
- feePayer: _optionalChain([transaction, 'access', _124 => _124.feePayer, 'optionalAccess', _125 => _125.toBase58, 'call', _126 => _126()]),
3731
+ feePayer: _optionalChain([transaction, 'access', _128 => _128.feePayer, 'optionalAccess', _129 => _129.toBase58, 'call', _130 => _130()]),
3712
3732
  recentBlockhash: transaction.recentBlockhash
3713
3733
  });
3714
3734
  const txHash = await sendSolanaTransaction(
@@ -3716,28 +3736,28 @@ function SolanaConfirmStep({
3716
3736
  connection,
3717
3737
  transaction
3718
3738
  );
3719
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3739
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3720
3740
  txHash,
3721
3741
  amountUnits: amountUnits.toString()
3722
3742
  });
3723
3743
  onConfirm(txHash, amountUnits.toString());
3724
3744
  } catch (err) {
3725
3745
  const raw = err instanceof Error ? err.message : "Transfer failed";
3726
- const message = _chunk7OKA6GNAcjs.formatUserError.call(void 0, raw);
3727
- _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3746
+ const message = _chunkDSXMWQYBcjs.formatUserError.call(void 0, raw);
3747
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3728
3748
  smartAccount,
3729
3749
  token: token.symbol,
3730
3750
  sourceAmount
3731
3751
  });
3732
3752
  setError(message);
3733
- _optionalChain([onError, 'optionalCall', _127 => _127(message, "SOLANA_TRANSFER_ERROR")]);
3753
+ _optionalChain([onError, 'optionalCall', _131 => _131(message, "SOLANA_TRANSFER_ERROR")]);
3734
3754
  } finally {
3735
3755
  setIsSubmitting(false);
3736
3756
  }
3737
3757
  };
3738
3758
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3739
3759
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3740
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Review deposit" }),
3760
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}), title: "Review deposit" }),
3741
3761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3742
3762
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3743
3763
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3765,14 +3785,14 @@ function SolanaConfirmStep({
3765
3785
  " ",
3766
3786
  token.symbol
3767
3787
  ] }),
3768
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: token.symbol }) })
3788
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: token.symbol }) })
3769
3789
  ] })
3770
3790
  ] }),
3771
3791
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3772
3792
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3773
3793
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3774
3794
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3775
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
3795
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: targetSymbol }) })
3776
3796
  ] })
3777
3797
  ] }),
3778
3798
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -3785,13 +3805,13 @@ function SolanaConfirmStep({
3785
3805
  children: "$0.04"
3786
3806
  }
3787
3807
  ),
3788
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.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, _chunk7OKA6GNAcjs.InfoIcon, {}) }) })
3808
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.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, _chunkDSXMWQYBcjs.InfoIcon, {}) }) })
3789
3809
  ] })
3790
3810
  ] })
3791
3811
  ] }),
3792
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3812
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
3793
3813
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3794
- _chunk7OKA6GNAcjs.Button,
3814
+ _chunkDSXMWQYBcjs.Button,
3795
3815
  {
3796
3816
  onClick: handleConfirm,
3797
3817
  loading: isSubmitting,
@@ -3802,7 +3822,7 @@ function SolanaConfirmStep({
3802
3822
  }
3803
3823
  )
3804
3824
  ] }),
3805
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3825
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3806
3826
  ] });
3807
3827
  }
3808
3828
 
@@ -3816,21 +3836,21 @@ function DappImportAssetSelectStep({
3816
3836
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3817
3837
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3818
3838
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3819
- _chunk7OKA6GNAcjs.BodyHeader,
3839
+ _chunkDSXMWQYBcjs.BodyHeader,
3820
3840
  {
3821
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3841
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
3822
3842
  title: `Transfer from ${sourceLabel}`,
3823
3843
  subtitle: "Pick the balance to import"
3824
3844
  }
3825
3845
  ),
3826
3846
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3827
- const tokenAmount = asset.balance ? _chunk7OKA6GNAcjs.tokenFormatter.format(
3847
+ const tokenAmount = asset.balance ? _chunkDSXMWQYBcjs.tokenFormatter.format(
3828
3848
  Number(asset.balance) / 10 ** asset.decimals
3829
3849
  ) : "0";
3830
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3850
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkDSXMWQYBcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3831
3851
  const assetIcon = asset.icon;
3832
- const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
3833
- const badge = _chunkU7SVYWVDcjs.getChainBadge.call(void 0, asset.chainId);
3852
+ const chainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, asset.chainId);
3853
+ const badge = _chunkP5T4XSN2cjs.getChainBadge.call(void 0, asset.chainId);
3834
3854
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3835
3855
  "button",
3836
3856
  {
@@ -3841,7 +3861,7 @@ function DappImportAssetSelectStep({
3841
3861
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3842
3862
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3843
3863
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3844
- _chunk7OKA6GNAcjs.TokenIcon,
3864
+ _chunkDSXMWQYBcjs.TokenIcon,
3845
3865
  {
3846
3866
  symbol: asset.symbol,
3847
3867
  fallback: asset.symbol.slice(0, 4)
@@ -3851,7 +3871,7 @@ function DappImportAssetSelectStep({
3851
3871
  "img",
3852
3872
  {
3853
3873
  src: chainIcon,
3854
- alt: _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
3874
+ alt: _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId)
3855
3875
  }
3856
3876
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3857
3877
  "span",
@@ -3884,7 +3904,7 @@ function DappImportAssetSelectStep({
3884
3904
  );
3885
3905
  }) })
3886
3906
  ] }),
3887
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3907
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3888
3908
  ] });
3889
3909
  }
3890
3910
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3901,9 +3921,9 @@ function DappImportAssetSelectSkeleton({
3901
3921
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3902
3922
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3903
3923
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3904
- _chunk7OKA6GNAcjs.BodyHeader,
3924
+ _chunkDSXMWQYBcjs.BodyHeader,
3905
3925
  {
3906
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3926
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
3907
3927
  title: `Transfer from ${sourceLabel}`,
3908
3928
  subtitle: "Pick the balance to import"
3909
3929
  }
@@ -3941,7 +3961,7 @@ function DappImportAssetSelectSkeleton({
3941
3961
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3942
3962
  }
3943
3963
  ) }),
3944
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3964
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3945
3965
  ] });
3946
3966
  }
3947
3967
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3998,7 +4018,7 @@ async function detectPolymarketWalletKind(params) {
3998
4018
  contracts: [
3999
4019
  {
4000
4020
  address: proxyWallet,
4001
- abi: _chunkXRWQMIBYcjs.SAFE_ABI,
4021
+ abi: _chunkUNVVUULPcjs.SAFE_ABI,
4002
4022
  functionName: "isOwner",
4003
4023
  args: [eoa]
4004
4024
  },
@@ -4031,7 +4051,7 @@ async function buildSignedDepositWalletBatch(params) {
4031
4051
  if (!account || !chain) {
4032
4052
  throw new Error("Wallet not connected");
4033
4053
  }
4034
- if (chain.id !== _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4054
+ if (chain.id !== _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4035
4055
  throw new Error("Switch to Polygon to sign");
4036
4056
  }
4037
4057
  const owner = await publicClient.readContract({
@@ -4076,14 +4096,14 @@ async function buildSignedDepositWalletBatch(params) {
4076
4096
  })),
4077
4097
  signature
4078
4098
  },
4079
- sourceToken: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4099
+ sourceToken: _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS,
4080
4100
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4081
4101
  };
4082
4102
  }
4083
4103
  function buildUsdceTransferCalls(recipient, amount) {
4084
4104
  return [
4085
4105
  {
4086
- target: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4106
+ target: _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS,
4087
4107
  value: 0n,
4088
4108
  data: _viem.encodeFunctionData.call(void 0, {
4089
4109
  abi: _viem.erc20Abi,
@@ -4096,21 +4116,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4096
4116
  function buildPusdUnwrapCalls(recipient, amount) {
4097
4117
  return [
4098
4118
  {
4099
- target: _chunk4NN7UTWQcjs.POLYMARKET_PUSD_ADDRESS,
4119
+ target: _chunkORKEBFMRcjs.POLYMARKET_PUSD_ADDRESS,
4100
4120
  value: 0n,
4101
4121
  data: _viem.encodeFunctionData.call(void 0, {
4102
4122
  abi: _viem.erc20Abi,
4103
4123
  functionName: "approve",
4104
- args: [_chunk4NN7UTWQcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4124
+ args: [_chunkORKEBFMRcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4105
4125
  })
4106
4126
  },
4107
4127
  {
4108
- target: _chunk4NN7UTWQcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4128
+ target: _chunkORKEBFMRcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4109
4129
  value: 0n,
4110
4130
  data: _viem.encodeFunctionData.call(void 0, {
4111
4131
  abi: COLLATERAL_OFFRAMP_ABI,
4112
4132
  functionName: "unwrap",
4113
- args: [_chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4133
+ args: [_chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4114
4134
  })
4115
4135
  }
4116
4136
  ];
@@ -4123,29 +4143,29 @@ var polymarketProvider = {
4123
4143
  label: "Transfer from Polymarket",
4124
4144
  sourceLabel: "Polymarket",
4125
4145
  icon: _react.createElement.call(void 0, "img", {
4126
- src: _chunk4NN7UTWQcjs.POLYMARKET_ICON_URL,
4146
+ src: _chunkORKEBFMRcjs.POLYMARKET_ICON_URL,
4127
4147
  alt: "Polymarket",
4128
4148
  style: { width: 24, height: 24, borderRadius: 6 }
4129
4149
  }),
4130
- chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4150
+ chainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
4131
4151
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4132
- const proxyWallet = await _chunk4NN7UTWQcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4152
+ const proxyWallet = await _chunkORKEBFMRcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4133
4153
  if (!proxyWallet) return null;
4134
- if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
4135
- const polygonClient = getPublicClient2(_chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID);
4154
+ if (_optionalChain([signal, 'optionalAccess', _132 => _132.aborted])) return null;
4155
+ const polygonClient = getPublicClient2(_chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID);
4136
4156
  if (!polygonClient) return null;
4137
- const balances = await _chunk4NN7UTWQcjs.readPolymarketBalances.call(void 0, {
4157
+ const balances = await _chunkORKEBFMRcjs.readPolymarketBalances.call(void 0, {
4138
4158
  publicClient: polygonClient,
4139
4159
  proxyWallet
4140
4160
  });
4141
- if (_optionalChain([signal, 'optionalAccess', _129 => _129.aborted])) return null;
4161
+ if (_optionalChain([signal, 'optionalAccess', _133 => _133.aborted])) return null;
4142
4162
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
4143
4163
  const walletKind = await detectPolymarketWalletKind({
4144
4164
  publicClient: polygonClient,
4145
4165
  proxyWallet,
4146
4166
  eoa
4147
4167
  });
4148
- if (_optionalChain([signal, 'optionalAccess', _130 => _130.aborted])) return null;
4168
+ if (_optionalChain([signal, 'optionalAccess', _134 => _134.aborted])) return null;
4149
4169
  if (!walletKind) return null;
4150
4170
  const assets = [];
4151
4171
  if (balances.pusd > 0n) {
@@ -4192,7 +4212,7 @@ var polymarketProvider = {
4192
4212
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4193
4213
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4194
4214
  }
4195
- const result = await _chunk4NN7UTWQcjs.executePolymarketSafeTransfer.call(void 0, {
4215
+ const result = await _chunkORKEBFMRcjs.executePolymarketSafeTransfer.call(void 0, {
4196
4216
  walletClient,
4197
4217
  publicClient,
4198
4218
  safeAddress: metadata.proxyWallet,
@@ -4211,17 +4231,17 @@ var polymarketProvider = {
4211
4231
  function buildAsset(params) {
4212
4232
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4213
4233
  const isPusd = tokenKind === "pusd";
4214
- const tokenAddress = isPusd ? _chunk4NN7UTWQcjs.POLYMARKET_PUSD_ADDRESS : _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS;
4234
+ const tokenAddress = isPusd ? _chunkORKEBFMRcjs.POLYMARKET_PUSD_ADDRESS : _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS;
4215
4235
  const symbol = isPusd ? "pUSD" : "USDC.e";
4216
4236
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4217
4237
  const metadata = { proxyWallet, tokenKind, walletKind };
4218
4238
  return {
4219
4239
  id: `polymarket:${tokenKind}`,
4220
- chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4240
+ chainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
4221
4241
  token: tokenAddress,
4222
4242
  symbol,
4223
4243
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4224
- icon: isPusd ? _chunk4NN7UTWQcjs.POLYMARKET_ICON_URL : void 0,
4244
+ icon: isPusd ? _chunkORKEBFMRcjs.POLYMARKET_ICON_URL : void 0,
4225
4245
  decimals: 6,
4226
4246
  balance: balance.toString(),
4227
4247
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4231,8 +4251,8 @@ function buildAsset(params) {
4231
4251
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4232
4252
  // arrives at the smart account, so it's also what the orchestrator
4233
4253
  // bridges from.
4234
- depositToken: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4235
- depositChainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4254
+ depositToken: _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS,
4255
+ depositChainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
4236
4256
  providerMetadata: metadata
4237
4257
  };
4238
4258
  }
@@ -4256,7 +4276,8 @@ function createInitialState(overrides) {
4256
4276
  step: "connect",
4257
4277
  mode: null,
4258
4278
  isConnectSelectionConfirmed: false,
4259
- hasNavigatedBack: false
4279
+ hasNavigatedBack: false,
4280
+ methodTab: "crypto"
4260
4281
  },
4261
4282
  wallet: {
4262
4283
  selectedWalletId: null
@@ -4337,7 +4358,7 @@ function readPortfolioEntry(portfolio, network, address) {
4337
4358
  function computeDappImportStatus(providerId, inputs) {
4338
4359
  const { owner, availability, availabilityOwner, setup } = inputs;
4339
4360
  if (!owner) return "needs-connect";
4340
- const entry = _optionalChain([availabilityOwner, 'optionalAccess', _131 => _131.toLowerCase, 'call', _132 => _132()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4361
+ const entry = _optionalChain([availabilityOwner, 'optionalAccess', _135 => _135.toLowerCase, 'call', _136 => _136()]) === owner.toLowerCase() ? availability[providerId] : void 0;
4341
4362
  if (entry === "loading" || entry === void 0) return "loading";
4342
4363
  if (entry === "error") {
4343
4364
  return {
@@ -4633,6 +4654,11 @@ function applyAction(state, action) {
4633
4654
  step: "deposit-address"
4634
4655
  }
4635
4656
  };
4657
+ case "connect/method-tab-changed":
4658
+ return {
4659
+ ...state,
4660
+ flow: { ...state.flow, methodTab: action.tab }
4661
+ };
4636
4662
  case "connect/fiat-onramp-selected":
4637
4663
  return {
4638
4664
  ...state,
@@ -4691,12 +4717,12 @@ function applyAction(state, action) {
4691
4717
  requestKey: action.requestKey,
4692
4718
  cacheKey: action.cacheKey,
4693
4719
  status: "loading",
4694
- smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _133 => _133.smartAccount]), () => ( null)),
4695
- sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _134 => _134.sessionOwnerAddress]), () => ( null)),
4696
- solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _135 => _135.solanaDepositAddress]), () => ( null)),
4720
+ smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _137 => _137.smartAccount]), () => ( null)),
4721
+ sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _138 => _138.sessionOwnerAddress]), () => ( null)),
4722
+ solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _139 => _139.solanaDepositAddress]), () => ( null)),
4697
4723
  message: null,
4698
4724
  cacheable: action.cacheable,
4699
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _136 => _136.attemptNonce]), () => ( 0))
4725
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _140 => _140.attemptNonce]), () => ( 0))
4700
4726
  }));
4701
4727
  }
4702
4728
  case "setup/ready": {
@@ -4899,7 +4925,7 @@ function applyAction(state, action) {
4899
4925
  flow: { ...state.flow, step: "processing" }
4900
4926
  };
4901
4927
  case "processing/quote-fee-breakdown-loaded":
4902
- if (state.flow.step !== "processing" || _optionalChain([state, 'access', _137 => _137.processing, 'access', _138 => _138.txHash, 'optionalAccess', _139 => _139.toLowerCase, 'call', _140 => _140()]) !== action.txHash.toLowerCase()) {
4928
+ if (state.flow.step !== "processing" || _optionalChain([state, 'access', _141 => _141.processing, 'access', _142 => _142.txHash, 'optionalAccess', _143 => _143.toLowerCase, 'call', _144 => _144()]) !== action.txHash.toLowerCase()) {
4903
4929
  return state;
4904
4930
  }
4905
4931
  return {
@@ -5066,7 +5092,8 @@ function applyAction(state, action) {
5066
5092
  step: "connect",
5067
5093
  mode: null,
5068
5094
  isConnectSelectionConfirmed: false,
5069
- hasNavigatedBack: false
5095
+ hasNavigatedBack: false,
5096
+ methodTab: "crypto"
5070
5097
  },
5071
5098
  wallet: {
5072
5099
  selectedWalletId: null
@@ -5178,15 +5205,15 @@ var SetupError = class extends Error {
5178
5205
  }
5179
5206
  };
5180
5207
  async function resolveSessionOwner(eoaAddress) {
5181
- const local = _chunk7OKA6GNAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5208
+ const local = _chunkDSXMWQYBcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5182
5209
  if (local) {
5183
5210
  return {
5184
- account: _chunk7OKA6GNAcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5211
+ account: _chunkDSXMWQYBcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5185
5212
  address: local.address
5186
5213
  };
5187
5214
  }
5188
- const created = _chunk7OKA6GNAcjs.createSessionOwnerKey.call(void 0, );
5189
- _chunk7OKA6GNAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5215
+ const created = _chunkDSXMWQYBcjs.createSessionOwnerKey.call(void 0, );
5216
+ _chunkDSXMWQYBcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5190
5217
  return { account: created.account, address: created.address };
5191
5218
  }
5192
5219
  function stableStringify(value) {
@@ -5242,7 +5269,7 @@ var setupRequestDedupe = /* @__PURE__ */ new Map();
5242
5269
  function readDedupedAccountSetupResult(requestKey) {
5243
5270
  const now = Date.now();
5244
5271
  const existing = setupRequestDedupe.get(requestKey);
5245
- if (_optionalChain([existing, 'optionalAccess', _141 => _141.settled]) && existing.expiresAt > now && existing.result) {
5272
+ if (_optionalChain([existing, 'optionalAccess', _145 => _145.settled]) && existing.expiresAt > now && existing.result) {
5246
5273
  return existing.result;
5247
5274
  }
5248
5275
  return null;
@@ -5253,7 +5280,7 @@ async function runAccountSetup(input, deps) {
5253
5280
  try {
5254
5281
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5255
5282
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5256
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5283
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5257
5284
  owner: input.ownerAddress,
5258
5285
  sessionOwner: sessionOwner.address,
5259
5286
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
@@ -5261,7 +5288,7 @@ async function runAccountSetup(input, deps) {
5261
5288
  const setup = await service.setupAccount({
5262
5289
  ownerAddress: input.ownerAddress,
5263
5290
  sessionOwnerAddress: sessionOwner.address,
5264
- targetChain: _chunkU7SVYWVDcjs.targetChainToCaip2.call(void 0, input.targetChain),
5291
+ targetChain: _chunkP5T4XSN2cjs.targetChainToCaip2.call(void 0, input.targetChain),
5265
5292
  targetToken: input.targetToken,
5266
5293
  recipient: input.recipient,
5267
5294
  outputTokenRules: input.outputTokenRules,
@@ -5299,7 +5326,7 @@ async function runAccountSetup(input, deps) {
5299
5326
  primaryType: typedData.primaryType,
5300
5327
  message: typedData.message
5301
5328
  });
5302
- const sessionDetails = _chunk7OKA6GNAcjs.buildSessionDetails.call(void 0,
5329
+ const sessionDetails = _chunkDSXMWQYBcjs.buildSessionDetails.call(void 0,
5303
5330
  setup.sessionDetailsUnsigned,
5304
5331
  signature
5305
5332
  );
@@ -5313,10 +5340,10 @@ async function runAccountSetup(input, deps) {
5313
5340
  eoaAddress: input.ownerAddress,
5314
5341
  sessionOwner: sessionOwner.address,
5315
5342
  target: {
5316
- chain: _chunkU7SVYWVDcjs.targetChainToCaip2.call(void 0, input.targetChain),
5343
+ chain: _chunkP5T4XSN2cjs.targetChainToCaip2.call(void 0, input.targetChain),
5317
5344
  token: input.targetToken,
5318
5345
  ...input.recipient && { recipient: input.recipient },
5319
- ..._optionalChain([input, 'access', _142 => _142.outputTokenRules, 'optionalAccess', _143 => _143.length]) && {
5346
+ ..._optionalChain([input, 'access', _146 => _146.outputTokenRules, 'optionalAccess', _147 => _147.length]) && {
5320
5347
  outputTokenRules: input.outputTokenRules
5321
5348
  },
5322
5349
  ...input.rejectUnmapped != null && {
@@ -5332,7 +5359,7 @@ async function runAccountSetup(input, deps) {
5332
5359
  isRegistered: true
5333
5360
  };
5334
5361
  } catch (error) {
5335
- _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5362
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5336
5363
  owner: input.ownerAddress
5337
5364
  });
5338
5365
  if (error instanceof SetupError) throw error;
@@ -5343,7 +5370,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5343
5370
  const now = Date.now();
5344
5371
  const existing = setupRequestDedupe.get(requestKey);
5345
5372
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5346
- _chunk7OKA6GNAcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5373
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5347
5374
  owner: input.ownerAddress,
5348
5375
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5349
5376
  });
@@ -5438,7 +5465,7 @@ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
5438
5465
  async function fetchQuoteFeeBreakdown(params) {
5439
5466
  try {
5440
5467
  if (BigInt(params.amount) <= 0n) return void 0;
5441
- } catch (e30) {
5468
+ } catch (e31) {
5442
5469
  return void 0;
5443
5470
  }
5444
5471
  let timeoutId;
@@ -5454,8 +5481,8 @@ async function fetchQuoteFeeBreakdown(params) {
5454
5481
  timeoutId = setTimeout(resolve, SWAPPED_QUOTE_FEE_TIMEOUT_MS, null);
5455
5482
  })
5456
5483
  ]);
5457
- return _optionalChain([quote, 'optionalAccess', _144 => _144.fees, 'optionalAccess', _145 => _145.breakdown]);
5458
- } catch (e31) {
5484
+ return _optionalChain([quote, 'optionalAccess', _148 => _148.fees, 'optionalAccess', _149 => _149.breakdown]);
5485
+ } catch (e32) {
5459
5486
  return void 0;
5460
5487
  } finally {
5461
5488
  if (timeoutId !== void 0) clearTimeout(timeoutId);
@@ -5641,7 +5668,7 @@ function DepositFlow({
5641
5668
  appBalanceUsd,
5642
5669
  outputTokenRules,
5643
5670
  rejectUnmapped,
5644
- signerAddress = _chunkU7SVYWVDcjs.DEFAULT_SIGNER_ADDRESS,
5671
+ signerAddress = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS,
5645
5672
  sessionChainIds,
5646
5673
  forceRegister = false,
5647
5674
  enableSolana = true,
@@ -5665,11 +5692,11 @@ function DepositFlow({
5665
5692
  onError,
5666
5693
  debug
5667
5694
  }) {
5668
- const rpcUrls = _chunk7OKA6GNAcjs.useRpcUrls.call(void 0, );
5669
- const onStepChangeRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onStepChange);
5670
- const onEventRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onEvent);
5671
- const onLifecycleRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onLifecycle);
5672
- const onErrorRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onError);
5695
+ const rpcUrls = _chunkDSXMWQYBcjs.useRpcUrls.call(void 0, );
5696
+ const onStepChangeRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onStepChange);
5697
+ const onEventRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onEvent);
5698
+ const onLifecycleRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onLifecycle);
5699
+ const onErrorRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onError);
5673
5700
  const storeApi = useDepositStoreApi();
5674
5701
  const flowSlice = useDepositStore((s) => s.flow);
5675
5702
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5686,13 +5713,13 @@ function DepositFlow({
5686
5713
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5687
5714
  const logFlow = _react.useCallback.call(void 0,
5688
5715
  (message, data) => {
5689
- _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5716
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5690
5717
  },
5691
5718
  [debug]
5692
5719
  );
5693
5720
  const logFlowError = _react.useCallback.call(void 0,
5694
5721
  (message, error, data) => {
5695
- _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5722
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5696
5723
  },
5697
5724
  [debug]
5698
5725
  );
@@ -5716,12 +5743,12 @@ function DepositFlow({
5716
5743
  };
5717
5744
  }, [enableSwappedPreconnect]);
5718
5745
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5719
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _146 => _146.switchChain])) return void 0;
5746
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _150 => _150.switchChain])) return void 0;
5720
5747
  return async (chainId) => {
5721
- await _optionalChain([dappWalletClient, 'access', _147 => _147.switchChain, 'optionalCall', _148 => _148({ id: chainId })]);
5748
+ await _optionalChain([dappWalletClient, 'access', _151 => _151.switchChain, 'optionalCall', _152 => _152({ id: chainId })]);
5722
5749
  };
5723
5750
  }, [dappWalletClient]);
5724
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _149 => _149.account, 'optionalAccess', _150 => _150.address]), () => ( null));
5751
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _153 => _153.account, 'optionalAccess', _154 => _154.address]), () => ( null));
5725
5752
  const walletOptions = _react.useMemo.call(void 0, () => {
5726
5753
  const options = [];
5727
5754
  const seen = /* @__PURE__ */ new Set();
@@ -5735,7 +5762,7 @@ function DepositFlow({
5735
5762
  });
5736
5763
  seen.add(id);
5737
5764
  }
5738
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _151 => _151.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5765
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _155 => _155.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5739
5766
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5740
5767
  if (!seen.has(id)) {
5741
5768
  options.push({
@@ -5747,7 +5774,7 @@ function DepositFlow({
5747
5774
  });
5748
5775
  seen.add(id);
5749
5776
  }
5750
- } else if (_optionalChain([reownWallet, 'optionalAccess', _152 => _152.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5777
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _156 => _156.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5751
5778
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5752
5779
  if (!seen.has(id)) {
5753
5780
  options.push({
@@ -5764,20 +5791,20 @@ function DepositFlow({
5764
5791
  }, [
5765
5792
  connectedWalletAddress,
5766
5793
  dappAddress,
5767
- _optionalChain([reownWallet, 'optionalAccess', _153 => _153.address]),
5768
- _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isConnected]),
5769
- _optionalChain([reownWallet, 'optionalAccess', _155 => _155.walletClient]),
5770
- _optionalChain([reownWallet, 'optionalAccess', _156 => _156.publicClient]),
5771
- _optionalChain([reownWallet, 'optionalAccess', _157 => _157.icon]),
5794
+ _optionalChain([reownWallet, 'optionalAccess', _157 => _157.address]),
5795
+ _optionalChain([reownWallet, 'optionalAccess', _158 => _158.isConnected]),
5796
+ _optionalChain([reownWallet, 'optionalAccess', _159 => _159.walletClient]),
5797
+ _optionalChain([reownWallet, 'optionalAccess', _160 => _160.publicClient]),
5798
+ _optionalChain([reownWallet, 'optionalAccess', _161 => _161.icon]),
5772
5799
  enableSolana,
5773
- _optionalChain([reownWallet, 'optionalAccess', _158 => _158.isSolana]),
5774
- _optionalChain([reownWallet, 'optionalAccess', _159 => _159.solanaAddress]),
5775
- _optionalChain([reownWallet, 'optionalAccess', _160 => _160.caipAddress])
5800
+ _optionalChain([reownWallet, 'optionalAccess', _162 => _162.isSolana]),
5801
+ _optionalChain([reownWallet, 'optionalAccess', _163 => _163.solanaAddress]),
5802
+ _optionalChain([reownWallet, 'optionalAccess', _164 => _164.caipAddress])
5776
5803
  ]);
5777
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _161 => _161.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5804
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _165 => _165.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5778
5805
  const hasWalletOptions = walletOptions.length > 0;
5779
5806
  const hasReownSession = Boolean(
5780
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _162 => _162.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]) : _optionalChain([reownWallet, 'optionalAccess', _164 => _164.address])
5807
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _166 => _166.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _167 => _167.address]) : _optionalChain([reownWallet, 'optionalAccess', _168 => _168.address])
5781
5808
  );
5782
5809
  const isDappImportWalletHydrating = Boolean(
5783
5810
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -5797,9 +5824,9 @@ function DepositFlow({
5797
5824
  isConnectSelectionConfirmed,
5798
5825
  selectedWalletId
5799
5826
  ]);
5800
- const setupChainId = typeof targetChain === "number" && !_chunkU7SVYWVDcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5801
- const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5802
- const isTargetStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5827
+ const setupChainId = typeof targetChain === "number" && !_chunkP5T4XSN2cjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5828
+ const targetSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5829
+ const isTargetStablecoin = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, targetSymbol);
5803
5830
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5804
5831
  _react.useEffect.call(void 0, () => {
5805
5832
  targetMarketPriceRef.current = null;
@@ -5807,7 +5834,7 @@ function DepositFlow({
5807
5834
  return;
5808
5835
  }
5809
5836
  let cancelled = false;
5810
- _chunk7OKA6GNAcjs.fetchTokenPriceUsd.call(void 0, service, {
5837
+ _chunkDSXMWQYBcjs.fetchTokenPriceUsd.call(void 0, service, {
5811
5838
  chainId: targetChain,
5812
5839
  address: targetToken,
5813
5840
  symbol: targetSymbol
@@ -5828,16 +5855,16 @@ function DepositFlow({
5828
5855
  return {
5829
5856
  ownerAddress: dappAddress,
5830
5857
  walletClient: void 0,
5831
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5858
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5832
5859
  switchChain: void 0
5833
5860
  };
5834
5861
  }
5835
5862
  if (canAutoLock) {
5836
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _165 => _165.chain, 'optionalAccess', _166 => _166.id]), () => ( setupChainId));
5863
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _169 => _169.chain, 'optionalAccess', _170 => _170.id]), () => ( setupChainId));
5837
5864
  return {
5838
5865
  ownerAddress: dappWalletClient.account.address,
5839
5866
  walletClient: dappWalletClient,
5840
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5867
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5841
5868
  switchChain: dappSwitchChain
5842
5869
  };
5843
5870
  }
@@ -5851,24 +5878,24 @@ function DepositFlow({
5851
5878
  return {
5852
5879
  ownerAddress: dappAddress,
5853
5880
  walletClient: void 0,
5854
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5881
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5855
5882
  switchChain: void 0
5856
5883
  };
5857
5884
  }
5858
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _167 => _167.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5859
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _168 => _168.chain, 'optionalAccess', _169 => _169.id]), () => ( setupChainId));
5885
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _171 => _171.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5886
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _172 => _172.chain, 'optionalAccess', _173 => _173.id]), () => ( setupChainId));
5860
5887
  return {
5861
5888
  ownerAddress: dappWalletClient.account.address,
5862
5889
  walletClient: dappWalletClient,
5863
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5890
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5864
5891
  switchChain: dappSwitchChain
5865
5892
  };
5866
5893
  }
5867
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _170 => _170.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5894
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _174 => _174.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5868
5895
  return {
5869
5896
  ownerAddress: reownWallet.address,
5870
5897
  walletClient: reownWallet.walletClient,
5871
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5898
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5872
5899
  switchChain: reownWallet.switchChain
5873
5900
  };
5874
5901
  }
@@ -5907,7 +5934,7 @@ function DepositFlow({
5907
5934
  return {
5908
5935
  ownerAddress: dappAddress,
5909
5936
  walletClient: void 0,
5910
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5937
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5911
5938
  switchChain: void 0
5912
5939
  };
5913
5940
  }
@@ -5932,37 +5959,37 @@ function DepositFlow({
5932
5959
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5933
5960
  if (!selectedWalletId) return null;
5934
5961
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5935
- if (_optionalChain([opt, 'optionalAccess', _171 => _171.kind]) === "external" && opt.address) {
5962
+ if (_optionalChain([opt, 'optionalAccess', _175 => _175.kind]) === "external" && opt.address) {
5936
5963
  return opt.address;
5937
5964
  }
5938
- if (_optionalChain([opt, 'optionalAccess', _172 => _172.kind]) === "connected" && opt.address) {
5965
+ if (_optionalChain([opt, 'optionalAccess', _176 => _176.kind]) === "connected" && opt.address) {
5939
5966
  return opt.address;
5940
5967
  }
5941
5968
  return null;
5942
5969
  }, [selectedWalletId, walletOptions]);
5943
5970
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5944
5971
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5945
- if (_optionalChain([reownWallet, 'optionalAccess', _173 => _173.address]) && reownWallet.isConnected) {
5972
+ if (_optionalChain([reownWallet, 'optionalAccess', _177 => _177.address]) && reownWallet.isConnected) {
5946
5973
  return reownWallet.address;
5947
5974
  }
5948
5975
  if (connectedWalletAddress) return connectedWalletAddress;
5949
5976
  return null;
5950
5977
  }, [
5951
5978
  selectedEvmWalletOwner,
5952
- _optionalChain([reownWallet, 'optionalAccess', _174 => _174.address]),
5953
- _optionalChain([reownWallet, 'optionalAccess', _175 => _175.isConnected]),
5979
+ _optionalChain([reownWallet, 'optionalAccess', _178 => _178.address]),
5980
+ _optionalChain([reownWallet, 'optionalAccess', _179 => _179.isConnected]),
5954
5981
  connectedWalletAddress
5955
5982
  ]);
5956
5983
  const activeOwner = _react.useMemo.call(void 0,
5957
5984
  () => resolveOwnerForMode(flowMode, {
5958
5985
  dappAddress,
5959
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _176 => _176.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5986
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _180 => _180.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5960
5987
  dappImportOwner
5961
5988
  }),
5962
5989
  [
5963
5990
  flowMode,
5964
5991
  dappAddress,
5965
- _optionalChain([signerContext, 'optionalAccess', _177 => _177.ownerAddress]),
5992
+ _optionalChain([signerContext, 'optionalAccess', _181 => _181.ownerAddress]),
5966
5993
  canAutoLock,
5967
5994
  connectedWalletAddress,
5968
5995
  selectedEvmWalletOwner,
@@ -5991,12 +6018,12 @@ function DepositFlow({
5991
6018
  return;
5992
6019
  }
5993
6020
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5994
- _optionalChain([onLifecycleRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179({
6021
+ _optionalChain([onLifecycleRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5995
6022
  type: "smart-account-changed",
5996
6023
  evm: activeEntry.smartAccount,
5997
6024
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5998
6025
  })]);
5999
- _optionalChain([onLifecycleRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
6026
+ _optionalChain([onLifecycleRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
6000
6027
  type: "connected",
6001
6028
  address: activeOwner,
6002
6029
  smartAccount: activeEntry.smartAccount
@@ -6042,7 +6069,7 @@ function DepositFlow({
6042
6069
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
6043
6070
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
6044
6071
  _react.useEffect.call(void 0, () => {
6045
- _optionalChain([onStepChangeRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183(currentBackHandler, currentScreen)]);
6072
+ _optionalChain([onStepChangeRef, 'access', _186 => _186.current, 'optionalCall', _187 => _187(currentBackHandler, currentScreen)]);
6046
6073
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
6047
6074
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
6048
6075
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -6052,7 +6079,7 @@ function DepositFlow({
6052
6079
  modalContentElRef.current = mc;
6053
6080
  const ro = new ResizeObserver((entries) => {
6054
6081
  for (const entry of entries) {
6055
- const border = _optionalChain([entry, 'access', _184 => _184.borderBoxSize, 'optionalAccess', _185 => _185[0], 'optionalAccess', _186 => _186.blockSize]);
6082
+ const border = _optionalChain([entry, 'access', _188 => _188.borderBoxSize, 'optionalAccess', _189 => _189[0], 'optionalAccess', _190 => _190.blockSize]);
6056
6083
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
6057
6084
  }
6058
6085
  });
@@ -6093,23 +6120,23 @@ function DepositFlow({
6093
6120
  }
6094
6121
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
6095
6122
  if (effectiveStep.type === "select-asset") {
6096
- _optionalChain([onEventRef, 'access', _187 => _187.current, 'optionalCall', _188 => _188({
6123
+ _optionalChain([onEventRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192({
6097
6124
  type: "deposit_modal_connected_wallet_select_source_open",
6098
6125
  total_balance_in_external_wallet: totalBalanceUsd,
6099
6126
  pred_balance: totalBalanceUsd
6100
6127
  })]);
6101
6128
  } else if (effectiveStep.type === "deposit-address") {
6102
- const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
6103
- const tokenSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6104
- _optionalChain([onEventRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190({
6129
+ const chainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain);
6130
+ const tokenSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6131
+ _optionalChain([onEventRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194({
6105
6132
  type: "deposit_modal_transfer_crypto_open",
6106
6133
  default_chain: chainName,
6107
6134
  default_token: tokenSymbol,
6108
6135
  pred_balance: totalBalanceUsd
6109
6136
  })]);
6110
6137
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6111
- const receiveSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6112
- _optionalChain([onEventRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192({
6138
+ const receiveSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6139
+ _optionalChain([onEventRef, 'access', _195 => _195.current, 'optionalCall', _196 => _196({
6113
6140
  type: "deposit_modal_connected_wallet_enter_value_open",
6114
6141
  send_token: stepSendToken,
6115
6142
  receive_token: receiveSymbol,
@@ -6142,7 +6169,7 @@ function DepositFlow({
6142
6169
  targetToken
6143
6170
  ]);
6144
6171
  _react.useEffect.call(void 0, () => {
6145
- _optionalChain([onLifecycleRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194({
6172
+ _optionalChain([onLifecycleRef, 'access', _197 => _197.current, 'optionalCall', _198 => _198({
6146
6173
  type: "balance-changed",
6147
6174
  totalUsd: totalBalanceUsd
6148
6175
  })]);
@@ -6158,7 +6185,7 @@ function DepositFlow({
6158
6185
  const handleConfirmWallet = _react.useCallback.call(void 0,
6159
6186
  (walletId) => {
6160
6187
  const selectedOption = walletOptions.find((o) => o.id === walletId);
6161
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _195 => _195.kind]) === "solana" ? "solana-wallet" : "wallet";
6188
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _199 => _199.kind]) === "solana" ? "solana-wallet" : "wallet";
6162
6189
  storeApi.dispatch({
6163
6190
  type: "connect/wallet-confirmed",
6164
6191
  walletId,
@@ -6168,7 +6195,7 @@ function DepositFlow({
6168
6195
  [walletOptions, enableSolana, storeApi]
6169
6196
  );
6170
6197
  const isSolanaWalletConnected = Boolean(
6171
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _196 => _196.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _197 => _197.isSolana])
6198
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _200 => _200.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _201 => _201.isSolana])
6172
6199
  );
6173
6200
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
6174
6201
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -6185,7 +6212,7 @@ function DepositFlow({
6185
6212
  const owner = dappImportOwner;
6186
6213
  if (owner) {
6187
6214
  const wallet = walletOptions.find(
6188
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _198 => _198.toLowerCase, 'call', _199 => _199()]) === owner.toLowerCase()
6215
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _202 => _202.toLowerCase, 'call', _203 => _203()]) === owner.toLowerCase()
6189
6216
  );
6190
6217
  if (wallet) {
6191
6218
  storeApi.dispatch({
@@ -6226,8 +6253,8 @@ function DepositFlow({
6226
6253
  eoa: dappImportOwner,
6227
6254
  getPublicClient: (chainId) => {
6228
6255
  try {
6229
- return _chunk7OKA6GNAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6230
- } catch (e32) {
6256
+ return _chunkDSXMWQYBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6257
+ } catch (e33) {
6231
6258
  return null;
6232
6259
  }
6233
6260
  },
@@ -6303,7 +6330,7 @@ function DepositFlow({
6303
6330
  }, [activeDappImportProviderId, enabledDappImportProviders]);
6304
6331
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
6305
6332
  if (!activeDappImportProviderId) return null;
6306
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _200 => _200.toLowerCase, 'call', _201 => _201()]) !== dappImportOwner.toLowerCase()) {
6333
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _204 => _204.toLowerCase, 'call', _205 => _205()]) !== dappImportOwner.toLowerCase()) {
6307
6334
  return null;
6308
6335
  }
6309
6336
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6344,7 +6371,7 @@ function DepositFlow({
6344
6371
  setup: setupSlice
6345
6372
  });
6346
6373
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6347
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _202 => _202.toLowerCase, 'call', _203 => _203()]) === dappImportOwner.toLowerCase()
6374
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _206 => _206.toLowerCase, 'call', _207 => _207()]) === dappImportOwner.toLowerCase()
6348
6375
  ), () => ( null)) : null;
6349
6376
  const outcome = resolveBootOutcome({
6350
6377
  status,
@@ -6386,7 +6413,7 @@ function DepositFlow({
6386
6413
  if (dappImportOwner) {
6387
6414
  const plan = bootRetryPlan({
6388
6415
  setupStatus: readSetupForOwner(snapshot.setup, dappImportOwner).status,
6389
- availabilityEntry: _optionalChain([snapshot, 'access', _204 => _204.dappImport, 'access', _205 => _205.availabilityOwner, 'optionalAccess', _206 => _206.toLowerCase, 'call', _207 => _207()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6416
+ availabilityEntry: _optionalChain([snapshot, 'access', _208 => _208.dappImport, 'access', _209 => _209.availabilityOwner, 'optionalAccess', _210 => _210.toLowerCase, 'call', _211 => _211()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6390
6417
  });
6391
6418
  if (plan.restartSetup) {
6392
6419
  storeApi.dispatch({
@@ -6467,7 +6494,7 @@ function DepositFlow({
6467
6494
  swappedUrlPrefetchRef.current.clear();
6468
6495
  }, [dappAddress]);
6469
6496
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6470
- _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6497
+ _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6471
6498
  type: "smart-account-changed",
6472
6499
  evm: null,
6473
6500
  solana: null
@@ -6513,13 +6540,13 @@ function DepositFlow({
6513
6540
  };
6514
6541
  push(dappAddress);
6515
6542
  push(connectedWalletAddress);
6516
- push(_optionalChain([reownWallet, 'optionalAccess', _210 => _210.address]));
6543
+ push(_optionalChain([reownWallet, 'optionalAccess', _214 => _214.address]));
6517
6544
  push(dappImportOwner);
6518
6545
  return owners;
6519
6546
  }, [
6520
6547
  dappAddress,
6521
6548
  connectedWalletAddress,
6522
- _optionalChain([reownWallet, 'optionalAccess', _211 => _211.address]),
6549
+ _optionalChain([reownWallet, 'optionalAccess', _215 => _215.address]),
6523
6550
  dappImportOwner
6524
6551
  ]);
6525
6552
  _react.useEffect.call(void 0, () => {
@@ -6533,7 +6560,7 @@ function DepositFlow({
6533
6560
  try {
6534
6561
  sessionOwner = await resolveSessionOwner(owner);
6535
6562
  } catch (error) {
6536
- _chunk7OKA6GNAcjs.debugError.call(void 0,
6563
+ _chunkDSXMWQYBcjs.debugError.call(void 0,
6537
6564
  debug,
6538
6565
  "deposit-flow",
6539
6566
  "session-owner:resolve-failed",
@@ -6640,11 +6667,11 @@ function DepositFlow({
6640
6667
  return;
6641
6668
  }
6642
6669
  storeApi.dispatch({ type: "portfolio/loading", network, address });
6643
- const requestId = _optionalChain([readPortfolioEntry, 'call', _212 => _212(
6670
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _216 => _216(
6644
6671
  storeApi.getState().portfolio,
6645
6672
  network,
6646
6673
  address
6647
- ), 'optionalAccess', _213 => _213.requestId]);
6674
+ ), 'optionalAccess', _217 => _217.requestId]);
6648
6675
  if (requestId === void 0) return;
6649
6676
  void (async () => {
6650
6677
  try {
@@ -6658,7 +6685,7 @@ function DepositFlow({
6658
6685
  requestId,
6659
6686
  totalUsd: portfolio.totalUsd
6660
6687
  });
6661
- } catch (e33) {
6688
+ } catch (e34) {
6662
6689
  storeApi.dispatch({
6663
6690
  type: "portfolio/failed",
6664
6691
  network,
@@ -6676,7 +6703,7 @@ function DepositFlow({
6676
6703
  sourceChain: data.sourceChain,
6677
6704
  amount: data.amount
6678
6705
  });
6679
- _optionalChain([onLifecycleRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({ type: "submitted", ...data })]);
6706
+ _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({ type: "submitted", ...data })]);
6680
6707
  },
6681
6708
  [logFlow, onLifecycleRef]
6682
6709
  );
@@ -6695,8 +6722,8 @@ function DepositFlow({
6695
6722
  );
6696
6723
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6697
6724
  (token, sourceAmount, inputAmountUsd) => {
6698
- const targetSym = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6699
- const isTargetStable = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSym);
6725
+ const targetSym = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6726
+ const isTargetStable = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, targetSym);
6700
6727
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6701
6728
  logFlow("solana:amount:continue", {
6702
6729
  token: token.symbol,
@@ -6736,7 +6763,7 @@ function DepositFlow({
6736
6763
  sourceDecimals: tokenAtSubmit.decimals,
6737
6764
  inputAmountUsd: amountUsd
6738
6765
  });
6739
- _optionalChain([onLifecycleRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217({
6766
+ _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({
6740
6767
  type: "submitted",
6741
6768
  txHash,
6742
6769
  sourceChain: "solana",
@@ -6749,7 +6776,7 @@ function DepositFlow({
6749
6776
  );
6750
6777
  const handleAssetContinue = _react.useCallback.call(void 0,
6751
6778
  (asset) => {
6752
- _optionalChain([onEventRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6779
+ _optionalChain([onEventRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({
6753
6780
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6754
6781
  total_balance_in_external_wallet: totalBalanceUsd,
6755
6782
  pred_balance: totalBalanceUsd,
@@ -6772,8 +6799,8 @@ function DepositFlow({
6772
6799
  activeOwner
6773
6800
  );
6774
6801
  if (entry.status !== "ready") return;
6775
- const targetSym = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6776
- const isTargetStable = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSym);
6802
+ const targetSym = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6803
+ const isTargetStable = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, targetSym);
6777
6804
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6778
6805
  storeApi.dispatch({
6779
6806
  type: "amount/entered",
@@ -6803,8 +6830,8 @@ function DepositFlow({
6803
6830
  sourceChain: chainId,
6804
6831
  sourceToken: token,
6805
6832
  amount,
6806
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _220 => _220.symbol]),
6807
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _221 => _221.decimals]),
6833
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _224 => _224.symbol]),
6834
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _225 => _225.decimals]),
6808
6835
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6809
6836
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken),
6810
6837
  quoteFeeBreakdown
@@ -6840,7 +6867,7 @@ function DepositFlow({
6840
6867
  swappedContext,
6841
6868
  initialEvent: info.initialEvent
6842
6869
  });
6843
- _optionalChain([onLifecycleRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({
6870
+ _optionalChain([onLifecycleRef, 'access', _226 => _226.current, 'optionalCall', _227 => _227({
6844
6871
  type: "submitted",
6845
6872
  txHash: info.txHash,
6846
6873
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6868,12 +6895,12 @@ function DepositFlow({
6868
6895
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6869
6896
  (txHash, sourceChain, amount) => {
6870
6897
  const depositAtSubmit = storeApi.getState().deposit;
6871
- _optionalChain([onLifecycleRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225({
6898
+ _optionalChain([onLifecycleRef, 'access', _228 => _228.current, 'optionalCall', _229 => _229({
6872
6899
  type: "submitted",
6873
6900
  txHash,
6874
6901
  sourceChain,
6875
6902
  amount,
6876
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _226 => _226.selectedAsset, 'optionalAccess', _227 => _227.decimals]),
6903
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _230 => _230.selectedAsset, 'optionalAccess', _231 => _231.decimals]),
6877
6904
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6878
6905
  })]);
6879
6906
  },
@@ -6882,7 +6909,7 @@ function DepositFlow({
6882
6909
  const handleDepositComplete = _react.useCallback.call(void 0,
6883
6910
  (txHash, destinationTxHash, context) => {
6884
6911
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6885
- _optionalChain([onLifecycleRef, 'access', _228 => _228.current, 'optionalCall', _229 => _229({
6912
+ _optionalChain([onLifecycleRef, 'access', _232 => _232.current, 'optionalCall', _233 => _233({
6886
6913
  type: "complete",
6887
6914
  txHash,
6888
6915
  destinationTxHash,
@@ -6894,14 +6921,14 @@ function DepositFlow({
6894
6921
  const handleDepositFailed = _react.useCallback.call(void 0,
6895
6922
  (txHash, error) => {
6896
6923
  logFlowError("deposit:failed", error, { txHash });
6897
- _optionalChain([onLifecycleRef, 'access', _230 => _230.current, 'optionalCall', _231 => _231({ type: "failed", txHash, error })]);
6924
+ _optionalChain([onLifecycleRef, 'access', _234 => _234.current, 'optionalCall', _235 => _235({ type: "failed", txHash, error })]);
6898
6925
  },
6899
6926
  [logFlowError, onLifecycleRef]
6900
6927
  );
6901
6928
  const handleError = _react.useCallback.call(void 0,
6902
6929
  (message, code) => {
6903
6930
  logFlowError("flow:error", message, { code });
6904
- _optionalChain([onErrorRef, 'access', _232 => _232.current, 'optionalCall', _233 => _233({ message, code })]);
6931
+ _optionalChain([onErrorRef, 'access', _236 => _236.current, 'optionalCall', _237 => _237({ message, code })]);
6905
6932
  },
6906
6933
  [logFlowError, onErrorRef]
6907
6934
  );
@@ -6959,8 +6986,8 @@ function DepositFlow({
6959
6986
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
6960
6987
  state,
6961
6988
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
6962
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _234 => _234.status]), () => ( "loading")),
6963
- balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _235 => _235.status]) === "ready" ? portfolioEntry.totalUsd : null
6989
+ balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _238 => _238.status]), () => ( "loading")),
6990
+ balanceUsd: _optionalChain([portfolioEntry, 'optionalAccess', _239 => _239.status]) === "ready" ? portfolioEntry.totalUsd : null
6964
6991
  };
6965
6992
  });
6966
6993
  }, [walletOptions, setupSlice, dappAddress, portfolioSlice]);
@@ -6977,9 +7004,11 @@ function DepositFlow({
6977
7004
  );
6978
7005
  if (showConnectStep) {
6979
7006
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6980
- _chunk7OKA6GNAcjs.ConnectStep,
7007
+ _chunkDSXMWQYBcjs.ConnectStep,
6981
7008
  {
6982
7009
  walletRows,
7010
+ defaultMethodTab: flowSlice.methodTab,
7011
+ onMethodTabChange: (tab) => storeApi.dispatch({ type: "connect/method-tab-changed", tab }),
6983
7012
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
6984
7013
  transferCryptoErrorReason: dappAddress ? _nullishCoalesce(transferCryptoEntry.message, () => ( void 0)) : void 0,
6985
7014
  onSelectTransferCrypto: enableQrTransfer && dappAddress ? () => {
@@ -7010,7 +7039,7 @@ function DepositFlow({
7010
7039
  },
7011
7040
  dappImports: connectStepDappImports,
7012
7041
  onSelectDappImport: (providerId) => {
7013
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _236 => _236.toLowerCase, 'call', _237 => _237()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
7042
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _240 => _240.toLowerCase, 'call', _241 => _241()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
7014
7043
  if (availabilityEntry === "error") {
7015
7044
  storeApi.dispatch({
7016
7045
  type: "dapp-import/availability-retry-requested"
@@ -7061,9 +7090,9 @@ function DepositFlow({
7061
7090
  onDepositComplete: handleDepositComplete,
7062
7091
  onDepositFailed: handleDepositFailed,
7063
7092
  onCopyAddress: () => {
7064
- const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
7065
- const tokenSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7066
- _optionalChain([onEvent, 'optionalCall', _238 => _238({
7093
+ const chainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain);
7094
+ const tokenSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7095
+ _optionalChain([onEvent, 'optionalCall', _242 => _242({
7067
7096
  type: "deposit_modal_transfer_crypto_cta_click",
7068
7097
  default_chain: chainName,
7069
7098
  default_token: tokenSymbol,
@@ -7110,7 +7139,7 @@ function DepositFlow({
7110
7139
  }
7111
7140
  ),
7112
7141
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7113
- _chunk7OKA6GNAcjs.ProcessingStep,
7142
+ _chunkDSXMWQYBcjs.ProcessingStep,
7114
7143
  {
7115
7144
  smartAccount: step.smartAccount,
7116
7145
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7182,7 +7211,7 @@ function DepositFlow({
7182
7211
  }
7183
7212
  ),
7184
7213
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7185
- _chunk7OKA6GNAcjs.ProcessingStep,
7214
+ _chunkDSXMWQYBcjs.ProcessingStep,
7186
7215
  {
7187
7216
  smartAccount: step.smartAccount,
7188
7217
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7216,8 +7245,8 @@ function DepositFlow({
7216
7245
  }
7217
7246
  if (isSolanaWalletMode) {
7218
7247
  if (!dappAddress) return null;
7219
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _239 => _239.solanaAddress]);
7220
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _240 => _240.solanaProvider]);
7248
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _243 => _243.solanaAddress]);
7249
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _244 => _244.solanaProvider]);
7221
7250
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7222
7251
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7223
7252
  AccountPreparingSkeleton,
@@ -7249,8 +7278,8 @@ function DepositFlow({
7249
7278
  defaultAmount: effectiveStep.inputAmountUsd,
7250
7279
  uiConfig,
7251
7280
  targetChain,
7252
- targetChainName: _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain),
7253
- targetTokenSymbol: _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7281
+ targetChainName: _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain),
7282
+ targetTokenSymbol: _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7254
7283
  appBalanceUsd,
7255
7284
  onContinue: handleSolanaAmountContinue,
7256
7285
  debug
@@ -7271,7 +7300,7 @@ function DepositFlow({
7271
7300
  targetToken,
7272
7301
  service,
7273
7302
  solanaProvider,
7274
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _241 => _241.solanaConnection]),
7303
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _245 => _245.solanaConnection]),
7275
7304
  uiConfig,
7276
7305
  onConfirm: handleSolanaConfirmed,
7277
7306
  onError: handleError,
@@ -7312,7 +7341,7 @@ function DepositFlow({
7312
7341
  ) })
7313
7342
  ] }) : null,
7314
7343
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7315
- _chunk7OKA6GNAcjs.ProcessingStep,
7344
+ _chunkDSXMWQYBcjs.ProcessingStep,
7316
7345
  {
7317
7346
  smartAccount: effectiveStep.smartAccount,
7318
7347
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7349,7 +7378,7 @@ function DepositFlow({
7349
7378
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7350
7379
  DappImportAssetSelectSkeleton,
7351
7380
  {
7352
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _242 => _242.sourceLabel]), () => ( "")),
7381
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _246 => _246.sourceLabel]), () => ( "")),
7353
7382
  error: dappImportBootError,
7354
7383
  onRetry: handleBootRetry
7355
7384
  }
@@ -7357,16 +7386,16 @@ function DepositFlow({
7357
7386
  }
7358
7387
  );
7359
7388
  }
7360
- if (!_optionalChain([signerContext, 'optionalAccess', _243 => _243.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _244 => _244.publicClient])) {
7389
+ if (!_optionalChain([signerContext, 'optionalAccess', _247 => _247.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _248 => _248.publicClient])) {
7361
7390
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-state", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: "Connecting wallet\u2026" }) }) }) }) });
7362
7391
  }
7363
7392
  const ownerAddress = signerContext.ownerAddress;
7364
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _245 => _245.walletClient, 'optionalAccess', _246 => _246.chain, 'optionalAccess', _247 => _247.id]), () => ( _optionalChain([signerContext, 'access', _248 => _248.publicClient, 'access', _249 => _249.chain, 'optionalAccess', _250 => _250.id]))), () => ( setupChainId));
7393
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _249 => _249.walletClient, 'optionalAccess', _250 => _250.chain, 'optionalAccess', _251 => _251.id]), () => ( _optionalChain([signerContext, 'access', _252 => _252.publicClient, 'access', _253 => _253.chain, 'optionalAccess', _254 => _254.id]))), () => ( setupChainId));
7365
7394
  const getReadClientForChain = (chainId) => {
7366
- if (_optionalChain([signerContext, 'access', _251 => _251.publicClient, 'access', _252 => _252.chain, 'optionalAccess', _253 => _253.id]) === chainId) {
7395
+ if (_optionalChain([signerContext, 'access', _255 => _255.publicClient, 'access', _256 => _256.chain, 'optionalAccess', _257 => _257.id]) === chainId) {
7367
7396
  return signerContext.publicClient;
7368
7397
  }
7369
- return _chunk7OKA6GNAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7398
+ return _chunkDSXMWQYBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7370
7399
  };
7371
7400
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7372
7401
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7396,7 +7425,7 @@ function DepositFlow({
7396
7425
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7397
7426
  DappImportAssetSelectStep,
7398
7427
  {
7399
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _254 => _254.assets, 'access', _255 => _255[0], 'optionalAccess', _256 => _256.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
7428
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _258 => _258.assets, 'access', _259 => _259[0], 'optionalAccess', _260 => _260.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
7400
7429
  assets: activeDappImportAvailability.assets,
7401
7430
  onSelect: handleDappImportAssetSelected
7402
7431
  }
@@ -7422,8 +7451,8 @@ function DepositFlow({
7422
7451
  service,
7423
7452
  onContinue: handleAmountContinue,
7424
7453
  onCtaClick: (ctaName) => {
7425
- const receiveSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7426
- _optionalChain([onEvent, 'optionalCall', _257 => _257({
7454
+ const receiveSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7455
+ _optionalChain([onEvent, 'optionalCall', _261 => _261({
7427
7456
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7428
7457
  send_token: effectiveStep.asset.symbol,
7429
7458
  receive_token: receiveSymbol,
@@ -7475,7 +7504,7 @@ function DepositFlow({
7475
7504
  }
7476
7505
  ),
7477
7506
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7478
- _chunk7OKA6GNAcjs.ProcessingStep,
7507
+ _chunkDSXMWQYBcjs.ProcessingStep,
7479
7508
  {
7480
7509
  smartAccount: effectiveStep.smartAccount,
7481
7510
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7521,16 +7550,16 @@ function formatDate(iso) {
7521
7550
  month: "short",
7522
7551
  year: "numeric"
7523
7552
  });
7524
- } catch (e34) {
7553
+ } catch (e35) {
7525
7554
  return iso;
7526
7555
  }
7527
7556
  }
7528
7557
  function resolveChainId(value) {
7529
7558
  if (value === void 0 || value === null) return null;
7530
7559
  if (typeof value === "number") return value;
7531
- if (_chunkU7SVYWVDcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7532
- if (_chunkU7SVYWVDcjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7533
- const parsed = _chunkU7SVYWVDcjs.parseEvmChainId.call(void 0, value);
7560
+ if (_chunkP5T4XSN2cjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7561
+ if (_chunkP5T4XSN2cjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7562
+ const parsed = _chunkP5T4XSN2cjs.parseEvmChainId.call(void 0, value);
7534
7563
  if (parsed !== null) return parsed;
7535
7564
  const num = Number(value);
7536
7565
  return Number.isFinite(num) ? num : null;
@@ -7539,7 +7568,7 @@ function resolveTokenSymbol(token, chainId) {
7539
7568
  if (!token) return "";
7540
7569
  if (chainId === "solana") {
7541
7570
  const normalized = token.toLowerCase();
7542
- const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
7571
+ const matched = _chunkP5T4XSN2cjs.SOLANA_TOKENS.find(
7543
7572
  (entry) => entry.mint.toLowerCase() === normalized
7544
7573
  );
7545
7574
  if (matched) return matched.symbol;
@@ -7548,8 +7577,8 @@ function resolveTokenSymbol(token, chainId) {
7548
7577
  }
7549
7578
  }
7550
7579
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7551
- const evmChainId = chainId === "hypercore" ? _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID : chainId;
7552
- const sym = _chunkU7SVYWVDcjs.getTokenSymbol.call(void 0, token, evmChainId);
7580
+ const evmChainId = chainId === "hypercore" ? _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID : chainId;
7581
+ const sym = _chunkP5T4XSN2cjs.getTokenSymbol.call(void 0, token, evmChainId);
7553
7582
  if (sym !== "Token") return sym;
7554
7583
  }
7555
7584
  return shortenHash(token);
@@ -7560,7 +7589,7 @@ function formatAmount(rawAmount, token, chainId) {
7560
7589
  if (token && chainId !== null && chainId !== void 0) {
7561
7590
  if (chainId === "solana") {
7562
7591
  const normalized = token.toLowerCase();
7563
- const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
7592
+ const matched = _chunkP5T4XSN2cjs.SOLANA_TOKENS.find(
7564
7593
  (entry) => entry.mint.toLowerCase() === normalized
7565
7594
  );
7566
7595
  if (matched) {
@@ -7569,8 +7598,8 @@ function formatAmount(rawAmount, token, chainId) {
7569
7598
  decimals = 9;
7570
7599
  }
7571
7600
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7572
- const evmChainId = chainId === "hypercore" ? _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID : chainId;
7573
- decimals = _chunkU7SVYWVDcjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
7601
+ const evmChainId = chainId === "hypercore" ? _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID : chainId;
7602
+ decimals = _chunkP5T4XSN2cjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
7574
7603
  }
7575
7604
  }
7576
7605
  try {
@@ -7582,13 +7611,13 @@ function formatAmount(rawAmount, token, chainId) {
7582
7611
  let frac = fracStr.slice(0, 5).replace(/0+$/, "");
7583
7612
  if (frac.length < 2) frac = frac.padEnd(2, "0");
7584
7613
  return `${whole}.${frac}`;
7585
- } catch (e35) {
7614
+ } catch (e36) {
7586
7615
  return rawAmount;
7587
7616
  }
7588
7617
  }
7589
7618
  function getTxExplorerUrl(txHash, chainId) {
7590
7619
  if (!chainId) return null;
7591
- const base2 = _chunkU7SVYWVDcjs.getExplorerUrl.call(void 0, chainId);
7620
+ const base2 = _chunkP5T4XSN2cjs.getExplorerUrl.call(void 0, chainId);
7592
7621
  if (!base2) return null;
7593
7622
  return `${base2}/tx/${txHash}`;
7594
7623
  }
@@ -7631,7 +7660,7 @@ function DepositHistoryPanel({
7631
7660
  );
7632
7661
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7633
7662
  const sourceHashes = new Set(
7634
- deposits.map((d) => _optionalChain([d, 'access', _258 => _258.sourceTxHash, 'optionalAccess', _259 => _259.toLowerCase, 'call', _260 => _260()])).filter((h) => Boolean(h))
7663
+ deposits.map((d) => _optionalChain([d, 'access', _262 => _262.sourceTxHash, 'optionalAccess', _263 => _263.toLowerCase, 'call', _264 => _264()])).filter((h) => Boolean(h))
7635
7664
  );
7636
7665
  return deposits.filter(
7637
7666
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7653,7 +7682,7 @@ function DepositHistoryPanel({
7653
7682
  className: "rs-modal-header-back",
7654
7683
  "aria-label": "Back",
7655
7684
  onClick: onClose,
7656
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronLeftIcon, {})
7685
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronLeftIcon, {})
7657
7686
  }
7658
7687
  ) }),
7659
7688
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7663,29 +7692,29 @@ function DepositHistoryPanel({
7663
7692
  className: "rs-modal-close",
7664
7693
  "aria-label": "Close",
7665
7694
  onClick: onCloseModal,
7666
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
7695
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {})
7667
7696
  }
7668
7697
  ) })
7669
7698
  ] }),
7670
7699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7671
7700
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7672
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}), title: "History" }),
7701
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HistoryIcon, {}), title: "History" }),
7673
7702
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7674
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}) }),
7703
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HistoryIcon, {}) }),
7675
7704
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7676
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-spinner--sm" }),
7705
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, { className: "rs-spinner--sm" }),
7677
7706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7678
7707
  ] })
7679
7708
  ] }),
7680
7709
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7681
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.AlertTriangleIcon, {}) }),
7710
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.AlertTriangleIcon, {}) }),
7682
7711
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7683
7712
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7684
7713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7685
7714
  ] })
7686
7715
  ] }),
7687
7716
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7688
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}) }),
7717
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HistoryIcon, {}) }),
7689
7718
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7690
7719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7691
7720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7705,7 +7734,7 @@ function DepositHistoryPanel({
7705
7734
  )
7706
7735
  ] })
7707
7736
  ] }),
7708
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
7737
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
7709
7738
  ] })
7710
7739
  ]
7711
7740
  }
@@ -7716,10 +7745,10 @@ function HistoryCard({ deposit }) {
7716
7745
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7717
7746
  const sourceChainId = resolveChainId(deposit.chain);
7718
7747
  const targetChainId = resolveChainId(deposit.targetChain);
7719
- const sourceChainName = sourceChainId ? _chunkU7SVYWVDcjs.getChainName.call(void 0, sourceChainId) : null;
7720
- const targetChainName = targetChainId ? _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChainId) : null;
7721
- const sourceChainIcon = sourceChainId ? _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7722
- const targetChainIcon = targetChainId ? _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7748
+ const sourceChainName = sourceChainId ? _chunkP5T4XSN2cjs.getChainName.call(void 0, sourceChainId) : null;
7749
+ const targetChainName = targetChainId ? _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChainId) : null;
7750
+ const sourceChainIcon = sourceChainId ? _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7751
+ const targetChainIcon = targetChainId ? _chunkP5T4XSN2cjs.getChainIcon.call(void 0, targetChainId) : void 0;
7723
7752
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7724
7753
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7725
7754
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
@@ -7741,7 +7770,7 @@ function HistoryCard({ deposit }) {
7741
7770
  children: [
7742
7771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
7743
7772
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
7744
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
7773
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
7745
7774
  sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
7746
7775
  ] }),
7747
7776
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
@@ -7780,7 +7809,7 @@ function HistoryCard({ deposit }) {
7780
7809
  onClick: (e) => e.stopPropagation(),
7781
7810
  children: [
7782
7811
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
7783
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ArrowUpRightIcon, {})
7812
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ArrowUpRightIcon, {})
7784
7813
  ]
7785
7814
  }
7786
7815
  )
@@ -7795,7 +7824,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7795
7824
  // src/DepositModal.tsx
7796
7825
 
7797
7826
  var ReownDepositInner = _react.lazy.call(void 0,
7798
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-UND3DEJH.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7827
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-A2W6R27Q.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7799
7828
  );
7800
7829
  function sortByCreatedAtDesc(items) {
7801
7830
  return [...items].sort((a, b) => {
@@ -7844,9 +7873,9 @@ function DepositModalInner({
7844
7873
  defaultAmount,
7845
7874
  recipient,
7846
7875
  appBalanceUsd,
7847
- backendUrl = _chunkU7SVYWVDcjs.DEFAULT_BACKEND_URL,
7876
+ backendUrl = _chunkP5T4XSN2cjs.DEFAULT_BACKEND_URL,
7848
7877
  rpcUrls: rpcUrlsProp,
7849
- signerAddress = _chunkU7SVYWVDcjs.DEFAULT_SIGNER_ADDRESS,
7878
+ signerAddress = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS,
7850
7879
  sessionChainIds,
7851
7880
  forceRegister = false,
7852
7881
  enableSolana = true,
@@ -7873,13 +7902,13 @@ function DepositModalInner({
7873
7902
  debug
7874
7903
  }) {
7875
7904
  const modalRef = _react.useRef.call(void 0, null);
7876
- const onReadyRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onReady);
7905
+ const onReadyRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onReady);
7877
7906
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7878
7907
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
7879
7908
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7880
7909
  void 0
7881
7910
  );
7882
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showHistoryButton]), () => ( false));
7911
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _265 => _265.showHistoryButton]), () => ( false));
7883
7912
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7884
7913
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7885
7914
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7890,23 +7919,23 @@ function DepositModalInner({
7890
7919
  const cursorRef = _react.useRef.call(void 0, null);
7891
7920
  const historyStaleRef = _react.useRef.call(void 0, false);
7892
7921
  const historyLoadedRef = _react.useRef.call(void 0, false);
7893
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkU7SVYWVDcjs.getChainId.call(void 0, targetChainProp);
7894
- const sourceChain = sourceChainProp ? _chunkU7SVYWVDcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7895
- const rpcUrls = _chunk7OKA6GNAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7922
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkP5T4XSN2cjs.getChainId.call(void 0, targetChainProp);
7923
+ const sourceChain = sourceChainProp ? _chunkP5T4XSN2cjs.getChainId.call(void 0, sourceChainProp) : void 0;
7924
+ const rpcUrls = _chunkDSXMWQYBcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7896
7925
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7897
- const onErrorRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onError);
7926
+ const onErrorRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onError);
7898
7927
  _react.useEffect.call(void 0, () => {
7899
- if (targetChain !== _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7928
+ if (targetChain !== _chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7900
7929
  setRecipientIsContract(false);
7901
7930
  return;
7902
7931
  }
7903
7932
  let cancelled = false;
7904
- _chunk7OKA6GNAcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7933
+ _chunkDSXMWQYBcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7905
7934
  if (cancelled) return;
7906
- const isContract = _chunkU7SVYWVDcjs.isContractBytecode.call(void 0, code);
7935
+ const isContract = _chunkP5T4XSN2cjs.isContractBytecode.call(void 0, code);
7907
7936
  setRecipientIsContract(isContract);
7908
7937
  if (isContract) {
7909
- _optionalChain([onErrorRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
7938
+ _optionalChain([onErrorRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267({
7910
7939
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7911
7940
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7912
7941
  })]);
@@ -7919,7 +7948,7 @@ function DepositModalInner({
7919
7948
  };
7920
7949
  }, [targetChain, recipient, onErrorRef, rpcUrls]);
7921
7950
  const service = _react.useMemo.call(void 0,
7922
- () => _chunk7OKA6GNAcjs.createDepositService.call(void 0, backendUrl, {
7951
+ () => _chunkDSXMWQYBcjs.createDepositService.call(void 0, backendUrl, {
7923
7952
  debug,
7924
7953
  debugScope: "service:deposit"
7925
7954
  }),
@@ -7953,12 +7982,12 @@ function DepositModalInner({
7953
7982
  }, [store, targetChain, targetToken]);
7954
7983
  _react.useEffect.call(void 0, () => {
7955
7984
  if (isOpen && modalRef.current) {
7956
- _chunk7OKA6GNAcjs.applyTheme.call(void 0, modalRef.current, theme);
7985
+ _chunkDSXMWQYBcjs.applyTheme.call(void 0, modalRef.current, theme);
7957
7986
  }
7958
7987
  }, [isOpen, theme]);
7959
7988
  _react.useEffect.call(void 0, () => {
7960
7989
  if (isOpen) {
7961
- _optionalChain([onReadyRef, 'access', _264 => _264.current, 'optionalCall', _265 => _265()]);
7990
+ _optionalChain([onReadyRef, 'access', _268 => _268.current, 'optionalCall', _269 => _269()]);
7962
7991
  }
7963
7992
  }, [isOpen, onReadyRef]);
7964
7993
  const handleStepChange = _react.useCallback.call(void 0,
@@ -8034,10 +8063,10 @@ function DepositModalInner({
8034
8063
  fetchHistory("initial");
8035
8064
  }
8036
8065
  }, [historyOpen, fetchHistory]);
8037
- const onLifecycleRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onLifecycle);
8066
+ const onLifecycleRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onLifecycle);
8038
8067
  const handleLifecycle = _react.useCallback.call(void 0,
8039
8068
  (event) => {
8040
- _optionalChain([onLifecycleRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267(event)]);
8069
+ _optionalChain([onLifecycleRef, 'access', _270 => _270.current, 'optionalCall', _271 => _271(event)]);
8041
8070
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
8042
8071
  historyStaleRef.current = true;
8043
8072
  }
@@ -8066,12 +8095,12 @@ function DepositModalInner({
8066
8095
  store.dispatch({ type: "flow/reset" });
8067
8096
  }
8068
8097
  }, [isOpen, store]);
8069
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _268 => _268.showBackButton]), () => ( true));
8098
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _272 => _272.showBackButton]), () => ( true));
8070
8099
  const canGoBack = backHandler !== void 0;
8071
8100
  const hideHeaderChrome = swappedImmersive;
8072
8101
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8073
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8074
- _chunk7OKA6GNAcjs.Modal,
8102
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8103
+ _chunkDSXMWQYBcjs.Modal,
8075
8104
  {
8076
8105
  isOpen,
8077
8106
  onClose,
@@ -8087,7 +8116,7 @@ function DepositModalInner({
8087
8116
  className: "rs-modal-header-back",
8088
8117
  "aria-label": "Go back",
8089
8118
  onClick: backHandler,
8090
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronLeftIcon, {})
8119
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronLeftIcon, {})
8091
8120
  }
8092
8121
  ) }),
8093
8122
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8099,7 +8128,7 @@ function DepositModalInner({
8099
8128
  "aria-label": "Deposit history",
8100
8129
  onClick: handleHistoryOpen,
8101
8130
  disabled: !recipient,
8102
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {})
8131
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HistoryIcon, {})
8103
8132
  }
8104
8133
  ),
8105
8134
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8109,12 +8138,12 @@ function DepositModalInner({
8109
8138
  onClick: onClose,
8110
8139
  className: "rs-modal-close",
8111
8140
  "aria-label": "Close",
8112
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
8141
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {})
8113
8142
  }
8114
8143
  )
8115
8144
  ] })
8116
8145
  ] }),
8117
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8146
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8118
8147
  DepositFlow,
8119
8148
  {
8120
8149
  dappWalletClient,