@rhinestone/deposit-modal 0.3.0-alpha.14 → 0.3.0-alpha.16

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 (35) hide show
  1. package/dist/{DepositModalReown-4I47KSPN.cjs → DepositModalReown-QRLLANTS.cjs} +7 -7
  2. package/dist/{DepositModalReown-DIUIB3MU.mjs → DepositModalReown-THU2QG76.mjs} +4 -4
  3. package/dist/{WithdrawModalReown-Y3NRAKXJ.cjs → WithdrawModalReown-PHWLYDZQ.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-WRUEALDP.mjs → WithdrawModalReown-SSRJNUGZ.mjs} +4 -4
  5. package/dist/{constants-DqVn968d.d.ts → caip-CrQ2KKU-.d.cts} +11 -1
  6. package/dist/{constants-DqVn968d.d.cts → caip-CrQ2KKU-.d.ts} +11 -1
  7. package/dist/{chunk-SZIYS42B.mjs → chunk-6YRDD462.mjs} +63 -3
  8. package/dist/{chunk-N4XRQPVA.cjs → chunk-7W5M6WEE.cjs} +226 -203
  9. package/dist/{chunk-JTMGFWXO.mjs → chunk-E2K7XWMN.mjs} +2 -2
  10. package/dist/{chunk-2NUXDEEO.cjs → chunk-G5YDICEN.cjs} +93 -93
  11. package/dist/{chunk-7JIDIX27.cjs → chunk-MILJQWPT.cjs} +73 -13
  12. package/dist/{chunk-VD4WTEHP.mjs → chunk-PAK3NUGY.mjs} +5 -5
  13. package/dist/{chunk-3CYGTYMY.cjs → chunk-PXQBJMNF.cjs} +526 -451
  14. package/dist/{chunk-JTULAFMU.cjs → chunk-UD6QUZJS.cjs} +5 -5
  15. package/dist/{chunk-XG474KUR.mjs → chunk-YX3I7C2R.mjs} +101 -26
  16. package/dist/{chunk-4ZN726P5.mjs → chunk-Z7OJPEV2.mjs} +258 -235
  17. package/dist/constants.cjs +6 -2
  18. package/dist/constants.d.cts +1 -1
  19. package/dist/constants.d.ts +1 -1
  20. package/dist/constants.mjs +5 -1
  21. package/dist/deposit.cjs +4 -4
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +3 -3
  25. package/dist/index.cjs +9 -5
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +8 -4
  29. package/dist/{types-C8i2ebY1.d.cts → types-cXr3j4NV.d.cts} +26 -0
  30. package/dist/{types-C8i2ebY1.d.ts → types-cXr3j4NV.d.ts} +26 -0
  31. package/dist/withdraw.cjs +4 -4
  32. package/dist/withdraw.d.cts +2 -2
  33. package/dist/withdraw.d.ts +2 -2
  34. package/dist/withdraw.mjs +3 -3
  35. package/package.json +1 -1
@@ -50,9 +50,9 @@
50
50
 
51
51
 
52
52
 
53
+ var _chunk7W5M6WEEcjs = require('./chunk-7W5M6WEE.cjs');
53
54
 
54
55
 
55
- var _chunkN4XRQPVAcjs = require('./chunk-N4XRQPVA.cjs');
56
56
 
57
57
 
58
58
 
@@ -74,7 +74,13 @@ var _chunkN4XRQPVAcjs = require('./chunk-N4XRQPVA.cjs');
74
74
 
75
75
 
76
76
 
77
- var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
77
+
78
+
79
+
80
+
81
+
82
+
83
+ var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
78
84
 
79
85
  // src/DepositModal.tsx
80
86
 
@@ -86,6 +92,7 @@ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
86
92
 
87
93
 
88
94
  var _react = require('react');
95
+ var _viem = require('viem');
89
96
 
90
97
  // src/DepositFlow.tsx
91
98
 
@@ -96,7 +103,7 @@ var _react = require('react');
96
103
 
97
104
 
98
105
 
99
- var _viem = require('viem');
106
+
100
107
 
101
108
  // src/components/steps/AssetSelectStep.tsx
102
109
 
@@ -120,13 +127,13 @@ function AssetSelectStep({
120
127
  const [error, setError] = _react.useState.call(void 0, null);
121
128
  const defaultAssetId = _react.useMemo.call(void 0, () => {
122
129
  if (!defaultSourceChain || !defaultSourceToken) return null;
123
- return _chunkN4XRQPVAcjs.getAssetId.call(void 0, {
130
+ return _chunk7W5M6WEEcjs.getAssetId.call(void 0, {
124
131
  chainId: defaultSourceChain,
125
132
  token: defaultSourceToken
126
133
  });
127
134
  }, [defaultSourceChain, defaultSourceToken]);
128
- const onTotalBalanceComputedRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
129
- const onAssetsLoadedRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onAssetsLoaded);
135
+ const onTotalBalanceComputedRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
136
+ const onAssetsLoadedRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onAssetsLoaded);
130
137
  _react.useEffect.call(void 0, () => {
131
138
  let active = true;
132
139
  function emitAssetsUpdate(currentAssets) {
@@ -147,11 +154,11 @@ function AssetSelectStep({
147
154
  try {
148
155
  const portfolio = await service.fetchPortfolio(address);
149
156
  if (!active) return;
150
- const portfolioAssets = _chunkN4XRQPVAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
157
+ const portfolioAssets = _chunk7W5M6WEEcjs.portfolioToAssets.call(void 0, portfolio.tokens);
151
158
  setAssets(portfolioAssets);
152
159
  emitAssetsUpdate(portfolioAssets);
153
160
  const hasNative = portfolioAssets.some(
154
- (asset) => asset.token.toLowerCase() === _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS
161
+ (asset) => asset.token.toLowerCase() === _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS
155
162
  );
156
163
  if (!hasNative) {
157
164
  const nativeAssets = await fetchNativeAssets(
@@ -223,7 +230,7 @@ function AssetSelectStep({
223
230
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
224
231
  const numeric = Number(raw);
225
232
  if (!Number.isFinite(numeric)) return raw;
226
- return _chunkN4XRQPVAcjs.tokenFormatter.format(numeric);
233
+ return _chunk7W5M6WEEcjs.tokenFormatter.format(numeric);
227
234
  } catch (e3) {
228
235
  return asset.balance;
229
236
  }
@@ -231,20 +238,20 @@ function AssetSelectStep({
231
238
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
232
239
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
233
240
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
234
- _chunkN4XRQPVAcjs.BodyHeader,
241
+ _chunk7W5M6WEEcjs.BodyHeader,
235
242
  {
236
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}),
243
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}),
237
244
  title: "Your assets",
238
245
  subtitle: "Select source assets to transfer"
239
246
  }
240
247
  ),
241
248
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
242
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Spinner, { className: "rs-text-tertiary" }),
249
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Spinner, { className: "rs-text-tertiary" }),
243
250
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
244
251
  ] }),
245
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
252
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "error", children: error }),
246
253
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
247
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, { className: "rs-empty-icon" }),
254
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, { className: "rs-empty-icon" }),
248
255
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
249
256
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
250
257
  address.slice(0, 6),
@@ -264,9 +271,9 @@ function AssetSelectStep({
264
271
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
265
272
  const isSelected = selectedAssetId === asset.id;
266
273
  const tokenAmount = formatBalance(asset);
267
- const badge = _chunk7JIDIX27cjs.getChainBadge.call(void 0, asset.chainId);
268
- const tokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, asset.symbol);
269
- const chainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, asset.chainId);
274
+ const badge = _chunkMILJQWPTcjs.getChainBadge.call(void 0, asset.chainId);
275
+ const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
276
+ const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
270
277
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
271
278
  "button",
272
279
  {
@@ -282,7 +289,7 @@ function AssetSelectStep({
282
289
  "img",
283
290
  {
284
291
  src: chainIcon,
285
- alt: _chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)
292
+ alt: _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
286
293
  }
287
294
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
288
295
  "span",
@@ -301,7 +308,7 @@ function AssetSelectStep({
301
308
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
302
309
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
303
310
  "on ",
304
- _chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)
311
+ _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
305
312
  ] })
306
313
  ] }),
307
314
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -311,14 +318,14 @@ function AssetSelectStep({
311
318
  ] })
312
319
  ] })
313
320
  ] }),
314
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkN4XRQPVAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
321
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk7W5M6WEEcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
315
322
  ]
316
323
  },
317
324
  asset.id
318
325
  );
319
326
  }) }),
320
327
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
321
- _chunkN4XRQPVAcjs.Button,
328
+ _chunk7W5M6WEEcjs.Button,
322
329
  {
323
330
  onClick: () => selectedAsset && onContinue(selectedAsset),
324
331
  disabled: !selectedAsset,
@@ -327,17 +334,17 @@ function AssetSelectStep({
327
334
  }
328
335
  )
329
336
  ] }),
330
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
337
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
331
338
  ] });
332
339
  }
333
340
  async function fetchNativeAssets(address, publicClient, existing) {
334
341
  const existingIds = new Set(existing.map((asset) => asset.id));
335
342
  const connectedChainId = _optionalChain([publicClient, 'access', _9 => _9.chain, 'optionalAccess', _10 => _10.id]);
336
343
  if (!connectedChainId) return [];
337
- if (!_chunk7JIDIX27cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
338
- const id = _chunkN4XRQPVAcjs.getAssetId.call(void 0, {
344
+ if (!_chunkMILJQWPTcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
345
+ const id = _chunk7W5M6WEEcjs.getAssetId.call(void 0, {
339
346
  chainId: connectedChainId,
340
- token: _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS
347
+ token: _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS
341
348
  });
342
349
  if (existingIds.has(id)) return [];
343
350
  try {
@@ -346,7 +353,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
346
353
  {
347
354
  id,
348
355
  chainId: connectedChainId,
349
- token: _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS,
356
+ token: _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS,
350
357
  symbol: "ETH",
351
358
  name: "Ethereum",
352
359
  decimals: 18,
@@ -507,8 +514,8 @@ function AmountStep({
507
514
  const chainMismatch = Boolean(
508
515
  _optionalChain([walletClient, 'optionalAccess', _15 => _15.chain, 'optionalAccess', _16 => _16.id]) && walletClient.chain.id !== asset.chainId
509
516
  );
510
- const targetSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
511
- const isSourceStablecoin = _chunk7JIDIX27cjs.isStablecoinSymbol.call(void 0, asset.symbol);
517
+ const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
518
+ const isSourceStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, asset.symbol);
512
519
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
513
520
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
514
521
  return tokenPriceUsdOverride;
@@ -532,7 +539,7 @@ function AmountStep({
532
539
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
533
540
  if (!balanceTarget || !publicClient) return;
534
541
  try {
535
- const bal = _chunkN4XRQPVAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
542
+ const bal = _chunk7W5M6WEEcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
536
543
  address: asset.token,
537
544
  abi: _viem.erc20Abi,
538
545
  functionName: "balanceOf",
@@ -553,7 +560,7 @@ function AmountStep({
553
560
  hasAttemptedSwitch.current = true;
554
561
  switchChain(asset.chainId).catch((err) => {
555
562
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
556
- setError(_chunkN4XRQPVAcjs.formatUserError.call(void 0, raw));
563
+ setError(_chunk7W5M6WEEcjs.formatUserError.call(void 0, raw));
557
564
  });
558
565
  }
559
566
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -606,7 +613,7 @@ function AmountStep({
606
613
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
607
614
  const numeric = Number(raw);
608
615
  if (!Number.isFinite(numeric)) return raw;
609
- return _chunkN4XRQPVAcjs.tokenFormatter.format(numeric);
616
+ return _chunk7W5M6WEEcjs.tokenFormatter.format(numeric);
610
617
  } catch (e8) {
611
618
  return "\u2026";
612
619
  }
@@ -625,8 +632,8 @@ function AmountStep({
625
632
  return null;
626
633
  }
627
634
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
628
- const minDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
629
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
635
+ const minDepositUsd = targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( null));
636
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.maxDepositUsd]), () => ( null));
630
637
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
631
638
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
632
639
  const exceedsBalance = Boolean(
@@ -635,7 +642,7 @@ function AmountStep({
635
642
  const balanceAfterUsd = appBalanceUsd !== void 0 ? appBalanceUsd + numericAmount : null;
636
643
  const handlePresetClick = (percentage) => {
637
644
  if (balance === null) return;
638
- _optionalChain([onCtaClick, 'optionalCall', _19 => _19(percentage === 100 ? "Max" : `${percentage}%`)]);
645
+ _optionalChain([onCtaClick, 'optionalCall', _20 => _20(percentage === 100 ? "Max" : `${percentage}%`)]);
639
646
  const next = formatAmountFromBalance(
640
647
  balance,
641
648
  asset.decimals,
@@ -682,13 +689,13 @@ function AmountStep({
682
689
  return;
683
690
  }
684
691
  setError(null);
685
- _optionalChain([onCtaClick, 'optionalCall', _20 => _20("continue")]);
692
+ _optionalChain([onCtaClick, 'optionalCall', _21 => _21("continue")]);
686
693
  setIsCheckingLiquidity(true);
687
694
  let liquidityWarning;
688
695
  try {
689
696
  const liquidity = await service.checkLiquidity({
690
- sourceChainId: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _21 => _21.chainId]), () => ( asset.chainId)),
691
- sourceToken: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _22 => _22.token]), () => ( asset.token)),
697
+ sourceChainId: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _22 => _22.chainId]), () => ( asset.chainId)),
698
+ sourceToken: _nullishCoalesce(_optionalChain([liquiditySource, 'optionalAccess', _23 => _23.token]), () => ( asset.token)),
692
699
  destinationChainId: targetChain,
693
700
  destinationToken: targetToken,
694
701
  amount: amountInUnits.toString()
@@ -719,13 +726,13 @@ function AmountStep({
719
726
  };
720
727
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
721
728
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
722
- const sourceChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId);
723
- const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
724
- const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, asset.symbol);
725
- const targetTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol);
729
+ const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId);
730
+ const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
731
+ const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
732
+ const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
726
733
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
727
734
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
728
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}), title: "Wallet deposit" }),
735
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}), title: "Wallet deposit" }),
729
736
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
730
737
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
731
738
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -745,13 +752,13 @@ function AmountStep({
745
752
  " available",
746
753
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
747
754
  " (~",
748
- _chunkN4XRQPVAcjs.currencyFormatter.format(balanceUsd),
755
+ _chunk7W5M6WEEcjs.currencyFormatter.format(balanceUsd),
749
756
  ")"
750
757
  ] })
751
758
  ] }),
752
759
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
753
760
  "Min. deposit ",
754
- _chunkN4XRQPVAcjs.currencyFormatter.format(minDepositUsd)
761
+ _chunk7W5M6WEEcjs.currencyFormatter.format(minDepositUsd)
755
762
  ] })
756
763
  ] })
757
764
  ] }),
@@ -792,12 +799,13 @@ function AmountStep({
792
799
  ] }),
793
800
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
794
801
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
795
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkN4XRQPVAcjs.currencyFormatter.format(balanceAfterUsd) })
802
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7W5M6WEEcjs.currencyFormatter.format(balanceAfterUsd) })
796
803
  ] })
797
804
  ] }),
798
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
805
+ targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
806
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "error", children: error }),
799
807
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
800
- _chunkN4XRQPVAcjs.Button,
808
+ _chunk7W5M6WEEcjs.Button,
801
809
  {
802
810
  onClick: handleContinue,
803
811
  fullWidth: true,
@@ -808,7 +816,7 @@ function AmountStep({
808
816
  }
809
817
  )
810
818
  ] }),
811
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
819
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
812
820
  ] });
813
821
  }
814
822
 
@@ -843,16 +851,16 @@ function ConfirmStep({
843
851
  const [error, setError] = _react.useState.call(void 0, null);
844
852
  const hasAttemptedSwitch = _react.useRef.call(void 0, false);
845
853
  const chainMismatch = Boolean(
846
- _optionalChain([walletClient, 'optionalAccess', _23 => _23.chain, 'optionalAccess', _24 => _24.id]) && walletClient.chain.id !== asset.chainId
854
+ _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
847
855
  );
848
856
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
849
- const targetSymbol = sameRoute ? asset.symbol : _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
850
- const sourceChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId);
851
- const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
852
- const sourceChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, asset.chainId);
853
- const targetChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain);
854
- const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, asset.symbol);
855
- const targetTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol);
857
+ const targetSymbol = sameRoute ? asset.symbol : _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
858
+ const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId);
859
+ const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
860
+ const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
861
+ const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
862
+ const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
863
+ const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
856
864
  const formattedSendAmount = amount && !Number.isNaN(Number(amount)) ? Number(amount).toLocaleString("en-US", {
857
865
  minimumFractionDigits: 2,
858
866
  maximumFractionDigits: 6
@@ -872,14 +880,14 @@ function ConfirmStep({
872
880
  return formattedSendAmount;
873
881
  })();
874
882
  const receiveAmount = sameRoute ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
875
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _25 => _25.feeSponsored]), () => ( false));
876
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _26 => _26.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
883
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _26 => _26.feeSponsored]), () => ( false));
884
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
877
885
  _react.useEffect.call(void 0, () => {
878
886
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
879
887
  hasAttemptedSwitch.current = true;
880
888
  switchChain(asset.chainId).catch((err) => {
881
889
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
882
- setError(_chunkN4XRQPVAcjs.formatUserError.call(void 0, raw));
890
+ setError(_chunk7W5M6WEEcjs.formatUserError.call(void 0, raw));
883
891
  });
884
892
  }
885
893
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -926,7 +934,7 @@ function ConfirmStep({
926
934
  const result = await executeTransfer(amountUnits);
927
935
  hash = result.txHash;
928
936
  resolvedSourceToken = result.sourceToken;
929
- } else if (_chunkN4XRQPVAcjs.isNativeAsset.call(void 0, asset)) {
937
+ } else if (_chunk7W5M6WEEcjs.isNativeAsset.call(void 0, asset)) {
930
938
  hash = await walletClient.sendTransaction({
931
939
  account,
932
940
  chain,
@@ -943,20 +951,20 @@ function ConfirmStep({
943
951
  args: [transferTo, amountUnits]
944
952
  });
945
953
  }
946
- _optionalChain([onDepositSubmitted, 'optionalCall', _27 => _27(hash, asset.chainId, amountUnits.toString())]);
954
+ _optionalChain([onDepositSubmitted, 'optionalCall', _28 => _28(hash, asset.chainId, amountUnits.toString())]);
947
955
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
948
956
  } catch (err) {
949
957
  const raw = err instanceof Error ? err.message : "Transfer failed";
950
- const message = _chunkN4XRQPVAcjs.formatUserError.call(void 0, raw);
958
+ const message = _chunk7W5M6WEEcjs.formatUserError.call(void 0, raw);
951
959
  setError(message);
952
- _optionalChain([onError, 'optionalCall', _28 => _28(message, "TRANSFER_ERROR")]);
960
+ _optionalChain([onError, 'optionalCall', _29 => _29(message, "TRANSFER_ERROR")]);
953
961
  } finally {
954
962
  setIsSubmitting(false);
955
963
  }
956
964
  };
957
965
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
958
966
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
959
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}), title: "Review deposit" }),
967
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}), title: "Review deposit" }),
960
968
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
961
969
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
962
970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1008,13 +1016,14 @@ function ConfirmStep({
1008
1016
  children: "$0.04"
1009
1017
  }
1010
1018
  ),
1011
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.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, _chunkN4XRQPVAcjs.InfoIcon, {}) }) })
1019
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.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, _chunk7W5M6WEEcjs.InfoIcon, {}) }) })
1012
1020
  ] })
1013
1021
  ] })
1014
1022
  ] }),
1015
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
1023
+ targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1024
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "error", children: error }),
1016
1025
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1017
- _chunkN4XRQPVAcjs.Button,
1026
+ _chunk7W5M6WEEcjs.Button,
1018
1027
  {
1019
1028
  onClick: handleConfirm,
1020
1029
  loading: isSubmitting,
@@ -1025,7 +1034,7 @@ function ConfirmStep({
1025
1034
  }
1026
1035
  )
1027
1036
  ] }),
1028
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
1037
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
1029
1038
  ] });
1030
1039
  }
1031
1040
 
@@ -1048,9 +1057,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1048
1057
  var MAX_POLL_INTERVAL = 3e4;
1049
1058
  var BACKOFF_MULTIPLIER = 1.5;
1050
1059
  function isEventForTx(event, txHash) {
1051
- const eventTxHash = _chunkN4XRQPVAcjs.getEventTxHash.call(void 0, event);
1060
+ const eventTxHash = _chunk7W5M6WEEcjs.getEventTxHash.call(void 0, event);
1052
1061
  if (!eventTxHash) return false;
1053
- return _chunkN4XRQPVAcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1062
+ return _chunk7W5M6WEEcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1054
1063
  }
1055
1064
  function truncateHash(hash) {
1056
1065
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1080,7 +1089,7 @@ function formatTimestamp(ms) {
1080
1089
  return `${month} ${day}${suffix} \xB7 ${hours}:${minutes}:${seconds}`;
1081
1090
  }
1082
1091
  function formatBridgeFailedMessage(event) {
1083
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _29 => _29.data]), () => ( {}));
1092
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _30 => _30.data]), () => ( {}));
1084
1093
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1085
1094
  if (backendMessage.length > 0) {
1086
1095
  const lower = backendMessage.toLowerCase();
@@ -1100,7 +1109,7 @@ function formatBridgeFailedMessage(event) {
1100
1109
  }
1101
1110
  return "Bridge failed";
1102
1111
  }
1103
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1112
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1104
1113
  function DepositNotification({
1105
1114
  deposit,
1106
1115
  smartAccount,
@@ -1113,7 +1122,15 @@ function DepositNotification({
1113
1122
  onFailed,
1114
1123
  onDismiss
1115
1124
  }) {
1116
- const { txHash, sourceChain, amount, token, detectedAt, directTransfer } = deposit;
1125
+ const {
1126
+ txHash,
1127
+ sourceChain,
1128
+ amount,
1129
+ token,
1130
+ sourceDecimals,
1131
+ detectedAt,
1132
+ directTransfer
1133
+ } = deposit;
1117
1134
  const [status, setStatus] = _react.useState.call(void 0,
1118
1135
  directTransfer ? "complete" : "processing"
1119
1136
  );
@@ -1127,16 +1144,17 @@ function DepositNotification({
1127
1144
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1128
1145
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1129
1146
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1130
- const depositContextRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, {
1147
+ const depositContextRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, {
1131
1148
  amount,
1132
1149
  sourceChain,
1133
1150
  sourceToken: token,
1151
+ sourceDecimals,
1134
1152
  targetChain,
1135
1153
  targetToken,
1136
1154
  hasPostBridgeActions
1137
1155
  });
1138
- const onCompleteRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onComplete);
1139
- const onFailedRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onFailed);
1156
+ const onCompleteRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onComplete);
1157
+ const onFailedRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onFailed);
1140
1158
  const handleComplete = _react.useCallback.call(void 0,
1141
1159
  (destTxHash) => {
1142
1160
  if (completedRef.current) return;
@@ -1145,10 +1163,11 @@ function DepositNotification({
1145
1163
  setCompletedAt(Date.now());
1146
1164
  setStatus("complete");
1147
1165
  const context = depositContextRef.current;
1148
- _optionalChain([onCompleteRef, 'access', _30 => _30.current, 'optionalCall', _31 => _31(txHash, destTxHash, {
1166
+ _optionalChain([onCompleteRef, 'access', _31 => _31.current, 'optionalCall', _32 => _32(txHash, destTxHash, {
1149
1167
  amount: context.amount,
1150
1168
  sourceChain: context.sourceChain,
1151
1169
  sourceToken: context.sourceToken,
1170
+ sourceDecimals: context.sourceDecimals,
1152
1171
  targetChain: context.targetChain,
1153
1172
  targetToken: context.targetToken
1154
1173
  })]);
@@ -1160,7 +1179,7 @@ function DepositNotification({
1160
1179
  if (completedRef.current) return;
1161
1180
  completedRef.current = true;
1162
1181
  setStatus("failed");
1163
- _optionalChain([onFailedRef, 'access', _32 => _32.current, 'optionalCall', _33 => _33(txHash, error)]);
1182
+ _optionalChain([onFailedRef, 'access', _33 => _33.current, 'optionalCall', _34 => _34(txHash, error)]);
1164
1183
  },
1165
1184
  [onFailedRef, txHash]
1166
1185
  );
@@ -1179,26 +1198,26 @@ function DepositNotification({
1179
1198
  const lastEvent = data.lastEvent;
1180
1199
  const eventForTx = isEventForTx(lastEvent, txHash) ? lastEvent : void 0;
1181
1200
  const awaitingPostBridgeSwap = depositContextRef.current.hasPostBridgeActions;
1182
- if (_optionalChain([eventForTx, 'optionalAccess', _34 => _34.type]) === "post-bridge-swap-complete") {
1183
- const swapTxHash = _optionalChain([eventForTx, 'access', _35 => _35.data, 'optionalAccess', _36 => _36.swap, 'optionalAccess', _37 => _37.transactionHash]);
1201
+ if (_optionalChain([eventForTx, 'optionalAccess', _35 => _35.type]) === "post-bridge-swap-complete") {
1202
+ const swapTxHash = _optionalChain([eventForTx, 'access', _36 => _36.data, 'optionalAccess', _37 => _37.swap, 'optionalAccess', _38 => _38.transactionHash]);
1184
1203
  handleComplete(swapTxHash);
1185
1204
  return;
1186
1205
  }
1187
- if (_optionalChain([eventForTx, 'optionalAccess', _38 => _38.type]) === "post-bridge-swap-failed") {
1206
+ if (_optionalChain([eventForTx, 'optionalAccess', _39 => _39.type]) === "post-bridge-swap-failed") {
1188
1207
  handleFailed(formatBridgeFailedMessage(eventForTx));
1189
1208
  return;
1190
1209
  }
1191
- if (_optionalChain([eventForTx, 'optionalAccess', _39 => _39.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1192
- const destTx = _optionalChain([eventForTx, 'access', _40 => _40.data, 'optionalAccess', _41 => _41.destination, 'optionalAccess', _42 => _42.transactionHash]);
1210
+ if (_optionalChain([eventForTx, 'optionalAccess', _40 => _40.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
1211
+ const destTx = _optionalChain([eventForTx, 'access', _41 => _41.data, 'optionalAccess', _42 => _42.destination, 'optionalAccess', _43 => _43.transactionHash]);
1193
1212
  handleComplete(destTx);
1194
1213
  return;
1195
1214
  }
1196
- if (_optionalChain([eventForTx, 'optionalAccess', _43 => _43.type]) === "bridge-failed") {
1215
+ if (_optionalChain([eventForTx, 'optionalAccess', _44 => _44.type]) === "bridge-failed") {
1197
1216
  handleFailed(formatBridgeFailedMessage(eventForTx));
1198
1217
  return;
1199
1218
  }
1200
- if (_optionalChain([eventForTx, 'optionalAccess', _44 => _44.type]) === "error") {
1201
- const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _45 => _45.data, 'optionalAccess', _46 => _46.message]), () => ( "Unknown error"));
1219
+ if (_optionalChain([eventForTx, 'optionalAccess', _45 => _45.type]) === "error") {
1220
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForTx, 'access', _46 => _46.data, 'optionalAccess', _47 => _47.message]), () => ( "Unknown error"));
1202
1221
  handleFailed(errorMessage);
1203
1222
  return;
1204
1223
  }
@@ -1236,11 +1255,11 @@ function DepositNotification({
1236
1255
  status,
1237
1256
  txHash
1238
1257
  ]);
1239
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunk7JIDIX27cjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1240
- const destExplorerUrl = destinationTxHash ? _chunk7JIDIX27cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1258
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkMILJQWPTcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1259
+ const destExplorerUrl = destinationTxHash ? _chunkMILJQWPTcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1241
1260
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1242
1261
  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.";
1243
- 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, _chunkN4XRQPVAcjs.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, _chunkN4XRQPVAcjs.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,
1262
+ 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, _chunk7W5M6WEEcjs.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, _chunk7W5M6WEEcjs.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,
1244
1263
  "svg",
1245
1264
  {
1246
1265
  className: "rs-deposit-notification-spinner",
@@ -1290,7 +1309,7 @@ function DepositNotification({
1290
1309
  className: "rs-deposit-notification-close",
1291
1310
  onClick: () => onDismiss(deposit.id),
1292
1311
  "aria-label": "Dismiss",
1293
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CloseIcon, {})
1312
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CloseIcon, {})
1294
1313
  }
1295
1314
  )
1296
1315
  ] }),
@@ -1306,7 +1325,7 @@ function DepositNotification({
1306
1325
  "aria-expanded": expanded,
1307
1326
  children: [
1308
1327
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1309
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1328
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1310
1329
  ]
1311
1330
  }
1312
1331
  ),
@@ -1395,7 +1414,7 @@ function asString(value) {
1395
1414
  function resolveSolanaTokenMeta(token) {
1396
1415
  if (!token) return {};
1397
1416
  const normalized = token.toLowerCase();
1398
- const matched = _chunk7JIDIX27cjs.SOLANA_TOKENS.find(
1417
+ const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
1399
1418
  (entry) => entry.mint.toLowerCase() === normalized
1400
1419
  );
1401
1420
  if (matched) {
@@ -1407,7 +1426,7 @@ function resolveSolanaTokenMeta(token) {
1407
1426
  return {};
1408
1427
  }
1409
1428
  function getDepositEventDetails(event) {
1410
- if (!_optionalChain([event, 'optionalAccess', _47 => _47.type]) || !isRecord(event.data)) return {};
1429
+ if (!_optionalChain([event, 'optionalAccess', _48 => _48.type]) || !isRecord(event.data)) return {};
1411
1430
  if (event.type === "deposit-received") {
1412
1431
  const chainId = asChainId(event.data.chain);
1413
1432
  const token = asString(event.data.token);
@@ -1422,12 +1441,12 @@ function getDepositEventDetails(event) {
1422
1441
  const source = isRecord(event.data.source) ? event.data.source : void 0;
1423
1442
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
1424
1443
  if (source || deposit) {
1425
- const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _48 => _48.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _49 => _49.chain]))));
1426
- const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _50 => _50.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _51 => _51.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _52 => _52.token]))));
1444
+ const chainId = _nullishCoalesce(asChainId(_optionalChain([source, 'optionalAccess', _49 => _49.chain])), () => ( asChainId(_optionalChain([deposit, 'optionalAccess', _50 => _50.chain]))));
1445
+ const token = _nullishCoalesce(_nullishCoalesce(asString(_optionalChain([source, 'optionalAccess', _51 => _51.asset])), () => ( asString(_optionalChain([deposit, 'optionalAccess', _52 => _52.asset])))), () => ( asString(_optionalChain([deposit, 'optionalAccess', _53 => _53.token]))));
1427
1446
  const solanaMeta = chainId === "solana" ? resolveSolanaTokenMeta(token) : {};
1428
1447
  return {
1429
1448
  chainId,
1430
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _53 => _53.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _54 => _54.amount])))),
1449
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _54 => _54.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _55 => _55.amount])))),
1431
1450
  token,
1432
1451
  ...solanaMeta
1433
1452
  };
@@ -1438,7 +1457,7 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1438
1457
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1439
1458
  }
1440
1459
  function computeTokensForChain(chainId, allowedTokenSet) {
1441
- const all = chainId === "solana" ? _chunk7JIDIX27cjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain.call(void 0, chainId);
1460
+ const all = chainId === "solana" ? _chunkMILJQWPTcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain.call(void 0, chainId);
1442
1461
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1443
1462
  }
1444
1463
  function pickFallbackToken(tokens, current) {
@@ -1463,15 +1482,15 @@ function DepositAddressStep({
1463
1482
  }) {
1464
1483
  const hasSolana = Boolean(solanaDepositAddress);
1465
1484
  const allowedChainSet = _react.useMemo.call(void 0,
1466
- () => _optionalChain([allowedRoutes, 'optionalAccess', _55 => _55.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1467
- [_optionalChain([allowedRoutes, 'optionalAccess', _56 => _56.sourceChains])]
1485
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _56 => _56.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null,
1486
+ [_optionalChain([allowedRoutes, 'optionalAccess', _57 => _57.sourceChains])]
1468
1487
  );
1469
1488
  const allowedTokenSet = _react.useMemo.call(void 0,
1470
- () => _optionalChain([allowedRoutes, 'optionalAccess', _57 => _57.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1471
- [_optionalChain([allowedRoutes, 'optionalAccess', _58 => _58.sourceTokens])]
1489
+ () => _optionalChain([allowedRoutes, 'optionalAccess', _58 => _58.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null,
1490
+ [_optionalChain([allowedRoutes, 'optionalAccess', _59 => _59.sourceTokens])]
1472
1491
  );
1473
1492
  const evmChainIds = _react.useMemo.call(void 0, () => {
1474
- const all = _chunk7JIDIX27cjs.getSupportedChainIds.call(void 0, );
1493
+ const all = _chunkMILJQWPTcjs.getSupportedChainIds.call(void 0, );
1475
1494
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1476
1495
  }, [allowedChainSet]);
1477
1496
  const chainOptions = _react.useMemo.call(void 0, () => {
@@ -1509,7 +1528,7 @@ function DepositAddressStep({
1509
1528
  setLiquidityHelper({ kind: "idle" });
1510
1529
  return;
1511
1530
  }
1512
- const sourceTokenAddress = _chunk7JIDIX27cjs.getTokenAddress.call(void 0,
1531
+ const sourceTokenAddress = _chunkMILJQWPTcjs.getTokenAddress.call(void 0,
1513
1532
  sourceTokenSymbol,
1514
1533
  sourceChainId
1515
1534
  );
@@ -1560,8 +1579,8 @@ function DepositAddressStep({
1560
1579
  function handlePointerDown(event) {
1561
1580
  const target = event.target;
1562
1581
  if (!target) return;
1563
- const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _59 => _59.current, 'optionalAccess', _60 => _60.contains, 'call', _61 => _61(target)]);
1564
- const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _62 => _62.current, 'optionalAccess', _63 => _63.contains, 'call', _64 => _64(target)]);
1582
+ const clickedChainDropdown = _optionalChain([chainDropdownRef, 'access', _60 => _60.current, 'optionalAccess', _61 => _61.contains, 'call', _62 => _62(target)]);
1583
+ const clickedTokenDropdown = _optionalChain([tokenDropdownRef, 'access', _63 => _63.current, 'optionalAccess', _64 => _64.contains, 'call', _65 => _65(target)]);
1565
1584
  if (clickedChainDropdown || clickedTokenDropdown) return;
1566
1585
  setChainDropdownOpen(false);
1567
1586
  setTokenDropdownOpen(false);
@@ -1574,7 +1593,7 @@ function DepositAddressStep({
1574
1593
  };
1575
1594
  }, [chainDropdownOpen, tokenDropdownOpen]);
1576
1595
  const handleCopy = _react.useCallback.call(void 0, async () => {
1577
- _optionalChain([onCopyAddress, 'optionalCall', _65 => _65()]);
1596
+ _optionalChain([onCopyAddress, 'optionalCall', _66 => _66()]);
1578
1597
  try {
1579
1598
  await navigator.clipboard.writeText(displayAddress);
1580
1599
  setCopied(true);
@@ -1653,19 +1672,22 @@ function DepositAddressStep({
1653
1672
  return;
1654
1673
  }
1655
1674
  const event = status.lastEvent;
1656
- const eventTxHash = _chunkN4XRQPVAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkN4XRQPVAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1675
+ const eventTxHash = _chunk7W5M6WEEcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7W5M6WEEcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1657
1676
  if (baselineTxHashRef.current === void 0) {
1658
1677
  baselineTxHashRef.current = eventTxHash;
1659
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkN4XRQPVAcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1678
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunk7W5M6WEEcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1660
1679
  const details = getDepositEventDetails(event);
1661
1680
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1662
1681
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
1663
1682
  const token = details.token;
1664
1683
  const sourceSymbol = details.sourceSymbol;
1665
- const sourceDecimals = details.sourceDecimals;
1666
1684
  baselineTxHashRef.current = eventTxHash;
1667
1685
  isTrackingRef.current = true;
1668
1686
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1687
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkMILJQWPTcjs.findTokenDecimals.call(void 0,
1688
+ token,
1689
+ typeof chainId === "number" ? chainId : void 0
1690
+ ) : void 0)));
1669
1691
  const directTransfer = typeof chainId === "number" && isEvmToken && isSameRoute(
1670
1692
  chainId,
1671
1693
  token,
@@ -1685,10 +1707,11 @@ function DepositAddressStep({
1685
1707
  directTransfer
1686
1708
  };
1687
1709
  setNotifications((prev) => [notification, ...prev]);
1688
- _optionalChain([onDepositSubmittedRef, 'access', _66 => _66.current, 'optionalCall', _67 => _67({
1710
+ _optionalChain([onDepositSubmittedRef, 'access', _67 => _67.current, 'optionalCall', _68 => _68({
1689
1711
  txHash: eventTxHash,
1690
1712
  sourceChain: chainId,
1691
- amount
1713
+ amount,
1714
+ sourceDecimals
1692
1715
  })]);
1693
1716
  }
1694
1717
  setPollingError(null);
@@ -1696,7 +1719,7 @@ function DepositAddressStep({
1696
1719
  if (!cancelled) {
1697
1720
  const msg = err instanceof Error ? err.message : "Failed to check status";
1698
1721
  setPollingError(msg);
1699
- _optionalChain([onErrorRef, 'access', _68 => _68.current, 'optionalCall', _69 => _69(msg, "STATUS_POLL_ERROR")]);
1722
+ _optionalChain([onErrorRef, 'access', _69 => _69.current, 'optionalCall', _70 => _70(msg, "STATUS_POLL_ERROR")]);
1700
1723
  }
1701
1724
  }
1702
1725
  if (!cancelled) {
@@ -1712,24 +1735,24 @@ function DepositAddressStep({
1712
1735
  const handleNotificationComplete = _react.useCallback.call(void 0,
1713
1736
  (txHash, destinationTxHash, context) => {
1714
1737
  isTrackingRef.current = false;
1715
- _optionalChain([onDepositCompleteRef, 'access', _70 => _70.current, 'optionalCall', _71 => _71(txHash, destinationTxHash, context)]);
1738
+ _optionalChain([onDepositCompleteRef, 'access', _71 => _71.current, 'optionalCall', _72 => _72(txHash, destinationTxHash, context)]);
1716
1739
  },
1717
1740
  []
1718
1741
  );
1719
1742
  const handleNotificationFailed = _react.useCallback.call(void 0,
1720
1743
  (txHash, error) => {
1721
1744
  isTrackingRef.current = false;
1722
- _optionalChain([onDepositFailedRef, 'access', _72 => _72.current, 'optionalCall', _73 => _73(txHash, error)]);
1745
+ _optionalChain([onDepositFailedRef, 'access', _73 => _73.current, 'optionalCall', _74 => _74(txHash, error)]);
1723
1746
  },
1724
1747
  []
1725
1748
  );
1726
1749
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1727
1750
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1728
1751
  }, []);
1729
- const qrIconSrc = _chunk7JIDIX27cjs.getChainIcon.call(void 0, sourceChainId);
1752
+ const qrIconSrc = _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId);
1730
1753
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1731
1754
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1732
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1755
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1733
1756
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1734
1757
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1735
1758
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1744,16 +1767,16 @@ function DepositAddressStep({
1744
1767
  setTokenDropdownOpen(false);
1745
1768
  },
1746
1769
  children: [
1747
- _chunk7JIDIX27cjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1770
+ _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1748
1771
  "img",
1749
1772
  {
1750
- src: _chunk7JIDIX27cjs.getChainIcon.call(void 0, sourceChainId),
1773
+ src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId),
1751
1774
  alt: "",
1752
1775
  className: "rs-deposit-address-dropdown-icon"
1753
1776
  }
1754
1777
  ),
1755
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunk7JIDIX27cjs.getChainName.call(void 0, sourceChainId) }),
1756
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1778
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChainId) }),
1779
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1757
1780
  ]
1758
1781
  }
1759
1782
  ),
@@ -1764,15 +1787,15 @@ function DepositAddressStep({
1764
1787
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1765
1788
  onClick: () => handleSelectChain(chainId),
1766
1789
  children: [
1767
- _chunk7JIDIX27cjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1790
+ _chunkMILJQWPTcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1768
1791
  "img",
1769
1792
  {
1770
- src: _chunk7JIDIX27cjs.getChainIcon.call(void 0, chainId),
1793
+ src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, chainId),
1771
1794
  alt: "",
1772
1795
  className: "rs-deposit-address-dropdown-icon"
1773
1796
  }
1774
1797
  ),
1775
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunk7JIDIX27cjs.getChainName.call(void 0, chainId) })
1798
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMILJQWPTcjs.getChainName.call(void 0, chainId) })
1776
1799
  ]
1777
1800
  },
1778
1801
  String(chainId)
@@ -1783,9 +1806,9 @@ function DepositAddressStep({
1783
1806
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1784
1807
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1785
1808
  "Min.$",
1786
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _74 => _74.minDepositUsd]), () => ( 0.1))).toFixed(2),
1787
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1788
- _chunkN4XRQPVAcjs.InfoIcon,
1809
+ (targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _75 => _75.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0.1))).toFixed(2),
1810
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1811
+ _chunk7W5M6WEEcjs.InfoIcon,
1789
1812
  {
1790
1813
  className: "rs-deposit-address-min-icon",
1791
1814
  "aria-hidden": "true"
@@ -1804,16 +1827,16 @@ function DepositAddressStep({
1804
1827
  setChainDropdownOpen(false);
1805
1828
  },
1806
1829
  children: [
1807
- _chunk7JIDIX27cjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1830
+ _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1808
1831
  "img",
1809
1832
  {
1810
- src: _chunk7JIDIX27cjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1833
+ src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1811
1834
  alt: "",
1812
1835
  className: "rs-deposit-address-dropdown-icon"
1813
1836
  }
1814
1837
  ),
1815
1838
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1816
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1839
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1817
1840
  ]
1818
1841
  }
1819
1842
  ),
@@ -1827,10 +1850,10 @@ function DepositAddressStep({
1827
1850
  setTokenDropdownOpen(false);
1828
1851
  },
1829
1852
  children: [
1830
- _chunk7JIDIX27cjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1853
+ _chunkMILJQWPTcjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1831
1854
  "img",
1832
1855
  {
1833
- src: _chunk7JIDIX27cjs.getTokenIcon.call(void 0, symbol),
1856
+ src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, symbol),
1834
1857
  alt: "",
1835
1858
  className: "rs-deposit-address-dropdown-icon"
1836
1859
  }
@@ -1864,7 +1887,7 @@ function DepositAddressStep({
1864
1887
  className: "rs-deposit-address-copy",
1865
1888
  onClick: handleCopy,
1866
1889
  children: [
1867
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CopyIcon, {}),
1890
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CopyIcon, {}),
1868
1891
  copied ? "Copied!" : "Copy address"
1869
1892
  ]
1870
1893
  }
@@ -1872,6 +1895,7 @@ function DepositAddressStep({
1872
1895
  ]
1873
1896
  }
1874
1897
  ),
1898
+ targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.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." }),
1875
1899
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1876
1900
  "div",
1877
1901
  {
@@ -1889,16 +1913,16 @@ function DepositAddressStep({
1889
1913
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1890
1914
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1891
1915
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
- _chunkN4XRQPVAcjs.Tooltip,
1916
+ _chunk7W5M6WEEcjs.Tooltip,
1893
1917
  {
1894
1918
  className: "rs-price-impact-info",
1895
1919
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1896
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.InfoIcon, { "aria-hidden": "true" })
1920
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.InfoIcon, { "aria-hidden": "true" })
1897
1921
  }
1898
1922
  )
1899
1923
  ] }),
1900
1924
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1901
- _chunkN4XRQPVAcjs.ChevronDownIcon,
1925
+ _chunk7W5M6WEEcjs.ChevronDownIcon,
1902
1926
  {
1903
1927
  className: "rs-price-impact-chevron",
1904
1928
  "aria-hidden": "true"
@@ -1909,29 +1933,29 @@ function DepositAddressStep({
1909
1933
  ),
1910
1934
  /* @__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: [
1911
1935
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1912
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PercentIcon, {}) }),
1936
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PercentIcon, {}) }),
1913
1937
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1914
1938
  "Max slippage: ",
1915
1939
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1916
1940
  ] }),
1917
1941
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1918
- _chunkN4XRQPVAcjs.Tooltip,
1942
+ _chunk7W5M6WEEcjs.Tooltip,
1919
1943
  {
1920
1944
  className: "rs-price-impact-info",
1921
1945
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
1922
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.InfoIcon, { "aria-hidden": "true" })
1946
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.InfoIcon, { "aria-hidden": "true" })
1923
1947
  }
1924
1948
  )
1925
1949
  ] }),
1926
1950
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1927
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ClockIcon, {}) }),
1951
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ClockIcon, {}) }),
1928
1952
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1929
1953
  "Processing time: ",
1930
1954
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
1931
1955
  ] })
1932
1956
  ] }),
1933
1957
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1934
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PlusCircleIcon, {}) }),
1958
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PlusCircleIcon, {}) }),
1935
1959
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1936
1960
  "Max deposit:",
1937
1961
  " ",
@@ -1963,7 +1987,7 @@ function DepositAddressStep({
1963
1987
  },
1964
1988
  deposit.id
1965
1989
  )) }),
1966
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
1990
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
1967
1991
  ] });
1968
1992
  }
1969
1993
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2000,7 +2024,7 @@ function SwappedOrderTracker({
2000
2024
  ];
2001
2025
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2002
2026
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2003
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.HandCoinsIcon, {}), title }),
2027
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.HandCoinsIcon, {}), title }),
2004
2028
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2005
2029
  const status = stepStates[idx];
2006
2030
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2014,7 +2038,7 @@ function SwappedOrderTracker({
2014
2038
  {
2015
2039
  className: "rs-swapped-tracker-step-marker",
2016
2040
  "aria-hidden": "true",
2017
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Spinner, {}) : null
2041
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Spinner, {}) : null
2018
2042
  }
2019
2043
  )
2020
2044
  ]
@@ -2041,7 +2065,7 @@ function SwappedOrderTracker({
2041
2065
  }
2042
2066
  )
2043
2067
  ] }),
2044
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
2068
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
2045
2069
  ] });
2046
2070
  }
2047
2071
  function formatTrackerAmount(amount) {
@@ -2159,7 +2183,7 @@ function SwappedIframeStep({
2159
2183
  if (cancelled) return;
2160
2184
  const message = err instanceof Error ? err.message : loadErrorFallback;
2161
2185
  setLoadError(message);
2162
- _optionalChain([onErrorRef, 'access', _75 => _75.current, 'optionalCall', _76 => _76(message, loadErrorCode)]);
2186
+ _optionalChain([onErrorRef, 'access', _77 => _77.current, 'optionalCall', _78 => _78(message, loadErrorCode)]);
2163
2187
  });
2164
2188
  return () => {
2165
2189
  cancelled = true;
@@ -2205,10 +2229,10 @@ function SwappedIframeStep({
2205
2229
  const status = await service.fetchLatestStatus(smartAccount);
2206
2230
  if (cancelled) return;
2207
2231
  const event = status.lastEvent;
2208
- const eventTxHash = _chunkN4XRQPVAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkN4XRQPVAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2232
+ const eventTxHash = _chunk7W5M6WEEcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7W5M6WEEcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2209
2233
  if (baselineDepositTxHashRef.current === void 0) {
2210
2234
  baselineDepositTxHashRef.current = eventTxHash;
2211
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkN4XRQPVAcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2235
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunk7W5M6WEEcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2212
2236
  currentDepositTxHashRef.current = eventTxHash;
2213
2237
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2214
2238
  }
@@ -2233,10 +2257,10 @@ function SwappedIframeStep({
2233
2257
  }, [service, smartAccount]);
2234
2258
  _react.useEffect.call(void 0, () => {
2235
2259
  if (fastDepositPollEnabledRef.current) return;
2236
- const status = _optionalChain([orderState, 'optionalAccess', _77 => _77.status]);
2260
+ const status = _optionalChain([orderState, 'optionalAccess', _79 => _79.status]);
2237
2261
  if (!status || !SWAPPED_TERMINAL_STATUSES.has(status)) return;
2238
2262
  fastDepositPollEnabledRef.current = true;
2239
- _optionalChain([rescheduleDepositPollRef, 'access', _78 => _78.current, 'optionalCall', _79 => _79(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2263
+ _optionalChain([rescheduleDepositPollRef, 'access', _80 => _80.current, 'optionalCall', _81 => _81(DEPOSIT_POLL_FAST_INITIAL_DELAY_MS)]);
2240
2264
  }, [orderState]);
2241
2265
  _react.useEffect.call(void 0, () => {
2242
2266
  function onMessage(e) {
@@ -2244,16 +2268,16 @@ function SwappedIframeStep({
2244
2268
  const parsed = parseSwappedIframeMessage(e.data);
2245
2269
  if (!parsed) return;
2246
2270
  setOrderState((prev) => ({
2247
- orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _80 => _80.orderId]))), () => ( "")),
2271
+ orderId: _nullishCoalesce(_nullishCoalesce(parsed.orderId, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderId]))), () => ( "")),
2248
2272
  status: parsed.status,
2249
- orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _81 => _81.orderCrypto]))), () => ( null)),
2250
- orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _82 => _82.orderCryptoAmount]))), () => ( null)),
2251
- transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.transactionId]))), () => ( null)),
2273
+ orderCrypto: _nullishCoalesce(_nullishCoalesce(parsed.orderCrypto, () => ( _optionalChain([prev, 'optionalAccess', _83 => _83.orderCrypto]))), () => ( null)),
2274
+ orderCryptoAmount: _nullishCoalesce(_nullishCoalesce(parsed.orderCryptoAmount, () => ( _optionalChain([prev, 'optionalAccess', _84 => _84.orderCryptoAmount]))), () => ( null)),
2275
+ transactionId: _nullishCoalesce(_nullishCoalesce(parsed.transactionId, () => ( _optionalChain([prev, 'optionalAccess', _85 => _85.transactionId]))), () => ( null)),
2252
2276
  receivedAt: (/* @__PURE__ */ new Date()).toISOString(),
2253
- paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _84 => _84.paidAmountUsd]), () => ( null)),
2254
- paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _85 => _85.paidAmountEur]), () => ( null)),
2255
- onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _86 => _86.onrampFeeUsd]), () => ( null)),
2256
- paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paymentMethod]), () => ( null))
2277
+ paidAmountUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _86 => _86.paidAmountUsd]), () => ( null)),
2278
+ paidAmountEur: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _87 => _87.paidAmountEur]), () => ( null)),
2279
+ onrampFeeUsd: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _88 => _88.onrampFeeUsd]), () => ( null)),
2280
+ paymentMethod: _nullishCoalesce(_optionalChain([prev, 'optionalAccess', _89 => _89.paymentMethod]), () => ( null))
2257
2281
  }));
2258
2282
  }
2259
2283
  window.addEventListener("message", onMessage);
@@ -2265,17 +2289,17 @@ function SwappedIframeStep({
2265
2289
  }
2266
2290
  }, [phase, orderState]);
2267
2291
  const stepStates = _react.useMemo.call(void 0,
2268
- () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _88 => _88.status]), () => ( null)), latestEvent),
2292
+ () => deriveStepStates(_nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _90 => _90.status]), () => ( null)), latestEvent),
2269
2293
  [orderState, latestEvent]
2270
2294
  );
2271
2295
  const terminalState = _react.useMemo.call(void 0, () => {
2272
- if (_chunkN4XRQPVAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2296
+ if (_chunk7W5M6WEEcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2273
2297
  return {
2274
2298
  kind: "failed",
2275
- message: _chunkN4XRQPVAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2299
+ message: _chunk7W5M6WEEcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2276
2300
  };
2277
2301
  }
2278
- if (_optionalChain([orderState, 'optionalAccess', _89 => _89.status]) === "order_cancelled") {
2302
+ if (_optionalChain([orderState, 'optionalAccess', _91 => _91.status]) === "order_cancelled") {
2279
2303
  const banner = bannerForStatus("order_cancelled", {});
2280
2304
  return { kind: "cancelled", message: _nullishCoalesce(banner.detail, () => ( banner.title)) };
2281
2305
  }
@@ -2283,7 +2307,7 @@ function SwappedIframeStep({
2283
2307
  }, [latestEvent, orderState, bannerForStatus]);
2284
2308
  _react.useEffect.call(void 0, () => {
2285
2309
  if (completeFiredRef.current || failedFiredRef.current) return;
2286
- const t = _optionalChain([latestEvent, 'optionalAccess', _90 => _90.type]);
2310
+ const t = _optionalChain([latestEvent, 'optionalAccess', _92 => _92.type]);
2287
2311
  const isSuccess = t === "bridge-complete" || t === "post-bridge-swap-complete";
2288
2312
  if (!isSuccess) return;
2289
2313
  const txHash = currentDepositTxHashRef.current;
@@ -2291,30 +2315,30 @@ function SwappedIframeStep({
2291
2315
  completeFiredRef.current = true;
2292
2316
  onSwappedCompleteRef.current({
2293
2317
  txHash,
2294
- orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _91 => _91.orderCrypto]), () => ( null)),
2318
+ orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _93 => _93.orderCrypto]), () => ( null)),
2295
2319
  // Base-unit source amount from the deposit row/event, consistent with the
2296
2320
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2297
- amount: _nullishCoalesce(_chunkN4XRQPVAcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2321
+ amount: _nullishCoalesce(_chunk7W5M6WEEcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2298
2322
  });
2299
2323
  }, [latestEvent, orderState]);
2300
2324
  _react.useEffect.call(void 0, () => {
2301
2325
  if (failedFiredRef.current || completeFiredRef.current) return;
2302
- if (!_chunkN4XRQPVAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2326
+ if (!_chunk7W5M6WEEcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2303
2327
  const txHash = currentDepositTxHashRef.current;
2304
2328
  if (!txHash) return;
2305
2329
  failedFiredRef.current = true;
2306
2330
  setPhase("tracker");
2307
- _optionalChain([onSwappedFailedRef, 'access', _92 => _92.current, 'optionalCall', _93 => _93(
2331
+ _optionalChain([onSwappedFailedRef, 'access', _94 => _94.current, 'optionalCall', _95 => _95(
2308
2332
  txHash,
2309
- _chunkN4XRQPVAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2333
+ _chunk7W5M6WEEcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2310
2334
  )]);
2311
2335
  }, [latestEvent]);
2312
2336
  if (phase === "tracker") {
2313
2337
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2314
2338
  SwappedOrderTracker,
2315
2339
  {
2316
- amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCryptoAmount]), () => ( null)),
2317
- currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _95 => _95.orderCrypto]), () => ( "USDC")),
2340
+ amount: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _96 => _96.orderCryptoAmount]), () => ( null)),
2341
+ currency: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _97 => _97.orderCrypto]), () => ( "USDC")),
2318
2342
  stepStates,
2319
2343
  terminal: terminalState,
2320
2344
  onRetry: () => setRetryToken((n) => n + 1),
@@ -2325,9 +2349,9 @@ function SwappedIframeStep({
2325
2349
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
2326
2350
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2327
2351
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2328
- _chunkN4XRQPVAcjs.BodyHeader,
2352
+ _chunk7W5M6WEEcjs.BodyHeader,
2329
2353
  {
2330
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.HandCoinsIcon, {}),
2354
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.HandCoinsIcon, {}),
2331
2355
  title: "Deposit",
2332
2356
  subtitle: "Add money to your balance"
2333
2357
  }
@@ -2345,7 +2369,7 @@ function SwappedIframeStep({
2345
2369
  }
2346
2370
  )
2347
2371
  ] }),
2348
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Spinner, {}) }),
2372
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Spinner, {}) }),
2349
2373
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2350
2374
  "iframe",
2351
2375
  {
@@ -2360,11 +2384,11 @@ function SwappedIframeStep({
2360
2384
  )
2361
2385
  ] })
2362
2386
  ] }),
2363
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
2387
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
2364
2388
  ] });
2365
2389
  }
2366
2390
  function deriveStepStates(swappedStatus, latestEvent) {
2367
- if (_chunkN4XRQPVAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2391
+ if (_chunk7W5M6WEEcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2368
2392
  return ["complete", "complete", "failed", "pending"];
2369
2393
  }
2370
2394
  if (swappedStatus === "order_cancelled") {
@@ -2372,7 +2396,7 @@ function deriveStepStates(swappedStatus, latestEvent) {
2372
2396
  }
2373
2397
  const step1Complete = swappedStatus === "order_completed" || swappedStatus === "order_broadcasted";
2374
2398
  const step2Complete = latestEvent !== null;
2375
- const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _96 => _96.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _97 => _97.type]) === "post-bridge-swap-complete";
2399
+ const step3Complete = _optionalChain([latestEvent, 'optionalAccess', _98 => _98.type]) === "bridge-complete" || _optionalChain([latestEvent, 'optionalAccess', _99 => _99.type]) === "post-bridge-swap-complete";
2376
2400
  if (step3Complete) {
2377
2401
  return ["complete", "complete", "complete", "pending"];
2378
2402
  }
@@ -2534,7 +2558,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2534
2558
  function ExchangeLogo({ exchange }) {
2535
2559
  const [failed, setFailed] = _react.useState.call(void 0, false);
2536
2560
  if (!exchange.logoUrl || failed) {
2537
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BankIcon, {});
2561
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BankIcon, {});
2538
2562
  }
2539
2563
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2540
2564
  "img",
@@ -2569,7 +2593,7 @@ function ExchangeSelectStep({
2569
2593
  const message = err instanceof Error ? err.message : "Failed to load exchanges";
2570
2594
  setExchanges([]);
2571
2595
  setError(message);
2572
- _optionalChain([onError, 'optionalCall', _98 => _98(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2596
+ _optionalChain([onError, 'optionalCall', _100 => _100(message, "SWAPPED_CONNECT_EXCHANGES_FAILED")]);
2573
2597
  }).finally(() => {
2574
2598
  if (!cancelled) setLoading(false);
2575
2599
  });
@@ -2580,14 +2604,14 @@ function ExchangeSelectStep({
2580
2604
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2581
2605
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2582
2606
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2583
- _chunkN4XRQPVAcjs.BodyHeader,
2607
+ _chunk7W5M6WEEcjs.BodyHeader,
2584
2608
  {
2585
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BankIcon, {}),
2609
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BankIcon, {}),
2586
2610
  title: "Fund from Exchange",
2587
2611
  subtitle: "Choose your exchange"
2588
2612
  }
2589
2613
  ),
2590
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Spinner, {}) }),
2614
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Spinner, {}) }),
2591
2615
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2592
2616
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2593
2617
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2627,7 +2651,7 @@ function ExchangeSelectStep({
2627
2651
  exchange.connection
2628
2652
  )) })
2629
2653
  ] }),
2630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
2654
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
2631
2655
  ] });
2632
2656
  }
2633
2657
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2639,25 +2663,25 @@ function DepositAddressSkeleton({
2639
2663
  uiConfig,
2640
2664
  allowedRoutes
2641
2665
  }) {
2642
- const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _99 => _99.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2643
- const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _100 => _100.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2666
+ const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _101 => _101.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2667
+ const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2644
2668
  const evmChainIds = (() => {
2645
- const all = _chunk7JIDIX27cjs.getSupportedChainIds.call(void 0, );
2669
+ const all = _chunkMILJQWPTcjs.getSupportedChainIds.call(void 0, );
2646
2670
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2647
2671
  })();
2648
2672
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2649
2673
  const tokensForChain = (() => {
2650
- const all = _chunk7JIDIX27cjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2674
+ const all = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2651
2675
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2652
2676
  })();
2653
2677
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2654
- const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, defaultChainId);
2655
- const chainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, defaultChainId);
2656
- const tokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, defaultToken);
2678
+ const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, defaultChainId);
2679
+ const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, defaultChainId);
2680
+ const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, defaultToken);
2657
2681
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2658
2682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2659
2683
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2660
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2684
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2661
2685
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2662
2686
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2663
2687
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2671,7 +2695,7 @@ function DepositAddressSkeleton({
2671
2695
  }
2672
2696
  ),
2673
2697
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2674
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2698
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2675
2699
  ] })
2676
2700
  ] }),
2677
2701
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2679,9 +2703,9 @@ function DepositAddressSkeleton({
2679
2703
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
2680
2704
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2681
2705
  "Min.$",
2682
- (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _101 => _101.minDepositUsd]), () => ( 0.1))).toFixed(2),
2683
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2684
- _chunkN4XRQPVAcjs.InfoIcon,
2706
+ (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _103 => _103.minDepositUsd]), () => ( 0.1))).toFixed(2),
2707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2708
+ _chunk7W5M6WEEcjs.InfoIcon,
2685
2709
  {
2686
2710
  className: "rs-deposit-address-min-icon",
2687
2711
  "aria-hidden": "true"
@@ -2699,7 +2723,7 @@ function DepositAddressSkeleton({
2699
2723
  }
2700
2724
  ),
2701
2725
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2702
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2726
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2703
2727
  ] })
2704
2728
  ] })
2705
2729
  ] }),
@@ -2720,7 +2744,7 @@ function DepositAddressSkeleton({
2720
2744
  disabled: true,
2721
2745
  "aria-hidden": "true",
2722
2746
  children: [
2723
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CopyIcon, {}),
2747
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CopyIcon, {}),
2724
2748
  "Copy address"
2725
2749
  ]
2726
2750
  }
@@ -2733,16 +2757,16 @@ function DepositAddressSkeleton({
2733
2757
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2734
2758
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2735
2759
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2736
- _chunkN4XRQPVAcjs.Tooltip,
2760
+ _chunk7W5M6WEEcjs.Tooltip,
2737
2761
  {
2738
2762
  className: "rs-price-impact-info",
2739
2763
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2740
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.InfoIcon, { "aria-hidden": "true" })
2764
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.InfoIcon, { "aria-hidden": "true" })
2741
2765
  }
2742
2766
  )
2743
2767
  ] }),
2744
2768
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2745
- _chunkN4XRQPVAcjs.ChevronDownIcon,
2769
+ _chunk7W5M6WEEcjs.ChevronDownIcon,
2746
2770
  {
2747
2771
  className: "rs-price-impact-chevron",
2748
2772
  "aria-hidden": "true"
@@ -2750,7 +2774,7 @@ function DepositAddressSkeleton({
2750
2774
  )
2751
2775
  ] }) })
2752
2776
  ] }),
2753
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
2777
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
2754
2778
  ] });
2755
2779
  }
2756
2780
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2782,14 +2806,14 @@ function SolanaTokenSelectStep({
2782
2806
  setError(null);
2783
2807
  const portfolioBySymbol = {};
2784
2808
  try {
2785
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2809
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2786
2810
  solanaAddress
2787
2811
  });
2788
2812
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
2789
2813
  if (!active) return;
2790
2814
  for (const t of portfolio.tokens) {
2791
2815
  const symbol = t.symbol.toUpperCase();
2792
- if (!_chunk7JIDIX27cjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
2816
+ if (!_chunkMILJQWPTcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
2793
2817
  let parsed = 0n;
2794
2818
  try {
2795
2819
  parsed = BigInt(t.balance || "0");
@@ -2805,12 +2829,12 @@ function SolanaTokenSelectStep({
2805
2829
  };
2806
2830
  }
2807
2831
  }
2808
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2832
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2809
2833
  symbols: Object.keys(portfolioBySymbol)
2810
2834
  });
2811
2835
  } catch (err) {
2812
2836
  if (!active) return;
2813
- _chunkN4XRQPVAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2837
+ _chunk7W5M6WEEcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2814
2838
  solanaAddress
2815
2839
  });
2816
2840
  setError(
@@ -2821,7 +2845,7 @@ function SolanaTokenSelectStep({
2821
2845
  return;
2822
2846
  }
2823
2847
  const results = [];
2824
- for (const token of _chunk7JIDIX27cjs.SOLANA_TOKENS) {
2848
+ for (const token of _chunkMILJQWPTcjs.SOLANA_TOKENS) {
2825
2849
  const fromPortfolio = portfolioBySymbol[token.symbol];
2826
2850
  if (fromPortfolio && fromPortfolio.balance > 0n) {
2827
2851
  results.push({
@@ -2835,7 +2859,7 @@ function SolanaTokenSelectStep({
2835
2859
  setTokenBalances(results);
2836
2860
  setLoading(false);
2837
2861
  const totalUsd = results.reduce((sum, r) => sum + r.balanceUsd, 0);
2838
- _optionalChain([onTotalBalanceComputed, 'optionalCall', _102 => _102(totalUsd)]);
2862
+ _optionalChain([onTotalBalanceComputed, 'optionalCall', _104 => _104(totalUsd)]);
2839
2863
  }
2840
2864
  void loadBalances();
2841
2865
  return () => {
@@ -2857,30 +2881,30 @@ function SolanaTokenSelectStep({
2857
2881
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2858
2882
  const numeric = Number(raw);
2859
2883
  if (!Number.isFinite(numeric)) return raw;
2860
- return _chunkN4XRQPVAcjs.tokenFormatter.format(numeric);
2884
+ return _chunk7W5M6WEEcjs.tokenFormatter.format(numeric);
2861
2885
  } catch (e19) {
2862
2886
  return "--";
2863
2887
  }
2864
2888
  };
2865
- const chainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, "solana");
2866
- const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, "solana");
2889
+ const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, "solana");
2890
+ const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, "solana");
2867
2891
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2868
2892
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2869
2893
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2870
- _chunkN4XRQPVAcjs.BodyHeader,
2894
+ _chunk7W5M6WEEcjs.BodyHeader,
2871
2895
  {
2872
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}),
2896
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}),
2873
2897
  title: "Your assets",
2874
2898
  subtitle: "Select source assets to transfer"
2875
2899
  }
2876
2900
  ),
2877
2901
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
2878
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Spinner, { className: "rs-text-tertiary" }),
2902
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Spinner, { className: "rs-text-tertiary" }),
2879
2903
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2880
2904
  ] }),
2881
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
2905
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "error", children: error }),
2882
2906
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
2883
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, { className: "rs-empty-icon" }),
2907
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, { className: "rs-empty-icon" }),
2884
2908
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
2885
2909
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
2886
2910
  solanaAddress.slice(0, 6),
@@ -2900,7 +2924,7 @@ function SolanaTokenSelectStep({
2900
2924
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((entry) => {
2901
2925
  const isSelected = selectedSymbol === entry.token.symbol;
2902
2926
  const tokenAmount = formatBalance(entry);
2903
- const tokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, entry.token.symbol);
2927
+ const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, entry.token.symbol);
2904
2928
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2905
2929
  "button",
2906
2930
  {
@@ -2929,14 +2953,14 @@ function SolanaTokenSelectStep({
2929
2953
  ] })
2930
2954
  ] })
2931
2955
  ] }),
2932
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkN4XRQPVAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
2956
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk7W5M6WEEcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
2933
2957
  ]
2934
2958
  },
2935
2959
  entry.token.symbol
2936
2960
  );
2937
2961
  }) }),
2938
2962
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2939
- _chunkN4XRQPVAcjs.Button,
2963
+ _chunk7W5M6WEEcjs.Button,
2940
2964
  {
2941
2965
  onClick: () => selectedEntry && onContinue(
2942
2966
  selectedEntry.token,
@@ -2949,7 +2973,7 @@ function SolanaTokenSelectStep({
2949
2973
  }
2950
2974
  )
2951
2975
  ] }),
2952
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
2976
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
2953
2977
  ] });
2954
2978
  }
2955
2979
 
@@ -2970,6 +2994,7 @@ function SolanaAmountStep({
2970
2994
  balanceUsd,
2971
2995
  defaultAmount,
2972
2996
  uiConfig,
2997
+ targetChain,
2973
2998
  targetChainName,
2974
2999
  targetTokenSymbol,
2975
3000
  targetTokenIcon,
@@ -2980,8 +3005,8 @@ function SolanaAmountStep({
2980
3005
  const [amount, setAmount] = _react.useState.call(void 0, "");
2981
3006
  const [error, setError] = _react.useState.call(void 0, null);
2982
3007
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
2983
- const isSourceStablecoin = _chunk7JIDIX27cjs.isStablecoinSymbol.call(void 0, token.symbol);
2984
- const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _103 => _103.trim, 'call', _104 => _104(), 'access', _105 => _105.toLowerCase, 'call', _106 => _106()]) === "max";
3008
+ const isSourceStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, token.symbol);
3009
+ const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _105 => _105.trim, 'call', _106 => _106(), 'access', _107 => _107.toLowerCase, 'call', _108 => _108()]) === "max";
2985
3010
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
2986
3011
  if (isSourceStablecoin) return 1;
2987
3012
  try {
@@ -3001,7 +3026,7 @@ function SolanaAmountStep({
3001
3026
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3002
3027
  const numeric = Number(raw);
3003
3028
  if (!Number.isFinite(numeric)) return raw;
3004
- return _chunkN4XRQPVAcjs.tokenFormatter.format(numeric);
3029
+ return _chunk7W5M6WEEcjs.tokenFormatter.format(numeric);
3005
3030
  } catch (e21) {
3006
3031
  return "\u2026";
3007
3032
  }
@@ -3018,7 +3043,7 @@ function SolanaAmountStep({
3018
3043
  }
3019
3044
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3020
3045
  const spendableBalance = _react.useMemo.call(void 0, () => {
3021
- if (!_chunk7JIDIX27cjs.isNativeSol.call(void 0, token)) return balance;
3046
+ if (!_chunkMILJQWPTcjs.isNativeSol.call(void 0, token)) return balance;
3022
3047
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3023
3048
  }, [balance, token]);
3024
3049
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3083,8 +3108,8 @@ function SolanaAmountStep({
3083
3108
  return null;
3084
3109
  }
3085
3110
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3086
- const minDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _107 => _107.minDepositUsd]), () => ( null));
3087
- const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _108 => _108.maxDepositUsd]), () => ( null));
3111
+ const minDepositUsd = targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _109 => _109.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( null));
3112
+ const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.maxDepositUsd]), () => ( null));
3088
3113
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3089
3114
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
3090
3115
  const exceedsBalance = Boolean(
@@ -3094,7 +3119,7 @@ function SolanaAmountStep({
3094
3119
  const handlePresetClick = (percentage) => {
3095
3120
  const formatted = computePresetAmount(percentage);
3096
3121
  if (!formatted) return;
3097
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3122
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3098
3123
  percentage,
3099
3124
  symbol: token.symbol,
3100
3125
  formatted
@@ -3129,7 +3154,7 @@ function SolanaAmountStep({
3129
3154
  try {
3130
3155
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3131
3156
  } catch (e26) {
3132
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3157
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3133
3158
  amount,
3134
3159
  sourceAmount: sourceAmountStr,
3135
3160
  reason: "parse-units-failed"
@@ -3138,13 +3163,13 @@ function SolanaAmountStep({
3138
3163
  return;
3139
3164
  }
3140
3165
  if (amountInUnits > spendableBalance) {
3141
- const isReserveIssue = _chunk7JIDIX27cjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3166
+ const isReserveIssue = _chunkMILJQWPTcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3142
3167
  setError(
3143
3168
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3144
3169
  );
3145
3170
  return;
3146
3171
  }
3147
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3172
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3148
3173
  symbol: token.symbol,
3149
3174
  inputAmountUsd: amount,
3150
3175
  sourceAmount: sourceAmountStr,
@@ -3155,10 +3180,10 @@ function SolanaAmountStep({
3155
3180
  };
3156
3181
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
3157
3182
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3158
- const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, token.symbol);
3183
+ const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, token.symbol);
3159
3184
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3160
3185
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3161
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3186
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}), title: "Wallet deposit" }),
3162
3187
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3163
3188
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3164
3189
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3178,13 +3203,13 @@ function SolanaAmountStep({
3178
3203
  " available",
3179
3204
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3180
3205
  " (~",
3181
- _chunkN4XRQPVAcjs.currencyFormatter.format(computedBalanceUsd),
3206
+ _chunk7W5M6WEEcjs.currencyFormatter.format(computedBalanceUsd),
3182
3207
  ")"
3183
3208
  ] })
3184
3209
  ] }),
3185
3210
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3186
3211
  "Min. deposit ",
3187
- _chunkN4XRQPVAcjs.currencyFormatter.format(minDepositUsd)
3212
+ _chunk7W5M6WEEcjs.currencyFormatter.format(minDepositUsd)
3188
3213
  ] })
3189
3214
  ] })
3190
3215
  ] }),
@@ -3223,12 +3248,13 @@ function SolanaAmountStep({
3223
3248
  ] }),
3224
3249
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3225
3250
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3226
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkN4XRQPVAcjs.currencyFormatter.format(balanceAfterUsd) })
3251
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7W5M6WEEcjs.currencyFormatter.format(balanceAfterUsd) })
3227
3252
  ] })
3228
3253
  ] }),
3229
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
3254
+ targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3255
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "error", children: error }),
3230
3256
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3231
- _chunkN4XRQPVAcjs.Button,
3257
+ _chunk7W5M6WEEcjs.Button,
3232
3258
  {
3233
3259
  onClick: handleContinue,
3234
3260
  fullWidth: true,
@@ -3237,7 +3263,7 @@ function SolanaAmountStep({
3237
3263
  }
3238
3264
  )
3239
3265
  ] }),
3240
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
3266
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
3241
3267
  ] });
3242
3268
  }
3243
3269
 
@@ -3261,7 +3287,7 @@ var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3261
3287
  var configuredSolanaRpcUrl = null;
3262
3288
  var cachedConnections = /* @__PURE__ */ new Map();
3263
3289
  function configureSolanaRpcUrl(rpcUrl) {
3264
- const normalized = _optionalChain([rpcUrl, 'optionalAccess', _109 => _109.trim, 'call', _110 => _110()]);
3290
+ const normalized = _optionalChain([rpcUrl, 'optionalAccess', _112 => _112.trim, 'call', _113 => _113()]);
3265
3291
  configuredSolanaRpcUrl = normalized ? normalized : null;
3266
3292
  cachedConnections.clear();
3267
3293
  }
@@ -3373,16 +3399,16 @@ function SolanaConfirmStep({
3373
3399
  }) {
3374
3400
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3375
3401
  const [error, setError] = _react.useState.call(void 0, null);
3376
- const targetSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3402
+ const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3377
3403
  const isSameToken = token.symbol.toUpperCase() === targetSymbol.toUpperCase();
3378
- const sourceChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, "solana");
3379
- const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
3380
- const sourceChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, "solana");
3381
- const targetChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain);
3382
- const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, token.symbol);
3383
- const targetTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol);
3384
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.feeSponsored]), () => ( false));
3385
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3404
+ const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, "solana");
3405
+ const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
3406
+ const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, "solana");
3407
+ const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
3408
+ const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, token.symbol);
3409
+ const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
3410
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _114 => _114.feeSponsored]), () => ( false));
3411
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3386
3412
  const formattedAmount = sourceAmount && !Number.isNaN(Number(sourceAmount)) ? Number(sourceAmount).toLocaleString("en-US", {
3387
3413
  minimumFractionDigits: 2,
3388
3414
  maximumFractionDigits: 6
@@ -3404,7 +3430,7 @@ function SolanaConfirmStep({
3404
3430
  const receiveAmount = isSameToken ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
3405
3431
  const handleConfirm = async () => {
3406
3432
  if (!solanaProvider) {
3407
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3433
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3408
3434
  reason: "missing-provider"
3409
3435
  });
3410
3436
  setError("Solana wallet not connected");
@@ -3412,7 +3438,7 @@ function SolanaConfirmStep({
3412
3438
  }
3413
3439
  const parsedAmount = parseFloat(sourceAmount);
3414
3440
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3415
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3441
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3416
3442
  reason: "invalid-amount",
3417
3443
  sourceAmount
3418
3444
  });
@@ -3421,7 +3447,7 @@ function SolanaConfirmStep({
3421
3447
  }
3422
3448
  setError(null);
3423
3449
  setIsSubmitting(true);
3424
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3450
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3425
3451
  smartAccount,
3426
3452
  solanaAddress,
3427
3453
  solanaDepositAddress,
@@ -3431,7 +3457,7 @@ function SolanaConfirmStep({
3431
3457
  });
3432
3458
  try {
3433
3459
  const check = await service.checkAccount(smartAccount);
3434
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3460
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3435
3461
  smartAccount,
3436
3462
  isRegistered: check.isRegistered,
3437
3463
  targetChain: check.targetChain,
@@ -3444,12 +3470,12 @@ function SolanaConfirmStep({
3444
3470
  }
3445
3471
  const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3446
3472
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3447
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3473
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3448
3474
  token: token.symbol,
3449
3475
  sourceAmount,
3450
3476
  amountUnits: amountUnits.toString()
3451
3477
  });
3452
- const transaction = _chunk7JIDIX27cjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3478
+ const transaction = _chunkMILJQWPTcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3453
3479
  connection,
3454
3480
  solanaAddress,
3455
3481
  solanaDepositAddress,
@@ -3461,10 +3487,10 @@ function SolanaConfirmStep({
3461
3487
  token.mint,
3462
3488
  amountUnits
3463
3489
  );
3464
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3490
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3465
3491
  token: token.symbol,
3466
3492
  instructionCount: transaction.instructions.length,
3467
- feePayer: _optionalChain([transaction, 'access', _113 => _113.feePayer, 'optionalAccess', _114 => _114.toBase58, 'call', _115 => _115()]),
3493
+ feePayer: _optionalChain([transaction, 'access', _116 => _116.feePayer, 'optionalAccess', _117 => _117.toBase58, 'call', _118 => _118()]),
3468
3494
  recentBlockhash: transaction.recentBlockhash
3469
3495
  });
3470
3496
  const txHash = await sendSolanaTransaction(
@@ -3472,28 +3498,28 @@ function SolanaConfirmStep({
3472
3498
  connection,
3473
3499
  transaction
3474
3500
  );
3475
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3501
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3476
3502
  txHash,
3477
3503
  amountUnits: amountUnits.toString()
3478
3504
  });
3479
3505
  onConfirm(txHash, amountUnits.toString());
3480
3506
  } catch (err) {
3481
3507
  const raw = err instanceof Error ? err.message : "Transfer failed";
3482
- const message = _chunkN4XRQPVAcjs.formatUserError.call(void 0, raw);
3483
- _chunkN4XRQPVAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3508
+ const message = _chunk7W5M6WEEcjs.formatUserError.call(void 0, raw);
3509
+ _chunk7W5M6WEEcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3484
3510
  smartAccount,
3485
3511
  token: token.symbol,
3486
3512
  sourceAmount
3487
3513
  });
3488
3514
  setError(message);
3489
- _optionalChain([onError, 'optionalCall', _116 => _116(message, "SOLANA_TRANSFER_ERROR")]);
3515
+ _optionalChain([onError, 'optionalCall', _119 => _119(message, "SOLANA_TRANSFER_ERROR")]);
3490
3516
  } finally {
3491
3517
  setIsSubmitting(false);
3492
3518
  }
3493
3519
  };
3494
3520
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3495
3521
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3496
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}), title: "Review deposit" }),
3522
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}), title: "Review deposit" }),
3497
3523
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3498
3524
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3499
3525
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3545,13 +3571,13 @@ function SolanaConfirmStep({
3545
3571
  children: "$0.04"
3546
3572
  }
3547
3573
  ),
3548
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.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, _chunkN4XRQPVAcjs.InfoIcon, {}) }) })
3574
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.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, _chunk7W5M6WEEcjs.InfoIcon, {}) }) })
3549
3575
  ] })
3550
3576
  ] })
3551
3577
  ] }),
3552
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Callout, { variant: "error", children: error }),
3578
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Callout, { variant: "error", children: error }),
3553
3579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3554
- _chunkN4XRQPVAcjs.Button,
3580
+ _chunk7W5M6WEEcjs.Button,
3555
3581
  {
3556
3582
  onClick: handleConfirm,
3557
3583
  loading: isSubmitting,
@@ -3562,7 +3588,7 @@ function SolanaConfirmStep({
3562
3588
  }
3563
3589
  )
3564
3590
  ] }),
3565
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
3591
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
3566
3592
  ] });
3567
3593
  }
3568
3594
 
@@ -3576,21 +3602,21 @@ function DappImportAssetSelectStep({
3576
3602
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3577
3603
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3578
3604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3579
- _chunkN4XRQPVAcjs.BodyHeader,
3605
+ _chunk7W5M6WEEcjs.BodyHeader,
3580
3606
  {
3581
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.WalletIcon, {}),
3607
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.WalletIcon, {}),
3582
3608
  title: `Transfer from ${sourceLabel}`,
3583
3609
  subtitle: "Pick the balance to import"
3584
3610
  }
3585
3611
  ),
3586
3612
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3587
- const tokenAmount = asset.balance ? _chunkN4XRQPVAcjs.tokenFormatter.format(
3613
+ const tokenAmount = asset.balance ? _chunk7W5M6WEEcjs.tokenFormatter.format(
3588
3614
  Number(asset.balance) / 10 ** asset.decimals
3589
3615
  ) : "0";
3590
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkN4XRQPVAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3591
- const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunk7JIDIX27cjs.getTokenIcon.call(void 0, asset.symbol)));
3592
- const chainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, asset.chainId);
3593
- const badge = _chunk7JIDIX27cjs.getChainBadge.call(void 0, asset.chainId);
3616
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk7W5M6WEEcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3617
+ const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol)));
3618
+ const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
3619
+ const badge = _chunkMILJQWPTcjs.getChainBadge.call(void 0, asset.chainId);
3594
3620
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3595
3621
  "button",
3596
3622
  {
@@ -3605,7 +3631,7 @@ function DappImportAssetSelectStep({
3605
3631
  "img",
3606
3632
  {
3607
3633
  src: chainIcon,
3608
- alt: _chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)
3634
+ alt: _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
3609
3635
  }
3610
3636
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3611
3637
  "span",
@@ -3638,7 +3664,7 @@ function DappImportAssetSelectStep({
3638
3664
  );
3639
3665
  }) })
3640
3666
  ] }),
3641
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
3667
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
3642
3668
  ] });
3643
3669
  }
3644
3670
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3704,7 +3730,7 @@ async function detectPolymarketWalletKind(params) {
3704
3730
  contracts: [
3705
3731
  {
3706
3732
  address: proxyWallet,
3707
- abi: _chunkN4XRQPVAcjs.SAFE_ABI,
3733
+ abi: _chunk7W5M6WEEcjs.SAFE_ABI,
3708
3734
  functionName: "isOwner",
3709
3735
  args: [eoa]
3710
3736
  },
@@ -3915,7 +3941,7 @@ async function executePolymarketSafeTransfer(params) {
3915
3941
  }
3916
3942
  const isOwner = await publicClient.readContract({
3917
3943
  address: safeAddress,
3918
- abi: _chunkN4XRQPVAcjs.SAFE_ABI,
3944
+ abi: _chunk7W5M6WEEcjs.SAFE_ABI,
3919
3945
  functionName: "isOwner",
3920
3946
  args: [account.address]
3921
3947
  });
@@ -3932,7 +3958,7 @@ async function executePolymarketSafeTransfer(params) {
3932
3958
  account,
3933
3959
  chain,
3934
3960
  address: safeAddress,
3935
- abi: _chunkN4XRQPVAcjs.SAFE_ABI,
3961
+ abi: _chunk7W5M6WEEcjs.SAFE_ABI,
3936
3962
  functionName: "execTransaction",
3937
3963
  args: [
3938
3964
  safeTx.to,
@@ -3951,7 +3977,7 @@ async function executePolymarketSafeTransfer(params) {
3951
3977
  hash: txHash
3952
3978
  });
3953
3979
  const parsed = _viem.parseEventLogs.call(void 0, {
3954
- abi: _chunkN4XRQPVAcjs.SAFE_ABI,
3980
+ abi: _chunk7W5M6WEEcjs.SAFE_ABI,
3955
3981
  logs: receipt.logs.filter(
3956
3982
  (log) => log.address.toLowerCase() === safeAddress.toLowerCase()
3957
3983
  ),
@@ -4029,21 +4055,21 @@ var polymarketProvider = {
4029
4055
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4030
4056
  const proxyWallet = await fetchPolymarketProxyWallet(eoa, signal);
4031
4057
  if (!proxyWallet) return null;
4032
- if (_optionalChain([signal, 'optionalAccess', _117 => _117.aborted])) return null;
4058
+ if (_optionalChain([signal, 'optionalAccess', _120 => _120.aborted])) return null;
4033
4059
  const polygonClient = getPublicClient2(POLYMARKET_POLYGON_CHAIN_ID);
4034
4060
  if (!polygonClient) return null;
4035
4061
  const balances = await readPolymarketBalances({
4036
4062
  publicClient: polygonClient,
4037
4063
  proxyWallet
4038
4064
  });
4039
- if (_optionalChain([signal, 'optionalAccess', _118 => _118.aborted])) return null;
4065
+ if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
4040
4066
  if (balances.pusd === 0n && balances.usdce === 0n) return null;
4041
4067
  const walletKind = await detectPolymarketWalletKind({
4042
4068
  publicClient: polygonClient,
4043
4069
  proxyWallet,
4044
4070
  eoa
4045
4071
  });
4046
- if (_optionalChain([signal, 'optionalAccess', _119 => _119.aborted])) return null;
4072
+ if (_optionalChain([signal, 'optionalAccess', _122 => _122.aborted])) return null;
4047
4073
  if (!walletKind) return null;
4048
4074
  const assets = [];
4049
4075
  if (balances.pusd > 0n) {
@@ -4459,12 +4485,12 @@ function applyAction(state, action) {
4459
4485
  requestKey: action.requestKey,
4460
4486
  cacheKey: action.cacheKey,
4461
4487
  status: "loading",
4462
- smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _120 => _120.smartAccount]), () => ( null)),
4463
- sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _121 => _121.sessionOwnerAddress]), () => ( null)),
4464
- solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _122 => _122.solanaDepositAddress]), () => ( null)),
4488
+ smartAccount: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _123 => _123.smartAccount]), () => ( null)),
4489
+ sessionOwnerAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _124 => _124.sessionOwnerAddress]), () => ( null)),
4490
+ solanaDepositAddress: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _125 => _125.solanaDepositAddress]), () => ( null)),
4465
4491
  message: null,
4466
4492
  cacheable: action.cacheable,
4467
- attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _123 => _123.attemptNonce]), () => ( 0))
4493
+ attemptNonce: _nullishCoalesce(_optionalChain([existing, 'optionalAccess', _126 => _126.attemptNonce]), () => ( 0))
4468
4494
  }));
4469
4495
  }
4470
4496
  case "setup/ready": {
@@ -4577,7 +4603,11 @@ function applyAction(state, action) {
4577
4603
  sourceChain: action.sourceChain,
4578
4604
  sourceToken: _nullishCoalesce(action.sourceToken, () => ( null)),
4579
4605
  sourceSymbol: _nullishCoalesce(action.sourceSymbol, () => ( null)),
4580
- sourceDecimals: _nullishCoalesce(action.sourceDecimals, () => ( null))
4606
+ sourceDecimals: _nullishCoalesce(action.sourceDecimals, () => ( null)),
4607
+ // The submit site's declared USD value, not the lingering typed
4608
+ // input — a submit that doesn't know it (fiat onramp) must not
4609
+ // inherit one from an abandoned wallet attempt.
4610
+ inputAmountUsd: _nullishCoalesce(action.inputAmountUsd, () => ( null))
4581
4611
  },
4582
4612
  processing: {
4583
4613
  ...state.processing,
@@ -4835,15 +4865,15 @@ var SetupError = class extends Error {
4835
4865
  }
4836
4866
  };
4837
4867
  async function resolveSessionOwner(eoaAddress) {
4838
- const local = _chunkN4XRQPVAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4868
+ const local = _chunk7W5M6WEEcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4839
4869
  if (local) {
4840
4870
  return {
4841
- account: _chunkN4XRQPVAcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4871
+ account: _chunk7W5M6WEEcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4842
4872
  address: local.address
4843
4873
  };
4844
4874
  }
4845
- const created = _chunkN4XRQPVAcjs.createSessionOwnerKey.call(void 0, );
4846
- _chunkN4XRQPVAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4875
+ const created = _chunk7W5M6WEEcjs.createSessionOwnerKey.call(void 0, );
4876
+ _chunk7W5M6WEEcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4847
4877
  return { account: created.account, address: created.address };
4848
4878
  }
4849
4879
  function stableStringify(value) {
@@ -4893,14 +4923,14 @@ function computeCacheKey(input, sessionOwnerAddress) {
4893
4923
  });
4894
4924
  }
4895
4925
  function computeIsCacheable(input) {
4896
- return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _124 => _124.postBridgeActions, 'optionalAccess', _125 => _125.length]), () => ( 0)));
4926
+ return !input.forceRegister && !(_nullishCoalesce(_optionalChain([input, 'access', _127 => _127.postBridgeActions, 'optionalAccess', _128 => _128.length]), () => ( 0)));
4897
4927
  }
4898
4928
  var SETUP_REQUEST_DEDUPE_TTL_MS = 3e4;
4899
4929
  var setupRequestDedupe = /* @__PURE__ */ new Map();
4900
4930
  function readDedupedAccountSetupResult(requestKey) {
4901
4931
  const now = Date.now();
4902
4932
  const existing = setupRequestDedupe.get(requestKey);
4903
- if (_optionalChain([existing, 'optionalAccess', _126 => _126.settled]) && existing.expiresAt > now && existing.result) {
4933
+ if (_optionalChain([existing, 'optionalAccess', _129 => _129.settled]) && existing.expiresAt > now && existing.result) {
4904
4934
  return existing.result;
4905
4935
  }
4906
4936
  return null;
@@ -4911,16 +4941,16 @@ async function runAccountSetup(input, deps) {
4911
4941
  try {
4912
4942
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
4913
4943
  const cacheKey = computeCacheKey(input, sessionOwner.address);
4914
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4944
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4915
4945
  owner: input.ownerAddress,
4916
4946
  sessionOwner: sessionOwner.address,
4917
- hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _127 => _127.postBridgeActions, 'optionalAccess', _128 => _128.length])),
4947
+ hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _130 => _130.postBridgeActions, 'optionalAccess', _131 => _131.length])),
4918
4948
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
4919
4949
  });
4920
4950
  const setup = await service.setupAccount({
4921
4951
  ownerAddress: input.ownerAddress,
4922
4952
  sessionOwnerAddress: sessionOwner.address,
4923
- targetChain: _chunkN4XRQPVAcjs.targetChainToCaip2.call(void 0, input.targetChain),
4953
+ targetChain: _chunkMILJQWPTcjs.targetChainToCaip2.call(void 0, input.targetChain),
4924
4954
  targetToken: input.targetToken,
4925
4955
  recipient: input.recipient,
4926
4956
  postBridgeActions: input.postBridgeActions,
@@ -4959,7 +4989,7 @@ async function runAccountSetup(input, deps) {
4959
4989
  primaryType: typedData.primaryType,
4960
4990
  message: typedData.message
4961
4991
  });
4962
- const sessionDetails = _chunkN4XRQPVAcjs.buildSessionDetails.call(void 0,
4992
+ const sessionDetails = _chunk7W5M6WEEcjs.buildSessionDetails.call(void 0,
4963
4993
  setup.sessionDetailsUnsigned,
4964
4994
  signature
4965
4995
  );
@@ -4973,13 +5003,13 @@ async function runAccountSetup(input, deps) {
4973
5003
  eoaAddress: input.ownerAddress,
4974
5004
  sessionOwner: sessionOwner.address,
4975
5005
  target: {
4976
- chain: _chunkN4XRQPVAcjs.targetChainToCaip2.call(void 0, input.targetChain),
5006
+ chain: _chunkMILJQWPTcjs.targetChainToCaip2.call(void 0, input.targetChain),
4977
5007
  token: input.targetToken,
4978
5008
  ...input.recipient && { recipient: input.recipient },
4979
- ..._optionalChain([input, 'access', _129 => _129.postBridgeActions, 'optionalAccess', _130 => _130.length]) && {
5009
+ ..._optionalChain([input, 'access', _132 => _132.postBridgeActions, 'optionalAccess', _133 => _133.length]) && {
4980
5010
  postBridgeActions: input.postBridgeActions
4981
5011
  },
4982
- ..._optionalChain([input, 'access', _131 => _131.outputTokenRules, 'optionalAccess', _132 => _132.length]) && {
5012
+ ..._optionalChain([input, 'access', _134 => _134.outputTokenRules, 'optionalAccess', _135 => _135.length]) && {
4983
5013
  outputTokenRules: input.outputTokenRules
4984
5014
  },
4985
5015
  ...input.rejectUnmapped != null && {
@@ -4995,7 +5025,7 @@ async function runAccountSetup(input, deps) {
4995
5025
  isRegistered: true
4996
5026
  };
4997
5027
  } catch (error) {
4998
- _chunkN4XRQPVAcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5028
+ _chunk7W5M6WEEcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
4999
5029
  owner: input.ownerAddress
5000
5030
  });
5001
5031
  if (error instanceof SetupError) throw error;
@@ -5006,7 +5036,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5006
5036
  const now = Date.now();
5007
5037
  const existing = setupRequestDedupe.get(requestKey);
5008
5038
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5009
- _chunkN4XRQPVAcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5039
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5010
5040
  owner: input.ownerAddress,
5011
5041
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5012
5042
  });
@@ -5096,6 +5126,7 @@ function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
5096
5126
  }
5097
5127
  var SWAPPED_SOURCE_CHAIN = 8453;
5098
5128
  var SWAPPED_SOURCE_TOKEN = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
5129
+ var SWAPPED_SOURCE_DECIMALS = 6;
5099
5130
  function getAddressKey(address) {
5100
5131
  return address ? address.toLowerCase() : null;
5101
5132
  }
@@ -5211,6 +5242,7 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
5211
5242
  amount: d.amount,
5212
5243
  sourceSymbol: _nullishCoalesce(d.sourceSymbol, () => ( void 0)),
5213
5244
  sourceDecimals: _nullishCoalesce(d.sourceDecimals, () => ( void 0)),
5245
+ inputAmountUsd: _nullishCoalesce(d.inputAmountUsd, () => ( void 0)),
5214
5246
  directTransfer: p.directTransfer
5215
5247
  };
5216
5248
  }
@@ -5246,7 +5278,7 @@ function DepositFlow({
5246
5278
  postBridgeActions,
5247
5279
  outputTokenRules,
5248
5280
  rejectUnmapped,
5249
- signerAddress = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS,
5281
+ signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
5250
5282
  sessionChainIds,
5251
5283
  forceRegister = false,
5252
5284
  enableSolana = true,
@@ -5268,12 +5300,12 @@ function DepositFlow({
5268
5300
  onError,
5269
5301
  debug
5270
5302
  }) {
5271
- const onStepChangeRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onStepChange);
5272
- const onEventRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onEvent);
5273
- const onLifecycleRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onLifecycle);
5274
- const onErrorRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onError);
5303
+ const onStepChangeRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onStepChange);
5304
+ const onEventRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onEvent);
5305
+ const onLifecycleRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onLifecycle);
5306
+ const onErrorRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onError);
5275
5307
  const hasInitialReownSession = Boolean(
5276
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _133 => _133.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _134 => _134.address]) : _optionalChain([reownWallet, 'optionalAccess', _135 => _135.address])
5308
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _136 => _136.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _137 => _137.address]) : _optionalChain([reownWallet, 'optionalAccess', _138 => _138.address])
5277
5309
  );
5278
5310
  const hasInitialWalletHydrationPending = Boolean(
5279
5311
  dappAddress && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasInitialReownSession && !reownWallet.isReady)
@@ -5296,13 +5328,13 @@ function DepositFlow({
5296
5328
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5297
5329
  const logFlow = _react.useCallback.call(void 0,
5298
5330
  (message, data) => {
5299
- _chunkN4XRQPVAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5331
+ _chunk7W5M6WEEcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5300
5332
  },
5301
5333
  [debug]
5302
5334
  );
5303
5335
  const logFlowError = _react.useCallback.call(void 0,
5304
5336
  (message, error, data) => {
5305
- _chunkN4XRQPVAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5337
+ _chunk7W5M6WEEcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5306
5338
  },
5307
5339
  [debug]
5308
5340
  );
@@ -5325,12 +5357,12 @@ function DepositFlow({
5325
5357
  return null;
5326
5358
  }, []);
5327
5359
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5328
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _136 => _136.switchChain])) return void 0;
5360
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _139 => _139.switchChain])) return void 0;
5329
5361
  return async (chainId) => {
5330
- await _optionalChain([dappWalletClient, 'access', _137 => _137.switchChain, 'optionalCall', _138 => _138({ id: chainId })]);
5362
+ await _optionalChain([dappWalletClient, 'access', _140 => _140.switchChain, 'optionalCall', _141 => _141({ id: chainId })]);
5331
5363
  };
5332
5364
  }, [dappWalletClient]);
5333
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _139 => _139.account, 'optionalAccess', _140 => _140.address]), () => ( null));
5365
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _142 => _142.account, 'optionalAccess', _143 => _143.address]), () => ( null));
5334
5366
  const walletOptions = _react.useMemo.call(void 0, () => {
5335
5367
  const options = [];
5336
5368
  const seen = /* @__PURE__ */ new Set();
@@ -5344,7 +5376,7 @@ function DepositFlow({
5344
5376
  });
5345
5377
  seen.add(id);
5346
5378
  }
5347
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _141 => _141.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5379
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _144 => _144.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5348
5380
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5349
5381
  if (!seen.has(id)) {
5350
5382
  options.push({
@@ -5356,7 +5388,7 @@ function DepositFlow({
5356
5388
  });
5357
5389
  seen.add(id);
5358
5390
  }
5359
- } else if (_optionalChain([reownWallet, 'optionalAccess', _142 => _142.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5391
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _145 => _145.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5360
5392
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5361
5393
  if (!seen.has(id)) {
5362
5394
  options.push({
@@ -5373,20 +5405,20 @@ function DepositFlow({
5373
5405
  }, [
5374
5406
  connectedWalletAddress,
5375
5407
  dappAddress,
5376
- _optionalChain([reownWallet, 'optionalAccess', _143 => _143.address]),
5377
- _optionalChain([reownWallet, 'optionalAccess', _144 => _144.isConnected]),
5378
- _optionalChain([reownWallet, 'optionalAccess', _145 => _145.walletClient]),
5379
- _optionalChain([reownWallet, 'optionalAccess', _146 => _146.publicClient]),
5380
- _optionalChain([reownWallet, 'optionalAccess', _147 => _147.icon]),
5408
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.address]),
5409
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.isConnected]),
5410
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.walletClient]),
5411
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.publicClient]),
5412
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.icon]),
5381
5413
  enableSolana,
5382
- _optionalChain([reownWallet, 'optionalAccess', _148 => _148.isSolana]),
5383
- _optionalChain([reownWallet, 'optionalAccess', _149 => _149.solanaAddress]),
5384
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.caipAddress])
5414
+ _optionalChain([reownWallet, 'optionalAccess', _151 => _151.isSolana]),
5415
+ _optionalChain([reownWallet, 'optionalAccess', _152 => _152.solanaAddress]),
5416
+ _optionalChain([reownWallet, 'optionalAccess', _153 => _153.caipAddress])
5385
5417
  ]);
5386
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _151 => _151.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5418
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _154 => _154.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5387
5419
  const hasWalletOptions = walletOptions.length > 0;
5388
5420
  const hasReownSession = Boolean(
5389
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _152 => _152.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _153 => _153.address]) : _optionalChain([reownWallet, 'optionalAccess', _154 => _154.address])
5421
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _155 => _155.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address]) : _optionalChain([reownWallet, 'optionalAccess', _157 => _157.address])
5390
5422
  );
5391
5423
  const isWalletHydrationPending = Boolean(
5392
5424
  dappAddress && !hasWalletOptions && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady)
@@ -5417,9 +5449,9 @@ function DepositFlow({
5417
5449
  isConnectSelectionConfirmed,
5418
5450
  selectedWalletId
5419
5451
  ]);
5420
- const setupChainId = typeof targetChain === "number" ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5421
- const targetSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5422
- const isTargetStablecoin = _chunk7JIDIX27cjs.isStablecoinSymbol.call(void 0, targetSymbol);
5452
+ const setupChainId = typeof targetChain === "number" && !_chunkMILJQWPTcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5453
+ const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5454
+ const isTargetStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5423
5455
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5424
5456
  _react.useEffect.call(void 0, () => {
5425
5457
  targetMarketPriceRef.current = null;
@@ -5445,16 +5477,16 @@ function DepositFlow({
5445
5477
  return {
5446
5478
  ownerAddress: dappAddress,
5447
5479
  walletClient: void 0,
5448
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, setupChainId))),
5480
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7W5M6WEEcjs.getPublicClient.call(void 0, setupChainId))),
5449
5481
  switchChain: void 0
5450
5482
  };
5451
5483
  }
5452
5484
  if (canAutoLock) {
5453
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _155 => _155.chain, 'optionalAccess', _156 => _156.id]), () => ( setupChainId));
5485
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _158 => _158.chain, 'optionalAccess', _159 => _159.id]), () => ( setupChainId));
5454
5486
  return {
5455
5487
  ownerAddress: dappWalletClient.account.address,
5456
5488
  walletClient: dappWalletClient,
5457
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, fallbackChainId))),
5489
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7W5M6WEEcjs.getPublicClient.call(void 0, fallbackChainId))),
5458
5490
  switchChain: dappSwitchChain
5459
5491
  };
5460
5492
  }
@@ -5468,24 +5500,24 @@ function DepositFlow({
5468
5500
  return {
5469
5501
  ownerAddress: dappAddress,
5470
5502
  walletClient: void 0,
5471
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, setupChainId))),
5503
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7W5M6WEEcjs.getPublicClient.call(void 0, setupChainId))),
5472
5504
  switchChain: void 0
5473
5505
  };
5474
5506
  }
5475
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5476
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _158 => _158.chain, 'optionalAccess', _159 => _159.id]), () => ( setupChainId));
5507
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _160 => _160.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5508
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _161 => _161.chain, 'optionalAccess', _162 => _162.id]), () => ( setupChainId));
5477
5509
  return {
5478
5510
  ownerAddress: dappWalletClient.account.address,
5479
5511
  walletClient: dappWalletClient,
5480
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, fallbackChainId))),
5512
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7W5M6WEEcjs.getPublicClient.call(void 0, fallbackChainId))),
5481
5513
  switchChain: dappSwitchChain
5482
5514
  };
5483
5515
  }
5484
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _160 => _160.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5516
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5485
5517
  return {
5486
5518
  ownerAddress: reownWallet.address,
5487
5519
  walletClient: reownWallet.walletClient,
5488
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, setupChainId))),
5520
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunk7W5M6WEEcjs.getPublicClient.call(void 0, setupChainId))),
5489
5521
  switchChain: reownWallet.switchChain
5490
5522
  };
5491
5523
  }
@@ -5523,7 +5555,7 @@ function DepositFlow({
5523
5555
  return {
5524
5556
  ownerAddress: dappAddress,
5525
5557
  walletClient: void 0,
5526
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkN4XRQPVAcjs.getPublicClient.call(void 0, setupChainId))),
5558
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7W5M6WEEcjs.getPublicClient.call(void 0, setupChainId))),
5527
5559
  switchChain: void 0
5528
5560
  };
5529
5561
  }
@@ -5548,37 +5580,37 @@ function DepositFlow({
5548
5580
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5549
5581
  if (!selectedWalletId) return null;
5550
5582
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5551
- if (_optionalChain([opt, 'optionalAccess', _161 => _161.kind]) === "external" && opt.address) {
5583
+ if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "external" && opt.address) {
5552
5584
  return opt.address;
5553
5585
  }
5554
- if (_optionalChain([opt, 'optionalAccess', _162 => _162.kind]) === "connected" && opt.address) {
5586
+ if (_optionalChain([opt, 'optionalAccess', _165 => _165.kind]) === "connected" && opt.address) {
5555
5587
  return opt.address;
5556
5588
  }
5557
5589
  return null;
5558
5590
  }, [selectedWalletId, walletOptions]);
5559
5591
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5560
5592
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5561
- if (_optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]) && reownWallet.isConnected) {
5593
+ if (_optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]) && reownWallet.isConnected) {
5562
5594
  return reownWallet.address;
5563
5595
  }
5564
5596
  if (connectedWalletAddress) return connectedWalletAddress;
5565
5597
  return null;
5566
5598
  }, [
5567
5599
  selectedEvmWalletOwner,
5568
- _optionalChain([reownWallet, 'optionalAccess', _164 => _164.address]),
5569
- _optionalChain([reownWallet, 'optionalAccess', _165 => _165.isConnected]),
5600
+ _optionalChain([reownWallet, 'optionalAccess', _167 => _167.address]),
5601
+ _optionalChain([reownWallet, 'optionalAccess', _168 => _168.isConnected]),
5570
5602
  connectedWalletAddress
5571
5603
  ]);
5572
5604
  const activeOwner = _react.useMemo.call(void 0,
5573
5605
  () => resolveOwnerForMode(flowMode, {
5574
5606
  dappAddress,
5575
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _166 => _166.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5607
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5576
5608
  dappImportOwner
5577
5609
  }),
5578
5610
  [
5579
5611
  flowMode,
5580
5612
  dappAddress,
5581
- _optionalChain([signerContext, 'optionalAccess', _167 => _167.ownerAddress]),
5613
+ _optionalChain([signerContext, 'optionalAccess', _170 => _170.ownerAddress]),
5582
5614
  canAutoLock,
5583
5615
  connectedWalletAddress,
5584
5616
  selectedEvmWalletOwner,
@@ -5607,12 +5639,12 @@ function DepositFlow({
5607
5639
  return;
5608
5640
  }
5609
5641
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5610
- _optionalChain([onLifecycleRef, 'access', _168 => _168.current, 'optionalCall', _169 => _169({
5642
+ _optionalChain([onLifecycleRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172({
5611
5643
  type: "smart-account-changed",
5612
5644
  evm: activeEntry.smartAccount,
5613
5645
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5614
5646
  })]);
5615
- _optionalChain([onLifecycleRef, 'access', _170 => _170.current, 'optionalCall', _171 => _171({
5647
+ _optionalChain([onLifecycleRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174({
5616
5648
  type: "connected",
5617
5649
  address: activeOwner,
5618
5650
  smartAccount: activeEntry.smartAccount
@@ -5659,7 +5691,7 @@ function DepositFlow({
5659
5691
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
5660
5692
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
5661
5693
  _react.useEffect.call(void 0, () => {
5662
- _optionalChain([onStepChangeRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173(currentBackHandler, currentScreen)]);
5694
+ _optionalChain([onStepChangeRef, 'access', _175 => _175.current, 'optionalCall', _176 => _176(currentBackHandler, currentScreen)]);
5663
5695
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
5664
5696
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
5665
5697
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -5669,7 +5701,7 @@ function DepositFlow({
5669
5701
  modalContentElRef.current = mc;
5670
5702
  const ro = new ResizeObserver((entries) => {
5671
5703
  for (const entry of entries) {
5672
- const border = _optionalChain([entry, 'access', _174 => _174.borderBoxSize, 'optionalAccess', _175 => _175[0], 'optionalAccess', _176 => _176.blockSize]);
5704
+ const border = _optionalChain([entry, 'access', _177 => _177.borderBoxSize, 'optionalAccess', _178 => _178[0], 'optionalAccess', _179 => _179.blockSize]);
5673
5705
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
5674
5706
  }
5675
5707
  });
@@ -5710,23 +5742,23 @@ function DepositFlow({
5710
5742
  }
5711
5743
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
5712
5744
  if (effectiveStep.type === "select-asset") {
5713
- _optionalChain([onEventRef, 'access', _177 => _177.current, 'optionalCall', _178 => _178({
5745
+ _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
5714
5746
  type: "deposit_modal_connected_wallet_select_source_open",
5715
5747
  total_balance_in_external_wallet: totalBalanceUsd,
5716
5748
  pred_balance: totalBalanceUsd
5717
5749
  })]);
5718
5750
  } else if (effectiveStep.type === "deposit-address") {
5719
- const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
5720
- const tokenSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5721
- _optionalChain([onEventRef, 'access', _179 => _179.current, 'optionalCall', _180 => _180({
5751
+ const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
5752
+ const tokenSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5753
+ _optionalChain([onEventRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5722
5754
  type: "deposit_modal_transfer_crypto_open",
5723
5755
  default_chain: chainName,
5724
5756
  default_token: tokenSymbol,
5725
5757
  pred_balance: totalBalanceUsd
5726
5758
  })]);
5727
5759
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5728
- const receiveSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5729
- _optionalChain([onEventRef, 'access', _181 => _181.current, 'optionalCall', _182 => _182({
5760
+ const receiveSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5761
+ _optionalChain([onEventRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
5730
5762
  type: "deposit_modal_connected_wallet_enter_value_open",
5731
5763
  send_token: stepSendToken,
5732
5764
  receive_token: receiveSymbol,
@@ -5759,7 +5791,7 @@ function DepositFlow({
5759
5791
  targetToken
5760
5792
  ]);
5761
5793
  _react.useEffect.call(void 0, () => {
5762
- _optionalChain([onLifecycleRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5794
+ _optionalChain([onLifecycleRef, 'access', _186 => _186.current, 'optionalCall', _187 => _187({
5763
5795
  type: "balance-changed",
5764
5796
  totalUsd: totalBalanceUsd
5765
5797
  })]);
@@ -5775,7 +5807,7 @@ function DepositFlow({
5775
5807
  const handleConfirmWallet = _react.useCallback.call(void 0,
5776
5808
  (walletId) => {
5777
5809
  const selectedOption = walletOptions.find((o) => o.id === walletId);
5778
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _185 => _185.kind]) === "solana" ? "solana-wallet" : "wallet";
5810
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _188 => _188.kind]) === "solana" ? "solana-wallet" : "wallet";
5779
5811
  storeApi.dispatch({
5780
5812
  type: "connect/wallet-confirmed",
5781
5813
  walletId,
@@ -5785,7 +5817,7 @@ function DepositFlow({
5785
5817
  [walletOptions, enableSolana, storeApi]
5786
5818
  );
5787
5819
  const isSolanaWalletConnected = Boolean(
5788
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _186 => _186.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _187 => _187.isSolana])
5820
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _190 => _190.isSolana])
5789
5821
  );
5790
5822
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
5791
5823
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -5798,7 +5830,7 @@ function DepositFlow({
5798
5830
  const owner = dappImportOwner;
5799
5831
  if (owner) {
5800
5832
  const wallet = walletOptions.find(
5801
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _188 => _188.toLowerCase, 'call', _189 => _189()]) === owner.toLowerCase()
5833
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) === owner.toLowerCase()
5802
5834
  );
5803
5835
  if (wallet) {
5804
5836
  storeApi.dispatch({
@@ -5836,7 +5868,7 @@ function DepositFlow({
5836
5868
  eoa: dappImportOwner,
5837
5869
  getPublicClient: (chainId) => {
5838
5870
  try {
5839
- return _chunkN4XRQPVAcjs.getPublicClient.call(void 0, chainId);
5871
+ return _chunk7W5M6WEEcjs.getPublicClient.call(void 0, chainId);
5840
5872
  } catch (e31) {
5841
5873
  return null;
5842
5874
  }
@@ -5879,7 +5911,7 @@ function DepositFlow({
5879
5911
  if (!dappImportOwner) {
5880
5912
  return { ...baseRow, status: "needs-connect" };
5881
5913
  }
5882
- const availabilityEntry = _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _190 => _190.toLowerCase, 'call', _191 => _191()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[provider.id] : void 0;
5914
+ const availabilityEntry = _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _193 => _193.toLowerCase, 'call', _194 => _194()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[provider.id] : void 0;
5883
5915
  const dappImportSetup = readSetupForOwner(setupSlice, dappImportOwner);
5884
5916
  if (availabilityEntry === "loading" || availabilityEntry === void 0) {
5885
5917
  return { ...baseRow, status: "loading" };
@@ -5927,7 +5959,7 @@ function DepositFlow({
5927
5959
  }, [activeDappImportProviderId, enabledDappImportProviders]);
5928
5960
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
5929
5961
  if (!activeDappImportProviderId) return null;
5930
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _192 => _192.toLowerCase, 'call', _193 => _193()]) !== dappImportOwner.toLowerCase()) {
5962
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _195 => _195.toLowerCase, 'call', _196 => _196()]) !== dappImportOwner.toLowerCase()) {
5931
5963
  return null;
5932
5964
  }
5933
5965
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -5961,7 +5993,7 @@ function DepositFlow({
5961
5993
  [storeApi]
5962
5994
  );
5963
5995
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
5964
- _optionalChain([onLifecycleRef, 'access', _194 => _194.current, 'optionalCall', _195 => _195({
5996
+ _optionalChain([onLifecycleRef, 'access', _197 => _197.current, 'optionalCall', _198 => _198({
5965
5997
  type: "smart-account-changed",
5966
5998
  evm: null,
5967
5999
  solana: null
@@ -6009,13 +6041,13 @@ function DepositFlow({
6009
6041
  };
6010
6042
  push(dappAddress);
6011
6043
  push(connectedWalletAddress);
6012
- push(_optionalChain([reownWallet, 'optionalAccess', _196 => _196.address]));
6044
+ push(_optionalChain([reownWallet, 'optionalAccess', _199 => _199.address]));
6013
6045
  push(dappImportOwner);
6014
6046
  return owners;
6015
6047
  }, [
6016
6048
  dappAddress,
6017
6049
  connectedWalletAddress,
6018
- _optionalChain([reownWallet, 'optionalAccess', _197 => _197.address]),
6050
+ _optionalChain([reownWallet, 'optionalAccess', _200 => _200.address]),
6019
6051
  dappImportOwner
6020
6052
  ]);
6021
6053
  _react.useEffect.call(void 0, () => {
@@ -6029,7 +6061,7 @@ function DepositFlow({
6029
6061
  try {
6030
6062
  sessionOwner = await resolveSessionOwner(owner);
6031
6063
  } catch (error) {
6032
- _chunkN4XRQPVAcjs.debugError.call(void 0,
6064
+ _chunk7W5M6WEEcjs.debugError.call(void 0,
6033
6065
  debug,
6034
6066
  "deposit-flow",
6035
6067
  "session-owner:resolve-failed",
@@ -6120,7 +6152,7 @@ function DepositFlow({
6120
6152
  sourceChain: data.sourceChain,
6121
6153
  amount: data.amount
6122
6154
  });
6123
- _optionalChain([onLifecycleRef, 'access', _198 => _198.current, 'optionalCall', _199 => _199({ type: "submitted", ...data })]);
6155
+ _optionalChain([onLifecycleRef, 'access', _201 => _201.current, 'optionalCall', _202 => _202({ type: "submitted", ...data })]);
6124
6156
  },
6125
6157
  [logFlow, onLifecycleRef]
6126
6158
  );
@@ -6139,8 +6171,8 @@ function DepositFlow({
6139
6171
  );
6140
6172
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6141
6173
  (token, sourceAmount, inputAmountUsd) => {
6142
- const targetSym = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6143
- const isTargetStable = _chunk7JIDIX27cjs.isStablecoinSymbol.call(void 0, targetSym);
6174
+ const targetSym = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6175
+ const isTargetStable = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSym);
6144
6176
  const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6145
6177
  logFlow("solana:amount:continue", {
6146
6178
  token: token.symbol,
@@ -6161,8 +6193,10 @@ function DepositFlow({
6161
6193
  );
6162
6194
  const handleSolanaConfirmed = _react.useCallback.call(void 0,
6163
6195
  (txHash, amountUnits) => {
6164
- const tokenAtSubmit = storeApi.getState().deposit.selectedSolanaToken;
6196
+ const depositAtSubmit = storeApi.getState().deposit;
6197
+ const tokenAtSubmit = depositAtSubmit.selectedSolanaToken;
6165
6198
  if (!tokenAtSubmit) return;
6199
+ const amountUsd = _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0));
6166
6200
  logFlow("solana:submitted", {
6167
6201
  txHash,
6168
6202
  amountUnits,
@@ -6175,20 +6209,23 @@ function DepositFlow({
6175
6209
  sourceToken: tokenAtSubmit.mint,
6176
6210
  amount: amountUnits,
6177
6211
  sourceSymbol: tokenAtSubmit.symbol,
6178
- sourceDecimals: tokenAtSubmit.decimals
6212
+ sourceDecimals: tokenAtSubmit.decimals,
6213
+ inputAmountUsd: amountUsd
6179
6214
  });
6180
- _optionalChain([onLifecycleRef, 'access', _200 => _200.current, 'optionalCall', _201 => _201({
6215
+ _optionalChain([onLifecycleRef, 'access', _203 => _203.current, 'optionalCall', _204 => _204({
6181
6216
  type: "submitted",
6182
6217
  txHash,
6183
6218
  sourceChain: "solana",
6184
- amount: amountUnits
6219
+ amount: amountUnits,
6220
+ sourceDecimals: tokenAtSubmit.decimals,
6221
+ amountUsd
6185
6222
  })]);
6186
6223
  },
6187
6224
  [logFlow, onLifecycleRef, storeApi]
6188
6225
  );
6189
6226
  const handleAssetContinue = _react.useCallback.call(void 0,
6190
6227
  (asset) => {
6191
- _optionalChain([onEventRef, 'access', _202 => _202.current, 'optionalCall', _203 => _203({
6228
+ _optionalChain([onEventRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({
6192
6229
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6193
6230
  total_balance_in_external_wallet: totalBalanceUsd,
6194
6231
  pred_balance: totalBalanceUsd,
@@ -6211,8 +6248,8 @@ function DepositFlow({
6211
6248
  activeOwner
6212
6249
  );
6213
6250
  if (entry.status !== "ready") return;
6214
- const targetSym = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6215
- const isTargetStable = _chunk7JIDIX27cjs.isStablecoinSymbol.call(void 0, targetSym);
6251
+ const targetSym = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6252
+ const isTargetStable = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSym);
6216
6253
  const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6217
6254
  storeApi.dispatch({
6218
6255
  type: "amount/entered",
@@ -6233,7 +6270,8 @@ function DepositFlow({
6233
6270
  sourceToken: token,
6234
6271
  amount
6235
6272
  });
6236
- const asset = storeApi.getState().deposit.selectedAsset;
6273
+ const depositAtSubmit = storeApi.getState().deposit;
6274
+ const asset = depositAtSubmit.selectedAsset;
6237
6275
  const dappImport = asset && isDappImportAsset(asset) ? asset : null;
6238
6276
  storeApi.dispatch({
6239
6277
  type: "deposit/submitted",
@@ -6241,8 +6279,9 @@ function DepositFlow({
6241
6279
  sourceChain: chainId,
6242
6280
  sourceToken: token,
6243
6281
  amount,
6244
- sourceSymbol: _optionalChain([dappImport, 'optionalAccess', _204 => _204.symbol]),
6245
- sourceDecimals: _optionalChain([dappImport, 'optionalAccess', _205 => _205.decimals]),
6282
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _207 => _207.symbol]),
6283
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _208 => _208.decimals]),
6284
+ inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6246
6285
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
6247
6286
  });
6248
6287
  },
@@ -6262,32 +6301,36 @@ function DepositFlow({
6262
6301
  sourceToken: SWAPPED_SOURCE_TOKEN,
6263
6302
  amount,
6264
6303
  sourceSymbol: _nullishCoalesce(info.orderCrypto, () => ( "USDC")),
6265
- sourceDecimals: 6
6304
+ sourceDecimals: SWAPPED_SOURCE_DECIMALS
6266
6305
  });
6267
- _optionalChain([onLifecycleRef, 'access', _206 => _206.current, 'optionalCall', _207 => _207({
6306
+ _optionalChain([onLifecycleRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210({
6268
6307
  type: "submitted",
6269
6308
  txHash: info.txHash,
6270
6309
  sourceChain: SWAPPED_SOURCE_CHAIN,
6271
- amount
6310
+ amount,
6311
+ sourceDecimals: SWAPPED_SOURCE_DECIMALS
6272
6312
  })]);
6273
6313
  },
6274
6314
  [logFlow, storeApi, onLifecycleRef]
6275
6315
  );
6276
6316
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6277
6317
  (txHash, sourceChain, amount) => {
6278
- _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({
6318
+ const depositAtSubmit = storeApi.getState().deposit;
6319
+ _optionalChain([onLifecycleRef, 'access', _211 => _211.current, 'optionalCall', _212 => _212({
6279
6320
  type: "submitted",
6280
6321
  txHash,
6281
6322
  sourceChain,
6282
- amount
6323
+ amount,
6324
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _213 => _213.selectedAsset, 'optionalAccess', _214 => _214.decimals]),
6325
+ amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6283
6326
  })]);
6284
6327
  },
6285
- [onLifecycleRef]
6328
+ [onLifecycleRef, storeApi]
6286
6329
  );
6287
6330
  const handleDepositComplete = _react.useCallback.call(void 0,
6288
6331
  (txHash, destinationTxHash, context) => {
6289
6332
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6290
- _optionalChain([onLifecycleRef, 'access', _210 => _210.current, 'optionalCall', _211 => _211({
6333
+ _optionalChain([onLifecycleRef, 'access', _215 => _215.current, 'optionalCall', _216 => _216({
6291
6334
  type: "complete",
6292
6335
  txHash,
6293
6336
  destinationTxHash,
@@ -6299,14 +6342,14 @@ function DepositFlow({
6299
6342
  const handleDepositFailed = _react.useCallback.call(void 0,
6300
6343
  (txHash, error) => {
6301
6344
  logFlowError("deposit:failed", error, { txHash });
6302
- _optionalChain([onLifecycleRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({ type: "failed", txHash, error })]);
6345
+ _optionalChain([onLifecycleRef, 'access', _217 => _217.current, 'optionalCall', _218 => _218({ type: "failed", txHash, error })]);
6303
6346
  },
6304
6347
  [logFlowError, onLifecycleRef]
6305
6348
  );
6306
6349
  const handleError = _react.useCallback.call(void 0,
6307
6350
  (message, code) => {
6308
6351
  logFlowError("flow:error", message, { code });
6309
- _optionalChain([onErrorRef, 'access', _214 => _214.current, 'optionalCall', _215 => _215({ message, code })]);
6352
+ _optionalChain([onErrorRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220({ message, code })]);
6310
6353
  },
6311
6354
  [logFlowError, onErrorRef]
6312
6355
  );
@@ -6389,7 +6432,7 @@ function DepositFlow({
6389
6432
  );
6390
6433
  if (showConnectStep) {
6391
6434
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6392
- _chunkN4XRQPVAcjs.ConnectStep,
6435
+ _chunk7W5M6WEEcjs.ConnectStep,
6393
6436
  {
6394
6437
  walletRows,
6395
6438
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6461,15 +6504,15 @@ function DepositFlow({
6461
6504
  allowedRoutes,
6462
6505
  targetChain,
6463
6506
  targetToken,
6464
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _216 => _216.length])),
6507
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _221 => _221.length])),
6465
6508
  uiConfig,
6466
6509
  onDepositSubmitted: handleDepositAddressSubmitted,
6467
6510
  onDepositComplete: handleDepositComplete,
6468
6511
  onDepositFailed: handleDepositFailed,
6469
6512
  onCopyAddress: () => {
6470
- const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
6471
- const tokenSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6472
- _optionalChain([onEvent, 'optionalCall', _217 => _217({
6513
+ const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
6514
+ const tokenSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6515
+ _optionalChain([onEvent, 'optionalCall', _222 => _222({
6473
6516
  type: "deposit_modal_transfer_crypto_cta_click",
6474
6517
  default_chain: chainName,
6475
6518
  default_token: tokenSymbol,
@@ -6513,7 +6556,7 @@ function DepositFlow({
6513
6556
  }
6514
6557
  ),
6515
6558
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6516
- _chunkN4XRQPVAcjs.ProcessingStep,
6559
+ _chunk7W5M6WEEcjs.ProcessingStep,
6517
6560
  {
6518
6561
  smartAccount: step.smartAccount,
6519
6562
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6525,9 +6568,11 @@ function DepositFlow({
6525
6568
  amount: step.amount,
6526
6569
  sourceSymbol: step.sourceSymbol,
6527
6570
  sourceDecimals: step.sourceDecimals,
6528
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _218 => _218.length])),
6571
+ amountUsd: step.inputAmountUsd,
6572
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _223 => _223.length])),
6529
6573
  service,
6530
6574
  directTransfer: step.directTransfer,
6575
+ isSwappedOrder: true,
6531
6576
  onClose,
6532
6577
  onNewDeposit: handleNewDeposit,
6533
6578
  onDepositComplete: handleDepositComplete,
@@ -6578,7 +6623,7 @@ function DepositFlow({
6578
6623
  }
6579
6624
  ),
6580
6625
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6581
- _chunkN4XRQPVAcjs.ProcessingStep,
6626
+ _chunk7W5M6WEEcjs.ProcessingStep,
6582
6627
  {
6583
6628
  smartAccount: step.smartAccount,
6584
6629
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6590,9 +6635,11 @@ function DepositFlow({
6590
6635
  amount: step.amount,
6591
6636
  sourceSymbol: step.sourceSymbol,
6592
6637
  sourceDecimals: step.sourceDecimals,
6593
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _219 => _219.length])),
6638
+ amountUsd: step.inputAmountUsd,
6639
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _224 => _224.length])),
6594
6640
  service,
6595
6641
  directTransfer: step.directTransfer,
6642
+ isSwappedOrder: true,
6596
6643
  onClose,
6597
6644
  onNewDeposit: handleNewDeposit,
6598
6645
  onDepositComplete: handleDepositComplete,
@@ -6607,8 +6654,8 @@ function DepositFlow({
6607
6654
  }
6608
6655
  if (isSolanaWalletMode) {
6609
6656
  if (!dappAddress) return null;
6610
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _220 => _220.solanaAddress]);
6611
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _221 => _221.solanaProvider]);
6657
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _225 => _225.solanaAddress]);
6658
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _226 => _226.solanaProvider]);
6612
6659
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6613
6660
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6614
6661
  AccountPreparingSkeleton,
@@ -6639,10 +6686,11 @@ function DepositFlow({
6639
6686
  balanceUsd: effectiveStep.balanceUsd,
6640
6687
  defaultAmount: effectiveStep.inputAmountUsd,
6641
6688
  uiConfig,
6642
- targetChainName: _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain),
6643
- targetTokenSymbol: _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
6644
- targetTokenIcon: _chunk7JIDIX27cjs.getTokenIcon.call(void 0,
6645
- _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
6689
+ targetChain,
6690
+ targetChainName: _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain),
6691
+ targetTokenSymbol: _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
6692
+ targetTokenIcon: _chunkMILJQWPTcjs.getTokenIcon.call(void 0,
6693
+ _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
6646
6694
  ),
6647
6695
  appBalanceUsd,
6648
6696
  onContinue: handleSolanaAmountContinue,
@@ -6664,7 +6712,7 @@ function DepositFlow({
6664
6712
  targetToken,
6665
6713
  service,
6666
6714
  solanaProvider,
6667
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _222 => _222.solanaConnection]),
6715
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _227 => _227.solanaConnection]),
6668
6716
  uiConfig,
6669
6717
  onConfirm: handleSolanaConfirmed,
6670
6718
  onError: handleError,
@@ -6705,7 +6753,7 @@ function DepositFlow({
6705
6753
  ) })
6706
6754
  ] }) : null,
6707
6755
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6708
- _chunkN4XRQPVAcjs.ProcessingStep,
6756
+ _chunk7W5M6WEEcjs.ProcessingStep,
6709
6757
  {
6710
6758
  smartAccount: effectiveStep.smartAccount,
6711
6759
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -6717,7 +6765,8 @@ function DepositFlow({
6717
6765
  amount: effectiveStep.amount,
6718
6766
  sourceSymbol: effectiveStep.sourceSymbol,
6719
6767
  sourceDecimals: effectiveStep.sourceDecimals,
6720
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _223 => _223.length])),
6768
+ amountUsd: effectiveStep.inputAmountUsd,
6769
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _228 => _228.length])),
6721
6770
  service,
6722
6771
  directTransfer: effectiveStep.directTransfer,
6723
6772
  onClose,
@@ -6730,16 +6779,16 @@ function DepositFlow({
6730
6779
  )
6731
6780
  ] });
6732
6781
  }
6733
- if (!_optionalChain([signerContext, 'optionalAccess', _224 => _224.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _225 => _225.publicClient])) {
6782
+ if (!_optionalChain([signerContext, 'optionalAccess', _229 => _229.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _230 => _230.publicClient])) {
6734
6783
  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" }) }) }) }) });
6735
6784
  }
6736
6785
  const ownerAddress = signerContext.ownerAddress;
6737
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _226 => _226.walletClient, 'optionalAccess', _227 => _227.chain, 'optionalAccess', _228 => _228.id]), () => ( _optionalChain([signerContext, 'access', _229 => _229.publicClient, 'access', _230 => _230.chain, 'optionalAccess', _231 => _231.id]))), () => ( setupChainId));
6786
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _231 => _231.walletClient, 'optionalAccess', _232 => _232.chain, 'optionalAccess', _233 => _233.id]), () => ( _optionalChain([signerContext, 'access', _234 => _234.publicClient, 'access', _235 => _235.chain, 'optionalAccess', _236 => _236.id]))), () => ( setupChainId));
6738
6787
  const getReadClientForChain = (chainId) => {
6739
- if (_optionalChain([signerContext, 'access', _232 => _232.publicClient, 'access', _233 => _233.chain, 'optionalAccess', _234 => _234.id]) === chainId) {
6788
+ if (_optionalChain([signerContext, 'access', _237 => _237.publicClient, 'access', _238 => _238.chain, 'optionalAccess', _239 => _239.id]) === chainId) {
6740
6789
  return signerContext.publicClient;
6741
6790
  }
6742
- return _chunkN4XRQPVAcjs.getPublicClient.call(void 0, chainId);
6791
+ return _chunk7W5M6WEEcjs.getPublicClient.call(void 0, chainId);
6743
6792
  };
6744
6793
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6745
6794
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -6770,7 +6819,7 @@ function DepositFlow({
6770
6819
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6771
6820
  DappImportAssetSelectStep,
6772
6821
  {
6773
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _235 => _235.assets, 'access', _236 => _236[0], 'optionalAccess', _237 => _237.sourceLabel]), () => ( activeDappImportProvider.label)),
6822
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _240 => _240.assets, 'access', _241 => _241[0], 'optionalAccess', _242 => _242.sourceLabel]), () => ( activeDappImportProvider.label)),
6774
6823
  assets: activeDappImportAvailability.assets,
6775
6824
  onSelect: handleDappImportAssetSelected
6776
6825
  }
@@ -6796,8 +6845,8 @@ function DepositFlow({
6796
6845
  service,
6797
6846
  onContinue: handleAmountContinue,
6798
6847
  onCtaClick: (ctaName) => {
6799
- const receiveSymbol = _chunk7JIDIX27cjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6800
- _optionalChain([onEvent, 'optionalCall', _238 => _238({
6848
+ const receiveSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6849
+ _optionalChain([onEvent, 'optionalCall', _243 => _243({
6801
6850
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
6802
6851
  send_token: effectiveStep.asset.symbol,
6803
6852
  receive_token: receiveSymbol,
@@ -6848,7 +6897,7 @@ function DepositFlow({
6848
6897
  }
6849
6898
  ),
6850
6899
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6851
- _chunkN4XRQPVAcjs.ProcessingStep,
6900
+ _chunk7W5M6WEEcjs.ProcessingStep,
6852
6901
  {
6853
6902
  smartAccount: effectiveStep.smartAccount,
6854
6903
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -6860,7 +6909,8 @@ function DepositFlow({
6860
6909
  amount: effectiveStep.amount,
6861
6910
  sourceSymbol: effectiveStep.sourceSymbol,
6862
6911
  sourceDecimals: effectiveStep.sourceDecimals,
6863
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _239 => _239.length])),
6912
+ amountUsd: effectiveStep.inputAmountUsd,
6913
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _244 => _244.length])),
6864
6914
  service,
6865
6915
  directTransfer: effectiveStep.directTransfer,
6866
6916
  uiConfig,
@@ -6899,8 +6949,8 @@ function formatDate(iso) {
6899
6949
  function resolveChainId(value) {
6900
6950
  if (value === void 0 || value === null) return null;
6901
6951
  if (typeof value === "number") return value;
6902
- if (_chunkN4XRQPVAcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
6903
- const parsed = _chunkN4XRQPVAcjs.parseEvmChainId.call(void 0, value);
6952
+ if (_chunkMILJQWPTcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
6953
+ const parsed = _chunkMILJQWPTcjs.parseEvmChainId.call(void 0, value);
6904
6954
  if (parsed !== null) return parsed;
6905
6955
  const num = Number(value);
6906
6956
  return Number.isFinite(num) ? num : null;
@@ -6909,7 +6959,7 @@ function resolveTokenSymbol(token, chainId) {
6909
6959
  if (!token) return "";
6910
6960
  if (chainId === "solana") {
6911
6961
  const normalized = token.toLowerCase();
6912
- const matched = _chunk7JIDIX27cjs.SOLANA_TOKENS.find(
6962
+ const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
6913
6963
  (entry) => entry.mint.toLowerCase() === normalized
6914
6964
  );
6915
6965
  if (matched) return matched.symbol;
@@ -6918,7 +6968,7 @@ function resolveTokenSymbol(token, chainId) {
6918
6968
  }
6919
6969
  }
6920
6970
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
6921
- const sym = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, token, chainId);
6971
+ const sym = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, token, chainId);
6922
6972
  if (sym !== "Token") return sym;
6923
6973
  }
6924
6974
  return shortenHash(token);
@@ -6929,7 +6979,7 @@ function formatAmount(rawAmount, token, chainId) {
6929
6979
  if (token && chainId !== null && chainId !== void 0) {
6930
6980
  if (chainId === "solana") {
6931
6981
  const normalized = token.toLowerCase();
6932
- const matched = _chunk7JIDIX27cjs.SOLANA_TOKENS.find(
6982
+ const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
6933
6983
  (entry) => entry.mint.toLowerCase() === normalized
6934
6984
  );
6935
6985
  if (matched) {
@@ -6938,7 +6988,7 @@ function formatAmount(rawAmount, token, chainId) {
6938
6988
  decimals = 9;
6939
6989
  }
6940
6990
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
6941
- decimals = _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
6991
+ decimals = _chunkMILJQWPTcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
6942
6992
  }
6943
6993
  }
6944
6994
  try {
@@ -6956,7 +7006,7 @@ function formatAmount(rawAmount, token, chainId) {
6956
7006
  }
6957
7007
  function getTxExplorerUrl(txHash, chainId) {
6958
7008
  if (!chainId) return null;
6959
- const base2 = _chunk7JIDIX27cjs.getExplorerUrl.call(void 0, chainId);
7009
+ const base2 = _chunkMILJQWPTcjs.getExplorerUrl.call(void 0, chainId);
6960
7010
  if (!base2) return null;
6961
7011
  return `${base2}/tx/${txHash}`;
6962
7012
  }
@@ -6999,7 +7049,7 @@ function DepositHistoryPanel({
6999
7049
  );
7000
7050
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7001
7051
  const sourceHashes = new Set(
7002
- deposits.map((d) => _optionalChain([d, 'access', _240 => _240.sourceTxHash, 'optionalAccess', _241 => _241.toLowerCase, 'call', _242 => _242()])).filter((h) => Boolean(h))
7052
+ deposits.map((d) => _optionalChain([d, 'access', _245 => _245.sourceTxHash, 'optionalAccess', _246 => _246.toLowerCase, 'call', _247 => _247()])).filter((h) => Boolean(h))
7003
7053
  );
7004
7054
  return deposits.filter(
7005
7055
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7021,7 +7071,7 @@ function DepositHistoryPanel({
7021
7071
  className: "rs-modal-header-back",
7022
7072
  "aria-label": "Back",
7023
7073
  onClick: onClose,
7024
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronLeftIcon, {})
7074
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronLeftIcon, {})
7025
7075
  }
7026
7076
  ) }),
7027
7077
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7031,29 +7081,29 @@ function DepositHistoryPanel({
7031
7081
  className: "rs-modal-close",
7032
7082
  "aria-label": "Close",
7033
7083
  onClick: onCloseModal,
7034
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CloseIcon, {})
7084
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CloseIcon, {})
7035
7085
  }
7036
7086
  ) })
7037
7087
  ] }),
7038
7088
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7039
7089
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7040
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.HistoryIcon, {}), title: "History" }),
7090
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.HistoryIcon, {}), title: "History" }),
7041
7091
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7042
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.HistoryIcon, {}) }),
7092
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.HistoryIcon, {}) }),
7043
7093
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7044
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.Spinner, { className: "rs-spinner--sm" }),
7094
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.Spinner, { className: "rs-spinner--sm" }),
7045
7095
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7046
7096
  ] })
7047
7097
  ] }),
7048
7098
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7049
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.AlertTriangleIcon, {}) }),
7099
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.AlertTriangleIcon, {}) }),
7050
7100
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7051
7101
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7052
7102
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7053
7103
  ] })
7054
7104
  ] }),
7055
7105
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7056
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.HistoryIcon, {}) }),
7106
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.HistoryIcon, {}) }),
7057
7107
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7058
7108
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7059
7109
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7073,7 +7123,7 @@ function DepositHistoryPanel({
7073
7123
  )
7074
7124
  ] })
7075
7125
  ] }),
7076
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.PoweredBy, {})
7126
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.PoweredBy, {})
7077
7127
  ] })
7078
7128
  ]
7079
7129
  }
@@ -7084,12 +7134,12 @@ function HistoryCard({ deposit }) {
7084
7134
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7085
7135
  const sourceChainId = resolveChainId(deposit.chain);
7086
7136
  const targetChainId = resolveChainId(deposit.targetChain);
7087
- const sourceChainName = sourceChainId ? _chunk7JIDIX27cjs.getChainName.call(void 0, sourceChainId) : null;
7088
- const targetChainName = targetChainId ? _chunk7JIDIX27cjs.getChainName.call(void 0, targetChainId) : null;
7089
- const sourceChainIcon = sourceChainId ? _chunk7JIDIX27cjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7090
- const targetChainIcon = targetChainId ? _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChainId) : void 0;
7137
+ const sourceChainName = sourceChainId ? _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChainId) : null;
7138
+ const targetChainName = targetChainId ? _chunkMILJQWPTcjs.getChainName.call(void 0, targetChainId) : null;
7139
+ const sourceChainIcon = sourceChainId ? _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7140
+ const targetChainIcon = targetChainId ? _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7091
7141
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7092
- const sourceTokenIcon = sourceSymbol ? _chunk7JIDIX27cjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7142
+ const sourceTokenIcon = sourceSymbol ? _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7093
7143
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7094
7144
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
7095
7145
  const displayAmount = formattedAmount ? sourceSymbol && /^USD/.test(sourceSymbol) ? `$${Number(formattedAmount).toLocaleString("en-US", {
@@ -7148,7 +7198,7 @@ function HistoryCard({ deposit }) {
7148
7198
  onClick: (e) => e.stopPropagation(),
7149
7199
  children: [
7150
7200
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7151
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ArrowUpRightIcon, {})
7201
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ArrowUpRightIcon, {})
7152
7202
  ]
7153
7203
  }
7154
7204
  )
@@ -7163,7 +7213,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7163
7213
  // src/DepositModal.tsx
7164
7214
 
7165
7215
  var ReownDepositInner = _react.lazy.call(void 0,
7166
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-4I47KSPN.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7216
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-QRLLANTS.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7167
7217
  );
7168
7218
  function sortByCreatedAtDesc(items) {
7169
7219
  return [...items].sort((a, b) => {
@@ -7212,9 +7262,9 @@ function DepositModalInner({
7212
7262
  defaultAmount,
7213
7263
  recipient,
7214
7264
  appBalanceUsd,
7215
- backendUrl = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL,
7265
+ backendUrl = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL,
7216
7266
  solanaRpcUrl,
7217
- signerAddress = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS,
7267
+ signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
7218
7268
  sessionChainIds,
7219
7269
  forceRegister = false,
7220
7270
  enableSolana = true,
@@ -7241,12 +7291,12 @@ function DepositModalInner({
7241
7291
  debug
7242
7292
  }) {
7243
7293
  const modalRef = _react.useRef.call(void 0, null);
7244
- const onReadyRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onReady);
7294
+ const onReadyRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onReady);
7245
7295
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7246
7296
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7247
7297
  void 0
7248
7298
  );
7249
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _243 => _243.showHistoryButton]), () => ( false));
7299
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _248 => _248.showHistoryButton]), () => ( false));
7250
7300
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7251
7301
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7252
7302
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7257,10 +7307,35 @@ function DepositModalInner({
7257
7307
  const cursorRef = _react.useRef.call(void 0, null);
7258
7308
  const historyStaleRef = _react.useRef.call(void 0, false);
7259
7309
  const historyLoadedRef = _react.useRef.call(void 0, false);
7260
- const targetChain = targetChainProp === "solana" ? "solana" : _chunk7JIDIX27cjs.getChainId.call(void 0, targetChainProp);
7261
- const sourceChain = sourceChainProp ? _chunk7JIDIX27cjs.getChainId.call(void 0, sourceChainProp) : void 0;
7310
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkMILJQWPTcjs.getChainId.call(void 0, targetChainProp);
7311
+ const sourceChain = sourceChainProp ? _chunkMILJQWPTcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7312
+ const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7313
+ const onErrorRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onError);
7314
+ _react.useEffect.call(void 0, () => {
7315
+ if (targetChain !== _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7316
+ setRecipientIsContract(false);
7317
+ return;
7318
+ }
7319
+ let cancelled = false;
7320
+ _chunk7W5M6WEEcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7321
+ if (cancelled) return;
7322
+ const isContract = _chunkMILJQWPTcjs.isContractBytecode.call(void 0, code);
7323
+ setRecipientIsContract(isContract);
7324
+ if (isContract) {
7325
+ _optionalChain([onErrorRef, 'access', _249 => _249.current, 'optionalCall', _250 => _250({
7326
+ message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7327
+ code: "HYPERCORE_RECIPIENT_NOT_EOA"
7328
+ })]);
7329
+ }
7330
+ }).catch(() => {
7331
+ if (!cancelled) setRecipientIsContract(false);
7332
+ });
7333
+ return () => {
7334
+ cancelled = true;
7335
+ };
7336
+ }, [targetChain, recipient, onErrorRef]);
7262
7337
  const service = _react.useMemo.call(void 0,
7263
- () => _chunkN4XRQPVAcjs.createDepositService.call(void 0, backendUrl, {
7338
+ () => _chunk7W5M6WEEcjs.createDepositService.call(void 0, backendUrl, {
7264
7339
  debug,
7265
7340
  debugScope: "service:deposit"
7266
7341
  }),
@@ -7276,7 +7351,7 @@ function DepositModalInner({
7276
7351
  }, [store, targetChain, targetToken]);
7277
7352
  _react.useEffect.call(void 0, () => {
7278
7353
  if (isOpen && modalRef.current) {
7279
- _chunkN4XRQPVAcjs.applyTheme.call(void 0, modalRef.current, theme);
7354
+ _chunk7W5M6WEEcjs.applyTheme.call(void 0, modalRef.current, theme);
7280
7355
  }
7281
7356
  }, [isOpen, theme]);
7282
7357
  _react.useEffect.call(void 0, () => {
@@ -7284,7 +7359,7 @@ function DepositModalInner({
7284
7359
  }, [solanaRpcUrl]);
7285
7360
  _react.useEffect.call(void 0, () => {
7286
7361
  if (isOpen) {
7287
- _optionalChain([onReadyRef, 'access', _244 => _244.current, 'optionalCall', _245 => _245()]);
7362
+ _optionalChain([onReadyRef, 'access', _251 => _251.current, 'optionalCall', _252 => _252()]);
7288
7363
  }
7289
7364
  }, [isOpen, onReadyRef]);
7290
7365
  const handleStepChange = _react.useCallback.call(void 0,
@@ -7360,10 +7435,10 @@ function DepositModalInner({
7360
7435
  fetchHistory("initial");
7361
7436
  }
7362
7437
  }, [historyOpen, fetchHistory]);
7363
- const onLifecycleRef = _chunkN4XRQPVAcjs.useLatestRef.call(void 0, onLifecycle);
7438
+ const onLifecycleRef = _chunk7W5M6WEEcjs.useLatestRef.call(void 0, onLifecycle);
7364
7439
  const handleLifecycle = _react.useCallback.call(void 0,
7365
7440
  (event) => {
7366
- _optionalChain([onLifecycleRef, 'access', _246 => _246.current, 'optionalCall', _247 => _247(event)]);
7441
+ _optionalChain([onLifecycleRef, 'access', _253 => _253.current, 'optionalCall', _254 => _254(event)]);
7367
7442
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
7368
7443
  historyStaleRef.current = true;
7369
7444
  }
@@ -7389,10 +7464,10 @@ function DepositModalInner({
7389
7464
  store.dispatch({ type: "flow/reset" });
7390
7465
  }
7391
7466
  }, [isOpen, store]);
7392
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _248 => _248.showBackButton]), () => ( true));
7467
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _255 => _255.showBackButton]), () => ( true));
7393
7468
  const canGoBack = backHandler !== void 0;
7394
7469
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7395
- _chunkN4XRQPVAcjs.Modal,
7470
+ _chunk7W5M6WEEcjs.Modal,
7396
7471
  {
7397
7472
  isOpen,
7398
7473
  onClose,
@@ -7408,7 +7483,7 @@ function DepositModalInner({
7408
7483
  className: "rs-modal-header-back",
7409
7484
  "aria-label": "Go back",
7410
7485
  onClick: backHandler,
7411
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.ChevronLeftIcon, {})
7486
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.ChevronLeftIcon, {})
7412
7487
  }
7413
7488
  ) }),
7414
7489
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7420,7 +7495,7 @@ function DepositModalInner({
7420
7495
  "aria-label": "Deposit history",
7421
7496
  onClick: handleHistoryOpen,
7422
7497
  disabled: !recipient,
7423
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.HistoryIcon, {})
7498
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.HistoryIcon, {})
7424
7499
  }
7425
7500
  ),
7426
7501
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7430,12 +7505,12 @@ function DepositModalInner({
7430
7505
  onClick: onClose,
7431
7506
  className: "rs-modal-close",
7432
7507
  "aria-label": "Close",
7433
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN4XRQPVAcjs.CloseIcon, {})
7508
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.CloseIcon, {})
7434
7509
  }
7435
7510
  )
7436
7511
  ] })
7437
7512
  ] }),
7438
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7513
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7W5M6WEEcjs.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,
7439
7514
  DepositFlow,
7440
7515
  {
7441
7516
  dappWalletClient,