@rhinestone/deposit-modal 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{DepositModalReown-RZ6VSMKP.mjs → DepositModalReown-4BSHOQ5Y.mjs} +6 -6
  2. package/dist/{DepositModalReown-J5YFZKFS.cjs → DepositModalReown-UND3DEJH.cjs} +9 -9
  3. package/dist/{WithdrawModalReown-4YUV2WWV.mjs → WithdrawModalReown-FVXSSGY5.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-B6BGY52S.cjs → WithdrawModalReown-TVZWJKQI.cjs} +8 -8
  5. package/dist/{chunk-LXTAAHPC.mjs → chunk-2JPB3PLB.mjs} +2 -2
  6. package/dist/{chunk-4IOQIWDY.cjs → chunk-4NN7UTWQ.cjs} +4 -4
  7. package/dist/{chunk-5S5BQ2GM.mjs → chunk-7KHEIMWD.mjs} +24 -11
  8. package/dist/{chunk-IRI34U6N.cjs → chunk-7OKA6GNA.cjs} +255 -137
  9. package/dist/{chunk-XLXJW44N.cjs → chunk-D3Y7ZBED.cjs} +349 -336
  10. package/dist/{chunk-YLIPI3NU.mjs → chunk-DABKCJVL.mjs} +1 -1
  11. package/dist/{chunk-JRFPKFL6.cjs → chunk-HQWZCOMS.cjs} +105 -98
  12. package/dist/{chunk-RXWJ267K.mjs → chunk-NASHLEVQ.mjs} +165 -47
  13. package/dist/{chunk-SX52FXKH.mjs → chunk-O5OKA27M.mjs} +7 -0
  14. package/dist/{chunk-VURI4G2Z.cjs → chunk-Q3W53BKR.cjs} +7 -7
  15. package/dist/{chunk-7JJ4EFDY.mjs → chunk-T43VUEJH.mjs} +12 -5
  16. package/dist/{chunk-PUMTR35E.cjs → chunk-U7SVYWVD.cjs} +8 -1
  17. package/dist/{chunk-TYB6AA6D.mjs → chunk-WK5AFRSP.mjs} +1 -1
  18. package/dist/{chunk-WL7AXYQ4.cjs → chunk-XRWQMIBY.cjs} +3 -3
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.mjs +1 -1
  21. package/dist/deposit.cjs +6 -6
  22. package/dist/deposit.mjs +5 -5
  23. package/dist/index.cjs +7 -7
  24. package/dist/index.mjs +6 -6
  25. package/dist/polymarket.cjs +6 -6
  26. package/dist/polymarket.mjs +3 -3
  27. package/dist/styles.css +29 -0
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
10
+ var _chunk4NN7UTWQcjs = require('./chunk-4NN7UTWQ.cjs');
11
11
 
12
12
 
13
13
 
@@ -69,13 +69,13 @@ var _chunk4IOQIWDYcjs = require('./chunk-4IOQIWDY.cjs');
69
69
 
70
70
 
71
71
 
72
- var _chunkIRI34U6Ncjs = require('./chunk-IRI34U6N.cjs');
73
72
 
74
73
 
75
- var _chunkWL7AXYQ4cjs = require('./chunk-WL7AXYQ4.cjs');
76
74
 
75
+ var _chunk7OKA6GNAcjs = require('./chunk-7OKA6GNA.cjs');
77
76
 
78
77
 
78
+ var _chunkXRWQMIBYcjs = require('./chunk-XRWQMIBY.cjs');
79
79
 
80
80
 
81
81
 
@@ -104,7 +104,10 @@ var _chunkWL7AXYQ4cjs = require('./chunk-WL7AXYQ4.cjs');
104
104
 
105
105
 
106
106
 
107
- var _chunkPUMTR35Ecjs = require('./chunk-PUMTR35E.cjs');
107
+
108
+
109
+
110
+ var _chunkU7SVYWVDcjs = require('./chunk-U7SVYWVD.cjs');
108
111
 
109
112
  // src/DepositModal.tsx
110
113
 
@@ -149,12 +152,12 @@ function AssetSelectStep({
149
152
  const [error, setError] = _react.useState.call(void 0, null);
150
153
  const defaultAssetId = _react.useMemo.call(void 0, () => {
151
154
  if (!defaultSourceChain || !defaultSourceToken) return null;
152
- return _chunkIRI34U6Ncjs.getAssetId.call(void 0, {
155
+ return _chunk7OKA6GNAcjs.getAssetId.call(void 0, {
153
156
  chainId: defaultSourceChain,
154
157
  token: defaultSourceToken
155
158
  });
156
159
  }, [defaultSourceChain, defaultSourceToken]);
157
- const onTotalBalanceComputedRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onTotalBalanceComputed);
160
+ const onTotalBalanceComputedRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
158
161
  _react.useEffect.call(void 0, () => {
159
162
  let active = true;
160
163
  function emitAssetsUpdate(currentAssets) {
@@ -174,11 +177,11 @@ function AssetSelectStep({
174
177
  try {
175
178
  const portfolio = await service.fetchPortfolio(address);
176
179
  if (!active) return;
177
- const portfolioAssets = _chunkIRI34U6Ncjs.portfolioToAssets.call(void 0, portfolio.tokens);
180
+ const portfolioAssets = _chunk7OKA6GNAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
178
181
  setAssets(portfolioAssets);
179
182
  emitAssetsUpdate(portfolioAssets);
180
183
  const hasNative = portfolioAssets.some(
181
- (asset) => asset.token.toLowerCase() === _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS
184
+ (asset) => asset.token.toLowerCase() === _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS
182
185
  );
183
186
  if (!hasNative) {
184
187
  const nativeAssets = await fetchNativeAssets(
@@ -225,9 +228,9 @@ function AssetSelectStep({
225
228
  if (allowedChainSet && !allowedChainSet.has(a.chainId)) return false;
226
229
  if (allowedTokenSet) {
227
230
  if (!allowedTokenSet.has(a.symbol.toUpperCase())) return false;
228
- if (!_chunkPUMTR35Ecjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
231
+ if (!_chunkU7SVYWVDcjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
229
232
  }
230
- const isNativeToken = a.token.toLowerCase() === _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS;
233
+ const isNativeToken = a.token.toLowerCase() === _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS;
231
234
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
232
235
  return false;
233
236
  return true;
@@ -255,7 +258,7 @@ function AssetSelectStep({
255
258
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
256
259
  const numeric = Number(raw);
257
260
  if (!Number.isFinite(numeric)) return raw;
258
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
261
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
259
262
  } catch (e3) {
260
263
  return asset.balance;
261
264
  }
@@ -263,20 +266,20 @@ function AssetSelectStep({
263
266
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
264
267
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
265
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
266
- _chunkIRI34U6Ncjs.BodyHeader,
269
+ _chunk7OKA6GNAcjs.BodyHeader,
267
270
  {
268
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
271
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
269
272
  title: "Your assets",
270
273
  subtitle: "Select source assets to transfer"
271
274
  }
272
275
  ),
273
276
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
274
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-text-tertiary" }),
277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-text-tertiary" }),
275
278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
276
279
  ] }),
277
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
280
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
278
281
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, { className: "rs-empty-icon" }),
282
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, { className: "rs-empty-icon" }),
280
283
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
281
284
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
282
285
  address.slice(0, 6),
@@ -296,8 +299,8 @@ function AssetSelectStep({
296
299
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
297
300
  const isSelected = selectedAssetId === asset.id;
298
301
  const tokenAmount = formatBalance(asset);
299
- const badge = _chunkPUMTR35Ecjs.getChainBadge.call(void 0, asset.chainId);
300
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
302
+ const badge = _chunkU7SVYWVDcjs.getChainBadge.call(void 0, asset.chainId);
303
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
301
304
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
302
305
  "button",
303
306
  {
@@ -309,7 +312,7 @@ function AssetSelectStep({
309
312
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
310
313
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
311
314
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
312
- _chunkIRI34U6Ncjs.TokenIcon,
315
+ _chunk7OKA6GNAcjs.TokenIcon,
313
316
  {
314
317
  symbol: asset.symbol,
315
318
  fallback: asset.symbol.slice(0, 4)
@@ -319,7 +322,7 @@ function AssetSelectStep({
319
322
  "img",
320
323
  {
321
324
  src: chainIcon,
322
- alt: _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
325
+ alt: _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
323
326
  }
324
327
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
325
328
  "span",
@@ -338,7 +341,7 @@ function AssetSelectStep({
338
341
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
339
342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
340
343
  "on ",
341
- _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
344
+ _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
342
345
  ] })
343
346
  ] }),
344
347
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -348,14 +351,14 @@ function AssetSelectStep({
348
351
  ] })
349
352
  ] })
350
353
  ] }),
351
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkIRI34U6Ncjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
352
355
  ]
353
356
  },
354
357
  asset.id
355
358
  );
356
359
  }) }),
357
360
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
358
- _chunkIRI34U6Ncjs.Button,
361
+ _chunk7OKA6GNAcjs.Button,
359
362
  {
360
363
  onClick: () => selectedAsset && onContinue(selectedAsset),
361
364
  disabled: !selectedAsset,
@@ -364,27 +367,27 @@ function AssetSelectStep({
364
367
  }
365
368
  )
366
369
  ] }),
367
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
370
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
368
371
  ] });
369
372
  }
370
373
  async function fetchNativeAssets(address, publicClient, existing) {
371
374
  const existingIds = new Set(existing.map((asset) => asset.id));
372
375
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
373
376
  if (!connectedChainId) return [];
374
- if (!_chunkPUMTR35Ecjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
375
- const id = _chunkIRI34U6Ncjs.getAssetId.call(void 0, {
377
+ if (!_chunkU7SVYWVDcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
378
+ const id = _chunk7OKA6GNAcjs.getAssetId.call(void 0, {
376
379
  chainId: connectedChainId,
377
- token: _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS
380
+ token: _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS
378
381
  });
379
382
  if (existingIds.has(id)) return [];
380
383
  try {
381
384
  const balance = await publicClient.getBalance({ address });
382
- const nativeSymbol = _chunkPUMTR35Ecjs.getNativeSymbol.call(void 0, connectedChainId);
385
+ const nativeSymbol = _chunkU7SVYWVDcjs.getNativeSymbol.call(void 0, connectedChainId);
383
386
  return [
384
387
  {
385
388
  id,
386
389
  chainId: connectedChainId,
387
- token: _chunkPUMTR35Ecjs.NATIVE_TOKEN_ADDRESS,
390
+ token: _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS,
388
391
  symbol: nativeSymbol,
389
392
  name: nativeSymbol,
390
393
  decimals: 18,
@@ -545,8 +548,8 @@ function AmountStep({
545
548
  const chainMismatch = Boolean(
546
549
  _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
547
550
  );
548
- const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
549
- const isSourceStablecoin = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, asset.symbol);
551
+ const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
552
+ const isSourceStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, asset.symbol);
550
553
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
551
554
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
552
555
  return tokenPriceUsdOverride;
@@ -570,7 +573,7 @@ function AmountStep({
570
573
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
571
574
  if (!balanceTarget || !publicClient) return;
572
575
  try {
573
- const bal = _chunkIRI34U6Ncjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
576
+ const bal = _chunk7OKA6GNAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
574
577
  address: asset.token,
575
578
  abi: _viem.erc20Abi,
576
579
  functionName: "balanceOf",
@@ -591,7 +594,7 @@ function AmountStep({
591
594
  hasAttemptedSwitch.current = true;
592
595
  switchChain(asset.chainId).catch((err) => {
593
596
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
594
- setError(_chunkIRI34U6Ncjs.formatUserError.call(void 0, raw));
597
+ setError(_chunk7OKA6GNAcjs.formatUserError.call(void 0, raw));
595
598
  });
596
599
  }
597
600
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -644,7 +647,7 @@ function AmountStep({
644
647
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
645
648
  const numeric = Number(raw);
646
649
  if (!Number.isFinite(numeric)) return raw;
647
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
650
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
648
651
  } catch (e8) {
649
652
  return "\u2026";
650
653
  }
@@ -663,7 +666,7 @@ function AmountStep({
663
666
  return null;
664
667
  }
665
668
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
666
- const minDepositUsd = targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
669
+ const minDepositUsd = targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
667
670
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
668
671
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
669
672
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -759,11 +762,11 @@ function AmountStep({
759
762
  };
760
763
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
761
764
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
762
- const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId);
763
- const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
765
+ const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId);
766
+ const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
764
767
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
765
768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
766
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Wallet deposit" }),
769
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Wallet deposit" }),
767
770
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
768
771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
769
772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -783,13 +786,13 @@ function AmountStep({
783
786
  " available",
784
787
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
785
788
  " (~",
786
- _chunkIRI34U6Ncjs.currencyFormatter.format(balanceUsd),
789
+ _chunk7OKA6GNAcjs.currencyFormatter.format(balanceUsd),
787
790
  ")"
788
791
  ] })
789
792
  ] }),
790
793
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
791
794
  "Min. deposit ",
792
- _chunkIRI34U6Ncjs.currencyFormatter.format(minDepositUsd)
795
+ _chunk7OKA6GNAcjs.currencyFormatter.format(minDepositUsd)
793
796
  ] })
794
797
  ] })
795
798
  ] }),
@@ -814,7 +817,7 @@ function AmountStep({
814
817
  " ",
815
818
  asset.symbol
816
819
  ] }),
817
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: asset.symbol }) })
820
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: asset.symbol }) })
818
821
  ] })
819
822
  ] }),
820
823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -825,18 +828,18 @@ function AmountStep({
825
828
  " ",
826
829
  targetSymbol
827
830
  ] }),
828
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetSymbol }) })
831
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
829
832
  ] })
830
833
  ] }),
831
834
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
832
835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
833
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkIRI34U6Ncjs.currencyFormatter.format(balanceAfterUsd) })
836
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7OKA6GNAcjs.currencyFormatter.format(balanceAfterUsd) })
834
837
  ] })
835
838
  ] }),
836
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
837
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
839
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
840
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
838
841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
839
- _chunkIRI34U6Ncjs.Button,
842
+ _chunk7OKA6GNAcjs.Button,
840
843
  {
841
844
  onClick: handleContinue,
842
845
  fullWidth: true,
@@ -847,7 +850,7 @@ function AmountStep({
847
850
  }
848
851
  )
849
852
  ] }),
850
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
853
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
851
854
  ] });
852
855
  }
853
856
 
@@ -887,26 +890,30 @@ function ConfirmStep({
887
890
  _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
888
891
  );
889
892
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
890
- const targetSymbol = sameRoute ? asset.symbol : _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
891
- const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId);
892
- const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
893
- const sourceChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
894
- const targetChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChain);
895
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkIRI34U6Ncjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
893
+ const targetSymbol = sameRoute ? asset.symbol : _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
894
+ const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId);
895
+ const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
896
+ const sourceChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
897
+ const targetChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChain);
898
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunk7OKA6GNAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
896
899
  const receiveDisplay = (() => {
897
900
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
898
901
  if (quote) {
899
- const quoted = _chunkIRI34U6Ncjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
902
+ const quoted = _chunk7OKA6GNAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
900
903
  if (quoted !== void 0) return quoted;
901
904
  }
902
905
  const usdValue = Number(targetAmount);
903
906
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
904
- const estimate = _chunkIRI34U6Ncjs.formatReceiveEstimate.call(void 0, {
907
+ const estimate = _chunk7OKA6GNAcjs.formatReceiveEstimate.call(void 0, {
905
908
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
906
909
  sourceSymbol: asset.symbol,
907
910
  targetSymbol,
908
911
  sourceAmountUsd,
909
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
912
+ sourceTrusted: _chunk7OKA6GNAcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
913
+ // The target is the curated deposit destination, so a stablecoin target
914
+ // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
915
+ // target prices). Not applied to the source — that can be a held token.
916
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk7OKA6GNAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
910
917
  });
911
918
  if (estimate !== void 0) return estimate;
912
919
  return targetSymbol;
@@ -920,7 +927,7 @@ function ConfirmStep({
920
927
  hasAttemptedSwitch.current = true;
921
928
  switchChain(asset.chainId).catch((err) => {
922
929
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
923
- setError(_chunkIRI34U6Ncjs.formatUserError.call(void 0, raw));
930
+ setError(_chunk7OKA6GNAcjs.formatUserError.call(void 0, raw));
924
931
  });
925
932
  }
926
933
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -1000,7 +1007,7 @@ function ConfirmStep({
1000
1007
  const result = await executeTransfer(amountUnits);
1001
1008
  hash = result.txHash;
1002
1009
  resolvedSourceToken = result.sourceToken;
1003
- } else if (_chunkIRI34U6Ncjs.isNativeAsset.call(void 0, asset)) {
1010
+ } else if (_chunk7OKA6GNAcjs.isNativeAsset.call(void 0, asset)) {
1004
1011
  hash = await walletClient.sendTransaction({
1005
1012
  account,
1006
1013
  chain,
@@ -1027,7 +1034,7 @@ function ConfirmStep({
1027
1034
  );
1028
1035
  } catch (err) {
1029
1036
  const raw = err instanceof Error ? err.message : "Transfer failed";
1030
- const message = _chunkIRI34U6Ncjs.formatUserError.call(void 0, raw);
1037
+ const message = _chunk7OKA6GNAcjs.formatUserError.call(void 0, raw);
1031
1038
  setError(message);
1032
1039
  _optionalChain([onError, 'optionalCall', _31 => _31(message, "TRANSFER_ERROR")]);
1033
1040
  } finally {
@@ -1036,7 +1043,7 @@ function ConfirmStep({
1036
1043
  };
1037
1044
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1038
1045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1039
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Review deposit" }),
1046
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Review deposit" }),
1040
1047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1041
1048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1042
1049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1064,14 +1071,14 @@ function ConfirmStep({
1064
1071
  " ",
1065
1072
  asset.symbol
1066
1073
  ] }),
1067
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: asset.symbol }) })
1074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: asset.symbol }) })
1068
1075
  ] })
1069
1076
  ] }),
1070
1077
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1071
1078
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1072
1079
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1073
1080
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1074
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetSymbol }) })
1081
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
1075
1082
  ] })
1076
1083
  ] }),
1077
1084
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1090,14 +1097,14 @@ function ConfirmStep({
1090
1097
  children: feeDisplay
1091
1098
  }
1092
1099
  ),
1093
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, {}) }) })
1100
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, {}) }) })
1094
1101
  ] })
1095
1102
  ] })
1096
1103
  ] }),
1097
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1098
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
1104
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1105
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
1099
1106
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1100
- _chunkIRI34U6Ncjs.Button,
1107
+ _chunk7OKA6GNAcjs.Button,
1101
1108
  {
1102
1109
  onClick: handleConfirm,
1103
1110
  loading: isSubmitting,
@@ -1108,7 +1115,7 @@ function ConfirmStep({
1108
1115
  }
1109
1116
  )
1110
1117
  ] }),
1111
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
1118
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
1112
1119
  ] });
1113
1120
  }
1114
1121
 
@@ -1131,9 +1138,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1131
1138
  var MAX_POLL_INTERVAL = 3e4;
1132
1139
  var BACKOFF_MULTIPLIER = 1.5;
1133
1140
  function isEventForTx(event, txHash) {
1134
- const eventTxHash = _chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event);
1141
+ const eventTxHash = _chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event);
1135
1142
  if (!eventTxHash) return false;
1136
- return _chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1143
+ return _chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1137
1144
  }
1138
1145
  function truncateHash(hash) {
1139
1146
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1183,7 +1190,7 @@ function formatBridgeFailedMessage(event) {
1183
1190
  }
1184
1191
  return "Bridge failed";
1185
1192
  }
1186
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1193
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1187
1194
  function DepositNotification({
1188
1195
  deposit,
1189
1196
  smartAccount,
@@ -1217,7 +1224,7 @@ function DepositNotification({
1217
1224
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1218
1225
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1219
1226
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1220
- const depositContextRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, {
1227
+ const depositContextRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, {
1221
1228
  amount,
1222
1229
  sourceChain,
1223
1230
  sourceToken: token,
@@ -1225,8 +1232,8 @@ function DepositNotification({
1225
1232
  targetChain,
1226
1233
  targetToken
1227
1234
  });
1228
- const onCompleteRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onComplete);
1229
- const onFailedRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onFailed);
1235
+ const onCompleteRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onComplete);
1236
+ const onFailedRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onFailed);
1230
1237
  const handleComplete = _react.useCallback.call(void 0,
1231
1238
  (destTxHash) => {
1232
1239
  if (completedRef.current) return;
@@ -1317,11 +1324,11 @@ function DepositNotification({
1317
1324
  status,
1318
1325
  txHash
1319
1326
  ]);
1320
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkPUMTR35Ecjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1321
- const destExplorerUrl = destinationTxHash ? _chunkPUMTR35Ecjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1327
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkU7SVYWVDcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1328
+ const destExplorerUrl = destinationTxHash ? _chunkU7SVYWVDcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1322
1329
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1323
1330
  const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
1324
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1331
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1325
1332
  "svg",
1326
1333
  {
1327
1334
  className: "rs-deposit-notification-spinner",
@@ -1371,7 +1378,7 @@ function DepositNotification({
1371
1378
  className: "rs-deposit-notification-close",
1372
1379
  onClick: () => onDismiss(deposit.id),
1373
1380
  "aria-label": "Dismiss",
1374
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
1381
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
1375
1382
  }
1376
1383
  )
1377
1384
  ] }),
@@ -1387,7 +1394,7 @@ function DepositNotification({
1387
1394
  "aria-expanded": expanded,
1388
1395
  children: [
1389
1396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1390
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1391
1398
  ]
1392
1399
  }
1393
1400
  ),
@@ -1477,7 +1484,7 @@ function asString(value) {
1477
1484
  function resolveSolanaTokenMeta(token) {
1478
1485
  if (!token) return {};
1479
1486
  const normalized = token.toLowerCase();
1480
- const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
1487
+ const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
1481
1488
  (entry) => entry.mint.toLowerCase() === normalized
1482
1489
  );
1483
1490
  if (matched) {
@@ -1520,24 +1527,24 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1520
1527
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1521
1528
  }
1522
1529
  function chainLabel(chainId) {
1523
- return _chunkPUMTR35Ecjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1530
+ return _chunkU7SVYWVDcjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1524
1531
  }
1525
1532
  function computeTokensForChain(chainId, allowedTokenSet, topTokens) {
1526
1533
  const fromBackend = _optionalChain([topTokens, 'optionalAccess', _53 => _53[String(chainId)], 'optionalAccess', _54 => _54.map, 'call', _55 => _55((t) => t.symbol)]);
1527
- const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkPUMTR35Ecjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1534
+ const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkU7SVYWVDcjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1528
1535
  // HyperCore accepts USDC + USDT0 as origin tokens (native Hyperliquid L1
1529
1536
  // spot transfers); it has no EVM source-chain matrix entry.
1530
- chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1537
+ chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1531
1538
  ))));
1532
1539
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1533
1540
  }
1534
1541
  function resolveSourceTokenAddress(symbol, chainId, topTokens) {
1535
1542
  const top = _optionalChain([topTokens, 'optionalAccess', _56 => _56[String(chainId)], 'optionalAccess', _57 => _57.find, 'call', _58 => _58((t) => t.symbol === symbol)]);
1536
- return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkPUMTR35Ecjs.getTokenAddress.call(void 0, symbol, chainId)));
1543
+ return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkU7SVYWVDcjs.getTokenAddress.call(void 0, symbol, chainId)));
1537
1544
  }
1538
1545
  function TokenGlyph({ symbol }) {
1539
1546
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1540
- _chunkIRI34U6Ncjs.TokenIcon,
1547
+ _chunk7OKA6GNAcjs.TokenIcon,
1541
1548
  {
1542
1549
  symbol,
1543
1550
  className: "rs-deposit-address-dropdown-icon",
@@ -1574,21 +1581,21 @@ function DepositAddressStep({
1574
1581
  [_optionalChain([allowedRoutes, 'optionalAccess', _63 => _63.sourceTokens])]
1575
1582
  );
1576
1583
  const evmChainIds = _react.useMemo.call(void 0, () => {
1577
- const all = _chunkPUMTR35Ecjs.getSupportedChainIds.call(void 0, );
1584
+ const all = _chunkU7SVYWVDcjs.getSupportedChainIds.call(void 0, );
1578
1585
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1579
1586
  }, [allowedChainSet]);
1580
1587
  const chainOptions = _react.useMemo.call(void 0, () => {
1581
1588
  const options = [...evmChainIds];
1582
1589
  const extras = [];
1583
1590
  if (hasSolana) extras.push("solana");
1584
- if (!allowedChainSet || allowedChainSet.has(_chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID)) {
1591
+ if (!allowedChainSet || allowedChainSet.has(_chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID)) {
1585
1592
  extras.push("hypercore");
1586
1593
  }
1587
1594
  options.splice(1, 0, ...extras);
1588
1595
  return options;
1589
1596
  }, [evmChainIds, hasSolana, allowedChainSet]);
1590
1597
  const BASE_CHAIN_ID2 = 8453;
1591
- const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1598
+ const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1592
1599
  (s) => allowedTokenSet.has(s.toUpperCase())
1593
1600
  );
1594
1601
  const evmDefault = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
@@ -1787,10 +1794,10 @@ function DepositAddressStep({
1787
1794
  return;
1788
1795
  }
1789
1796
  const event = status.lastEvent;
1790
- const eventTxHash = _chunkIRI34U6Ncjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1797
+ const eventTxHash = _chunk7OKA6GNAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1791
1798
  if (baselineTxHashRef.current === void 0) {
1792
1799
  baselineTxHashRef.current = eventTxHash;
1793
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1800
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1794
1801
  const details = getDepositEventDetails(event);
1795
1802
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1796
1803
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1799,7 +1806,7 @@ function DepositAddressStep({
1799
1806
  baselineTxHashRef.current = eventTxHash;
1800
1807
  isTrackingRef.current = true;
1801
1808
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1802
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkPUMTR35Ecjs.findTokenDecimals.call(void 0,
1809
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkU7SVYWVDcjs.findTokenDecimals.call(void 0,
1803
1810
  token,
1804
1811
  typeof chainId === "number" ? chainId : void 0
1805
1812
  ) : void 0)));
@@ -1864,10 +1871,10 @@ function DepositAddressStep({
1864
1871
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1865
1872
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1866
1873
  }, []);
1867
- const qrIconSrc = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId);
1874
+ const qrIconSrc = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId);
1868
1875
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1869
1876
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1870
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1877
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1871
1878
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1872
1879
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1873
1880
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1882,16 +1889,16 @@ function DepositAddressStep({
1882
1889
  setTokenDropdownOpen(false);
1883
1890
  },
1884
1891
  children: [
1885
- _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
+ _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1886
1893
  "img",
1887
1894
  {
1888
- src: _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId),
1895
+ src: _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId),
1889
1896
  alt: "",
1890
1897
  className: "rs-deposit-address-dropdown-icon"
1891
1898
  }
1892
1899
  ),
1893
1900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
1894
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1895
1902
  ]
1896
1903
  }
1897
1904
  ),
@@ -1902,10 +1909,10 @@ function DepositAddressStep({
1902
1909
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1903
1910
  onClick: () => handleSelectChain(chainId),
1904
1911
  children: [
1905
- _chunkPUMTR35Ecjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1912
+ _chunkU7SVYWVDcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1906
1913
  "img",
1907
1914
  {
1908
- src: _chunkPUMTR35Ecjs.getChainIcon.call(void 0, chainId),
1915
+ src: _chunkU7SVYWVDcjs.getChainIcon.call(void 0, chainId),
1909
1916
  alt: "",
1910
1917
  className: "rs-deposit-address-dropdown-icon"
1911
1918
  }
@@ -1921,9 +1928,9 @@ function DepositAddressStep({
1921
1928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1922
1929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1923
1930
  "Min.$",
1924
- (targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1925
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1926
- _chunkIRI34U6Ncjs.InfoIcon,
1931
+ (targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1932
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1933
+ _chunk7OKA6GNAcjs.InfoIcon,
1927
1934
  {
1928
1935
  className: "rs-deposit-address-min-icon",
1929
1936
  "aria-hidden": "true"
@@ -1944,7 +1951,7 @@ function DepositAddressStep({
1944
1951
  children: [
1945
1952
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
1946
1953
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1947
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1954
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1948
1955
  ]
1949
1956
  }
1950
1957
  ),
@@ -1988,7 +1995,7 @@ function DepositAddressStep({
1988
1995
  className: "rs-deposit-address-copy",
1989
1996
  onClick: handleCopy,
1990
1997
  children: [
1991
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CopyIcon, {}),
1998
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CopyIcon, {}),
1992
1999
  copied ? "Copied!" : "Copy address"
1993
2000
  ]
1994
2001
  }
@@ -1996,7 +2003,7 @@ function DepositAddressStep({
1996
2003
  ]
1997
2004
  }
1998
2005
  ),
1999
- targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2006
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2000
2007
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2001
2008
  "div",
2002
2009
  {
@@ -2014,16 +2021,16 @@ function DepositAddressStep({
2014
2021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2015
2022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2016
2023
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2017
- _chunkIRI34U6Ncjs.Tooltip,
2024
+ _chunk7OKA6GNAcjs.Tooltip,
2018
2025
  {
2019
2026
  className: "rs-price-impact-info",
2020
2027
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2021
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2028
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2022
2029
  }
2023
2030
  )
2024
2031
  ] }),
2025
2032
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2026
- _chunkIRI34U6Ncjs.ChevronDownIcon,
2033
+ _chunk7OKA6GNAcjs.ChevronDownIcon,
2027
2034
  {
2028
2035
  className: "rs-price-impact-chevron",
2029
2036
  "aria-hidden": "true"
@@ -2034,29 +2041,29 @@ function DepositAddressStep({
2034
2041
  ),
2035
2042
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-price-impact-panel", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-panel-inner", children: [
2036
2043
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PercentIcon, {}) }),
2044
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PercentIcon, {}) }),
2038
2045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2039
2046
  "Max slippage: ",
2040
2047
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2041
2048
  ] }),
2042
2049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2043
- _chunkIRI34U6Ncjs.Tooltip,
2050
+ _chunk7OKA6GNAcjs.Tooltip,
2044
2051
  {
2045
2052
  className: "rs-price-impact-info",
2046
2053
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2047
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2054
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2048
2055
  }
2049
2056
  )
2050
2057
  ] }),
2051
2058
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2052
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ClockIcon, {}) }),
2059
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ClockIcon, {}) }),
2053
2060
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2054
2061
  "Processing time: ",
2055
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2056
2063
  ] })
2057
2064
  ] }),
2058
2065
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2059
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PlusCircleIcon, {}) }),
2066
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PlusCircleIcon, {}) }),
2060
2067
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2061
2068
  "Max deposit:",
2062
2069
  " ",
@@ -2087,7 +2094,7 @@ function DepositAddressStep({
2087
2094
  },
2088
2095
  deposit.id
2089
2096
  )) }),
2090
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2091
2098
  ] });
2092
2099
  }
2093
2100
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2135,7 +2142,7 @@ function FinalisingDepositStep() {
2135
2142
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2136
2143
  ] })
2137
2144
  ] }),
2138
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2145
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2139
2146
  ] });
2140
2147
  }
2141
2148
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2165,7 +2172,7 @@ function SwappedOrderTracker({
2165
2172
  ];
2166
2173
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2167
2174
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2168
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HandCoinsIcon, {}), title }),
2175
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HandCoinsIcon, {}), title }),
2169
2176
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2170
2177
  const status = stepStates[idx];
2171
2178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2179,7 +2186,7 @@ function SwappedOrderTracker({
2179
2186
  {
2180
2187
  className: "rs-swapped-tracker-step-marker",
2181
2188
  "aria-hidden": "true",
2182
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2189
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2183
2190
  "svg",
2184
2191
  {
2185
2192
  className: "rs-swapped-tracker-step-ring",
@@ -2214,7 +2221,7 @@ function SwappedOrderTracker({
2214
2221
  }
2215
2222
  )
2216
2223
  ] }),
2217
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2218
2225
  ] });
2219
2226
  }
2220
2227
  function formatTrackerAmount(amount) {
@@ -2414,10 +2421,10 @@ function SwappedIframeStep({
2414
2421
  const status = await service.fetchLatestStatus(smartAccount);
2415
2422
  if (cancelled) return;
2416
2423
  const event = status.lastEvent;
2417
- const eventTxHash = _chunkIRI34U6Ncjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkIRI34U6Ncjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2424
+ const eventTxHash = _chunk7OKA6GNAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2418
2425
  if (baselineDepositTxHashRef.current === void 0) {
2419
2426
  baselineDepositTxHashRef.current = eventTxHash;
2420
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkIRI34U6Ncjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2427
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2421
2428
  currentDepositTxHashRef.current = eventTxHash;
2422
2429
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2423
2430
  }
@@ -2491,10 +2498,10 @@ function SwappedIframeStep({
2491
2498
  [orderState, latestEvent]
2492
2499
  );
2493
2500
  const terminalState = _react.useMemo.call(void 0, () => {
2494
- if (_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2501
+ if (_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2495
2502
  return {
2496
2503
  kind: "failed",
2497
- message: _chunkIRI34U6Ncjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2504
+ message: _chunk7OKA6GNAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2498
2505
  };
2499
2506
  }
2500
2507
  if (_optionalChain([orderState, 'optionalAccess', _97 => _97.status]) === "order_cancelled") {
@@ -2517,7 +2524,7 @@ function SwappedIframeStep({
2517
2524
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _99 => _99.orderCrypto]), () => ( null)),
2518
2525
  // Base-unit source amount from the deposit row/event, consistent with the
2519
2526
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2520
- amount: _nullishCoalesce(_chunkIRI34U6Ncjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2527
+ amount: _nullishCoalesce(_chunk7OKA6GNAcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2521
2528
  expectedOrderUuid: expectedOrderUuidRef.current,
2522
2529
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
2523
2530
  };
@@ -2528,14 +2535,14 @@ function SwappedIframeStep({
2528
2535
  }, [latestEvent, orderState, smartAccount]);
2529
2536
  _react.useEffect.call(void 0, () => {
2530
2537
  if (failedFiredRef.current || completeFiredRef.current) return;
2531
- if (!_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2538
+ if (!_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2532
2539
  const txHash = currentDepositTxHashRef.current;
2533
2540
  if (!txHash) return;
2534
2541
  failedFiredRef.current = true;
2535
2542
  setPhase("tracker");
2536
2543
  _optionalChain([onSwappedFailedRef, 'access', _100 => _100.current, 'optionalCall', _101 => _101(
2537
2544
  txHash,
2538
- _chunkIRI34U6Ncjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2545
+ _chunk7OKA6GNAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2539
2546
  )]);
2540
2547
  }, [latestEvent]);
2541
2548
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
@@ -2574,7 +2581,7 @@ function SwappedIframeStep({
2574
2581
  }
2575
2582
  )
2576
2583
  ] }),
2577
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, {}) }),
2584
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) }),
2578
2585
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2579
2586
  "iframe",
2580
2587
  {
@@ -2589,11 +2596,11 @@ function SwappedIframeStep({
2589
2596
  retryToken
2590
2597
  )
2591
2598
  ] }) }),
2592
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2599
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2593
2600
  ] });
2594
2601
  }
2595
2602
  function deriveStepStates(swappedStatus, latestEvent) {
2596
- if (_chunkIRI34U6Ncjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2603
+ if (_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2597
2604
  return ["complete", "complete", "failed", "pending"];
2598
2605
  }
2599
2606
  if (swappedStatus === "order_cancelled") {
@@ -2769,7 +2776,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2769
2776
  function ExchangeLogo({ exchange }) {
2770
2777
  const [failed, setFailed] = _react.useState.call(void 0, false);
2771
2778
  if (!exchange.logoUrl || failed) {
2772
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BankIcon, {});
2779
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BankIcon, {});
2773
2780
  }
2774
2781
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2775
2782
  "img",
@@ -2815,14 +2822,14 @@ function ExchangeSelectStep({
2815
2822
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2816
2823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2817
2824
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2818
- _chunkIRI34U6Ncjs.BodyHeader,
2825
+ _chunk7OKA6GNAcjs.BodyHeader,
2819
2826
  {
2820
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.UnplugIcon, {}),
2827
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.UnplugIcon, {}),
2821
2828
  title: "Connect exchange",
2822
2829
  subtitle: "Select an exchange to connect"
2823
2830
  }
2824
2831
  ),
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, {}) }),
2832
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) }),
2826
2833
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2827
2834
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2828
2835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2848,7 +2855,7 @@ function ExchangeSelectStep({
2848
2855
  )
2849
2856
  ] }),
2850
2857
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2851
- const brand = _chunkIRI34U6Ncjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2858
+ const brand = _chunk7OKA6GNAcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2852
2859
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2853
2860
  "button",
2854
2861
  {
@@ -2871,7 +2878,7 @@ function ExchangeSelectStep({
2871
2878
  );
2872
2879
  }) })
2873
2880
  ] }),
2874
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
2881
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2875
2882
  ] });
2876
2883
  }
2877
2884
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2886,21 +2893,21 @@ function DepositAddressSkeleton({
2886
2893
  const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _111 => _111.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2887
2894
  const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _112 => _112.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2888
2895
  const evmChainIds = (() => {
2889
- const all = _chunkPUMTR35Ecjs.getSupportedChainIds.call(void 0, );
2896
+ const all = _chunkU7SVYWVDcjs.getSupportedChainIds.call(void 0, );
2890
2897
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2891
2898
  })();
2892
2899
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2893
2900
  const tokensForChain = (() => {
2894
- const all = _chunkPUMTR35Ecjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2901
+ const all = _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2895
2902
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2896
2903
  })();
2897
2904
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2898
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, defaultChainId);
2899
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, defaultChainId);
2905
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, defaultChainId);
2906
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, defaultChainId);
2900
2907
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2901
2908
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2902
2909
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2903
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2910
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2904
2911
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2905
2912
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2906
2913
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2914,7 +2921,7 @@ function DepositAddressSkeleton({
2914
2921
  }
2915
2922
  ),
2916
2923
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2917
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2924
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2918
2925
  ] })
2919
2926
  ] }),
2920
2927
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2923,8 +2930,8 @@ function DepositAddressSkeleton({
2923
2930
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2924
2931
  "Min.$",
2925
2932
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.minDepositUsd]), () => ( 0.1))).toFixed(2),
2926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2927
- _chunkIRI34U6Ncjs.InfoIcon,
2933
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2934
+ _chunk7OKA6GNAcjs.InfoIcon,
2928
2935
  {
2929
2936
  className: "rs-deposit-address-min-icon",
2930
2937
  "aria-hidden": "true"
@@ -2934,14 +2941,14 @@ function DepositAddressSkeleton({
2934
2941
  ] }),
2935
2942
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2936
2943
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2937
- _chunkIRI34U6Ncjs.TokenIcon,
2944
+ _chunk7OKA6GNAcjs.TokenIcon,
2938
2945
  {
2939
2946
  symbol: defaultToken,
2940
2947
  className: "rs-deposit-address-dropdown-icon"
2941
2948
  }
2942
2949
  ),
2943
2950
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2944
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2951
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2945
2952
  ] })
2946
2953
  ] })
2947
2954
  ] }),
@@ -2962,7 +2969,7 @@ function DepositAddressSkeleton({
2962
2969
  disabled: true,
2963
2970
  "aria-hidden": "true",
2964
2971
  children: [
2965
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CopyIcon, {}),
2972
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CopyIcon, {}),
2966
2973
  "Copy address"
2967
2974
  ]
2968
2975
  }
@@ -2975,16 +2982,16 @@ function DepositAddressSkeleton({
2975
2982
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2976
2983
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2977
2984
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2978
- _chunkIRI34U6Ncjs.Tooltip,
2985
+ _chunk7OKA6GNAcjs.Tooltip,
2979
2986
  {
2980
2987
  className: "rs-price-impact-info",
2981
2988
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2982
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.InfoIcon, { "aria-hidden": "true" })
2989
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2983
2990
  }
2984
2991
  )
2985
2992
  ] }),
2986
2993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2987
- _chunkIRI34U6Ncjs.ChevronDownIcon,
2994
+ _chunk7OKA6GNAcjs.ChevronDownIcon,
2988
2995
  {
2989
2996
  className: "rs-price-impact-chevron",
2990
2997
  "aria-hidden": "true"
@@ -2992,7 +2999,7 @@ function DepositAddressSkeleton({
2992
2999
  )
2993
3000
  ] }) })
2994
3001
  ] }),
2995
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3002
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2996
3003
  ] });
2997
3004
  }
2998
3005
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3024,14 +3031,14 @@ function SolanaTokenSelectStep({
3024
3031
  setError(null);
3025
3032
  const portfolioBySymbol = {};
3026
3033
  try {
3027
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3034
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3028
3035
  solanaAddress
3029
3036
  });
3030
3037
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
3031
3038
  if (!active) return;
3032
3039
  for (const t of portfolio.tokens) {
3033
3040
  const symbol = t.symbol.toUpperCase();
3034
- if (!_chunkPUMTR35Ecjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3041
+ if (!_chunkU7SVYWVDcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3035
3042
  let parsed = 0n;
3036
3043
  try {
3037
3044
  parsed = BigInt(t.balance || "0");
@@ -3047,12 +3054,12 @@ function SolanaTokenSelectStep({
3047
3054
  };
3048
3055
  }
3049
3056
  }
3050
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3057
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3051
3058
  symbols: Object.keys(portfolioBySymbol)
3052
3059
  });
3053
3060
  } catch (err) {
3054
3061
  if (!active) return;
3055
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3062
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3056
3063
  solanaAddress
3057
3064
  });
3058
3065
  setError(
@@ -3063,7 +3070,7 @@ function SolanaTokenSelectStep({
3063
3070
  return;
3064
3071
  }
3065
3072
  const results = [];
3066
- for (const token of _chunkPUMTR35Ecjs.SOLANA_TOKENS) {
3073
+ for (const token of _chunkU7SVYWVDcjs.SOLANA_TOKENS) {
3067
3074
  const fromPortfolio = portfolioBySymbol[token.symbol];
3068
3075
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3069
3076
  results.push({
@@ -3099,30 +3106,30 @@ function SolanaTokenSelectStep({
3099
3106
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3100
3107
  const numeric = Number(raw);
3101
3108
  if (!Number.isFinite(numeric)) return raw;
3102
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
3109
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
3103
3110
  } catch (e22) {
3104
3111
  return "--";
3105
3112
  }
3106
3113
  };
3107
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, "solana");
3108
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, "solana");
3114
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, "solana");
3115
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, "solana");
3109
3116
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3110
3117
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3111
3118
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3112
- _chunkIRI34U6Ncjs.BodyHeader,
3119
+ _chunk7OKA6GNAcjs.BodyHeader,
3113
3120
  {
3114
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3121
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3115
3122
  title: "Your assets",
3116
3123
  subtitle: "Select source assets to transfer"
3117
3124
  }
3118
3125
  ),
3119
3126
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3120
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-text-tertiary" }),
3127
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-text-tertiary" }),
3121
3128
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3122
3129
  ] }),
3123
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3130
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3124
3131
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3125
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, { className: "rs-empty-icon" }),
3132
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, { className: "rs-empty-icon" }),
3126
3133
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3127
3134
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3128
3135
  solanaAddress.slice(0, 6),
@@ -3153,7 +3160,7 @@ function SolanaTokenSelectStep({
3153
3160
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3154
3161
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3155
3162
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3156
- _chunkIRI34U6Ncjs.TokenIcon,
3163
+ _chunk7OKA6GNAcjs.TokenIcon,
3157
3164
  {
3158
3165
  symbol: entry.token.symbol,
3159
3166
  fallback: entry.token.symbol.slice(0, 4)
@@ -3176,14 +3183,14 @@ function SolanaTokenSelectStep({
3176
3183
  ] })
3177
3184
  ] })
3178
3185
  ] }),
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}` : "--" })
3186
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3180
3187
  ]
3181
3188
  },
3182
3189
  entry.token.symbol
3183
3190
  );
3184
3191
  }) }),
3185
3192
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3186
- _chunkIRI34U6Ncjs.Button,
3193
+ _chunk7OKA6GNAcjs.Button,
3187
3194
  {
3188
3195
  onClick: () => selectedEntry && onContinue(
3189
3196
  selectedEntry.token,
@@ -3196,7 +3203,7 @@ function SolanaTokenSelectStep({
3196
3203
  }
3197
3204
  )
3198
3205
  ] }),
3199
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3200
3207
  ] });
3201
3208
  }
3202
3209
 
@@ -3227,7 +3234,7 @@ function SolanaAmountStep({
3227
3234
  const [amount, setAmount] = _react.useState.call(void 0, "");
3228
3235
  const [error, setError] = _react.useState.call(void 0, null);
3229
3236
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3230
- const isSourceStablecoin = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, token.symbol);
3237
+ const isSourceStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, token.symbol);
3231
3238
  const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _115 => _115.trim, 'call', _116 => _116(), 'access', _117 => _117.toLowerCase, 'call', _118 => _118()]) === "max";
3232
3239
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3233
3240
  if (isSourceStablecoin) return 1;
@@ -3248,7 +3255,7 @@ function SolanaAmountStep({
3248
3255
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3249
3256
  const numeric = Number(raw);
3250
3257
  if (!Number.isFinite(numeric)) return raw;
3251
- return _chunkIRI34U6Ncjs.tokenFormatter.format(numeric);
3258
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
3252
3259
  } catch (e24) {
3253
3260
  return "\u2026";
3254
3261
  }
@@ -3265,7 +3272,7 @@ function SolanaAmountStep({
3265
3272
  }
3266
3273
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3267
3274
  const spendableBalance = _react.useMemo.call(void 0, () => {
3268
- if (!_chunkPUMTR35Ecjs.isNativeSol.call(void 0, token)) return balance;
3275
+ if (!_chunkU7SVYWVDcjs.isNativeSol.call(void 0, token)) return balance;
3269
3276
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3270
3277
  }, [balance, token]);
3271
3278
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3330,7 +3337,7 @@ function SolanaAmountStep({
3330
3337
  return null;
3331
3338
  }
3332
3339
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3333
- const minDepositUsd = targetChain === _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkPUMTR35Ecjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3340
+ const minDepositUsd = targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3334
3341
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _121 => _121.maxDepositUsd]), () => ( null));
3335
3342
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3336
3343
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
@@ -3341,7 +3348,7 @@ function SolanaAmountStep({
3341
3348
  const handlePresetClick = (percentage) => {
3342
3349
  const formatted = computePresetAmount(percentage);
3343
3350
  if (!formatted) return;
3344
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3351
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3345
3352
  percentage,
3346
3353
  symbol: token.symbol,
3347
3354
  formatted
@@ -3376,7 +3383,7 @@ function SolanaAmountStep({
3376
3383
  try {
3377
3384
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3378
3385
  } catch (e29) {
3379
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3386
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3380
3387
  amount,
3381
3388
  sourceAmount: sourceAmountStr,
3382
3389
  reason: "parse-units-failed"
@@ -3385,13 +3392,13 @@ function SolanaAmountStep({
3385
3392
  return;
3386
3393
  }
3387
3394
  if (amountInUnits > spendableBalance) {
3388
- const isReserveIssue = _chunkPUMTR35Ecjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3395
+ const isReserveIssue = _chunkU7SVYWVDcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3389
3396
  setError(
3390
3397
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3391
3398
  );
3392
3399
  return;
3393
3400
  }
3394
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3401
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3395
3402
  symbol: token.symbol,
3396
3403
  inputAmountUsd: amount,
3397
3404
  sourceAmount: sourceAmountStr,
@@ -3404,7 +3411,7 @@ function SolanaAmountStep({
3404
3411
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3405
3412
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3406
3413
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3407
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Wallet deposit" }),
3414
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3408
3415
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3409
3416
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3410
3417
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3424,13 +3431,13 @@ function SolanaAmountStep({
3424
3431
  " available",
3425
3432
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3426
3433
  " (~",
3427
- _chunkIRI34U6Ncjs.currencyFormatter.format(computedBalanceUsd),
3434
+ _chunk7OKA6GNAcjs.currencyFormatter.format(computedBalanceUsd),
3428
3435
  ")"
3429
3436
  ] })
3430
3437
  ] }),
3431
3438
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3432
3439
  "Min. deposit ",
3433
- _chunkIRI34U6Ncjs.currencyFormatter.format(minDepositUsd)
3440
+ _chunk7OKA6GNAcjs.currencyFormatter.format(minDepositUsd)
3434
3441
  ] })
3435
3442
  ] })
3436
3443
  ] }),
@@ -3453,7 +3460,7 @@ function SolanaAmountStep({
3453
3460
  "Solana ",
3454
3461
  token.symbol
3455
3462
  ] }),
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 }) })
3463
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: token.symbol }) })
3457
3464
  ] })
3458
3465
  ] }),
3459
3466
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -3464,18 +3471,18 @@ function SolanaAmountStep({
3464
3471
  " ",
3465
3472
  targetTokenSymbol
3466
3473
  ] }),
3467
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetTokenSymbol }) })
3474
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetTokenSymbol }) })
3468
3475
  ] })
3469
3476
  ] }),
3470
3477
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3471
3478
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3472
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkIRI34U6Ncjs.currencyFormatter.format(balanceAfterUsd) })
3479
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7OKA6GNAcjs.currencyFormatter.format(balanceAfterUsd) })
3473
3480
  ] })
3474
3481
  ] }),
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 }),
3482
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3483
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3477
3484
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3478
- _chunkIRI34U6Ncjs.Button,
3485
+ _chunk7OKA6GNAcjs.Button,
3479
3486
  {
3480
3487
  onClick: handleContinue,
3481
3488
  fullWidth: true,
@@ -3484,7 +3491,7 @@ function SolanaAmountStep({
3484
3491
  }
3485
3492
  )
3486
3493
  ] }),
3487
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3494
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3488
3495
  ] });
3489
3496
  }
3490
3497
 
@@ -3507,10 +3514,10 @@ var _spltoken = require('@solana/spl-token');
3507
3514
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3508
3515
  var cachedConnections = /* @__PURE__ */ new Map();
3509
3516
  function getSolanaRpcUrl(rpcUrls) {
3510
- return _nullishCoalesce(_chunkIRI34U6Ncjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3517
+ return _nullishCoalesce(_chunk7OKA6GNAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3511
3518
  }
3512
3519
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
3513
- return _chunkIRI34U6Ncjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3520
+ return _chunk7OKA6GNAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3514
3521
  }
3515
3522
  function getSolanaConnection(rpcUrls) {
3516
3523
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -3612,33 +3619,36 @@ function SolanaConfirmStep({
3612
3619
  onError,
3613
3620
  debug
3614
3621
  }) {
3615
- const rpcUrls = _chunkIRI34U6Ncjs.useRpcUrls.call(void 0, );
3622
+ const rpcUrls = _chunk7OKA6GNAcjs.useRpcUrls.call(void 0, );
3616
3623
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3617
3624
  const [error, setError] = _react.useState.call(void 0, null);
3618
- const targetSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3619
- const sourceChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, "solana");
3620
- const targetChainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
3621
- const sourceChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, "solana");
3622
- const targetChainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChain);
3625
+ const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3626
+ const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, "solana");
3627
+ const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
3628
+ const sourceChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, "solana");
3629
+ const targetChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChain);
3623
3630
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _122 => _122.feeSponsored]), () => ( false));
3624
3631
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _123 => _123.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3625
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkIRI34U6Ncjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3632
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunk7OKA6GNAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3626
3633
  const receiveDisplay = (() => {
3627
3634
  const usdValue = Number(targetAmount);
3628
3635
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3629
- const estimate = _chunkIRI34U6Ncjs.formatReceiveEstimate.call(void 0, {
3636
+ const estimate = _chunk7OKA6GNAcjs.formatReceiveEstimate.call(void 0, {
3630
3637
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3631
3638
  sourceSymbol: token.symbol,
3632
3639
  targetSymbol,
3633
3640
  sourceAmountUsd,
3634
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3641
+ sourceTrusted: _chunk7OKA6GNAcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
3642
+ // Curated stablecoin target estimates at $1 when unquoted; never applied
3643
+ // to the source (a held token). See ConfirmStep for the rationale.
3644
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk7OKA6GNAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
3635
3645
  });
3636
3646
  if (estimate !== void 0) return estimate;
3637
3647
  return targetSymbol;
3638
3648
  })();
3639
3649
  const handleConfirm = async () => {
3640
3650
  if (!solanaProvider) {
3641
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3651
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3642
3652
  reason: "missing-provider"
3643
3653
  });
3644
3654
  setError("Solana wallet not connected");
@@ -3646,7 +3656,7 @@ function SolanaConfirmStep({
3646
3656
  }
3647
3657
  const parsedAmount = parseFloat(sourceAmount);
3648
3658
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3649
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3659
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3650
3660
  reason: "invalid-amount",
3651
3661
  sourceAmount
3652
3662
  });
@@ -3655,7 +3665,7 @@ function SolanaConfirmStep({
3655
3665
  }
3656
3666
  setError(null);
3657
3667
  setIsSubmitting(true);
3658
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3668
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3659
3669
  smartAccount,
3660
3670
  solanaAddress,
3661
3671
  solanaDepositAddress,
@@ -3665,7 +3675,7 @@ function SolanaConfirmStep({
3665
3675
  });
3666
3676
  try {
3667
3677
  const check = await service.checkAccount(smartAccount);
3668
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3678
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3669
3679
  smartAccount,
3670
3680
  isRegistered: check.isRegistered,
3671
3681
  targetChain: check.targetChain,
@@ -3678,12 +3688,12 @@ function SolanaConfirmStep({
3678
3688
  }
3679
3689
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3680
3690
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3681
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3691
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3682
3692
  token: token.symbol,
3683
3693
  sourceAmount,
3684
3694
  amountUnits: amountUnits.toString()
3685
3695
  });
3686
- const transaction = _chunkPUMTR35Ecjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3696
+ const transaction = _chunkU7SVYWVDcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3687
3697
  connection,
3688
3698
  solanaAddress,
3689
3699
  solanaDepositAddress,
@@ -3695,7 +3705,7 @@ function SolanaConfirmStep({
3695
3705
  token.mint,
3696
3706
  amountUnits
3697
3707
  );
3698
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3708
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3699
3709
  token: token.symbol,
3700
3710
  instructionCount: transaction.instructions.length,
3701
3711
  feePayer: _optionalChain([transaction, 'access', _124 => _124.feePayer, 'optionalAccess', _125 => _125.toBase58, 'call', _126 => _126()]),
@@ -3706,15 +3716,15 @@ function SolanaConfirmStep({
3706
3716
  connection,
3707
3717
  transaction
3708
3718
  );
3709
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3719
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3710
3720
  txHash,
3711
3721
  amountUnits: amountUnits.toString()
3712
3722
  });
3713
3723
  onConfirm(txHash, amountUnits.toString());
3714
3724
  } catch (err) {
3715
3725
  const raw = err instanceof Error ? err.message : "Transfer failed";
3716
- const message = _chunkIRI34U6Ncjs.formatUserError.call(void 0, raw);
3717
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3726
+ const message = _chunk7OKA6GNAcjs.formatUserError.call(void 0, raw);
3727
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3718
3728
  smartAccount,
3719
3729
  token: token.symbol,
3720
3730
  sourceAmount
@@ -3727,7 +3737,7 @@ function SolanaConfirmStep({
3727
3737
  };
3728
3738
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3729
3739
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3730
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}), title: "Review deposit" }),
3740
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Review deposit" }),
3731
3741
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3732
3742
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3733
3743
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3755,14 +3765,14 @@ function SolanaConfirmStep({
3755
3765
  " ",
3756
3766
  token.symbol
3757
3767
  ] }),
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 }) })
3768
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: token.symbol }) })
3759
3769
  ] })
3760
3770
  ] }),
3761
3771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3762
3772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3763
3773
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3764
3774
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3765
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: targetSymbol }) })
3775
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
3766
3776
  ] })
3767
3777
  ] }),
3768
3778
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -3775,13 +3785,13 @@ function SolanaConfirmStep({
3775
3785
  children: "$0.04"
3776
3786
  }
3777
3787
  ),
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, {}) }) })
3788
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, {}) }) })
3779
3789
  ] })
3780
3790
  ] })
3781
3791
  ] }),
3782
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Callout, { variant: "error", children: error }),
3792
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3783
3793
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3784
- _chunkIRI34U6Ncjs.Button,
3794
+ _chunk7OKA6GNAcjs.Button,
3785
3795
  {
3786
3796
  onClick: handleConfirm,
3787
3797
  loading: isSubmitting,
@@ -3792,7 +3802,7 @@ function SolanaConfirmStep({
3792
3802
  }
3793
3803
  )
3794
3804
  ] }),
3795
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3805
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3796
3806
  ] });
3797
3807
  }
3798
3808
 
@@ -3806,21 +3816,21 @@ function DappImportAssetSelectStep({
3806
3816
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3807
3817
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3808
3818
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3809
- _chunkIRI34U6Ncjs.BodyHeader,
3819
+ _chunk7OKA6GNAcjs.BodyHeader,
3810
3820
  {
3811
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3821
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3812
3822
  title: `Transfer from ${sourceLabel}`,
3813
3823
  subtitle: "Pick the balance to import"
3814
3824
  }
3815
3825
  ),
3816
3826
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3817
- const tokenAmount = asset.balance ? _chunkIRI34U6Ncjs.tokenFormatter.format(
3827
+ const tokenAmount = asset.balance ? _chunk7OKA6GNAcjs.tokenFormatter.format(
3818
3828
  Number(asset.balance) / 10 ** asset.decimals
3819
3829
  ) : "0";
3820
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkIRI34U6Ncjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3830
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3821
3831
  const assetIcon = asset.icon;
3822
- const chainIcon = _chunkPUMTR35Ecjs.getChainIcon.call(void 0, asset.chainId);
3823
- const badge = _chunkPUMTR35Ecjs.getChainBadge.call(void 0, asset.chainId);
3832
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
3833
+ const badge = _chunkU7SVYWVDcjs.getChainBadge.call(void 0, asset.chainId);
3824
3834
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3825
3835
  "button",
3826
3836
  {
@@ -3831,7 +3841,7 @@ function DappImportAssetSelectStep({
3831
3841
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3832
3842
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3833
3843
  /* @__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,
3844
+ _chunk7OKA6GNAcjs.TokenIcon,
3835
3845
  {
3836
3846
  symbol: asset.symbol,
3837
3847
  fallback: asset.symbol.slice(0, 4)
@@ -3841,7 +3851,7 @@ function DappImportAssetSelectStep({
3841
3851
  "img",
3842
3852
  {
3843
3853
  src: chainIcon,
3844
- alt: _chunkPUMTR35Ecjs.getChainName.call(void 0, asset.chainId)
3854
+ alt: _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
3845
3855
  }
3846
3856
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3847
3857
  "span",
@@ -3874,7 +3884,7 @@ function DappImportAssetSelectStep({
3874
3884
  );
3875
3885
  }) })
3876
3886
  ] }),
3877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3887
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3878
3888
  ] });
3879
3889
  }
3880
3890
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3891,9 +3901,9 @@ function DappImportAssetSelectSkeleton({
3891
3901
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3892
3902
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3893
3903
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3894
- _chunkIRI34U6Ncjs.BodyHeader,
3904
+ _chunk7OKA6GNAcjs.BodyHeader,
3895
3905
  {
3896
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.WalletIcon, {}),
3906
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3897
3907
  title: `Transfer from ${sourceLabel}`,
3898
3908
  subtitle: "Pick the balance to import"
3899
3909
  }
@@ -3931,7 +3941,7 @@ function DappImportAssetSelectSkeleton({
3931
3941
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3932
3942
  }
3933
3943
  ) }),
3934
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
3944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3935
3945
  ] });
3936
3946
  }
3937
3947
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3988,7 +3998,7 @@ async function detectPolymarketWalletKind(params) {
3988
3998
  contracts: [
3989
3999
  {
3990
4000
  address: proxyWallet,
3991
- abi: _chunkWL7AXYQ4cjs.SAFE_ABI,
4001
+ abi: _chunkXRWQMIBYcjs.SAFE_ABI,
3992
4002
  functionName: "isOwner",
3993
4003
  args: [eoa]
3994
4004
  },
@@ -4021,7 +4031,7 @@ async function buildSignedDepositWalletBatch(params) {
4021
4031
  if (!account || !chain) {
4022
4032
  throw new Error("Wallet not connected");
4023
4033
  }
4024
- if (chain.id !== _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4034
+ if (chain.id !== _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4025
4035
  throw new Error("Switch to Polygon to sign");
4026
4036
  }
4027
4037
  const owner = await publicClient.readContract({
@@ -4066,14 +4076,14 @@ async function buildSignedDepositWalletBatch(params) {
4066
4076
  })),
4067
4077
  signature
4068
4078
  },
4069
- sourceToken: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4079
+ sourceToken: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4070
4080
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4071
4081
  };
4072
4082
  }
4073
4083
  function buildUsdceTransferCalls(recipient, amount) {
4074
4084
  return [
4075
4085
  {
4076
- target: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4086
+ target: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4077
4087
  value: 0n,
4078
4088
  data: _viem.encodeFunctionData.call(void 0, {
4079
4089
  abi: _viem.erc20Abi,
@@ -4086,21 +4096,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4086
4096
  function buildPusdUnwrapCalls(recipient, amount) {
4087
4097
  return [
4088
4098
  {
4089
- target: _chunk4IOQIWDYcjs.POLYMARKET_PUSD_ADDRESS,
4099
+ target: _chunk4NN7UTWQcjs.POLYMARKET_PUSD_ADDRESS,
4090
4100
  value: 0n,
4091
4101
  data: _viem.encodeFunctionData.call(void 0, {
4092
4102
  abi: _viem.erc20Abi,
4093
4103
  functionName: "approve",
4094
- args: [_chunk4IOQIWDYcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4104
+ args: [_chunk4NN7UTWQcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4095
4105
  })
4096
4106
  },
4097
4107
  {
4098
- target: _chunk4IOQIWDYcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4108
+ target: _chunk4NN7UTWQcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4099
4109
  value: 0n,
4100
4110
  data: _viem.encodeFunctionData.call(void 0, {
4101
4111
  abi: COLLATERAL_OFFRAMP_ABI,
4102
4112
  functionName: "unwrap",
4103
- args: [_chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4113
+ args: [_chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4104
4114
  })
4105
4115
  }
4106
4116
  ];
@@ -4113,18 +4123,18 @@ var polymarketProvider = {
4113
4123
  label: "Transfer from Polymarket",
4114
4124
  sourceLabel: "Polymarket",
4115
4125
  icon: _react.createElement.call(void 0, "img", {
4116
- src: _chunk4IOQIWDYcjs.POLYMARKET_ICON_URL,
4126
+ src: _chunk4NN7UTWQcjs.POLYMARKET_ICON_URL,
4117
4127
  alt: "Polymarket",
4118
4128
  style: { width: 24, height: 24, borderRadius: 6 }
4119
4129
  }),
4120
- chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4130
+ chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4121
4131
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4122
- const proxyWallet = await _chunk4IOQIWDYcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4132
+ const proxyWallet = await _chunk4NN7UTWQcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4123
4133
  if (!proxyWallet) return null;
4124
4134
  if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
4125
- const polygonClient = getPublicClient2(_chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID);
4135
+ const polygonClient = getPublicClient2(_chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID);
4126
4136
  if (!polygonClient) return null;
4127
- const balances = await _chunk4IOQIWDYcjs.readPolymarketBalances.call(void 0, {
4137
+ const balances = await _chunk4NN7UTWQcjs.readPolymarketBalances.call(void 0, {
4128
4138
  publicClient: polygonClient,
4129
4139
  proxyWallet
4130
4140
  });
@@ -4182,7 +4192,7 @@ var polymarketProvider = {
4182
4192
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4183
4193
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4184
4194
  }
4185
- const result = await _chunk4IOQIWDYcjs.executePolymarketSafeTransfer.call(void 0, {
4195
+ const result = await _chunk4NN7UTWQcjs.executePolymarketSafeTransfer.call(void 0, {
4186
4196
  walletClient,
4187
4197
  publicClient,
4188
4198
  safeAddress: metadata.proxyWallet,
@@ -4201,17 +4211,17 @@ var polymarketProvider = {
4201
4211
  function buildAsset(params) {
4202
4212
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4203
4213
  const isPusd = tokenKind === "pusd";
4204
- const tokenAddress = isPusd ? _chunk4IOQIWDYcjs.POLYMARKET_PUSD_ADDRESS : _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS;
4214
+ const tokenAddress = isPusd ? _chunk4NN7UTWQcjs.POLYMARKET_PUSD_ADDRESS : _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS;
4205
4215
  const symbol = isPusd ? "pUSD" : "USDC.e";
4206
4216
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4207
4217
  const metadata = { proxyWallet, tokenKind, walletKind };
4208
4218
  return {
4209
4219
  id: `polymarket:${tokenKind}`,
4210
- chainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4220
+ chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4211
4221
  token: tokenAddress,
4212
4222
  symbol,
4213
4223
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4214
- icon: isPusd ? _chunk4IOQIWDYcjs.POLYMARKET_ICON_URL : void 0,
4224
+ icon: isPusd ? _chunk4NN7UTWQcjs.POLYMARKET_ICON_URL : void 0,
4215
4225
  decimals: 6,
4216
4226
  balance: balance.toString(),
4217
4227
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4221,8 +4231,8 @@ function buildAsset(params) {
4221
4231
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4222
4232
  // arrives at the smart account, so it's also what the orchestrator
4223
4233
  // bridges from.
4224
- depositToken: _chunk4IOQIWDYcjs.POLYMARKET_USDCE_ADDRESS,
4225
- depositChainId: _chunk4IOQIWDYcjs.POLYMARKET_POLYGON_CHAIN_ID,
4234
+ depositToken: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4235
+ depositChainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4226
4236
  providerMetadata: metadata
4227
4237
  };
4228
4238
  }
@@ -5168,15 +5178,15 @@ var SetupError = class extends Error {
5168
5178
  }
5169
5179
  };
5170
5180
  async function resolveSessionOwner(eoaAddress) {
5171
- const local = _chunkIRI34U6Ncjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5181
+ const local = _chunk7OKA6GNAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5172
5182
  if (local) {
5173
5183
  return {
5174
- account: _chunkIRI34U6Ncjs.accountFromPrivateKey.call(void 0, local.privateKey),
5184
+ account: _chunk7OKA6GNAcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5175
5185
  address: local.address
5176
5186
  };
5177
5187
  }
5178
- const created = _chunkIRI34U6Ncjs.createSessionOwnerKey.call(void 0, );
5179
- _chunkIRI34U6Ncjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5188
+ const created = _chunk7OKA6GNAcjs.createSessionOwnerKey.call(void 0, );
5189
+ _chunk7OKA6GNAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5180
5190
  return { account: created.account, address: created.address };
5181
5191
  }
5182
5192
  function stableStringify(value) {
@@ -5243,7 +5253,7 @@ async function runAccountSetup(input, deps) {
5243
5253
  try {
5244
5254
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5245
5255
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5246
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5256
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5247
5257
  owner: input.ownerAddress,
5248
5258
  sessionOwner: sessionOwner.address,
5249
5259
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
@@ -5251,7 +5261,7 @@ async function runAccountSetup(input, deps) {
5251
5261
  const setup = await service.setupAccount({
5252
5262
  ownerAddress: input.ownerAddress,
5253
5263
  sessionOwnerAddress: sessionOwner.address,
5254
- targetChain: _chunkPUMTR35Ecjs.targetChainToCaip2.call(void 0, input.targetChain),
5264
+ targetChain: _chunkU7SVYWVDcjs.targetChainToCaip2.call(void 0, input.targetChain),
5255
5265
  targetToken: input.targetToken,
5256
5266
  recipient: input.recipient,
5257
5267
  outputTokenRules: input.outputTokenRules,
@@ -5289,7 +5299,7 @@ async function runAccountSetup(input, deps) {
5289
5299
  primaryType: typedData.primaryType,
5290
5300
  message: typedData.message
5291
5301
  });
5292
- const sessionDetails = _chunkIRI34U6Ncjs.buildSessionDetails.call(void 0,
5302
+ const sessionDetails = _chunk7OKA6GNAcjs.buildSessionDetails.call(void 0,
5293
5303
  setup.sessionDetailsUnsigned,
5294
5304
  signature
5295
5305
  );
@@ -5303,7 +5313,7 @@ async function runAccountSetup(input, deps) {
5303
5313
  eoaAddress: input.ownerAddress,
5304
5314
  sessionOwner: sessionOwner.address,
5305
5315
  target: {
5306
- chain: _chunkPUMTR35Ecjs.targetChainToCaip2.call(void 0, input.targetChain),
5316
+ chain: _chunkU7SVYWVDcjs.targetChainToCaip2.call(void 0, input.targetChain),
5307
5317
  token: input.targetToken,
5308
5318
  ...input.recipient && { recipient: input.recipient },
5309
5319
  ..._optionalChain([input, 'access', _142 => _142.outputTokenRules, 'optionalAccess', _143 => _143.length]) && {
@@ -5322,7 +5332,7 @@ async function runAccountSetup(input, deps) {
5322
5332
  isRegistered: true
5323
5333
  };
5324
5334
  } catch (error) {
5325
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5335
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5326
5336
  owner: input.ownerAddress
5327
5337
  });
5328
5338
  if (error instanceof SetupError) throw error;
@@ -5333,7 +5343,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5333
5343
  const now = Date.now();
5334
5344
  const existing = setupRequestDedupe.get(requestKey);
5335
5345
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5336
- _chunkIRI34U6Ncjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5346
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5337
5347
  owner: input.ownerAddress,
5338
5348
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5339
5349
  });
@@ -5631,7 +5641,7 @@ function DepositFlow({
5631
5641
  appBalanceUsd,
5632
5642
  outputTokenRules,
5633
5643
  rejectUnmapped,
5634
- signerAddress = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS,
5644
+ signerAddress = _chunkU7SVYWVDcjs.DEFAULT_SIGNER_ADDRESS,
5635
5645
  sessionChainIds,
5636
5646
  forceRegister = false,
5637
5647
  enableSolana = true,
@@ -5655,11 +5665,11 @@ function DepositFlow({
5655
5665
  onError,
5656
5666
  debug
5657
5667
  }) {
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);
5668
+ const rpcUrls = _chunk7OKA6GNAcjs.useRpcUrls.call(void 0, );
5669
+ const onStepChangeRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onStepChange);
5670
+ const onEventRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onEvent);
5671
+ const onLifecycleRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onLifecycle);
5672
+ const onErrorRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onError);
5663
5673
  const storeApi = useDepositStoreApi();
5664
5674
  const flowSlice = useDepositStore((s) => s.flow);
5665
5675
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5676,13 +5686,13 @@ function DepositFlow({
5676
5686
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5677
5687
  const logFlow = _react.useCallback.call(void 0,
5678
5688
  (message, data) => {
5679
- _chunkIRI34U6Ncjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5689
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5680
5690
  },
5681
5691
  [debug]
5682
5692
  );
5683
5693
  const logFlowError = _react.useCallback.call(void 0,
5684
5694
  (message, error, data) => {
5685
- _chunkIRI34U6Ncjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5695
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5686
5696
  },
5687
5697
  [debug]
5688
5698
  );
@@ -5787,9 +5797,9 @@ function DepositFlow({
5787
5797
  isConnectSelectionConfirmed,
5788
5798
  selectedWalletId
5789
5799
  ]);
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);
5800
+ const setupChainId = typeof targetChain === "number" && !_chunkU7SVYWVDcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5801
+ const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5802
+ const isTargetStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5793
5803
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5794
5804
  _react.useEffect.call(void 0, () => {
5795
5805
  targetMarketPriceRef.current = null;
@@ -5797,15 +5807,18 @@ function DepositFlow({
5797
5807
  return;
5798
5808
  }
5799
5809
  let cancelled = false;
5800
- service.fetchPrices([targetSymbol]).then((prices) => {
5810
+ _chunk7OKA6GNAcjs.fetchTokenPriceUsd.call(void 0, service, {
5811
+ chainId: targetChain,
5812
+ address: targetToken,
5813
+ symbol: targetSymbol
5814
+ }).then((price) => {
5801
5815
  if (cancelled) return;
5802
- const price = prices[targetSymbol.toUpperCase()];
5803
- targetMarketPriceRef.current = typeof price === "number" && price > 0 ? price : null;
5816
+ targetMarketPriceRef.current = price;
5804
5817
  });
5805
5818
  return () => {
5806
5819
  cancelled = true;
5807
5820
  };
5808
- }, [service, targetSymbol, isTargetStablecoin]);
5821
+ }, [service, targetSymbol, isTargetStablecoin, targetChain, targetToken]);
5809
5822
  const walletSignerContext = _react.useMemo.call(void 0, () => {
5810
5823
  if (flowMode === "deposit-address") {
5811
5824
  return null;
@@ -5815,7 +5828,7 @@ function DepositFlow({
5815
5828
  return {
5816
5829
  ownerAddress: dappAddress,
5817
5830
  walletClient: void 0,
5818
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5831
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5819
5832
  switchChain: void 0
5820
5833
  };
5821
5834
  }
@@ -5824,7 +5837,7 @@ function DepositFlow({
5824
5837
  return {
5825
5838
  ownerAddress: dappWalletClient.account.address,
5826
5839
  walletClient: dappWalletClient,
5827
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5840
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5828
5841
  switchChain: dappSwitchChain
5829
5842
  };
5830
5843
  }
@@ -5838,7 +5851,7 @@ function DepositFlow({
5838
5851
  return {
5839
5852
  ownerAddress: dappAddress,
5840
5853
  walletClient: void 0,
5841
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5854
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5842
5855
  switchChain: void 0
5843
5856
  };
5844
5857
  }
@@ -5847,7 +5860,7 @@ function DepositFlow({
5847
5860
  return {
5848
5861
  ownerAddress: dappWalletClient.account.address,
5849
5862
  walletClient: dappWalletClient,
5850
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5863
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5851
5864
  switchChain: dappSwitchChain
5852
5865
  };
5853
5866
  }
@@ -5855,7 +5868,7 @@ function DepositFlow({
5855
5868
  return {
5856
5869
  ownerAddress: reownWallet.address,
5857
5870
  walletClient: reownWallet.walletClient,
5858
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5871
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5859
5872
  switchChain: reownWallet.switchChain
5860
5873
  };
5861
5874
  }
@@ -5894,7 +5907,7 @@ function DepositFlow({
5894
5907
  return {
5895
5908
  ownerAddress: dappAddress,
5896
5909
  walletClient: void 0,
5897
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkIRI34U6Ncjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5910
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5898
5911
  switchChain: void 0
5899
5912
  };
5900
5913
  }
@@ -6086,8 +6099,8 @@ function DepositFlow({
6086
6099
  pred_balance: totalBalanceUsd
6087
6100
  })]);
6088
6101
  } else if (effectiveStep.type === "deposit-address") {
6089
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
6090
- const tokenSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6102
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
6103
+ const tokenSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6091
6104
  _optionalChain([onEventRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190({
6092
6105
  type: "deposit_modal_transfer_crypto_open",
6093
6106
  default_chain: chainName,
@@ -6095,7 +6108,7 @@ function DepositFlow({
6095
6108
  pred_balance: totalBalanceUsd
6096
6109
  })]);
6097
6110
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6098
- const receiveSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6111
+ const receiveSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6099
6112
  _optionalChain([onEventRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192({
6100
6113
  type: "deposit_modal_connected_wallet_enter_value_open",
6101
6114
  send_token: stepSendToken,
@@ -6213,7 +6226,7 @@ function DepositFlow({
6213
6226
  eoa: dappImportOwner,
6214
6227
  getPublicClient: (chainId) => {
6215
6228
  try {
6216
- return _chunkIRI34U6Ncjs.getPublicClient.call(void 0, chainId, rpcUrls);
6229
+ return _chunk7OKA6GNAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6217
6230
  } catch (e32) {
6218
6231
  return null;
6219
6232
  }
@@ -6520,7 +6533,7 @@ function DepositFlow({
6520
6533
  try {
6521
6534
  sessionOwner = await resolveSessionOwner(owner);
6522
6535
  } catch (error) {
6523
- _chunkIRI34U6Ncjs.debugError.call(void 0,
6536
+ _chunk7OKA6GNAcjs.debugError.call(void 0,
6524
6537
  debug,
6525
6538
  "deposit-flow",
6526
6539
  "session-owner:resolve-failed",
@@ -6682,8 +6695,8 @@ function DepositFlow({
6682
6695
  );
6683
6696
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6684
6697
  (token, sourceAmount, inputAmountUsd) => {
6685
- const targetSym = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6686
- const isTargetStable = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSym);
6698
+ const targetSym = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6699
+ const isTargetStable = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSym);
6687
6700
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6688
6701
  logFlow("solana:amount:continue", {
6689
6702
  token: token.symbol,
@@ -6759,8 +6772,8 @@ function DepositFlow({
6759
6772
  activeOwner
6760
6773
  );
6761
6774
  if (entry.status !== "ready") return;
6762
- const targetSym = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6763
- const isTargetStable = _chunkPUMTR35Ecjs.isStablecoinSymbol.call(void 0, targetSym);
6775
+ const targetSym = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6776
+ const isTargetStable = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSym);
6764
6777
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6765
6778
  storeApi.dispatch({
6766
6779
  type: "amount/entered",
@@ -6964,7 +6977,7 @@ function DepositFlow({
6964
6977
  );
6965
6978
  if (showConnectStep) {
6966
6979
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6967
- _chunkIRI34U6Ncjs.ConnectStep,
6980
+ _chunk7OKA6GNAcjs.ConnectStep,
6968
6981
  {
6969
6982
  walletRows,
6970
6983
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -7048,8 +7061,8 @@ function DepositFlow({
7048
7061
  onDepositComplete: handleDepositComplete,
7049
7062
  onDepositFailed: handleDepositFailed,
7050
7063
  onCopyAddress: () => {
7051
- const chainName = _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain);
7052
- const tokenSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7064
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
7065
+ const tokenSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7053
7066
  _optionalChain([onEvent, 'optionalCall', _238 => _238({
7054
7067
  type: "deposit_modal_transfer_crypto_cta_click",
7055
7068
  default_chain: chainName,
@@ -7097,7 +7110,7 @@ function DepositFlow({
7097
7110
  }
7098
7111
  ),
7099
7112
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7100
- _chunkIRI34U6Ncjs.ProcessingStep,
7113
+ _chunk7OKA6GNAcjs.ProcessingStep,
7101
7114
  {
7102
7115
  smartAccount: step.smartAccount,
7103
7116
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7169,7 +7182,7 @@ function DepositFlow({
7169
7182
  }
7170
7183
  ),
7171
7184
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7172
- _chunkIRI34U6Ncjs.ProcessingStep,
7185
+ _chunk7OKA6GNAcjs.ProcessingStep,
7173
7186
  {
7174
7187
  smartAccount: step.smartAccount,
7175
7188
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7236,8 +7249,8 @@ function DepositFlow({
7236
7249
  defaultAmount: effectiveStep.inputAmountUsd,
7237
7250
  uiConfig,
7238
7251
  targetChain,
7239
- targetChainName: _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChain),
7240
- targetTokenSymbol: _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7252
+ targetChainName: _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain),
7253
+ targetTokenSymbol: _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7241
7254
  appBalanceUsd,
7242
7255
  onContinue: handleSolanaAmountContinue,
7243
7256
  debug
@@ -7299,7 +7312,7 @@ function DepositFlow({
7299
7312
  ) })
7300
7313
  ] }) : null,
7301
7314
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7302
- _chunkIRI34U6Ncjs.ProcessingStep,
7315
+ _chunk7OKA6GNAcjs.ProcessingStep,
7303
7316
  {
7304
7317
  smartAccount: effectiveStep.smartAccount,
7305
7318
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7353,7 +7366,7 @@ function DepositFlow({
7353
7366
  if (_optionalChain([signerContext, 'access', _251 => _251.publicClient, 'access', _252 => _252.chain, 'optionalAccess', _253 => _253.id]) === chainId) {
7354
7367
  return signerContext.publicClient;
7355
7368
  }
7356
- return _chunkIRI34U6Ncjs.getPublicClient.call(void 0, chainId, rpcUrls);
7369
+ return _chunk7OKA6GNAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7357
7370
  };
7358
7371
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7359
7372
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7409,7 +7422,7 @@ function DepositFlow({
7409
7422
  service,
7410
7423
  onContinue: handleAmountContinue,
7411
7424
  onCtaClick: (ctaName) => {
7412
- const receiveSymbol = _chunkPUMTR35Ecjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7425
+ const receiveSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7413
7426
  _optionalChain([onEvent, 'optionalCall', _257 => _257({
7414
7427
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7415
7428
  send_token: effectiveStep.asset.symbol,
@@ -7462,7 +7475,7 @@ function DepositFlow({
7462
7475
  }
7463
7476
  ),
7464
7477
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7465
- _chunkIRI34U6Ncjs.ProcessingStep,
7478
+ _chunk7OKA6GNAcjs.ProcessingStep,
7466
7479
  {
7467
7480
  smartAccount: effectiveStep.smartAccount,
7468
7481
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7515,9 +7528,9 @@ function formatDate(iso) {
7515
7528
  function resolveChainId(value) {
7516
7529
  if (value === void 0 || value === null) return null;
7517
7530
  if (typeof value === "number") return value;
7518
- if (_chunkPUMTR35Ecjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7519
- if (_chunkPUMTR35Ecjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7520
- const parsed = _chunkPUMTR35Ecjs.parseEvmChainId.call(void 0, value);
7531
+ if (_chunkU7SVYWVDcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7532
+ if (_chunkU7SVYWVDcjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7533
+ const parsed = _chunkU7SVYWVDcjs.parseEvmChainId.call(void 0, value);
7521
7534
  if (parsed !== null) return parsed;
7522
7535
  const num = Number(value);
7523
7536
  return Number.isFinite(num) ? num : null;
@@ -7526,7 +7539,7 @@ function resolveTokenSymbol(token, chainId) {
7526
7539
  if (!token) return "";
7527
7540
  if (chainId === "solana") {
7528
7541
  const normalized = token.toLowerCase();
7529
- const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
7542
+ const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
7530
7543
  (entry) => entry.mint.toLowerCase() === normalized
7531
7544
  );
7532
7545
  if (matched) return matched.symbol;
@@ -7535,8 +7548,8 @@ function resolveTokenSymbol(token, chainId) {
7535
7548
  }
7536
7549
  }
7537
7550
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7538
- const evmChainId = chainId === "hypercore" ? _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID : chainId;
7539
- const sym = _chunkPUMTR35Ecjs.getTokenSymbol.call(void 0, token, evmChainId);
7551
+ const evmChainId = chainId === "hypercore" ? _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID : chainId;
7552
+ const sym = _chunkU7SVYWVDcjs.getTokenSymbol.call(void 0, token, evmChainId);
7540
7553
  if (sym !== "Token") return sym;
7541
7554
  }
7542
7555
  return shortenHash(token);
@@ -7547,7 +7560,7 @@ function formatAmount(rawAmount, token, chainId) {
7547
7560
  if (token && chainId !== null && chainId !== void 0) {
7548
7561
  if (chainId === "solana") {
7549
7562
  const normalized = token.toLowerCase();
7550
- const matched = _chunkPUMTR35Ecjs.SOLANA_TOKENS.find(
7563
+ const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
7551
7564
  (entry) => entry.mint.toLowerCase() === normalized
7552
7565
  );
7553
7566
  if (matched) {
@@ -7556,8 +7569,8 @@ function formatAmount(rawAmount, token, chainId) {
7556
7569
  decimals = 9;
7557
7570
  }
7558
7571
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7559
- const evmChainId = chainId === "hypercore" ? _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID : chainId;
7560
- decimals = _chunkPUMTR35Ecjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
7572
+ const evmChainId = chainId === "hypercore" ? _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID : chainId;
7573
+ decimals = _chunkU7SVYWVDcjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
7561
7574
  }
7562
7575
  }
7563
7576
  try {
@@ -7575,7 +7588,7 @@ function formatAmount(rawAmount, token, chainId) {
7575
7588
  }
7576
7589
  function getTxExplorerUrl(txHash, chainId) {
7577
7590
  if (!chainId) return null;
7578
- const base2 = _chunkPUMTR35Ecjs.getExplorerUrl.call(void 0, chainId);
7591
+ const base2 = _chunkU7SVYWVDcjs.getExplorerUrl.call(void 0, chainId);
7579
7592
  if (!base2) return null;
7580
7593
  return `${base2}/tx/${txHash}`;
7581
7594
  }
@@ -7640,7 +7653,7 @@ function DepositHistoryPanel({
7640
7653
  className: "rs-modal-header-back",
7641
7654
  "aria-label": "Back",
7642
7655
  onClick: onClose,
7643
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronLeftIcon, {})
7656
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronLeftIcon, {})
7644
7657
  }
7645
7658
  ) }),
7646
7659
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7650,29 +7663,29 @@ function DepositHistoryPanel({
7650
7663
  className: "rs-modal-close",
7651
7664
  "aria-label": "Close",
7652
7665
  onClick: onCloseModal,
7653
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
7666
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
7654
7667
  }
7655
7668
  ) })
7656
7669
  ] }),
7657
7670
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7658
7671
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7659
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}), title: "History" }),
7672
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}), title: "History" }),
7660
7673
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7661
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}) }),
7674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}) }),
7662
7675
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7663
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.Spinner, { className: "rs-spinner--sm" }),
7676
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-spinner--sm" }),
7664
7677
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7665
7678
  ] })
7666
7679
  ] }),
7667
7680
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7668
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.AlertTriangleIcon, {}) }),
7681
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.AlertTriangleIcon, {}) }),
7669
7682
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7670
7683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7671
7684
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7672
7685
  ] })
7673
7686
  ] }),
7674
7687
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7675
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {}) }),
7688
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}) }),
7676
7689
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7677
7690
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7678
7691
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7692,7 +7705,7 @@ function DepositHistoryPanel({
7692
7705
  )
7693
7706
  ] })
7694
7707
  ] }),
7695
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.PoweredBy, {})
7708
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
7696
7709
  ] })
7697
7710
  ]
7698
7711
  }
@@ -7703,10 +7716,10 @@ function HistoryCard({ deposit }) {
7703
7716
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7704
7717
  const sourceChainId = resolveChainId(deposit.chain);
7705
7718
  const targetChainId = resolveChainId(deposit.targetChain);
7706
- const sourceChainName = sourceChainId ? _chunkPUMTR35Ecjs.getChainName.call(void 0, sourceChainId) : null;
7707
- const targetChainName = targetChainId ? _chunkPUMTR35Ecjs.getChainName.call(void 0, targetChainId) : null;
7708
- const sourceChainIcon = sourceChainId ? _chunkPUMTR35Ecjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7709
- const targetChainIcon = targetChainId ? _chunkPUMTR35Ecjs.getChainIcon.call(void 0, targetChainId) : void 0;
7719
+ const sourceChainName = sourceChainId ? _chunkU7SVYWVDcjs.getChainName.call(void 0, sourceChainId) : null;
7720
+ const targetChainName = targetChainId ? _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChainId) : null;
7721
+ const sourceChainIcon = sourceChainId ? _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7722
+ const targetChainIcon = targetChainId ? _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7710
7723
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7711
7724
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7712
7725
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
@@ -7728,7 +7741,7 @@ function HistoryCard({ deposit }) {
7728
7741
  children: [
7729
7742
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
7730
7743
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
7731
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
7744
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
7732
7745
  sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
7733
7746
  ] }),
7734
7747
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
@@ -7767,7 +7780,7 @@ function HistoryCard({ deposit }) {
7767
7780
  onClick: (e) => e.stopPropagation(),
7768
7781
  children: [
7769
7782
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
7770
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ArrowUpRightIcon, {})
7783
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ArrowUpRightIcon, {})
7771
7784
  ]
7772
7785
  }
7773
7786
  )
@@ -7782,7 +7795,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7782
7795
  // src/DepositModal.tsx
7783
7796
 
7784
7797
  var ReownDepositInner = _react.lazy.call(void 0,
7785
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-J5YFZKFS.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7798
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-UND3DEJH.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7786
7799
  );
7787
7800
  function sortByCreatedAtDesc(items) {
7788
7801
  return [...items].sort((a, b) => {
@@ -7831,9 +7844,9 @@ function DepositModalInner({
7831
7844
  defaultAmount,
7832
7845
  recipient,
7833
7846
  appBalanceUsd,
7834
- backendUrl = _chunkPUMTR35Ecjs.DEFAULT_BACKEND_URL,
7847
+ backendUrl = _chunkU7SVYWVDcjs.DEFAULT_BACKEND_URL,
7835
7848
  rpcUrls: rpcUrlsProp,
7836
- signerAddress = _chunkPUMTR35Ecjs.DEFAULT_SIGNER_ADDRESS,
7849
+ signerAddress = _chunkU7SVYWVDcjs.DEFAULT_SIGNER_ADDRESS,
7837
7850
  sessionChainIds,
7838
7851
  forceRegister = false,
7839
7852
  enableSolana = true,
@@ -7860,7 +7873,7 @@ function DepositModalInner({
7860
7873
  debug
7861
7874
  }) {
7862
7875
  const modalRef = _react.useRef.call(void 0, null);
7863
- const onReadyRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onReady);
7876
+ const onReadyRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onReady);
7864
7877
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7865
7878
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
7866
7879
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
@@ -7877,20 +7890,20 @@ function DepositModalInner({
7877
7890
  const cursorRef = _react.useRef.call(void 0, null);
7878
7891
  const historyStaleRef = _react.useRef.call(void 0, false);
7879
7892
  const historyLoadedRef = _react.useRef.call(void 0, false);
7880
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkPUMTR35Ecjs.getChainId.call(void 0, targetChainProp);
7881
- const sourceChain = sourceChainProp ? _chunkPUMTR35Ecjs.getChainId.call(void 0, sourceChainProp) : void 0;
7882
- const rpcUrls = _chunkIRI34U6Ncjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7893
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkU7SVYWVDcjs.getChainId.call(void 0, targetChainProp);
7894
+ const sourceChain = sourceChainProp ? _chunkU7SVYWVDcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7895
+ const rpcUrls = _chunk7OKA6GNAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7883
7896
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7884
- const onErrorRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onError);
7897
+ const onErrorRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onError);
7885
7898
  _react.useEffect.call(void 0, () => {
7886
- if (targetChain !== _chunkPUMTR35Ecjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7899
+ if (targetChain !== _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7887
7900
  setRecipientIsContract(false);
7888
7901
  return;
7889
7902
  }
7890
7903
  let cancelled = false;
7891
- _chunkIRI34U6Ncjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7904
+ _chunk7OKA6GNAcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7892
7905
  if (cancelled) return;
7893
- const isContract = _chunkPUMTR35Ecjs.isContractBytecode.call(void 0, code);
7906
+ const isContract = _chunkU7SVYWVDcjs.isContractBytecode.call(void 0, code);
7894
7907
  setRecipientIsContract(isContract);
7895
7908
  if (isContract) {
7896
7909
  _optionalChain([onErrorRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
@@ -7906,7 +7919,7 @@ function DepositModalInner({
7906
7919
  };
7907
7920
  }, [targetChain, recipient, onErrorRef, rpcUrls]);
7908
7921
  const service = _react.useMemo.call(void 0,
7909
- () => _chunkIRI34U6Ncjs.createDepositService.call(void 0, backendUrl, {
7922
+ () => _chunk7OKA6GNAcjs.createDepositService.call(void 0, backendUrl, {
7910
7923
  debug,
7911
7924
  debugScope: "service:deposit"
7912
7925
  }),
@@ -7940,7 +7953,7 @@ function DepositModalInner({
7940
7953
  }, [store, targetChain, targetToken]);
7941
7954
  _react.useEffect.call(void 0, () => {
7942
7955
  if (isOpen && modalRef.current) {
7943
- _chunkIRI34U6Ncjs.applyTheme.call(void 0, modalRef.current, theme);
7956
+ _chunk7OKA6GNAcjs.applyTheme.call(void 0, modalRef.current, theme);
7944
7957
  }
7945
7958
  }, [isOpen, theme]);
7946
7959
  _react.useEffect.call(void 0, () => {
@@ -8021,7 +8034,7 @@ function DepositModalInner({
8021
8034
  fetchHistory("initial");
8022
8035
  }
8023
8036
  }, [historyOpen, fetchHistory]);
8024
- const onLifecycleRef = _chunkIRI34U6Ncjs.useLatestRef.call(void 0, onLifecycle);
8037
+ const onLifecycleRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onLifecycle);
8025
8038
  const handleLifecycle = _react.useCallback.call(void 0,
8026
8039
  (event) => {
8027
8040
  _optionalChain([onLifecycleRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267(event)]);
@@ -8057,8 +8070,8 @@ function DepositModalInner({
8057
8070
  const canGoBack = backHandler !== void 0;
8058
8071
  const hideHeaderChrome = swappedImmersive;
8059
8072
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8060
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8061
- _chunkIRI34U6Ncjs.Modal,
8073
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8074
+ _chunk7OKA6GNAcjs.Modal,
8062
8075
  {
8063
8076
  isOpen,
8064
8077
  onClose,
@@ -8074,7 +8087,7 @@ function DepositModalInner({
8074
8087
  className: "rs-modal-header-back",
8075
8088
  "aria-label": "Go back",
8076
8089
  onClick: backHandler,
8077
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.ChevronLeftIcon, {})
8090
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronLeftIcon, {})
8078
8091
  }
8079
8092
  ) }),
8080
8093
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8086,7 +8099,7 @@ function DepositModalInner({
8086
8099
  "aria-label": "Deposit history",
8087
8100
  onClick: handleHistoryOpen,
8088
8101
  disabled: !recipient,
8089
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.HistoryIcon, {})
8102
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {})
8090
8103
  }
8091
8104
  ),
8092
8105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8096,12 +8109,12 @@ function DepositModalInner({
8096
8109
  onClick: onClose,
8097
8110
  className: "rs-modal-close",
8098
8111
  "aria-label": "Close",
8099
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkIRI34U6Ncjs.CloseIcon, {})
8112
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
8100
8113
  }
8101
8114
  )
8102
8115
  ] })
8103
8116
  ] }),
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,
8117
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8105
8118
  DepositFlow,
8106
8119
  {
8107
8120
  dappWalletClient,