@rhinestone/deposit-modal 0.3.1 → 0.4.1

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 (38) hide show
  1. package/dist/{DepositModalReown-G7UX4IBZ.mjs → DepositModalReown-EXI7MW65.mjs} +6 -6
  2. package/dist/{DepositModalReown-MECHBE6P.cjs → DepositModalReown-FMAPWBQM.cjs} +9 -9
  3. package/dist/{WithdrawModalReown-WJ6VBZKK.cjs → WithdrawModalReown-CTT3EXMG.cjs} +8 -8
  4. package/dist/{WithdrawModalReown-CUJAFUQM.mjs → WithdrawModalReown-G7EM6HXO.mjs} +5 -5
  5. package/dist/{chunk-DZQD3DAV.mjs → chunk-3GLQC2KQ.mjs} +86 -18
  6. package/dist/{chunk-R5WDHHVM.mjs → chunk-43RTPRQY.mjs} +14 -4
  7. package/dist/{chunk-3C35DVPE.mjs → chunk-A33QFRKD.mjs} +985 -428
  8. package/dist/{chunk-MILJQWPT.cjs → chunk-ABVRVW3P.cjs} +133 -8
  9. package/dist/{chunk-SPUZLWQS.cjs → chunk-BTDRUAPJ.cjs} +514 -543
  10. package/dist/{chunk-TQ2AYMWS.mjs → chunk-F7P4MV72.mjs} +1 -1
  11. package/dist/{chunk-BAEB5AFZ.mjs → chunk-FJWLC4AM.mjs} +1 -1
  12. package/dist/{chunk-LEL6GMEQ.cjs → chunk-JHT2MJ42.cjs} +175 -107
  13. package/dist/{chunk-MQIJZNTP.cjs → chunk-LJJCPDZO.cjs} +844 -287
  14. package/dist/{chunk-R5CPOBCF.cjs → chunk-NRNJAQUA.cjs} +4 -4
  15. package/dist/{chunk-QYSCCX4K.mjs → chunk-RTAIW3WW.mjs} +452 -481
  16. package/dist/{chunk-AJHFNHG3.cjs → chunk-UEKPBRBY.cjs} +3 -3
  17. package/dist/{chunk-ULEAK63T.cjs → chunk-ULCCXH2A.cjs} +16 -6
  18. package/dist/{chunk-6YRDD462.mjs → chunk-WJX3TJFK.mjs} +135 -10
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.mjs +1 -1
  21. package/dist/deposit.cjs +6 -6
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +7 -7
  26. package/dist/index.d.cts +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.mjs +6 -6
  29. package/dist/polymarket.cjs +6 -6
  30. package/dist/polymarket.mjs +3 -3
  31. package/dist/styles.css +276 -27
  32. package/dist/{types-RzfAD14B.d.ts → types-CFRuisqK.d.cts} +1 -1
  33. package/dist/{types-RzfAD14B.d.cts → types-CFRuisqK.d.ts} +1 -1
  34. package/dist/withdraw.cjs +5 -5
  35. package/dist/withdraw.d.cts +2 -2
  36. package/dist/withdraw.d.ts +2 -2
  37. package/dist/withdraw.mjs +4 -4
  38. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkR5CPOBCFcjs = require('./chunk-R5CPOBCF.cjs');
10
+ var _chunkNRNJAQUAcjs = require('./chunk-NRNJAQUA.cjs');
11
11
 
12
12
 
13
13
 
@@ -59,14 +59,14 @@ var _chunkR5CPOBCFcjs = require('./chunk-R5CPOBCF.cjs');
59
59
 
60
60
 
61
61
 
62
- var _chunkMQIJZNTPcjs = require('./chunk-MQIJZNTP.cjs');
63
62
 
64
63
 
65
- var _chunkAJHFNHG3cjs = require('./chunk-AJHFNHG3.cjs');
66
64
 
67
65
 
66
+ var _chunkLJJCPDZOcjs = require('./chunk-LJJCPDZO.cjs');
68
67
 
69
68
 
69
+ var _chunkUEKPBRBYcjs = require('./chunk-UEKPBRBY.cjs');
70
70
 
71
71
 
72
72
 
@@ -92,7 +92,11 @@ var _chunkAJHFNHG3cjs = require('./chunk-AJHFNHG3.cjs');
92
92
 
93
93
 
94
94
 
95
- var _chunkMILJQWPTcjs = require('./chunk-MILJQWPT.cjs');
95
+
96
+
97
+
98
+
99
+ var _chunkABVRVW3Pcjs = require('./chunk-ABVRVW3P.cjs');
96
100
 
97
101
  // src/DepositModal.tsx
98
102
 
@@ -139,13 +143,13 @@ function AssetSelectStep({
139
143
  const [error, setError] = _react.useState.call(void 0, null);
140
144
  const defaultAssetId = _react.useMemo.call(void 0, () => {
141
145
  if (!defaultSourceChain || !defaultSourceToken) return null;
142
- return _chunkMQIJZNTPcjs.getAssetId.call(void 0, {
146
+ return _chunkLJJCPDZOcjs.getAssetId.call(void 0, {
143
147
  chainId: defaultSourceChain,
144
148
  token: defaultSourceToken
145
149
  });
146
150
  }, [defaultSourceChain, defaultSourceToken]);
147
- const onTotalBalanceComputedRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
148
- const onAssetsLoadedRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onAssetsLoaded);
151
+ const onTotalBalanceComputedRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
152
+ const onAssetsLoadedRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onAssetsLoaded);
149
153
  _react.useEffect.call(void 0, () => {
150
154
  let active = true;
151
155
  function emitAssetsUpdate(currentAssets) {
@@ -166,11 +170,11 @@ function AssetSelectStep({
166
170
  try {
167
171
  const portfolio = await service.fetchPortfolio(address);
168
172
  if (!active) return;
169
- const portfolioAssets = _chunkMQIJZNTPcjs.portfolioToAssets.call(void 0, portfolio.tokens);
173
+ const portfolioAssets = _chunkLJJCPDZOcjs.portfolioToAssets.call(void 0, portfolio.tokens);
170
174
  setAssets(portfolioAssets);
171
175
  emitAssetsUpdate(portfolioAssets);
172
176
  const hasNative = portfolioAssets.some(
173
- (asset) => asset.token.toLowerCase() === _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS
177
+ (asset) => asset.token.toLowerCase() === _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
174
178
  );
175
179
  if (!hasNative) {
176
180
  const nativeAssets = await fetchNativeAssets(
@@ -242,7 +246,7 @@ function AssetSelectStep({
242
246
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
243
247
  const numeric = Number(raw);
244
248
  if (!Number.isFinite(numeric)) return raw;
245
- return _chunkMQIJZNTPcjs.tokenFormatter.format(numeric);
249
+ return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
246
250
  } catch (e3) {
247
251
  return asset.balance;
248
252
  }
@@ -250,20 +254,20 @@ function AssetSelectStep({
250
254
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
251
255
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
252
256
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
253
- _chunkMQIJZNTPcjs.BodyHeader,
257
+ _chunkLJJCPDZOcjs.BodyHeader,
254
258
  {
255
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}),
259
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
256
260
  title: "Your assets",
257
261
  subtitle: "Select source assets to transfer"
258
262
  }
259
263
  ),
260
264
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
261
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, { className: "rs-text-tertiary" }),
265
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, { className: "rs-text-tertiary" }),
262
266
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
263
267
  ] }),
264
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
268
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
265
269
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
266
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, { className: "rs-empty-icon" }),
270
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, { className: "rs-empty-icon" }),
267
271
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
268
272
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
269
273
  address.slice(0, 6),
@@ -283,9 +287,9 @@ function AssetSelectStep({
283
287
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
284
288
  const isSelected = selectedAssetId === asset.id;
285
289
  const tokenAmount = formatBalance(asset);
286
- const badge = _chunkMILJQWPTcjs.getChainBadge.call(void 0, asset.chainId);
287
- const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
288
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
290
+ const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
291
+ const tokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
292
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
289
293
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
290
294
  "button",
291
295
  {
@@ -301,7 +305,7 @@ function AssetSelectStep({
301
305
  "img",
302
306
  {
303
307
  src: chainIcon,
304
- alt: _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
308
+ alt: _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)
305
309
  }
306
310
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
307
311
  "span",
@@ -320,7 +324,7 @@ function AssetSelectStep({
320
324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
321
325
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
322
326
  "on ",
323
- _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
327
+ _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)
324
328
  ] })
325
329
  ] }),
326
330
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -330,14 +334,14 @@ function AssetSelectStep({
330
334
  ] })
331
335
  ] })
332
336
  ] }),
333
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkMQIJZNTPcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
337
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkLJJCPDZOcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
334
338
  ]
335
339
  },
336
340
  asset.id
337
341
  );
338
342
  }) }),
339
343
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
340
- _chunkMQIJZNTPcjs.Button,
344
+ _chunkLJJCPDZOcjs.Button,
341
345
  {
342
346
  onClick: () => selectedAsset && onContinue(selectedAsset),
343
347
  disabled: !selectedAsset,
@@ -346,17 +350,17 @@ function AssetSelectStep({
346
350
  }
347
351
  )
348
352
  ] }),
349
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
353
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
350
354
  ] });
351
355
  }
352
356
  async function fetchNativeAssets(address, publicClient, existing) {
353
357
  const existingIds = new Set(existing.map((asset) => asset.id));
354
358
  const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
355
359
  if (!connectedChainId) return [];
356
- if (!_chunkMILJQWPTcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
357
- const id = _chunkMQIJZNTPcjs.getAssetId.call(void 0, {
360
+ if (!_chunkABVRVW3Pcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
361
+ const id = _chunkLJJCPDZOcjs.getAssetId.call(void 0, {
358
362
  chainId: connectedChainId,
359
- token: _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS
363
+ token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS
360
364
  });
361
365
  if (existingIds.has(id)) return [];
362
366
  try {
@@ -365,7 +369,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
365
369
  {
366
370
  id,
367
371
  chainId: connectedChainId,
368
- token: _chunkMILJQWPTcjs.NATIVE_TOKEN_ADDRESS,
372
+ token: _chunkABVRVW3Pcjs.NATIVE_TOKEN_ADDRESS,
369
373
  symbol: "ETH",
370
374
  name: "Ethereum",
371
375
  decimals: 18,
@@ -526,8 +530,8 @@ function AmountStep({
526
530
  const chainMismatch = Boolean(
527
531
  _optionalChain([walletClient, 'optionalAccess', _16 => _16.chain, 'optionalAccess', _17 => _17.id]) && walletClient.chain.id !== asset.chainId
528
532
  );
529
- const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
530
- const isSourceStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, asset.symbol);
533
+ const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
534
+ const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, asset.symbol);
531
535
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
532
536
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
533
537
  return tokenPriceUsdOverride;
@@ -551,7 +555,7 @@ function AmountStep({
551
555
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
552
556
  if (!balanceTarget || !publicClient) return;
553
557
  try {
554
- const bal = _chunkMQIJZNTPcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
558
+ const bal = _chunkLJJCPDZOcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
555
559
  address: asset.token,
556
560
  abi: _viem.erc20Abi,
557
561
  functionName: "balanceOf",
@@ -572,7 +576,7 @@ function AmountStep({
572
576
  hasAttemptedSwitch.current = true;
573
577
  switchChain(asset.chainId).catch((err) => {
574
578
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
575
- setError(_chunkMQIJZNTPcjs.formatUserError.call(void 0, raw));
579
+ setError(_chunkLJJCPDZOcjs.formatUserError.call(void 0, raw));
576
580
  });
577
581
  }
578
582
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -625,7 +629,7 @@ function AmountStep({
625
629
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
626
630
  const numeric = Number(raw);
627
631
  if (!Number.isFinite(numeric)) return raw;
628
- return _chunkMQIJZNTPcjs.tokenFormatter.format(numeric);
632
+ return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
629
633
  } catch (e8) {
630
634
  return "\u2026";
631
635
  }
@@ -644,7 +648,7 @@ function AmountStep({
644
648
  return null;
645
649
  }
646
650
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
647
- const minDepositUsd = targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.minDepositUsd]), () => ( null));
651
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _19 => _19.minDepositUsd]), () => ( null));
648
652
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _20 => _20.maxDepositUsd]), () => ( null));
649
653
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
650
654
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -738,13 +742,13 @@ function AmountStep({
738
742
  };
739
743
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
740
744
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
741
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId);
742
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
743
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
744
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
745
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId);
746
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
747
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
748
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
745
749
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
746
750
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
747
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}), title: "Wallet deposit" }),
751
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Wallet deposit" }),
748
752
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
749
753
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
750
754
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -764,13 +768,13 @@ function AmountStep({
764
768
  " available",
765
769
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
766
770
  " (~",
767
- _chunkMQIJZNTPcjs.currencyFormatter.format(balanceUsd),
771
+ _chunkLJJCPDZOcjs.currencyFormatter.format(balanceUsd),
768
772
  ")"
769
773
  ] })
770
774
  ] }),
771
775
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
772
776
  "Min. deposit ",
773
- _chunkMQIJZNTPcjs.currencyFormatter.format(minDepositUsd)
777
+ _chunkLJJCPDZOcjs.currencyFormatter.format(minDepositUsd)
774
778
  ] })
775
779
  ] })
776
780
  ] }),
@@ -811,13 +815,13 @@ function AmountStep({
811
815
  ] }),
812
816
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
813
817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
814
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkMQIJZNTPcjs.currencyFormatter.format(balanceAfterUsd) })
818
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkLJJCPDZOcjs.currencyFormatter.format(balanceAfterUsd) })
815
819
  ] })
816
820
  ] }),
817
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
818
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
821
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
822
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
819
823
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
820
- _chunkMQIJZNTPcjs.Button,
824
+ _chunkLJJCPDZOcjs.Button,
821
825
  {
822
826
  onClick: handleContinue,
823
827
  fullWidth: true,
@@ -828,7 +832,7 @@ function AmountStep({
828
832
  }
829
833
  )
830
834
  ] }),
831
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
835
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
832
836
  ] });
833
837
  }
834
838
 
@@ -868,32 +872,28 @@ function ConfirmStep({
868
872
  _optionalChain([walletClient, 'optionalAccess', _25 => _25.chain, 'optionalAccess', _26 => _26.id]) && walletClient.chain.id !== asset.chainId
869
873
  );
870
874
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
871
- const targetSymbol = sameRoute ? asset.symbol : _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
872
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId);
873
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
874
- const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
875
- const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
876
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol);
877
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
878
- const formattedSendAmount = amount && !Number.isNaN(Number(amount)) ? Number(amount).toLocaleString("en-US", {
879
- minimumFractionDigits: 2,
880
- maximumFractionDigits: 6
881
- }) : "0";
882
- const formattedReceiveAmount = (() => {
883
- if (sameRoute) return formattedSendAmount;
884
- const dollarValue = Number(targetAmount);
885
- if (!Number.isFinite(dollarValue) || dollarValue <= 0)
886
- return formattedSendAmount;
887
- if (targetTokenPriceUsd !== null && targetTokenPriceUsd > 0) {
888
- const tokenAmount = dollarValue / targetTokenPriceUsd;
889
- return tokenAmount.toLocaleString("en-US", {
890
- minimumFractionDigits: 2,
891
- maximumFractionDigits: 6
892
- });
893
- }
894
- return formattedSendAmount;
875
+ const targetSymbol = sameRoute ? asset.symbol : _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
876
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId);
877
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
878
+ const sourceChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
879
+ const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
880
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol);
881
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
882
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkLJJCPDZOcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
883
+ const receiveDisplay = (() => {
884
+ if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
885
+ const usdValue = Number(targetAmount);
886
+ const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
887
+ const estimate = _chunkLJJCPDZOcjs.formatReceiveEstimate.call(void 0, {
888
+ sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
889
+ sourceSymbol: asset.symbol,
890
+ targetSymbol,
891
+ sourceAmountUsd,
892
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
893
+ });
894
+ if (estimate !== void 0) return estimate;
895
+ return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedSendAmount} ${asset.symbol}`;
895
896
  })();
896
- const receiveAmount = sameRoute ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
897
897
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _27 => _27.feeSponsored]), () => ( false));
898
898
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _28 => _28.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
899
899
  const feeDisplay = quote ? `$${quote.fees.totalUsd.toFixed(2)}` : null;
@@ -903,7 +903,7 @@ function ConfirmStep({
903
903
  hasAttemptedSwitch.current = true;
904
904
  switchChain(asset.chainId).catch((err) => {
905
905
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
906
- setError(_chunkMQIJZNTPcjs.formatUserError.call(void 0, raw));
906
+ setError(_chunkLJJCPDZOcjs.formatUserError.call(void 0, raw));
907
907
  });
908
908
  }
909
909
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -983,7 +983,7 @@ function ConfirmStep({
983
983
  const result = await executeTransfer(amountUnits);
984
984
  hash = result.txHash;
985
985
  resolvedSourceToken = result.sourceToken;
986
- } else if (_chunkMQIJZNTPcjs.isNativeAsset.call(void 0, asset)) {
986
+ } else if (_chunkLJJCPDZOcjs.isNativeAsset.call(void 0, asset)) {
987
987
  hash = await walletClient.sendTransaction({
988
988
  account,
989
989
  chain,
@@ -1004,7 +1004,7 @@ function ConfirmStep({
1004
1004
  onConfirm(hash, asset.chainId, amountUnits.toString(), resolvedSourceToken);
1005
1005
  } catch (err) {
1006
1006
  const raw = err instanceof Error ? err.message : "Transfer failed";
1007
- const message = _chunkMQIJZNTPcjs.formatUserError.call(void 0, raw);
1007
+ const message = _chunkLJJCPDZOcjs.formatUserError.call(void 0, raw);
1008
1008
  setError(message);
1009
1009
  _optionalChain([onError, 'optionalCall', _30 => _30(message, "TRANSFER_ERROR")]);
1010
1010
  } finally {
@@ -1013,7 +1013,7 @@ function ConfirmStep({
1013
1013
  };
1014
1014
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1015
1015
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1016
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}), title: "Review deposit" }),
1016
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Review deposit" }),
1017
1017
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1018
1018
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1019
1019
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1047,11 +1047,7 @@ function ConfirmStep({
1047
1047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1048
1048
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1049
1049
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1050
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
1051
- receiveAmount,
1052
- " ",
1053
- targetSymbol
1054
- ] }),
1050
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1055
1051
  targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
1056
1052
  ] })
1057
1053
  ] }),
@@ -1071,14 +1067,14 @@ function ConfirmStep({
1071
1067
  children: feeDisplay
1072
1068
  }
1073
1069
  ),
1074
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.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, _chunkMQIJZNTPcjs.InfoIcon, {}) }) })
1070
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.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, _chunkLJJCPDZOcjs.InfoIcon, {}) }) })
1075
1071
  ] })
1076
1072
  ] })
1077
1073
  ] }),
1078
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1079
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
1074
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1075
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
1080
1076
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1081
- _chunkMQIJZNTPcjs.Button,
1077
+ _chunkLJJCPDZOcjs.Button,
1082
1078
  {
1083
1079
  onClick: handleConfirm,
1084
1080
  loading: isSubmitting,
@@ -1089,7 +1085,7 @@ function ConfirmStep({
1089
1085
  }
1090
1086
  )
1091
1087
  ] }),
1092
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
1088
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
1093
1089
  ] });
1094
1090
  }
1095
1091
 
@@ -1112,9 +1108,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1112
1108
  var MAX_POLL_INTERVAL = 3e4;
1113
1109
  var BACKOFF_MULTIPLIER = 1.5;
1114
1110
  function isEventForTx(event, txHash) {
1115
- const eventTxHash = _chunkMQIJZNTPcjs.getEventTxHash.call(void 0, event);
1111
+ const eventTxHash = _chunkLJJCPDZOcjs.getEventTxHash.call(void 0, event);
1116
1112
  if (!eventTxHash) return false;
1117
- return _chunkMQIJZNTPcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1113
+ return _chunkLJJCPDZOcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1118
1114
  }
1119
1115
  function truncateHash(hash) {
1120
1116
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1164,7 +1160,7 @@ function formatBridgeFailedMessage(event) {
1164
1160
  }
1165
1161
  return "Bridge failed";
1166
1162
  }
1167
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1163
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1168
1164
  function DepositNotification({
1169
1165
  deposit,
1170
1166
  smartAccount,
@@ -1199,7 +1195,7 @@ function DepositNotification({
1199
1195
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1200
1196
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1201
1197
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1202
- const depositContextRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, {
1198
+ const depositContextRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, {
1203
1199
  amount,
1204
1200
  sourceChain,
1205
1201
  sourceToken: token,
@@ -1208,8 +1204,8 @@ function DepositNotification({
1208
1204
  targetToken,
1209
1205
  hasPostBridgeActions
1210
1206
  });
1211
- const onCompleteRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onComplete);
1212
- const onFailedRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onFailed);
1207
+ const onCompleteRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onComplete);
1208
+ const onFailedRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onFailed);
1213
1209
  const handleComplete = _react.useCallback.call(void 0,
1214
1210
  (destTxHash) => {
1215
1211
  if (completedRef.current) return;
@@ -1310,11 +1306,11 @@ function DepositNotification({
1310
1306
  status,
1311
1307
  txHash
1312
1308
  ]);
1313
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkMILJQWPTcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1314
- const destExplorerUrl = destinationTxHash ? _chunkMILJQWPTcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1309
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1310
+ const destExplorerUrl = destinationTxHash ? _chunkABVRVW3Pcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1315
1311
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1316
1312
  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.";
1317
- 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, _chunkMQIJZNTPcjs.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, _chunkMQIJZNTPcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1313
+ 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, _chunkLJJCPDZOcjs.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, _chunkLJJCPDZOcjs.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,
1318
1314
  "svg",
1319
1315
  {
1320
1316
  className: "rs-deposit-notification-spinner",
@@ -1364,7 +1360,7 @@ function DepositNotification({
1364
1360
  className: "rs-deposit-notification-close",
1365
1361
  onClick: () => onDismiss(deposit.id),
1366
1362
  "aria-label": "Dismiss",
1367
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CloseIcon, {})
1363
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {})
1368
1364
  }
1369
1365
  )
1370
1366
  ] }),
@@ -1380,7 +1376,7 @@ function DepositNotification({
1380
1376
  "aria-expanded": expanded,
1381
1377
  children: [
1382
1378
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1383
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1379
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1384
1380
  ]
1385
1381
  }
1386
1382
  ),
@@ -1469,7 +1465,7 @@ function asString(value) {
1469
1465
  function resolveSolanaTokenMeta(token) {
1470
1466
  if (!token) return {};
1471
1467
  const normalized = token.toLowerCase();
1472
- const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
1468
+ const matched = _chunkABVRVW3Pcjs.SOLANA_TOKENS.find(
1473
1469
  (entry) => entry.mint.toLowerCase() === normalized
1474
1470
  );
1475
1471
  if (matched) {
@@ -1512,7 +1508,7 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1512
1508
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1513
1509
  }
1514
1510
  function computeTokensForChain(chainId, allowedTokenSet) {
1515
- const all = chainId === "solana" ? _chunkMILJQWPTcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain.call(void 0, chainId);
1511
+ const all = chainId === "solana" ? _chunkABVRVW3Pcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain.call(void 0, chainId);
1516
1512
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1517
1513
  }
1518
1514
  function pickFallbackToken(tokens, current) {
@@ -1545,7 +1541,7 @@ function DepositAddressStep({
1545
1541
  [_optionalChain([allowedRoutes, 'optionalAccess', _60 => _60.sourceTokens])]
1546
1542
  );
1547
1543
  const evmChainIds = _react.useMemo.call(void 0, () => {
1548
- const all = _chunkMILJQWPTcjs.getSupportedChainIds.call(void 0, );
1544
+ const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
1549
1545
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1550
1546
  }, [allowedChainSet]);
1551
1547
  const chainOptions = _react.useMemo.call(void 0, () => {
@@ -1583,7 +1579,7 @@ function DepositAddressStep({
1583
1579
  setLiquidityHelper({ kind: "idle" });
1584
1580
  return;
1585
1581
  }
1586
- const sourceTokenAddress = _chunkMILJQWPTcjs.getTokenAddress.call(void 0,
1582
+ const sourceTokenAddress = _chunkABVRVW3Pcjs.getTokenAddress.call(void 0,
1587
1583
  sourceTokenSymbol,
1588
1584
  sourceChainId
1589
1585
  );
@@ -1727,10 +1723,10 @@ function DepositAddressStep({
1727
1723
  return;
1728
1724
  }
1729
1725
  const event = status.lastEvent;
1730
- const eventTxHash = _chunkMQIJZNTPcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkMQIJZNTPcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1726
+ const eventTxHash = _chunkLJJCPDZOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkLJJCPDZOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1731
1727
  if (baselineTxHashRef.current === void 0) {
1732
1728
  baselineTxHashRef.current = eventTxHash;
1733
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkMQIJZNTPcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1729
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkLJJCPDZOcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1734
1730
  const details = getDepositEventDetails(event);
1735
1731
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1736
1732
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1739,7 +1735,7 @@ function DepositAddressStep({
1739
1735
  baselineTxHashRef.current = eventTxHash;
1740
1736
  isTrackingRef.current = true;
1741
1737
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1742
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkMILJQWPTcjs.findTokenDecimals.call(void 0,
1738
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkABVRVW3Pcjs.findTokenDecimals.call(void 0,
1743
1739
  token,
1744
1740
  typeof chainId === "number" ? chainId : void 0
1745
1741
  ) : void 0)));
@@ -1804,10 +1800,10 @@ function DepositAddressStep({
1804
1800
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1805
1801
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1806
1802
  }, []);
1807
- const qrIconSrc = _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId);
1803
+ const qrIconSrc = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId);
1808
1804
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1809
1805
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1810
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1806
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1811
1807
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1812
1808
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1813
1809
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1822,16 +1818,16 @@ function DepositAddressStep({
1822
1818
  setTokenDropdownOpen(false);
1823
1819
  },
1824
1820
  children: [
1825
- _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1821
+ _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1826
1822
  "img",
1827
1823
  {
1828
- src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId),
1824
+ src: _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId),
1829
1825
  alt: "",
1830
1826
  className: "rs-deposit-address-dropdown-icon"
1831
1827
  }
1832
1828
  ),
1833
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChainId) }),
1834
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1829
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) }),
1830
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1835
1831
  ]
1836
1832
  }
1837
1833
  ),
@@ -1842,15 +1838,15 @@ function DepositAddressStep({
1842
1838
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1843
1839
  onClick: () => handleSelectChain(chainId),
1844
1840
  children: [
1845
- _chunkMILJQWPTcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1841
+ _chunkABVRVW3Pcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1846
1842
  "img",
1847
1843
  {
1848
- src: _chunkMILJQWPTcjs.getChainIcon.call(void 0, chainId),
1844
+ src: _chunkABVRVW3Pcjs.getChainIcon.call(void 0, chainId),
1849
1845
  alt: "",
1850
1846
  className: "rs-deposit-address-dropdown-icon"
1851
1847
  }
1852
1848
  ),
1853
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkMILJQWPTcjs.getChainName.call(void 0, chainId) })
1849
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkABVRVW3Pcjs.getChainName.call(void 0, chainId) })
1854
1850
  ]
1855
1851
  },
1856
1852
  String(chainId)
@@ -1861,9 +1857,9 @@ function DepositAddressStep({
1861
1857
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1862
1858
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1863
1859
  "Min.$",
1864
- (targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _77 => _77.minDepositUsd]), () => ( 0.1))).toFixed(2),
1865
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1866
- _chunkMQIJZNTPcjs.InfoIcon,
1860
+ (targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _76 => _76.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _77 => _77.minDepositUsd]), () => ( 0.1))).toFixed(2),
1861
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1862
+ _chunkLJJCPDZOcjs.InfoIcon,
1867
1863
  {
1868
1864
  className: "rs-deposit-address-min-icon",
1869
1865
  "aria-hidden": "true"
@@ -1882,16 +1878,16 @@ function DepositAddressStep({
1882
1878
  setChainDropdownOpen(false);
1883
1879
  },
1884
1880
  children: [
1885
- _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1881
+ _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceTokenSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1886
1882
  "img",
1887
1883
  {
1888
- src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1884
+ src: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceTokenSymbol),
1889
1885
  alt: "",
1890
1886
  className: "rs-deposit-address-dropdown-icon"
1891
1887
  }
1892
1888
  ),
1893
1889
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1894
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1890
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1895
1891
  ]
1896
1892
  }
1897
1893
  ),
@@ -1905,10 +1901,10 @@ function DepositAddressStep({
1905
1901
  setTokenDropdownOpen(false);
1906
1902
  },
1907
1903
  children: [
1908
- _chunkMILJQWPTcjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1904
+ _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1909
1905
  "img",
1910
1906
  {
1911
- src: _chunkMILJQWPTcjs.getTokenIcon.call(void 0, symbol),
1907
+ src: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, symbol),
1912
1908
  alt: "",
1913
1909
  className: "rs-deposit-address-dropdown-icon"
1914
1910
  }
@@ -1942,7 +1938,7 @@ function DepositAddressStep({
1942
1938
  className: "rs-deposit-address-copy",
1943
1939
  onClick: handleCopy,
1944
1940
  children: [
1945
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CopyIcon, {}),
1941
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CopyIcon, {}),
1946
1942
  copied ? "Copied!" : "Copy address"
1947
1943
  ]
1948
1944
  }
@@ -1950,7 +1946,7 @@ function DepositAddressStep({
1950
1946
  ]
1951
1947
  }
1952
1948
  ),
1953
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
1949
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.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." }),
1954
1950
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1955
1951
  "div",
1956
1952
  {
@@ -1968,16 +1964,16 @@ function DepositAddressStep({
1968
1964
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1969
1965
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1970
1966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1971
- _chunkMQIJZNTPcjs.Tooltip,
1967
+ _chunkLJJCPDZOcjs.Tooltip,
1972
1968
  {
1973
1969
  className: "rs-price-impact-info",
1974
1970
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
1975
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.InfoIcon, { "aria-hidden": "true" })
1971
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, { "aria-hidden": "true" })
1976
1972
  }
1977
1973
  )
1978
1974
  ] }),
1979
1975
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1980
- _chunkMQIJZNTPcjs.ChevronDownIcon,
1976
+ _chunkLJJCPDZOcjs.ChevronDownIcon,
1981
1977
  {
1982
1978
  className: "rs-price-impact-chevron",
1983
1979
  "aria-hidden": "true"
@@ -1988,29 +1984,29 @@ function DepositAddressStep({
1988
1984
  ),
1989
1985
  /* @__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: [
1990
1986
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
1991
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PercentIcon, {}) }),
1987
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PercentIcon, {}) }),
1992
1988
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
1993
1989
  "Max slippage: ",
1994
1990
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
1995
1991
  ] }),
1996
1992
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1997
- _chunkMQIJZNTPcjs.Tooltip,
1993
+ _chunkLJJCPDZOcjs.Tooltip,
1998
1994
  {
1999
1995
  className: "rs-price-impact-info",
2000
1996
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2001
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.InfoIcon, { "aria-hidden": "true" })
1997
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, { "aria-hidden": "true" })
2002
1998
  }
2003
1999
  )
2004
2000
  ] }),
2005
2001
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2006
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ClockIcon, {}) }),
2002
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ClockIcon, {}) }),
2007
2003
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2008
2004
  "Processing time: ",
2009
2005
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2010
2006
  ] })
2011
2007
  ] }),
2012
2008
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2013
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PlusCircleIcon, {}) }),
2009
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PlusCircleIcon, {}) }),
2014
2010
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2015
2011
  "Max deposit:",
2016
2012
  " ",
@@ -2042,7 +2038,7 @@ function DepositAddressStep({
2042
2038
  },
2043
2039
  deposit.id
2044
2040
  )) }),
2045
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
2041
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2046
2042
  ] });
2047
2043
  }
2048
2044
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2053,12 +2049,28 @@ DepositAddressStep.displayName = "DepositAddressStep";
2053
2049
  // src/components/steps/SwappedIframeStep.tsx
2054
2050
 
2055
2051
 
2052
+ // src/components/steps/FinalisingDepositStep.tsx
2053
+
2054
+ function FinalisingDepositStep() {
2055
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-finalising", children: [
2056
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-finalising-body", children: [
2057
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-finalising-spinner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) }),
2058
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-finalising-text", children: [
2059
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-finalising-title", children: "Finalising deposit" }),
2060
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2061
+ ] })
2062
+ ] }),
2063
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2064
+ ] });
2065
+ }
2066
+ FinalisingDepositStep.displayName = "FinalisingDepositStep";
2067
+
2056
2068
  // src/components/steps/SwappedOrderTracker.tsx
2057
2069
 
2058
2070
  var STEP_LABELS = [
2059
2071
  "Payment received",
2060
2072
  null,
2061
- "Processing App deposit",
2073
+ "Processing deposit",
2062
2074
  "Deposit successful"
2063
2075
  ];
2064
2076
  function SwappedOrderTracker({
@@ -2079,7 +2091,7 @@ function SwappedOrderTracker({
2079
2091
  ];
2080
2092
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2081
2093
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2082
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.HandCoinsIcon, {}), title }),
2094
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HandCoinsIcon, {}), title }),
2083
2095
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2084
2096
  const status = stepStates[idx];
2085
2097
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2093,7 +2105,7 @@ function SwappedOrderTracker({
2093
2105
  {
2094
2106
  className: "rs-swapped-tracker-step-marker",
2095
2107
  "aria-hidden": "true",
2096
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, {}) : null
2108
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) : null
2097
2109
  }
2098
2110
  )
2099
2111
  ]
@@ -2120,7 +2132,7 @@ function SwappedOrderTracker({
2120
2132
  }
2121
2133
  )
2122
2134
  ] }),
2123
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
2135
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2124
2136
  ] });
2125
2137
  }
2126
2138
  function formatTrackerAmount(amount) {
@@ -2284,10 +2296,10 @@ function SwappedIframeStep({
2284
2296
  const status = await service.fetchLatestStatus(smartAccount);
2285
2297
  if (cancelled) return;
2286
2298
  const event = status.lastEvent;
2287
- const eventTxHash = _chunkMQIJZNTPcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkMQIJZNTPcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2299
+ const eventTxHash = _chunkLJJCPDZOcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkLJJCPDZOcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2288
2300
  if (baselineDepositTxHashRef.current === void 0) {
2289
2301
  baselineDepositTxHashRef.current = eventTxHash;
2290
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkMQIJZNTPcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2302
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkLJJCPDZOcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2291
2303
  currentDepositTxHashRef.current = eventTxHash;
2292
2304
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2293
2305
  }
@@ -2348,10 +2360,10 @@ function SwappedIframeStep({
2348
2360
  [orderState, latestEvent]
2349
2361
  );
2350
2362
  const terminalState = _react.useMemo.call(void 0, () => {
2351
- if (_chunkMQIJZNTPcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2363
+ if (_chunkLJJCPDZOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2352
2364
  return {
2353
2365
  kind: "failed",
2354
- message: _chunkMQIJZNTPcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2366
+ message: _chunkLJJCPDZOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2355
2367
  };
2356
2368
  }
2357
2369
  if (_optionalChain([orderState, 'optionalAccess', _92 => _92.status]) === "order_cancelled") {
@@ -2373,22 +2385,26 @@ function SwappedIframeStep({
2373
2385
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _94 => _94.orderCrypto]), () => ( null)),
2374
2386
  // Base-unit source amount from the deposit row/event, consistent with the
2375
2387
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2376
- amount: _nullishCoalesce(_chunkMQIJZNTPcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2388
+ amount: _nullishCoalesce(_chunkLJJCPDZOcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null))
2377
2389
  });
2378
2390
  }, [latestEvent, orderState]);
2379
2391
  _react.useEffect.call(void 0, () => {
2380
2392
  if (failedFiredRef.current || completeFiredRef.current) return;
2381
- if (!_chunkMQIJZNTPcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2393
+ if (!_chunkLJJCPDZOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2382
2394
  const txHash = currentDepositTxHashRef.current;
2383
2395
  if (!txHash) return;
2384
2396
  failedFiredRef.current = true;
2385
2397
  setPhase("tracker");
2386
2398
  _optionalChain([onSwappedFailedRef, 'access', _95 => _95.current, 'optionalCall', _96 => _96(
2387
2399
  txHash,
2388
- _chunkMQIJZNTPcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2400
+ _chunkLJJCPDZOcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2389
2401
  )]);
2390
2402
  }, [latestEvent]);
2391
2403
  if (phase === "tracker") {
2404
+ const paymentReceived = stepStates[0] === "complete";
2405
+ if (variant === "connect" && !terminalState && paymentReceived) {
2406
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FinalisingDepositStep, {});
2407
+ }
2392
2408
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2393
2409
  SwappedOrderTracker,
2394
2410
  {
@@ -2402,48 +2418,38 @@ function SwappedIframeStep({
2402
2418
  );
2403
2419
  }
2404
2420
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-fiat-onramp", "data-variant": variant, children: [
2405
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2406
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2407
- _chunkMQIJZNTPcjs.BodyHeader,
2408
- {
2409
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.HandCoinsIcon, {}),
2410
- title: "Deposit",
2411
- subtitle: "Add money to your balance"
2412
- }
2413
- ),
2414
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-iframe-wrap", children: [
2415
- loadError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-error", children: [
2416
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: loadError }),
2417
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2418
- "button",
2419
- {
2420
- type: "button",
2421
- className: "rs-fiat-onramp-retry",
2422
- onClick: () => setRetryToken((n) => n + 1),
2423
- children: "Retry"
2424
- }
2425
- )
2426
- ] }),
2427
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, {}) }),
2428
- widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2429
- "iframe",
2421
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-body rs-fiat-onramp-body", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-iframe-wrap", children: [
2422
+ loadError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fiat-onramp-error", children: [
2423
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: loadError }),
2424
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2425
+ "button",
2430
2426
  {
2431
- src: widgetUrl,
2432
- title: iframeTitle,
2433
- className: "rs-fiat-onramp-iframe",
2434
- sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",
2435
- allow: "payment; camera; microphone; clipboard-write; geolocation",
2436
- onLoad: () => setIframeLoaded(true)
2437
- },
2438
- retryToken
2427
+ type: "button",
2428
+ className: "rs-fiat-onramp-retry",
2429
+ onClick: () => setRetryToken((n) => n + 1),
2430
+ children: "Retry"
2431
+ }
2439
2432
  )
2440
- ] })
2441
- ] }),
2442
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
2433
+ ] }),
2434
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) }),
2435
+ widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2436
+ "iframe",
2437
+ {
2438
+ src: widgetUrl,
2439
+ title: iframeTitle,
2440
+ className: "rs-fiat-onramp-iframe",
2441
+ sandbox: "allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation",
2442
+ allow: "payment; camera; microphone; clipboard-write; geolocation",
2443
+ onLoad: () => setIframeLoaded(true)
2444
+ },
2445
+ retryToken
2446
+ )
2447
+ ] }) }),
2448
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2443
2449
  ] });
2444
2450
  }
2445
2451
  function deriveStepStates(swappedStatus, latestEvent) {
2446
- if (_chunkMQIJZNTPcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2452
+ if (_chunkLJJCPDZOcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2447
2453
  return ["complete", "complete", "failed", "pending"];
2448
2454
  }
2449
2455
  if (swappedStatus === "order_cancelled") {
@@ -2507,11 +2513,6 @@ function FiatOnrampStep({
2507
2513
  smartAccount,
2508
2514
  method: paymentMethod
2509
2515
  });
2510
- if (res.currencyCode !== "USDC_BASE") {
2511
- console.warn(
2512
- `[FiatOnrampStep] Expected backend to return currencyCode=USDC_BASE, got ${res.currencyCode}. Swapped purchases may not bridge as expected.`
2513
- );
2514
- }
2515
2516
  return res;
2516
2517
  }, [service, smartAccount, paymentMethod]);
2517
2518
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2580,11 +2581,6 @@ function ExchangeConnectStep({
2580
2581
  smartAccount,
2581
2582
  connection
2582
2583
  });
2583
- if (res.currencyCode !== "USDC_BASE") {
2584
- console.warn(
2585
- `[ExchangeConnectStep] Expected backend to return currencyCode=USDC_BASE, got ${res.currencyCode}. Swapped Connect pulls may not bridge as expected.`
2586
- );
2587
- }
2588
2584
  return res;
2589
2585
  }, [service, smartAccount, connection]);
2590
2586
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2613,7 +2609,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2613
2609
  function ExchangeLogo({ exchange }) {
2614
2610
  const [failed, setFailed] = _react.useState.call(void 0, false);
2615
2611
  if (!exchange.logoUrl || failed) {
2616
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BankIcon, {});
2612
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BankIcon, {});
2617
2613
  }
2618
2614
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2619
2615
  "img",
@@ -2659,14 +2655,14 @@ function ExchangeSelectStep({
2659
2655
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2660
2656
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2661
2657
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2662
- _chunkMQIJZNTPcjs.BodyHeader,
2658
+ _chunkLJJCPDZOcjs.BodyHeader,
2663
2659
  {
2664
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BankIcon, {}),
2665
- title: "Fund from Exchange",
2666
- subtitle: "Choose your exchange"
2660
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.UnplugIcon, {}),
2661
+ title: "Connect exchange",
2662
+ subtitle: "Select an exchange to connect"
2667
2663
  }
2668
2664
  ),
2669
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, {}) }),
2665
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, {}) }),
2670
2666
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2671
2667
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2672
2668
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2691,22 +2687,31 @@ function ExchangeSelectStep({
2691
2687
  }
2692
2688
  )
2693
2689
  ] }),
2694
- !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2695
- "button",
2696
- {
2697
- type: "button",
2698
- className: "rs-exchange-card",
2699
- onClick: () => onSelectExchange(exchange.connection),
2700
- "aria-label": `Select ${exchange.name}`,
2701
- children: [
2702
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-exchange-card-logo", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeLogo, { exchange }) }),
2703
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-exchange-card-name", children: exchange.name })
2704
- ]
2705
- },
2706
- exchange.connection
2707
- )) })
2690
+ !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2691
+ const brand = _chunkLJJCPDZOcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2692
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2693
+ "button",
2694
+ {
2695
+ type: "button",
2696
+ className: "rs-exchange-card",
2697
+ onClick: () => onSelectExchange(exchange.connection),
2698
+ "aria-label": `Select ${exchange.name}`,
2699
+ children: [
2700
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2701
+ "span",
2702
+ {
2703
+ className: `rs-exchange-card-logo${brand ? " rs-exchange-card-logo--brand" : ""}`,
2704
+ children: _nullishCoalesce(brand, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExchangeLogo, { exchange })))
2705
+ }
2706
+ ),
2707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-exchange-card-name", children: exchange.name })
2708
+ ]
2709
+ },
2710
+ exchange.connection
2711
+ );
2712
+ }) })
2708
2713
  ] }),
2709
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
2714
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2710
2715
  ] });
2711
2716
  }
2712
2717
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2721,22 +2726,22 @@ function DepositAddressSkeleton({
2721
2726
  const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _102 => _102.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2722
2727
  const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _103 => _103.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2723
2728
  const evmChainIds = (() => {
2724
- const all = _chunkMILJQWPTcjs.getSupportedChainIds.call(void 0, );
2729
+ const all = _chunkABVRVW3Pcjs.getSupportedChainIds.call(void 0, );
2725
2730
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2726
2731
  })();
2727
2732
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2728
2733
  const tokensForChain = (() => {
2729
- const all = _chunkMILJQWPTcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2734
+ const all = _chunkABVRVW3Pcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2730
2735
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2731
2736
  })();
2732
2737
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2733
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, defaultChainId);
2734
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, defaultChainId);
2735
- const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, defaultToken);
2738
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, defaultChainId);
2739
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, defaultChainId);
2740
+ const tokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, defaultToken);
2736
2741
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2737
2742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2738
2743
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2739
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2744
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2740
2745
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2741
2746
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2742
2747
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2750,7 +2755,7 @@ function DepositAddressSkeleton({
2750
2755
  }
2751
2756
  ),
2752
2757
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2753
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2758
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2754
2759
  ] })
2755
2760
  ] }),
2756
2761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2759,8 +2764,8 @@ function DepositAddressSkeleton({
2759
2764
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2760
2765
  "Min.$",
2761
2766
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _104 => _104.minDepositUsd]), () => ( 0.1))).toFixed(2),
2762
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2763
- _chunkMQIJZNTPcjs.InfoIcon,
2767
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2768
+ _chunkLJJCPDZOcjs.InfoIcon,
2764
2769
  {
2765
2770
  className: "rs-deposit-address-min-icon",
2766
2771
  "aria-hidden": "true"
@@ -2778,7 +2783,7 @@ function DepositAddressSkeleton({
2778
2783
  }
2779
2784
  ),
2780
2785
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2781
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2786
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2782
2787
  ] })
2783
2788
  ] })
2784
2789
  ] }),
@@ -2799,7 +2804,7 @@ function DepositAddressSkeleton({
2799
2804
  disabled: true,
2800
2805
  "aria-hidden": "true",
2801
2806
  children: [
2802
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CopyIcon, {}),
2807
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CopyIcon, {}),
2803
2808
  "Copy address"
2804
2809
  ]
2805
2810
  }
@@ -2812,16 +2817,16 @@ function DepositAddressSkeleton({
2812
2817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2813
2818
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2814
2819
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2815
- _chunkMQIJZNTPcjs.Tooltip,
2820
+ _chunkLJJCPDZOcjs.Tooltip,
2816
2821
  {
2817
2822
  className: "rs-price-impact-info",
2818
2823
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2819
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.InfoIcon, { "aria-hidden": "true" })
2824
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.InfoIcon, { "aria-hidden": "true" })
2820
2825
  }
2821
2826
  )
2822
2827
  ] }),
2823
2828
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2824
- _chunkMQIJZNTPcjs.ChevronDownIcon,
2829
+ _chunkLJJCPDZOcjs.ChevronDownIcon,
2825
2830
  {
2826
2831
  className: "rs-price-impact-chevron",
2827
2832
  "aria-hidden": "true"
@@ -2829,7 +2834,7 @@ function DepositAddressSkeleton({
2829
2834
  )
2830
2835
  ] }) })
2831
2836
  ] }),
2832
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
2837
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
2833
2838
  ] });
2834
2839
  }
2835
2840
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -2861,14 +2866,14 @@ function SolanaTokenSelectStep({
2861
2866
  setError(null);
2862
2867
  const portfolioBySymbol = {};
2863
2868
  try {
2864
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2869
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2865
2870
  solanaAddress
2866
2871
  });
2867
2872
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
2868
2873
  if (!active) return;
2869
2874
  for (const t of portfolio.tokens) {
2870
2875
  const symbol = t.symbol.toUpperCase();
2871
- if (!_chunkMILJQWPTcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
2876
+ if (!_chunkABVRVW3Pcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
2872
2877
  let parsed = 0n;
2873
2878
  try {
2874
2879
  parsed = BigInt(t.balance || "0");
@@ -2884,12 +2889,12 @@ function SolanaTokenSelectStep({
2884
2889
  };
2885
2890
  }
2886
2891
  }
2887
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2892
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2888
2893
  symbols: Object.keys(portfolioBySymbol)
2889
2894
  });
2890
2895
  } catch (err) {
2891
2896
  if (!active) return;
2892
- _chunkMQIJZNTPcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2897
+ _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2893
2898
  solanaAddress
2894
2899
  });
2895
2900
  setError(
@@ -2900,7 +2905,7 @@ function SolanaTokenSelectStep({
2900
2905
  return;
2901
2906
  }
2902
2907
  const results = [];
2903
- for (const token of _chunkMILJQWPTcjs.SOLANA_TOKENS) {
2908
+ for (const token of _chunkABVRVW3Pcjs.SOLANA_TOKENS) {
2904
2909
  const fromPortfolio = portfolioBySymbol[token.symbol];
2905
2910
  if (fromPortfolio && fromPortfolio.balance > 0n) {
2906
2911
  results.push({
@@ -2936,30 +2941,30 @@ function SolanaTokenSelectStep({
2936
2941
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2937
2942
  const numeric = Number(raw);
2938
2943
  if (!Number.isFinite(numeric)) return raw;
2939
- return _chunkMQIJZNTPcjs.tokenFormatter.format(numeric);
2944
+ return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
2940
2945
  } catch (e20) {
2941
2946
  return "--";
2942
2947
  }
2943
2948
  };
2944
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, "solana");
2945
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, "solana");
2949
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, "solana");
2950
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, "solana");
2946
2951
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
2947
2952
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2948
2953
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2949
- _chunkMQIJZNTPcjs.BodyHeader,
2954
+ _chunkLJJCPDZOcjs.BodyHeader,
2950
2955
  {
2951
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}),
2956
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
2952
2957
  title: "Your assets",
2953
2958
  subtitle: "Select source assets to transfer"
2954
2959
  }
2955
2960
  ),
2956
2961
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
2957
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, { className: "rs-text-tertiary" }),
2962
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, { className: "rs-text-tertiary" }),
2958
2963
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2959
2964
  ] }),
2960
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
2965
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
2961
2966
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
2962
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, { className: "rs-empty-icon" }),
2967
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, { className: "rs-empty-icon" }),
2963
2968
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
2964
2969
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
2965
2970
  solanaAddress.slice(0, 6),
@@ -2979,7 +2984,7 @@ function SolanaTokenSelectStep({
2979
2984
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((entry) => {
2980
2985
  const isSelected = selectedSymbol === entry.token.symbol;
2981
2986
  const tokenAmount = formatBalance(entry);
2982
- const tokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, entry.token.symbol);
2987
+ const tokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, entry.token.symbol);
2983
2988
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2984
2989
  "button",
2985
2990
  {
@@ -3008,14 +3013,14 @@ function SolanaTokenSelectStep({
3008
3013
  ] })
3009
3014
  ] })
3010
3015
  ] }),
3011
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkMQIJZNTPcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3016
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkLJJCPDZOcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3012
3017
  ]
3013
3018
  },
3014
3019
  entry.token.symbol
3015
3020
  );
3016
3021
  }) }),
3017
3022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3018
- _chunkMQIJZNTPcjs.Button,
3023
+ _chunkLJJCPDZOcjs.Button,
3019
3024
  {
3020
3025
  onClick: () => selectedEntry && onContinue(
3021
3026
  selectedEntry.token,
@@ -3028,7 +3033,7 @@ function SolanaTokenSelectStep({
3028
3033
  }
3029
3034
  )
3030
3035
  ] }),
3031
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
3036
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3032
3037
  ] });
3033
3038
  }
3034
3039
 
@@ -3060,7 +3065,7 @@ function SolanaAmountStep({
3060
3065
  const [amount, setAmount] = _react.useState.call(void 0, "");
3061
3066
  const [error, setError] = _react.useState.call(void 0, null);
3062
3067
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3063
- const isSourceStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, token.symbol);
3068
+ const isSourceStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, token.symbol);
3064
3069
  const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107(), 'access', _108 => _108.toLowerCase, 'call', _109 => _109()]) === "max";
3065
3070
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3066
3071
  if (isSourceStablecoin) return 1;
@@ -3081,7 +3086,7 @@ function SolanaAmountStep({
3081
3086
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3082
3087
  const numeric = Number(raw);
3083
3088
  if (!Number.isFinite(numeric)) return raw;
3084
- return _chunkMQIJZNTPcjs.tokenFormatter.format(numeric);
3089
+ return _chunkLJJCPDZOcjs.tokenFormatter.format(numeric);
3085
3090
  } catch (e22) {
3086
3091
  return "\u2026";
3087
3092
  }
@@ -3098,7 +3103,7 @@ function SolanaAmountStep({
3098
3103
  }
3099
3104
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3100
3105
  const spendableBalance = _react.useMemo.call(void 0, () => {
3101
- if (!_chunkMILJQWPTcjs.isNativeSol.call(void 0, token)) return balance;
3106
+ if (!_chunkABVRVW3Pcjs.isNativeSol.call(void 0, token)) return balance;
3102
3107
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3103
3108
  }, [balance, token]);
3104
3109
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3163,7 +3168,7 @@ function SolanaAmountStep({
3163
3168
  return null;
3164
3169
  }
3165
3170
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3166
- const minDepositUsd = targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkMILJQWPTcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.minDepositUsd]), () => ( null));
3171
+ const minDepositUsd = targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkABVRVW3Pcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _110 => _110.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _111 => _111.minDepositUsd]), () => ( null));
3167
3172
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _112 => _112.maxDepositUsd]), () => ( null));
3168
3173
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3169
3174
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
@@ -3174,7 +3179,7 @@ function SolanaAmountStep({
3174
3179
  const handlePresetClick = (percentage) => {
3175
3180
  const formatted = computePresetAmount(percentage);
3176
3181
  if (!formatted) return;
3177
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3182
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3178
3183
  percentage,
3179
3184
  symbol: token.symbol,
3180
3185
  formatted
@@ -3209,7 +3214,7 @@ function SolanaAmountStep({
3209
3214
  try {
3210
3215
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3211
3216
  } catch (e27) {
3212
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3217
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3213
3218
  amount,
3214
3219
  sourceAmount: sourceAmountStr,
3215
3220
  reason: "parse-units-failed"
@@ -3218,13 +3223,13 @@ function SolanaAmountStep({
3218
3223
  return;
3219
3224
  }
3220
3225
  if (amountInUnits > spendableBalance) {
3221
- const isReserveIssue = _chunkMILJQWPTcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3226
+ const isReserveIssue = _chunkABVRVW3Pcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3222
3227
  setError(
3223
3228
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3224
3229
  );
3225
3230
  return;
3226
3231
  }
3227
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3232
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3228
3233
  symbol: token.symbol,
3229
3234
  inputAmountUsd: amount,
3230
3235
  sourceAmount: sourceAmountStr,
@@ -3235,10 +3240,10 @@ function SolanaAmountStep({
3235
3240
  };
3236
3241
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
3237
3242
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3238
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, token.symbol);
3243
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3239
3244
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3240
3245
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3241
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}), title: "Wallet deposit" }),
3246
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Wallet deposit" }),
3242
3247
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3243
3248
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3244
3249
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3258,13 +3263,13 @@ function SolanaAmountStep({
3258
3263
  " available",
3259
3264
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3260
3265
  " (~",
3261
- _chunkMQIJZNTPcjs.currencyFormatter.format(computedBalanceUsd),
3266
+ _chunkLJJCPDZOcjs.currencyFormatter.format(computedBalanceUsd),
3262
3267
  ")"
3263
3268
  ] })
3264
3269
  ] }),
3265
3270
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3266
3271
  "Min. deposit ",
3267
- _chunkMQIJZNTPcjs.currencyFormatter.format(minDepositUsd)
3272
+ _chunkLJJCPDZOcjs.currencyFormatter.format(minDepositUsd)
3268
3273
  ] })
3269
3274
  ] })
3270
3275
  ] }),
@@ -3303,13 +3308,13 @@ function SolanaAmountStep({
3303
3308
  ] }),
3304
3309
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3305
3310
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3306
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkMQIJZNTPcjs.currencyFormatter.format(balanceAfterUsd) })
3311
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkLJJCPDZOcjs.currencyFormatter.format(balanceAfterUsd) })
3307
3312
  ] })
3308
3313
  ] }),
3309
- targetChain === _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3310
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
3314
+ targetChain === _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3315
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
3311
3316
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3312
- _chunkMQIJZNTPcjs.Button,
3317
+ _chunkLJJCPDZOcjs.Button,
3313
3318
  {
3314
3319
  onClick: handleContinue,
3315
3320
  fullWidth: true,
@@ -3318,7 +3323,7 @@ function SolanaAmountStep({
3318
3323
  }
3319
3324
  )
3320
3325
  ] }),
3321
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
3326
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3322
3327
  ] });
3323
3328
  }
3324
3329
 
@@ -3454,38 +3459,32 @@ function SolanaConfirmStep({
3454
3459
  }) {
3455
3460
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3456
3461
  const [error, setError] = _react.useState.call(void 0, null);
3457
- const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3458
- const isSameToken = token.symbol.toUpperCase() === targetSymbol.toUpperCase();
3459
- const sourceChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, "solana");
3460
- const targetChainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
3461
- const sourceChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, "solana");
3462
- const targetChainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChain);
3463
- const sourceTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, token.symbol);
3464
- const targetTokenIcon = _chunkMILJQWPTcjs.getTokenIcon.call(void 0, targetSymbol);
3462
+ const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3463
+ const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, "solana");
3464
+ const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
3465
+ const sourceChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, "solana");
3466
+ const targetChainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChain);
3467
+ const sourceTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, token.symbol);
3468
+ const targetTokenIcon = _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, targetSymbol);
3465
3469
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _115 => _115.feeSponsored]), () => ( false));
3466
3470
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _116 => _116.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3467
- const formattedAmount = sourceAmount && !Number.isNaN(Number(sourceAmount)) ? Number(sourceAmount).toLocaleString("en-US", {
3468
- minimumFractionDigits: 2,
3469
- maximumFractionDigits: 6
3470
- }) : "0";
3471
- const formattedReceiveAmount = (() => {
3472
- if (isSameToken) return formattedAmount;
3473
- const dollarValue = Number(targetAmount);
3474
- if (!Number.isFinite(dollarValue) || dollarValue <= 0)
3475
- return formattedAmount;
3476
- if (targetTokenPriceUsd !== null && targetTokenPriceUsd > 0) {
3477
- const tokenAmount = dollarValue / targetTokenPriceUsd;
3478
- return tokenAmount.toLocaleString("en-US", {
3479
- minimumFractionDigits: 2,
3480
- maximumFractionDigits: 6
3481
- });
3482
- }
3483
- return formattedAmount;
3471
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkLJJCPDZOcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3472
+ const receiveDisplay = (() => {
3473
+ const usdValue = Number(targetAmount);
3474
+ const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3475
+ const estimate = _chunkLJJCPDZOcjs.formatReceiveEstimate.call(void 0, {
3476
+ sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3477
+ sourceSymbol: token.symbol,
3478
+ targetSymbol,
3479
+ sourceAmountUsd,
3480
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3481
+ });
3482
+ if (estimate !== void 0) return estimate;
3483
+ return sourceAmountUsd !== void 0 ? `~$${sourceAmountUsd.toFixed(2)}` : `${formattedAmount} ${token.symbol}`;
3484
3484
  })();
3485
- const receiveAmount = isSameToken ? formattedReceiveAmount : `~${formattedReceiveAmount}`;
3486
3485
  const handleConfirm = async () => {
3487
3486
  if (!solanaProvider) {
3488
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3487
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3489
3488
  reason: "missing-provider"
3490
3489
  });
3491
3490
  setError("Solana wallet not connected");
@@ -3493,7 +3492,7 @@ function SolanaConfirmStep({
3493
3492
  }
3494
3493
  const parsedAmount = parseFloat(sourceAmount);
3495
3494
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3496
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3495
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3497
3496
  reason: "invalid-amount",
3498
3497
  sourceAmount
3499
3498
  });
@@ -3502,7 +3501,7 @@ function SolanaConfirmStep({
3502
3501
  }
3503
3502
  setError(null);
3504
3503
  setIsSubmitting(true);
3505
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3504
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3506
3505
  smartAccount,
3507
3506
  solanaAddress,
3508
3507
  solanaDepositAddress,
@@ -3512,7 +3511,7 @@ function SolanaConfirmStep({
3512
3511
  });
3513
3512
  try {
3514
3513
  const check = await service.checkAccount(smartAccount);
3515
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3514
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3516
3515
  smartAccount,
3517
3516
  isRegistered: check.isRegistered,
3518
3517
  targetChain: check.targetChain,
@@ -3525,12 +3524,12 @@ function SolanaConfirmStep({
3525
3524
  }
3526
3525
  const connection = hasConfiguredSolanaRpcUrl() ? getSolanaConnection() : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection()));
3527
3526
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3528
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3527
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3529
3528
  token: token.symbol,
3530
3529
  sourceAmount,
3531
3530
  amountUnits: amountUnits.toString()
3532
3531
  });
3533
- const transaction = _chunkMILJQWPTcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3532
+ const transaction = _chunkABVRVW3Pcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3534
3533
  connection,
3535
3534
  solanaAddress,
3536
3535
  solanaDepositAddress,
@@ -3542,7 +3541,7 @@ function SolanaConfirmStep({
3542
3541
  token.mint,
3543
3542
  amountUnits
3544
3543
  );
3545
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3544
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3546
3545
  token: token.symbol,
3547
3546
  instructionCount: transaction.instructions.length,
3548
3547
  feePayer: _optionalChain([transaction, 'access', _117 => _117.feePayer, 'optionalAccess', _118 => _118.toBase58, 'call', _119 => _119()]),
@@ -3553,15 +3552,15 @@ function SolanaConfirmStep({
3553
3552
  connection,
3554
3553
  transaction
3555
3554
  );
3556
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3555
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3557
3556
  txHash,
3558
3557
  amountUnits: amountUnits.toString()
3559
3558
  });
3560
3559
  onConfirm(txHash, amountUnits.toString());
3561
3560
  } catch (err) {
3562
3561
  const raw = err instanceof Error ? err.message : "Transfer failed";
3563
- const message = _chunkMQIJZNTPcjs.formatUserError.call(void 0, raw);
3564
- _chunkMQIJZNTPcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3562
+ const message = _chunkLJJCPDZOcjs.formatUserError.call(void 0, raw);
3563
+ _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3565
3564
  smartAccount,
3566
3565
  token: token.symbol,
3567
3566
  sourceAmount
@@ -3574,7 +3573,7 @@ function SolanaConfirmStep({
3574
3573
  };
3575
3574
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3576
3575
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3577
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}), title: "Review deposit" }),
3576
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}), title: "Review deposit" }),
3578
3577
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3579
3578
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3580
3579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3608,11 +3607,7 @@ function SolanaConfirmStep({
3608
3607
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3609
3608
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3610
3609
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3611
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
3612
- receiveAmount,
3613
- " ",
3614
- targetSymbol
3615
- ] }),
3610
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3616
3611
  targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
3617
3612
  ] })
3618
3613
  ] }),
@@ -3626,13 +3621,13 @@ function SolanaConfirmStep({
3626
3621
  children: "$0.04"
3627
3622
  }
3628
3623
  ),
3629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.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, _chunkMQIJZNTPcjs.InfoIcon, {}) }) })
3624
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.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, _chunkLJJCPDZOcjs.InfoIcon, {}) }) })
3630
3625
  ] })
3631
3626
  ] })
3632
3627
  ] }),
3633
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Callout, { variant: "error", children: error }),
3628
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Callout, { variant: "error", children: error }),
3634
3629
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3635
- _chunkMQIJZNTPcjs.Button,
3630
+ _chunkLJJCPDZOcjs.Button,
3636
3631
  {
3637
3632
  onClick: handleConfirm,
3638
3633
  loading: isSubmitting,
@@ -3643,7 +3638,7 @@ function SolanaConfirmStep({
3643
3638
  }
3644
3639
  )
3645
3640
  ] }),
3646
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
3641
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3647
3642
  ] });
3648
3643
  }
3649
3644
 
@@ -3657,21 +3652,21 @@ function DappImportAssetSelectStep({
3657
3652
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3658
3653
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3659
3654
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3660
- _chunkMQIJZNTPcjs.BodyHeader,
3655
+ _chunkLJJCPDZOcjs.BodyHeader,
3661
3656
  {
3662
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}),
3657
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
3663
3658
  title: `Transfer from ${sourceLabel}`,
3664
3659
  subtitle: "Pick the balance to import"
3665
3660
  }
3666
3661
  ),
3667
3662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3668
- const tokenAmount = asset.balance ? _chunkMQIJZNTPcjs.tokenFormatter.format(
3663
+ const tokenAmount = asset.balance ? _chunkLJJCPDZOcjs.tokenFormatter.format(
3669
3664
  Number(asset.balance) / 10 ** asset.decimals
3670
3665
  ) : "0";
3671
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkMQIJZNTPcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3672
- const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkMILJQWPTcjs.getTokenIcon.call(void 0, asset.symbol)));
3673
- const chainIcon = _chunkMILJQWPTcjs.getChainIcon.call(void 0, asset.chainId);
3674
- const badge = _chunkMILJQWPTcjs.getChainBadge.call(void 0, asset.chainId);
3666
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkLJJCPDZOcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3667
+ const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, asset.symbol)));
3668
+ const chainIcon = _chunkABVRVW3Pcjs.getChainIcon.call(void 0, asset.chainId);
3669
+ const badge = _chunkABVRVW3Pcjs.getChainBadge.call(void 0, asset.chainId);
3675
3670
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3676
3671
  "button",
3677
3672
  {
@@ -3686,7 +3681,7 @@ function DappImportAssetSelectStep({
3686
3681
  "img",
3687
3682
  {
3688
3683
  src: chainIcon,
3689
- alt: _chunkMILJQWPTcjs.getChainName.call(void 0, asset.chainId)
3684
+ alt: _chunkABVRVW3Pcjs.getChainName.call(void 0, asset.chainId)
3690
3685
  }
3691
3686
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3692
3687
  "span",
@@ -3719,7 +3714,7 @@ function DappImportAssetSelectStep({
3719
3714
  );
3720
3715
  }) })
3721
3716
  ] }),
3722
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
3717
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3723
3718
  ] });
3724
3719
  }
3725
3720
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3736,9 +3731,9 @@ function DappImportAssetSelectSkeleton({
3736
3731
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3737
3732
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3738
3733
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3739
- _chunkMQIJZNTPcjs.BodyHeader,
3734
+ _chunkLJJCPDZOcjs.BodyHeader,
3740
3735
  {
3741
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.WalletIcon, {}),
3736
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.WalletIcon, {}),
3742
3737
  title: `Transfer from ${sourceLabel}`,
3743
3738
  subtitle: "Pick the balance to import"
3744
3739
  }
@@ -3776,7 +3771,7 @@ function DappImportAssetSelectSkeleton({
3776
3771
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3777
3772
  }
3778
3773
  ) }),
3779
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
3774
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
3780
3775
  ] });
3781
3776
  }
3782
3777
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3833,7 +3828,7 @@ async function detectPolymarketWalletKind(params) {
3833
3828
  contracts: [
3834
3829
  {
3835
3830
  address: proxyWallet,
3836
- abi: _chunkAJHFNHG3cjs.SAFE_ABI,
3831
+ abi: _chunkUEKPBRBYcjs.SAFE_ABI,
3837
3832
  functionName: "isOwner",
3838
3833
  args: [eoa]
3839
3834
  },
@@ -3866,7 +3861,7 @@ async function buildSignedDepositWalletBatch(params) {
3866
3861
  if (!account || !chain) {
3867
3862
  throw new Error("Wallet not connected");
3868
3863
  }
3869
- if (chain.id !== _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID) {
3864
+ if (chain.id !== _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID) {
3870
3865
  throw new Error("Switch to Polygon to sign");
3871
3866
  }
3872
3867
  const owner = await publicClient.readContract({
@@ -3911,14 +3906,14 @@ async function buildSignedDepositWalletBatch(params) {
3911
3906
  })),
3912
3907
  signature
3913
3908
  },
3914
- sourceToken: _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS,
3909
+ sourceToken: _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS,
3915
3910
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
3916
3911
  };
3917
3912
  }
3918
3913
  function buildUsdceTransferCalls(recipient, amount) {
3919
3914
  return [
3920
3915
  {
3921
- target: _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS,
3916
+ target: _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS,
3922
3917
  value: 0n,
3923
3918
  data: _viem.encodeFunctionData.call(void 0, {
3924
3919
  abi: _viem.erc20Abi,
@@ -3931,21 +3926,21 @@ function buildUsdceTransferCalls(recipient, amount) {
3931
3926
  function buildPusdUnwrapCalls(recipient, amount) {
3932
3927
  return [
3933
3928
  {
3934
- target: _chunkR5CPOBCFcjs.POLYMARKET_PUSD_ADDRESS,
3929
+ target: _chunkNRNJAQUAcjs.POLYMARKET_PUSD_ADDRESS,
3935
3930
  value: 0n,
3936
3931
  data: _viem.encodeFunctionData.call(void 0, {
3937
3932
  abi: _viem.erc20Abi,
3938
3933
  functionName: "approve",
3939
- args: [_chunkR5CPOBCFcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
3934
+ args: [_chunkNRNJAQUAcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
3940
3935
  })
3941
3936
  },
3942
3937
  {
3943
- target: _chunkR5CPOBCFcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
3938
+ target: _chunkNRNJAQUAcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
3944
3939
  value: 0n,
3945
3940
  data: _viem.encodeFunctionData.call(void 0, {
3946
3941
  abi: COLLATERAL_OFFRAMP_ABI,
3947
3942
  functionName: "unwrap",
3948
- args: [_chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
3943
+ args: [_chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
3949
3944
  })
3950
3945
  }
3951
3946
  ];
@@ -3958,18 +3953,18 @@ var polymarketProvider = {
3958
3953
  label: "Transfer from Polymarket",
3959
3954
  sourceLabel: "Polymarket",
3960
3955
  icon: _react.createElement.call(void 0, "img", {
3961
- src: _chunkR5CPOBCFcjs.POLYMARKET_ICON_URL,
3956
+ src: _chunkNRNJAQUAcjs.POLYMARKET_ICON_URL,
3962
3957
  alt: "Polymarket",
3963
3958
  style: { width: 24, height: 24, borderRadius: 6 }
3964
3959
  }),
3965
- chainId: _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID,
3960
+ chainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
3966
3961
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
3967
- const proxyWallet = await _chunkR5CPOBCFcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
3962
+ const proxyWallet = await _chunkNRNJAQUAcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
3968
3963
  if (!proxyWallet) return null;
3969
3964
  if (_optionalChain([signal, 'optionalAccess', _121 => _121.aborted])) return null;
3970
- const polygonClient = getPublicClient2(_chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID);
3965
+ const polygonClient = getPublicClient2(_chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID);
3971
3966
  if (!polygonClient) return null;
3972
- const balances = await _chunkR5CPOBCFcjs.readPolymarketBalances.call(void 0, {
3967
+ const balances = await _chunkNRNJAQUAcjs.readPolymarketBalances.call(void 0, {
3973
3968
  publicClient: polygonClient,
3974
3969
  proxyWallet
3975
3970
  });
@@ -4027,7 +4022,7 @@ var polymarketProvider = {
4027
4022
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4028
4023
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4029
4024
  }
4030
- const result = await _chunkR5CPOBCFcjs.executePolymarketSafeTransfer.call(void 0, {
4025
+ const result = await _chunkNRNJAQUAcjs.executePolymarketSafeTransfer.call(void 0, {
4031
4026
  walletClient,
4032
4027
  publicClient,
4033
4028
  safeAddress: metadata.proxyWallet,
@@ -4046,17 +4041,17 @@ var polymarketProvider = {
4046
4041
  function buildAsset(params) {
4047
4042
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4048
4043
  const isPusd = tokenKind === "pusd";
4049
- const tokenAddress = isPusd ? _chunkR5CPOBCFcjs.POLYMARKET_PUSD_ADDRESS : _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS;
4044
+ const tokenAddress = isPusd ? _chunkNRNJAQUAcjs.POLYMARKET_PUSD_ADDRESS : _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS;
4050
4045
  const symbol = isPusd ? "pUSD" : "USDC.e";
4051
4046
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4052
4047
  const metadata = { proxyWallet, tokenKind, walletKind };
4053
4048
  return {
4054
4049
  id: `polymarket:${tokenKind}`,
4055
- chainId: _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID,
4050
+ chainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
4056
4051
  token: tokenAddress,
4057
4052
  symbol,
4058
4053
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4059
- icon: isPusd ? _chunkR5CPOBCFcjs.POLYMARKET_ICON_URL : void 0,
4054
+ icon: isPusd ? _chunkNRNJAQUAcjs.POLYMARKET_ICON_URL : void 0,
4060
4055
  decimals: 6,
4061
4056
  balance: balance.toString(),
4062
4057
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4066,8 +4061,8 @@ function buildAsset(params) {
4066
4061
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4067
4062
  // arrives at the smart account, so it's also what the orchestrator
4068
4063
  // bridges from.
4069
- depositToken: _chunkR5CPOBCFcjs.POLYMARKET_USDCE_ADDRESS,
4070
- depositChainId: _chunkR5CPOBCFcjs.POLYMARKET_POLYGON_CHAIN_ID,
4064
+ depositToken: _chunkNRNJAQUAcjs.POLYMARKET_USDCE_ADDRESS,
4065
+ depositChainId: _chunkNRNJAQUAcjs.POLYMARKET_POLYGON_CHAIN_ID,
4071
4066
  providerMetadata: metadata
4072
4067
  };
4073
4068
  }
@@ -4902,15 +4897,15 @@ var SetupError = class extends Error {
4902
4897
  }
4903
4898
  };
4904
4899
  async function resolveSessionOwner(eoaAddress) {
4905
- const local = _chunkMQIJZNTPcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4900
+ const local = _chunkLJJCPDZOcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
4906
4901
  if (local) {
4907
4902
  return {
4908
- account: _chunkMQIJZNTPcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4903
+ account: _chunkLJJCPDZOcjs.accountFromPrivateKey.call(void 0, local.privateKey),
4909
4904
  address: local.address
4910
4905
  };
4911
4906
  }
4912
- const created = _chunkMQIJZNTPcjs.createSessionOwnerKey.call(void 0, );
4913
- _chunkMQIJZNTPcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4907
+ const created = _chunkLJJCPDZOcjs.createSessionOwnerKey.call(void 0, );
4908
+ _chunkLJJCPDZOcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
4914
4909
  return { account: created.account, address: created.address };
4915
4910
  }
4916
4911
  function stableStringify(value) {
@@ -4978,7 +4973,7 @@ async function runAccountSetup(input, deps) {
4978
4973
  try {
4979
4974
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
4980
4975
  const cacheKey = computeCacheKey(input, sessionOwner.address);
4981
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4976
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
4982
4977
  owner: input.ownerAddress,
4983
4978
  sessionOwner: sessionOwner.address,
4984
4979
  hasPostBridgeActions: Boolean(_optionalChain([input, 'access', _133 => _133.postBridgeActions, 'optionalAccess', _134 => _134.length])),
@@ -4987,7 +4982,7 @@ async function runAccountSetup(input, deps) {
4987
4982
  const setup = await service.setupAccount({
4988
4983
  ownerAddress: input.ownerAddress,
4989
4984
  sessionOwnerAddress: sessionOwner.address,
4990
- targetChain: _chunkMILJQWPTcjs.targetChainToCaip2.call(void 0, input.targetChain),
4985
+ targetChain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
4991
4986
  targetToken: input.targetToken,
4992
4987
  recipient: input.recipient,
4993
4988
  postBridgeActions: input.postBridgeActions,
@@ -5026,7 +5021,7 @@ async function runAccountSetup(input, deps) {
5026
5021
  primaryType: typedData.primaryType,
5027
5022
  message: typedData.message
5028
5023
  });
5029
- const sessionDetails = _chunkMQIJZNTPcjs.buildSessionDetails.call(void 0,
5024
+ const sessionDetails = _chunkLJJCPDZOcjs.buildSessionDetails.call(void 0,
5030
5025
  setup.sessionDetailsUnsigned,
5031
5026
  signature
5032
5027
  );
@@ -5040,7 +5035,7 @@ async function runAccountSetup(input, deps) {
5040
5035
  eoaAddress: input.ownerAddress,
5041
5036
  sessionOwner: sessionOwner.address,
5042
5037
  target: {
5043
- chain: _chunkMILJQWPTcjs.targetChainToCaip2.call(void 0, input.targetChain),
5038
+ chain: _chunkABVRVW3Pcjs.targetChainToCaip2.call(void 0, input.targetChain),
5044
5039
  token: input.targetToken,
5045
5040
  ...input.recipient && { recipient: input.recipient },
5046
5041
  ..._optionalChain([input, 'access', _135 => _135.postBridgeActions, 'optionalAccess', _136 => _136.length]) && {
@@ -5062,7 +5057,7 @@ async function runAccountSetup(input, deps) {
5062
5057
  isRegistered: true
5063
5058
  };
5064
5059
  } catch (error) {
5065
- _chunkMQIJZNTPcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5060
+ _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5066
5061
  owner: input.ownerAddress
5067
5062
  });
5068
5063
  if (error instanceof SetupError) throw error;
@@ -5073,7 +5068,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5073
5068
  const now = Date.now();
5074
5069
  const existing = setupRequestDedupe.get(requestKey);
5075
5070
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5076
- _chunkMQIJZNTPcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5071
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5077
5072
  owner: input.ownerAddress,
5078
5073
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5079
5074
  });
@@ -5157,7 +5152,6 @@ function AccountPreparingSkeleton({
5157
5152
  ) })
5158
5153
  ] });
5159
5154
  }
5160
- var QR_AUTO_ADVANCE_HYDRATION_GRACE_MS = 1e3;
5161
5155
  var DAPP_IMPORT_RESOLVE_TIMEOUT_MS = 1e4;
5162
5156
  function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
5163
5157
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
@@ -5165,6 +5159,26 @@ function isSameRoute2(sourceChain, sourceToken, targetChain, targetToken) {
5165
5159
  var SWAPPED_SOURCE_CHAIN = 8453;
5166
5160
  var SWAPPED_SOURCE_TOKEN = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
5167
5161
  var SWAPPED_SOURCE_DECIMALS = 6;
5162
+ var DEFAULT_FIAT_ONRAMP_METHODS = [
5163
+ {
5164
+ method: "creditcard",
5165
+ label: "Debit/Credit card",
5166
+ sublabel: "Instant - $10,000 limit",
5167
+ icon: "card"
5168
+ },
5169
+ {
5170
+ method: "bank-transfer",
5171
+ label: "Bank transfer",
5172
+ sublabel: "Instant - $10,000 limit",
5173
+ icon: "bank"
5174
+ },
5175
+ {
5176
+ method: "apple-pay",
5177
+ label: "Apple pay",
5178
+ sublabel: "Instant - $10,000 limit",
5179
+ icon: "apple"
5180
+ }
5181
+ ];
5168
5182
  function getAddressKey(address) {
5169
5183
  return address ? address.toLowerCase() : null;
5170
5184
  }
@@ -5318,7 +5332,7 @@ function DepositFlow({
5318
5332
  postBridgeActions,
5319
5333
  outputTokenRules,
5320
5334
  rejectUnmapped,
5321
- signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
5335
+ signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
5322
5336
  sessionChainIds,
5323
5337
  forceRegister = false,
5324
5338
  enableSolana = true,
@@ -5341,16 +5355,10 @@ function DepositFlow({
5341
5355
  onError,
5342
5356
  debug
5343
5357
  }) {
5344
- const onStepChangeRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onStepChange);
5345
- const onEventRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onEvent);
5346
- const onLifecycleRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onLifecycle);
5347
- const onErrorRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onError);
5348
- const hasInitialReownSession = Boolean(
5349
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _139 => _139.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _140 => _140.address]) : _optionalChain([reownWallet, 'optionalAccess', _141 => _141.address])
5350
- );
5351
- const hasInitialWalletHydrationPending = Boolean(
5352
- dappAddress && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasInitialReownSession && !reownWallet.isReady)
5353
- );
5358
+ const onStepChangeRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onStepChange);
5359
+ const onEventRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onEvent);
5360
+ const onLifecycleRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onLifecycle);
5361
+ const onErrorRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onError);
5354
5362
  const storeApi = useDepositStoreApi();
5355
5363
  const flowSlice = useDepositStore((s) => s.flow);
5356
5364
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5360,22 +5368,20 @@ function DepositFlow({
5360
5368
  const exchangeSlice = useDepositStore((s) => s.exchange);
5361
5369
  const flowMode = flowSlice.mode;
5362
5370
  const isConnectSelectionConfirmed = flowSlice.isConnectSelectionConfirmed;
5363
- const hasNavigatedBack = flowSlice.hasNavigatedBack;
5364
5371
  const selectedWalletId = useDepositStore(selectedWalletIdSelector);
5365
5372
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
5366
- const [hasQrAutoAdvanceGraceElapsed, setHasQrAutoAdvanceGraceElapsed] = _react.useState.call(void 0, () => !hasInitialWalletHydrationPending);
5367
5373
  const portfolioAssetsRef = _react.useRef.call(void 0, []);
5368
5374
  const stableWalletSignerRef = _react.useRef.call(void 0, null);
5369
5375
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5370
5376
  const logFlow = _react.useCallback.call(void 0,
5371
5377
  (message, data) => {
5372
- _chunkMQIJZNTPcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5378
+ _chunkLJJCPDZOcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5373
5379
  },
5374
5380
  [debug]
5375
5381
  );
5376
5382
  const logFlowError = _react.useCallback.call(void 0,
5377
5383
  (message, error, data) => {
5378
- _chunkMQIJZNTPcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5384
+ _chunkLJJCPDZOcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5379
5385
  },
5380
5386
  [debug]
5381
5387
  );
@@ -5398,12 +5404,12 @@ function DepositFlow({
5398
5404
  return null;
5399
5405
  }, []);
5400
5406
  const dappSwitchChain = _react.useMemo.call(void 0, () => {
5401
- if (!_optionalChain([dappWalletClient, 'optionalAccess', _142 => _142.switchChain])) return void 0;
5407
+ if (!_optionalChain([dappWalletClient, 'optionalAccess', _139 => _139.switchChain])) return void 0;
5402
5408
  return async (chainId) => {
5403
- await _optionalChain([dappWalletClient, 'access', _143 => _143.switchChain, 'optionalCall', _144 => _144({ id: chainId })]);
5409
+ await _optionalChain([dappWalletClient, 'access', _140 => _140.switchChain, 'optionalCall', _141 => _141({ id: chainId })]);
5404
5410
  };
5405
5411
  }, [dappWalletClient]);
5406
- const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _145 => _145.account, 'optionalAccess', _146 => _146.address]), () => ( null));
5412
+ const connectedWalletAddress = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _142 => _142.account, 'optionalAccess', _143 => _143.address]), () => ( null));
5407
5413
  const walletOptions = _react.useMemo.call(void 0, () => {
5408
5414
  const options = [];
5409
5415
  const seen = /* @__PURE__ */ new Set();
@@ -5417,7 +5423,7 @@ function DepositFlow({
5417
5423
  });
5418
5424
  seen.add(id);
5419
5425
  }
5420
- if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _147 => _147.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5426
+ if (enableSolana && _optionalChain([reownWallet, 'optionalAccess', _144 => _144.isConnected]) && reownWallet.isSolana && reownWallet.solanaAddress && dappAddress) {
5421
5427
  const id = _nullishCoalesce(reownWallet.caipAddress, () => ( `solana:${reownWallet.solanaAddress}`));
5422
5428
  if (!seen.has(id)) {
5423
5429
  options.push({
@@ -5429,7 +5435,7 @@ function DepositFlow({
5429
5435
  });
5430
5436
  seen.add(id);
5431
5437
  }
5432
- } else if (_optionalChain([reownWallet, 'optionalAccess', _148 => _148.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5438
+ } else if (_optionalChain([reownWallet, 'optionalAccess', _145 => _145.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(`evm:${reownWallet.address.toLowerCase()}`)) {
5433
5439
  const id = `evm:${reownWallet.address.toLowerCase()}`;
5434
5440
  if (!seen.has(id)) {
5435
5441
  options.push({
@@ -5446,39 +5452,25 @@ function DepositFlow({
5446
5452
  }, [
5447
5453
  connectedWalletAddress,
5448
5454
  dappAddress,
5449
- _optionalChain([reownWallet, 'optionalAccess', _149 => _149.address]),
5450
- _optionalChain([reownWallet, 'optionalAccess', _150 => _150.isConnected]),
5451
- _optionalChain([reownWallet, 'optionalAccess', _151 => _151.walletClient]),
5452
- _optionalChain([reownWallet, 'optionalAccess', _152 => _152.publicClient]),
5453
- _optionalChain([reownWallet, 'optionalAccess', _153 => _153.icon]),
5455
+ _optionalChain([reownWallet, 'optionalAccess', _146 => _146.address]),
5456
+ _optionalChain([reownWallet, 'optionalAccess', _147 => _147.isConnected]),
5457
+ _optionalChain([reownWallet, 'optionalAccess', _148 => _148.walletClient]),
5458
+ _optionalChain([reownWallet, 'optionalAccess', _149 => _149.publicClient]),
5459
+ _optionalChain([reownWallet, 'optionalAccess', _150 => _150.icon]),
5454
5460
  enableSolana,
5455
- _optionalChain([reownWallet, 'optionalAccess', _154 => _154.isSolana]),
5456
- _optionalChain([reownWallet, 'optionalAccess', _155 => _155.solanaAddress]),
5457
- _optionalChain([reownWallet, 'optionalAccess', _156 => _156.caipAddress])
5461
+ _optionalChain([reownWallet, 'optionalAccess', _151 => _151.isSolana]),
5462
+ _optionalChain([reownWallet, 'optionalAccess', _152 => _152.solanaAddress]),
5463
+ _optionalChain([reownWallet, 'optionalAccess', _153 => _153.caipAddress])
5458
5464
  ]);
5459
- const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _157 => _157.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5465
+ const canAutoLock = _optionalChain([dappWalletClient, 'optionalAccess', _154 => _154.account]) && dappAddress && !reownWallet && !enableFiatOnramp && !enableExchangeConnect;
5460
5466
  const hasWalletOptions = walletOptions.length > 0;
5461
5467
  const hasReownSession = Boolean(
5462
- enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _158 => _158.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _159 => _159.address]) : _optionalChain([reownWallet, 'optionalAccess', _160 => _160.address])
5463
- );
5464
- const isWalletHydrationPending = Boolean(
5465
- dappAddress && !hasWalletOptions && (hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady)
5468
+ enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _155 => _155.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _156 => _156.address]) : _optionalChain([reownWallet, 'optionalAccess', _157 => _157.address])
5466
5469
  );
5467
5470
  const isDappImportWalletHydrating = Boolean(
5468
5471
  hasDappWalletClientProp && dappWalletClient === void 0 || reownWallet && !hasReownSession && !reownWallet.isReady
5469
5472
  );
5470
5473
  const showConnectStep = flowMode === null && !isConnectSelectionConfirmed;
5471
- _react.useEffect.call(void 0, () => {
5472
- if (!isWalletHydrationPending) {
5473
- setHasQrAutoAdvanceGraceElapsed(true);
5474
- return;
5475
- }
5476
- setHasQrAutoAdvanceGraceElapsed(false);
5477
- const timeout = window.setTimeout(() => {
5478
- setHasQrAutoAdvanceGraceElapsed(true);
5479
- }, QR_AUTO_ADVANCE_HYDRATION_GRACE_MS);
5480
- return () => window.clearTimeout(timeout);
5481
- }, [isWalletHydrationPending]);
5482
5474
  const walletSelectionKey = _react.useMemo.call(void 0, () => {
5483
5475
  if (flowMode !== "wallet" && flowMode !== "dapp-import") return null;
5484
5476
  if (canAutoLock) {
@@ -5493,9 +5485,9 @@ function DepositFlow({
5493
5485
  isConnectSelectionConfirmed,
5494
5486
  selectedWalletId
5495
5487
  ]);
5496
- const setupChainId = typeof targetChain === "number" && !_chunkMILJQWPTcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5497
- const targetSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5498
- const isTargetStablecoin = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5488
+ const setupChainId = typeof targetChain === "number" && !_chunkABVRVW3Pcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5489
+ const targetSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5490
+ const isTargetStablecoin = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5499
5491
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5500
5492
  _react.useEffect.call(void 0, () => {
5501
5493
  targetMarketPriceRef.current = null;
@@ -5521,16 +5513,16 @@ function DepositFlow({
5521
5513
  return {
5522
5514
  ownerAddress: dappAddress,
5523
5515
  walletClient: void 0,
5524
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, setupChainId))),
5516
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5525
5517
  switchChain: void 0
5526
5518
  };
5527
5519
  }
5528
5520
  if (canAutoLock) {
5529
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _161 => _161.chain, 'optionalAccess', _162 => _162.id]), () => ( setupChainId));
5521
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _158 => _158.chain, 'optionalAccess', _159 => _159.id]), () => ( setupChainId));
5530
5522
  return {
5531
5523
  ownerAddress: dappWalletClient.account.address,
5532
5524
  walletClient: dappWalletClient,
5533
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, fallbackChainId))),
5525
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, fallbackChainId))),
5534
5526
  switchChain: dappSwitchChain
5535
5527
  };
5536
5528
  }
@@ -5544,24 +5536,24 @@ function DepositFlow({
5544
5536
  return {
5545
5537
  ownerAddress: dappAddress,
5546
5538
  walletClient: void 0,
5547
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, setupChainId))),
5539
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5548
5540
  switchChain: void 0
5549
5541
  };
5550
5542
  }
5551
- if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _163 => _163.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5552
- const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _164 => _164.chain, 'optionalAccess', _165 => _165.id]), () => ( setupChainId));
5543
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _160 => _160.account]) && selectedOption.address && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5544
+ const fallbackChainId = _nullishCoalesce(_optionalChain([dappWalletClient, 'optionalAccess', _161 => _161.chain, 'optionalAccess', _162 => _162.id]), () => ( setupChainId));
5553
5545
  return {
5554
5546
  ownerAddress: dappWalletClient.account.address,
5555
5547
  walletClient: dappWalletClient,
5556
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, fallbackChainId))),
5548
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, fallbackChainId))),
5557
5549
  switchChain: dappSwitchChain
5558
5550
  };
5559
5551
  }
5560
- if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5552
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _163 => _163.address]) && selectedOption.address && reownWallet.address.toLowerCase() === selectedOption.address.toLowerCase()) {
5561
5553
  return {
5562
5554
  ownerAddress: reownWallet.address,
5563
5555
  walletClient: reownWallet.walletClient,
5564
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, setupChainId))),
5556
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5565
5557
  switchChain: reownWallet.switchChain
5566
5558
  };
5567
5559
  }
@@ -5599,7 +5591,7 @@ function DepositFlow({
5599
5591
  return {
5600
5592
  ownerAddress: dappAddress,
5601
5593
  walletClient: void 0,
5602
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkMQIJZNTPcjs.getPublicClient.call(void 0, setupChainId))),
5594
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLJJCPDZOcjs.getPublicClient.call(void 0, setupChainId))),
5603
5595
  switchChain: void 0
5604
5596
  };
5605
5597
  }
@@ -5624,37 +5616,37 @@ function DepositFlow({
5624
5616
  const selectedEvmWalletOwner = _react.useMemo.call(void 0, () => {
5625
5617
  if (!selectedWalletId) return null;
5626
5618
  const opt = walletOptions.find((o) => o.id === selectedWalletId);
5627
- if (_optionalChain([opt, 'optionalAccess', _167 => _167.kind]) === "external" && opt.address) {
5619
+ if (_optionalChain([opt, 'optionalAccess', _164 => _164.kind]) === "external" && opt.address) {
5628
5620
  return opt.address;
5629
5621
  }
5630
- if (_optionalChain([opt, 'optionalAccess', _168 => _168.kind]) === "connected" && opt.address) {
5622
+ if (_optionalChain([opt, 'optionalAccess', _165 => _165.kind]) === "connected" && opt.address) {
5631
5623
  return opt.address;
5632
5624
  }
5633
5625
  return null;
5634
5626
  }, [selectedWalletId, walletOptions]);
5635
5627
  const dappImportOwner = _react.useMemo.call(void 0, () => {
5636
5628
  if (selectedEvmWalletOwner) return selectedEvmWalletOwner;
5637
- if (_optionalChain([reownWallet, 'optionalAccess', _169 => _169.address]) && reownWallet.isConnected) {
5629
+ if (_optionalChain([reownWallet, 'optionalAccess', _166 => _166.address]) && reownWallet.isConnected) {
5638
5630
  return reownWallet.address;
5639
5631
  }
5640
5632
  if (connectedWalletAddress) return connectedWalletAddress;
5641
5633
  return null;
5642
5634
  }, [
5643
5635
  selectedEvmWalletOwner,
5644
- _optionalChain([reownWallet, 'optionalAccess', _170 => _170.address]),
5645
- _optionalChain([reownWallet, 'optionalAccess', _171 => _171.isConnected]),
5636
+ _optionalChain([reownWallet, 'optionalAccess', _167 => _167.address]),
5637
+ _optionalChain([reownWallet, 'optionalAccess', _168 => _168.isConnected]),
5646
5638
  connectedWalletAddress
5647
5639
  ]);
5648
5640
  const activeOwner = _react.useMemo.call(void 0,
5649
5641
  () => resolveOwnerForMode(flowMode, {
5650
5642
  dappAddress,
5651
- walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _172 => _172.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5643
+ walletOwner: _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _169 => _169.ownerAddress]), () => ( (canAutoLock ? connectedWalletAddress : selectedEvmWalletOwner))),
5652
5644
  dappImportOwner
5653
5645
  }),
5654
5646
  [
5655
5647
  flowMode,
5656
5648
  dappAddress,
5657
- _optionalChain([signerContext, 'optionalAccess', _173 => _173.ownerAddress]),
5649
+ _optionalChain([signerContext, 'optionalAccess', _170 => _170.ownerAddress]),
5658
5650
  canAutoLock,
5659
5651
  connectedWalletAddress,
5660
5652
  selectedEvmWalletOwner,
@@ -5683,12 +5675,12 @@ function DepositFlow({
5683
5675
  return;
5684
5676
  }
5685
5677
  lastActiveSetupLifecycleKeyRef.current = lifecycleKey;
5686
- _optionalChain([onLifecycleRef, 'access', _174 => _174.current, 'optionalCall', _175 => _175({
5678
+ _optionalChain([onLifecycleRef, 'access', _171 => _171.current, 'optionalCall', _172 => _172({
5687
5679
  type: "smart-account-changed",
5688
5680
  evm: activeEntry.smartAccount,
5689
5681
  solana: _nullishCoalesce(activeEntry.solanaDepositAddress, () => ( null))
5690
5682
  })]);
5691
- _optionalChain([onLifecycleRef, 'access', _176 => _176.current, 'optionalCall', _177 => _177({
5683
+ _optionalChain([onLifecycleRef, 'access', _173 => _173.current, 'optionalCall', _174 => _174({
5692
5684
  type: "connected",
5693
5685
  address: activeOwner,
5694
5686
  smartAccount: activeEntry.smartAccount
@@ -5738,7 +5730,7 @@ function DepositFlow({
5738
5730
  const currentBackHandler = canGoBackFromHere ? handleBack : void 0;
5739
5731
  const currentScreen = showConnectStep ? "connect" : effectiveStep.type;
5740
5732
  _react.useEffect.call(void 0, () => {
5741
- _optionalChain([onStepChangeRef, 'access', _178 => _178.current, 'optionalCall', _179 => _179(currentBackHandler, currentScreen)]);
5733
+ _optionalChain([onStepChangeRef, 'access', _175 => _175.current, 'optionalCall', _176 => _176(currentBackHandler, currentScreen)]);
5742
5734
  }, [currentBackHandler, currentScreen, onStepChangeRef]);
5743
5735
  const lastModalHeightRef = _react.useRef.call(void 0, 0);
5744
5736
  const modalContentElRef = _react.useRef.call(void 0, null);
@@ -5748,7 +5740,7 @@ function DepositFlow({
5748
5740
  modalContentElRef.current = mc;
5749
5741
  const ro = new ResizeObserver((entries) => {
5750
5742
  for (const entry of entries) {
5751
- const border = _optionalChain([entry, 'access', _180 => _180.borderBoxSize, 'optionalAccess', _181 => _181[0], 'optionalAccess', _182 => _182.blockSize]);
5743
+ const border = _optionalChain([entry, 'access', _177 => _177.borderBoxSize, 'optionalAccess', _178 => _178[0], 'optionalAccess', _179 => _179.blockSize]);
5752
5744
  lastModalHeightRef.current = typeof border === "number" ? border : entry.contentRect.height;
5753
5745
  }
5754
5746
  });
@@ -5789,23 +5781,23 @@ function DepositFlow({
5789
5781
  }
5790
5782
  lastStepOpenEventKeyRef.current = stepOpenEventKey;
5791
5783
  if (effectiveStep.type === "select-asset") {
5792
- _optionalChain([onEventRef, 'access', _183 => _183.current, 'optionalCall', _184 => _184({
5784
+ _optionalChain([onEventRef, 'access', _180 => _180.current, 'optionalCall', _181 => _181({
5793
5785
  type: "deposit_modal_connected_wallet_select_source_open",
5794
5786
  total_balance_in_external_wallet: totalBalanceUsd,
5795
5787
  pred_balance: totalBalanceUsd
5796
5788
  })]);
5797
5789
  } else if (effectiveStep.type === "deposit-address") {
5798
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
5799
- const tokenSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5800
- _optionalChain([onEventRef, 'access', _185 => _185.current, 'optionalCall', _186 => _186({
5790
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
5791
+ const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5792
+ _optionalChain([onEventRef, 'access', _182 => _182.current, 'optionalCall', _183 => _183({
5801
5793
  type: "deposit_modal_transfer_crypto_open",
5802
5794
  default_chain: chainName,
5803
5795
  default_token: tokenSymbol,
5804
5796
  pred_balance: totalBalanceUsd
5805
5797
  })]);
5806
5798
  } else if (effectiveStep.type === "amount" && stepSendToken) {
5807
- const receiveSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5808
- _optionalChain([onEventRef, 'access', _187 => _187.current, 'optionalCall', _188 => _188({
5799
+ const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5800
+ _optionalChain([onEventRef, 'access', _184 => _184.current, 'optionalCall', _185 => _185({
5809
5801
  type: "deposit_modal_connected_wallet_enter_value_open",
5810
5802
  send_token: stepSendToken,
5811
5803
  receive_token: receiveSymbol,
@@ -5838,7 +5830,7 @@ function DepositFlow({
5838
5830
  targetToken
5839
5831
  ]);
5840
5832
  _react.useEffect.call(void 0, () => {
5841
- _optionalChain([onLifecycleRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190({
5833
+ _optionalChain([onLifecycleRef, 'access', _186 => _186.current, 'optionalCall', _187 => _187({
5842
5834
  type: "balance-changed",
5843
5835
  totalUsd: totalBalanceUsd
5844
5836
  })]);
@@ -5854,7 +5846,7 @@ function DepositFlow({
5854
5846
  const handleConfirmWallet = _react.useCallback.call(void 0,
5855
5847
  (walletId) => {
5856
5848
  const selectedOption = walletOptions.find((o) => o.id === walletId);
5857
- const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _191 => _191.kind]) === "solana" ? "solana-wallet" : "wallet";
5849
+ const mode = enableSolana && _optionalChain([selectedOption, 'optionalAccess', _188 => _188.kind]) === "solana" ? "solana-wallet" : "wallet";
5858
5850
  storeApi.dispatch({
5859
5851
  type: "connect/wallet-confirmed",
5860
5852
  walletId,
@@ -5864,7 +5856,7 @@ function DepositFlow({
5864
5856
  [walletOptions, enableSolana, storeApi]
5865
5857
  );
5866
5858
  const isSolanaWalletConnected = Boolean(
5867
- enableSolana && _optionalChain([reownWallet, 'optionalAccess', _192 => _192.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _193 => _193.isSolana])
5859
+ enableSolana && _optionalChain([reownWallet, 'optionalAccess', _189 => _189.isConnected]) && _optionalChain([reownWallet, 'optionalAccess', _190 => _190.isSolana])
5868
5860
  );
5869
5861
  const dappImportsKey = dappImports ? Object.keys(dappImports).filter((k) => dappImports[k]).sort().join(",") : "";
5870
5862
  const enabledDappImportProviders = _react.useMemo.call(void 0,
@@ -5881,7 +5873,7 @@ function DepositFlow({
5881
5873
  const owner = dappImportOwner;
5882
5874
  if (owner) {
5883
5875
  const wallet = walletOptions.find(
5884
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _194 => _194.toLowerCase, 'call', _195 => _195()]) === owner.toLowerCase()
5876
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _191 => _191.toLowerCase, 'call', _192 => _192()]) === owner.toLowerCase()
5885
5877
  );
5886
5878
  if (wallet) {
5887
5879
  storeApi.dispatch({
@@ -5922,7 +5914,7 @@ function DepositFlow({
5922
5914
  eoa: dappImportOwner,
5923
5915
  getPublicClient: (chainId) => {
5924
5916
  try {
5925
- return _chunkMQIJZNTPcjs.getPublicClient.call(void 0, chainId);
5917
+ return _chunkLJJCPDZOcjs.getPublicClient.call(void 0, chainId);
5926
5918
  } catch (e29) {
5927
5919
  return null;
5928
5920
  }
@@ -5998,7 +5990,7 @@ function DepositFlow({
5998
5990
  }, [activeDappImportProviderId, enabledDappImportProviders]);
5999
5991
  const activeDappImportAvailability = _react.useMemo.call(void 0, () => {
6000
5992
  if (!activeDappImportProviderId) return null;
6001
- if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _196 => _196.toLowerCase, 'call', _197 => _197()]) !== dappImportOwner.toLowerCase()) {
5993
+ if (!dappImportOwner || _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _193 => _193.toLowerCase, 'call', _194 => _194()]) !== dappImportOwner.toLowerCase()) {
6002
5994
  return null;
6003
5995
  }
6004
5996
  const entry = dappImportAvailability[activeDappImportProviderId];
@@ -6039,7 +6031,7 @@ function DepositFlow({
6039
6031
  setup: setupSlice
6040
6032
  });
6041
6033
  const pinnableWallet = dappImportOwner ? _nullishCoalesce(walletOptions.find(
6042
- (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _198 => _198.toLowerCase, 'call', _199 => _199()]) === dappImportOwner.toLowerCase()
6034
+ (o) => _optionalChain([(_nullishCoalesce(o.address, () => ( null))), 'optionalAccess', _195 => _195.toLowerCase, 'call', _196 => _196()]) === dappImportOwner.toLowerCase()
6043
6035
  ), () => ( null)) : null;
6044
6036
  const outcome = resolveBootOutcome({
6045
6037
  status,
@@ -6081,7 +6073,7 @@ function DepositFlow({
6081
6073
  if (dappImportOwner) {
6082
6074
  const plan = bootRetryPlan({
6083
6075
  setupStatus: readSetupForOwner(snapshot.setup, dappImportOwner).status,
6084
- availabilityEntry: _optionalChain([snapshot, 'access', _200 => _200.dappImport, 'access', _201 => _201.availabilityOwner, 'optionalAccess', _202 => _202.toLowerCase, 'call', _203 => _203()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6076
+ availabilityEntry: _optionalChain([snapshot, 'access', _197 => _197.dappImport, 'access', _198 => _198.availabilityOwner, 'optionalAccess', _199 => _199.toLowerCase, 'call', _200 => _200()]) === dappImportOwner.toLowerCase() ? snapshot.dappImport.availability[providerId] : void 0
6085
6077
  });
6086
6078
  if (plan.restartSetup) {
6087
6079
  storeApi.dispatch({
@@ -6122,7 +6114,7 @@ function DepositFlow({
6122
6114
  [storeApi]
6123
6115
  );
6124
6116
  const handleNewDeposit = _react.useCallback.call(void 0, () => {
6125
- _optionalChain([onLifecycleRef, 'access', _204 => _204.current, 'optionalCall', _205 => _205({
6117
+ _optionalChain([onLifecycleRef, 'access', _201 => _201.current, 'optionalCall', _202 => _202({
6126
6118
  type: "smart-account-changed",
6127
6119
  evm: null,
6128
6120
  solana: null
@@ -6170,13 +6162,13 @@ function DepositFlow({
6170
6162
  };
6171
6163
  push(dappAddress);
6172
6164
  push(connectedWalletAddress);
6173
- push(_optionalChain([reownWallet, 'optionalAccess', _206 => _206.address]));
6165
+ push(_optionalChain([reownWallet, 'optionalAccess', _203 => _203.address]));
6174
6166
  push(dappImportOwner);
6175
6167
  return owners;
6176
6168
  }, [
6177
6169
  dappAddress,
6178
6170
  connectedWalletAddress,
6179
- _optionalChain([reownWallet, 'optionalAccess', _207 => _207.address]),
6171
+ _optionalChain([reownWallet, 'optionalAccess', _204 => _204.address]),
6180
6172
  dappImportOwner
6181
6173
  ]);
6182
6174
  _react.useEffect.call(void 0, () => {
@@ -6190,7 +6182,7 @@ function DepositFlow({
6190
6182
  try {
6191
6183
  sessionOwner = await resolveSessionOwner(owner);
6192
6184
  } catch (error) {
6193
- _chunkMQIJZNTPcjs.debugError.call(void 0,
6185
+ _chunkLJJCPDZOcjs.debugError.call(void 0,
6194
6186
  debug,
6195
6187
  "deposit-flow",
6196
6188
  "session-owner:resolve-failed",
@@ -6281,7 +6273,7 @@ function DepositFlow({
6281
6273
  sourceChain: data.sourceChain,
6282
6274
  amount: data.amount
6283
6275
  });
6284
- _optionalChain([onLifecycleRef, 'access', _208 => _208.current, 'optionalCall', _209 => _209({ type: "submitted", ...data })]);
6276
+ _optionalChain([onLifecycleRef, 'access', _205 => _205.current, 'optionalCall', _206 => _206({ type: "submitted", ...data })]);
6285
6277
  },
6286
6278
  [logFlow, onLifecycleRef]
6287
6279
  );
@@ -6300,8 +6292,8 @@ function DepositFlow({
6300
6292
  );
6301
6293
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6302
6294
  (token, sourceAmount, inputAmountUsd) => {
6303
- const targetSym = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6304
- const isTargetStable = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSym);
6295
+ const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6296
+ const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6305
6297
  const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6306
6298
  logFlow("solana:amount:continue", {
6307
6299
  token: token.symbol,
@@ -6341,7 +6333,7 @@ function DepositFlow({
6341
6333
  sourceDecimals: tokenAtSubmit.decimals,
6342
6334
  inputAmountUsd: amountUsd
6343
6335
  });
6344
- _optionalChain([onLifecycleRef, 'access', _210 => _210.current, 'optionalCall', _211 => _211({
6336
+ _optionalChain([onLifecycleRef, 'access', _207 => _207.current, 'optionalCall', _208 => _208({
6345
6337
  type: "submitted",
6346
6338
  txHash,
6347
6339
  sourceChain: "solana",
@@ -6354,7 +6346,7 @@ function DepositFlow({
6354
6346
  );
6355
6347
  const handleAssetContinue = _react.useCallback.call(void 0,
6356
6348
  (asset) => {
6357
- _optionalChain([onEventRef, 'access', _212 => _212.current, 'optionalCall', _213 => _213({
6349
+ _optionalChain([onEventRef, 'access', _209 => _209.current, 'optionalCall', _210 => _210({
6358
6350
  type: "deposit_modal_connected_wallet_select_source_cta_click",
6359
6351
  total_balance_in_external_wallet: totalBalanceUsd,
6360
6352
  pred_balance: totalBalanceUsd,
@@ -6377,8 +6369,8 @@ function DepositFlow({
6377
6369
  activeOwner
6378
6370
  );
6379
6371
  if (entry.status !== "ready") return;
6380
- const targetSym = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6381
- const isTargetStable = _chunkMILJQWPTcjs.isStablecoinSymbol.call(void 0, targetSym);
6372
+ const targetSym = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6373
+ const isTargetStable = _chunkABVRVW3Pcjs.isStablecoinSymbol.call(void 0, targetSym);
6382
6374
  const targetTokenPriceUsd = isTargetStable ? 1 : _nullishCoalesce(getTokenPriceUsd(targetSym), () => ( targetMarketPriceRef.current));
6383
6375
  storeApi.dispatch({
6384
6376
  type: "amount/entered",
@@ -6408,8 +6400,8 @@ function DepositFlow({
6408
6400
  sourceChain: chainId,
6409
6401
  sourceToken: token,
6410
6402
  amount,
6411
- sourceSymbol: _optionalChain([asset, 'optionalAccess', _214 => _214.symbol]),
6412
- sourceDecimals: _optionalChain([asset, 'optionalAccess', _215 => _215.decimals]),
6403
+ sourceSymbol: _optionalChain([asset, 'optionalAccess', _211 => _211.symbol]),
6404
+ sourceDecimals: _optionalChain([asset, 'optionalAccess', _212 => _212.decimals]),
6413
6405
  inputAmountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0)),
6414
6406
  directTransfer: !dappImport && isSameRoute2(chainId, token, targetChain, targetToken)
6415
6407
  });
@@ -6432,7 +6424,7 @@ function DepositFlow({
6432
6424
  sourceSymbol: _nullishCoalesce(info.orderCrypto, () => ( "USDC")),
6433
6425
  sourceDecimals: SWAPPED_SOURCE_DECIMALS
6434
6426
  });
6435
- _optionalChain([onLifecycleRef, 'access', _216 => _216.current, 'optionalCall', _217 => _217({
6427
+ _optionalChain([onLifecycleRef, 'access', _213 => _213.current, 'optionalCall', _214 => _214({
6436
6428
  type: "submitted",
6437
6429
  txHash: info.txHash,
6438
6430
  sourceChain: SWAPPED_SOURCE_CHAIN,
@@ -6445,12 +6437,12 @@ function DepositFlow({
6445
6437
  const handleDepositSubmittedCallback = _react.useCallback.call(void 0,
6446
6438
  (txHash, sourceChain, amount) => {
6447
6439
  const depositAtSubmit = storeApi.getState().deposit;
6448
- _optionalChain([onLifecycleRef, 'access', _218 => _218.current, 'optionalCall', _219 => _219({
6440
+ _optionalChain([onLifecycleRef, 'access', _215 => _215.current, 'optionalCall', _216 => _216({
6449
6441
  type: "submitted",
6450
6442
  txHash,
6451
6443
  sourceChain,
6452
6444
  amount,
6453
- sourceDecimals: _optionalChain([depositAtSubmit, 'access', _220 => _220.selectedAsset, 'optionalAccess', _221 => _221.decimals]),
6445
+ sourceDecimals: _optionalChain([depositAtSubmit, 'access', _217 => _217.selectedAsset, 'optionalAccess', _218 => _218.decimals]),
6454
6446
  amountUsd: _nullishCoalesce(depositAtSubmit.inputAmountUsd, () => ( void 0))
6455
6447
  })]);
6456
6448
  },
@@ -6459,7 +6451,7 @@ function DepositFlow({
6459
6451
  const handleDepositComplete = _react.useCallback.call(void 0,
6460
6452
  (txHash, destinationTxHash, context) => {
6461
6453
  logFlow("deposit:complete", { txHash, destinationTxHash, ...context });
6462
- _optionalChain([onLifecycleRef, 'access', _222 => _222.current, 'optionalCall', _223 => _223({
6454
+ _optionalChain([onLifecycleRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220({
6463
6455
  type: "complete",
6464
6456
  txHash,
6465
6457
  destinationTxHash,
@@ -6471,14 +6463,14 @@ function DepositFlow({
6471
6463
  const handleDepositFailed = _react.useCallback.call(void 0,
6472
6464
  (txHash, error) => {
6473
6465
  logFlowError("deposit:failed", error, { txHash });
6474
- _optionalChain([onLifecycleRef, 'access', _224 => _224.current, 'optionalCall', _225 => _225({ type: "failed", txHash, error })]);
6466
+ _optionalChain([onLifecycleRef, 'access', _221 => _221.current, 'optionalCall', _222 => _222({ type: "failed", txHash, error })]);
6475
6467
  },
6476
6468
  [logFlowError, onLifecycleRef]
6477
6469
  );
6478
6470
  const handleError = _react.useCallback.call(void 0,
6479
6471
  (message, code) => {
6480
6472
  logFlowError("flow:error", message, { code });
6481
- _optionalChain([onErrorRef, 'access', _226 => _226.current, 'optionalCall', _227 => _227({ message, code })]);
6473
+ _optionalChain([onErrorRef, 'access', _223 => _223.current, 'optionalCall', _224 => _224({ message, code })]);
6482
6474
  },
6483
6475
  [logFlowError, onErrorRef]
6484
6476
  );
@@ -6520,26 +6512,6 @@ function DepositFlow({
6520
6512
  storeApi.dispatch({ type: "flow/step-set", step: "connect" });
6521
6513
  }
6522
6514
  }, [enableSolana, flowMode, storeApi]);
6523
- _react.useEffect.call(void 0, () => {
6524
- if (hasNavigatedBack || isConnectSelectionConfirmed || flowMode || enableFiatOnramp || enableExchangeConnect || initialDappImportProvider) {
6525
- return;
6526
- }
6527
- if (enableQrTransfer && !hasWalletOptions && dappAddress && !hasReownSession && !dappWalletClient && hasQrAutoAdvanceGraceElapsed) {
6528
- handleSelectTransferCrypto();
6529
- }
6530
- }, [
6531
- enableQrTransfer,
6532
- hasWalletOptions,
6533
- hasReownSession,
6534
- hasQrAutoAdvanceGraceElapsed,
6535
- isConnectSelectionConfirmed,
6536
- flowMode,
6537
- hasNavigatedBack,
6538
- dappAddress,
6539
- dappWalletClient,
6540
- initialDappImportProvider,
6541
- handleSelectTransferCrypto
6542
- ]);
6543
6515
  const walletRows = _react.useMemo.call(void 0, () => {
6544
6516
  return walletOptions.map((option) => {
6545
6517
  const ownerForRow = option.kind === "solana" ? dappAddress : _nullishCoalesce(option.address, () => ( null));
@@ -6569,7 +6541,7 @@ function DepositFlow({
6569
6541
  );
6570
6542
  if (showConnectStep) {
6571
6543
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6572
- _chunkMQIJZNTPcjs.ConnectStep,
6544
+ _chunkLJJCPDZOcjs.ConnectStep,
6573
6545
  {
6574
6546
  walletRows,
6575
6547
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -6581,8 +6553,7 @@ function DepositFlow({
6581
6553
  }
6582
6554
  handleSelectTransferCrypto();
6583
6555
  } : void 0,
6584
- onSelectPayWithCard: enableFiatOnramp && dappAddress && (!fiatOnrampMethods || fiatOnrampMethods.length === 0) ? () => handleSelectFiatMethod() : void 0,
6585
- fiatPaymentMethods: enableFiatOnramp && dappAddress ? fiatOnrampMethods : void 0,
6556
+ fiatPaymentMethods: enableFiatOnramp && dappAddress ? fiatOnrampMethods && fiatOnrampMethods.length > 0 ? fiatOnrampMethods : DEFAULT_FIAT_ONRAMP_METHODS : void 0,
6586
6557
  onSelectFiatMethod: enableFiatOnramp && dappAddress ? (method) => handleSelectFiatMethod(method) : void 0,
6587
6558
  onSelectFundFromExchange: enableExchangeConnect && dappAddress ? () => handleSelectExchange() : void 0,
6588
6559
  onRequestConnect,
@@ -6602,7 +6573,7 @@ function DepositFlow({
6602
6573
  },
6603
6574
  dappImports: connectStepDappImports,
6604
6575
  onSelectDappImport: (providerId) => {
6605
- const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _228 => _228.toLowerCase, 'call', _229 => _229()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6576
+ const availabilityEntry = dappImportOwner && _optionalChain([dappImportAvailabilityOwner, 'optionalAccess', _225 => _225.toLowerCase, 'call', _226 => _226()]) === dappImportOwner.toLowerCase() ? dappImportAvailability[providerId] : void 0;
6606
6577
  if (availabilityEntry === "error") {
6607
6578
  storeApi.dispatch({
6608
6579
  type: "dapp-import/availability-retry-requested"
@@ -6648,15 +6619,15 @@ function DepositFlow({
6648
6619
  allowedRoutes,
6649
6620
  targetChain,
6650
6621
  targetToken,
6651
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _230 => _230.length])),
6622
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _227 => _227.length])),
6652
6623
  uiConfig,
6653
6624
  onDepositSubmitted: handleDepositAddressSubmitted,
6654
6625
  onDepositComplete: handleDepositComplete,
6655
6626
  onDepositFailed: handleDepositFailed,
6656
6627
  onCopyAddress: () => {
6657
- const chainName = _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain);
6658
- const tokenSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6659
- _optionalChain([onEvent, 'optionalCall', _231 => _231({
6628
+ const chainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
6629
+ const tokenSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6630
+ _optionalChain([onEvent, 'optionalCall', _228 => _228({
6660
6631
  type: "deposit_modal_transfer_crypto_cta_click",
6661
6632
  default_chain: chainName,
6662
6633
  default_token: tokenSymbol,
@@ -6700,7 +6671,7 @@ function DepositFlow({
6700
6671
  }
6701
6672
  ),
6702
6673
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6703
- _chunkMQIJZNTPcjs.ProcessingStep,
6674
+ _chunkLJJCPDZOcjs.ProcessingStep,
6704
6675
  {
6705
6676
  smartAccount: step.smartAccount,
6706
6677
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6713,7 +6684,7 @@ function DepositFlow({
6713
6684
  sourceSymbol: step.sourceSymbol,
6714
6685
  sourceDecimals: step.sourceDecimals,
6715
6686
  amountUsd: step.inputAmountUsd,
6716
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _232 => _232.length])),
6687
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _229 => _229.length])),
6717
6688
  service,
6718
6689
  directTransfer: step.directTransfer,
6719
6690
  isSwappedOrder: true,
@@ -6767,7 +6738,7 @@ function DepositFlow({
6767
6738
  }
6768
6739
  ),
6769
6740
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6770
- _chunkMQIJZNTPcjs.ProcessingStep,
6741
+ _chunkLJJCPDZOcjs.ProcessingStep,
6771
6742
  {
6772
6743
  smartAccount: step.smartAccount,
6773
6744
  solanaDepositAddress: step.solanaDepositAddress,
@@ -6780,7 +6751,7 @@ function DepositFlow({
6780
6751
  sourceSymbol: step.sourceSymbol,
6781
6752
  sourceDecimals: step.sourceDecimals,
6782
6753
  amountUsd: step.inputAmountUsd,
6783
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _233 => _233.length])),
6754
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _230 => _230.length])),
6784
6755
  service,
6785
6756
  directTransfer: step.directTransfer,
6786
6757
  isSwappedOrder: true,
@@ -6798,8 +6769,8 @@ function DepositFlow({
6798
6769
  }
6799
6770
  if (isSolanaWalletMode) {
6800
6771
  if (!dappAddress) return null;
6801
- const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _234 => _234.solanaAddress]);
6802
- const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _235 => _235.solanaProvider]);
6772
+ const solanaAddr = _optionalChain([reownWallet, 'optionalAccess', _231 => _231.solanaAddress]);
6773
+ const solanaProvider = _optionalChain([reownWallet, 'optionalAccess', _232 => _232.solanaProvider]);
6803
6774
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6804
6775
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6805
6776
  AccountPreparingSkeleton,
@@ -6831,10 +6802,10 @@ function DepositFlow({
6831
6802
  defaultAmount: effectiveStep.inputAmountUsd,
6832
6803
  uiConfig,
6833
6804
  targetChain,
6834
- targetChainName: _chunkMILJQWPTcjs.getChainName.call(void 0, targetChain),
6835
- targetTokenSymbol: _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
6836
- targetTokenIcon: _chunkMILJQWPTcjs.getTokenIcon.call(void 0,
6837
- _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
6805
+ targetChainName: _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain),
6806
+ targetTokenSymbol: _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
6807
+ targetTokenIcon: _chunkABVRVW3Pcjs.getTokenIcon.call(void 0,
6808
+ _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
6838
6809
  ),
6839
6810
  appBalanceUsd,
6840
6811
  onContinue: handleSolanaAmountContinue,
@@ -6856,7 +6827,7 @@ function DepositFlow({
6856
6827
  targetToken,
6857
6828
  service,
6858
6829
  solanaProvider,
6859
- solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _236 => _236.solanaConnection]),
6830
+ solanaConnection: _optionalChain([reownWallet, 'optionalAccess', _233 => _233.solanaConnection]),
6860
6831
  uiConfig,
6861
6832
  onConfirm: handleSolanaConfirmed,
6862
6833
  onError: handleError,
@@ -6897,7 +6868,7 @@ function DepositFlow({
6897
6868
  ) })
6898
6869
  ] }) : null,
6899
6870
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6900
- _chunkMQIJZNTPcjs.ProcessingStep,
6871
+ _chunkLJJCPDZOcjs.ProcessingStep,
6901
6872
  {
6902
6873
  smartAccount: effectiveStep.smartAccount,
6903
6874
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -6910,7 +6881,7 @@ function DepositFlow({
6910
6881
  sourceSymbol: effectiveStep.sourceSymbol,
6911
6882
  sourceDecimals: effectiveStep.sourceDecimals,
6912
6883
  amountUsd: effectiveStep.inputAmountUsd,
6913
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _237 => _237.length])),
6884
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _234 => _234.length])),
6914
6885
  service,
6915
6886
  directTransfer: effectiveStep.directTransfer,
6916
6887
  onClose,
@@ -6933,7 +6904,7 @@ function DepositFlow({
6933
6904
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6934
6905
  DappImportAssetSelectSkeleton,
6935
6906
  {
6936
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _238 => _238.sourceLabel]), () => ( "")),
6907
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportProvider, 'optionalAccess', _235 => _235.sourceLabel]), () => ( "")),
6937
6908
  error: dappImportBootError,
6938
6909
  onRetry: handleBootRetry
6939
6910
  }
@@ -6941,16 +6912,16 @@ function DepositFlow({
6941
6912
  }
6942
6913
  );
6943
6914
  }
6944
- if (!_optionalChain([signerContext, 'optionalAccess', _239 => _239.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _240 => _240.publicClient])) {
6915
+ if (!_optionalChain([signerContext, 'optionalAccess', _236 => _236.walletClient]) || !_optionalChain([signerContext, 'optionalAccess', _237 => _237.publicClient])) {
6945
6916
  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" }) }) }) }) });
6946
6917
  }
6947
6918
  const ownerAddress = signerContext.ownerAddress;
6948
- const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _241 => _241.walletClient, 'optionalAccess', _242 => _242.chain, 'optionalAccess', _243 => _243.id]), () => ( _optionalChain([signerContext, 'access', _244 => _244.publicClient, 'access', _245 => _245.chain, 'optionalAccess', _246 => _246.id]))), () => ( setupChainId));
6919
+ const ownerChainId = _nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _238 => _238.walletClient, 'optionalAccess', _239 => _239.chain, 'optionalAccess', _240 => _240.id]), () => ( _optionalChain([signerContext, 'access', _241 => _241.publicClient, 'access', _242 => _242.chain, 'optionalAccess', _243 => _243.id]))), () => ( setupChainId));
6949
6920
  const getReadClientForChain = (chainId) => {
6950
- if (_optionalChain([signerContext, 'access', _247 => _247.publicClient, 'access', _248 => _248.chain, 'optionalAccess', _249 => _249.id]) === chainId) {
6921
+ if (_optionalChain([signerContext, 'access', _244 => _244.publicClient, 'access', _245 => _245.chain, 'optionalAccess', _246 => _246.id]) === chainId) {
6951
6922
  return signerContext.publicClient;
6952
6923
  }
6953
- return _chunkMQIJZNTPcjs.getPublicClient.call(void 0, chainId);
6924
+ return _chunkLJJCPDZOcjs.getPublicClient.call(void 0, chainId);
6954
6925
  };
6955
6926
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
6956
6927
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -6981,7 +6952,7 @@ function DepositFlow({
6981
6952
  effectiveStep.type === "dapp-import-asset-select" && activeDappImportProvider && activeDappImportAvailability && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6982
6953
  DappImportAssetSelectStep,
6983
6954
  {
6984
- sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _250 => _250.assets, 'access', _251 => _251[0], 'optionalAccess', _252 => _252.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6955
+ sourceLabel: _nullishCoalesce(_optionalChain([activeDappImportAvailability, 'access', _247 => _247.assets, 'access', _248 => _248[0], 'optionalAccess', _249 => _249.sourceLabel]), () => ( activeDappImportProvider.sourceLabel)),
6985
6956
  assets: activeDappImportAvailability.assets,
6986
6957
  onSelect: handleDappImportAssetSelected
6987
6958
  }
@@ -7007,8 +6978,8 @@ function DepositFlow({
7007
6978
  service,
7008
6979
  onContinue: handleAmountContinue,
7009
6980
  onCtaClick: (ctaName) => {
7010
- const receiveSymbol = _chunkMILJQWPTcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7011
- _optionalChain([onEvent, 'optionalCall', _253 => _253({
6981
+ const receiveSymbol = _chunkABVRVW3Pcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6982
+ _optionalChain([onEvent, 'optionalCall', _250 => _250({
7012
6983
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7013
6984
  send_token: effectiveStep.asset.symbol,
7014
6985
  receive_token: receiveSymbol,
@@ -7060,7 +7031,7 @@ function DepositFlow({
7060
7031
  }
7061
7032
  ),
7062
7033
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7063
- _chunkMQIJZNTPcjs.ProcessingStep,
7034
+ _chunkLJJCPDZOcjs.ProcessingStep,
7064
7035
  {
7065
7036
  smartAccount: effectiveStep.smartAccount,
7066
7037
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7073,7 +7044,7 @@ function DepositFlow({
7073
7044
  sourceSymbol: effectiveStep.sourceSymbol,
7074
7045
  sourceDecimals: effectiveStep.sourceDecimals,
7075
7046
  amountUsd: effectiveStep.inputAmountUsd,
7076
- hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _254 => _254.length])),
7047
+ hasPostBridgeActions: Boolean(_optionalChain([postBridgeActions, 'optionalAccess', _251 => _251.length])),
7077
7048
  service,
7078
7049
  directTransfer: effectiveStep.directTransfer,
7079
7050
  uiConfig,
@@ -7112,8 +7083,8 @@ function formatDate(iso) {
7112
7083
  function resolveChainId(value) {
7113
7084
  if (value === void 0 || value === null) return null;
7114
7085
  if (typeof value === "number") return value;
7115
- if (_chunkMILJQWPTcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7116
- const parsed = _chunkMILJQWPTcjs.parseEvmChainId.call(void 0, value);
7086
+ if (_chunkABVRVW3Pcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7087
+ const parsed = _chunkABVRVW3Pcjs.parseEvmChainId.call(void 0, value);
7117
7088
  if (parsed !== null) return parsed;
7118
7089
  const num = Number(value);
7119
7090
  return Number.isFinite(num) ? num : null;
@@ -7122,7 +7093,7 @@ function resolveTokenSymbol(token, chainId) {
7122
7093
  if (!token) return "";
7123
7094
  if (chainId === "solana") {
7124
7095
  const normalized = token.toLowerCase();
7125
- const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
7096
+ const matched = _chunkABVRVW3Pcjs.SOLANA_TOKENS.find(
7126
7097
  (entry) => entry.mint.toLowerCase() === normalized
7127
7098
  );
7128
7099
  if (matched) return matched.symbol;
@@ -7131,7 +7102,7 @@ function resolveTokenSymbol(token, chainId) {
7131
7102
  }
7132
7103
  }
7133
7104
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7134
- const sym = _chunkMILJQWPTcjs.getTokenSymbol.call(void 0, token, chainId);
7105
+ const sym = _chunkABVRVW3Pcjs.getTokenSymbol.call(void 0, token, chainId);
7135
7106
  if (sym !== "Token") return sym;
7136
7107
  }
7137
7108
  return shortenHash(token);
@@ -7142,7 +7113,7 @@ function formatAmount(rawAmount, token, chainId) {
7142
7113
  if (token && chainId !== null && chainId !== void 0) {
7143
7114
  if (chainId === "solana") {
7144
7115
  const normalized = token.toLowerCase();
7145
- const matched = _chunkMILJQWPTcjs.SOLANA_TOKENS.find(
7116
+ const matched = _chunkABVRVW3Pcjs.SOLANA_TOKENS.find(
7146
7117
  (entry) => entry.mint.toLowerCase() === normalized
7147
7118
  );
7148
7119
  if (matched) {
@@ -7151,7 +7122,7 @@ function formatAmount(rawAmount, token, chainId) {
7151
7122
  decimals = 9;
7152
7123
  }
7153
7124
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7154
- decimals = _chunkMILJQWPTcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
7125
+ decimals = _chunkABVRVW3Pcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
7155
7126
  }
7156
7127
  }
7157
7128
  try {
@@ -7169,7 +7140,7 @@ function formatAmount(rawAmount, token, chainId) {
7169
7140
  }
7170
7141
  function getTxExplorerUrl(txHash, chainId) {
7171
7142
  if (!chainId) return null;
7172
- const base2 = _chunkMILJQWPTcjs.getExplorerUrl.call(void 0, chainId);
7143
+ const base2 = _chunkABVRVW3Pcjs.getExplorerUrl.call(void 0, chainId);
7173
7144
  if (!base2) return null;
7174
7145
  return `${base2}/tx/${txHash}`;
7175
7146
  }
@@ -7212,7 +7183,7 @@ function DepositHistoryPanel({
7212
7183
  );
7213
7184
  const visibleDeposits = _react.useMemo.call(void 0, () => {
7214
7185
  const sourceHashes = new Set(
7215
- deposits.map((d) => _optionalChain([d, 'access', _255 => _255.sourceTxHash, 'optionalAccess', _256 => _256.toLowerCase, 'call', _257 => _257()])).filter((h) => Boolean(h))
7186
+ deposits.map((d) => _optionalChain([d, 'access', _252 => _252.sourceTxHash, 'optionalAccess', _253 => _253.toLowerCase, 'call', _254 => _254()])).filter((h) => Boolean(h))
7216
7187
  );
7217
7188
  return deposits.filter(
7218
7189
  (d) => !(d.txHash && sourceHashes.has(d.txHash.toLowerCase()))
@@ -7234,7 +7205,7 @@ function DepositHistoryPanel({
7234
7205
  className: "rs-modal-header-back",
7235
7206
  "aria-label": "Back",
7236
7207
  onClick: onClose,
7237
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronLeftIcon, {})
7208
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronLeftIcon, {})
7238
7209
  }
7239
7210
  ) }),
7240
7211
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7244,29 +7215,29 @@ function DepositHistoryPanel({
7244
7215
  className: "rs-modal-close",
7245
7216
  "aria-label": "Close",
7246
7217
  onClick: onCloseModal,
7247
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CloseIcon, {})
7218
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {})
7248
7219
  }
7249
7220
  ) })
7250
7221
  ] }),
7251
7222
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7252
7223
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7253
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.HistoryIcon, {}), title: "History" }),
7224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {}), title: "History" }),
7254
7225
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7255
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.HistoryIcon, {}) }),
7226
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {}) }),
7256
7227
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7257
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.Spinner, { className: "rs-spinner--sm" }),
7228
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.Spinner, { className: "rs-spinner--sm" }),
7258
7229
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7259
7230
  ] })
7260
7231
  ] }),
7261
7232
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7262
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.AlertTriangleIcon, {}) }),
7233
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.AlertTriangleIcon, {}) }),
7263
7234
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7264
7235
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7265
7236
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7266
7237
  ] })
7267
7238
  ] }),
7268
7239
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7269
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.HistoryIcon, {}) }),
7240
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {}) }),
7270
7241
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7271
7242
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7272
7243
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7286,7 +7257,7 @@ function DepositHistoryPanel({
7286
7257
  )
7287
7258
  ] })
7288
7259
  ] }),
7289
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.PoweredBy, {})
7260
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.PoweredBy, {})
7290
7261
  ] })
7291
7262
  ]
7292
7263
  }
@@ -7297,12 +7268,12 @@ function HistoryCard({ deposit }) {
7297
7268
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7298
7269
  const sourceChainId = resolveChainId(deposit.chain);
7299
7270
  const targetChainId = resolveChainId(deposit.targetChain);
7300
- const sourceChainName = sourceChainId ? _chunkMILJQWPTcjs.getChainName.call(void 0, sourceChainId) : null;
7301
- const targetChainName = targetChainId ? _chunkMILJQWPTcjs.getChainName.call(void 0, targetChainId) : null;
7302
- const sourceChainIcon = sourceChainId ? _chunkMILJQWPTcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7303
- const targetChainIcon = targetChainId ? _chunkMILJQWPTcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7271
+ const sourceChainName = sourceChainId ? _chunkABVRVW3Pcjs.getChainName.call(void 0, sourceChainId) : null;
7272
+ const targetChainName = targetChainId ? _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChainId) : null;
7273
+ const sourceChainIcon = sourceChainId ? _chunkABVRVW3Pcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7274
+ const targetChainIcon = targetChainId ? _chunkABVRVW3Pcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7304
7275
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7305
- const sourceTokenIcon = sourceSymbol ? _chunkMILJQWPTcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7276
+ const sourceTokenIcon = sourceSymbol ? _chunkABVRVW3Pcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7306
7277
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7307
7278
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
7308
7279
  const displayAmount = formattedAmount ? sourceSymbol && /^USD/.test(sourceSymbol) ? `$${Number(formattedAmount).toLocaleString("en-US", {
@@ -7361,7 +7332,7 @@ function HistoryCard({ deposit }) {
7361
7332
  onClick: (e) => e.stopPropagation(),
7362
7333
  children: [
7363
7334
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7364
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ArrowUpRightIcon, {})
7335
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ArrowUpRightIcon, {})
7365
7336
  ]
7366
7337
  }
7367
7338
  )
@@ -7376,7 +7347,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7376
7347
  // src/DepositModal.tsx
7377
7348
 
7378
7349
  var ReownDepositInner = _react.lazy.call(void 0,
7379
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-MECHBE6P.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7350
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-FMAPWBQM.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7380
7351
  );
7381
7352
  function sortByCreatedAtDesc(items) {
7382
7353
  return [...items].sort((a, b) => {
@@ -7425,9 +7396,9 @@ function DepositModalInner({
7425
7396
  defaultAmount,
7426
7397
  recipient,
7427
7398
  appBalanceUsd,
7428
- backendUrl = _chunkMILJQWPTcjs.DEFAULT_BACKEND_URL,
7399
+ backendUrl = _chunkABVRVW3Pcjs.DEFAULT_BACKEND_URL,
7429
7400
  solanaRpcUrl,
7430
- signerAddress = _chunkMILJQWPTcjs.DEFAULT_SIGNER_ADDRESS,
7401
+ signerAddress = _chunkABVRVW3Pcjs.DEFAULT_SIGNER_ADDRESS,
7431
7402
  sessionChainIds,
7432
7403
  forceRegister = false,
7433
7404
  enableSolana = true,
@@ -7455,12 +7426,12 @@ function DepositModalInner({
7455
7426
  debug
7456
7427
  }) {
7457
7428
  const modalRef = _react.useRef.call(void 0, null);
7458
- const onReadyRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onReady);
7429
+ const onReadyRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onReady);
7459
7430
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7460
7431
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
7461
7432
  void 0
7462
7433
  );
7463
- const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _258 => _258.showHistoryButton]), () => ( false));
7434
+ const showHistoryButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _255 => _255.showHistoryButton]), () => ( false));
7464
7435
  const historyButtonVisible = showHistoryButton && (currentScreen === "select-asset" || currentScreen === "deposit-address");
7465
7436
  const [historyOpen, setHistoryOpen] = _react.useState.call(void 0, false);
7466
7437
  const [historyDeposits, setHistoryDeposits] = _react.useState.call(void 0, []);
@@ -7471,22 +7442,22 @@ function DepositModalInner({
7471
7442
  const cursorRef = _react.useRef.call(void 0, null);
7472
7443
  const historyStaleRef = _react.useRef.call(void 0, false);
7473
7444
  const historyLoadedRef = _react.useRef.call(void 0, false);
7474
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkMILJQWPTcjs.getChainId.call(void 0, targetChainProp);
7475
- const sourceChain = sourceChainProp ? _chunkMILJQWPTcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7445
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkABVRVW3Pcjs.getChainId.call(void 0, targetChainProp);
7446
+ const sourceChain = sourceChainProp ? _chunkABVRVW3Pcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7476
7447
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7477
- const onErrorRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onError);
7448
+ const onErrorRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onError);
7478
7449
  _react.useEffect.call(void 0, () => {
7479
- if (targetChain !== _chunkMILJQWPTcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7450
+ if (targetChain !== _chunkABVRVW3Pcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7480
7451
  setRecipientIsContract(false);
7481
7452
  return;
7482
7453
  }
7483
7454
  let cancelled = false;
7484
- _chunkMQIJZNTPcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7455
+ _chunkLJJCPDZOcjs.getHyperEvmReadClient.call(void 0, ).getCode({ address: recipient }).then((code) => {
7485
7456
  if (cancelled) return;
7486
- const isContract = _chunkMILJQWPTcjs.isContractBytecode.call(void 0, code);
7457
+ const isContract = _chunkABVRVW3Pcjs.isContractBytecode.call(void 0, code);
7487
7458
  setRecipientIsContract(isContract);
7488
7459
  if (isContract) {
7489
- _optionalChain([onErrorRef, 'access', _259 => _259.current, 'optionalCall', _260 => _260({
7460
+ _optionalChain([onErrorRef, 'access', _256 => _256.current, 'optionalCall', _257 => _257({
7490
7461
  message: "HyperCore deposits require an EOA recipient; the configured recipient is a smart contract.",
7491
7462
  code: "HYPERCORE_RECIPIENT_NOT_EOA"
7492
7463
  })]);
@@ -7499,7 +7470,7 @@ function DepositModalInner({
7499
7470
  };
7500
7471
  }, [targetChain, recipient, onErrorRef]);
7501
7472
  const service = _react.useMemo.call(void 0,
7502
- () => _chunkMQIJZNTPcjs.createDepositService.call(void 0, backendUrl, {
7473
+ () => _chunkLJJCPDZOcjs.createDepositService.call(void 0, backendUrl, {
7503
7474
  debug,
7504
7475
  debugScope: "service:deposit"
7505
7476
  }),
@@ -7515,7 +7486,7 @@ function DepositModalInner({
7515
7486
  }, [store, targetChain, targetToken]);
7516
7487
  _react.useEffect.call(void 0, () => {
7517
7488
  if (isOpen && modalRef.current) {
7518
- _chunkMQIJZNTPcjs.applyTheme.call(void 0, modalRef.current, theme);
7489
+ _chunkLJJCPDZOcjs.applyTheme.call(void 0, modalRef.current, theme);
7519
7490
  }
7520
7491
  }, [isOpen, theme]);
7521
7492
  _react.useEffect.call(void 0, () => {
@@ -7523,7 +7494,7 @@ function DepositModalInner({
7523
7494
  }, [solanaRpcUrl]);
7524
7495
  _react.useEffect.call(void 0, () => {
7525
7496
  if (isOpen) {
7526
- _optionalChain([onReadyRef, 'access', _261 => _261.current, 'optionalCall', _262 => _262()]);
7497
+ _optionalChain([onReadyRef, 'access', _258 => _258.current, 'optionalCall', _259 => _259()]);
7527
7498
  }
7528
7499
  }, [isOpen, onReadyRef]);
7529
7500
  const handleStepChange = _react.useCallback.call(void 0,
@@ -7599,10 +7570,10 @@ function DepositModalInner({
7599
7570
  fetchHistory("initial");
7600
7571
  }
7601
7572
  }, [historyOpen, fetchHistory]);
7602
- const onLifecycleRef = _chunkMQIJZNTPcjs.useLatestRef.call(void 0, onLifecycle);
7573
+ const onLifecycleRef = _chunkLJJCPDZOcjs.useLatestRef.call(void 0, onLifecycle);
7603
7574
  const handleLifecycle = _react.useCallback.call(void 0,
7604
7575
  (event) => {
7605
- _optionalChain([onLifecycleRef, 'access', _263 => _263.current, 'optionalCall', _264 => _264(event)]);
7576
+ _optionalChain([onLifecycleRef, 'access', _260 => _260.current, 'optionalCall', _261 => _261(event)]);
7606
7577
  if (event.type === "smart-account-changed" && !event.evm && !event.solana) {
7607
7578
  historyStaleRef.current = true;
7608
7579
  }
@@ -7628,10 +7599,10 @@ function DepositModalInner({
7628
7599
  store.dispatch({ type: "flow/reset" });
7629
7600
  }
7630
7601
  }, [isOpen, store]);
7631
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _265 => _265.showBackButton]), () => ( true));
7602
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _262 => _262.showBackButton]), () => ( true));
7632
7603
  const canGoBack = backHandler !== void 0;
7633
7604
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7634
- _chunkMQIJZNTPcjs.Modal,
7605
+ _chunkLJJCPDZOcjs.Modal,
7635
7606
  {
7636
7607
  isOpen,
7637
7608
  onClose,
@@ -7647,7 +7618,7 @@ function DepositModalInner({
7647
7618
  className: "rs-modal-header-back",
7648
7619
  "aria-label": "Go back",
7649
7620
  onClick: backHandler,
7650
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.ChevronLeftIcon, {})
7621
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.ChevronLeftIcon, {})
7651
7622
  }
7652
7623
  ) }),
7653
7624
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -7659,7 +7630,7 @@ function DepositModalInner({
7659
7630
  "aria-label": "Deposit history",
7660
7631
  onClick: handleHistoryOpen,
7661
7632
  disabled: !recipient,
7662
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.HistoryIcon, {})
7633
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.HistoryIcon, {})
7663
7634
  }
7664
7635
  ),
7665
7636
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7669,12 +7640,12 @@ function DepositModalInner({
7669
7640
  onClick: onClose,
7670
7641
  className: "rs-modal-close",
7671
7642
  "aria-label": "Close",
7672
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.CloseIcon, {})
7643
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.CloseIcon, {})
7673
7644
  }
7674
7645
  )
7675
7646
  ] })
7676
7647
  ] }),
7677
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMQIJZNTPcjs.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,
7648
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLJJCPDZOcjs.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,
7678
7649
  DepositFlow,
7679
7650
  {
7680
7651
  dappWalletClient,