@rhinestone/deposit-modal 0.7.0 → 0.8.0

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 (43) hide show
  1. package/dist/{DepositModalReown-CHVDFNEX.cjs → DepositModalReown-J5YFZKFS.cjs} +9 -9
  2. package/dist/{DepositModalReown-T4RRW5FM.mjs → DepositModalReown-RZ6VSMKP.mjs} +6 -6
  3. package/dist/{WithdrawModalReown-Q6MUMZTX.mjs → WithdrawModalReown-4YUV2WWV.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-YZMZTN6E.cjs → WithdrawModalReown-B6BGY52S.cjs} +8 -8
  5. package/dist/caip-C_ZYFIGa.d.cts +77 -0
  6. package/dist/caip-C_ZYFIGa.d.ts +77 -0
  7. package/dist/{chunk-XOBLFIGV.cjs → chunk-4IOQIWDY.cjs} +4 -4
  8. package/dist/{chunk-UZENNYHS.mjs → chunk-5S5BQ2GM.mjs} +83 -53
  9. package/dist/{chunk-CLUR2J72.mjs → chunk-7JJ4EFDY.mjs} +13 -17
  10. package/dist/{chunk-UN6MEOOA.cjs → chunk-IRI34U6N.cjs} +71 -33
  11. package/dist/{chunk-KUURQOTT.cjs → chunk-JRFPKFL6.cjs} +102 -106
  12. package/dist/{chunk-J52W34Y7.mjs → chunk-LXTAAHPC.mjs} +2 -2
  13. package/dist/{chunk-HH46H6ZI.cjs → chunk-PUMTR35E.cjs} +49 -24
  14. package/dist/{chunk-OYPFPEIT.mjs → chunk-RXWJ267K.mjs} +153 -115
  15. package/dist/{chunk-CPMHRMPH.mjs → chunk-SX52FXKH.mjs} +48 -23
  16. package/dist/{chunk-K6J3RDDK.mjs → chunk-TYB6AA6D.mjs} +1 -1
  17. package/dist/{chunk-6P3WNDED.cjs → chunk-VURI4G2Z.cjs} +7 -7
  18. package/dist/{chunk-RLMXWLF4.cjs → chunk-WL7AXYQ4.cjs} +3 -3
  19. package/dist/{chunk-QSMPJQTX.cjs → chunk-XLXJW44N.cjs} +384 -354
  20. package/dist/{chunk-4JLYWRQA.mjs → chunk-YLIPI3NU.mjs} +1 -1
  21. package/dist/constants.cjs +4 -2
  22. package/dist/constants.d.cts +1 -1
  23. package/dist/constants.d.ts +1 -1
  24. package/dist/constants.mjs +5 -3
  25. package/dist/deposit.cjs +6 -6
  26. package/dist/deposit.d.cts +2 -2
  27. package/dist/deposit.d.ts +2 -2
  28. package/dist/deposit.mjs +5 -5
  29. package/dist/index.cjs +11 -7
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.mjs +12 -8
  33. package/dist/polymarket.cjs +6 -6
  34. package/dist/polymarket.mjs +3 -3
  35. package/dist/{types-6ROxwyfG.d.cts → types--LQWg_4W.d.cts} +1 -1
  36. package/dist/{types-6ROxwyfG.d.ts → types--LQWg_4W.d.ts} +1 -1
  37. package/dist/withdraw.cjs +5 -5
  38. package/dist/withdraw.d.cts +2 -2
  39. package/dist/withdraw.d.ts +2 -2
  40. package/dist/withdraw.mjs +4 -4
  41. package/package.json +1 -1
  42. package/dist/caip-CsslyHGL.d.cts +0 -62
  43. package/dist/caip-CsslyHGL.d.ts +0 -62
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkXOBLFIGVcjs = require('./chunk-XOBLFIGV.cjs');
10
+ var _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
11
11
 
12
12
 
13
13
 
@@ -68,11 +68,11 @@ var _chunkXOBLFIGVcjs = require('./chunk-XOBLFIGV.cjs');
68
68
 
69
69
 
70
70
 
71
- var _chunkUN6MEOOAcjs = require('./chunk-UN6MEOOA.cjs');
72
71
 
72
+ var _chunkIRI34U6Ncjs = require('./chunk-IRI34U6N.cjs');
73
73
 
74
- var _chunkRLMXWLF4cjs = require('./chunk-RLMXWLF4.cjs');
75
74
 
75
+ var _chunkWL7AXYQ4cjs = require('./chunk-WL7AXYQ4.cjs');
76
76
 
77
77
 
78
78
 
@@ -103,7 +103,8 @@ var _chunkRLMXWLF4cjs = require('./chunk-RLMXWLF4.cjs');
103
103
 
104
104
 
105
105
 
106
- var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
106
+
107
+ var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
107
108
 
108
109
  // src/DepositModal.tsx
109
110
 
@@ -148,12 +149,12 @@ function AssetSelectStep({
148
149
  const [error, setError] = _react.useState.call(void 0, null);
149
150
  const defaultAssetId = _react.useMemo.call(void 0, () => {
150
151
  if (!defaultSourceChain || !defaultSourceToken) return null;
151
- return _chunkUN6MEOOAcjs.getAssetId.call(void 0, {
152
+ return _chunkIRI34U6Ncjs.getAssetId.call(void 0, {
152
153
  chainId: defaultSourceChain,
153
154
  token: defaultSourceToken
154
155
  });
155
156
  }, [defaultSourceChain, defaultSourceToken]);
156
- const onTotalBalanceComputedRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
157
+ const onTotalBalanceComputedRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onTotalBalanceComputed);
157
158
  _react.useEffect.call(void 0, () => {
158
159
  let active = true;
159
160
  function emitAssetsUpdate(currentAssets) {
@@ -173,11 +174,11 @@ function AssetSelectStep({
173
174
  try {
174
175
  const portfolio = await service.fetchPortfolio(address);
175
176
  if (!active) return;
176
- const portfolioAssets = _chunkUN6MEOOAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
177
+ const portfolioAssets = _chunkIRI34U6Ncjs.portfolioToAssets.call(void 0, portfolio.tokens);
177
178
  setAssets(portfolioAssets);
178
179
  emitAssetsUpdate(portfolioAssets);
179
180
  const hasNative = portfolioAssets.some(
180
- (asset) => asset.token.toLowerCase() === _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS
181
+ (asset) => asset.token.toLowerCase() === _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS
181
182
  );
182
183
  if (!hasNative) {
183
184
  const nativeAssets = await fetchNativeAssets(
@@ -224,9 +225,9 @@ function AssetSelectStep({
224
225
  if (allowedChainSet && !allowedChainSet.has(a.chainId)) return false;
225
226
  if (allowedTokenSet) {
226
227
  if (!allowedTokenSet.has(a.symbol.toUpperCase())) return false;
227
- if (!_chunkHH46H6ZIcjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
228
+ if (!_chunkPUMTR35Ecjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
228
229
  }
229
- const isNativeToken = a.token.toLowerCase() === _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS;
230
+ const isNativeToken = a.token.toLowerCase() === _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS;
230
231
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
231
232
  return false;
232
233
  return true;
@@ -254,7 +255,7 @@ function AssetSelectStep({
254
255
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
255
256
  const numeric = Number(raw);
256
257
  if (!Number.isFinite(numeric)) return raw;
257
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
258
+ return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
258
259
  } catch (e3) {
259
260
  return asset.balance;
260
261
  }
@@ -262,20 +263,20 @@ function AssetSelectStep({
262
263
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
263
264
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
264
265
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
265
- _chunkUN6MEOOAcjs.BodyHeader,
266
+ _chunkIRI34U6Ncjs.BodyHeader,
266
267
  {
267
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
268
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
268
269
  title: "Your assets",
269
270
  subtitle: "Select source assets to transfer"
270
271
  }
271
272
  ),
272
273
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-text-tertiary" }),
274
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-text-tertiary" }),
274
275
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
275
276
  ] }),
276
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
277
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
277
278
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
278
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, { className: "rs-empty-icon" }),
279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, { className: "rs-empty-icon" }),
279
280
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
280
281
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
281
282
  address.slice(0, 6),
@@ -295,9 +296,8 @@ function AssetSelectStep({
295
296
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
296
297
  const isSelected = selectedAssetId === asset.id;
297
298
  const tokenAmount = formatBalance(asset);
298
- const badge = _chunkHH46H6ZIcjs.getChainBadge.call(void 0, asset.chainId);
299
- const tokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol);
300
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, asset.chainId);
299
+ const badge = _chunkPUMTR35Ecjs.getChainBadge.call(void 0, asset.chainId);
300
+ const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
301
301
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
302
302
  "button",
303
303
  {
@@ -308,12 +308,18 @@ function AssetSelectStep({
308
308
  children: [
309
309
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
310
310
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
311
- tokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: tokenIcon, alt: asset.symbol }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: asset.symbol.slice(0, 4) }),
311
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
312
+ _chunkIRI34U6Ncjs.TokenIcon,
313
+ {
314
+ symbol: asset.symbol,
315
+ fallback: asset.symbol.slice(0, 4)
316
+ }
317
+ ) }),
312
318
  chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
313
319
  "img",
314
320
  {
315
321
  src: chainIcon,
316
- alt: _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)
322
+ alt: _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
317
323
  }
318
324
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
319
325
  "span",
@@ -332,7 +338,7 @@ function AssetSelectStep({
332
338
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
333
339
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
334
340
  "on ",
335
- _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)
341
+ _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
336
342
  ] })
337
343
  ] }),
338
344
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -342,14 +348,14 @@ function AssetSelectStep({
342
348
  ] })
343
349
  ] })
344
350
  ] }),
345
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkUN6MEOOAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
351
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkIRI34U6Ncjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
346
352
  ]
347
353
  },
348
354
  asset.id
349
355
  );
350
356
  }) }),
351
357
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
352
- _chunkUN6MEOOAcjs.Button,
358
+ _chunkIRI34U6Ncjs.Button,
353
359
  {
354
360
  onClick: () => selectedAsset && onContinue(selectedAsset),
355
361
  disabled: !selectedAsset,
@@ -358,27 +364,27 @@ function AssetSelectStep({
358
364
  }
359
365
  )
360
366
  ] }),
361
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
367
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
362
368
  ] });
363
369
  }
364
370
  async function fetchNativeAssets(address, publicClient, existing) {
365
371
  const existingIds = new Set(existing.map((asset) => asset.id));
366
372
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
367
373
  if (!connectedChainId) return [];
368
- if (!_chunkHH46H6ZIcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
369
- const id = _chunkUN6MEOOAcjs.getAssetId.call(void 0, {
374
+ if (!_chunkPUMTR35Ecjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
375
+ const id = _chunkIRI34U6Ncjs.getAssetId.call(void 0, {
370
376
  chainId: connectedChainId,
371
- token: _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS
377
+ token: _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS
372
378
  });
373
379
  if (existingIds.has(id)) return [];
374
380
  try {
375
381
  const balance = await publicClient.getBalance({ address });
376
- const nativeSymbol = _chunkHH46H6ZIcjs.getNativeSymbol.call(void 0, connectedChainId);
382
+ const nativeSymbol = _chunkPUMTR35Ecjs.getNativeSymbol.call(void 0, connectedChainId);
377
383
  return [
378
384
  {
379
385
  id,
380
386
  chainId: connectedChainId,
381
- token: _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS,
387
+ token: _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS,
382
388
  symbol: nativeSymbol,
383
389
  name: nativeSymbol,
384
390
  decimals: 18,
@@ -539,8 +545,8 @@ function AmountStep({
539
545
  const chainMismatch = Boolean(
540
546
  _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
541
547
  );
542
- const targetSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
543
- const isSourceStablecoin = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, asset.symbol);
548
+ const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
549
+ const isSourceStablecoin = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, asset.symbol);
544
550
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
545
551
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
546
552
  return tokenPriceUsdOverride;
@@ -564,7 +570,7 @@ function AmountStep({
564
570
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
565
571
  if (!balanceTarget || !publicClient) return;
566
572
  try {
567
- const bal = _chunkUN6MEOOAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
573
+ const bal = _chunkIRI34U6Ncjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
568
574
  address: asset.token,
569
575
  abi: _viem.erc20Abi,
570
576
  functionName: "balanceOf",
@@ -585,7 +591,7 @@ function AmountStep({
585
591
  hasAttemptedSwitch.current = true;
586
592
  switchChain(asset.chainId).catch((err) => {
587
593
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
588
- setError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw));
594
+ setError(_chunkIRI34U6Ncjs.formatUserError.call(void 0, raw));
589
595
  });
590
596
  }
591
597
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -638,7 +644,7 @@ function AmountStep({
638
644
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
639
645
  const numeric = Number(raw);
640
646
  if (!Number.isFinite(numeric)) return raw;
641
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
647
+ return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
642
648
  } catch (e8) {
643
649
  return "\u2026";
644
650
  }
@@ -657,7 +663,7 @@ function AmountStep({
657
663
  return null;
658
664
  }
659
665
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
660
- const minDepositUsd = targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkHH46H6ZIcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
666
+ const minDepositUsd = targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
661
667
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
662
668
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
663
669
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -753,13 +759,11 @@ function AmountStep({
753
759
  };
754
760
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
755
761
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
756
- const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId);
757
- const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
758
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol);
759
- const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
762
+ const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId);
763
+ const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
760
764
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
761
765
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
762
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Wallet deposit" }),
766
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Wallet deposit" }),
763
767
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
764
768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
765
769
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -779,13 +783,13 @@ function AmountStep({
779
783
  " available",
780
784
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
781
785
  " (~",
782
- _chunkUN6MEOOAcjs.currencyFormatter.format(balanceUsd),
786
+ _chunkIRI34U6Ncjs.currencyFormatter.format(balanceUsd),
783
787
  ")"
784
788
  ] })
785
789
  ] }),
786
790
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
787
791
  "Min. deposit ",
788
- _chunkUN6MEOOAcjs.currencyFormatter.format(minDepositUsd)
792
+ _chunkIRI34U6Ncjs.currencyFormatter.format(minDepositUsd)
789
793
  ] })
790
794
  ] })
791
795
  ] }),
@@ -810,7 +814,7 @@ function AmountStep({
810
814
  " ",
811
815
  asset.symbol
812
816
  ] }),
813
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
817
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: asset.symbol }) })
814
818
  ] })
815
819
  ] }),
816
820
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -821,18 +825,18 @@ function AmountStep({
821
825
  " ",
822
826
  targetSymbol
823
827
  ] }),
824
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
828
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetSymbol }) })
825
829
  ] })
826
830
  ] }),
827
831
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
828
832
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
829
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkUN6MEOOAcjs.currencyFormatter.format(balanceAfterUsd) })
833
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkIRI34U6Ncjs.currencyFormatter.format(balanceAfterUsd) })
830
834
  ] })
831
835
  ] }),
832
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
833
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
836
+ targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
837
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
834
838
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
835
- _chunkUN6MEOOAcjs.Button,
839
+ _chunkIRI34U6Ncjs.Button,
836
840
  {
837
841
  onClick: handleContinue,
838
842
  fullWidth: true,
@@ -843,7 +847,7 @@ function AmountStep({
843
847
  }
844
848
  )
845
849
  ] }),
846
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
850
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
847
851
  ] });
848
852
  }
849
853
 
@@ -883,23 +887,21 @@ function ConfirmStep({
883
887
  _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
884
888
  );
885
889
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
886
- const targetSymbol = sameRoute ? asset.symbol : _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
887
- const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId);
888
- const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
889
- const sourceChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, asset.chainId);
890
- const targetChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain);
891
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol);
892
- const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
893
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkUN6MEOOAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
890
+ const targetSymbol = sameRoute ? asset.symbol : _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
891
+ const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId);
892
+ const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
893
+ const sourceChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
894
+ const targetChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChain);
895
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkIRI34U6Ncjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
894
896
  const receiveDisplay = (() => {
895
897
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
896
898
  if (quote) {
897
- const quoted = _chunkUN6MEOOAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
899
+ const quoted = _chunkIRI34U6Ncjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
898
900
  if (quoted !== void 0) return quoted;
899
901
  }
900
902
  const usdValue = Number(targetAmount);
901
903
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
902
- const estimate = _chunkUN6MEOOAcjs.formatReceiveEstimate.call(void 0, {
904
+ const estimate = _chunkIRI34U6Ncjs.formatReceiveEstimate.call(void 0, {
903
905
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
904
906
  sourceSymbol: asset.symbol,
905
907
  targetSymbol,
@@ -918,7 +920,7 @@ function ConfirmStep({
918
920
  hasAttemptedSwitch.current = true;
919
921
  switchChain(asset.chainId).catch((err) => {
920
922
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
921
- setError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw));
923
+ setError(_chunkIRI34U6Ncjs.formatUserError.call(void 0, raw));
922
924
  });
923
925
  }
924
926
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -998,7 +1000,7 @@ function ConfirmStep({
998
1000
  const result = await executeTransfer(amountUnits);
999
1001
  hash = result.txHash;
1000
1002
  resolvedSourceToken = result.sourceToken;
1001
- } else if (_chunkUN6MEOOAcjs.isNativeAsset.call(void 0, asset)) {
1003
+ } else if (_chunkIRI34U6Ncjs.isNativeAsset.call(void 0, asset)) {
1002
1004
  hash = await walletClient.sendTransaction({
1003
1005
  account,
1004
1006
  chain,
@@ -1025,7 +1027,7 @@ function ConfirmStep({
1025
1027
  );
1026
1028
  } catch (err) {
1027
1029
  const raw = err instanceof Error ? err.message : "Transfer failed";
1028
- const message = _chunkUN6MEOOAcjs.formatUserError.call(void 0, raw);
1030
+ const message = _chunkIRI34U6Ncjs.formatUserError.call(void 0, raw);
1029
1031
  setError(message);
1030
1032
  _optionalChain([onError, 'optionalCall', _31 => _31(message, "TRANSFER_ERROR")]);
1031
1033
  } finally {
@@ -1034,7 +1036,7 @@ function ConfirmStep({
1034
1036
  };
1035
1037
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1036
1038
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Review deposit" }),
1039
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Review deposit" }),
1038
1040
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1039
1041
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1040
1042
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1062,14 +1064,14 @@ function ConfirmStep({
1062
1064
  " ",
1063
1065
  asset.symbol
1064
1066
  ] }),
1065
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
1067
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: asset.symbol }) })
1066
1068
  ] })
1067
1069
  ] }),
1068
1070
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1069
1071
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1070
1072
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1071
1073
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1072
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
1074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetSymbol }) })
1073
1075
  ] })
1074
1076
  ] }),
1075
1077
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1088,14 +1090,14 @@ function ConfirmStep({
1088
1090
  children: feeDisplay
1089
1091
  }
1090
1092
  ),
1091
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.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, _chunkUN6MEOOAcjs.InfoIcon, {}) }) })
1093
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, {}) }) })
1092
1094
  ] })
1093
1095
  ] })
1094
1096
  ] }),
1095
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1096
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
1097
+ targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1098
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
1097
1099
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1098
- _chunkUN6MEOOAcjs.Button,
1100
+ _chunkIRI34U6Ncjs.Button,
1099
1101
  {
1100
1102
  onClick: handleConfirm,
1101
1103
  loading: isSubmitting,
@@ -1106,7 +1108,7 @@ function ConfirmStep({
1106
1108
  }
1107
1109
  )
1108
1110
  ] }),
1109
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
1111
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
1110
1112
  ] });
1111
1113
  }
1112
1114
 
@@ -1129,9 +1131,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1129
1131
  var MAX_POLL_INTERVAL = 3e4;
1130
1132
  var BACKOFF_MULTIPLIER = 1.5;
1131
1133
  function isEventForTx(event, txHash) {
1132
- const eventTxHash = _chunkUN6MEOOAcjs.getEventTxHash.call(void 0, event);
1134
+ const eventTxHash = _chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event);
1133
1135
  if (!eventTxHash) return false;
1134
- return _chunkUN6MEOOAcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1136
+ return _chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1135
1137
  }
1136
1138
  function truncateHash(hash) {
1137
1139
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1181,7 +1183,7 @@ function formatBridgeFailedMessage(event) {
1181
1183
  }
1182
1184
  return "Bridge failed";
1183
1185
  }
1184
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1186
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1185
1187
  function DepositNotification({
1186
1188
  deposit,
1187
1189
  smartAccount,
@@ -1215,7 +1217,7 @@ function DepositNotification({
1215
1217
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1216
1218
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1217
1219
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1218
- const depositContextRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, {
1220
+ const depositContextRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, {
1219
1221
  amount,
1220
1222
  sourceChain,
1221
1223
  sourceToken: token,
@@ -1223,8 +1225,8 @@ function DepositNotification({
1223
1225
  targetChain,
1224
1226
  targetToken
1225
1227
  });
1226
- const onCompleteRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onComplete);
1227
- const onFailedRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onFailed);
1228
+ const onCompleteRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onComplete);
1229
+ const onFailedRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onFailed);
1228
1230
  const handleComplete = _react.useCallback.call(void 0,
1229
1231
  (destTxHash) => {
1230
1232
  if (completedRef.current) return;
@@ -1315,11 +1317,11 @@ function DepositNotification({
1315
1317
  status,
1316
1318
  txHash
1317
1319
  ]);
1318
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkHH46H6ZIcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1319
- const destExplorerUrl = destinationTxHash ? _chunkHH46H6ZIcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1320
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkPUMTR35Ecjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1321
+ const destExplorerUrl = destinationTxHash ? _chunkPUMTR35Ecjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1320
1322
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1321
1323
  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.";
1322
- 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, _chunkUN6MEOOAcjs.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, _chunkUN6MEOOAcjs.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,
1324
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1323
1325
  "svg",
1324
1326
  {
1325
1327
  className: "rs-deposit-notification-spinner",
@@ -1369,7 +1371,7 @@ function DepositNotification({
1369
1371
  className: "rs-deposit-notification-close",
1370
1372
  onClick: () => onDismiss(deposit.id),
1371
1373
  "aria-label": "Dismiss",
1372
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
1374
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
1373
1375
  }
1374
1376
  )
1375
1377
  ] }),
@@ -1385,7 +1387,7 @@ function DepositNotification({
1385
1387
  "aria-expanded": expanded,
1386
1388
  children: [
1387
1389
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1388
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1389
1391
  ]
1390
1392
  }
1391
1393
  ),
@@ -1456,6 +1458,7 @@ function asNumber(value) {
1456
1458
  function asChainId(value) {
1457
1459
  if (typeof value === "string") {
1458
1460
  if (value.startsWith("solana")) return "solana";
1461
+ if (value.startsWith("hypercore")) return "hypercore";
1459
1462
  const eip155Match = value.match(/^eip155:(\d+)$/);
1460
1463
  if (eip155Match) return Number(eip155Match[1]);
1461
1464
  }
@@ -1474,7 +1477,7 @@ function asString(value) {
1474
1477
  function resolveSolanaTokenMeta(token) {
1475
1478
  if (!token) return {};
1476
1479
  const normalized = token.toLowerCase();
1477
- const matched = _chunkHH46H6ZIcjs.SOLANA_TOKENS.find(
1480
+ const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
1478
1481
  (entry) => entry.mint.toLowerCase() === normalized
1479
1482
  );
1480
1483
  if (matched) {
@@ -1517,20 +1520,30 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1517
1520
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1518
1521
  }
1519
1522
  function chainLabel(chainId) {
1520
- return _chunkHH46H6ZIcjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1523
+ return _chunkPUMTR35Ecjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1521
1524
  }
1522
1525
  function computeTokensForChain(chainId, allowedTokenSet, topTokens) {
1523
1526
  const fromBackend = _optionalChain([topTokens, 'optionalAccess', _53 => _53[String(chainId)], 'optionalAccess', _54 => _54.map, 'call', _55 => _55((t) => t.symbol)]);
1524
- const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkHH46H6ZIcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain.call(void 0, chainId))));
1527
+ const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkPUMTR35Ecjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1528
+ // HyperCore accepts USDC + USDT0 as origin tokens (native Hyperliquid L1
1529
+ // spot transfers); it has no EVM source-chain matrix entry.
1530
+ chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1531
+ ))));
1525
1532
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1526
1533
  }
1527
1534
  function resolveSourceTokenAddress(symbol, chainId, topTokens) {
1528
1535
  const top = _optionalChain([topTokens, 'optionalAccess', _56 => _56[String(chainId)], 'optionalAccess', _57 => _57.find, 'call', _58 => _58((t) => t.symbol === symbol)]);
1529
- return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkHH46H6ZIcjs.getTokenAddress.call(void 0, symbol, chainId)));
1536
+ return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkPUMTR35Ecjs.getTokenAddress.call(void 0, symbol, chainId)));
1530
1537
  }
1531
1538
  function TokenGlyph({ symbol }) {
1532
- const icon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, symbol);
1533
- return icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: icon, alt: "", className: "rs-deposit-address-dropdown-icon" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-address-dropdown-icon rs-deposit-address-dropdown-icon--fallback", children: symbol.slice(0, 3) });
1539
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1540
+ _chunkIRI34U6Ncjs.TokenIcon,
1541
+ {
1542
+ symbol,
1543
+ className: "rs-deposit-address-dropdown-icon",
1544
+ fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-address-dropdown-icon rs-deposit-address-dropdown-icon--fallback", children: symbol.slice(0, 3) })
1545
+ }
1546
+ );
1534
1547
  }
1535
1548
  function pickFallbackToken(tokens, current) {
1536
1549
  if (tokens.includes(current)) return current;
@@ -1561,22 +1574,28 @@ function DepositAddressStep({
1561
1574
  [_optionalChain([allowedRoutes, 'optionalAccess', _63 => _63.sourceTokens])]
1562
1575
  );
1563
1576
  const evmChainIds = _react.useMemo.call(void 0, () => {
1564
- const all = _chunkHH46H6ZIcjs.getSupportedChainIds.call(void 0, );
1577
+ const all = _chunkPUMTR35Ecjs.getSupportedChainIds.call(void 0, );
1565
1578
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1566
1579
  }, [allowedChainSet]);
1567
1580
  const chainOptions = _react.useMemo.call(void 0, () => {
1568
- if (!hasSolana) return evmChainIds;
1569
1581
  const options = [...evmChainIds];
1570
- options.splice(1, 0, "solana");
1582
+ const extras = [];
1583
+ if (hasSolana) extras.push("solana");
1584
+ if (!allowedChainSet || allowedChainSet.has(_chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID)) {
1585
+ extras.push("hypercore");
1586
+ }
1587
+ options.splice(1, 0, ...extras);
1571
1588
  return options;
1572
- }, [evmChainIds, hasSolana]);
1589
+ }, [evmChainIds, hasSolana, allowedChainSet]);
1573
1590
  const BASE_CHAIN_ID2 = 8453;
1574
- const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1591
+ const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1575
1592
  (s) => allowedTokenSet.has(s.toUpperCase())
1576
1593
  );
1577
- const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
1594
+ const evmDefault = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
1595
+ const defaultChainId = _nullishCoalesce(evmDefault, () => ( chainOptions[0]));
1578
1596
  const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, defaultChainId);
1579
1597
  const isSolana = sourceChainId === "solana";
1598
+ const isHyperCore = sourceChainId === "hypercore";
1580
1599
  const [topTokens, setTopTokens] = _react.useState.call(void 0, null);
1581
1600
  _react.useEffect.call(void 0, () => {
1582
1601
  let active = true;
@@ -1613,7 +1632,7 @@ function DepositAddressStep({
1613
1632
  kind: "idle"
1614
1633
  });
1615
1634
  _react.useEffect.call(void 0, () => {
1616
- if (isSolana) {
1635
+ if (isSolana || isHyperCore) {
1617
1636
  setLiquidityHelper({ kind: "idle" });
1618
1637
  return;
1619
1638
  }
@@ -1657,6 +1676,7 @@ function DepositAddressStep({
1657
1676
  };
1658
1677
  }, [
1659
1678
  isSolana,
1679
+ isHyperCore,
1660
1680
  sourceChainId,
1661
1681
  sourceTokenSymbol,
1662
1682
  targetChain,
@@ -1767,10 +1787,10 @@ function DepositAddressStep({
1767
1787
  return;
1768
1788
  }
1769
1789
  const event = status.lastEvent;
1770
- const eventTxHash = _chunkUN6MEOOAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkUN6MEOOAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1790
+ const eventTxHash = _chunkIRI34U6Ncjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1771
1791
  if (baselineTxHashRef.current === void 0) {
1772
1792
  baselineTxHashRef.current = eventTxHash;
1773
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkUN6MEOOAcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1793
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1774
1794
  const details = getDepositEventDetails(event);
1775
1795
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1776
1796
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1779,7 +1799,7 @@ function DepositAddressStep({
1779
1799
  baselineTxHashRef.current = eventTxHash;
1780
1800
  isTrackingRef.current = true;
1781
1801
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1782
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkHH46H6ZIcjs.findTokenDecimals.call(void 0,
1802
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkPUMTR35Ecjs.findTokenDecimals.call(void 0,
1783
1803
  token,
1784
1804
  typeof chainId === "number" ? chainId : void 0
1785
1805
  ) : void 0)));
@@ -1844,10 +1864,10 @@ function DepositAddressStep({
1844
1864
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1845
1865
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1846
1866
  }, []);
1847
- const qrIconSrc = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId);
1867
+ const qrIconSrc = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId);
1848
1868
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1849
1869
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1850
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1870
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1851
1871
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1852
1872
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1853
1873
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1862,16 +1882,16 @@ function DepositAddressStep({
1862
1882
  setTokenDropdownOpen(false);
1863
1883
  },
1864
1884
  children: [
1865
- _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1885
+ _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1866
1886
  "img",
1867
1887
  {
1868
- src: _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId),
1888
+ src: _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId),
1869
1889
  alt: "",
1870
1890
  className: "rs-deposit-address-dropdown-icon"
1871
1891
  }
1872
1892
  ),
1873
1893
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
1874
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1894
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1875
1895
  ]
1876
1896
  }
1877
1897
  ),
@@ -1882,10 +1902,10 @@ function DepositAddressStep({
1882
1902
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1883
1903
  onClick: () => handleSelectChain(chainId),
1884
1904
  children: [
1885
- _chunkHH46H6ZIcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1905
+ _chunkPUMTR35Ecjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1886
1906
  "img",
1887
1907
  {
1888
- src: _chunkHH46H6ZIcjs.getChainIcon.call(void 0, chainId),
1908
+ src: _chunkPUMTR35Ecjs.getChainIcon.call(void 0, chainId),
1889
1909
  alt: "",
1890
1910
  className: "rs-deposit-address-dropdown-icon"
1891
1911
  }
@@ -1901,9 +1921,9 @@ function DepositAddressStep({
1901
1921
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1902
1922
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1903
1923
  "Min.$",
1904
- (targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkHH46H6ZIcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1905
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1906
- _chunkUN6MEOOAcjs.InfoIcon,
1924
+ (targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1925
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1926
+ _chunkIRI34U6Ncjs.InfoIcon,
1907
1927
  {
1908
1928
  className: "rs-deposit-address-min-icon",
1909
1929
  "aria-hidden": "true"
@@ -1924,7 +1944,7 @@ function DepositAddressStep({
1924
1944
  children: [
1925
1945
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
1926
1946
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1927
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1947
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1928
1948
  ]
1929
1949
  }
1930
1950
  ),
@@ -1968,7 +1988,7 @@ function DepositAddressStep({
1968
1988
  className: "rs-deposit-address-copy",
1969
1989
  onClick: handleCopy,
1970
1990
  children: [
1971
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CopyIcon, {}),
1991
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CopyIcon, {}),
1972
1992
  copied ? "Copied!" : "Copy address"
1973
1993
  ]
1974
1994
  }
@@ -1976,7 +1996,7 @@ function DepositAddressStep({
1976
1996
  ]
1977
1997
  }
1978
1998
  ),
1979
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.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." }),
1999
+ targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
1980
2000
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1981
2001
  "div",
1982
2002
  {
@@ -1994,16 +2014,16 @@ function DepositAddressStep({
1994
2014
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1995
2015
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1996
2016
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1997
- _chunkUN6MEOOAcjs.Tooltip,
2017
+ _chunkIRI34U6Ncjs.Tooltip,
1998
2018
  {
1999
2019
  className: "rs-price-impact-info",
2000
2020
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2001
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, { "aria-hidden": "true" })
2021
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2002
2022
  }
2003
2023
  )
2004
2024
  ] }),
2005
2025
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2006
- _chunkUN6MEOOAcjs.ChevronDownIcon,
2026
+ _chunkIRI34U6Ncjs.ChevronDownIcon,
2007
2027
  {
2008
2028
  className: "rs-price-impact-chevron",
2009
2029
  "aria-hidden": "true"
@@ -2014,29 +2034,29 @@ function DepositAddressStep({
2014
2034
  ),
2015
2035
  /* @__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: [
2016
2036
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2017
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PercentIcon, {}) }),
2037
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PercentIcon, {}) }),
2018
2038
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2019
2039
  "Max slippage: ",
2020
2040
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2021
2041
  ] }),
2022
2042
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2023
- _chunkUN6MEOOAcjs.Tooltip,
2043
+ _chunkIRI34U6Ncjs.Tooltip,
2024
2044
  {
2025
2045
  className: "rs-price-impact-info",
2026
2046
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2027
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, { "aria-hidden": "true" })
2047
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2028
2048
  }
2029
2049
  )
2030
2050
  ] }),
2031
2051
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2032
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ClockIcon, {}) }),
2052
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ClockIcon, {}) }),
2033
2053
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2034
2054
  "Processing time: ",
2035
2055
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2036
2056
  ] })
2037
2057
  ] }),
2038
2058
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2039
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PlusCircleIcon, {}) }),
2059
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PlusCircleIcon, {}) }),
2040
2060
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2041
2061
  "Max deposit:",
2042
2062
  " ",
@@ -2067,7 +2087,7 @@ function DepositAddressStep({
2067
2087
  },
2068
2088
  deposit.id
2069
2089
  )) }),
2070
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2090
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2071
2091
  ] });
2072
2092
  }
2073
2093
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2115,7 +2135,7 @@ function FinalisingDepositStep() {
2115
2135
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2116
2136
  ] })
2117
2137
  ] }),
2118
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2138
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2119
2139
  ] });
2120
2140
  }
2121
2141
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2145,7 +2165,7 @@ function SwappedOrderTracker({
2145
2165
  ];
2146
2166
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2147
2167
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2148
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HandCoinsIcon, {}), title }),
2168
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HandCoinsIcon, {}), title }),
2149
2169
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2150
2170
  const status = stepStates[idx];
2151
2171
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2159,7 +2179,7 @@ function SwappedOrderTracker({
2159
2179
  {
2160
2180
  className: "rs-swapped-tracker-step-marker",
2161
2181
  "aria-hidden": "true",
2162
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2182
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2163
2183
  "svg",
2164
2184
  {
2165
2185
  className: "rs-swapped-tracker-step-ring",
@@ -2194,7 +2214,7 @@ function SwappedOrderTracker({
2194
2214
  }
2195
2215
  )
2196
2216
  ] }),
2197
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2217
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2198
2218
  ] });
2199
2219
  }
2200
2220
  function formatTrackerAmount(amount) {
@@ -2394,10 +2414,10 @@ function SwappedIframeStep({
2394
2414
  const status = await service.fetchLatestStatus(smartAccount);
2395
2415
  if (cancelled) return;
2396
2416
  const event = status.lastEvent;
2397
- const eventTxHash = _chunkUN6MEOOAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkUN6MEOOAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2417
+ const eventTxHash = _chunkIRI34U6Ncjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2398
2418
  if (baselineDepositTxHashRef.current === void 0) {
2399
2419
  baselineDepositTxHashRef.current = eventTxHash;
2400
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkUN6MEOOAcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2420
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2401
2421
  currentDepositTxHashRef.current = eventTxHash;
2402
2422
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2403
2423
  }
@@ -2471,10 +2491,10 @@ function SwappedIframeStep({
2471
2491
  [orderState, latestEvent]
2472
2492
  );
2473
2493
  const terminalState = _react.useMemo.call(void 0, () => {
2474
- if (_chunkUN6MEOOAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2494
+ if (_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2475
2495
  return {
2476
2496
  kind: "failed",
2477
- message: _chunkUN6MEOOAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2497
+ message: _chunkIRI34U6Ncjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2478
2498
  };
2479
2499
  }
2480
2500
  if (_optionalChain([orderState, 'optionalAccess', _97 => _97.status]) === "order_cancelled") {
@@ -2497,7 +2517,7 @@ function SwappedIframeStep({
2497
2517
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _99 => _99.orderCrypto]), () => ( null)),
2498
2518
  // Base-unit source amount from the deposit row/event, consistent with the
2499
2519
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2500
- amount: _nullishCoalesce(_chunkUN6MEOOAcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2520
+ amount: _nullishCoalesce(_chunkIRI34U6Ncjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2501
2521
  expectedOrderUuid: expectedOrderUuidRef.current,
2502
2522
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
2503
2523
  };
@@ -2508,14 +2528,14 @@ function SwappedIframeStep({
2508
2528
  }, [latestEvent, orderState, smartAccount]);
2509
2529
  _react.useEffect.call(void 0, () => {
2510
2530
  if (failedFiredRef.current || completeFiredRef.current) return;
2511
- if (!_chunkUN6MEOOAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2531
+ if (!_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2512
2532
  const txHash = currentDepositTxHashRef.current;
2513
2533
  if (!txHash) return;
2514
2534
  failedFiredRef.current = true;
2515
2535
  setPhase("tracker");
2516
2536
  _optionalChain([onSwappedFailedRef, 'access', _100 => _100.current, 'optionalCall', _101 => _101(
2517
2537
  txHash,
2518
- _chunkUN6MEOOAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2538
+ _chunkIRI34U6Ncjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2519
2539
  )]);
2520
2540
  }, [latestEvent]);
2521
2541
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
@@ -2554,7 +2574,7 @@ function SwappedIframeStep({
2554
2574
  }
2555
2575
  )
2556
2576
  ] }),
2557
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, {}) }),
2577
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, {}) }),
2558
2578
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2559
2579
  "iframe",
2560
2580
  {
@@ -2569,11 +2589,11 @@ function SwappedIframeStep({
2569
2589
  retryToken
2570
2590
  )
2571
2591
  ] }) }),
2572
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2592
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2573
2593
  ] });
2574
2594
  }
2575
2595
  function deriveStepStates(swappedStatus, latestEvent) {
2576
- if (_chunkUN6MEOOAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2596
+ if (_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2577
2597
  return ["complete", "complete", "failed", "pending"];
2578
2598
  }
2579
2599
  if (swappedStatus === "order_cancelled") {
@@ -2749,7 +2769,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2749
2769
  function ExchangeLogo({ exchange }) {
2750
2770
  const [failed, setFailed] = _react.useState.call(void 0, false);
2751
2771
  if (!exchange.logoUrl || failed) {
2752
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BankIcon, {});
2772
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BankIcon, {});
2753
2773
  }
2754
2774
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2755
2775
  "img",
@@ -2795,14 +2815,14 @@ function ExchangeSelectStep({
2795
2815
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2796
2816
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2797
2817
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2798
- _chunkUN6MEOOAcjs.BodyHeader,
2818
+ _chunkIRI34U6Ncjs.BodyHeader,
2799
2819
  {
2800
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.UnplugIcon, {}),
2820
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.UnplugIcon, {}),
2801
2821
  title: "Connect exchange",
2802
2822
  subtitle: "Select an exchange to connect"
2803
2823
  }
2804
2824
  ),
2805
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, {}) }),
2825
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, {}) }),
2806
2826
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2807
2827
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2808
2828
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2828,7 +2848,7 @@ function ExchangeSelectStep({
2828
2848
  )
2829
2849
  ] }),
2830
2850
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2831
- const brand = _chunkUN6MEOOAcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2851
+ const brand = _chunkIRI34U6Ncjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2832
2852
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2833
2853
  "button",
2834
2854
  {
@@ -2851,7 +2871,7 @@ function ExchangeSelectStep({
2851
2871
  );
2852
2872
  }) })
2853
2873
  ] }),
2854
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2874
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2855
2875
  ] });
2856
2876
  }
2857
2877
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2866,22 +2886,21 @@ function DepositAddressSkeleton({
2866
2886
  const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _111 => _111.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2867
2887
  const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _112 => _112.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2868
2888
  const evmChainIds = (() => {
2869
- const all = _chunkHH46H6ZIcjs.getSupportedChainIds.call(void 0, );
2889
+ const all = _chunkPUMTR35Ecjs.getSupportedChainIds.call(void 0, );
2870
2890
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2871
2891
  })();
2872
2892
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2873
2893
  const tokensForChain = (() => {
2874
- const all = _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2894
+ const all = _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2875
2895
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2876
2896
  })();
2877
2897
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2878
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, defaultChainId);
2879
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, defaultChainId);
2880
- const tokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, defaultToken);
2898
+ const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, defaultChainId);
2899
+ const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, defaultChainId);
2881
2900
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2882
2901
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2883
2902
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2884
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2903
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2885
2904
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2886
2905
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2887
2906
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2895,7 +2914,7 @@ function DepositAddressSkeleton({
2895
2914
  }
2896
2915
  ),
2897
2916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2898
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2917
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2899
2918
  ] })
2900
2919
  ] }),
2901
2920
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2904,8 +2923,8 @@ function DepositAddressSkeleton({
2904
2923
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2905
2924
  "Min.$",
2906
2925
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.minDepositUsd]), () => ( 0.1))).toFixed(2),
2907
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2908
- _chunkUN6MEOOAcjs.InfoIcon,
2926
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2927
+ _chunkIRI34U6Ncjs.InfoIcon,
2909
2928
  {
2910
2929
  className: "rs-deposit-address-min-icon",
2911
2930
  "aria-hidden": "true"
@@ -2914,16 +2933,15 @@ function DepositAddressSkeleton({
2914
2933
  ] })
2915
2934
  ] }),
2916
2935
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2917
- tokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2918
- "img",
2936
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2937
+ _chunkIRI34U6Ncjs.TokenIcon,
2919
2938
  {
2920
- src: tokenIcon,
2921
- alt: "",
2939
+ symbol: defaultToken,
2922
2940
  className: "rs-deposit-address-dropdown-icon"
2923
2941
  }
2924
2942
  ),
2925
2943
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2927
2945
  ] })
2928
2946
  ] })
2929
2947
  ] }),
@@ -2944,7 +2962,7 @@ function DepositAddressSkeleton({
2944
2962
  disabled: true,
2945
2963
  "aria-hidden": "true",
2946
2964
  children: [
2947
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CopyIcon, {}),
2965
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CopyIcon, {}),
2948
2966
  "Copy address"
2949
2967
  ]
2950
2968
  }
@@ -2957,16 +2975,16 @@ function DepositAddressSkeleton({
2957
2975
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2958
2976
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2959
2977
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2960
- _chunkUN6MEOOAcjs.Tooltip,
2978
+ _chunkIRI34U6Ncjs.Tooltip,
2961
2979
  {
2962
2980
  className: "rs-price-impact-info",
2963
2981
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2964
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, { "aria-hidden": "true" })
2982
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2965
2983
  }
2966
2984
  )
2967
2985
  ] }),
2968
2986
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2969
- _chunkUN6MEOOAcjs.ChevronDownIcon,
2987
+ _chunkIRI34U6Ncjs.ChevronDownIcon,
2970
2988
  {
2971
2989
  className: "rs-price-impact-chevron",
2972
2990
  "aria-hidden": "true"
@@ -2974,7 +2992,7 @@ function DepositAddressSkeleton({
2974
2992
  )
2975
2993
  ] }) })
2976
2994
  ] }),
2977
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2995
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2978
2996
  ] });
2979
2997
  }
2980
2998
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3006,14 +3024,14 @@ function SolanaTokenSelectStep({
3006
3024
  setError(null);
3007
3025
  const portfolioBySymbol = {};
3008
3026
  try {
3009
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3027
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3010
3028
  solanaAddress
3011
3029
  });
3012
3030
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
3013
3031
  if (!active) return;
3014
3032
  for (const t of portfolio.tokens) {
3015
3033
  const symbol = t.symbol.toUpperCase();
3016
- if (!_chunkHH46H6ZIcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3034
+ if (!_chunkPUMTR35Ecjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3017
3035
  let parsed = 0n;
3018
3036
  try {
3019
3037
  parsed = BigInt(t.balance || "0");
@@ -3029,12 +3047,12 @@ function SolanaTokenSelectStep({
3029
3047
  };
3030
3048
  }
3031
3049
  }
3032
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3050
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3033
3051
  symbols: Object.keys(portfolioBySymbol)
3034
3052
  });
3035
3053
  } catch (err) {
3036
3054
  if (!active) return;
3037
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3055
+ _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3038
3056
  solanaAddress
3039
3057
  });
3040
3058
  setError(
@@ -3045,7 +3063,7 @@ function SolanaTokenSelectStep({
3045
3063
  return;
3046
3064
  }
3047
3065
  const results = [];
3048
- for (const token of _chunkHH46H6ZIcjs.SOLANA_TOKENS) {
3066
+ for (const token of _chunkPUMTR35Ecjs.SOLANA_TOKENS) {
3049
3067
  const fromPortfolio = portfolioBySymbol[token.symbol];
3050
3068
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3051
3069
  results.push({
@@ -3081,30 +3099,30 @@ function SolanaTokenSelectStep({
3081
3099
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3082
3100
  const numeric = Number(raw);
3083
3101
  if (!Number.isFinite(numeric)) return raw;
3084
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
3102
+ return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
3085
3103
  } catch (e22) {
3086
3104
  return "--";
3087
3105
  }
3088
3106
  };
3089
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, "solana");
3090
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, "solana");
3107
+ const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, "solana");
3108
+ const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, "solana");
3091
3109
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3092
3110
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3093
3111
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3094
- _chunkUN6MEOOAcjs.BodyHeader,
3112
+ _chunkIRI34U6Ncjs.BodyHeader,
3095
3113
  {
3096
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
3114
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3097
3115
  title: "Your assets",
3098
3116
  subtitle: "Select source assets to transfer"
3099
3117
  }
3100
3118
  ),
3101
3119
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3102
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-text-tertiary" }),
3120
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-text-tertiary" }),
3103
3121
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3104
3122
  ] }),
3105
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
3123
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3106
3124
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3107
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, { className: "rs-empty-icon" }),
3125
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, { className: "rs-empty-icon" }),
3108
3126
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3109
3127
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3110
3128
  solanaAddress.slice(0, 6),
@@ -3124,7 +3142,6 @@ function SolanaTokenSelectStep({
3124
3142
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((entry) => {
3125
3143
  const isSelected = selectedSymbol === entry.token.symbol;
3126
3144
  const tokenAmount = formatBalance(entry);
3127
- const tokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, entry.token.symbol);
3128
3145
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3129
3146
  "button",
3130
3147
  {
@@ -3135,7 +3152,13 @@ function SolanaTokenSelectStep({
3135
3152
  children: [
3136
3153
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3137
3154
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3138
- tokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: tokenIcon, alt: entry.token.symbol }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: entry.token.symbol.slice(0, 4) }),
3155
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3156
+ _chunkIRI34U6Ncjs.TokenIcon,
3157
+ {
3158
+ symbol: entry.token.symbol,
3159
+ fallback: entry.token.symbol.slice(0, 4)
3160
+ }
3161
+ ) }),
3139
3162
  chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: chainIcon, alt: chainName }) })
3140
3163
  ] }),
3141
3164
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
@@ -3153,14 +3176,14 @@ function SolanaTokenSelectStep({
3153
3176
  ] })
3154
3177
  ] })
3155
3178
  ] }),
3156
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkUN6MEOOAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3179
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkIRI34U6Ncjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3157
3180
  ]
3158
3181
  },
3159
3182
  entry.token.symbol
3160
3183
  );
3161
3184
  }) }),
3162
3185
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3163
- _chunkUN6MEOOAcjs.Button,
3186
+ _chunkIRI34U6Ncjs.Button,
3164
3187
  {
3165
3188
  onClick: () => selectedEntry && onContinue(
3166
3189
  selectedEntry.token,
@@ -3173,7 +3196,7 @@ function SolanaTokenSelectStep({
3173
3196
  }
3174
3197
  )
3175
3198
  ] }),
3176
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3199
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3177
3200
  ] });
3178
3201
  }
3179
3202
 
@@ -3197,7 +3220,6 @@ function SolanaAmountStep({
3197
3220
  targetChain,
3198
3221
  targetChainName,
3199
3222
  targetTokenSymbol,
3200
- targetTokenIcon,
3201
3223
  appBalanceUsd,
3202
3224
  onContinue,
3203
3225
  debug
@@ -3205,7 +3227,7 @@ function SolanaAmountStep({
3205
3227
  const [amount, setAmount] = _react.useState.call(void 0, "");
3206
3228
  const [error, setError] = _react.useState.call(void 0, null);
3207
3229
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3208
- const isSourceStablecoin = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, token.symbol);
3230
+ const isSourceStablecoin = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, token.symbol);
3209
3231
  const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _115 => _115.trim, 'call', _116 => _116(), 'access', _117 => _117.toLowerCase, 'call', _118 => _118()]) === "max";
3210
3232
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3211
3233
  if (isSourceStablecoin) return 1;
@@ -3226,7 +3248,7 @@ function SolanaAmountStep({
3226
3248
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3227
3249
  const numeric = Number(raw);
3228
3250
  if (!Number.isFinite(numeric)) return raw;
3229
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
3251
+ return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
3230
3252
  } catch (e24) {
3231
3253
  return "\u2026";
3232
3254
  }
@@ -3243,7 +3265,7 @@ function SolanaAmountStep({
3243
3265
  }
3244
3266
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3245
3267
  const spendableBalance = _react.useMemo.call(void 0, () => {
3246
- if (!_chunkHH46H6ZIcjs.isNativeSol.call(void 0, token)) return balance;
3268
+ if (!_chunkPUMTR35Ecjs.isNativeSol.call(void 0, token)) return balance;
3247
3269
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3248
3270
  }, [balance, token]);
3249
3271
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3308,7 +3330,7 @@ function SolanaAmountStep({
3308
3330
  return null;
3309
3331
  }
3310
3332
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3311
- const minDepositUsd = targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkHH46H6ZIcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3333
+ const minDepositUsd = targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3312
3334
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _121 => _121.maxDepositUsd]), () => ( null));
3313
3335
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3314
3336
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
@@ -3319,7 +3341,7 @@ function SolanaAmountStep({
3319
3341
  const handlePresetClick = (percentage) => {
3320
3342
  const formatted = computePresetAmount(percentage);
3321
3343
  if (!formatted) return;
3322
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3344
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3323
3345
  percentage,
3324
3346
  symbol: token.symbol,
3325
3347
  formatted
@@ -3354,7 +3376,7 @@ function SolanaAmountStep({
3354
3376
  try {
3355
3377
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3356
3378
  } catch (e29) {
3357
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3379
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3358
3380
  amount,
3359
3381
  sourceAmount: sourceAmountStr,
3360
3382
  reason: "parse-units-failed"
@@ -3363,13 +3385,13 @@ function SolanaAmountStep({
3363
3385
  return;
3364
3386
  }
3365
3387
  if (amountInUnits > spendableBalance) {
3366
- const isReserveIssue = _chunkHH46H6ZIcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3388
+ const isReserveIssue = _chunkPUMTR35Ecjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3367
3389
  setError(
3368
3390
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3369
3391
  );
3370
3392
  return;
3371
3393
  }
3372
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3394
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3373
3395
  symbol: token.symbol,
3374
3396
  inputAmountUsd: amount,
3375
3397
  sourceAmount: sourceAmountStr,
@@ -3380,10 +3402,9 @@ function SolanaAmountStep({
3380
3402
  };
3381
3403
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
3382
3404
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3383
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, token.symbol);
3384
3405
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3385
3406
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3386
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3407
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Wallet deposit" }),
3387
3408
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3388
3409
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3389
3410
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3403,13 +3424,13 @@ function SolanaAmountStep({
3403
3424
  " available",
3404
3425
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3405
3426
  " (~",
3406
- _chunkUN6MEOOAcjs.currencyFormatter.format(computedBalanceUsd),
3427
+ _chunkIRI34U6Ncjs.currencyFormatter.format(computedBalanceUsd),
3407
3428
  ")"
3408
3429
  ] })
3409
3430
  ] }),
3410
3431
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3411
3432
  "Min. deposit ",
3412
- _chunkUN6MEOOAcjs.currencyFormatter.format(minDepositUsd)
3433
+ _chunkIRI34U6Ncjs.currencyFormatter.format(minDepositUsd)
3413
3434
  ] })
3414
3435
  ] })
3415
3436
  ] }),
@@ -3432,7 +3453,7 @@ function SolanaAmountStep({
3432
3453
  "Solana ",
3433
3454
  token.symbol
3434
3455
  ] }),
3435
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
3456
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: token.symbol }) })
3436
3457
  ] })
3437
3458
  ] }),
3438
3459
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -3443,18 +3464,18 @@ function SolanaAmountStep({
3443
3464
  " ",
3444
3465
  targetTokenSymbol
3445
3466
  ] }),
3446
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
3467
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetTokenSymbol }) })
3447
3468
  ] })
3448
3469
  ] }),
3449
3470
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3450
3471
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3451
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkUN6MEOOAcjs.currencyFormatter.format(balanceAfterUsd) })
3472
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkIRI34U6Ncjs.currencyFormatter.format(balanceAfterUsd) })
3452
3473
  ] })
3453
3474
  ] }),
3454
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3455
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
3475
+ targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3476
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3456
3477
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3457
- _chunkUN6MEOOAcjs.Button,
3478
+ _chunkIRI34U6Ncjs.Button,
3458
3479
  {
3459
3480
  onClick: handleContinue,
3460
3481
  fullWidth: true,
@@ -3463,7 +3484,7 @@ function SolanaAmountStep({
3463
3484
  }
3464
3485
  )
3465
3486
  ] }),
3466
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3487
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3467
3488
  ] });
3468
3489
  }
3469
3490
 
@@ -3486,10 +3507,10 @@ var _spltoken = require('@solana/spl-token');
3486
3507
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3487
3508
  var cachedConnections = /* @__PURE__ */ new Map();
3488
3509
  function getSolanaRpcUrl(rpcUrls) {
3489
- return _nullishCoalesce(_chunkUN6MEOOAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3510
+ return _nullishCoalesce(_chunkIRI34U6Ncjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3490
3511
  }
3491
3512
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
3492
- return _chunkUN6MEOOAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3513
+ return _chunkIRI34U6Ncjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3493
3514
  }
3494
3515
  function getSolanaConnection(rpcUrls) {
3495
3516
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -3591,23 +3612,21 @@ function SolanaConfirmStep({
3591
3612
  onError,
3592
3613
  debug
3593
3614
  }) {
3594
- const rpcUrls = _chunkUN6MEOOAcjs.useRpcUrls.call(void 0, );
3615
+ const rpcUrls = _chunkIRI34U6Ncjs.useRpcUrls.call(void 0, );
3595
3616
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3596
3617
  const [error, setError] = _react.useState.call(void 0, null);
3597
- const targetSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3598
- const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, "solana");
3599
- const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
3600
- const sourceChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, "solana");
3601
- const targetChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain);
3602
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, token.symbol);
3603
- const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
3618
+ const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3619
+ const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, "solana");
3620
+ const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
3621
+ const sourceChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, "solana");
3622
+ const targetChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChain);
3604
3623
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _122 => _122.feeSponsored]), () => ( false));
3605
3624
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _123 => _123.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3606
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkUN6MEOOAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3625
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkIRI34U6Ncjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3607
3626
  const receiveDisplay = (() => {
3608
3627
  const usdValue = Number(targetAmount);
3609
3628
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3610
- const estimate = _chunkUN6MEOOAcjs.formatReceiveEstimate.call(void 0, {
3629
+ const estimate = _chunkIRI34U6Ncjs.formatReceiveEstimate.call(void 0, {
3611
3630
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3612
3631
  sourceSymbol: token.symbol,
3613
3632
  targetSymbol,
@@ -3619,7 +3638,7 @@ function SolanaConfirmStep({
3619
3638
  })();
3620
3639
  const handleConfirm = async () => {
3621
3640
  if (!solanaProvider) {
3622
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3641
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3623
3642
  reason: "missing-provider"
3624
3643
  });
3625
3644
  setError("Solana wallet not connected");
@@ -3627,7 +3646,7 @@ function SolanaConfirmStep({
3627
3646
  }
3628
3647
  const parsedAmount = parseFloat(sourceAmount);
3629
3648
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3630
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3649
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3631
3650
  reason: "invalid-amount",
3632
3651
  sourceAmount
3633
3652
  });
@@ -3636,7 +3655,7 @@ function SolanaConfirmStep({
3636
3655
  }
3637
3656
  setError(null);
3638
3657
  setIsSubmitting(true);
3639
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3658
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3640
3659
  smartAccount,
3641
3660
  solanaAddress,
3642
3661
  solanaDepositAddress,
@@ -3646,7 +3665,7 @@ function SolanaConfirmStep({
3646
3665
  });
3647
3666
  try {
3648
3667
  const check = await service.checkAccount(smartAccount);
3649
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3668
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3650
3669
  smartAccount,
3651
3670
  isRegistered: check.isRegistered,
3652
3671
  targetChain: check.targetChain,
@@ -3659,12 +3678,12 @@ function SolanaConfirmStep({
3659
3678
  }
3660
3679
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3661
3680
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3662
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3681
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3663
3682
  token: token.symbol,
3664
3683
  sourceAmount,
3665
3684
  amountUnits: amountUnits.toString()
3666
3685
  });
3667
- const transaction = _chunkHH46H6ZIcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3686
+ const transaction = _chunkPUMTR35Ecjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3668
3687
  connection,
3669
3688
  solanaAddress,
3670
3689
  solanaDepositAddress,
@@ -3676,7 +3695,7 @@ function SolanaConfirmStep({
3676
3695
  token.mint,
3677
3696
  amountUnits
3678
3697
  );
3679
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3698
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3680
3699
  token: token.symbol,
3681
3700
  instructionCount: transaction.instructions.length,
3682
3701
  feePayer: _optionalChain([transaction, 'access', _124 => _124.feePayer, 'optionalAccess', _125 => _125.toBase58, 'call', _126 => _126()]),
@@ -3687,15 +3706,15 @@ function SolanaConfirmStep({
3687
3706
  connection,
3688
3707
  transaction
3689
3708
  );
3690
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3709
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3691
3710
  txHash,
3692
3711
  amountUnits: amountUnits.toString()
3693
3712
  });
3694
3713
  onConfirm(txHash, amountUnits.toString());
3695
3714
  } catch (err) {
3696
3715
  const raw = err instanceof Error ? err.message : "Transfer failed";
3697
- const message = _chunkUN6MEOOAcjs.formatUserError.call(void 0, raw);
3698
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3716
+ const message = _chunkIRI34U6Ncjs.formatUserError.call(void 0, raw);
3717
+ _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3699
3718
  smartAccount,
3700
3719
  token: token.symbol,
3701
3720
  sourceAmount
@@ -3708,7 +3727,7 @@ function SolanaConfirmStep({
3708
3727
  };
3709
3728
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3710
3729
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3711
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Review deposit" }),
3730
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Review deposit" }),
3712
3731
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3713
3732
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3714
3733
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3736,14 +3755,14 @@ function SolanaConfirmStep({
3736
3755
  " ",
3737
3756
  token.symbol
3738
3757
  ] }),
3739
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
3758
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: token.symbol }) })
3740
3759
  ] })
3741
3760
  ] }),
3742
3761
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3743
3762
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3744
3763
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3745
3764
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3746
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
3765
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetSymbol }) })
3747
3766
  ] })
3748
3767
  ] }),
3749
3768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -3756,13 +3775,13 @@ function SolanaConfirmStep({
3756
3775
  children: "$0.04"
3757
3776
  }
3758
3777
  ),
3759
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.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, _chunkUN6MEOOAcjs.InfoIcon, {}) }) })
3778
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, {}) }) })
3760
3779
  ] })
3761
3780
  ] })
3762
3781
  ] }),
3763
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
3782
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3764
3783
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3765
- _chunkUN6MEOOAcjs.Button,
3784
+ _chunkIRI34U6Ncjs.Button,
3766
3785
  {
3767
3786
  onClick: handleConfirm,
3768
3787
  loading: isSubmitting,
@@ -3773,7 +3792,7 @@ function SolanaConfirmStep({
3773
3792
  }
3774
3793
  )
3775
3794
  ] }),
3776
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3795
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3777
3796
  ] });
3778
3797
  }
3779
3798
 
@@ -3787,21 +3806,21 @@ function DappImportAssetSelectStep({
3787
3806
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3788
3807
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3789
3808
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3790
- _chunkUN6MEOOAcjs.BodyHeader,
3809
+ _chunkIRI34U6Ncjs.BodyHeader,
3791
3810
  {
3792
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
3811
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3793
3812
  title: `Transfer from ${sourceLabel}`,
3794
3813
  subtitle: "Pick the balance to import"
3795
3814
  }
3796
3815
  ),
3797
3816
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3798
- const tokenAmount = asset.balance ? _chunkUN6MEOOAcjs.tokenFormatter.format(
3817
+ const tokenAmount = asset.balance ? _chunkIRI34U6Ncjs.tokenFormatter.format(
3799
3818
  Number(asset.balance) / 10 ** asset.decimals
3800
3819
  ) : "0";
3801
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkUN6MEOOAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3802
- const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol)));
3803
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, asset.chainId);
3804
- const badge = _chunkHH46H6ZIcjs.getChainBadge.call(void 0, asset.chainId);
3820
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkIRI34U6Ncjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3821
+ const assetIcon = asset.icon;
3822
+ const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
3823
+ const badge = _chunkPUMTR35Ecjs.getChainBadge.call(void 0, asset.chainId);
3805
3824
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3806
3825
  "button",
3807
3826
  {
@@ -3811,12 +3830,18 @@ function DappImportAssetSelectStep({
3811
3830
  children: [
3812
3831
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3813
3832
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3814
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: tokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: tokenIcon, alt: asset.symbol }) : asset.symbol.slice(0, 4) }),
3833
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3834
+ _chunkIRI34U6Ncjs.TokenIcon,
3835
+ {
3836
+ symbol: asset.symbol,
3837
+ fallback: asset.symbol.slice(0, 4)
3838
+ }
3839
+ ) }),
3815
3840
  chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3816
3841
  "img",
3817
3842
  {
3818
3843
  src: chainIcon,
3819
- alt: _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)
3844
+ alt: _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
3820
3845
  }
3821
3846
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3822
3847
  "span",
@@ -3849,7 +3874,7 @@ function DappImportAssetSelectStep({
3849
3874
  );
3850
3875
  }) })
3851
3876
  ] }),
3852
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3877
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3853
3878
  ] });
3854
3879
  }
3855
3880
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3866,9 +3891,9 @@ function DappImportAssetSelectSkeleton({
3866
3891
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3867
3892
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3868
3893
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3869
- _chunkUN6MEOOAcjs.BodyHeader,
3894
+ _chunkIRI34U6Ncjs.BodyHeader,
3870
3895
  {
3871
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
3896
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3872
3897
  title: `Transfer from ${sourceLabel}`,
3873
3898
  subtitle: "Pick the balance to import"
3874
3899
  }
@@ -3906,7 +3931,7 @@ function DappImportAssetSelectSkeleton({
3906
3931
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3907
3932
  }
3908
3933
  ) }),
3909
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3934
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3910
3935
  ] });
3911
3936
  }
3912
3937
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3963,7 +3988,7 @@ async function detectPolymarketWalletKind(params) {
3963
3988
  contracts: [
3964
3989
  {
3965
3990
  address: proxyWallet,
3966
- abi: _chunkRLMXWLF4cjs.SAFE_ABI,
3991
+ abi: _chunkWL7AXYQ4cjs.SAFE_ABI,
3967
3992
  functionName: "isOwner",
3968
3993
  args: [eoa]
3969
3994
  },
@@ -3996,7 +4021,7 @@ async function buildSignedDepositWalletBatch(params) {
3996
4021
  if (!account || !chain) {
3997
4022
  throw new Error("Wallet not connected");
3998
4023
  }
3999
- if (chain.id !== _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4024
+ if (chain.id !== _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4000
4025
  throw new Error("Switch to Polygon to sign");
4001
4026
  }
4002
4027
  const owner = await publicClient.readContract({
@@ -4041,14 +4066,14 @@ async function buildSignedDepositWalletBatch(params) {
4041
4066
  })),
4042
4067
  signature
4043
4068
  },
4044
- sourceToken: _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS,
4069
+ sourceToken: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4045
4070
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4046
4071
  };
4047
4072
  }
4048
4073
  function buildUsdceTransferCalls(recipient, amount) {
4049
4074
  return [
4050
4075
  {
4051
- target: _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS,
4076
+ target: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4052
4077
  value: 0n,
4053
4078
  data: _viem.encodeFunctionData.call(void 0, {
4054
4079
  abi: _viem.erc20Abi,
@@ -4061,21 +4086,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4061
4086
  function buildPusdUnwrapCalls(recipient, amount) {
4062
4087
  return [
4063
4088
  {
4064
- target: _chunkXOBLFIGVcjs.POLYMARKET_PUSD_ADDRESS,
4089
+ target: _chunk4IOQIWDYcjs.POLYMARKET_PUSD_ADDRESS,
4065
4090
  value: 0n,
4066
4091
  data: _viem.encodeFunctionData.call(void 0, {
4067
4092
  abi: _viem.erc20Abi,
4068
4093
  functionName: "approve",
4069
- args: [_chunkXOBLFIGVcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4094
+ args: [_chunk4IOQIWDYcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4070
4095
  })
4071
4096
  },
4072
4097
  {
4073
- target: _chunkXOBLFIGVcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4098
+ target: _chunk4IOQIWDYcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4074
4099
  value: 0n,
4075
4100
  data: _viem.encodeFunctionData.call(void 0, {
4076
4101
  abi: COLLATERAL_OFFRAMP_ABI,
4077
4102
  functionName: "unwrap",
4078
- args: [_chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4103
+ args: [_chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4079
4104
  })
4080
4105
  }
4081
4106
  ];
@@ -4088,18 +4113,18 @@ var polymarketProvider = {
4088
4113
  label: "Transfer from Polymarket",
4089
4114
  sourceLabel: "Polymarket",
4090
4115
  icon: _react.createElement.call(void 0, "img", {
4091
- src: _chunkXOBLFIGVcjs.POLYMARKET_ICON_URL,
4116
+ src: _chunk4IOQIWDYcjs.POLYMARKET_ICON_URL,
4092
4117
  alt: "Polymarket",
4093
4118
  style: { width: 24, height: 24, borderRadius: 6 }
4094
4119
  }),
4095
- chainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
4120
+ chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4096
4121
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4097
- const proxyWallet = await _chunkXOBLFIGVcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4122
+ const proxyWallet = await _chunk4IOQIWDYcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4098
4123
  if (!proxyWallet) return null;
4099
4124
  if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
4100
- const polygonClient = getPublicClient2(_chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID);
4125
+ const polygonClient = getPublicClient2(_chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID);
4101
4126
  if (!polygonClient) return null;
4102
- const balances = await _chunkXOBLFIGVcjs.readPolymarketBalances.call(void 0, {
4127
+ const balances = await _chunk4IOQIWDYcjs.readPolymarketBalances.call(void 0, {
4103
4128
  publicClient: polygonClient,
4104
4129
  proxyWallet
4105
4130
  });
@@ -4157,7 +4182,7 @@ var polymarketProvider = {
4157
4182
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4158
4183
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4159
4184
  }
4160
- const result = await _chunkXOBLFIGVcjs.executePolymarketSafeTransfer.call(void 0, {
4185
+ const result = await _chunk4IOQIWDYcjs.executePolymarketSafeTransfer.call(void 0, {
4161
4186
  walletClient,
4162
4187
  publicClient,
4163
4188
  safeAddress: metadata.proxyWallet,
@@ -4176,17 +4201,17 @@ var polymarketProvider = {
4176
4201
  function buildAsset(params) {
4177
4202
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4178
4203
  const isPusd = tokenKind === "pusd";
4179
- const tokenAddress = isPusd ? _chunkXOBLFIGVcjs.POLYMARKET_PUSD_ADDRESS : _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS;
4204
+ const tokenAddress = isPusd ? _chunk4IOQIWDYcjs.POLYMARKET_PUSD_ADDRESS : _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS;
4180
4205
  const symbol = isPusd ? "pUSD" : "USDC.e";
4181
4206
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4182
4207
  const metadata = { proxyWallet, tokenKind, walletKind };
4183
4208
  return {
4184
4209
  id: `polymarket:${tokenKind}`,
4185
- chainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
4210
+ chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4186
4211
  token: tokenAddress,
4187
4212
  symbol,
4188
4213
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4189
- icon: isPusd ? _chunkXOBLFIGVcjs.POLYMARKET_ICON_URL : void 0,
4214
+ icon: isPusd ? _chunk4IOQIWDYcjs.POLYMARKET_ICON_URL : void 0,
4190
4215
  decimals: 6,
4191
4216
  balance: balance.toString(),
4192
4217
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4196,8 +4221,8 @@ function buildAsset(params) {
4196
4221
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4197
4222
  // arrives at the smart account, so it's also what the orchestrator
4198
4223
  // bridges from.
4199
- depositToken: _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS,
4200
- depositChainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
4224
+ depositToken: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4225
+ depositChainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4201
4226
  providerMetadata: metadata
4202
4227
  };
4203
4228
  }
@@ -5143,15 +5168,15 @@ var SetupError = class extends Error {
5143
5168
  }
5144
5169
  };
5145
5170
  async function resolveSessionOwner(eoaAddress) {
5146
- const local = _chunkUN6MEOOAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5171
+ const local = _chunkIRI34U6Ncjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5147
5172
  if (local) {
5148
5173
  return {
5149
- account: _chunkUN6MEOOAcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5174
+ account: _chunkIRI34U6Ncjs.accountFromPrivateKey.call(void 0, local.privateKey),
5150
5175
  address: local.address
5151
5176
  };
5152
5177
  }
5153
- const created = _chunkUN6MEOOAcjs.createSessionOwnerKey.call(void 0, );
5154
- _chunkUN6MEOOAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5178
+ const created = _chunkIRI34U6Ncjs.createSessionOwnerKey.call(void 0, );
5179
+ _chunkIRI34U6Ncjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5155
5180
  return { account: created.account, address: created.address };
5156
5181
  }
5157
5182
  function stableStringify(value) {
@@ -5218,7 +5243,7 @@ async function runAccountSetup(input, deps) {
5218
5243
  try {
5219
5244
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5220
5245
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5221
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5246
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5222
5247
  owner: input.ownerAddress,
5223
5248
  sessionOwner: sessionOwner.address,
5224
5249
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
@@ -5226,7 +5251,7 @@ async function runAccountSetup(input, deps) {
5226
5251
  const setup = await service.setupAccount({
5227
5252
  ownerAddress: input.ownerAddress,
5228
5253
  sessionOwnerAddress: sessionOwner.address,
5229
- targetChain: _chunkHH46H6ZIcjs.targetChainToCaip2.call(void 0, input.targetChain),
5254
+ targetChain: _chunkPUMTR35Ecjs.targetChainToCaip2.call(void 0, input.targetChain),
5230
5255
  targetToken: input.targetToken,
5231
5256
  recipient: input.recipient,
5232
5257
  outputTokenRules: input.outputTokenRules,
@@ -5264,7 +5289,7 @@ async function runAccountSetup(input, deps) {
5264
5289
  primaryType: typedData.primaryType,
5265
5290
  message: typedData.message
5266
5291
  });
5267
- const sessionDetails = _chunkUN6MEOOAcjs.buildSessionDetails.call(void 0,
5292
+ const sessionDetails = _chunkIRI34U6Ncjs.buildSessionDetails.call(void 0,
5268
5293
  setup.sessionDetailsUnsigned,
5269
5294
  signature
5270
5295
  );
@@ -5278,7 +5303,7 @@ async function runAccountSetup(input, deps) {
5278
5303
  eoaAddress: input.ownerAddress,
5279
5304
  sessionOwner: sessionOwner.address,
5280
5305
  target: {
5281
- chain: _chunkHH46H6ZIcjs.targetChainToCaip2.call(void 0, input.targetChain),
5306
+ chain: _chunkPUMTR35Ecjs.targetChainToCaip2.call(void 0, input.targetChain),
5282
5307
  token: input.targetToken,
5283
5308
  ...input.recipient && { recipient: input.recipient },
5284
5309
  ..._optionalChain([input, 'access', _142 => _142.outputTokenRules, 'optionalAccess', _143 => _143.length]) && {
@@ -5297,7 +5322,7 @@ async function runAccountSetup(input, deps) {
5297
5322
  isRegistered: true
5298
5323
  };
5299
5324
  } catch (error) {
5300
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5325
+ _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5301
5326
  owner: input.ownerAddress
5302
5327
  });
5303
5328
  if (error instanceof SetupError) throw error;
@@ -5308,7 +5333,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5308
5333
  const now = Date.now();
5309
5334
  const existing = setupRequestDedupe.get(requestKey);
5310
5335
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5311
- _chunkUN6MEOOAcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5336
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5312
5337
  owner: input.ownerAddress,
5313
5338
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5314
5339
  });
@@ -5550,7 +5575,12 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
5550
5575
  balanceUsd: d.balanceUsd
5551
5576
  };
5552
5577
  case "processing":
5553
- if (!smartAccount || !p.txHash || !d.amount || d.sourceChain === null || d.sourceChain === "unknown" || !d.sourceToken) {
5578
+ if (!smartAccount || !p.txHash || !d.amount || d.sourceChain === null || d.sourceChain === "unknown" || // HyperCore is a QR/deposit-address-only source (no wallet flow), so it
5579
+ // never dispatches `deposit/submitted` and never reaches this store
5580
+ // `processing` step — its completion is tracked by the DepositNotification
5581
+ // on the deposit-address screen. Excluding it here keeps `sourceChain`
5582
+ // narrowed to the EVM/Solana shape ProcessingStep expects.
5583
+ d.sourceChain === "hypercore" || !d.sourceToken) {
5554
5584
  return { type: "setup" };
5555
5585
  }
5556
5586
  return {
@@ -5601,7 +5631,7 @@ function DepositFlow({
5601
5631
  appBalanceUsd,
5602
5632
  outputTokenRules,
5603
5633
  rejectUnmapped,
5604
- signerAddress = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS,
5634
+ signerAddress = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS,
5605
5635
  sessionChainIds,
5606
5636
  forceRegister = false,
5607
5637
  enableSolana = true,
@@ -5625,11 +5655,11 @@ function DepositFlow({
5625
5655
  onError,
5626
5656
  debug
5627
5657
  }) {
5628
- const rpcUrls = _chunkUN6MEOOAcjs.useRpcUrls.call(void 0, );
5629
- const onStepChangeRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onStepChange);
5630
- const onEventRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onEvent);
5631
- const onLifecycleRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onLifecycle);
5632
- const onErrorRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onError);
5658
+ const rpcUrls = _chunkIRI34U6Ncjs.useRpcUrls.call(void 0, );
5659
+ const onStepChangeRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onStepChange);
5660
+ const onEventRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onEvent);
5661
+ const onLifecycleRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onLifecycle);
5662
+ const onErrorRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onError);
5633
5663
  const storeApi = useDepositStoreApi();
5634
5664
  const flowSlice = useDepositStore((s) => s.flow);
5635
5665
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5646,13 +5676,13 @@ function DepositFlow({
5646
5676
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5647
5677
  const logFlow = _react.useCallback.call(void 0,
5648
5678
  (message, data) => {
5649
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5679
+ _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5650
5680
  },
5651
5681
  [debug]
5652
5682
  );
5653
5683
  const logFlowError = _react.useCallback.call(void 0,
5654
5684
  (message, error, data) => {
5655
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5685
+ _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5656
5686
  },
5657
5687
  [debug]
5658
5688
  );
@@ -5757,9 +5787,9 @@ function DepositFlow({
5757
5787
  isConnectSelectionConfirmed,
5758
5788
  selectedWalletId
5759
5789
  ]);
5760
- const setupChainId = typeof targetChain === "number" && !_chunkHH46H6ZIcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5761
- const targetSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5762
- const isTargetStablecoin = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5790
+ const setupChainId = typeof targetChain === "number" && !_chunkPUMTR35Ecjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5791
+ const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5792
+ const isTargetStablecoin = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSymbol);
5763
5793
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5764
5794
  _react.useEffect.call(void 0, () => {
5765
5795
  targetMarketPriceRef.current = null;
@@ -5785,7 +5815,7 @@ function DepositFlow({
5785
5815
  return {
5786
5816
  ownerAddress: dappAddress,
5787
5817
  walletClient: void 0,
5788
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5818
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5789
5819
  switchChain: void 0
5790
5820
  };
5791
5821
  }
@@ -5794,7 +5824,7 @@ function DepositFlow({
5794
5824
  return {
5795
5825
  ownerAddress: dappWalletClient.account.address,
5796
5826
  walletClient: dappWalletClient,
5797
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5827
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5798
5828
  switchChain: dappSwitchChain
5799
5829
  };
5800
5830
  }
@@ -5808,7 +5838,7 @@ function DepositFlow({
5808
5838
  return {
5809
5839
  ownerAddress: dappAddress,
5810
5840
  walletClient: void 0,
5811
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5841
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5812
5842
  switchChain: void 0
5813
5843
  };
5814
5844
  }
@@ -5817,7 +5847,7 @@ function DepositFlow({
5817
5847
  return {
5818
5848
  ownerAddress: dappWalletClient.account.address,
5819
5849
  walletClient: dappWalletClient,
5820
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5850
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5821
5851
  switchChain: dappSwitchChain
5822
5852
  };
5823
5853
  }
@@ -5825,7 +5855,7 @@ function DepositFlow({
5825
5855
  return {
5826
5856
  ownerAddress: reownWallet.address,
5827
5857
  walletClient: reownWallet.walletClient,
5828
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5858
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5829
5859
  switchChain: reownWallet.switchChain
5830
5860
  };
5831
5861
  }
@@ -5864,7 +5894,7 @@ function DepositFlow({
5864
5894
  return {
5865
5895
  ownerAddress: dappAddress,
5866
5896
  walletClient: void 0,
5867
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5897
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5868
5898
  switchChain: void 0
5869
5899
  };
5870
5900
  }
@@ -6056,8 +6086,8 @@ function DepositFlow({
6056
6086
  pred_balance: totalBalanceUsd
6057
6087
  })]);
6058
6088
  } else if (effectiveStep.type === "deposit-address") {
6059
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
6060
- const tokenSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6089
+ const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
6090
+ const tokenSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6061
6091
  _optionalChain([onEventRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190({
6062
6092
  type: "deposit_modal_transfer_crypto_open",
6063
6093
  default_chain: chainName,
@@ -6065,7 +6095,7 @@ function DepositFlow({
6065
6095
  pred_balance: totalBalanceUsd
6066
6096
  })]);
6067
6097
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6068
- const receiveSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6098
+ const receiveSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6069
6099
  _optionalChain([onEventRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192({
6070
6100
  type: "deposit_modal_connected_wallet_enter_value_open",
6071
6101
  send_token: stepSendToken,
@@ -6183,7 +6213,7 @@ function DepositFlow({
6183
6213
  eoa: dappImportOwner,
6184
6214
  getPublicClient: (chainId) => {
6185
6215
  try {
6186
- return _chunkUN6MEOOAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6216
+ return _chunkIRI34U6Ncjs.getPublicClient.call(void 0, chainId, rpcUrls);
6187
6217
  } catch (e32) {
6188
6218
  return null;
6189
6219
  }
@@ -6490,7 +6520,7 @@ function DepositFlow({
6490
6520
  try {
6491
6521
  sessionOwner = await resolveSessionOwner(owner);
6492
6522
  } catch (error) {
6493
- _chunkUN6MEOOAcjs.debugError.call(void 0,
6523
+ _chunkIRI34U6Ncjs.debugError.call(void 0,
6494
6524
  debug,
6495
6525
  "deposit-flow",
6496
6526
  "session-owner:resolve-failed",
@@ -6652,8 +6682,8 @@ function DepositFlow({
6652
6682
  );
6653
6683
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6654
6684
  (token, sourceAmount, inputAmountUsd) => {
6655
- const targetSym = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6656
- const isTargetStable = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, targetSym);
6685
+ const targetSym = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6686
+ const isTargetStable = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSym);
6657
6687
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6658
6688
  logFlow("solana:amount:continue", {
6659
6689
  token: token.symbol,
@@ -6729,8 +6759,8 @@ function DepositFlow({
6729
6759
  activeOwner
6730
6760
  );
6731
6761
  if (entry.status !== "ready") return;
6732
- const targetSym = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6733
- const isTargetStable = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, targetSym);
6762
+ const targetSym = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6763
+ const isTargetStable = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSym);
6734
6764
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6735
6765
  storeApi.dispatch({
6736
6766
  type: "amount/entered",
@@ -6934,7 +6964,7 @@ function DepositFlow({
6934
6964
  );
6935
6965
  if (showConnectStep) {
6936
6966
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6937
- _chunkUN6MEOOAcjs.ConnectStep,
6967
+ _chunkIRI34U6Ncjs.ConnectStep,
6938
6968
  {
6939
6969
  walletRows,
6940
6970
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -7018,8 +7048,8 @@ function DepositFlow({
7018
7048
  onDepositComplete: handleDepositComplete,
7019
7049
  onDepositFailed: handleDepositFailed,
7020
7050
  onCopyAddress: () => {
7021
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
7022
- const tokenSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7051
+ const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
7052
+ const tokenSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7023
7053
  _optionalChain([onEvent, 'optionalCall', _238 => _238({
7024
7054
  type: "deposit_modal_transfer_crypto_cta_click",
7025
7055
  default_chain: chainName,
@@ -7067,7 +7097,7 @@ function DepositFlow({
7067
7097
  }
7068
7098
  ),
7069
7099
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7070
- _chunkUN6MEOOAcjs.ProcessingStep,
7100
+ _chunkIRI34U6Ncjs.ProcessingStep,
7071
7101
  {
7072
7102
  smartAccount: step.smartAccount,
7073
7103
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7139,7 +7169,7 @@ function DepositFlow({
7139
7169
  }
7140
7170
  ),
7141
7171
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7142
- _chunkUN6MEOOAcjs.ProcessingStep,
7172
+ _chunkIRI34U6Ncjs.ProcessingStep,
7143
7173
  {
7144
7174
  smartAccount: step.smartAccount,
7145
7175
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7206,11 +7236,8 @@ function DepositFlow({
7206
7236
  defaultAmount: effectiveStep.inputAmountUsd,
7207
7237
  uiConfig,
7208
7238
  targetChain,
7209
- targetChainName: _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain),
7210
- targetTokenSymbol: _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7211
- targetTokenIcon: _chunkHH46H6ZIcjs.getTokenIcon.call(void 0,
7212
- _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
7213
- ),
7239
+ targetChainName: _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain),
7240
+ targetTokenSymbol: _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7214
7241
  appBalanceUsd,
7215
7242
  onContinue: handleSolanaAmountContinue,
7216
7243
  debug
@@ -7272,7 +7299,7 @@ function DepositFlow({
7272
7299
  ) })
7273
7300
  ] }) : null,
7274
7301
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7275
- _chunkUN6MEOOAcjs.ProcessingStep,
7302
+ _chunkIRI34U6Ncjs.ProcessingStep,
7276
7303
  {
7277
7304
  smartAccount: effectiveStep.smartAccount,
7278
7305
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7326,7 +7353,7 @@ function DepositFlow({
7326
7353
  if (_optionalChain([signerContext, 'access', _251 => _251.publicClient, 'access', _252 => _252.chain, 'optionalAccess', _253 => _253.id]) === chainId) {
7327
7354
  return signerContext.publicClient;
7328
7355
  }
7329
- return _chunkUN6MEOOAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7356
+ return _chunkIRI34U6Ncjs.getPublicClient.call(void 0, chainId, rpcUrls);
7330
7357
  };
7331
7358
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7332
7359
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7382,7 +7409,7 @@ function DepositFlow({
7382
7409
  service,
7383
7410
  onContinue: handleAmountContinue,
7384
7411
  onCtaClick: (ctaName) => {
7385
- const receiveSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7412
+ const receiveSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7386
7413
  _optionalChain([onEvent, 'optionalCall', _257 => _257({
7387
7414
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7388
7415
  send_token: effectiveStep.asset.symbol,
@@ -7435,7 +7462,7 @@ function DepositFlow({
7435
7462
  }
7436
7463
  ),
7437
7464
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7438
- _chunkUN6MEOOAcjs.ProcessingStep,
7465
+ _chunkIRI34U6Ncjs.ProcessingStep,
7439
7466
  {
7440
7467
  smartAccount: effectiveStep.smartAccount,
7441
7468
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7488,8 +7515,9 @@ function formatDate(iso) {
7488
7515
  function resolveChainId(value) {
7489
7516
  if (value === void 0 || value === null) return null;
7490
7517
  if (typeof value === "number") return value;
7491
- if (_chunkHH46H6ZIcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7492
- const parsed = _chunkHH46H6ZIcjs.parseEvmChainId.call(void 0, value);
7518
+ if (_chunkPUMTR35Ecjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7519
+ if (_chunkPUMTR35Ecjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7520
+ const parsed = _chunkPUMTR35Ecjs.parseEvmChainId.call(void 0, value);
7493
7521
  if (parsed !== null) return parsed;
7494
7522
  const num = Number(value);
7495
7523
  return Number.isFinite(num) ? num : null;
@@ -7498,7 +7526,7 @@ function resolveTokenSymbol(token, chainId) {
7498
7526
  if (!token) return "";
7499
7527
  if (chainId === "solana") {
7500
7528
  const normalized = token.toLowerCase();
7501
- const matched = _chunkHH46H6ZIcjs.SOLANA_TOKENS.find(
7529
+ const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
7502
7530
  (entry) => entry.mint.toLowerCase() === normalized
7503
7531
  );
7504
7532
  if (matched) return matched.symbol;
@@ -7507,7 +7535,8 @@ function resolveTokenSymbol(token, chainId) {
7507
7535
  }
7508
7536
  }
7509
7537
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7510
- const sym = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, token, chainId);
7538
+ const evmChainId = chainId === "hypercore" ? _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID : chainId;
7539
+ const sym = _chunkPUMTR35Ecjs.getTokenSymbol.call(void 0, token, evmChainId);
7511
7540
  if (sym !== "Token") return sym;
7512
7541
  }
7513
7542
  return shortenHash(token);
@@ -7518,7 +7547,7 @@ function formatAmount(rawAmount, token, chainId) {
7518
7547
  if (token && chainId !== null && chainId !== void 0) {
7519
7548
  if (chainId === "solana") {
7520
7549
  const normalized = token.toLowerCase();
7521
- const matched = _chunkHH46H6ZIcjs.SOLANA_TOKENS.find(
7550
+ const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
7522
7551
  (entry) => entry.mint.toLowerCase() === normalized
7523
7552
  );
7524
7553
  if (matched) {
@@ -7527,7 +7556,8 @@ function formatAmount(rawAmount, token, chainId) {
7527
7556
  decimals = 9;
7528
7557
  }
7529
7558
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7530
- decimals = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
7559
+ const evmChainId = chainId === "hypercore" ? _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID : chainId;
7560
+ decimals = _chunkPUMTR35Ecjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
7531
7561
  }
7532
7562
  }
7533
7563
  try {
@@ -7545,7 +7575,7 @@ function formatAmount(rawAmount, token, chainId) {
7545
7575
  }
7546
7576
  function getTxExplorerUrl(txHash, chainId) {
7547
7577
  if (!chainId) return null;
7548
- const base2 = _chunkHH46H6ZIcjs.getExplorerUrl.call(void 0, chainId);
7578
+ const base2 = _chunkPUMTR35Ecjs.getExplorerUrl.call(void 0, chainId);
7549
7579
  if (!base2) return null;
7550
7580
  return `${base2}/tx/${txHash}`;
7551
7581
  }
@@ -7610,7 +7640,7 @@ function DepositHistoryPanel({
7610
7640
  className: "rs-modal-header-back",
7611
7641
  "aria-label": "Back",
7612
7642
  onClick: onClose,
7613
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronLeftIcon, {})
7643
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronLeftIcon, {})
7614
7644
  }
7615
7645
  ) }),
7616
7646
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7620,29 +7650,29 @@ function DepositHistoryPanel({
7620
7650
  className: "rs-modal-close",
7621
7651
  "aria-label": "Close",
7622
7652
  onClick: onCloseModal,
7623
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
7653
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
7624
7654
  }
7625
7655
  ) })
7626
7656
  ] }),
7627
7657
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7628
7658
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {}), title: "History" }),
7659
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}), title: "History" }),
7630
7660
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7631
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {}) }),
7661
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}) }),
7632
7662
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7633
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-spinner--sm" }),
7663
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-spinner--sm" }),
7634
7664
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7635
7665
  ] })
7636
7666
  ] }),
7637
7667
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7638
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.AlertTriangleIcon, {}) }),
7668
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.AlertTriangleIcon, {}) }),
7639
7669
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7640
7670
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7641
7671
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7642
7672
  ] })
7643
7673
  ] }),
7644
7674
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7645
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {}) }),
7675
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}) }),
7646
7676
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7647
7677
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7648
7678
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7662,7 +7692,7 @@ function DepositHistoryPanel({
7662
7692
  )
7663
7693
  ] })
7664
7694
  ] }),
7665
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
7695
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
7666
7696
  ] })
7667
7697
  ]
7668
7698
  }
@@ -7673,12 +7703,11 @@ function HistoryCard({ deposit }) {
7673
7703
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7674
7704
  const sourceChainId = resolveChainId(deposit.chain);
7675
7705
  const targetChainId = resolveChainId(deposit.targetChain);
7676
- const sourceChainName = sourceChainId ? _chunkHH46H6ZIcjs.getChainName.call(void 0, sourceChainId) : null;
7677
- const targetChainName = targetChainId ? _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChainId) : null;
7678
- const sourceChainIcon = sourceChainId ? _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7679
- const targetChainIcon = targetChainId ? _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7706
+ const sourceChainName = sourceChainId ? _chunkPUMTR35Ecjs.getChainName.call(void 0, sourceChainId) : null;
7707
+ const targetChainName = targetChainId ? _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChainId) : null;
7708
+ const sourceChainIcon = sourceChainId ? _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7709
+ const targetChainIcon = targetChainId ? _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChainId) : void 0;
7680
7710
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7681
- const sourceTokenIcon = sourceSymbol ? _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7682
7711
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7683
7712
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
7684
7713
  const displayAmount = formattedAmount ? sourceSymbol && /^USD/.test(sourceSymbol) ? `$${Number(formattedAmount).toLocaleString("en-US", {
@@ -7687,7 +7716,8 @@ function HistoryCard({ deposit }) {
7687
7716
  })}` : `${formattedAmount} ${sourceSymbol}` : "\u2014";
7688
7717
  const date = deposit.createdAt ? formatDate(deposit.createdAt) : null;
7689
7718
  const txTypeLabel = `Deposit${sourceSymbol ? ` ${sourceSymbol}` : ""}`;
7690
- const srcTxUrl = deposit.sourceTxHash ? getTxExplorerUrl(deposit.sourceTxHash, sourceChainId) : null;
7719
+ const srcTxHash = sourceChainId === "hypercore" ? deposit.txHash : deposit.sourceTxHash;
7720
+ const srcTxUrl = srcTxHash ? getTxExplorerUrl(srcTxHash, sourceChainId) : null;
7691
7721
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7692
7722
  "button",
7693
7723
  {
@@ -7698,7 +7728,7 @@ function HistoryCard({ deposit }) {
7698
7728
  children: [
7699
7729
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
7700
7730
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
7701
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: sourceTokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) : sourceSymbol.slice(0, 2) }),
7731
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
7702
7732
  sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
7703
7733
  ] }),
7704
7734
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
@@ -7725,7 +7755,7 @@ function HistoryCard({ deposit }) {
7725
7755
  targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
7726
7756
  ] })
7727
7757
  ] }),
7728
- srcTxUrl && deposit.sourceTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
7758
+ srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
7729
7759
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Transaction details" }),
7730
7760
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7731
7761
  "a",
@@ -7736,8 +7766,8 @@ function HistoryCard({ deposit }) {
7736
7766
  className: "rs-history-card-link",
7737
7767
  onClick: (e) => e.stopPropagation(),
7738
7768
  children: [
7739
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7740
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ArrowUpRightIcon, {})
7769
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
7770
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ArrowUpRightIcon, {})
7741
7771
  ]
7742
7772
  }
7743
7773
  )
@@ -7752,7 +7782,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7752
7782
  // src/DepositModal.tsx
7753
7783
 
7754
7784
  var ReownDepositInner = _react.lazy.call(void 0,
7755
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-CHVDFNEX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7785
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-J5YFZKFS.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7756
7786
  );
7757
7787
  function sortByCreatedAtDesc(items) {
7758
7788
  return [...items].sort((a, b) => {
@@ -7801,9 +7831,9 @@ function DepositModalInner({
7801
7831
  defaultAmount,
7802
7832
  recipient,
7803
7833
  appBalanceUsd,
7804
- backendUrl = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL,
7834
+ backendUrl = _chunkPUMTR35Ecjs.DEFAULT_BACKEND_URL,
7805
7835
  rpcUrls: rpcUrlsProp,
7806
- signerAddress = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS,
7836
+ signerAddress = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS,
7807
7837
  sessionChainIds,
7808
7838
  forceRegister = false,
7809
7839
  enableSolana = true,
@@ -7830,7 +7860,7 @@ function DepositModalInner({
7830
7860
  debug
7831
7861
  }) {
7832
7862
  const modalRef = _react.useRef.call(void 0, null);
7833
- const onReadyRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onReady);
7863
+ const onReadyRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onReady);
7834
7864
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7835
7865
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
7836
7866
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
@@ -7847,20 +7877,20 @@ function DepositModalInner({
7847
7877
  const cursorRef = _react.useRef.call(void 0, null);
7848
7878
  const historyStaleRef = _react.useRef.call(void 0, false);
7849
7879
  const historyLoadedRef = _react.useRef.call(void 0, false);
7850
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkHH46H6ZIcjs.getChainId.call(void 0, targetChainProp);
7851
- const sourceChain = sourceChainProp ? _chunkHH46H6ZIcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7852
- const rpcUrls = _chunkUN6MEOOAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7880
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkPUMTR35Ecjs.getChainId.call(void 0, targetChainProp);
7881
+ const sourceChain = sourceChainProp ? _chunkPUMTR35Ecjs.getChainId.call(void 0, sourceChainProp) : void 0;
7882
+ const rpcUrls = _chunkIRI34U6Ncjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7853
7883
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7854
- const onErrorRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onError);
7884
+ const onErrorRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onError);
7855
7885
  _react.useEffect.call(void 0, () => {
7856
- if (targetChain !== _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7886
+ if (targetChain !== _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7857
7887
  setRecipientIsContract(false);
7858
7888
  return;
7859
7889
  }
7860
7890
  let cancelled = false;
7861
- _chunkUN6MEOOAcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7891
+ _chunkIRI34U6Ncjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7862
7892
  if (cancelled) return;
7863
- const isContract = _chunkHH46H6ZIcjs.isContractBytecode.call(void 0, code);
7893
+ const isContract = _chunkPUMTR35Ecjs.isContractBytecode.call(void 0, code);
7864
7894
  setRecipientIsContract(isContract);
7865
7895
  if (isContract) {
7866
7896
  _optionalChain([onErrorRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
@@ -7876,7 +7906,7 @@ function DepositModalInner({
7876
7906
  };
7877
7907
  }, [targetChain, recipient, onErrorRef, rpcUrls]);
7878
7908
  const service = _react.useMemo.call(void 0,
7879
- () => _chunkUN6MEOOAcjs.createDepositService.call(void 0, backendUrl, {
7909
+ () => _chunkIRI34U6Ncjs.createDepositService.call(void 0, backendUrl, {
7880
7910
  debug,
7881
7911
  debugScope: "service:deposit"
7882
7912
  }),
@@ -7910,7 +7940,7 @@ function DepositModalInner({
7910
7940
  }, [store, targetChain, targetToken]);
7911
7941
  _react.useEffect.call(void 0, () => {
7912
7942
  if (isOpen && modalRef.current) {
7913
- _chunkUN6MEOOAcjs.applyTheme.call(void 0, modalRef.current, theme);
7943
+ _chunkIRI34U6Ncjs.applyTheme.call(void 0, modalRef.current, theme);
7914
7944
  }
7915
7945
  }, [isOpen, theme]);
7916
7946
  _react.useEffect.call(void 0, () => {
@@ -7991,7 +8021,7 @@ function DepositModalInner({
7991
8021
  fetchHistory("initial");
7992
8022
  }
7993
8023
  }, [historyOpen, fetchHistory]);
7994
- const onLifecycleRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onLifecycle);
8024
+ const onLifecycleRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onLifecycle);
7995
8025
  const handleLifecycle = _react.useCallback.call(void 0,
7996
8026
  (event) => {
7997
8027
  _optionalChain([onLifecycleRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267(event)]);
@@ -8027,8 +8057,8 @@ function DepositModalInner({
8027
8057
  const canGoBack = backHandler !== void 0;
8028
8058
  const hideHeaderChrome = swappedImmersive;
8029
8059
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8030
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8031
- _chunkUN6MEOOAcjs.Modal,
8060
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8061
+ _chunkIRI34U6Ncjs.Modal,
8032
8062
  {
8033
8063
  isOpen,
8034
8064
  onClose,
@@ -8044,7 +8074,7 @@ function DepositModalInner({
8044
8074
  className: "rs-modal-header-back",
8045
8075
  "aria-label": "Go back",
8046
8076
  onClick: backHandler,
8047
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronLeftIcon, {})
8077
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronLeftIcon, {})
8048
8078
  }
8049
8079
  ) }),
8050
8080
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8056,7 +8086,7 @@ function DepositModalInner({
8056
8086
  "aria-label": "Deposit history",
8057
8087
  onClick: handleHistoryOpen,
8058
8088
  disabled: !recipient,
8059
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {})
8089
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {})
8060
8090
  }
8061
8091
  ),
8062
8092
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8066,12 +8096,12 @@ function DepositModalInner({
8066
8096
  onClick: onClose,
8067
8097
  className: "rs-modal-close",
8068
8098
  "aria-label": "Close",
8069
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
8099
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
8070
8100
  }
8071
8101
  )
8072
8102
  ] })
8073
8103
  ] }),
8074
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.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,
8104
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8075
8105
  DepositFlow,
8076
8106
  {
8077
8107
  dappWalletClient,