@rhinestone/deposit-modal 0.8.0 → 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-J5YFZKFS.cjs → DepositModalReown-A2W6R27Q.cjs} +9 -9
  2. package/dist/{DepositModalReown-RZ6VSMKP.mjs → DepositModalReown-IB5WUXVT.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-4YUV2WWV.mjs → WithdrawModalReown-A4S4BJHG.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-B6BGY52S.cjs → WithdrawModalReown-KUWNNA2X.cjs} +8 -8
  5. package/dist/{chunk-SX52FXKH.mjs → chunk-2O2FJYRY.mjs} +8 -1
  6. package/dist/{chunk-JRFPKFL6.cjs → chunk-3WIHTUQ6.cjs} +105 -98
  7. package/dist/{chunk-XLXJW44N.cjs → chunk-46BRQZ2P.cjs} +500 -458
  8. package/dist/{chunk-LXTAAHPC.mjs → chunk-4BLOPOVO.mjs} +2 -2
  9. package/dist/{chunk-VURI4G2Z.cjs → chunk-5E67UM3V.cjs} +7 -7
  10. package/dist/{chunk-IRI34U6N.cjs → chunk-DSXMWQYB.cjs} +262 -139
  11. package/dist/{chunk-5S5BQ2GM.mjs → chunk-KGZU3BL2.mjs} +59 -17
  12. package/dist/{chunk-4IOQIWDY.cjs → chunk-ORKEBFMR.cjs} +4 -4
  13. package/dist/{chunk-PUMTR35E.cjs → chunk-P5T4XSN2.cjs} +9 -2
  14. package/dist/{chunk-YLIPI3NU.mjs → chunk-RARNNVZO.mjs} +1 -1
  15. package/dist/{chunk-TYB6AA6D.mjs → chunk-RH6XQHMA.mjs} +1 -1
  16. package/dist/{chunk-RXWJ267K.mjs → chunk-TUSEN26M.mjs} +172 -49
  17. package/dist/{chunk-WL7AXYQ4.cjs → chunk-UNVVUULP.cjs} +3 -3
  18. package/dist/{chunk-7JJ4EFDY.mjs → chunk-XK5RH4FZ.mjs} +12 -5
  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 +147 -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 _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
10
+ var _chunkORKEBFMRcjs = require('./chunk-ORKEBFMR.cjs');
11
11
 
12
12
 
13
13
 
@@ -69,13 +69,13 @@ var _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
69
69
 
70
70
 
71
71
 
72
- var _chunkIRI34U6Ncjs = require('./chunk-IRI34U6N.cjs');
73
72
 
74
73
 
75
- var _chunkWL7AXYQ4cjs = require('./chunk-WL7AXYQ4.cjs');
76
74
 
75
+ var _chunkDSXMWQYBcjs = require('./chunk-DSXMWQYB.cjs');
77
76
 
78
77
 
78
+ var _chunkUNVVUULPcjs = require('./chunk-UNVVUULP.cjs');
79
79
 
80
80
 
81
81
 
@@ -104,7 +104,10 @@ var _chunkWL7AXYQ4cjs = require('./chunk-WL7AXYQ4.cjs');
104
104
 
105
105
 
106
106
 
107
- var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
107
+
108
+
109
+
110
+ var _chunkP5T4XSN2cjs = require('./chunk-P5T4XSN2.cjs');
108
111
 
109
112
  // src/DepositModal.tsx
110
113
 
@@ -149,12 +152,12 @@ function AssetSelectStep({
149
152
  const [error, setError] = _react.useState.call(void 0, null);
150
153
  const defaultAssetId = _react.useMemo.call(void 0, () => {
151
154
  if (!defaultSourceChain || !defaultSourceToken) return null;
152
- return _chunkIRI34U6Ncjs.getAssetId.call(void 0, {
155
+ return _chunkDSXMWQYBcjs.getAssetId.call(void 0, {
153
156
  chainId: defaultSourceChain,
154
157
  token: defaultSourceToken
155
158
  });
156
159
  }, [defaultSourceChain, defaultSourceToken]);
157
- const onTotalBalanceComputedRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onTotalBalanceComputed);
160
+ const onTotalBalanceComputedRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
158
161
  _react.useEffect.call(void 0, () => {
159
162
  let active = true;
160
163
  function emitAssetsUpdate(currentAssets) {
@@ -174,11 +177,11 @@ function AssetSelectStep({
174
177
  try {
175
178
  const portfolio = await service.fetchPortfolio(address);
176
179
  if (!active) return;
177
- const portfolioAssets = _chunkIRI34U6Ncjs.portfolioToAssets.call(void 0, portfolio.tokens);
180
+ const portfolioAssets = _chunkDSXMWQYBcjs.portfolioToAssets.call(void 0, portfolio.tokens);
178
181
  setAssets(portfolioAssets);
179
182
  emitAssetsUpdate(portfolioAssets);
180
183
  const hasNative = portfolioAssets.some(
181
- (asset) => asset.token.toLowerCase() === _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS
184
+ (asset) => asset.token.toLowerCase() === _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS
182
185
  );
183
186
  if (!hasNative) {
184
187
  const nativeAssets = await fetchNativeAssets(
@@ -225,9 +228,9 @@ function AssetSelectStep({
225
228
  if (allowedChainSet && !allowedChainSet.has(a.chainId)) return false;
226
229
  if (allowedTokenSet) {
227
230
  if (!allowedTokenSet.has(a.symbol.toUpperCase())) return false;
228
- if (!_chunkPUMTR35Ecjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
231
+ if (!_chunkP5T4XSN2cjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
229
232
  }
230
- const isNativeToken = a.token.toLowerCase() === _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS;
233
+ const isNativeToken = a.token.toLowerCase() === _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS;
231
234
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
232
235
  return false;
233
236
  return true;
@@ -255,7 +258,7 @@ function AssetSelectStep({
255
258
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
256
259
  const numeric = Number(raw);
257
260
  if (!Number.isFinite(numeric)) return raw;
258
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
261
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
259
262
  } catch (e3) {
260
263
  return asset.balance;
261
264
  }
@@ -263,20 +266,20 @@ function AssetSelectStep({
263
266
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
264
267
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
265
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
266
- _chunkIRI34U6Ncjs.BodyHeader,
269
+ _chunkDSXMWQYBcjs.BodyHeader,
267
270
  {
268
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
271
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
269
272
  title: "Your assets",
270
273
  subtitle: "Select source assets to transfer"
271
274
  }
272
275
  ),
273
276
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
274
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-text-tertiary" }),
277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, { className: "rs-text-tertiary" }),
275
278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
276
279
  ] }),
277
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
280
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
278
281
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, { className: "rs-empty-icon" }),
282
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, { className: "rs-empty-icon" }),
280
283
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
281
284
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
282
285
  address.slice(0, 6),
@@ -296,8 +299,8 @@ function AssetSelectStep({
296
299
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
297
300
  const isSelected = selectedAssetId === asset.id;
298
301
  const tokenAmount = formatBalance(asset);
299
- const badge = _chunkPUMTR35Ecjs.getChainBadge.call(void 0, asset.chainId);
300
- const chainIcon = _chunkPUMTR35Ecjs.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);
301
304
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
302
305
  "button",
303
306
  {
@@ -309,7 +312,7 @@ function AssetSelectStep({
309
312
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
310
313
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
311
314
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
312
- _chunkIRI34U6Ncjs.TokenIcon,
315
+ _chunkDSXMWQYBcjs.TokenIcon,
313
316
  {
314
317
  symbol: asset.symbol,
315
318
  fallback: asset.symbol.slice(0, 4)
@@ -319,7 +322,7 @@ function AssetSelectStep({
319
322
  "img",
320
323
  {
321
324
  src: chainIcon,
322
- alt: _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
325
+ alt: _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId)
323
326
  }
324
327
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
325
328
  "span",
@@ -338,7 +341,7 @@ function AssetSelectStep({
338
341
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
339
342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
340
343
  "on ",
341
- _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
344
+ _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId)
342
345
  ] })
343
346
  ] }),
344
347
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -348,14 +351,14 @@ function AssetSelectStep({
348
351
  ] })
349
352
  ] })
350
353
  ] }),
351
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkIRI34U6Ncjs.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}` : "--" })
352
355
  ]
353
356
  },
354
357
  asset.id
355
358
  );
356
359
  }) }),
357
360
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
358
- _chunkIRI34U6Ncjs.Button,
361
+ _chunkDSXMWQYBcjs.Button,
359
362
  {
360
363
  onClick: () => selectedAsset && onContinue(selectedAsset),
361
364
  disabled: !selectedAsset,
@@ -364,27 +367,27 @@ function AssetSelectStep({
364
367
  }
365
368
  )
366
369
  ] }),
367
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
370
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
368
371
  ] });
369
372
  }
370
373
  async function fetchNativeAssets(address, publicClient, existing) {
371
374
  const existingIds = new Set(existing.map((asset) => asset.id));
372
375
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
373
376
  if (!connectedChainId) return [];
374
- if (!_chunkPUMTR35Ecjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
375
- const id = _chunkIRI34U6Ncjs.getAssetId.call(void 0, {
377
+ if (!_chunkP5T4XSN2cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
378
+ const id = _chunkDSXMWQYBcjs.getAssetId.call(void 0, {
376
379
  chainId: connectedChainId,
377
- token: _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS
380
+ token: _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS
378
381
  });
379
382
  if (existingIds.has(id)) return [];
380
383
  try {
381
384
  const balance = await publicClient.getBalance({ address });
382
- const nativeSymbol = _chunkPUMTR35Ecjs.getNativeSymbol.call(void 0, connectedChainId);
385
+ const nativeSymbol = _chunkP5T4XSN2cjs.getNativeSymbol.call(void 0, connectedChainId);
383
386
  return [
384
387
  {
385
388
  id,
386
389
  chainId: connectedChainId,
387
- token: _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS,
390
+ token: _chunkP5T4XSN2cjs.NATIVE_TOKEN_ADDRESS,
388
391
  symbol: nativeSymbol,
389
392
  name: nativeSymbol,
390
393
  decimals: 18,
@@ -545,8 +548,8 @@ function AmountStep({
545
548
  const chainMismatch = Boolean(
546
549
  _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
547
550
  );
548
- const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
549
- const isSourceStablecoin = _chunkPUMTR35Ecjs.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);
550
553
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
551
554
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
552
555
  return tokenPriceUsdOverride;
@@ -570,7 +573,7 @@ function AmountStep({
570
573
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
571
574
  if (!balanceTarget || !publicClient) return;
572
575
  try {
573
- const bal = _chunkIRI34U6Ncjs.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({
574
577
  address: asset.token,
575
578
  abi: _viem.erc20Abi,
576
579
  functionName: "balanceOf",
@@ -591,7 +594,7 @@ function AmountStep({
591
594
  hasAttemptedSwitch.current = true;
592
595
  switchChain(asset.chainId).catch((err) => {
593
596
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
594
- setError(_chunkIRI34U6Ncjs.formatUserError.call(void 0, raw));
597
+ setError(_chunkDSXMWQYBcjs.formatUserError.call(void 0, raw));
595
598
  });
596
599
  }
597
600
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -644,7 +647,7 @@ function AmountStep({
644
647
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
645
648
  const numeric = Number(raw);
646
649
  if (!Number.isFinite(numeric)) return raw;
647
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
650
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
648
651
  } catch (e8) {
649
652
  return "\u2026";
650
653
  }
@@ -663,7 +666,7 @@ function AmountStep({
663
666
  return null;
664
667
  }
665
668
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
666
- const minDepositUsd = targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkPUMTR35Ecjs.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));
667
670
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
668
671
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
669
672
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -759,11 +762,11 @@ function AmountStep({
759
762
  };
760
763
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
761
764
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
762
- const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId);
763
- const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
765
+ const sourceChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId);
766
+ const targetChainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain);
764
767
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
765
768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
766
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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" }),
767
770
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
768
771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
769
772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -783,13 +786,13 @@ function AmountStep({
783
786
  " available",
784
787
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
785
788
  " (~",
786
- _chunkIRI34U6Ncjs.currencyFormatter.format(balanceUsd),
789
+ _chunkDSXMWQYBcjs.currencyFormatter.format(balanceUsd),
787
790
  ")"
788
791
  ] })
789
792
  ] }),
790
793
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
791
794
  "Min. deposit ",
792
- _chunkIRI34U6Ncjs.currencyFormatter.format(minDepositUsd)
795
+ _chunkDSXMWQYBcjs.currencyFormatter.format(minDepositUsd)
793
796
  ] })
794
797
  ] })
795
798
  ] }),
@@ -814,7 +817,7 @@ function AmountStep({
814
817
  " ",
815
818
  asset.symbol
816
819
  ] }),
817
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
818
821
  ] })
819
822
  ] }),
820
823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -825,18 +828,18 @@ function AmountStep({
825
828
  " ",
826
829
  targetSymbol
827
830
  ] }),
828
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
829
832
  ] })
830
833
  ] }),
831
834
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
832
835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
833
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkIRI34U6Ncjs.currencyFormatter.format(balanceAfterUsd) })
836
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDSXMWQYBcjs.currencyFormatter.format(balanceAfterUsd) })
834
837
  ] })
835
838
  ] }),
836
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
837
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }),
838
841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
839
- _chunkIRI34U6Ncjs.Button,
842
+ _chunkDSXMWQYBcjs.Button,
840
843
  {
841
844
  onClick: handleContinue,
842
845
  fullWidth: true,
@@ -847,7 +850,7 @@ function AmountStep({
847
850
  }
848
851
  )
849
852
  ] }),
850
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
853
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
851
854
  ] });
852
855
  }
853
856
 
@@ -887,26 +890,30 @@ function ConfirmStep({
887
890
  _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
888
891
  );
889
892
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
890
- const targetSymbol = sameRoute ? asset.symbol : _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
891
- const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId);
892
- const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
893
- const sourceChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
894
- const targetChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChain);
895
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkIRI34U6Ncjs.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";
896
899
  const receiveDisplay = (() => {
897
900
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
898
901
  if (quote) {
899
- const quoted = _chunkIRI34U6Ncjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
902
+ const quoted = _chunkDSXMWQYBcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
900
903
  if (quoted !== void 0) return quoted;
901
904
  }
902
905
  const usdValue = Number(targetAmount);
903
906
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
904
- const estimate = _chunkIRI34U6Ncjs.formatReceiveEstimate.call(void 0, {
907
+ const estimate = _chunkDSXMWQYBcjs.formatReceiveEstimate.call(void 0, {
905
908
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
906
909
  sourceSymbol: asset.symbol,
907
910
  targetSymbol,
908
911
  sourceAmountUsd,
909
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
912
+ sourceTrusted: _chunkDSXMWQYBcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
913
+ // The target is the curated deposit destination, so a stablecoin target
914
+ // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
915
+ // target prices). Not applied to the source — that can be a held token.
916
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDSXMWQYBcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
910
917
  });
911
918
  if (estimate !== void 0) return estimate;
912
919
  return targetSymbol;
@@ -920,7 +927,7 @@ function ConfirmStep({
920
927
  hasAttemptedSwitch.current = true;
921
928
  switchChain(asset.chainId).catch((err) => {
922
929
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
923
- setError(_chunkIRI34U6Ncjs.formatUserError.call(void 0, raw));
930
+ setError(_chunkDSXMWQYBcjs.formatUserError.call(void 0, raw));
924
931
  });
925
932
  }
926
933
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1000,7 +1007,7 @@ function ConfirmStep({
1000
1007
  const result = await executeTransfer(amountUnits);
1001
1008
  hash = result.txHash;
1002
1009
  resolvedSourceToken = result.sourceToken;
1003
- } else if (_chunkIRI34U6Ncjs.isNativeAsset.call(void 0, asset)) {
1010
+ } else if (_chunkDSXMWQYBcjs.isNativeAsset.call(void 0, asset)) {
1004
1011
  hash = await walletClient.sendTransaction({
1005
1012
  account,
1006
1013
  chain,
@@ -1027,7 +1034,7 @@ function ConfirmStep({
1027
1034
  );
1028
1035
  } catch (err) {
1029
1036
  const raw = err instanceof Error ? err.message : "Transfer failed";
1030
- const message = _chunkIRI34U6Ncjs.formatUserError.call(void 0, raw);
1037
+ const message = _chunkDSXMWQYBcjs.formatUserError.call(void 0, raw);
1031
1038
  setError(message);
1032
1039
  _optionalChain([onError, 'optionalCall', _31 => _31(message, "TRANSFER_ERROR")]);
1033
1040
  } finally {
@@ -1036,7 +1043,7 @@ function ConfirmStep({
1036
1043
  };
1037
1044
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1038
1045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1039
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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" }),
1040
1047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1041
1048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1042
1049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1064,14 +1071,14 @@ function ConfirmStep({
1064
1071
  " ",
1065
1072
  asset.symbol
1066
1073
  ] }),
1067
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
1068
1075
  ] })
1069
1076
  ] }),
1070
1077
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1071
1078
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1072
1079
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1073
1080
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1074
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
1075
1082
  ] })
1076
1083
  ] }),
1077
1084
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1090,14 +1097,14 @@ function ConfirmStep({
1090
1097
  children: feeDisplay
1091
1098
  }
1092
1099
  ),
1093
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, _chunkIRI34U6Ncjs.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, {}) }) })
1094
1101
  ] })
1095
1102
  ] })
1096
1103
  ] }),
1097
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1098
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }),
1099
1106
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1100
- _chunkIRI34U6Ncjs.Button,
1107
+ _chunkDSXMWQYBcjs.Button,
1101
1108
  {
1102
1109
  onClick: handleConfirm,
1103
1110
  loading: isSubmitting,
@@ -1108,7 +1115,7 @@ function ConfirmStep({
1108
1115
  }
1109
1116
  )
1110
1117
  ] }),
1111
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
1118
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
1112
1119
  ] });
1113
1120
  }
1114
1121
 
@@ -1131,9 +1138,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1131
1138
  var MAX_POLL_INTERVAL = 3e4;
1132
1139
  var BACKOFF_MULTIPLIER = 1.5;
1133
1140
  function isEventForTx(event, txHash) {
1134
- const eventTxHash = _chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event);
1141
+ const eventTxHash = _chunkDSXMWQYBcjs.getEventTxHash.call(void 0, event);
1135
1142
  if (!eventTxHash) return false;
1136
- return _chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1143
+ return _chunkDSXMWQYBcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1137
1144
  }
1138
1145
  function truncateHash(hash) {
1139
1146
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1183,7 +1190,7 @@ function formatBridgeFailedMessage(event) {
1183
1190
  }
1184
1191
  return "Bridge failed";
1185
1192
  }
1186
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1193
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1187
1194
  function DepositNotification({
1188
1195
  deposit,
1189
1196
  smartAccount,
@@ -1217,7 +1224,7 @@ function DepositNotification({
1217
1224
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1218
1225
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1219
1226
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1220
- const depositContextRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, {
1227
+ const depositContextRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, {
1221
1228
  amount,
1222
1229
  sourceChain,
1223
1230
  sourceToken: token,
@@ -1225,8 +1232,8 @@ function DepositNotification({
1225
1232
  targetChain,
1226
1233
  targetToken
1227
1234
  });
1228
- const onCompleteRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onComplete);
1229
- const onFailedRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onFailed);
1235
+ const onCompleteRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onComplete);
1236
+ const onFailedRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onFailed);
1230
1237
  const handleComplete = _react.useCallback.call(void 0,
1231
1238
  (destTxHash) => {
1232
1239
  if (completedRef.current) return;
@@ -1317,11 +1324,11 @@ function DepositNotification({
1317
1324
  status,
1318
1325
  txHash
1319
1326
  ]);
1320
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkPUMTR35Ecjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1321
- const destExplorerUrl = destinationTxHash ? _chunkPUMTR35Ecjs.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;
1322
1329
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1323
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.";
1324
- 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, _chunkIRI34U6Ncjs.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, _chunkIRI34U6Ncjs.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,
1325
1332
  "svg",
1326
1333
  {
1327
1334
  className: "rs-deposit-notification-spinner",
@@ -1371,7 +1378,7 @@ function DepositNotification({
1371
1378
  className: "rs-deposit-notification-close",
1372
1379
  onClick: () => onDismiss(deposit.id),
1373
1380
  "aria-label": "Dismiss",
1374
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
1381
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {})
1375
1382
  }
1376
1383
  )
1377
1384
  ] }),
@@ -1387,7 +1394,7 @@ function DepositNotification({
1387
1394
  "aria-expanded": expanded,
1388
1395
  children: [
1389
1396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1391
1398
  ]
1392
1399
  }
1393
1400
  ),
@@ -1477,7 +1484,7 @@ function asString(value) {
1477
1484
  function resolveSolanaTokenMeta(token) {
1478
1485
  if (!token) return {};
1479
1486
  const normalized = token.toLowerCase();
1480
- const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
1487
+ const matched = _chunkP5T4XSN2cjs.SOLANA_TOKENS.find(
1481
1488
  (entry) => entry.mint.toLowerCase() === normalized
1482
1489
  );
1483
1490
  if (matched) {
@@ -1520,24 +1527,24 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1520
1527
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1521
1528
  }
1522
1529
  function chainLabel(chainId) {
1523
- return _chunkPUMTR35Ecjs.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, "");
1524
1531
  }
1525
1532
  function computeTokensForChain(chainId, allowedTokenSet, topTokens) {
1526
1533
  const fromBackend = _optionalChain([topTokens, 'optionalAccess', _53 => _53[String(chainId)], 'optionalAccess', _54 => _54.map, 'call', _55 => _55((t) => t.symbol)]);
1527
- const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkPUMTR35Ecjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1534
+ const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkP5T4XSN2cjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1528
1535
  // HyperCore accepts USDC + USDT0 as origin tokens (native Hyperliquid L1
1529
1536
  // spot transfers); it has no EVM source-chain matrix entry.
1530
- chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1537
+ chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1531
1538
  ))));
1532
1539
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1533
1540
  }
1534
1541
  function resolveSourceTokenAddress(symbol, chainId, topTokens) {
1535
1542
  const top = _optionalChain([topTokens, 'optionalAccess', _56 => _56[String(chainId)], 'optionalAccess', _57 => _57.find, 'call', _58 => _58((t) => t.symbol === symbol)]);
1536
- return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkPUMTR35Ecjs.getTokenAddress.call(void 0, symbol, chainId)));
1543
+ return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkP5T4XSN2cjs.getTokenAddress.call(void 0, symbol, chainId)));
1537
1544
  }
1538
1545
  function TokenGlyph({ symbol }) {
1539
1546
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1540
- _chunkIRI34U6Ncjs.TokenIcon,
1547
+ _chunkDSXMWQYBcjs.TokenIcon,
1541
1548
  {
1542
1549
  symbol,
1543
1550
  className: "rs-deposit-address-dropdown-icon",
@@ -1574,21 +1581,21 @@ function DepositAddressStep({
1574
1581
  [_optionalChain([allowedRoutes, 'optionalAccess', _63 => _63.sourceTokens])]
1575
1582
  );
1576
1583
  const evmChainIds = _react.useMemo.call(void 0, () => {
1577
- const all = _chunkPUMTR35Ecjs.getSupportedChainIds.call(void 0, );
1584
+ const all = _chunkP5T4XSN2cjs.getSupportedChainIds.call(void 0, );
1578
1585
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1579
1586
  }, [allowedChainSet]);
1580
1587
  const chainOptions = _react.useMemo.call(void 0, () => {
1581
1588
  const options = [...evmChainIds];
1582
1589
  const extras = [];
1583
1590
  if (hasSolana) extras.push("solana");
1584
- if (!allowedChainSet || allowedChainSet.has(_chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID)) {
1591
+ if (!allowedChainSet || allowedChainSet.has(_chunkP5T4XSN2cjs.HYPERCORE_CHAIN_ID)) {
1585
1592
  extras.push("hypercore");
1586
1593
  }
1587
1594
  options.splice(1, 0, ...extras);
1588
1595
  return options;
1589
1596
  }, [evmChainIds, hasSolana, allowedChainSet]);
1590
1597
  const BASE_CHAIN_ID2 = 8453;
1591
- const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1598
+ const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1592
1599
  (s) => allowedTokenSet.has(s.toUpperCase())
1593
1600
  );
1594
1601
  const evmDefault = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
@@ -1787,10 +1794,10 @@ function DepositAddressStep({
1787
1794
  return;
1788
1795
  }
1789
1796
  const event = status.lastEvent;
1790
- const eventTxHash = _chunkIRI34U6Ncjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkIRI34U6Ncjs.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;
1791
1798
  if (baselineTxHashRef.current === void 0) {
1792
1799
  baselineTxHashRef.current = eventTxHash;
1793
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1800
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkDSXMWQYBcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1794
1801
  const details = getDepositEventDetails(event);
1795
1802
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1796
1803
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1799,7 +1806,7 @@ function DepositAddressStep({
1799
1806
  baselineTxHashRef.current = eventTxHash;
1800
1807
  isTrackingRef.current = true;
1801
1808
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1802
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkPUMTR35Ecjs.findTokenDecimals.call(void 0,
1809
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkP5T4XSN2cjs.findTokenDecimals.call(void 0,
1803
1810
  token,
1804
1811
  typeof chainId === "number" ? chainId : void 0
1805
1812
  ) : void 0)));
@@ -1864,10 +1871,10 @@ function DepositAddressStep({
1864
1871
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1865
1872
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1866
1873
  }, []);
1867
- const qrIconSrc = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId);
1874
+ const qrIconSrc = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId);
1868
1875
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1869
1876
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1870
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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" }),
1871
1878
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1872
1879
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1873
1880
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1882,16 +1889,16 @@ function DepositAddressStep({
1882
1889
  setTokenDropdownOpen(false);
1883
1890
  },
1884
1891
  children: [
1885
- _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
+ _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1886
1893
  "img",
1887
1894
  {
1888
- src: _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId),
1895
+ src: _chunkP5T4XSN2cjs.getChainIcon.call(void 0, sourceChainId),
1889
1896
  alt: "",
1890
1897
  className: "rs-deposit-address-dropdown-icon"
1891
1898
  }
1892
1899
  ),
1893
1900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
1894
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1895
1902
  ]
1896
1903
  }
1897
1904
  ),
@@ -1902,10 +1909,10 @@ function DepositAddressStep({
1902
1909
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1903
1910
  onClick: () => handleSelectChain(chainId),
1904
1911
  children: [
1905
- _chunkPUMTR35Ecjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1912
+ _chunkP5T4XSN2cjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1906
1913
  "img",
1907
1914
  {
1908
- src: _chunkPUMTR35Ecjs.getChainIcon.call(void 0, chainId),
1915
+ src: _chunkP5T4XSN2cjs.getChainIcon.call(void 0, chainId),
1909
1916
  alt: "",
1910
1917
  className: "rs-deposit-address-dropdown-icon"
1911
1918
  }
@@ -1921,9 +1928,9 @@ function DepositAddressStep({
1921
1928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1922
1929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1923
1930
  "Min.$",
1924
- (targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1925
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1926
- _chunkIRI34U6Ncjs.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,
1927
1934
  {
1928
1935
  className: "rs-deposit-address-min-icon",
1929
1936
  "aria-hidden": "true"
@@ -1944,7 +1951,7 @@ function DepositAddressStep({
1944
1951
  children: [
1945
1952
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
1946
1953
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1947
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1954
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1948
1955
  ]
1949
1956
  }
1950
1957
  ),
@@ -1988,7 +1995,7 @@ function DepositAddressStep({
1988
1995
  className: "rs-deposit-address-copy",
1989
1996
  onClick: handleCopy,
1990
1997
  children: [
1991
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CopyIcon, {}),
1998
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CopyIcon, {}),
1992
1999
  copied ? "Copied!" : "Copy address"
1993
2000
  ]
1994
2001
  }
@@ -1996,7 +2003,7 @@ function DepositAddressStep({
1996
2003
  ]
1997
2004
  }
1998
2005
  ),
1999
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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." }),
2000
2007
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2001
2008
  "div",
2002
2009
  {
@@ -2014,16 +2021,16 @@ function DepositAddressStep({
2014
2021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2015
2022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2016
2023
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2017
- _chunkIRI34U6Ncjs.Tooltip,
2024
+ _chunkDSXMWQYBcjs.Tooltip,
2018
2025
  {
2019
2026
  className: "rs-price-impact-info",
2020
2027
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2021
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2028
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.InfoIcon, { "aria-hidden": "true" })
2022
2029
  }
2023
2030
  )
2024
2031
  ] }),
2025
2032
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2026
- _chunkIRI34U6Ncjs.ChevronDownIcon,
2033
+ _chunkDSXMWQYBcjs.ChevronDownIcon,
2027
2034
  {
2028
2035
  className: "rs-price-impact-chevron",
2029
2036
  "aria-hidden": "true"
@@ -2034,29 +2041,29 @@ function DepositAddressStep({
2034
2041
  ),
2035
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: [
2036
2043
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
2038
2045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2039
2046
  "Max slippage: ",
2040
2047
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2041
2048
  ] }),
2042
2049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2043
- _chunkIRI34U6Ncjs.Tooltip,
2050
+ _chunkDSXMWQYBcjs.Tooltip,
2044
2051
  {
2045
2052
  className: "rs-price-impact-info",
2046
2053
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2047
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2054
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.InfoIcon, { "aria-hidden": "true" })
2048
2055
  }
2049
2056
  )
2050
2057
  ] }),
2051
2058
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2052
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
2053
2060
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2054
2061
  "Processing time: ",
2055
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2056
2063
  ] })
2057
2064
  ] }),
2058
2065
  /* @__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, _chunkIRI34U6Ncjs.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, {}) }),
2060
2067
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2061
2068
  "Max deposit:",
2062
2069
  " ",
@@ -2087,7 +2094,7 @@ function DepositAddressStep({
2087
2094
  },
2088
2095
  deposit.id
2089
2096
  )) }),
2090
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2091
2098
  ] });
2092
2099
  }
2093
2100
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2135,7 +2142,7 @@ function FinalisingDepositStep() {
2135
2142
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2136
2143
  ] })
2137
2144
  ] }),
2138
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2145
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2139
2146
  ] });
2140
2147
  }
2141
2148
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2165,7 +2172,7 @@ function SwappedOrderTracker({
2165
2172
  ];
2166
2173
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2167
2174
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2168
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HandCoinsIcon, {}), title }),
2175
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HandCoinsIcon, {}), title }),
2169
2176
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2170
2177
  const status = stepStates[idx];
2171
2178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2179,7 +2186,7 @@ function SwappedOrderTracker({
2179
2186
  {
2180
2187
  className: "rs-swapped-tracker-step-marker",
2181
2188
  "aria-hidden": "true",
2182
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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,
2183
2190
  "svg",
2184
2191
  {
2185
2192
  className: "rs-swapped-tracker-step-ring",
@@ -2214,7 +2221,7 @@ function SwappedOrderTracker({
2214
2221
  }
2215
2222
  )
2216
2223
  ] }),
2217
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2218
2225
  ] });
2219
2226
  }
2220
2227
  function formatTrackerAmount(amount) {
@@ -2305,6 +2312,7 @@ function SwappedIframeStep({
2305
2312
  onImmersiveChange
2306
2313
  }) {
2307
2314
  const [widgetUrl, setWidgetUrl] = _react.useState.call(void 0, null);
2315
+ const [iframeSrc, setIframeSrc] = _react.useState.call(void 0, null);
2308
2316
  const [loadError, setLoadError] = _react.useState.call(void 0, null);
2309
2317
  const [iframeLoaded, setIframeLoaded] = _react.useState.call(void 0, false);
2310
2318
  const [retryToken, setRetryToken] = _react.useState.call(void 0, 0);
@@ -2340,6 +2348,7 @@ function SwappedIframeStep({
2340
2348
  setLoadError(null);
2341
2349
  setIframeLoaded(false);
2342
2350
  setWidgetUrl(null);
2351
+ setIframeSrc(null);
2343
2352
  setOrderState(null);
2344
2353
  setLatestEvent(null);
2345
2354
  setPhase("iframe");
@@ -2381,6 +2390,9 @@ function SwappedIframeStep({
2381
2390
  }, IFRAME_LOAD_TIMEOUT_MS);
2382
2391
  return () => clearTimeout(timer);
2383
2392
  }, [widgetUrl, iframeLoaded, loadError]);
2393
+ _react.useEffect.call(void 0, () => {
2394
+ setIframeSrc(widgetUrl && !loadError ? widgetUrl : null);
2395
+ }, [widgetUrl, loadError, retryToken]);
2384
2396
  _react.useEffect.call(void 0, () => {
2385
2397
  let cancelled = false;
2386
2398
  let timeoutId;
@@ -2414,10 +2426,10 @@ function SwappedIframeStep({
2414
2426
  const status = await service.fetchLatestStatus(smartAccount);
2415
2427
  if (cancelled) return;
2416
2428
  const event = status.lastEvent;
2417
- const eventTxHash = _chunkIRI34U6Ncjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkIRI34U6Ncjs.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;
2418
2430
  if (baselineDepositTxHashRef.current === void 0) {
2419
2431
  baselineDepositTxHashRef.current = eventTxHash;
2420
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2432
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkDSXMWQYBcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2421
2433
  currentDepositTxHashRef.current = eventTxHash;
2422
2434
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2423
2435
  }
@@ -2491,10 +2503,10 @@ function SwappedIframeStep({
2491
2503
  [orderState, latestEvent]
2492
2504
  );
2493
2505
  const terminalState = _react.useMemo.call(void 0, () => {
2494
- if (_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2506
+ if (_chunkDSXMWQYBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2495
2507
  return {
2496
2508
  kind: "failed",
2497
- message: _chunkIRI34U6Ncjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2509
+ message: _chunkDSXMWQYBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2498
2510
  };
2499
2511
  }
2500
2512
  if (_optionalChain([orderState, 'optionalAccess', _97 => _97.status]) === "order_cancelled") {
@@ -2517,7 +2529,7 @@ function SwappedIframeStep({
2517
2529
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _99 => _99.orderCrypto]), () => ( null)),
2518
2530
  // Base-unit source amount from the deposit row/event, consistent with the
2519
2531
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2520
- amount: _nullishCoalesce(_chunkIRI34U6Ncjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2532
+ amount: _nullishCoalesce(_chunkDSXMWQYBcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2521
2533
  expectedOrderUuid: expectedOrderUuidRef.current,
2522
2534
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
2523
2535
  };
@@ -2528,14 +2540,14 @@ function SwappedIframeStep({
2528
2540
  }, [latestEvent, orderState, smartAccount]);
2529
2541
  _react.useEffect.call(void 0, () => {
2530
2542
  if (failedFiredRef.current || completeFiredRef.current) return;
2531
- if (!_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2543
+ if (!_chunkDSXMWQYBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2532
2544
  const txHash = currentDepositTxHashRef.current;
2533
2545
  if (!txHash) return;
2534
2546
  failedFiredRef.current = true;
2535
2547
  setPhase("tracker");
2536
2548
  _optionalChain([onSwappedFailedRef, 'access', _100 => _100.current, 'optionalCall', _101 => _101(
2537
2549
  txHash,
2538
- _chunkIRI34U6Ncjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2550
+ _chunkDSXMWQYBcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2539
2551
  )]);
2540
2552
  }, [latestEvent]);
2541
2553
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
@@ -2543,6 +2555,13 @@ function SwappedIframeStep({
2543
2555
  _optionalChain([onImmersiveChangeRef, 'access', _102 => _102.current, 'optionalCall', _103 => _103(immersive)]);
2544
2556
  }, [immersive]);
2545
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
+ };
2546
2565
  if (phase === "tracker") {
2547
2566
  const paymentReceived = stepStates[0] === "complete";
2548
2567
  if (variant === "connect" && !terminalState && paymentReceived) {
@@ -2555,7 +2574,7 @@ function SwappedIframeStep({
2555
2574
  currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _107 => _107.orderCrypto]), () => ( "USDC")),
2556
2575
  stepStates,
2557
2576
  terminal: terminalState,
2558
- onRetry: () => setRetryToken((n) => n + 1),
2577
+ onRetry: handleRetry,
2559
2578
  onClose
2560
2579
  }
2561
2580
  );
@@ -2569,31 +2588,39 @@ function SwappedIframeStep({
2569
2588
  {
2570
2589
  type: "button",
2571
2590
  className: "rs-fiat-onramp-retry",
2572
- onClick: () => setRetryToken((n) => n + 1),
2591
+ onClick: handleRetry,
2573
2592
  children: "Retry"
2574
2593
  }
2575
2594
  )
2576
2595
  ] }),
2577
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
2578
2597
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2579
2598
  "iframe",
2580
2599
  {
2581
2600
  ref: iframeRef,
2582
- src: widgetUrl,
2601
+ src: _nullishCoalesce(iframeSrc, () => ( void 0)),
2583
2602
  title: iframeTitle,
2584
2603
  className: "rs-fiat-onramp-iframe",
2585
2604
  sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",
2586
2605
  allow: "payment; camera; microphone; clipboard-write; geolocation",
2587
- 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
+ }
2588
2615
  },
2589
2616
  retryToken
2590
2617
  )
2591
2618
  ] }) }),
2592
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2619
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2593
2620
  ] });
2594
2621
  }
2595
2622
  function deriveStepStates(swappedStatus, latestEvent) {
2596
- if (_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2623
+ if (_chunkDSXMWQYBcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2597
2624
  return ["complete", "complete", "failed", "pending"];
2598
2625
  }
2599
2626
  if (swappedStatus === "order_cancelled") {
@@ -2601,7 +2628,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2601
2628
  }
2602
2629
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2603
2630
  const step2Complete = latestEvent !== null || swappedStatus === "order_broadcasted";
2604
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _108 => _108.type]) === "bridge-complete";
2631
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _112 => _112.type]) === "bridge-complete";
2605
2632
  if (step3Complete) {
2606
2633
  return ["complete", "complete", "complete", "complete"];
2607
2634
  }
@@ -2656,12 +2683,12 @@ function FiatOnrampStep({
2656
2683
  onImmersiveChange
2657
2684
  }) {
2658
2685
  const loadUrl = _react.useCallback.call(void 0, async () => {
2659
- const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _109 => _109(smartAccount, paymentMethod)]);
2686
+ const prefetched = _optionalChain([consumePrefetchedUrl, 'optionalCall', _113 => _113(smartAccount, paymentMethod)]);
2660
2687
  if (prefetched) {
2661
2688
  try {
2662
2689
  const cached = await prefetched;
2663
2690
  if (isSwappedWidgetUrlFresh(cached)) return cached;
2664
- } catch (e20) {
2691
+ } catch (e21) {
2665
2692
  }
2666
2693
  }
2667
2694
  return service.getSwappedWidgetUrl({
@@ -2769,7 +2796,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2769
2796
  function ExchangeLogo({ exchange }) {
2770
2797
  const [failed, setFailed] = _react.useState.call(void 0, false);
2771
2798
  if (!exchange.logoUrl || failed) {
2772
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BankIcon, {});
2799
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BankIcon, {});
2773
2800
  }
2774
2801
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2775
2802
  "img",
@@ -2804,7 +2831,7 @@ function ExchangeSelectStep({
2804
2831
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2805
2832
  setExchanges([]);
2806
2833
  setError(message);
2807
- _optionalChain([onError, 'optionalCall', _110 => _110(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2834
+ _optionalChain([onError, 'optionalCall', _114 => _114(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2808
2835
  }).finally(() => {
2809
2836
  if (!cancelled) setLoading(false);
2810
2837
  });
@@ -2815,14 +2842,14 @@ function ExchangeSelectStep({
2815
2842
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2816
2843
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2817
2844
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2818
- _chunkIRI34U6Ncjs.BodyHeader,
2845
+ _chunkDSXMWQYBcjs.BodyHeader,
2819
2846
  {
2820
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.UnplugIcon, {}),
2847
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.UnplugIcon, {}),
2821
2848
  title: "Connect exchange",
2822
2849
  subtitle: "Select an exchange to connect"
2823
2850
  }
2824
2851
  ),
2825
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
2826
2853
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2827
2854
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2828
2855
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2848,7 +2875,7 @@ function ExchangeSelectStep({
2848
2875
  )
2849
2876
  ] }),
2850
2877
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2851
- const brand = _chunkIRI34U6Ncjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2878
+ const brand = _chunkDSXMWQYBcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2852
2879
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2853
2880
  "button",
2854
2881
  {
@@ -2871,7 +2898,7 @@ function ExchangeSelectStep({
2871
2898
  );
2872
2899
  }) })
2873
2900
  ] }),
2874
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2875
2902
  ] });
2876
2903
  }
2877
2904
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2883,24 +2910,24 @@ function DepositAddressSkeleton({
2883
2910
  uiConfig,
2884
2911
  allowedRoutes
2885
2912
  }) {
2886
- const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _111 => _111.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2887
- 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;
2888
2915
  const evmChainIds = (() => {
2889
- const all = _chunkPUMTR35Ecjs.getSupportedChainIds.call(void 0, );
2916
+ const all = _chunkP5T4XSN2cjs.getSupportedChainIds.call(void 0, );
2890
2917
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2891
2918
  })();
2892
2919
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2893
2920
  const tokensForChain = (() => {
2894
- const all = _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2921
+ const all = _chunkP5T4XSN2cjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2895
2922
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2896
2923
  })();
2897
2924
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2898
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, defaultChainId);
2899
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, defaultChainId);
2925
+ const chainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, defaultChainId);
2926
+ const chainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, defaultChainId);
2900
2927
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2901
2928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2902
2929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2903
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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" }),
2904
2931
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2905
2932
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2906
2933
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2914,7 +2941,7 @@ function DepositAddressSkeleton({
2914
2941
  }
2915
2942
  ),
2916
2943
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2917
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2918
2945
  ] })
2919
2946
  ] }),
2920
2947
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2922,9 +2949,9 @@ function DepositAddressSkeleton({
2922
2949
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2923
2950
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2924
2951
  "Min.$",
2925
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.minDepositUsd]), () => ( 0.1))).toFixed(2),
2926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2927
- _chunkIRI34U6Ncjs.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,
2928
2955
  {
2929
2956
  className: "rs-deposit-address-min-icon",
2930
2957
  "aria-hidden": "true"
@@ -2934,14 +2961,14 @@ function DepositAddressSkeleton({
2934
2961
  ] }),
2935
2962
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2936
2963
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2937
- _chunkIRI34U6Ncjs.TokenIcon,
2964
+ _chunkDSXMWQYBcjs.TokenIcon,
2938
2965
  {
2939
2966
  symbol: defaultToken,
2940
2967
  className: "rs-deposit-address-dropdown-icon"
2941
2968
  }
2942
2969
  ),
2943
2970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2944
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2971
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2945
2972
  ] })
2946
2973
  ] })
2947
2974
  ] }),
@@ -2962,7 +2989,7 @@ function DepositAddressSkeleton({
2962
2989
  disabled: true,
2963
2990
  "aria-hidden": "true",
2964
2991
  children: [
2965
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CopyIcon, {}),
2992
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CopyIcon, {}),
2966
2993
  "Copy address"
2967
2994
  ]
2968
2995
  }
@@ -2975,16 +3002,16 @@ function DepositAddressSkeleton({
2975
3002
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2976
3003
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2977
3004
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2978
- _chunkIRI34U6Ncjs.Tooltip,
3005
+ _chunkDSXMWQYBcjs.Tooltip,
2979
3006
  {
2980
3007
  className: "rs-price-impact-info",
2981
3008
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2982
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
3009
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.InfoIcon, { "aria-hidden": "true" })
2983
3010
  }
2984
3011
  )
2985
3012
  ] }),
2986
3013
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2987
- _chunkIRI34U6Ncjs.ChevronDownIcon,
3014
+ _chunkDSXMWQYBcjs.ChevronDownIcon,
2988
3015
  {
2989
3016
  className: "rs-price-impact-chevron",
2990
3017
  "aria-hidden": "true"
@@ -2992,7 +3019,7 @@ function DepositAddressSkeleton({
2992
3019
  )
2993
3020
  ] }) })
2994
3021
  ] }),
2995
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3022
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
2996
3023
  ] });
2997
3024
  }
2998
3025
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3024,18 +3051,18 @@ function SolanaTokenSelectStep({
3024
3051
  setError(null);
3025
3052
  const portfolioBySymbol = {};
3026
3053
  try {
3027
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3054
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3028
3055
  solanaAddress
3029
3056
  });
3030
3057
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
3031
3058
  if (!active) return;
3032
3059
  for (const t of portfolio.tokens) {
3033
3060
  const symbol = t.symbol.toUpperCase();
3034
- if (!_chunkPUMTR35Ecjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3061
+ if (!_chunkP5T4XSN2cjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3035
3062
  let parsed = 0n;
3036
3063
  try {
3037
3064
  parsed = BigInt(t.balance || "0");
3038
- } catch (e21) {
3065
+ } catch (e22) {
3039
3066
  parsed = 0n;
3040
3067
  }
3041
3068
  if (parsed <= 0n) continue;
@@ -3047,12 +3074,12 @@ function SolanaTokenSelectStep({
3047
3074
  };
3048
3075
  }
3049
3076
  }
3050
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3077
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3051
3078
  symbols: Object.keys(portfolioBySymbol)
3052
3079
  });
3053
3080
  } catch (err) {
3054
3081
  if (!active) return;
3055
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3082
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3056
3083
  solanaAddress
3057
3084
  });
3058
3085
  setError(
@@ -3063,7 +3090,7 @@ function SolanaTokenSelectStep({
3063
3090
  return;
3064
3091
  }
3065
3092
  const results = [];
3066
- for (const token of _chunkPUMTR35Ecjs.SOLANA_TOKENS) {
3093
+ for (const token of _chunkP5T4XSN2cjs.SOLANA_TOKENS) {
3067
3094
  const fromPortfolio = portfolioBySymbol[token.symbol];
3068
3095
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3069
3096
  results.push({
@@ -3077,7 +3104,7 @@ function SolanaTokenSelectStep({
3077
3104
  setTokenBalances(results);
3078
3105
  setLoading(false);
3079
3106
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
3080
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _114 => _114(totalUsd)]);
3107
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _118 => _118(totalUsd)]);
3081
3108
  }
3082
3109
  void loadBalances();
3083
3110
  return () => {
@@ -3099,30 +3126,30 @@ function SolanaTokenSelectStep({
3099
3126
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3100
3127
  const numeric = Number(raw);
3101
3128
  if (!Number.isFinite(numeric)) return raw;
3102
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
3103
- } catch (e22) {
3129
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
3130
+ } catch (e23) {
3104
3131
  return "--";
3105
3132
  }
3106
3133
  };
3107
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, "solana");
3108
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, "solana");
3134
+ const chainIcon = _chunkP5T4XSN2cjs.getChainIcon.call(void 0, "solana");
3135
+ const chainName = _chunkP5T4XSN2cjs.getChainName.call(void 0, "solana");
3109
3136
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3110
3137
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3111
3138
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3112
- _chunkIRI34U6Ncjs.BodyHeader,
3139
+ _chunkDSXMWQYBcjs.BodyHeader,
3113
3140
  {
3114
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3141
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
3115
3142
  title: "Your assets",
3116
3143
  subtitle: "Select source assets to transfer"
3117
3144
  }
3118
3145
  ),
3119
3146
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3120
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-text-tertiary" }),
3147
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, { className: "rs-text-tertiary" }),
3121
3148
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3122
3149
  ] }),
3123
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3150
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
3124
3151
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3125
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, { className: "rs-empty-icon" }),
3152
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, { className: "rs-empty-icon" }),
3126
3153
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3127
3154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3128
3155
  solanaAddress.slice(0, 6),
@@ -3153,7 +3180,7 @@ function SolanaTokenSelectStep({
3153
3180
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3154
3181
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3155
3182
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3156
- _chunkIRI34U6Ncjs.TokenIcon,
3183
+ _chunkDSXMWQYBcjs.TokenIcon,
3157
3184
  {
3158
3185
  symbol: entry.token.symbol,
3159
3186
  fallback: entry.token.symbol.slice(0, 4)
@@ -3176,14 +3203,14 @@ function SolanaTokenSelectStep({
3176
3203
  ] })
3177
3204
  ] })
3178
3205
  ] }),
3179
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkIRI34U6Ncjs.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}` : "--" })
3180
3207
  ]
3181
3208
  },
3182
3209
  entry.token.symbol
3183
3210
  );
3184
3211
  }) }),
3185
3212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3186
- _chunkIRI34U6Ncjs.Button,
3213
+ _chunkDSXMWQYBcjs.Button,
3187
3214
  {
3188
3215
  onClick: () => selectedEntry && onContinue(
3189
3216
  selectedEntry.token,
@@ -3196,7 +3223,7 @@ function SolanaTokenSelectStep({
3196
3223
  }
3197
3224
  )
3198
3225
  ] }),
3199
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3226
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3200
3227
  ] });
3201
3228
  }
3202
3229
 
@@ -3227,8 +3254,8 @@ function SolanaAmountStep({
3227
3254
  const [amount, setAmount] = _react.useState.call(void 0, "");
3228
3255
  const [error, setError] = _react.useState.call(void 0, null);
3229
3256
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3230
- const isSourceStablecoin = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, token.symbol);
3231
- 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";
3232
3259
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3233
3260
  if (isSourceStablecoin) return 1;
3234
3261
  try {
@@ -3238,7 +3265,7 @@ function SolanaAmountStep({
3238
3265
  }
3239
3266
  const price = balanceUsd / balanceUnits;
3240
3267
  return price > 0 ? price : null;
3241
- } catch (e23) {
3268
+ } catch (e24) {
3242
3269
  return null;
3243
3270
  }
3244
3271
  }, [isSourceStablecoin, balance, token.decimals, balanceUsd]);
@@ -3248,8 +3275,8 @@ function SolanaAmountStep({
3248
3275
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3249
3276
  const numeric = Number(raw);
3250
3277
  if (!Number.isFinite(numeric)) return raw;
3251
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
3252
- } catch (e24) {
3278
+ return _chunkDSXMWQYBcjs.tokenFormatter.format(numeric);
3279
+ } catch (e25) {
3253
3280
  return "\u2026";
3254
3281
  }
3255
3282
  }, [balance, token.decimals]);
@@ -3260,12 +3287,12 @@ function SolanaAmountStep({
3260
3287
  if (tokenPriceUsd !== null) return balanceUnits * tokenPriceUsd;
3261
3288
  if (Number.isFinite(balanceUsd) && balanceUsd > 0) return balanceUsd;
3262
3289
  return null;
3263
- } catch (e25) {
3290
+ } catch (e26) {
3264
3291
  return null;
3265
3292
  }
3266
3293
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3267
3294
  const spendableBalance = _react.useMemo.call(void 0, () => {
3268
- if (!_chunkPUMTR35Ecjs.isNativeSol.call(void 0, token)) return balance;
3295
+ if (!_chunkP5T4XSN2cjs.isNativeSol.call(void 0, token)) return balance;
3269
3296
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3270
3297
  }, [balance, token]);
3271
3298
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3274,7 +3301,7 @@ function SolanaAmountStep({
3274
3301
  if (!Number.isFinite(spendableUnits) || spendableUnits < 0) return null;
3275
3302
  if (tokenPriceUsd !== null) return spendableUnits * tokenPriceUsd;
3276
3303
  return null;
3277
- } catch (e26) {
3304
+ } catch (e27) {
3278
3305
  return null;
3279
3306
  }
3280
3307
  }, [spendableBalance, token.decimals, tokenPriceUsd]);
@@ -3289,7 +3316,7 @@ function SolanaAmountStep({
3289
3316
  const factor = 1e3;
3290
3317
  const truncated = Math.floor(value * factor) / factor;
3291
3318
  return truncated.toFixed(3).replace(/\.?0+$/, "");
3292
- } catch (e27) {
3319
+ } catch (e28) {
3293
3320
  return "";
3294
3321
  }
3295
3322
  },
@@ -3326,12 +3353,12 @@ function SolanaAmountStep({
3326
3353
  const raw = isSourceStablecoin || !hasPricing ? numericAmount : numericAmount / (_nullishCoalesce(tokenPriceUsd, () => ( 1)));
3327
3354
  try {
3328
3355
  return _viem.parseUnits.call(void 0, raw.toString(), token.decimals);
3329
- } catch (e28) {
3356
+ } catch (e29) {
3330
3357
  return null;
3331
3358
  }
3332
3359
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3333
- const minDepositUsd = targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3334
- 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));
3335
3362
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3336
3363
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3337
3364
  const exceedsBalance = Boolean(
@@ -3341,7 +3368,7 @@ function SolanaAmountStep({
3341
3368
  const handlePresetClick = (percentage) => {
3342
3369
  const formatted = computePresetAmount(percentage);
3343
3370
  if (!formatted) return;
3344
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3371
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3345
3372
  percentage,
3346
3373
  symbol: token.symbol,
3347
3374
  formatted
@@ -3375,8 +3402,8 @@ function SolanaAmountStep({
3375
3402
  let amountInUnits;
3376
3403
  try {
3377
3404
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3378
- } catch (e29) {
3379
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3405
+ } catch (e30) {
3406
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3380
3407
  amount,
3381
3408
  sourceAmount: sourceAmountStr,
3382
3409
  reason: "parse-units-failed"
@@ -3385,13 +3412,13 @@ function SolanaAmountStep({
3385
3412
  return;
3386
3413
  }
3387
3414
  if (amountInUnits > spendableBalance) {
3388
- const isReserveIssue = _chunkPUMTR35Ecjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3415
+ const isReserveIssue = _chunkP5T4XSN2cjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3389
3416
  setError(
3390
3417
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3391
3418
  );
3392
3419
  return;
3393
3420
  }
3394
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3421
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3395
3422
  symbol: token.symbol,
3396
3423
  inputAmountUsd: amount,
3397
3424
  sourceAmount: sourceAmountStr,
@@ -3404,7 +3431,7 @@ function SolanaAmountStep({
3404
3431
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3405
3432
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3406
3433
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3407
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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" }),
3408
3435
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3409
3436
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3410
3437
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3424,13 +3451,13 @@ function SolanaAmountStep({
3424
3451
  " available",
3425
3452
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3426
3453
  " (~",
3427
- _chunkIRI34U6Ncjs.currencyFormatter.format(computedBalanceUsd),
3454
+ _chunkDSXMWQYBcjs.currencyFormatter.format(computedBalanceUsd),
3428
3455
  ")"
3429
3456
  ] })
3430
3457
  ] }),
3431
3458
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3432
3459
  "Min. deposit ",
3433
- _chunkIRI34U6Ncjs.currencyFormatter.format(minDepositUsd)
3460
+ _chunkDSXMWQYBcjs.currencyFormatter.format(minDepositUsd)
3434
3461
  ] })
3435
3462
  ] })
3436
3463
  ] }),
@@ -3453,7 +3480,7 @@ function SolanaAmountStep({
3453
3480
  "Solana ",
3454
3481
  token.symbol
3455
3482
  ] }),
3456
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
3457
3484
  ] })
3458
3485
  ] }),
3459
3486
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -3464,18 +3491,18 @@ function SolanaAmountStep({
3464
3491
  " ",
3465
3492
  targetTokenSymbol
3466
3493
  ] }),
3467
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
3468
3495
  ] })
3469
3496
  ] }),
3470
3497
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3471
3498
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3472
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkIRI34U6Ncjs.currencyFormatter.format(balanceAfterUsd) })
3499
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkDSXMWQYBcjs.currencyFormatter.format(balanceAfterUsd) })
3473
3500
  ] })
3474
3501
  ] }),
3475
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3476
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }),
3477
3504
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3478
- _chunkIRI34U6Ncjs.Button,
3505
+ _chunkDSXMWQYBcjs.Button,
3479
3506
  {
3480
3507
  onClick: handleContinue,
3481
3508
  fullWidth: true,
@@ -3484,7 +3511,7 @@ function SolanaAmountStep({
3484
3511
  }
3485
3512
  )
3486
3513
  ] }),
3487
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3514
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3488
3515
  ] });
3489
3516
  }
3490
3517
 
@@ -3507,10 +3534,10 @@ var _spltoken = require('@solana/spl-token');
3507
3534
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3508
3535
  var cachedConnections = /* @__PURE__ */ new Map();
3509
3536
  function getSolanaRpcUrl(rpcUrls) {
3510
- return _nullishCoalesce(_chunkIRI34U6Ncjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3537
+ return _nullishCoalesce(_chunkDSXMWQYBcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3511
3538
  }
3512
3539
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
3513
- return _chunkIRI34U6Ncjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3540
+ return _chunkDSXMWQYBcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3514
3541
  }
3515
3542
  function getSolanaConnection(rpcUrls) {
3516
3543
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -3612,33 +3639,36 @@ function SolanaConfirmStep({
3612
3639
  onError,
3613
3640
  debug
3614
3641
  }) {
3615
- const rpcUrls = _chunkIRI34U6Ncjs.useRpcUrls.call(void 0, );
3642
+ const rpcUrls = _chunkDSXMWQYBcjs.useRpcUrls.call(void 0, );
3616
3643
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3617
3644
  const [error, setError] = _react.useState.call(void 0, null);
3618
- const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3619
- const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, "solana");
3620
- const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
3621
- const sourceChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, "solana");
3622
- const targetChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChain);
3623
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _122 => _122.feeSponsored]), () => ( false));
3624
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _123 => _123.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3625
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkIRI34U6Ncjs.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";
3626
3653
  const receiveDisplay = (() => {
3627
3654
  const usdValue = Number(targetAmount);
3628
3655
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3629
- const estimate = _chunkIRI34U6Ncjs.formatReceiveEstimate.call(void 0, {
3656
+ const estimate = _chunkDSXMWQYBcjs.formatReceiveEstimate.call(void 0, {
3630
3657
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3631
3658
  sourceSymbol: token.symbol,
3632
3659
  targetSymbol,
3633
3660
  sourceAmountUsd,
3634
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3661
+ sourceTrusted: _chunkDSXMWQYBcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
3662
+ // Curated stablecoin target estimates at $1 when unquoted; never applied
3663
+ // to the source (a held token). See ConfirmStep for the rationale.
3664
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunkDSXMWQYBcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
3635
3665
  });
3636
3666
  if (estimate !== void 0) return estimate;
3637
3667
  return targetSymbol;
3638
3668
  })();
3639
3669
  const handleConfirm = async () => {
3640
3670
  if (!solanaProvider) {
3641
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3671
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3642
3672
  reason: "missing-provider"
3643
3673
  });
3644
3674
  setError("Solana wallet not connected");
@@ -3646,7 +3676,7 @@ function SolanaConfirmStep({
3646
3676
  }
3647
3677
  const parsedAmount = parseFloat(sourceAmount);
3648
3678
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3649
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3679
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3650
3680
  reason: "invalid-amount",
3651
3681
  sourceAmount
3652
3682
  });
@@ -3655,7 +3685,7 @@ function SolanaConfirmStep({
3655
3685
  }
3656
3686
  setError(null);
3657
3687
  setIsSubmitting(true);
3658
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3688
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3659
3689
  smartAccount,
3660
3690
  solanaAddress,
3661
3691
  solanaDepositAddress,
@@ -3665,7 +3695,7 @@ function SolanaConfirmStep({
3665
3695
  });
3666
3696
  try {
3667
3697
  const check = await service.checkAccount(smartAccount);
3668
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3698
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3669
3699
  smartAccount,
3670
3700
  isRegistered: check.isRegistered,
3671
3701
  targetChain: check.targetChain,
@@ -3678,12 +3708,12 @@ function SolanaConfirmStep({
3678
3708
  }
3679
3709
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3680
3710
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3681
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3711
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3682
3712
  token: token.symbol,
3683
3713
  sourceAmount,
3684
3714
  amountUnits: amountUnits.toString()
3685
3715
  });
3686
- const transaction = _chunkPUMTR35Ecjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3716
+ const transaction = _chunkP5T4XSN2cjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3687
3717
  connection,
3688
3718
  solanaAddress,
3689
3719
  solanaDepositAddress,
@@ -3695,10 +3725,10 @@ function SolanaConfirmStep({
3695
3725
  token.mint,
3696
3726
  amountUnits
3697
3727
  );
3698
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3728
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3699
3729
  token: token.symbol,
3700
3730
  instructionCount: transaction.instructions.length,
3701
- 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()]),
3702
3732
  recentBlockhash: transaction.recentBlockhash
3703
3733
  });
3704
3734
  const txHash = await sendSolanaTransaction(
@@ -3706,28 +3736,28 @@ function SolanaConfirmStep({
3706
3736
  connection,
3707
3737
  transaction
3708
3738
  );
3709
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3739
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3710
3740
  txHash,
3711
3741
  amountUnits: amountUnits.toString()
3712
3742
  });
3713
3743
  onConfirm(txHash, amountUnits.toString());
3714
3744
  } catch (err) {
3715
3745
  const raw = err instanceof Error ? err.message : "Transfer failed";
3716
- const message = _chunkIRI34U6Ncjs.formatUserError.call(void 0, raw);
3717
- _chunkIRI34U6Ncjs.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, {
3718
3748
  smartAccount,
3719
3749
  token: token.symbol,
3720
3750
  sourceAmount
3721
3751
  });
3722
3752
  setError(message);
3723
- _optionalChain([onError, 'optionalCall', _127 => _127(message, "SOLANA_TRANSFER_ERROR")]);
3753
+ _optionalChain([onError, 'optionalCall', _131 => _131(message, "SOLANA_TRANSFER_ERROR")]);
3724
3754
  } finally {
3725
3755
  setIsSubmitting(false);
3726
3756
  }
3727
3757
  };
3728
3758
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3729
3759
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3730
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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" }),
3731
3761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3732
3762
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3733
3763
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3755,14 +3785,14 @@ function SolanaConfirmStep({
3755
3785
  " ",
3756
3786
  token.symbol
3757
3787
  ] }),
3758
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
3759
3789
  ] })
3760
3790
  ] }),
3761
3791
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3762
3792
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3763
3793
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3764
3794
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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 }) })
3766
3796
  ] })
3767
3797
  ] }),
3768
3798
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -3775,13 +3805,13 @@ function SolanaConfirmStep({
3775
3805
  children: "$0.04"
3776
3806
  }
3777
3807
  ),
3778
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, _chunkIRI34U6Ncjs.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, {}) }) })
3779
3809
  ] })
3780
3810
  ] })
3781
3811
  ] }),
3782
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3812
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Callout, { variant: "error", children: error }),
3783
3813
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3784
- _chunkIRI34U6Ncjs.Button,
3814
+ _chunkDSXMWQYBcjs.Button,
3785
3815
  {
3786
3816
  onClick: handleConfirm,
3787
3817
  loading: isSubmitting,
@@ -3792,7 +3822,7 @@ function SolanaConfirmStep({
3792
3822
  }
3793
3823
  )
3794
3824
  ] }),
3795
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3825
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3796
3826
  ] });
3797
3827
  }
3798
3828
 
@@ -3806,21 +3836,21 @@ function DappImportAssetSelectStep({
3806
3836
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3807
3837
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3808
3838
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3809
- _chunkIRI34U6Ncjs.BodyHeader,
3839
+ _chunkDSXMWQYBcjs.BodyHeader,
3810
3840
  {
3811
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3841
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
3812
3842
  title: `Transfer from ${sourceLabel}`,
3813
3843
  subtitle: "Pick the balance to import"
3814
3844
  }
3815
3845
  ),
3816
3846
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3817
- const tokenAmount = asset.balance ? _chunkIRI34U6Ncjs.tokenFormatter.format(
3847
+ const tokenAmount = asset.balance ? _chunkDSXMWQYBcjs.tokenFormatter.format(
3818
3848
  Number(asset.balance) / 10 ** asset.decimals
3819
3849
  ) : "0";
3820
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkIRI34U6Ncjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3850
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkDSXMWQYBcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3821
3851
  const assetIcon = asset.icon;
3822
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
3823
- const badge = _chunkPUMTR35Ecjs.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);
3824
3854
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3825
3855
  "button",
3826
3856
  {
@@ -3831,7 +3861,7 @@ function DappImportAssetSelectStep({
3831
3861
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3832
3862
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3833
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,
3834
- _chunkIRI34U6Ncjs.TokenIcon,
3864
+ _chunkDSXMWQYBcjs.TokenIcon,
3835
3865
  {
3836
3866
  symbol: asset.symbol,
3837
3867
  fallback: asset.symbol.slice(0, 4)
@@ -3841,7 +3871,7 @@ function DappImportAssetSelectStep({
3841
3871
  "img",
3842
3872
  {
3843
3873
  src: chainIcon,
3844
- alt: _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
3874
+ alt: _chunkP5T4XSN2cjs.getChainName.call(void 0, asset.chainId)
3845
3875
  }
3846
3876
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3847
3877
  "span",
@@ -3874,7 +3904,7 @@ function DappImportAssetSelectStep({
3874
3904
  );
3875
3905
  }) })
3876
3906
  ] }),
3877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3907
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3878
3908
  ] });
3879
3909
  }
3880
3910
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3891,9 +3921,9 @@ function DappImportAssetSelectSkeleton({
3891
3921
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3892
3922
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3893
3923
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3894
- _chunkIRI34U6Ncjs.BodyHeader,
3924
+ _chunkDSXMWQYBcjs.BodyHeader,
3895
3925
  {
3896
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3926
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.WalletIcon, {}),
3897
3927
  title: `Transfer from ${sourceLabel}`,
3898
3928
  subtitle: "Pick the balance to import"
3899
3929
  }
@@ -3931,7 +3961,7 @@ function DappImportAssetSelectSkeleton({
3931
3961
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3932
3962
  }
3933
3963
  ) }),
3934
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3964
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
3935
3965
  ] });
3936
3966
  }
3937
3967
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3988,7 +4018,7 @@ async function detectPolymarketWalletKind(params) {
3988
4018
  contracts: [
3989
4019
  {
3990
4020
  address: proxyWallet,
3991
- abi: _chunkWL7AXYQ4cjs.SAFE_ABI,
4021
+ abi: _chunkUNVVUULPcjs.SAFE_ABI,
3992
4022
  functionName: "isOwner",
3993
4023
  args: [eoa]
3994
4024
  },
@@ -4021,7 +4051,7 @@ async function buildSignedDepositWalletBatch(params) {
4021
4051
  if (!account || !chain) {
4022
4052
  throw new Error("Wallet not connected");
4023
4053
  }
4024
- if (chain.id !== _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4054
+ if (chain.id !== _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4025
4055
  throw new Error("Switch to Polygon to sign");
4026
4056
  }
4027
4057
  const owner = await publicClient.readContract({
@@ -4066,14 +4096,14 @@ async function buildSignedDepositWalletBatch(params) {
4066
4096
  })),
4067
4097
  signature
4068
4098
  },
4069
- sourceToken: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4099
+ sourceToken: _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS,
4070
4100
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4071
4101
  };
4072
4102
  }
4073
4103
  function buildUsdceTransferCalls(recipient, amount) {
4074
4104
  return [
4075
4105
  {
4076
- target: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4106
+ target: _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS,
4077
4107
  value: 0n,
4078
4108
  data: _viem.encodeFunctionData.call(void 0, {
4079
4109
  abi: _viem.erc20Abi,
@@ -4086,21 +4116,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4086
4116
  function buildPusdUnwrapCalls(recipient, amount) {
4087
4117
  return [
4088
4118
  {
4089
- target: _chunk4IOQIWDYcjs.POLYMARKET_PUSD_ADDRESS,
4119
+ target: _chunkORKEBFMRcjs.POLYMARKET_PUSD_ADDRESS,
4090
4120
  value: 0n,
4091
4121
  data: _viem.encodeFunctionData.call(void 0, {
4092
4122
  abi: _viem.erc20Abi,
4093
4123
  functionName: "approve",
4094
- args: [_chunk4IOQIWDYcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4124
+ args: [_chunkORKEBFMRcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4095
4125
  })
4096
4126
  },
4097
4127
  {
4098
- target: _chunk4IOQIWDYcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4128
+ target: _chunkORKEBFMRcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4099
4129
  value: 0n,
4100
4130
  data: _viem.encodeFunctionData.call(void 0, {
4101
4131
  abi: COLLATERAL_OFFRAMP_ABI,
4102
4132
  functionName: "unwrap",
4103
- args: [_chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4133
+ args: [_chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4104
4134
  })
4105
4135
  }
4106
4136
  ];
@@ -4113,29 +4143,29 @@ var polymarketProvider = {
4113
4143
  label: "Transfer from Polymarket",
4114
4144
  sourceLabel: "Polymarket",
4115
4145
  icon: _react.createElement.call(void 0, "img", {
4116
- src: _chunk4IOQIWDYcjs.POLYMARKET_ICON_URL,
4146
+ src: _chunkORKEBFMRcjs.POLYMARKET_ICON_URL,
4117
4147
  alt: "Polymarket",
4118
4148
  style: { width: 24, height: 24, borderRadius: 6 }
4119
4149
  }),
4120
- chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4150
+ chainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
4121
4151
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4122
- const proxyWallet = await _chunk4IOQIWDYcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4152
+ const proxyWallet = await _chunkORKEBFMRcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4123
4153
  if (!proxyWallet) return null;
4124
- if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
4125
- const polygonClient = getPublicClient2(_chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID);
4154
+ if (_optionalChain([signal, 'optionalAccess', _132 => _132.aborted])) return null;
4155
+ const polygonClient = getPublicClient2(_chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID);
4126
4156
  if (!polygonClient) return null;
4127
- const balances = await _chunk4IOQIWDYcjs.readPolymarketBalances.call(void 0, {
4157
+ const balances = await _chunkORKEBFMRcjs.readPolymarketBalances.call(void 0, {
4128
4158
  publicClient: polygonClient,
4129
4159
  proxyWallet
4130
4160
  });
4131
- if (_optionalChain([signal, 'optionalAccess', _129 => _129.aborted])) return null;
4161
+ if (_optionalChain([signal, 'optionalAccess', _133 => _133.aborted])) return null;
4132
4162
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
4133
4163
  const walletKind = await detectPolymarketWalletKind({
4134
4164
  publicClient: polygonClient,
4135
4165
  proxyWallet,
4136
4166
  eoa
4137
4167
  });
4138
- if (_optionalChain([signal, 'optionalAccess', _130 => _130.aborted])) return null;
4168
+ if (_optionalChain([signal, 'optionalAccess', _134 => _134.aborted])) return null;
4139
4169
  if (!walletKind) return null;
4140
4170
  const assets = [];
4141
4171
  if (balances.pusd > 0n) {
@@ -4182,7 +4212,7 @@ var polymarketProvider = {
4182
4212
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4183
4213
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4184
4214
  }
4185
- const result = await _chunk4IOQIWDYcjs.executePolymarketSafeTransfer.call(void 0, {
4215
+ const result = await _chunkORKEBFMRcjs.executePolymarketSafeTransfer.call(void 0, {
4186
4216
  walletClient,
4187
4217
  publicClient,
4188
4218
  safeAddress: metadata.proxyWallet,
@@ -4201,17 +4231,17 @@ var polymarketProvider = {
4201
4231
  function buildAsset(params) {
4202
4232
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4203
4233
  const isPusd = tokenKind === "pusd";
4204
- const tokenAddress = isPusd ? _chunk4IOQIWDYcjs.POLYMARKET_PUSD_ADDRESS : _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS;
4234
+ const tokenAddress = isPusd ? _chunkORKEBFMRcjs.POLYMARKET_PUSD_ADDRESS : _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS;
4205
4235
  const symbol = isPusd ? "pUSD" : "USDC.e";
4206
4236
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4207
4237
  const metadata = { proxyWallet, tokenKind, walletKind };
4208
4238
  return {
4209
4239
  id: `polymarket:${tokenKind}`,
4210
- chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4240
+ chainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
4211
4241
  token: tokenAddress,
4212
4242
  symbol,
4213
4243
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4214
- icon: isPusd ? _chunk4IOQIWDYcjs.POLYMARKET_ICON_URL : void 0,
4244
+ icon: isPusd ? _chunkORKEBFMRcjs.POLYMARKET_ICON_URL : void 0,
4215
4245
  decimals: 6,
4216
4246
  balance: balance.toString(),
4217
4247
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4221,8 +4251,8 @@ function buildAsset(params) {
4221
4251
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4222
4252
  // arrives at the smart account, so it's also what the orchestrator
4223
4253
  // bridges from.
4224
- depositToken: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4225
- depositChainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4254
+ depositToken: _chunkORKEBFMRcjs.POLYMARKET_USDCE_ADDRESS,
4255
+ depositChainId: _chunkORKEBFMRcjs.POLYMARKET_POLYGON_CHAIN_ID,
4226
4256
  providerMetadata: metadata
4227
4257
  };
4228
4258
  }
@@ -4246,7 +4276,8 @@ function createInitialState(overrides) {
4246
4276
  step: "connect",
4247
4277
  mode: null,
4248
4278
  isConnectSelectionConfirmed: false,
4249
- hasNavigatedBack: false
4279
+ hasNavigatedBack: false,
4280
+ methodTab: "crypto"
4250
4281
  },
4251
4282
  wallet: {
4252
4283
  selectedWalletId: null
@@ -4327,7 +4358,7 @@ function readPortfolioEntry(portfolio, network, address) {
4327
4358
  function computeDappImportStatus(providerId, inputs) {
4328
4359
  const { owner, availability, availabilityOwner, setup } = inputs;
4329
4360
  if (!owner) return "needs-connect";
4330
- 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;
4331
4362
  if (entry === "loading" || entry === void 0) return "loading";
4332
4363
  if (entry === "error") {
4333
4364
  return {
@@ -4623,6 +4654,11 @@ function applyAction(state, action) {
4623
4654
  step: "deposit-address"
4624
4655
  }
4625
4656
  };
4657
+ case "connect/method-tab-changed":
4658
+ return {
4659
+ ...state,
4660
+ flow: { ...state.flow, methodTab: action.tab }
4661
+ };
4626
4662
  case "connect/fiat-onramp-selected":
4627
4663
  return {
4628
4664
  ...state,
@@ -4681,12 +4717,12 @@ function applyAction(state, action) {
4681
4717
  requestKey: action.requestKey,
4682
4718
  cacheKey: action.cacheKey,
4683
4719
  status: "loading",
4684
- smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _133 => _133.smartAccount]), () => ( null)),
4685
- sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _134 => _134.sessionOwnerAddress]), () => ( null)),
4686
- 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)),
4687
4723
  message: null,
4688
4724
  cacheable: action.cacheable,
4689
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _136 => _136.attemptNonce]), () => ( 0))
4725
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _140 => _140.attemptNonce]), () => ( 0))
4690
4726
  }));
4691
4727
  }
4692
4728
  case "setup/ready": {
@@ -4889,7 +4925,7 @@ function applyAction(state, action) {
4889
4925
  flow: { ...state.flow, step: "processing" }
4890
4926
  };
4891
4927
  case "processing/quote-fee-breakdown-loaded":
4892
- 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()) {
4893
4929
  return state;
4894
4930
  }
4895
4931
  return {
@@ -5056,7 +5092,8 @@ function applyAction(state, action) {
5056
5092
  step: "connect",
5057
5093
  mode: null,
5058
5094
  isConnectSelectionConfirmed: false,
5059
- hasNavigatedBack: false
5095
+ hasNavigatedBack: false,
5096
+ methodTab: "crypto"
5060
5097
  },
5061
5098
  wallet: {
5062
5099
  selectedWalletId: null
@@ -5168,15 +5205,15 @@ var SetupError = class extends Error {
5168
5205
  }
5169
5206
  };
5170
5207
  async function resolveSessionOwner(eoaAddress) {
5171
- const local = _chunkIRI34U6Ncjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5208
+ const local = _chunkDSXMWQYBcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5172
5209
  if (local) {
5173
5210
  return {
5174
- account: _chunkIRI34U6Ncjs.accountFromPrivateKey.call(void 0, local.privateKey),
5211
+ account: _chunkDSXMWQYBcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5175
5212
  address: local.address
5176
5213
  };
5177
5214
  }
5178
- const created = _chunkIRI34U6Ncjs.createSessionOwnerKey.call(void 0, );
5179
- _chunkIRI34U6Ncjs.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);
5180
5217
  return { account: created.account, address: created.address };
5181
5218
  }
5182
5219
  function stableStringify(value) {
@@ -5232,7 +5269,7 @@ var setupRequestDedupe = /* @__PURE__ */ new Map();
5232
5269
  function readDedupedAccountSetupResult(requestKey) {
5233
5270
  const now = Date.now();
5234
5271
  const existing = setupRequestDedupe.get(requestKey);
5235
- 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) {
5236
5273
  return existing.result;
5237
5274
  }
5238
5275
  return null;
@@ -5243,7 +5280,7 @@ async function runAccountSetup(input, deps) {
5243
5280
  try {
5244
5281
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5245
5282
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5246
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5283
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5247
5284
  owner: input.ownerAddress,
5248
5285
  sessionOwner: sessionOwner.address,
5249
5286
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
@@ -5251,7 +5288,7 @@ async function runAccountSetup(input, deps) {
5251
5288
  const setup = await service.setupAccount({
5252
5289
  ownerAddress: input.ownerAddress,
5253
5290
  sessionOwnerAddress: sessionOwner.address,
5254
- targetChain: _chunkPUMTR35Ecjs.targetChainToCaip2.call(void 0, input.targetChain),
5291
+ targetChain: _chunkP5T4XSN2cjs.targetChainToCaip2.call(void 0, input.targetChain),
5255
5292
  targetToken: input.targetToken,
5256
5293
  recipient: input.recipient,
5257
5294
  outputTokenRules: input.outputTokenRules,
@@ -5289,7 +5326,7 @@ async function runAccountSetup(input, deps) {
5289
5326
  primaryType: typedData.primaryType,
5290
5327
  message: typedData.message
5291
5328
  });
5292
- const sessionDetails = _chunkIRI34U6Ncjs.buildSessionDetails.call(void 0,
5329
+ const sessionDetails = _chunkDSXMWQYBcjs.buildSessionDetails.call(void 0,
5293
5330
  setup.sessionDetailsUnsigned,
5294
5331
  signature
5295
5332
  );
@@ -5303,10 +5340,10 @@ async function runAccountSetup(input, deps) {
5303
5340
  eoaAddress: input.ownerAddress,
5304
5341
  sessionOwner: sessionOwner.address,
5305
5342
  target: {
5306
- chain: _chunkPUMTR35Ecjs.targetChainToCaip2.call(void 0, input.targetChain),
5343
+ chain: _chunkP5T4XSN2cjs.targetChainToCaip2.call(void 0, input.targetChain),
5307
5344
  token: input.targetToken,
5308
5345
  ...input.recipient && { recipient: input.recipient },
5309
- ..._optionalChain([input, 'access', _142 => _142.outputTokenRules, 'optionalAccess', _143 => _143.length]) && {
5346
+ ..._optionalChain([input, 'access', _146 => _146.outputTokenRules, 'optionalAccess', _147 => _147.length]) && {
5310
5347
  outputTokenRules: input.outputTokenRules
5311
5348
  },
5312
5349
  ...input.rejectUnmapped != null && {
@@ -5322,7 +5359,7 @@ async function runAccountSetup(input, deps) {
5322
5359
  isRegistered: true
5323
5360
  };
5324
5361
  } catch (error) {
5325
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5362
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5326
5363
  owner: input.ownerAddress
5327
5364
  });
5328
5365
  if (error instanceof SetupError) throw error;
@@ -5333,7 +5370,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5333
5370
  const now = Date.now();
5334
5371
  const existing = setupRequestDedupe.get(requestKey);
5335
5372
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5336
- _chunkIRI34U6Ncjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5373
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5337
5374
  owner: input.ownerAddress,
5338
5375
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5339
5376
  });
@@ -5428,7 +5465,7 @@ var SWAPPED_QUOTE_FEE_TIMEOUT_MS = 2500;
5428
5465
  async function fetchQuoteFeeBreakdown(params) {
5429
5466
  try {
5430
5467
  if (BigInt(params.amount) <= 0n) return void 0;
5431
- } catch (e30) {
5468
+ } catch (e31) {
5432
5469
  return void 0;
5433
5470
  }
5434
5471
  let timeoutId;
@@ -5444,8 +5481,8 @@ async function fetchQuoteFeeBreakdown(params) {
5444
5481
  timeoutId = setTimeout(resolve, SWAPPED_QUOTE_FEE_TIMEOUT_MS, null);
5445
5482
  })
5446
5483
  ]);
5447
- return _optionalChain([quote, 'optionalAccess', _144 => _144.fees, 'optionalAccess', _145 => _145.breakdown]);
5448
- } catch (e31) {
5484
+ return _optionalChain([quote, 'optionalAccess', _148 => _148.fees, 'optionalAccess', _149 => _149.breakdown]);
5485
+ } catch (e32) {
5449
5486
  return void 0;
5450
5487
  } finally {
5451
5488
  if (timeoutId !== void 0) clearTimeout(timeoutId);
@@ -5631,7 +5668,7 @@ function DepositFlow({
5631
5668
  appBalanceUsd,
5632
5669
  outputTokenRules,
5633
5670
  rejectUnmapped,
5634
- signerAddress = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS,
5671
+ signerAddress = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS,
5635
5672
  sessionChainIds,
5636
5673
  forceRegister = false,
5637
5674
  enableSolana = true,
@@ -5655,11 +5692,11 @@ function DepositFlow({
5655
5692
  onError,
5656
5693
  debug
5657
5694
  }) {
5658
- const rpcUrls = _chunkIRI34U6Ncjs.useRpcUrls.call(void 0, );
5659
- const onStepChangeRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onStepChange);
5660
- const onEventRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onEvent);
5661
- const onLifecycleRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onLifecycle);
5662
- const onErrorRef = _chunkIRI34U6Ncjs.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);
5663
5700
  const storeApi = useDepositStoreApi();
5664
5701
  const flowSlice = useDepositStore((s) => s.flow);
5665
5702
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5676,13 +5713,13 @@ function DepositFlow({
5676
5713
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5677
5714
  const logFlow = _react.useCallback.call(void 0,
5678
5715
  (message, data) => {
5679
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5716
+ _chunkDSXMWQYBcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5680
5717
  },
5681
5718
  [debug]
5682
5719
  );
5683
5720
  const logFlowError = _react.useCallback.call(void 0,
5684
5721
  (message, error, data) => {
5685
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5722
+ _chunkDSXMWQYBcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5686
5723
  },
5687
5724
  [debug]
5688
5725
  );
@@ -5706,12 +5743,12 @@ function DepositFlow({
5706
5743
  };
5707
5744
  }, [enableSwappedPreconnect]);
5708
5745
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5709
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _146 => _146.switchChain])) return void 0;
5746
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _150 => _150.switchChain])) return void 0;
5710
5747
  return async (chainId) => {
5711
- 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 })]);
5712
5749
  };
5713
5750
  }, [dappWalletClient]);
5714
- 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));
5715
5752
  const walletOptions = _react.useMemo.call(void 0, () => {
5716
5753
  const options = [];
5717
5754
  const seen = /* @__PURE__ */ new Set();
@@ -5725,7 +5762,7 @@ function DepositFlow({
5725
5762
  });
5726
5763
  seen.add(id);
5727
5764
  }
5728
- 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) {
5729
5766
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5730
5767
  if (!seen.has(id)) {
5731
5768
  options.push({
@@ -5737,7 +5774,7 @@ function DepositFlow({
5737
5774
  });
5738
5775
  seen.add(id);
5739
5776
  }
5740
- } 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()}`)) {
5741
5778
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5742
5779
  if (!seen.has(id)) {
5743
5780
  options.push({
@@ -5754,20 +5791,20 @@ function DepositFlow({
5754
5791
  }, [
5755
5792
  connectedWalletAddress,
5756
5793
  dappAddress,
5757
- _optionalChain([reownWallet, 'optionalAccess', _153 => _153.address]),
5758
- _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isConnected]),
5759
- _optionalChain([reownWallet, 'optionalAccess', _155 => _155.walletClient]),
5760
- _optionalChain([reownWallet, 'optionalAccess', _156 => _156.publicClient]),
5761
- _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]),
5762
5799
  enableSolana,
5763
- _optionalChain([reownWallet, 'optionalAccess', _158 => _158.isSolana]),
5764
- _optionalChain([reownWallet, 'optionalAccess', _159 => _159.solanaAddress]),
5765
- _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])
5766
5803
  ]);
5767
- 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;
5768
5805
  const hasWalletOptions = walletOptions.length > 0;
5769
5806
  const hasReownSession = Boolean(
5770
- 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])
5771
5808
  );
5772
5809
  const isDappImportWalletHydrating = Boolean(
5773
5810
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
@@ -5787,9 +5824,9 @@ function DepositFlow({
5787
5824
  isConnectSelectionConfirmed,
5788
5825
  selectedWalletId
5789
5826
  ]);
5790
- const setupChainId = typeof targetChain === "number" && !_chunkPUMTR35Ecjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5791
- const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5792
- const isTargetStablecoin = _chunkPUMTR35Ecjs.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);
5793
5830
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5794
5831
  _react.useEffect.call(void 0, () => {
5795
5832
  targetMarketPriceRef.current = null;
@@ -5797,15 +5834,18 @@ function DepositFlow({
5797
5834
  return;
5798
5835
  }
5799
5836
  let cancelled = false;
5800
- service.fetchPrices([targetSymbol]).then((prices) => {
5837
+ _chunkDSXMWQYBcjs.fetchTokenPriceUsd.call(void 0, service, {
5838
+ chainId: targetChain,
5839
+ address: targetToken,
5840
+ symbol: targetSymbol
5841
+ }).then((price) => {
5801
5842
  if (cancelled) return;
5802
- const price = prices[targetSymbol.toUpperCase()];
5803
- targetMarketPriceRef.current = typeof price === "number" && price > 0 ? price : null;
5843
+ targetMarketPriceRef.current = price;
5804
5844
  });
5805
5845
  return () => {
5806
5846
  cancelled = true;
5807
5847
  };
5808
- }, [service, targetSymbol, isTargetStablecoin]);
5848
+ }, [service, targetSymbol, isTargetStablecoin, targetChain, targetToken]);
5809
5849
  const walletSignerContext = _react.useMemo.call(void 0, () => {
5810
5850
  if (flowMode === "deposit-address") {
5811
5851
  return null;
@@ -5815,16 +5855,16 @@ function DepositFlow({
5815
5855
  return {
5816
5856
  ownerAddress: dappAddress,
5817
5857
  walletClient: void 0,
5818
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5858
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5819
5859
  switchChain: void 0
5820
5860
  };
5821
5861
  }
5822
5862
  if (canAutoLock) {
5823
- 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));
5824
5864
  return {
5825
5865
  ownerAddress: dappWalletClient.account.address,
5826
5866
  walletClient: dappWalletClient,
5827
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5867
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5828
5868
  switchChain: dappSwitchChain
5829
5869
  };
5830
5870
  }
@@ -5838,24 +5878,24 @@ function DepositFlow({
5838
5878
  return {
5839
5879
  ownerAddress: dappAddress,
5840
5880
  walletClient: void 0,
5841
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5881
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5842
5882
  switchChain: void 0
5843
5883
  };
5844
5884
  }
5845
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _167 => _167.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5846
- 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));
5847
5887
  return {
5848
5888
  ownerAddress: dappWalletClient.account.address,
5849
5889
  walletClient: dappWalletClient,
5850
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5890
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5851
5891
  switchChain: dappSwitchChain
5852
5892
  };
5853
5893
  }
5854
- 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()) {
5855
5895
  return {
5856
5896
  ownerAddress: reownWallet.address,
5857
5897
  walletClient: reownWallet.walletClient,
5858
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5898
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5859
5899
  switchChain: reownWallet.switchChain
5860
5900
  };
5861
5901
  }
@@ -5894,7 +5934,7 @@ function DepositFlow({
5894
5934
  return {
5895
5935
  ownerAddress: dappAddress,
5896
5936
  walletClient: void 0,
5897
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5937
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDSXMWQYBcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5898
5938
  switchChain: void 0
5899
5939
  };
5900
5940
  }
@@ -5919,37 +5959,37 @@ function DepositFlow({
5919
5959
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5920
5960
  if (!selectedWalletId) return null;
5921
5961
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5922
- if (_optionalChain([opt, 'optionalAccess', _171 => _171.kind]) === "external" && opt.address) {
5962
+ if (_optionalChain([opt, 'optionalAccess', _175 => _175.kind]) === "external" && opt.address) {
5923
5963
  return opt.address;
5924
5964
  }
5925
- if (_optionalChain([opt, 'optionalAccess', _172 => _172.kind]) === "connected" && opt.address) {
5965
+ if (_optionalChain([opt, 'optionalAccess', _176 => _176.kind]) === "connected" && opt.address) {
5926
5966
  return opt.address;
5927
5967
  }
5928
5968
  return null;
5929
5969
  }, [selectedWalletId, walletOptions]);
5930
5970
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5931
5971
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5932
- if (_optionalChain([reownWallet, 'optionalAccess', _173 => _173.address]) && reownWallet.isConnected) {
5972
+ if (_optionalChain([reownWallet, 'optionalAccess', _177 => _177.address]) && reownWallet.isConnected) {
5933
5973
  return reownWallet.address;
5934
5974
  }
5935
5975
  if (connectedWalletAddress) return connectedWalletAddress;
5936
5976
  return null;
5937
5977
  }, [
5938
5978
  selectedEvmWalletOwner,
5939
- _optionalChain([reownWallet, 'optionalAccess', _174 => _174.address]),
5940
- _optionalChain([reownWallet, 'optionalAccess', _175 => _175.isConnected]),
5979
+ _optionalChain([reownWallet, 'optionalAccess', _178 => _178.address]),
5980
+ _optionalChain([reownWallet, 'optionalAccess', _179 => _179.isConnected]),
5941
5981
  connectedWalletAddress
5942
5982
  ]);
5943
5983
  const activeOwner = _react.useMemo.call(void 0,
5944
5984
  () => resolveOwnerForMode(flowMode, {
5945
5985
  dappAddress,
5946
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _176 => _176.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5986
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _180 => _180.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5947
5987
  dappImportOwner
5948
5988
  }),
5949
5989
  [
5950
5990
  flowMode,
5951
5991
  dappAddress,
5952
- _optionalChain([signerContext, 'optionalAccess', _177 => _177.ownerAddress]),
5992
+ _optionalChain([signerContext, 'optionalAccess', _181 => _181.ownerAddress]),
5953
5993
  canAutoLock,
5954
5994
  connectedWalletAddress,
5955
5995
  selectedEvmWalletOwner,
@@ -5978,12 +6018,12 @@ function DepositFlow({
5978
6018
  return;
5979
6019
  }
5980
6020
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5981
- _optionalChain([onLifecycleRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179({
6021
+ _optionalChain([onLifecycleRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5982
6022
  type: "smart-account-changed",
5983
6023
  evm: activeEntry.smartAccount,
5984
6024
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5985
6025
  })]);
5986
- _optionalChain([onLifecycleRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
6026
+ _optionalChain([onLifecycleRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
5987
6027
  type: "connected",
5988
6028
  address: activeOwner,
5989
6029
  smartAccount: activeEntry.smartAccount
@@ -6029,7 +6069,7 @@ function DepositFlow({
6029
6069
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
6030
6070
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
6031
6071
  _react.useEffect.call(void 0, () => {
6032
- _optionalChain([onStepChangeRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183(currentBackHandler, currentScreen)]);
6072
+ _optionalChain([onStepChangeRef, 'access', _186 => _186.current, 'optionalCall', _187 => _187(currentBackHandler, currentScreen)]);
6033
6073
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
6034
6074
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
6035
6075
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -6039,7 +6079,7 @@ function DepositFlow({
6039
6079
  modalContentElRef.current = mc;
6040
6080
  const ro = new ResizeObserver((entries) => {
6041
6081
  for (const entry of entries) {
6042
- 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]);
6043
6083
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
6044
6084
  }
6045
6085
  });
@@ -6080,23 +6120,23 @@ function DepositFlow({
6080
6120
  }
6081
6121
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
6082
6122
  if (effectiveStep.type === "select-asset") {
6083
- _optionalChain([onEventRef, 'access', _187 => _187.current, 'optionalCall', _188 => _188({
6123
+ _optionalChain([onEventRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192({
6084
6124
  type: "deposit_modal_connected_wallet_select_source_open",
6085
6125
  total_balance_in_external_wallet: totalBalanceUsd,
6086
6126
  pred_balance: totalBalanceUsd
6087
6127
  })]);
6088
6128
  } else if (effectiveStep.type === "deposit-address") {
6089
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
6090
- const tokenSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6091
- _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({
6092
6132
  type: "deposit_modal_transfer_crypto_open",
6093
6133
  default_chain: chainName,
6094
6134
  default_token: tokenSymbol,
6095
6135
  pred_balance: totalBalanceUsd
6096
6136
  })]);
6097
6137
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6098
- const receiveSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6099
- _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({
6100
6140
  type: "deposit_modal_connected_wallet_enter_value_open",
6101
6141
  send_token: stepSendToken,
6102
6142
  receive_token: receiveSymbol,
@@ -6129,7 +6169,7 @@ function DepositFlow({
6129
6169
  targetToken
6130
6170
  ]);
6131
6171
  _react.useEffect.call(void 0, () => {
6132
- _optionalChain([onLifecycleRef, 'access', _193 => _193.current, 'optionalCall', _194 => _194({
6172
+ _optionalChain([onLifecycleRef, 'access', _197 => _197.current, 'optionalCall', _198 => _198({
6133
6173
  type: "balance-changed",
6134
6174
  totalUsd: totalBalanceUsd
6135
6175
  })]);
@@ -6145,7 +6185,7 @@ function DepositFlow({
6145
6185
  const handleConfirmWallet = _react.useCallback.call(void 0,
6146
6186
  (walletId) => {
6147
6187
  const selectedOption = walletOptions.find((o) => o.id === walletId);
6148
- 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";
6149
6189
  storeApi.dispatch({
6150
6190
  type: "connect/wallet-confirmed",
6151
6191
  walletId,
@@ -6155,7 +6195,7 @@ function DepositFlow({
6155
6195
  [walletOptions, enableSolana, storeApi]
6156
6196
  );
6157
6197
  const isSolanaWalletConnected = Boolean(
6158
- 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])
6159
6199
  );
6160
6200
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
6161
6201
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -6172,7 +6212,7 @@ function DepositFlow({
6172
6212
  const owner = dappImportOwner;
6173
6213
  if (owner) {
6174
6214
  const wallet = walletOptions.find(
6175
- (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()
6176
6216
  );
6177
6217
  if (wallet) {
6178
6218
  storeApi.dispatch({
@@ -6213,8 +6253,8 @@ function DepositFlow({
6213
6253
  eoa: dappImportOwner,
6214
6254
  getPublicClient: (chainId) => {
6215
6255
  try {
6216
- return _chunkIRI34U6Ncjs.getPublicClient.call(void 0, chainId, rpcUrls);
6217
- } catch (e32) {
6256
+ return _chunkDSXMWQYBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6257
+ } catch (e33) {
6218
6258
  return null;
6219
6259
  }
6220
6260
  },
@@ -6290,7 +6330,7 @@ function DepositFlow({
6290
6330
  }, [activeDappImportProviderId, enabledDappImportProviders]);
6291
6331
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
6292
6332
  if (!activeDappImportProviderId) return null;
6293
- 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()) {
6294
6334
  return null;
6295
6335
  }
6296
6336
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6331,7 +6371,7 @@ function DepositFlow({
6331
6371
  setup: setupSlice
6332
6372
  });
6333
6373
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6334
- (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()
6335
6375
  ), () => ( null)) : null;
6336
6376
  const outcome = resolveBootOutcome({
6337
6377
  status,
@@ -6373,7 +6413,7 @@ function DepositFlow({
6373
6413
  if (dappImportOwner) {
6374
6414
  const plan = bootRetryPlan({
6375
6415
  setupStatus: readSetupForOwner(snapshot.setup, dappImportOwner).status,
6376
- 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
6377
6417
  });
6378
6418
  if (plan.restartSetup) {
6379
6419
  storeApi.dispatch({
@@ -6454,7 +6494,7 @@ function DepositFlow({
6454
6494
  swappedUrlPrefetchRef.current.clear();
6455
6495
  }, [dappAddress]);
6456
6496
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6457
- _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6497
+ _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6458
6498
  type: "smart-account-changed",
6459
6499
  evm: null,
6460
6500
  solana: null
@@ -6500,13 +6540,13 @@ function DepositFlow({
6500
6540
  };
6501
6541
  push(dappAddress);
6502
6542
  push(connectedWalletAddress);
6503
- push(_optionalChain([reownWallet, 'optionalAccess', _210 => _210.address]));
6543
+ push(_optionalChain([reownWallet, 'optionalAccess', _214 => _214.address]));
6504
6544
  push(dappImportOwner);
6505
6545
  return owners;
6506
6546
  }, [
6507
6547
  dappAddress,
6508
6548
  connectedWalletAddress,
6509
- _optionalChain([reownWallet, 'optionalAccess', _211 => _211.address]),
6549
+ _optionalChain([reownWallet, 'optionalAccess', _215 => _215.address]),
6510
6550
  dappImportOwner
6511
6551
  ]);
6512
6552
  _react.useEffect.call(void 0, () => {
@@ -6520,7 +6560,7 @@ function DepositFlow({
6520
6560
  try {
6521
6561
  sessionOwner = await resolveSessionOwner(owner);
6522
6562
  } catch (error) {
6523
- _chunkIRI34U6Ncjs.debugError.call(void 0,
6563
+ _chunkDSXMWQYBcjs.debugError.call(void 0,
6524
6564
  debug,
6525
6565
  "deposit-flow",
6526
6566
  "session-owner:resolve-failed",
@@ -6627,11 +6667,11 @@ function DepositFlow({
6627
6667
  return;
6628
6668
  }
6629
6669
  storeApi.dispatch({ type: "portfolio/loading", network, address });
6630
- const requestId = _optionalChain([readPortfolioEntry, 'call', _212 => _212(
6670
+ const requestId = _optionalChain([readPortfolioEntry, 'call', _216 => _216(
6631
6671
  storeApi.getState().portfolio,
6632
6672
  network,
6633
6673
  address
6634
- ), 'optionalAccess', _213 => _213.requestId]);
6674
+ ), 'optionalAccess', _217 => _217.requestId]);
6635
6675
  if (requestId === void 0) return;
6636
6676
  void (async () => {
6637
6677
  try {
@@ -6645,7 +6685,7 @@ function DepositFlow({
6645
6685
  requestId,
6646
6686
  totalUsd: portfolio.totalUsd
6647
6687
  });
6648
- } catch (e33) {
6688
+ } catch (e34) {
6649
6689
  storeApi.dispatch({
6650
6690
  type: "portfolio/failed",
6651
6691
  network,
@@ -6663,7 +6703,7 @@ function DepositFlow({
6663
6703
  sourceChain: data.sourceChain,
6664
6704
  amount: data.amount
6665
6705
  });
6666
- _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 })]);
6667
6707
  },
6668
6708
  [logFlow, onLifecycleRef]
6669
6709
  );
@@ -6682,8 +6722,8 @@ function DepositFlow({
6682
6722
  );
6683
6723
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6684
6724
  (token, sourceAmount, inputAmountUsd) => {
6685
- const targetSym = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6686
- const isTargetStable = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSym);
6725
+ const targetSym = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6726
+ const isTargetStable = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, targetSym);
6687
6727
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6688
6728
  logFlow("solana:amount:continue", {
6689
6729
  token: token.symbol,
@@ -6723,7 +6763,7 @@ function DepositFlow({
6723
6763
  sourceDecimals: tokenAtSubmit.decimals,
6724
6764
  inputAmountUsd: amountUsd
6725
6765
  });
6726
- _optionalChain([onLifecycleRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217({
6766
+ _optionalChain([onLifecycleRef, 'access', _220 => _220.current, 'optionalCall', _221 => _221({
6727
6767
  type: "submitted",
6728
6768
  txHash,
6729
6769
  sourceChain: "solana",
@@ -6736,7 +6776,7 @@ function DepositFlow({
6736
6776
  );
6737
6777
  const handleAssetContinue = _react.useCallback.call(void 0,
6738
6778
  (asset) => {
6739
- _optionalChain([onEventRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6779
+ _optionalChain([onEventRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({
6740
6780
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6741
6781
  total_balance_in_external_wallet: totalBalanceUsd,
6742
6782
  pred_balance: totalBalanceUsd,
@@ -6759,8 +6799,8 @@ function DepositFlow({
6759
6799
  activeOwner
6760
6800
  );
6761
6801
  if (entry.status !== "ready") return;
6762
- const targetSym = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6763
- const isTargetStable = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSym);
6802
+ const targetSym = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6803
+ const isTargetStable = _chunkP5T4XSN2cjs.isStablecoinSymbol.call(void 0, targetSym);
6764
6804
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6765
6805
  storeApi.dispatch({
6766
6806
  type: "amount/entered",
@@ -6790,8 +6830,8 @@ function DepositFlow({
6790
6830
  sourceChain: chainId,
6791
6831
  sourceToken: token,
6792
6832
  amount,
6793
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _220 => _220.symbol]),
6794
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _221 => _221.decimals]),
6833
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _224 => _224.symbol]),
6834
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _225 => _225.decimals]),
6795
6835
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6796
6836
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken),
6797
6837
  quoteFeeBreakdown
@@ -6827,7 +6867,7 @@ function DepositFlow({
6827
6867
  swappedContext,
6828
6868
  initialEvent: info.initialEvent
6829
6869
  });
6830
- _optionalChain([onLifecycleRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({
6870
+ _optionalChain([onLifecycleRef, 'access', _226 => _226.current, 'optionalCall', _227 => _227({
6831
6871
  type: "submitted",
6832
6872
  txHash: info.txHash,
6833
6873
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6855,12 +6895,12 @@ function DepositFlow({
6855
6895
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6856
6896
  (txHash, sourceChain, amount) => {
6857
6897
  const depositAtSubmit = storeApi.getState().deposit;
6858
- _optionalChain([onLifecycleRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225({
6898
+ _optionalChain([onLifecycleRef, 'access', _228 => _228.current, 'optionalCall', _229 => _229({
6859
6899
  type: "submitted",
6860
6900
  txHash,
6861
6901
  sourceChain,
6862
6902
  amount,
6863
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _226 => _226.selectedAsset, 'optionalAccess', _227 => _227.decimals]),
6903
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _230 => _230.selectedAsset, 'optionalAccess', _231 => _231.decimals]),
6864
6904
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6865
6905
  })]);
6866
6906
  },
@@ -6869,7 +6909,7 @@ function DepositFlow({
6869
6909
  const handleDepositComplete = _react.useCallback.call(void 0,
6870
6910
  (txHash, destinationTxHash, context) => {
6871
6911
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6872
- _optionalChain([onLifecycleRef, 'access', _228 => _228.current, 'optionalCall', _229 => _229({
6912
+ _optionalChain([onLifecycleRef, 'access', _232 => _232.current, 'optionalCall', _233 => _233({
6873
6913
  type: "complete",
6874
6914
  txHash,
6875
6915
  destinationTxHash,
@@ -6881,14 +6921,14 @@ function DepositFlow({
6881
6921
  const handleDepositFailed = _react.useCallback.call(void 0,
6882
6922
  (txHash, error) => {
6883
6923
  logFlowError("deposit:failed", error, { txHash });
6884
- _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 })]);
6885
6925
  },
6886
6926
  [logFlowError, onLifecycleRef]
6887
6927
  );
6888
6928
  const handleError = _react.useCallback.call(void 0,
6889
6929
  (message, code) => {
6890
6930
  logFlowError("flow:error", message, { code });
6891
- _optionalChain([onErrorRef, 'access', _232 => _232.current, 'optionalCall', _233 => _233({ message, code })]);
6931
+ _optionalChain([onErrorRef, 'access', _236 => _236.current, 'optionalCall', _237 => _237({ message, code })]);
6892
6932
  },
6893
6933
  [logFlowError, onErrorRef]
6894
6934
  );
@@ -6946,8 +6986,8 @@ function DepositFlow({
6946
6986
  address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
6947
6987
  state,
6948
6988
  errorReason: _nullishCoalesce(entry.message, () => ( void 0)),
6949
- balanceStatus: _nullishCoalesce(_optionalChain([portfolioEntry, 'optionalAccess', _234 => _234.status]), () => ( "loading")),
6950
- 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
6951
6991
  };
6952
6992
  });
6953
6993
  }, [walletOptions, setupSlice, dappAddress, portfolioSlice]);
@@ -6964,9 +7004,11 @@ function DepositFlow({
6964
7004
  );
6965
7005
  if (showConnectStep) {
6966
7006
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6967
- _chunkIRI34U6Ncjs.ConnectStep,
7007
+ _chunkDSXMWQYBcjs.ConnectStep,
6968
7008
  {
6969
7009
  walletRows,
7010
+ defaultMethodTab: flowSlice.methodTab,
7011
+ onMethodTabChange: (tab) => storeApi.dispatch({ type: "connect/method-tab-changed", tab }),
6970
7012
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
6971
7013
  transferCryptoErrorReason: dappAddress ? _nullishCoalesce(transferCryptoEntry.message, () => ( void 0)) : void 0,
6972
7014
  onSelectTransferCrypto: enableQrTransfer && dappAddress ? () => {
@@ -6997,7 +7039,7 @@ function DepositFlow({
6997
7039
  },
6998
7040
  dappImports: connectStepDappImports,
6999
7041
  onSelectDappImport: (providerId) => {
7000
- 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;
7001
7043
  if (availabilityEntry === "error") {
7002
7044
  storeApi.dispatch({
7003
7045
  type: "dapp-import/availability-retry-requested"
@@ -7048,9 +7090,9 @@ function DepositFlow({
7048
7090
  onDepositComplete: handleDepositComplete,
7049
7091
  onDepositFailed: handleDepositFailed,
7050
7092
  onCopyAddress: () => {
7051
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
7052
- const tokenSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7053
- _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({
7054
7096
  type: "deposit_modal_transfer_crypto_cta_click",
7055
7097
  default_chain: chainName,
7056
7098
  default_token: tokenSymbol,
@@ -7097,7 +7139,7 @@ function DepositFlow({
7097
7139
  }
7098
7140
  ),
7099
7141
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7100
- _chunkIRI34U6Ncjs.ProcessingStep,
7142
+ _chunkDSXMWQYBcjs.ProcessingStep,
7101
7143
  {
7102
7144
  smartAccount: step.smartAccount,
7103
7145
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7169,7 +7211,7 @@ function DepositFlow({
7169
7211
  }
7170
7212
  ),
7171
7213
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7172
- _chunkIRI34U6Ncjs.ProcessingStep,
7214
+ _chunkDSXMWQYBcjs.ProcessingStep,
7173
7215
  {
7174
7216
  smartAccount: step.smartAccount,
7175
7217
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7203,8 +7245,8 @@ function DepositFlow({
7203
7245
  }
7204
7246
  if (isSolanaWalletMode) {
7205
7247
  if (!dappAddress) return null;
7206
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _239 => _239.solanaAddress]);
7207
- 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]);
7208
7250
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7209
7251
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7210
7252
  AccountPreparingSkeleton,
@@ -7236,8 +7278,8 @@ function DepositFlow({
7236
7278
  defaultAmount: effectiveStep.inputAmountUsd,
7237
7279
  uiConfig,
7238
7280
  targetChain,
7239
- targetChainName: _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain),
7240
- targetTokenSymbol: _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7281
+ targetChainName: _chunkP5T4XSN2cjs.getChainName.call(void 0, targetChain),
7282
+ targetTokenSymbol: _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7241
7283
  appBalanceUsd,
7242
7284
  onContinue: handleSolanaAmountContinue,
7243
7285
  debug
@@ -7258,7 +7300,7 @@ function DepositFlow({
7258
7300
  targetToken,
7259
7301
  service,
7260
7302
  solanaProvider,
7261
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _241 => _241.solanaConnection]),
7303
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _245 => _245.solanaConnection]),
7262
7304
  uiConfig,
7263
7305
  onConfirm: handleSolanaConfirmed,
7264
7306
  onError: handleError,
@@ -7299,7 +7341,7 @@ function DepositFlow({
7299
7341
  ) })
7300
7342
  ] }) : null,
7301
7343
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7302
- _chunkIRI34U6Ncjs.ProcessingStep,
7344
+ _chunkDSXMWQYBcjs.ProcessingStep,
7303
7345
  {
7304
7346
  smartAccount: effectiveStep.smartAccount,
7305
7347
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7336,7 +7378,7 @@ function DepositFlow({
7336
7378
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7337
7379
  DappImportAssetSelectSkeleton,
7338
7380
  {
7339
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _242 => _242.sourceLabel]), () => ( "")),
7381
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _246 => _246.sourceLabel]), () => ( "")),
7340
7382
  error: dappImportBootError,
7341
7383
  onRetry: handleBootRetry
7342
7384
  }
@@ -7344,16 +7386,16 @@ function DepositFlow({
7344
7386
  }
7345
7387
  );
7346
7388
  }
7347
- 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])) {
7348
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" }) }) }) }) });
7349
7391
  }
7350
7392
  const ownerAddress = signerContext.ownerAddress;
7351
- 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));
7352
7394
  const getReadClientForChain = (chainId) => {
7353
- 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) {
7354
7396
  return signerContext.publicClient;
7355
7397
  }
7356
- return _chunkIRI34U6Ncjs.getPublicClient.call(void 0, chainId, rpcUrls);
7398
+ return _chunkDSXMWQYBcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7357
7399
  };
7358
7400
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7359
7401
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7383,7 +7425,7 @@ function DepositFlow({
7383
7425
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7384
7426
  DappImportAssetSelectStep,
7385
7427
  {
7386
- 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)),
7387
7429
  assets: activeDappImportAvailability.assets,
7388
7430
  onSelect: handleDappImportAssetSelected
7389
7431
  }
@@ -7409,8 +7451,8 @@ function DepositFlow({
7409
7451
  service,
7410
7452
  onContinue: handleAmountContinue,
7411
7453
  onCtaClick: (ctaName) => {
7412
- const receiveSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7413
- _optionalChain([onEvent, 'optionalCall', _257 => _257({
7454
+ const receiveSymbol = _chunkP5T4XSN2cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7455
+ _optionalChain([onEvent, 'optionalCall', _261 => _261({
7414
7456
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7415
7457
  send_token: effectiveStep.asset.symbol,
7416
7458
  receive_token: receiveSymbol,
@@ -7462,7 +7504,7 @@ function DepositFlow({
7462
7504
  }
7463
7505
  ),
7464
7506
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7465
- _chunkIRI34U6Ncjs.ProcessingStep,
7507
+ _chunkDSXMWQYBcjs.ProcessingStep,
7466
7508
  {
7467
7509
  smartAccount: effectiveStep.smartAccount,
7468
7510
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7508,16 +7550,16 @@ function formatDate(iso) {
7508
7550
  month: "short",
7509
7551
  year: "numeric"
7510
7552
  });
7511
- } catch (e34) {
7553
+ } catch (e35) {
7512
7554
  return iso;
7513
7555
  }
7514
7556
  }
7515
7557
  function resolveChainId(value) {
7516
7558
  if (value === void 0 || value === null) return null;
7517
7559
  if (typeof value === "number") return value;
7518
- if (_chunkPUMTR35Ecjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7519
- if (_chunkPUMTR35Ecjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7520
- const parsed = _chunkPUMTR35Ecjs.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);
7521
7563
  if (parsed !== null) return parsed;
7522
7564
  const num = Number(value);
7523
7565
  return Number.isFinite(num) ? num : null;
@@ -7526,7 +7568,7 @@ function resolveTokenSymbol(token, chainId) {
7526
7568
  if (!token) return "";
7527
7569
  if (chainId === "solana") {
7528
7570
  const normalized = token.toLowerCase();
7529
- const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
7571
+ const matched = _chunkP5T4XSN2cjs.SOLANA_TOKENS.find(
7530
7572
  (entry) => entry.mint.toLowerCase() === normalized
7531
7573
  );
7532
7574
  if (matched) return matched.symbol;
@@ -7535,8 +7577,8 @@ function resolveTokenSymbol(token, chainId) {
7535
7577
  }
7536
7578
  }
7537
7579
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7538
- const evmChainId = chainId === "hypercore" ? _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID : chainId;
7539
- const sym = _chunkPUMTR35Ecjs.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);
7540
7582
  if (sym !== "Token") return sym;
7541
7583
  }
7542
7584
  return shortenHash(token);
@@ -7547,7 +7589,7 @@ function formatAmount(rawAmount, token, chainId) {
7547
7589
  if (token && chainId !== null && chainId !== void 0) {
7548
7590
  if (chainId === "solana") {
7549
7591
  const normalized = token.toLowerCase();
7550
- const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
7592
+ const matched = _chunkP5T4XSN2cjs.SOLANA_TOKENS.find(
7551
7593
  (entry) => entry.mint.toLowerCase() === normalized
7552
7594
  );
7553
7595
  if (matched) {
@@ -7556,8 +7598,8 @@ function formatAmount(rawAmount, token, chainId) {
7556
7598
  decimals = 9;
7557
7599
  }
7558
7600
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7559
- const evmChainId = chainId === "hypercore" ? _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID : chainId;
7560
- decimals = _chunkPUMTR35Ecjs.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);
7561
7603
  }
7562
7604
  }
7563
7605
  try {
@@ -7569,13 +7611,13 @@ function formatAmount(rawAmount, token, chainId) {
7569
7611
  let frac = fracStr.slice(0, 5).replace(/0+$/, "");
7570
7612
  if (frac.length < 2) frac = frac.padEnd(2, "0");
7571
7613
  return `${whole}.${frac}`;
7572
- } catch (e35) {
7614
+ } catch (e36) {
7573
7615
  return rawAmount;
7574
7616
  }
7575
7617
  }
7576
7618
  function getTxExplorerUrl(txHash, chainId) {
7577
7619
  if (!chainId) return null;
7578
- const base2 = _chunkPUMTR35Ecjs.getExplorerUrl.call(void 0, chainId);
7620
+ const base2 = _chunkP5T4XSN2cjs.getExplorerUrl.call(void 0, chainId);
7579
7621
  if (!base2) return null;
7580
7622
  return `${base2}/tx/${txHash}`;
7581
7623
  }
@@ -7618,7 +7660,7 @@ function DepositHistoryPanel({
7618
7660
  );
7619
7661
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7620
7662
  const sourceHashes = new Set(
7621
- 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))
7622
7664
  );
7623
7665
  return deposits.filter(
7624
7666
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7640,7 +7682,7 @@ function DepositHistoryPanel({
7640
7682
  className: "rs-modal-header-back",
7641
7683
  "aria-label": "Back",
7642
7684
  onClick: onClose,
7643
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronLeftIcon, {})
7685
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronLeftIcon, {})
7644
7686
  }
7645
7687
  ) }),
7646
7688
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7650,29 +7692,29 @@ function DepositHistoryPanel({
7650
7692
  className: "rs-modal-close",
7651
7693
  "aria-label": "Close",
7652
7694
  onClick: onCloseModal,
7653
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
7695
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {})
7654
7696
  }
7655
7697
  ) })
7656
7698
  ] }),
7657
7699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7658
7700
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7659
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}), title: "History" }),
7701
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HistoryIcon, {}), title: "History" }),
7660
7702
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7661
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
7662
7704
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7663
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-spinner--sm" }),
7705
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.Spinner, { className: "rs-spinner--sm" }),
7664
7706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7665
7707
  ] })
7666
7708
  ] }),
7667
7709
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7668
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
7669
7711
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7670
7712
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7671
7713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7672
7714
  ] })
7673
7715
  ] }),
7674
7716
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7675
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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, {}) }),
7676
7718
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7677
7719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7678
7720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7692,7 +7734,7 @@ function DepositHistoryPanel({
7692
7734
  )
7693
7735
  ] })
7694
7736
  ] }),
7695
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
7737
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.PoweredBy, {})
7696
7738
  ] })
7697
7739
  ]
7698
7740
  }
@@ -7703,10 +7745,10 @@ function HistoryCard({ deposit }) {
7703
7745
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7704
7746
  const sourceChainId = resolveChainId(deposit.chain);
7705
7747
  const targetChainId = resolveChainId(deposit.targetChain);
7706
- const sourceChainName = sourceChainId ? _chunkPUMTR35Ecjs.getChainName.call(void 0, sourceChainId) : null;
7707
- const targetChainName = targetChainId ? _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChainId) : null;
7708
- const sourceChainIcon = sourceChainId ? _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7709
- const targetChainIcon = targetChainId ? _chunkPUMTR35Ecjs.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;
7710
7752
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7711
7753
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7712
7754
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
@@ -7728,7 +7770,7 @@ function HistoryCard({ deposit }) {
7728
7770
  children: [
7729
7771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
7730
7772
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
7731
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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) }) }),
7732
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: "" }) })
7733
7775
  ] }),
7734
7776
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
@@ -7767,7 +7809,7 @@ function HistoryCard({ deposit }) {
7767
7809
  onClick: (e) => e.stopPropagation(),
7768
7810
  children: [
7769
7811
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
7770
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ArrowUpRightIcon, {})
7812
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ArrowUpRightIcon, {})
7771
7813
  ]
7772
7814
  }
7773
7815
  )
@@ -7782,7 +7824,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7782
7824
  // src/DepositModal.tsx
7783
7825
 
7784
7826
  var ReownDepositInner = _react.lazy.call(void 0,
7785
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-J5YFZKFS.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7827
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-A2W6R27Q.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7786
7828
  );
7787
7829
  function sortByCreatedAtDesc(items) {
7788
7830
  return [...items].sort((a, b) => {
@@ -7831,9 +7873,9 @@ function DepositModalInner({
7831
7873
  defaultAmount,
7832
7874
  recipient,
7833
7875
  appBalanceUsd,
7834
- backendUrl = _chunkPUMTR35Ecjs.DEFAULT_BACKEND_URL,
7876
+ backendUrl = _chunkP5T4XSN2cjs.DEFAULT_BACKEND_URL,
7835
7877
  rpcUrls: rpcUrlsProp,
7836
- signerAddress = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS,
7878
+ signerAddress = _chunkP5T4XSN2cjs.DEFAULT_SIGNER_ADDRESS,
7837
7879
  sessionChainIds,
7838
7880
  forceRegister = false,
7839
7881
  enableSolana = true,
@@ -7860,13 +7902,13 @@ function DepositModalInner({
7860
7902
  debug
7861
7903
  }) {
7862
7904
  const modalRef = _react.useRef.call(void 0, null);
7863
- const onReadyRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onReady);
7905
+ const onReadyRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onReady);
7864
7906
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7865
7907
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
7866
7908
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7867
7909
  void 0
7868
7910
  );
7869
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _261 => _261.showHistoryButton]), () => ( false));
7911
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _265 => _265.showHistoryButton]), () => ( false));
7870
7912
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7871
7913
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7872
7914
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7877,23 +7919,23 @@ function DepositModalInner({
7877
7919
  const cursorRef = _react.useRef.call(void 0, null);
7878
7920
  const historyStaleRef = _react.useRef.call(void 0, false);
7879
7921
  const historyLoadedRef = _react.useRef.call(void 0, false);
7880
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkPUMTR35Ecjs.getChainId.call(void 0, targetChainProp);
7881
- const sourceChain = sourceChainProp ? _chunkPUMTR35Ecjs.getChainId.call(void 0, sourceChainProp) : void 0;
7882
- const rpcUrls = _chunkIRI34U6Ncjs.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);
7883
7925
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7884
- const onErrorRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onError);
7926
+ const onErrorRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onError);
7885
7927
  _react.useEffect.call(void 0, () => {
7886
- if (targetChain !== _chunkPUMTR35Ecjs.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 })) {
7887
7929
  setRecipientIsContract(false);
7888
7930
  return;
7889
7931
  }
7890
7932
  let cancelled = false;
7891
- _chunkIRI34U6Ncjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7933
+ _chunkDSXMWQYBcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7892
7934
  if (cancelled) return;
7893
- const isContract = _chunkPUMTR35Ecjs.isContractBytecode.call(void 0, code);
7935
+ const isContract = _chunkP5T4XSN2cjs.isContractBytecode.call(void 0, code);
7894
7936
  setRecipientIsContract(isContract);
7895
7937
  if (isContract) {
7896
- _optionalChain([onErrorRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
7938
+ _optionalChain([onErrorRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267({
7897
7939
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7898
7940
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7899
7941
  })]);
@@ -7906,7 +7948,7 @@ function DepositModalInner({
7906
7948
  };
7907
7949
  }, [targetChain, recipient, onErrorRef, rpcUrls]);
7908
7950
  const service = _react.useMemo.call(void 0,
7909
- () => _chunkIRI34U6Ncjs.createDepositService.call(void 0, backendUrl, {
7951
+ () => _chunkDSXMWQYBcjs.createDepositService.call(void 0, backendUrl, {
7910
7952
  debug,
7911
7953
  debugScope: "service:deposit"
7912
7954
  }),
@@ -7940,12 +7982,12 @@ function DepositModalInner({
7940
7982
  }, [store, targetChain, targetToken]);
7941
7983
  _react.useEffect.call(void 0, () => {
7942
7984
  if (isOpen && modalRef.current) {
7943
- _chunkIRI34U6Ncjs.applyTheme.call(void 0, modalRef.current, theme);
7985
+ _chunkDSXMWQYBcjs.applyTheme.call(void 0, modalRef.current, theme);
7944
7986
  }
7945
7987
  }, [isOpen, theme]);
7946
7988
  _react.useEffect.call(void 0, () => {
7947
7989
  if (isOpen) {
7948
- _optionalChain([onReadyRef, 'access', _264 => _264.current, 'optionalCall', _265 => _265()]);
7990
+ _optionalChain([onReadyRef, 'access', _268 => _268.current, 'optionalCall', _269 => _269()]);
7949
7991
  }
7950
7992
  }, [isOpen, onReadyRef]);
7951
7993
  const handleStepChange = _react.useCallback.call(void 0,
@@ -8021,10 +8063,10 @@ function DepositModalInner({
8021
8063
  fetchHistory("initial");
8022
8064
  }
8023
8065
  }, [historyOpen, fetchHistory]);
8024
- const onLifecycleRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onLifecycle);
8066
+ const onLifecycleRef = _chunkDSXMWQYBcjs.useLatestRef.call(void 0, onLifecycle);
8025
8067
  const handleLifecycle = _react.useCallback.call(void 0,
8026
8068
  (event) => {
8027
- _optionalChain([onLifecycleRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267(event)]);
8069
+ _optionalChain([onLifecycleRef, 'access', _270 => _270.current, 'optionalCall', _271 => _271(event)]);
8028
8070
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
8029
8071
  historyStaleRef.current = true;
8030
8072
  }
@@ -8053,12 +8095,12 @@ function DepositModalInner({
8053
8095
  store.dispatch({ type: "flow/reset" });
8054
8096
  }
8055
8097
  }, [isOpen, store]);
8056
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _268 => _268.showBackButton]), () => ( true));
8098
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _272 => _272.showBackButton]), () => ( true));
8057
8099
  const canGoBack = backHandler !== void 0;
8058
8100
  const hideHeaderChrome = swappedImmersive;
8059
8101
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8060
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8061
- _chunkIRI34U6Ncjs.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,
8062
8104
  {
8063
8105
  isOpen,
8064
8106
  onClose,
@@ -8074,7 +8116,7 @@ function DepositModalInner({
8074
8116
  className: "rs-modal-header-back",
8075
8117
  "aria-label": "Go back",
8076
8118
  onClick: backHandler,
8077
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronLeftIcon, {})
8119
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.ChevronLeftIcon, {})
8078
8120
  }
8079
8121
  ) }),
8080
8122
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8086,7 +8128,7 @@ function DepositModalInner({
8086
8128
  "aria-label": "Deposit history",
8087
8129
  onClick: handleHistoryOpen,
8088
8130
  disabled: !recipient,
8089
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {})
8131
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.HistoryIcon, {})
8090
8132
  }
8091
8133
  ),
8092
8134
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8096,12 +8138,12 @@ function DepositModalInner({
8096
8138
  onClick: onClose,
8097
8139
  className: "rs-modal-close",
8098
8140
  "aria-label": "Close",
8099
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
8141
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSXMWQYBcjs.CloseIcon, {})
8100
8142
  }
8101
8143
  )
8102
8144
  ] })
8103
8145
  ] }),
8104
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.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,
8105
8147
  DepositFlow,
8106
8148
  {
8107
8149
  dappWalletClient,